More > JRiver Media Center 20 for Linux
MC without a GUI
bob:
Information on running "non-gui"
If you run mediacenter with the switch /mediaserver it will try to run without producing windows.
At this time however, we still need a xserver running either on the machine running MC or via an ssh forward of X to the remote machine.
What you can do to get it running from the command line without a gui is this:
Install and run once remotely via ssh and X forwarding to get the configuration setup.
Then exit mediacenter.
sudo apt-get install xserver-xorg-video-dummy (and the other packages it pulls in).
create the following configuration in /etc/X11/xorg.conf
--- Code: ---Section "Files"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Device"
Identifier "Configured Video Device"
Driver "dummy"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 31.5-48.5
VertRefresh 50-70
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1152x864"
EndSubSection
EndSection
--- End code ---
Then in the local startup file
/etc/rc.local
you can put
nohup Xorg >/dev/null 2>&1 &
#give X some time to start
sleep 5
su - someuser -c"export DISPLAY=:0;mediacenter19 /mediaserver"
(replace someuser with your username)
and restart or just run this command from the command line with sudo
sudo nohup Xorg >/dev/null 2>&1 &
Then as a normal user
export DISPLAY=:0
mediacenter19 /mediaserver
The requirement for an xserver may go away in the future.
Stream:
I've got MC running great when I forward X over ssh. Now I'm trying to get MC to run at boot without the GUI.
I'm using Voyage Linux and I followed all the above instructions but MC doesn't appear to run at boot. If I run the commands manually I get a set fault. Is there a log I should check to see what's happening at boot?
Stream:
OK more info.
When I login as my non-root user and run /etc/rc.local I am prompted for a password. I enter the non-root user's password then get a seg fault. I'm guessing the set fault is because it's trying to run in my ssh session, but the fact that it's asking me to authenticate might be a larger issue.
non-root@voyage:~$ /etc/rc.local
Password:
JRiver install path (process: 3761): /usr/lib/jriver/Media Center 19/
CJRSharedToolsHelper::AuthenticateJRSharedLib
JRFileSystem::GetDirectoryAppdataCommon
CJRSharedToolsHelper::AuthenticateJRSharedLib
JRFileSystem::GetDirectoryDocuments
JRFileSystem::GetDirectoryDesktop
JRTools checking thread
CJRSharedToolsHelper::AuthenticateJRSharedLib
CJRSharedToolsHelper::AuthenticateJRSharedLib
JROs -- analyze operating system
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
JRFileSystem::GetDriveType
-su: line 1: 3761 Segmentation fault mediacenter /mediaserver
bob:
As that same user, try xterm.
If it looks like it hangs, that's good (it's outputting to the dummy display).
If you get a DISPLAY error, you've not got things setup right.
Stream:
Ok I got a display error with xterm. Not sure what to reconfigure.
Navigation
[0] Message Index
[#] Next page
Go to full version