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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
06-13-2012, 01:14 PM
|
#1
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
How do I start network before login debian squeeze
What I would like to do is have network available after boot so that I can connect via ssh, but ssh is not available is network connection until after login.
I had the same problem a few years back as stated in this post in which the links are now dead. http://www.linuxquestions.org/questi...omaine-830908/
Googling doesn't return any links that I've found useful as I thought last time I had to edit the /etc/init.d file.
|
|
|
06-13-2012, 05:36 PM
|
#2
|
Member
Registered: Jul 2008
Location: Tilburg NL
Distribution: Slackware 14.2 ciurrent, kernel 3.18.11
Posts: 270
Rep:
|
When I boot my Slackware systems. the network is up and running when the logon is shown on screen. AFAIK this is standard for all linuxes.
|
|
|
06-13-2012, 07:35 PM
|
#3
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,425
|
What fruttenboel said; network services normally start well before login is allowed.
Looking at a RHEL5 server here
in /etc/rc3.d
|
|
|
06-13-2012, 10:23 PM
|
#4
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
Original Poster
|
During startup it shows what services are being activated including network but, unless I log into the physical computer the network is not accessible via ssh.
Last edited by EDDY1; 06-13-2012 at 10:44 PM.
|
|
|
06-13-2012, 11:55 PM
|
#5
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,425
|
You'd best show us an example; it sounds like you are trying to make an automated cxn from this system to another, before networking is fully up.
|
|
|
06-14-2012, 12:06 AM
|
#6
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
Original Poster
|
Another note if I log out of gnome the network is no longer available.
Last edited by EDDY1; 06-14-2012 at 12:09 AM.
|
|
|
06-14-2012, 04:59 AM
|
#7
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
Original Poster
|
I also want to add that I can only ssh into machine after logging into user account & only while user is logged on.
Also the vncviewer can only see the machine when the user is logge in
|
|
|
06-14-2012, 08:59 PM
|
#8
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,769
|
I don't know if this is really relevant, but I can ssh/scp into my Debian box without a local user's being logged in. On reboot, I can do it as soon as the login prompt appears.
Note that it is using wired networking, a static ip, and no display manager, so it may not be a comparable situation. However, if I remember correctly, I was able to do this before I made the display manager go away.
|
|
|
06-14-2012, 09:23 PM
|
#9
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Have you configured your network in /etc/network/interfaces or do you use Gnome's NetworkManager?
|
|
|
06-14-2012, 10:26 PM
|
#10
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
Original Poster
|
@TobiSGD
Since I haven't recalled what I did to get the network to be available on boot on my Dell Optiplex, I only have the default network setup on my Amd machine from new install.
I think I need to take the old Dell out of storage to see what I changed to make the network available at boot.
Last edited by EDDY1; 06-14-2012 at 10:30 PM.
|
|
|
06-14-2012, 10:36 PM
|
#11
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
It is actually pretty simple: Just post the contents of /etc/network/interfaces and have a look at the settings of your Network Manager, if you have one installed (like wicd or Gnome NetworkManager).
|
|
|
06-14-2012, 10:42 PM
|
#12
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
Original Poster
|
I just reinstalled os selecting only ssh server, rebooted then used tasksel to install desktop, logged into my router & was able to ping. So now I atleast know it's getting ip address at boot, so I have to go in & configure to accept connection from my laptop.
|
|
|
06-14-2012, 11:01 PM
|
#13
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
Original Poster
|
Well I didn't figure out how to do it manually but letting tasksel do it from the beginning definately worked.
The only issue I had was that I needed to remove the old keys, then I was able to login.
I really would like to know what is different as these 2 files haven't changed.
Quote:
topgun2@Perfectionplus1:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
#NetworkManager#iface eth0 inet dhcp
topgun2@Perfectionplus1:~$ cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
topgun2@Perfectionplus1:~$
|
It has to have something to do with /etc/init.d
Last edited by EDDY1; 06-14-2012 at 11:07 PM.
|
|
|
06-15-2012, 03:59 AM
|
#14
|
Member
Registered: Jul 2008
Location: Tilburg NL
Distribution: Slackware 14.2 ciurrent, kernel 3.18.11
Posts: 270
Rep:
|
I think you need to change inetd.conf. For Linux, the network is so essential that it is ALWAYS running by default. My inetd.conf file looks as follows:
Code:
# These are standard services:
#
# Very Secure File Transfer Protocol (FTP) server.
#ftp stream tcp nowait root /usr/sbin/tcpd vsftpd
#
# Professional File Transfer Protocol (FTP) server.
ftp stream tcp nowait root /usr/sbin/tcpd proftpd
#
# Telnet server:
#telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
#
# The comsat daemon notifies the user of new mail when biff is set to y:
comsat dgram udp wait root /usr/sbin/tcpd in.comsat
#
# Ident service is used for net authentication
auth stream tcp wait root /usr/sbin/in.identd in.identd
#
See also various setups for various machines on the webpage
http://fruttenboel.verhoeven272.nl/l...eryllium2.html
Other linux, same idea.
|
|
|
06-15-2012, 05:12 AM
|
#15
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
Original Poster
|
My ssytem doesnt have inet.d.conf
I'm now looking in rc.d files
My system was booting rcS.d & I noticed that it's the only 1 that rmnologin
|
|
|
All times are GMT -5. The time now is 12:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|