LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't get online (https://www.linuxquestions.org/questions/linux-networking-3/cant-get-online-339945/)

thomasfingram 07-04-2005 01:54 PM

Can't get online
 
I am very new to Linux. I set up Slackware 10.1 and by default (I installed everything) it doesn't get online. I have it connected to a router (Linksys RT31P2) and was only able to get online after opening a console, logging in as root and typing 'dhcpcd'. When I rebooted, it didn't get a new IP address. I can't have to renew the IP address manually everytime the machine boots up! (This computer is for my sister.) How do I get around this?

Btw I have a Windows machine also attached to this router, and it can get online just fine. Also I'd like to be able access a Linux share (/shared) from both machines.

zhangmaike 07-04-2005 02:44 PM

dhcpcd will have to be run somehow, every time the computer reboots. If you don't want to do this manually (that'd get old quickly) you can try to use the Slackware network configuration tool. (As root, run netconfig)

If that doesn't work for any reason, you can make dhcpcd run automatically by adding the line "dhcpcd" to the end of /etc/rc.d/rc.local. You can do that, as root, with:
Code:

echo "dhcpcd" >> /etc/rc.d/rc.local
The prefered way would be to use netconfig, though.

lasindi 07-04-2005 08:41 PM

zhangmaike addressed your first issue (DHCP), but you'll need to use Samba to do file sharing between Windows and Linux. An excellent tutorial I came across is at http://www.samba.netfirms.com/. The tutorial explains how to write your own /etc/samba/smb.conf, but there is also an example smb.conf included with Slackware with lots of comments to help guide you as you customize it.

lasindi

pvs 07-05-2005 01:38 AM

dhcpcd usually starts when in network configuration is setting to get ip addres automatically


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