AVG for Linux

AVG is an Antivirus application which can we use for free. It was developed by Grisoft company

For more Information –> http://free.grisoft.com/
to download it (win) –> avg75free_503a1205.exe
to download it (lin) –> http://free.grisoft.com/doc/5390/us/frt/0?prd=afl
to update manually –> http://free.grisoft.com/doc/update/us/frt/0

I used the windows version on some machines and Linux (deb) version on mine. And this article was for the Linux one. I downloaded the avg75fld-r49-a1130.i386.deb first, the size was up to 42MB. Then i just installed it by double click on that file.
After the installation finished, go to Applications – Accesories – AVG for Linux Workstation to open the AVG panel. We can scan our files from this panel but i do not know how to clean and update the AVG using this panel.

In order to update and cleaning process, it can be done from Applications – Accesories – Terminal

  • Online update : sudo avgupdate -o
  • Download update : sudo avgupdate -d
  • Offline update : sudo avgupdate -f /home/username/Desktop
  • Virus Scanning : sudo avgscan -scan /media/win_c
  • Smart Scan : sudo avgscan -smart /media/win_c
  • Heuristic Scan : sudo avgscan -heur /media/win_d
  • Virus Cleaning : sudo avgscan -clean /media/win_d
  • type sudo avgscan -h or sudo avgupdate -h for more

To save the bandwidth, instead of downloading the update per units. We can download the update files onto one computer and then share it, so others can update AVG offline.

The way to do this :

  1. go to Applications – Accesories – Terminal
  2. type : sudo avgupdate -d ( wait until it’s finished )
  3. type : cd /opt/grisoft/avg7/var/update/download and press Enter
  4. type : mv *.* /home/username/Desktop ( update files will be in the desktop )
  5. update this unit first; sudo avgupdate -f /home/username/Desktop
  6. close the terminal by typing exit
  7. go to desktop and copy *.ctl and *.bin onto a folder
  8. share that folder to others or put that folder to a sharing folder
  9. other units can copy this folder and do offline update from that folder

To update(online) automatically :

  1. go to Applications – Accesories – Terminal
  2. type : sudo vi /etc/crontab
  3. go to the last line and hit “i” button
  4. add a line –> 30 7 * * * root avgupdate -o (daily update at 7:30am)
  5. close and save by press Esc and then ZZ <– upcase!!

I wrote this article for you who had Microsoft OS and Linux OS active dually in your computer. Just in case; if your Microsoft OS antivirus can not detect or clean a virus, you can scan and clean it from Linux by using AVG for Linux



Bring back my (missing) GRUB

This was happened when a friend of mine wanted to install PCLinuxOS into his machine. The installation was successful, but he came back a day after it and complained that his Microsoft Windows could not be booted. We decided to re-install the Windows even I minded with the fact that we have to re-install PCLOS also.

We installed Microsoft Windows into his machine, but I insisted not to re-installed his PCLOS. I went to Google and found a way to bring the Grub back, but in Ubuntu version. Since we just re-installed the windows, we decided to try this way out….no matter what it’s cost !!

Thanks to our guts…….we succeeded in bringing the Grub back

Here’s the steps;

  • boot by using Linux live CD, go to terminal and run –>> sudo grub
  • you’re in grub menu now, then type –>> find /boot/grub/stage1
  • It will display your grub position, example (hd0,4) or (hd0,5)
  • Then type –>> root (hd*,*) — ( replace the * with your grub position – (hd0,4))
  • Then type –>> setup (hd0)
  • The above statement will replace your windows MBR configuration
  • Then close the grub menu by typing –>> quit
  • Reboot your machine –>> sudo reboot
  • Above steps are only for Ubuntu clans, for others : without sudo

Thanks to ZIK for donating me this problem !

Windows Wireless Driver (ndiswrapper)

I have a friend who has a computer which can not connect to the wireless network but the wireless hardware is working well in windows ( his name is Martin )
Strange…….in windows it works but in Linux not. The hardware is ACER IPN2220 Card

How to solve this ? ( you may use online or offline solution )

