<?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>Lost Resort Blog &#187; Ubuntu Linux commands</title>
	<atom:link href="http://www.lostresort.biz/blog/tag/ubuntu-linux-commands/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lostresort.biz/blog</link>
	<description>Talking about us and about web site development</description>
	<lastBuildDate>Mon, 16 Aug 2010 08:38:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ubuntu &#8211; useful applications</title>
		<link>http://www.lostresort.biz/blog/2010/03/05/ubuntu-useful-applications/</link>
		<comments>http://www.lostresort.biz/blog/2010/03/05/ubuntu-useful-applications/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 13:41:29 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Linux - Ubuntu]]></category>
		<category><![CDATA[modifying Xorg X-server parameters]]></category>
		<category><![CDATA[Ubuntu applications]]></category>
		<category><![CDATA[Ubuntu Linux commands]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=542</guid>
		<description><![CDATA[As of today, Ubuntu had come to its 9.10 version, named Karmic Koala. Ubuntu is a Linux based operating system, built mostly from Debian. To some extent is a good alternative for paid Operating Systems (Windows, Mac OS etc.). If you intend to use this OS mostly for Internet surfing, programming, learning, image manipulation, testing [...]]]></description>
			<content:encoded><![CDATA[<p>As of today, Ubuntu had come to its 9.10 version, named Karmic Koala. Ubuntu is a Linux based operating system, built mostly from Debian. To some extent is a good alternative for paid Operating Systems (Windows, Mac OS etc.). If you intend to use this OS mostly for Internet surfing, programming, learning, image manipulation, testing and some other tasks it is a good choice to install it on your computer.</p>
<h3>Windows emulation application</h3>
<p><a href="http://www.winehq.org/">Wine</a> lets you run Windows software on other operating systems (like Linux). You have to note that not <strong>every</strong> application will run, but users tested and reviewed more thousands applications. <a href="http://appdb.winehq.org/">Application database</a> has more than 13,000 entries with applications that work on various OSes.</p>
<h3>Updating your Operating System</h3>
<p>This operation can be done using two methods. First you can use the Update Manager (which can be find under <b>System &#8211;&gt; Administration</b>.</p>
<p><a href="http://www.lostresort.biz/blog/wp-content/uploads/2010/01/up-man.png"><img src="http://www.lostresort.biz/blog/wp-content/uploads/2010/01/up-man.png" alt=" " title="up-man" width="505" height="624" class="alignnone size-full wp-image-557" /></a></p>
<p>After you press the <b>Check</b> button you will be prompted for your user session password. After this step, if any updates available, you can install them, all or partially based on your selection.</p>
<p>The other method can achieve the same result using the command prompt terminal. <b>Terminal</b> can be found under <b>Applications &#8211;&gt; Accessories</b>.</p>
<p>In the terminal you can type:</p>
<blockquote><p>
sudo apt-get update<br />
sudo apt-get upgrade
</p></blockquote>
<p><cite title="https://help.ubuntu.com/8.04/serverguide/C/apt-get.html">The apt-get command is a powerful command-line tool used to work with Ubuntu&#8217;s Advanced Packaging Tool (APT) performing such functions as installation of new software packages, upgrade of existing software packages, updating of the package list index, and even upgrading the entire Ubuntu system.</cite></p>
<p>First command updates the package index; the APT package index is essentially a database of available packages from the repositories defined in the <b>/etc/apt/sources.list</b> file.<br />
Second command upgrades packages; from time to time, updated versions of some packages currently installed on your computer become available from the package repositories.</p>
<p>The <b>sudo</b> command will run the commands as super user and you&#8217;ll be prompted for your user session password. After the system update you can run <b>sudo apt-get autoclean</b> to clear out the local repository of retrieved package files. More details about <b>apt-get</b> command can be found if you ran in a terminal the command <b>man apt-get</b>.</p>
<h3>Configuring the Xorg X server</h3>
<p>Because, even it is based on Linux kernel, Ubuntu has a Graphic User Interface, I&#8217;ll present an useful application for modifying the X-server parameters, even the application is not supported anymore, <a href="http://sourceforge.net/projects/xorg-edit/">Xorg-edit</a>. The author&#8217;s home page can be found <a href="http://www.deesaster.org/progxorg.php">here</a>.</p>
<p>After you compile the application, it can be found under <b>System &#8211;&gt; Administration</b> section. Every time you&#8217;ll run the application you will be prompted for your user session password, to gain super user rights.</p>
<p>The application&#8217;s window presents six tabs: <b>Device</b>, <b>Monitor</b>, <b>Input Device</b>, <b>Screen</b>, <b>Server</b> and <b>Other Options</b>. Each one will give you the option to add or to modify X-server parameters, and to test them before you restart X-server. <b><i>But, please note that, the modifications will be effective only after you restart the Xorg X-server.</i></b></p>
<h4>Device Section</h4>
<p>Using the <b>lspci -v | grep VGA</b> command in a terminal you&#8217;ll find the information regarding the graphic display controller. Note that information.<br />
On Device tab click on the drop-down list indicator and chose &#8220;Add Device&#8221; option. After this type in the name of your VGA controller (i.e.: S3 Inc. VT8375 [ProSavage8 KM266/KL266], this is the name the VGA controller for my testing laptop).</p>
<p><a href="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/device.png"><img src="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/device.png" alt="device tab" title="device section" width="489" height="533" class="alignnone size-full wp-image-580" /></a></p>
<p>On &#8220;Driver&#8221; option you can chose the driver for your graphic card from the drop-down list. The BusID can be found using the command in a terminal <b>lspci | egrep &#8220;AGP|PCI Express|VGA|Display&#8221;</b> (which is similar with the command above, and in my case the output is <i>01:00.0 VGA compatible controller: S3 Inc. VT 8375 [ProSavage8 KM266/KL266]</i>). So, the BusID is <b>01:00.0</b>, and should be associate with the computer bus that the graphic card uses (in my case I added PCI:01:00:0; <b style="color:red">note the double dot between the 01 and 00 and between 00 and 0, which is different from the output of the lspci command (i.e.: 01:00.0)</b>).</p>
<p>On &#8220;Video Ram&#8221; option you can add the amount of RAM memory in KB that the graphic card is using. This option is not mandatory (as the Manual page for Xorg X-server says).</p>
<p>&#8220;Screen Number&#8221; <cite title="http://www.x.org/releases/X11R7.5/doc/man/man5/xorg.conf.5.html">option is mandatory for cards where a single PCI entity can drive more than one display, range from 0 to one less than the total number of heads per entity</cite>.</p>
<p>This options appear by default on Device tab, but you have the option to add new one along with its value.</p>
<h4>Monitor Section</h4>
<p>In this section you have the possibility to define parameters for your displaying device. The mandatory entry for this section is the <b>Identifier</b> which is an unique name for the monitor.</p>
<p><a href="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/monitor.png"><img src="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/monitor.png" alt="monitor section" title="monitor section" width="489" height="533" class="alignnone size-full wp-image-581" /></a></p>
<p>In the Hor.Sync field you can input the range(s) of horizontal sync frequencies supported by the monitor and it&#8217;s measured in KHz. If you are unsure about this range you can input a minimum value (take 20 KHz) and a maximum value (120 KHz) separated by a dash and it should be enough to cover your monitor horizontal sync frequency.</p>
<p>In the Vert.Refresh field holds vertical refresh frequencies supported by the monitor and the units are in Hz. As for Hor.Sync frequency you can specify a range of values (with minimum an maximum value) to cover the monitor&#8217;s vertical refresh frequency.</p>
<p>The <strong>display size gives the width and height, in millimeters, of the picture area of the monitor</strong>, is optional and is useful to calculate the DPI of the screen.</p>
<p>The Modeline entry is a more compact version of the <b>Mode</b> entry, and can be used to specify video modes for the monitor. is a single line format for specifying video modes. The format is <i>&#8220;name&#8221;</i> &#8211; <i>mode description</i>. <cite title="http://www.x.org/releases/X11R7.5/doc/man/man5/xorg.conf.5.html">The <i>mode-description</i> is in four sections, the first three of which are mandatory. The first is the dot (pixel) clock. This is a single number specifying the pixel clock rate for the mode in MHz. The second section is a list of four numbers specifying the horizontal timings. These numbers are the hdisp, hsyncstart, hsyncend, and htotal values. The third section is a list of four numbers specifying the vertical timings. These numbers are the vdisp, vsyncstart, vsyncend, and vtotal values.</cite>. So we can assume that the values from second and third section creates pairs which represents the screen resolution. </p>
<h4>Input Device Section</h4>
<p>In this section is useful for input device configuration and it contains parameters for at least two devices: one for the core (primary) keyboard, and one of the core pointer. </p>
<p><a href="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/inputDevice.png"><img src="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/inputDevice.png" alt="Input Device Section" title="Input Device Section" width="489" height="533" class="alignnone size-full wp-image-584" /></a></p>
<p>The default options may or may not work for all hardware configurations.</p>
<h4>Screen Section</h4>
<p>A &#8220;screen&#8221; represents the binding of a graphics device (Device section) and a monitor (Monitor section).</p>
<p><a href="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/screen.png"><img src="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/screen.png" alt="Screen Section" title="Screen Section" width="489" height="533" class="alignnone size-full wp-image-585" /></a></p>
<p>The Default Depth <cite title="http://www.x.org/releases/X11R7.5/doc/man/man5/xorg.conf.5.html">specifies which color depth the server should use by default. The -depth command line option can be used to override this. If neither is specified, the default depth is driver-specific, but in most cases is 8.</cite>. <b>24</b> should be maximum for most graphics devices.</p>
<p>Each Screen section may have multiple Display subsections and they are optional. You can set different modes and options for displaying device if you want to override the default settings.</p>
<h4>Server Section</h4>
<p><cite title="http://www.x.org/releases/X11R7.5/doc/man/man5/xorg.conf.5.html">A &#8220;server layout&#8221; represents the binding of one or more screens (Screen sections) and one or more input devices (InputDevice sections) to form a complete configuration. If no ServerLayout sections are present, the single active screen and two active (core) input devices are selected as described in the relevant sections above.</cite></p>
<p><a href="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/server.png"><img src="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/server.png" alt="Server Section" title="Server Section" width="489" height="533" class="alignnone size-full wp-image-586" /></a></p>
<h4>Other Options Section</h4>
<p><cite title="http://www.x.org/releases/X11R7.5/doc/man/man5/xorg.conf.5.html">The <b>DRI</b> section (optional) is used to provide some information for the Direct Rendering Infrastructure.</cite> In simple terms, the DRI enables hardware-accelerated 3D graphics on Linux. More specifically, it&#8217;s a software architecture for coordinating the Linux kernel, X window system, 3D graphics hardware and an OpenGL-based rendering engine.</p>
<p><cite title="http://www.x.org/releases/X11R7.5/doc/man/man5/xorg.conf.5.html">The <b>Extensions</b> section is used to specify which X11 protocol extensions should be enabled or disabled. The Extensions section is optional, as are all of the entries that may be specified in it.</cite></p>
<p><cite title="http://www.x.org/releases/X11R7.5/doc/man/man5/xorg.conf.5.html">The <b>Module</b> section is used to specify which Xorg server modules should be loaded. This section is ignored when the Xorg server is built in static form. The type of modules normally loaded in this section are Xorg server extension modules. Most other module types are loaded automatically when they are needed via other mechanisms. The Module section is optional, as are all of the entries that may be specified in it.</cite></p>
<p><cite title="http://www.x.org/releases/X11R7.5/doc/man/man5/xorg.conf.5.html">The <b>Files</b> section is used to specify some path names required by the server, and is an optional entry.</cite></p>
<p><a href="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/otherOprions.png"><img src="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/otherOprions.png" alt="Other Options Section" title="Other Oprions Section" width="489" height="533" class="alignnone size-full wp-image-587" /></a></p>
<h3>Saving settings</h3>
<p>After you entered your configuration data, before you save them, you have the option to test the x-server hitting the <b>F7</b> key. If no errors present a message will be displayed saying that the configured server works well and you can see a log file that contains the result of the tested parameters. <b>Seeing that message you can assume that you&#8217;ve entered valid values accepted by the x-server, but, too see if you entered the right values for your hardware configuration you have to restart the x-server (the simplest way, reboot the system).</b></p>
<p><strong style="color:red">Before you make any changes to your configuration xorg.conf file, located in /etc/X11/ directory, make a backup copy of it, to restore the settings if something goes wrong and your system will be unusable. Also, BE SURE that YOU KNOW EXACTLY what you are doing.</strong></p>
<p><b>References:</b></p>
<p><a href="http://www.x.org/releases/X11R7.5/doc/man/man5/xorg.conf.5.html">xorg.conf &#8211; Configuration File for Xorg X server</a><br />
<a href="http://dri.freedesktop.org/wiki/Building">Building DRI</a><br />
<a href="http://dri.sourceforge.net/doc/DRIintro.html">Introduction to DRI</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.lostresort.biz/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2010/03/05/ubuntu-useful-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
