Difference between revisions of "Debian Tips"

From odroid US
Jump to: navigation, search
(How to set the hostname)
Line 15: Line 15:
 
== How to set the hostname==
 
== How to set the hostname==
 
From scheich. Propably you want to change the hostname of your odroid. For this you have to adjust the following files.  
 
From scheich. Propably you want to change the hostname of your odroid. For this you have to adjust the following files.  
 +
 
(a static IP address is needed)
 
(a static IP address is needed)
  
 
$hostname e.g. superfastodroidserver
 
$hostname e.g. superfastodroidserver
 +
 
$domainname e.g. fritz.box
 
$domainname e.g. fritz.box
  

Revision as of 13:51, 26 February 2013


How to set Static IP address

From Gibojoe. Sometime you do not have a DHCP server to assign an IP Address. Sometimes you just want your board to come up with the same IP Address no matter what. You need to make sure to allocate a subnet-unique address.

For a static IP edit to /etc/network/interface to:

allow-hotplug eth0
iface eth0 inet static
address 192.168.1.11
netmask 255.255.255.0
gateway 192.168.1.1

How to set the hostname

From scheich. Propably you want to change the hostname of your odroid. For this you have to adjust the following files.

(a static IP address is needed)

$hostname e.g. superfastodroidserver

$domainname e.g. fritz.box

/etc/hosts

127.0.0.1       localhost.localdomain
192.168.178.11  $hostname.$domainname $hostname

/etc/hostname

$hostname.$domainname

Afterwards you should get the fully qualified domain name with the following command.

hostname -a