Weblog entry #2 for Grimnar
But in order to update the system I need to get the laptop on the net.
Now, that is really beyond my skills and after several hours of searching on the net I still have no idea how to make it work.
My main server is sharing the internet using 192.168.0.1 as gateway and letting other local computers hook on the net using 192.168.0.X-ip. Not using dhcp locally in other words.
So, how should I make the pcmcia card configure correct?
I used modconf and added support for a Realtek network card, and instalation succeded, but while trying to attach a ip to my card, I get device or resource busy. The leds are lit on the card.
So, please help me make this work. And later on I will try to connect using a wlan card. Fun fun.
-Andreas
Comments on this Entry
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.0.20
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
/etc/resolv.conf domain gwlap nameserver 84.16.208.11And yeah, the nic is a pcmcia 10/100 8139too card. What is wrong?
[ Parent | Reply to this comment ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
- /sbin/ifconfig -a
- /bin/netstat -rn
- /usr/bin/dpkg -l pcmcia-cs
[ Parent | Reply to this comment ]
eth0 Link encap:ethernet Hwaddr 00:50:FC:B8:69:F8 inet addr:192.168.0.20 Bcast: 192.168.0.255 Mask 255.255.255.0 BROADCAST RUNNING 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 collisons:0 txqueulen:100 RX bytes: 0 (0.0 b) TX bytes:0 (0.0 b) Base adrress:0xd00 lo Link encap:local loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU 3924 Metric:1 RX packets:0 errors:0 dropped:0 overrun:0 frame:0 TX packets:0 errors:0 dropped:0 overrun:0 carrier:0 collisions:0 txqueluen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)/bin/netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface/usr/bin/dpkg -l pcmcia-cs
Desired=UNknown/Install/Remove/Purge/Hold |Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-in stalled |/Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase-bad) ||/Name Version Description +++-============================================================= ====== ii pcmcia-cs 3.2.5-10 PCMCIA Card Service for Linux
the 2.2 kernel is showing its age these days, as is debian 3.0, sadly... here's hoping that you can get it upgraded!Yeah, I have a lot of cd's containg more updated debian stuff, but all are burned at a rate that my old dell cd-rom cannot read. That is a major pain in the a**. This error happends all the time during install time.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
Fetched 23.9MB in 60s Preconfiguring packages ... dpkg: update-rc.d not found on PATH dpkg: 1 expected program(s) not found on PATH NB: root's PATH should usually contain /usr/local/sbin, /usr/bin and /sbin E: Sub-process /usr/bin/dpkg returned an error code (2)Now what the sh** can I fix this? I guess rebooting wont cover this one:D In what file(s) should I correct the path problem?
[ Parent | Reply to this comment ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
i'm assuming that you are running apt-get dist-upgrade as root. Have you modified root's configuration files? (e.g. ~/.bashrc, ~/.profile, ~/.bash_profile). What does echo $PATH show just before you run the upgrade?
In my system-wide /etc/profile (which i think is still the standard debian one), i've got:
if [ "`id -u`" -eq 0 ]; then PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bi n:/usr/bin/X11" else PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games" fiThis clause would set the root user's PATH to include /usr/sbin, but it's possible to override that in root's personalized config files.
If you want to get around this bug for now without worrying about fixing it for the future, you can just do:
PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH" apt-get dist-upgradewhich will set the PATH temporarily for that upgrade run to include the sbin directories.
Note that some people put the sbin directories into PATH even for non-root users...
[ Parent | Reply to this comment ]
update-rc.d is in /usr/sbin in a standard debian install.Ok.
i'm assuming that you are running apt-get dist-upgrade as root.Yes.
Have you modified root's configuration files? (e.g. ~/.bashrc, ~/.profile, ~/.bash_profile).No, not at all. I tried to alther .bash_profile to include some PATH-info after the error but I figured it was best left alone.
What does echo $PATH show just before you run the upgrade?-bash: /sbin:/usr/sbin:/usr/local/sbin:/usr/local/sbin:/usr/local/sbin:/ usr/sbin:/usr/bin:/sbin :/bin:/usr/bin/X11: No such filre or directory
In my system-wide /etc/profile (which i think is still the standard debian one), i've got:I've got this:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bi n:/usr/bin/X11"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
fi
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
export PATH
umask 022
This is after I copied from another debian server of mine. If you want to get around this bug for now without worrying about fixing it for the future, you can just do: PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH" apt-get dist-upgradeYeah, I tried that one and it still gives me the same error.
[ Parent | Reply to this comment ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
[dkg@squeak ~]$ ls -l /usr/sbin/update-rc.d -rwxr-xr-x 1 root root 4919 2006-02-09 19:23 /usr/sbin/update-rc.d [dkg@squeak ~]$If update-rc.d is actually missing, i'm not quite sure where to go from there. it's part of the sysv-rc package, which is Priority: required. i'm not sure how you could end up with a system without that package.
What does dpkg -l sysv-rc show?
[ Parent | Reply to this comment ]
||/ Name Version Description +++-====================-====================-=================== un sysv-rc (no description available)
[ Parent | Reply to this comment ]
/var/cache/apt/archives/
Is there any way for me to make use of that file?
I tried:
dpkg -i thatfile.deb
dpkg --unpack thatfile.deb
Nothing works. What more can I do?
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
then, i think what you tried is the right thing:
dpkg --install sysv-rc_2.86.ds1-12_all.debCan you paste in the output of what failures you are getting? Even if the output looks unintelligible, it probably contains some clues about what needs to be fixed to get it installed properly. You definitely want this package for a functional debian system!
[ Parent | Reply to this comment ]
dpkg --install sysv-rc_2.86.ds1-1_all.deb dpkg:update-rc.d not found on PATH. dpkg: 1 expected program(s) not found on PATH NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
[ Parent | Reply to this comment ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
i've pasted the contents of /usr/sbin/update-rc.d to my scratchpad. feel free to copy that file into /usr/sbin/update-rc.d, and run
chmod 0755 /usr/sbin/update-rc.d chown root:root /usr/sbin/update-rc.dto set up the permissions properly.
Maybe at that point, you'll be able to get things installed again and running. post back when you get a chance to try this out!
[ Parent | Reply to this comment ]
earlier. Since I have a rc-update.d from my other server, the computer is now working like a charm again.
The only thing now is to find out what window manager is best to use.
And, thank you very much for yout help dkg!
-Andreas.
[ Parent | Reply to this comment ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
i'm not going to get into the religious war that is window manager choices. i use openbox, but (on principle) i don't ever recommend it to anyone, though it's certainly lightweight enough for yer machine. A friend of mine uses fluxbox and swears by it. Hope yer new install treats you well!
[ Parent | Reply to this comment ]
Fairly similar to blackbox, from which it is derived, but has been extended with features such as pwm-style window tabs, configurable key bindings, toolbar, and an iconbar. It also includes some cosmetic fixes over blackbox.
This package contains support for Gnome and KDE. But if you are PC-resource-restrained, I'd suggest avoiding Gnome and KDE.
cheers and good luck,
ybiC
[ Parent | Reply to this comment ]