<?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>Curiously Nerdy &#187; Sysop</title>
	<atom:link href="http://blogs.6bit.com/josh/category/technology/sysop/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.6bit.com/josh</link>
	<description>The Original</description>
	<lastBuildDate>Fri, 02 Jul 2010 17:58:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Gentoo Installation Bullet-point List</title>
		<link>http://blogs.6bit.com/josh/2010/02/gentoo-installation-bullet-point-list/</link>
		<comments>http://blogs.6bit.com/josh/2010/02/gentoo-installation-bullet-point-list/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 23:21:54 +0000</pubDate>
		<dc:creator>Josh Perry</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Sysop]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://blogs.6bit.com/josh/?p=230</guid>
		<description><![CDATA[I install Gentoo often enough that the Gentoo Handbook is way too verbose, but not often enough to memorize the steps involved. This list is meant mainly for me, but also for anyone who is comfortable enough in Linux to know what to do with a description like &#8220;Partition disk and create file systems&#8221;. Config [...]]]></description>
			<content:encoded><![CDATA[<p>I install Gentoo often enough that the <a href="http://www.gentoo.org/doc/en/handbook/handbook-x86.xml">Gentoo Handbook</a> is way too verbose, but not often enough to memorize the steps involved. This list is meant mainly for me, but also for anyone who is comfortable enough in Linux to know what to do with a description like &#8220;Partition disk and create file systems&#8221;.</p>
<hr/>
<p>Config network, ip addr/dhcpcd</p>
<p>Partition Drive<br />
Create Filesystems</p>
<p><code>mkswap</code> &#038; <code>swapon</code></p>
<p>Mount root at /mnt/gentoo<br />
Mount boot at /mnt/gentoo/boot</p>
<p><code>date</code></p>
<p><code>cd /mnt/gentoo</code></p>
<p>Get stage3 and portage snapshot archives<br />
<code>links http://www.gentoo.org/main/en/mirrors.xml<br />
tar jxvfp stage3*.tar.bz2<br />
tar jxvf portagesnapshot.tar.bz2 -C /mnt/gentoo/usr</code></p>
<p>Edit /mnt/gentoo/etc/make.conf<br />
Set CHOST CFLAGS; set MAKEOPTS=&#8221;-j<2*#ofCPUs>&#8221;<br />
See <a href="http://gentoo-wiki.com/Safe_Cflags">http://gentoo-wiki.com/Safe_Cflags</a><br />
Consider &#8220;-march=native -O2 -pipe&#8221;</p>
<p>Set USE flags</p>
<p><code>mirrorselect -i -o >> /mnt/gentoo/etc/make.conf<br />
mirrorselect -i -r -o >> /mnt/gentoo/etc/make.conf</code></p>
<p>select locales in /etc/locale.gen<br />
<code><br />
cp /etc/resolve.conf /mnt/gentoo/etc/resolv.conf</p>
<p>mount -t proc none /mnt/gentoo/proc<br />
mount -o rbind /dev /mnt/gentoo/dev</p>
<p>chroot /mnt/gentoo /bin/bash<br />
env-update<br />
source /etc/profile</p>
<p>emerge --sync</p>
<p>eselect profile list<br />
eselect profile set #</p>
<p>locale-gen</p>
<p>emerge vim<br />
emerge pciutils</code></p>
<p>Choose a timezone<br />
<code><br />
vim /etc/conf.d/clock</p>
<p>mkdir /etc/portage<br />
cat "sys/gentoo-sources -docs symlink" > /etc/portage/package.use</p>
<p>emerge gentoo-sources<br />
</code></p>
<p>config and install kernel<br />
<code>make &#038;&#038; make modules_install &#038;&#038; make install</p>
<p>setup /etc/fstab</p>
<p>set /etc/conf.d/hostname<br />
setup /etc/conf.d/net<br />
rc-update add net.eth0 default<br />
</code></p>
<p>set root passwd</p>
<p><code><br />
emerge syslog-ng<br />
rc-update add syslog-ng default<br />
emerge vixie-cron<br />
rc-update add vixie-cron default<br />
emerge slocate<br />
emerge dhcpcd<br />
</code></p>
<p>on x86 emerge grub<br />
on x86_64 emerge grub-static </p>
<p>setup /boot/grub/grub.conf<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<code><br />
default 0<br />
timeout 10<br />
splashimage=(hd0,0)/grub/splash.xpm.gz</p>
<p>title=Gentoo Linux Newest<br />
root (hd0,0)<br />
kernel /vmlinuz root=/dev/hda3 video=vesafb:mtrr:3,ywrap,1024x768-32@85</p>
<p>title=Gentoo Linux Previous<br />
root (hd0,0)<br />
kernel /vmlinuz.old root=/dev/hda3 init=/bin/bb<br />
</code><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<code><br />
grub --no-floppy<br />
grub> root (hd0,0)    (Specify where your /boot partition resides)<br />
grub> setup (hd0)     (Install GRUB in the MBR)<br />
grub> quit            (Exit the GRUB shell)</p>
<p>exit<br />
cd<br />
umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo<br />
reboot<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.6bit.com/josh/2010/02/gentoo-installation-bullet-point-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modifying only directory permissions using find</title>
		<link>http://blogs.6bit.com/josh/2009/12/modifying-only-directory-permissions-using-find/</link>
		<comments>http://blogs.6bit.com/josh/2009/12/modifying-only-directory-permissions-using-find/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 02:53:35 +0000</pubDate>
		<dc:creator>Josh Perry</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sysop]]></category>

		<guid isPermaLink="false">http://blogs.6bit.com/josh/?p=170</guid>
		<description><![CDATA[I recently went through my web directories and updated the permissions to be more inline with recommended security practices. When setting web file permissions in Linux you want to set execute permissions on a directory to allow listing and traversal, but you don&#8217;t want to set execute permissions on the files for security reasons. Doing [...]]]></description>
			<content:encoded><![CDATA[<p>I recently went through my web directories and updated the permissions to be more inline with recommended security practices. When setting web file permissions in Linux you want to set execute permissions on a directory to allow listing and traversal, but you don&#8217;t want to set execute permissions on the files for security reasons. </p>
<p>Doing this directory by directory by hand would have been a pain so I decided to get creative. Well as far as script-fu goes this is pretty tame(lame?) but it worked well for me.</p>
<p>To set the permissions on a the <code>/var/www/</code> folder and all sub-folders of use this command:<br />
<code><br />
find /var/www -type d -print0 | xargs -0 chmod -v 755<br />
</code></p>
<p>Conversely if you only want to update the permissions on only files you can use the same command but substitute <code>-type f</code> for <code>-type d</code>.</p>
<p>The <code>-print0</code> argument will make <code>find</code> null terminate each of the paths instead of newline terminating them and the <code>-0</code> argument tells <code>xargs</code> to expect argument terminated by null instead of whitespace. Without these options <code>xargs</code> would misinterpret pathnames with spaces as multiple arguments.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.6bit.com/josh/2009/12/modifying-only-directory-permissions-using-find/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up local files on your Data Protection Management Server</title>
		<link>http://blogs.6bit.com/josh/2009/04/backing-up-local-files-on-your-data-protection-management-server/</link>
		<comments>http://blogs.6bit.com/josh/2009/04/backing-up-local-files-on-your-data-protection-management-server/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 01:31:00 +0000</pubDate>
		<dc:creator>Josh Perry</dc:creator>
				<category><![CDATA[Data Protection Manager]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[dpm]]></category>
		<category><![CDATA[Sysop]]></category>

		<guid isPermaLink="false">http://blogs.6bit.com/josh/2009/04/backing-up-local-files-on-your-data-protection-management-server/</guid>
		<description><![CDATA[When creating a new protection group in DPM 2007 RTM you are presented with a list of computers on your network that have the DPM client installed.  The DPM server itself is in this list as it also runs the client for various reasons, including the ability to be backed up by another DPM server. [...]]]></description>
			<content:encoded><![CDATA[<p>When creating a new protection group in DPM 2007 RTM you are presented with a list of computers on your network that have the DPM client installed.  The DPM server itself is in this list as it also runs the client for various reasons, including the ability to be backed up by another DPM server.</p>
<p>When you go to expand the local DPM server node you find a very small, or non-existent list of data that can be protected.  If you are running the DPM SQL database on the local machine, that will be the only thing available, otherwise there is absolutely nothing.</p>
<div id="attachment_19" class="wp-caption alignnone" style="width: 601px"><a href="http://blogs.6bit.com/josh/wp-content/uploads/2009/04/localprotoff.png"><img class="size-full wp-image-19" title="Local protection off" src="http://blogs.6bit.com/josh/wp-content/uploads/2009/04/localprotoff.png" alt="Local protection off" width="591" height="461" /></a><p class="wp-caption-text">Local Protection Disabled</p></div>
<p>DPM 2007 SP1 now includes the ability to protect resources local to the DPM server itself. This feature is being described by Microsoft as a way to build an all-in-one branch office server.  You can now run DPM on the same server that is providing file sharing, database, and other services to your branch office and use it to protect that data. Once the branch-offic DPM server is protecting its local data you can then use the DPM server at your main office to protect it, “Instant Disaster Recovery” says Microsoft.</p>
<h2>Configuration</h2>
<p>This new feature is implicitly disabled and must be enabled using a powershell cmdlet. Enable this feature using the Set-DPMGlobalProperty cmdlet, launch a DPM Management Shell session and enter the following incantation:</p>
<p><code class="prettyprint">Set-DPMGlobalProperty –AllowLocalDataProtection $true my-dpm-server</code></p>
<p>If for some reason you need/want to disable this feature, just change $true to $false.</p>
<p>Now when creating a new protection group you should see the Shares and Volumes nodes available under your DPM server where only DPMDB existed before.</p>
<div id="attachment_20" class="wp-caption alignnone" style="width: 602px"><a href="http://blogs.6bit.com/josh/wp-content/uploads/2009/04/localproton.png"><img class="size-full wp-image-20" title="Local protection on" src="http://blogs.6bit.com/josh/wp-content/uploads/2009/04/localproton.png" alt="Local protection on" width="592" height="461" /></a><p class="wp-caption-text">Local Protection Enabled</p></div>
<h2>Using</h2>
<p>This feature came not a moment too soon.  We don&#8217;t currently need it for a branch-office configuration but I do need this feature rather badly for doing disk image backups of our VMWare infrastructure using DPM.  VMWare&#8217;s Consolidated Backup mounts remote disk images as local directories, and without this feature I would have to use a third machine to act as the VCB proxy. Having a proxy would require not only another machine, but another node in the data flow between my VMs and tape.</p>
<p>I’ll explain indepth how I am using DPM to backup VMWare Infrastructur using VMWare Consolidated Backup in a future post.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.6bit.com/josh/2009/04/backing-up-local-files-on-your-data-protection-management-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
