Skype from another user

Hello.
Please tell me what I’m doing wrong?

My action:

Create user:

# useradd -m -g skype -G audio,video -s /bin/bash skype

I write in /home/skype/.bashrc:

export DISPLAY=":0.0"

and then

$ xhost +local: && su skype -c skype

Sound does not work!

http://pix.academ.org/img/2015/01/11/6e6369b3ab79eec8c128fe23d4577d07.jpg

How to fix it?
Thanks for you answer.

skype does not work well with pulse audio, disable it via yast or uninstall it (is pulse really needed?)

see this suse wiki page for more info
https://en.opensuse.org/Skype#Usage_without_PulseAudio

I had the same problem a few months ago, I removed pulse audio (I’m not sure how it got installed in the first place) via yast and all was well, if you really need pulse see the skype wiki (above link)

Also check the UID you screen shot seems to indicate you are running as user ID 1000 which is the default first user UID. A new user should have a different UID .
Also it is just plain easier to add the new user from Yast since it crosses all the T’s and dots all the I’s

Hi,

Not according to this site

It is the other way around :slight_smile:

Happened to me the same pulse error on a 32bit 13.2, from the image he posted his issues are with pulse.

failed to create secure directory /run/user/1000/pulse/ 

first I disabled then I completely removed pulse, I have no audio issues, there might be a missing pulse package causing the issue or a bad compile from microsoft but if you don’t need pulse (for a particular app or game) just remove it.

did a little googling and it seams pulse audio server would refuse to start if the user’s home directory was owned by root and give the above error, the best fix would be to do a console login (Ctrl+alt+F1) and change the user’s home owner

sudo chown -R user:user /home/user

still if the above doesn’t work removing pulse is faster :slight_smile:

from here
another way to fix pulse audio problems would be to run a single pulse audio deamon instead of a per logged in user:

  • add to every user on the system the groups ‘pulse’ and ‘pulse-access’
  • edit /etc/pulse/deamon.conf
  • change ‘deamonize = no’ to ‘deamonize = yes’
  • change ‘system-instance = no’ to ‘system-instance= yes’
  • edit etc/default/pulseaudio
  • change ‘PULSEAUDIO_SYSTEM_START=0’ to ‘PULSEAUDIO_SYSTEM_START=1’
  • delete .pulse in your home directory and do the same fore other users
  • reboot the system

it would be good to know if we helped or not talking to the wind is not that fun :wink:

useradd -m -g skype -G audio,video -s /bin/bash skype

Prints an error

useradd: group 'skype' does not exist

Better use

yast2 users

for creating user unless you have read and understand

man useradd

Unless of course there is an existing skype group …

:wink:

Of course, of course. :wink:

Excuse Me. I use OpenSuse and Fedora. For Fedora this syntax works. Many years ago I worked also on Mandriva, but today, I think, this distribution is dead… too bad.

Thanks a lot for your advice, but it does not work. Really, I tested it all.
I propose another way, it works for OpenSuse13.2 and Fedora21.
Ok, step-by-step:

groupadd skype

Then we have to add the new user:

useradd -m -g skype -G audio,video -s /bin/bash skype

passwd skype

(or Yast :slight_smile: )

Now add the following line to /home/skype/.bashrc:

export DISPLAY=":0.0"



At last we define the alias (e.g. in ~/.bashrc):

alias skype='xhost +local: && su skype -c skype'

As the “main-user” copy /etc/pulse/default.pa to ~/.pulse/default.pa and add:

load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1



As the skype user, create ~/.pulse/client.conf and add:

default-server = 127.0.0.1

Now we can start Skype as the newly created user simply by running skype from the command line and entering the password of the user skype. Or:

[aleksej@localhost ~]$ su -l skype
Пароль: 
[skype@localhost ~]$ skype

Pulseaudio problem for Skype 4.3 is solved. I used this great article. This works for OpenSuse and Fedora.