Dec 11, 2008

Simple anonymous ftp server

This time, i just wanted to create an ftp server to share some "read-only" files. If i put these files on a public samba shared, it will easily to be changed. It will not be good if you change a teaching schedule by yourself...not by the authorities.
Next example can be a master report file or master forms.

I just did :
install proftp :=> sudo apt-get install proftpd ucf
activate the anonymous section on the /etc/proftpd/proftpd.conf
restart proftp :=> sudo /etc/init.d/proftpd restart
Done !!
from web browser :=> ftp://servername/

When i did not activate the anonymous section on proftpd.conf, it seemed like we can open all home folders of that server ( of course this is BAD !! ) even the ftp asked for a password.


About a beep

Sometimes we heard "beep" sounds from our computer when we tried to turn it on, it was not just "beep". The beep means something, can be a problem happened to our computer.

Below are some meaning of the "beep"

No Beeps Short, No power, Bad CPU/MB, Loose Peripherals
One Beep Everything is normal and Computer POSTed fine
Two Beeps POST/CMOS Error
One Long Beep, One Short Beep Motherboard Problem
One Long Beep, Two Short Beeps Video Problem
One Long Beep, Three Short Beeps Video Problem
Three Long Beeps Keyboard Error
Repeated Long Beeps Memory Error
Continuous Hi-Lo Beeps CPU Overheating
The above "beeps" were the usually happened beeps
For more beep's details :
when you heard your computer is beeping...please, LISTEN to it !!


Nov 21, 2008

Missing fstab..............

I slipped on my own script, my fstab erased.......
It only contain a line to mount CD-ROM....wakakakaka

After googling, i found this
By reading this article, i assumed that we have to know the UUID for each drive, especially for the / and swap ( for windows disk can be done later )

First, used blkid from terminal by typing sudo blkid
here is the output

/dev/sda1: UUID="2C28F09028F059F2" TYPE="ntfs"
/dev/sda5: UUID="2C82313F7F68F931" TYPE="ntfs"
/dev/sda6: TYPE="swap" UUID="f2ea4d4c-ef3f-49dd-9f4a-ea140e93c69e"
/dev/sda7: UUID="ced3011b-4675-4790-8065-d8e0601f6bf1" TYPE="ext3"

I just have to copy / and swap UUID and paste to my (new)fstab,
after some editing, it looks like :
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
// /media/x cifs rw,uid=root,gid=root,file_mode=0777,dir_mode=0777,noperm 0 0
UUID=ced3011b-4675-4790-8065-d8e0601f6bf1 / ext3 relatime,errors=remount-ro 0 1
UUID=f2ea4d4c-ef3f-49dd-9f4a-ea140e93c69e none swap sw 0 0

After reboot, my system is back to normal
( I applied this to Hardy Heron, Intrepid Ibex and Mint Elyssa )


Nov 11, 2008

Mass rename and mass resize using gThumb

Sometimes we will feel reluctant if we want to rename so many files. But actually, it can be done once for many files at the same time. I was tried it by using gThumb

First, of course we have to install gThumb
Open terminal then type sudo apt-get install gthumb

