Contents
OpenIndiana
OpenIndiana is a free and open-source, Unix operating system derived from OpenSolaris.
Check https://docs.openindiana.org/handbook/getting-started/ .
VirtualBox installation of server edition
1 wget http://dlc.openindiana.org/isos/151a8/oi-dev-151a8-text-x86.iso
2 # size 496 MB (520.613.888 bytes)
3 # Start VirtualBox
4 # Choose Other Other/Unknown
5 # RAM 512 MB
6 # Create virtual disk dynamic VDI with 8 GB
7 # Start VM
8 # Choose ISO oi-dev-151a8-text-x86.iso
9 # Keyboard layout 33 pt
10 # Language english 7
11 # Install OpenIndiana 1
12 # F2 F2, Use whole disk, F2, computer name openindiana automatically configure network
13 # F2 Europe Portugal mainland
14 # F2 ******** # root pass
15 # user vitor with pass ********
16 # F2 Install F8 reboot
17
After reboot release ISO and login with user vitor
1 su -
2 uname -a
3 java -version
4 python
5 perl
6 ifconfig e1000g0 plumb # use NIC Intel Pro 1000 MT Server on VB
7 ifconfig e1000g0 up
8 ifconfig e1000g0 auto-dhcp
9 svcadm disable svc:/network/physical:nwam
10 svcadm enable svc:/network/physical:default
11 vi /etc/resolv.conf # nameserver 8.8.8.8
12 ping www.sapo.pt
13 pkg list -a nano
14 pkg install nano
15 pkg install developer/java/jdk
16 javac -version
17 pkg install web/java-servlet/tomcat # /usr/tomcat6/bin
18 pkg install developer/gcc-3
19 gcc --version
Tree script for OpenSolaris
http://www.unix.com/solaris/54552-what-command-can-display-files-tree.html
Useful commands
1 cat /etc/nodename
2 cat /etc/release
3 cat /etc/resolv.conf
4 psrinfo -pv
5 prtconf
6 cat /hostname.ce1
7 cat /etc/motd
8 cat /etc/defaultrouter
9 ifconfig -a
10 date -u
11 uptime
12 dmesg
13 uname -a
14 ping -s www.sapo.pt # pings hostname www.sapo.pt
15 cat /etc/nodename
16 digest -a md5 -v file
17 ggrep --version #gnu grep
18 lsof | grep -i listen # like netstat
19 ps -ef # show all processes
20 pargs 1234 # show process arguments for PID 1234
21
Show hexadecimal dump
1 od -x file.txt