<?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>Linux from the Terminal</title>
	<atom:link href="http://www.davistobias.com/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.davistobias.com/linux</link>
	<description>Helpful Linux terminal commands with clear explanations. Always ad-free.</description>
	<lastBuildDate>Wed, 22 Dec 2010 07:53:48 +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>Setting up SAMBA (file share)</title>
		<link>http://www.davistobias.com/linux/556/setting-up-samba-file-share</link>
		<comments>http://www.davistobias.com/linux/556/setting-up-samba-file-share#comments</comments>
		<pubDate>Wed, 22 Dec 2010 07:34:23 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.davistobias.com/linux/?p=556</guid>
		<description><![CDATA[Today I finally got around to setting up my media server, so I obviously wanted to make the media files accessible over the internet to Windows users. The way to do that in Linux is with Samba. I&#8217;m using Ubuntu 9.04, the last of the Ubuntu versions that I&#8217;ve really enjoyed. If you are using [...]]]></description>
			<content:encoded><![CDATA[<p>Today I finally got around to setting up my media server, so I obviously wanted to make the media files accessible over the internet to Windows users. The way to do that in Linux is with <a href="http://www.samba.org/">Samba</a>.</p>
<p>I&#8217;m using Ubuntu 9.04, the last of the Ubuntu versions that I&#8217;ve really enjoyed. If you are using Ubuntu 10.10, these instructions no longer function correctly. I didn&#8217;t try 10.04, but I imagine the major changes occured in the 9 to 10 shift, so it&#8217;s unlikely to work there either.</p>
<p>Once you get your computer up and running, you&#8217;ll need to make sure Samba is installed. You can check that it is installed, and install it if it isn&#8217;t, with this simple code:</p>
<p><code>sudo apt-get install samba smbfs</code></p>
<ul>
<li><code>sudo</code> Let&#8217;s you modify system files (requires a password)</li>
<li><code>apt-get</code> The package management software for Ubuntu and Debian in general</li>
<li><code>install</code> This is a flag passed to apt-get which tells it to install the following programs</li>
<li><code>samba</code> Samba is the main program needed</li>
<li><code>sambafs</code> The Samba file system, which is also needed</li>
</ul>
<p>After it installs, you should decide how you want to share your files. If all you want is to make the files accessible from another computer for viewing only, the instructions are much simpler. I&#8217;ll show those first:</p>
<h2>Sharing files as read-only:</h2>
<p>All you need to do is add a few lines to your Samba configuration file. First, make a copy of the file in case you break it later:</p>
<p><code>sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.old</code></p>
<ul>
<li><code>sudo</code> Let&#8217;s you modify system files (requires a password)</li>
<li><code>cp</code> Short for copy</li>
<li><code>/etc/samba/smb.conf</code> The file to copy</li>
<li><code>/etc/samba/smb.conf.old</code> The new copy of the file</li>
</ul>
<p>Now you&#8217;ll need to open the configuration file and edit a few lines. Go ahead and open the file with your favorite editor, mine is Nano right now:</p>
<p><code>sudo nano /etc/samba/smb.conf</code></p>
<ul>
<li><code>sudo</code> You can open the file without sudo, but you won&#8217;t be able to save changes</li>
<li><code>nano</code> My editor of choice, at the moment</li>
<li><code>/etc/samba/smb.conf</code> The file we want to edit</li>
</ul>
<p>Now, go down until you find a line that looks like the following (it&#8217;s about line 96 on mine):</p>
<p><code>####### Authentication #######</code></p>
<p>Underneath the comments, you&#8217;ll see this line:</p>
<p><code># security = user</code></p>
<p>There may or may not be a <code>#</code> at the beginning. If there is not, go ahead and add one. This will comment out the line so it can be seen by the user, but does not appear to the system.</p>
<p>Underneath that, write in the following:</p>
<blockquote><p>[share]<br />
comment =Shared files<br />
path = /public/<br />
read only = yes</p></blockquote>
<p>The code is explained like this:</p>
<ul>
<li><code>[share]</code> The word &#8220;share&#8221; is simply the folder name that will appear when you browse to it from another computer.</li>
<li><code>comment = Shared files</code> This is a comment available for users to see, it can contain a helpful description.</li>
<li><code>path = /public/</code> This is the path to the folder you want to share.</li>
<li><code>read only = yes</code> This is pretty much what it sounds like, people who browse to the folder can&#8217;t modify it.</li>
</ul>
<p>That&#8217;s pretty much it! If you are using Nano to edit the file, press control+x to exit, and y (for yes) to save changes.</p>
<p>After you modify the configuration file, it&#8217;s time to restart Samba with this easy command:</p>
<p><code>sudo /etc/init.d/samba restart</code></p>
<ul>
<li><code>sudo</code> Required to modify system files</li>
<li><code>/etc/init.d/samba</code> This is the program that controls Samba, basically</li>
<li><code>restart</code> The command passed to Samba. Other commands are stop and start.</li>
</ul>
<p>Now you can browse to the folder on your Windows machine and see the shared folder. Huzzah!</p>
<p>But what about if you want to access some documents and modify them? Well, you&#8217;ll need to share them as read-write. I&#8217;ll get into that soon and post updates here, but for now you might try <a href="http://www.unixmen.com/linux-tutorials/566-install-samba-server-in-ubuntu-karmic">this</a> reasonable tutorial.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 152px; width: 1px; height: 1px; overflow: hidden;">[share]<br />
comment =Shared files<br />
path = /public/<br />
read only = yes</div>
]]></content:encoded>
			<wfw:commentRss>http://www.davistobias.com/linux/556/setting-up-samba-file-share/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Network managers in Ubuntu: wicd</title>
		<link>http://www.davistobias.com/linux/552/network-managers-in-ubuntu-wicd</link>
		<comments>http://www.davistobias.com/linux/552/network-managers-in-ubuntu-wicd#comments</comments>
		<pubDate>Sun, 11 Jul 2010 03:05:55 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.davistobias.com/linux/?p=552</guid>
		<description><![CDATA[The network management from console is pretty miserable, and until I can figure out a better method I would rather use the GUI version. In this case, I am trying to get away from Gnome, which uses vast amounts of memory, but maintain the funcionality of Gnomes scripts/interface. One promising bit of software is Wicd, [...]]]></description>
			<content:encoded><![CDATA[<p>The network management from console is pretty miserable, and until I  can figure out a better method I would rather use the GUI version. In  this case, I am trying to get away from Gnome, which uses vast amounts  of memory, but maintain the funcionality of Gnomes scripts/interface.</p>
<p>One promising bit of software is <a href="http://wicd.sourceforge.net/">Wicd</a>, built to not need any  particular window manager, just what I like. (My mouse just died!)</p>
<p>The instructions I did not follow, but which are the right ones, are  these. Extracted from their website:</p>
<p>Wicd is included in Debian Sid, so you can just use apt-get install  to get it.</p>
<p>You can also use the apt repository. Just add the following line to  your /etc/apt/sources.list</p>
<blockquote><p><code>deb http://apt.wicd.net lenny extras</code></p></blockquote>
<p>where lenny is your version of Debian in lowercase (lenny, sid).  You&#8217;ll also need to add the key used for signing Wicd by running the  following command in a terminal:</p>
<blockquote><p><code>wget -q http://apt.wicd.net/wicd.gpg -O- | sudo  apt-key add -</code></p></blockquote>
<p>Now you can <code>apt-get update</code> and <code>apt-get install  wicd</code> to install Wicd. If you are using Lenny and you use Madwifi,  make sure to use wext in Wicd.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davistobias.com/linux/552/network-managers-in-ubuntu-wicd/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing the latest version of Firefox in Ubuntu 9.04</title>
		<link>http://www.davistobias.com/linux/548/installing-the-latest-version-of-firefox-in-ubuntu-9-04</link>
		<comments>http://www.davistobias.com/linux/548/installing-the-latest-version-of-firefox-in-ubuntu-9-04#comments</comments>
		<pubDate>Wed, 05 May 2010 04:00:24 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.davistobias.com/linux/?p=548</guid>
		<description><![CDATA[Instructions to install Firefox 3.5 and higher into Ubuntu 9.04, the Jaunty Jackalope. It is very easy but does require some terminal commands. An easy script is provided that you can download to make this easier.]]></description>
			<content:encoded><![CDATA[<p>Just because Ubuntu is at 10.04 doesn&#8217;t mean that the 9.04 users (me!) get left behind: I found out a very easy way to update Firefox from the 3.0 version to whatever the latest version is. Even better, this works on the 32 <i>and</i> the 64 bit version, although I think it only installs the 32 bit version.</p>
<p>If you try and install Firefox the normal way on a 64 bit Ubuntu, it won&#8217;t work and says it&#8217;s the &#8220;wrong architecture&#8221;, meaning it isn&#8217;t a 64 bit program. (I run 64 bit Ubuntu 9.04) However, you can download the installer and get it running manually with these easy instructions:</p>
<p>First go to the temporary folder, it&#8217;s where big files get unpacked so it doesn&#8217;t fill up your normal user space: <code>cd /tmp</code></p>
<p>Now use the program &#8220;<a href="http://www.gnu.org/software/wget/">wget</a>&#8221; (it&#8217;s already installed) to download the latest version of Firefox using: <code>wget "http://download.mozilla.org/?product=firefox-3.6.3&#038;os=linux&#038;lang=en-US"</code> Note: If there is a higher version of Firefox, simply substitute the number <code>3.6.3</code> with whatever the most recent version number is. Also, this uses the US English language, but you can change that as well.</p>
<p>What you just downloaded is a compressed file, and you&#8217;ll need to decompress it with this command: <code>tar xvjf firefox-*.bz2</code></p>
<li><code>tar</code> This is the decompressor program, although others obviously exist</li>
<li><code>xvjf</code> These are the options to pass the tar program, they tell it to e<strong>x</strong>tract the files, be <strong>v</strong>erbose (list the files aas they are uncompressed). use the bzip compression (<strong>j</strong>), and do this to the following <strong>f</strong>ile</li>
<li>firefox-*.bz2</code> This is the file you downloaded, but using the asterisk (*) lets us select it without typing all the numbers</li>
<p>The next part gets into the real trick. You first want to copy the files you just decompressed into the <code>/usr/lib</code> directory, then into the <code>/usr/bin</code> directory, so it can be accessed like a program. First copy into the <code>/usr/lib</code> folder:<br />
<code>sudo cp -r firefox /usr/lib/firefox-3.6.3</code></p>
<p>Now backup the old version of Firefox in case you break something. Do this by renaming the old version. In Linux, renaming a file is done by using the "move" command:<br />
<code>sudo mv /usr/bin/firefox /usr/bin/firefox.old</code></p>
<p>Now we want to make symbolic links (like shortcuts) in the right places to the right files. Symbolic links all take the same form of <code>ln -s <i>[target] [new link]</i></code>, so do this:<br />
<code>sudo ln -s /usr/lib/firefox-3.6.3/firefox /usr/bin/firefox-3.6.3</code><br />
<code>sudo ln -s /usr/bin/firefox-3.6.3 /usr/bin/firefox</code></p>
<p>Make sure to restart Firefox, and everything should be fine. Hooray!</p>
<p>If everything broke, you can at least put it back the way it was by changing the links to go back to the original Firefox version:<br />
<code>sudo mv /usr/bin/firefox /usr/bin/firefox.bak</code><br />
<code>sudo mv /usr/bin/firefox.old /usr/bin/firefox</code></p>
<p>I also made a simple Bash script which puts all of this together. Just copy the following text into a file and run it in the terminal by using <code>bash <i>[file name]</i></code> You will have to make the script runnable first by using: <code>chmod +x <i>[file name]</i></p>
<blockquote><p>
#!/bin/bash</p>
<p># You can choose the language and pick the most recent version by going here:<br />
# http://www.mozilla.com/en-US/firefox/all.html<br />
# Right click on the link by the penguin, select "copy" in the pop-up menu,<br />
# and replace the folowing link (remember to put quotation marks "" around the link)</p>
<p>LINK="http://download.mozilla.org/?product=firefox-3.6.3&#038;os=linux&#038;lang=en-US"</p>
<p># Now put the exact version number in--it should be the version number shown<br />
# in the link (use quotations!):</p>
<p>VERSION="3.6.3"</p>
<p>cd /tmp<br />
wget $LINK<br />
tar xvjf firefox-*.bz2<br />
sudo cp -r firefox /usr/lib/firefox-$VERSION<br />
sudo mv /usr/bin/firefox /usr/bin/firefox.old<br />
sudo ln -s /usr/lib/firefox-$VERSION/firefox /usr/bin/firefox-$VERSION<br />
sudo ln -s /usr/bin/firefox-$VERSION /usr/bin/firefox
</p></blockquote>
<p>Let me know if you run into snags, I'll try and help sort things out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davistobias.com/linux/548/installing-the-latest-version-of-firefox-in-ubuntu-9-04/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic Arch Linux commands</title>
		<link>http://www.davistobias.com/linux/545/basic-arch-linux-commands</link>
		<comments>http://www.davistobias.com/linux/545/basic-arch-linux-commands#comments</comments>
		<pubDate>Tue, 27 Apr 2010 06:34:32 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Arch]]></category>
		<category><![CDATA[Install Commands]]></category>

		<guid isPermaLink="false">http://www.davistobias.com/linux/?p=545</guid>
		<description><![CDATA[After having been in Ubuntu for so long, it was a slight surprise to me that installing Arch Linux would require me to learn a different way to install programs. I mean, it shouldn&#8217;t have been a real surprise, they are different systems, but anyway&#8230; So in Debian I had the easy to use apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>After having been in Ubuntu for so long, it was a slight surprise to me that installing Arch Linux would require me to learn a different way to install programs. I mean, it shouldn&#8217;t have been a real surprise, they <em>are</em> different systems, but anyway&#8230;</p>
<p>So in Debian I had the easy to use <code>apt-get install <em>[program name]</em></code> and after a brief poking about on the internets, I found the basic package management commands for the Arch system. The program that Arch uses for <strong>pac</strong>kage <strong>man</strong>agement is <code>pacman</code>. Who would have guessed&#8230; Here&#8217;s some of the more important commands:</p>
<li><code>pacman --sync --refresh</code> or <code>pacman -Sy</code> refreshes the local repository list by downloading the full list(s)</li>
<li><code>pacman --sync --search <em>[name]</em></code> or <code>pacman --Ss <em>[name]</em></code> looks for the package of <em>[name]</em> in the local repository and display any that match</li>
<li><code>pacman --sync --info <em>[name]</em></code> or <code>pacman -Si <em>[name]</em></code> shows information about the program <em>[name]</em> by looking in the local repository</li>
<li><code>pacman --query --info <em>[name]</em></code> or <code>pacman -Qi <em>[name]</em></code> will display information about program <em>[name]</em> if it is installed</li>
<li><code>pacman --sync <em>[name]</em></code> or <code>pacman -S <em>[name]</em></code> downloads and installs the program <em>[name]</em> and <em>all</em> dependencies required</li>
<li><code>pacman --query</code> or <code>pacman -Q</code> lists the packages installed on the computer. Adding a programs name at the end, e.g., <code>pacman -Q <em>[name]</em></code> will show the program <em>[name]</em> if it is installed</li>
<li><code>pacman --query --list <em>[name]</em></code> or <code>pacman -Ql</code> lists the files contained in the <em>[name]</em> package</li>
<li><code>pacman --query --owns <em>/path/to/file</em></code> or <code>pacman -Qo <em>/path/to/file</em></code> displays the name and version of the package which contains the file referenced</li>
<p>The list of repositories that Arch will check when you update/refresh is located in <code>/etc/pacman.d</code> somewhere.</p>
<p>Alright, that&#8217;s a simple intro. I&#8217;ll play around in Arch for a while to see if I like it, but the experience so far has been fun.</p>
<p><em>Update: Try these ones here as well:</em></p>
<li><code>pacman -Syu</code> Installs <em>all</em> updates, which does take a while but is a good idea</li>
<p>Here&#8217;s how to install XFCE, the reasonably lightweight window manager: <code>pacman -S xfce4</code> but you should have a look at this list of packages (xfce requires xorg):<br />
gtk-xfce-engine – The Xfce-GTK graphics engine<br />
libxfce4mcs – Settings management support for Xfce.<br />
libxfce4util – Non-GUI functions for Xfce<br />
libxfcegui4 – GTK widgets for Xfce<br />
orage – Xfce Calendar<br />
thunar – File manager<br />
xfce-mcs-manager – Settings manager.<br />
xfce-mcs-plugins – Plugins for settings manager<br />
xfce-utils – startxfce4 script, run dialog, etc.<br />
xfce4-appfinder – Application finder<br />
xfce4-icon-theme – Icon theme<br />
xfce4-iconbox – Simple application management, similar to taskbar.<br />
xfce4-mixer – Volume control plugin for the panel<br />
xfce4-panel – Xfce Panel<br />
xfce4-session – Session management<br />
xfce4-systray – System tray plugin for the panel<br />
xfce4-toys – Small toys for Xfce<br />
xfce4-trigger-launcher – Trigger launcher panel plugin<br />
xfdesktop – Allows desktop wallpaper, icons, and menus<br />
xfprint – The Xfce Print package<br />
xfwm4 – Xfce Window Manager<br />
xfwm4-themes – Themes for Xfce Window Manager</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davistobias.com/linux/545/basic-arch-linux-commands/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browsing the Internets from the terminal</title>
		<link>http://www.davistobias.com/linux/534/browsing-the-internets-from-the-terminal</link>
		<comments>http://www.davistobias.com/linux/534/browsing-the-internets-from-the-terminal#comments</comments>
		<pubDate>Sat, 24 Apr 2010 04:58:50 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[links2]]></category>
		<category><![CDATA[web browsing]]></category>

		<guid isPermaLink="false">http://www.davistobias.com/linux/?p=534</guid>
		<description><![CDATA[Links2 is a text-based web browser that can be run from the terminal, but also has the ability to display graphics. In Debian the installation is simple, since the application is in the repositories. Shortcut keys and additional options are shown.]]></description>
			<content:encoded><![CDATA[<p>When I installed a version of Linux on my desktop, I played around with the bootloader and accidentally broke it. Thankfully I had my handy <a href="http://www.tobiaslabs.com/category/active/zipit-z2/">hacked Zipit Z2</a> to let me search online. At the moment, I didn&#8217;t have a graphical browser, so I used the awesome text browser: <a href="http://links.sourceforge.net/">Links2</a>. I&#8217;ll show you how to install it, and the basic commands to get around online. (Links2 is a dual-mode browser: If I&#8217;m inside an X environment, it will display graphics, but from the console it won&#8217;t.)</p>
<p>I&#8217;ll probably end up getting familiar with other Linux system commands  after a while, but for now I&#8217;ll only be able to provide instructions for  Debian systems, and in Debian Links2 is already in the repository, so nothing special is required: <code>sudo apt-get install links2</code></p>
<li><code>sudo</code> You&#8217;ll need to have admin rights to install things</li>
<li><code>apt-get</code> This runs the program &#8220;apt-get&#8221;, which is what most Debian installs use to access the repository of programs. You could also use <code>aptitude</code> if you have it installed</li>
<li><code>install</code> This is the &#8220;flag&#8221; to pass to the program &#8220;apt-get&#8221;, which will tell it to go ahead and install a program.</li>
<li><code>links2</code> This is the program to install</li>
<p>While I don&#8217;t use it, the Fedora/RedHat systems installation appears to be a little more involved, judging from <a href="http://www.olpcnews.com/forum/index.php?topic=2728.msg23844">this post</a> (has instructions).</p>
<p>Once Links2 is installed, you can access it from the terminal using this structure: <code>links2 [options] URL</code> (If you don&#8217;t specify a URL, Links2 will open to a blank page. Access the menu by pressing Esc)</p>
<p>The [options] you can use are as follows (this list is basically from the <code>links2 --help</code> readout, but explained a bit more):</p>
<ul>
<li><code>-g</code> This runs Links2 in graphics mode. You may be able to browse with graphics without starting X, I already had it installed so I&#8217;m not sure what it references.</li>
<li><code>-no-g</code> If you are in X it will default to display graphics, but this will tell it to revert to text only.</li>
<li><code>-source</code> This one has to be <em>right before</em> the URL (eg., <code>links2 -source URL</code> ). It will output the text source code of the page instead of rendering it as HTML.</li>
<li><code>-force-html</code> If a page isn&#8217;t understood by Links2, it might not display as HTML, this will force it to try.</li>
<li><code>-dump</code> This one also has to be right before the URL. It will render the page as HTML and dump it to the screen, so the program won&#8217;t be running.</li>
<li><code>-fake-user-string [string]</code> The browser tells the website you visit what browser you are using, that way the server can give you a page ideally constructed for your browser. There is a huge list of strings at <a href="http://www.zytrax.com/tech/web/browser_ids.htm">this link</a>.</li>
</ul>
<p>There are actually piles and piles of different options you can change, but if you want to make something permanently changed, you should change the configuration file for Links2, which is located in the file <strong>links.cfg</strong></p>
<p>If you installed Links2 in a Debian environment, you can probably find the configuration folder using: <code>cd $HOME/.links2</code></p>
<li><code>cd</code> This is the command to <strong>c</strong>hange <strong>d</strong>irectories</li>
<li><code>$HOME</code> This is a shortcut (it <em>must</em> be typed in capital letters) to the home directory of the current user, it&#8217;s really handy</li>
<li><code>/.links2</code> A dot in front of a file or folder hides it—most configuration files are hidden</li>
<p>Make sure to make a backup copy of the configuration file before you change anything! A sample one can be found <a href="http://www.davistobias.com/linux/?attachment_id=539">here</a>, if you want to look at it.</p>
<p>Start up links2 and go somewhere like Life Hacker (notice that Links2 doesn&#8217;t require the &#8220;http://&#8221; prefix): <code>links2 lifehacker.com</code></p>
<p>Navigation in Links2 is with keyboard shortcuts, the most important ones being these:</p>
<li><key><em>esc</em></key> This shows the menu bar for Links2 (navigate it with the arrow keys), which will also show you the rest of these commands</li>
<li><key>g</key> Lets you enter a new URL</li>
<li><key>&#47;</key> Opens a search prompt, letting you look for words on the page</li>
<li><key><em>left/right arrow</em></key> These are the keys to navigate browsing history: Left is &#8220;back&#8221;, right is &#8220;forward&#8221;</li>
<li><key><em>page up/down</em></key> Navigates up and down one page at a time. Depending on your computer setup, the <key><em>up/down arrow</em></key> may do the same, and the <key><em>space bar</em></key> and <key>b</key> keys will do the same if you can&#8217;t get the other ones to work.</li>
<li><key>s</key> This shows a list of bookmarks, you can bring this up and add the current page to the list</li>
<p>I have taken rather fondly to the text-only browser — I&#8217;m trying to get Facebook and the WordPress admin page to load correctly, that will be awesome!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davistobias.com/linux/534/browsing-the-internets-from-the-terminal/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Showing the list of installed packages</title>
		<link>http://www.davistobias.com/linux/529/showing-the-list-of-installed-packages</link>
		<comments>http://www.davistobias.com/linux/529/showing-the-list-of-installed-packages#comments</comments>
		<pubDate>Sat, 28 Nov 2009 07:46:00 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tobiaslabs.com/529/showing-the-list-of-installed-packages/</guid>
		<description><![CDATA[I haven&#8217;t had much time to play around in Linux for a while, what with school, but I recently got a new desktop computer and installed Windows 7 (the horror!) and am now doing some development using VirtualBox, the computer virtualization software. My desktop has all the power I will need for some time, but [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t had much time to play around in Linux for a while, what with school, but I recently got a new desktop computer and installed Windows 7 (the horror!) and am now doing some development using <a href="http://www.virtualbox.org/">VirtualBox</a>, the computer virtualization software. My desktop has all the power I will need for some time, but I would like a light-weight version of Ubuntu (my favored flavor) to install on my newly acquired <a href="http://www.dvhardware.net/review152_asus_eee_pc_900a.html">Asus EEE PC 900A</a>.</p>
<p>Later on I will post some of my findings, but for now I just wanted to point out the helpful command which will list all the packages currently installed: <code>dpkg --get-selection</code></p>
<p>A word on the commands:<br /><code>dpkg</code> This is the debian package manager<br /><code>--get-selection</code> This is the command to list the installed packages</p>
<p>Another trick:<br /><code>dpkg -L package</code> This will list all the files associated with the <code>package</code><br /><code>dpkg --get-selection | grep package</code> The &#8220;grep&#8221; command will search through the lengthy list and display anything with &#8220;package&#8221; in it&#8217;s name.</p>
<p>This handy command will list <span style="font-style: italic;">every</span> package currently installed, which is super helpful once you&#8217;ve generated your custom blend of software but haven&#8217;t written down what you installed. Which I obviously did. Many times.</p>
<p>Of course, this list turns out to be a bit lengthy and unwieldy, especially since it outputs the list right in the terminal. Thankfully you can make the list go into a text file by using the command: <code>dpkg --get-selection > filename.txt</code></p>
<p>The carat symbol, <code>></code>, will take whatever would have gone to the terminal display, and output it to a file, &#8220;filename.txt&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davistobias.com/linux/529/showing-the-list-of-installed-packages/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Samba support to Thunar</title>
		<link>http://www.davistobias.com/linux/527/adding-samba-support-to-thunar</link>
		<comments>http://www.davistobias.com/linux/527/adding-samba-support-to-thunar#comments</comments>
		<pubDate>Sat, 13 Jun 2009 07:16:00 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tobiaslabs.com/527/adding-samba-support-to-thunar/</guid>
		<description><![CDATA[Thunar does not natively support Samba, which is the Linux port of the Microsoft network folder/file sharing protocol, but support can be hacked in using the following method. Note that I stole these instructions mostly from here, but I modified them for my conditions, which were: Minimal installation of Ubuntu, plus IceWM. First make sure [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://thunar.xfce.org/">Thunar</a> does not natively support <a href="http://us1.samba.org/samba/">Samba</a>, which is the Linux port of the Microsoft network folder/file sharing protocol, but support can be hacked in using the following method.</p>
<p>Note that I stole these instructions mostly from <a href="http://ubuntuforums.org/showthread.php?t=304131">here</a>, but I modified them for my conditions, which were: <a href="https://help.ubuntu.com/community/Installation/MinimalCD">Minimal installation</a> of Ubuntu, plus <a href="http://www.icewm.org/">IceWM</a>.</p>
<p>First make sure you have the correct software, Samba:<br />
<code>sudo aptitude install samba</code></p>
<p>Now you need FuseSMB, which is the Linux &#8220;File System in User SpacE&#8221; for Samba. This is found in the Universe repositories, to enable them, run the following (two) commands, borrowed from the <a href="https://help.ubuntu.com/community/Repositories/Ubuntu">official wikisite</a>:</p>
<blockquote><p><code>sudo su -c '\ndeb http://us.archive.ubuntu.com/ubuntu/ jaunty universe &gt;&gt; /etc/apt sources.list'<br />
sudo su -c 'echo \ndeb-src http://us.archive.ubuntu.com/ubuntu/ jaunty universe &gt;&gt; /etc/apt/sources.list'</code></p></blockquote>
<p>Now that the Universe repository is enabled, installing fusesmb is easy:<br />
<code>sudo aptitude install fusesmb</code></p>
<p>Now you need to add the fuse module to be loaded when the computer starts. Do this by adding the word <code>fuse</code> to the file <code>/etc/modules</code>, either using a text editor or with this command:<br />
<code>sudo su -c '\nfuse\n &gt;&gt; /etc/modules'</code></p>
<p>At this point you will need to do a full reboot to your computer so the fuse module loads correctly. Make sure to bookmark this page so you can finish the instructions when you come back!</p>
<p>After rebooting, you need to make a folder where Samba can mount: I made mine <code>/media/network</code> for simplicity. From the command line: <code>sudo mkdir /media/network</code></p>
<p>Now you will need to make sure the folder has the correct permissions. To do this, open Thunar using <code>sudo thunar</code> which will give you administrator rights, so be careful not to do anything other than this. Right click on your folder <code>/media/network</code> and go to properties. You need to set Group &#8220;Access&#8221; and &#8220;Others&#8221; to &#8220;Read &amp; Write&#8221;. Finally, run this command: <code>sudo chown :fuse /media/network</code></p>
<p>You also need to add the <code>fusesmb</code> code to the folder <code>/etc/init.d</code> which is done by making a script and putting it in that folder. The script is a really simple one, just make a text file on your desktop, name it something descriptive like <code>networkmount</code>, and put this inside:</p>
<blockquote><p><code>#!/bin/bash<br />
# This mounts the Samba service to the folder /media/network<br />
fusesmb /media/network</code></p></blockquote>
<p>Now make the script executable with this command:<br />
<code>chmod +x networkmount</code> where networkmount is the name of the file<br />
Finally, copy the file into the correct folder, you will need to be an admin, so try this command:<br />
<code>mv networkmount /etc/init.d/networkmount</code></p>
<p>Now you need to make Samba mount to the correct folder whenever you log in. What I did is add the correct command to the file <code>/home/tobias/.xinitrc</code> , which will run the command when I start X, but you may have a different way. How my .xinitrc file looks now (make sure the <code>exec icewm-session &amp;</code> is last):</p>
<blockquote><p><code>fusesmb /media/network &amp;<br />
exec icewm-session &amp;</code></p></blockquote>
<p>Now you will need to do a full reboot once more.</p>
<p>That&#8217;s it! If you open Thunar and navigate to <code>/media/network</code> it will show you the available Samba networks. Note, however, that the response time is a bit slow, I thought I had done it wrong at first, but I was just impatient. If it won&#8217;t load after a while, try logging out and logging back in, or resetting, to see if it will reinstate correctly.</p>
<p>For added navigations, if you are using the &#8220;Shortcuts&#8221; Side Pane in Thunar (control + b) you can navigate to <code>/media</code> and drag the <code>network</code> folder to the side pane for quick access! Alternately, make a link to it and put the link wherever it&#8217;s handy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davistobias.com/linux/527/adding-samba-support-to-thunar/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>I feel a bit foolish: ALSA mixer</title>
		<link>http://www.davistobias.com/linux/526/i-feel-a-bit-foolish-alsa-mixer</link>
		<comments>http://www.davistobias.com/linux/526/i-feel-a-bit-foolish-alsa-mixer#comments</comments>
		<pubDate>Sat, 13 Jun 2009 05:31:00 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tobiaslabs.com/526/i-feel-a-bit-foolish-alsa-mixer/</guid>
		<description><![CDATA[After installing the Ubuntu minimal core plus IceWM, as detailed previously, I could not get sound to work at all. My usual test for sound is installing VLC, which automatically installs a pretty good set of plug-ins, then adding support for DVD, WMA, and some other proprietary encodings: This will install VLC:sudo aptitude install vlc [...]]]></description>
			<content:encoded><![CDATA[<p>After installing the Ubuntu minimal core plus IceWM, as detailed <a href="http://fromtheterminal.blogspot.com/2009/06/reinstalling-ubuntu-core-set.html">previously</a>, I could not get sound to work at all. My usual test for sound is installing VLC, which automatically installs a pretty good set of plug-ins, then adding support for DVD, WMA, and some other proprietary encodings:</p>
<p>This will install VLC:<br /><code>sudo aptitude install vlc</code></p>
<p>This bit of shell script will enable the correct repositories, add the GPG key, and then install the required plug-ins for DVD access, as well as DivX, WMV, WMA, and a handful of other popular proprietary plug-ins. The following code was gathered in part from an old version laying around <a href="http://flavor8.com/index.php/2007/12/16/how-to-install-libdvdcss-on-gutsy">here</a>. Beware of layout changing the font: their are five (5) lines of code to copy+paste here.<br />
<blockquote><code>sudo su -c 'echo \ndeb http://packages.medibuntu.org/ jaunty free non-free >> /etc/apt/sources.list'<br />sudo su -c 'echo \ndeb-src http://packages.medibuntu.org/ jaunty free non-free >> /etc/apt/sources.list'<br />wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />sudo aptitude update<br />sudo aptitude install libdvdcss2 w32codecs gstreamer0.10-pitfdll libxinel-ffmpeg libdvdread4</code></p></blockquote>
<p>So after I installed all that software, I opened VLC and tried to open a music file. Unfortunately for this article, I didn&#8217;t write down what VLC said exactly, but it was essentially saying VLC couldn&#8217;t find an actual audio device. Using the command <code>ls /dev/a*</code> I was able to see that an audio driver did exist: <code>/dev/audio</code></p>
<p>After much poking around in the program <code>aptitude</code>, the Debian software installation program, I realized I did not have the ALSA (Advanced Linux Sound Architecture) software installed, so I installed a few of them. I know for sure that I installed more than I needed, and I can&#8217;t figure out which ones I ended up installing that made it work, but my guess is installing <code>alsa-firmware</code> will install the rest of everything needed.</p>
<p>After that, when I played a tune in VLC it would appear to play correctly, but I could get no sound from the speaker. Well, after stumbling around a bit, looking for more ALSA files I could install, I noticed I had installed <code>alsamixergui</code>, started it, and realized everything was muted! Well, talk about embarrassing, I un-muted everything and realized I had never tried the volume buttons! I thought the volume would be automatically set to some low volume as a default, but it is installed with the sound muted.</p>
<p>Hope you can learn something from my mistakes!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davistobias.com/linux/526/i-feel-a-bit-foolish-alsa-mixer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reinstalling Ubuntu, the core set</title>
		<link>http://www.davistobias.com/linux/525/reinstalling-ubuntu-the-core-set</link>
		<comments>http://www.davistobias.com/linux/525/reinstalling-ubuntu-the-core-set#comments</comments>
		<pubDate>Thu, 11 Jun 2009 07:17:00 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tobiaslabs.com/525/reinstalling-ubuntu-the-core-set/</guid>
		<description><![CDATA[Well, I reinstalled Ubuntu Gnome twice, and then being unhappy with it (which I really have been from the start) I reinstalled the Ubuntu core and then installed IceWM: Ice Window Manager is a very light weight manager, with very limited graphical eye candy. So far I am really enjoying it: The menu, panel, and [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I reinstalled <a href="http://www.ubuntu.com/">Ubuntu Gnome</a> twice, and then being unhappy with it (which I really have been from the start) I reinstalled the <a href="https://help.ubuntu.com/community/Installation/MinimalCD">Ubuntu core</a> and then installed <a href="http://www.icewm.org/">IceWM</a>: Ice Window Manager is a very light weight manager, with very limited graphical eye candy. So far I am really enjoying it: The menu, panel, and most everything else are flat text files, so they are easy to manipulate.</p>
<p>After I installed the base core of Ubuntu, I did this:<br /><code>sudo aptitude install xorg icewm menu firefox</code></p>
<p>If you aren&#8217;t familiar with the Debian install method, it&#8217;s real easy:<br /><code>sudo</code> To install a program, you need root access.<br /><code>aptitude</code> This is the program which installs things. You can just run <code>sudo aptitude</code> and it will give you a command line interface.<br /><code>install</code> This tells the program, aptitude, to install the following list of programs.<br /><code>xorg icewm menu firefox</code> These are the programs I installed, although I am not sure if I needed the <code>menu</code>, I was following someone else&#8217;s instructions.</p>
<p>Now I had a window manager and Firefox, so I could browse around online to figure out how to do other stuff. When you boot up you will end up at a command line, no graphics, and you will need to put in your login name and password. To get the window manager to start, type in: <code>startx</code></p>
<p>The core Ubuntu, plus IceWM, didn&#8217;t install a file manager (in Windows, that is just the normal file browser) so i had to browse around online to find one. I found <a href="http://www.linux.com/archive/articles/59043">this news post</a> which helped, but the comments below really helped me decide. I didn&#8217;t mind the Ubuntu default of Nautilus, but it was a pretty heavyweight, and I was looking for something really light.</p>
<p>What I decided on were two things: <a href="http://thunar.xfce.org/">Thunar</a> and Midnight Commander. Thunar is a graphically appealing, yet lightweight graphical file manager, and comes pre-installed on <a href="http://www.xfce.org/">Xfce</a> and on <a href="http://www.xubuntu.org/">Xubuntu</a>, which is Ubuntu using Xfce4. In <a href="http://thunar.xfce.org/screenshots.html">this link</a> you can find some screenshots of it, although in my installation I have not configured a MIME applied icon set.</p>
<p><a href="http://www.midnight-commander.org/">Midnight Commander</a> is one that I can especially appreciate: It is a console file manager, much like the good ol&#8217; DOS based Norton Commander. Two panes of beautiful text goodness, oh yeah! I managed to find a screenshot of it:</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.icewalkers.com/scrshot/469/"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 276px;" src="http://4.bp.blogspot.com/_CfmdGfdAlNk/SjC05aXsb7I/AAAAAAAAAEA/H1TqK5mRJJ4/s400/midnight-commander.jpg" alt="" id="BLOGGER_PHOTO_ID_5345971656113024946" border="0" /></a>Sorry it&#8217;s not a very good picture, but I think you can get the idea of it. The comments at this previously linked post give some good ideas as to the power of this program. Also, if you open this within a windows manager, you can interact with it using the mouse as well, although it is designed to use the keyboard of course. I had some real trouble figuring out how to install Midnight Commander, so I will present the way I used:</p>
<p>First, you need to enable the Universe repositories. You can do this using some graphical thing, or you can edit the text file. The following lines need to be added to the file &#8220;sources.list&#8221;, which is found at <code>/etc/apt/sources.list</code><br />deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe<br />deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe</p>
<p>You will need to change the word &#8220;jaunty&#8221; to whatever version of ubuntu you are using. One way to quickly append to a text file, from the command line, is this:<br /><code>echo new text >> file.txt</code></p>
<p>This takes the &#8220;new text&#8221; and puts it at the end of &#8220;file.txt&#8221;, that&#8217;s what the <code>>></code> means. To add the two lines above to the sources list, type these two commands:<br /><code>sudo su -c 'echo deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe >> /etc/apt/sources.list'"</code><br /><code>sudo su -c 'echo deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe >> /etc/apt/sources.list'"</code></p>
<p>Now you have added the Universe repository, you need to update the list of programs:<br /><code>sudo aptitude update</code></p>
<p>And finally, install Midnight Commander:<br /><code>sudo aptitude install mc</code></p>
<p>To start Midnight Commander, just type in:<br /><code>mc</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davistobias.com/linux/525/reinstalling-ubuntu-the-core-set/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recursively deleting things</title>
		<link>http://www.davistobias.com/linux/520/recursively-deleting-things</link>
		<comments>http://www.davistobias.com/linux/520/recursively-deleting-things#comments</comments>
		<pubDate>Sun, 19 Apr 2009 07:44:00 +0000</pubDate>
		<dc:creator>Tobias</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tobiaslabs.com/520/recursively-deleting-things/</guid>
		<description><![CDATA[I wanted to delete the incessant &#8220;Thumbs.db&#8221; that Windows leaves everywhere, and found three possible solutions:rm `find /path -name '*.tmp'`find /path -name \*.tmp &#124; xargs rmfind /path -name "*.tmp" -exec rm {} \; The first two probably work when there are no spaces in the folder names. The last one works even when there are [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to delete the incessant &#8220;Thumbs.db&#8221; that Windows leaves everywhere, and found three possible solutions:<br /><code>rm `find /path -name '*.tmp'`</code><br /><code>find /path -name \*.tmp | xargs rm</code><br /><code>find /path -name "*.tmp" -exec rm {} \;</code></p>
<p>The first two probably work when there are no spaces in the folder names. The last one works even when there are spaces. I will explain all three.</p>
<p><span style="font-weight: bold;">First:</span> <code>rm `find /path -name '*.tmp'`</code></p>
<p><code>rm</code> &nbsp;&nbsp; This is the &#8220;remove&#8221; command. You would say <code>rm file</code> to remove &#8220;file&#8221;<br /><code>`find ....`</code> &nbsp;&nbsp; Quotation marks are used to wrap things that may be interpreted as two commands. E.g., if you say <code>rm find blah</code> the computer will look for two files, &#8220;find&#8221; and &#8220;blah&#8221;. The quotation mark found usually to the left of the 1 key is done to let the computer know you want to pass a command. Try running the <code>find /home/user/path -name '*.tmp'</code> by itself. Let&#8217;s pull it apart:<br /><code>find</code> &nbsp;&nbsp; This is the command which is self descriptive<br /><code>/path</code> This is the path where it should start. It will look recursively through all farther out folders.<br /><code>-name '*.tmp'</code> &nbsp;&nbsp; The <code>-name</code> is a flag, letting the computer know that the next thing is the file it should look for.<br /><code>'*.tmp'</code> &nbsp;&nbsp; Why does this have quote marks? It doesn&#8217;t really need it in this example, but if you were looking for a file with spaces in it you would need it.</p>
<p><span style="font-weight: bold;">Second:</span> <code>find /path -name \*.tmp | xargs rm</code></p>
<p><code>find /path -name \*.tmp</code> &nbsp;&nbsp; This command is discussed above, the difference to note is the <code>\*.tmp</code> which I don&#8217;t know why it is there. Sorry. Anybody?<br /><code> | </code> &nbsp;&nbsp; This is the &#8220;pipe&#8221; symbol. It takes whatever the left side makes, and passes it to the right side. In this case, the left side finds the file <code>*.tmp</code> and the pipe passes the location of that file to the right side.<br /><code>xargs rm</code> &nbsp;&nbsp; The xargs command is basically a way to pass commands, the important thing is that it is passing a command to do <code>rm</code> which will remove the file found on the left side of the pipe.</p>
<p><span style="font-weight: bold;">Third:</span> <code>find /path -name "*.tmp" -exec rm {} \;</code></p>
<p><code>find /path</code> &nbsp;&nbsp; Find in the directory &#8220;/path&#8221;<br /><code>-name "*.tmp"</code> &nbsp;&nbsp; Look for the file with an extension of &#8220;tmp&#8221;. If you want it to look for &#8220;TMP&#8221; as well, use <code>-iname</code> which is case insensetive<br /><code>-exec rm {} \;</code> &nbsp;&nbsp; The &#8220;-exec&#8221; is a flag which tells the computer to execute something, in this case the remove command, after it finds a file. Whatever command you pass has to be followed by a semicolon ; So it would be <code>-exec blahblah ;</code> complete with the space before the semicolon. The backslash character makes sure that the computer knows it is done doing whatever command it was supposed to do, in this case remove the file.<br /><code>rm {}</code> &nbsp;&nbsp; The rm command removes (deletes) a file. The brackets are a recursive thing, to the computer they mean &#8220;Whatever you just found&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davistobias.com/linux/520/recursively-deleting-things/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

