|
|
| TW2001 2001-07-02, 10:35 am |
| I have installed the dhcpd server for my Red Hat box.When I got to start the server..(/etc/rc.d/init.d/dhcpd start I get "No such file or directory?
I installed the server using rpm
I then set up dhcpc.conf file then
touch dhcpd.leases
Then I should start the server right?
I downloaded another version(its not a rpm though..)
I put it in my root directory( I know maybe not the best choice)
the file is dhcp-2.0p15.tar.gz
How do I extract this?
I tried tar -x (file_name)
It seemed as if something was happening....when u do that does the file extract to the dir you are in?
Once ive extracted it how do I install it?
Anyhelp would be greatly appreciated.
Randy,your awesome man...thanks for that link! Im really determined to become profficient in Linux.Its very strange but its very addictive! | |
| Randy 2001-07-02, 10:45 am |
| gunzip dhcp-2.0p15.tar.gz
tar -xf dhcp-2.0p15.tar
This will create a directory with the files you need. Read the README file and you will be given the instructions to compile the software. There is a DHCP tutorial at:
http://www.linuxplanet.com/linuxplanet/tutorials/894/1/
Be sure you actually have the module loaded, otherwise it won't work. | |
|
|
| TW2001 2001-07-02, 1:02 pm |
| OK.When I try to gunzip (file) i get "no such file or dir.When I ls that dir its clearly there?
? | |
|
| Check your file permisssions first to make sure that you have execute and write priveleges. Make sure you are logged in as root. Also, do something like:
which gunzip
so that you can see if your unzipping program is installed. You may have to install one if it is not there and you may have a utility with a different name. You might want to look in package manager to see what utilities that you have installed. Let me know if this doesn't turn up anything. | |
| TW2001 2001-07-02, 1:40 pm |
| which gunzip
/bin/gunzip
I did chmod so as to have execute perm on the file but "no such file or dir"
? | |
| ccieToBe 2001-07-02, 1:58 pm |
| Did you chmod as root? | |
|
| OK, you have gunzip installed. So, are you sure that you are typing the name in correctly? Some of these files have a number of period, dashes and numbers in them that are easy to type incorrectly (this happens to me quite regularly). That is the only other reason I can think of as to why it isn't finding your file. Also, make sure you are in the directory where the file is or have included the aboslute path to the file, otherwise gunzip will not see it and see to it that your caps lock key is not on, as case does matter. From what you have said, it sounds like you may be typing the name in wrong. Be sure to include the whole filename. | |
| TW2001 2001-07-02, 2:51 pm |
| Man, Im stumped. Im typing it correctly.Its listed in the directory.I keep getting the file not found error.I am getting tar:error is not recoverable:exiting now
? | |
|
| Try:
tar -vxf dhcp-2.0p15.tar >tarlog 2>tarerrorog
This should give you a verbose listing of the files as they are being extracted and should send stdout to a file called 'tarlog' and stderr to a file called 'tarerrlog'. This might give us some ideas of what exzactly is going wrong here. | |
| TW2001 2001-07-02, 3:05 pm |
| Well "no such file or dir"
I downloaded this through my win PC and saved it into my root folder via my Lan.Could that have screwed something up? | |
|
| I suppose it's possible, but I have not ran into that problem before. It sounds as though it just can't see the file. The file may be corrupt, but it shouldn't be giving you a not found error. Maybe try downloading it again and try it again. Did the 'gunzip' operation work? The 'gunzip' should remove the 'gz' extension, whereas the 'tar' should untar it. Try gunzipping it again, then use tar without the 'tar' extension and see if it says anything different, like so:
tar -vxf dhcp-2.0p15 >tarlog 2>tarerrorog
If it doesn't, then try downloading the file again, as something must be wrong with it. | |
| TW2001 2001-07-02, 3:18 pm |
| I will give that a try.Thanks for the pointers.I really appreciate it.
I will let you know.
Thanks
Oh, If Im browsing that share through samba on my lan..is it possible that its being mounted and I cant get to it at my linux console? | |
|
| No, you should be able to get to it. You mount filesystems, and if it wasn't in a mounted directory you wouldn't see it at all. I just can't figure out why your box isn't seeing it. Let me know if you get any results. |
|
|
|