Feeds:
Posts
Comments

Archive for February, 2008

A MacOS X like panel for Gnome

Avant Window Navigator is a dock-like bar whichs sits at the botton of the screen. The default bar is empty. To add a new icon just drag any icons on the Ubuntu Menus into Avant Window Navigator. To remove any icons on Avant Window Navigator, choose the icon, click mouse right button and click ‘remove‘.

Installation

From Ubuntu Terminal screen (click Applications > Accessories > Terminal), type:

taufanlubis@toshiba:~$ sudo apt-get install avant-window-navigator

[sudo] password for taufanlubis:

Reading package lists… Done

Building dependency tree

Reading state information… Done

The following extra packages will be installed:

libawn0

Recommended packages:

awn-manager

The following NEW packages will be installed:

avant-window-navigator libawn0

0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.

Need to get 302kB of archives.

After unpacking 1384kB of additional disk space will be used.

Do you want to continue [Y/n]? y

Get:1 http://archive.ubuntu.com gutsy-backports/universe libawn0 0.2.1-0ubuntu1~gutsy1 [63.9kB]

Get:2 http://archive.ubuntu.com gutsy-backports/universe avant-window-navigator 0.2.1-0ubuntu1~gutsy1 [238kB]

Fetched 302kB in 3s (87.1kB/s)

Selecting previously deselected package libawn0.

(Reading database … 106245 files and directories currently installed.)

Unpacking libawn0 (from …/libawn0_0.2.1-0ubuntu1~gutsy1_i386.deb) …

Selecting previously deselected package avant-window-navigator.

Unpacking avant-window-navigator (from …/avant-window-navigator_0.2.1-0ubuntu1~gutsy1_i386.deb) …

Setting up libawn0 (0.2.1-0ubuntu1~gutsy1) …

Setting up avant-window-navigator (0.2.1-0ubuntu1~gutsy1) …

Processing triggers for libc6 …

ldconfig deferred processing now taking place

taufanlubis@toshiba:~$

Running the program

Click Applications > Accessories > Avant Window Navigator.

Closing the program

Mouse right click on Avant Window Navigator free area and choose close.

avant-window-navigator.png

Read Full Post »

Compiz is a program to create amazing effect in Linux Desktop. Compiz is automatically installed as default in Ubuntu Gutsy. Unfortunately you can only do few effects with it. To set more effect with Compiz you a program named Comfiz Config Setting Manager. You will have a new menu, Advanced Desktop Effects Setting, after you install the program.
compiz1.png

Installation

From Ubuntu Terminal screen (click Applications > Accessories > Terminal), type:

taufanlubis@toshiba:~$ sudo apt-get install compizconfig-settings-manager

[sudo] password for taufanlubis:

Reading package lists… Done

Building dependency tree

Reading state information… Done

The following extra packages will be installed:

python-compizconfig

The following NEW packages will be installed:

compizconfig-settings-manager python-compizconfig

0 upgraded, 2 newly installed, 0 to remove and 152 not upgraded.

Need to get 540kB of archives.

After unpacking 3486kB of additional disk space will be used.

Do you want to continue [Y/n]? y

Get:1 http://archive.ubuntu.com gutsy/universe python-compizconfig 0.5.2+git20070912-0ubuntu1 [29.1kB]

Get:2 http://archive.ubuntu.com gutsy/universe compizconfig-settings-manager 0.5.2+git20070912-0ubuntu1 [511kB]

Fetched 540kB in 1m6s (8122B/s)

Selecting previously deselected package python-compizconfig.

(Reading database … 92078 files and directories currently installed.)

Unpacking python-compizconfig (from …/python-compizconfig_0.5.2+git20070912-0ubuntu1_i386.deb) …

Selecting previously deselected package compizconfig-settings-manager.

Unpacking compizconfig-settings-manager (from …/compizconfig-settings-manager_0.5.2+git20070912-0ubuntu1_all.deb) …

Setting up python-compizconfig (0.5.2+git20070912-0ubuntu1) …

Setting up compizconfig-settings-manager (0.5.2+git20070912-0ubuntu1) …

taufanlubis@toshiba:~$