Offline solution :

  1. we have install a program called ndiswrapper manually
  2. get 3 packages from http://packages.ubuntu.com and install them in order
  3. ndiswrapper-common
  4. ndiswrapper-utils
  5. ndisgtk
  6. In order to set up ndiswrapper, it is necessary to obtain the Windows driver for your wireless card. Generally, the best way to do this is from the CD supplied with your wireless card. You should copy two files to the same place on your computer, one ending in .SYS and one ending in .INF. If you find any files which end in .BIN, also copy those, let say copy them to home folder.
  7. go to System → Administration → Windows Wireless Drivers
  8. Click on install driver button and point to home folder, choose neti2220.inf and click ok to install it
  9. Click on Configure button to do the wireless setting.
  10. Reboot the machine or open terminal and do sudo /etc/init.d/networking restart
  11. Test the internet/network.
  12. later, you can type any to network name (ESSID) for automatically switch the access point


Online solution :

  1. connect to the internet by using wired connection.
  2. from the Linux desktop menu, go to applications – add/remove
  3. on the search bar, type ndiswrapper. Show : all available applications
  4. Check on the Windows wireless driver
  5. Click apply button and wait until it’s finished
  6. In order to set up ndiswrapper, it is necessary to obtain the Windows driver for your wireless card. Generally, the best way to do this is from the CD supplied with your wireless card. You should copy two files to the same place on your computer, one ending in .SYS and one ending in .INF. If you find any files which end in .BIN, also copy those, let say copy them to home folder.
  7. After ndiswrapper installed and copied the .BIN, .INF, .SYS files to home folder, simply select
  8. go to System → Administration → Windows Wireless Drivers
  9. Click on install driver button and point to home folder,
  10. choose neti2220.inf and click ok to install it
  11. Click on Configure button to do the wireless setting.
  12. Reboot the machine or open terminal and do sudo /etc/init.d/networking restart
  13. Test the internet/network.
  14. later, you can type any to network name (ESSID) for automatically switch the access point

