-
hostname by dhcp (PARTIALLY SOLVED)
Hi all.
I'm using Knoppix to boot from PXE and have a prompt in every machine i use. the machines are registered in a dhcp server and their hostname is set by whatever dhcp gives. with knoppix that is not happening.
After remastering the Knoppix files, i've commented out the line in the knoppix autoconfigure script that sets the hostname to Knoppix, but still i don't have the hostname defined.
In the same autoconfigure script of knoppix, in the line that the script pulls up the ethernet interfaces with pump, i've read the man page and added the following option but no sucess...
In the config file of dhcpc (in a chroot environment), i've defined -h (even -H) as an option, but still no results...
I need the hostname defined so i can performe other operations in the machine...
Cheers,
Bruno
-
Hi. It's partially done.
After changing root to the knoppix, as described in the remastering howto, i've replaced the pump with dhcpcd. I've installed dhcpcd (which apt automatically removes pump).
Edited the knoppix-configure script in /etc/init.d/ and replaced the pump command with dhcpcd.
IMPORTANT: during the removel process, a question is placed - if you want to remove the files in the /etc/dhcpc. i've answered yes, but a problem arise when booting. it's necessary to recreate in that directory the resolv.conf file. a simple touch resolv.conf is enough.
Edit the config file and where it says SET_HOSTNAME=no change to yes and uncomment the line. everything should be fine.
After that, booting with PXE and execute hostname give's me the computer hostname as it's defined in the dhcp.
The problem cames now when rebooting. it sends the kill signals but it hangs... before installing dhcpcd everything was fine, but now i beliave it's because dhcpc-bin (which is executed by dhcpcd).
Cheers,
Bruno
Similar Threads
-
By NoMansLand in forum Networking
Replies: 1
Last Post: 01-26-2008, 04:18 PM
-
By bcpembo in forum Customising & Remastering
Replies: 9
Last Post: 10-26-2007, 08:46 AM
-
By JNeuhoff in forum Hardware & Booting
Replies: 2
Last Post: 02-27-2005, 09:52 PM
-
By WimG in forum Networking
Replies: 5
Last Post: 09-27-2003, 04:16 PM
-
By roberto dias in forum Networking
Replies: 1
Last Post: 08-30-2003, 07:31 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5" Enterprise HDD
$74.99
Western Digital WD60PURZ 6TB Hard Drive SATA6 Gb/s 64MB Cache 3.5 Inch
$109.99
Seagate Exos X20 16TB 7.2K 256MB 3.5" SATA 6Gb/s Enterprise HDD - ST16000NM000D
$139.99
WF12F DELL 1TB 7.2K 6GBPS SATA 2.5'' HDD HARD DRIVE ST91000640NS 0WF12F
$25.00
Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5" Internal Hard Drive
$29.99
HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601
$82.99
2 PACK Seagate ST1000LM035 Mobile HDD 1TB 2.5" SATA III Laptop Hard Drive
$27.49
8TB Seagate Archive SATA 3.5" HDD Hard Drive 100% Healthy 200MB/s ST8000AS0002
$36.53
WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN
$174.99
WD HDD Ultrastar DC HC520 HUH721212AL4205 12TB 3.5" SAS Server Hard Disk Drive
$45.30