Description: If you are creating KDM themes (either for KDE3 or KDE4) you may find it very tiring of restarting the Xserver everytime that you change something in the xml file and want to see how it looks.
I recently came across a very nice way of checking your KDM theme from within the current session without having to restart the Xserver. It also allows you to easily take screenshots of your theme using the ksnapshot.
The following instructions originate from the user moonrise (see link below). I upload them here as well.
1. Install Xephyr... Either through Adept Manager or through konsole: "sudo apt-get install xserver-xephyr"
2. Edit "/etc/kde4/kdm/kdmrc" with kate as root. konsole: "kdesudo kate /etc/kde4/kdm/kdmrc"
Change: [Xdmcp] Enable=false
to: [Xdmcp] Enable=true
3. Edit "/etc/kde4/kdm/Xaccess" with kate as root. konsole: "kdesudo kate /etc/kde4/kdm/Xaccess"
Change: #* #any host can get a login window
to: * #any host can get a login window
4. Reboot your system.
5. After rebooting. Log in. Start Konsole. In konsole: "Xephyr -query localhost -screen 800x600 :1"
if the last command gives you a black sceen, try:
"Xephyr :1 -query 127.0.0.1 -screen 800x600"
6. This should bring up a screen @ the designated resolution of 800x600. You can play with the resolution to check if your theme looks fine under different resolutions.
7. You can also use "Ksnapshot" to make a screen shot of the resulting screen that appears.
8. If you are using KDE3 change the word "kde4" to "kde3".
Note that you do not have to install-uninstall your theme everytime you make a change in the xml file. Instead, edit directly your installed xml file (for example, the one in "/usr/share/apps/kdm/themes/your_theme") and then call Xephyr. You will see that the changes have taken place.
Aye! you forget to mention a nice tool xnest(1), the same can also be achieved using Xnest server/client:
Xnest :1 -query localhost
I also second, that editing and modifying files in /usr/share/apps/kdm/themes/<whatever> is better option, though not the best.
Aye! you forget to mention a nice tool xnest(1), the same can also be achieved using Xnest server/client:
Xnest :1 -query localhost
I also second, that editing and modifying files in /usr/share/apps/kdm/themes/<whatever> is better option, though not the best.
This post is needed. That process is exactly what I do. Although I do wish there was an easier way still other than: edit file, tar it, uninstall old, install new, start xypher. And do that over and over and over.
No, what you will do is edit directly the xml file from /usr/share/apps/kdm/themes/"your_theme_name" and then load Xephyr.
If you do not like what you see then continue editing the xml file in the above directory. You do NOT have to tar, untar etc.. :-)))
Ratings & Comments
4 Comments
Aye! you forget to mention a nice tool xnest(1), the same can also be achieved using Xnest server/client: Xnest :1 -query localhost I also second, that editing and modifying files in /usr/share/apps/kdm/themes/<whatever> is better option, though not the best.
Aye! you forget to mention a nice tool xnest(1), the same can also be achieved using Xnest server/client: Xnest :1 -query localhost I also second, that editing and modifying files in /usr/share/apps/kdm/themes/<whatever> is better option, though not the best.
This post is needed. That process is exactly what I do. Although I do wish there was an easier way still other than: edit file, tar it, uninstall old, install new, start xypher. And do that over and over and over.
No, what you will do is edit directly the xml file from /usr/share/apps/kdm/themes/"your_theme_name" and then load Xephyr. If you do not like what you see then continue editing the xml file in the above directory. You do NOT have to tar, untar etc.. :-)))