# echo UbuntuHostName > /etc/hostname 

And a basic /etc/hosts with IPv6 support: 

127.0.0.1 localhost 127.0.1.1 UbuntuHostName 

# The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts 

If you have multiple network cards, you should arrange the names of driver modules in the /etc/modules file into the desired order. Then during boot, each card will be associated with the interface name (eth0, eth1, etc.) that you expect. 

## D.4.4.7. Configure Locales and Keyboard 

To configure your locale settings to use a language other than English, install the appropriate language packs and configure them. Currently the use of UTF-8 locales is recommended. 

# apt install language-pack-de language-pack-gnome-de 

To configure your keyboard (if needed): 

# apt install console-setup # dpkg-reconfigure keyboard-configuration 

Note that the keyboard cannot be set while in the chroot, but will be configured for the next reboot. 

## D.4.5. Install a Kernel 

If you intend to boot this system, you probably want a Linux kernel and a boot loader. Identify available pre-packaged kernels with: 

# apt-cache search linux-image 

Then install the kernel package of your choice using its package name. 

# apt install linux-image- arch-etc 

(You may want install linux-image-generic , too.) 