Done……..now martin can connect to the internet wireless. ( I have the same experience with Atheros AR5007EG, pointing file was net5211.inf, for more about Atheros AR5007EG, find out here!

Thanks to Martin for donating me this case !


How to upgrade Edubuntu

I made this document after i did some Edubuntu upgrades from Feisty(7.04) to Gutsy(7.10)

In doing the system upgrade, there are 3 ways;

  1. Online upgrade from the Internet
  2. Offline upgrade from the latest version of Edubuntu CD(s)
  3. Re-install your Edubuntu.

1. Online Upgrade :

This method is not really a recommended one ( if you have problem with the bandwidth of your internet connection), because it will download a huge capacity of files from the internet, but if you have a good internet connection, maybe you can try this out.
Just go to Applications – Add/Remove and click on upgrade button and after that wait until all the processes finished

2. Offline Upgrade :

  1. Insert the latest Edubuntu bin-1 CD
  2. Autorun dialog box will appear and choose start package manager
  3. Click on Mark all upgrades
  4. Click Apply button
  5. When you asked about including online installation, choose NO for now, you can do this later
  6. Read the notification boxes, click next buttons to proceed
  7. Restart the computer
  8. Do edubuntu (offline) installation ( from main packages installation step).

3. Re-install your Edubuntu :

  1. Make sure that you do not have any document in your Linux partition.
  2. If you have, move all your Linux data to windows partition
  3. Do How to install
  4. Edubuntu ( can be combined with edubuntu (offline) installation.
  5. Finished ( you may restart the computer )


Happy Upgrade !!

Thanks to AZH, HEN, ERY



Edubuntu (offline) Installation

I wrote this article based on my experience to introduce Linux(Edubuntu) here. When the demand of fresh installation was high and our internet connection has limited bandwidth which shared to whole campus, of course we met problem when we want to install some basic programs. Making a repository still far beyond my capability. But, I have to solve this problem.

What did I do ?
I searched ….. asked questions ….. finally I found http://packages.ubuntu.com which contains all Ubuntu clan’s installation packages. I started to search NTFS packages, I typed down ntfs in the search box, and there was many ntfs packages. I picked one, executed it………i found out that I have to consider about “dependencies”. So, base on this, I downloaded all packages including the dependent packages and I came out with the list below. My target is NTFS, XMMS, K3b, Gstreamers and flash-player ( get flash-player from here )

Purpose of this article is : you still can enjoy a fresh Edubuntu installation without having online and your unit will be ready for action.

You have to follow the steps of installation which you can find in how to install Edubuntu. But the last step that you have to do is : Restart time !! ( remove the CD from the tray )
Then continue with these; ( find and download the package from http://packages.ubuntu.com and execute it sequentially by looking at the list below );

Main Packages

  1. kdelibs-data
  2. kdelibs4c2a
  3. opera ( if you want to use the opera browser / optional )


  1. dmsetup
  2. ntfs-3g
  3. ntfs-config
  4. after they’re finished, go to System – Administration – NTFS Configuration Tool
  5. activate your NTFS by click on both check boxes


  1. libgtk1.2-common
  2. libglib
  3. libgtk
  4. libmikmod
  5. xmms


  1. libdbus
  2. libflac++6
  3. libmpcdec3
  4. libk3b2
  5. libmad0
  6. libk3b2-mp3
  7. kdebase-bin
  8. libk3b-dev
  9. k3b
  10. k3b-i18n

Gstreamers ( 37 steps )

  1. gstreamer0.10-alsa
  2. gstreamer0.10-esd
  3. gstreamer0.10-ffmpeg
  4. gstreamer0.10-fluendo-mp3
  5. gstreamer0.10-fluendo-mpegdemux
  6. gstreamer0.10-gnomevfs
  7. gstreamer0.10-plugins-base
  8. gstreamer0.10-plugins-base-apps
  9. gstreamer0.10-plugins-good
  10. gstreamer0.10-tools
  11. gstreamer0.10-x
  12. liba52
  13. libcdaudio
  14. libdvdread
  15. libfreebob
  16. libgsm1
  17. libid3tag
  18. libjack
  19. libmms
  20. libmp4v2
  21. libmpeg2-4
  22. libschroedinger
  23. libopenspc
  24. libsidplay
  25. libsoundtouch
  26. libx264
  27. libxvidcore
  28. gstreamer0.10-plugins-bad
  29. gstreamer0.10-plugins-ugly
  30. gstreamer0.10schroedinger_0.6.1
  31. libfaac
  32. libfaad
  33. libavutil1d
  34. libavcodec1d
  35. libquicktime1
  36. libmjpegtools0c2a
  37. gstreamer0.10-plugins-bad-multiverse

Flash-player : go to the extracted Flash_Player folder, then double click the flashplayer-installer file. Just follow the simple direction ( before you install flash player, make sure that you have open firefox once )

The last (can be done if you have internet connection) is to reload your installation packages

1.Go to System – Administration – Software Sources and mark on all boxes (see the picture)

2.After that, click close button and click on Reload button
3.Wait until the registration finished
4.Go to Applications – Add/Remove
5.When you asked to reload just click on Reload button
6.if not, you can search and download programs which you desired or install some program from the Add-ons CD (bin-2)

I hope this article can help people who has the same problem like mine.

Thanks to :
AZH for testing and listing Gstreamer and HEN for revising XMMS steps

I learned about “Cron”

Cron is a time based scheduling daemon in Linux ( not only in Linux anyway 😀 ) when I installed Linux, cron was already installed and ready to be used. The schedule run by cron not only single command but also can be expanded to many commands in a single script. So, at a time you just set cron to execute the script which consisted many commands.

For Example : I want to shutdown the internet connection every sunday and turn it on again on monday morning…..so in crontab ( cron configuration file, can be found in /etc ), I will put two cron syntaxes which turn off and turn on the network at that desired time.

For more info about cron :–>


Basic Syntax of cron :–> ( from wikipedia )

+—————- minute (0 – 59)
| +————- hour (0 – 23)
| | +———- day of month (1 – 31)
| | | +——- month (1 – 12)
| | | | +—- day of week (0 – 6) (Sunday=0 or 7)
| | | | |
* * * * * command to be executed

each * can be replaced with my desired values, and not only with a single value
for example, if I want to do something every ten minutes ( ignoring the hour, DOM, month, DOW; means it will execute every ten minutes as long as the machine running ) so the syntax will be like this

10,20,30,40,50,0 * * * * command to be execute

If i want to do something every day at 23:59PM, the syntax will be like

59 23 * * 0,1,2,3,4,5,6 command to be executed or
59 23 * * 0-6 command to be executed

This syntax must be put in /etc/crontab

More examples :
I want to shutdown the internet every whole Sunday and The internet will back on Monday; so, I will add these lines to the server crontab

0 0 * * sun root services network stop
0 0 * * mon root service network restart

0 and 0 is for 00:00, two * mean any DOM and any month, sun and mon were the day that the commands will be executed

I want to shutdown the server on 24 Dec at 23:59 PM and the server will manually turn on after holiday

59 23 24 12 * root shutdown -h now

I want to run something at 3:10 am every day :–>

10 3 * * * root command

I want to run something at 12:10 on day 5 of each month :–>

10 0 5 * * root command

I want to do backup every new year :–>

1 0 * 1 * root backup.sh


Edubuntu Installation……(1)

Edubuntu is a Linux distribution which came from Debian – Ubuntu. This distribution was dedicated to educational environment. To install Edubuntu into our computer, at least we have the LiveCD. I always download 3 CDs every time it released the new one ( 1 LiveCD, 1 Server CD, 1 Add-on CD ). I used Edubuntu-7.10 ( Gutsy Gibbons ) now.

For further info about Edubuntu : –> www.edubuntu.org
For getting the ISOs : –> www.edubuntu.org/download

For Indonesian, it’s better to get the ISOs from : –> tuma.ui.edu
Ship it can be ordered from : –> http://shipit.edubuntu.org

Now, let’s start the installation process.

By holding the Edubuntu LiveCD, boot the computer and jump into the BIOS setting to set the boot sequence. It has to boot from CD ( make CD-ROM as the first boot ). After BIOS setting finished, save the latest change, put the CD into the tray and reboot the computer.

Choose “Start or install Edubuntu” at the menu, then wait until the booting process finish and the Edubuntu desktop appeared.
In this state, there are two things that i can do. First, exploring this desktop, second….jump to the installation process.

To start the installation, Double-click on the install icon

Now………Here’s the installation menu ( 7 steps )

1 of 7 : Welcome screen ( Just by default; use English for installation language ) then click forward button

2 of 7 : Where are you ? ( select your city and time zone ) then click forward button

3 of 7 : Keyboard Layout ( Choose U.S. English for both panels ) then click forward

4 of 7 : Prepare disk space, Choose manual since we already prepare the partition and click forward button. Installation will display the partition structure and then click on an ext3 partition which we had made, Click edit partition, change the mount point to “/” then press ok button. Still on that partition, checked on the format box. Choose the next partition which we had made as swap, Click on Edit partition, change the type to swap and press ok, Click on forward button for the next steps

5 of 7 : Migrate documents and setting, just pass it on by clicking forward button

6 of 7 : Who are you ? ( type down your user name, password and computer name ) then click forward button

  7 of 7 : Ready to install ( click install button ) Now i just have to wait until the installation finished and asked me to restart. press the restart now button

    Restart time !! ( remove the CD from the tray )



After the computer restart. There are some action that we have to take to finish this installation.

1. set the network connection; Go to System – Administration – Network

2. Reload the repository serve; Go to System – Administration – Software Source ( checked on every box then click close to reload the repository )

3. install the basic supporting packages; i will install NTFS Configuration Tool, GStreamers, K3b and XMMS. Go to Applications – Add/Remove; type down the package title and show at all available applications ( check on the related applications and then press apply button to download and install it ) – for this item, i have an alternative way i will tell you later 😀

4. install the add-ons applications ( can be done from Add-Ons CD or from Applications – Add/Remove )

I am finished with my Edubuntu installation !!