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.