LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2011, 01:23 PM   #1
shojen
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Rep: Reputation: Disabled
Linux CLI distro in virtual machine


Hello All,

I've read some posts about installing CLI only distros. However I am trying to install the CLI from a virtual machine. It seems that I am missing something during the install process as I do not get an option to select no X windows or graphics. Alternatively, once the VM boots to Fedora Linux, I can edit the systemd file as instructed but upon reboot it still boots into graphics mode.

I need a CLI only Linux within a virtual machine.

Please, explicit instructions if possible.

Thanks!
 
Old 10-03-2011, 01:26 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Install Debian and deselect the "Desktop" option when it comes to software selection.
Alternatively, install Slackware and deselect X, XAP and KDE when it comes to software selection.
 
Old 10-03-2011, 01:28 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Hi and welcome to LQ.

You can tell Fedora to boot to CLI by editing /etc/inittab

You should find the following line
id:5:initdefault:

Change it to look like that:

id:3:initdefault:

It'll boot to runlevel 3 (which doesn't start X)
 
Old 10-03-2011, 01:35 PM   #4
shojen
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you for the quick replies:

@sycamorex - I did that, which Fedora quickly tells you that the inittab is not used anymore to define runlevels. Fedora uses a new systemd file that uses .target files instead that supposedly accomplish the same thing. However, using the method you mention and the newer method, neither works within the virtual machine environment.

@TobiSGD - I will try Debian and give an update.
 
Old 10-03-2011, 01:38 PM   #5
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Quote:
Originally Posted by shojen View Post
I need a CLI only Linux within a virtual machine.
Arch Linux is one for this purpose. It has no GUI after installation.
 
Old 10-03-2011, 01:39 PM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Quote:
Originally Posted by shojen View Post
Thank you for the quick replies:

@sycamorex - I did that, which Fedora quickly tells you that the inittab is not used anymore to define runlevels. Fedora uses a new systemd file that uses .target files instead that supposedly accomplish the same thing. However, using the method you mention and the newer method, neither works within the virtual machine environment.
Apologies for it. I should've checked it before. I haven't used Fedora for a long time. I don't think it matters whether you're using it on a real computer or in a virtual environment - whatever up-to-date method you used, it should work.

What steps did you take?

edit: Additionally, it's easy to do it in Slackware. Even though you install X, by default it boots to CLI.

Last edited by sycamorex; 10-03-2011 at 01:41 PM.
 
Old 10-03-2011, 01:51 PM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
http://grml.org/

Kind regards
 
Old 10-03-2011, 01:56 PM   #8
shojen
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
@Mr. Alex - Thank you. I will try Arch Linux if Debian doesn't met my needs. However, so far, it seems to be doing what I want...

@sycamorex - No worries! Things change all the time. During the run of the VM it asks for the .iso of the OS you want to use. I chose the appropriate Fedora distro. During the normal installation I pressed the ESC key to get to the boot menu. From that menu I did not see anything as to options for CLI or disabling GUI. I continued with normal install and within Fedora GUI windows, opened a terminal and proceeded to edit the appropriate file. I had to edit my permissions to administrator to be able to sudo. After successfully editing the .target file and copying it as default.target, I restarted the VM and OS. Fedora then rebooted exactly as it did the first time into GUI windows.

Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Interconnect a Virtual machine in linux to Real machine in windows xp lola1987 Linux - Networking 2 06-05-2011 04:31 PM
Embedded Linux Distro CLI only? papaLou Linux - Embedded & Single-board computer 7 05-11-2011 09:53 PM
Virtual machine host which distro ???? DerekEwing Linux - Newbie 1 11-05-2009 12:18 PM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 02:04 PM
Virtual Machine - best distro as host snorkytheweasel Linux - Software 2 09-19-2008 02:52 PM


All times are GMT -5. The time now is 10:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration