![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Ubuntu Guru
![]() |
What is Xephyr ? Xephyr is a X server that runs as a small window within your current X session. What is it good for ? There are multiple potential uses for Xephyr:
Example: Normally if you ssh -X you can forward x applications. This is not a problem if you are forwarding a single application from a single server. But if you forward multiple applications from multiple servers or a whole desktop, it gets messy (to say the least). You can start a new X session ( Virtual X ), but then you have to Ctl-Al-F7 and Ctrl-Alt-F8 between them. 1. Install Xephyr Code:
sudo apt-get install xserver-xephyr Code:
Xephyr -ac -screen 1280x1024 -br -reset -terminate 2> /dev/null :1 &
3. Set your display (for X) Code:
DISPLAY=:1.0
========================= 4. Forward single apps / separate window for each server. Start Xephyr Code:
Xephyr -ac -screen 1280x1024 -br -reset -terminate 2> /dev/null :1 & Code:
DISPLAY=:1.0 Code:
ssh -XfC -c blowfish user@server xterm
![]() Click to enlarge
Any X apps for that server will start in that window. ========================= 5. Desktop: Start Xephyr Code:
Xephyr -ac -screen 1280x1024 -br -reset -terminate 2> /dev/null :2 & Code:
ssh -XfC -c blowfish user@server xfce4-session
========================= Enjoy, bodhi.zazen
__________________
A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed. ~ Archbishop Desmond Tutu, 1999 ![]() Last edited by bodhi.zazen; November 24th, 2007 at 01:13 AM.. Reason: Added re-direct for error messages |
|
|
|
|
|
#2 | |
|
░▒▓»§«▓▒░
![]() |
Re: How to Xephyr ~ AKA Multiple, nested X sessions
Works good so far. I can't test out ssh yet, since I don't have openssh-server installed on my sisters system yet, but I will try that out soon.
Also, a small fix: Back where you said: Quote:
Code:
ssh -XfC -c blowfish Good job, this really makes things simpler yet Great howto! Edit: A screenshot of icewm-session running through Xephyr at 800x600. http://ubuntuforums.org/attachment.p...1&d=1195779441 Dr Small
__________________
“It is a capital mistake to theorize before you have all the evidence. It biases the judgment." - Sherlock Holmes Linux User #441960 | Beginners Team | Wiki: DrSmall Last edited by Dr Small; November 22nd, 2007 at 08:58 PM.. |
|
|
|
|
|
|
#3 |
|
░▒▓»§«▓▒░
![]() |
Re: How to Xephyr ~ AKA Multiple, nested X sessions
Gtk-Xephyr Allows you to run Xephyr in a Gtk environment, eliminating the use of starting it all with terminals. You must first download the script below, and give it executable permissions, and copy it to your /usr/bin directory.Download from here: Dr Small's Blog Or Ubuntu Forums (1) Chmod it with executable permissions: Code:
chmod +x gtk-xephyr Code:
sudo cp gtk-xephyr /usr/bin Code:
gtk-xephyr I originally wrote this script, after disliking the fact that I needed to open multiple terminals to get this to work, and then Bodhi.Zazen fixed my bugs and made it better You can find the original source of this from here: http://php.8ez.com/drsmall/blog/?p=175 (1: If you downloaded the file from the attachment that I uploaded to Ubuntu Forums, please rename it to "gtk-xephyr" instead of "gtk-xephyr.sh". Ubuntu Forums required that I have a file type within their allow list.) Dr Small
__________________
“It is a capital mistake to theorize before you have all the evidence. It biases the judgment." - Sherlock Holmes Linux User #441960 | Beginners Team | Wiki: DrSmall Last edited by Dr Small; November 24th, 2007 at 07:22 PM.. |
|
|
|
|
|
#4 | |
|
Chocolate-Covered Ubuntu Beans
![]() |
Re: How to Xephyr ~ AKA Multiple, nested X sessions
I will have to try this tomorrow.
__________________
That is not me I am now known as Deep Blue and you may contact me from that account. Quote:
|
|
|
|
|
|
|
#5 |
|
Ubuntu Extra Shot
![]() Join Date: Jun 2007
Location: U.S.
My beans are hidden!
|
Looks awesome! Thanks.
__________________
iteam - A, soon to be, revolutionary Linux game. Go->Site Go->Thread Linux user number 455707 http://counter.li.org/ |
|
|
|
|
|
#6 |
|
Way Too Much Ubuntu
![]() Join Date: Apr 2005
Beans: 247
|
Re: How to Xephyr ~ AKA Multiple, nested X sessions
I had to add this to the beginning of the script:
Code:
unset SESSION_MANAGER Code:
Another session manager is already running |
|
|
|
|
|
#7 |
|
Not much coffee nor Ubuntu
![]() Join Date: Mar 2007
Location: $HOME (Washington State)
Beans: 4,583
Ubuntu 8.10 Intrepid Ibex
|
Re: How to Xephyr ~ AKA Multiple, nested X sessions
Dr Small, I have modified your script a bit to make it so you can enter your own screen resolution (instead of clicking on pre-defined ones). Here is the new script, in case anyone else wants it.
__________________
See my themes here! | Dont preach Linux, mention it | Make GNOME Themes
I'm no longer on here. If you want to talk to me, go to noost.org. My DeviantArt | Linux user #461096 | Ubuntu user #15753 |
|
|
|
|
|
#8 | |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: May 2006
Location: Switzerland
Beans: 2,216
Ubuntu 9.10 Karmic Koala
|
Re: How to Xephyr ~ AKA Multiple, nested X sessions
Quote:
|
|
|
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: Sep 2008
Location: Lyon, France
Beans: 1
Ubuntu 8.04 Hardy Heron
|
Re: How to Xephyr ~ AKA Multiple, nested X sessions
Thanks for this great script for Xephyr. I still have a (noob?) question though : how do I specify in my xorg.conf file that I want the display associated to Xephyr to be outputted on a outer screen or video projector plugged to my laptop ? I both tried to configure this editing xorg.conf manually and using Nvidia X server settings but did not manage to find a solution.
Thanks in advance for your help. |
|
|
|
|
|
#10 | |
|
Ubuntu Guru
![]() |
Re: How to Xephyr ~ AKA Multiple, nested X sessions
Quote:
So you run xephyr on the same screen / x session that is already outputting to your video projector.
__________________
A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed. ~ Archbishop Desmond Tutu, 1999 ![]() |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|