Running the program

Open System > Preferences > Advanced Desktop Effects Setting.

To add animations, click ‘Animations’ button.
compiz2.png

To decrease the effect speed, increase the duration value.

To increase the duration value, choose an effect that you want to slow down, click Edit button, increase the duration value and click OK button.

compiz3.png

Below are my favorite effect setting:
compiz4a1.png

compiz4b.png

 

compiz4c.png

Some my favorite compiz effect.

  • Super + E = activates the Expo plugin

  • Super+Shift = paint fire on your desktop with your mouse

  • Super+Shift+C = will erase the fire paint

  • Super + Tab = activates the Ring Switcher plugin

  • Shift+Alt+ArrowUP = Arrange windows cascade in a workspace

  • Ctrl+Alt+ArrowDown = Arrange windows horizontal in a workspace

  • Ctrl+Alt+MouseButton1+Scroll = Rotate Cube

  • Super+N Negative = Active Window

  • Super+M = Negative Screen

Read Full Post »

In WordPress you can not modify your HTML code unless you are registered as paid member. So, if you want to put and additional link with a picture on it, it will be difficult.

But with a bit trick, you can do that.

For example, I want to put cluster map visitor in my WordPress. To do that, basically you need 2 address.

  • Your link address

  • Your image address

Note:

  • I Assume that you are familiar with basic WordPress menu

  • Familiar with HTML code

Step 1. Copy your Cluster map Link.

clustermap0.png
<a href=”http://www3.clustrmaps.com/counter/maps.php?url=http:/taufanlubis.wordpress.com&#8221; id=”clustrMapsLink”><img src=”http://www3.clustrmaps.com/counter/index2.php?url=http:/taufanlubis.wordpress.com&#8221; style=”border: 0pt none ” alt=”Locations of visitors to this page” /></a>

I took this link from Cluster map website.

As you can see,

Step 2. Create a new Blog roll category in your WordPress

If you want to put your link in a different blog roll, you have to create a new category.
cluster3.png

Step 3. Create a new Blog roll

Read Full Post »

When you open a console terminal and you get bored with your default prompt, you can change.

$ _

That is the default prompt.

$ is a prompt shell

_ is a cursor

# is a prompt shell for super user or root

Change Prompt

The command is: PS1=”your_string”

For example, I want to make my new prompt to be “taufanlubis@myubuntu_server:~$”,

Just type:

taufanlubis@toshiba:~$ PS1=”taufanlubis@myubuntu_server:~$”

My new prompt.

taufanlubis@myubuntu_server:~$

Read Full Post »

Step 1. Download the Real Player

Download link: https://player.helixcommunity.org/2005/downloads/

I suggest to download the ‘Installer’ program. It’s much easier.

Step 2. Change access permission

taufanlubis@toshiba:~$ ls -l realplay-10.0.9.809-linux-2.2-libc6-gcc32-i586.bin

-rw-r–r– 1 taufanlubis taufanlubis 5790356 2008-02-12 08:20 realplay-10.0.9.809-linux-2.2-libc6-gcc32-i586.bin

taufanlubis@toshiba:~$ sudo chmod a+x realplay-10.0.9.809-linux-2.2-libc6-gcc32-i586.bin

taufanlubis@toshiba:~$ ls -l realplay-10.0.9.809-linux-2.2-libc6-gcc32-i586.bin

-rwxr-xr-x 1 taufanlubis taufanlubis 5790356 2008-02-14 07:55 realplay-10.0.9.809-linux-2.2-libc6-gcc32-i586.bin

Note:

When you install the realplay, make sure that your directory name has no space, otherwise it will create an error. For example:

taufanlubis@toshiba:~/mydata/My Ubuntu Collections/packages$ sudo ./realplay-10.0.9.809-linux-2.2-libc6-gcc32-i586.bin

Extracting files for RealPlayer installation…sh: /home/taufanlubis/mydata/My: not found

Step 3. Installation

taufanlubis@toshiba:~$ sudo ./realplay-10.0.9.809-linux-2.2-libc6-gcc32-i586.bin

Extracting files for RealPlayer installation……………………

