The solution is writing follow line in the terminal:
$ sudo /etc/init.d/gdm stop
Wednesday, January 12, 2011
Change the gvim default font
I start to use a new big screen, the default font of vim becomes so small.
I start to search methods that can solve it:
Add follow line to ~/.vimrc:
set guifont=Bitstream\ Vera\ Sans\ Mono\ 12
Here Bitstream\ Vera\ Sans\ Mono\ is the type of the font, and 12 is its size.
I start to search methods that can solve it:
Add follow line to ~/.vimrc:
set guifont=Bitstream\ Vera\ Sans\ Mono\ 12
Here Bitstream\ Vera\ Sans\ Mono\ is the type of the font, and 12 is its size.
Matlab for UBUNTU, errors: Locking assertion failure
This error happens because matlab can not find out the java.
The solution is very simple, add follow line to the ~/.bashrc file:
export MATLAB_JAVA=/usr/lib/jvm/java-6-sun/jre
The solution is very simple, add follow line to the ~/.bashrc file:
export MATLAB_JAVA=/usr/lib/jvm/java-6-sun/jre
SVN connection with a different port number
Some times the port to the server has been changed, such that we must change the default port (25) to the new port. Here is the solution:
1. Find out the file ~/.subversions/config
2. Add follow line: sshtunnels=ssh -p newportnummer. Save the file and exit.
3. Checkout the server svn repository by: svn co svn+sshtunnels://hostname@hostip/pathToSvnRepository
That's it.
1. Find out the file ~/.subversions/config
2. Add follow line: sshtunnels=ssh -p newportnummer. Save the file and exit.
3. Checkout the server svn repository by: svn co svn+sshtunnels://hostname@hostip/pathToSvnRepository
That's it.
Tuesday, November 9, 2010
Let your folders become secret
Under Linux, maybe some files that you don't want to share with others, so the best way is to encrypt the secret files.
Here I introduce a simple way for Ubuntu or other linux users:
First install CFS:
$ apt-get install cfs
Make a folder where you want to keep secret files.
$ cmkdir Secret
Now input your password (At least 16 characters). You have to remember it.
Attach a folder to show the secret context in "Secret" and might add more files to "Secret":
$ cattach Secret tmp
Now input the mentioned password.
Check the context of folder "Secret":
$ cd /crypt/tmp
$ ls
You will see all files that have been encrypted in "Secret", are now shown in "/crypt/tmp".
Now you can add more files in "/crypt/tmp":
$ cp some.txt /crypt/tmp/
After changing the "/crypt/tmp" folder, you have to encrypt the folder:
§ cdetach tmp
Now the folder "/crypt" become empty. However, you can check the encrypted file is added in "Secret" now.
That's it!
Here I introduce a simple way for Ubuntu or other linux users:
First install CFS:
$ apt-get install cfs
Make a folder where you want to keep secret files.
$ cmkdir Secret
Now input your password (At least 16 characters). You have to remember it.
Attach a folder to show the secret context in "Secret" and might add more files to "Secret":
$ cattach Secret tmp
Now input the mentioned password.
Check the context of folder "Secret":
$ cd /crypt/tmp
$ ls
You will see all files that have been encrypted in "Secret", are now shown in "/crypt/tmp".
Now you can add more files in "/crypt/tmp":
$ cp some.txt /crypt/tmp/
After changing the "/crypt/tmp" folder, you have to encrypt the folder:
§ cdetach tmp
Now the folder "/crypt" become empty. However, you can check the encrypted file is added in "Secret" now.
That's it!
Friday, September 24, 2010
Nautilus open folder from terminal
Great command....
You can open current folder from terminal command line....
You can open current folder from terminal command line....
Friday, April 30, 2010
Novel words
"Copy from one, it's plagiarism; copy from two, it's research." Wilson_Mizner
"I respect faith, but doubt is what gets you an education." Wilson_Mizner
"I respect faith, but doubt is what gets you an education." Wilson_Mizner
Subscribe to:
Posts (Atom)