Tag Archives

12 Articles
KDE5: GIT dan GIT_ASKPASS

KDE5: GIT dan GIT_ASKPASS

Pada KDE5, para pengguna GIT akan selalu disedihkan dengan pertanyaan seperti ini:

$ git pull
Username for 'https://git.repository.com': me
Password for 'https://me@git.repository.com': xxxxx

Mengapa hanya KDE5? Karena GIT menyediakan integrasi dengan GNOME Keyring. Ya, bisa saja memasang GNOME Keyring. Tapi, itu bukanlah KDE5 yang kita cintai! ;-(

Untungnya, ada integrasi dengan mekanisme SSHASKPASS.

Pertama-tama, pasang implementasi KDE5 untuk SSHASKPASS.

sudo apt-get install ksshaskpass

Buat ksshaskpass sebagai penyimpan sandi.

git config --global core.askpass /usr/bin/ksshaskpass

Selanjutnya, Anda harus membuat keputusan.

Memasukkan Login per Repositori GIT

Kalau Anda hanyalah pengguna dari sebuah repositori tunggal, Anda cukup menyimpan login di lokal saja. Ini dilakukan di setiap direktori GIT.

git config --local credential.https://git.repository.com.username "me"

Kemungkinan besar, Anda adalah seorang leecher seperti saya pengembang yang mengakses lebih dari satu repositori dalam sebuah situs GIT. Untuk itu, bisa dibuatkan repositorinya.

git config --global credential.https://git.repository.com.username "me"

Sampai sini, Anda sudah selesai.

Terakhir

Apa yang terjadi?

Bacaan Lebih Lanjut

Membuat Aplikasi Berbasis Akonadi (KMail2) Keren Lagi
Wily Broke The Window

Membuat Aplikasi Berbasis Akonadi (KMail2) Keren Lagi

Saya punya problema KMail2 yang saya pasang di KDE semenjak KDE SC 4 sering crash. Bahkan, saya terpaksa menghapus ulang seluruh konfigurasi KDE demi bisa memasang ulang KMail2. Memang, saya bisa saja memasang Thunderbird. Tapi, saya jatuh cinta dengan cara pakai di KMail2.

Setelah pemasangan KDE Neon, distro baru berdasarkan Kubuntu LTS 16.04, saya menemukan bahwa saya tidak bisa menggunakan KMail2! Usut punya usut, ternyata karena sistem saya menggunakan Oracle MySQL 5.7. Ada sintaks SQL yang tidak lagi cocok dengan versi teranyar itu. Saya pun harus memilih pindah ke MariaDB 10.x.

Saya temukan lebih lanjut, ternyata pustaka Akonadi yang dipakai oleh KMail2 menggunakan abstraksi Qt SQL. Lah, ‘kan, Qt SQL mendukung banyak basisdata! Saya pun memilih untuk dari pada pindah ke MariaDB, pindah ke PostgreSQL.

Sedikit Noktah dalam Pemasangan

Saya memasang PostgreSQL seperti yang saya telah tulis sebelumnya. Oh, iya, bakal ada pesan kesalahan pada saat pemasangan paket Debian PostgreSQL pada Kubuntu 16.04 dan turunannya kalau menggunakan cara tersebut. Hal ini karena versi BASH yang disediakan memiliki aturan yang lebih ketat untuk mode ketat.

Solusinya adalah mengganti setiap “$1” menjadi “${1:-}” pada berkas /usr/share/postgresql-common/supported-versions. Pada ViM, regex yang dipakai:

:%s/\$1/\$\{1\:-\}/g

Baru, ulangi kembali pemasangan PostgreSQL.

sudo apt-get -f install

Mungkin Anda akan lebih beruntung dari saya dengan memasang paket dari Kubuntu. Tapi, setahu saya, sih, tidak bisa.

Kalau Anda tidak menggunakan PostgreSQL pada sistem Anda, matikan saja instan PostgreSQL yang berjalan di sistem.

sudo systemctl stop postgresql && sudo systemctl disable postgresql

Lumayan menghemat beberapa mega memori dan proses CPU.

Konfigurasi Akonadi Sebelum Dipasang

Pertama-tama, mari buat direktori konfigurasi Akonadi:

mkdir -p ~/.config/akonadi/

Lalu, buat berkas konfigurasi untuk Akonadi menggunakan PostgreSQL:

cat >> ~/.config/akonadi/akonadiserverrc << EOF
[Debug]
Tracer=null

[%General]
Driver=QPSQL

[QPSQL]
Host=/tmp/akonadi-jp.RqiEZ0
InitDbPath=/usr/lib/postgresql/9.5/bin/initdb
Name=akonadi
Options=
ServerPath=/usr/lib/postgresql/9.5/bin/pg_ctl
StartServer=true
EOF

Ganti 9.5 dengan versi PostgreSQL yang Anda pakai.

Pemasangan KMail2

Selanjutnya, tinggal pasang saja:

sudo apt-get install akonadi-backend-postgresql kmail

Bila sudah sampai sini, seharusnya pemasangan lancar. Begitu menjalankan KMail2, Akonadi akan mengonfigurasi dirinya untuk menjalankan instan PostgreSQL khusus.

Terakhir

Saya sering memakai laptop sampai baterai kosong. Komputer saya kadang kena mati lampu. Sampai detik ini, keduanya masih stabil dan saya sampai detik ini belum pernah menghapus ulang KMail2.

Semoga beruntung, silakan bertanya.

Pemasangan Lanjutan Setelah kde-full

Pemasangan Lanjutan Setelah kde-full

KDE SC on BlankOn

KDE SC on BlankOn

Ternyata kde-full tidak memasang KDE sepenuhnya. Ada beberapa paket yang tidak dipasang. Berikut beberapa paket yang tidak wajib tapi tak bisa hidup tanpanya yang akan saya pasang.

Bahasa Indonesia

Kendati locales telah dikonfigurasi untuk ber-Bahasa Indonesia, namun KDE masih menggunakan bahasa Inggris. Untuk mengaktifkan Bahasa Indonesia:

$ sudo apt-get install task-indonesian-kde-desktop

Mengapa repot Bahasa Indonesia? Kalau bukan orang Indonesia, siapa yang akan memakai bahasa persatuan ini?

Pemaket

Kalau suka dengan apt-get, silakan saja. Tapi, sekali-sekali mata ingin dimanjakan dengan GUI. Maka, pasang untuk GUI:

$ sudo apt-get install kdesudo apper

Aplikasi apper adalah nama lain dari kpackagekit. Saya tak tahu kapan ia berubah nama.

Terminal

Yakuake adalah terminal terbaik.

$ sudo apt-get install yakuake

Terminal tanpa Yakuake itu seperti sayur tanpa garam. Bisa dimakan tapi hambar. Pokoknya Yakuake itu keren.

Netrunner 13.06
Netrunner Desktop

Netrunner 13.06

Netrunner Desktop

Netrunner Desktop

Netrunner 13.06 (Enigma) merupakan sebuah produk turunan Kubuntu 13.06 yang disponsori oleh Blue Systems. Menurut situsnya, Enigma berisi: (terjemahan dan ditambah dikit)

  • Perbaikan performa KWin (window manager bawaan KDE) sehingga bisa digunakan di mesin-mesin berkekuatan rendah.
  • Kate Minimap scrollbar.
  • KWallet aktif secara otomatis
  • Titik pojok kanan bawah aktif sebagai pintasan.
  • Penyederhanaan laman pengaturan.
  • Membuang WINE (karena tak begitu relevan)
  • Memasang ALSA, bukan Pulseaudio karena kompatibel dan bagus (terutama untuk Intel HDA). Intel HDA itu nama lain untuk teknologi keping audio terintegrasi yang banyak dipakai di PC dan laptop.
  • Firefox yang telah dilengkapi dengan Mozilla App-Store.
  • Tautan untuk memasang Steam Installer.
  • Mint Software Sources dan pengatur perangkat keras.
  • Aplikasi KDE yang biasa seperti Homerun 1.0, Tomahawk 0.7, dll.

Saya telah mengunduh Netrunner di KAMBING. Kalau ada yang tertarik, silakan unduh dari sana bila membutuhkan koneksi Internet lokal. Saya mencoba di VirtualBox dan hasilnya asyik sekali! Stabil dan lancar.

Hal yang menarik adalah sistem operasi ini membutuhkan koneksi Internet untuk bisa memiliki pengalaman terintegrasi. Akun web sudah ada semenjak KDE 4.x awal. Saya bahkan dulu menggunakan itu untuk menemukan rekan. Sayangnya, hanya ada satu rekan yang saya kenal dan sisanya tak jelas.

Pun demikian, rasanya sekarang semenjak GNOME, Windows 8, dan Android mengintegrasikan fitur akun web mereka, sepertinya integrasi dengan media sosial menjadi lekat. Sayangnya, oligopoli yang dilakukan telko di Indonesia menyebabkan harga data Internet masih mahal untuk bisa mengaktifkan fitur ini. Saya hanya beruntung memiliki PC di pusat data yang punya pita jaringan lebar.

Saya semenjak KDE 4.0 jatuh hati dan suka dengan visi mereka. Kalau saya menjelaskan lebih lanjut yang lain rasanya terlalu subyektif. Sayangnya, laptop saya sudah saya dedikasikan kepada BlankOn. PC saya karena untuk performa sudah memakai Gentoo. Jadi, sepertinya ini akan saya aktifkan di VirtualBox saja. Toh, bisa dibuat layar penuh dan pindah dengan mudah.

Fasilitas yang Menarik Menurut Saya

Proses Pemasangan

Pidgin Not In Systray

Pidgin Not In Systray

Opsi Pada Pidgin

Pidgin's option

If you are a KDE user like me and wondered what’s wrong with Pidgin not showing on the systray. After I moved to KDE SC 4.5, suddenly Pidgin not showing in the systray anymore. The problem persisted in my Kubuntu laptop and Gentoo workstation.

Just now, I found out by accident that by default the systray in Pidgin never showed.

So, to fix that, go to Preferences. In the Interface tab, change “Show system tray icon” to “Always”.

Wow, I’ve been trying to search the patch almost 2 years and actually the reason is that simple? 😛

Just A Recall of Memory

Just A Recall of Memory

Hello, just want you to know that I'm still alive. I just want to talk about random stuff that popped over this week. Enjoy! 😛

Anyway, interestingly, this week there is a lawsuit encounter between Oracle and Google. The holy father of Java, James Gosling, whom leaved Sun after the acquisition, already predicted that Oracle will sue Google. SUN, whom play fair and square, never used their patent offensively. Even when Google makes Darvik, the Java JIT JVM for Android, SUN just let it slipped away. SUN had to put their relationship with developers in good terms. Well, Oracle surely not need to. They sue Google for Darvik.

This, according to Google spokesmen, is an attack not just to Google, but also to all of open source Java implementor. That's may be true, we can imagine all the enterprise Java goodies from IBM and other implementor becomes a good attacking target. Well, so far I only reading on one side of the story. So, Oracle, what's your reason for that?

Another great story is KDE SC 4.5.0 finally launched. Sadly, I've read that it would not be in Gentoo before 4.5.1. Sad indeed, I'm using Gentoo. FYI, I'm interested in two DE right now: Enlightenment (E17) and KDE 4.5. Both have strong connection with embedded devices. Since its early days of development, E17 had been known compiled to Zaurus (Yes, THE archaic smart phone). Meanwhile, Trolltech, the company behind Qt, the base of KDE SC, had been bought by Nokia.

I wish I can buy Beagleboard. Can someone from Indonesia without credit card buy that stuff? Dear lazy webm help.

How about GNOME?

Well, we'll wait for 3.0. From my personal opinion, I have two things about GNOME that should be changed: 1) The dumbed down version; 2) trying to be conservative. I like being conservative, but, I don't think less feature is "less is more". The most reason I would stuck to GTK+ is because of existing application rocks. Applications like Pidgin can't be replaced with Kopete, yet. I wish KDE SC could make a better solution for proxy environment. Firefox still uses GTK+ and many sites are doing well on that. Webkit just a new player being adopted worldwide Firefox still de facto.

Btw, happy feasting for you that do that.

DVD Just Fine

DVD Just Fine

I can watch my original DVD “U2” “go Home” using libdvdread4. The package have a script that would instal libdvdcss2 into the system. To have it:

$ sudo apt-get install libdvdread4
$ sudo /usr/share/doc/libdvdread4/install-css.sh

And it would download all of the non-free debs. I hate it when I am using non-free blobs, but what I hate the most is I can’t play my own ORIGINAL DVD. Gah! Hail to the greed of liberalism!

Anyway, it seems that the DVD aged, so I guess now I need to create a backup copy. K3B rocks! It reads scramble DVD just fine. 😀

Another story with my Lucid, I just find out that Twitter revamped their site. I know this is outdated info, but since I am busy I haven’t realized it. I’m using Choqok to see all the post.

It seems that Choqok doesn’t have any capability for seeing friend request. I must go to the site to do the job. Anyway, google-chrome failed at accepting friends. It always failed when I pressed the “Accept” button. Fortunately, my Konqueror can do the job. Yay! All hail to the almighty ancient browser. 😀

Oh, btw, I’m using Kubuntu.

Sony Ericsson W508 + OpenOffice Presenter + KDE 4.4.x

Sony Ericsson W508 + OpenOffice Presenter + KDE 4.4.x

Sony Ericsson W508 + OpenOffice Presenter + KDE 4.4.x = GG!

For non (Warcraft) gamer, it means:

Sony Ericsson W508 + OpenOffice Presenter + KDE 4.4.x = World Domination!

I’ve just found out that SE W508 Presenter is supported by KBluetooth. It means, I can make it as my controller for screen projection. All of controller were detected.

How to do it?

Just set your phone to be discoverable and set your laptop as discoverable as well. Connect them, and let them trust each other (you know the drill, put PIN). I’m sorry for the no screenshots. I have no camera, but the phone itself.

Hardware involved:

  • Lenovo Y41
  • Sony Ericsson W508

Software used:

  • Kubuntu Lucid
  • OpenOffice 3.2 (from Kubuntu)
  • KBluetooth
  • KDE 4.4.x (from Kubuntu)

Feel free to comment. If you have an urge in needing of screenshot, I shall reconsider to put them later. But, in the meantime I am really busy.

Journey Log 3: A Glitched Upgrade

Journey Log 3: A Glitched Upgrade

This morning I upgraded my workstation which runs Lucid. I have found that there are 2 failed upgrades. The solution to those packages are trivial.

INITRAMFS fails

The first problem  encountered is

initramfs-tools

that failed to found “

./lib/udev/firmware.sh

“.  After a quick check on “

/lib/udev

” directory, I found out that the given file was named “

firmware

“. Thus, solution should be an alias:

$ sudo ln -s /lib/udev/firmware /lib/udev/firmware.sh

After  that, I ran the Debian’s configuration:

$ sudo dpkg --configure -a

It then hits the second configuration

Virtuoso Server fails

If you are using Kubuntu, which using Virtuoso for her semantic things, most likely you would encounter this error. The Virtuoso was 5.x version, but the one that would be installed is 6.x version. So, there are some new packages that need to be installed. Fortunately, it is easy enough to do so:

$ sudo apt-get install virtuoso-opensource-6.0-common
$ sudo apt-get install virtuoso-opensource-6.0

In Debian, *

-common

is a virtual package to install the given software. But, here I must install the

virtuoso-opensource-6.0

virtual package manually. Well, after that two installs, the upgrade went smooth.

UPDATE

fix from :

Ubuntu/Lucid: recovering from yesterday’s messy update

Yesterday a silly oversight in the packaging of udev in Ubuntu/Lucid produced a breakage that consistently makes dpkg barf. Here’s a simple command line recipe to recover from it. In your terminal application, type: sudo sed -i ‘s#copy_exec /lib/udev/firmware.sh#copy_exec /lib/udev/firmware#’ /usr/share/initramfs-tools/hooks/udev && sudo dpkg -a –configure && sudo aptitude update && sudo aptitude safe-upgrade …then press enter.

$ wget http://launchpadlibrarian.net/39011493/udev-firmware.patch && sudo patch -p0 < udev-firmware.patch && sudo dpkg -a --configure && sudo aptitude update && sudo aptitude safe-upgrade
Phonon Blocking Building KDE4

Phonon Blocking Building KDE4

I’m trying to use Bespin from SVN but the build failed at configuring. According to [BUG], there are two ways of solving it:

  1. Reinstalling libqt4-phonon-dev
    • $ sudo aptitute reinstall libqt4-phonon-dev
  2. Create a symlink (symbolic link/shortcut) from /usr/include/qt4/phonon to /usr/include/phonon
    • $ sudo ln -s /usr/include/qt4/phonon /usr/include/phonon

With my current Lucid, I get the second one successful.The complete error message when installing:

$ cmake .

— Found Qt-Version 4.6.1 (using /usr/bin/qmake)   — Found X11: /usr/lib/libX11.so                   CMake Error at /usr/share/kde4/apps/cmake/modules/FindPhonon.cmake:19 (file):  file Internal CMake error when trying to open file:                          /usr/include/phonon/phononnamespace.h for reading.                         Call Stack (most recent call first):                                           /usr/share/kde4/apps/cmake/modules/FindPhonon.cmake:45 (_phonon_find_version)  /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:613 (find_package)   /usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)                  CMakeLists.txt:15 (find_package)                                             — Found KDE 4.4 include dir: /usr/include— Found KDE 4.4 library dir: /usr/lib    — Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler— Found automoc4: /usr/bin/automoc4                                      — WARNING: *** Amarok Hack enabled, notice that this will potentially cause trouble on Amarok                       also this is legacy code and supposed to be redundant due to (future) changes to Amarok                       Hacks can be disbaled at runtime and should in case of issues with Amarok                                     By activating this you confirm that you know what you’re doing ***                     — Found X11: /usr/lib/libX11.so                                                                              — INFO: XRender was found – kwin deco & FX via GPU available!                                                — Configuring incomplete, errors occurred!I was trying to build Bespin according tothis.Reference:[BUG]  https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/386742

