Weblog entry #2 for Grimnar

pcmcia help needed.
Posted by Grimnar on Mon 20 Mar 2006 at 17:05
Tags: none.
I just installed a Debian 3.0 using a 2.2 kernel to start with.
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

Posted by Grimnar (85.221.xx.xx) on Mon 20 Mar 2006 at 21:30
[ Send Message | View Weblogs ]
More info: /etc/network/interfaces
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.11
And yeah, the nic is a pcmcia 10/100 8139too card. What is wrong?

[ Parent | Reply to this comment ]

Posted by dkg (216.254.xx.xx) on Wed 22 Mar 2006 at 05:04
[ Send Message | View dkg's Scratchpad | View Weblogs ]
can you post the output of the following commands?
  • /sbin/ifconfig -a
  • /bin/netstat -rn
  • /usr/bin/dpkg -l pcmcia-cs
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!

[ Parent | Reply to this comment ]

Posted by Grimnar (85.221.xx.xx) on Wed 22 Mar 2006 at 10:30
[ Send Message | View Weblogs ]
Yeah, finally someone replied. Thanks a lot. Since its not possible to cut'n paste this is going to take a while for me to write. So here goes. /sbin/ifconfig -a
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 ]

Posted by Grimnar (85.221.xx.xx) on Wed 22 Mar 2006 at 12:21
[ Send Message | View Weblogs ]
Update!!! After installing a new kernel using a different cd containing a 2.6 kernel and did dpkg-reconfigure etherconf everything startet working. Now, since this is a old Dell 600mhz celeron with amazing 64mb ram, and a stunning 8mb ATI graphics card, what kind of gui would suit me best? blackbox? I never installed and used a gui before so this is quite new to me. 5 years of using debian but never used a gui.

[ Parent | Reply to this comment ]

Posted by Grimnar (85.221.xx.xx) on Wed 22 Mar 2006 at 13:42
[ Send Message | View Weblogs ]
Another update Okei, everything was working just fine. I got my laptop online, the world was smiling to me again. Then, i was doing some apt-get dist-upgrade and suddenly all hell broke loose again. apt-get dist-upgrade gives me this:
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 ]

Posted by dkg (216.254.xx.xx) on Wed 22 Mar 2006 at 16:06
[ Send Message | View dkg's Scratchpad | View Weblogs ]
update-rc.d is in /usr/sbin in a standard debian install.

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"
fi
This 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-upgrade
which 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 ]

Posted by Grimnar (85.221.xx.xx) on Wed 22 Mar 2006 at 19:21
[ Send Message | View Weblogs ]
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-upgrade
Yeah, I tried that one and it still gives me the same error.

[ Parent | Reply to this comment ]

Posted by dkg (216.254.xx.xx) on Wed 22 Mar 2006 at 19:39
[ Send Message | View dkg's Scratchpad | View Weblogs ]
whoops. i didn't even think to ask whether yer system actually has an intact update-rc.d. What does ls -l /usr/sbin/update-rc.d show? i get this (on a mixed testing/unstable system):
[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 ]

Posted by Grimnar (85.221.xx.xx) on Wed 22 Mar 2006 at 19:45
[ Send Message | View Weblogs ]
Thanks a lot for a really fast reply. ls -l /usr/sbin/update-rc.d shows: No such file or dir dpkg -l sysv-rc:
||/ Name                 Version              Description
+++-====================-====================-=================== 
un  sysv-rc                          (no description available)

[ Parent | Reply to this comment ]

Posted by Grimnar (85.221.xx.xx) on Wed 22 Mar 2006 at 20:16
[ Send Message | View Weblogs ]
I just found out that I have the package sysv-rc_2.86.ds1-12_all.deb located in
/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 ]

Posted by Grimnar (85.221.xx.xx) on Wed 22 Mar 2006 at 20:23
[ Send Message | View Weblogs ]
Found some info here but im not sure how to get it right.

[ Parent | Reply to this comment ]

Posted by dkg (216.254.xx.xx) on Wed 22 Mar 2006 at 21:54
[ Send Message | View dkg's Scratchpad | View Weblogs ]
First, i'd fetch a clean copy of the deb from the standard list of debian mirrors, to make sure that you've got the right thing.

then, i think what you tried is the right thing:

dpkg --install sysv-rc_2.86.ds1-12_all.deb
Can 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 ]

Posted by Grimnar (85.221.xx.xx) on Wed 22 Mar 2006 at 23:27
[ Send Message | View Weblogs ]
Got the file and tried to install it.
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 ]

Posted by dkg (216.254.xx.xx) on Thu 23 Mar 2006 at 06:25
[ Send Message | View dkg's Scratchpad | View Weblogs ]
ouch. and of course, that's the package that you need to install to get /usr/sbin/update-rc.d

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.d
to 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 ]

Posted by Grimnar (85.221.xx.xx) on Thu 23 Mar 2006 at 10:00
[ Send Message | View Weblogs ]
Grr, If I only knew of the permissions yesterday then I would have if working much
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 ]

Posted by dkg (216.254.xx.xx) on Thu 23 Mar 2006 at 15:39
[ Send Message | View dkg's Scratchpad | View Weblogs ]
i'm glad you got things working! The trick was probably just that root needs execute permissions on /usr/sbin/update-rc.d. i wonder how that package got removed in the first place... maybe something bad happened in the middle of the first attempted upgrade that you did and left it in a bad state?

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 ]

Posted by ybiC (68.96.xx.xx) on Tue 28 Mar 2006 at 00:13
[ Send Message ]
I've had good luck with 233MHz 64MHz PCs and Debian X11 by using the standard .deb package of fluxbox - a highly configurable and low resource X11 Window manager.

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 ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search