<?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; Linux</title>
	<atom:link href="http://blogs.6bit.com/josh/category/technology/linux/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>
	</channel>
</rss>
