Arsip untuk Desember, 2007

Enable Tab Completion in Debian

Posted in Uncategorized dengan kaitan (tags) , , , on Desember 14, 2007 by islamixcity

autocompletion is literally what it’s name might suggest, you start to type something and it’s completed for you.This is usually enabled for simple things such as file and directory names, and by default it will be activated by the “TAB” key.For example if you wish to look at the system’s password file you might wish to run:

less /etc/passwd

To save keystrokes you can actually type:

lesTAB /eTAB/passTAB

As you proceed to type the words pressing TAB will automatically complete things for you.

In the Debian bash package there is a file installed called /etc/bash_completion, this adds a lot more useful behaviours to bash including:

  • Auto completion of hostnames, for SSH
  • Auto completion of Debian specific utilities

To cause your shell to use it run the following command, then login again:

echo ‘. /etc/bash_completion’ >> ~/.bashrc

This will now give you a lot more completions, most usefully I find the following :

apt-get upgTAB

This becomes the familiar “apt-get upgrade“, other apt-get, and dpkg commands suddenly understand completion too, so instead of typing “dpkg --search” you can cut this down to “dpkg --seaTAB“.

To be honest I don’t know the full extent of the completion offered as some of the code in the /etc/bash_completion file is pretty hard to follow, but I know it saves me time.

Why not have a look yourself?

Install Microsoft Fonts on Linux (Ubuntu)

Posted in Uncategorized dengan kaitan (tags) , , , , , , , on Desember 5, 2007 by islamixcity

Saat anda menggunakan aplikasi Open Office pada Linux, anda mungkin melihat beberapa font terlihat beda. Itu dikarenakan sistem operasi Linux (khususnya Ubuntu) secara default tidak terinstall font bawaan Microsoft. Pada ubuntu, hal ini bisa diatasi dengan menginstall beberapa font Microsoft secara manual. Instalasi ini hanya dapat dilakukan apabila komputer (PC) anda terhubung langsung dengan internet. Beberapa Font yang dapat diinstall antara lain adalah :
* Andale Mono
* Arial Black
* Arial (Bold, Italic, Bold Italic)
* Comic Sans MS (Bold)
* Courier New (Bold, Italic, Bold Italic)
* Georgia (Bold, Italic, Bold Italic)
* Impact
* Times New Roman (Bold, Italic, Bold Italic)
* Trebuchet (Bold, Italic, Bold Italic)
* Verdana (Bold, Italic, Bold Italic)
* Webdings
Cara installnya cukup mudah. Buka konsole (pada kubuntu) atau terminal (pada ubuntu), kemudian ketikkan :

$sudo apt-get install msttcorefonts

Ini hanya akan menginstall font standar yang telah disebutkan di atas. Apabila anda ingin menginstall font lain, caranya cukup copy font anda ke directory

~/.fonts/

Setelah selesai menginstall / copy font, LogOut atau restart komputer anda. Atau apabila anda tidak ingin merestart komputer, cukup ketikkan kode di bawah pada konsole :

$sudo fc-cache -fv

selamat mencoba