<?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>Myo Kyaw Htun . com &#187; Ubuntu/Linux</title>
	<atom:link href="http://www.myokyawhtun.com/category/ubuntu-linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.myokyawhtun.com</link>
	<description>A Technology blog maintained by Myanmar Blogger focus on Wordpress, Blogging, Free Wordpress Themes / Blogger Template and Web Technology</description>
	<lastBuildDate>Fri, 10 Feb 2012 07:48:59 +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>How to change custom resolution in Ubuntu 10</title>
		<link>http://www.myokyawhtun.com/ubuntu-linux/how-to-change-custom-resolution-in-ubuntu-10.html</link>
		<comments>http://www.myokyawhtun.com/ubuntu-linux/how-to-change-custom-resolution-in-ubuntu-10.html#comments</comments>
		<pubDate>Sun, 03 Oct 2010 04:13:16 +0000</pubDate>
		<dc:creator>Myo Kyaw Htun</dc:creator>
				<category><![CDATA[Tips/Tricks]]></category>
		<category><![CDATA[Ubuntu/Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.myokyawhtun.com/?p=1809</guid>
		<description><![CDATA[I have been looking for the solution since I use Ubuntu 10 as an alternative OS with Windows. The only problem is that it doesn&#8217;t display correct resolution 1680&#215;1050 for my 22&#8243; HP Monitor (HPw2228h). I came across over this Xrandr Configuration from Ubuntu official documentation and this tread from Ubuntu Forum. Combine these two&#8230;]]></description>
			<content:encoded><![CDATA[<p>I have been looking for the solution since I use Ubuntu 10 as an alternative OS with Windows. The only problem is that it doesn&#8217;t display correct resolution <strong>1680&#215;1050</strong> for my <strong>22&#8243; HP Monitor (HPw2228h)</strong>. I came across over this <a title="X/Config/Resolution" href="https://wiki.ubuntu.com/X/Config/Resolution">Xrandr Configuration</a> from Ubuntu official documentation and this <a title="No xorg.conf found in /etc/X11 (Ubuntu 10.04)" href="http://ubuntuforums.org/showpost.php?p=9021824&amp;postcount=3">tread</a> from Ubuntu Forum. Combine these two solutions, I finally manage to get correct resolution in Ubuntu.</p>
<p><span id="more-1809"></span></p>
<h3>gtf and cvt</h3>
<p>Before you add new mode using xrandr, you need to type following one of command lines in Ubuntu terminal. I prefer using gtf.</p>
<pre class="brush: bash">gtf 1680 1050 60</pre>
<pre class="brush: bash">cvt 1680 1050 60</pre>
<p><strong>1680</strong> is X and 1050 is Y and 60 is refresh rate. For refresh rate, please check your monitor manual.</p>
<p>The command will produce the following output. Copy the text after word, <strong>Modeline</strong>.</p>
<pre class="brush: bash">Modeline "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync</pre>
<h3>xrandr</h3>
<p>Before you type the following command lines, please be sure to check the video mode your external monitor is using. To check your video mode, you can type the following command line</p>
<pre class="brush: bash">xrandr -q</pre>
<p>It will list the displays you are using now. The result is something like this</p>
<pre class="brush: bash">Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 8192 x 8192
VGA1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1360x768       59.8
1024x768       60.0
800x600        60.3     56.2
848x480        60.0
640x480        59.9     59.9
1680x1050_60.00   59.9*
LVDS1 connected (normal left inverted right x axis y axis)
1280x800       59.9 +
1024x768       60.0
800x600        60.3
640x480        59.9
TV1 disconnected (normal left inverted right x axis y axis)</pre>
<p>You will see VGA1, LVDS1 and TV1 &#8230; these are the mode your system is using. For my case, VGA1 is the video mode for my monitor. It may be different from video driver. Now it is time for add new resolution mode using xrandr. Type the following command lines</p>
<pre class="brush: bash">xrandr --newmode "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
xrandr --addmode VGA1 "1680x1050_60.00"
xrandr --output VGA1 --mode "1680x1050_60.00"</pre>
<p>Tip: There are two minus &#8220;-&#8221; in newmode, addmode, output and mode . WordPress doesn&#8217;t display it correctly.</p>
<p>First line add a new mode. Following parameters will be different from the result produced by gtf and cvt. Second line add the Video Mode and Resolution along with refresh rate. After you type third command line, you will see the your resolution is already changed.</p>
<h3>Permanent resolution</h3>
<p>Well the command lines you are trying is not a permanent resolution in ubuntu. It only change the time you type those command lines. To make it permanent, ubuntu documentation suggests that you can change in ~/.xprofile, kdm/gdm and xorg.conf.</p>
<h3>~/.xprofile</h3>
<p>1. create a file, if it doesn&#8217;t exist yet.</p>
<pre class="brush: bash">nano ~/.xprofile</pre>
<p>and Copy and paste the three command lines from above and put in xprofile file. and save it and make it executable. well, xprofile is only for the current user and other user can&#8217;t user the custom resolution.</p>
<h3>kdm/gdm</h3>
<p>I am using gdm in ubuntu. So I will cover the gdm only. Go to /etc/gdm/Init and login as super user root. Before you&#8217;re making changes to Default file, make sure you have a backup. Type the following.</p>
<pre class="brush: bash">cd /etc/gdm/Init
cp Default Default.backup</pre>
<p>Then edit the Default file, type nano Default. (I personally prefer using nano editor)</p>
<pre class="brush: bash">nano Default</pre>
<p>Find the following line.</p>
<pre class="brush: bash">initctl -q emit login-session-start DISPLAY_MANAGER=gdm</pre>
<p>and put three command lines in my tutorial right before it.</p>
<pre class="brush: bash">xrandr --newmode "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
xrandr --addmode VGA1 "1680x1050_60.00"
xrandr --output VGA1 --mode "1680x1050_60.00"

initctl -q emit login-session-start DISPLAY_MANAGER=gdm</pre>
<p>For xorg.conf and complex configuration. You can read Xorg configuration in Ubuntu. I hope this tutorial will help. If you have any problems, please drop comment.</p>
<p><a href="http://www.myokyawhtun.com/wp-content/uploads/2010/10/ubuntu-1680x1050.jpg"><img class="aligncenter size-full wp-image-1812" title="ubuntu-1680x1050" src="http://www.myokyawhtun.com/wp-content/uploads/2010/10/ubuntu-1680x1050.jpg" alt="ubuntu-1680x1050" width="550" height="344" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myokyawhtun.com/ubuntu-linux/how-to-change-custom-resolution-in-ubuntu-10.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Google Sitemap Generator</title>
		<link>http://www.myokyawhtun.com/ubuntu-linux/google-sitemap-generator.html</link>
		<comments>http://www.myokyawhtun.com/ubuntu-linux/google-sitemap-generator.html#comments</comments>
		<pubDate>Tue, 20 Jan 2009 05:02:20 +0000</pubDate>
		<dc:creator>Myo Kyaw Htun</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Ubuntu/Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Sitemap Generator]]></category>

		<guid isPermaLink="false">http://www.myokyawhtun.com/ubuntu-linux/google-sitemap-generator.html/</guid>
		<description><![CDATA[Google released its Google Sitemap Generator at Google code licensed under Apache License 2.0. Sitemaps are very useful for webmaster to tell the search engines about the pages of the sites which are available for crawling. This Google Sitemap Generator supports for both Apache server on Linux and Windows IIS versions. Installation guide is very&#8230;]]></description>
			<content:encoded><![CDATA[<p>Google released its <a href="http://code.google.com/p/googlesitemapgenerator/">Google Sitemap Generator</a> at Google code licensed under Apache License 2.0. Sitemaps are very useful for webmaster to tell the search engines about the pages of the sites which are available for crawling. This Google Sitemap Generator supports for both Apache server on Linux and Windows IIS versions. <a href="http://googlesitemapgenerator.googlecode.com/svn/trunk/doc/gsg-installation.html">Installation guide</a> is very useful and of course installation on your own server is easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myokyawhtun.com/ubuntu-linux/google-sitemap-generator.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to allow more than one port for SSH in Linux</title>
		<link>http://www.myokyawhtun.com/ubuntu-linux/how-to-allow-more-than-one-port-for-ssh-in-linux.html</link>
		<comments>http://www.myokyawhtun.com/ubuntu-linux/how-to-allow-more-than-one-port-for-ssh-in-linux.html#comments</comments>
		<pubDate>Wed, 23 Jul 2008 07:55:27 +0000</pubDate>
		<dc:creator>Myo Kyaw Htun</dc:creator>
				<category><![CDATA[Tips/Tricks]]></category>
		<category><![CDATA[Ubuntu/Linux]]></category>
		<category><![CDATA[Secure Shell]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[SSH Port]]></category>

		<guid isPermaLink="false">http://www.myokyawhtun.com/?p=621</guid>
		<description><![CDATA[Normally we&#8217;re using port number 22 for SSH. If you want to change default port number from 22 to other port number or add another ports for SSH, you can edit in sshd_config under /etc/ssh. To edit sshd_config file, type the following in Terminal or SSH client (SSH Secure Shell or Putty). nano /etc/ssh/sshd_config or&#8230;]]></description>
			<content:encoded><![CDATA[<p>Normally we&#8217;re using port number 22 for <acronym title="Secure Shell">SSH</acronym>. If you want to change default port number from 22 to other port number or add another ports for SSH, you can edit in sshd_config under /etc/ssh. To edit sshd_config file, type the following in Terminal or SSH client (<a title="SSH Secure Shell" href="http://www.ssh.com/support/downloads/secureshellwks/non-commercial.html">SSH Secure Shell</a> or <a title="Putty" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Putty</a>).</p>
<blockquote class="coding"><p>nano /etc/ssh/sshd_config</p></blockquote>
<p>or</p>
<blockquote class="coding"><p>vi /etc/ssh/sshd_config</p></blockquote>
<p>Find &#8220;<strong>Port</strong>&#8220;. And change 22 to any port number you want or add another port numbers below.</p>
<p style="text-align: center;"><img class="size-full wp-image-629 aligncenter" title="SSH Port" src="http://www.myokyawhtun.com/wp-content/uploads/2008/07/ssh_port.png" alt="SSH Port" width="450" height="190" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myokyawhtun.com/ubuntu-linux/how-to-allow-more-than-one-port-for-ssh-in-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up root password for Ubuntu</title>
		<link>http://www.myokyawhtun.com/ubuntu-linux/setting-up-root-password-for-ubuntu.html</link>
		<comments>http://www.myokyawhtun.com/ubuntu-linux/setting-up-root-password-for-ubuntu.html#comments</comments>
		<pubDate>Tue, 22 May 2007 08:17:39 +0000</pubDate>
		<dc:creator>Myo Kyaw Htun</dc:creator>
				<category><![CDATA[Tips/Tricks]]></category>
		<category><![CDATA[Ubuntu/Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[passwd]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[Tips 'n' Tricks]]></category>

		<guid isPermaLink="false">http://www.myokyawhtun.com/2007/05/22/setting-up-root-password-for-ubuntu.html/</guid>
		<description><![CDATA[ubuntu has no password for root user as default. If you want to reset root password, you need to use sudo passwd command in shell. To Open shell, click Applications » Accessories » Terminal. In shell, type sudo passwd. It will ask you password. Type your login password. myochauhtun@myochauhtun-desktop:~$ sudo passwd Password: And then it&#8230;]]></description>
			<content:encoded><![CDATA[<p><a title="Ubuntu.com" href="http://www.ubuntu.com"><img style="margin: 0px 5px 0px 0px; float: left" src="http://www.myokyawhtun.com/wp-content/uploads/2007/05/ubuntulogo.png" alt="Ubuntu" /></a><a title="Ubuntu.com" href="http://www.ubuntu.com">ubuntu</a> has no password for root user as default. If you want to reset root password, you need to use <strong>sudo passwd </strong>command<strong> </strong>in shell. To Open shell, click <strong>Applications</strong> » <strong>Accessories</strong> » <strong>Terminal</strong>. In shell,  type <strong>sudo passwd</strong>. It will ask you password. Type your login password. <span id="more-24"></span></p>
<blockquote class="coding">
<p align="left">myochauhtun@myochauhtun-desktop:~$ <strong>sudo passwd</strong><br />
Password:</p>
</blockquote>
<p align="left">And then it will ask you to reset password for root. Type it twice</p>
<blockquote class="coding">
<p align="left">Enter new UNIX password:<br />
Retype new UNIX password:</p>
</blockquote>
<p align="left">After reset root password. It will show this message in Shell.</p>
<blockquote class="coding">
<p align="left">passwd: password updated successfully</p>
</blockquote>
<p align="left">Now you can login as root by typing <strong>su</strong> command</p>
<blockquote class="coding">
<p align="left">myochauhtun@myochauhtun-desktop:~$ <strong>su</strong><br />
Password:<br />
root@myochauhtun-desktop:/home/myochauhtun#</p>
</blockquote>
<p>regards : <a title="How to change root password in ubuntu" href="http://www.ubuntux.org/how-to-change-the-root-password-in-ubuntu">How to change root password in Ubuntu</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myokyawhtun.com/ubuntu-linux/setting-up-root-password-for-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

