LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-28-2008, 05:14 AM   #1
hongnguyen70
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Rep: Reputation: 15
configure the server to boot to single user mode


Hi there

I just re-installed my server cause I could not solve the problem I had with that user Root. Can anyone of you tell me how to configure my server to boot direct to single user mode every time I restart my server? at the moment it goes into the other mode unless I move the cursor down. It seems easy but I could not find the answer.

Thanks in advance

Hong
 
Old 01-28-2008, 05:58 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

Why do you want to do this on every boot? Linux is by nature a multiuser environment.

Single user mode does exist, but you end up with a very limited system (only root is allowed to log in, no network, no X etc). It (single user mode) is there for system upgrades/emergencies etc, and you hardly ever need it.

Take a look at the /etc/inittab file, the line that read something like this: id:3:initdefault: takes care of the environment. The number (3 in the example) tells what runlevel you want.

Take a look here for an explanation of the individual runlevels.

Hope this helps.

Last edited by druuna; 01-28-2008 at 07:03 AM.
 
Old 01-28-2008, 06:49 AM   #3
hongnguyen70
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Original Poster
Rep: Reputation: 15
single user mode

Ok
I am new to linux and not sure about the whole thing. I thought that being linux it should be default to single user mode ( command line ) and it is better to be at command line to do very thing
What you mean by no network no X in single user mode? does it mean that it is not connected to network?
Back to my question if I still want to change to boot to single user mode by default, should I edit the inittab file? how can i do it?

Thanks
 
Old 01-28-2008, 07:15 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

The runlevels that are used most are 5 (some use 4 instead) and 3.

3 - Multi-User Mode with Networking (CLI environment)
5 (4) - same as runlevel 3 + display manager (automatic GUI environment)

Runlevel 5 (grafic environment) is most often used as default by most distro's.

As stated before runlevel 1 (Single user mode) is very limited (Does not configure network interfaces, start daemons, or allow non-root logins).

I know it's dangerous to assume things, but I do believe that you want/need runlevel 3 and not single user mode (RL 1).

If you want to change te default runlevel edit the /etc/inittab file, look for the id:5:initdefault: line and change the 5 into the runlevel you need/want.

To start with runlevel 3 it should look like this: id:3:initdefault:
To start in single user mode: id:1:initdefault:

Hope this clears things up a bit.
 
Old 01-29-2008, 04:55 AM   #5
hongnguyen70
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Original Poster
Rep: Reputation: 15
Which linux distributor should I learn/use?

Thank you for you reply, I understand it now. I have a general question and would be gratefull if you could help me. I am learning linux as my additional skill and I am very confused. For the newbie which distributor of linux should I choose? what is the benifit? Also my boss said I can do the FTP server and I would like to know which version is good for the FTP?

Many thanks
 
Old 01-29-2008, 08:35 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

Which distro you want/need is not as easy to answer as one thinks.

If this is a production environment ('work') you could go for red hat or Suse. Both have good support and a lot of applications have packages that can integrate into these 2 distro's. The 'downside' is the pricing (which is mostly for support).

If you are looking for a distro to use at home, you could choose fedora or openSuse (both are the free versions of Red Hat and Suse). This will give you an environment that is like the one you (possibly) use at work. Both are not the easiest to use if you do not have any linux experience.

If you don't care about work, you could try Ubuntu at home. An easy to use distro, especially if you are new at things.

About the ftp server: There are many different flavors available. I prefer vsftpd and/or proftpd. The first one is highly configurable and has a good security record.

Some distro's use a default ftp server, but this can be changed to the one you (your company) prefers.

Hope this clears things up a bit.
 
Old 01-29-2008, 10:40 AM   #7
hongnguyen70
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Original Poster
Rep: Reputation: 15
different distro

Thanks again

I just installed ubuntu and it is very user friendly, I think I will install at home to get the idea. I am a bit confused about when do we need to go to command line and when we should go to the user friendly screen? All I have heard in the past that linux ( unix ) is to do with commands ( like Dos ) but after seeing ubuntu and I am not sure.

Also what you mean by vsftpd and/or proftpd? are they also ones of the distro?

And how about the one which use ftp as default? you mean I dont need to do any thing for it to act as ftp server?