Welcome to the RealPlayer (10.0.9.809) Setup for UNIX

Setup will help you get RealPlayer running on your computer.

Press [Enter] to continue…

Enter the complete path to the directory where you want

RealPlayer to be installed. You must specify the full

pathname of the directory and have write privileges to

the chosen directory.

Directory: [/home/taufanlubis/RealPlayer]: (just press enter)

You have selected the following RealPlayer configuration:

Destination: /home/taufanlubis/RealPlayer

Enter [F]inish to begin copying files, or [P]revious to go

back to the previous prompts: [F]: f (just press enter)

Copying RealPlayer files…configure system-wide symbolic links? [Y/n]: .y (just press enter)

enter the prefix for symbolic links [/usr]: .. (just press enter)

Setting up realplay symlinks in /usr…

configuring icons…

configuring document icons…

configuring pixmaps…

configuring locale…

.configuring desktop…

configuring applications…

configuring GNOME mime types…

Configuring realplay script…

RealPlayer installation is complete.

Cleaning up installation files…

Done.

taufanlubis@toshiba:~$

Running the program

Click Applications > Sound & Video > Real Player 10

realplayer10.png

Read Full Post »

Kaffeine is a media player for KDE 3.5.8, but it still can run in Ubuntu. Its support multiple player engines. Its default engine is xine. That’s why kaffeine has wide variety of supported media types. Kaffeine can play CDs, DVDs and network streaming easily.

Installation

From Ubuntu Linux terminal (Applications > Accessories > Terminal), type:

taufanlubis@toshiba:~$ sudo apt-get install kaffeine

Reading package lists… Done

Building dependency tree

Reading state information… Done

The following extra packages will be installed:

kaffeine-xine kdelibs-data kdelibs4c2a libarts1c2a libartsc0 libavahi-qt3-1

liblua50 liblualib50 libpulse0 libxcb-shape0 libxcb-shm0 libxcb-xv0 libxcb1

libxine1 libxine1-console libxine1-ffmpeg libxine1-gnome

libxine1-misc-plugins libxine1-plugins libxine1-x libxvmc1

Suggested packages:

fam pulseaudio gxine xine-ui

Recommended packages:

perl-suid libarts1-akode libxine1-doc libxine-doc

The following NEW packages will be installed:

kaffeine kaffeine-xine kdelibs-data kdelibs4c2a libarts1c2a libartsc0

libavahi-qt3-1 liblua50 liblualib50 libpulse0 libxcb-shape0 libxcb-shm0

libxcb-xv0 libxcb1 libxine1 libxine1-console libxine1-ffmpeg libxine1-gnome

libxine1-misc-plugins libxine1-plugins libxine1-x libxvmc1

0 upgraded, 22 newly installed, 0 to remove and 0 not upgraded.

Need to get 24.7MB of archives.

After unpacking 77.6MB of additional disk space will be used.

Do you want to continue [Y/n]? y

Get:1 http://security.ubuntu.com gutsy-security/main libpulse0 0.9.6-1ubuntu2.1 [104kB]

Get:2 http://archive.ubuntu.com gutsy/main libartsc0 1.5.8-0ubuntu1 [15.2kB]

Get:3 http://archive.ubuntu.com gutsy/main libarts1c2a 1.5.8-0ubuntu1 [1116kB]

Get:4 http://archive.ubuntu.com gutsy-updates/main libavahi-qt3-1 0.6.20-2ubuntu3.2 [32.1kB]

Get:5 http://archive.ubuntu.com gutsy/main liblua50 5.0.3-2build1 [48.9kB]

Get:6 http://archive.ubuntu.com gutsy/main liblualib50 5.0.3-2build1 [35.3kB]

Get:7 http://archive.ubuntu.com gutsy-proposed/main kdelibs-data 4:3.5.8-0ubuntu3.3 [7295kB]

Get:8 http://archive.ubuntu.com gutsy-proposed/main kdelibs4c2a 4:3.5.8-0ubuntu3.3 [10.0MB]

Get:9 http://archive.ubuntu.com gutsy/main libxcb1 1.0-3 [41.6kB]

