How to install OpenVPN on Ubuntu Linux
Make sure you run all mentioned command as root not sudo
$sudo su
http://www.howtoforge.com/internet-and-lan-over-vpn-using-openvpn-linux-server-windows-linux-clients-works-for-gaming-and-through-firewalls
Hello World. This is my First of First Blog. Here I will try to write things related to what I learn, Since I am kinda obsessed with Technology’s lineage. I, being a Java professional, love Java profoundly and so tried to make a blog that will help you and me of course to be in touch with new happenings in the field of technology. I may soon start a discussion forum based on Java, for that we need to wait a while, after all , not always, good things are FREE….
Make sure you run all mentioned command as root not sudo
$sudo su
http://www.howtoforge.com/internet-and-lan-over-vpn-using-openvpn-linux-server-windows-linux-clients-works-for-gaming-and-through-firewalls
Posted by Unknown at 11:33 AM 0 comments
Command to know free memory on Linux/Unix machines
$ free -m
It will show you status in MB. You can optionally use other filters as well
-b switch displays the amount of memory in bytes
-k switch (set by default) displays it in kilobytes
-m switch displays it in megabytes.
-t switch displays a line containing the totals.
-o switch disables the display of a "buffer adjusted" line. If the -o option is not specified, free subtracts buffer memory from the used memory and adds it to the free memory reported.
-s switch activates continuous polling delay seconds apart. You may actually specify any floating point number for delay, usleep(3) is used for microsecond resolution delay times.
You can also use /proc/meminfo to see the current status of memory
$ cat /proc/meminfo
Posted by Unknown at 11:46 PM 0 comments
Recently I had to work on mysql server on Linux platform.
All our development was done on windows machine and everything went fine.
When we tried to migrate the same code to Linux platform, everything worked fine except that our program was not able to connect to mysql. It was continuously throwing this exception.
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.
at java.net.Socket.
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:254)
at com.mysql.jdbc.MysqlIO.
However we were able to connect via mysqladmin as follows
#mysql -u username -h localhost -p password
After doing some google I found that mysql was actually not allowing remote connections from our program. It was only allowing the Unix socket connections in case of mysql admin, thats why it was able to connect to it.
I had to change few configuration parameters in mysql configuration files as follows to allow remote connections to mysql and restart it.
# vi /etc/my.cnf
Once file opened, locate line that read as follows
[mysqld]
Add the following line at the end of this block
bind-address=YOUR-SERVER-IP
#skip-networking
Where,
* bind-address : IP address to bind to.
* skip-networking : Don’t listen for TCP/IP connections at all. All interaction with mysqld must be made via Unix sockets. This option is highly recommended for systems where only local requests are allowed. Since you need to allow remote connection this line should be removed from my.cnf or put it in comment state
Restart the mysql server, enter:
# /etc/init.d/mysql restart
Posted by Unknown at 2:49 AM 0 comments
Labels: connection, linux, mysql, remote