<?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>Debian Tutorials &#187; General</title>
	<atom:link href="http://www.debiantutorials.com/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debiantutorials.com</link>
	<description>Copy/Paste tutorials for Debian based Linux distros</description>
	<lastBuildDate>Tue, 27 Dec 2011 01:15:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Installing and using the IPMI tool</title>
		<link>http://www.debiantutorials.com/installing-and-using-the-ipmi-tool/</link>
		<comments>http://www.debiantutorials.com/installing-and-using-the-ipmi-tool/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 23:12:42 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Etch]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Squeeze]]></category>
		<category><![CDATA[bmc]]></category>
		<category><![CDATA[ipmi]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.com/?p=416</guid>
		<description><![CDATA[The Intelligent Platform Management Interface (IPMI) is a standardized computer system interface used by system administrators to manage a computer system and monitor its operation. The development of this interface specification was led by Intel Corporation and is supported by more than two hundred computer systems vendors including Dell, Hewlett-Packard, Intel, and NEC Corporation. 1. [...]]]></description>
			<content:encoded><![CDATA[<p>The Intelligent Platform Management Interface (IPMI) is a standardized computer system interface used by system administrators to manage a computer system and monitor its operation.</p>
<p>The development of this interface specification was led by Intel Corporation and is supported by more than two hundred computer systems vendors including Dell, Hewlett-Packard, Intel, and NEC Corporation.</p>
<p>1. Install the ipmitool which is used to send commands and receive information from the management interface.</p>
<p><code>apt-get install ipmitool<br />
</code><span id="more-416"></span></p>
<p>2. Use this command to send and receive information to a remote server</p>
<p><code>ipmitool -H {ip_address} -U {username} -a {ipmi_command}<br />
</code></p>
<p><em>You can also skip the "-a" parameter (which makes ipmitool prompt for a password everytime) and add "-P {password}" to avoid the password prompt.</em></p>
<p><strong>Here are some examples of useful commands</strong></p>
<p>Get hardware status (including hardware failures and power status)</p>
<p><code>ipmitool -H {ip_address} -U {username} -a chassis status<br />
</code></p>
<p>List all sensor values (including temperature, fan speed, voltage and more)</p>
<p><code>ipmitool -H {ip_address} -U {username} -a sensor list<br />
</code></p>
<p>Print system event log</p>
<p><code>ipmitool -H {ip_address} -U {username} -a sel list<br />
</code></p>
<p>Check if your server is on or off</p>
<p><code>ipmitool -H {ip_address} -U {username} -a chassis power status<br />
</code></p>
<p>Power off the server (soft shutdown via ACPI)</p>
<p><code>ipmitool -H {ip_address} -U {username} -a chassis power soft<br />
</code></p>
<p>Power off the server (hard)</p>
<p><code>ipmitool -H {ip_address} -U {username} -a chassis power off<br />
</code></p>
<p>Start the server</p>
<p><code>ipmitool -H {ip_address} -U {username} -a chassis power on<br />
</code></p>
<p>Restart server (hard)</p>
<p><code>ipmitool -H {ip_address} -U {username} -a chassis power reset<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-and-using-the-ipmi-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and configuring Unison File Synchronizer</title>
		<link>http://www.debiantutorials.com/installing-and-configuring-unison-file-synchronizer/</link>
		<comments>http://www.debiantutorials.com/installing-and-configuring-unison-file-synchronizer/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 00:03:33 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[synchronize]]></category>
		<category><![CDATA[unison]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.com/?p=358</guid>
		<description><![CDATA[Unison is a file-synchronization tool for Unix and Windows. It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other. 1. Install the Unison [...]]]></description>
			<content:encoded><![CDATA[<p>Unison is a file-synchronization tool for Unix and Windows. It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other.</p>
<p>1. Install the Unison package</p>
<p><code>apt-get install unison<br />
</code><span id="more-358"></span></p>
<p>2. Configure the Unison defaults (pico /root/.unison/default.prf)</p>
<p><code># skip asking for confirmations on non-conflicting changes<br />
auto=true<br />
&nbsp;<br />
# the user interface will ask no questions at all<br />
batch=true<br />
&nbsp;<br />
# Unison will request an extra confirmation if it appears that the entire replica has been deleted<br />
confirmbigdeletes=true<br />
&nbsp;<br />
# Unison will use the modification time and length of a file as a `pseudo inode number' when scanning replicas for updates, instead of reading the full cont$<br />
fastcheck=true<br />
&nbsp;<br />
# the group attributes of the files are synchronized<br />
group=true<br />
&nbsp;<br />
# the owner attributes of the files are synchronized<br />
owner=true<br />
&nbsp;<br />
# prefer newer version of files in case of conflicts<br />
prefer=newer<br />
&nbsp;<br />
# the textual user interface will print nothing at all, except in the case of errors.<br />
silent=true<br />
&nbsp;<br />
# file modification times (but not directory modtimes) are propagated.<br />
times=true<br />
</code></p>
<p><em>A few of the configuration values will make Unsion silent so that no user action will be required to do the sync, deleted files will be moved to /var/backups/unison to avoid accidental deletion and if the same file is updated on both servers we'll keep the newer file.</em></p>
<p>3. Create a private key to avoid passphrase popup to be able to do automatic synchronization</p>
<p><code>ssh-keygen -t dsa<br />
</code></p>
<p>4. Copy the key to the remote machine</p>
<p><code>ssh-copy-id -i .ssh/id_dsa.pub user1@remote.machine.com<br />
</code></p>
<p>5. Manually synchronize a directory</p>
<p><code>unison /var/www ssh://remote.machine.com//var/www<br />
</code></p>
<p><em>This will sync /var/www between the local machine and remote.machine.com</code></p>
<p>6. Automatically synchronize every 5 minutes using crontab (crontab -e)</p>
<p><code>*/5 * * * * unison /var/www ssh://remote.machine.com//var/www &#038;> /dev/null<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-and-configuring-unison-file-synchronizer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and configuring PPTP VPN server on lenny</title>
		<link>http://www.debiantutorials.com/installing-and-configuring-pptp-vpn-server-on-lenny/</link>
		<comments>http://www.debiantutorials.com/installing-and-configuring-pptp-vpn-server-on-lenny/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 22:21:36 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/installing-and-configuring-pptp-vpn-server-on-lenny/</guid>
		<description><![CDATA[If you would like to setup a Virtual Private Network (VPN) for Windows clients, PPTP is a great choice. It's easy to set up on the server and you don't need any additional software for the Windows clients to connect. 1. Install the required packages apt-get install pptpd 2. Configure the IP range assigned to [...]]]></description>
			<content:encoded><![CDATA[<p>If you would like to setup a Virtual Private Network (VPN) for Windows clients, PPTP is a great choice. It's easy to set up on the server and you don't need any additional software for the Windows clients to connect.</p>
<p>1. Install the required packages</p>
<p><code>apt-get install pptpd<br />
</code><span id="more-237"></span></p>
<p>2. Configure the IP range assigned to clients (pico /etc/pptpd.conf)</p>
<p><code>localip 192.168.1.2<br />
remoteip 192.168.1.10-20<br />
</code></p>
<p><em>Using this config the clients are assigned any IP address between and including 192.168.1.10 and 192.168.1.20.</em></p>
<p>3. Restart the PPTP daemon</p>
<p><code>/etc/init.d/pptpd restart<br />
</code></p>
<p>4. Create a user allowed to connect (pico /etc/ppp/chap-secrets)</p>
<p><code>user1 pptpd secretpassword *<br />
</code></p>
<p><em>Passwords are not encrypted. This allows the a user with the username: user1 and the password: secretpassword to login from any ip address.</em></p>
<p>5. Enable IP forward at startup to allow the VPN clients to connect to the server's local network. (pico /etc/sysctl.conf)</p>
<p><code>net.ipv4.ip_forward=1<br />
</codE></p>
<p>Also run this command to activate the IP forward instantly:</p>
<p><code>echo 1 > /proc/sys/net/ipv4/ip_forward<br />
</code></p>
<p>6. Create a routing rule to allow the VPN clients to route network traffic through the server.</p>
<p><code>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE<br />
</code></p>
<p>Read this tutorial to learn how to create iptables rules on startup:<br />
<a href="http://www.debiantutorials.net/loading-iptables-rules-on-startup/">Loading iptables rules on startup</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-and-configuring-pptp-vpn-server-on-lenny/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Using Debian Volatile to keep your packages updated</title>
		<link>http://www.debiantutorials.com/using-debian-volatile-to-keep-your-packages-updated/</link>
		<comments>http://www.debiantutorials.com/using-debian-volatile-to-keep-your-packages-updated/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 13:13:29 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[volatile]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=96</guid>
		<description><![CDATA[Some packages aim at fast moving targets, such as spam filtering and virus scanning, and even when using updated data patterns, they do not really work for the full time of a stable release. The main goal of volatile is allowing system administrators to update their systems in a nice, consistent way, without getting the [...]]]></description>
			<content:encoded><![CDATA[<p>Some packages aim at fast moving targets, such as spam filtering and virus scanning, and even when using updated data patterns, they do not really work for the full time of a stable release. The main goal of volatile is allowing system administrators to update their systems in a nice, consistent way, without getting the drawbacks of using unstable, even without getting the drawbacks for the selected packages. So debian-volatile will only contain changes to stable programs that are necessary to keep them functional.<span id="more-96"></span></p>
<p>1. Add volatile archive to apt sources (pico /etc/apt/sources.list)</p>
<p>Etch:<br />
<code>deb http://volatile.debian.org/debian-volatile etch/volatile main contrib non-free<br />
</code></p>
<p>Lenny:<br />
<code>deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free<br />
</code></p>
<p><em>Note. Only add one of the line depending on your Debian version.</em></p>
<p>2. Update apt repository</p>
<p><code>apt-get update<br />
</code></p>
<p>3. Upgrade you packages</p>
<p><code>apt-get dist-upgrade<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/using-debian-volatile-to-keep-your-packages-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add an additional IP address to your server</title>
		<link>http://www.debiantutorials.com/add-an-additional-ip-address-to-your-server/</link>
		<comments>http://www.debiantutorials.com/add-an-additional-ip-address-to-your-server/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 22:47:22 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=94</guid>
		<description><![CDATA[1. Open the network configuration file (pico /etc/network/interfaces) Check the name of your network interface. You should see a line similar to this one: "iface eth0 inet static". In my case the name is eth0. Add these lines to the end of the file: auto eth0:1 iface eth0:1 inet static address 192.168.1.3 netmask 255.255.255.0 broadcast [...]]]></description>
			<content:encoded><![CDATA[<p>1. Open the network configuration file (pico /etc/network/interfaces)</p>
<p>Check the name of your network interface. You should see a line similar to this one: "iface eth0 inet static". In my case the name is eth0.</p>
<p>Add these lines to the end of the file:</p>
<p><code>auto eth0:1<br />
iface eth0:1 inet static<br />
address 192.168.1.3<br />
netmask 255.255.255.0<br />
broadcast 192.168.1.255<br />
network 192.168.1.0<br />
</code><span id="more-94"></span></p>
<p><em>Replace eth0 by your network interface name. If you are adding multiple IP addresses to the same system, you can increase the number after "eth0:".</em></p>
<p>2. Activate the new virtual network interface</p>
<p><code>ifup eth0:1<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/add-an-additional-ip-address-to-your-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Upgrade from etch to lenny</title>
		<link>http://www.debiantutorials.com/upgrade-from-etch-to-lenny/</link>
		<comments>http://www.debiantutorials.com/upgrade-from-etch-to-lenny/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 23:14:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://debiantutorials.net/upgrade-from-etch-to-lenny/</guid>
		<description><![CDATA[Debian has released a stable version of Debian 5.0 (lenny). If you're running previous version of Debian, you can easily upgrade. 1. Update all packages currently installed to the latest etch versions apt-get update apt-get upgrade 2. Replace all occurrences of etch with lenny in the apt sources file (pico /etc/apt/sources.list). Here's an example of [...]]]></description>
			<content:encoded><![CDATA[<p>Debian has released a stable version of Debian 5.0 (lenny). If you're running previous version of Debian, you can easily upgrade.</p>
<p>1. Update all packages currently installed to the latest etch versions</p>
<p><code>apt-get update<br />
apt-get upgrade<br />
</code><span id="more-27"></span></p>
<p>2. Replace all occurrences of etch with lenny in the apt sources file (pico /etc/apt/sources.list). Here's an example of what the file could look like after the change:</p>
<p><code>deb http://ftp.uk.debian.org/debian/ lenny main non-free<br />
deb-src http://ftp.uk.debian.org/debian/ lenny main non-free<br />
deb http://security.debian.org/ lenny/updates main contrib<br />
deb-src http://security.debian.org/ lenny/updates main contrib<br />
</code></p>
<p>3. Update apt repository</p>
<p><code>apt-get update<br />
</code></p>
<p>4. Upgrade apt, dpkg and aptitude packages first</p>
<p><code>apt-get install apt dpkg aptitude<br />
</code></p>
<p>5. Do a dist-upgrade to upgrade the rest of the system</p>
<p><code>apt-get dist-upgrade<br />
</code></p>
<p>6. Reboot</p>
<p><code>reboot<br />
</code></p>
<p>7. Check the debian version</p>
<p><code>cat /etc/debian_version<br />
</code></p>
<p>It should read version 5.0.0 or greater</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/upgrade-from-etch-to-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
