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

Monday, January 25, 2010

Mount error after upgrade to Ubuntu 9.10

Solution:

#vi /etc/fstab
-> disable automount
-> save and exit

# reboot

start in fail safe recovery mode

#fsck
answer y for all request

#reboot

try mount again

enable automount in fstab






Thursday, January 21, 2010

Ubuntu - FTP server

Ubuntu - Install vsftpd
---------------------------
apt-get install vsftpd
nano /etc/vsftpd.conf


local_enable=YES
write_enable=YES
chown_uploads=YES
chown_username=root

(comment out all these option)

/etc/init.d/vsftpd stop
reboot


Ubuntu - vsftpd.chroot_list

#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

Sunday, January 10, 2010

Apply windows registry file in linux

To apply .reg file for window$ application:

# wine regedit file.reg

Thursday, December 10, 2009

Rotate screen into potrait mode

nano /etc/X11/xorg.conf
-------------------------------------------------------------------------
Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
EndSection



Section "Module"
Load "glx"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
Option "RandRRotation" "on"
EndSection
-------------------------------------------------------------------------

tambah kan :

Option "RandRRotation" "on"

ke dalam bhagian Section "Device"

lepas tu , reboot comp, bukak terminal dan masukkan command ni :

xrandr -o right (utk pusing kanan)
xrandr -o left (utk pusing kiri)
xrandr -o normal (utk normal)

ni utk driver nvidia, driver lain aku tak tahu...

Friday, December 4, 2009

Ubuntu - Get rid of the Ubuntu Splash screen permanently

# nano /boot/grub/menu.lst

edit from this :

title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=xxxx ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet

to be like this:

title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=xxxx ro
initrd /boot/initrd.img-2.6.22-14-generic

save and exit.
done.