March 6, 2012

How to Run Linux without the GUI (level 3) ?

How to use a Linux distro without GUI ?

Answer to the question

The easiest way to not use X on Linux is to not install it in the first place.  Normally, the reason you don't want to run X is because you aren't going to be using that machine as a traditional desktop unit.  Whether it's becasue you just don't want X or you are going to be connecting to the system via SSH more than you will locally, or if it's mainly a server that just doesn't need X, several distros (Debian, and Ubuntu's Server Edition just to name two) make it possible to install Linux without an X server in the first place.  Obviously, if you want to HAVE X, this isn't an option... or is it?  If you install the system with no X server in the first place, you can go in and install it piece by piece exactly the way you want rather than how the distro creators assume you want it.

Like  (2 likes)

Depends on the Distro. If you are running red-hat-centos-sci-linux-suse-arch...

Depends on the Distro. If you are running red-hat-centos-sci-linux-suse-arch then look up /etc/inittab and id:3:initdefault; ubuntu uses upstart so if no inittab you will have to edit /etc/init/rc-sysinit.conf instead and change the following line:

Like  (4 likes)

As root, grep id: /etc/inittab...

As root, grep id: /etc/inittab

change that number to 3 then save.

Like  (2 likes)

to temporarily go into runlevel 3, on the command line run 'init 3' To boot...

to temporarily go into runlevel 3, on the command line run 'init 3' To boot up into runlevel 3 edit /etc/inittab and change the default to 3. Note, I don't think either of these work in Ubuntu. I think they are trying to become a GUI only OS.


Like  (2 likes)

If you're working at the console, get used to the constant switching between...

If you're working at the console, get used to the constant switching between either virtual consoles or virtual windows within a screen session. You can have a workable number of windows open, you just can't have them all fully open and visible at one time.

When I'm working on a headless server, I find it most convenient to do so via ssh from a machine with a decent gui; I'll have maybe half a dozen ssh sessions open, all in xterms, just so I can have one or two desktops set up with all the views I need into the target machine. 'top -c' in an 100-column 80-line xterm is a lot more informative than it is in an 80x24 terminal screen. Remember to keep an extra window open for man-pages; I don't care how accustomed I am to a command, I usually check to make sure A> I've got my arguments syntax right, and B> that what I want from the program is available on that machine.

Find and get used to a console-mode file-manager you like. I use ytree mainly, because I'm used to that style of tool from my DOS days, but I also have mc on hand for things ytree won't do (such as, move a subtree -- and all its dependencies -- from one point on the filesystem tree to another).

If you're not fond of vi, you'll want to add or edit EDITOR= and VISUAL= lines in your ~/.profile to specify your preferred text editor. If you don't have one you like, look around and choose one -- jed, nano, joe, etc. -- because you will be spending a lot of time in it. Those lines in ~/.profile control what editor is invoked by 'crontab -e', visudo, less (when you hit the 'v' key to edit what you've been viewing) and other system and admin programs.

Get used to writing a lot of little twiddle scripts to automate the things you do often. It's more than just laziness, it's Murphy-proofing your typing and thus safeguarding the machine. Those scripts can have console-mode popup widgets; 'man dialog' for details.

I don't do admin for a living, so look for better advice from those who do, but these are my recommendations.

Like  (1 like)

At the grub boot menu press E key from keyboard. Next select the distro want...

At the grub boot menu press E key from keyboard. Next select the distro want to boot & press the same key again. Very carefully, select the line with "kernel /boot/vmlinuz" and hit the same key again....
Now type a space and the number 3 at the end of that line, for an eg. : "kernel /boot/vmlinuz-2.6.17 ro root=/dev/hda6" (before) and after modification it looks like:
kernel /boot/vmlinuz-2.6.17 ro root=/dev/hda6 3
Now press "B" key from keyboard and it boots as u desire.

If u run this for one time then simply, type 3 on boot menu....

Like  (8 likes)

not sure about what you mean......

not sure about what you mean...
if you want to skip load X during boot, change the default runlevel on inittab.

once you're at terminal, you can do whatever you want/need
what are you looking for ?

Like  (1 like)

Open /etc/inittab file and you will see this line...

Open /etc/inittab file and you will see this line

change the value 5 to 3 .when you will change it line will look like this

save the file.
when you will restart your PC , your Pc will start in text mode by default.

Like  (1 like)
Click Here!