<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bohack &#187; Etch</title>
	<atom:link href="http://www.bohack.com/tag/etch/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bohack.com</link>
	<description>Check In and Tune Out!</description>
	<lastBuildDate>Wed, 25 Aug 2010 00:44:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Clean Debian Etch Install</title>
		<link>http://www.bohack.com/2008/11/clean-debian-etch-install/</link>
		<comments>http://www.bohack.com/2008/11/clean-debian-etch-install/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 02:15:52 +0000</pubDate>
		<dc:creator>Bohack</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[Etch]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bohack.com/?p=67</guid>
		<description><![CDATA[My first Linux install was actually a BSD install of OpenBSD and I was quite impressed that nothing was installed except for the operating system. I am now minimalist and when installing operating systems this principal works to my advantage. The ideology is: you only install what is needed and nothing more, thus reducing the [...]]]></description>
			<content:encoded><![CDATA[<p>My first Linux install was actually a BSD install of OpenBSD and I was quite impressed that nothing was installed except for the operating system. I am now minimalist and when installing operating systems this principal works to my advantage. The ideology is: you only install what is needed and nothing more, thus reducing the surface of attack and lowering wasted process time. So I have put a guide together that was inspired by the Linux how to for â€œThe Perfect Setup â€“ Debian Etchâ€. This guide was created with screenshots from VMware.<span id="more-67"></span></p>
<ol>
<li>Download the latest current build from the Debian website http://www.debian.org/distrib/. Youâ€™ll only need to download and burn the first ISO for CD1, since all the other CDs contain packages that can be downloaded via the â€˜apt-getâ€™ command.</li>
<li>Insert the CD and set your BIOS or â€˜first bootâ€™ menu to boot from CD. As the CD spins up you will be brought to a prompt with the Debian logo. Debian Etch defaults to install the Linux 2.6 kernel so just hit enter.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-2.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-2.gif" alt="Debian Boot Screen" title="debian-fig-2" width="652" height="367" class="alignnone size-full wp-image-68" /></a>
<li>The â€˜Choose languageâ€™ screen will appear, select â€˜Englishâ€™ or your preferred language.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-3.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-3.gif" alt="Choose the language Dialog" title="debian-fig-3" width="635" height="480" class="alignnone size-full wp-image-70" /></a>
<li>The â€˜Choose country or regionâ€™ screen will appear, select â€˜United Statesâ€™ or your preferred country.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-4.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-4.gif" alt="Choose Country or Region Dialog" title="debian-fig-4" width="638" height="480" class="alignnone size-full wp-image-73" /></a>
<li>The â€˜Select a keyboard layoutâ€™ screen will appear, select â€˜American Englishâ€™ or your preferred layout.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-5.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-5.gif" alt="Select the Keyboard Layout Dialog" title="debian-fig-5" width="636" height="477" class="alignnone size-full wp-image-74" /></a>
<li>The pre-installer will start to scan your hardware, scan the packages available on the CDROM, load the components of the Debian installer, then detect and configure the network with DHCP if detected.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-6.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-6.gif" alt="Pre-Installer Dialog" title="debian-fig-6" width="637" height="479" class="alignnone size-full wp-image-75" /></a>
<li>You be prompted at the â€˜Configure the networkâ€™ screen, were you will be asked to select a hostname for your system.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-7.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-7.gif" alt="Configure the Hostname Dialog" title="debian-fig-7" width="637" height="480" class="alignnone size-full wp-image-77" /></a>
<li>Then you&#8217;ll be prompted with the â€˜Domain nameâ€™ prompt, were you will select your domain name for your system.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-8.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-8.gif" alt="Domain Name Dialog" title="debian-fig-8" width="639" height="479" class="alignnone size-full wp-image-78" /></a>
<li>The installer will detect all disks and start the partition utility. It is preferable to select the &#8216;Erase entire disk&#8217;.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-9.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-9.gif" alt="Auto Partition Dialog" title="debian-fig-9" width="639" height="477" class="alignnone size-full wp-image-79" /></a>
<li>The next prompt will ask you for a partitioning scheme, again it is preferable to select the default of â€˜All files in one partitionâ€™.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-10.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-10.gif" alt="Partitioning Scheme Dialog" title="debian-fig-10" width="635" height="476" class="alignnone size-full wp-image-82" /></a>
<li>You will then have a chance to confirm your selection and â€˜Finish partitioning and write the changes to diskâ€™.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-11.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-11.gif" alt="Confirm Partitioning Scheme" title="debian-fig-11" width="634" height="477" class="alignnone size-full wp-image-85" /></a>
<li>Youâ€™ll be prompted again to write the changes, select â€˜Yesâ€™ the default is â€˜Noâ€™.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-12.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-12.gif" alt="Final Prompt to Write Changes" title="debian-fig-12" width="640" height="480" class="alignnone size-full wp-image-86" /></a>
<li>The installer will ask for your time zone, enter the desired time zone.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-13.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-13.gif" alt="Time Zone Configuration Dialog" title="debian-fig-13" width="638" height="478" class="alignnone size-full wp-image-87" /></a>
<li>The installer will ask for the rootâ€™s password (privileged user account).</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-14.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-14.gif" alt="Root Password Dialog" title="debian-fig-14" width="639" height="480" class="alignnone size-full wp-image-88" /></a>
<li>You will need to type the password again for confirmation.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-15.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-15.gif" alt="Root Password Confirmation" title="debian-fig-15" width="639" height="481" class="alignnone size-full wp-image-89" /></a>
<li>You will also be required to create an initial user (non-privileged user account) account.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-16.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-16.gif" alt="Non-Root Account Dialog" title="debian-fig-16" width="639" height="479" class="alignnone size-full wp-image-92" /></a>
<li>You will need to supply a login name for the account.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-17.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-17.gif" alt="Login Name Dialog" title="debian-fig-17" width="637" height="478" class="alignnone size-full wp-image-93" /></a>
<li>Set the password for this user and confirm it like the previous account.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-18.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-18.gif" alt="Non-Root Password Dialog" title="debian-fig-18" width="639" height="479" class="alignnone size-full wp-image-95" /></a>
<li>The system installer will begin installing the entire system now.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-19.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-19.gif" alt="System Installation Dialog" title="debian-fig-19" width="639" height="479" class="alignnone size-full wp-image-96" /></a>
<li>The package manager will now require configuration, select â€˜Yesâ€™ for a mirror.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-20.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-20.gif" alt="Select a Mirror Dialog" title="debian-fig-20" width="638" height="478" class="alignnone size-full wp-image-98" /></a>
<li>Choose â€˜United Statesâ€™ for the mirrorâ€™s country or your country.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-21.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-21.gif" alt="Mirror Country Dialog" title="debian-fig-21" width="640" height="480" class="alignnone size-full wp-image-99" /></a>
<li>Choose â€˜ftp.us.debian.orgâ€™ or the first mirror that appears for you prior selection.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-22.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-22.gif" alt="Select Mirror Dialog" title="debian-fig-22" width="640" height="480" class="alignnone size-full wp-image-100" /></a>
<li>Select â€˜Enterâ€™ if you are not using a proxy.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-23.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-23.gif" alt="Select Proxy Dialog" title="debian-fig-23" width="638" height="480" class="alignnone size-full wp-image-102" /></a>
<li>The developers ask that you participate in a feedback survey, for this how-to we will answer â€˜Noâ€™.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-24.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-24.gif" alt="Feedback Survey Dialog" title="debian-fig-24" width="639" height="479" class="alignnone size-full wp-image-103" /></a>
<li>Unselect all software using the spacebar and arrow keys and select â€˜Continueâ€™.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-25.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-25.gif" alt="Select Software to Install Dialog" title="debian-fig-25" width="640" height="480" class="alignnone size-full wp-image-104" /></a>
<li>Answer â€˜Yesâ€™ to the Grub loader screen, this will install the boot manager of Grub on the system; this is used for emergency purposes.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-26.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-26.gif" alt="Grub Install Dialog" title="debian-fig-26" width="638" height="478" class="alignnone size-full wp-image-106" /></a>
<li>Finish the install by selecting â€™Continueâ€™.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-27.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-27.gif" alt="Finish the Install Dialog" title="debian-fig-27" width="639" height="479" class="alignnone size-full wp-image-107" /></a>
<li>You will reboot and see the Grub boot loader.</li>
<a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-28.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-28.gif" alt="Grub Boot Screen" title="debian-fig-28" width="724" height="402" class="alignnone size-full wp-image-108" /></a>
<li>You can now login as â€˜rootâ€™ with the password you supplied for â€˜rootâ€™.</li>
<p><a href="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-29.gif"  rel="lightbox[67]"  class="lightbox"><img src="http://www.bohack.com/wp-content/uploads/2008/11/debian-fig-29.gif" alt="Initial Login" title="debian-fig-29" width="644" height="434" class="alignnone size-full wp-image-109" /></a><br />
Now that we have an installed and running system we need to tweak a few settings. The network was installed and DHCP had been automatically configured, however since this will be a server DHCP is not the right choice; we will need to manually configure an IP address.</p>
<li>Edit &#8216;/etc/network/interfaces&#8217; by typing:<br />
nano -w /etc/network/interfaces# This file describes the network interfaces available on your system<br />
# and how to activate them. For more information, see interfaces(5).</p>
<p># The loopback network interface<br />
auto lo<br />
iface lo inet loopback</p>
<p># The primary network interface<br />
#auto eth0<br />
#iface eth0 inet dhcp</p>
<p>auto eth0<br />
iface eth0 inet static<br />
address 192.168.1.2<br />
netmask 255.255.255.0<br />
network 192.168.1.0<br />
broadcast 192.168.1.255<br />
gateway 192.168.1.1</li>
<li>Set the resolver for proper DNS servers.<br />
nano -w /etc/resolv.confsearch foo.com<br />
nameserver 192.168.1.3<br />
nameserver 192.168.1.4</li>
<li>Next you will need to restart the network component.<br />
/etc/init.d/networking restart</li>
<li>Add your new static IP to the hosts table.<br />
nano -w /etc/hosts</p>
<p>127.0.0.1 localhost.localdomain localhost debian</p>
<p>192.168.1.2 debian.foo.com debian</p>
<p># The following lines are desirable for IPv6 capable hosts<br />
::1 ip6-localhost ip6-loopback<br />
fe00::0 ip6-localnet<br />
ff00::0 ip6-mcastprefix<br />
ff02::1 ip6-allnodes<br />
ff02::2 ip6-allrouters<br />
ff02::3 ip6-allhosts</li>
<li>Set the system&#8217;s hostname.echo server1.example.com &gt; /etc/hostname<br />
/bin/hostname -F /etc/hostname</li>
<li>Install some needed software packages and services.apt-get install wget bzip2 rdate unzip zip ncftp nmap lynx fileutils dnsutils<br />
apt-get install tcpdump less make tftp rdate file gcc g++ ssh</li>
<li>Sync the time with an atomic clock.crontab -e
<p># update time with time.nist.gov<br />
0 3,9,15,21 * * * /usr/sbin/rdate time.nist.gov | logger -t NTP</li>
<li>Set up the &#8216;bashrc&#8217; file.nano -w /root/.bashrc
<p># ~/.bashrc: executed by bash(1) for non-login shells.</p>
<p>export PS1=&#8217;\h:\w\$ &#8216;<br />
umask 022</p>
<p># You may uncomment the following lines if you want `ls&#8217; to be colorized:<br />
export LS_OPTIONS=&#8217;&#8211;color=auto -h&#8217;<br />
eval &#8220;`dircolors`&#8221;<br />
alias ls=&#8217;ls $LS_OPTIONS&#8217;<br />
alias ll=&#8217;ls $LS_OPTIONS -l&#8217;<br />
alias l=&#8217;ls $LS_OPTIONS -lA&#8217;</p>
<p># Some more alias to avoid making mistakes:<br />
alias rm=&#8217;rm -i&#8217;<br />
alias cp=&#8217;cp -i&#8217;<br />
alias mv=&#8217;mv -i&#8217;</p>
<p># Bohack&#8217;s stuff<br />
alias nano=&#8217;nano -w -K&#8217;<br />
alias pico=&#8217;nano -w -K&#8217;<br />
alias ptree=&#8217;ps axf&#8217;</p>
<p>PS1=&#8217;\[\033[36;1m\w \[\033[35;1m\h \[\033[0m\$ &#8216;<br />
export PS1<br />
export GREP_OPTIONS=&#8221;&#8211;color=auto&#8221;<br />
TERM=xterm-color<br />
export TERM<br />
cd /</li>
</ol>
<p>Done! You now have a minimal install of Debian as a clean install. Don&#8217;t forget to do an &#8216;apt-get update&#8217; and an &#8216;apt-get upgrade&#8217;, to install any major/minor updates.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bohack.com/2008/11/clean-debian-etch-install/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
