Differences

This shows you the differences between two versions of the page.

build:debian [2010/03/03 15:11]
99.100.133.164 old revision restored
build:debian [2010/08/01 13:00] (current)
99.100.133.164 Minor updates
Line 11: Line 11:
This system is intended to be a server, and should never run any X programs. Any GUI-type administration should be done over HTTPS. So we did not install any X server or X client programs. This system is intended to be a server, and should never run any X programs. Any GUI-type administration should be done over HTTPS. So we did not install any X server or X client programs.
 +
===== Hostname ===== ===== Hostname =====
Ensure that the hostname is correct: Ensure that the hostname is correct:
 +
<code bash> <code bash>
hostname hostname
Line 19: Line 21:
If it is not, change it: If it is not, change it:
-<code rootshell+ 
-hostname boochtek+<code bash
 +sudo hostname slicehost
</code> </code>
Edit ''/etc/hosts'' to add the IP address of the system. We can also put other closely-related systems in there. Note that the fully-qualified name must come before the short name, so that the system can determine the domain name properly. Also, do not put the hostname on the localhost line. The file should look something like this: Edit ''/etc/hosts'' to add the IP address of the system. We can also put other closely-related systems in there. Note that the fully-qualified name must come before the short name, so that the system can determine the domain name properly. Also, do not put the hostname on the localhost line. The file should look something like this:
 +
<file> <file>
127.0.0.1       localhost 127.0.0.1       localhost
-209.20.75.29    slicehost.boochtek.com boochtek+209.20.75.29    slicehost.boochtek.com slicehost
</file> </file>
Line 32: Line 36:
Verify that the system can get the domain name and fully qualified hostname: Verify that the system can get the domain name and fully qualified hostname:
-<code rootshell>+ 
 +<code bash>
hostname -d hostname -d
hostname -f hostname -f
</code> </code>
 +
===== Security Updates ===== ===== Security Updates =====
Ensure that ''/etc/apt/sources.list'' contains a pointer to servers to fetch security updates. Also remove the lines that reference the installation CD-ROM. You may need to add the ''contrib'' and ''non-free'' items on each line. The ''/etc/apt/sources.list'' file should look like this: Ensure that ''/etc/apt/sources.list'' contains a pointer to servers to fetch security updates. Also remove the lines that reference the installation CD-ROM. You may need to add the ''contrib'' and ''non-free'' items on each line. The ''/etc/apt/sources.list'' file should look like this:
 +
<file> <file>
deb http://http.us.debian.org/debian/ lenny main contrib non-free deb http://http.us.debian.org/debian/ lenny main contrib non-free
Line 48: Line 55:
Update the package list: Update the package list:
 +
<code bash> <code bash>
sudo apt-get update sudo apt-get update
Line 53: Line 61:
Upgrade any new packages: Upgrade any new packages:
 +
<code bash> <code bash>
sudo apt-get upgrade sudo apt-get upgrade
Line 58: Line 67:
The first time through, the kernel will likely be updated. If so, it will tell you that you need to reboot. The first time through, the kernel will likely be updated. If so, it will tell you that you need to reboot.
 +
<code bash> <code bash>
sudo reboot sudo reboot
Line 67: Line 77:
For this, we create a separate APT sources file, then update APT: For this, we create a separate APT sources file, then update APT:
 +
<code bash> <code bash>
sudo sh -c 'cat > /etc/apt/sources.list.d/volatile.list' <<EOF sudo sh -c 'cat > /etc/apt/sources.list.d/volatile.list' <<EOF
Line 76: Line 87:
Once we've done this, the volatile packages will be included within the normal APT processes. Once we've done this, the volatile packages will be included within the normal APT processes.
 +
===== Time Zone ===== ===== Time Zone =====
Line 88: Line 100:
If you don't have an ''/etc/default/locale'' file, SSH will complain. It also helps with displaying special characters. Note that this is an interactive program. We selected ''en_US (ISO-8859-1)'' and ''en_US.UTF-8'', and set the default to ''en_US.UTF-8''. If you don't have an ''/etc/default/locale'' file, SSH will complain. It also helps with displaying special characters. Note that this is an interactive program. We selected ''en_US (ISO-8859-1)'' and ''en_US.UTF-8'', and set the default to ''en_US.UTF-8''.
 +
<code bash> <code bash>
sudo dpkg-reconfigure locales sudo dpkg-reconfigure locales
Line 104: Line 117:
See [[http://www.howtoforge.com/perfect_setup_debian_etch | this HowtoForge document]] for an excellent step-by-step guide to installing Debian 4.0, with screenshots. See [[http://www.howtoforge.com/perfect_setup_debian_etch | this HowtoForge document]] for an excellent step-by-step guide to installing Debian 4.0, with screenshots.
 +
 
build/debian.1267650692.txt.gz · Last modified: 2010/03/03 15:11 by 99.100.133.164
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki