Linux Articles

Saturday, August 28, 2010

Sound Card with Advanced Linux Sound Architecture (ALSA) Problem & Solution with Upgrade Script

In our current Internet World most of time Google Search Help us to find any problem related to Hardware Related Issue on Linux Box.

In Ubuntu Bangladesh Mailing List, someone named Tanveer Hossain Posted an wired problem, like after installing Ubuntu 10.x on his laptop Dell Inspiration 14R he found that normal built-in spiker in Laptop is playing sound, the interesting issue is when he put an earphone, no sound on earphone.

We all knows that when plug-in any headphone / earphone or line out jack in any sound card or notebook / laptop, it automatically disconnect the default spiker connection mechanically.

Actually this Sound Problem related to the driver and Advanced Linux Sound Architecture (ALSA) System which allow Linux to delivery most advance sound output, 4 Channel, 7 Channel etc (Who Told that Linux is not good on Multimedia Production?). The built in ALSA system has a bug which has been fixed by the project. I don't know why the Ubuntu still didn't Include the Upgraded version of ALSA with it.

Anyway, come to to point, how this ALSA Sound Related Problem Can be Solved. Just follow the instruction bellow:

Download the updated version of ALSA using any of your download manager, browser. I personalty love to use 'wget' which has a wide range of usage. You need to download the package of script of ALSA (AlsaUpgrade-1.0.23-2.tar) provided by the project from their URL: http://www.alsa-project.org/main/index.php/Download or Please do a Google Search (I found the unofficial scripts change their location time to time). I assume that your box don't have 'wget', so let's install the wget first:

[bauani@ost ~]$mkdir alsa # Creating A directory for Easy Maintainability:
[bauani@ost ~]$cd alsa
[bauani@ost alsa]$sudo install wget # Let's Download & Install wget
[bauani@ost alsa]$wget http://url.of.script.home/AlsaUpgrade-1.0.23-2.tar #Download the Scripts
[bauani@ost alsa]$tar xf AlsaUpgrade-1.0.23-2.tar # Untar the Scripts which Contain 3 file
The AlsaUpgrade-1.0.23-2.tar have 3 scripts, which need to run as root, mean you have to user your 'sudo' power.

[bauani@ost alsa]$sudo sh AlsaUpgrade-1.0.23-2.sh -d
[bauani@ost alsa]$sudo sh AlsaUpgrade-1.0.23-2.sh -c
[bauani@ost alsa]$sudo sh AlsaUpgrade-1.0.23-2.sh -i

This update script is now installed, to active the change you need a restart.

[bauani@ost alsa]$sudo shutdown -r now # Rebooting Your System

After rebooting check you headphone / earphone, hope your problem has been resolved. The URL of AlsaUpgrade-1.0.23-2.tar is unknown to me. I am looking for the original one. If I found, I will add this here.

To write Above Solutions, I need to take steps / helps from the link bellow. If you still having problem with it, first try the Main Project Page of ALSA which is

http://www.alsa-project.org/main/index.php/Main_Page

Source Used to Write Article Above is:


Any Comments, Advice & Criticism are Welcome. Which will help me to write perfect in future.

Thanks
Ahamed Bauani
Freelancer ICT Consultant from Bangladesh
Current Volunteer Project:  IPv6 Deployment in Bangladesh

Labels: , ,

Friday, August 27, 2010

History of Migration to Linux in of IBA Department, Jahangirnagar University Computer Center of Bangladesh

The History of JU University Computer Center's Linux Adaption was Originally Written on Bangla Language with English Alphabet by Mr. Raihan Sharif Jewell. I am trying to convert the story in English. First of All, Readers Please excuse me for my poor English. You Suggestion & Edition is Most Welcome:

In 2009 I was student of JU, Bangladesh. At that time, I found a Linux Distribution Name 'Ubuntu'. People was telling me it is nice and can be use as alternate of Microsoft Windows, which we normally use by Copying CD from one to Another and as per Microsoft's Product Agreement it is a crime. So I decided to collect a copy of Ubuntu Linux. Google Search Help me to find out a website name 'http://Launchpad.net' where anyone can apply for a copy of Ubuntu CD free!!.  I send and request to Ubuntu Authority to send me one Desktop Version and One Server Version CD. As a student of an University they accept my request and one day its come to my hand. The Story began from here.

During the time when the CD was on they way of my address, I was busy on study and the main issue is I don't know how to Install / Configure a Linux System. What is story of sorrow, in one hand 2 Brand New Ubuntu CD, Came from outside Bangladesh, other hand I have no partner / helper to help me to play around.

In 2010, August, I finished the study of BBA (Exam was over), a lot of free time in my hand. Co-incidence is at that time our University's Computer Center was almost dead due to virus/worm/trojan infection on PC(s) which was running and operating system of Microsoft Windows. So this was a time to find out a solution to alive the Computer Center, What can I do ? Install so called Anti-Virus or Format the PC in Every other day.

At that time, I found solution is in my hand! The Ubuntu Server & Desktop CD, But how can I install it without having an expert hand beside me. I start searching for volunteer and expert on Ubuntu who can help me to Install and Configure (Also Learn the A B C D of Linux). Along with Searching Volunteer, I start convening our  Director Dr. Mohammad Baktiar Rana Sir. After looking at the feature of Ubuntu, he give permission to do a TEST run.

Again Co-incidence, I found Ronju Brother & Ring Brother. They Introduce me with Shabab Bhai, who came to our campus, show me how to Install a Workstation, A Server and Other Service. He is so friendly, nice guy that I found the Ubuntu is one of Most Easy Operating System I even seen before. One Thing Should I say that almost higher percentage of Computer Related Professional don't know there is a Ubuntu Bangladesh Forum which is very active and nice, nothing to say that very polite people are there with an Helping Hand to You. Above name, Ronju Bai, Ring Bhai & Shabab Bhai is one of them! With help of them, IBA-JU Computer Center Migrate it's operating system to Ubuntu, a Linux Distribution which can and do all the job what could run on MS Win Machine!

What a Story of Migration of a University's Department's Computer System from Pirated Copy of Windows to Linux. One thing I must have to say, when we run the Win Program, we feel guilt as we haven't paid the License Money to Microsoft. Now we are in Linux (Ubuntu), A Freedom to Modify, Install, Distribute even Change the 'Core Code ' of the Operating System and The Migration Took Absolutely  Nothing From University Fund!

========================= ============================

Originally Written by Mr. Raihan Sharif Jewell, who is Administrator of IBA-JU Computer Center &
Student of IBA-JU 15th Batch, Jahangirnagar University, Savar, Dhaka 1342, Bangladesh

Collected, Edited & Posted by: Noor Ahamed Bauani [http://blog.bauani.org/], an Ubuntu Mirror in Bangladesh Run by Him. The URL of his Volunteer Organization is: http://www.bd-servers.net/ where you will find various Links of Mirror Server Located in Bangladesh.

Labels: , , ,

Thursday, August 19, 2010

Wget Entire Web Site Download or Mirroring your own website


If you ever need to download an entire Web site, perhaps for off-line viewing, wget can do the
job—for example:
$ wget \      --recursive \      --no-clobber \      --page-requisites \      --html-extension \      --convert-links \      --restrict-file-names=windows \      --domains website.org \      --no-parent \          www.website.org/tutorials/html/ 
This command downloads the Web site www.website.org/tutorials/html/.
The options are:

  • --recursive: download the entire Web site.

  • --domains website.org: don't follow links outside website.org.

  • --no-parent: don't follow links outside the directory tutorials/html/.

  • --page-requisites: get all the elements that compose the page (images, CSS and so on).

  • --html-extension: save files with the .html extension.

  • --convert-links: convert links so that they work locally, off-line.

  • --restrict-file-names=windows: modify filenames so that they will work in Windows as well.

  • --no-clobber: don't overwrite any existing files (used in case the download is interrupted and
    resumed).
    - By: Dashamir Hoxha

Source & Copyright Belong to: Downloading an Entire Web Site with wget | Linux Journal