Difference between revisions of "Debian Tips"
Line 47: | Line 47: | ||
EOF_MARK | EOF_MARK | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | == How to Setup Wifi == | ||
+ | Here is a reference link: [http://wiki.debian.org/WiFi/HowToUse http://wiki.debian.org/WiFi/HowToUse] | ||
+ | |||
+ | You need to have a network driver. These are usually available on the target as a kernel module. To see if your wireless network interface driver is installed, do this: | ||
+ | |||
+ | <pre> | ||
+ | ls /sys/class/net | ||
+ | </pre> | ||
+ | eth0 ip6tnl0 lo sit0 wlan0 | ||
+ | |||
+ | wlan0 is my wireless device |
Revision as of 16:27, 12 May 2013
Contents
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
How to Point to apt-cacher
Install apt-cacher-ng on a host. It will cache Debian packages you fetch while working on the target. You need to set up the apt-cacher host on the target. This example points to a host running apt-cacher-ng with IP Address 192.168.50.101 on port 3142
# This is for apt-cacher-ng cat <<EOF_MARK >>/etc/apt/apt.conf Acquire::http { Proxy "http://192.168.50.101:3142"; }; EOF_MARK
How to Setup Wifi
Here is a reference link: http://wiki.debian.org/WiFi/HowToUse
You need to have a network driver. These are usually available on the target as a kernel module. To see if your wireless network interface driver is installed, do this:
ls /sys/class/net
eth0 ip6tnl0 lo sit0 wlan0
wlan0 is my wireless device