LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-23-2005, 04:02 AM   #1
noware
Member
 
Registered: Oct 2005
Location: Hungary
Distribution: FC6 , freeBSD
Posts: 87

Rep: Reputation: 15
Starting process on display :1


Hi all!

I have my TV connected to my video-card, but since my TV's resolution is 640x480 - which looks really sick on my monitor - I start a new X on display :1 in 640x480 to switch to it when I want to watch a movie on TV. The problem is that I can only start an xterm on display :1. Maybe I should start a window manager (I don't know how...) , but what I really would like to do is start a process (e.g. a movie-player) on display :1 , from the X running on display :0. Is that possible ? (I'm sure it is, but I could not do it yet). Any help would be appriciated.

Thanx.
 
Old 11-23-2005, 09:26 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Quote:
Originally posted by noware
what I really would like to do is start a process (e.g. a movie-player) on display :1 , from the X running on display :0
if it is a standard X application:
Code:
movie-player -display :1


Code:
$export DISPLAY=:1
$movie-player
 
Old 11-24-2005, 03:29 AM   #3
noware
Member
 
Registered: Oct 2005
Location: Hungary
Distribution: FC6 , freeBSD
Posts: 87

Original Poster
Rep: Reputation: 15
Thanks nx5000 , I will try it.
Anyway , the app is MPlayer with or without GUI , or with some KDE frontend...
 
Old 11-29-2005, 08:07 AM   #4
noware
Member
 
Registered: Oct 2005
Location: Hungary
Distribution: FC6 , freeBSD
Posts: 87

Original Poster
Rep: Reputation: 15
Thank you again, nx5000 it's working. Never tought , it would be such easy...

My next question is, that how can i start some lightweight windowmanager (e.g. xfce or enlightment) on the raw X server, when i have a KDE or Gnome running on X :0 ?

Thanx
 
Old 11-29-2005, 08:50 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
For running twm on :1

twm -display :1


or
export DISPLAY=:1
twm / xfce / ..
 
Old 11-29-2005, 10:32 AM   #6
noware
Member
 
Registered: Oct 2005
Location: Hungary
Distribution: FC6 , freeBSD
Posts: 87

Original Poster
Rep: Reputation: 15
Thank you nx5000!

maybe i should think, before i ask...

Thanks again!
 
Old 11-30-2005, 03:11 AM   #7
noware
Member
 
Registered: Oct 2005
Location: Hungary
Distribution: FC6 , freeBSD
Posts: 87

Original Poster
Rep: Reputation: 15
Hi again,

I tried twm -display :1 , but all that happpened was that X switched to display :1 and drew a white rectangle to the upper section. That was all. Neither the export DISPLAY=:1 stuff is working. I tried them with twm, xfce, ratpoison and enlightment but none of them succeeded.

Does anyone know something about it?
 
Old 12-01-2005, 02:23 AM   #8
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 727
Blog Entries: 2

Rep: Reputation: 43
Here's how I start xfce (for example) on tty8:
Code:
xinit /etc/X11/xinit/xinitrc.xfce -- :1
 
Old 12-01-2005, 06:52 AM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Maybe the rectangle is a shell? From there you can launch maybe kicker, panel but as ciotog said , its easier to do this:

Code:
xinit /etc/X11/xinit/xinitrc.xfce -- :1
I wanted to look what xfce looked like so I played a bit on display 1
For those looking at this post, I will post my "findings"
On my debian (unstable, xorg, gdm):

Code:
xfce4_setup
it creates ~/.xinitrc

here it took me a while because xfwm4 --daemon does not return!
so xinitrc does not work (bug in xfce4?). Also not so nice the documentation is not at the usual place /usr/share/doc ....

so I had to add an & add the end of the line:

Code:
/usr/bin/xfwm4 --daemon &
then to be able to launch X as non privilege user put this:

Code:
allowed_user=anybody
in /etc/X11/Xwrapper.config

and finally to run Xfce4 :

Code:
xinit -- :1 -auth ~/.Xauthority
 
  


Reply

Tags
xfce, xinit


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a questions about starting process fetsh Linux - Newbie 2 06-03-2005 07:42 PM
Starting a program with a given process id DropSig Linux - Newbie 1 09-29-2004 08:41 PM
K3B freezing when starting burn process Ian.hill Linux - Software 7 04-13-2004 06:11 AM
rsh starting a background process clockworks Linux - Software 0 03-04-2004 09:33 AM
Starting anther process rklosinski Programming 5 12-05-2002 08:09 AM


All times are GMT -5. The time now is 11:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration