It’s so easy to connect Raspbian Lite to WiFi

raspbian-lite-connect-wifi

This month, I’ve got a chance to try¬†Raspberry Pi device. I’ve got the Pi 2 model B from Jakarta Notebook offline store in Semarang. I am going to make it as a home server (actually workspace server ūüėÄ ). Right now, there’s a router here that is connected to internet. But unfortunately, I don’t have sufficient LAN cable to connect Pi to the router. So, I make use of a Ralink USB WiFi adapter for Pi to connect. And actually, set it up via command line is not hard as I thought.

https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md

Advertisements

How to use SOCKS 5 proxy in Ubuntu command line

This post is originally posted in Indonesian on my other blog: http://blog.badwi.my.id/internet/tips-bagi-pengguna-ubuntu-pengguna-internet-tri-122. Here I wrap up it in English.

Sometimes, we need a proxy to bypass internet filtering. When we work in command line environment, it may not as simple as in graphical environment. But thanks to proxychains, it becomes so simple that we just need to put proxychains command before the commands we want to execute. Proxychains is available in Ubuntu repository. So, we just have to run sudo apt-get install proxychains to install it.

Proxychains can handle several proxy types, including SOCKS5 proxy. It is an SSH tunneling proxy. So we need a remote machine which allows us to login and access internet. That’s usually a VPS.¬†So, we need to connect to SSH and make a tunnel before using proxychains.

ssh -vfCND1080 -l login_name -p port remote_machine_address
  • v¬†argument makes verbose output, so you may ommit it
  • f argument makes ssh session run in the background
  • C argument enables compression for all data
  • N argument disables remote command to the machine we connect
  • D1080 means to make local dynamic listening poxy at port 1080
  • login_name is the username of our remote machine
  • port is the SSH port of remote machine, usually 22
  • remote_machine_address is the address of our remote machine, either IP number or domain

Once connected, we can now use proxychains to bypass internet blocking. But first, we need to configure the proxychains in order to use our tunnel proxy. Edit the /etc/proxychains.conf file. Make sure you have these lines uncommented.

strict_chain
proxy_dns
tcp_read_time_out 15000
tcp_connect_time_out 8000
[ProxyList]
socks5 127.0.0.1 1080

We can also make a per-user config file at $HOME/.proxychains/proxychains.conf. Then we can make use of proxychains in every command we execute which needs internet. For instance:

sudo proxychains apt-get update

App Version from Git Tag in Qt / QML | Everything Frontend

While making an app it is really important to keep accurate track of the versions. Usually such a tracking is implemented via tags in version control system like git. It’s also a good idea to keep in mind semantic versioning when assigning version to your code.

But tagging your code with the right version number is only the first step. You also need to show version to the user and in some cases the system.

This –reblogged– post was actually drafted by the end of last year. I developed an open source Qt project then, namely Alldeb Installer and I wanted it to have the Git versioning to be used as part of the app’s version number.

via App Version from Git Tag in Qt / QML | Everything Frontend.

Looking Forward to the Release of Kubuntu 15.04

April will soon come. It means that a new Ubuntu version will be released. The most awaited one among others could be Kubuntu. It comes with the new KDE Plasma 5 desktop, a fresh new look of¬†KDE desktop. I haven’t tried out Plasma 5 yet. And when I found out a review of Kubuntu 15.04 beta 1 on Softpedia [1], I feel cannot wait for its release next month.

[1] http://news.softpedia.com/news/Kubuntu-15-04-Beta-1-Feels-Like-It-Awakened-KDE-from-a-Long-Slumber-Screenshot-Tour-474442.shtml

Jadi Ahli Bahasa dengan Kamus Lengkap di Linux

Kali ini saya ingin memerinci tentang aplikasi kamus di Linux, apapun distronya. Ada tiga program yang pernah saya coba, antara lain Stardict, Goldendict dan QStardict. Dua yang terakhir merupakan cabang atau berbasis pada Stardict. Goldendict sudah saya bahas pada tulisan #30.

Stardict

Stardict ini bisa dijalankan di lintas platform, baik MacOS X, Linux maupun Windows. Sudah lama saya tidak menggunakan StarDict, jadi, tidak begitu ingat bagaimana memanfaatkannya. Silakan merujuk pada situs resminya. http://www.stardict.org/ dan https://code.google.com/p/stardict-3/. Kebanyakan distro Linux sudah menyertakannya di repositori. Cukup cari stardict di pusat peranti lunak masing-masing ditro dan install dari sana.

stardict di windows
StarDict di Windows

Continue reading Jadi Ahli Bahasa dengan Kamus Lengkap di Linux

Membuat Paket DEB sekaligus Mengunggahnya ke PPA Launchpad

Kali ini saya perlu mendokumentasikan tata cara packaging di Ubuntu. Sebelumnya sudah pernah, sebagaimana saya ceritakan pada tulisan #34, tetapi karena kesombongan, saya hanya mengandalkan ingatan yang mana ingatan itu ternyata tidak abadi. Dengan kata lain, saya sudah lupa.

Packaging¬†di Ubuntu bagi saya yangnoobdan¬†bukan programmer¬†ini terasa rumit dan susah. Tutorial dan dokumentasi tentang packaging memang banyak, tapi dalam bahasa Inggris. Ini yang menjadi kendala lain untuk mempelajarinya. Saya yakin banyak juga ahli di bidang ini di negeri ini yang sudah berpengalaman, namun belum sempat berbagi ilmunya itu, mengingat ada beberapa distro racikan anak negeri, atau mungkin saya saja yang belum mencarinya ūüėÄ . Nah, walaupun saya bukan ahli, setidaknya dan mudah-mudahan bisa memberikan sedikit gambaran bagaimana proses memaketkan aplikasi untuk Ubuntu sekaligus membuat PPA (Personal Package Archive) di Launchpad.

Continue reading Membuat Paket DEB sekaligus Mengunggahnya ke PPA Launchpad