amazon.com

ad brite ads

Your Ad Here

Hi visitor!

These are mostly serious stuff. Reviews. Comments. Analysis. And lots of thoughts on stuff. I would love to read your comments. Happy reading!

Sunday, January 20, 2008

Linux how to: audio in multi-user PC

I am currently using a dual booting PC using Windows XP and Bayanihan Linux 4.

Under my Linux OS, I have created two user accounts, mine and my wife's. My account has been created during installation. But this account is does not have administrative rights. My wife's account, however, was created long after the installation is made. I will discuss this process some other time.

When I created her account and tested if the account is okay, I noticed that the audio functions of the PC does not work for her. Accidentally, while I was configuring user rights to my mySQL application (also under linux) I was able to figure out how to allow her to use the speakers.

Under Linux, a user has to belong to certain groups to be able to fully use the machine. And only root can provide such a privilege.

So:

1. Open a terminal program
2. Log on as root by typing 'su' or super user in the terminal window and ender the root password.
3. Check to which group the user belongs to (the 'user' here refers to the user you wish to allow additional privileges, in my case my wife) by typing 'id' space and the user name. The result will be something like this:

uid=1000(username) gid=100(users) groups=100(users)

4. List down the information under "groups."
5. To allow the user to have audio rights, type the following:

usermod -G users,audio (username)

*remember to include the group of the user that is shown after typing 'id (username)' because if not, the original user rights to that user is lost and replaced by whatever you typed in after '-G'

When I checked, she now has audio rights and can listen to any music available that she wants to play.

Hope this helps.