Category Archives: Linux

slackware 14.0 use wifi with wicd

Published by:

The first time in my slackware experience, this is the first time I succeeded using wifi configuration. I always tried to use wpa_supplicant, which is I failed. I don’t understand how to manage the setting, and also by manual iwconfig command. I success using iwconfig when the wifi is not secured or open. No wpa or wpa2 encryption key. But that’s not what I want. I need some secure key.

Finally tonight I read again the manual in doc.slackware.org about this and find something about how difficult the wpa or iwconfig setting for newbie like me. The one thing is easy is using wicd.

wicd is an extra command need to be downloaded. So I downloaded for my slackware 14.0 which is 1.7.2.4 version. I install it using installpkg. And run the command in console or F2 command executor.

The command to run it is wicd-client, and run it as a normal user.

Wait a moment, wait until it pops up a dialog box asking the root user (which is necessary to handle the wlan0 interface) then the wicd network manager appears.

Click on the properties button to fill the wpa2 and click connect. That’s it.

firefox (in ubuntu) libavcodec error

Published by:

The error I meant is the message displayed at the top of the firefox, said libavcodec is vulnerable and expired (for some reason). After googling and find the article in http://askubuntu.com/questions/851190/how-to-update-libavcodec-on-ubuntu-14-04, the problem is libavcodec is disabled as default.

Libavcodec is needed to play the streaming in the website. Except for youtube. I still can play youtube with libavcodec disabled. I wonder why.

Anyway the solution is make the libavcodec enable.

Here is how

type about:config in the address bar, enter
click “I accept the risk” search libavcodec
change media.libavcodec.allow-obsolete;false to true

askubuntu.com

Canon ip2770 hasil print table bengkok tidak calibrate

Published by:

Awalnya dari pengaduan seseorang di kantor, kalau printer baru yang ada di sana hasil print nya aneh. Bengkok-bengkok. Termasuk ketika nge-print table. Yang mestine lurus. Alhasil sesudah cleaning-cleaning tidak berhasil lalu  intip-intip ke dalam, pita putihnya yang berada di belakang catridge ternyata agak hitam. Setelah baca disini

source : http://isniaceh.blogspot.co.id/2014/06/cara-memperbaiki-hasil-print-tabel.html

memang pita itu harusnya bersih. So akhirnya minta tissue sama temen dan dibersihkan. Setelah itu masalah pun berlalu.

virtualbox shared folder – another way mounting shared folder using samba

Published by:

my host is slackware.
the virtual machine is windows xp.
I am going to add the folder in my slackware into the windows using samba in the slackware.

first setting the samba in the slackware. I think I have another post about samba in this blog. Then in the virtualbox, set the network setting into two nic. The first nic as bridge adapter and the other as nat.

Later in the virtual machine, we will see the lan address of the bridge. Then set it manually to the same network address as host. If the host is 192.168.1.1 then the bridge is 192.168.1.2

Next, through the network browser file manager in windows, browse to 192.168.1.1, we will see the samba share right over there.

github – free repository – free safety box for your code

Published by:

Saya sudah mengenal github cukup lama, tapi karena awalnya bukan programer, jadi tidak terlalu tertarik menggunakannya. Nah sekarang saya nyemplung jadi programer, web programmer tepatnya. Jadi rasa-rasanya jiwa ini sudah tergelitik untuk menyimpan code-code hasil karya saya dan share ke orang yang membutuhkan. Github bisa menjadi salah satu sarananya.

Pertama, buat akun di github. jreng-jreng. Beres.
Di dashboard github buatlah New Repository. Berikan ‘nama” apa saja sesuai projek kita.Maka github akan memprint di layar komputer kita tentang bagaimana kita mengupload file-file code kita.

Nah disini pembelajaran di mulai. Saya menggunakan linux ubuntu untuk pekerjaan saya sehari-hari. Otomatis code saya ditulis di notebook ini. Dan kebetulan proyek pertama saya adalah proyek web programming, menggunakan engine xampp. File-filenya berada di /opt/lampp/htdocs/

Jadi saya akan meng-clone proyek saya disana ke github langsung. Kurang wise sih. Tapi menghemat space harddisk saya kalau saya buat direktori baru. Oke untuk caranya, setelah googling, saya menggunakan terminal/console.

cd /opt/lampp/htdocs/proyek
git init
git add *git commit -m “pesan atau keterangan tentang versi proyek saya”
git remote add origin https://github.com/sugi76/nama
git push -u origin master

Sewaktu proses push, maka akan tampil pertanyaan tentang username github dan passwordnya. Isikan saja. Jika berhasil, di github dashboard sudah terpampang list file dan directory proyek kita.

Nah pembelajaran satu lagi, setting git di /opt/lampp/htdocs/proyek sebaiknya jangan dihapus. Ini bermanfaat jika kita akan update file/ proyek kita ini. Saya nyesel juga karena saya menghapusnya. Jadi error.

Saya ulang lagi dari awal, tapi ketika hendak push, tetep error. Jadi harus menggunakan parameter force (-f)

git push -f origin master

Nah sekian.

CPU Frequency Scaling Monitor cool down my Slackware notebook

Published by:

For years I wonder why my cpu is hotter when using linux. Cooler when using windows.
Tonight, accidentally I learn about cpu frequency. The hot comes from the hard work of the cpu. So if the system can lower it, it will cooler.

Check on which frequency the cpu is  working by command : cpufreq-info

If the result show to the max number then we need to lower it down.

Here is how

Add these line in /etc/rc.d/rc.local

cpufreq-set --cpu 0 --governor conservative
cpufreq-set --cpu 1 --governor conservative

then restart. Or do these command

echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "conservative" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

Next the computer reboot, check the cpufreq-info again. It will show the freq number to the lowest one.

And you know what, my notebook is no longer hot like before. The movie played by vlc also run smooth.

My cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 10.0 us.
hardware limits: 1000 MHz – 2.17 GHz
available frequency steps: 2.17 GHz, 1.67 GHz, 1.33 GHz, 1000 MHz
available cpufreq governors: conservative, ondemand, userspace
current policy: frequency should be within 1000 MHz and 2.17 GHz.
The governor “conservative” may decide which speed to use
within this range.
current CPU frequency is 1000 MHz.
analyzing CPU 1:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1
CPUs which need to have their frequency coordinated by software: 1
maximum transition latency: 10.0 us.
hardware limits: 1000 MHz – 2.17 GHz
available frequency steps: 2.17 GHz, 1.67 GHz, 1.33 GHz, 1000 MHz
available cpufreq governors: conservative, ondemand, userspace
current policy: frequency should be within 1000 MHz and 2.17 GHz.
The governor “conservative” may decide which speed to use
within this range.
current CPU frequency is 1000 MHz.