LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-30-2020, 11:49 AM   #1
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Rep: Reputation: 33
Booting into cli


Have a Ubuntu 20.04 XFCE machine and I do not need the GUI so I disabled it using

Code:
sudo systemctl set-default multi-user.target
rebooted the system and it booted into cli, well kind of... It does not boot into any of the tty1-6 it goes I guess into tty7 which is the default for GUI (may be wrong on that), so I have to press CTRL-ALT-<F1-6> to get a login prompt.

How do I change the default tty that the machine is booting onto?

ps: why i installed XFCE vs server if I was not going to use X is a discussion for another time.
 
Old 05-30-2020, 12:45 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,698

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I just tried it on my VM and it worked as expected. It was at tty1. I am running a different desktop but should not matter as far as I know.

Code:
systemctl enable multi-user.target
systemctl set-default multi-user.target
Usually by default the system console is tty1. If you do not see any start up messages then it is different tty.
 
Old 05-30-2020, 03:24 PM   #3
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Original Poster
Rep: Reputation: 33
you and i know that it should not make a difference and that it should work, but apparently my machine does not know that... Oh well I guess if I need to reboot I'll give it a 3 finger salute before login in.

just asking for a friend... if I want it to start on tty3 or something how would i do that?
 
Old 05-30-2020, 03:35 PM   #4
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Original Poster
Rep: Reputation: 33
OK a little of tweaking of /etc/default/grub did the trick

Quote:
sudo cp -n /etc/default/grub /etc/default/grub.backup
sudo nano /etc/default/grub

-----
disable GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" by adding # at the beginning.
set GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="text"
remove # from the line GRUB_TERMINAL="console" to disable graphical terminal.
-----

sudo update-grub
sudo reboot
It reboots and goes straight into a cli command prompt :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: php55u-cli conflicts with php-cli-5.3.3-47.el6.x86_64 NotionCommotion Linux - Newbie 1 07-12-2016 02:02 AM
Booting Directly Into CLI? ThorQuest Linux - Newbie 6 06-27-2011 03:35 PM
Ubuntu 8.04 Alpha6 booting into busybox CLI dotancohen Linux - Laptop and Netbook 1 03-09-2008 06:48 PM
Saving CLI data in the CLI Tons of Fun Linux - General 4 04-03-2007 05:42 AM
Booting into Single User on MDK 9 asks for root password instead of booting into root acadcworks Linux - General 6 01-10-2006 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration