Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi! I just installed Slackware and I've read somewhere (I forgot) that it's better not to always log on using root but here's the problem:
I created another user with uid of 1001 (default I think) and when accessing my programs which I installed by root I get permission denied. Also I installed my soundcard (SBLive!) in root but I get no sound in the user that I've created.
So I'm wondering if there's a way to make my user have access on files/programs created by root?
Thanks!
-Kenshee
P.S.
Another thing, whenever I reboot or turn off my computer and when I log back in(root), there's no sound and I have to reinstall (using the method on installing SBLive! soundcards at JustLinux.com http://www.justlinux.com/nhf/Soundcards) it again. What gives?
This will allow users to listen to sound in GUI mode (aka X). Now, hopefully you didn't go through all that installation process at the link you provided each time. Once you've got the module, and have iton your system, you don't have to compile it each time. Okay, on to the good stuff. Type as root in command line:
modprobe emu10k1
then type:
lsmod
to make sure it's there now--it will print out on screen all the installed modules on your system. Next, type:
cd /etc/rc.d
You can view all the files and directories by typing "ls" without quotes. You need to edit your file (with your favorite text editor) called rc.modules in that directory. You need to uncomment (remove the # in front of) the line with your emu10k1 module and then save the file.
Now, you need to go to /etc:
cd /etc
and edit your file called modules.conf. Add the following:
alias sound-slot-0 emu10k1
and save it. You're done. You should now have sound working all the time for everyone (hopefully). If you need help with the file editing, let me know.
Are the programs that were installed by root sitting in root's home directory? For example program TARBALL:
/root/TARBALL
If so, it's the permissions of the directory that you'll have to change--but that's considered very unwise. Instead, try moving the files/programs to another directory that everyone is able to access.
mv /root/TARBALL /usr/local/share
The above is only an example. You don't necessarily have to move it to /usr/local/share. You could move it to your user account home directory if you like /home/kenshee. The man page for the move command is very helpful too: man mv. After it's moved, check the permissions of the file:
ls -l /home/kenshee/TARBALL
This will give you the permissions in the rwx format where r=read, w=write, x=execute. If you need to change the permissions, use the chmod command again. Hope this helps.
As for the sound, post your /etc/modules.conf file and the entry you added or uncommented in your /etc/rc.d/rc.modules file. Also, type lsmod to see what modules are loaded and post it here as well. This will help in determining what to do next.
alias /dev/ttySHSF* hsfserial
alias char-major-240 hsfserial
alias /dev/ttyCUA* hsfserial
alias char-major-241 hsfserial
alias /dev/modem hsfserial
options hsfserial serialmajor=240 calloutmajor=241
alias sound-slot-0 emu10k1
I see emu10k1 in lsmod. Also I tried looking at control center and PCI information. I found out that the soundcard is only accessible to root. What should I do?
Again thanks man, sorry for the trouble
Well, we're getting there. And it's no trouble to me at all. Your modules.conf file looks good.
Did you uncomment the line in your /etc/rc.d/rc.modules file? I know you said you did this already, but I'm just covering all the bases. It should look like this under your Sound Support section (you've got some scrolling to do to get there):
Quote:
### Sound support ###
# Sound Blaster Pro/16 support:
#/sbin/modprobe sb io=0x220 irq=5 dma=3 dma16=5 mpu_io=0x300
# Sound Blaster Live support:
/sbin/modprobe emu10k1
# MAD16 support:
#/sbin/modprobe mad16 io=0x530 irq=7 dma=0 dma16=1
# AD1816(A) sound driver:
#/sbin/modprobe modprobe ad1816 io=0x530 irq=5 dma=1 dma2=3 ad1816_clockfreq=330
00
# Crystal CS4232 based (PnP) cards:
#/sbin/modprobe cs4232
# ES1370 support, such as Sound Blaster 128PCI:
#/sbin/modprobe es1370
# ES1371 support, such as Sound Blaster 64V PCI:
#/sbin/modprobe es1371
# ESS Maestro, Maestro2, Maestro2E:
#/sbin/modprobe maestro
# ESS Maestro3/Allegro:
#/sbin/modprobe maestro3
# (For information on configuring other sound cards with Linux,
# see the documentation in /usr/src/linux/Documentation/sound/,
# and /usr/src/linux/Documentation/Configure.help.
Notice how the only line uncommented (no # at beginning of line) is the emu10k1 line? That's how yours should look.
When you say that the "soundcard is only accessible to root", what exactly are you referring to? I know this sounds like a goofy question, but I'm trying to figure out where this info came from. When you do a "ls -l" for /dev/mixer and /dev/dsp does it look like this?:
If not, chmod 755 both of them again to make sure. Other than this, the only thing I can think of is to check your volume levels. I never asked this before either and I should have--when you say you have no sound, are you getting no sound at all or no sound when trying to play a CD? If it's when trying to play a CD, go into X and load up your XMMS or whatever you're using. Check to make sure that your volume level is up. Also, go into Kmix (if in KDE) or Audio Mixer (if in Gnome) and make sure that your volume levels are up and also not muted or shut off. If it still doesn't work, let me know and we'll see what else we can think of.
Got it working atlast! I just needed to do "chmod ugo+rwx /dev/dsp"
Also is there a way to turn my sound up so that I don't have to increase the volume of my speakers way up?
Whoo! At last I got sound. Also learned a lot. Thanks!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.