우분투 서버를 설치하고 데스크탑을 최소로 설치한경우 ... gui 로 로그인이 뜨는데 이를 변경하기 위해서 런레벨을 바꿔도 소용 없었다.


아래와 같이 바꾸더라.


from http://superuser.com/questions/310978/starting-ubuntu-without-the-gui


I got a simple method to disable XFCE from this blog post: How to disable X at boot time in Ubuntu 11.10.  Note: the post has a heading in some non-English language, possibly Portuguese, but the body of the post is in English.

With LightDM (lightdm) being the new graphical user login in Ubuntu, users will need to find a way to disable it to boot into text mode.  Fortunately, the people behind LightDM have made that really easy to do.

Edit /etc/default/grub with your favorite editor,

sudo nano /etc/default/grub

Find this line:

GRUB_CMDLINE_LINUX_DEFAULT="<doesn’t matter what you find here>"

Change it to:

GRUB_CMDLINE_LINUX_DEFAULT="text"

Update Grub:

sudo update-grub

No need to remove / disable LightDM upstart conf; it already does that for you.

lightdm.conf

# Check kernel command-line for inhibitors, unless we are being called manually.
for ARG in $(cat /proc/cmdline); do
        if [ "$ARG" = "text" ]; then
                plymouth quit || :
                stop
                exit 0
        fi
done

You will still be able to use X by typing startx after you logged in.

shareimprove this answer



+ Recent posts