Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Unique Hostname

  1. #1
    Junior Member
    Join Date
    Jul 2005
    Posts
    4

    Unique Hostname

    It would be very nice and useful, if the hostname of the Knoppix box would be unique. This would allow, that there are several Knoppix hosts running on the same net. Currently, if dynamic dns and DHCP is used, only the first "knoppix" host gets added to the DNS.

    One easy way would be, to add the MAC adress of the 1st NIC to hostname (without the : of course). This would make the hostname look something like "knoppix-0008743EFDE2".

  2. #2
    Junior Member
    Join Date
    Sep 2005
    Posts
    1
    I would prefer a cheatcode. By the way, how do you change the hostname? hostname command doesn't seem to be enough as i still can't samba between two Knoppix boxes

  3. #3
    Junior Member
    Join Date
    Sep 2004
    Location
    Cibolo, TX, USA
    Posts
    4
    Quote Originally Posted by amp77
    I would prefer a cheatcode. By the way, how do you change the hostname? hostname command doesn't seem to be enough as i still can't samba between two Knoppix boxes
    Why would you use samba between 2 knoppix boxes? why not ssh or nfs?

  4. #4
    Junior Member
    Join Date
    Jul 2005
    Posts
    4
    Quote Originally Posted by The-Big-E
    Why would you use samba between 2 knoppix boxes? why not ssh or nfs?
    That's not the point at all.

    A possible scenario might be, that there are 2+ knoppix boxes and one or more Windows machines. How do you access one specific Knoppix box using CIFS/SMB from the Windows machine?

  5. #5
    Junior Member
    Join Date
    Sep 2004
    Location
    Cibolo, TX, USA
    Posts
    4
    Quote Originally Posted by A.Skwar

    That's not the point at all.

    A possible scenario might be, that there are 2+ knoppix boxes and one or more Windows machines. How do you access one specific Knoppix box using CIFS/SMB from the Windows machine?
    I understand, but enable ssh on 1/both/all knoppix boxes, then access them via putty or winscp to the IP. The only time I found the hostname to be really important (at least when using live cd's and interacting with windows boxes) is when using cups.

    What are you trying to do that you would need more then I live cd running at a time anyway?

  6. #6
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by The-Big-E
    What are you trying to do that you would need more then I live cd running at a time anyway?
    I agree that accessing by IP address is a work around, although hardly a great one. I can certainly think of lots of reasons to run with more than one Live CD though, in fact any reason to run with one Live CD would be a good reason to run with more than one. And if you want to learn about Linux networking before ditching your Windows network, it an obvious choice. Other reasons: Transfering files without having to deal with Linux to Windows issues, debugging network problems with ethereal, playing multiplayer games like Crack Attack on the 4.0.2 DVD across the local network.

  7. #7
    Junior Member
    Join Date
    Jul 2005
    Posts
    4
    Quote Originally Posted by The-Big-E
    What are you trying to do that you would need more then I live cd running at a time anyway?
    You're again missing the point. The current state of behaviour can very well be seen as a bug that needs to be fixed. The way it is now, it's *NOT* possible to access one specified box using a name. You have to know the IP.

    That's not easy. And up to know, Knoppix to me always made the impression, that it's an implmentation of "It Just Works!".

    But you're right, accessing by IP is a workaround. Could you please file a bug, so that the DHCP Client doesn't try to register the hostname in DNS? Also, please try to do away with all that auto configuration. Heck, you just need to enter the correct hardware data by hand. Hardly a big deal...

  8. #8
    Member registered user
    Join Date
    Sep 2003
    Posts
    41
    I'm glad somebody mentioned using the IP address. I've been going nuts trying to use LinNeighborhood and smb4k to connect a Knoppix client to a Knoppix file server. Turns out typing smb://192.168.1.107 into Konqueror works just fine.

  9. #9
    Junior Member
    Join Date
    Jul 2005
    Posts
    4
    Quote Originally Posted by bitey
    I'm glad somebody mentioned using the IP address. I've been going nuts trying to use LinNeighborhood and smb4k to connect a Knoppix client to a Knoppix file server. Turns out typing smb://192.168.1.107 into Konqueror works just fine.
    Yes, it does - but in Windows, this might result in Windows putting/assuming the server to be in the Internet Zone and thus be more restrictive. Further, it may slow down transfers.

    Not so, if you use the NETBIOS name - ie. \\KNOPPIX instead of \\192.168.1.107. So, IP isn't really a solution.

    All of this would work fine, if each Knoppix box had a unique hostname. Quite a simple solution for a lot of problems...

  10. #10
    Member registered user
    Join Date
    Mar 2005
    Posts
    87
    I have this exact type of setup with my remaster, I have built a custom IDS solution with distributed sensors, central server (with redundants) and remote consoles. On boot up I added a cheatcode 'hostname' that determines the type of role that the machine will perform. This type of functionality, I believe, is what some of you are after.

    If so you can easily achieve this with only a few extra lines of code to the linuxrc file in miniroot.gz

    If anyone is interested I'll post some possible modifications to achieve this functionality. Fortunately this type of modification should not require a complete remaster and could be tackled by the novice Knoppix tinkerer.

    The proposed modification would be:
    1. Instead of standard 'Knoppix' hostname, it would be be something like 'knoppix-MACADDRESS'
    2. If cheatcode is supplied override hostname (eg. boot: knoppix 'hostname=knoppix-1')

Page 1 of 3 123 LastLast

Similar Threads

  1. PATCH: Adding unique hostname generation with cheatcode
    By firnsy in forum Customising & Remastering
    Replies: 0
    Last Post: 12-01-2005, 11:09 AM
  2. pump to get hostname
    By hall in forum Networking
    Replies: 1
    Last Post: 09-29-2005, 01:01 PM
  3. Problem Unique to Knoppix Later Versions!(SIS problem!)
    By bongski55 in forum Hardware & Booting
    Replies: 4
    Last Post: 11-15-2003, 10:19 AM
  4. Can't set hostname.
    By WimG in forum Networking
    Replies: 5
    Last Post: 09-27-2003, 04:16 PM
  5. How do I change the hostname?
    By jensen in forum General Support
    Replies: 2
    Last Post: 07-18-2003, 10:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Supermicro 1U X11DPU 2x Xeon Gold 6132 2.6GHz / 128gb / 10x 2.5 Trays / 2x 750w picture

Supermicro 1U X11DPU 2x Xeon Gold 6132 2.6GHz / 128gb / 10x 2.5 Trays / 2x 750w

$649.99



HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES

$199.99



HPE ProLiant MicroServer Gen8 Intel Xeon E3-1265L 16GB ECC PCIe x16 4x1TB HDD picture

HPE ProLiant MicroServer Gen8 Intel Xeon E3-1265L 16GB ECC PCIe x16 4x1TB HDD

$249.99



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



Supermicro E300-8D Xeon D-1518 2.20GHz Mini Server picture

Supermicro E300-8D Xeon D-1518 2.20GHz Mini Server

$575.00



Open Eye OE-MTX08 8TB Micro Server With Linux (Boots To Login) No Accessories  picture

Open Eye OE-MTX08 8TB Micro Server With Linux (Boots To Login) No Accessories

$294.95



HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon picture

HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon

$802.70



HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Pent picture

HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Pent

$651.42



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00



1U 20

1U 20" Short Depth Server Firewall PFSense X11SSH-F Xeon 3.5Ghz 32GB RAM NVME

$247.00