Category Archives: Linux

how to check your cpu is 32 bit or 64 bit

Published by:

Apa itu sebenarnya 32bit dan 64bit? Dua hal ini akan sering kita jumpai jika kita berhubungan dengan sistem operasi. Bit yang dimaksud disini adalah jumlah aliran data (nilai 0 dan 1) yang dapat ditampung oleh sebuah prosesor. Prosesor 32bit dapat menampung 64 nilai dan 64bit menampung 256 nilai komputasi. Secara angka tentu prosesor 64bit berkekuatan 4 kali lebih besar.

Jika kita bicara kekinian sebenarnya system operasi mulai bergerak ke arah 64 bit. Maka dari itu ada baiknya kita mengetahui komputer yang kita sekarang sudah 64bit atau belum dan siap2 migrasi.

Cara pertama adalah menggunakan perintah di console atau terminal dengan mengetik

cat /proc/cpuinfo
carilah tulisan 64 sebagai tandanya

atau

uname -ar
untuk mengetahui linux yang terpasang sudah 64bit atau belum, ditandai dengan huruf x86_64

atau

grep flags /proc/cpuinfo

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm

dalam hal ini lihat hasilnya terdapat huruf lm artinya komputer kamu memang 64bit

Solus OS – fastest os ever?

Published by:

Home

Minimum spec : memory 1 Gb, 8 Gb HDD

I already so excited with this solus. The man behind the project said, it fasts. Does it?
I wanna try it, I download it. Put it in the virtual machine. And whola….
My notebook is 32 bit. The solus ask for 64…
So i just put it aside.

I can’t change my 32 bit ubuntu to 64 right now. I had once. But my printer driver won’t work in 64.

SARG – Squid Analysis Report

Published by:

Sarg adalah sebuah utility kecil untuk melihat squid report yang aslinya kalau kita lihat, ga jelas dan sulit dibaca. Squid report secara default ada di /var/log/squid3/access.log atau /var/log/squid/access.log untuk squid versi lama. Log tersebut mencatat semua aktifitas browsing yang melalui gateway komputer tersebut yang telah dipasangi proxy squid untuk memfilter tujuan browsing.

Untuk instalasinya sarg cukup mudah. Di Ubuntu cukup ketik perintah berikut
#sudo apt-get install sarg

Di Centos cukup dengan
# yum install –y gcc gd gd-devel make perl-GD wget httpd

Setelah itu kita cukup mengedit /etc/sarg/sarg.conf jika ingin merubah input dan output analisa
Cukup cari baris

access_log /var/log/squid/access.log

ini untuk menentukan lokasi access.log  seandainya menggunakan squid3 maka ganti squid dengan squid3 menjadi /var/log/squid3/access.log

lalu baris

output_dir /var/www/html/squid-reports

dengan catatan bahwa server tersebut memiliki service apache untuk membuat local web.

Nah kemudian hasilnya bisa diakses di

http://localhost/squid-reports

 

using bootstrap in easy way

Published by:

Bootstrap itu…. seperti gula dalam teh. Ketika dicampur ia menjadi manis. Lezat rasanya itu teh. Tapi ini bukan tentang teh. Tapi tentang bagaimana kita bisa membuat website kita atau apa pun yang menggunakan kode html / php dsm, bisa menjadi indah. Enak dilihat, nyaman dirasa, serta mantap ketika di clicks.

Bootstrap semacam baju pembungkus yang indah. Tapi buat saya, menggunakan bootstrap rasanya seperti menghapal ribuan jarum untuk digunakan menjahit baju. Pusing juga. Untunglah saya menemukan startbootstrap.com

Disini kita bisa mengcopy paste kode bootstrap yang previewnya bisa kita lihat terlebih dahulu.  Yang perlu kita lakukan tentu saja memodifikasinya. Tanpa perlu pengetahuan yang ngjelimet dan mumpuni di php/ html / bootstrap code, kita bisa menggunakan kode ini. Dan hasilnya sangat baik.

Cobalah.

installing zoneminder 1.29 in ubuntu 14.04 server x86_64

Published by:

first step

https://wiki.zoneminder.com/Ubuntu_Server_14.04_64-bit_with_Zoneminder_1.29.0_the_easy_way

second, moving the recording partition

https://wiki.zoneminder.com/Using_a_dedicated_Hard_Drive

third

see how the ip camera setting with zoneminder

fourth, set the filter for automatic deletion

http://zoneminder.readthedocs.org/en/latest/faq.html

fifth, set the timer when to record and stop

using crontab

mlabel – make msdos volume label

Published by:

Mlabel is a program to rename a flash disk or removable disk into readable one. Like “My Flash”.
We do that easily in windows but I have not ye find it in linux.

Here are two ways I discovered in google using mlabel in linux terminal. (do all in root – use sudo in ubuntu or debian).

Once the flash disk in the usb port, it will automatically mount to something like /media/usb or /media/theoldname, umount it

#umount /media/theoldname

Check the flash /dev name :

#fdisk -l

Usually the result is /dev/sdb1 or /dev/sdc1, then rename it.

#mlabel -i /dev/sdb1 ::thenewname

or

edit and find out  /etc/mtools.conf to the label z: /dev/sdb1 (this refer to the plug in flash) then

For displaying the current label $mlabel -s c:

To change the label $mlabel c:”newlabel”

That’s it

bluetooth in slackware 13.1

Published by:

It’s already there. The program in slackware.

Plug the device, the blueman-service will start. And we can use it right away.

But I got problem here. The blueman-service didn’t executed.

scanning device remote through terminal
#hcitool scan

So make sure /etc/rc.d/rc.bluetooth is executable.
chmod +x /etc/rc.d/rc.bluetooth

Pair the device through the handphone first. then the pc. now i can send the file from nokia to my pc, but not everytime the error message most of the time were come out. Here is the message in dmesg : hci0 command tx timeout.

In my case, I have to put the handphone inline with the bluetooth adapter.
Give it a try.

Manage Formula in Open Office

Published by:

Sometime I m using lots of formulas in my open office file. Especially in spreadsheet. But i don’t know why it doesn’t work out sometime. Some guy in a forum said it is some kind of bug but in another forum wrote about changing the option in the tool.

I believe the second one is most reliable. Like today, I m using countif(range;criteria) in my calc file.
=countif(B2:B50;”Guru.*”)
That’s mean I want to count how many data that contains the word Guru in front of each text.

It returns zero or nothing. But the data show that at least 30 row of data containing Guru.

Then I go to Tools Option – OpenOffice.org Calc – Calculate.
Check list the option Search Criteria = and <> must apply to whole cells and Enable regular expressions in formulae

That’s two option gonna make my countif formulae worked.

virtualbox engine accessing to usb

Published by:

Since the beginning that I knew virtualbox, I wonder how this engine access to my usb stick directly without moving the content to the host first. Actually there is a way how we can do that.

First, add the user to vboxusers group. Use kuser or nano /etc/group in the terminal.
Now open the virtualbox, click usb in the setting area. But don’t run the virtual machine yet. Set the  necessary setting in the usb dialog box, then save.

Now start the virtual machine, you will find the usb in the drive section.
I do this to windows virtual machine.