Aji’s Journal

September 4, 2009

Secure Shell – SSH

Filed under: Linux System — admin @ 10:26 am

Dynamic Port Forwarding :

ssh -D 1080 aji@proxy2.bpk.go.id

June 22, 2009

Date and Time

Filed under: Linux System — admin @ 10:43 am

Set localtime:
#ln -sf /usr/share/zoneinfo/Asia/Jakarta /etc/localtime

Check timezone:
#cat /etc/timezone

Check date and timezone:
#date -R

March 11, 2009

Using update-rc.d

Filed under: Linux System — admin @ 4:18 pm

Remove a service from all runlevel:
update-rc.d -f ssh remove

April 11, 2008

EXTENDING PHP WITH PHP-GTK

Filed under: Information Technology, Linux System — admin @ 10:52 pm

We can use PHP to make a desktop application, by adding GTK extension. These are what we have to do:
1. Prepare the file
Requirement:
- checkinstall
- php5-cli (PHP5 Command Line Interface)
- php5-dev
- libglib2.0-dev
- libgtk2-dev
Download PHP-GTK-20.beta.tar.gz
(more…)

April 5, 2008

Tips for Bash

Filed under: Information Technology, Linux System — admin @ 6:51 pm

$ echo {{1,2,3},1,2,3}
1 2 3 1 2 3

$ echo {{1,2,3}1,2,3}
11 21 31 2 3

(more…)

March 31, 2008

Creating application based on PHP-GTK (Scratch)

Filed under: Information Technology, Linux System — admin @ 5:04 pm

Requirements:

  • Ubuntu Gutsy Gibbon
  • Additional programs: checkinstall, PHP5, PHP-Devel

Compiling and Installing

  1. Install libgtk2.0-dev and its required packages.
  2. Download PHP-GTK (I use PHP0-GTK 2.0) and then compile it:
    ./buildconf
    ./configure
    make

    If you are asked for phpize, then it means you have to install php-devel.

  3. (more…)

December 15, 2006

Using GRUB as a Boot Loader

Filed under: Information Technology, Linux System — admin @ 6:59 am

Every hard disk partition has a boot record, but there is only one MBR at those hard disk, which will be loaded by BIOS every time computer starts. From this point, MBR (stage 1) will point into a partition where the active boot loader exist.

Boot loader may contain Grub, LILO, etc (e.g. boot loader from MS Windows). Here are some tips:
(more…)

August 13, 2006

Hard Disk on Linux

Filed under: Information Technology, Linux System — admin @ 9:04 pm

FSTAB MOUNTING

/dev/hda5 /mnt/warehouse vfat rw,uid=500,gid=500 0 0
/dev/hda6 /mnt/overload vfat rw,uid=500,gid=500 0 0

Mode read write untuk user uid=500

0 terakhir berari file system tidak ada dicek integritasnya saat booting.

CHECK HARD DISK HEALTH PERIODICALLAY

Filesystem will be automatically checked every 23 mounts or180 days, whichever comes first.  Use tune2fs -c or -i to override.

August 10, 2006

Scheduling a Repetitive System Event (cron)

Filed under: Information Technology, Linux System — admin @ 8:53 am

Inside a crontab File

The cron daemon schedules system events according to commands found within each crontab file. A crontab file consists of commands, one per line, that will be executed at regular intervals. The beginning of each line contains date and time information that tells the cron daemon when to execute the command.
(more…)

Powered by WordPress