Get:10 http://archive.ubuntu.com gutsy-backports/universe libxine1-ffmpeg 1.1.8-2ubuntu2~gutsy1 [448kB]

Get:11 http://archive.ubuntu.com gutsy-backports/universe libxine1-gnome 1.1.8-2ubuntu2~gutsy1 [60.3kB]

Get:12 http://archive.ubuntu.com gutsy-backports/main libxine1-misc-plugins 1.1.8-2ubuntu2~gutsy1 [999kB]

Get:13 http://archive.ubuntu.com gutsy/main libxcb-shape0 1.0-3 [14.6kB]

Get:14 http://archive.ubuntu.com gutsy/main libxcb-shm0 1.0-3 [14.1kB]

Get:15 http://archive.ubuntu.com gutsy/main libxcb-xv0 1.0-3 [17.7kB]

Get:16 http://archive.ubuntu.com gutsy/main libxvmc1 2:1.0.4-2ubuntu1 [19.2kB]

Get:17 http://archive.ubuntu.com gutsy-backports/main libxine1-x 1.1.8-2ubuntu2~gutsy1 [254kB]

Get:18 http://archive.ubuntu.com gutsy-backports/universe libxine1-console 1.1.8-2ubuntu2~gutsy1 [106kB]

Get:19 http://archive.ubuntu.com gutsy-backports/universe libxine1-plugins 1.1.8-2ubuntu2~gutsy1 [46.2kB]

Get:20 http://archive.ubuntu.com gutsy-backports/main libxine1 1.1.8-2ubuntu2~gutsy1 [1588kB]

Get:21 http://archive.ubuntu.com gutsy/main kaffeine-xine 0.8.5-0ubuntu1 [190kB]

Get:22 http://archive.ubuntu.com gutsy/main kaffeine 0.8.5-0ubuntu1 [2233kB]

Fetched 24.7MB in 3m42s (111kB/s)

Selecting previously deselected package libartsc0.

(Reading database … 97399 files and directories currently installed.)

Unpacking libartsc0 (from …/libartsc0_1.5.8-0ubuntu1_i386.deb) …

Selecting previously deselected package libarts1c2a.

Unpacking libarts1c2a (from …/libarts1c2a_1.5.8-0ubuntu1_i386.deb) …

Selecting previously deselected package libavahi-qt3-1.

Unpacking libavahi-qt3-1 (from …/libavahi-qt3-1_0.6.20-2ubuntu3.2_i386.deb) …

Selecting previously deselected package liblua50.

Unpacking liblua50 (from …/liblua50_5.0.3-2build1_i386.deb) …

Selecting previously deselected package liblualib50.

Unpacking liblualib50 (from …/liblualib50_5.0.3-2build1_i386.deb) …

Selecting previously deselected package kdelibs-data.

Unpacking kdelibs-data (from …/kdelibs-data_4%3a3.5.8-0ubuntu3.3_all.deb) …

Selecting previously deselected package kdelibs4c2a.

Unpacking kdelibs4c2a (from …/kdelibs4c2a_4%3a3.5.8-0ubuntu3.3_i386.deb) …

Selecting previously deselected package libxcb1.

Unpacking libxcb1 (from …/libxcb1_1.0-3_i386.deb) …

Selecting previously deselected package libxine1-ffmpeg.

Unpacking libxine1-ffmpeg (from …/libxine1-ffmpeg_1.1.8-2ubuntu2~gutsy1_i386.deb) …

Selecting previously deselected package libxine1-gnome.

Unpacking libxine1-gnome (from …/libxine1-gnome_1.1.8-2ubuntu2~gutsy1_i386.deb) …

Selecting previously deselected package libpulse0.

Unpacking libpulse0 (from …/libpulse0_0.9.6-1ubuntu2.1_i386.deb) …

Selecting previously deselected package libxine1-misc-plugins.

Unpacking libxine1-misc-plugins (from …/libxine1-misc-plugins_1.1.8-2ubuntu2~gutsy1_i386.deb) …

Selecting previously deselected package libxcb-shape0.

Unpacking libxcb-shape0 (from …/libxcb-shape0_1.0-3_i386.deb) …

