LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-01-2013, 08:06 PM   #1
austinramsay
Member
 
Registered: Jul 2007
Distribution: Solaris 10/09
Posts: 260

Rep: Reputation: 30
How to make slackware setup network interfaces on boot?


I'm new to slackware and I've read that I needed to configure /etc/rc.d/rc.inet1.conf for all my network settings. I need eth0 to be set at 192.168.200.105, netmask 255.255.255.0, and my wlan0 to be set to essid dlink, and use dhcp on boot. What do I need to do? Here is my /etc/rc.d/rc.inet1.conf attached. Thanks!
Attached Files
File Type: txt rc.inet1.txt (3.8 KB, 12 views)
 
Old 10-01-2013, 11:50 PM   #2
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 249

Rep: Reputation: 40
Just leave rc.inet1.conf as is.

1 Plug in your ethernet cable
2 go to root terminal and type netconfig
3 Answer the questions as you wish,and enter, You should now be on the internet.

To get networkmanager working for wireless!
1 go to cd /etc/rc.d
2 ls to make sure you are in the correct directory.
3 Make it executable chmod +x rc.networkmanager.
4 now go to networkmanager in the taskbar and click and choose your network and enter password

You might to reboot after the above!
 
Old 10-02-2013, 12:30 AM   #3
NoStressHQ
Member
 
Registered: Apr 2010
Location: Lausanne - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware Leet - 32/64bit
Posts: 280

Rep: Reputation: 94
Quote:
Originally Posted by zrdc28 View Post
You might to reboot after the above!
Or just restart the right service... (But I never remember which one )...

Code:
# /etc/rc.d/rc.inet1 restart
# /etc/rc.d/rc.inet2 restart
# /etc/rc.d/rc.networkmanager restart
It's faster than a reboot even if restarting both 'inets' is overkill... If someone knows which one is sufficient, you're welcome .

(Of course replace 'restart' by 'start' if it was not yet started...)

Cheers.

Edit: maybe I didn't really understood the question, but as zrdc wrote, any script which is "executable" in /etc/rc.d/ is ran on startup (=boot) so you're ok after that...

Last edited by NoStressHQ; 10-02-2013 at 12:32 AM.
 
Old 10-02-2013, 12:35 AM   #4
NoStressHQ
Member
 
Registered: Apr 2010
Location: Lausanne - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware Leet - 32/64bit
Posts: 280

Rep: Reputation: 94
Quote:
Originally Posted by zrdc28 View Post
1 go to cd /etc/rc.d
2 ls to make sure you are in the correct directory.
3 Make it executable chmod +x rc.networkmanager.
And changing directory is useless, if you fully qualify the file name as a full absolute path... Bash completion (press tab) helps...

Code:
# chmod +x /etc/rc. <tab>
# chmod +x /etc/rc.d/rc.netw <tab>
# chmod +x /etc/rc.d/rc.networkmanager
You CAN'T do any mistake... (Tab twice do an equivalent of "ls" proposing alternatives if there are ambiguities...)
 
Old 10-02-2013, 12:44 AM   #5
austinramsay
Member
 
Registered: Jul 2007
Distribution: Solaris 10/09
Posts: 260

Original Poster
Rep: Reputation: 30
Thank you! Out of curiosity, and for the sake of needing the knowledge when I don't have a gui, how would you do this manually?
 
Old 10-02-2013, 12:50 AM   #6
NoStressHQ
Member
 
Registered: Apr 2010
Location: Lausanne - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware Leet - 32/64bit
Posts: 280

Rep: Reputation: 94
I don't really understand your question, as everything we wrote can (must) be done in a terminal (and can even be done remotely through ssh once setup).

What do you mean by "manually" ?

Edit: all these are done in the text terminal, by default when you start slackware after an install... Log as root/or if logged as a simple user issue a "su" command:

Code:
YourPrompt $ su
Enter root password...
RootPrompt # ...
a '$' prompt is for a 'casual' user, as '#' means you're root, it's a hint when you see command snippets...

If you're inside a DE, simply open any terminal application and do the same thing...

Last edited by NoStressHQ; 10-02-2013 at 12:55 AM.
 
Old 10-02-2013, 12:52 AM   #7
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,438

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
From the SlackDocs wiki.
http://docs.slackware.com/slackware:...e_your_network
and linked from the above but more directly relevant.
http://alien.slackbook.org/dokuwiki/...eless_networks
 
Old 10-02-2013, 12:58 AM   #8
NoStressHQ
Member
 
Registered: Apr 2010
Location: Lausanne - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware Leet - 32/64bit
Posts: 280

Rep: Reputation: 94
So you can read the blend of zrdc28's answer and mine as:

If your a simple user, go as root
Code:
$ su -
Password...
#
Then as root:
Code:
# netconfig
(There will be a nice ncurse interface... then done)
For wifi (still as root)
Code:
# chmod +x /etc/rc.d/rc.networkmanager
# /etc/rc.d/rc.networkmanager start
That's it...

Edit: oh maybe you meant to choose the wifi if you don't have the task bar ? There's a command line tool, I don't remember the name, try typing "net" and completion with <tab>... And read the doc, it might be pointed inside (See allend answer )
Edit2: or "wicd..." something...

Last edited by NoStressHQ; 10-02-2013 at 01:02 AM.
 
Old 10-02-2013, 05:54 AM   #9
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,244

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
This command:
Code:
nm-applet
typed as a regular user, will bring a nice widget on your desktop or windows manager with which you can manage all your network interfaces (wired and wireless).
 
Old 10-02-2013, 01:55 PM   #10
austinramsay
Member
 
Registered: Jul 2007
Distribution: Solaris 10/09
Posts: 260

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by NoStressHQ View Post
So you can read the blend of zrdc28's answer and mine as:

If your a simple user, go as root
Code:
$ su -
Password...
#
Then as root:
Code:
# netconfig
(There will be a nice ncurse interface... then done)
For wifi (still as root)
Code:
# chmod +x /etc/rc.d/rc.networkmanager
# /etc/rc.d/rc.networkmanager start
That's it...

Edit: oh maybe you meant to choose the wifi if you don't have the task bar ? There's a command line tool, I don't remember the name, try typing "net" and completion with <tab>... And read the doc, it might be pointed inside (See allend answer )
Edit2: or "wicd..." something...
Thanks! Yeah sorry shouldve been more specific about that! Yes i meant the wifi without having a task bar. Also one more question, so I have my eth0 thats connected to my sun t2000 server so it needs to be set on a static ip on boot. I need it to be set at 192.168.200.105. How can I do that? Is that with netconfig also?

Last edited by austinramsay; 10-02-2013 at 01:57 PM.
 
Old 10-02-2013, 02:13 PM   #11
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,244

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Quote:
Originally Posted by austinramsay View Post
How can I do that? Is that with netconfig also?
Yes.
 
  


Reply

Tags
boot, network, rc.inet1.conf, settings


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
Any way to setup multicast to route out 2 different network interfaces? mav1c Red Hat 1 08-15-2013 09:52 PM
how to make a network interfaces configuration immutable? jkbrown Linux - Networking 1 03-24-2011 07:39 PM
Two network interfaces on Slackware djake Linux - Networking 4 06-29-2008 04:04 PM
linux boot failed after configuring network interfaces in the boot procss domeili2006 Linux - General 1 07-14-2006 05:23 AM
Manual Network Setup Works, /etc/network/interfaces doesn't verdeboy2k Linux - Wireless Networking 0 05-31-2006 06:56 PM


All times are GMT -5. The time now is 05:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration