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 24, 2009
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
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
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.
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.
Friday, April 10, 2009
How to install / add font in Ubuntu
Actually I'm quite new using GIMP, because before this I'm more familiar with Photoshop. Today one of my problem make me learn how to install font in Ubuntu. Like Windows, we just can copy and paste the font into C:\Windows\Font directory. But in Ubuntu , it take several steps to make it done. Anyway, it's much better to know both ways , I mean in Windows and Ubuntu, or Linux generally. So, here you go:
To install common Microsoft Truetype font, you can use either APT or Synaptic Package Manager..it's just depend on your choice..but for me I prefer to use APT because I always open my shell..hehe..this font already embedded in repositories..that's why we just can fetch it easily..
$sudo apt-get install msttcorefonts texlive-fonts-extra
For single user ( only user A will have the font instead of all user in the system)
---------------------------------------------------------------------------------------------------------------------------------
$cd /home/username
1.make directory name ".font" if it does not exist. Else just change current directory to this one.
$mkdir .fonts
2. copy the font into this directory:
$cp fontname.ttf .fonts/
3. tell the system about new font:
$fc-cache -f -v
fc-cache : Build font information cache files
-f : Force re-generation of apparently up-to-date cache files, over‐
riding the timestamp checking.
-v : Display status information while busy
*refer to man
For all user in the system
-------------------------------------------
1. copy the font into
2. give fc-cache -f -v command
3. done
And now open your text editor , go to font side, and check your installed font. Walla! It should appear.. ;)
reference : http://geekybits.blogspot.com/2007/11/installing-fonts-in-ubuntu-710.html
To install common Microsoft Truetype font, you can use either APT or Synaptic Package Manager..it's just depend on your choice..but for me I prefer to use APT because I always open my shell..hehe..this font already embedded in repositories..that's why we just can fetch it easily..
$sudo apt-get install msttcorefonts texlive-fonts-extra
For single user ( only user A will have the font instead of all user in the system)
---------------------------------------------------------------------------------------------------------------------------------
$cd /home/username
1.make directory name ".font" if it does not exist. Else just change current directory to this one.
$mkdir .fonts
2. copy the font into this directory:
$cp fontname.ttf .fonts/
3. tell the system about new font:
$fc-cache -f -v
fc-cache : Build font information cache files
-f : Force re-generation of apparently up-to-date cache files, over‐
riding the timestamp checking.
-v : Display status information while busy
*refer to man
For all user in the system
-------------------------------------------
1. copy the font into
/usr/local/share/fonts/ directory2. give fc-cache -f -v command
3. done
And now open your text editor , go to font side, and check your installed font. Walla! It should appear.. ;)
reference : http://geekybits.blogspot.com/2007/11/installing-fonts-in-ubuntu-710.html
Friday, February 6, 2009
FreeBSD - ERROR 1153 (08S01) at line 706: Got a packet bigger than 'max_allowed_packet' bytes???
1. create new file name my.cnf under /usr/local/etc
2. put this content, save and exit :
[mysqld]
max_allowed_packet=64M
3. restart mysql server (/usr/local/etc/rc.d/mysql-server restart)
4. finish and try load again that packet.
2. put this content, save and exit :
[mysqld]
max_allowed_packet=64M
3. restart mysql server (/usr/local/etc/rc.d/mysql-server restart)
4. finish and try load again that packet.
Friday, December 19, 2008
How to set JAVA_HOME path
In FreeBSD 7.2:
--------------------------------------------
#echo ‘setenv JAVA_HOME /usr/local/diablo-jdk1.6.0‘ >> /root/.cshrc
#reboot
#echo $JAVA_HOME (path should appear)
In Ubuntu 8.10 :
------------------------------------------
#echo ‘export JAVA_HOME=/usr/lib/jvm/java-6-sun‘ >> /etc/environment
#reboot
#echo $JAVA_HOME (path should appear)
--------------------------------------------
#echo ‘setenv JAVA_HOME /usr/local/diablo-jdk1.6.0‘ >> /root/.cshrc
#reboot
#echo $JAVA_HOME (path should appear)
In Ubuntu 8.10 :
------------------------------------------
#echo ‘export JAVA_HOME=/usr/lib/jvm/java-6-sun‘ >> /etc/environment
#reboot
#echo $JAVA_HOME (path should appear)
Subscribe to:
Posts (Atom)