LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Linux Hack: a way to get that Skype working without X (https://www.linuxquestions.org/questions/linux-general-1/linux-hack-a-way-to-get-that-skype-working-without-x-654372/)

frenchn00b 11-24-2009 01:26 PM

Do I need to install XORG and x windows system core to do that ?

Code:

Hi, just like Alexmipego I'm trying to have Skype work on a headless (i.e. no gui) machine in order to drive it by APIs. I actually managed to have it running...
My first attempt was to run it on the machine, which is a vps I connect to through ssh, sending the gui to my local machine. This is useful to configure Skype, to grant access to Skype to your API-invoking-application the first time you run it, and so on.
It can be done installing xauth on the server ("apt-get install xauth" on debian based distributions, google "forward X session" for further informations) and then logging in with "ssh -X myServer.com".
Then, I want to run Skype on the server as a background process, in order to have it running even if I log out from the vps. You can do this installing Xvfb ("apt-get install xvfb"), that is a virtual X environment useful to run applications which need one, just like Skype. I use to launch it on display 2, typing
CODE
Xvfb :2 &
DISPLAY=:2
export DISPLAY

and then I'm able to run Skype in background, logging in from the command line thanks to the "--pipelogin" parameter, typing


frenchn00b 11-24-2009 02:08 PM

Do I need to install XORG and x windows system core to do that ?

Here please find teh code.

Code:

#!/bin/sh


killall -e skype

killall -e skype Xvfb

 Xvfb :2 &

 DISPLAY=:2 ; export DISPLAY ; skype &


while [ 1 ] ; do sleep 1h  ;  amixer -c 1 set 'Mic',0 100 ; done

Do I need to install XORG and x windows system core to do that, by using xfvb ?



--- - - -

frenchn00b 11-25-2009 01:45 PM

Do I need to install XORG and x windows system core to do that ?

Here please find teh code.

Code:

#!/bin/sh


killall -e skype

killall -e skype Xvfb

 Xvfb :2 &

 DISPLAY=:2 ; export DISPLAY ; skype &


while [ 1 ] ; do sleep 1h  ;  amixer -c 1 set 'Mic',0 100 ; done

Do I need to install XORG and x windows system core to do that, by using xfvb ?



--- - - -

frenchn00b 12-16-2009 02:24 PM

http://forum.skype.com/index.php?showtopic=89970
how to

frenchn00b 12-20-2009 10:38 AM

here we go a newer and greater version of the program to run skype without X.

Quote:

#!/bin/sh
killall -e skype Xvfb
Xvfb :5 &
### while [ 1 ] ; do #not working
DISPLAY=:5 ; export DISPLAY ; cat $HOME/.skypestartrc | skype --pipelogin
killall -e skype
sleep 1s
beep


All times are GMT -5. The time now is 10:08 PM.