VNC Normal Desktop Start up

September 9, 2009

Here just i wanted to post VNC config for normal desktop.
coding of /root/.vnc/xstartup

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
twm &

How to create a openSSL Certificate

September 9, 2009

Creating an SSL Certificate using OpenSSL

I just wanted to post some quick instructions on creating a self signed certificate that you can install into Apache 2 for use with mod_ssl. It seems that these instructions are hard to come by, and I thought it would be useful to just show how to do it without the messy explanations:

mkdir ~/sslcert
cd ~/sslcert

openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

server.key and server.crt are now your private key and self-signed public certificate pair. If you install them into Apache2, you’ll notice that you’re now prompted for your certificate password everytime you start the server. This is because your private key is stored in an encrypted format for security. It’s recommended that you leave it this way, but if you really hate that password prompt starting apache, here’s how you can decrypt your private key file:

cd ~/sslcert
cp server.key server.key.orig
openssl rsa -in server.key.orig -out server.key

For Jboss 4.0.2 : Securing the jmx-console and web-console

September 9, 2009

Securing jmx-console:
=====================
1. uncomment the lines found in the following path.
$JBOSS_HOME\server\all\deploy\jmx-console.war\WEB-INF\web.xml

2. Change the password in the jmx-console-users.properties,if required. The properties
file is found in the following path:

$JBOSS_HOME\server\all\conf\props\jmx-console-users.properties

3. uncomment the tag found in the jboss-web.xml. The path of the file is
as follows:
$JBOSS_HOME\server\all\deploy\jmx-console.war\WEB-INF\jboss-web.xml

Securing web-console:
=====================
1. Repeat the step 1 of “Securing jmx-console”. The web.xml is found in the following path:
$JBOSS_HOME\server\all\deploy\management\console-mgr.sar\web-console.war\WEB-INF\web.xml

2. Change the password in the web-console-users.properties,if required. The properties
file is found in the following path:

$JBOSS_HOME\server\all\deploy\management\console-mgr.sar\web-console.war\WEB-INF\classes\web-console-users.properties

3. uncomment the tag found in the jboss-web.xml. The path of the file is
as follows:
$JBOSS_HOME\server\all\deploy\management\console-mgr.sar\web-console.war\WEB-INF\jboss-web.xml

Hello world!

September 9, 2009

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!


Follow

Get every new post delivered to your Inbox.