<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/3.3.3" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Simon's Blog</title>
		<link>http://simon.bonners.ca/blog///blog5.php</link>
		<atom:link rel="self" type="application/rss+xml" href="http://simon.bonners.ca/blog///blog5.php?tempskin=_rss2" />
		<description></description>
		<language>en-CA</language>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=3.3.3"/>
		<ttl>60</ttl>
				<item>
			<title>Local Web Hosting on Arch</title>
			<link>http://simon.bonners.ca/blog///blog5.php/2011/09/11/local-web-hosting-on-arch</link>
			<pubDate>Sun, 11 Sep 2011 15:25:30 +0000</pubDate>			<dc:creator>admin</dc:creator>
			<category domain="main">Arch Linux</category>			<guid isPermaLink="false">67@http://simon.bonners.ca/blog///</guid>
						<description>&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://simon.bonners.ca/blog///blog5.php/2011/09/11/local-web-hosting-on-arch&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<div class="item_footer"><p><small><a href="http://simon.bonners.ca/blog///blog5.php/2011/09/11/local-web-hosting-on-arch">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://simon.bonners.ca/blog///blog5.php/2011/09/11/local-web-hosting-on-arch#comments</comments>
			<wfw:commentRss>http://simon.bonners.ca/blog///blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=67</wfw:commentRss>
		</item>
				<item>
			<title>Installing R Rmpi on Arch Linux</title>
			<link>http://simon.bonners.ca/blog///blog5.php/2011/04/07/installing-r-rmpi-on-arch-linux</link>
			<pubDate>Fri, 08 Apr 2011 03:07:15 +0000</pubDate>			<dc:creator>admin</dc:creator>
			<category domain="main">R</category>
<category domain="alt">Arch Linux</category>			<guid isPermaLink="false">66@http://simon.bonners.ca/blog///</guid>
						<description>&lt;p&gt;After 2.5 hours I have finally managed to get Rmpi installed and working on Arch.&lt;/p&gt;

&lt;p&gt;After lots of trying and searching I finally found out that Rmpi is not compatible with the latest version of openmpi which is installed from the Arch repos (version 1.5.3-2). Following the recommendation &lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=358045&quot;&gt;here&lt;/a&gt; I was able to get Rmpi working by reverting to openmpi version 1.4.3, which is in fact the current release. &lt;/p&gt;

&lt;p&gt;To do this, I downloaded openmpi 1.4.3 from the Open MPI &lt;a href=&quot;http://www.open-mpi.org/software/ompi/v1.4/&quot;&gt;download page&lt;/a&gt;, extracted the tarball, compiled and installed the source in the usual way:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After installation I then followed the directions &lt;a href=&quot;http://www.cybaea.net/Blogs/Data/R-tips-Installing-Rmpi-on-Fedora-Linux.html&quot;&gt;here&lt;/a&gt; with modifications to account for the new install location. Specifically, I ran the command:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
sudo ldconfig /usr/local/lib/openmpi/&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
and then added the line:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
export LD_LIBRARY_PATH=/usr/local/lib/openmpi/:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
to my &lt;code&gt;.bashrc&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;Finally, I was able to install Rmpi in R using the following command:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
install.packages(&quot;Rmpi&quot;,&lt;br /&gt;
                 configure.args =&lt;br /&gt;
                 c(&quot;--with-Rmpi-include=/usr/local/include/&quot;,&lt;br /&gt;
                   &quot;--with-Rmpi-libpath=/usr/local/lib/openmpi/&quot;,&lt;br /&gt;
                   &quot;--with-Rmpi-type=OPENMPI&quot;))&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I have now test Rmpi by running the script I posted previously after opening R as:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
/usr/local/bin/mpirun -np 1 R --vanilla&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
and it all seems to work as expected. Phew!&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://simon.bonners.ca/blog///blog5.php/2011/04/07/installing-r-rmpi-on-arch-linux&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>After 2.5 hours I have finally managed to get Rmpi installed and working on Arch.</p>

