Friday, August 14, 2009

GPG error

problem:
------------------------------------------------------------------------------------------
W: GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A040830F7FAC5991
W: You may want to run apt-get update to correct these problems



solution:
------------------------------------------------------------------------------------------
flufyz$ gpg --keyserver dl.google.com --recv A040830F7FAC5991
flufyz$ gpg --export --armor A040830F7FAC5991 | sudo apt-key add -

Friday, July 31, 2009

update or edit SVN repository path

to update SVN repository path, let say from http://aaaaa.com to http://bbbb.com:

1-go to directory which hold the svn repo and go into .svn directory
2-look for file named "entries"
3-edit using any text editor, such as vi or nano
4-look for line
http://aaaaa.com , and change it to http://bbbb.com
5-save and exit
6-give command svn update to test
7-finish.

Wednesday, June 24, 2009

Ubuntu - install JRE plugin for firefox

#apt-get install sun-java6-plugin

then open firefox, key in about:plugins in URL bar..

JAVA plugin should listed and enabled

Pidgin version < 2.5.7 cannot login yahoo

problem:
--------------------
pidgin cannot login to yahoo messenger..

solution:
-----------------
go to modify account > yahoo account > advanced tab
set pager server as "cn.scs.msg.yahoo.com" instead of "scs.msg.yahoo.com"
exit,save , logout and login again...

Wednesday, June 17, 2009

Add or remove a script on startup in Debian or Ubuntu

Add a script:

1. put the script under /etc/init.d/
2. #chmod 755 myscript
3. #update-rc.d myscript defaults
4. #reboot

-------------------------------------------------------
Remove :

1. #cd /etc/init.d/
2. #update-rc.d -f myscript remove
3. #reboot

more over , please use "man update-rc.d" command

Friday, June 12, 2009

Apache - Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

problem :

Apache - Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName


solution:

open httpd.conf
add this line:

Servername myservername

Wednesday, April 22, 2009

SSH without password

sometimes it become bored when you need to key in the password each time you want to login to the server by using ssh..so how to login through ssh without a password?

this step need to be once only and it done from client side only:

#ssh-keygen -t rsa

Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
c1:7b:fe:cc:32:9f:51:6b:0d:be:5c:6d:b0:94:b9:fc root@bordersmart

#scp /root/.ssh/id_rsa.pub user@targetserver.com:/root/.ssh/authorized_keys

Now try login to targetserver.com

#ssh targetserver.com

It will not prompt a password. Done. Anyway, try google about DSA vs RSA. There are differents, but it depend how the usage.