LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   No sound anymore after some changes (http://www.linuxquestions.org/questions/slackware-14/no-sound-anymore-after-some-changes-859472/)

0zMe 01-29-2011 07:12 PM

No sound anymore after some changes
 
Hello guys,

I did some changes to my system.
First off all I hadn't any login manager at startup, so I activated it by changing /etc/inittab

Then I had the problem, that my user was not listed in /etc/shells.
So I modified my /etc/passwd and added /bin/bash/ to my user account.

Everything worked except the sound.
My xfce4-mixer gave me the error below:
Quote:

GStreamer was unable to detect any sound devices. Some sound system specific GStreamer packages may be missing. It may also be a permissions problem.
If I login as root, I get also the same error, but I have sound.
If I login with my user account, I get the error and don't have any sound

I'm always using xfce4 as window manager, but if I login with kde4, I also have sound.

Before the systemchanges, I had no problems with my soundsystem.

Does someone know how to solve this issue?

rody 01-29-2011 07:27 PM

Hi
try add your user name to /etc/group

audio:x:17:root,user

vivanguarda 01-29-2011 07:41 PM

I'm having a bad experience using Pulse Audio because Dropline Gnome install. I got some tips here, then check if your user account is part of the audio group or only root.

onebuck 01-29-2011 08:30 PM

Hi,

Quote:

Originally Posted by 0zMe (Post 4241915)
Hello guys,

I did some changes to my system.
First off all I hadn't any login manager at startup, so I activated it by changing /etc/inittab

Then I had the problem, that my user was not listed in /etc/shells.
So I modified my /etc/passwd and added /bin/bash/ to my user account.

Everything worked except the sound.
My xfce4-mixer gave me the error below:

If I login as root, I get also the same error, but I have sound.
If I login with my user account, I get the error and don't have any sound

I'm always using xfce4 as window manager, but if I login with kde4, I also have sound.

Before the systemchanges, I had no problems with my soundsystem.

Does someone know how to solve this issue?

If as root you create accounts via adduser a lot of what you have attempted manually would have been performed. You are prompted for account information for the user. Be sure to read the prompts so things can be answered properly.

Suggested groups after pressing up arrow;
Quote:

users floppy audio video cdrom plugdev power netdev
Be sure your users are in the above default groups.

Quote:

excerpt from 'man shells';

shells - pathnames of valid login shells

DESCRIPTION
/etc/shells is a text file which contains the full pathnames of valid login shells. This file is consulted by
chsh(1) and available to be queried by other programs.

Be aware that there are programs which consult this file to find out if a user is a normal user. E.g.: ftp dae-
mons traditionally disallow access to users with shells not included in this file.
Why do you think there is a need to add your user name to the '/etc/shells'?

As to editing the '/etc/inittab', that's fine. But you could have just used 'startx' to test things out.

Just a few links to aid you to gaining some understanding. Sure some may seem beyond a newbie but you must start somewhere;



SlackwareŽ Essentials
SlackwareŽ Basics
Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Bash Beginners Guide
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Home Networking



The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

0zMe 01-30-2011 02:45 PM

Quote:

Originally Posted by rody (Post 4241924)
Hi
try add your user name to /etc/group

audio:x:17:root,user

Thanks @rody, it worked but I still have problems using GStreamer.

@onebuck, many thanks for the links. I didn't add my username to /etc/shells, I just added /bin/bash to my user account in /etc/passwd.

After that I got some permission problems with some tools, like GStreamer and NetworkManager.

I was just aiming to get the login manager work, but it prompted me that my username was not listed in the shells.

rody 01-30-2011 07:14 PM

Quote:

I was just aiming to get the login manager work, but it prompted me that my username was not listed in the shells.
Try create new user


root@slackware ~> adduser

Login name for new user []: user

User ID ('UID') [ defaults to next available ]: 500

after that hit enter and change password and when new user complete add it in /etc/group

icqraid 01-30-2011 10:59 PM

I would do the same thing that Rody suggested. If one or two things on the user account are off, there could be more. Best just to add a new user and set all the permissions that way.


All times are GMT -5. The time now is 01:55 PM.