<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-12176048</id><updated>2008-10-03T05:57:00.454+06:00</updated><title type='text'>Learn Linux for Beginner</title><subtitle type='html'>A Linux Tutorial for Beginner &lt;BR&gt;by Ahamed Bauani &lt;BR&gt;IT Consultant&lt;BR&gt;&lt;a href=http://www.bauani.org/&gt;Bauani's Home Page&lt;/A&gt;&lt;BR&gt;</subtitle><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/'/><link rel='next' type='application/atom+xml' href='http://www.bauani.org/learn-linux-beginner/atom.xml?start-index=26&amp;max-results=25'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.bauani.org/learn-linux-beginner/atom.xml'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>80</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-12176048.post-115040688139319944</id><published>2006-06-16T03:26:00.000+06:00</published><updated>2006-06-16T03:28:01.393+06:00</updated><title type='text'>Debian: Installing and Configuring Apache</title><content type='html'>By Cristhian Kim&lt;br /&gt;Posted: August 18, 2002&lt;br /&gt;&lt;br /&gt;In this Help File I'll discuss on setting up a simple Apache Webserver install. By the end of this tutorial you'll be able to serve plain HTML pages. I'm assuming that you already have a base Debian installation installed.&lt;br /&gt;Installing&lt;br /&gt;&lt;br /&gt;   1. Get root access.&lt;br /&gt;   2. Type: apt-get install apache&lt;br /&gt;   3. It will probably install extra packages such as: apache-common. Press [Y]&lt;br /&gt;   4. After it finishes installing it will run apacheconfig it will say Finding DSO mods....... and so on. Just wait and say [Yes] when Save these changes to to the configuration files? [Y/n].&lt;br /&gt;   5. You'll see a whole bunch of messages. You might get a few error messages such as: [Sun Aug 18 14:00:05 2002] [alert] apache: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName Don't worry I'll discuss how to fix this on the next section. &lt;br /&gt;&lt;br /&gt;Configuartion&lt;br /&gt;&lt;br /&gt;   1. First thing you should know is that the Debian package[*.deb] of Apache saves its configuration file to /etc/apache/httpd.conf .&lt;br /&gt;   2. So to edit it, type: vi /etc/apache/httpd.conf (I'm assuming you know how to use the vi editor. You can also use emacs, which there is a Help File for. Note: You have to be root.)&lt;br /&gt;   3. Now look for ServerName. You should come across #ServerName new.host.name. Just get rid of the # sign. (In configuration files "#" makes it ignore things after it.).&lt;br /&gt;   4. Also change new.host.name to what you would like. In my case I use www.ragex.org.&lt;br /&gt;&lt;br /&gt;          Also, as side note, DocumentRoot is set to /var/www. That means that things in the /var/www folder will show up on your website. So /var/www/index.html is your your main page of your webserver. &lt;br /&gt;&lt;br /&gt;   5. Now that where good to go restart the server by typing as root.&lt;br /&gt;&lt;br /&gt;      /etc/init.d/apache restart &lt;br /&gt;&lt;br /&gt;   6. Thats all! Have fun! &lt;br /&gt;&lt;br /&gt;I'll write more articles when I have time on installing / configuring "cgi-bin" and php.</content><link rel='related' href='http://www.justlinux.com/nhf/Webservers/Installing_and_Configuring_Apache_on_Debian.html' title='Debian: Installing and Configuring Apache'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/115040688139319944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=115040688139319944' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/115040688139319944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/115040688139319944'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2006/06/debian-installing-and-configuring.html' title='Debian: Installing and Configuring Apache'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-115040655706415283</id><published>2006-06-16T02:54:00.000+06:00</published><updated>2006-06-16T03:22:37.086+06:00</updated><title type='text'>Virtual Hosting Behind a Cable/DSL Router</title><content type='html'>Written By: J. Voth&lt;br /&gt;Cable and DSL are, without a doubt, the two coolest things since sliced bread. With the advent of said technolgies, people are finally getting the benefits of a dedicated, "always-on" connection to the internet, making setting up web and mail servers at home much easier, less expensive and certainly more fun than the old dial up days. If you don't have cable or DSL, get it. If you can't, then move somewhere where you can. It is most definitely worth it. Anyways, I decided to write this Help File because I was having some problems getting Apache Web Server to serve web pages to internet users behind my DSL router. I could easily set up Apache and make it work, with just one web site on the server. The real trick is getting two or more websites published to the internet, on an Apache Web Server behind a single IP. In Apache-ese, serving two or more websites on one instance of httpd (Apache), is called virtual hosting. If your familiar with Microsoft's Internet Information Server, then you'll know this as using host header names.&lt;br /&gt;&lt;br /&gt;This Help File is designed to help those who have some familiarity (no expertise required however) with IP, DNS and Apache. I'm assuming that you already have a DNS server of some kind, whether it is on your own personal LAN, or you're using a service provider's name servers, like World Wide DNS (http://www.worldwidedns.net). Also, you'll need to have purchased a unique domain name from somewhere like http://www.domainmonger.com (only $17 a year per domain name, pretty cheap). Your DNS server does not have to be a Linux box either, by the way. You'll need, well, a cable/DSL router with a working connection to the internet, and have Linux, I'll be using Red Hat 7 in my example, with Apache 1.3.12 installed. This will not be a Help File on installation of any distro, or a Bind and DNS lesson either, by the way. I'm not quite experienced enough to write on that yet. I don't think we have any Help Files on Bind yet, but if you happen to not understand DNS, then I suggest going to http://www.amazon.com and searching for some books on the subject, because DNS can be pretty tricky sometimes.&lt;br /&gt;&lt;br /&gt;Okay, so you've got all the requirements mentioned above taken care of. Now you need to know if your internet service provider, issues you a static IP address or if it is dynamically assigned to your router's WAN link. I went ahead and paid a little extra and got an ISP that issues out static IP addresses for the simple fact that I wanted to host web sites and set up my own mail server, etc., etc. I suggest you do the same because if your router's WAN link is getting it's IP address assigned to it dynamically, then you'll have to go and change your host records on your DNS server every time that your IP address changes. That would suck, trust me. So let's get down to business shall we. I'll be using examples from my own personal LAN, so your settings and domain names will be different. The first thing we will worry about is configuring our router/firewall. Every cable/DSL router I've seen has built in, but limited, firewall capabilities and web browser based configuration utility. So the main things we will worry about here are:&lt;br /&gt;&lt;br /&gt;1. IP addresses 2. Port filtering&lt;br /&gt;Set the LAN IP address to some non routable address like 192.168.123.254. Set your WAN IP, subnet mask, and default gateway to whatever addresses your ISP has given you. My settings are WAN IP: 64.30.204.21, subnet mask: 255.255.255.0, and WAN gateway: 64.30.204.254.&lt;br /&gt;&lt;br /&gt;Ensure the DHCP server for your router is disabled, as you'll need a static IP for your internal webserver. Our webservers IP is going to be 192.168.123.2 and its fully qualified domain name is rh.thevoths.com. Set a filter for port 80 to route to IP 192.168.123.2.If you have a DNS server on your internal LAN, ensure that ports 53 and 113 are filtered to your internal DNS server. That should be it as far as configuring our router. Not too bad yet, eh?&lt;br /&gt;&lt;br /&gt;The next thing we'll do is configure our zone file on our DNS server. This is the trickiest part of this whole operation in my mind. Not actually carrying out the operation but figuring out gave me some headaches. I'm not going to go through Bind specifically as any DNS server will do. If your using a service provider's DNS server's, then they will more than likely have some sort of webpage to configure your zone files. Again, if your not sure about zone files and host records and such, then please do some research on it as it is very useful and important information, especially if you want to learn Linux. Some DNS service providers will allow you to call them and tell them what records to add to your zone files, so you could take that route if you like. You must have a registered domain name also. As I wanted to host a web site for a friend of mine who was hired to design a web site for a new band called Gimp', we will be using a name that I registered, gimpmusic.net, and my own personal domain, thevoths.com. My zone file's (called simply, thevoths.com) records look like this (yours will not have the same hostnames):&lt;br /&gt;&lt;br /&gt;NS ns1.worldwidedns.net NS ns2.worldwidedns.net www.thevoths.com A 64.30.204.21 www.thevoths.com A 192.168.123.3 rh.thevoths.com A 192.168.123.3&lt;br /&gt;&lt;br /&gt;The NS means nameserver record and A means host record. The convention I've used here is this: www should point to your WAN link ( being that that's the only address that the internet knows about), it should also point to the webserver's nonroutable IP address (192.168.123.3), and their needs to be an A record in their for our webserver's actual hostname (I could have actually named our webserver www.thevoths.com and leave out the extra A record for rh.thevoths.com, I just like to name my servers after their OS, personal preference only), don't use cnames(aliases) because they will conflict with Apache's httpd.conf file when you configure the virtual hosts. If your not sure what all this is, then just register a domain name, get a DNS service provider, and have them help you configure your zone just like we did above. If you do have a good grasp of DNS then your probably wondering why the heck I didn't use a CNAME, and you'll see why in the next section about configuring Apache to use virtual hosts. By the way gimpmusic.net will look like this:&lt;br /&gt;&lt;br /&gt;NS ns1.worldwidedns.net NS ns2.worldwidedns.net www.gimpmusic.net A 64.30.204.21 www.gimpmusic.net A 192.168.123.3&lt;br /&gt;&lt;br /&gt;Configuring Apache for virtual hosts or vhosts is fairly simple. We will be working with version 1.3.12. Go into your http.conf ( in Red Hat 7.0 - /etc/httpd/conf/httpd.conf) and get ready to do some exciting text editing. By this time during this process I am totally pumped up and can barely contain myself....just kidding. Okay, the first thing we will do is add the NameVirtualHost directive and then we will add the directives. Make sure Bind Address (it's a setting in httpd.conf, I don't mean an actual Bind nameserver) is set to 192.168.123.3. Simply add this code into httpd.conf similar to the following:&lt;br /&gt;&lt;br /&gt;NameVirtualHost 192.168.123.3 ServerName www.thevoths.com DocumentRoot /var/www/html/thevoths ServerName www.gimpmusic.net DocumentRoot /var/www/html/gimpmusic&lt;br /&gt;&lt;br /&gt;Notice that the NameVirtualHost and the directives point to the nonroutable IP address of the webserver which is 192.168.123.3, not the WAN IP address on the router. You see the whole idea behind NAT routing (which is what cable/DSL routers are) is that you have only one IP address exposed to the outside world. So if you want to publish web servers and what not to the internet, then in DNS you would ensure that your webserver's hostname would resolve to your router's WAN IP address. You would then filter the appropriate port, which in our case we used the standard port 80 for our webserver. Also in DNS, you would ensure that on your internal network your webserver can reslove to the nonroutable IP address that it is actually assigned(192.168.123.3 in our case). I know this sounds like somewhat of a complicated DNS setup and I agree with you. The only way I could get vhosts to work, however, was doing it this exact same way. DNS was the tricky thing to figure out for me on this one but this setup works for great. So if you visit http://www.gimpmusic.net, then you will be visiting a site that is powered by Apache and is sitting behind a DSL router with a strange DNS setup. Hopefully, this will help someone out tremendously if they are having problems getting your webserver or mail server to publish to the internet behind a single IP address.</content><link rel='related' href='http://www.justlinux.com/nhf/Webservers/Apache_Virtual_Hosting.html' title='Virtual Hosting Behind a Cable/DSL Router'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/115040655706415283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=115040655706415283' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/115040655706415283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/115040655706415283'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2006/06/virtual-hosting-behind-cabledsl-router.html' title='Virtual Hosting Behind a Cable/DSL Router'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-114238323042648927</id><published>2006-03-15T06:25:00.000+06:00</published><updated>2007-11-11T10:29:40.550+06:00</updated><title type='text'>An Email Posting The Love I got from People</title><content type='html'>Hello everyone,&lt;br /&gt;&lt;br /&gt;I've been outof the loop of PHP activities in BD for last few days&lt;br /&gt;[months I should say]. Some could say who the hell he [me] is but I&lt;br /&gt;guess some of the eXperts here know me very well. [I'm a 'Choto moto'&lt;br /&gt;user of this grp].&lt;br /&gt;&lt;br /&gt;I would like to thank &lt;a href=http://www.bauani.org/&gt; Bauani very much &lt;br /&gt;[It would be gr8 if I knew the 'Domain saving' Issue yesterday if so, &lt;br /&gt;I could thank him personaly when we met last night :)]. &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I would like to ask Jamil to tell us what &lt;a href=http://www.bdlug.org/&gt;history he is telling about&lt;/a&gt;&lt;br /&gt; ... cause I guess Me &amp; My Friend Srowar [ex-Graphics designer&lt;br /&gt;of BOL] is also added with any initial history of BDLug. Also I guess&lt;br /&gt;yahoo.com.bd history sould come in 1st place.&lt;br /&gt;&lt;br /&gt;Here For the others who do not know bauani very much ..... for them .. I&lt;br /&gt;would like to recall ... &lt;a href=http://www.bauani.org/&gt; Bauani is one of the best linux admin I have&lt;br /&gt;ever seen in my entire career.&lt;/a&gt; That young boy [he has become a man&lt;br /&gt;already ;)] was the Assistant manager of BOL while I was in charge of&lt;br /&gt;the web [its about 5 yrs ago]. I was given an assignment to write a&lt;br /&gt;mailing script in just 20 minutes which will send the posted form data&lt;br /&gt;to a specific email address. Which is very easy for anyone I guess but&lt;br /&gt;at that time I was simply a static WebPage designer who had no php&lt;br /&gt;expertise at all. This boy guided me to complete the task that day... as&lt;br /&gt;a result in next few months BOL got &lt;a href=http://www.rits-bd.com/&gt; automated with the access control&lt;br /&gt;application, corporate complain tracking application, PABX reporting, IP&lt;br /&gt;management system, reseller management system, web sms, find reseller in&lt;br /&gt;the web and many more which I can't remember now ... &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So this is for those who Know me as One of the "Leading" PHP developers&lt;br /&gt;in the country ... they should know I wasn't at all planned my career to&lt;br /&gt;become a PHP expert but that specific 'SIMPLE mailing script' lead me to&lt;br /&gt;what I'm now &amp; I pay my heartfull of thank to bauani for his helping&lt;br /&gt;attitude.  And here Everyone has seen how he has saved the day for&lt;br /&gt;phpexperts.&lt;br /&gt;&lt;br /&gt;I would like conclude by saying that now I guess we dont need to worry&lt;br /&gt;anymore for the &lt;a href=http://www.phpxperts.com/&gt; PHPXPERTS site &lt;/a&gt;.. It is now in safe hand ;)&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;Tanvir Gaus&lt;br /&gt;&lt;a href="http://www.smart-catalog.com/"&gt;http://www.smart-catalog.com&lt;/a&gt;</content><link rel='related' href='http://tech.groups.yahoo.com/group/phpexperts/message/3729' title='An Email Posting The Love I got from People'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/114238323042648927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=114238323042648927' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/114238323042648927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/114238323042648927'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2006/03/email-posting-love-i-got-from-people.html' title='An Email Posting The Love I got from People'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111469118387594792</id><published>2005-04-28T18:26:00.000+06:00</published><updated>2005-04-28T18:26:23.876+06:00</updated><title type='text'>Internet2: About Internet2</title><content type='html'>&lt;a href="http://www.internet2.edu/about/"&gt;Internet2: About Internet2&lt;/a&gt;: "About Internet2� &lt;br /&gt;Internet2 is a consortium being led by 207 universities working in partnership with industry and government to develop and deploy advanced network applications and technologies, accelerating the creation of tomorrow's Internet. Internet2 is recreating the partnership among academia, industry and government that fostered today�s Internet in its infancy. The primary goals of Internet2 are to: &lt;br /&gt;Create a leading edge network capability for the national research community &lt;br /&gt;Enable revolutionary Internet applications &lt;br /&gt;Ensure the rapid transfer of new network services and applications to the broader Internet community. &lt;br /&gt;Through Internet2 Working Groups, Internet2 members are collaborating on: &lt;br /&gt;Partnerships &lt;br /&gt;Initiatives &lt;br /&gt;Applications &lt;br /&gt;Engineering &lt;br /&gt;Middleware &lt;br /&gt;For more information about Internet2 see:&lt;br /&gt;Internet2 Newswire archives, the latest Internet2-happenings. &lt;br /&gt;Internet2 Email Lists that are publicly accessible &lt;br /&gt;Frequently Asked Questions and answers &lt;br /&gt;Internet2 Glossary and Style Guide defines and explains many advanced networking term &lt;br /&gt;Information Kit with downloadable documents and multimedia &lt;br /&gt;Internet2 Videospace has net-accessible, high-performance video about Internet2 &lt;br /&gt;For more information about the people and organization supporting the work of Internet2 members, see: &lt;br /&gt;Board of Trustees &lt;br /&gt;Advisory Councils &lt;br /&gt;Bylaws &lt;br /&gt;Staff "</content><link rel='related' href='http://www.internet2.edu/about/' title='Internet2: About Internet2'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111469118387594792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111469118387594792' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111469118387594792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111469118387594792'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/internet2-about-internet2.html' title='Internet2: About Internet2'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350448947753730</id><published>2005-04-15T00:45:00.001+06:00</published><updated>2005-04-15T00:48:09.480+06:00</updated><title type='text'>The end of the beginning</title><content type='html'>&lt;h2&gt;The end of the beginning&lt;/h2&gt;   &lt;p&gt;This is the end of &lt;i&gt;Getting Started with Linux&lt;/i&gt;, our beginner's introduction to this operating system. What we have intended to do is take you from the point where you've got some Linux CDs and a computer in front of you without Linux in it to where you've installed and and you're using it productively. This means that you're using it to maintain files, write documents , manage data, keep figures straight with a spreadsheet, surf the web, write email, chat with friends. At the same time you're listening to your  favorite music in either MP3 or Ogg format, on a CD or streaming over RealAudio.  &lt;/p&gt; &lt;p&gt;The fact is that there is an endless amount of things that you can do with Linux. Our aim here was to give you the basics. Now it's up to you to explore- to try expanding on the things that you've learned here. In the end, the point is to learn and to have a little fun in the process.  &lt;/p&gt; &lt;h3&gt;Where do you go from here?&lt;/h3&gt;   &lt;p&gt;At this time we're working on our &lt;i&gt;Intermediate Linux Course&lt;/i&gt;. This course, which is still in development, will take you from the beginner level to the point where you feel very comfortable with Linux. Our aim is not to make professional systems administrators out of those who follow the course, but to make you independent enough with your Linux machine that you don't need to seek outside help as frequently as a novice does to solve the occasional problems that arise. Here are a few of the topics that we'll be covering in the next course.  &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;ul&gt; &lt;li&gt;general system administration &lt;/li&gt;&lt;li&gt;security alerts &lt;/li&gt;&lt;li&gt;Linux kernel compiling and installation of new kernels &lt;/li&gt;&lt;li&gt;automating services and tasks &lt;/li&gt;&lt;li&gt;use of Bash and Perl scripts &lt;/li&gt;&lt;li&gt;firewalls &lt;/li&gt;&lt;li&gt;setting up a web server with Apache  &lt;/li&gt;&lt;li&gt;setting up a mail server with sendmail &lt;/li&gt;&lt;li&gt;Samba for Windows file sharing &lt;/li&gt;&lt;li&gt;Professional databases MySQL and PostgreSQL &lt;/li&gt;&lt;li&gt;Linux for the small business &lt;/li&gt; &lt;/ul&gt;   &lt;p&gt;If you are a registered user, we'll keep you posted on updates as to the availability of the Intermediate Linux Course.   &lt;/p&gt; &lt;p&gt;Please, feel free to send us suggestions and comments through email at bdlug at bauani.org&lt;br /&gt;&lt;/p&gt; &lt;p&gt;This is END of beginning...Welcome to the World of Linux.... Enjoy....  &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350448947753730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350448947753730' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350448947753730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350448947753730'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/end-of-beginning.html' title='The end of the beginning'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350433519297969</id><published>2005-04-15T00:45:00.000+06:00</published><updated>2005-04-15T00:45:35.193+06:00</updated><title type='text'>A final word about X-window</title><content type='html'>&lt;h2&gt;A final word about X-window&lt;/h2&gt;   &lt;p&gt; The GUI applications for Linux are always changing, evolving and adapting to user needs. Linux has come a long way in the past few years. It is becoming a serious threat to the dominance of Microsoft Windows not only in the server market but on the desktop as well. The important work done by the people in the GNOME and KDE projects as well as other those carrying out development of other window managers and XFree86 show the level of commitment there is to getting Linux on the desktops of the worlds computers in offices and homes. &lt;/p&gt; &lt;p&gt; In this lesson we've given you a number of addresses of web pages of these types of projects. The best thing to do to support these efforts is to check back on these projects from time to time, install the latest version and talk to your friends about how good you think they are. Also, contact the developers or join the mailing list for that particular project and provide feedback, both positive and negative, about the software you've tried. That's essentially what the Linux movement is all about. You can also volunteer to do some work. You don't have to be a programmer to make a vital contribution. You can translate the documentation or the graphic interface to your native language, for example. In the end, any form of collaboration is good. That's how Linux grew into the major operating system that it is and that's essentially what the  Linux movement is all about.     &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350433519297969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350433519297969' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350433519297969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350433519297969'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/final-word-about-x-window.html' title='A final word about X-window'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350429167231805</id><published>2005-04-15T00:44:00.000+06:00</published><updated>2005-04-15T00:44:51.676+06:00</updated><title type='text'>More X-Window Tips and Tricks</title><content type='html'>&lt;h2&gt;More X-Window Tips and Tricks&lt;/h2&gt;   &lt;h3&gt;Starting X on other virtual terminals&lt;/h3&gt;   &lt;p&gt;With Linux, you are not limited to starting X-window only once. You may open up another virtual terminal and start another instance of X-window. Remember though that running two instances will use up a lot of memory.   &lt;/p&gt; &lt;p&gt;As we saw in previous lessons, to switch to another virtual terminal, press:  &lt;/p&gt; &lt;blockquote&gt; &lt;tt&gt;CTRL + ALT + F2 (or F3 up to F6)&lt;/tt&gt; &lt;/blockquote&gt;   &lt;p&gt;Then login as another user and type: &lt;/p&gt; &lt;blockquote&gt; &lt;tt&gt;startx -- :1&lt;/tt&gt; &lt;/blockquote&gt;   &lt;p&gt;You can switch between instances of X-Window by typing: &lt;/p&gt; &lt;blockquote&gt; &lt;tt&gt;CTRL + ALT + F7&lt;/tt&gt; and&lt;br /&gt;&lt;tt&gt;CTRL + ALT + F8&lt;/tt&gt; &lt;/blockquote&gt;   &lt;h3&gt;Using the X-Window programs from another computer&lt;/h3&gt;   &lt;p&gt;This is the thing I love to show people from the MS Windows world. I point to the computer across the room and then say: &lt;i&gt;"Now I am going to start the browser from that system and make it appear here."&lt;/i&gt; You don't need to be David Copperfield to perform this magic. You only need X-window running on one and installed on the other. You also need a means of logging in to the other computer. And here's one more thing. The computer doesn't even need to be in the same room. It can be in a different room in a different building on a different continent. Providing your bandwidth is good enough, you can start a program on a computer 5000 kilometers away and use it on your desktop.   &lt;/p&gt; &lt;p&gt;There are two ways to do this. One is &lt;i&gt;&lt;b&gt;not secure&lt;/b&gt;&lt;/i&gt; and probably should only be used on a local network, if at all. The second one is very secure and can be used for trans-oceanic X-window sessions.  &lt;/p&gt; &lt;p&gt;If you have the remote login device &lt;i&gt;telnet&lt;/i&gt; and the &lt;i&gt;telnet server&lt;/i&gt; installed on the machines, you can use this fairly safely in a local network. For example, if your workstation is called 'amos' and the other machine is called 'andy' and you want to use a program on 'andy', sitting at 'amos', you would type:  &lt;/p&gt; &lt;blockquote&gt; &lt;tt&gt;xhost +andy&lt;/tt&gt; &lt;/blockquote&gt;   &lt;p&gt;Then with &lt;i&gt;telnet&lt;/i&gt;, login into 'amos' (telnet&gt; open amos) &lt;/p&gt; &lt;p&gt;Then, type:  &lt;/p&gt; &lt;blockquote&gt; &lt;tt&gt;DISPLAY=amos:0.0&lt;/tt&gt;&lt;br /&gt;then&lt;br /&gt;&lt;tt&gt;export DISPLAY&lt;/tt&gt; &lt;/blockquote&gt;   &lt;p&gt;Now you can type the name of any program you want to run that you know is on 'andy'. Remember though, as I mentioned, telnet is insecure. This are better ways of doing this. You should &lt;i&gt;&lt;u&gt;never&lt;/u&gt;&lt;/i&gt; do this if you're working over a public network, like the Internet.   &lt;/p&gt; &lt;h3&gt;Remote X sessions with OpenSSH&lt;/h3&gt;   &lt;p&gt;Open SSH stands for &lt;i&gt;Open Secure Shell&lt;/i&gt;. That's just what it is. A secure shell for logging in at other computers in a secure manner. What goes over the network is encrypted and your security is not compromised. Most major distributions will offer this and it is normally installed by default. You may have to specifically install the &lt;i&gt;&lt;b&gt;OpenSSH server&lt;/b&gt;&lt;/i&gt; which you need to have to for this to work on your local network. Using X on another machine, also known as &lt;i&gt;X forwarding&lt;/i&gt; is usually disabled by default so you may have to edit one file to get this to work locally. If you're doing this across oceans or continents the configuration will depend on the remote machine. As long as you have a OpenSSH &lt;i&gt;client&lt;/i&gt; and an account on the other machine, you can do this.  &lt;/p&gt; &lt;p&gt;As I mentioned, if you want to do this locally. Here's what you have to do. Let's use our 'amos' and 'andy' example again. You're sitting at your workstation called 'amos'. Make sure you have &lt;i&gt;&lt;b&gt;OpenSSH server&lt;/b&gt;&lt;/i&gt; on installed on 'andy' and have created a user account there. On 'andy' you need to   login as 'root' and make sure that there is a line in a file called 'sshd_config', usually located in /etc/ssh that says &lt;tt&gt;X11Forwarding yes&lt;/tt&gt;. If this says &lt;tt&gt;X11Forwarding no&lt;/tt&gt; than you need to change it to &lt;i&gt;yes&lt;/i&gt;. Then you need to restart the  &lt;i&gt;&lt;b&gt;OpenSSH server&lt;/b&gt;&lt;/i&gt;. The easiest way is to look for its PID by typing: &lt;tt&gt;ps ax | grep sshd&lt;/tt&gt; and killing it's PID number. Then type: &lt;tt&gt;sshd&lt;/tt&gt; to start the server again.   &lt;/p&gt; &lt;p&gt;Then, from 'amos' just connect to 'andy' via SSH, like so:  &lt;/p&gt; &lt;blockquote&gt; &lt;tt&gt;ssh -l [yourusername] andy&lt;/tt&gt; &lt;/blockquote&gt;   you'll be asked for your password. You log in and then you can run the X application that you want. It will come up on your desktop on 'amos' courtesy of 'andy'.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350429167231805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350429167231805' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350429167231805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350429167231805'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/more-x-window-tips-and-tricks.html' title='More X-Window Tips and Tricks'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350424758640080</id><published>2005-04-15T00:43:00.000+06:00</published><updated>2005-04-15T00:44:07.590+06:00</updated><title type='text'>Tips and Tricks for X-Window</title><content type='html'>&lt;h2&gt;Tips and Tricks for X-Window&lt;/h2&gt;   &lt;h3&gt;.xinitrc&lt;/h3&gt;   &lt;p&gt;This is a file you'll find in your user directory. You can use it to start programs automatically when you start X-window. Open the file with &lt;i&gt;vi&lt;/i&gt; or the text editor of your choosing. Then, for example, add:  &lt;/p&gt; &lt;blockquote&gt; &lt;tt&gt;xclock -bg wheat -geometry 100x100+1+1 &amp;amp;&lt;/tt&gt; &lt;/blockquote&gt;   &lt;p&gt; &lt;tt&gt;-bg&lt;/tt&gt; sets the background color and the &lt;tt&gt;-geometry&lt;/tt&gt; setting I have used here gives you a fairly small, but not too small clock in the upper left hand corner of your desktop. You can type: &lt;tt&gt;man xclock&lt;/tt&gt; to see more options. Experiment with options first before you put your definitive xclock settings in your &lt;i&gt;.xinitrc&lt;/i&gt; file. Just type your settings into an xterm and try different ones. Type: &lt;tt&gt;killall xclock&lt;/tt&gt; to shut off the clock each time.   &lt;/p&gt; &lt;h3&gt;.Xdefaults file&lt;/h3&gt;   &lt;p&gt;There's another file in your user directory called &lt;tt&gt;&lt;b&gt;.Xdefaults&lt;/b&gt;&lt;/tt&gt;. You can use this file to change the way some of your X-window applications look. It's fun to try out different styles and get some settings that please your eye. Before you try to do this however, make a backup. Type:  &lt;/p&gt; &lt;blockquote&gt; &lt;tt&gt;cp .Xdefaults .Xdefaults_good&lt;/tt&gt; &lt;/blockquote&gt;   because there is always some danger of making some applications non-operable because you have left spaces where you shouldn't. It is important when you change settings that you leave &lt;u&gt;no trailing spaces&lt;/u&gt;. Most major distributions provide a working .Xdefaults file. It's best to leave what you find there, but you're free to add stuff to it. &lt;p&gt; As an example, let's change the look of &lt;i&gt;emacs&lt;/i&gt;, for example.  &lt;/p&gt; &lt;p&gt;First, open up the file with &lt;i&gt;Vi&lt;/i&gt; or any text editor your prefer. Add this to it: &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;br /&gt;!! emacs changes [date]&lt;br /&gt;&lt;br /&gt;emacs*Background: DarkCyan&lt;br /&gt;emacs*Foreground: Khaki&lt;br /&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;  &lt;p&gt;Let's explain what we've done here. First, the exclamation point (!) in this file is used to make comments. The two rows of exclamation points I've used to show where my emacs section begins and ends. Then I use two to comment that I am changing emacs and I have included &lt;tt&gt;[date]&lt;/tt&gt; where I would put the actual date to show when I made the changes. You don't have to do this. It's just something extra to remind me when I made the changes. Then we make the actual changes.   &lt;/p&gt; &lt;p&gt;With: &lt;tt&gt;emacs*background: DarkCyan&lt;/tt&gt; we can change the background of the application's menu bar and frame. You can use any color you like that the system supports.     &lt;/p&gt; &lt;p&gt;With: &lt;tt&gt;emacs*Foreground: Khaki&lt;/tt&gt; we've changed the color of the words in the menu.    &lt;/p&gt; &lt;p&gt;To make the changes take effect, you have to issue this command in an xterm:  &lt;/p&gt; &lt;blockquote&gt; xrdb -merge $HOME/.Xdefaults &lt;/blockquote&gt;   This will restart the x-server database and log in your changes. If you don't do this, X-window keeps your old .Xdefaults in memory and you won't see anything new. Restart emacs and you should see your new colors. If emacs doesn't come up, you may have left some trailing white space. If that is the case, just type &lt;tt&gt;emacs&lt;/tt&gt; in an xterm and an error message should appear saying something like: &lt;tt&gt;Warning: Color name "khaki " is not defined&lt;/tt&gt; or similar. If you see a space before the second quotation mark,  then you've got whitespace in your .Xdefaults file that needs to be eliminated.  &lt;p&gt;As you get more adept at changing things, you'll make your desktop more to your liking.  &lt;/p&gt; &lt;h3&gt;xwininfo&lt;/h3&gt;   &lt;p&gt;If you're interested in seeing a bit of information about certain programs running, you can type &lt;tt&gt;xwininfo&lt;/tt&gt; into a terminal and then click on any window. For example, I had another xterm open and I clicked on it and got this info: &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;pre&gt;xwininfo: Window id: 0x2c0000e "xterm"&lt;br /&gt;&lt;br /&gt; Absolute upper-left X:  211&lt;br /&gt; Absolute upper-left Y:  132&lt;br /&gt; Relative upper-left X:  0&lt;br /&gt; Relative upper-left Y:  0&lt;br /&gt; Width: 581&lt;br /&gt; Height: 340&lt;br /&gt; Depth: 16&lt;br /&gt; Visual Class: TrueColor&lt;br /&gt; Border width: 0&lt;br /&gt; Class: InputOutput&lt;br /&gt; Colormap: 0x20 (installed)&lt;br /&gt; Bit Gravity State: NorthWestGravity&lt;br /&gt; Window Gravity State: NorthWestGravity&lt;br /&gt; Backing Store State: NotUseful&lt;br /&gt; Save Under State: no&lt;br /&gt; Map State: IsViewable&lt;br /&gt; Override Redirect State: no&lt;br /&gt; Corners:  +211+132  -8+132  -8-128  +211-128&lt;br /&gt; -geometry 80x24-3+109&lt;br /&gt;&lt;/pre&gt;   This comes in handy especially to find suitable '-geometry' settings for use in starting up applications and including them in the &lt;i&gt;.xinitrc&lt;/i&gt; file.   &lt;h3&gt;xset&lt;/h3&gt;   &lt;p&gt;This is a command line utility to control things like your mouse, keyboard, monitor and pc speaker. Both GNOME and KDE have other graphic apps to do this stuff a lot easier, so I find myself using this less and less. But you can try it out. For example, type: &lt;tt&gt;xset b off&lt;/tt&gt; to stop your computer from beeping at it. And to turn it back on? You guessed it: &lt;tt&gt;xset b on&lt;/tt&gt;. You can also change the tone by typing something like: &lt;tt&gt;xset b 30 550 300&lt;/tt&gt; The first number is for volume, the second pitch and the third duration of the beep.  &lt;/p&gt; &lt;h3&gt;xsetroot&lt;/h3&gt;   &lt;p&gt;In a previous section, we told you how to use &lt;i&gt;xv&lt;/i&gt; to put your favorite picture on your desktop. If you get tired of pictures and you want something plain, you can use &lt;b&gt;xsetroot&lt;/b&gt; to just put a color scheme on the desktop. For example, typing: &lt;tt&gt;xsetroot -solid seagreen&lt;/tt&gt; will get you a solid dark green color as a background. This one is soothing to the eyes. It's the same color used on pool and card tables. Of course, you're free to use the color you like! Type: &lt;tt&gt;man xsetroot&lt;/tt&gt; to see other options.   &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350424758640080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350424758640080' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350424758640080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350424758640080'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/tips-and-tricks-for-x-window.html' title='Tips and Tricks for X-Window'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350420417785040</id><published>2005-04-15T00:42:00.001+06:00</published><updated>2005-04-15T00:43:24.186+06:00</updated><title type='text'>Little goodies to improve your quality of life</title><content type='html'>&lt;h2&gt;Little goodies to improve your quality of life &lt;/h2&gt;  &lt;p&gt;&lt;b&gt;(aka: those little apps you'd rather not live without)&lt;/b&gt;  &lt;/p&gt; &lt;h3&gt;Music&lt;/h3&gt;   &lt;p&gt;When I got broadband Internet access, my life changed forever. No more paying for dial-ups on a hourly basis. No more painful downloads of software. But what's more important than all of this is that I could now listen to radio! &lt;i&gt;So what&lt;/i&gt;, you say. Well, I live more than 6,000 miles from the place where I grew up, so when I could finally listen to a radio station from the city where I was born as easily as my mother (who still lives there) can switch on the radio, I was delighted.  RealAudio player for Linux is just one of those little apps I'd rather not live without.   &lt;/p&gt; &lt;blockquote&gt;  &lt;p&gt;&lt;b&gt;&lt;a href="http://www.real.com/"&gt;RealPlayer&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt;&lt;p&gt;I can't help but make an editorial comment here about this application. This for me represents more than just a way of listening to your favorite on-line radio station or viewing the BBC World Service broadcast. RealPlayer represents the difference between stations having a choice to "webcast" freely or having to kow-tow to Microsoft. It looks like Gates and Co. plans on dominating the on-line music/information industry. Real Networks is at this  point the only thing preventing them from doing it.   &lt;/p&gt;&lt;p&gt;Now that I've finished my editorializing, you can go get RealPlayer for Linux and install it and start listening to web broadcasts.  &lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;a href="http://www.xmms.org/"&gt;XMMS&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt;&lt;p&gt;&lt;i&gt;XMMS&lt;/i&gt; stands for the &lt;i&gt;X multi-media system&lt;/i&gt;. If you're familiar with WinAmp, you'll have no trouble getting used to this program. You can listen to your favorite MP3s plus files in the newly emerging free &lt;i&gt;Ogg Vorbis&lt;/i&gt; format.   &lt;/p&gt;&lt;/blockquote&gt;   &lt;h3&gt;Image viewing and editing&lt;/h3&gt;    &lt;blockquote&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://www.gimp.org/"&gt;The GIMP&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt;&lt;p&gt;GIMP stands for &lt;i&gt;GNU Image Manipulation Program&lt;/i&gt;. It should never be associated with the English word meaning &lt;i&gt;lame&lt;/i&gt;. Gimp also has another meaning, according to the dictionary I consulted: &lt;i&gt;Smart; spruce; trim; nice&lt;/i&gt;.  That's a better description. This is a full fledged image creating and re-touching application. You can apply all sorts of filters and even write scripts for doing things to the images automatically. If you work a lot with images and think that by switching to Linux you'll be unable to work efficiently with graphics, then check out The GIMP. You'll be pleasantly surprised.   &lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;a href="http://www.trilon.com/xv/xv.html"&gt;xv&lt;/a&gt;&lt;/b&gt; &lt;/p&gt;&lt;p&gt; In the words of the its author, John Bradley, &lt;i&gt;xv&lt;/i&gt; doesn't stand for anything. I use this program all the time, literally. It is what I use to display the image in my desktop window.  &lt;/p&gt;&lt;p&gt;type this: &lt;/p&gt;&lt;blockquote&gt;  &lt;tt&gt;xv -root -max -quit your_favorite_pic.jpg&lt;/tt&gt; &lt;/blockquote&gt; and xv will display your favorite picture as &lt;i&gt;the pic&lt;/i&gt; on your desktop. Sometimes I get bored and I use this script to rotate my favorite pictures.  &lt;blockquote&gt; &lt;pre&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;for i in `ls /home/mike/rotation_bkg/*.jpg`&lt;br /&gt;&lt;br /&gt;do&lt;br /&gt;&lt;br /&gt;       xv -root -max -quit $i&lt;br /&gt;       sleep 300&lt;br /&gt;done&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt; If you're looking for heavy duty image software, xv is not it, however. This is the author's own words: &lt;blockquote&gt;&lt;tt&gt; Basically, xv's primary thrust has always been displaying images (in many formats) quickly and nicely on a wide variety of display hardware.&lt;/tt&gt;&lt;/blockquote&gt;  &lt;p&gt;That pretty much sums it up. xv is distributed as shareware.    &lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;a href="http://www.imagemagick.org/"&gt;ImageMagick&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt;&lt;p&gt;ImageMagick is a suite of tools for displaying and manipulating images. It's not as powerful (in my opinion) as The GIMP but more powerful than xv. I use it for three basic things. The 'display' tool I use to tell my email client open images that people send me in emails. Another one I use a lot is the thumbnail generator. If you've got a lot of images in a directory and you want to have an inventory of all of them as &lt;i&gt;one&lt;/i&gt; image, then you would type: &lt;/p&gt;&lt;blockquote&gt; &lt;tt&gt;display 'vid:*.jpg'&lt;/tt&gt; &lt;/blockquote&gt;  &lt;p&gt;This creates one image of all of the jpg images as thumbnails in the directory you're in. This takes up a lot of CPU power on even a fairly powerful machine, so be patient. If you've got a lot of images in a directory and a slow machine, you might want to consider doing them in small batches. &lt;/p&gt;&lt;p&gt;This next use of ImageMagick is my two-year-old's favorite. I have some pictures of him in a directory and I type:  &lt;/p&gt;&lt;blockquote&gt; &lt;tt&gt;animate *.jpg &lt;/tt&gt; &lt;/blockquote&gt;   &lt;p&gt;This starts up a slide show of him at blinding speed and he gets a big kick out of it. If you want to get the images rotating at a more manageable speed, just use the &lt;tt&gt;shift &gt;&lt;/tt&gt; keys  or click with the right mouse button to call up the menu.  &lt;/p&gt;&lt;/blockquote&gt;   &lt;h3&gt;Text editors and viewers&lt;/h3&gt;   &lt;p&gt;Sometimes you don't want to fire up a whole office suite to read some text file and sometimes you have to create and/or edit documents as plain text. If you wanted, for example, to modify my image rotation script above, you would open up a text editor. There are two that I use on two different occasions. &lt;/p&gt; &lt;blockquote&gt;  &lt;p&gt;&lt;b&gt;&lt;a href="http://www.gnu.org/software/emacs/emacs.html"&gt;Emacs&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt;&lt;p&gt;There is a version of Emacs if your not using X-window and then there's XEmacs, a version expressly written for X-window. I refer to the x-window version of Emacs, which is like the console version, but has clickable menus and windows and everything you need to work in a graphical environment. Richard Stallman, founder of the GNU project, first started working on Emacs in 1974. It has since then become the flagship application of the GNU project. It is truly the perfect application to be the one associated with the GNU. It is a Swiss Army Knife of editors. To call it an 'editor' is to insult it somewhat. It does a little bit of everything. To me, it's almost like a mini-operating system in and of itself. If you're a programmer, Emacs is essential for working. If I could not use Emacs for some reason, I would probably go off and herd sheep. (and if you think I'm joking, ask my wife). Even for non-programming tasks I use it. The entire Linux Online beginners' course (yes, the words you are reading right now) were written in their entirety using Emacs. That day in 1974 when Richard Stallman sat down and started development of Emacs is a great day in history. &lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;a href="http://www.xfree86.org/current/xedit.1.html"&gt;xedit&lt;/a&gt;&lt;/b&gt;   &lt;/p&gt;&lt;p&gt;xedit is a basic text viewer/editor for X-window. It was one of the first applications. It is not slick or fancy, but there is one thing I like very much about it. The ability to fire it up from an xterm with a couple of preferences of mine. Reading fairly long things on a computer is not one of my favorite activities. My eyes don't seem to like it either. With xedit, you can specify a readable font and some good eye-friendly colors when you start it up. &lt;/p&gt;&lt;blockquote&gt; &lt;tt&gt;xedit -bg seagreen -fg navajowhite -fn 9x15*bold some_text_file.txt &amp;&lt;/tt&gt; &lt;/blockquote&gt;  &lt;/blockquote&gt;   &lt;p&gt;As we're on the topic of basic X-Window applications, you can use &lt;i&gt;&lt;b&gt;xcolors&lt;/b&gt;&lt;/i&gt; to get a background and foreground combination that suits your eyes. Use the right mouse button to select a font color and the middle button to select the background. &lt;/p&gt; &lt;p&gt;If you want to select colors (for example, for web page work) and you've got the GNOME desktop installed, you can use &lt;b&gt;&lt;i&gt;GNOME Color Browser&lt;/i&gt;&lt;/b&gt;. It's easier to manage that &lt;i&gt;xcolors&lt;/i&gt; and has a nice grab feature to select colors from other places and get their values/names.   &lt;/p&gt; &lt;h3&gt;Miscellaneous Programs&lt;/h3&gt;   &lt;blockquote&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://www.linux.org/apps/AppId_3354.html"&gt;root-tail&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt;&lt;p&gt;&lt;i&gt;tail&lt;/i&gt; is a console application that is normally used for monitoring files that change constantly, like log files. &lt;i&gt;root-tail&lt;/i&gt; can be used to display these files on your desktop while you're running X-window. I normally use this to remember important stuff. It really comes in handy. First, you should create a text file with your favorite editor. Call it 'reminders'. Then on each line, write something that you want to remember.  Then, you run &lt;i&gt;root-tail&lt;/i&gt;. It's best to do this with a few options.  For example, this is how I run it:  &lt;/p&gt;&lt;blockquote&gt; &lt;tt&gt; root-tail  -color yellow -font 12x24 -shade -g +10+100  $HOME/reminders &amp;amp;&lt;/tt&gt; &lt;/blockquote&gt;  Let's explain some of these options. First, after '-color' you should use the name of the color you want the text to appear in. Use xcolors to find a color you like that's supported by your system. The next one is '-font'. As you see, I've chosen a good sized one. '-shade' will give the text a little shade under it and will look snazzier. '-g' stands for 'geometry' or the location in the window. I use +10+100 which set it right in front of me. You can experiment with settings. Now you have no excuse for forgetting to buy your loved ones  presents on their birthdays!  &lt;p&gt;&lt;b&gt;&lt;a href="http://www.gkrellm.net/"&gt;gkrellm&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt;&lt;p&gt;This is nice little application to monitor what's going on with your computer. You can keep track of you memory usage, swap space, how much bandwidth you're using through your ethernet card and much, much more.   You can see it in this &lt;a href="http://www.linux.org/lessons/beginner/l19/fvwm2.html"&gt; screenshot&lt;/a&gt;. It's running on the upper right side of my desktop. It's useful as a way to alert you to how many clueless Windows users there are. Invariably, when some Sircam provoked mail comes through, the 'eth0' monitor, which checks bandwidth usage will start rising for no apparent reason. If you do conversions of audio to MP3 or Ogg format, you can watch your CPU usage go off the scale when you do them. Place your mouse over gkrellm and press F1 to configure other monitors. There are also plug-ins and themes/skins available.   &lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;a href="http://www.xchat.org/"&gt;Xchat&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt;&lt;p&gt;&lt;i&gt;xchat&lt;/i&gt; is a comfortable IRC (Internet Relay Chat) client. It's very easy to configure to your liking. There is the possibility to use Python and Perl scripts to automate some things you do.   &lt;/p&gt;&lt;/blockquote&gt;   &lt;h3&gt;A lot of programs to choose from&lt;/h3&gt;   &lt;p&gt;There are thousands of programs for Linux in our &lt;a href="http://www.linux.org/apps/"&gt;applications section&lt;/a&gt;. Have a look and we're sure you'll find the right programs to suit your needs   &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350420417785040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350420417785040' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350420417785040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350420417785040'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/little-goodies-to-improve-your-quality.html' title='Little goodies to improve your quality of life'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350415027276136</id><published>2005-04-15T00:42:00.000+06:00</published><updated>2005-04-15T00:42:30.273+06:00</updated><title type='text'>Office suites word processors and spreadsheets</title><content type='html'>&lt;h2&gt;Office suites, word processors and spreadsheets&lt;/h2&gt;   &lt;h3&gt;&lt;a href="http://www.sun.com/software/star/staroffice/"&gt;StarOffice&lt;/a&gt;&lt;/h3&gt;   &lt;p&gt;StarOffice is a complete, full-featured office suite on the idea of Microsoft Office. It comes complete with word processor (of course), spreadsheet, database interfacing, presentation software plus it offers web browsing and email and a few other features. Originally developed by StarDivision, StarOffice was acquired by Sun Microsystems in 1999. The current stable version of this suite is 5.2 at the time of this writing. However, Sun has announced that they plan to charge for downloads of StarOffice version 6.   &lt;/p&gt; &lt;h3&gt;&lt;a href="http://koffice.kde.org/"&gt;KOffice&lt;/a&gt;&lt;/h3&gt;   &lt;p&gt;KOffice is the KDE Project's offering for desktop productivity. It includes all of the standard office suite applications. The software is offered free of charge.    &lt;/p&gt; &lt;h3&gt;&lt;a href="http://www.vistasource.com/"&gt;VistaSource's Anywhere Desktop for Linux&lt;/a&gt;&lt;/h3&gt;   &lt;p&gt;This suite was formerly known as ApplixWare. Once again, all the standard office suite tool are offered here. This one boasts a Microsoft Office look and feel. This is not a free product. It cost 99 US dollars at the time of this writing.    &lt;/p&gt; &lt;h3&gt;&lt;a href="http://siag.nu/index.shtml"&gt;Siag Office&lt;/a&gt;&lt;/h3&gt;   &lt;p&gt;Don't let a name like &lt;i&gt;Pathetic Writer&lt;/i&gt; dissuade you from checking out this office suite for Linux. The word processor part of the suite can open Microsoft Word format (*.doc) files.  The project started with the &lt;i&gt;Scheme in a grid&lt;/i&gt; spreadsheet. Now you know why it's called &lt;i&gt;Siag&lt;/i&gt;. Another free offering in the office category.   &lt;/p&gt; &lt;h3&gt;&lt;a href="http://www.hancom.com/en/"&gt;HancomOffice for Linux&lt;/a&gt;&lt;/h3&gt;   &lt;p&gt;Hancom Linux of Korea has developed this commercial full-featured office suite for Linux. Provides compatibility with Microsoft Office formats and smooth integrating into the KDE desktop. An evaluation version is available for download, but the software must be purchased in order to continue to use it.    &lt;/p&gt; &lt;h3&gt;&lt;a href="http://www.gnome.org/gnome-office/"&gt;GNOME Office&lt;/a&gt;&lt;/h3&gt;   &lt;p&gt;GNOME office should actually appear in quotes, because this is not an office suite in the classic sense, but a set of applications that are often associated  with office suites, as a package deal, so to speak. Some of the high-lights include: &lt;/p&gt; &lt;ul&gt; &lt;li&gt;Gnumeric, a spreadsheet application &lt;/li&gt;&lt;li&gt;AbiWord, a word processor (it even runs under Windows and MacOS) &lt;/li&gt;&lt;li&gt;Gnucash, a personal finance manager &lt;/li&gt;&lt;li&gt;GNOME-DB, database connectivity software &lt;/li&gt; &lt;/ul&gt; &lt;br /&gt; If you download the &lt;a href="http://www.ximian.com/"&gt;Ximian Desktop&lt;/a&gt;, you'll get these applications plus the other productivity tools associated with the GNOME project.</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350415027276136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350415027276136' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350415027276136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350415027276136'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/office-suites-word-processors-and.html' title='Office suites word processors and spreadsheets'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350409458919284</id><published>2005-04-15T00:41:00.000+06:00</published><updated>2005-04-15T00:41:34.593+06:00</updated><title type='text'>x-window email client of linux</title><content type='html'>&lt;h2&gt;Email clients&lt;/h2&gt;   &lt;p&gt;The program you use to get, write and send your email is often referred to as a "&lt;i&gt;client&lt;/i&gt;". This is to distinguish it from the programs that sit on servers that receive and process emails either sent to or sent from you. Email has become so important in our everyday life that I have observed that advocating one email client over another often takes on a fervor usually associated with religious beliefs. Here we'll look at some of the major email clients for Linux.  &lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://www.ximian.com/products/ximian_evolution/download.html"&gt;Evolution&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;Ximian's Evolution, part of the GNOME desktop project has received a lot of press lately. It is shaping up to be the only serious challenger to Microsoft Outlook's domination of the groupware scene. Seeing that it has all the features of Outlook, &lt;i&gt;sans&lt;/i&gt; the virus problem, then you can see why it's getting some notice. If you're looking for a good email client that comes with scheduling tools, task management, address books and all those things that the busy yet organized person needs, than Ximian is probably the thing for you.       &lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://devel-home.kde.org/%7Ekmail/index.html"&gt;Kmail&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;Kmail is KDE's major email client. It is not a complete groupware solution like Ximian's Evolution, but its email management capabilities are very powerful. There is support for all major types of email transport, intricate configuration of mail filters, complete support for HTML formatted mail and other useful features.   &lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://sylpheed.good-day.net/"&gt;Sylpheed&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;Japanese developer Hiroyuki Yamamoto has developed this fast, easy to use full-featured email client. This client is a big hit with developers as it offers really nice threading (the ability to keep track of all mails based on one original mail) and a fairly good way of managing different email accounts.  If you have to respond to mail in different capacities (boss, friend, worker), Sylpheed offers the tools to do this all in one client.    &lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://www.mutt.org/"&gt;Mutt&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;One of the most famous quotes in the Linux world is the one found at the top of the home page for Mutt: &lt;i&gt;All mail clients suck. This one just sucks less.&lt;/i&gt;. This was said by Michael Elkins, who developed this email client. A lot of people will probably point out, and rightly so, that Mutt doesn't have a graphic user interface. That is true. However, this client is so popular in the Linux world that I just had to include it here. If you are a newcomer to Linux, you may not want to use Mutt just yet. Using it efficiently requires a well-written &lt;tt&gt;.muttrc&lt;/tt&gt; file. This is the main configuration file that determines how Mutt is going to work. However, if you get used to Mutt, you are probably not going to ever switch. It's lack of a pretty interface is more than made up for by the ability you have to configure Mutt. After you have some months behind you working with it, emails will practically write themselves. If you handle a lot of email, this is the client you probably want to at least look into.   &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350409458919284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350409458919284' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350409458919284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350409458919284'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/x-window-email-client-of-linux.html' title='x-window email client of linux'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350377037226842</id><published>2005-04-15T00:35:00.000+06:00</published><updated>2005-04-15T00:36:10.373+06:00</updated><title type='text'>email clients for Linux Systems</title><content type='html'>&lt;h2&gt;Email clients&lt;/h2&gt;   &lt;p&gt;The program you use to get, write and send your email is often referred to as a "&lt;i&gt;client&lt;/i&gt;". This is to distinguish it from the programs that sit on servers that receive and process emails either sent to or sent from you. Email has become so important in our everyday life that I have observed that advocating one email client over another often takes on a fervor usually associated with religious beliefs. Here we'll look at some of the major email clients for Linux.  &lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://www.ximian.com/products/ximian_evolution/download.html"&gt;Evolution&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;Ximian's Evolution, part of the GNOME desktop project has received a lot of press lately. It is shaping up to be the only serious challenger to Microsoft Outlook's domination of the groupware scene. Seeing that it has all the features of Outlook, &lt;i&gt;sans&lt;/i&gt; the virus problem, then you can see why it's getting some notice. If you're looking for a good email client that comes with scheduling tools, task management, address books and all those things that the busy yet organized person needs, than Ximian is probably the thing for you.       &lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://devel-home.kde.org/%7Ekmail/index.html"&gt;Kmail&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;Kmail is KDE's major email client. It is not a complete groupware solution like Ximian's Evolution, but its email management capabilities are very powerful. There is support for all major types of email transport, intricate configuration of mail filters, complete support for HTML formatted mail and other useful features.   &lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://sylpheed.good-day.net/"&gt;Sylpheed&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;Japanese developer Hiroyuki Yamamoto has developed this fast, easy to use full-featured email client. This client is a big hit with developers as it offers really nice threading (the ability to keep track of all mails based on one original mail) and a fairly good way of managing different email accounts.  If you have to respond to mail in different capacities (boss, friend, worker), Sylpheed offers the tools to do this all in one client.    &lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://www.mutt.org/"&gt;Mutt&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;One of the most famous quotes in the Linux world is the one found at the top of the home page for Mutt: &lt;i&gt;All mail clients suck. This one just sucks less.&lt;/i&gt;. This was said by Michael Elkins, who developed this email client. A lot of people will probably point out, and rightly so, that Mutt doesn't have a graphic user interface. That is true. However, this client is so popular in the Linux world that I just had to include it here. If you are a newcomer to Linux, you may not want to use Mutt just yet. Using it efficiently requires a well-written &lt;tt&gt;.muttrc&lt;/tt&gt; file. This is the main configuration file that determines how Mutt is going to work. However, if you get used to Mutt, you are probably not going to ever switch. It's lack of a pretty interface is more than made up for by the ability you have to configure Mutt. After you have some months behind you working with it, emails will practically write themselves. If you handle a lot of email, this is the client you probably want to at least look into.   &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350377037226842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350377037226842' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350377037226842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350377037226842'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/email-clients-for-linux-systems.html' title='email clients for Linux Systems'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350372029095472</id><published>2005-04-15T00:34:00.000+06:00</published><updated>2005-04-15T00:35:20.293+06:00</updated><title type='text'>Popular useful and important programs that run in X-Window</title><content type='html'>&lt;h2&gt;Popular, useful and important programs that run in X-Window&lt;/h2&gt;   &lt;p&gt;At this point you've chosen your window manager and/or desktop environment. Regardless of the "look" you've chosen, you have to have programs to run. You need applications to surf the Internet, write email, manage your files, write letters and a thousand other things you want to do. The rumors you hear about Linux lacking applications or not being able to "make it on the desktop" are false. There is no major application that a computer user needs that Linux lacks.   &lt;/p&gt; &lt;h3&gt;Internet/WWW Browsers&lt;/h3&gt;   &lt;p&gt;&lt;b&gt;&lt;a href="http://home.netscape.com/computing/download/index.html"&gt;Netscape Communicator&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;The heavyweight of all browsers was one of the first to release a version for Linux. Includes an HTML authoring tool and full-featured email program. Comes with the standard plug-ins to view Flash animation and listen and see Real Audio/Video content. At the time of this writing, version 6.2 is available for Linux.  &lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://www.opera.com/"&gt;Opera&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;Billed as the "fastest browser", Opera Software of Norway released their first version of Opera for Linux in March of 2000. These early versions were not stable but the company kept working and released a finished Opera 5 for Linux. At this time, the company has released a beta version Opera 6 which offers plug-in support for Flash and Real Audio/Video. Their browser for Linux still doesn't have the same features as their flagship MS Windows version (like an email client), but it's fast and extremely stable and reliable.    &lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://www.mozilla.org/"&gt;Mozilla&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;Mozilla is the open-source version of Netscape. It is almost identical but the people in the Mozilla project have added some extras to it that give it a bit of an advantage over its "brother", Netscape, like being able to open new tabs (like Opera) instead of only having the open to open new windows. If you don't like cluttering up your desktop, this is a welcome feature.  It also comes with all the support for plug-ins, Java and JavaScript that Netscape has plus the same email client and HTML authoring tools. It also adds an easy to use IRC (Internet Relay Chat) client to its extras.   &lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://www.konqueror.org/"&gt;Konqueror&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;Konqueror, part of the KDE project, is a file manager and Internet browser wrapped up into one. You can surf the net and manage your files at the same time. If you're migrating from Windows, you should find it very similar to Microsoft's Internet Explorer. Includes plug-in support as well as enabling for Java and JavaScript. You need to have KDE installed to run this.   &lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://www.linux.org/lessons/beginner/l19/lesson19g.html" net=""&gt;Galeon&lt;/a&gt;&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;Galeon is the browser associated with the GNOME project. It is based on the Gekko HTML rendering engine that also runs Mozilla  (this converts HTML into content you can read). This browser is essentially Mozilla (you actually need Mozilla to run it) modified somewhat to fit into the GNOME scheme of things. With the use of 'themes', the look is much more configurable than Mozilla itself.  &lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;Now, let's look at some popular email clients available for Linux   &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350372029095472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350372029095472' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350372029095472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350372029095472'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/popular-useful-and-important-programs.html' title='Popular useful and important programs that run in X-Window'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350366172351095</id><published>2005-04-15T00:33:00.000+06:00</published><updated>2005-04-15T00:34:21.726+06:00</updated><title type='text'>Protecting the environment in Linux System</title><content type='html'>&lt;h3&gt;Protecting the environment&lt;/h3&gt;   &lt;p&gt; Most computer users like to have a set of tools that they always see - things  like a clock, a region that displays the date, a button that displays a menu with the programs available for you to use. People have become accustomed to an icon system that sits on a   "desktop" that allows you, with a click of your mouse, to have your favorite program up and running or open a web browser to your favorite website. This usually goes beyond the call of duty for a window manager. In these cases you need the services of a "desktop environment".  This is a uniform looking desktop interface which sits on top of and uses the services of a window manager. There are two major desktop environments, &lt;b&gt;GNOME&lt;/b&gt;, which uses the services of independent window managers (at the time of this writing GNOME runs with Enlightenment) or &lt;b&gt;KDE&lt;/b&gt;, which has its own background window manager, known as &lt;b&gt;&lt;i&gt;kwm&lt;/i&gt;&lt;/b&gt;  &lt;/p&gt; &lt;h3&gt;GNOME or KDE&lt;/h3&gt;   &lt;p&gt;The question: 'Should I use GNOME or KDE?' was a controversial one not so long ago. Luckily, now, it is just a matter of which interface you like more. The controversy stemmed around the KDE project which was founded in 1996 with the goal of creating a uniform desktop experience for Linux. KDE made the decision to use libraries to create the desktop interface which were not open source. The libraries in question, known as 'QT' are now open source, so the question is pretty much moot. However, at the time, the issue inspired a young Mexican developer named Miguel de Icaza to create a desktop interface known as GNOME.  &lt;/p&gt; &lt;p&gt;GNOME was founded in August of 1997 and was an attempt to create a uniform desktop manager that was totally compliant with the GNU's General Public License, avoiding the licensing issues involved in the case of KDE's using the QT libraries. Miguel de Icaza and Nat Friedman founded Helix Code in 1999 to oversee the business end of developing the GNOME desktop. Helix Code later changed its name to Ximian.   &lt;/p&gt; &lt;h3&gt;What GNOME and KDE can offer&lt;/h3&gt;   &lt;p&gt;Both of these desktop environments offer a Microsoft Windows-like experience. To date, KDE is the only one of the two to offer an office suite for word processing and its own web browser. Other than that, both offer top-rate productivity applications like email clients, agenda and scheduling software and address books.  They offer multi-media software for playing CDs, MP3s and other music formats. Both offer a large selection of games in addition to other sundry applications for system monitoring and other miscellaneous tasks.  &lt;/p&gt; &lt;h3&gt;Where to get these desktop environments&lt;/h3&gt;   &lt;p&gt;Most distributions come with both the GNOME and KDE desktop environments. However, if your distribution did not have this or you are reading this and have not yet installed Linux, you may want to check out both offerings.   &lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="http://www.kde.org/"&gt;KDE homepage&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ximian.com/"&gt;Ximian Inc.&lt;/a&gt;  &lt;/li&gt; &lt;/ul&gt;   &lt;p&gt;You can also download the latest versions from their homepages.    &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350366172351095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350366172351095' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350366172351095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350366172351095'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/protecting-environment-in-linux-system.html' title='Protecting the environment in Linux System'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350360411007355</id><published>2005-04-15T00:32:00.000+06:00</published><updated>2005-04-15T00:33:24.116+06:00</updated><title type='text'>Choosing the look that is right for you</title><content type='html'>&lt;h3&gt;Choosing the look that's right for you &lt;/h3&gt;   &lt;p&gt;In recent years, as Linux has become more popular, members of Linux community have tried  hard to shake off the reputation, which I feel has always been unwarranted, that the graphical user interface for Linux is at best, boring and at worst, unmanageable. This is based on, of course, comparisons with the user friendliness of the omnipresent MS Windows  and the well-deserved good reputation of the Macintosh OSes. After using Windows 95 from 1995 until the end of 1997 and testing various Mac OSes extensively (at one point using Mac OS 8 exclusively for one month - I was staying with relatives and needed to get some work done), I can safely say that Linux doesn't and probably hasn't had a reason to envy the other two major OS offerings in terms of graphic interfaces since about 1998. Graphic user interfaces under Linux are comparable with these other ones in just about everything and even enjoy some advantages. The major one over MS Windows is, of course, stability and security. The advantage over Macintosh is primarily cost related.  &lt;/p&gt; &lt;p&gt;If you're reading this, then you've probably made the decision to try Linux. Before we  talk about what your Linux desktop is going to look like, we should first talk  about the difference between a &lt;i&gt;window manager&lt;/i&gt; and a &lt;i&gt;desktop environment&lt;/i&gt;.  &lt;/p&gt; &lt;h4&gt;Window managers&lt;/h4&gt;   &lt;p&gt;Most programs made for computers nowadays run in a graphic environment. However, it became apparent that these programs would be more efficient if they could take their attributes from a common source. This is what a window manager does. It decides how the window is going to look, the aspect of its buttons and frames. It determines how it  is going to reacted when you click in it or you reduce it or re-size it.   &lt;/p&gt; &lt;p&gt;There are more than two dozen different window managers available for Linux. The more popular ones make their way onto Linux distributions. They range from completely minimalist to well-engineered works of art. Here is a list of the ones that generally find their way onto the major distributions' CDs.  &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;ul&gt; &lt;li&gt;the &lt;a href="http://www.fvwm.org/"&gt;fvwm&lt;/a&gt; family &lt;/li&gt;&lt;li&gt;&lt;a href="http://sourceforge.net/projects/blackboxwm/"&gt;Blackbox&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.icewm.org/"&gt;IceWM&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://sawmill.sourceforge.net/"&gt;Sawfish&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.enlightenment.org/"&gt;Enlightenment&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.windowmaker.org/"&gt;WindowMaker &lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.afterstep.org/Themes.php"&gt;AfterStep&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt;   &lt;p&gt;You can check out the above sites and find one that you like. The first one, FVWM, is my personal favorite. It is also the most minimalist of the one's I've listed here. This is, as far as I know, the oldest of the aforementioned as well. This is not meant to be an endorsement of this window manager. I just happen to like its minimalist approach and low memory requirements. I'd rather pass that RAM savings on to the really important applications running on my computer.  &lt;/p&gt; &lt;p&gt;I have provided a &lt;a href="http://www.linux.org/lessons/beginner/l19/fvwm2.html"&gt;screenshot&lt;/a&gt; (153k) of the my view on the world of Linux. &lt;b&gt;&lt;sup&gt;*&lt;/sup&gt;&lt;/b&gt; I have a menu item that links to a script that will place a new picture as the desktop image when I get bored of the one I've been seeing for a couple of days (or hours, depending on my threshold of boredom at  the moment).  &lt;/p&gt; &lt;p&gt;I have fun tweaking the configuration file. I think the main reason that a lot of people prefer other windows managers to fvwm2 is that the file that sets up your desktop menus and buttons and other things has to be worked on by hand. They really prefer the click-as-you-go configuration of other window managers.  I happen to like experimenting and I am prone to change it once a  month or so (depending on that threshold of boredom factor again). Fvwm2 is so configurable that if you got 5 different configuration files, known as  &lt;b&gt;&lt;tt&gt;.fvwm2rc&lt;/tt&gt;&lt;/b&gt;, off the Internet and tried them out, you would swear that you're seeing 5 different window managers.   &lt;/p&gt; &lt;p&gt;You can check out the &lt;a href="http://www.linux.org/lessons/beginner/l19/fvwm2.html#rc"&gt;.fvwm2rc &lt;/a&gt; file behind the above screenshot. I'd like to acknowledge that the main file was written by Jay Kuri. Thanks Jay, wherever you are. I also included some tweaks that I got here and there. The main buttons you see are from Eric S. Raymond's (author of &lt;i&gt;The  Cathedral and the Bazaar&lt;/i&gt;) &lt;tt&gt;.fvwm2rc&lt;/tt&gt; and modified slightly.  &lt;/p&gt; &lt;p&gt;Of course, everyone is not into tweaking and prefer a more "clickable" configuration. Peruse the offerings out there and choose one that suits your needs. You may also want to hold of on the window managers for a bit  and read the next section. We talk about &lt;i&gt;desktop environments&lt;/i&gt;,  the ultimate user-friendly GUI experience for Linux.   &lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;sup&gt;*&lt;/sup&gt;&lt;span style="font-size:85%;"&gt;There's a neat application called &lt;i&gt;gkrellm&lt;/i&gt; that keeps track of a lot of things that are going on with the system besides displaying the  time and date. MS Windows users should take note of the uptime (last time of reboot) of 27 days, 21 hours. We had a power blackout that lasted about 3 hours while a transformer in my neighborhood was being fixed. Previous uptime was 31 days. I don't remember what happened 31 days before that.&lt;/span&gt;  &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350360411007355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350360411007355' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350360411007355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350360411007355'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/choosing-look-that-is-right-for-you.html' title='Choosing the look that is right for you'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350352149159845</id><published>2005-04-15T00:31:00.000+06:00</published><updated>2005-04-15T00:32:01.493+06:00</updated><title type='text'>default booting option inittab</title><content type='html'>&lt;h3&gt;To boot or not to boot (in graphics mode), that is the question. &lt;/h3&gt;   &lt;p&gt;Before we start talking about the different windows managers and desktop environments that  are available for Linux, let's first see how our bare-bones X-Window setup is working. Some X programs don't need a windows manager to run, so let's try a simple experiment with one of them. Type this in your terminal window: &lt;/p&gt; &lt;blockquote&gt; &lt;tt&gt;xinit /usr/X11R6/bin/xedit&lt;/tt&gt; &lt;/blockquote&gt;   &lt;p&gt;This will fire up a simple text editor called 'xedit'. You can try writing something and pushing the buttons. When you push 'quit', you'll notice you go  back to your standard terminal. Try the same with an x-terminal:  &lt;/p&gt; &lt;blockquote&gt; &lt;tt&gt;xinit /usr/X11R6/bin/xterm&lt;/tt&gt; &lt;/blockquote&gt;   &lt;p&gt;Type in a few commands. Then type 'exit'. Your x-term session ends and your back in your terminal.  &lt;/p&gt; &lt;p&gt;There isn't any practical reason to use X-Window in this way. It's better to use its  powerful capabilities with a full-featured windows manager and desktop environment.  &lt;/p&gt; &lt;p&gt;Before we go on to talk about choosing a windows manager that suits you, we should talk about how you want  your computer to boot. Do you want it to go directly to a graphical environment or do you want your machine to boot into text mode where you would then issue the 'startx' command? If you want graphics mode right away, then you need to have a program like &lt;i&gt;xdm&lt;/i&gt;, which will start your windows manager of choice, or 'kdm' or 'gdm' which will start KDE or GNOME, two desktop environments that we'll talk about a little later.  &lt;/p&gt; &lt;p&gt;The decision to startup graphically is made when you first install Linux. If you found that you've changed your mind; that is, you now want to startup graphically or vice-versa, you can usually change this with your distribution's tools.   &lt;/p&gt; &lt;p&gt;You can change the start-up behavior by going to your /etc/ directory and changing a file. The file name will depend on your distribution. With SuSE, for example, it is the file called &lt;tt&gt;rc.config&lt;/tt&gt;. You should change the line:  &lt;/p&gt; &lt;blockquote&gt; DISPLAYMANAGER="" &lt;/blockquote&gt;   &lt;p&gt;to:  &lt;/p&gt; &lt;blockquote&gt; DISPLAYMANAGER="xdm" &lt;/blockquote&gt;   &lt;p&gt;You may also use 'kdm' or 'gdm' here. Make sure that your CHECK_INITTAB setting is  &lt;i&gt;"yes"&lt;/i&gt;  &lt;/p&gt; &lt;p&gt;In the case of RedHat and RedHat based distributions (Mandrake, KRUD), you'll need to  change the file &lt;tt&gt;/etc/inittab&lt;/tt&gt;. In the line: &lt;tt&gt;id:3:initdefault:&lt;/tt&gt;, the number &lt;b&gt;3&lt;/b&gt; needs to be changed to a &lt;b&gt;5&lt;/b&gt;    &lt;/p&gt; &lt;p&gt;As I mentioned, if you want to do just the opposite, change the default graphical login to a text mode login (something which I recommend), just reverse all those changes above. If you decided not to use a graphical login, you may want to un-install 'xdm' (or gdm/kdm).  &lt;/p&gt; &lt;p&gt;Well, now that we're clear on whether to use a graphical start-up or not, let's explore some of the possibilities for your Linux desktop.   &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350352149159845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350352149159845' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350352149159845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350352149159845'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/default-booting-option-inittab.html' title='default booting option inittab'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350345469579278</id><published>2005-04-15T00:30:00.000+06:00</published><updated>2005-04-15T00:30:54.700+06:00</updated><title type='text'>X-Window configuration of Linux</title><content type='html'>&lt;h3&gt;X-Window configuration&lt;/h3&gt;   &lt;p&gt;In Linux days of yore, it used to be quite a task to get X-Window running even on a standard Intel type PC. Now all of the major distributions have their own tools to get X running in no time.  &lt;/p&gt; &lt;p&gt;SuSE offers a program called &lt;b&gt;&lt;i&gt;Sax&lt;/i&gt;&lt;/b&gt;. This is about the most user-friendly program I have yet encountered for X setup. It is graphical, so the simple fact that you can run it before  you've even start configuring X is a good sign.   &lt;/p&gt; &lt;p&gt;Mandrake offers their X configuration right in the install package so you go from start to finish all in the same package.   &lt;/p&gt; &lt;p&gt;However, given a situation where your X setup doesn't go smoothly, you can do this this step by step, in text mode, with a program called &lt;i&gt;xf86config&lt;/i&gt;. This is a last resort and will almost always get you good results.   &lt;/p&gt; &lt;p&gt;This program asks you questions about your peripheral hardware, like your keyboard, mouse and monitor. Here are a couple of examples of what it looks like:  &lt;/p&gt; &lt;p&gt;&lt;img src="http://www.linux.org/lessons/beginner/l19/x86config_shot.gif" alt="screenshot1" /&gt;  &lt;/p&gt; &lt;p&gt;&lt;img src="http://www.linux.org/lessons/beginner/l19/x86config_shot2.gif" alt="screenshot1" /&gt;  &lt;/p&gt; &lt;p&gt;The most important questions that this program will ask you about your hardware are the ones about your monitor. I don't mean to imply that the others are not important. For example, if you don't answer the type of questions about your mouse correctly, your mouse won't work. Or if you don't enter the country/language values for your keyboard layout, you may not be able to use letters or symbols that exist in your native language. That is obviously important. However, if you don't enter the values correctly for the type of monitor you have, &lt;b&gt;your monitor can get seriously damaged&lt;/b&gt;. If you enter the &lt;b&gt;vertical and horizontal refresh rates&lt;/b&gt; incorrectly, your monitor will become just another useless piece of plastic and glass, like so many others waiting to be thrown away or recycled. It's beyond the scope of this lesson to explain what the vertical and horizontal refresh rates mean (actually, it's the horizontal one that's a real stickler) but trust me - you need to go get the manuals for your monitor and enter the real values when it asks you. If you don't believe me, this is what &lt;tt&gt;xf86config&lt;/tt&gt; says  &lt;/p&gt; &lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;&lt;i&gt; It is VERY IMPORTANT that you do not specify a monitor type with a horizontal sync range that is beyond the capabilities of your monitor. If in doubt, choose a conservative setting.&lt;/i&gt;&lt;/span&gt; &lt;/blockquote&gt;   &lt;p&gt;At this point in the configuration, you can choose option &lt;b&gt;11&lt;/b&gt; and enter your own values from the monitor's manuals and you'll be sure to get the correct settings.  &lt;/p&gt; &lt;p&gt;Once you have passed this point, the questions are more straight forward and errors have less grave consequences.   &lt;/p&gt; &lt;p&gt;In the past years, as I mentioned, major Linux distributions have streamlined this process so you probably won't even need &lt;tt&gt;xf86config&lt;/tt&gt;. But it's nice to know you have it there, especially if your hardware is proving to be less than cooperative.    &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350345469579278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350345469579278' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350345469579278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350345469579278'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/x-window-configuration-of-linux.html' title='X-Window configuration of Linux'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350339968581388</id><published>2005-04-15T00:29:00.000+06:00</published><updated>2005-04-15T00:29:59.686+06:00</updated><title type='text'>The GUI family tree</title><content type='html'>&lt;h3&gt;The GUI family tree&lt;/h3&gt;   &lt;p&gt;Without getting into a lot of technical jargon, in order for those nice windows (yes, with a small 'w') to appear on your computer screen, you have to have some graphics libraries installed on your computer. These libraries determine how a window is to appear, what it is supposed to look like and what the buttons and menus are supposed to do. That fact that you can use GUI based computing under Linux goes back to the time before Linux was even thought of. In the mid-eighties at the Massachusetts Institute of Technology they came up with the &lt;i&gt;&lt;b&gt;X window system&lt;/b&gt;&lt;/i&gt;. By 2002 standards it was a primitive GUI system to run programs with. The main idea behind this actually came from an earlier project at Xerox called WIMP (Windows, Icons, Menus, Pointer), a project that essentially started the idea that computers could be used in an attractive graphical environment. &lt;sup&gt;1&lt;/sup&gt;  &lt;/p&gt; &lt;p&gt;The 'X Window system' provided the libraries to make the frames, buttons and menus that make up a window. Development of X Window still continues under the auspices of the X Consortium. In 1992 the XFree86 Project was started. This aimed to develop a free version of the X Window System. There have been several versions of XFree86 and the current stable version at the time of this writing is XFree86 4.0. Though there are other equivalents to the libraries that XFree86 offers, it is by far the most widely used window system under Linux. Any attempt at using Linux as a desktop operating system to get "productive" work done (word processing, spread sheets) or to entertain oneself (play games, listen to music, watch TV) will start with the installation of XFree86.  &lt;/p&gt; &lt;p&gt;With major distributions, the install process takes care of getting XFree86 on to your system. There are two parts to this. One is installing  XFree86 itself. The other is installing the X server that goes with your particular hardware. The X server is just the means of getting XFree86 to work with the graphics card that you have in your computer. For example, if you have a graphics card from ATI, then you would install the XFree packages along with the X server package for ATI. If you have an S3 card, then XFree86 and the X server for S3 cards should get installed. I explain this because some distributions do a pretty fine job of getting you up and running, but you may get asked what graphics card you have when you do a more interactive type of  install of Linux. In this case, you have to know what card you have so the correct X server gets installed and you can have a graphical environment to look  at after the install process is finished.  &lt;/p&gt; &lt;p&gt;Recently, major Linux distributions will also offer you the possibility of getting right into the GUI when you turn on your computer. This is done by way of the program XDM. This is the Microsoft Windows influence on how things are done that I mentioned before. Traditionally in Linux, you would turn on your  computer and get the black screen and the command prompt. Then you would type: &lt;/p&gt; &lt;blockquote&gt; &lt;tt&gt;startx&lt;/tt&gt; &lt;/blockquote&gt;   &lt;p&gt;and your graphical environment of choice comes up. 'Choice' is the key word here. By having the command prompt and then issuing a command to start the GUI, you can switch into any number of desktop environments "on the fly". Of course, if you're not interested in having more than one, then you can use XDM and have your favorite desktop there waiting for you.   &lt;/p&gt; &lt;p&gt;Regardless of the way you choose to start up your machine, before you see your desktop utilities of choice, we're going to have to configure XFree86  to use your monitor, mouse and keyboard. That is, whether you type &lt;tt&gt;startx&lt;/tt&gt; or not, we'll have to come up with a configuration so we can, in fact &lt;i&gt;start X&lt;/i&gt;.  &lt;/p&gt; &lt;p&gt; &lt;span style="font-size:85%;"&gt;&lt;sup&gt;1&lt;/sup&gt; The X Window User HOWTO by Ray Brigleb, 1999 &lt;/span&gt;  &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350339968581388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350339968581388' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350339968581388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350339968581388'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/gui-family-tree.html' title='The GUI family tree'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350334271117035</id><published>2005-04-15T00:28:00.000+06:00</published><updated>2005-04-15T00:29:02.713+06:00</updated><title type='text'>Graphic User Interfaces with Linux</title><content type='html'>&lt;h2&gt;Graphic User Interfaces with Linux &lt;/h2&gt;   &lt;h3&gt;Some preliminary commentary and perspective&lt;/h3&gt;   &lt;p&gt; As much as I like Linux and think that it is the best operating system out there today, most people who use computers equate Microsoft with computing. In particular, the only computing environment that most PC users have ever seen comes in the successive versions of their flagship operating system Windows(tm).  However, computer scientists and people who have an interest in computers beyond the mere end-user stage know that graphic user interfaces or desktop environments  like Windows really represent the look and feel of the computer experience, but not the experience itself. Windows has become famous for essentially blurring the reality of what a computer really does. That is to say that Microsoft Windows, especially since the release of Windows 95, has masked any trace of  the traditional "black" computer screen experience. It was still there - you just couldn't see it unless you purposely looked for it.  &lt;/p&gt; &lt;p&gt;Bill Gates, chairman of the Microsoft Corporation once stated that: &lt;i&gt;"Linux is 1960's technology with a new development model". &lt;/i&gt; What does he mean by this? I think basically that he bet his whole company on the assumption that people didn't want to see the traditional black screen and the command prompt anymore. The sales of Windows 95 proved that with a good marketing campaign he was able to sell the idea that people didn't want it and people responded. Then Linux started to gain in popularity and be noticed by a certain segment of the public around 1998-99. The problem was that Linux offered the black screen and the graphic user interface as a separate package.  Bill Gates had already established that this was a no-no and so Linux gets chalked up as "retrograde".   &lt;/p&gt; &lt;p&gt;Now it's 2002 and Linux still offers the black screen and graphic user interface separately. But then again, a lot has happened since 1998. For one, IBM has spent 1 billion US dollars on Linux and essentially gotten its investment back. Linux's market share continues to rise. It still pales in comparison with Microsoft's desktop popularity - so much so that as most everyone knows, Microsoft was convicted of being a monopoly in restraint of trade. Then again, in 2000 and 2001 successive email viruses and worms crippled Windows-based IT  departments and brought scores of corporate networks to a grinding halt. Why?  Because we're in a new world of connectivity. Bill Gates' comment about Linux may be turned back now upon his own company. If you asked your average Linux enthusiast what he or she thinks of Windows, you might get this reply: "Windows is pre-Internet technology with a slick new marketing campaign". Microsoft spends most of its days now fighting security brush fires because in blurring the difference between the operating system and the graphic user interface it sacrificed security for ease of use. Windows development model was conceived before everybody's computers where connected to each other and it continues to reflect that. Linux, however, was born on the Internet and grew up with it. Unfortunately, more complaints about Linux's perceived lack of user friendliness outnumber complaints about Windows being  essentially a &lt;a href="http://www.wikipedia.com/wiki/Maginot+Line"&gt;Maginot Line&lt;/a&gt;   solution for secure computing. Hopefully in this  lesson on graphic user interfaces under Linux, you'll get a good idea how the  balance between user friendliness and security is a good one with our favorite OS.   &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350334271117035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350334271117035' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350334271117035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350334271117035'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/graphic-user-interfaces-with-linux.html' title='Graphic User Interfaces with Linux'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350312686022543</id><published>2005-04-15T00:25:00.000+06:00</published><updated>2005-04-15T00:25:26.863+06:00</updated><title type='text'>Ogg Format in Linux</title><content type='html'>&lt;h2&gt;Ogg format&lt;/h2&gt;   &lt;p&gt;Due to the restrictions on the use of MP3 technology, Ogg Vorbis is a good way to enjoy digital music in a compressed format. Though it is associated more with the Linux and Open Source world, both Windows and Macintosh ports of the Ogg libraries are also available. This is proof of its growing popularity as a digital music format. There are even companies now using Ogg format for sound in their games. You can read the  &lt;a href="http://www.vorbis.com/ot/"&gt; latest news&lt;/a&gt; on the status of the Ogg Vorbis project at their website.  &lt;/p&gt; &lt;h3&gt;Installation of the Ogg libraries&lt;/h3&gt;   &lt;p&gt;First, in order to listen to and make files in Ogg Vorbis format, you should to go over to the Ogg Vorbis website and &lt;a href="http://www.vorbis.com/download_unix.psp"&gt; download&lt;/a&gt; some packages  that are needed: &lt;i&gt;libao&lt;/i&gt;, &lt;i&gt;libogg&lt;/i&gt; and &lt;i&gt;libvorbis&lt;/i&gt; These are the actual libraries that do the compression and decompression of the sound. The command line software for coding and playing the *.ogg files can be found in there as well, in a package called &lt;i&gt;&lt;b&gt;Vorbis-Tools&lt;/b&gt;&lt;/i&gt;. Included in this last package are the programs &lt;i&gt;oggenc&lt;/i&gt; and &lt;i&gt;ogg123&lt;/i&gt;. These are designed to work in the same way as the packages &lt;i&gt;bladeenc&lt;/i&gt; and &lt;i&gt;mpg123&lt;/i&gt; in the MP3 world. Their command line options are essentially the same.   &lt;/p&gt; &lt;p&gt;Before you actually visit the site and start downloading, if you have bought a boxed set of a major Linux distribution recently, you should have these libraries included on the CDs and be able to install this painlessly with your distribution's installation tools. If you got your  CDs from your cousin Larry with "&lt;i&gt;Redhat&lt;/i&gt;" written on them in magic marker, then feel free to go over and download the RPMs at &lt;a href="http://www.vorbis.com/"&gt;www.vorbis.com&lt;/a&gt; and install them, as you remember from our lesson on RPMs.  &lt;/p&gt; &lt;blockquote&gt;  &lt;pre&gt;rpm -i libao-[whatever's current].i386.rpm&lt;/pre&gt; &lt;pre&gt;rpm -i libogg-[whatever's current].i386.rpm&lt;/pre&gt; &lt;pre&gt;rpm -i libvorbis-[whatever's current].i386.rpm&lt;/pre&gt; &lt;pre&gt;rpm -i vorbis-tools-[whatever's current].i386.rpm&lt;/pre&gt;  &lt;/blockquote&gt;   &lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; Don't get the source RPMs (the one with 'src' in the title). You won't need those if you're running Red Hat or any RPM based distribution (like Mandrake, KRUD etc.). Also, install in the order I have given you above and do this &lt;b&gt;as the 'root' user&lt;/b&gt;  &lt;/p&gt; &lt;p&gt;If you've got some other distribution like Slackware that works better with tarballs than RPMs (or if you are feeling adventurous/masochistic, then get the files ending with &lt;b&gt;*.tar.gz&lt;/b&gt; (the tarballs). Un-zip and un-tar them and read the &lt;i&gt;readme&lt;/i&gt; and/or &lt;i&gt;install&lt;/i&gt; files which will instruct you how to get those packages installed and working. I took this from libogg's own README file:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;./configure&lt;br /&gt;make&lt;br /&gt;&lt;br /&gt;and optionally (as root):&lt;br /&gt;make install&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;I guess you get the idea. Now let's see what we can do with these libraries and programs to get some nice sounding *.ogg files.  &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350312686022543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350312686022543' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350312686022543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350312686022543'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/ogg-format-in-linux.html' title='Ogg Format in Linux'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350308968004220</id><published>2005-04-15T00:24:00.000+06:00</published><updated>2005-04-15T00:24:49.693+06:00</updated><title type='text'>MP3 Play in Linux Systems</title><content type='html'>&lt;h2&gt;MP3 format&lt;/h2&gt;   &lt;p&gt;If you've touched a computer in the last couple of years you've at least heard about the MPEG layer 3 format, popularly known as MP3. You have probably listened to an MP3 and you may have even "ripped a track", that is, made an MP3 file  from a song on a CD.  &lt;/p&gt; &lt;p&gt;MP3 has become somewhat controversial. In light of the Napster case, sharing MP3 files has opened up a Pandora's Box of questions about copyright, fair use and intellectual property. This really isn't the place to debate those questions but there are some issues related to the making of MP3s that concern Linux, Open Source and Free Software in particular.   &lt;/p&gt; &lt;p&gt;We'll talk about the programs available to make sound files in MP3 format, but I should point out that MP3 is a non-free format. That is to say, the Fraunhofer Institute and Thomson Multimedia developed MPEG Layer 3  technology and they hold the patent rights it. If you want to write programs that encode and/or decode MP3 format, you have to pay licensing fees. Thomson has set up a &lt;a href="http://mp3licensing.com/"&gt; website to talk about these issues&lt;/a&gt;, if you're interested. What does this mean for Linux? Well, if you are an advocate of the Open Source and/or Free Software model that Linux grew out of, MP3 might be seen as a format to be avoided. Actually, if you think this way, you now have an alternative with Vorbis' *.ogg format. We'll talk about that shortly. But being that MP3 is so prevalent nowadays and  encoders/decoders do exist for Linux, we'll talk about making and playing MP3 files.  &lt;/p&gt; &lt;p&gt;Let's go back to our "reminder" system. If you go into the /reminders directory we created (cd reminders) and type:   &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;ls -l *.wav&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;you'll see that the default quality of a 5 second recording gives us a file of about 1/4 megabyte. If we made the file a little better, as I do when I'm working with sample sentence for language learning, you doubled the file size to just under half a megabyte each. To check this, I made one of each format:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;-rw-r--r--    1 mike     users      132344 Nov 27 12:11 0intro.wav&lt;br /&gt;-rw-r--r--    1 mike     users      220544 Nov 28 08:37 2001-11-28_fair.wav&lt;br /&gt;-rw-r--r--    1 mike     users      441044 Nov 28 08:34 2001-11-28_good.wav&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;If for some reason you wanted to keep these reminders, files of this size would quickly begin to take up space. Disk space is cheap, but there's no reason to occupy space if we can compress it. We could take out our tools gzip or bzip2 that we learned about in a previous lesson. 'bzip2' will actually get the file down to about half its original size:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;-rw-r--r--    1 mike     users      206442 Nov 28 08:34 2001-11-28_good.wav.bz2&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;But there is a much better way of doing this, for now, by converting it to MP3 format. Look what we get for the same file as an MP3:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;-rw-r--r--    1 mike     users       80234 Nov 28 08:48 2001-11-28_good.mp3&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;You've got it down to about one fifth of its size. And you can hear it right away with an MP3 decoder/player. Let's show how we did this.  &lt;/p&gt; &lt;p&gt;First of all, you need a program that converts *.wav files to MP3 format. There are a few of these available for Linux. One of these, and probably the most popular, is Tord Jansson's BladeEnc. He's had some trouble with the MP3 patent holders so, again, we've stepped into controversy here. How do we avoid bringing patent holders' wrath down upon ourselves? Well, by going over to &lt;a href="http://www.iis.fhg.de/amm/download/"&gt;Fraunhofer's website&lt;/a&gt; and getting a demo of their MP3 encoder, appropriately called 'mp3enc' (the demo is actually called 'mp3encdemo' - very logical) we can convert these files in MP3 format. That will at least give us an idea about how all this works in Linux.  &lt;/p&gt; &lt;p&gt;You'll get a *.tgz (Slackware package) compressed file. Just unzip and untar in your home directory:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;tar -zxvpf mp3encdemo.tgz (or whatever the current file is called)&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;There is a pre-compiled binary (aka - program that works right away) and some documentation (manual, other README files). There is a section in the manual that says "For the impatient". Being impatient by nature, I went right to that and found out how to convert my *.wav files to acceptable quality MP3s. Now, we're lucky that our reminders aren't very long, because the generous Fraunhofer people have given us a demo that only encodes 30 second long files. I know what you were thinking. You were going to run next door and borrow the neighbor's "Greatest Punk Love Songs" and start rippin'. We'll you're out of luck unless you want to do a medley. At any rate, the Fraunhofer demo will do nicely for learning purposes. To use the program, just pick one of the reminders and type:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;mp3encdemo -br 128000 -if 2001-[whatever].wav -of 2001-[whatever].mp3&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;where [whatever] is the date of your reminder. Let's look at these options. &lt;i&gt;&lt;b&gt;-br&lt;/b&gt;&lt;/i&gt; stands for &lt;i&gt;bitrate&lt;/i&gt;  This is 128 kilobits per second and you'll get an acceptable, almost CD quality file. &lt;i&gt;-if&lt;/i&gt; stands for "if it works" - naah - that's only a joke. (I couldn't resist). &lt;i&gt;-if&lt;/i&gt; means &lt;i&gt;input file&lt;/i&gt;, that is, the file your inputing or feeding to the encoder. Logically then, &lt;i&gt;-of&lt;/i&gt; means &lt;i&gt;output file&lt;/i&gt;, the MP3 file you're going to get. There you have it. Feel free to encode any files you want. (as long as they're under thirty seconds, of course)  &lt;/p&gt; &lt;p&gt;Actually any MP3 encoder for Linux that you can find out there works in basically the same way. You input a *.wav file with some options and you get an MP3 file. The program BladeEnc that we mentioned before, behaves similarly and there is no 30 second limit. (wink, wink, nudge nudge, and the author begins to whistle nervously)  &lt;/p&gt; &lt;h3&gt;Playing MP3 files &lt;/h3&gt;   &lt;p&gt;OK. Now we have our MP3 file. That begs the question: How can I hear it? Well, we need an MP3 decoder and/or player. I say "and/or" because these could be two different things under the x-window system. Popular graphic MP3 players are actually front-ends for MP3 decoders. That means they provide a graphic control panel for using a program that you don't really see. That's why I usually use the command line programs, as I mentioned earlier. So let's  save some CPU power and learn how things work in the process.  &lt;/p&gt; &lt;p&gt;'mpg123' is a very popular command line program for playing MP3 files. It is also highly versatile. You can create playlists and play songs in alphabetical order or in random order. You can even play little tricks and create weird disco versions of songs. (no kidding) You can even "reverse engineer" the MP3 file or even parts of it back to *.wav format. As far as I have tried, most graphic programs can manipulate playlists and add an echo effect but can't take full advantage of mpg123's features. You can only do it on the command line.    &lt;/p&gt; &lt;p&gt;Anyway, 'mpg123' comes with most major distributions. If you visit  &lt;a href="http://www.mpg123.de/"&gt; mpg123's home page&lt;/a&gt;  you can find out all about it. You can also get source code and RPMs if you don't have it installed already.  &lt;/p&gt; &lt;p&gt;To simply play an MP3 file, enter the directory where the files are and type:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;mpg123 your_mp3_file.mp3&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;Let's say you already have a lot of MP3s. You may have gotten some ... then again, I don't want to know where you got them. You could random play them  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;mpg123 -z *.mp3&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;One of my favorite things to do is to create a playlist. Here's how I do it. This will be good review practice for the command line as well.  &lt;/p&gt; &lt;p&gt;First, I enter a directory where I have MP3s:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;cd classical&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;Then I see what songs I have:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;ls *.mp3&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;Then I pick out some songs that I particularly like and make a file that is going to be my playlist:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;ls -1 Mozart_nightmusic.mp3 &gt; favorites&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;The command 'ls' with the option '-1' lists the file name without any other information. The &lt;b&gt;&lt;i&gt; &gt; &lt;/i&gt;&lt;/b&gt; symbol as you remember from our lesson on pipes, etc. creates a file called 'favorites' and includes the 'ls -1' output in it. To add more songs, we would repeat the same command, but this time we would (obviously) change the MP3 file name and &lt;b&gt;most importantly&lt;/b&gt; we would change the one &lt;i&gt;&lt;b&gt; &gt; &lt;/b&gt;&lt;/i&gt; symbol to &lt;b&gt;two&lt;/b&gt; &lt;i&gt;&lt;b&gt; &gt;&gt; &lt;/b&gt;&lt;/i&gt; symbols. This way, we just add to the playlist file and we don't overwrite the file as would be the case if we didn't use two &lt;i&gt;&lt;b&gt; &gt;&gt; &lt;/b&gt;&lt;/i&gt; symbols.  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;ls -1 Beethoven_fur_elise.mp3 &gt;&gt; favorites&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;So I'd just keep adding songs until I had a nice playlist. To see the list, you'd just type:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;less favorites&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;If everything is satisfactory, then we can play these songs. Just type:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;mpg123 -@ favorites&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;The email (@) symbol tells mpg123 to look for the playlist. That would play the songs in the order they are on the list. If you want to play them in random order, you would just add a &lt;b&gt;-z&lt;/b&gt; before the &lt;i&gt;-@&lt;/i&gt; option  &lt;/p&gt; &lt;h3&gt;More fun with mpg123 &lt;/h3&gt;   &lt;p&gt;Let's say you wanted to play "Name That Tune". Don't laugh! I have done this at parties. You know, you only play so much of a song and the people have to guess which one it is. Well, with mpg123, you're all set. This command will only play the first 50 "frames" of a song:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;mpg123 -k 0 -n 50 Mozart_nightmusic.mp3&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;And you'll have the liveliest parties on your block! All courtesy of Linux and mpg123! Seriously, the &lt;b&gt;-k&lt;/b&gt; option tells the program which frame to start at and then &lt;b&gt;-n&lt;/b&gt; option indicates where it should stop. Pretty easy!  &lt;/p&gt; &lt;p&gt;You want more party ideas? Well, how about doing Techno-Mozart? That's easy too. Just type:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;mpg123 -d 2 Mozart_nightmusic.mp3&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;This will make the program skip over every 2nd frame. That is, it will play a frame and skip one. This is *not* the Chipmunk effect. You will hear the same tone of voice because this doesn't effect the sampling rate of the file. It will just sound "techno" as I pointed out. Even though I mentioned parties and that, I have used this program and this effect in my language work for purposes of "serious" study. As the rate of the voice is not altered, you can change the number and see at what point people can't understand something. By this, you can test the aural skills of a person learning a language. By the way, you can also do the opposite by changing the &lt;b&gt;&lt;i&gt;-d X&lt;/i&gt;&lt;/b&gt; option to &lt;b&gt;&lt;i&gt;-h X&lt;/i&gt;&lt;/b&gt;. Instead of skipping frames, mpg123 will play the same frame X number of times. Remember, these options do not produce the "slow-mo" or "Chipmunk" effects. It just slows down the speed of playback.    &lt;/p&gt; &lt;p&gt;As we mentioned before, you can also "reverse engineer" the MP3 file back to a *.wav format. Remember, before you try this at home, the *.wav format is at least 5 times bigger, so make sure you've got plenty of hard disk space.   &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;mpg123 -w Mozart_nightmusic.wav Mozart_nightmusic.mp3&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;You can also use the different options like &lt;i&gt;-d&lt;/i&gt; or &lt;i&gt;-h&lt;/i&gt; combined with the &lt;i&gt;-k&lt;/i&gt; and &lt;i&gt;-n&lt;/i&gt; to produce weird *.wav sound effects files. Your imagination is the limit. If you do want to do techno-multimedia things with mpg123, you can use the &lt;b&gt;-v&lt;/b&gt; option to get complete information about the track your playing.  &lt;/p&gt; &lt;p&gt;Well, after all that is said and done about MP3, I must confess that I don't like working with MP3s as much as I like working with the new, free (as in beer and source code) Ogg Vorbis format.  &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350308968004220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350308968004220' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350308968004220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350308968004220'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/mp3-play-in-linux-systems.html' title='MP3 Play in Linux Systems'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350302204322054</id><published>2005-04-15T00:22:00.001+06:00</published><updated>2005-04-15T00:23:42.056+06:00</updated><title type='text'>Recording Sound in Linux</title><content type='html'>&lt;p&gt; Now that we have our sound card working, it's time to check out some of the options that we have for playing sound. If you're following the course in order of the lessons,  we haven't begun to talk in depth about the  use of the X-window system in Linux, so the tools for playing and recording  sound here will be used from the command line.   &lt;/p&gt; &lt;p&gt; I'd also like to add an editorial comment, if I may. I use a window manager but the programs I listen to CDs, MP3s etc. are command line applications. I am not implying that there aren't some fine programs for playing  and recording sound. There certainly is some nice stuff out there. The programs I use  (which we'll talk about here) are great applications that work just as well as their  graphic counterparts but in many ways are more easily configurable, at least for me. Besides, we're talking about sound, so I just have to set the CD or playlist and listen. I really don't have to see anything.   &lt;/p&gt; &lt;h2&gt;Recording Sound&lt;/h2&gt;   Due to Microsoft's monopoly on operating systems (yes, they have been convicted of this in a court of law), the most popular format for sound recording is is their *.wav format. When you make a recording of yourself or  someone else speaking or you "rip" a track from a CD for later conversion to mp3 or ogg (we'll talk about this new and open format later), you're probably  going to use the *.wav format. If you simply want to record yourself saying something using Linux, all you need is a microphone and and recording tool that  gives you a file in this format. For this lesson, we'll use 'wavrec'.  &lt;p&gt; 'wavrec' is easy to use. It's easy because the default recording settings for this applications are all acceptable for getting a quality recording (if you've got a fairly good microphone). You just have to type some simple commands and you're all set.  &lt;/p&gt; &lt;p&gt;Here's an example: &lt;/p&gt; &lt;p&gt; Let's say I want to record a note to myself that says the following: &lt;i&gt;"Note to self: make sure you respond to Dave's email about SuSE'. I would just type the following"&lt;/i&gt;  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;wavrec dave_note.wav&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; make sure the microphone is on (you'd be surprised how many times I forget to turn it on!) and start talking. The default recording time for 'wavrec' is 10 seconds. That means, if you don't specify a recording time on the command line (I didn't) you'll get a 10 second long sound file. My sentence above, "Note to self .....  bla bla bla" lasts about 8 seconds. Of course, the duration of the sound file depends on whether you're talking a normal rate. If you auction cattle in Iowa, then you probably don't need 10 seconds to say that sentence, so you should modify the time for the file, like this:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;wavrec -t 3 dave_note.wav&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; The &lt;b&gt;-t&lt;/b&gt; option refers to seconds, so you should type the number of seconds after. Here, even 3 seconds might be pushing it for a cattle auctioneer. Just  remember to give yourself enough time for what you want to say, in seconds. If you want to recite Abraham Lincoln's Gettysburg Address, then you would first  multiply 60 and 2 to get 120 seconds.  Why this figure? Because Lincoln is reported to have taken only 2 minutes to give this famous speech. If you would like  to record Cuban leader Fidel Castro's speeches, then I would advise getting a huge hard drive. He once made a speech that lasted 7 hours.  &lt;/p&gt; &lt;p&gt; You can add all kinds of options to wavrec. I use this tool all the time to record short sentences for use in computer assisted language learning. Here are  the values I use:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;wavrec -S -t 5 -s 44100 a_sentence.wav&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; Let's explain these options. The first one, &lt;b&gt;-S&lt;/b&gt;, means &lt;i&gt;stereo&lt;/i&gt;. If you look at the man page for 'wavrec' (type: man wavrec), it says that stereo is the default.  Nevertheless, I have noticed that mono is in fact the default. That is to say,  if you use 'wavrec' with no options, you get mono not stereo sound. It would seem there is an error in the man page. After the -S, we have the -t option for seconds (we explained before) then we have the &lt;b&gt;-s&lt;/b&gt;  option which is the sampling rate in Hz. I chose 44100 because this is a good high-quality sound which is necessary for my language teaching endeavors.  It's  important not to confuse the -S (capital letter) with the -s (lower case). -s takes a value in Hz while -S has no value. I have purposely put the -t option in between them to avoid confusion. There you have it. Issuing this short command  and then changing the file name, I get a lot of work done because my sentences seldom last more than 5 seconds and these values are fine for my work.   &lt;/p&gt; &lt;p&gt; Now, you must be asking the question: "I've made a *.wav file, now, how do I hear it?"  The answer is easy: With 'wavrec' 's companion program, 'wavplay'. Here's how:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;wavplay a_sentence.wav&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; This will play the sentence we recorded above. That's all there is to it. I should also point out that the same options in 'wavrec' are available for 'wavplay' if you want to add some effects to playback. For example, if you take our first wav file, dave_notes.wav, and play it like this:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;wavplay -s 44100 dave_notes.wav&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; you'll find it's doubly fast. That's because our note about Dave was recorded at the default 22050 hz, so if you do the math, you see that what we've done is double it's sample rate .  You might want to do this:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;wavplay my_favorite_song.wav&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; then sing a line of your favorite song. Play it back to your friends using the -s 44100 option and have them rolling on the floor with your Alvin and the Chipmunks impressions. I have actually entertained my 2 year old son for hours with this.   &lt;/p&gt; &lt;p&gt; Using the same logic, if you take our a_sentence.wav and play it like this:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;wavplay -s 22050 a_sentence.wav&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; you've cut the sample rate in half and so you get a really cool impression of the creatures that take over people's bodies in Star Trek's original series episode 'The Lights of Zetar'.  &lt;/p&gt; &lt;p&gt; I know what you're probably thinking. I need to be productive. I don't want to record Chipmunk sounds and sci-fi weirdness. Well, then. Here's a good way to use these tools, plus a couple of other command line tools to read reminders to  yourself in the morning, or whenever you'd like.  First, create a subdirectory in your own directory /home/[you]/  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;mkdir reminders&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; then go into reminders (type: cd reminders). Now, Let's create a sort of introductory wav file that's always going to be there. I'll explain why we need that in a bit.   &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;wavrec -t 3 0intro.wav&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; Say something like "Your reminders" or "Reminders for you". Three seconds should be enough for that. You may have noticed that the name begins with zero. That is simple because for our reminder system, we invoke 'wavplay *' with the asterisk to play every file in that directory. By naming it '0intro.wav', that assures that it will be played first with our system.   &lt;/p&gt; &lt;p&gt; Now record some reminders. I recommend using a YEAR-MONTH-DAY format plus some  meaningful word for naming the wav files. For example, type:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;wavrec -t 5 2001-10-24_trash.wav&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   and say: "Remember to take out the trash". I suppose 5 seconds should be enough to say this. Try recording a few more reminders for different things, like "call cousin Jack" and "remember to pay back gambling debts to bookie".  When you've got a few wav files in there you should play them to see that they've come out all right (you don't need to do this every time - we're just practicing)  &lt;blockquote&gt; &lt;pre&gt;wavplay *&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; You'll see that the 0intro.wav file gets played first. If everything sounds good to you, then we're ready for the next step which is to play our files automatically at a given hour.  &lt;/p&gt; &lt;p&gt; One of my favorite applications in Linux is called 'cron'. This is a pretty powerful tool that is used primarily by system administrators to automate their tasks and duties. It's powerful because it can schedule something to be run automatically  at any time, whether that be once every three minutes, every hour, once a day or every Thursday. It can even be used to run a job that you do only in January.  But just because it's powerful, it doesn't mean it's complicated to use.  For our purposes, it's very simple to configure 'cron' to play our reminders. First, we have to edit a file that is called 'crontab' and add our instructions. There is a system-wide crontab file for root's exclusive use, but there is also one available to every user to run command line apps that he or she is authorized to use. To add a job to be done, just type:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;crontab -e&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; Then we add the following line to our crontab file (-e is for edit)  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;30   7   *    *    *  /usr/X11R6/bin/wavplay $HOME/reminders/*.wav&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; The crontab edit procedure uses your default command line editor which is probably 'vi', so if you don't remember our little tour of  'vi', just press 'ESC + i' before you add this line.  &lt;/p&gt; &lt;p&gt; Let's explain how a crontab file works. The file is read by the program 'cron' and it carries out the instructions in it.  In our example, our wav files get played at the 30th minute of the 7th hour, that is to say 7:30 in the morning.  This is because the crontab file must start with the minute [0-59] you want something done, followed by the hour [0-23] the day of the month [1-31], the month of the year [1-12] and the day of the week [0-7] (where 0 and 7 are both Sunday). I have left the last three as asterisk. This tells 'cron' that these values don't matter. That is to say, cron should play our *.wav files every day of the month, every month of the year, 7 days a week.  &lt;/p&gt; &lt;p&gt; The next step as you can see is to tell cron to run 'wavplay' and play the files in your home directory. We use the symbol &lt;i&gt;$HOME&lt;/i&gt; for that.  Also notice how I have put the exact path to where wavplay is. To see if your system differs, then type:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;which wavplay&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; to show you where the program is. Then adjust accordingly. I used this exact path because, it would seem on my system, the master crontab file (found in /etc/crontab ) doesn't recognize that path automatically. I am assuming that this is for security reasons, so I didn't go in and change the path. Some things are probably best left alone, so no harm done if you just put in the exact path in the crontab file.  &lt;/p&gt; &lt;p&gt; If you want to test it, just give it a time within a couple of minutes or so. That is, if it's 3:30 in the afternoon, you might want to first edit your  crontab like this:  &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;32   15   *    *    *  /usr/X11R6/bin/wavplay $HOME/reminders/*.wav&lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt; that will play the reminders at 3:32 PM, to show you that it works. Just make sure you're not playing anything else, like MP3s, because you won't hear them. That's the rationale for my 7:30 AM start time. It's a good hour for me -  when I am just getting to work and I'm probably not listening to heavy metal at that hour of the morning. Actually, I never listen to heavy metal.  &lt;/p&gt; &lt;p&gt; Now, when you've finished hearing them, you can delete them (if you want) That's where the rationale behind the YEAR-MONTH-DAY.wav comes in. You just delete the daily ones by typing, for example  rm 2001-09-28*  &lt;/p&gt; &lt;p&gt;That keeps the 0intro.wav file in there. I mentioned before that I was going to explain why it's necessary to have it there. 'Cron' will mail you when there is an error, so if you had no reminders for a given day, you would at least have one file in the /reminders directory. That way, 'cron' doesn't have to mail you an error message because the program 'wavplay' didn't find any *.wav files.  &lt;/p&gt; &lt;p&gt; By deleting the unnecessary reminders, you've got some free disk space. Speaking of that, if free disk space is something that worries you, in the next part of the lesson we'll talk about those famous (and controversial) files that take up less space - MP3s - and how to make them under Linux. We'll also talk about the new free audio format comparable in sound and space to MP3 - Ogg Vorbis.  &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350302204322054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350302204322054' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350302204322054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350302204322054'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/recording-sound-in-linux.html' title='Recording Sound in Linux'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350295021216544</id><published>2005-04-15T00:22:00.000+06:00</published><updated>2005-04-15T00:22:30.220+06:00</updated><title type='text'>Getting Linux to make sounds</title><content type='html'>&lt;h2&gt;Getting Linux to make sounds&lt;/h2&gt;   &lt;h3&gt;The hills are alive....&lt;/h3&gt;   &lt;p&gt;If you're like me, the first thing that interests you in setting up your computer is making it play sounds, particularly music. When I installed Slackware so many years ago (1997 seems like an eternity for Linux) I think I was more interested in making my sound card work than making the modem work to get connected. Music has always been pretty important in my life long before the World Wide Web even existed, so that was pretty logical.    &lt;/p&gt; &lt;h3&gt;Sound Cards&lt;/h3&gt;   &lt;p&gt;When I bought my first sound card in December of 1992, it came in a big box that Creative Labs sold me and it was a Sound Blaster. In that big box there was a bunch of stuff - software (for Windows 3.1), a CD-ROM drive (with an insert-able cartridge that my 2 year old just managed to break after all these years!) and some Midi gadget which never interested me and is still in the same box in my attic. I had good luck with that sound card (I still do because it still works). Due to this, I have always bought Sound Blaster cards. These cards have usually configured fairly easily under Linux. I was once bought a machine that did not have a Sound Blaster brand card in it and I was not able to get it configured under Linux. I honestly don't remember the name of the card and I promptly paid a little bit more money and exchanged that one for a real Sound Blaster and quickly got it running under Linux.     &lt;/p&gt; &lt;p&gt;Sound Blaster uses the Alsa drivers to make sound come out of your Linux machine. These people have made my life much richer as I can listen to lovely music as I write this lesson of the beginner's course. There are a lot of other supported cards. My eternal gratitude to the people working on the Alsa Driver project. You might want to &lt;a href="http://www.alsa-project.org/%7Egoemon/"&gt;  have a look at their list&lt;/a&gt;. And see if your sound card is on their list. The nasty hardware manufacturers who do *not* share their information (and therefore, their cards do *not* work) are listed in red.  &lt;/p&gt; &lt;p&gt;If you use the SoundBlaster card, you may also want to check out &lt;a href="http://opensource.creative.com/"&gt;Creative Lab's page&lt;/a&gt;   &lt;/p&gt; &lt;h3&gt;Configuration tools&lt;/h3&gt;   &lt;p&gt;Before I go into the tools to use to get the sound card working, it's important to point out that the Linux kernel needs to be configured to use a sound card. If your kernel doesn't have a clue about what to do with a one, there is precious little tools like &lt;i&gt;sndconfig&lt;/i&gt; can do to help you. Luckily, every install I have done in the past year and a half or so  of a major Linux distribution has come with a kernel that has sound support in  it by default. If you're installing "Joe's Home-brew Linux" distribution (where you must compile your own kernel), then you might be beyond  this beginner's Linux course and you probably already know how to make the kernel you want. But if you are a true beginner (that's who this course is for) then you're probably going to get a "made for sound" kernel. The latest versions of Red Hat, SuSE, Mandrake and Debian that I have installed are all sound enabled from the beginning, depending on, of course, whether or not the hardware is mainstream enough to be detected on install. I wrote in a review of Mandrake 7.2 in the Spring of this year (2001) about how &lt;a href="http://www.linux.org/dist/reviews/mandrake_72_3.html"&gt;it didn't detect my very mainstream Sound Blaster 16 card&lt;/a&gt;. The good thing is that Mandrake 7.2 is very much a thing of the past. They're on version 8.1 at the time of this writing and on that same machine, I did a "clean" install (I did not update - I removed 7.2 and installed 8.0 new) and it found and configured my Sound Blaster 16 card without the slightest problem. If the distribution you have installed (or are planning to install) is up-to-date, you should not have a problem.  &lt;/p&gt; &lt;p&gt;It is also important to know what type of sound card it is in terms of the slots that it uses on your mother board in your computer. On my machines, the motherboard (that big thing inside a PC that you plug all the cards into) or mainboard as it is also known, will accept &lt;u&gt;ISA Plug and Play&lt;/u&gt; cards (bigger slots) and &lt;u&gt;PCI cards&lt;/u&gt; (smaller slots). I'm not a USB user, so I won't feign expertise here and give USB guidelines. If you have an ISA PnP card (I have two) you also have to have the &lt;i&gt;ISA PnP tools&lt;/i&gt; installed as well as a kernel that can use ISA Plug and Play (also known as plug and &lt;i&gt;pray&lt;/i&gt;)  &lt;/p&gt; &lt;p&gt;As I mentioned, most major distributions will configure the sound card during the installation process. If this is not the case, you may use to any of the following tools, depending on your distribution.  &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;b&gt;&lt;i&gt;sndconfig&lt;/i&gt;&lt;/b&gt; I mentioned this one above. It is a tool for Red Hat and distributions based on Red Hat (Mandrake, KRUD, for example). It is text based (runs it a terminal) and has always done a good job for me. It will play a sound bit of Linus Torvalds pronouncing the word "Linux"  &lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;i&gt;YAST&lt;/i&gt;&lt;/b&gt; This is SuSE's "Swiss Army Knife" of configuration tools. Their latest version 2 is graphical. Again, there was no problem detecting my sound cards with YAST. It plays a little melody that's also the KDE default startup sound. You can adjust the default volume as well. It warns you not to set it too high, just in case you're wearing headphones and you blow your eardrums out!!  &lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;i&gt;HardDrake&lt;/i&gt;&lt;/b&gt; Mandrake uses this graphical tool to configure hardware, including sound cards. Using the GUI, you can select the sound card and then push the button that says "&lt;i&gt;launch configuration tool&lt;/i&gt;". I suspect that what it is doing is launching &lt;i&gt;sndconfig&lt;/i&gt; - which, as I mentioned, is also available for Mandrake.   &lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;i&gt;alsaconf&lt;/i&gt;&lt;/b&gt; If you're using Debian, this is the package you need to set up sound. The alsa-base package is also required.   &lt;/li&gt; &lt;/ul&gt;   &lt;p&gt;You should now have a pretty good idea of setting up a sound card with a major Linux distribution. Strange hardware, old versions of Linux (your cousin lent you the SuSE 5.3 disks) and obscure distributions (Zingblatter's Ultra Linux 1.4) are beyond the scope of this course, so if you're one of those out there who pine for the sweets sounds of Mozart flowing from your PC, you can take a look at the &lt;a href="http://www.linux.org/docs/ldp/howto/Sound-HOWTO.html"&gt;HOW-TO's  on the subject.&lt;/a&gt;You can also go to your favorite search engine (mine is &lt;a href="http://www.google.com/"&gt; Google&lt;/a&gt; ) and enter &lt;b&gt;&lt;i&gt;Linux sound card setup&lt;/i&gt;&lt;/b&gt; and you have access to the zillions of bytes of information on the topic.     &lt;/p&gt; &lt;p&gt;Let's go on now to all of the available programs to play all of that sound and music, from the Beatles to Hans and his Swiss Alpine Yodelers.  &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350295021216544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350295021216544' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350295021216544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350295021216544'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/getting-linux-to-make-sounds.html' title='Getting Linux to make sounds'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350288239154264</id><published>2005-04-15T00:21:00.000+06:00</published><updated>2005-04-15T00:21:22.400+06:00</updated><title type='text'>ISP Information for Linux Systems</title><content type='html'>&lt;h2&gt;Getting in touch with your ISP&lt;/h2&gt;   &lt;p&gt; There are a lot of tools out there to assist you in establishing a connection with your ISP so you can get out there on the Internet. Most will do the job quite nicely. I have found one in particular that is the easiest of all to use. Not surprisingly that it is called &lt;b&gt;&lt;i&gt;eznet&lt;/i&gt;&lt;/b&gt;. It was written by Richard Hipp and it makes setting up your Internet connection absolutely trivial. For Red Hat and RPM based distributions there is a RPM package compiled by Kent Robotti and available through &lt;a href="http://rpmfind.net/linux/RPM/contrib/libc6/i386/eznet-1.11.1-1.i386.html"&gt;RPMfind.net&lt;/a&gt;. There is also a "tarball" available at &lt;a href="http://www.ibiblio.org/pub/Linux/system/network/serial/ppp/"&gt; Ibiblio's website&lt;/a&gt; If you're feeling adventurous, you might want to go to &lt;a href="http://www.hwaci.com/sw/eznet/"&gt; Dr. Hipp's website&lt;/a&gt; and download the C source code and compile it, which is another option.   &lt;/p&gt; &lt;p&gt;Basically, the program asks you a series of questions about your ISP, information which this company should have given you and about where your modem is located, (what we covered in the previous section). There is a possibility to handle several different ISPs (at one point, I had 3 different ISPs configured). Once you've answered the questions and you have your connection setup, connection is nothing more than typing one command in a terminal: &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;eznet up 0&lt;/pre&gt; &lt;/blockquote&gt;   &lt;p&gt;The program starts counting ISPs with the number 0, so that's your first ISP. Just substitute for 1, 2 etc. for other connections you may want to set up. &lt;/p&gt; &lt;h3&gt;Other options&lt;/h3&gt;   &lt;p&gt;If you use YAST in SuSE Linux you can set up your connection using WvDial. I must confess that earlier versions of this program were not entirely successful in setting up my connection. Euphemistically speaking, they couldn't do it. This program has been greatly improved and your probability of success along with it. &lt;/p&gt; &lt;p&gt;If you've picked out your windows manager already and it happens to be KDE, you're in luck because there is a program called &lt;b&gt;KPPP&lt;/b&gt; which will set up a connection for you fairly painlessly. The only problem I seemed to have with this was is known as the "negotiation" of the connection with my ISP. There are two protocols known as &lt;i&gt;PAP&lt;/i&gt; and &lt;i&gt;CHAP&lt;/i&gt;. If you run into this problem, it just might be a question of trying one or the other and sticking with the one that works. With KPPP, you can also tune or tweak your connection speed to get better results from your hardware. &lt;/p&gt; &lt;p&gt;User of Red Hat have a very powerful and simple to use graphic tool with &lt;b&gt;RP3&lt;/b&gt;. This is standard issue on all versions of Red Hat since 6.2  &lt;/p&gt; &lt;h3&gt;For the technically curious&lt;/h3&gt;   &lt;p&gt;As you'll notice, the program I mentioned for KDE is called &lt;b&gt;KPPP&lt;/b&gt;. The &lt;b&gt;K&lt;/b&gt; stands for &lt;i&gt;KDE&lt;/i&gt; but what does the &lt;b&gt;PPP&lt;/b&gt; stand for? It stands for &lt;i&gt;&lt;u&gt;P&lt;/u&gt;oint-to-&lt;u&gt;P&lt;/u&gt;oint &lt;u&gt;P&lt;/u&gt;rotocol&lt;/i&gt;. This protocol enables two computers to connect across a network. The protocol basically provides the means for the two computers to first, identify themselves and then ask whether the computers can read the data each other sends. In your /sbin/ directory, you'll find the &lt;i&gt;point-to-point protocol daemon&lt;/i&gt;, or &lt;i&gt;pppd&lt;/i&gt; which is a program that provides for that communication between computers.   &lt;/p&gt; &lt;p&gt;What you essentially do when you set up your Internet connection is to make sure that &lt;i&gt;pppd&lt;/i&gt; knows how to communicate the right information. If the two computers either can't authenticate themselves to each other (ie- realize that they have "permission" to communicate) or the type of data their sending is incompatible or both, then the connection fails. What &lt;i&gt;eznet, kppp, RP3&lt;/i&gt; and other similar programs do are to create the necessary configuration files that &lt;i&gt;pppd&lt;/i&gt; reads. When I first set up an Internet connection with Linux, I created these files &lt;i&gt;by hand&lt;/i&gt; without the help of one of these programs. It was an interesting exercise but essentially took a long time to figure out at those days. If you're interested in finding out what goes on behind the scenes, I suggest you check out the page &lt;a href="http://penguin.lvcm.com/linuxppp.html"&gt;&lt;i&gt;Linux Dial-Up Networking in a Nutshell&lt;/i&gt;&lt;/a&gt; which has a nice list of the processes and files that come into play.   &lt;/p&gt; &lt;h3&gt;A common problem&lt;/h3&gt;   &lt;p&gt;The most common problem I have come up against is that somehow the very important configuration file &lt;i&gt;/etc/resolv.conf&lt;/i&gt; gets overwritten. This happens with some Linux distributions and the reasons are numerous and I usually chalk it up to what I called excessive "meddling" with important configuration files on the part of some major Linux distributions. The symptom of the problem usually is that even though you've connected to your ISP, you're not reaching pages out there. The first thing you should do is make sure /etc/resolve.conf includes the two or more &lt;b&gt;IP addresses&lt;/b&gt; of the &lt;b&gt;domain name servers&lt;/b&gt;; those machines that translate for example, &lt;b&gt;&lt;i&gt;www.linux.org&lt;/i&gt;&lt;/b&gt;, into our actual numerical address.  As I mentioned in the section on ADSL, it should look something like this:  &lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;pre&gt;nameserver 30.30.30.30&lt;br /&gt;nameserver 40.40.40.40&lt;br /&gt;&lt;/pre&gt;   &lt;p&gt;Your numbers will of course be different, but if you don't see at least two lines like this: &lt;i&gt;nameserver&lt;/i&gt; plus an IP address, then you'll have to add it again. Then you should find out why and how your distribution is over-writing this file so it doesn't happen again, unless, of course, you want it to. SuSE, for example, has a section in their YAST tool where you can configure it not to overwrite certain files like resolv.conf. &lt;/p&gt; &lt;p&gt;That pretty much sums up setting up dial-up connections. Happy surfing with Linux!  &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350288239154264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350288239154264' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350288239154264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350288239154264'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/isp-information-for-linux-systems.html' title='ISP Information for Linux Systems'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-12176048.post-111350283510260114</id><published>2005-04-15T00:20:00.000+06:00</published><updated>2005-04-15T00:20:35.106+06:00</updated><title type='text'>dialup setup of Linux Systems</title><content type='html'>&lt;h2&gt;Dial-up connections with Linux&lt;/h2&gt;   &lt;p&gt;Despite the increasing popularity of broadband Internet access and cable company's ventures into the Internet business and their offering of connections, the vast majority of people in the world, at the time of this writing, connect to the Internet via telephone dial-up through the use of a standard modem, usually at speeds ranging from 14.4 to 56 kilobits per second (kbps). The purpose of this lesson, therefore, is to discuss the way to get a dial-up connection running under Linux.  &lt;/p&gt; &lt;h3&gt;There are modems and then there are "winmodems"&lt;/h3&gt;   &lt;p&gt;Once upon a time, there were modems (which still exist) where the ability to use it to connect to computer networks, like the Internet, was based on the configuration of the hardware. Nevertheless, companies like Motorola, Rockwell and others developed modems where the configuration of the device was made possible through software more than the embedded programming on the hardware. This software was exclusively compatible with, yes, you guessed it, Microsoft Windows. They became known as "winmodems". Until recently it was impossible to get one of these little jewels in the MS crown running under Linux. If you happen to have one, you could check out &lt;a href="http://www.linmodems.org/"&gt; Linmodems.org&lt;/a&gt; for more information about installing drivers for these to run under Linux. Motorola recently released a set of drivers for their "winmodems".  &lt;/p&gt; &lt;p&gt;The best and easiest way, however, of maintaining a dial-up connection is using an external modem or an internal modem where the hardware primarily is designed to handle the connection. Before I had an ADSL connection, I used an external Dynalink 56 kbps modem. The set-up of this modem under SuSE Linux, Red Hat, Mandrake and Slackware was trivial. Before that I used a 38.8 kbps internal modem and a  28.8 kbps one before that, upgrading as the higher speeds became available and their decreasing prices  warranted the change.  &lt;/p&gt; &lt;h3&gt;External Modems&lt;/h3&gt;   &lt;p&gt;External modems are called that precisely because you have a little box that sits outside your computer. These connect either via a parallel port or a serial port. A parallel port is one that is normally used to connect a printer. A serial port is similar in appearance to the one that is used to connect your mouse. For example, on my workstation, where I am writing this lesson, there are two serial ports, known as "com1" and "com2". As you can remember from our lessons on other subjects such as hard drives and floppy drives, Linux always knows these devices by other names, files that reside within the /dev/ directory. In our case, Linux knows &lt;i&gt;com1&lt;/i&gt; and &lt;i&gt;com2&lt;/i&gt; as &lt;i&gt;&lt;u&gt;/dev/ttyS0&lt;/u&gt;&lt;/i&gt; and &lt;i&gt;&lt;u&gt;/dev/ttyS1&lt;/u&gt;&lt;/i&gt; respectively (in the computer world, we usually start counting at zero). If you have a serial mouse, this is usually occupying &lt;i&gt;com1&lt;/i&gt; and therefore &lt;i&gt;&lt;u&gt;/dev/ttyS0&lt;/u&gt;&lt;/i&gt;. If you then get an external modem and you want to use it, you would hook it up to the second serial port, &lt;i&gt;com2&lt;/i&gt;, which, as I mentioned, Linux knows as &lt;i&gt;&lt;u&gt;/dev/ttyS1&lt;/u&gt;&lt;/i&gt;. The trick (really not a trick because there is no difficulty involved) is to alter your Linux configuration so that it knows that you've got an external modem on &lt;i&gt;&lt;u&gt;/dev/ttyS1&lt;/u&gt;&lt;/i&gt; so it can communicate with it.  &lt;/p&gt; &lt;p&gt;Under SuSE Linux for example, this is quite easy. As 'root' you would fire up their configuration tool called &lt;u&gt;YAST&lt;/u&gt; and choose the option 'System Administration' and then the option 'Integrate Hardware into System'. At this point you're asked to choose the hardware you want to configure and obviously you would choose 'Modem configuration' which is the second option. You'll see the various "com" ports available and even, with the newer version of SuSE, USB modem support. If you have a serial mouse, be sure to choose &lt;i&gt;com2&lt;/i&gt; or &lt;i&gt;/dev/ttyS1&lt;/i&gt;. You should have your modem set up after you've done this.  &lt;/p&gt; &lt;p&gt;If you've installed Red Hat Linux, then you should have no problem setting it up with one of their utilities known as &lt;b&gt;modemtool&lt;/b&gt;. If you've installed Mandrake, their tool &lt;b&gt;HardDrake&lt;/b&gt; should do the trick. &lt;b&gt;LinuxConf&lt;/b&gt; is also an all-purpose tool that includes modem configuration. I have had (and heard of) mixed results with this tool.   &lt;/p&gt; &lt;p&gt;Now that you've got a modem connected, we'll talk about configuring your connection with your ISP in the next part of the lesson. &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/111350283510260114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12176048&amp;postID=111350283510260114' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350283510260114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12176048/posts/default/111350283510260114'/><link rel='alternate' type='text/html' href='http://www.bauani.org/learn-linux-beginner/2005/04/dialup-setup-of-linux-systems.html' title='dialup setup of Linux Systems'/><author><name>Bauani</name><uri>http://www.blogger.com/profile/14040534836298340407</uri><email>noreply@blogger.com</email></author></entry></feed>