Journey Log 2: What’s New On Lucid

Journey Log 2: What’s New On Lucid

Today’s update on Lucid, Firefox is on the 3.6 version and still using firefox-3.5-branding. However, Ars reported that Canonical made a deal with Yahoo! to include their search engine as the default, not Google. So, I will expect the next update would change the default search engine into Yahoo! search engine (Bing).

The neat feature of KDE 4.4 that it is integrated with OpenDesktop.org. OpenDesktop is an emerging open standard that promote social site compability degree. The simple explanation is a Facebook-like open API that can be implemented by many websites so that they compatible each other.

Anyway,

With the desktop tight up with OpenDesktop, I can download any KDE content and vote for it. What a neat feature! I’m using pwgen to generate password so it’s kinda hard to remember all of my passwords (one password per site!). That’s why I don’t log that much into many sites, including KDE-Look. Thanks to the implementation, Kubuntu Lucid (KDE) now become more and more integrated with web.

I’m using Netbook-plasma from KDE 4.4. It has a neat feature, making the maximized applications without border. But, sometimes I wish that the dialog box not into windows mode and not maximized also. I wish it could be docked into the plasma’s dock. Hmm… just like Mac? Dunno.

I’m sorry with no screenshot, I have a great deal of work right now. If you want, I can provide one, though. Just feel free to comment.