<?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>Robert Basic &#187; linux</title>
	<atom:link href="http://robertbasic.com/blog/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://robertbasic.com/blog</link>
	<description>the magic of coding...</description>
	<lastBuildDate>Mon, 30 Jan 2012 13:15:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Moblin, Linux for netbooks</title>
		<link>http://robertbasic.com/blog/moblin-linux-for-netbooks/</link>
		<comments>http://robertbasic.com/blog/moblin-linux-for-netbooks/#comments</comments>
		<pubDate>Thu, 21 May 2009 10:57:24 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Blablabla]]></category>
		<category><![CDATA[Free time]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[about]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[moblin]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://robertbasic.com/blog/?p=720</guid>
		<description><![CDATA[Moblin got me curios and I wanted to test it out: Moblin is an open source project focused on building a Linux-based platform optimized for the next generation of mobile devices including Netbooks, Mobile Internet Devices, and In-vehicle infotainment systems. Cause I don&#8217;t own (yet!) a netbook, I installed it under VirtualBox (VB from now [...]]]></description>
			<content:encoded><![CDATA[<p><a class="zem_slink" href="http://www.moblin.org/" title="Moblin" rel="homepage">Moblin</a> got me curios and I wanted to test it out:</p>
<blockquote><p>Moblin is an <a class="zem_slink" href="http://www.wikinvest.com/concept/Open_Source" title="Open Source" rel="wikinvest">open source</a> project focused on building a Linux-based platform optimized for the next generation of mobile devices including Netbooks, <a class="zem_slink" href="http://en.wikipedia.org/wiki/Mobile_internet_device" title="Mobile internet device" rel="wikipedia">Mobile Internet Devices</a>, and In-vehicle infotainment systems.</p></blockquote>
<p>Cause I don&#8217;t own (yet!) a netbook, I installed it under <a class="zem_slink" href="http://www.virtualbox.org/" title="VirtualBox" rel="homepage">VirtualBox</a> (VB from now on). The image is 666 MB big and it comes not in an .iso, but in a .img format. But, VB, a really awesome software, had no troubles booting from it. As with the majority of Linux distros nowadays, Moblin image is also a <a class="zem_slink" href="http://en.wikipedia.org/wiki/Live_CD" title="Live CD" rel="wikipedia">Live CD</a>, which means you can run it, without installing it.</p>
<div id="attachment_729" class="wp-caption alignright" style="width: 310px"><a href="http://robertbasic.com/blog/wp-content/uploads/2009/05/step10.png"><img src="http://robertbasic.com/blog/wp-content/uploads/2009/05/step10-300x247.png" alt="Installing Moblin" title="Installing Moblin" class="size-medium wp-image-729" height="247" width="300"></a><p class="wp-caption-text">Installing Moblin</p></div>
<p>The preinstall process is made up from 6-7 steps: choosing the language, the keyboard layout, the timezone and, of course, the partitioning. Basically, it&#8217;s just another boring “Next-Next” process. The installation itself took around 6 minutes to finish. When it&#8217;s done, it asks for a username and a password.</p>
<p>The first boot went pretty quickly, considering that booting under VB takes longer than booting under regular installations. The thing about VB is that it needs, the so called “Guest Additions” installed on the guest machine, so that the guest machine can be used normally. In this case, I failed to install it: Moblin comes with one version of the <a class="zem_slink" href="http://www.kernel.org/" title="Linux kernel" rel="homepage">Linux kernel</a> and the additions are for another version of the kernel. This prevented me in my quest to test Moblin fully. Anyway, I&#8217;ve managed to take a few screenshots of it, all are uploaded to <a href="http://picasaweb.google.com/robertbasic.com/Moblin">my Picasa profile</a>.</p>
<div id="attachment_732" class="wp-caption alignleft" style="width: 310px"><a href="http://robertbasic.com/blog/wp-content/uploads/2009/05/screen1.png"><img src="http://robertbasic.com/blog/wp-content/uploads/2009/05/screen1-300x247.png" alt="The m_zone" title="The m_zone" class="size-medium wp-image-732" height="247" width="300"></a><p class="wp-caption-text">The m_zone</p></div>
<p>There was one thing that was strange. It has a “<a href="http://moblin.org/documentation/moblin-netbook-intro/how-get-around-moblin-netbook-ui/status-panel">Status panel</a>”, from which you can update your profiles on social networks. A really useful stuff. I just opened it up and updated <a href="http://twitter.com/robertbasic">my Twitter profile</a>. Almost. I wasn&#8217;t logged in to Twitter from it and Moblin didn&#8217;t say a word about it. It just happily said that my status is updated. Once I found the “<a href="http://moblin.org/documentation/moblin-netbook-intro/show-me-how-connect-stuff/setting-web-services">Web services</a>” panel I logged in and this time I was really updating my Twitter stream.</p>
<p>I really was hoping to test it normally and write a detailed review of it, but this guest additions thingy thought otherwise. Moblin is a great <a class="zem_slink" href="http://en.wikipedia.org/wiki/Linux_distribution" title="Linux distribution" rel="wikipedia">distro</a>, even in this beta stage I believe it&#8217;s useful. What do you think? Did you test it already, saw it in action?</p>
<p>One thing&#8217;s for sure: when I&#8217;ll get myself a netbook, it&#8217;ll run on Moblin.</p>
<p>Cheers!</p>
<p>P.S.: Check out the <a href="http://moblin.org/documentation/moblin-netbook-intro">Moblin intro</a>, too!</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/5d894d6e-e1b1-4532-9dc5-735a118271b5/" title="Reblog this post [with Zemanta]"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=5d894d6e-e1b1-4532-9dc5-735a118271b5" alt="Reblog this post [with Zemanta]"></a><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://robertbasic.com/blog/moblin-linux-for-netbooks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Trac on Ubuntu</title>
		<link>http://robertbasic.com/blog/trac-on-ubuntu/</link>
		<comments>http://robertbasic.com/blog/trac-on-ubuntu/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 13:26:32 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[trac]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://robertbasic.com/blog/?p=560</guid>
		<description><![CDATA[Today I was messing around with Trac, installing it and doing some basic configuration. While my dev machine gets updated, I want to share my process of installing Trac. What is Trac? As said on the Trac homepage: Trac is an enhanced wiki and issue tracking system for software development projects. It&#8217;s free, it&#8217;s open [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was messing around with <a href="http://trac.edgewall.org/">Trac</a>, installing it and doing some basic configuration. While my dev machine gets updated, I want to share my process of installing Trac.</p>
<h2>What is Trac?</h2>
<p>As said on the Trac homepage:</p>
<blockquote><p>Trac is an enhanced wiki and issue tracking system for software development projects.</p></blockquote>
<p>It&#8217;s free, it&#8217;s open source, it comes under the <a href="http://trac.edgewall.org/wiki/TracLicense">BSD license</a> and it&#8217;s really awesome. You can write a wiki with it, have a ticket system, connect it with SVN, so you can browse the sources from the browser and see all the commit messages, when was something changed, added&#8230; It can support one project, it can support multiple projects. It can be viewable/editable by anyone, or you can close it down for your little team&#8230;</p>
<p>Trac is big. It has lots of <a href="http://trac.edgewall.org/wiki/TracPlugins">plug-ins</a>, so you can extend and customize your Trac. I haven&#8217;t played with them yet, but as soon as I will, you&#8217;ll get <a href="http://feeds2.feedburner.com/robertbasic/blog/">notified</a> ;)</p>
<p>It&#8217;s written in <a href="http://python.org/">Python</a>. It can run on it&#8217;s own server, or it can run under Apache (where there are also <a href="http://trac.edgewall.org/wiki/TracInstall#WebServer">several options</a>). It can use SQlite, PostrgeSQL or MySQL databases. Currently it can connect only to SVN.</p>
<p>I&#8217;ll show you how to setup a basic Trac 0.11-dot-something-dot-something. It will run under Apache with <a href="http://code.google.com/p/modwsgi/">mod_wsgi</a>, use a SQlite database, connect to the SVN repository and require user authentication.</p>
<p><span id="more-560"></span></p>
<h2>Installing Trac</h2>
<p>Before anything, I want to say that my machine where I installed Trac has LAMP and SVN <a href="http://robertbasic.com/blog/lamp-and-svn-on-ubuntu-8-10/">configured like this</a>. So, this post is kinda the next part of that post.</p>
<p>First, I installed a Python tool, called Easy Install. It&#8217;s here to make our installation process easier. Lovely. Go to <a href="http://pypi.python.org/pypi/setuptools/">http://pypi.python.org/pypi/setuptools/</a>, scroll down to the downloads section and choose a Python egg to download (match it to your currently installed Python version &#8212; I have Python 2.5 so I downloaded &#8220;setuptools-0.6c9-py2.5.egg&#8221;).</p>
<p>Fire up a console and type:</p>
<pre name="code" class="php">
sudo sh setuptools-0.6c9-py2.5.egg
</pre>
<p>Of course, you need to match this to your own setuptools file.</p>
<p>Next, type:</p>
<pre name="code" class="php">
sudo easy_install Trac
</pre>
<p>EasyInstall will now locate Trac and it&#8217;s dependencies, download and install them.</p>
<p>Download the mod_wsgi:</p>
<pre name="code" class="php">
sudo apt-get install libapache2-mod-wsgi
</pre>
<p>It will install and enable mod_wsgi. And, in my case, it only tried to restart Apache, but for an unknown reason it fails to do so. If that happens, just do a quick:</p>
<pre name="code" class="php">
sudo /etc/init.d/apache2 restart
</pre>
<p>If you want Subversion with your Trac, you&#8217;ll need the python-subversion package:</p>
<pre name="code" class="php">
sudo apt-get install python-subversion
</pre>
<p>If you have it already, it&#8217;ll just skip it. If you want SVN, but you don&#8217;t have this package, later on it will show an error message like: Unsupported version control system &#8220;svn&#8221;.</p>
<p>Now to make a folder for Trac, where it will keep all the Trac projects and stuff.</p>
<pre name="code" class="php">
sudo mkdir /var/trac /var/trac/sites /var/trac/eggs /var/trac/apache
sudo chown -R www-data /var/trac
</pre>
<p>Under <code>/var/trac/sites</code> will be the files for Trac projects. The <code>/var/trac/eggs</code> folder will be used as a cache folder for Python eggs. <code>/var/trac/apache</code> will hold a wsgi script file.</p>
<p>The wsgi script is actually a Python script, but with the .wsgi extension, used by mod_wsgi. With this script, Trac will be able to run as a WSGI application.<br />
File: <code>/var/trac/apache/trac.wsgi</code></p>
<pre name="code" class="php">
import sys
sys.stdout = sys.stderr

import os
os.environ['TRAC_ENV_PARENT_DIR'] = '/var/trac/sites'
os.environ['PYTHON_EGG_CACHE'] = '/var/trac/eggs'

import trac.web.main

application = trac.web.main.dispatch_request
</pre>
<p>With this kind of script, one single Trac installation will be able to manage multiple projects (you can see <a href="http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac">here</a> some other scripts).</p>
<p>Configure Apache, add this to your <code>httpd.conf</code> file:</p>
<pre name="code" class="php">
WSGIScriptAlias /trac /var/trac/apache/trac.wsgi

&lt;Directory /var/trac/apache&gt;
    WSGIApplicationGroup %{GLOBAL}
    Order deny,allow
    Allow from all
&lt;/Directory&gt;
</pre>
<p>Restart Apache:</p>
<pre name="code" class="php">
sudo /etc/init.d/apache2 restart
</pre>
<p>If you go to <a href="http://localhost/trac/">http://localhost/trac/</a> in your browser, you should see an empty list of Available Projects. It&#8217;s empty, cause we haven&#8217;t added any project yet.</p>
<p>Now, let&#8217;s asume that we have a project called &#8220;testProject&#8221; with it&#8217;s source located in <code>/var/www/testProject</code> and a SVN repo located in <code>/var/svn/repos/testProject</code>. I&#8217;ll show how to add that project to Trac.</p>
<p>In console type:</p>
<pre name="code" class="php">
sudo trac-admin /var/trac/sites/testProject initenv
</pre>
<p>Note that you need to provide the full path to <code>/var/trac/sites</code>, cause it will create a Trac project in the current folder you&#8217;re in.</p>
<p>It will ask you now a few things:</p>
<ul>
<li>Project Name &#8212; the name of the project, e.g. &#8220;Trac testing project&#8221;</li>
<li>Database connection string &#8212; leave it empty, and it will use SQlite</li>
<li>Repository type &#8212; leave it empty, and it will use SVN</li>
<li>Path to repository &#8212; path to the project repo, e.g. <code>/var/svn/repos/testProject</code>
</ul>
<p>It will start to print out a bunch of lines, about what is it doing. In the end you&#8217;ll get a message like &#8220;Project environment for &#8216;testProject&#8217; created.&#8221; and a few more lines. One more thing. We need to add the whole project to www-data user, so it can manage the files:</p>
<pre name="code" class="php">
sudo chown -R www-data /var/trac/sites/testProject
</pre>
<p>If you direct your browser again to <a href="http://localhost/trac/">http://localhost/trac/</a>, you will now see a link for the <code>testProject</code>. Click it. There, a fully working basic Trac environment for your project. A wiki, a ticket/bug tracking system, a repo browser in only a few minutes. How cool is that? Very.</p>
<p>This Trac environment can now be accessible by everyone. If we do not want that, we need to add this to the <code>httdp.conf</code> file:</p>
<pre name="code" class="php">
&lt;Location /trac&gt;
    AuthType Basic
    AuthName "Trac login"
    AuthUserFile /var/trac/.htpasswd
    Require valid-user
&lt;/Location&gt;
</pre>
<p>Create the <code>.htpasswd</code> file:</p>
<pre name="code" class="php">
sudo htpasswd -bcm /var/trac/.htpasswd your_username your_password
</pre>
<p>All set. You&#8217;ll now have to login to Trac to be able to work on it. As I&#8217;m the big boss on my localhost, I gave myself some super-power privileges for Trac: TRAC_ADMIN. It&#8217;s like root on *NIX.</p>
<pre name="code" class="php">
sudo trac-admin /var/trac/sites/testProject permission add robert TRAC_ADMIN
</pre>
<p>Read more about <a href="http://trac.edgewall.org/wiki/TracPermissions">privileges</a>.</p>
<p>That would be it. With this kind of setup, for now, it&#8217;s working perfectly for me. For Trac that&#8217;s available from the whole Internet, more security measures are needed, but this is only on localhost, so this is enough for me.</p>
<p>Comments, thoughts, ideas? </p>
<p>Happy hacking!</p>
]]></content:encoded>
			<wfw:commentRss>http://robertbasic.com/blog/trac-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Ubuntu Administrator</title>
		<link>http://robertbasic.com/blog/ubuntu-administrator/</link>
		<comments>http://robertbasic.com/blog/ubuntu-administrator/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 16:56:45 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Places on the web]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[about]]></category>
		<category><![CDATA[administrator]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://robertbasic.com/blog/?p=525</guid>
		<description><![CDATA[I just found this site, Ubuntu Administrator, a nice place full of articles, how-tos, tips &#038; tricks about Ubuntu in general, and things like networking or security on Ubuntu systems. A great place for all geeks 8) Now, if you&#8217;ll excuse me, my console is waiting! Happy hacking!]]></description>
			<content:encoded><![CDATA[<p>I just found this site, <a href="http://ubuntuadministrator.com/">Ubuntu Administrator</a>, a nice place full of articles, how-tos, tips &#038; tricks about Ubuntu in general, and things like <a href="http://ubuntuadministrator.com/?cat=3">networking</a> or <a href="http://ubuntuadministrator.com/?cat=10">security</a> on Ubuntu systems. A great place for all geeks 8)</p>
<p>Now, if you&#8217;ll excuse me, my console is waiting! Happy hacking!</p>
]]></content:encoded>
			<wfw:commentRss>http://robertbasic.com/blog/ubuntu-administrator/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu as a dev machine</title>
		<link>http://robertbasic.com/blog/ubuntu-as-a-dev-machine/</link>
		<comments>http://robertbasic.com/blog/ubuntu-as-a-dev-machine/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 07:04:15 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://robertbasic.com/blog/?p=293</guid>
		<description><![CDATA[This post is more of a note to myself, &#8217;cause I keep forgetting all these Linux commands, and spend hours setting up stuff right&#8230; I&#8217;m installing Ubuntu 8.04 on VirtualBox, with windows xp as the host machine. I must do it this way, because my wireless card is having some problems with Linux, something with [...]]]></description>
			<content:encoded><![CDATA[<p><em>This post is more of a note to myself, &#8217;cause I keep forgetting all these Linux commands, and spend hours setting up stuff right&#8230;</em></p>
<p>I&#8217;m installing <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a> 8.04 on <a href="http://virtualbox.org" target="_blank">VirtualBox</a>, with windows xp as the host machine. I must do it this way, because my wireless card is having some problems with Linux, something with the drivers. The <strong>possible</strong> solution includes kernel compiling &#8212; thanks, but no thanks.</p>
<p>Anyway&#8230; The installation itself is no trouble, so I&#8217;ll skip that. I always keep the apt-cache from previous installations, sparing hours of updating the system&#8230; On the host I have a folder that I share between the host OS and the client OS and first I need to reach that folder, to get from it the apt-cache.</p>
<p>First, need to install the Guest Additions. In Virtualbox go to Devices &#8212;&gt; Install Guest Additions. In the console run:</p>
<pre name="code" class="php">
sudo /media/cdrom/VBoxLinuxAdditions.run
</pre>
<p>After it&#8217;s finished, we need to mount the shared folder:</p>
<pre name="code" class="php">
sudo mount -t vboxsf name_of_the_sharing_folder /path/to/mount_point
</pre>
<p>Now, for me, this command shows some error. Here&#8217;s what I have to do:</p>
<pre name="code" class="php">
sudo modprobe vboxfs
sudo mount -t vboxsf name_of_the_sharing_folder /path/to/mount_point
</pre>
<p>Something with some modules not being loaded into the kernel, not bothered with it really&#8230; Now I can copy the apt-cache to where it needs to be:</p>
<pre name="code" class="php">
sudo cp -r /path/to/mount_point/apt-cache /var/cache/apt/archives
</pre>
<p>Now do the system update. If the system update includes a kernel update, you&#8217;ll have to install Guest Additions once more&#8230;</p>
<p>Next installing the LAMP:</p>
<pre name="code" class="php">
sudo apt-get install apache2
sudo apt-get install php5 libapache2-mod-php5
sudo /etc/init.d/apache2 restart
sudo apt-get install mysql-server
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
sudo /etc/init.d/apache2 restart
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart
</pre>
<p>That should do it. But hey! mod_rewrite still doesn&#8217;t work!</p>
<pre name="code" class="php">
sudo gvim /etc/apache2/sites-available/default
</pre>
<p>And change <code>AllowOverride None</code> to <code>AllowOverride All</code>.</p>
<p>There. I have a basic LAMP on Ubuntu under VirtualBox. I made a few snapshots of the VirtualBox image, in case I trash it (which probably will happen soon), so I don&#8217;t need to reinstall over again.</p>
<p>Now, I&#8217;m of to setup SVN&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://robertbasic.com/blog/ubuntu-as-a-dev-machine/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

