Month: October 2012

Xnest – XDMCP protocol and virtual DM

An IceWM Xephyr session is running inside a Fl...
An IceWM Xephyr session is running inside a Fluxbox Xephyr session, which is running inside another IceWM Xephyr session, which is running under Linux Mint 8. (Note that Fluxbox is also licensed under the MIT license by the Fluxbox developers, but IceWM is released under the GPL and LGPL by Marko Ma?ek.) (Photo credit: Wikipedia)

XDMCP is protocol that allows remote connections and provides you with a working Display Manager like KDE, GNome, et al. Its a remote connection protocol that is mostly enabled on Solaris and disabled on most Linux boxes. If you need to have a remote session where you need the X Display to open some GUI applications then you can have a connection with the remote server with XDMCP.

If you need to have a XDMCP session then you can use the following command to start a session:

Xephyr -name amit -title aka -query  -wr :1 -screen 1024x768 -host-cursor &

For this session we are using Xephyr. To install the same you can do the following:

sudo yum install xorg-x11-server-Xephyr

You can use the above command with Xnest also :). Just replace Xephyr in both the commands with Xnest.

Also, this can be very useful to get a session on the current system with a different username also. For example, I normally have to work with 2 users on the same system, and hence open nested X-window for the second user like so:

Xephyr -name amit -title aka -wr :1 -screen 1024x768 -host-cursor &
sudo su - username -c "export DISPLAY=:1 && selectwm" &

In the command above we are using selectwm to be started and you can install that with

sudo yum install selectwm

Description for selectwm :

selectwm is a simple but robust program that will let you pick a
window manager (or other executable) to run at X startup, and
optionally after a window manager exits. It uses the GTK+ toolkit, and
includes options like a timer to start the default window manager, and
modification of the window manager list from within selectwm.

To understand the options used in the commands above look at the respective man pages.

Enhanced by Zemanta

meld – cvs diff with ease

Visualization of the "history tree" ...
Visualization of the “history tree” of a revision controlled project, showing branching, merging, tagging, etc. (Photo credit: Wikipedia)

There are couple of ways to make life easier with CVS diff. But here is one that is really good.
First if you haven’t, install meld:

sudo yum install meld

meld is basically a diff viewer and pretty good at it 😉

Now open meld from the menu or from the terminal. And then select New. In the dialog box that appears select “Version Control Browser”. In the Directory box, browse to the folder where you have the code checked out and select ok. And you are all set.

To see the diff with cvs version just double click.

Note: If you are getting issues when you double click, ensure that you do not have any commands for diff in .cvsrc file.

There are other ways of doing this, but thats for some other day.

Enhanced by Zemanta