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! |
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. |
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) |
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. |
Quote:
|
Quote:
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. |
|
@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! |
All times are GMT -5. The time now is 03:21 PM. |