Networking :: Dhcp Server in DSL



I tried installing dhcp server in my linux box(which has DSL) to share internet connection through wireless, but I am unable to do that.I am using the command

apt-get install dhcp dhcp-relay
below is the link from where I got this command

http://damnsmalllinux.org/cgi-bin....564&st=

Though the internet connection is working properly on typing the above command I am getting this error

E: could not open lockfile /var/lib/dpkg/lock - open(2 No such file or directory)
E: Unable to lock the administration directory(/var/lib/dpkg/) are you root?

From the above error I am able to understand one thing, to use this command I should be a root user (but I am root user)

I tried to download direct dhcp.dsl extension but I am unable find anything of that kind in DSL repository.

I will really appreciate if anyone can reply with few tips and suggestions..

Thanks!

DSL isn't totally Debian compatible. If you want a simple dchp server, compile Busybox with only that.
It's quite easy, doesn't need more libs (apart from gnu-utils and gcc1-with-libs) and is small..

Curaga thanks for the response!

But I have seen dhcp3-server in /etc/init.d/ where as I am unable to start the server with the start command.Is there no way to have dhcpd in DSL are there any available packages/DSL extensions for this daemon??? which I can download and install..using mydsl-load command??

Please reply..

Thanks!

That script must have left over from Knoppix.
So, if you don't want to compile, I can do it.. Wait a couple of days and it should be posted in testing section

Posted for evaluation
Next Page...
original here.