Thanks

H
 
Old 01-29-2008, 12:15 PM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Quote:
Originally Posted by hongnguyen70 View Post
Thanks again
You're welcome.

Quote:
I just installed ubuntu and it is very user friendly, I think I will install at home to get the idea. I am a bit confused about when do we need to go to command line and when we should go to the user friendly screen? All I have heard in the past that linux ( unix ) is to do with commands ( like Dos ) but after seeing ubuntu and I am not sure.
All configuration can be done by GUI's (on most modern distro's). There's no real need to use the command line. The downside of using a GUI is that you don't know what happens under the hood (which files are used/created/edited were are files placed etc).

If you are new at all this use the GUI's first and start reading the documentation that goes with the service you installed. Knowing were to find the configuration files and logs and how to stop/start a service by hand (read: from the command line) is a very good thing (essential in my opinion). But you do need a bit of a feeling about the system you are working on and how things are ordered.

Quote:
Also what you mean by vsftpd and/or proftpd? are they also ones of the distro?
Vsftpd and proftpd are 2 (of many) possible packages to set up a ftp server. I truly don't know which one Ubuntu uses.

Quote:
And how about the one which use ftp as default? you mean I dont need to do any thing for it to act as ftp server?
The ftp program is a default client to connect to ftp sites. It's very basic and most people prefer other ftp clients (mostly gui based). If you need to set up a ftp server you do need to set it up (and probably install it).

Hope this helps.
 
Old 02-26-2008, 07:03 AM   #9
hongnguyen70
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Original Poster
Rep: Reputation: 15
Problem with fedora 8

Hi Druuna

First at all I would like to thank you for all of your reply and your time. I have been off work and I am now back with a different problems. I have decided to install Fedora 8 on my laptop at home and on my desktop at work.
At home on my laptop I am having problem to connect to my wireless. To be honest I am not sure what to do. When I open the network configuration under Devices I can see teh status is Unactive. When I try to activate it it could not and keep asking me to check the cable. My wireless network is working cause I connect with laptop/windows ok. Also Where can i see the available network so I can connect after sorting out my wireless card.
On my laptop at home and the desktop at work, when I am at the terminal and try to use iwconfig and ifconfig command, I receive the message
command not found
What's that mean?
On my desktop at work, I can see the NIC status is active and when I type ifconfig, it still show command not found.

Please help
 
Old 02-26-2008, 05:55 PM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

I'm not a fedora user and can't help you with this one.

I would suggest opening a new thread in the fedora section of this forum.
 
Old 02-26-2008, 06:56 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
ifconfig is not normally a user-level cmd, so it's not in your $PATH (search list for cmds).
you can either:
1. use the full path: /sbin/ifconfig
Or
2. switch to root eg
su -
then
ifconfig

To clarify prev posts, best to start with runlevel 5 (networking, X (ie GUI) etc).
Open up an xterm (aka terminal window) when you want the cmd line.
 
Old 02-27-2008, 04:41 AM   #12
hongnguyen70
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Original Poster
Rep: Reputation: 15
ifconfig: command not found

Thank you for your reply

I did you the full path and also switch to the root before I posted the question. I am not sure why it does not work. I went in the /sbin directory and then type ifconfig, it did come up with the same message

Also when I tried to look for ifconfig, I found it in /sbin so it is there, it just does not execute.
I did open the terminal to do this.

I just tried to execute other commmand for example ifup and a few other inside /sbin, it all say command not found

Does that mean there is some thing wrong? maybe it did not install properly but how come it happen with my laptop at home the same

Please help
 
  


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
boot to GUI problem want grub boot to single user mode. hocheetiong Linux - Newbie 1 09-26-2007 07:41 PM
configure linux to boot in single processor mode dlnlinux Linux - General 1 08-07-2005 04:53 AM
How do you boot in to single user mode in knoppix? Thaidog Linux - General 1 05-16-2005 02:42 PM
How to boot in single-user mode in Slackware 9.1 rsamurti Slackware - Installation 8 05-13-2004 05:03 PM
single-user mode can't boot eye Red Hat 1 11-19-2003 05:08 AM


All times are GMT -5. The time now is 04:23 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