<p>After lots of trying and searching I finally found out that Rmpi is not compatible with the latest version of openmpi which is installed from the Arch repos (version 1.5.3-2). Following the recommendation <a href="http://bugs.gentoo.org/show_bug.cgi?id=358045">here</a> I was able to get Rmpi working by reverting to openmpi version 1.4.3, which is in fact the current release. </p>

<p>To do this, I downloaded openmpi 1.4.3 from the Open MPI <a href="http://www.open-mpi.org/software/ompi/v1.4/">download page</a>, extracted the tarball, compiled and installed the source in the usual way:<br />
<code><br />
./configure<br />
make<br />
make install<br />
</code></p>

<p>After installation I then followed the directions <a href="http://www.cybaea.net/Blogs/Data/R-tips-Installing-Rmpi-on-Fedora-Linux.html">here</a> with modifications to account for the new install location. Specifically, I ran the command:<br />
<code><br />
sudo ldconfig /usr/local/lib/openmpi/<br />
</code><br />
and then added the line:<br />
<code><br />
export LD_LIBRARY_PATH=/usr/local/lib/openmpi/:$LD_LIBRARY_PATH<br />
</code><br />
to my <code>.bashrc</code> file.</p>

<p>Finally, I was able to install Rmpi in R using the following command:<br />
<code><br />
install.packages("Rmpi",<br />
                 configure.args =<br />
                 c("--with-Rmpi-include=/usr/local/include/",<br />
                   "--with-Rmpi-libpath=/usr/local/lib/openmpi/",<br />
                   "--with-Rmpi-type=OPENMPI"))<br />
</code></p>

<p>I have now test Rmpi by running the script I posted previously after opening R as:<br />
<code><br />
/usr/local/bin/mpirun -np 1 R --vanilla<br />
</code><br />
and it all seems to work as expected. Phew!</p><div class="item_footer"><p><small><a href="http://simon.bonners.ca/blog///blog5.php/2011/04/07/installing-r-rmpi-on-arch-linux">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://simon.bonners.ca/blog///blog5.php/2011/04/07/installing-r-rmpi-on-arch-linux#comments</comments>
			<wfw:commentRss>http://simon.bonners.ca/blog///blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=66</wfw:commentRss>
		</item>
				<item>
			<title>Introduction to Matrix Calculus</title>
			<link>http://simon.bonners.ca/blog///blog5.php/2010/11/19/introduction-to-matrix-calculus</link>
			<pubDate>Fri, 19 Nov 2010 19:46:20 +0000</pubDate>			<dc:creator>admin</dc:creator>
			<category domain="main">Statistics &amp; Mathematics</category>			<guid isPermaLink="false">65@http://simon.bonners.ca/blog///</guid>
						<description>&lt;p&gt;&lt;a href=&quot;http://www4.ncsu.edu/~pfackler/MatCalc.pdf&quot;&gt;http://www4.ncsu.edu/~pfackler/MatCalc.pdf&lt;/a&gt;&lt;/p&gt;&lt;p&gt;This is a great reference for those who may have forgotten (or keep forgetting) their matrix derivative rules -- like me! The summary at the end is especially useful. Thanks Paul!!&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://simon.bonners.ca/blog///blog5.php/2010/11/19/introduction-to-matrix-calculus&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p><a href="http://www4.ncsu.edu/~pfackler/MatCalc.pdf">http://www4.ncsu.edu/~pfackler/MatCalc.pdf</a></p><p>This is a great reference for those who may have forgotten (or keep forgetting) their matrix derivative rules -- like me! The summary at the end is especially useful. Thanks Paul!!</p><div class="item_footer"><p><small><a href="http://simon.bonners.ca/blog///blog5.php/2010/11/19/introduction-to-matrix-calculus">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://simon.bonners.ca/blog///blog5.php/2010/11/19/introduction-to-matrix-calculus#comments</comments>
			<wfw:commentRss>http://simon.bonners.ca/blog///blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=65</wfw:commentRss>
		</item>
				<item>
			<title>Webcam with Skype 2.1.0.81 in Ubuntu 9.10</title>
			<link>http://simon.bonners.ca/blog///blog5.php/2010/10/07/webcam-with-skype-2-1-0-81-in-ubuntu-9-10</link>
			<pubDate>Fri, 08 Oct 2010 01:37:47 +0000</pubDate>			<dc:creator>admin</dc:creator>
			<category domain="main">Ubuntu 9.10</category>			<guid isPermaLink="false">64@http://simon.bonners.ca/blog///</guid>
						<description>&lt;p&gt;I recently upgraded Skype to version 2.1.0.81, and since then I've been having troubles with my web cam (Microsoft Lifecam NX-6000). The camera would work in other applications, and Skype would detect it but couldn't grab the image either in the test or in an actual call. I stumbled upon &lt;a href=&quot;http://www.liucougar.net/blog/archives/220&quot;&gt;this post&lt;/a&gt; and creating a simple wrapper to change the LD_PRELOAD environment variable seems to have worked. The entire script is:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
