Thursday, 10 November 2011

HP Photosmart D5460 driver

Update to this report that just works:
$ sudo apt-get install hpijs

Add printer on http://localhost:631/, use the driver hpijs 3.10.6, not 3.12.
Insya Allah, ok.

Sunday, 23 October 2011

Flashdisk 16 GB nggak bisa ditulisi

Saya nggak bisa nulis di flashdisk.
Dari list, sudah benar bahwa saya bisa nulis (rwx)

$ ls -l /media/
total 48
drwx------ 24 budi budi 32768 1970-01-01 07:00 BUDI
lrwxrwxrwx 1 root root 6 2011-05-03 19:52 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2009-07-17 22:07 cdrom0
drwxrwxr-x 2 root root 4096 2010-04-01 17:26 DATA
lrwxrwxrwx 1 root root 7 2011-05-03 19:52 floppy -> floppy0
drwxr-xr-x 2 root root 4096 2009-07-17 22:07 floppy0
drwxr-xr-x 2 root root 4096 2010-04-13 14:17 windows

Kalau mbikin file baru, ternyata Read Only file system:
$ touch /media/BUDI/testingz
touch: cannot touch `/media/BUDI 16GB K/testingz': Read-only file system

Solusinya adalah (kecuali hardwarenya nggak stabil karena 16GB) adalah dengan format ulang:

$ sudo umount /media/BUDI
budi@pucung:~$ sudo fdisk -l
Disk /dev/sdb: 16.0 GB, 16047407104 bytes
94 heads, 30 sectors/track, 11114 cylinders
Units = cylinders of 2820 * 512 = 1443840 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18

Device Boot Start End Blocks Id System
/dev/sdb1 3 11115 15667264 c W95 FAT32 (LBA)

budi@pucung:~$ sudo fdisk /dev/sdb

hapus partisi 1, keluar setelah write, masuk fdisk lagi (sekedar biar yakin), bikin partisi 1 sebagai vfat (kodenya 0B). Kalau mau gampang, gunakan cfdisk atau gparted (?)

Format partisi 1 sebagai vfat:
$ sudo mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.7 (24 Dec 2009)

Copot flashdisk dan pasang lagi.

Thursday, 13 October 2011

Jigdo Aaargh

Kalau menggunakan jigdo untuk download iso Debian atau Ubuntu (atau distro lain) dan berakhir dengan:
Aaargh - 1 files could not be downloaded
pasti menyebalkan. Contoh terakhir adalah di file mplayerthumbs_4.4.5-1_i386.deb untuk Debian 6.0.3. Di case kantor sepertinya karena kdemultimedia masuk Squid.
Solusinya:
$ wget https://students.cs.unipi.gr/pub/linux/debian/pool/main/k/kdemultimedia/
$ sudo mv mplayerthumbs_4.4.5-1_i386.deb /var/cache/apt/archives/
$ jigdo-lite
Lalu suruh jigdo scan lagi /var/cache/apt/archives.
Beres, deh.

Wednesday, 12 October 2011

LibreOffice

Kolbi will also be proud to announce its support to LibreOffice the Document Foundation.
Here're good link for assessment:
Sok banget, nggak sih?

Wednesday, 21 September 2011

DVD Encoder for Debian GNU/Linux

For KDE users, k3b is kinda one stop for multimedia needs. However, k3b requires "transcode" that is not native in Debian's mainstream (main contrib non-free). Luckily, debian-multimedia repository provide everything.

So safe time, add this line
    deb http://ftp.nl.debian.org/debian/ squeeze main contrib non-free
into
    ($ sudo nano) /etc/apt/sources.list
then, do
    $ sudo apt-get update
    $ sudo apt-get install transcode
and re-run k3b.


Happy encoding!

Penguat sinyal GSM/Wifi/CDMA

Aku mikir arep tuku antena yagi (antena tivi biasa) sing regane kira2 200k. ning bareng tak elang-eling tutorial ning internet tmsk video ben gampang, ketoke mending eksperimen dhewe. teori nggo itung2an ana, ning sing paling asoy yo eksperimen ra sah kakehan itungan.

iki ana link nggo muk biskuit http://www.dxzone.com/cgi-bin/dir/jump2.cgi?ID=12595. metodene dudu yagi, ning wave driven utawa ember-bolic. isa uga, ember (kaleng, dudu plastik) diganti wajan utawa tutup panci. Om arifin wis njajal, ta. sing penting, modeme dilebokke muk, digeser maju mundur nganti sinyale apik. mengko yen wis manteb-teb, dilem utawa tialirke nganggo kabel ning modem.

Yen aku, arep njajal nggo aluminium foil dibentuk 1/2 kaleng, dicedakke laptop. Kari ngecek sinyal ning laptop ana pira.

Yen arep luwih detil, apt-get search antenna. Ana akeh aplikasi sing kena nggo ngetung rumus antena karo ngetes sinyal. Ning yen aku, balik maneh, sing penting eksperimen. Ra kakehan mumet!

Sugeng experimen.

Monday, 22 August 2011

OpenOffice error recovery

Delete 3 files (easier cut and paste these into terminal):


$ rm ~/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Recovery.dat
$ rm ~/.openoffice.org/3/user/registry/data/org/openoffice/Office/Recovery.xcu
$ rm ~/.openoffice.org/3/user/backup/*


And these are the detail:


Under Windows (English), you could delete the files

C:\Documents and Settings\\Application Data\OpenOffice.org2\user\registry\data\org\openoffice\Office\Recovery.xcu

and

C:\Documents and Settings\\Application Data\OpenOffice.org2\user\registry\cache\org.openoffice.Office.Recovery.dat

along with the entire contents of

C:\Documents and Settings\\Application Data\OpenOffice.org2\user\backup\

The path names may be different under a non-English version of Windows, and under Linux, these files will be located in a subdirectory called .openoffice.org in your home directory.

EDIT: Deleting Recovery.xcu will reset the autosave interval back to its default value of 15 minutes. This can be changed under Tools | Options | Load/Save | General.

Thursday, 18 August 2011

Googleearth 6 in Debian Squeeze

  1. $ sudo apt-get update
  2. $ sudo apt-get dist-upgrade
  3. Download deb package from http://earth.google.com
  4. $ sudo dpkg -i go*.deb
  5. If many dependency failures, this is the last working try: $ sudo apt-get install lsb-core lsb-release pax alien rpm rpm2cpio libelf1 librpm1 librpmbuild1 librpmio1 libelf1 librpm1 librpmio1 rpm-common
Hint: I did block (double click in the package) and middle click (anywhere in terminal) to get the dependency transferred at the cursor position.


Below is detail notes:


$ sudo dpkg -i google-earth-stable_current_i386.deb
(Reading database ... 182343 files and directories currently installed.)
Preparing to replace google-earth-stable 6.0.1.2032-r0 (using google-earth-stable_current_i386.deb) ...
Unpacking replacement google-earth-stable ...
dpkg: dependency problems prevent configuration of google-earth-stable:
google-earth-stable depends on lsb-core (>= 3.2); however:
Package lsb-core is not installed.
dpkg: error processing google-earth-stable (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Processing triggers for menu ...
Errors were encountered while processing:
google-earth-stable


$ sudo apt-get install lsb-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
lsb-core : Depends: lsb-release but it is not going to be installed
Depends: pax but it is not going to be installed
Depends: alien (>= 8.36) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


$ sudo apt-get install lsb-core lsb-release pax alien
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
alien : Depends: rpm (>= 2.4.4-2) but it is not going to be installed
Depends: rpm2cpio but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


$ sudo apt-get install lsb-core lsb-release pax alien rpm rpm2cpio
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
rpm : Depends: libelf1 (>= 0.131) but it is not going to be installed
Depends: librpm1 (>= 4.8.0) but it is not going to be installed
Depends: librpmbuild1 (>= 4.8.0) but it is not going to be installed
Depends: librpmio1 (>= 4.8.0) but it is not going to be installed
Depends: rpm-common (= 4.8.1-6) but it is not going to be installed
rpm2cpio : Depends: libelf1 (>= 0.131) but it is not going to be installed
Depends: librpm1 (>= 4.8.0) but it is not going to be installed
Depends: librpmio1 (>= 4.8.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


$ sudo apt-get install lsb-core lsb-release pax alien rpm rpm2cpio libelf1 librpm1 librpmbuild1 librpmio1 libelf1 librpm1 librpmio1
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
librpm1 : Depends: rpm-common (= 4.8.1-6) but it is not going to be installed
rpm : Depends: rpm-common (= 4.8.1-6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


$ sudo apt-get install lsb-core lsb-release pax alien rpm rpm2cpio libelf1 librpm1 librpmbuild1 librpmio1 libelf1 librpm1 librpmio1 rpm-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
lsb-rpm lintian lzma lsb elfutils rpm-i18n
The following NEW packages will be installed:
alien libelf1 librpm1 librpmbuild1 librpmio1 lsb-core lsb-release pax rpm rpm-common rpm2cpio
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/5,155 kB of archives.
After this operation, 7,500 kB of additional disk space will be used.
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Preconfiguring packages ...
Selecting previously deselected package lsb-release.
(Reading database ... 182344 files and directories currently installed.)
Unpacking lsb-release (from .../lsb-release_3.2-23.2squeeze1_all.deb) ...
Selecting previously deselected package pax.
Unpacking pax (from .../p/pax/pax_20090728-1_i386.deb) ...
Selecting previously deselected package libelf1.
Unpacking libelf1 (from .../libelf1_0.148-1_i386.deb) ...
Selecting previously deselected package librpmio1.
Unpacking librpmio1 (from .../rpm/librpmio1_4.8.1-6_i386.deb) ...
Selecting previously deselected package rpm-common.
Unpacking rpm-common (from .../rpm-common_4.8.1-6_i386.deb) ...
Selecting previously deselected package librpm1.
Unpacking librpm1 (from .../r/rpm/librpm1_4.8.1-6_i386.deb) ...
Selecting previously deselected package librpmbuild1.
Unpacking librpmbuild1 (from .../librpmbuild1_4.8.1-6_i386.deb) ...
Selecting previously deselected package rpm2cpio.
Unpacking rpm2cpio (from .../rpm/rpm2cpio_4.8.1-6_i386.deb) ...
Selecting previously deselected package rpm.
Unpacking rpm (from .../r/rpm/rpm_4.8.1-6_i386.deb) ...
Selecting previously deselected package alien.
Unpacking alien (from .../a/alien/alien_8.81_all.deb) ...
Selecting previously deselected package lsb-core.
Unpacking lsb-core (from .../lsb-core_3.2-23.2squeeze1_i386.deb) ...
Processing triggers for man-db ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Setting up lsb-release (3.2-23.2squeeze1) ...
Setting up pax (1:20090728-1) ...
Setting up libelf1 (0.148-1) ...
Setting up librpmio1 (4.8.1-6) ...
Setting up rpm-common (4.8.1-6) ...
Setting up librpm1 (4.8.1-6) ...
Setting up librpmbuild1 (4.8.1-6) ...
Setting up rpm2cpio (4.8.1-6) ...
Setting up rpm (4.8.1-6) ...
Setting up alien (8.81) ...
Setting up lsb-core (3.2-23.2squeeze1) ...
debconf: unable to initialize frontend: Dialog


debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
Setting up google-earth-stable (6.0.3.2197-r0) ...
Processing triggers for python-support ...
Processing triggers for menu ...


$ google-earth

Friday, 29 July 2011

Hisab Ramadhan 1432H





Ringkasnya, pada 30 Juli, saat matahari terbenam, kira2 bulan ada di -5 derajat. Pada hari berikutnya, bulan ada di posisi +6 derajat di atas ufuk. Jadi insya Allah kita mulai puasa bersama tanpa beda pendapat.

Mudah-mudahan bermanfaat.

Monday, 13 June 2011

Plone geospatial


View sREM Kalsel in a larger map
Akhirnya berhasil install collective.geo.kml. Sepertinya sisanya hampir sama.
Lalu kepikiran sama google maps' iframe. Kayaknya kalau bisa implement iframe di Plone, urusan prototype srem jadi lebih simpel.
Wait a minute! Kenapa harus Ploe + iframe? Kalau Django + iframe bisa jalan, maka roadmap (Geo)Django tidak perlu direvisi. Just add a new mile-stupid-iframe-implementation-stone, and all data can be chased right away! Aha, AWS, here we come!
Satu lagi, perpetaan dibangun diatas projection yang berbeda dengan Google Earth. So, kalau mau Google Earth sebagai basis, sepertinya perlu acara besar2an konversi dari shapefile yg sdh ada ke GE.
Btw, I like the approach of this instant django site.

Friday, 10 June 2011

Suara hilang di flash/youtube

Barusan muter2 karena Flash kehilangan suaranya di semua browser. Sudah ganti-ganti Gnash (default Iceweasel/Firefox dan lain-lain yang berbasis Gecko, saya kira) dan Adobe Flashplayer (default google chrome dan opera).
Resolusinya sederhana, tinggal ketik
$ sudo alsactl init
Unknown hardware: "HDA-Intel" "Realtek ALC1200" "HDA:10ec0888,10438357,00100101" "0x1043" "0x8357"
Hardware is initialized using a guess method
Sudah dikontribusikan di Ubuntu Forum dibawah, kalau pengen tahu cerita lengkapnya:
By the way, kalau nggak nemu paket deb flashplayer dari adobe (misalnya untuk mesin Debian), bisa pasang Adobe Air. Maka, di /opt/Adobe AIR/Versions/1.0/Resources akan ada file libflashplayer.so. Kalau tidak, bisa download tar.gz-nya disini.
Tinggal mbikin symlinknya saja:
$ cd /usr/lib/mozilla/plugins
$ sudo ln -s /opt/Adobe\ AIR/Versions/1.0/Resources/libflashplayer.so flash-mozilla.so
Cek juga postingan terdahulu tentang flash.

Wednesday, 25 May 2011

Ubuntu jump upgrade Jaunty-Lucid

Rule of thumb:
  1. Semua dikerjakan dengan terminal (konsole, gnome-terminal atau sterm, atau tty1-6)
  2. Baiknya (tidak harus) jangan reboot sebelum semua proses selesai. Ada pengalaman, sistem yang tidak terupdate dengan baik jadi tidak singkron antara konfigurasi dengan aplikasinya, sehingga sistem tidak jalan. Meskipun ini bukan kiamat, tapi cita-cita 'jump upgrade' jadi tidak mudah dikerjakan
  3. Lakukan langkah 3 berulang-ulang, meskipun sepertinya sudah selesai
  4. Untuk menguji sudah selesai atau belum, coba install aplikasi baru yang kecil saja. Kalau ada permintaan semisal "$sudo apt-get -f install" kerjakan saja. Itu artinya masih ada paket yang belum singkron.
  5. Kalau hasil akhir dari langkah 3 sudah : 0 update, 0 new install, dst, itu artinya sudah beres, komputer bisa direstart dengan selamat, insya Allah.
  6. Langkah dibawah sudah diuji di beberapa sistem, jadi insya Allah oke.
Tahapannya hanya 3, yang ada didalam tanda petik, tanpa tanda petik:
  1. Edit /etc/apt/sources.list, ganti semua kata jaunty menjadi lucid, misalnya dengan "$ sudo nano /etc/apt/sources.list"
  2. "$ sudo apt-get update"
  3. "$ sudo apt-get dist-upgrade"
Selamat mencoba. Silahkan komentar kalau ada yang tidak beres. Tapi ingat, jangan saya dilempari tanggung jawab kalau ada yang error. Prinsipnya, you should understand the risk.

Ubuntu upgrade "Forbidden"

Kalau provider internet (kantor) punya proxy, boleh jadi beberapa paket di Ubuntu yang nama paketnya berbau pornografi akan diblok. Yang paling umum yang dibawah ini:



Cara mudah untuk mengatasinya adalah copy paste pesan "Forbidden" tersebut selengkap-lengkapnya, lalu masuk ke
http://ubuntu.pesat.net.id/archive/pool/
atau
http://repo.bppt.go.id/ubuntu/
di Firefox.

Download file-file yang hilang diatas, sesuai lokasi yang ditunjukkan. Simpan file-file tersebut di folder tersendiri (misalnya di ~/Downloads/), lalu kopi ke /var/cache/apt/archives/. Kopi-paste perintah dibawah (tidak termasuk tanda $) dengan Terminal atau Konsole.

$ cd ./Downloads/
$ sudo mv *.deb /var/cache/apt/archives/

Baru setelah itu ulangi upgrade lagi.

$ sudo apt-get dist-upgrade

Kalau mau upgrade-nya melompat, misalnya dari Jaunty ke Lucid LTS, lihat posting ini.

Demikian, mudah-mudahan bermanfaat.

Tuesday, 17 May 2011

Arabic keyboard di OpenOffice

Karena pengen nulis السّلام عليكم di OpenOffice dan kmail, saya pindah ke setting keyboard arab di KDE. Ternyata, di OpenOffice belum ada model ngetik right to left. Kalau saya menggunakan Ubuntu, maka dengan mudah saya bisa masang fitur Sabily.
$ sudo apt-get install sabily
Tapi karena saya make Debian dan hanya perlu nempelin icon dari kanan ke kiri di OpenOffice, maka saya search paket arab di Ooo,
$ apt-cache search arabic and openoffice
lalu install
$ sudo apt-get install hunspell-ar openoffice.org-l10n-ar
setelah itu ngikut tutorial di openoffice forum dibawah:
Tools > Options > Language Settings > Writing Aids
Di bagian CTL, pilih Arabic - Saudi Arabia (gambar bawah).


Mudah-mudahan manfaat.
Selamat mencoba.

Sunday, 8 May 2011

Nokia 9300 and Linux

In my Linux hardware tag entitled Evolusi gadget, I wrote that a final gadget should be those relied on Google Android. Well, this seems ultimately true, but Android implementation in market today rely much on touch pad/screen which is not as fast as normal e.g. N9300 keyboard. This is a drawback when we wish a gadget as a scratch pad, while away from desktop/laptop.
This brings my desire back to N9300 for its morphology and size. About compatibility, it seems a hack to N9300 cdb database must fill the need for Contact export/import to any Linux PIM software. Others is on search.

That's my note for the weekend, while the children is sleeping.

Other method is using SyncML. But it seems Nokia 9300 is not very much supported even though it is listed. The truthful service probably is Ubuntu One. It says only contact can be synced.

Thursday, 28 April 2011

Django on Hardy

It was not a coincidence that my old AMD64 system with NVIDIA MX4000 doesn't give X on distro above Jaunty 9.04. Perhaps, if I push myself to insert NVIDIA kernel, Lucid 10.04 might be on, but I think that's not the case. The computer is way too old for modern kernel. So it turns out that I should maintain Hardy 8.04 LTS and Jaunty.
Then it came into my mind: whom might be maintaining Hardy and with what version of Django. It resulted into Turnkey Linux. Yeah, now I might be just following policies implemented in Turnkey-Django. The last one packed with Hardy was dated back 2009.10 issue, but I think it's worth with stability.The newest 11.01 was with Lucid. So Turnkey 'agrees' with my comprehension about core distribution to follow: Ubuntu LTS or Debian.
These are notes from geodjango site:
8.04 and lower

The 8.04 (and lower) versions of Ubuntu use GEOS v2.2.3 in their binary packages, which is incompatible with GeoDjango. Thus, do not use the binary packages for GEOS or PostGIS and build some prerequisites from source, per the instructions in this document; however, it is okay to use the PostgreSQL binary packages.

For more details, please see the Debian instructions for 4.0 (Etch) below.

Debian 4.0 (Etch)

The situation here is the same as that of Ubuntu 8.04 and lower -- in other words, some packages must be built from source to work properly with GeoDjango.

Notes:

Watch packages dependency for successful install while installing from tar ball (tar.gz). You will be notified and guided for any unsuccessful steps.

Wednesday, 30 March 2011

Tuesday, 29 March 2011

sun-java di Lucid

Gara2nya mau masang freemind. Karena butuh sun-java, maka mesti masang openjdk-6-jre. Karena di Lucid require tzdata/2010m-0ubuntu0.10.04, maka download dulu paket tersebut di
https://launchpad.net/ubuntu/+source/tzdata/2010m-0ubuntu0.10.04/+buildjob/1995244
Lalu, simpen di /var/cache/apt/archives/
Kalu enggak, ya langsung install saja agar menimpah paket defaultnya.
Mungkin developernya perlu diberi tahu bahwa dependensi paketnya ada yang mogok?
Ok, deh. Aku juga register di launchpad ...

Saturday, 19 March 2011

plone collective.geo.contentlocations

  1. edit buildout.cfg
  2. run buildout
  3. got this error: "No such file or directory: '/home/enviromatics/Plone/zinstance/parts/instance/etc/zope.conf'"
  4. means zope.conf has been deleted due to unclean product install (http://plone.293351.n2.nabble.com/Restart-Zope-td5151549.html); well the product got lots of dependency.
errors:
  1. warning: no files found matching '*.mo' under directory 'collective'
  2. warning: no files found matching '*.js' under directory 'collective'
  3. warning: no files found matching '*.mo' under directory 'collective'
  4. the rest seems rooted on them
resolution:
    1. clean collectives from buildout.cfg, rerun buildout to get the site back
    2. start with the errors now ... ::debugging mode on::

    Friday, 4 February 2011

    g3data - extract data from graph




    1. Point to x0, x1
    2. Put value on x0 and x1
    3. do the same on y axis
    4. Point of n1..nn values
    5. export data in dat
    6. import dat file using spreadsheet, customize the position

    create new graph/trend.