Profile

창조적이고 생산적이고 싶은 개발자 블로그

검바위길

ubuntu에서 cui로 부팅

1. 데스크탑 GUI 종료하는 법

  • ctrl + alt + f1 을 눌러 로그인 후

  • sudo service lightdm stop

 

2. GUI 모드대신 CLI모드로 부팅하는 법


2-1.  grub 수정

  • vi /etc/default/grub

    • 1) GRUB_CMDLINE_LINUX_DEFAULT 라인 #붙여 주석처리

    • 2) GRUB_CMDLINE_LINUX="" 라인을 GRUB_CMDLINE_LINUX="text" 로 수정

    • 3) 몇줄 아래 '#GRUB_TERMINAL=console' 라인에서 주석처리된 부분을 #제거해서 'GRUB_TERMINAL=console' 로 수정

  • update-grub 명령으로 grub 업데이트

2-2 systemctl 변경 

  • systemctl set-default multi-user.target 

나중에 원래대로 돌리려면

  • systemctl set-default graphical.target

 

2 -3 reboot


'Linux' 카테고리의 다른 글

color grep  (0) 2018.11.27
어떤 프로세스가 swap메모리를 사용하고 있을까?  (0) 2018.11.08
bash 프롬프트 변경  (0) 2018.03.15