LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   slackware11 no internet conection, desperately (https://www.linuxquestions.org/questions/linux-newbie-8/slackware11-no-internet-conection-desperately-570228/)

slemany 07-17-2007 06:14 PM

slackware11 no internet conection, desperately
 
hello,

i am delighted to have obtained slackware 11 for the first tim and am ecited by its stability and behaviour, but have a little problem with connection to the internet.

during the installation network configuration, it found my network card to be VIA Technologies, KM400-8235.

i really love this copy of linux ditro so please whatever you do but don't say go back to your cr**ky windows XP.

i really need a quick solution if possible, thank you.

lord-fu 07-17-2007 06:55 PM

Hi welcome to Linux Questions and Slackware.

Could you paste seperately inside the code tags, the output of these three commands ?

lspci
lsmod
ifconfig

And also describe how you are connected to the network. Also did you set a static ip or dynamic?

slemany 07-18-2007 10:54 AM

hi here i post the output:


Quote:

What is a magician but a practising theorist?
-- Obi-Wan Kenobi

slemany@slemany:~# lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8378 [KM400/A] Chipset Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
00:08.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
01:00.0 VGA compatible controller: VIA Technologies, Inc. VT8378 [S3 UniChrome] Integrated Video (rev 01

Quote:

slemany@slemany:~# lsmod
Module Size Used by Not tainted
snd-seq-oss 23104 0 (unused)
snd-seq-midi-event 3208 0 [snd-seq-oss]
snd-seq 33552 2 [snd-seq-oss snd-seq-midi-event]
snd-pcm-oss 28928 0 (unused)
snd-mixer-oss 11928 0 [snd-pcm-oss]
CDCEther 10524 0 (unused)
printer 7520 0 (unused)
acm 5376 0 (unused)
uhci 23804 0 (unused)
ehci-hcd 17644 0 (unused)
usbcore 56812 1 [CDCEther printer acm uhci ehci-hcd]
snd-via82xx 13580 0
gameport 1388 0 [snd-via82xx]
snd-ac97-codec 68160 0 [snd-via82xx]
snd-pcm 52804 0 [snd-pcm-oss snd-via82xx snd-ac97-codec]
snd-timer 13168 0 [snd-seq snd-pcm]
snd-mpu401-uart 3120 0 [snd-via82xx]
snd-rawmidi 12224 0 [snd-mpu401-uart]
snd-seq-device 3716 0 [snd-seq-oss snd-seq snd-rawmidi]
snd 34304 0 [snd-seq-oss snd-seq-midi-event snd-seq snd-pcm-oss snd-mixer-oss snd-via82xx snd-ac97-codec snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3300 6 [snd]
snd-page-alloc 4980 0 [snd-seq-oss snd-seq snd-mixer-oss snd-via82xx snd-pcm snd-timer snd-rawmidi snd-seq-device snd]
via-rhine 11824 0
mii 2304 0 [via-rhine]
crc32 2880 0 [via-rhine]
pcmcia_core 39492 0
ntfs 50848 0 (autoclean)
ide-scsi 9392 0


Quote:

slemany@slemany:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:856 (856.0 b) TX bytes:856 (856.0 b)

slemany@slemany:~#

slemany 07-18-2007 10:56 AM

i hope the output would eplain some thing so that i can get some advices accordingly.

tank you, i appreciate your answers

lord-fu 07-18-2007 12:23 PM

Hello, the module for your network card is loaded. How are you connected to the network, are you plugged directly into a router or a cable modem? And did you set a static ip address or did you try to do dynamic during setup?

What does
Code:

ifconfig eth0 up
do for you?

If you want you can run
Code:

netconfig
again and choose dhcp.

slemany 07-18-2007 01:08 PM

Quote:

Originally Posted by lord-fu
Hello, the module for your network card is loaded. How are you connected to the network, are you plugged directly into a router or a cable modem? And did you set a static ip address or did you try to do dynamic during setup?

What does
Code:

ifconfig eth0 up
do for you?

If you want you can run
Code:

netconfig
again and choose dhcp.


i also tried the above trial and the following iswhat i got:

1/netconfig: i went through the configurations and set it to DHCP

2/ typed ifconfig eth0 up and the output is this: EthO: ERROR while setting interface flags: no such devicei just remembered that i always notice some fatal error pop ups during the installation process, i have also tried different CDs and copies but still the same< therefore i am abolutely clueless.

good luck, looking forward to see your replies they will really benefit me .

lord-fu 07-18-2007 07:57 PM

Hi, make sure you type eth0 as in zero and not O. Hmm fatal errors certainly are not good, good you be more specific and tell at what point it fails and what error message is recieved (is this during network setup)?

slemany 07-19-2007 06:35 AM

Quote:

Originally Posted by lord-fu
Hi, make sure you type eth0 as in zero and not O. Hmm fatal errors certainly are not good, good you be more specific and tell at what point it fails and what error message is recieved (is this during network setup)?

i tried both wit 0 as in Zero and O as letter o, but that is what i got.

in terms of the error messages they show during the package installations not during the network configuration.

thank you.

slemany

lord-fu 07-19-2007 08:20 AM

Ok this is perplexing me now.
If you can, please reboot. (usually shouldn't have too but sometimes it helps :\) And then immediately following, post the out put of

ifconfig -a

And please do explain how you are connected to the network and what should be providing you an ip address. Not that this is super relevant if you are getting a device not found error, but one the less will help in troubleshooting.


Also just for giigles paste the output of.

dhcpcd eth0

slemany 07-19-2007 05:02 PM

Quote:

Originally Posted by lord-fu
Ok this is perplexing me now.
If you can, please reboot. (usually shouldn't have too but sometimes it helps :\) And then immediately following, post the out put of

ifconfig -a

And please do explain how you are connected to the network and what should be providing you an ip address. Not that this is super relevant if you are getting a device not found error, but one the less will help in troubleshooting.


Also just for giigles paste the output of.

dhcpcd eth0


hi, i am connected through a cable modem, and interms of the commands here is what the outputs:

bash-3.1# ifconfig-a
bash: ifconfig-a: command not found
bash-3.1# dhcpcd eth0
bash-3.1#


as for the dhcpcd eth0, when i type it the terminal it does not do anything at all as you see output above.

here i also post the result of the nmap search:

Quote:


Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2007-07-19 22:43 BST
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns_servers
Interesting ports on slemany.localhost (127.0.0.1):
Not shown: 1674 closed ports
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 4.4 (protocol 1.99)
25/tcp open smtp Sendmail 8.13.8/8.13.8
37/tcp open time (32 bits)
113/tcp open ident OpenBSD identd
587/tcp open smtp Sendmail 8.13.8/8.13.8
6000/tcp open X11 (access denied)
Device type: general purpose
Running: Linux 2.4.X|2.5.X
OS details: Linux 2.4.0 - 2.5.20
Uptime 0.008 days (since Thu Jul 19 22:31:59 2007)
Service Info: OSs: Unix, OpenBSD

Nmap finished: 1 IP address (1 host up) scanned in 8.382 seconds

lord-fu 07-19-2007 05:49 PM

Sorry the correct command should have been
Code:

ifconfig  -a
With a space, I apologize for that.

A successful dhcpcd eth0 will not return anything to screen, silence is golden. So if you can, go ahead and run the dhcpcd command and then the ifconfig -a command and post the results.

basically what I am trying to accomplish is get an ip address from you cable modem, and then view the ip address and such with the ifconfig command, that is if your network card is even found yet.
Is your network card an onboard?

slemany 07-20-2007 03:50 AM

hi, below is the output can you guide me accordingly thank you:

Quote:

bash-3.1# dhcpcd eth0
bash-3.1# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0C:6E:F0:F6:13
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:4720 (4.6 KiB)
Interrupt:11 Base address:0xec00

eth1 Link encap:Ethernet HWaddr 00:02:8A:10:E1:E1
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

bash-3.1#
by the way i have a couple of more questions incase they explain more about my problems:
1/ i am using konqueror browser because there is not any firefox browsers installed.

2/ when i login at boot,i type startx is this the only way for loggin in or i should do it in a different way.

3/ i have two hard disks on the same pc, on one of them i only have windows xp installed but when i try to view the files on it, whilst i am in slackware(which is on the second hard disk), i can't do so, i have also tried mounting the hard disk by right clicking on the drive and selecting mount but it does not work.

thank you for your help

lord-fu 07-20-2007 07:56 AM

Hi the other questions you ask would need another thread started after we fix your networking items. I also would post it in the Slackware forums here on LinuxQuestions, as it is the official Slackware forums and the guys/girls there love to help.

I notice now we have eth0 and eth1 but neither are up. Are you sure you have the cable plugged into the right ethernet connection? The dhcpcd eth0 should have given you an ipaddress. Please change the cable to the other network card and rerun and post the results of these commands.

Code:

ifconfig eth0 up
just in case

Code:

dhcpcd eth0
Code:

ifconfig -a

slemany 07-20-2007 05:32 PM

hi, soory to bother you again below is the output but unfortunately it does not seem to have showed anything different to the previous outputs:


Quote:

bash-3.1# dhcpcd eth0
bash-3.1# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0C:6E:F0:F6:13
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:4720 (4.6 KiB)
Interrupt:11 Base address:0xec00

eth1 Link encap:Ethernet HWaddr 00:D0:59:F4:08:39
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

bash-3.1#

i am sorry for the question in the previous post it was only to make it more clear how i normally log in and i thout they might be related to this thread somehow.

thank you

slemany 07-20-2007 05:46 PM

i would also like to mention that i am connected to the internet via USb cable modem i really forgot to ask from the beginning of the thread because i have installed mandriva and fedora 7 on the same pc that i am using now but did not have any problems with internet connections therefore i am now doubting whether ethernet is different to USB interms of slackware ?

Nylex 07-21-2007 01:27 AM

If you're using USB, you'll need a driver for your modem instead of for your network card. That'll be the same with any distro, but perhaps Fedora and Mandriva include those drivers in their kernels (I don't know).

General Failure 07-21-2007 01:53 AM

He already has that driver, it's CDCEther. Slemany, try to disable your onboard network adapter through BIOS. That would be the easiest way to solve the problem. Then run netconfig.

For runlevel 4, edit /etc/inittab to have it say
Code:

id:4:initdefault:
instead of
Code:

id:3:initdefault:
For the harddisks, edit /etc/fstab setting the user option for that drive.

Install firefox from either mozilla.com or your favorite slackware mirror.

Hope that helps...

slemany 07-21-2007 04:26 AM

hi, i am glad to see that there are more people to help me now, i thank everyone.

my problems is i am not well familiar with linux, so when you say
Quote:

Slemany, try to disable your onboard network adapter through BIOS
i would kindly ask you for a brief guidance as how to do this.

and honestly i also don't know what runlevel4 is and where to type
Quote:

edit /etc/inittab
, is it going to be in a terminal or at the computer startup?, sorry but i need a bit of more explanations.

thank you

Nylex 07-21-2007 05:06 AM

You don't type "edit /etc/inittab", you do it (i.e. it's an instruction to edit the file /etc/inittab). You can use any text editor to do this (vi, Emacs, pico, Kate, KWrite for example). You'll need to become root before editing the file. In a terminal you can run "su" (without the quotes) and then enter your password when prompted. Then run "editor /etc/inittab", replacing editor with the whatever you want to use. Note that executable names are usually lowercase, so if you want to use KWrite, you'd run "kwrite /etc/inittab". Also note that if you don't have a graphical user interface running at the moment, you'll not be able to use KWrite or Kate (and you'll also not be able to use Emacs if you don't have the emacs-nox package installed).

slemany 07-21-2007 09:48 AM

Quote:

Originally Posted by Nylex
You don't type "edit /etc/inittab", you do it (i.e. it's an instruction to edit the file /etc/inittab). You can use any text editor to do this (vi, Emacs, pico, Kate, KWrite for example)

thank you for the information but i am really confused because i triead the kwrite and was not sure what to type even in the terminal i typed su but nothing happened.

i would appreciate if someone could explain to me to do it correctly.

Nylex 07-21-2007 09:54 AM

After running su, did you enter your root password? What happens when you type "kwrite /etc/inittab" (without quotes and obviously, you need to press Enter!).

Nylex 07-21-2007 09:55 AM

Post any error messages if they occur.

lord-fu 07-21-2007 01:43 PM

Hey guys thanks for stepping in.

slemany 07-21-2007 06:58 PM

Quote:

root@slemany:~# su
root@slemany:~# kwrite/etc/inittab
bash: kwrite/etc/inittab: No such file or directory
root@slemany:~# Kwrite/etc/inittab
bash: Kwrite/etc/inittab: No such file or directory
ABOVE IS THE OUTPUT AS YOU SEE, I HAVE TRIED BOTH SMALL AND CAPITAL LETTER WHILST TYPING KWRITE JUST BECAUSE I WAS NOT SURE.

I ALSO WOULD LIKE TO SAY THAT THERE IS KWRITE INSTALLED ON MY SLACXKWARE11 SYSTEM INCASE YOU THINK IT IS NOT INSTALLED.

slemany 07-21-2007 07:01 PM

I AS USUAL FORGOT TO TELL YOU THAT WHEN I TYPED SU NOTHING CAME UP AND DID NOT ASK FOR ANY PASSWORDS.

Nylex 07-22-2007 12:47 AM

You were already root, so you didn't need to type su (I suggest you add a user account for yourself for normal use and only use root when necessary). Secondly, I did say executables were lowercase You need a space between the executable and the filename, obviously otherwise the shell is going to think it's looking for "kwrite/etc/inittab". How does it know otherwise?

Please don't type in all capitals, as it looks like you're shouting.

slemany 07-22-2007 01:03 PM

hi, i apologise for not paying good attentions to your post below
Quote:

did say executables were lowercase You need a space between the executable and the filename
this was because i did not notice the space between the file and the slash.

i have now come back with this output: see below please:

Quote:

#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Version: @(#)inittab 2.04 17/05/93 MvS
# 2.10 02/10/95 PV
# 3.00 02/06/1999 PV
# 4.00 04/10/2002 PV
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified by: Patrick J. Volkerding, <volkerdi@slackware.com>
#

# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot

# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:

# System initialization (runs when system boots).
si:S:sysinit:/etc/rc.d/rc.S

# Script to run when going single user (runlevel 1).
su:1S:wait:/etc/rc.d/rc.K

# Script to run when going multi user.
rc:2345:wait:/etc/rc.d/rc.M

# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t5 -r now

# Runlevel 0 halts the system.
l0:0:wait:/etc/rc.d/rc.0

# Runlevel 6 reboots the system.
l6:6:wait:/etc/rc.d/rc.6

# What to do when power fails.
pf::powerfail:/sbin/genpowerfail start

# If power is back, cancel the running shutdown.
pg::powerokwait:/sbin/genpowerfail stop

# These are the standard console login getties in multiuser mode:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

# Local serial lines:
#s1:12345:respawn:/sbin/agetty -L ttyS0 9600 vt100
#s2:12345:respawn:/sbin/agetty -L ttyS1 9600 vt100

# Dialup lines:
#d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
#d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100

# Runlevel 4 used to be for an X window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all
# the time. Thus, there is now one getty opened on tty6. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something
# happens to X.
x1:4:respawn:/etc/rc.d/rc.4

# End of /etc/inittab
i am in need of your help and i badly need internet connections on my slackware to have a proper taste of it.

many thanks

slemany 07-22-2007 01:08 PM

Quote:

Originally Posted by General Failure
He already has that driver, it's CDCEther. Slemany, try to disable your onboard network adapter through BIOS. That would be the easiest way to solve the problem. Then run netconfig.

For runlevel 4, edit /etc/inittab to have it say
Code:

id:4:initdefault:
instead of
Code:

id:3:initdefault:
For the harddisks, edit /etc/fstab setting the user option for that drive.

Install firefox from either mozilla.com or your favorite slackware mirror.

Hope that helps...

hi, i appreciate some more explanations about your post above because my lack of knowledge of using linux i could not properly understand what you have suggested.

thanks alot.

slemany 07-22-2007 05:14 PM

hi, where are you friends? i am sure you can help me.

i am still waiting for your useful information.
thank you.

slemany.

Nylex 07-22-2007 05:25 PM

What don't you understand?

slemany 07-22-2007 06:07 PM

Quote:

Originally Posted by Nylex
What don't you understand?


if you look at post #27 you would find what you asked me to do but after that you did not follow it, that is why i do not know what to do now to get connected to the internet with on my slackware11 OS.
as it was suggested be GENERAL FAILURE to change id:3:initdefault:
to id:4:initdefault: but you see in post it is already id:4:initdefault: so i also do not understand his way of dianling onboard network adapter, and i don't know how would this resolve my network connection problems.

thank you so much.

slemany 07-22-2007 06:10 PM

please ignore post #31 as it is mistyped and consider the following:



if you look at post #27 you would find what you asked me to do but after that you did not follow it, that is why i do not know what to do now to get connected to the internet with on my slackware11 OS.
as it was suggested be GENERAL FAILURE to change id:3:initdefault:
to id:4:initdefault: but you see in post it is already id:4:initdefault: so i also do not understand his way of disabling onboard network adapter, and i don't know how would this resolve my network connection problems.

thank you so much.

Nylex 07-22-2007 11:47 PM

Changing your default runlevel (or not, in your case) has nothing to do with your network card. If you want to disable you onboard card, that will need to be done in the BIOS. When you switch on your machine, you should see something like "Press <key> to enter setup" and that's the key you need to press.

Are you connected by Ethernet or USB?

slemany 07-23-2007 12:40 AM

hi, i am connected by usb

thank you

Nylex 07-23-2007 02:07 AM

I think you need to configure eth1, rather than eth0 in that case. This page suggests that (please note that it's not specific to Slackware, so some things will be different).

General Failure 07-23-2007 02:42 PM

Slemany, by disabling your onboard network in the way Nylex explained above you automatically make the usb network eth0 instead of eth1. Then you can configure the network in the standard way.


All times are GMT -5. The time now is 12:35 PM.