LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-15-2005, 07:20 PM   #1
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Rep: Reputation: 51
couple quick slack questions....


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?

So any ideas?
 
Old 03-15-2005, 07:29 PM   #2
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
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

swaret is the tool I use for updates, but there are others
http://swaret.sourceforge.net/index.php

good luck!
 
Old 03-15-2005, 07:30 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hard to say not knowing the set-up?
Are you using DHCP?

If not:
In rc.inet1.conf ... did you set the gateway to
your router? And which servers did you put
into /etc/resolv.conf ?

In other words:
if a
ping www.google.com
doesn't work, does a
ping 64.233.161.99
work for you?

My traditional way of upgrading Slack would be
to get the security fixes from ftp.slackware.com


Cheers,
Tink
 
Old 03-15-2005, 07:32 PM   #4
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
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.
 
Old 03-16-2005, 10:21 AM   #5
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
an update.....

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"
I'm not sure what to do now...any ideas?
 
Old 03-16-2005, 10:34 AM   #6
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
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.

search Belkin
nameserver 192.168.2.1

works for me anyhoo
 
Old 03-16-2005, 11:49 AM   #7
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
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.
 
  


Reply



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
Couple quick questions th3_tr00p3r Linux - Newbie 4 08-10-2005 11:06 PM
A couple of quick questions. Billy|B-A Slackware 5 01-29-2005 08:59 PM
Couple of quick questions Danno13 Red Hat 8 09-24-2004 05:43 PM
couple of quick questions, please help! meeh Linux - General 1 03-16-2004 03:19 PM
couple quick questions Marcos Van Linux - Newbie 3 05-07-2003 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:38 AM.

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
Open Source Consulting | Domain Registration