<?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>Nixadmins.net &#187; Linux</title>
	<atom:link href="http://www.nixadmins.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nixadmins.net</link>
	<description>Blogging for knowledge</description>
	<lastBuildDate>Thu, 26 Jan 2012 12:18:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The tale of the broken hard drive</title>
		<link>http://www.nixadmins.net/2011/05/16/the-tale-of-the-broken-hard-drive/</link>
		<comments>http://www.nixadmins.net/2011/05/16/the-tale-of-the-broken-hard-drive/#comments</comments>
		<pubDate>Mon, 16 May 2011 19:32:55 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linkstation]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2011/05/16/the-tale-of-the-broken-hard-drive/</guid>
		<description><![CDATA[About six months ago my trusted Linkstation Live had enough, since late 2008 it has been running without a hitch. The device started blinking red and rebooting it had the nice clicking sound of a broken hard drive. Nothing was recoverable from the drive so I had to start from scratch, first I went to [...]]]></description>
			<content:encoded><![CDATA[<p>About six months ago my trusted <a href="http://buffalo.nas-central.org/wiki/Category:LS-CHL">Linkstation Live</a> had enough, since late 2008 it has been running without a hitch. The device started blinking red and rebooting it had the nice clicking sound of a broken hard drive.</p>
<p>Nothing was recoverable from the drive so I had to start from scratch, first I went to the local computer store and bought myself an Western Digital Caviar Green 1TB drive.</p>
<p>To get it up and running I had to go trough several pages and try some of the tips from one page and some from another. That’s why I decided to put together my own survival-guide here so I can find it the next time this thing goes south. This quick and dirty howto is for the LS-CHL <strong>only!!!</strong></p>
<p>So here it goes:</p>
<p>1. Download the TFTP recovery software from <a title="ftp://24.153.165.234/array1/share/nas-recovery/" href="ftp://24.153.165.234/array1/share/nas-recovery/">ftp://24.153.165.234/array1/share/nas-recovery/</a> , if you have the LS-CHL device it’s the <a href="ftp://24.153.165.234/array1/share/nas-recovery/TFTP%20Boot%20Recovery%20LS-CHL%201.06.exe">TFTP Boot Recovery LS-CHL 1.06</a> you want.</p>
<p>2. Download the latest firmware from Buffalo, the version 1.07 should be the latest one since they don’t develop it anymore. </p>
<p>3. Disassemble the device, here is a picture of the open device <a title="http://www.yamasita.jp/linkstation/2009/09/090912_4l.jpg" href="http://www.yamasita.jp/linkstation/2009/09/090912_4l.jpg">http://www.yamasita.jp/linkstation/2009/09/090912_4l.jpg</a></p>
<p>4. Next you need a computer running Windows XP, I tried Windows 7 but could not get it to work.</p>
<p>5. Insert the new hard-drive into the Linkstation, you should not partition it. Just put it in.</p>
<p>6. Shut down any firewall service on your Windows XP and set your local IP to 192.168.11.1 and subnet 255.255.255.0. The Linkstation should use 192.168.11.150 once in emergency mode.</p>
<p>7. Unpack the TFTP boot recovery file. And start TFTP Boot.exe file. This should fire up a commandprompt. Look for the line Listening on: 192.168.11.1:69, if it’s there everything should go smoothly from now on.</p>
<p>8. Start the Linkstation and wait for the red light to start flashing, now press the function key for a few seconds and release. The light should turn blue and in your command prompt window you should see the transfer starting.</p>
<p>9. Once the transfer is done start NasNavi.exe to see if your computer can find the device. If it can you can now set your computer to get it’s IP automatically and unpack the Buffalo stock firmware.</p>
<p>10. When you have unpacked the firmware edit the LSUpdater.ini, in the end add</p>
<p>[specialflags]</p>
<p>debug = 1</p>
<p>11. Save and close the LSUpdater.ini file</p>
<p>12. Start the LSUpdater.exe and right click the rings in the upper left corner. Select Debug.</p>
<p>13. Enable all options on the right side of the window and press ok.</p>
<p>14. Start the update.</p>
<p>&#160;</p>
<p>Wait for a while, quite a while actually and you should have your stock Linkstation Live back. Mine set the language to Japanese but it’s really easy to find the language settings even in Japanese <img src='http://www.nixadmins.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#160;</p>
<p>If you can’t follow this try googling especially from nas-central.org, this is purely a note for myself in case I ever need to do this again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2011/05/16/the-tale-of-the-broken-hard-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating from IMAP to Exchange 2010</title>
		<link>http://www.nixadmins.net/2010/12/02/moving-from-imap-to-exchange-2010/</link>
		<comments>http://www.nixadmins.net/2010/12/02/moving-from-imap-to-exchange-2010/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 12:49:00 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Exchange Server 2010]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2010/12/02/moving-from-imap-to-exchange-2010/</guid>
		<description><![CDATA[I know this is a challenge for many professionals out there. And while there are many third party applications to migrate users from old systems to Exchange 2010 they don’t come cheap. There is also the fact that most old Linux based email systems use databases for user/password storage so you will need to get [...]]]></description>
			<content:encoded><![CDATA[<p>I know this is a challenge for many professionals out there. And while there are many third party applications to migrate users from old systems to Exchange 2010 they don’t come cheap. There is also the fact that most old Linux based email systems use databases for user/password storage so you will need to get into them to properly move accounts. Due to this we need to be able to customize the process.</p>
<p>This is a highly customized process for the migration. I suggest you test <strong>everything</strong> here in your test lab <strong>before</strong> you even attempt to run it in production. All advice is provided as is and if something goes wrong you are on your own.</p>
<p><em>Image 1</em> displays a simplified setup of an Exchange system where we have two client access servers in a simple cluster and three backend mailbox servers.</p>
<p>&#160;</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2010/12/image.png"><img style="background-image: none; border-right-width: 0px; margin: 10px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Image 1" border="0" alt="Image 1" src="http://www.nixadmins.net/wp-content/uploads/2010/12/image_thumb.png" width="354" height="394" /></a></p>
<h3>What this article does not discuss</h3>
<p>I will not go into any email routing so you need to make sure the email is routed correctly to your backend servers. <strong><font color="#ff0000">This article will only take a look at activating the user mailbox in Exchange 2010 and synchronizing the IMAP account from the Linux server to the Exchange server.</font></strong></p>
<h3>Software and information</h3>
<p>To successfully follow this article you need to know how to reset the IMAP users passwords and you need to know their usernames. That’s not something I will go into here, we used scripts to reset the passwords but you might want to do it another way.</p>
<p>You also need to install <a href="http://www.linux-france.org/prj/imapsync/" target="_blank">IMAPSync</a> on the Linux server, it doesn’t necessarily have to be the one hosting the mailboxes, it could be another server. We used a third server for this because it was easier to install <a href="http://www.linux-france.org/prj/imapsync/" target="_blank">IMAPSync</a> on a fresh <a href="http://www.centos.org/" target="_blank">CentOS 5</a> server than getting it set up on the old Linux server. The <a href="http://www.linux-france.org/prj/imapsync/" target="_blank">IMAPSync</a> .rpm is available in the rpmforge repository. More information on that here <a title="http://dag.wieers.com/rpm/" href="http://dag.wieers.com/rpm/">http://dag.wieers.com/rpm/</a>.</p>
<h3>Simple walkthrough of the process</h3>
<p>The HUB servers have a common FQDN, like exchange.domain.com. The HUB servers need to have the IMAP service started since this is the interface for the transfer. Normally this service is stopped in Exchange servers.</p>
<p>Our Linux server is running IMAP so we can connect to it without making any changes to it.</p>
<p>The flowchart in <em>image 2</em> shows us the process</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2010/12/image1.png"><img style="background-image: none; border-right-width: 0px; margin: 10px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Image 2" border="0" alt="Image 2" src="http://www.nixadmins.net/wp-content/uploads/2010/12/image_thumb1.png" width="296" height="345" /></a></p>
<p>As I said above, <strong><font color="#ff0000">you need to take care of the email routing before you activate mailboxes.</font></strong> Once the mailbox is activated all internal email from other Exchange users will go to the Exchange mailbox.</p>
<p>So to prepare we need to file the users we want to move in tables to be exported to comma separated values. We used Excel but you may use whatever you want. The file was set up like this</p>
<table border="0" cellspacing="0" cellpadding="2" width="536">
<tbody>
<tr>
<td valign="top" width="96"><strong>uname</strong></td>
<td valign="top" width="170"><strong>alias</strong></td>
<td valign="top" width="268"><strong>smtp</strong></td>
</tr>
<tr>
<td valign="top" width="96">user1</td>
<td valign="top" width="170">Fname.Sname</td>
<td valign="top" width="268">fname.sname@domain.com</td>
</tr>
<tr>
<td valign="top" width="96">user2</td>
<td valign="top" width="170">Fname2.Sname2</td>
<td valign="top" width="268">fname2.sname2@domain.com</td>
</tr>
</tbody>
</table>
<p>&#160;</p>
<p>This table was collected from local support engineers so they were able to define the users they wanted us to move. This article assumes the username for the Linux server is the whole SMTP address. Yours might differ and you would have to adapt this to any of my simple scripts.</p>
<h3>The files needed for the servers</h3>
<p>For the Exchange Server we need all of the columns so export everything to a CSV file. After export the file should look something like this</p>
<p class="terminal">uname,alias,smtp    <br />user1,Fname.Sname,fname.sname@domain.com     <br />user2,Fname2.Sname2,fname2.sname2@domain.com     </p>
<p>Assuming your alias combined with the domain.com is the username on the Linux server you would only need to export the Alias column to a file which should look something like this</p>
<p class="terminal">Fname.Sname    <br />Fname2.Sname2     </p>
<p>When you have the two files, for simplicity let’s call them Exchange.csv and Linux.txt, copy them to the servers. The Linux.txt file should locate on the server you want to run IMAPSync from.</p>
<h3>Activating mailboxes and setting the permissions</h3>
<p>To move email we are going to use <em>one </em>special purpose account created only to move other users email. So open up your <strong>Active Directory Users and Computers</strong> and create a simple domain user account. During this example I’ll call this user <strong><em>Exch_mig_user</em></strong>. You can call it anything, or if you really want to, you can use an existing account. </p>
<p>Once you have an suitable account to set the Full access permissions for we can go ahead and create some mailboxes. So log into your mailbox server and fire up Exchange management shell.</p>
<p>The Exchange.csv file should already be located on the server, let’s say it’s in C:\.</p>
<p>To activate the mailboxes we run the following PowerShell command</p>
<p class="ps">PS C:\&gt;Import-CSV C:\Exchange.csv | foreach-object{Enable-Mailbox –Identity $_.uname –Alias $_.alias –PrimarySMTPAddress $_.smtp}    </p>
<p>This imports our CSV file and uses the values from the file to fill in the blanks in our <strong>Enable-Mailbox</strong> command. <font color="#c0504d"><strong>If you want to see what this command would do before using it just ad –WhatIF after $_.smtp.</strong></font><font color="#000000"> –WhatIf can be used with any of the PowerShell commands here.</font></p>
<p>After this we need to set the permissions on the mailboxes so the Exch_mig_user account will be able to access the mailbox.</p>
<p>Once again using PowerShell we run</p>
<p class="ps">PS C:\&gt;Import-CSV Exchange.csv |foreach-object{Add-MailBoxPermission $_.Alias –user Exch_mig_user –AccessRights FullAccess} </p>
<p>Again, using –WhatIf will show you what would be done.</p>
<p>After running this we will be able to access any of the user accounts defined in the Exchange.csv file using the <strong>Exch_mig_user </strong>account. This is done so we don’t have to reset any user passwords in Active directory.</p>
<p>After you’re done move over to the Linux server but do not delete the Exchange.csv file, we will use it again later.</p>
<h3>Reset Linux passwords</h3>
<p>Looking at the flowchart in Image 2 this is where we reset the passwords for the Linux email users so they wont be able to log into the old system anymore and so we can access their email data. As I said before every system here can be different so I’m going to leave this part to you. You can script it, do it manually or have someone else do it. Just set the password to something useful if the server will continue to be active so it wont get hacked.</p>
<h3>Using IMAPSync</h3>
<p>Now that we have our Exchange accounts active and our Linux account passwords changed we can start the sync process. Notice the word <strong><em>sync</em></strong>, as this will not remove any email from the old server. It will sync them and if you run it again only new items will be moved.</p>
<p>So in our Linux server we have our Linux.txt file containing the First name and Surname of the users we are going to move.</p>
<p>The simple bash script I used looks like this</p>
<p class="terminal">#!/bin/bash    <br />logfile=&quot;synclog.txt&quot;     <br />testlog=&quot;/tmp/testlog.txt&quot;     <br />host1=linuximap.domain.com     <br />#host1 is Source     <br />host2=exchange.domain.com     <br />#host2 is Dest     <br />domain=domain.com     <br />#domain is where email account is #everything after @ symbol ######     <br />Do not modify past here #######################################     <br />date=`date +%X_-_%x`     <br />echo &quot;&quot; &gt;&gt; $logfile echo &quot;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&quot; &gt;&gt; $logfile     <br />echo &quot;IMAPSync started.. $date&quot; &gt;&gt; $logfile     <br />echo &quot;&quot; &gt;&gt; $logfile     <br />{ while IFS=&#8217;;&#8217; read u1; do     <br />user=$u1&quot;@&quot;$domain     <br />echo &quot;Syncing User $user&quot;     <br />date=`date +%X_-_%x`     <br />echo &quot;Start Syncing User $u1&quot;     <br />echo &quot;Starting $u1 $date&quot; &gt;&gt; $logfile     <br />imapsync &#8211;buffersize 8192000 &#8211;nosyncacls &#8211;subscribe &#8211;syncinternaldates &#8211;noauthmd5 &#8211;host1 $host1 &#8211;user1 &quot;$user&quot; &#8211;password1 <strong><font color="#d16349">TheLinuxPassword</font></strong> &#8211;ssl1 &#8211;port1 993 &#8211;host2 $host2 &#8211;user2 <strong><font color="#d16349">AD_DOMAINNAME</font></strong>/Exch_mig_user/$u1 &#8211;password2 <font color="#d16349"><strong>Exch_mig_user_PASSWORD        <br /></strong></font>date=`date +%X_-_%x`     <br />echo &quot;User $user done&quot; echo &quot;Finished $user $date&quot; &gt;&gt; $logfile     <br />echo &quot;&quot; &gt;&gt; $logfile     <br />done ; } &lt; Linux.txt     </p>
<p>date=`date +%X_-_%x`     <br />echo &quot;&quot; &gt;&gt; $logfile echo &quot;IMAPSync Finished.. $date&quot; &gt;&gt; $logfile     <br />echo &quot;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&quot; &gt;&gt; $logfile </p>
<p><em><strong><font color="#ff0000">As with any script downloaded from the internet, read it, understand it and use it at your own peril!</font></strong></em></p>
<p>Since we have changed all Linux users passwords to a specific password we can use a static password. If you want to use different passwords for different accounts you need to modify the script and the Linux.txt file.</p>
<p>Also the user used to access the Exchange mailboxes is the same for every account so the password can be static there to.</p>
<p>You need to change the following in the script</p>
<ul>
<li><strong><font color="#d16349">TheLinuxPassword</font></strong> </li>
<li><strong><font color="#d16349">AD_DOMAINNAME</font></strong> </li>
<li><strong><font color="#d16349">Exch_mig_user_PASSWORD</font></strong> </li>
</ul>
<p>Once they are set to your private settings you can run the script and it will sync the users from the IMAP server to Exchange Server via IMAP. Every account synced will be logged to the synclog.txt file.</p>
<p>Once the synchronization is done it’s time to once again go over to the Exchange server and remove the Full Access Permissions for the Exch_mig_user account.</p>
<h3>Removing the full access permissions</h3>
<p>Now that we have synced the defined users mail from our old system to our new system it’s time to remove the full access permissions of the account we used while moving email.</p>
<p>Again open the Exchange Management shell and run the following</p>
<p class="ps">PS C:\&gt;Import-CSV Exchange.csv | foreach-object{Remove-MailboxPermission $_.Alias –user Exch_mig_user –AccessRights FullAccess –confirm: $false} </p>
<p>The –confirm: $false statement is there so we don’t have to confirm every permission change. If you move hundreds of users a time you don’t want to confirm this for every mailbox.</p>
<p>Once the script is done you should be done.</p>
<h3>Summary</h3>
<p>This might not be the most effective or the best way to move users from IMAP to Exchange, but it works and it does not cost anything but time spent on it. One problem is that IMAP folders will be synced one-to-one so if you have subfolders etc. your Exchange mailbox might get a little cluttered. But users have a tendency to clean it up, and we see to it that they get everything with them from the old system.</p>
<p>If you do use this method I’d really like to hear about it and if you have any questions feel free to ask. You can use comments here or send me an message using the <strong>contact page</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2010/12/02/moving-from-imap-to-exchange-2010/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Supporting family and friends</title>
		<link>http://www.nixadmins.net/2010/12/01/supporting-family-and-friends/</link>
		<comments>http://www.nixadmins.net/2010/12/01/supporting-family-and-friends/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 13:21:54 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/?p=716</guid>
		<description><![CDATA[As most readers here are quite technical I thought I&#8217;d share one little application with you. Some may already be using it and others will be using it in a moment. Have you ever had a friend or family member call you because they have issues with their computer? I guess all of us have [...]]]></description>
			<content:encoded><![CDATA[<p>
As most readers here are quite technical I thought I&#8217;d share one little application with you. Some may already be using it and others will be using it in a moment.<br />
Have you ever had a friend or family member call you because they have issues with their computer? I guess all of us have since we are the experts in this area. In a corporate world we fire up some remote assistance software to help the user with his/her issues if we can&#8217;t solve it over the phone. What do we do at home? Mostly try to explain where to find settings and when it won&#8217;t work we get in our car and go to fix the computer locally. Well not anymore.
</p>
<h3>TeamViewer to the rescue</h3>
<p>
This is just one wonderful piece of software, never again will I have to get away from the comfort of my home office to fix a friends computer. I use <a href="http://www.teamviewer.com/">TeamViewer</a> for every last one of these problems.<br />
There are two reasons for this, the first one is in non-commercial use TeamViewer is free as in beer and the second is the variety of platforms you can run <a href="http://www.teamviewer.com/">TeamViewer</a> on.  <a href="http://www.teamviewer.com/">TeamViewer</a> runs on Windows, Mac, Linux and mobile devices. Granted I wouldn&#8217;t use my iPhone to support someone on a 24&#8243; monitor but it is be possible.<br />
Using it is so easy even your 90-year old grandma can use it.  Just have them download and start up the QuickSupport version of <a href="http://www.teamviewer.com/">TeamViewer</a> and you can install the All-In-One full version. <br />
From your client you will get the sessionID and the password, tap them into your full client and you are connected to their screen.<br />
I promise you will save a lot of time using this. What ever your personal support incidents might be. Just remember it wont work if their problem is the connection to the network <img src='http://www.nixadmins.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2010/12/01/supporting-family-and-friends/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stop hotlinking</title>
		<link>http://www.nixadmins.net/2010/11/29/stop-hotlinking/</link>
		<comments>http://www.nixadmins.net/2010/11/29/stop-hotlinking/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 20:51:15 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[hotlink]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/?p=708</guid>
		<description><![CDATA[I was looking at my webserver logs tonight and saw that there where quite a few sites hotlinking some of our icons and buttons. Putting pictures on the web they are gone in a second but please people, use your OWN bandwidth, not mine. Anyway this made me decide I had to do some .htaccess [...]]]></description>
			<content:encoded><![CDATA[<p>
I was looking at my webserver logs tonight and saw that there where quite a few sites hotlinking some of our icons and buttons. Putting pictures on the web they are gone in a second but please people, use your <b>OWN</b> bandwidth, not mine. Anyway this made me decide I had to do some .htaccess magic and stop this bandwidth theft. And as always, I thought I&#8217;d document it here so someone else can use this if someone is linking in to use their pictures.
</p>
<h3>The new picture</h3>
<p>
First I created a new picture to be sent to the hotlinkers. And if they didn&#8217;t use image size properties I made it double the size of the old one so hopefully it might mess with their layout a little.<br />
The image created looked like this<br />
<img src="http://www.nixadmins.net/pics/no_hotlink.gif" alt="No HOTLINK" />
</p>
<h3>The .htaccess file</h3>
<p>
After the new nice image was done I just had to do some .htaccess magic to replace what was sent out to the requesters.</p>
<div class="terminal">
RewriteEngine On<br />
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?nixadmins\.net/ [NC]<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://image_dump_host.com/no_hotlink.gif [L]
</div>
<p>
That&#8217;s it. Now anyone linking in on images will only see the image from the image dump host. You could use imageshack or any other service for this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2010/11/29/stop-hotlinking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Tip: Installing Linux from USB-stick</title>
		<link>http://www.nixadmins.net/2009/11/25/quick-tip-installing-linux-from-usb-stick/</link>
		<comments>http://www.nixadmins.net/2009/11/25/quick-tip-installing-linux-from-usb-stick/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 11:28:46 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/11/25/quick-tip-installing-linux-from-usb-stick/</guid>
		<description><![CDATA[This is a short tip so I will remember how to do this the next time I need to. It’s not a lengthy article or in-depth howto. Anyway, today I wanted to try out the latest Ubuntu (9.10) on my Lenovo X200s and my docking station was at work so I had no access to [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short tip so I will remember how to do this the next time I need to. It’s not a lengthy article or in-depth howto. Anyway, today I wanted to try out the latest Ubuntu (9.10) on my Lenovo X200s and my docking station was at work so I had no access to a dvd drive.</p>
<p>Installing from a USB-stick should be trivial so I decided to try it out and googled around to find some information on how to put Ubuntu on my Kingston Datatraveler. </p>
<p>Googling I found this wonderful program that, if needed, even downloads the files for you. But since I already had the Ubuntu ISO I could just start up UNetBootin and have it set Ubuntu on my USB-stick.</p>
<p>To do this just download <a title="http://unetbootin.sourceforge.net/" href="http://unetbootin.sourceforge.net/">http://unetbootin.sourceforge.net/</a> and start it. Select your ISO and the destination drive and you’re done. After that you have a fully functional USB Linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/11/25/quick-tip-installing-linux-from-usb-stick/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Are 64-bit operating systems ready for the desktop?</title>
		<link>http://www.nixadmins.net/2009/04/27/are-64-bit-operating-systems-ready-for-the-desktop/</link>
		<comments>http://www.nixadmins.net/2009/04/27/are-64-bit-operating-systems-ready-for-the-desktop/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 11:00:48 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[Drivers]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/04/27/are-64-bit-operating-systems-ready-for-the-desktop/</guid>
		<description><![CDATA[I’ve been asking myself this for a while now. 64-bit has been a standard for several years now and still computers are sold with 32-bit operating systems. Why is this? The only reliable 64-bit OS I’ve used was my MacBook Pro which I sold. It worked and I never really had any driver issues with [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been asking myself this for a while now. 64-bit has been a standard for several years now and still computers are sold with 32-bit operating systems. Why is this?</p>
<p><strong><em>The only reliable 64-bit OS I’ve used was my MacBook Pro which I sold</em></strong>. It worked and I never really had any driver issues with it. So why are PC’s still sold with <em>XP or Vista 32-bit</em>. XP and Vista both have 64-bit versions and still vendors don’t supply decent drivers. Why? It makes me almost mad to be using a 64-bit OS only to notice I can’t get this or that working on it since there are no drivers. Which naturally makes me ask, has Linux passed Windows in hardware compatibility when it comes to 64-bit?</p>
<p>I recently got my <a href="http://www.nixadmins.net/2009/03/16/lenovo-x200s-rant/">Lenovo X200s</a> and it came with Windows Vista business 32-bit. I ran it for a while but since it had 4Gb of RAM I wanted to try out Vista Enterprise 64-bit. Vista 64 has been a ride of ups and downs. The Intel graphics controller driver keeps crashing, even after several updates and the one thing I miss the most is my <a href="http://www.targus.com/uk/product_details.asp?sku=PA088E" target="_blank">Targus USB-to-Serial cable</a>. As I work with network appliances I need a serial connection and these days it’s almost impossible to get a serial port in a laptop so the fallback is a usb-to-serial cable. Targus does not supply 64-bit drivers for the cable so I have to keep an old IBM T42 for this purpose.</p>
<p>What is it that makes the normally fast moving computer industry to keep on feeding the 32-bit OS? Is it really to much to ask to get drivers for my 64-bit OS?</p>
<p>Do you have similar feelings or does your 64-bit computer work like a charm? Please comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/04/27/are-64-bit-operating-systems-ready-for-the-desktop/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Running OpenVPN-gui 2.X in Windows Vista</title>
		<link>http://www.nixadmins.net/2009/02/13/running-openvpn-gui-2x-in-windows-vista/</link>
		<comments>http://www.nixadmins.net/2009/02/13/running-openvpn-gui-2x-in-windows-vista/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 21:30:24 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/02/13/running-openvpn-gui-2x-in-windows-vista/</guid>
		<description><![CDATA[This is a short short note how to get OpenVPN-GUI 2.X working under Windows Vista. First of all you have to set it to always run as administrator. Go to the folder where it is installed and in the Bin folder you’ll find the OpenVPN-GUI executable. On the Compatibility tab you find Privilege Level, set [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short short note how to get OpenVPN-GUI 2.X working under Windows Vista.</p>
<p>First of all you have to set it to always run as administrator. Go to the folder where it is installed and in the Bin folder you’ll find the OpenVPN-GUI executable. On the <strong>Compatibility</strong> tab you find<strong> Privilege Level</strong>, set it to <strong><em>Run this program as an Administrator</em></strong><strong><em></em></strong></p>
<p><strong><em><a href="http://www.nixadmins.net/wp-content/uploads/2009/02/ovpn-gui-runas.jpg"><img title="ovpn_gui_runas" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="517" alt="ovpn_gui_runas" src="http://www.nixadmins.net/wp-content/uploads/2009/02/ovpn-gui-runas-thumb.jpg" width="381" border="0" /></a></em></strong></p>
<p>&#160;</p>
<p>In your the parent folder find the <strong>config</strong> folder and open the config file. Add the following lines to the file.</p>
<p><strong><font color="#800000">route-method exe</font></strong></p>
<p><strong><font color="#800000">route-delay 2</font></strong></p>
</p>
<p><strong><font color="#800000"></font></strong></p>
<p><strong><font color="#800000"></font></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/02/13/running-openvpn-gui-2x-in-windows-vista/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux ready for the masses/desktops?</title>
		<link>http://www.nixadmins.net/2009/02/06/linux-ready-for-the-massesdesktops/</link>
		<comments>http://www.nixadmins.net/2009/02/06/linux-ready-for-the-massesdesktops/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 19:43:09 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/02/06/linux-ready-for-the-massesdesktops/</guid>
		<description><![CDATA[Being a fairly active StumbleUpon user I see these posts about Linux being ready for the desktops all the time. Actually I’ve been reading about it since I started using Linux back in 2002. Still Linux has not made a big leap into the home user market or the enterprise market. Why is this? Linux [...]]]></description>
			<content:encoded><![CDATA[<p>Being a fairly active <a href="http://www.stumbleupon.com/" target="_blank">StumbleUpon</a> user I see these posts about Linux being ready for the desktops all the time. Actually I’ve been reading about it since I started using Linux back in 2002. Still Linux has not made a big leap into the home user market or the enterprise market. Why is this? Linux is a stable operating system that just keeps on working and you might think the TCO’s should help <a href="http://www.linux.com/whatislinux/119700" target="_blank">Linux</a> on it’s way to world domination also. Still we see Microsoft and their products are dominating the market. The article/post that got me to write this one can be found at the <a href="http://www.breakitdownblog.com/linux-driver-development-exploding/" target="_blank">breakingitdownblog.com</a>.</p>
<p>After commenting I got a nice reply from the author, and I do understand his worries about dealing with the Linux community, but I give the Linux community a lot of credit and hope any comments here are sensible and wont start a war. That was never my intention.</p>
<p>If you start reading this, please read all of it. Don’t comment after reading only half because you won’t get the point.</p>
<h2>Jungle of choice</h2>
<p>As I see it there are a few things that makes <a href="http://www.linux.com/whatislinux/119700" target="_blank">Linux</a> something administrators don’t want on their desktops. First of all, and this is something the open source community will hate, the number of choices. There are so many alternatives out there. Should you use <a href="http://www.redhat.com" target="_blank">RedHat</a>, <a href="http://www.novell.com" target="_blank">Novell,</a> <a href="http://www.ubuntu.com" target="_blank">Ubuntu</a>, <a href="http://www.debian.org" target="_blank">Debian</a>, <a href="http://www.gentoo.org" target="_blank">Gentoo</a> etc etc etc. Choice and competition is a good thing, but this is borderline ridiculous. If I don’t like your distribution or the way you manage your open source project I’ll just start my own. This is good right? No. This makes the jungle of open source products even worse. Let’s take a simple example, my parents. Go tell them to install <a href="http://www.linux.com/whatislinux/119700" target="_blank">Linux</a>. First of all, how would they find a distribution? Would they read why a certain distribution is good for them? No. Never. They buy a computer and are happy to pay the Microsoft toll because they are able to use it.</p>
<p>And when it comes down to it, that’s exactly what most people want to do with their computers. Use them, not find bugs, submit bug reports or join mailing lists.</p>
<h2>Office</h2>
<p>I work in an organization with around 1500 users. We like so many others use Microsoft Office in our day to day work. Why? Well I guess because so many others are. That might seem like a stupid reason but try to tell a user that he/she can’t open the document just received by email because we only use <a href="http://www.openoffice.org" target="_blank">OpenOffice.org</a>, the possibility of it going the other way around is <em>very</em> small. This was visible already when the new Office 2007 suite was launched, because it saves documents in docx by default and Office 2003 does not open them.</p>
<p>Thank god there is a document converter for Office 2003 so we dodged that bullet, by installing it for anyone needing it and now it’s going out by group policies. Next you’ll try to tell me well this might, and only might be true for the corporate users but how about home users. Well I’ll tell you the same thing here. If I receive documents to my personal mail it’s almost certainly written in Microsoft’s Office, not necessarily 2007 but a version of it anyway. Well if it is written in a previous version I might get lucky and the document, spreadsheet or whatever might work as it should, but for most cases it won’t, Microsoft macros work in mysterious ways. If it is in the 2007 .docx format, well then I have some work to do. To be clear, I’m not saying this is OOo’s fault. On the contrary, I guess Microsoft doesn’t go easy on projects like this. And looking at their market situation why would they.</p>
<p>Let’s get on with it. If I’m running Microsoft Windows I can get the compatibility pack, or use an online converter, t to a .doc and then open it it OOo. And that’s just it, you can’t expect the average user to do this, or even be interested in doing it. They might <a href="http://www.google.com" target="_blank">google</a> it and find the office converter install it and expect it to work. And it does.</p>
<p>Being a geek, word processors are not something that make me jump up and down of excitement, but I have tried OOo more than a few times. And it just doesn’t feel right, I can’t get it to do the things I want it to, not in the timeframe of learning I’m willing to use. I count my time in hard cash, and 3 hours of trying to make something work adds up to a Microsoft Office student license which you as a home user can buy and use, if your not making money with it.</p>
<p>You could argue that it took time to learn to use Office also, well it did. And that’s another reason for keeping it, why throw all those hours of training out the window if another program cant offer anything else than a smaller bill getting the software. It would be just plain madness.</p>
<h2>Management</h2>
<p>This is a big argument for me. I work with networks and servers and I like to keep the users as restricted as possible without making their daily work suffer. Also I want to be able to centrally manage users, passwords, desktop security settings, local firewalls and the installed software. Some of these are in fact possible to do in Linux. But it’s not as easy to manage as <a href="http://www.microsoft.com/windowsserver2003/technologies/directory/activedirectory/default.mspx" target="_blank">Microsoft’s Active Directory</a> with <a href="http://www.microsoft.com/smserver/default.mspx" target="_blank">systems center configuration manager</a>.</p>
<p>Group policies are another thing making <a href="http://www.microsoft.com/windowsserver2003/technologies/directory/activedirectory/default.mspx" target="_blank">Active directory</a> more attractive. We can handle system settings like services, WLAN, well just about anything via this sleek and fast interface, and most of the time it just works.</p>
<p>I do admit Microsoft’s products do have faults, but the good old pro/con list just doesn’t tip over to the advantage of Linux, at least not yet.</p>
<h2>File Servers</h2>
<p>As I said above I’ve been using Linux since 2002 and I still can’t always get file/folder permission set like I want them to. If you use shared folders, and I’d say every company today does you need a sane way of managing the shares. I like Microsoft’s approach to the security settings. Share and local settings are separated and in my little mind I can manage the settings just fine.</p>
<p>Nested groups helps a lot to. Since providing a group access to another groups files or folders helps to keep the rights simple. And if you manage a large file share it has to be easy and logical.</p>
<p><a href="http://www.microsoft.com/windowsserver2003/technologies/storage/dfs/default.mspx" target="_blank">Distributed File System</a> is another really nice feature of the Microsoft Server family. I wont go in-depth here but if you’re not familiar with it take a look at <a href="http://www.microsoft.com/windowsserver2003/technologies/storage/dfs/default.mspx" target="_blank">Microsoft DFS</a> pages.</p>
<p>To clear this up, I’m not saying these things are impossible to accomplish in other systems, I’m just saying it takes more work. And work hours cost money.</p>
<h2>Places I promote Linux</h2>
<p>Well after my short and maybe even evil rant about why Linux has issues I’m going to turn the table a little, because there are places I’d rather use Linux than any Microsoft product. To mention a few:</p>
<ul>
<li>Databases with information that could save/take lives. Like patient journals.</li>
<li>Backup systems, we use EMC Networker as our backup solution and it runs stable as a castle. I wouldn’t even dream of using Microsoft products as a foundation for this when it’s available for Linux.</li>
<li>Some web applications. Because Apache is a great software and it runs so smooth on a Linux server.</li>
</ul>
<h2>Use the best tool for the job</h2>
<p>To everyone out there who now wants to dig me a grave and make me suffer I have a few finishing words. The point of this article was to point out that you, at least in general, cannot say Linux or Windows or even OS X is better than one of it’s competitors. It all depends on who you are and what you are doing.</p>
<p><strong>Let’s stop these flame wars now and agree that <em>everyone</em> should use the best tool available for their task at hand.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/02/06/linux-ready-for-the-massesdesktops/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting wireless network working on CentOS 5 and Thinkpad T42</title>
		<link>http://www.nixadmins.net/2008/12/15/getting-wireless-network-working-on-centos-5-and-thinkpad-t42/</link>
		<comments>http://www.nixadmins.net/2008/12/15/getting-wireless-network-working-on-centos-5-and-thinkpad-t42/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 08:04:29 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Redhat]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>
I pulled an old IBM Thinkpad T42 to use as a "light" and "mobile" laptop on the daily train ride to Helsinki. It's not new but more than usable with 768Mb RAM and CentOS 5 installed. This gives me a full development environment to work with on the train. What I noticed was the problem to get the wireless network up on this thing.]]></description>
			<content:encoded><![CDATA[<p>I pulled an old IBM Thinkpad T42 to use as a &#8220;light&#8221; and &#8220;mobile&#8221; laptop on the daily train ride to Helsinki. It&#8217;s not new but more than usable with 768Mb RAM and CentOS 5 installed. This gives me a full development environment to work with on the train. What I noticed was the problem to get the wireless network up on this thing.<br />
I tried editing <em>/etc/wpa_supplicant/wpa_supplicant.conf</em>, I ran iwconfig. I scanned etc. And it just didn&#8217;t want to work.<br />
The hardware seemed to be working, but not the network settings. Why?</p>
<h2>Google to the rescue</h2>
<p>As always when you are troubleshooting the place to start is <a href="http://www.google.com/">google.com</a>.After reading a lot of pages, some better some worse I found <strong>NetworkManager</strong>. How could I have missed this? Later I even found a document at <a href="http://www.centos.org/">centos.org</a> describing how to use this.</p>
<h2>Using NetworkManager</h2>
<p>Finding I should use NetworkManager I started up the service and stopped the network service. I got a list of the Wireless networks and 10 seconds later I was surfing with the wireless network.<br />
To set NetworkManager to start automatically you should do the following</p>
<div class="terminal">[root@localhost ~]$ chkconfig &#8211;level 345 NetworkManager on<br />
[root@localhost ~]$ service NetworkManager start<br />
[root@localhost ~]$ chkconfig &#8211;level 2345 network off<br />
[root@localhost ~]$ service network stop</div>
<p>You should now have a nice network icon in your Gnome system tray and clicking it should show the wireless networks available.</p>
<h2>Installs</h2>
<p>To be clear this is what I installed.</p>
<p>The <a href="http://dag.wieers.com/rpm/FAQ.php#B"></a>, to get a lot of packages. And after setting up rpmforge I just pulled firmware for the network card.</p>
<div class="terminal">[root@localhost ~]$ yum install ipw2200-firmware</div>
<p>This page is mostly a note for myself but if it helps someone else out then all the better.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2008/12/15/getting-wireless-network-working-on-centos-5-and-thinkpad-t42/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Installing Microsoft Corefonts on CentOS 5</title>
		<link>http://www.nixadmins.net/2008/12/12/installing-microsoft-corefonts-on-centos-5/</link>
		<comments>http://www.nixadmins.net/2008/12/12/installing-microsoft-corefonts-on-centos-5/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 08:12:04 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Redhat]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>This is a thing I always have to google when I need to install Microsoft's fonts in my CentOS installs so I thought I'd post a short dirty note here to remind me how to do it. </p>
<p>
First of all we need some tools to build ourselves the RPM for msttcorefonts, so fire up your terminal and 
</p>]]></description>
			<content:encoded><![CDATA[<p>This is a thing I always have to google when I need to install Microsoft&#8217;s fonts in my CentOS installs so I thought I&#8217;d post a short dirty note here to remind me how to do it.</p>
<p>First of all we need some tools to build ourselves the RPM for msttcorefonts, so fire up your terminal and</p>
<div class="terminal">
[root@localhost ~]$ yum install cabextract rpm-build</div>
<p>When finished run the following as <strong>root</strong></p>
<div class="terminal">
[root@localhost build]$ wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec<br />
[root@localhost build]$ rpmbuild -ba msttcorefonts-2.0-1.spec<br />
[root@localhost build]$ rpm -ivh /usr/src/redhat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm<br />
[root@localhost build]$ /sbin/service xfs reload</div>
<p>That&#8217;s it. You should now have Microsoft&#8217;s standard fonts installed and ready to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2008/12/12/installing-microsoft-corefonts-on-centos-5/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

