2007年11月26日 星期一

更改 login shell

除了直接更改 /etc/passwd 外,若是管理者有開放權限,可以使用 chsh。


指令名稱:
chsh(1) - 修改登錄 shell
語法:
chsh [ -s shell ] [ -l ] [ -u ] [ -v ] [ username ]
說明:
以 UNIX / Linux 系統的運作角度來說,在管理者沒有刻意限制的前提下,一般使用者可以自行選擇與變更 login shell 種類。chsh 這個指令就是讓使用者自己變更 login shell 的工具。


2007年11月25日 星期日

Ubuntu開啟切換到console mode

From http://www.howtogeek.com/howto/ubuntu/how-to-switch-to-console-mode-for-ubuntu-vmware-guest/

把 /boot/grub/menu.lst kernel那行後面的"splash"拿掉,重開機後就ok。


sudo vi /boot/grub/menu.lst

Find the section that looks like this:

## ## End Default Options ##

title Ubuntu, kernel 2.6.17-10-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-386 root=UUID=8312b3d9-e087-439b-8f3b-21f4b00434f1 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-386
savedefault
boot

Remove "splash" from the kernel line. Save the file, and reboot.

You should now be able to switch to console mode by using Ctrl+Alt+F1 (or F2-F6)