Selecting previously deselected package libxcb-shm0.

Unpacking libxcb-shm0 (from …/libxcb-shm0_1.0-3_i386.deb) …

Selecting previously deselected package libxcb-xv0.

Unpacking libxcb-xv0 (from …/libxcb-xv0_1.0-3_i386.deb) …

Selecting previously deselected package libxvmc1.

Unpacking libxvmc1 (from …/libxvmc1_2%3a1.0.4-2ubuntu1_i386.deb) …

Selecting previously deselected package libxine1-x.

Unpacking libxine1-x (from …/libxine1-x_1.1.8-2ubuntu2~gutsy1_i386.deb) …

Selecting previously deselected package libxine1-console.

Unpacking libxine1-console (from …/libxine1-console_1.1.8-2ubuntu2~gutsy1_i386.deb) …

Selecting previously deselected package libxine1-plugins.

Unpacking libxine1-plugins (from …/libxine1-plugins_1.1.8-2ubuntu2~gutsy1_all.deb) …

Selecting previously deselected package libxine1.

Unpacking libxine1 (from …/libxine1_1.1.8-2ubuntu2~gutsy1_i386.deb) …

Selecting previously deselected package libxine1-plugins.

Unpacking libxine1-plugins (from …/libxine1-plugins_1.1.8-2ubuntu2~gutsy1_all.deb) …

Selecting previously deselected package libxine1.

Unpacking libxine1 (from …/libxine1_1.1.8-2ubuntu2~gutsy1_i386.deb) …

Selecting previously deselected package kaffeine-xine.

Unpacking kaffeine-xine (from …/kaffeine-xine_0.8.5-0ubuntu1_i386.deb) …

Selecting previously deselected package kaffeine.

Unpacking kaffeine (from …/kaffeine_0.8.5-0ubuntu1_i386.deb) …

Setting up libartsc0 (1.5.8-0ubuntu1) …

Setting up libarts1c2a (1.5.8-0ubuntu1) …

Setting up libavahi-qt3-1 (0.6.20-2ubuntu3.2) …

Setting up liblua50 (5.0.3-2build1) …

Setting up liblualib50 (5.0.3-2build1) …

Setting up kdelibs-data (4:3.5.8-0ubuntu3.3) …

Setting up kdelibs4c2a (4:3.5.8-0ubuntu3.3) …

Setting up libxcb1 (1.0-3) …

Setting up libpulse0 (0.9.6-1ubuntu2.1) …

Setting up libxcb-shape0 (1.0-3) …

Setting up libxcb-shm0 (1.0-3) …

Setting up libxcb-xv0 (1.0-3) …

Setting up libxvmc1 (2:1.0.4-2ubuntu1) …

Setting up libxine1-ffmpeg (1.1.8-2ubuntu2~gutsy1) …

Setting up libxine1-plugins (1.1.8-2ubuntu2~gutsy1) …

Setting up libxine1 (1.1.8-2ubuntu2~gutsy1) …

Setting up kaffeine-xine (0.8.5-0ubuntu1) …

Setting up libxine1-gnome (1.1.8-2ubuntu2~gutsy1) …

Setting up libxine1-misc-plugins (1.1.8-2ubuntu2~gutsy1) …

Setting up libxine1-x (1.1.8-2ubuntu2~gutsy1) …

Setting up libxine1-console (1.1.8-2ubuntu2~gutsy1) …

Setting up kaffeine (0.8.5-0ubuntu1) …

Processing triggers for libc6 …

ldconfig deferred processing now taking place

taufanlubis@toshiba:~$

kaffeine2.png

Read Full Post »

At about 22 years ago, Assembly Language is my second language after BASICA. I used Borland Turbo Assembler and Microsoft Debug on that time. I think Debug one of the very powerful tools for hacking. I like hacking. With Assembly, you can order the machine to do anything you want and go directly to every ports in the machine.

I just figure out, is there any Assembly Language in Linux?

Because, usually Assembly Language use DOS Services. Meanwhile, there is no DOS in Linux.

