SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
1st off I agreed to start learning Linux better through command line which is what I am doing now. I had used Fedora for a while (mainly as GUI desktop) and now I giving command line a shot with a completely stripped down no-GUI form of Slackware. Only planning to use it as a home server (Samba, MySQL, PHP, etc.). I have installed what I needed a few days back and now I am running into a few problems.
Currently I have set my IP address and stuff through command line but I am running into a problem...I can ping everything on the network but I can't actually access the internet. I have looked through a couple various conf files...one was rc.inet1.conf and entered in the necassary values there but still nothing. Granted I won't be using this machine much web browsing but I'd still like to be able to download updates.
And that leads me to another question...what is the command for updates on Slackware?
try
# netconfig
to configure internet access
If this doesn't do the job, take a look at /etc/resolv.conf and edit if necessary.
# ifconfig
will show you active network connections
route -n will show your routing table. if you're getting an ip address but not able to connect to the internet, you probably need to add a default gateway:
route add dw gateway 192.168.1.1
should do the trick, iirc... (and assuming you're using a router as a gateway) you can also set that in rc.inet1.conf i believe.
for installing/updating i mostly use slackpkg. it's available on the slackware cd's, just install it, uncomment one of the servers in /etc/slackpkg/mirrors, and you're ready to go.
Ok, every PC on our network has a static IP...no DHCP enabled. Normally in this case I've always had to manually enter in DNS servers. I have noticed on Windows that when I do this no DNS suffix shows up in ipconfig even though we can access the internet just fine. I'd figure this will work for Linux as well. I have manually entered in the DNS servers in netconfig (well 1 of them) as well as everything else correctly...but still no go. As you said Tinkster...I can't ping by domain name but I can ping IP's fine.
Here is what is in resolv.conf (I added the 2nd server in there)
Quote:
search 63.67.121.4 208.236.38.3
And here is rc.inet1.conf
Quote:
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").
# Config information for eth0:
IPADDR[0]="192.168.0.201"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""
# Default gateway IP address:
GATEWAY="192.168.0.1"
# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"
You should check out this link http://publibn.boulder.ibm.com/doc_l...esolv.conf.htm
I just have a search entry, which is the name of my router, and a nameserver entry, which is my default gateway in resolv.conf.
Hey hey it works....thanks dcdbutler. I'm sure I'll be back with more questions down the road.
Really the more I have used command line the more I have grown to like it...still haven't done a lot yet, but so far I'm slowly getting the hang of it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.