Tuesday, August 14, 2012
SUDO SCRIPT
Monday, August 13, 2012
How to handle X11 Forwarding using SSH
If you need to use X applications/GUI over a remote SSH connection via PuTTY, this tutorial is for you.
What you needXming : an X-Server that starts on top of your desktop. Download Xming and install it. PuTTY : an SSH client. Download PuTTY and save it on your hard disk. Configure Xming
Running X apps as root
This requires a little tweak. Suppose your regular user home directory is /var/home/arul and the root user home directory is /root
If you were able to login as a normal user earlier, a file called .Xauthority would be created in the home directory. Chmod the .Xauthority to 555.
chmod 555 ~/.Xauthority
Login as root from your regular user account.
su - root
Copy the .Xauthority from the regular user's home directory to root user's home directory.
cp /var/home/arul/.Xauthority /root
Now try to open any X apps like xterm or emacs. It should work.
Troubleshooting
If you're not able to open any X apps from the session, you may need to enable X11 SSH Forwarding in the /etc/ssh/ssh_config file
Compile mod_jk from source for IBM HTTP Server
To create tomcat-connectors's autoconf script, you will need to install libraries below
yast -i libtool automake autoconf perl gcc gcc-c++ libgcc glibc glibc-32bit glibc-devel glibc-devel-32bit libtool automake autoconf
and then do steps below:
1. download mod_jk source
2. cd $tomcat-connectors'/native
3. ./buildconf.sh
4. LDFLAGS=-lc ./configure -with-apxs=/opt/IBM/HTTPServer/bin/apxs
6. cd apache-2.0
7. make
8. copy ./apache-2.0/mod_jk.so to /opt/IBM/HTTPServer/modules