#/bin/bash&lt;br /&gt;
&lt;br /&gt;
export LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so &lt;br /&gt;
&lt;br /&gt;
/usr/bin/skype&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
and the camera now works if I run &lt;code&gt;run_skype&lt;/code&gt;. Don't forget to make the script executable!&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://simon.bonners.ca/blog///blog5.php/2010/10/07/webcam-with-skype-2-1-0-81-in-ubuntu-9-10&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I recently upgraded Skype to version 2.1.0.81, and since then I've been having troubles with my web cam (Microsoft Lifecam NX-6000). The camera would work in other applications, and Skype would detect it but couldn't grab the image either in the test or in an actual call. I stumbled upon <a href="http://www.liucougar.net/blog/archives/220">this post</a> and creating a simple wrapper to change the LD_PRELOAD environment variable seems to have worked. The entire script is:<br />
<code><br />
#/bin/bash<br />
<br />
export LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so <br />
<br />
/usr/bin/skype<br />
</code><br />
and the camera now works if I run <code>run_skype</code>. Don't forget to make the script executable!</p><div class="item_footer"><p><small><a href="http://simon.bonners.ca/blog///blog5.php/2010/10/07/webcam-with-skype-2-1-0-81-in-ubuntu-9-10">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://simon.bonners.ca/blog///blog5.php/2010/10/07/webcam-with-skype-2-1-0-81-in-ubuntu-9-10#comments</comments>
			<wfw:commentRss>http://simon.bonners.ca/blog///blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=64</wfw:commentRss>
		</item>
				<item>
			<title>Line number and amsmath</title>
			<link>http://simon.bonners.ca/blog///blog5.php/2010/10/06/line-number-and-amsmath</link>
			<pubDate>Wed, 06 Oct 2010 21:03:51 +0000</pubDate>			<dc:creator>admin</dc:creator>
			<category domain="main">LaTeX</category>			<guid isPermaLink="false">63@http://simon.bonners.ca/blog///</guid>
						<description>&lt;p&gt;Line numbering is difficult for LaTeX because the line numbers are only known after the text has been typeset. The &lt;a href=&quot;http://www.ctan.org/tex-archive/macros/latex/contrib/lineno/&quot;&gt;lineno&lt;/a&gt; package does a pretty good job, but it sometimes gets confused and can leave seemingly random sections of the document without numbers. I recently had this problem when submitting a paper for &lt;em&gt;Biometrics&lt;/em&gt; using the provided style file. I then stumbled upon this &lt;a href=&quot;http://phaseportrait.blogspot.com/2007/08/lineno-and-amsmath-compatibility.html&quot;&gt;great fix&lt;/a&gt;. Simply copy the following text and place it in your LaTeX file before the \begin{document} command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;br /&gt;
