Skip to main content

Posts

Showing posts from August, 2007

Momo scores the 7000th league goal for Reds

Momo Sissoko scores his first goal for liverpool after playing 75 games. It's also the 7000th league goal for the club since Malcolm McVean got the first goal a century ago. Yesterday [actually it's few hours ago] at the stadium of light, Liverpool got 2-0 won over Sunderland from Sissoko in 37th minute then confirmed by Andriy Voronin at almost the end of game. Very very good start for this season.

More secure your ssh server with public/private keys

To add more secure on ssh server it's good idea to make our server allow only user who has a key to login. Today I found this trick from ubuntuforums . Gen the keys : First, on client box, we generate keys pair and copy the public key file to server box. [poj@client ~]$ ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/home/poj/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/poj/.ssh/id_dsa. Your public key has been saved in /home/poj/.ssh/id_dsa.pub. The key fingerprint is: 38:58:74:7b:4c:5a:11:d7:70:de:c0:41:c2:93:c4:b9 poj@client [poj@client ~]$ ls .ssh id_dsa id_dsa.pub known_hosts [poj@client ~]$ scp .ssh/id_dsa.pub poj@192.168.1.122:./id_dsa.pub poj@192.168.1.122's password: id_dsa.pub 100% 598 0.6KB/s 00:00 [poj@client ~]$ During key gen., we will be asked for place to save the ke...

Customize icons on ubuntu desktop

One thing I want to do for a long time is remove mounted partition icons that default show on my ubuntu desktop. Nothing wrong with those icons, it's just too many icons and some I never go to browse into it. Now what to do. Open gconf-editor by hit [Alt+F2] and type gconf-editor. Go to apps->nautilus->desktop then check out "volume_visible". You can also customize others as you want like adding computer and trash icon to your desktop.

Add truetype fonts on X client side

The pdf file [as I understand] encapsulate text, images and fonts so it should give me same result on any os. Many of pdf files I have are generated on windows and use windows fonts. When I open these files with evince [default document viewer] some can't render fonts correctly because windows fonts aren't embedded and not exist on ubuntu too. What I need to do is make application has correct fonts to use. There are two places that we can add fonts, the first is on server[Xserver] side and the second is on client side. Here I choose second choice by copy fonts required by the document from windows to $HOME/.fonts then caching new fonts by run command 'fc-cache -fv .fonts'. Below is result after adding fonts. pnix@pnix-a7n:~$ ls .fonts ANGSAB.TTF ANGSA.TTF ANGSAUI.TTF ANGSAUZ.TTF timesbd.ttf timesi.ttf ANGSAI.TTF ANGSAUB.TTF ANGSAU.TTF ANGSAZ.TTF timesbi.ttf times.ttf pnix@pnix-a7n:~$ fc-cache -fv .fonts /home/pnix/.fonts: caching, 12 fonts, 0 dirs /var/cac...

package utility command in linux

Have you ever want to know Where is the files go when you install any package? or What package this file belong to? This post is about some package utility command that I've use many time but never remember. To list all files in the package. dpkg -L package-name rpm -ql package-name To find out which package[ we installed ] contains this file. dpkg -S file rpm -qf file To list installed package. dpkg -l rpm -qa To find out which package[ we not installed ] contains this file. apt-file search file yum whatprovides file Many situations in linux that you're complained about missing some library file to do something. Use this command to find the required package.

No window border, window title in compiz-fusion

Update I just found that this problem is about xorg.conf. After add code below it gone Section "Extensions" Option "Composite" "Enable" EndSection ------------------- Sometime when enable compiz-fusion with compiz --replace Window border will disappear and it's not comeback after restart X or even restart system[in my case]. To bring window border back, Alt-F2 then type metacity --replace Don't know why but it's work beleive me. After run this command your desktop will have no 3D effect, now you can try enable compiz again.

Bygfoot the Football Manager game on linux

Long long time ago when I'm university student, one popular game on computer I've played is Championship Manager. At that time it's no 3D graphic only color bar to show stat of attack, defend percentage and comentary text. Today during surf the net I found bygfoot that remind me of the old football manager game. To install On ubuntu, I search repos and found that it's there. so nothing to do just type 'sudo aptitude install bygfoot'. pnix@pnix-a7n:~$ apt-cache search bygfoot bygfoot - soccer (football) manager game featuring the most important European leagues pnix@pnix-a7n:~$ sudo aptitude install bygfoot Password: Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following NEW packages will be installed: bygfoot 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 1519kB ...