Friday, June 11, 2010

convert CD to ISO image

#unmount /dev/cdrom
#dd if=/dev/cdrom of=file.iso bs=1024

Friday, June 4, 2010

Solaris 10 - Add new hardisk

1. Add new hardisk
2. Boot up
3. #devfsadm
4. #format
5. #iostat -En (take note the new hardisk target address. eg .c0t0d0)
6. #newfs /dev/rdsk/c0t0d0
7. #mkdir /newfs
8. #mount /dev/dsk/c0t0d0 /newfs
9. #df -h

Thursday, May 13, 2010

Solaris : loghost could not be resolved

add this line into /etc/hosts

127.0.0.1 localhost loghost

save and exit.

Wednesday, May 12, 2010

Solaris 10 : Changing hostname

1. /etc/hosts
2. /etc/nodename
3. /etc/hostname.

--------------------------------------------------

root@-i # more /etc/hosts
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
203.223.137.104 oratest oratest.com.my loghost

--------------------------------------------------

root@-i # more /etc/nodename
oratest

--------------------------------------------------

root@-i # more /etc/hostname.e1000g0
oratest

--------------------------------------------------

Friday, April 23, 2010

Ubuntu - How to get hardware info,version & serial

#biosdecode
#smidecode
#lshw
#lspci

In GUI mode :
#apt-get install lshw-GTK
#lshw-GTK

Thursday, April 15, 2010

Saturday, February 6, 2010

Check disk info in Linux

#fdisk -l

- l : List the partition tables for the specified devices and then exit

#df -h

-h : human readable