gui of ubantu

If your purpose is to temporarily disable GUI - you can stop the lightdm service ( or whichever greeter you're using ) with 

sudo service lightdm stop (14.04 and earlier)

or sudo systemctl stop lightdm (since 15.04) from tty1,

as shown by others already.

 

If your purpose to boot into command line for extended period of time between reboots, you can open 

/etc/default/grub with the choice of your text editor. I personally use nano, so for me the command would be sudo nano /etc/default/grub.

Now, find GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="text".

Or you can create two lines, one commented , one uncommented like so:

#GRUB_CMDLINE_LINUX="text"
GRUB_CMDLINE_LINUX=""

Once necessary, just uncomment the line for which mode you wanna enter.

Upon completing editing the /etc/default/grub file, save it, and

run sudo update-grub to make the configurations loaded into the actual grub.cfg file.

Reboot, and you should enter the command line directly.

In the same way, if you miss the GUI of Ubantu, just edit the variable to GRUB_CMDLINE_LINUX="",update configure and reboot your system.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值