Ubuntu 10.04 命令行模式登录系统

/etc/modprobe.d/nvidia-installer-disable-nouveau.conf


一句话:sudo gedit /etc/default/grub,GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”修改为:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash text”,sudo update-grub


in /etc/init/rc-sysinit.conf:
env DEFAULT_RUNLEVEL=3

in /etc/init/gdm.conf:
start on (filesystem
and started hal
and tty-device-added KERNEL=tty7
and (graphics-device-added or stopped udevtrigger)
and runlevel [!3])
stop on runlevel [016]


Ubuntu Linux shutdown the X server

17 COMMENTS

Recently someone asked me a question - "How do I shutdown the X server, so that I have a command line prompt on the console?"

Well answer is very simple use script located at /etc/init.d/ directory. If you are using KDE desktop type the command (make sure you save all the work as following command does not ask confirmation):

sudo /etc/init.d/kdm stop

Within few seconds you should be dropped to a command line prompt on the console. To start GUI type command:

sudo /etc/init.d/kdm start

If you are using GNOME:

sudo /etc/init.d/gdm stop

Again to start GNOME desktop:

sudo /etc/init.d/gdm start

Another way - You can change the current runlevel

From a command line, you can use the init command to go immediately into runlevel 1, which is also known as single user text mode. Open terminal and type the following command:

sudo init 1

Again get back to GUI with init 2 command:

sudo init 2

When you type init 1 command your session will then begin to shut down and bring you into single user text mode. When you type init 2 command your session will then begin to shut down and bring you into GUI mode :)

Pretty easy ahh?

So what are GDM and KDM?

  • GDM (the GNOME Display Manager) provides an alternate display manager for the X Window System.
  • KDM (the KDE Display Manger) provides an alternate display manager for the X Window System.
  • In short, both of them are a graphical login interface for computers using Linux or Unix-like operating systems.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值