<?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>Swizzling.org</title>
	<atom:link href="http://www.swizzling.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.swizzling.org</link>
	<description>Random bits and bobs</description>
	<lastBuildDate>Tue, 22 Jun 2010 08:55:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ERROR: Unable to install the &#8220;plesk-base&#8221; package.</title>
		<link>http://www.swizzling.org/2010/06/22/error-unable-to-install-the-plesk-base-package/</link>
		<comments>http://www.swizzling.org/2010/06/22/error-unable-to-install-the-plesk-base-package/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 08:55:30 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.swizzling.org/2010/06/22/error-unable-to-install-the-plesk-base-package/</guid>
		<description><![CDATA[This message is an utter pain in the arse and as far as I can see the Plesk Panel installer doesn&#8217;t log anywhere. Correct me if I&#8217;m wrong! Anyway it looks like MySQL is a dependency for the install process so install MySQL server and your laughing yum install mysql-server -y]]></description>
			<content:encoded><![CDATA[<p>This message is an utter pain in the arse and as far as I can see the Plesk Panel installer doesn&#8217;t log anywhere. Correct me if I&#8217;m wrong!</p>
<p>Anyway it looks like MySQL is a dependency for the install process so install MySQL server and your laughing</p>
<p>yum install mysql-server -y</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swizzling.org/2010/06/22/error-unable-to-install-the-plesk-base-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple NAS box with samba</title>
		<link>http://www.swizzling.org/2009/11/26/simple-nas-box-with-samba/</link>
		<comments>http://www.swizzling.org/2009/11/26/simple-nas-box-with-samba/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 15:42:42 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.swizzling.org/?p=52</guid>
		<description><![CDATA[Here's a sample /etc/smb.conf I use when I need to deploy a nice simple NAS box. Start a nice simple distro, I like CentOS myself. Install samba # yum install samba Create a new system user and set a password. This user is used for ownership and permissions of the shares presented by Samba. # [...]]]></description>
			<content:encoded><![CDATA[<div class="moz-text-plain" style="font-family: -moz-fixed; font-size: 8px;" lang="x-western">
<pre>Here's a sample /etc/smb.conf I use when I need to deploy a nice simple NAS box.
Start a nice simple distro, I like CentOS myself.
Install samba
# yum install samba

Create a new system user and set a password. This user is used for ownership and permissions of the shares presented by Samba.
# useradd nas-user
# passwd nas-user

Create a samba password for the new user
# smbpasswd -a nas-user

Create a directory somewhere for storage of files used by the samba share
# mkdir /storage1

Change ownership for the new directory to the new user. All files for the share will be owned by this user.
# chown nas-user:nas-user /storage1

Now edit /etc/samba/smb.conf

[global]
	workgroup = Sales-Department
	server string = "Some comment, visible only from network browser in Windows"
	netbios name = FileServer

	# Disable printers and faxes
	load printers = no
	disable spoolss = yes
	printcap name = /dev/null

	# Only allow connections from 192.168.1.0 subnet. Deny everything else
	hosts allow = 192.168.1.0/24
	hosts deny = 0.0.0.0/0

	security = user
	passdb backend = tdbsam

[backups-storage]
	comment = Storage for backups and archives
	path = /storage0
	force user = backups-user
	force group = backups-user
	read only = No
	guest ok = Yes

Now restart the samba service.
# service smb restart</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.swizzling.org/2009/11/26/simple-nas-box-with-samba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL 5.1 installer Could not start Service &#8230;</title>
		<link>http://www.swizzling.org/2009/04/01/mysql-51-installer-could-not-start-service/</link>
		<comments>http://www.swizzling.org/2009/04/01/mysql-51-installer-could-not-start-service/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 18:11:08 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.swizzling.org/2009/04/01/mysql-51-installer-could-not-start-service/</guid>
		<description><![CDATA[Error Message: Could not start Service &#8230; Problem: Installer can&#8217;t create my.ini properly when you use anything but the default settings during the initial configuration soo&#8230; Solution: 1.Remove Instance 2. Uninstall MySQL 3. Delete %alluserprofile%\Application Data\MySQL 4. Delete rest of %programfiles%\MySQL 5. Reboot  (not 100% sure if required but Windows likes reboots) 6. Reinstallation of [...]]]></description>
			<content:encoded><![CDATA[<p>Error Message: Could not start Service &#8230;</p>
<p>Problem: Installer can&#8217;t create my.ini properly when you use anything but the default settings during the initial configuration soo&#8230;</p>
<p>Solution:</p>
<p>1.Remove Instance<br />
2. Uninstall MySQL<br />
3. Delete %alluserprofile%\Application Data\MySQL<br />
4. Delete rest of %programfiles%\MySQL<br />
5. Reboot  (not 100% sure if required but Windows likes reboots)<br />
6. Reinstallation of MySQL<br />
7. Creation of MySQL Instance with default values<br />
8. Reconfiguration of the Instance with the Configuration Tool</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swizzling.org/2009/04/01/mysql-51-installer-could-not-start-service/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Remote Desktop login screen black</title>
		<link>http://www.swizzling.org/2009/04/01/remote-desktop-login-screen-black/</link>
		<comments>http://www.swizzling.org/2009/04/01/remote-desktop-login-screen-black/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 13:57:54 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.swizzling.org/2009/04/01/remote-desktop-login-screen-black/</guid>
		<description><![CDATA[It&#8217;s annoying and confusing. A black login screen? Yes my friends it does happen and its usually a sign of a registry problem. Either corruption or user error. Any easy enough to fix. Just whack the following into a text file and name is fixblackscreen.reg. Double click your new file and all should be good. [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s annoying and confusing. A black login screen? Yes my friends it does happen and its usually a sign of a registry problem. Either corruption or user error. Any easy enough to fix.<br />
Just whack the following into a text file and name is fixblackscreen.reg. Double click your new file and all should be good.</p>
<p>[HKEY_USERS\.DEFAULT\Control Panel\Colors]<br />
&#8220;ActiveBorder&#8221;=&#8221;212 208 200&#8243;<br />
&#8220;ActiveTitle&#8221;=&#8221;10 36 106&#8243;<br />
&#8220;AppWorkSpace&#8221;=&#8221;128 128 128&#8243;<br />
&#8220;Background&#8221;=&#8221;102 111 116&#8243;<br />
&#8220;ButtonAlternateFace&#8221;=&#8221;181 181 181&#8243;<br />
&#8220;ButtonDkShadow&#8221;=&#8221;64 64 64&#8243;<br />
&#8220;ButtonFace&#8221;=&#8221;212 208 200&#8243;<br />
&#8220;ButtonHilight&#8221;=&#8221;255 255 255&#8243;<br />
&#8220;ButtonLight&#8221;=&#8221;212 208 200&#8243;<br />
&#8220;ButtonShadow&#8221;=&#8221;128 128 128&#8243;<br />
&#8220;ButtonText&#8221;=&#8221;0 0 0&#8243;<br />
&#8220;GradientActiveTitle&#8221;=&#8221;166 202 240&#8243;<br />
&#8220;GradientInactiveTitle&#8221;=&#8221;192 192 192&#8243;<br />
&#8220;GrayText&#8221;=&#8221;128 128 128&#8243;<br />
&#8220;Hilight&#8221;=&#8221;10 36 106&#8243;<br />
&#8220;HilightText&#8221;=&#8221;255 255 255&#8243;<br />
&#8220;HotTrackingColor&#8221;=&#8221;0 0 128&#8243;<br />
&#8220;InactiveBorder&#8221;=&#8221;212 208 200&#8243;<br />
&#8220;InactiveTitle&#8221;=&#8221;128 128 128&#8243;<br />
&#8220;InactiveTitleText&#8221;=&#8221;212 208 200&#8243;<br />
&#8220;InfoText&#8221;=&#8221;0 0 0&#8243;<br />
&#8220;InfoWindow&#8221;=&#8221;255 255 225&#8243;<br />
&#8220;Menu&#8221;=&#8221;212 208 200&#8243;<br />
&#8220;MenuText&#8221;=&#8221;0 0 0&#8243;<br />
&#8220;Scrollbar&#8221;=&#8221;212 208 200&#8243;<br />
&#8220;TitleText&#8221;=&#8221;255 255 255&#8243;<br />
&#8220;Window&#8221;=&#8221;255 255 255&#8243;<br />
&#8220;WindowFrame&#8221;=&#8221;0 0 0&#8243;<br />
&#8220;WindowText&#8221;=&#8221;0 0 0&#8243;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swizzling.org/2009/04/01/remote-desktop-login-screen-black/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux &#8211; Multiple FTP users, same directory, different permissions.</title>
		<link>http://www.swizzling.org/2009/04/01/linux-multiple-ftp-users-same-directory-different-permissions/</link>
		<comments>http://www.swizzling.org/2009/04/01/linux-multiple-ftp-users-same-directory-different-permissions/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 11:49:40 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.swizzling.org/?p=37</guid>
		<description><![CDATA[Recently somebody asked me how to have a few users able to access the same directory over FTP. But only allow some of them to have read-write access, and let the rest be read-only. I use vsftp which needs to be modified a little bit for this to work. edit /etc/vsftp/vsftpd.conf   (on CentOS, your distro [...]]]></description>
			<content:encoded><![CDATA[<p>Recently somebody asked me how to have a few users able to access the same directory over FTP. But only allow some of them to have read-write access, and let the rest be read-only.</p>
<p>I use vsftp which needs to be modified a little bit for this to work.</p>
<p>edit /etc/vsftp/vsftpd.conf   (on CentOS, your distro may store the .conf somewhere else)</p>
<p>You&#8217;ll need to change &#8220;local_umask&#8221; from 022 to 0007. Save and restart the service</p>
<p>/etc/init.d/vsftpd restart</p>
<p># Add 2 new groups, one for read only users and the other will be for the read-write guys</p>
<p>groupadd ftp-readonly<br />
groupadd ftp-readwrite</p>
<p># Create a document store where all FTP users will access once they are logged in. always a good idea to put it in /home</p>
<p>mkdir /home/ftp-docs<br />
chmod 775 /home/ftp-docs/<br />
chown root:ftp-readwrite /home/ftp-docs</p>
<p># Add the new users</p>
<p>useradd -g ftp-readwrite -d /home/ftp-docs user1<br />
useradd -g ftp-readwrite -d /home/ftp-docs user2<br />
useradd -g ftp-readonly -d /home/ftp-docs user3</p>
<p># Set the users password</p>
<p>passwd user1<br />
passwd user2</p>
<p>And your done.</p>
<p>The reason you need to change the umask is when a new directory is created by a read-write user the permissions by default don&#8217;t give full write-write access, I believe it&#8217;s read-only (for other users in the group).</p>
<p>So user1 can create a directory but only user1 can remove it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swizzling.org/2009/04/01/linux-multiple-ftp-users-same-directory-different-permissions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows Server 2008 Ping: transmit failed, error code 1232</title>
		<link>http://www.swizzling.org/2009/03/31/windows-server-2008-ping-transmit-failed-error-code-1232/</link>
		<comments>http://www.swizzling.org/2009/03/31/windows-server-2008-ping-transmit-failed-error-code-1232/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 14:13:49 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.swizzling.org/2009/03/31/windows-server-2008-ping-transmit-failed-error-code-1232/</guid>
		<description><![CDATA[I&#8217;ve only seen this error on a virtual machine running under VMware ESX but I dont think it&#8217;s related. Simply go to device manager, remove the network adapter, do a scan fro new hardware and Windows will reinstall the device. You will need to configure IP again if your using static addresses.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve only seen this error on a virtual machine running under VMware ESX but I dont think it&#8217;s related.<br />
Simply go to device manager, remove the network adapter, do a scan fro new hardware and Windows will reinstall the device.</p>
<p>You will need to configure IP again if your using static addresses.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swizzling.org/2009/03/31/windows-server-2008-ping-transmit-failed-error-code-1232/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS Persistent Static Routes</title>
		<link>http://www.swizzling.org/2009/03/21/centos-persistent-static-routes/</link>
		<comments>http://www.swizzling.org/2009/03/21/centos-persistent-static-routes/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 13:43:36 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.swizzling.org/?p=32</guid>
		<description><![CDATA[For each device create the file /etc/sysconfig/network-scripts/route-eth0   (eth0 in this example) One line per static route please: 10.10.2.0/24 via 192.168.1.2 dev eth0 10.10.1.0/24 via 192.168.1.2 dev eth0 service network restart]]></description>
			<content:encoded><![CDATA[<p>For each device create the file /etc/sysconfig/network-scripts/route-eth0   (eth0 in this example)</p>
<p>One line per static route please:</p>
<p>10.10.2.0/24 via 192.168.1.2 dev eth0</p>
<p>10.10.1.0/24 via 192.168.1.2 dev eth0</p>
<p>service network restart</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swizzling.org/2009/03/21/centos-persistent-static-routes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing after upgrade</title>
		<link>http://www.swizzling.org/2009/01/17/testing-after-upgrade/</link>
		<comments>http://www.swizzling.org/2009/01/17/testing-after-upgrade/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 01:21:12 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[General Life]]></category>

		<guid isPermaLink="false">http://www.swizzling.org/?p=29</guid>
		<description><![CDATA[This is text]]></description>
			<content:encoded><![CDATA[<p>This is text</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swizzling.org/2009/01/17/testing-after-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clone disk over SSH</title>
		<link>http://www.swizzling.org/2008/12/13/clone-disk-over-ssh/</link>
		<comments>http://www.swizzling.org/2008/12/13/clone-disk-over-ssh/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 20:20:08 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.swizzling.org/2008/12/13/clone-disk-over-ssh/</guid>
		<description><![CDATA[This is pretty handy. It will make an exact copy of a disk on your local machine to a disk on a machine anywhere running Linux with an SSH server running. Because we&#8217;re playing with filesystems I strongly recommend you only do this when both machines are booted off live CD&#8217;s. Trying to do a [...]]]></description>
			<content:encoded><![CDATA[<p>This is pretty handy. It will make an exact copy of a disk on your local machine to a disk on a machine anywhere running Linux with an SSH server running.</p>
<p>Because we&#8217;re playing with filesystems I strongly recommend you only do this when both machines are booted off live CD&#8217;s. Trying to do a disk dump of a mounted volume is the doings of a mad man and will surely end up in data curruption.</p>
<p><em>dd if=/dev/sda ibs=32k obs=2k | ssh root@192.168.1.10 &#8220;dd of=/dev/sda obs=32k&#8221; </em></p>
<p>This will dump the content of your local disk, /dev/sda to a local disk on a remote machine, also /dev/sda in this case.</p>
<p>You will need root access on the remote machine.</p>
<p>I find this will very useful when migrating virtual machines where you can be sure the hardware on source and destination machines are the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swizzling.org/2008/12/13/clone-disk-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ESX disconnected but VM&#8217;s still running?</title>
		<link>http://www.swizzling.org/2008/11/04/esx-disconnected-but-vms-still-running/</link>
		<comments>http://www.swizzling.org/2008/11/04/esx-disconnected-but-vms-still-running/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 13:10:19 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.swizzling.org/2008/11/04/esx-disconnected-but-vms-still-running/</guid>
		<description><![CDATA[On more than one occasion has VMware lead to to near fatal heart attacks and one of those times which pops it head up every few months is the ol&#8217; ESX appears disconnected in VirtualCenter but the VM&#8217;s running on it are still working fine. If you don&#8217;t use VirtualCenter then you can&#8217;t connect to [...]]]></description>
			<content:encoded><![CDATA[<p>On more than one occasion has VMware lead to to near fatal heart attacks and one of those times which pops it head up every few months is the ol&#8217; ESX appears disconnected in VirtualCenter but the VM&#8217;s running on it are still working fine. If you don&#8217;t use VirtualCenter then you can&#8217;t connect to it directlt via the VIclient.</p>
<p>Times like this you assume HA might just kick in, or maybe you should simply reboot the machine and tell everyone it was a hardware failure. Well there&#8217;s no need. Generally whats happened here is the management service has crashed resulted in you good people not being able to connect. But its generally safe to say that everything else on the host is running fine.</p>
<p><strong>Solution:</strong> Log into the service console and type:</p>
<p><em>service mgmt-vmware restart</em></p>
<p><em>service vmware-vpxa restart<br />
</em></p>
<p>Sometimes the mgmt-vmware service can take a few minutes to restart, try to resist the urge to control+c while the service is stopping. Once restarted go back to VirtualCenter and wait, and wait, and wait. It can take 2-4 minutes before the host magically appears back again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swizzling.org/2008/11/04/esx-disconnected-but-vms-still-running/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
