LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Litle dirty web server project ! (https://www.linuxquestions.org/questions/slackware-14/litle-dirty-web-server-project-4175420238/)

Bller 08-04-2012 12:41 PM

I managed to install slack 10.1 on the small hdd, it boots, loges in, everything fine, but it can`t find my network, i tried netconfig`ing several times, it seems it can`t find my ethernet card i installed, and when i start the pc, i get a weird error stating something with non hp signed pci hardware, i`m guessing it won`t accept my realtek ethernet card maybe?

LE :

I managed to make eth0 to list, but now when i give ifconfig, i have eth0 and loopback connection, but still when i ping something it won`t find host

NyteOwl 08-04-2012 01:27 PM

Obsolyte.com ran for years on an old Sparc IPX. Lots lof life left in old hardware. That machine is comparable to many home routers and some media boxes. It ahs more power than many alarm system controller/monitors.

I still have my 8MHz 8088-2 in sue with it's whopping 768KB of ram. Triple monitor too, CGA color and monochrome, and MDA monochrome. It even has LAN and voice synth capability. :)

Bller 08-04-2012 02:44 PM

any insight on how to make the internet to work ? i tried searching some info around and found a thing or too, but nothing to conclusive. The modprobe for the eth0 card is started, it shows up on ifconfig first, if i try to ping my router it says network is unreachable. I`m quite stuck for the moment.

astrogeek 08-04-2012 03:13 PM

Can you post the output of route and ifconfig?

You probably just need to set up /etc/resolv.conf and add a default gateway device/IP.

Bller 08-04-2012 03:38 PM

Quote:

Originally Posted by astrogeek (Post 4745966)
Can you post the output of route and ifconfig?

You probably just need to set up /etc/resolv.conf and add a default gateway device/IP.

in ifconfig i have :

eth0 and lo configured by netconfig

sorry i can`t paste the output, it ain`t on this machine

and in route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.1 * 255.255.255.0 UH 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

but here is the fun part, in /etc/resolv.conf i have 2 nameservers :

namserver 60.173.48.18
nameserver 94.53.12.30

these seem to me weird, i tried changing them to

namserver 127.0.0.1
nameserver 192.168.1.1

but didn`t do nothing.

LE

I managed to make it ping it`s own adress, but still can`t ping the router adress

Bller 08-04-2012 04:45 PM

Job done guys ! I swapped the ethernet card pci slot and it all worked, and apache works as a charm, could you believe that ! :)_ haha, i`m so proud of myself

astrogeek 08-04-2012 04:46 PM

Quote:

Originally Posted by Bller (Post 4745981)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.1 * 255.255.255.0 UH 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

but here is the fun part, in /etc/resolv.conf i have 2 nameservers :

namserver 60.173.48.18
nameserver 94.53.12.30

these seem to me weird, i tried changing them to

namserver 127.0.0.1
nameserver 192.168.1.1

I take it 192.168.1.1 is the router address?

What is inet addr: from ifconfig on eth0?

Did you set static IP or are you getting it by DHCP?

[EDIT]
You beat me to it!
[/EDIT]

Bller 08-04-2012 04:52 PM

Quote:

Originally Posted by astrogeek (Post 4746018)
I take it 192.168.1.1 is the router address?

What is inet addr: from ifconfig on eth0?

Did you set static IP or are you getting it by DHCP?

[EDIT]
You beat me to it!
[/EDIT]

I should have guessed it could be hardware issues with this kind of antique stuff, but not comes the fun part, configuring apache.

---------- Post added 05-08-12 at 00:53 ----------

Ah and btw, i am ssh`ing from my laptop now, and it works like a dream ! I`m so excited !

astrogeek 08-04-2012 05:09 PM

Quote:

Originally Posted by Bller (Post 4746024)
I should have guessed it could be hardware issues with this kind of antique stuff, but not comes the fun part, configuring apache.

---------- Post added 05-08-12 at 00:53 ----------

Ah and btw, i am ssh`ing from my laptop now, and it works like a dream ! I`m so excited !

Always fun!

Apache should work out of the box if you run /etc/rc.d/rc.httpd start

Then add a virtual host or two (very easy) and add them to the hosts file (use static IP for that box).

Just read through the /etc/httpd/httpd.conf to set most things... long but the choices are simple enough.

Bller 08-04-2012 05:24 PM

It works ok, even on the internet, i just have to install nano first, i hate vi, and start writing some testing pages, and while i`m at it, i should configure vsfptd to work with local users, so i can edit stuff and upload them via ftp

damgar 08-04-2012 06:33 PM

Quote:

Originally Posted by Bller (Post 4746017)
Job done guys ! I swapped the ethernet card pci slot and it all worked, and apache works as a charm, could you believe that ! :)_ haha, i`m so proud of myself

Congratulations! It's always these little things that I get the most excited about too lol!

Bller 08-06-2012 01:05 PM

Litlle update:

I managed to make the 20 gb HDD work, and found a way to make it boot from CD`rom ! I`m thrilled !


All times are GMT -5. The time now is 10:58 AM.