How to remote login to Linux using Vista ssh

Ahh! I finally found a free solution to do remote login and display the X graphics to my windows vista. I need to run a software from outside the campus. So I need to VPN. I am trying to VPN using Kubuntu but so far failed! So sad, but life goes not. So I installed the VPN setting from my university website, and I can VPN. But now the problem is that I need to run a software that display the X graphic to my Vista.

In the campus, I use Linux (since I don’t need to vpn). Or if I use windows, the university provides Exceed. But it’s not free.

Well, I know that the other alternative is to install Cygwin. But somehow when I tried to find the free software, I found this XWinLogon. Much easier, and suits my needs. It is actually based on Cygwin.

Just download the software and install from the .exe file. The website said that we shouldn’t have any cygwin installation before.

So now I can ssh, and then display the Gnome desktop in my Linux server. To start with Gnome, you will need to put “gnome-session” at the command during the setup.

You can also save the configuration into a BAT file, and then simply clicking the file will bring you to the remote login.


How to check Matlab License

This is the command to check Matlab license in my server:

% cd /apps/matlab/r2006b/etc
The folder might be different from yours. But you need to go to the /etc folder and then run lmstat -a to show all info.
% ./lmstat -a

Type ./lmstat –help if you want to use other options

Writing Equation using Latex in OpenOffice

I previously used Zoho Writer for collaboration in writing some academic paper. The feature that I loved most is that we can write mathematical expression using latex. But the collaborative tool is very limited. So I decided to use OpenOffice. I found an extension that enable me to write math expression in Latex.

It’s called OOoLatex!

Since I am using Kubuntu, I followed the step in this thread, and it installs successfully.

CVS Cheat Sheet

I found this wonderful cheat sheet in using CVS:

Resetting forgotten root password in mysql

I forgot my root password for mysql. This is how to restore it
First, I need to stop the server:
%sudo /etc/init.d/mysql stop

then run the server in safe-mode with –skip-grant-tables to enable login without password
%sudo /usr/bin/mysqld_safe --skip-grant-tables &

Then we can login without the password and access mysql database
%mysql --user=root mysql

In MySQL client, do this:
mysql> update user set Password=PASSWORD('new-password-here') WHERE User='root';
Query OK, 2 rows affected (0.04 sec)
Rows matched: 2 Changed: 2 Warnings: 0

mysql> flush privileges;
Query OK, 0 rows affected (0.02 sec)

mysql> exit

after this type “fg” and “ctrl-C” to kill the server in safe mode. Now start the server again.
%sudo /etc/init.d/mysql start

Now you can try logging in with the new password:
%mysql --user=root --pass=new-password-here

Monitoring CPU and Memory Usage in Kubuntu Hardy

I found a good article on how to monitor your system in Kubuntu/Ubuntu Linux.

enjoy the article.

Little difficulties in Installing packages for Octave 3.0.1

I encountered problems to install packages in Octave 3.0.1 by typing “pkg install”. It turns out a simple error.

You can read the forum post here for more detail.