<?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>www.unnionline.com &#187; Ubuntu Server</title>
	<atom:link href="http://www.unnionline.com/blog/tag/ubuntu-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unnionline.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 30 Nov 2011 11:49:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>EXT3 File System On A USB Stick</title>
		<link>http://www.unnionline.com/blog/2009/05/ext3-file-system-on-a-usb-stick/</link>
		<comments>http://www.unnionline.com/blog/2009/05/ext3-file-system-on-a-usb-stick/#comments</comments>
		<pubDate>Mon, 11 May 2009 15:41:39 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Backup Drive]]></category>
		<category><![CDATA[Ext3]]></category>
		<category><![CDATA[File System]]></category>
		<category><![CDATA[Memory Stick]]></category>
		<category><![CDATA[Ubuntu Server]]></category>
		<category><![CDATA[USB Stick]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=93</guid>
		<description><![CDATA[This how-to will create USB]]></description>
			<content:encoded><![CDATA[<p>This how-to will create USB memory stick with ext3 file system. First of all, use <code>sudo fdisk -l</code> to get the device handle of USB stick. It might look something like this:</p>
<p><code>Disk /dev/sdd: 4041 MB, 4041211392 bytes<br />
125 heads, 62 sectors/track, 1018 cylinders<br />
Units = cylinders of 7750 * 512 = 3968000 bytes<br />
Disk identifier: 0xddeb26e6<br />
Device Boot      Start         End      Blocks   Id  System<br />
/dev/sdd1               1        61664     3944719   b  W95 FAT32</code></p>
<p>Now unmount it by typing:</p>
<p><code>sudo umount /dev/sdd1</code></p>
<p>Afterwards, format the USB stick using the following code. Remember to spell the USB device properly. This command is quite dangerous, it will erase everything on the drive specified.</p>
<p><code> sudo mkfs.ext3 /dev/sdd </code></p>
<p>Now that the USB stick is formatted, a new partition has to be create on it. Type:</p>
<p><code> sudo fdisk /dev/sdd</code></p>
<p>to create a partition on the USB stick. This will be the new sdd1 partition. After this is done it has to be formatted again using:</p>
<p><code> sudo mkfs.ext3 /dev/sdd1 </code></p>
<p>to get the ext3 file system on it. </p>
<p>Now then, label the new ext3 USB stick using the command:</p>
<p><code> sudo e2label /dev/sdd1 usb_backup</code></p>
<p><strong>Automatically mounting the USB stick when the server reboots</strong></p>
<p>After the usual backup of the /etc/fstab, edit it to include a new line at end:</p>
<p><code>/dev/sdd1      /media/usb-backup       ext3    user,rw      0       0</code></p>
<p>Create a new directory &#8216;usb-backup&#8217; and make it readable and writable by the user:</p>
<p><code>sudo mkdir /media/usb-backup<br />
sudo chmod 755 /media/usb-backup</code></p>
<p>Use <code>sudo mount -a</code> to mount the drive. </p>
<p>This USB stick can now act as a backup disk.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2009/05/ext3-file-system-on-a-usb-stick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inspecting Network Cards In Ubuntu</title>
		<link>http://www.unnionline.com/blog/2009/05/inspecting-network-cards-in-ubuntu/</link>
		<comments>http://www.unnionline.com/blog/2009/05/inspecting-network-cards-in-ubuntu/#comments</comments>
		<pubDate>Mon, 11 May 2009 10:18:07 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu Server]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=90</guid>
		<description><![CDATA[I was planning to upgrade]]></description>
			<content:encoded><![CDATA[<p>I was planning to upgrade my home network into Gigabit. Before I start to spend money on it, I wanted to check the capabilities of the network cards on my laptop. Here is how I did it.</p>
<p>Install &#8216;hwinfo&#8217;. Its quite an useful tool as it can check the configuration of any hardware. Refer the manpage of more information.</p>
<p><code>sudo apt-get install hwinfo</code></p>
<p>To display details of the network cards on the system, type:</p>
<p><code>sudo hwinfo --netcard</code></p>
<p>Alternatively one can use</p>
<p><code>lshw -C network</code></p>
<p>to display details of the network card. Read manpage for more on lshw.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2009/05/inspecting-network-cards-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring Real-time User Logins In Ubuntu 8.04 Server</title>
		<link>http://www.unnionline.com/blog/2009/05/monitoring-real-time-user-logins-in-ubuntu-804-server/</link>
		<comments>http://www.unnionline.com/blog/2009/05/monitoring-real-time-user-logins-in-ubuntu-804-server/#comments</comments>
		<pubDate>Thu, 07 May 2009 09:18:08 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu Server]]></category>
		<category><![CDATA[whowatch]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=81</guid>
		<description><![CDATA[&#8216;whowatch&#8217; is a console, interactive]]></description>
			<content:encoded><![CDATA[<p>&#8216;whowatch&#8217; is a console, interactive users and process monitoring tool. It displays information about the users currently logged on to the machine, in real-time. Besides the standard informations such as login name, tty, host and the user&#8217;s processes, the type of the connection (ie. telnet or ssh) is also shown. A particular user can be selected and his processes tree may be viewed. Trees are displayed with an additional column that shows the owner of each process. In the process tree mode SIGINT and SIGKILL signals can be sent to the selected process. Killing processes is just as simple and fun as deleting lines on the screen [information from somewhere on the www]. To install &#8216;whowatch&#8217;:</p>
<p><code>sudo apt-get install whowatch</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2009/05/monitoring-real-time-user-logins-in-ubuntu-804-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Check The Memory Usage Stats On Ubuntu Server Via Command Line</title>
		<link>http://www.unnionline.com/blog/2009/04/how-to-check-the-memory-usage-stats-on-ubuntu-server-via-command-line/</link>
		<comments>http://www.unnionline.com/blog/2009/04/how-to-check-the-memory-usage-stats-on-ubuntu-server-via-command-line/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 11:56:30 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[Memory]]></category>
		<category><![CDATA[ps aux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[top]]></category>
		<category><![CDATA[Ubuntu Server]]></category>
		<category><![CDATA[vmstat]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=62</guid>
		<description><![CDATA[Following are some methods to]]></description>
			<content:encoded><![CDATA[<p>Following are some methods to check the memory usage in Ubuntu. More details about these tools can be found from the man pages.</p>
<p><strong>free</strong></p>
<p>free command displays amount of total, free and used RAM in the system, as well as shoing information on shared memory, buffers, cached memory and swap space used by the Linux kernel.</p>
<p><strong>vmstat</strong></p>
<p>vmstat reports report virtual memory statistics, which has information about processes, swap, free, buffer and cache memory, paging space, disk IO activity, traps, interrupts, context switches and CPU activity. With vmstat command, administrators can has instantaneous reports on memory usage.</p>
<p><strong>top</strong></p>
<p>top command displays dynamic real-time view of the running tasks managed by kernel and system information in Linux system. The memory usage stats by top command include real-time live total, used and free physical memory and swap memory with their buffers and cached memory size respectively.</p>
<p><strong>ps</strong></p>
<p>ps command reports a snapshot on information of the current active processes. Advantage of ps command is that system admins will be able to see where the memory is used. ps will show the percentage of memory resource that is used by each process or task running in the system. With this command, top memory hogging processes can be identified.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2009/04/how-to-check-the-memory-usage-stats-on-ubuntu-server-via-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating MediaWiki To A New Server</title>
		<link>http://www.unnionline.com/blog/2009/03/moving-mediawiki-to-a-new-server/</link>
		<comments>http://www.unnionline.com/blog/2009/03/moving-mediawiki-to-a-new-server/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 08:06:17 +0000</pubDate>
		<dc:creator>cbaunni</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[MediaWiki]]></category>
		<category><![CDATA[MediaWiki Backup]]></category>
		<category><![CDATA[Ubuntu Server]]></category>

		<guid isPermaLink="false">http://www.unnionline.com/blog/?p=121</guid>
		<description><![CDATA[Today I decided to move]]></description>
			<content:encoded><![CDATA[<p>Today I decided to move my MediaWiki (MW) from the ailing old server to the new one. Overall it was a fairly simple process but I wanted to share a few things that I learned from the experience.</p>
<p><strong>1. The database</strong></p>
<p><strong>a. Creating the backup</strong></p>
<p>The very first thing that I had to do was to create a safe backup of my MW database. This database now contains all the data in my MW including images, user settings, comments and chats. To do this in MySQL I used the following syntax:</p>
<p><code>mysqldump -u username -p databasename &gt; database.sql</code></p>
<p><strong>b. Creating a new database</strong><br />
This created a file containing all the data from the old database. I used a copy of this file to create a new database in my new server. To do this  I had to first create the database and then import the data using the following syntax:</p>
<p><code>mysql -u root -p new_database_name &lt; database.sql</code></p>
<p><strong>c. Creating a database user</strong></p>
<p>Then I created an account that has access to this database and gave it permissions.  Details about this new user can be found in the LocalSettings.php file of the MW.  Details about the database connection can also be found in this file. For example: </p>
<pre>$wgDBserver         = “localhost”;
$wgDBname           = “database_name”;
$wgDBuser           = “username”;
$wgDBpassword       = “password”;
$wgDBtype           = “mysql”;</pre>
<p>I used the following commands to give proper permission to the new MySQL user  account.</p>
<p><code>GRANT DELETE,INSERT,SELECT,UPDATE ON new_database_name.* TO ‘username’@localhost IDENTIFIED BY ‘password’;</code><br />
<code>GRANT DELETE,INSERT,SELECT,UPDATE ON new_database_name.* TO ‘username’@unnionline.com IDENTIFIED BY ‘password’;</code></p>
<p><strong>2. Moving MW files</strong></p>
<p>Now that the database is properly setup, the next step was to move the MW from the old server to the new one. I recommend anybody using this technique to stick with the original directory structure. I used ssh to do the transferring.</p>
<p><strong>3. Configuring apache</strong></p>
<p>Now that my MW is ready to go online, I had edit my apache configuration file to recognize and host the wiki. Details about configuring apache can be found at http://www.apache.org/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unnionline.com/blog/2009/03/moving-mediawiki-to-a-new-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

