Results 1 to 4 of 4

Thread: change hostname?

  1. #1
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    29

    change hostname?

    I have just installed knoppix on my hard drive and I am fumbling around trying to figure out how things work. There is a bug that wouldn't let me name my computer what I wanted during setup (wouldn't let me erase all of the default text in the box) so at the end of my host name there is an x. Can someone enlighten me as to how I can change the host name of my computer?

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Europe
    Posts
    148
    You can do it from the shell using 'hostname' (hostname name_you_want - see man hostname for more info/options).

    To set it permanently, have a look at /etc/hostname and /etc/resolv.conf

  3. #3
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    29
    Thanks for the help, so much to learn, I have been up for 2 days playing with this os; it's addictive.

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Make sure that you get all the files where the hostname is with something like this.

    Code:
    HappyTux:/home/stephen# grep -r HappyTux /etc/*
    grep: /etc/alternatives/x-session-manager: No such file or directory
    grep: /etc/cups/pdftops.conf: No such file or directory
    /etc/exim/exim.conf:qualify_domain = HappyTux
    /etc/exim/exim.conf:local_domains = HappyTux:localhost
    /etc/hostname:HappyTux
    /etc/hosts:192.168.0.1  HappyTux
    /etc/mailname:HappyTux
    /etc/mailname.O:HappyTux
    /etc/motd:Linux HappyTux 2.6.4 #1 Sat Mar 13 05:45:50 AST 2004 i686 GNU/Linux
    /etc/motd.old:Linux HappyTux 2.4.20-bf2.4 #1 Sun Mar 9 07:22:41 UTC 2003 i686 unknown
    
    [snip ssh keys]

Similar Threads

  1. Unique Hostname
    By A.Skwar in forum Ideas
    Replies: 23
    Last Post: 01-20-2006, 01:51 PM
  2. The colour of user@hostname~@: ?
    By e2k in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 06-25-2004, 09:32 AM
  3. Can't set hostname.
    By WimG in forum Networking
    Replies: 5
    Last Post: 09-27-2003, 04:16 PM
  4. Hostname on command line
    By Ambrose in forum General Support
    Replies: 1
    Last Post: 08-08-2003, 02:17 AM
  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
  •  


Fujinet 1.7.1 Atari 400 800 800XL 130XE 65XE XEGS Assembled, Tested, Working picture

Fujinet 1.7.1 Atari 400 800 800XL 130XE 65XE XEGS Assembled, Tested, Working

$99.99



Atari 400 / 800 Computer Memory Module 16K RAM PCB CX853 - Works Perfectly picture

Atari 400 / 800 Computer Memory Module 16K RAM PCB CX853 - Works Perfectly

$18.95



Atari 400 Home Computer System includes Power Cord G2U picture

Atari 400 Home Computer System includes Power Cord G2U

$159.99



Atari 1200XL Computer Game Console Vintage Rare FOR PARTS OR REPAIR READ picture

Atari 1200XL Computer Game Console Vintage Rare FOR PARTS OR REPAIR READ

$270.00



Atari 800XL Home Computer 64K RAM in Original Box 1984 Olympic Edition Untested picture

Atari 800XL Home Computer 64K RAM in Original Box 1984 Olympic Edition Untested

$149.99



A8PicoCart Multicart for Atari 800xl /65xe / 130xe / XEGS picture

A8PicoCart Multicart for Atari 800xl /65xe / 130xe / XEGS

$16.95



Atari 1050 Double Density Disk Drive w Power Supply, Cables, Box & Manual picture

Atari 1050 Double Density Disk Drive w Power Supply, Cables, Box & Manual

$155.00



Gotek USB Floppy Emulator v3.44 OLED (no speaker) Amiga Atari IBM Roland AKAI picture

Gotek USB Floppy Emulator v3.44 OLED (no speaker) Amiga Atari IBM Roland AKAI

$44.00



Atari 130 XE/Atari 1050 Bundle W/ Cords And Extras (Powered On) picture

Atari 130 XE/Atari 1050 Bundle W/ Cords And Extras (Powered On)

$300.00



DEFECTIVE Atari 810 Vintage Computer Disk Drive  powers on Unit Only Boo G3D picture

DEFECTIVE Atari 810 Vintage Computer Disk Drive powers on Unit Only Boo G3D

$49.29