LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-03-2008, 05:39 AM   #1
lespaul047
LQ Newbie
 
Registered: May 2008
Posts: 6

Rep: Reputation: 0
MPD playing without 'user'


This is the situation: I have a server and MPD is running as daemon. I created a frontend player with Apache/MySql. I can play music and control it with any browser from any machine in my network and even my handheld pc (that is what I want). I have sound as long as any user is logged in. The moment I log out, the sound stops. What I want is the machine to produce sound even when there is no user logged in (as a real server). Any suggestions?
 
Old 05-03-2008, 06:44 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Welcome to LQ!

I always have a vncserver session started for my user at boot time on my server. So I put this line in /etc/rc.local :
Code:
su  -  myusername  -c  "cd /home/myusername && vncserver :1 -geometry  1024x768  -depth 24"
I have noticed the server makes the default "KDE is starting up" sound as it boots to the login screen, even though nobody is logged in yet.

So, something like this might solve your problem.
Youll also need this text in /home/yourusername/.vnc/xstartup

Code:
#!/bin/bash
# This is the file /home/yourusername/.vnc/xstartup
startkde &
If you are running gnome, I think you need startgdm instead of startkde

You will not have to use this desktop, you can just leave it running there.
 
Old 05-04-2008, 12:29 AM   #3
lespaul047
LQ Newbie
 
Registered: May 2008
Posts: 6

Original Poster
Rep: Reputation: 0
I can't get my vnc server to work (something with wrong font path) and I prefer to focus on a real solution for my problem, instead of trying to get the vnc server work. In the meantime I found a solution. The Mixer I used was configured as "software" and I changed it into the OSS mixer. Thanx anyway...

Last edited by lespaul047; 05-04-2008 at 01:28 AM. Reason: Found a solution
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
about mpd Chocolate Linux - Networking 0 12-11-2006 02:31 AM
CD Music not playing for user rknetsch Linux - Hardware 1 06-17-2005 09:15 PM
mpd dependencies doralsoral Linux - Software 3 06-16-2005 04:28 AM
Playing CDs as a non-root user KaraK Fedora 9 02-03-2005 05:26 AM
DVD not playing as user!!!! TheShemeta Linux - Software 3 11-07-2003 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration