<?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>How To Ubuntu &#187; Command Line</title>
	<atom:link href="http://howto-ubuntu.net/category/command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://howto-ubuntu.net</link>
	<description>Focusing on the Long Term Support release -- Lucid 10.04</description>
	<lastBuildDate>Fri, 30 Jul 2010 12:30:55 +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>How to enable the Universe &amp; Multiverse repositories from the command line</title>
		<link>http://howto-ubuntu.net/how-to-enable-the-universe-multiverse-repositories-from-command-line/</link>
		<comments>http://howto-ubuntu.net/how-to-enable-the-universe-multiverse-repositories-from-command-line/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 21:38:40 +0000</pubDate>
		<dc:creator>Eli</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[nano]]></category>
		<category><![CDATA[repo]]></category>

		<guid isPermaLink="false">http://howto-ubuntu.net/?p=552</guid>
		<description><![CDATA[<p>Enabling the Universe &#038; Multiverse repositories will give you access to tons of software that your Ubuntu system doesn&#8217;t give you access to by default. Here is how to enable them.</p>

Open a Terminal. Applications > Accessories > Terminal 
Type in:
<p>sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak</p>
<p>This makes a copy of the file we&#8217;re going to modify, in case [...]]]></description>
			<content:encoded><![CDATA[<p>Enabling the Universe &#038; Multiverse repositories will give you access to tons of software that your Ubuntu system doesn&#8217;t give you access to by default. Here is how to enable them.</p>
<ol>
<li>Open a Terminal. <strong>Applications</strong> > <strong>Accessories</strong> > <strong>Terminal</strong><br clear="none" /> </li>
<li>Type in:
<p><code>sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak</code></p>
<p>This makes a copy of the file we&#8217;re going to modify, in case we need to restore it later.</p>
</li>
<li>Then:
<p><code>sudo nano /etc/apt/sources.list</code></p>
<p>You can use nano, or your text editor of choice. For example, if you preferred gedit, you&#8217;d enter:</p>
<p><code>gksudo gedit /etc/apt/sources.list</code></p>
</li>
<li>Now, find the lines that look like these below, and remove the &#8221; <strong>#</strong> &#8221; that appears in front of them.
<ul>
<li><code>deb http://us.archive.ubuntu.com/ubuntu/ hardy universe</code></li>
<li><code>deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe</code></li>
<li><code>deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe</code></li>
<li><code>deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe</code></li>
<li><code>deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse</code></li>
<li><code>deb-src http://us.archive.ubuntu.com/ubuntu/ hardy multiverse</code></li>
<li><code>deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse</code></li>
<li><code>deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse</code></li>
</ul>
</li>
<li>Save the file and exit.
</li>
<li>Update with the new repository(s):
<p><code>sudo apt-get update</code></p>
</li>
</ol>
<p>Now you can install software from the Universe &#038; Multiverse repositories. This software should appear in <strong>Add/Remove</strong> when you tell it to show you <strong>All available applications</strong>. <em>Click the picture to enlarge</em>.</p>
<p><a href="http://howto-ubuntu.net/wp-content/uploads/2010/01/addremove.jpeg"><img src="http://howto-ubuntu.net/wp-content/uploads/2010/01/addremove.jpeg" alt="" title="addremove" width="373" height="427" class="aligncenter size-full wp-image-567" /></a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fhowto-ubuntu.net%2Fhow-to-enable-the-universe-multiverse-repositories-from-command-line%2F&amp;linkname=How%20to%20enable%20the%20Universe%20%26%23038%3B%20Multiverse%20repositories%20from%20the%20command%20line"><img src="http://howto-ubuntu.net/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://howto-ubuntu.net/how-to-enable-the-universe-multiverse-repositories-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shortcut to root command line access while logged in as un-privileged user</title>
		<link>http://howto-ubuntu.net/shortcut-to-root-command-line-access-while-logged-in-as-un-privileged-user/</link>
		<comments>http://howto-ubuntu.net/shortcut-to-root-command-line-access-while-logged-in-as-un-privileged-user/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 03:27:03 +0000</pubDate>
		<dc:creator>Eli</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[user switcher]]></category>

		<guid isPermaLink="false">http://howto-ubuntu.com/?p=289</guid>
		<description><![CDATA[<p>Let&#8217;s say you&#8217;re logged into your Ubuntu machine as an unprivileged user, meaning that you don&#8217;t have permission to use the sudo command on the command line. As such, you cannot update the system, install a program, or perform other tasks in the terminal that require the sudo command without logging out and then back [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you&#8217;re logged into your Ubuntu machine as an unprivileged user, meaning that you don&#8217;t have permission to use the sudo command on the command line. As such, you cannot update the system, install a program, or perform other tasks in the terminal that require the sudo command without logging out and then back in as the administrative user, or using the User Switcher. This annoys me. So, how do I execute commands in the terminal that require the sudo command while still logged in as the unprivileged user??<br />
<span id="more-289"></span><br />
First off, you&#8217;ll need <strong>ssh</strong>. To make sure you have this installed, login to your administrative account (a step that will soon become unnecessary), open a terminal, and enter&#8230;</p>
<p><code><strong>sudo apt-get install openssh-server openssh-client</strong></code></p>
<p>After this install is finished you can logout, and back in as the unprivileged user.Now you can open a terminal and enter&#8230;</p>
<p><code><strong>ssh [administrative username]@127.0.0.1</strong></code></p>
<p>You&#8217;ll be asked for your password, this is the administrative account&#8217;s password, enter it and press enter. Now, you&#8217;ll have a command line prompt for the administrative user, as if you had logged in as that user and opened a terminal. You can now update the system, or make whatever change you need to make that requires you to enter your sudo password.</p>
<p>A nice time saving trick.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fhowto-ubuntu.net%2Fshortcut-to-root-command-line-access-while-logged-in-as-un-privileged-user%2F&amp;linkname=Shortcut%20to%20root%20command%20line%20access%20while%20logged%20in%20as%20un-privileged%20user"><img src="http://howto-ubuntu.net/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://howto-ubuntu.net/shortcut-to-root-command-line-access-while-logged-in-as-un-privileged-user/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to find out which version / release of Ubuntu you have</title>
		<link>http://howto-ubuntu.net/how-to-find-out-which-version-of-ubuntu-you-have/</link>
		<comments>http://howto-ubuntu.net/how-to-find-out-which-version-of-ubuntu-you-have/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 05:16:21 +0000</pubDate>
		<dc:creator>Eli</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[lts]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://howto-ubuntu.com/?p=264</guid>
		<description><![CDATA[<p>Have you ever asked yourself, &#8220;How do I find out exactly which version, or release, of Ubunut I have?&#8221; There are a few ways of doing this.</p>
<p>The easiest, and most basic, is to open the System Monitor.You do this by going to System &#62; Administration &#62; System Monitor. You then click on the System tab. [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever asked yourself, &#8220;How do I find out exactly which version, or release, of Ubunut I have?&#8221; There are a few ways of doing this.</p>
<p>The easiest, and most basic, is to open the <strong>System Monitor</strong>.You do this by going to <strong>System &gt; Administration &gt; System Monitor</strong>. You then click on the <strong>System</strong> tab. There you&#8217;ll see which version of Ubuntu you&#8217;re using, along with your linux kernel, and which version of gnome you have. However, this information can be incomplete. For example, if I do this, I&#8217;m told that I have Ubuntu 8.04. Well, I do, but there&#8217;s more to it than that.<br />
<span id="more-264"></span><br />
See, Ubuntu has what&#8217;s called point releases for the long term support versions of Ubuntu, which 8.04 is. <em>Check their website <a href="http://www.ubuntu.com/products/ubuntu/release-cycle" target="_blank">here</a>, for an explanation</em>. So, knowing that I have Ubuntu 8.04 does not tell me which point release I have. What can I do if I want that information?? Well, that&#8217;s pretty easy too.</p>
<p>I have to open up a terminal. To do that I go into the <strong>Accessories</strong> menu, and choose <strong>Terminal</strong>. Then I enter this&#8230;</p>
<p><code><font color="red"><strong>cat /etc/issue.net</strong></font></code></p>
<p>And when I do that, I&#8217;m told that I have <em><strong>Ubuntu 8.04.3 LTS</strong></em>. This let&#8217;s me know that I am using the third point release. This is what I wanted to find out.</p>
<p>Any other ways of doing this that you prefer???</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fhowto-ubuntu.net%2Fhow-to-find-out-which-version-of-ubuntu-you-have%2F&amp;linkname=How%20to%20find%20out%20which%20version%20%2F%20release%20of%20Ubuntu%20you%20have"><img src="http://howto-ubuntu.net/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://howto-ubuntu.net/how-to-find-out-which-version-of-ubuntu-you-have/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to lock your screen from the command line</title>
		<link>http://howto-ubuntu.net/how-to-lock-your-screen-from-the-command-line/</link>
		<comments>http://howto-ubuntu.net/how-to-lock-your-screen-from-the-command-line/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 23:35:29 +0000</pubDate>
		<dc:creator>Eli</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[screensaver]]></category>

		<guid isPermaLink="false">http://howto-ubuntu.com/?p=185</guid>
		<description><![CDATA[<p>This could be very useful to you if you&#8217;re working in the terminal and need to step away for a moment. You can achieve a locked screen, just like when you do it the graphical way, with this command entered at the command line, or cli&#8230;


gnome-screensaver-command --lock

This will instantly launch your screensaver, and lock your [...]]]></description>
			<content:encoded><![CDATA[<p>This could be very useful to you if you&#8217;re working in the terminal and need to step away for a moment. You can achieve a locked screen, just like when you do it <a href="http://howto-ubuntu.com/2008/11/20/how-to-lock-your-screen/">the graphical way</a>, with this command entered at the command line, or cli&#8230;<br />
<span id="more-185"></span><br />
<br clear="none" /><br />
<code>gnome-screensaver-command --lock</code><br />
<br clear="none" /><br />
This will instantly launch your screensaver, and lock your computer&#8217;s screen. Your password will be required to gain access to your system once this is activated.</p>
<p>That command is pretty long, and typing it out would probably get on my nerves. You can use an alias to effectively shorten it. Here&#8217;s how we&#8217;ll do that, also at the command line&#8230;</p>
<p>Let&#8217;s say we want to be able to type in <em><strong>lock</strong></em>, to lock the screen. If I just type in lock, I get nothing. So I need to create an alias for this command. An alias is just like what it sounds like. It&#8217;s assigning another name to a certain command. At the command line enter&#8230;</p>
<p><code>gedit .bashrc</code><br />
<br clear="none" /><br />
There&#8217;s a certain section of this file that talks about aliases. You can add this line of text to that section of the file&#8230;<br />
<br clear="none" /><br />
<code>alias lock='gnome-screensaver-command --lock'</code><br />
<br clear="none" /><br />
This tells Ubuntu that when you type in <em><strong>lock</strong></em>, it executes <em><strong>gnome-screensaver-command &#8211;lock</strong></em>. Click the Save button and close the text editor. The next time you login, the change will have taken effect. Try it out and see how you like it.</p>
<p>Here&#8217;s what it should look like&#8230;</p>
<p><img class="alignleft size-full wp-image-192" title="screenshot-bashrc-gedit" src="http://howtoubuntu.files.wordpress.com/2008/12/screenshot-bashrc-gedit.png" alt="screenshot-bashrc-gedit" width="500" height="322" /></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fhowto-ubuntu.net%2Fhow-to-lock-your-screen-from-the-command-line%2F&amp;linkname=How%20to%20lock%20your%20screen%20from%20the%20command%20line"><img src="http://howto-ubuntu.net/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://howto-ubuntu.net/how-to-lock-your-screen-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