Next, open gThumb and go to the folder which we will work for
The left panel will be the tree panel and the right panel will contains the files from a folder
After we meet the folder, choose some/all pictures which we want to rename from right panel
do right click, then choose rename, below dialog will appear then you can rename them up ( don't forget to click rename button )

Then, in order to do mass resize,
Go to Tools - Scale Images ( below box will appears )

Beside those two, we also can do mass rotate and mass convert by using gThumb


Aug 15, 2008

D-Link DWL G122

I have some friends who has to online using external wireless adapter. All of them are using D-Link DWL G122. When i am still using GG, i can't make that adapter run out of the box. But now....On HH, it just needed to be plug and it's working flawlessly

It was recognized as ( when i run fsusb on terminal )

Bus 003 Device 001: ID 07d1:3c03 D-Link System

It means It is rev C1 based on this link. And i also found out how to make it run on GG here

For the Rev B, you check out here and here


Aug 5, 2008

Combine some pdfs into one

This started by downloading some e-books from our national education government sites which consists of e-books of some subjects which parted into chapters.
I was just thinking that "could they just be combined into one file only ?"

Based on this article, i got my answer : we can !!

First, download some files from terminal by typing ;

  • sudo apt-get install gs pdftk
Second, execute those pdfs
  • gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf
Which OUTPUTFILE=the name of combination file
1.pdf 2.pdf 3.pdf are the name of the partial pdfs

After you run the above command, a new PDF file called combinedpdf.pdf will be created with your individual files merged according to the order that you have you listed.


Jun 11, 2008

Samba File Server

Now, i re-install one of the server to be pointed as a fileserver, which will stores files from the users here. I installed samba on Ubuntu Hardy Heron server edition

We will concentrate on /etc/samba/smb.conf ( samba configuration file )

The condition that i like to make are :

  1. one public shared folder
  2. some folder which can be access base on that folder password
Base on the above conditions, so :
  • sudo mkdir /home/shared { create a shared folder for public }
  • sudo adduser --home /home/source source {create source user}
  • sudo adduser --home /home/filing filing {create filing user}
  • sudo smbpasswd -a source {smbpasswd for source}
  • sudo smbpasswd -a filing {smbpasswd for filing}
  • sudo nano /etc/samba/smb.conf
below is the content that i adjusted of my smb.conf file;
workgroup = workgroup_name
netbios name = citserver { this computer name for network }
host allow =
server string = %h (Ubuntu Samba Server)
security = share
smb passwd file = /etc/bin/smbpasswd
dns proxy = no

read only = no
browseable = no

path = /home/shared/
comment = X Directory
public = yes
read only = no
browseable = yes

don't forget to restart the samba service :==> sudo /etc/init.d/samba restart

Now, you can access samba shares from the clients
For Windows :==> type \\citserver\foldername on explorer bar
For Linux :==> smb://citserver/foldername on nautilus bar

For more and details info :==>
Ubuntu help
Thanks to Mr. Taufan Lubis

May 14, 2008

My MailServer

Since ClarkConnect Community Edition is only gave 10 Mailboxes, so i have to learn how to make a Mail Server by myself.

I built this Mail Server based on these links :

I lost my Mysql password ...but it can be recovered by doing ;
  1. Open Terminal then type sudo /etc/init.d/mysql stop
  2. then run : mysqld_safe --skip-grant-tables &
  3. you will be able to login as root with no password by : mysql -uroot mysql
  4. Then run : UPDATE user SET password=PASSWORD("abcd") WHERE user="root"; ( abcd means your new password for root )
  5. then run : FLUSH PRIVILEGES;
  6. Now you can login by : mysql -uroot -pabcd mysql
How to install Squirrelmail plugins ?
  1. Go to Squirrel plugins site to pick a plugins
  2. Download it
  3. Extract it to /usr/share/squirrelmail/plugins
  4. Open terminal, run : sudo squirrelmail-configure
  5. Select option 8
  6. Select the number of plugins that you wanted to run
  7. type Q to quit ( save before you quit by press S )
Next, i add these lines into /etc/postfix/
  • mailbox_size_limit = 51200000 { mailbox size approx = 50MB }
  • message_size_limit = 5120000 { message size + attachments approx = 5MB }


May 13, 2008

Some things to :

Add some themes from the HH repo :
sudo apt-get install tropic-gdm-theme tropic-look tropic-session-splashes tropic-theme tropic-wallpapers blubuntu-gdm-theme blubuntu-look blubuntu-session-splashes blubuntu-theme blubuntu-wallpapers peace-gdm-theme peace-look peace-session-splashes peace-theme peace-wallpapers

type that from terminal......

Offline Windows Fonts installation

  1. Download msttcorefonts-offline from here
  2. Open Terminal, run : sudo dpkg -i msttcorefonts-offline_1.0-0ubuntu1_all.deb
  3. then sudo apt-get install msttcorefonts

Adding fonts to your Linux
  1. search the fonts in the internet and download them
  2. extract the font into a folder
  3. from terminal, copy that folder to /usr/share/fonts
  4. restart your will have new font(s)

Mounting a samba shared folder
  1. Open terminal : sudo mkdir /media/y
  2. then : sudo mount -t smbfs //computername/foldername /media/y -o username=username
  3. You will be asked for that folder password
  4. Now you have drive Y
  5. To unmount : sudo umount /media/y


Apr 17, 2008

Radeon X1550 or RV505

I got six new computers which specifications are :

MB : MSI K9AGM3-FIH ( sound : Azalia / ALC888 )
VGA : GigaByte GV-RX155128D-RH ( RV505 )
Proc : AMD Athlon64 X2 4800+
HD : Seagate SATA 80GB
Installing Edubuntu Gutsy Gibbons on this unit need an extra patient and search, since i can not find the driver for the display which identified as RV505. I also can not find the driver on ATI driver site. After some is the way !

If you are trying to install Hardy,
the installation will be flawlessly
you just need to Enable ATI in Hardware Drivers
( previously recognized as Restricted Drivers )
xorg-driver-fglrx will automatically installed
finish the process by reboot
then install compiz....set it

First of all; boot from Edubuntu liveCD and when the installation menu appears; press F6 and it will display Boot Options command like;
file=/cdrom/preseed/edubuntu.seed boot=casper/initrd.gz quiet splash -- 

erase "quiet splash --" by pressing backspace button, so it became;
file=/cdrom/preseed/edubuntu.seed boot=casper/initrd.gz

then press enter

The processes will run and will end up with no GUI but a blue screen with a log info printed out
press OK and then you will see the screen displayed something like :

* Running local boot scripts (/etc/rc.local)

and with the cursor keeps blinking

then press ctrl+F2 to bring you to the prompt to type
sudo dpkg-reconfigure -phigh xserver-xorg

choose vesa then ok
choose the screen resolution then ok

the monitor will blink again for a while and bring you to login window.....just let it login in 10seconds automatically (if you are back to the prompt, type startx , later on you will be asked to press ctrl+F7 for the default GUI )

Now you can install edubuntu

When the installation finished, restart the computer and login to edubuntu.

We have to update the system
1. go to system - administration - software sources
2. after that close it and reload it
3. update the system from system - administration - update manager

Then we can work with the display ( still vesa now ) to activate compiz
1. go to system - administration - restricted drivers manager
2. enable the ATI accelerated graphic driver
3. it will automatically download xorg-driver-fglrx
4. open terminal ( applications - accessories - terminal )
5. type sudo gedit /etc/X11/xorg.conf
6. Find Section "Extensions", change "Composite" "0" to "Composite" "1"
7. save and exit the editor ( ctrl+s and ctrl+q )
8. still in terminal, type sudo apt-get install xserver-xgl
9. then type sudo apt-get install compizconfig-settings-manager
10. then sudo reboot
11. after reboot, go to system - preferences - appearance
12. go to visual effects tab
13. change to custom ( it will blink and can choose it now )
14. click preferences to set the compiz effects
15. finish


Apr 16, 2008

Mapping a windows shared

When we had a computer which run as a file server in a network, sometime or maybe, we would like to map it to make easy to be called ( in windows, we can map as "X:\" or Y:\ or else ). Here we have a linux server which has a public shared folder which shared as windows shared.

What about in Linux(Edubuntu) ?
In Edubuntu w can go to Places - Connect to server
I used to use windows shared, server = citserver and folder = shared then click Connect
It ended up with an icon named "shared on citserver" on the desktop

This map, caused me problems some times ago, students can not save the firefox files directly to it. And some applications also can not save to it directly. The exceptional is OpenOffice, it can !

In order to make all applications can save to the server, first, open terminal

sudo apt-get install smbfs
sudo mkdir /media/x
sudo gedit /etc/fstab

in fstab, insert
//citserver/shared /media/x cifs rw,uid=root,gid=root,file_mode=0777,dir_mode=0777,noperm 0 0

sudo mount -a

Now, you will have a mapped drive named "x"

Addition : ( requested by doniepos )
I used this x for making an intranet repo ( combined with my previous post about own customized repo ) In my /etc/apt/sources.list, i put
deb file:///media/x/Linux repo/

With a good combination with cron, this intranet repo is automatically update weekly


Jan 25, 2008

Play more with compiz

In continuing my war with my friend ( edubuntuGG vs pclos2007 ), i spent some time of mine to knock him down. And i did it ( for this time......seems like this war will never end....heheheh )

Ohya...let me tell some about him, he was installed pclos some times ago and while the rest of teachers here moved to edubuntu, he sticked on his pclos. I honourly salute him since he was not from IT background and struggled alone in using pclos by himself. His pclos desktop had been crashed and burnt so many times because of the compiz setting and he kept on it.........good job my pclos ranger........

Back to play more with compiz, actually i just added some additional effects which couldn't be found in basic compiz installation.I am succeed on fireflies, snow, cube snow globe, cube atlantis, 3d windows, autumn, failed on stars, freewins, anaglyph. Not yet : screensaver, freewins, wallpaper, tile and photowheel.

firstly, you have to install some additional packages, open terminal and
sudo apt-get install compiz-bcop compiz-dev build-essential libxcomposite-dev libpng12-dev libsm-dev libxrandr-dev libxdamage-dev libxinerama-dev libstartup-notification0-dev libgconf2-dev librsvg2-dev libdbus-1-dev libdbus-glib-1-dev libgnome-desktop-dev x11proto-scrnsaver-dev libxss-dev libxslt1-dev libtool libgnome-window-settings-dev gitweb curl autoconf automake automake1.9 libtool intltool libxslt1-dev xsltproc
next, create a compiz folder --> sudo mkdir -p ~/compiz/

then get the packages for additional effects, ( all files will be on /tmp )
wget -O /tmp/3d.tar.gz ';a=snapshot;h=db3c51d6c5c0df268fc1ec29a4264ef3d21dbbb3'
wget -O /tmp/atlantis2.tar.gz ';a=snapshot;h=fb6507c40216b13be567bd3d9501b5c598e084cd;sf=tgz'
wget -O /tmp/snow.tar.gz ';a=snapshot;h=01d0ff6ec71dae4699bc990e0114569c8ad4e083'
wget -O /tmp/stars.tar.gz ''
wget -O /tmp/atlantis.tar.gz ';a=snapshot;h=a47d7151444faccd66ea5cb884673cdebe5d7dff'
wget -O /tmp/screensaver.tar.gz ';a=snapshot;h=6565001eb389fb0d18cfead6030054cc8edc6c5f'
wget -O /tmp/anaglyph.tar.gz ''
wget -O /tmp/wallpaper.tar.gz ';a=snapshot;h=c2d19686e46ae171b6a0c04da9de1adbd74ae8be'
wget -O /tmp/tile.tar.gz ';a=snapshot;h=550c91fa188efd39c9cea43f894b45716b5cc6d5'
wget -O /tmp/freewins.tar.gz ''
wget -O /tmp/fireflies.tar.gz ''
wget -O /tmp/photowheel-0.6.tar.gz ';a=snapshot;h=41d8090b55b629f72bef55d785beaf468f31662f'
wget -O /tmp/snowglobe.tar.gz ';a=snapshot;h=e8fd620a199016fa17c69bc0da75c9ea3f473776;sf=tgz'

Example : i want to install snow, then i have to do
  1. open terminal
  2. type : sudo tar -xf '/tmp/snow.tar.gz' -C ~/compiz/
  3. type : cd ~/compiz/snow
  4. type : sudo make
  5. type : sudo make install
  6. done, open compiz setting manager and activate the snow effect
Repeat above steps for each effect that you want to install.

to remove effect ( go to the folder first ) : sudo make uninstall

Hotkeys :
fireflies = set to F12
snow = super+F3
autumn = super+F11
cube snow globe will play when you do cube rotate
3d windows = set the bevel and see the effect on cube rotate
cube atlantis = set the fishes and see those fishes during rotate cube

well.......that's all, if you want the detail, please click here!


Play with compiz

I made this article, based on my funny experience which i had installed compiz but i don't have any idea how to play the effects. I am using HP Presario M2258 ( Intel Centrino 1.73GHz, 512MB RAM, Intel Mobile 915GMdisplay adapter )

In dealing with compiz, we have to

  1. Have a computer with Linux installed ( i used Edubuntu )
  2. install the compiz : sudo apt-get install compiz
  3. be creative !! ( i missed this before..... )
Next : go to System - Preferences - Advanced Desktop Effect Setting
from terminal, type : ccsm

The compiz setup windows will appear and you can activate or de-activate any effect based on your desire.
Tips :
  1. always activate resize windows
  2. beware of opacify ( i turned this off )
  3. Super button = the button which has windows logo
Here is some clues :

Desktop cube : add the workspace to 4 and activate 3d cube, then set the opacity as you wish which can be found on transparent cube tab
Rotate Cube : Activate this and set some perimeters ( speed, zoom, timestep, etc )
Activate animation and set the effect for each windows behaviour
activate wobbly window
activate cube caps and set the picture for top and bottom of the cap
activate expo and see the result by pressing Super+E

play on effects : ( activate the related effect first )
Paint fire on screen : on = Shift+Super+button1, off = shift+super+c
Water Effect : shift+F9
Shift switcher : super+tab ( turn off ring switcher first )
Ring switcher : super+tab ( turn off shift switcher first )
3d rotate desktop : Ctrl+Alt+Button1+move or Ctrl+Alt+Drag the mouse

Last thing : after you activated an effect, please find the action key, it usually under the actions tab under the binding menu ( i missed this before, and i found this out after my friends came to me and show me his PCLOS compiz........he declared a war....i have to fight we still have it )


Jan 24, 2008

Kambing : my best edubuntu repository

Repository is very important for me in improving my linux knowledge. I used edubuntu and everytime it released, i just downloaded the live cd only. After that, i tried to add with some packages which i needed most. Since i live in Indonesia, it's hard to get the repository from outside servers. The connection is better at night. I ever re-installed my unit and tried to update it all night long. And i am sure that there is another way to prevent this.

By the time, i can make local repository. and now i anchor my repo to "kambing" server. It faster than before, even on the busy hours. I can get at least 1Kb/s rate in a full loaded traffic, but i also ever get 60s Kb/s connection.
Based on this link, I just did few steps to switch my repo to kambing server.

  1. open terminal
  2. type : wget
  3. sudo mv sources.list.kambing /etc/apt/sources.list
  4. sudo apt-get update
That's i can install or update from kambing with a faster connection.


Kambing : PCLOS 2007 repository

I have a friend who used PCLinuxOS 2007 and i am happy for him since now he can make his desktop became cube, rotate it and also burned. One day he asked me : can i have a link of pclos repo from Indonesia ? because, it took long time to get the repo from abroad servers.

I tried to find how to switch pclos repo to kambing ( this name is so familiar to Indonesian Linuxers ), and then i made it.

Here is the steps :
  1. open super user terminal
  2. type --> vi /etc/apt/sources.list
  3. go to the last line and add below line to it
  4. rpm pclinuxos/2007 main extra nofree kde
  5. put # on the rest of the other lines of repositories
  6. save it and close it ( esc, ZZ )
  7. type --> apt-get update
  8. done
now, my friend can install or update from kambing which is faster !