\newcommand*\patchAmsMathEnvironmentForLineno[1]{%&lt;br /&gt;
  \expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname&lt;br /&gt;
  \expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname&lt;br /&gt;
  \renewenvironment{#1}%&lt;br /&gt;
     {\linenomath\csname old#1\endcsname}%&lt;br /&gt;
     {\csname oldend#1\endcsname\endlinenomath}}% &lt;br /&gt;
\newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{%&lt;br /&gt;
  \patchAmsMathEnvironmentForLineno{#1}%&lt;br /&gt;
  \patchAmsMathEnvironmentForLineno{#1*}}%&lt;br /&gt;
\AtBeginDocument{%&lt;br /&gt;
\patchBothAmsMathEnvironmentsForLineno{equation}%&lt;br /&gt;
\patchBothAmsMathEnvironmentsForLineno{align}%&lt;br /&gt;
\patchBothAmsMathEnvironmentsForLineno{flalign}%&lt;br /&gt;
\patchBothAmsMathEnvironmentsForLineno{alignat}%&lt;br /&gt;
\patchBothAmsMathEnvironmentsForLineno{gather}%&lt;br /&gt;
\patchBothAmsMathEnvironmentsForLineno{multline}%&lt;br /&gt;
}&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Worked like a charm for me!&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://simon.bonners.ca/blog///blog5.php/2010/10/06/line-number-and-amsmath&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Line numbering is difficult for LaTeX because the line numbers are only known after the text has been typeset. The <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/lineno/">lineno</a> package does a pretty good job, but it sometimes gets confused and can leave seemingly random sections of the document without numbers. I recently had this problem when submitting a paper for <em>Biometrics</em> using the provided style file. I then stumbled upon this <a href="http://phaseportrait.blogspot.com/2007/08/lineno-and-amsmath-compatibility.html">great fix</a>. Simply copy the following text and place it in your LaTeX file before the \begin{document} command:</p>

<p><code><br />
\newcommand*\patchAmsMathEnvironmentForLineno[1]{%<br />
  \expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname<br />
  \expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname<br />
  \renewenvironment{#1}%<br />
     {\linenomath\csname old#1\endcsname}%<br />
     {\csname oldend#1\endcsname\endlinenomath}}% <br />
\newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{%<br />
  \patchAmsMathEnvironmentForLineno{#1}%<br />
  \patchAmsMathEnvironmentForLineno{#1*}}%<br />
\AtBeginDocument{%<br />
\patchBothAmsMathEnvironmentsForLineno{equation}%<br />
\patchBothAmsMathEnvironmentsForLineno{align}%<br />
\patchBothAmsMathEnvironmentsForLineno{flalign}%<br />
\patchBothAmsMathEnvironmentsForLineno{alignat}%<br />
\patchBothAmsMathEnvironmentsForLineno{gather}%<br />
\patchBothAmsMathEnvironmentsForLineno{multline}%<br />
}<br />
</code></p>

<p>Worked like a charm for me!</p><div class="item_footer"><p><small><a href="http://simon.bonners.ca/blog///blog5.php/2010/10/06/line-number-and-amsmath">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://simon.bonners.ca/blog///blog5.php/2010/10/06/line-number-and-amsmath#comments</comments>
			<wfw:commentRss>http://simon.bonners.ca/blog///blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=63</wfw:commentRss>
		</item>
				<item>
			<title>Installing rhythmbox in Arch</title>
			<link>http://simon.bonners.ca/blog///blog5.php/2010/09/29/installing-rhythmbox-in-arch</link>
			<pubDate>Wed, 29 Sep 2010 07:27:30 +0000</pubDate>			<dc:creator>admin</dc:creator>
			<category domain="main">Arch in VirtualBox</category>			<guid isPermaLink="false">60@http://simon.bonners.ca/blog///</guid>
						<description>&lt;p&gt;By now you can guess how to install rhythmbox in Arch:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
sudo pacman -S rhythmbox&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
This installs the basic package, but a few tweaks are needed for full functionality. First, rhythmbox requires the fuse module to be loaded to run. Load it now with:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
modprobe fuse&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
and add fuse to the MODULES array in /etc/rc.conf so you don't have to do this again.&lt;/p&gt;

&lt;p&gt;You'll probably also want to add the extra codecs so you can play your favourite music sources. The simplest thing is to install them all at once:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
sudo pacman -S gstreamer0.10-bad-plugins gstreamer0.10-ugly-plugins gstreamer0.10-ffmpeg&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
This will allow you to play mp3 files among other formats. Note: after installing these I received an error message from rhythmbox saying that a Gstreamer plugin was missing until I logged out and restarted X.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://simon.bonners.ca/blog///blog5.php/2010/09/29/installing-rhythmbox-in-arch&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>By now you can guess how to install rhythmbox in Arch:<br />
<code><br />
sudo pacman -S rhythmbox<br />
</code><br />
This installs the basic package, but a few tweaks are needed for full functionality. First, rhythmbox requires the fuse module to be loaded to run. Load it now with:<br />
<code><br />
modprobe fuse<br />
</code><br />
and add fuse to the MODULES array in /etc/rc.conf so you don't have to do this again.</p>

<p>You'll probably also want to add the extra codecs so you can play your favourite music sources. The simplest thing is to install them all at once:<br />
<code><br />
sudo pacman -S gstreamer0.10-bad-plugins gstreamer0.10-ugly-plugins gstreamer0.10-ffmpeg<br />
</code><br />
This will allow you to play mp3 files among other formats. Note: after installing these I received an error message from rhythmbox saying that a Gstreamer plugin was missing until I logged out and restarted X.</p><div class="item_footer"><p><small><a href="http://simon.bonners.ca/blog///blog5.php/2010/09/29/installing-rhythmbox-in-arch">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://simon.bonners.ca/blog///blog5.php/2010/09/29/installing-rhythmbox-in-arch#comments</comments>
			<wfw:commentRss>http://simon.bonners.ca/blog///blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=60</wfw:commentRss>
		</item>
				<item>
			<title>Installing sudo in Arch</title>
			<link>http://simon.bonners.ca/blog///blog5.php/2010/09/29/installing-sudo-in-arch</link>
			<pubDate>Wed, 29 Sep 2010 06:07:14 +0000</pubDate>			<dc:creator>admin</dc:creator>
			<category domain="main">Arch in VirtualBox</category>			<guid isPermaLink="false">59@http://simon.bonners.ca/blog///</guid>
						<description>&lt;p&gt;As a user of Ubuntu (which has no root account) I'm used to using sudo to apply administrative commands, as opposed to logging into the root account with su. To enable sudo, you first need to install the sudo package:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
pacman -S sudo&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You then need to edit the /etc/sudoers file to allow your basic user to run sudo. You can do this by adding a single user to the /etc/sudoers file, but you can also do it with groups. First, add your user to the wheel group with the command:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
gpasswd -a &lt;user&gt; wheel
&lt;/user&gt;&lt;/code&gt;&lt;br /&gt;
while logged into the root account. Then edit the /etc/sudoers file to allow this group access to sudo. To do this, you need to use the command:&lt;br /&gt;
&lt;code&gt;de&gt;&lt;br /&gt;
and remove the comment (#) at the start of the line:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
%wheel All=(All) All&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
of from the line:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
%wheel All=(All) NOPASSWD: All&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
if you don't want to have to enter your password every time.&lt;/p&gt;

&lt;p&gt;You should now be able to execute commands like pacman from the normal user's account, like:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
sudo pacman -S &lt;your next package&gt;&lt;/your&gt;&lt;/code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://simon.bonners.ca/blog///blog5.php/2010/09/29/installing-sudo-in-arch&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>As a user of Ubuntu (which has no root account) I'm used to using sudo to apply administrative commands, as opposed to logging into the root account with su. To enable sudo, you first need to install the sudo package:<br />
<code><br />
pacman -S sudo<br />
</code></p>

<p>You then need to edit the /etc/sudoers file to allow your basic user to run sudo. You can do this by adding a single user to the /etc/sudoers file, but you can also do it with groups. First, add your user to the wheel group with the command:<br />
<code><br />
gpasswd -a <user> wheel
</user></code><br />
while logged into the root account. Then edit the /etc/sudoers file to allow this group access to sudo. To do this, you need to use the command:<br />
<code>de><br />
and remove the comment (#) at the start of the line:<br />
<code><br />
%wheel All=(All) All<br />
</code><br />
of from the line:<br />
<code><br />
%wheel All=(All) NOPASSWD: All<br />
</code><br />
if you don't want to have to enter your password every time.</p>

<p>You should now be able to execute commands like pacman from the normal user's account, like:<br />
<code><br />
sudo pacman -S <your next package></your></code></code></p><div class="item_footer"><p><small><a href="http://simon.bonners.ca/blog///blog5.php/2010/09/29/installing-sudo-in-arch">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://simon.bonners.ca/blog///blog5.php/2010/09/29/installing-sudo-in-arch#comments</comments>
			<wfw:commentRss>http://simon.bonners.ca/blog///blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=59</wfw:commentRss>
		</item>
				<item>
			<title>Accessing shared folders from Arch guest in VirtualBox</title>
			<link>http://simon.bonners.ca/blog///blog5.php/2010/09/29/accessing-shared-folders-from-arch-guest-in-virtualbox</link>
			<pubDate>Wed, 29 Sep 2010 05:49:17 +0000</pubDate>			<dc:creator>admin</dc:creator>
			<category domain="main">Arch in VirtualBox</category>			<guid isPermaLink="false">58@http://simon.bonners.ca/blog///</guid>
						<description>&lt;p&gt;Once you have installed the VirtualBox you can share files between the host and the guest using shared folders. Instructions are available &lt;a href=&quot;http://www.virtualbox.org/manual/ch04.html#sharedfolders&quot;&gt;here&lt;/a&gt;, but here's how I did it.&lt;/p&gt;

&lt;p&gt;First you have to edit the machine settings. With the machine off select the machine in the VirtualBox and click settings. Then open the 'Shared Folders' dialog and create a new shared folder -- remember the Folder Name because you'll need this in a sec. The folder I have used is called Archie.&lt;/p&gt;

&lt;p&gt;To access the shared folder in the guest machine you simply need to mount the folder. Log-in as root and create a new mount point, like so:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
mkdir /media/Archie&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
The shared folder can then be mounted with the command:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
mount -t vboxsf Archie /media/Archie&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
To avoid having to do this every time you want to move a file, you can have the share mounted automatically on each boot of the guest machine. To do this, you need to edit the /etc/fstab file as root. The suggested line is:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
Archie                 /media/Archie vboxsf    defaults    0      0&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
but I've changed this to:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
Archie                 /media/Archie vboxsf    uid=1000,gid=100    0      0&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
in order that the basic user I created (uid 1000) can easily write files to the share.&lt;/p&gt;

That's all!&lt;/code&gt;&lt;/code&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://simon.bonners.ca/blog///blog5.php/2010/09/29/accessing-shared-folders-from-arch-guest-in-virtualbox&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Once you have installed the VirtualBox you can share files between the host and the guest using shared folders. Instructions are available <a href="http://www.virtualbox.org/manual/ch04.html#sharedfolders">here</a>, but here's how I did it.</p>

<p>First you have to edit the machine settings. With the machine off select the machine in the VirtualBox and click settings. Then open the 'Shared Folders' dialog and create a new shared folder -- remember the Folder Name because you'll need this in a sec. The folder I have used is called Archie.</p>

<p>To access the shared folder in the guest machine you simply need to mount the folder. Log-in as root and create a new mount point, like so:<br />
<code><br />
mkdir /media/Archie<br />
</code><br />
The shared folder can then be mounted with the command:<br />
<code><br />
mount -t vboxsf Archie /media/Archie<br />
</code><br />
To avoid having to do this every time you want to move a file, you can have the share mounted automatically on each boot of the guest machine. To do this, you need to edit the /etc/fstab file as root. The suggested line is:<br />
<code><br />
Archie                 /media/Archie vboxsf    defaults    0      0<br />
</code><br />
but I've changed this to:<br />
<code><br />
Archie                 /media/Archie vboxsf    uid=1000,gid=100    0      0<br />
<code><br />
in order that the basic user I created (uid 1000) can easily write files to the share.</p>

That's all!</code></code><div class="item_footer"><p><small><a href="http://simon.bonners.ca/blog///blog5.php/2010/09/29/accessing-shared-folders-from-arch-guest-in-virtualbox">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://simon.bonners.ca/blog///blog5.php/2010/09/29/accessing-shared-folders-from-arch-guest-in-virtualbox#comments</comments>
			<wfw:commentRss>http://simon.bonners.ca/blog///blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=58</wfw:commentRss>
		</item>
			</channel>
</rss>

