<?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>semioticpixels scratch pad &#187; ubuntu</title>
	<atom:link href="http://www.semioticpixels.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.semioticpixels.com</link>
	<description></description>
	<lastBuildDate>Sun, 23 May 2010 20:07:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>installing plone on ubuntu/slicehost</title>
		<link>http://www.semioticpixels.com/2009/09/installing-plone-on-slicehost/</link>
		<comments>http://www.semioticpixels.com/2009/09/installing-plone-on-slicehost/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 02:00:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[crib notes]]></category>
		<category><![CDATA[linux server administration]]></category>
		<category><![CDATA[plone]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.semioticpixels.com/?p=36</guid>
		<description><![CDATA[Setting up the Slicehost Account
Update everything
sudo apt-get update
sudo apt-get upgrade
install vim full so you can edit files
apt-get install vim-full
update the &#8220;locate&#8221; db
sudo updatedb
Change the root password
sudo passwd
Set up Users
useradd zope (I like useradd because there&#8217;s no reason to have a home directory. If you want your user to have a home directory then use adduser [...]]]></description>
			<content:encoded><![CDATA[<h3>Setting up the Slicehost Account</h3>
<p><strong>Update everything</strong><br />
<code>sudo apt-get update</code><br />
<code>sudo apt-get upgrade</code></p>
<p><strong>install vim full so you can edit files</strong><br />
<code>apt-get install vim-full</code></p>
<p><strong>update the &#8220;locate&#8221; db</strong><br />
<code>sudo updatedb</code></p>
<p><strong>Change the root password</strong><br />
<code>sudo passwd</code></p>
<p><strong>Set up Users</strong><br />
<code>useradd zope</code> (I like useradd because there&#8217;s no reason to have a home directory. If you want your user to have a home directory then use <code>adduser</code> or <code>useradd -D zope</code> to create ~/home/zope)<br />
<code>passwd zope</code><br />
<code>useradd -m  -c "real name" -s /bin/bash auserwithsudoers</code> The flags create a home directory with skel profile defaults and this account is linked to the defaults for bash shell, which is important if you like syntax coloring and tab completion.<br />
<code>passwd auserwithsudoers</code><br />
<code>sudo visudo </code><br />
Find the line that says #User Privilege specification and add<br />
<code>auserwithsudoers ALL=(ALL) ALL</code><br />
<code>shift ZZ </code> to save and exit</p>
<p>Now log out as root and login as your new admin user and test sudo<br />
<code>su auserwithsudoers</code><br />
<code>sudo bash</code></p>
<p><strong> Disable root login</strong><br />
<code>su root</code><br />
<code>sudo vim /etc/ssh/sshd_config</code><br />
Change &#8220;PermitRootLogin yes&#8221; to &#8220;PermitRootLogin no&#8221;</p>
<p><strong>Reload the ssh config</strong><br />
<code>sudo /etc/init.d/ssh reload</code></p>
<h3>Ok! Now we&#8217;re ready to think about plone</h3>
<ol>
<li>Follow the plone install instructions <a href="http://www.semioticpixels.com/2007/12/install-plone-3-on-ubuntu-7-10/">here</a></li>
<li>install some products (<a href="http://plone.org/documentation/tutorial/third-party-products/installing">see plone documentation </a>on using buildout).  Here&#8217;s what I did to install a Press Release product
<ol>
<li>download the product. If there&#8217;s a choice of files, choose the one with the naming convention Products.package.tar.gz.  This is a python egg.</li>
<li><code>su zope<br />
vi /usr/local/Plone/zeocluster/buildout.cfg</code><br />
add the following:<br />
<code>[buildout]<br />
...<br />
eggs =<br />
Products.PressRelease<br />
</code><br />
and save (<code>ctrl + ZZ</code>)</li>
<li><code>sudo /usr/local/Plone/zeocluster/bin/buildout</code></li>
<li><code>sudo /usr/local/Plone/zeocluster/bin/plonectl restart</code></li>
<li>In each Plone site where you want to install the Product, go Site Setup&gt;Add/Remove Products and install the Product.</li>
</ol>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.semioticpixels.com/2009/09/installing-plone-on-slicehost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Gutsy Gibbon development server setup</title>
		<link>http://www.semioticpixels.com/2008/01/ubuntu-gutsy-gibbon-development-server-setup/</link>
		<comments>http://www.semioticpixels.com/2008/01/ubuntu-gutsy-gibbon-development-server-setup/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 17:36:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[crib notes]]></category>
		<category><![CDATA[linux server administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.semioticpixels.com/?p=15</guid>
		<description><![CDATA[I know there are plenty of articles and posts for setting up a development server. Yet I still find the need to write up the exact commands and process for my later self to refer to, especially since I haven&#8217;t found a clone function in VMware Fusion like the linux version has.  A pet [...]]]></description>
			<content:encoded><![CDATA[<p>I know there are plenty of articles and posts for setting up a development server. Yet I still find the need to write up the exact commands and process for my later self to refer to, especially since I haven&#8217;t found a clone function in VMware Fusion like the linux version has.  A pet &#8220;when-I-have-time&#8221; project would be to turn these steps into a bash script.</p>
<p>Again, the environment is <a href="http://releases.ubuntu.com/7.10/">Ubuntu Gutsy Gibbon</a></p>
<h2>Setting up a new LAMP server</h2>
<h3>File Permissions</h3>
<p>If you&#8217;re going to access your web directory from another computer, you&#8217;ll need to change the file permissions on the web directory so you can put files. For example, my development server is a Ubuntu virtual machine but I do some development in a Windows vm and some development on my mac. In both cases, I connect with my development server over an sftp client that&#8217;s integrated into my editor environment.</p>
<p><code>sudo chown yourusername /var/www</code><br />
alternatively,  you might create a new user like &#8220;web&#8221; or &#8220;www&#8221;. If  you&#8217;ll occasionally make your server public, you might want to create a user that does not have sudo access for an extra layer of security.<sup>1</sup></p>
<h3>install Apache 2</h3>
<p><code>sudo apt-get install apache2</code><br />
<code>sudo /etc/init.d/apache2 start</code><br />
test apache by navigating in browser to <a href="http://localhost">localhost</a>.<br />
place an index.html page into /var/www to test that&#8217;s all set up.</p>
<p>I like to stop apache while installing other things, but you can always restart it so it doesn&#8217;t really matter<br />
<code>sudo /etc/init.d/apache2 stop (or restart)</code></p>
<h3>Install php 5</h3>
<p><code>sudo apt-get install php5 libapache2-mod-php5</code><br />
restart apache so it registers with php<br />
<code>sudo /etc/init.d/apache2 restart</code><br />
test that it worked by placing a phpinfo file into /var/www<br />
create the file<br />
<code>vi /var/www/phpinfo.php</code><br />
then type<br />
<code>&lt;?php phpinfo(); &gt;</code></p>
<p>Navigate in browser to <a href="http://localhost/phpinfo.php">localhost/phpinfo.php</a> to see that it&#8217;s working</p>
<h3>install mysql server</h3>
<p><code>sudo apt-get install mysql-server</code><br />
<code>sudo apt-get install libapache2-mod-auth-mysql php5-mysql mysql-client</code></p>
<p>Before you start configuring files,  you need to install the full version of vi.  By default, ubuntu only comes with vim-tiny. You&#8217;ll know it&#8217;s vim-tiny when you try to edit a file with vi and the console reads out characters like ^B.  So,<br />
<code>sudo apt-get install vim-full</code></p>
<p>Now, tell php about mysql<br />
<code>sudo vi /etc/php5/apache2/php.ini</code></p>
<p>It doesn&#8217;t matter where you put it, but I like to put it under the line that says &#8220;Directory in which the loadable extensions (modules) reside&#8221;.<br />
<code> extension=mysql.so</code><br />
restart apache again.<br />
<code>sudo /etc/init.d/apache2 restart</code></p>
<h3>Install phpmyadmin</h3>
<p>This can be done the Ubuntu way or it can be done manually by installing phpmyadmin to /var/www like any other web application.</p>
<h4>The Ubuntu way</h4>
<p>the benefit to doing it this way is that phpmyadmin is installed as a managed package which means it will be updated by our lovely package manager, apt-get which saves us a little time. Since I use phpmyadmin on multiple virtual machines, this makes a cumulative difference.</p>
<p><code>sudo apt-get install phpmyadmin</code></p>
<p>tell apache where phpmyadmin actually lives (which is in /etc/phpmyadmin)<br />
<code>sudo vi /etc/apache2/apache2.conf</code><br />
You can place the following directive anywhere, but I prefer to place it under the line:<br />
<code># Include all the user configurations</code><br />
add the line<br />
<code>Include /etc/phpmyadmin/apache.conf</code></p>
<p>If you didn&#8217;t want to edit your apache.conf, you could always use a symlink instead.</p>
<p>navigate to <a href="http://localhost/phpmyadmin">localhost/phpmyadmin</a> to check that it&#8217;s working</p>
<h4>Some cleanup/maintenance/utility stuff</h4>
<p>If this is a fresh install, you probably need to run the locate database updater so you can use it.<br />
<code>sudo updatedb</code></p>
<p>Done with the LAMP setup! Next up &#8230; subversion and trac</p>
<h2>Footnotes</h2>
<ol class="footnotes"><li id="footnote_0_15" class="footnote">for more on managing user accounts see this <a href="http://www.reallylinux.com/docs/usersubuntu.shtml">O&#8217;Reilly article</a> or for an in-depth treatise that addresses best practices &#8211; check out my favorite reference book <a href="http://www.amazon.com/Essential-System-Administration-Third-Frisch/dp/0596003439/ref=pd_bbs_sr_1?ie=UTF8&amp;s=books&amp;qid=1201113196&amp;sr=8-1">&#8220;Essential System Administration&#8221;</a>.</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.semioticpixels.com/2008/01/ubuntu-gutsy-gibbon-development-server-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>install plone 3 on ubuntu 7.10</title>
		<link>http://www.semioticpixels.com/2007/12/install-plone-3-on-ubuntu-7-10/</link>
		<comments>http://www.semioticpixels.com/2007/12/install-plone-3-on-ubuntu-7-10/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 17:19:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[crib notes]]></category>
		<category><![CDATA[linux server administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[plone]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.semioticpixels.com/?p=3</guid>
		<description><![CDATA[This is on a freshly installed Ubuntu 7.10 (Gutsy Gibbon). Modify version numbers as needed

install g++
sudo apt-get install linux-headers-`uname -r` build-essential xinetd
download plone unified installer or in your terminal  type:
wget https://launchpad.net/plone/3.0/3.0.4/+download/Plone-3.0.4-UnifiedInstaller.tar.gz --no-check-certificate
tar -xvzf Plone-3.0.4-Unifiedinstaller-Rev3.tar.gz
cd Plone-3.0.4-Unifiedinstaller
If you need to change the install path for Plone, edit the PLONE_HOME variable in install.sh. I changed mine to [...]]]></description>
			<content:encoded><![CDATA[<p>This is on a freshly installed Ubuntu 7.10 (Gutsy Gibbon). Modify version numbers as needed</p>
<ol>
<li>install g++<br />
<code>sudo apt-get install linux-headers-`uname -r` build-essential xinetd</code></li>
<li>download <a href="http://plone.org/products/plone">plone unified installer</a> or in your terminal  type:<br />
<code>wget https://launchpad.net/plone/3.0/3.0.4/+download/Plone-3.0.4-UnifiedInstaller.tar.gz --no-check-certificate</code></li>
<li><code>tar -xvzf Plone-3.0.4-Unifiedinstaller-Rev3.tar.gz</code><br />
<code>cd Plone-3.0.4-Unifiedinstaller</code><br />
If you need to change the install path for Plone, edit the PLONE_HOME variable in install.sh. I changed mine to /usr/local/Plone304</li>
<li><code>sudo ./install.sh zeo</code></li>
<li> <code>cd /usr/local/Plone304/zeocluster</code><br />
and<br />
<code>sudo vi adminPassword.txt</code><br />
to view admin password</li>
<li> start Plone (first time will take a few minutes):<br />
<code> sudo /usr/local/Plone304/zeocluster/bin/startcluster.sh</code></li>
<li> navigate to localhost:8080 to check that zope is working</li>
<li> in localhost:8080/manage go to Root Folder, click on acl_users=&gt;users=&gt;admin and change admin password to something you&#8217;ll remember</li>
<li> from dropdown menu select Plone Site to create a new site</li>
<li> navigate to plone site: localhost:8080/ploneSiteName</li>
<li>navigate to zmi by: localhost:8080/ploneSiteName/manage</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.semioticpixels.com/2007/12/install-plone-3-on-ubuntu-7-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
