installing easyhotspot ubuntu in virtualbox

Published by:

Well i am interesting to install easyhotspot in my office. Yes, i have imagined it since years ago at the first time i handled the network. I want to manage all the computer in the office using username and password just like I found in the cafetaria or mall in bandung. They offered free hotspot. That’s what I need in my office. I hope the system could go commercial, so students can pay extra to use the facility.

Alright first I need to do exactly the same with the tutorial i found above so i can understand how it works. I used ubuntu 9.04 as my platform and using virtualbox 3.2.6. The easyhotpot I have is the one wit h ubuntu 9.04 iso. Actually it came with a live cd but I use installation into the hard disk instead.

I m using virtualbox because i have one network card in my pc and i want to know how it works first efore installing it into the stand alone cpu.

The installation is quite easy, just need to create another network card as a bridge in virtualbox. Virtualbox called it eth0. And another one as NAT. Then boot from easyhotspot iso and install them. Everything will run as it should be.

AFter it finished, we need to configure the network address. Go to System – Administration – Network. Choose eth1 and configure as static ip, fill with the same ip from the cpu we use. Let’s say the cpu with ubuntu use then fill it with that ip.

Restart the ubuntu. Now the easyhotspot should work. We can see the easyhotspot by typing a command ipconfig to find out the easyhotspot ip. You will find ip like 192.168.182.x then we go to the right direction.

Try to browse with the browser to any address, but you will be redirected to white login page. That’s it easyhotspot is running.

To configure the user and the password and everything, go to the browser and type http://localhost/easyhotspot use user admin with password admin123. Add user login as you wish and change the setting as you like. And don’t forget to do it all inside the ubuntu in virtualbox. Not in ubuntu host of virtualbox.

I found another problem running easyhotspot here, I will write it another time.

source :

ubuntu 10.10 installation in intel vga 4 series

Published by:

Again, I try to figure out how to install ubuntu in intel chipset. First time installation was successful. But then the error show up.
Then I re-install ubuntu in different way.

Install ubuntu 10.10 in text mode.
Once it finished, edit grub and adding i915.modset=0

Go to recovery mode
$sudo add-apt-repository ppa:glasen/intel-driver
$sudo apt-get update
$sudo apt-get install xserver-xorg-video-intel

Reconfigure xorg.conf
$sudo dpkg-reconfigure –phigh xserver-xorg
Copy the to /etc/X11/xorg.conf
Find out in the section device for the driver, is it intel or what.
$sudo nano /etc/X11/xorg.conf
Add the HorizSync and VertRefresh if necessary in monitor section.
Ctrl-x to save xorg.conf
Restart the computer. See if it works.

source :

Or force ubuntu to use vesa.
add -vesa into the boot parameter.
source :

Here are the steps I made and it worked on mine
1. Install maverick with text mode without ubuntu-desktop. I install it later on.
2. Adding i915.modeset=0 to boot parameter.
3. install ubuntu-desktop
4. force to use xorg.conf
5. change the intel driver to vesa in xorg.conf
6. add the necessary option for the monitor
7. it works.
Vesa is always the best ^_^

ubuntu using cdrom to apt

Published by:

I don’t know for sure why my ubuntu can’t install program from apt of the cdrom. I take a look into sources.list and the cdrom is not in there. So I need to add the deb source of the cdrom into it.
After browsing a while, randomly I found a command like this
$sudo apt-cdrom add
It will automatically mount the cdrom/dvdrom into /media/dvdrom and then add the content into the apt/sources.list
then next time we do apt-get update the cd is included.
So that’s how we can use cdrom as our repository.
Maybe delete all the other sources and using cdrom only.
hmh.. it won’t need internet connection though.

at command – timer command

Published by:

I just curious of a process in my office. I should change a rule in squid for just 30 minutes. But I have not find anything that related to it. I know squid can arrange some time to run some rule. But what I mean here is the change is accidentally occur. Squid timer is defined.
Example :
acl blokir dstdomain “/etc/squid/blokir.txt”
acl waktu time MTWHFAS 07:00 – 08:00
http_access deny localnet blokir waktu

That mean, squid will run blokir command to block something from monday through sunday at 07:00 til 08:00. Squid will not blocking from 08:00 through 09:00 for example.

So i search in google and found at command here.
Here what it use
$at 0701
0701 means at 07:01 o’clock.
The screen will change to > and there is a warning said all the command will be execute with /bin/sh
Press ctrl+D. The at command wills ave the script.
Here is the example of my script
echo “my script”
at command will execute script that run echo command at 07:01 am.
at will memorize each job with number. To see the list
$at -l
To remove it
$at 3
Mean job number 3

In Ubuntu or any linux, sometime root privilege is important when connecting to root specific command. So do at command in root privilege.
In ubuntu
$sudo at 0700
in slackware
root@user$at 0700

That’s it, this command is useful for me.

split – file splitter in slackware konsole

Published by:

A good thing about slackware is he has lots of functional command that in many linux doesn’t have.
I mean the other linux needs to install another program while slackware already has it inside the original installation.
Like this split command. It means it can split large file into pieces.
Here is the manual

Usage: split [OPTION]… [INPUT [PREFIX]]
Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, …; default
size is 1000 lines, and default PREFIX is `x’. With no INPUT, or when INPUT
is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.
-a, –suffix-length=N use suffixes of length N (default 2)
-b, –bytes=SIZE put SIZE bytes per output file
-C, –line-bytes=SIZE put at most SIZE bytes of lines per output file
-d, –numeric-suffixes use numeric suffixes instead of alphabetic
-l, –lines=NUMBER put NUMBER lines per output file
–verbose print a diagnostic just before each
output file is opened
–help display this help and exit
–version output version information and exit

SIZE may be (or may be an integer optionally followed by) one of following:
KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.

Report split bugs to
GNU coreutils home page:
General help using GNU software:
For complete documentation, run: info coreutils ‘split invocation’

This is the example of the splitting process

$split -b 100M largefile.tar.gz

There will be lots of file named like xaa xab xac and so on.
Because split is a simple command, we need to modify it a little bit. It splits files in the current folder, maybe we will have a difficulty to deliver a lots number of the results. So let’s create temporary folder and split the file inside it.
Another my own script might work to do that instantly. But I have not write it down here. Maybe some other time hehe

merge data into document in open office

Published by:

linuxnewbieguide.comOpen Office has a mail merge function in it. But until today I don’t know how to use it. Mail merge is very handy if we need to print a bunch of letters to many people at once.
Or I might use it for merging some data into the letter document.
After googling and found one tutorial here, this is how to create mail merge.
1. Click file – wizard – address data source
2. Choose other external data source
3. Connection setting – spreadsheet – next – browse

Then in the document press f4 for menu data source – drag and drop the header row into the document as a field.

That’s it. So it is quite different with I used to with the other program.
Open Office mail merge has also a function to print into document or directly into printer.

Source :

mysql couldn’t start in xampp

Published by:

I found another error when starting lampp.
The apache, proftpd are running smoothly, I can see it on the screen. But the Mysql didn’t run. It said it can not started. So I tried to see in the memory is it mysql service running? It shocked me but yes there is another sql running. It comes from mysql in /var/run/mysql not from /opt/lampp.
Then I uninstall the mysql and try to run /opt/lampp again. My hope is the sql that running in the memory is the sql from lampp. But another problem showed up. The sql from lampp couldn’t start also because lack of something in the system.
Piuh.. I had to reinstall the sql again from slackbuild.
Then I try to find what’s wrong in the lampp. After browsing somewhere (sorry I forgot and didn’t write the source) with another problem actually, they change the permission of my.cnf file to 644.

root@user:/#chmod -R 644 /opt/lampp/etc/my.cnf

Then start the lamp again.
You know what, it works. Lampp is running. I check the memory with ps x and yes the sql is from lampp.

slackware do not automount flashdisk

Published by:

The annoying thing about flash disk is when your flash disk is not auto mount by slackware. I have this happen in my busy day. Actually the references I read, suggested to restart the computer. But hey I don’t want to do the hard way. Let’s do it in soft way.
So I try to do it without restarting the computer, the theory is just restart udev and messagebus
#root@me:/home/me#/etc/rc.d/rc.udev force-restart
#root@me:/home/me#/etc/rc.d/rc.messagebus restart

Try to replug the flash disk.
And it’s work. hehe ^_^

Workshop and Seminar Information Technology in Cianjur

Published by:

1. Workshop Nasional Teknologi Informasi
Yang akan membahas :

Software dan Online Transaksi Serta Pengamanan Aset Infrastruktur
Teknologi Informasi

Lokasi : Bale Prayoga – Kantor Bupati Cianjur
Tanggal : 7 Desember 2011
Pukul : 09.00 – 16.00 WIB
Peserta : 100 Orang

Narasumber :
Networking : Bpk. Andreas – PT. Konexindo Unitama
Pengamanan Aset IT : Bpk. Lim Fredik – PT. Konexindo Unitama
Online : Bpk. Sagi Arsyad –

Fasilitas :
Materi dan ID Card
Makan Siang dan Snack
Biaya :
Umum : Rp. 100.000,-
Pelajar / Mahasiswa : Rp. 75.000,-

2. Seminar Nasional Teknologi Informasi
Dengan tema “Teknologi Informasi Sarana Cerdas Dalam Dunia Kerja”

Lokasi : Bale Prayoga – Kantor Bupati Cianjur
Tanggal : 8 Desember 2011
Pukul : 09.00 – 16.00
Peserta : 100 Orang

Narasumber :
Bpk. Renga Haka – Konsultan IT Internasional
Bpk. Endro Wibowo – PT. Sierad Produce, Tbk

Fasilitas :
Materi dan ID Card
Makan Siang dan Snack
Biaya :
Umum : Rp. 100.000,-
Pelajar / Mahasiswa : Rp. 75.000,-

3. Acara Pendukung :
Coaching Clinic dan Talkshow serta Bazaar
(Gratis Bagi Peserta yang Mengikuti Workshop atau Seminar Nasional
Teknologi Informasi)

Untuk informasi lebih lanjut, hubungi :
Rendra : 0815 8673 2222 / 021 9155 5875 / 0263 9248 483
Sekretariat : Jl. Pangerah Hidayatullah No. 10 Cianjur

Translate : (google)

1. National Workshop on Information Technology
Who will discuss:

Software and Online Transaction Security And Infrastructure Assets
Information technology

Location: Bale Prayoga – Regent Office Cianjur
Date: December 7, 2011
Time: 9:00 to 16:00 pm
Participants: 100 Persons

Resource Persons:
Networking: Mr. Andreas – PT. Konexindo Unitama
Securing IT Assets: Mr.. Lim Fredik – PT. Konexindo Unitama
Online: Mr.. Sagi Arsyad –

Matter and ID Card
Lunch and Snack
General: Rp. 100.000, –
Student / Student: Rp. 75.000, –

2. National Seminar on Information Technology
With the theme “Information Technology Support Working Smart In The World”

Location: Bale Prayoga – Regent Office Cianjur
Date: December 8, 2011
Time: 9:00 to 16:00
Participants: 100 Persons

Resource Persons:
Cpc. Renga haka – International IT Consultant
Cpc. Endro Wibowo – PT. Sierad Produce, Limited

Matter and ID Card
Lunch and Snack
General: Rp. 100.000, –
Student / Student: Rp. 75.000, –

3. Supporting events:
Coaching Clinic and Talk Show and Bazaar
(Free for Participants Following the Workshop or Seminar
Information Technology)

For more information, contact:
Renda: 0815 8673 2222 / 021 9155 5875 / 0263 9248 483
Secretariat: Jl. No Pangerah Hidayatullah. 10 Cianjur

Slackware wireless setting

Published by:

First time I use Linux with ubuntu os, I said this is the easy os that can connect to wireless spot (hotspot) using its application. When I started to run slackware, I had confused how i m gonna use the wireless function. But then there is a way how to handle the setting.

Let’s say your device wireless already on and it is identify as wlan0. Do this as root by su

Select the essid or the hotspot name we will use.

root@user#iwconfig wlan0 essid “myhotspot”

To find out what hotspot is on in the area :

root@user#iwlist scanning

Edit /etc/wpa_supplicant.conf

root@user#nano /etc/wpa_supplicant.conf

Enter the essid and wpapsk (password to the essid/ hotspot)

proto=WPA RSN
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40

Save it (Ctrl+o)

Then connect to it

root@user#wpa_supplicant -iwlan0 -c /etc/wpa_supplicant.conf

If the result is like this

CTRL-EVENT-DISCONNECTED – Disconnect event – remove keys
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
ioctl[SIOCSIWSCAN]: Device or resource busy
Failed to initiate AP scan.
Trying to associate with 00:02:6f:57:a1:4b (SSID=’devilzc0de’ freq=2437 MHz)
Associated with 00:02:6f:57:a1:4b
CTRL-EVENT-CONNECTED – Connection to 00:02:6f:57:a1:4b completed (auth) [id=1 id_str=]

It means we already connected. If the hotspot server using dhcp (most of them) then we will get our ip address and we can directly connect to the internet.

Source :