tag:blogger.com,1999:blog-85998687430411764692024-03-13T22:29:47.732-07:00Linux Ubuntu for Daily Life :)Avoid the Gates of Hell. Use Linux. (Anonymous)Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.comBlogger54125tag:blogger.com,1999:blog-8599868743041176469.post-66247826595527930262011-09-12T21:34:00.000-07:002011-09-12T21:38:43.989-07:00How to Delete One Word in Terminal<div>Every day working with Terminal, we need a lot of shortcut to speed up our task. One of my frequently used shortcut is deleting one word in the left side of cursor:</div><div><br /></div><div><pre>Alt + Backspace<pre></pre></pre></div><div>Enjoy!</div>Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-86034795804194891032011-09-12T03:32:00.000-07:002011-09-12T03:35:05.282-07:00How to Delete One Line in VimThis is the way I delete one line in Vim<br /><pre>:d<br /></pre><br />Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-257726523368571232011-05-27T03:57:00.000-07:002011-05-27T04:00:34.776-07:00[Ubuntu] How to Launch Network Proxy Properties in TerminalI want to bypass System*Preferences*Network Proxy by using a command line interface in Terminal. After hacking Ubuntu Alt+F2 and command completion in Terminal for a while, I found the way how to launch Network Proxy Properties in Terminal. Here is the command line:<br /><br /><pre>$ gnome-network-properties</pre><br />Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-53775292431669053972011-05-10T02:31:00.000-07:002011-05-10T02:38:31.536-07:00How to Check Ubuntu Version in TerminalI just curious about how to check Ubuntu version via Terminal. Since I often remote a server and I don't know what version is. Here is the command:<br /><pre>lsb_release -a</pre>Then it will print out some messages like this:<br /><pre>No LSB modules are available.<br />Distributor ID: Ubuntu<br />Description: Ubuntu 11.04<br />Release: 11.04<br />Codename: natty</pre>So I has already know what Ubuntu version used in server. It is Natty. Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-57641081297678625432011-05-10T02:22:00.001-07:002011-05-10T02:28:16.728-07:00Warning: Remote Host Identification has Changed!When we remote a server using ssh, sometimes we get a warning message like this:<br /><h3>Warning: Remote Host Identification has Changed!</h3>What should we do? Just follow a command below the warning.<br /><pre>ssh-keygen -f "/home/hudan/.ssh/known_hosts" -R server_ip_address</pre>Enjoy :).Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-50003105908234306792011-05-09T22:49:00.000-07:002011-05-10T00:02:09.459-07:00How to Upgrade to NattyUsually, I upgrade my Ubuntu box by first <a href="http://studiawan.blogspot.com/2011/04/linux-ubuntu-how-to-set-repository-in.html">changing source list file</a>. Then issuing this two simple command in Terminal:<br /><pre>sudo apt-get update<br />sudo apt-get dist-upgrade</pre>Unfortunately, when I upgrade my Maverick to Natty, those two don't work. Then I googled it and find simpler method. Here we go:<br /><br /># Look for Update Manager menu. Then click Install Update button (it is located in bottom left of dialog box).<br /><br /># Wait for approximately three hours (this is based on your internet speed)<br /><br /># Restart your PC.<br /><br />Welcome to the new look of Natty. Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-32899129418363525632011-05-09T22:39:00.000-07:002011-05-09T23:47:20.232-07:00Network Proxy: Apply System-WideIn several latest version of Ubuntu, we have Network Proxy Preferences menu. In this article, I want to show the effect of Apply System-Wide option. One of this effect is when we work in Terminal.<br /><br /># Before applying system-wide proxy, try echoing proxy in Terminal and it will show nothing<br /><pre>echo $http_proxy</pre># After choosing this option, close Terminal. Then try echoing again and you will get message like this<br /><pre>http://username:password@proxy_ip_address:port/</pre>It means you have applied proxy system-wide option. Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-86318543296821112752011-05-05T07:19:00.000-07:002011-05-10T00:02:24.087-07:00Ubuntu Arabic Keyboard LayoutJust wanna share Arabic keyboard layout in Ubuntu. Maybe you want to print it or just to look at it :). Don't forget to click the image to enlarge.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIzJzK1nMavmqnWJQ69ewXXikaPOYRLB303ghhbJucB9IXFlatCKI7kqoW9-FXenXOfU1zAV0evo08bLN51z1k_KwpAzsQrGp7Z2q6vESegWHlvyloPpkaLt_9BjnvqJqBqmmfENaHH1w/s1600/ubuntu-arabic-keyboard-layout.png"><img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 102px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIzJzK1nMavmqnWJQ69ewXXikaPOYRLB303ghhbJucB9IXFlatCKI7kqoW9-FXenXOfU1zAV0evo08bLN51z1k_KwpAzsQrGp7Z2q6vESegWHlvyloPpkaLt_9BjnvqJqBqmmfENaHH1w/s320/ubuntu-arabic-keyboard-layout.png" alt="" id="BLOGGER_PHOTO_ID_5603236975924598274" border="0" /></a><br />Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-69995525250696215722011-05-05T06:56:00.000-07:002011-05-10T00:02:40.777-07:00How to Set Skype Proxy in UbuntuHi... we are still talking about proxy :). Now, we want to play Skype and we have to set proxy first. This how-to has been tested in Ubuntu Maverick Meerkat. Here we go:<br /><br /># When you launch Skype, you will get icon in your top-right panel<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCYG9XrMbhpusno2T8h8P0ECpGJOiwgNdg1cZ3p-5LL26vBWF1tbK-uB41PESnciVFgrKImsdsuGSC_kGqkXMJxAmiuw4YODNCh9J-ilk9ixLnfK4aLPBS-ptlucGi_253Eowl-5VlPtU/s1600/ubuntu-skype.png"><img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 250px; height: 98px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCYG9XrMbhpusno2T8h8P0ECpGJOiwgNdg1cZ3p-5LL26vBWF1tbK-uB41PESnciVFgrKImsdsuGSC_kGqkXMJxAmiuw4YODNCh9J-ilk9ixLnfK4aLPBS-ptlucGi_253Eowl-5VlPtU/s320/ubuntu-skype.png" alt="" id="BLOGGER_PHOTO_ID_5603231821987846626" border="0" /></a><br /># Right click it and choose Options<br /><br /># Change proxy ip address, username, and password as appropriate (click image to enlarge)<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi5b4-veXuMYbTkAUwoMM0WLFJ1fHirYWHHarB31d6RtCiM_ltGhdGz_O-pYwf6LQzVRzICLuMGBUd24oP5ZGMxIH4ppd6z26QwqKr1Wl-JuhxRsovrAxAXSEtwhdHQj3TmYKyY3UVnpM/s1600/ubuntu-skype-2.png"><img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 217px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi5b4-veXuMYbTkAUwoMM0WLFJ1fHirYWHHarB31d6RtCiM_ltGhdGz_O-pYwf6LQzVRzICLuMGBUd24oP5ZGMxIH4ppd6z26QwqKr1Wl-JuhxRsovrAxAXSEtwhdHQj3TmYKyY3UVnpM/s320/ubuntu-skype-2.png" alt="" id="BLOGGER_PHOTO_ID_5603231966162182514" border="0" /></a><br />We are done here :). Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-21293535433139487422011-05-01T07:23:00.000-07:002011-05-10T00:02:57.072-07:00Export Proxy in Ubuntu TerminalBefore working with http proxy, you must set it first. When you are on terminal mode, here we go:<br /><br /><pre>export http_proxy="http://proxy_ip_address:port"<br />export http_proxy_user=username<br />export http_proxy_passwd=password</pre><br />Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-68147445070793251412011-04-27T07:03:00.000-07:002011-05-10T00:03:13.263-07:00A Nice Blog About BloggerThere is a nice blog about Blogspot. If you use Blogger as free blog, you should check this blog: <a href="http://blogknowhow.blogspot.com/">http://blogknowhow.blogspot.com/</a>. There are so many resource about styling, monetizing, and optimizing your blogspot space.<br /><br />Let's <a href="http://blogknowhow.blogspot.com/">check it out</a> and enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-85434397047188190212011-04-27T04:57:00.000-07:002011-05-10T00:03:25.660-07:00How to Tunnel SSH via HTTP ProxyI have to access ssh server but there is http proxy when I want to go to internet. How can I tunnel ssh via http proxy? Here are the way to do it:<br /><br /># Download <a href="http://www.agroman.net/corkscrew/corkscrew-2.0.tar.gz">corkscrew</a>. It is easy tool for tunneling SSH through HTTP proxies<br /><br /># Extract corkscrew then configure and install it<br /><pre>tar -xzvf corkscrew.tar.gz<br />cd corkscrew<br />./configure<br />make install<br /></pre># Create ~/.ssh/proxyauth file and set authentication for http proxy server<br /><pre>username:password<br /></pre># Open ~/.ssh/config file. Add proxy server ip address and its authentication in proxyauth file like this:<br /><pre>Host *<br />ProxyCommand corkscrew proxy_ip_address proxy_port %h %p ~/.ssh/proxyauth<br /></pre># Try to access your server via ssh<br /><pre>ssh username@example.com</pre>And it's all done. Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com2tag:blogger.com,1999:blog-8599868743041176469.post-76050439123811108352011-04-18T07:22:00.000-07:002011-05-10T00:03:37.223-07:00Apache Rewrite Modul Problems in Linux UbuntuI often have a problem with rewrite modul in Apache. When you have the same problem like me, you should check:<br /><br /># RewriteBase syntax in .htaccess<br /><br /># "Allow all" option in /etc/apache2/sites-enabled directory. Here are the example of 000-default file in sites-enabled directory (in tag Directory "/var/www/somedir"):<pre> Order allow,deny<br /> Allow from all<br /> AllowOverride All</pre><br /># Is .htaccess file executable?<br /><br /># Make sure rewrite module is loaded in Apache. When this module successfully loaded, it will appear in mods-enabled directory as rewrite.load file. You can load them by issuing:<br /><pre>sudo a2enmod rewrite</pre>Just double check them. Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-5582279883694291192011-04-13T05:25:00.000-07:002011-05-10T00:03:59.550-07:00First Timer RabbitVCS Subversion ClientAfter <a href="http://studiawan.blogspot.com/2011/04/how-to-set-proxy-in-rabbitvcs.html">setting proxy in RabbitVCS</a>, I have a folder that contains app files to be versioned. How can we add these files to our subversion server?<br /><br /># Right click in the folder, choose Checkout<br /><br /># Set subversion servers, for example: https://example.com/svn/apps<br /><br /># Set directory to be versioned<br /><br /># Click OK or Finish.<br /><br />Then we can submit all of app files by right-clicking the folder and choose Commit. Select or deselect any files you want to Commit. Wait a moment and you're done versioning your app files for the first time. Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-49702565433862501642011-04-13T05:05:00.000-07:002011-05-10T00:04:39.788-07:00How to Set Proxy in RabbitVCS Subversion ClientI use RabbitVCS as subversion client in my little Ubuntu box. Since I should work behind proxy, I have set up proxy username and password in RabbitVCS. Don't forget to be root to configure :).<br /><br /># Go to /etc/subversion<br /><pre>cd /etc/subversion</pre># There are two files: servers and config. Open servers file<br /><pre>vi servers</pre># Find [global] section and set proxy host, username, and password<br /><pre>[global]<br />http-proxy-host = proxy_ip_address<br />http-proxy-port = proxy_port<br />http-proxy-username = username<br />http-proxy-password = password<br /></pre>And you're ready to version your apps. Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-22710171801120278422011-04-11T03:29:00.001-07:002011-05-10T00:04:51.224-07:00How to Execute Wget Behind ProxyTwo days getting headache because of working behind proxy, here is one of the result: wget command with using proxy option enabled.<br /><pre>wget --proxy-user=username --proxy-passwd=password<br />http://example.com/file.zip</pre><br />Don't forget <a href="http://studiawan.blogspot.com/2011/05/export-proxy-in-ubuntu-terminal.html">to set your proxy</a> first. Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-45493225092609758942011-04-11T03:25:00.000-07:002011-05-10T00:05:05.193-07:00Curl Using Proxy in Linux ConsoleGoing crazy using Linux console? Here is how to use curl in console behind proxy.<br /><pre>curl -x proxy_ip_address:port -U username:password http://example.com</pre><br />Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-5949690212855045822011-04-10T03:19:00.000-07:002011-05-10T00:05:21.037-07:00How Many Watt Consumed in Ubuntu Laptop?Yay... we will estimate how many watt consumed in Ubuntu laptop using data from ACPI interface. We have <a href="http://studiawan.blogspot.com/2011/04/how-many-volt-consumed-by-ubuntu-laptop.html">measured voltage</a> and <a href="http://studiawan.blogspot.com/2011/04/how-many-ampere-consumed-by-ubuntu.html">current</a>, <a href="http://studiawan.blogspot.com/2011/04/linux-ubuntu-get-exact-value-of-voltage.html">getting exact value of them</a>, trying to <a href="http://studiawan.blogspot.com/2011/04/how-to-make-shell-script-in-linux.html">make a simple shell script</a>, and <a href="http://studiawan.blogspot.com/2011/04/is-there-any-calculator-in-terminal.html">installing calculator package in console</a>.<br />By putting all of these stuffs altogether, we will estimate how many power used by our lovely Ubuntu box.<br /><br /># Make a shell script to cat voltage and ampere usage<br /><pre>#!/bin/bash<br />cat /proc/acpi/battery/C1AC/state | grep "present voltage" |<br />awk '{print $3}'<br />cat /proc/acpi/battery/C1AC/state | grep "present rate" |<br />awk '{print $3}'</pre># Make two variables to store voltage and ampere value<br /><pre>volt=`cat /proc/acpi/battery/C1AC/state | grep "present voltage" |<br />awk '{print $3}'`<br />ampere=`cat /proc/acpi/battery/C1AC/state | grep "present rate" |<br />awk '{print $3}'`</pre># Divide variable volt and ampere by 1000 because it still in mV or mA unit<br /><pre>volt=`echo "scale=3;$volt/1000"|bc`<br />ampere=`echo "scale=3;$ampere/1000"|bc`</pre>Parameter scale is used to set precision. If we set them to 3, then we will get three decimal places precision.<br /><br /># Measure the power by simply multiply voltage and current consumed<br /><pre>power=`echo "scale=3;$v*$a"|bc`</pre># And the full shell script is illustrated below:<br /><pre>#!/bin/bash<br />volt=`cat /proc/acpi/battery/C1AC/state | grep "present voltage" |<br />awk '{print $3}'`<br />ampere=`cat /proc/acpi/battery/C1AC/state | grep "present rate" |<br />awk '{print $3}'`<br />volt=`echo "scale=3;$volt/1000"|bc`<br />ampere=`echo "scale=3;$ampere/1000"|bc`<br />echo "Present voltage: " $volt "Volt"<br />echo "Present current: " $ampere "Ampere"<br />power=`echo "scale=3;$volt*$ampere"|bc`<br />echo "Present power :" $power "Watt"<br /></pre># And it will give us a message like this:<br /><pre>Present voltage: 16.285 Volt<br />Present current: 1.507 Ampere<br />Present power : 24.541 Watt<br /></pre><br />This shell script has been tested in Ubuntu Lucid Lynx 10.04 and it works well. Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-61555200173706623432011-04-10T03:07:00.000-07:002011-05-10T00:05:33.256-07:00[Linux Ubuntu] Getting Exact Value of Voltage and CurrentWe are now one step closer to measuring power process. In the previous explanation, we have got voltage and current value but it still has some obstacles. I mean, there are string "present voltage:" and "present rate" in voltage and current value, respectively. How can we remove them? We employ grep to get certain line and we can use awk get certain column of one line output.<br /><pre>cat /proc/acpi/battery/C1AC/state | grep "present voltage" |<br />awk '{print $3}'<br /><br />cat /proc/acpi/battery/C1AC/state | grep "present rate" |<br />awk '{print $3}'</pre>$3 in awk means it only prints the third column. The value of first column is string "present" and the second one is "voltage" or "rate" in current value. This command will print the exact value only without obstacles. Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-87399205174562186282011-04-10T02:31:00.000-07:002011-05-10T00:05:49.645-07:00How to Make a Shell Script in Linux?Yeah, like you say, it's for newbie only :D. We will make a shell script to <a href="http://studiawan.blogspot.com/2011/04/how-many-volt-consumed-by-ubuntu-laptop.html">display voltage in mV</a> and <a href="http://studiawan.blogspot.com/2011/04/how-many-ampere-consumed-by-ubuntu.html">current in mA</a> like I post before. Shell script can contain one or more lines of instruction usually issued in Terminal.<br /><br /># Open your editor (I always choose vi) type:<br /><pre>#!/bin/bash<br />cat /proc/acpi/battery/C1AC/state | grep "present voltage"<br />cat /proc/acpi/battery/C1AC/state | grep "present rate"</pre># Don't forget to replace "C1AC" with your own battery type<br /><br /># Save these shell script, for example, myfile.sh<br /><br /># Change the mode of file so that it can be executed<br /><pre>chmod +x myfile.sh</pre># Run this script by typing this instruction in your Terminal:<br /><pre>./myfile.sh</pre># The output will look like this:<br /><pre>present voltage: 16778 mV<br />present rate: 702 mA</pre>Shell script will simplify our life. Believe me and enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-2004517183597271322011-04-10T02:17:00.000-07:002011-05-10T00:06:02.887-07:00How Many Volt Consumed by Ubuntu Laptop?Now we will observe how many watt consumed by Ubuntu laptop. Similar with <a href="http://studiawan.blogspot.com/2011/04/how-many-ampere-consumed-by-ubuntu.html">how to check current (in ampere) consumed</a>, we will only replace the grep command.<br /><br /># Goto /proc/acpi/battery directory and go to directory name based on your battery type (i.e. C1AC)<br /><pre>cd /proc/acpi/battery/C1AC</pre># Cat the content of state file and grep only the voltage<br /><pre>cat state | grep "present voltage"</pre># We will get output like this:<br /><pre>present voltage: 16410 mV</pre><br />The voltage consumed is shown in mV. Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-54379223324158255112011-04-10T01:59:00.000-07:002011-05-10T00:06:16.922-07:00How Many Ampere Consumed by Ubuntu Laptop?We can monitor how many ampere consumed by our Ubuntu laptop. Unfortunately, we still can't do them in Ubuntu desktop. ACPI interface will be used to employ this technique.<br /><br /># Goto /proc/acpi/battery directory<br /><pre>cd /proc/acpi/battery</pre># There is only one directory and the name is different in accordance with laptop specifications. For example, my folder name is C1AC.<br /><pre>cd C1AC</pre># You will see three files: alarm, info, and state. Try to show the content of "state" file<br /><pre>cat state</pre># You will get a technical state about battery like shown here:<br /><pre>present: yes<br />capacity state: ok<br />charging state: charging<br />present rate: 1505 mA<br />remaining capacity: 840 mAh<br />present voltage: 16410 mV<br /></pre><br /># We only want to get ampere used, so just grep them<br /><pre>cat state | grep "present rate"</pre># The output is ampere present rate shown in mA<br /><pre>present rate: 1505 mA</pre><br />We will use this technique to get power (in Watt) consumed by Ubuntu laptop. Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-22978948277318504542011-04-10T01:15:00.000-07:002011-05-10T00:06:33.797-07:00Is There any Calculator in Terminal?Yeah, absolutely. You can use bc package in Linux Ubuntu. This is an arbitrary precision calculator language. Or, we can just call it "bash calculator" (bc). Simply issue this command:<br /><pre>apt-get install bc</pre>Of course you have to be a root when issuing it. Now we will try bc to perform simple arithmetic operation, such as:<br /><pre>echo 2+3 | bc<br />echo 2-3 | bc<br />echo 2*3 | bc<br />echo 6/2 | bc</pre><br />Run them in terminal and you will get output: 5, -1, 6, and 2. We will use this calculator later in the next tutorial. Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0tag:blogger.com,1999:blog-8599868743041176469.post-76908558722539853542011-04-10T00:38:00.000-07:002011-05-10T00:06:47.585-07:00[Linux Ubuntu] How to Put Harakat or Vowel Marks in Arabic Keyboard LayoutNow, you are able to <a href="http://studiawan.blogspot.com/2011/04/linux-ubuntu-how-to-enable-arabic.html">enable Arabic keyboard layout</a> and <a href="http://studiawan.blogspot.com/2011/04/how-to-write-arabic-in-linux-ubuntu.html">write them in Linux Ubuntu</a>. What about adding harakat or vowel marks in Arabic? Follow these steps:<br /><br /># Write the word first. For example, word "Al 'Ilmu"<br /><br />العلم<br /><br /># We should put fatha in character " ا ". To do this, put cursor behind character " ا ".<br /><br /># In the Arabic keyboard layout, fatha is placed in character Shift + Q. So, press Shift + َQ and you will get: " اَ "<br /><br /># Now put the cursor behind character " ل " and add sukun mark by pressing Shift + X. You will get: اَلعلم<br /><br /># Continue these steps until all of word is fulfilled with appropriate harakat (اَلْعِلْمُ). Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com1tag:blogger.com,1999:blog-8599868743041176469.post-79774169959012002882011-04-10T00:24:00.000-07:002011-05-10T00:07:20.141-07:00How to Write Arabic in Linux UbuntuHow to write Arabic in Linux Ubuntu? First, you should <a href="http://studiawan.blogspot.com/2011/04/linux-ubuntu-how-to-enable-arabic.html">enable Arabic keyboard layout</a>. The Arabic keyboard layout will look like this picture (click to enlarge):<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitO5LLXWQhtWOJvUYvYy2bsn_qk_LXwN0ZqYJlTueIvPjd9xtlgNIRWsg-X_vvec3mrey7Qm-flVWezvLXAGGZoRh59XcgDsHwoY_9e79rmyH9e9y_dRdJkBQ3Og0NHRMMJd3nSQ9oEAg/s1600/arabic+keyboard+layout+in+ubuntu.png"><img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 102px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitO5LLXWQhtWOJvUYvYy2bsn_qk_LXwN0ZqYJlTueIvPjd9xtlgNIRWsg-X_vvec3mrey7Qm-flVWezvLXAGGZoRh59XcgDsHwoY_9e79rmyH9e9y_dRdJkBQ3Og0NHRMMJd3nSQ9oEAg/s320/arabic+keyboard+layout+in+ubuntu.png" alt="arabic keyboard layout in ubuntu" id="BLOGGER_PHOTO_ID_5593853562901315042" border="0" /></a><br /># Then, open your favorite text editor. I prefer gedit (Applications*Accessories*gedit Text Editor)<br /><br /># Click Keyboard Preferences (usually it is placed in top-right of desktop panel) and it will be switched from USA to Ara<br /><br /># Type your word one by one based on Arabic keyboard layout. It will be connected automatically.<br /><br /># Type Space key to separate one word to another.<br /><br />It is easy, isn't it? Enjoy!Stuhttp://www.blogger.com/profile/01787355711459669875noreply@blogger.com0