I finally found a good application, named NASM (Net wide Assembler). It’s a Assembly Language compiler in Linux. I’m still new with NASM, so I just take the sample codes from http://leto.net/writing/nasm.php.

NASM doesn’t have a text editor, so you have to type your code using other text editor then save the file with .asm file extension.

There are few main differences to be considered when you use assembly language in Linux:

  • In DOS mostly you use interrupt int 21h, int 10h and int 16h. In Linux, everything is handled by kernel with int 80h.

  • Linux is a 32-bit protected mode operating system, so you have to use extended 32-bit registers, such as EAX, EBX, ECX and so on. In 16-bit register, you still use AX, BX,CX etc …. registers.

  • In 32-bit programming, you don’t have to think about segments at all because it runs in the flat memory model.

  • I think no body write DOS assembly anymore. Hey… it’s 16 bit.

How I can get Nasm?

NASM is listed in Ubuntu Repository, so just download it using apt.

taufanlubis@toshiba:~$ sudo apt-get install nasm

[sudo] password for taufanlubis:

Reading package lists… Done

Building dependency tree

Reading state information… Done

The following packages were automatically installed and are no longer required:

mplayer-skins mplayer libggi2 libgii1 libgii1-target-x youtube-dl

Use ‘apt-get autoremove’ to remove them.

The following NEW packages will be installed:

nasm

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

Need to get 1557kB of archives.

After unpacking 2855kB of additional disk space will be used.

Get:1 http://archive.ubuntu.com gutsy/main nasm 0.98.38-1.2build1 [1557kB]

Fetched 1557kB in 36s (42.8kB/s)

Selecting previously deselected package nasm.

(Reading database … 126048 files and directories currently installed.)

Unpacking nasm (from …/nasm_0.98.38-1.2build1_i386.deb) …

Setting up nasm (0.98.38-1.2build1) …

taufanlubis@toshiba:~$

Write your first Linux Assembly Language Application

When I learn a new computer language, the first thing I want to know is, how to display a ‘Hello World!!!’. I don’t want to know about the structure, variables, codes etc. Just do a simple thing, type, compile and see it run. That’s it. Then you can go further. It’s the same when you teach a baby to speak. We don’t teach any grammar. We give samples.

So, here it is.

Step 1. Type the code

You can use, vim, vi, gedit etc. The extension must be .asm.

taufanlubis@toshiba:~$ sudo vim hello.asm

[sudo] password for taufanlubis:

section .data

hello: db ‘Hello world!’,10

helloLen: equ $-hello

section .text

global _start

_start:

mov eax,4

mov ebx,1

mov ecx,hello

mov edx,helloLen

int 80h

mov eax,1

mov ebx,0

int 80h

Press ‘Esc‘ button and type ‘:wq‘ to save the file.

Actually, I’m new myself in Assembly Programming in Linux. I took the codes above from the NASM website. I just wanna show you that we can do Assembly Programming in Linux. If you want to know deeper you can go

to this link: ……………………..

Step 2. Compile .asm (source code) to .o (object)

taufanlubis@toshiba:~$ nasm -f elf hello.asm

Step 3. Link the object file to produce an executable file.

taufanlubis@toshiba:~$ ld -s -o hello hello.o

Now, you have 3 files, hello.asm (your source code), hello.o (your object file) and hello (your program).

taufanlubis@toshiba:~$ ls -l hello*

-rwxr-xr-x 1 taufanlubis taufanlubis 440 2008-01-17 20:38 hello

-rw-r–r– 1 root root 203 2008-01-17 20:33 hello.asm

-rw-r–r– 1 taufanlubis taufanlubis 736 2008-01-17 20:37 hello.o

Step 3. Ready to run

You can run your program by typing:

taufanlubis@toshiba:~$ ./hello

Hello world!

taufanlubis@toshiba:~$

Congratulations! You have just written your first assembly program in Linux.

If you want to know more details about nasm and ld, you can see the manual.

taufanlubis@toshiba:~$ man ld

taufanlubis@toshiba:~$ man nasm

 

 

Read Full Post »

Older Posts »

Follow

Get every new post delivered to your Inbox.

Join 72 other followers