If you run across Ubuntu/Debian perl or shell script and see the following locale error: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = “UTF-8”, LANG = “en_GB.UTF-8” are supported and installed on your system. perl: warning: Falling back to the standard locale (“C”). Then it is more likely that your Ubuntu/Debian locale is not configured properly. I Continue reading Fixing Perl Warning Setting Locale Failed Error Message on Ubuntu/Debian
Below is an example on how to configure date and timezone settings on your Raspberry Pi Raspbian Wheezy. The following example is based on Debian Linux and it is working perfectly with Raspbian Wheezy for Raspberry Pi. pi@raspi: ~ $ sudo -i password: root@raspi:~# tzselect Please identify a location so that time zone rules can be set correctly. Please select a continent or ocean. 1) Africa 2) Americas 3) Antarctica Continue reading Configure Timezone Settings on Raspberry Pi Raspbian Wheezy
Raspberry Pi doesn’t come with WiFi adapter built-in. It only have one fast ethernet (RJ45) port to connect it to the network. In order to make your Raspberry Pi become wireless, there are many small-sized WiFi USB dongle which is work out of the box with Raspberry Pi. One of them is TP-LINK TL-WN823N WiFi USB dongle. Plug in the dongle to the Raspberry Pi USB port, then it should Continue reading Connecting Raspberry Pi to WiFi
When you do an SSH to a certain server and execute some command in terminal, you may notice a warning that said “warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)”. This caused a few problems when running some perl or installation scripts that would complain about the locale variables not being set. This warning occurs when I am trying to do a remote command to my Ubuntu server through an SSH from Continue reading How to fix warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)
By default, Ubuntu (desktop) is different than Fedora in terms of iptables rules persistence. Ubuntu’s iptables rules are live and not persistent, so that Ubuntu’s rule will always reset after system restart. There are many ways to make it persistent, the one easy to do that is installing iptables-persistent package using apt-get. Below is a terminal output while installing iptables-persistent package. During installation, you will prompted whether you want to Continue reading Make Ubuntu iptables Rules Persistent Across Restart
By default, Ubuntu are using sudo by a sudoer to issue a root-only command rather than using root user. Sometimes it is annoying while you are configuring your Ubuntu box by typing sudo and password on every (root-only) command that you type. You can activate the root user (and setup/change root password) using the following command: aryo@ubuntu:~$ sudo su – [sudo] password for aryo: root@ubuntu:~# passwd Enter new UNIX password: Continue reading Using root User on Ubuntu
You might probably find this error while starting/restarting Apache web server on Raspberry Pi Wheezy: root@raspi:# /etc/init.d/apache2 restart [….] Restarting web server: apache2apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName … waiting apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName . ok This error caused by Apache’s ServerName confguration is missing in apache2.conf file. So, as Continue reading Fixing Apache 2 “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName” Error on Raspberry Pi Wheezy
Most of web-based application development todays were developed using database. The most popular one is using PHP and MySQL. When developing using MySQL most of beginners were using phpMyAdmin as their power tools in database CRUD (Create-Read-Update-Delete) as well as databases/tables creation and manipulation. PhpMyAdmin supports encryption feature which enables database developers to raise their application security bar in database. In order to use encryption feature in PHP, phpMyAdmin need Continue reading Easy Install PHP Mcrypt Extension on Ubuntu Linux
If you run your own web server on your Linux or Unix based operating system, including Mac OS X, then sometimes you would like to share another directory which reside outside of your web root directory.
Almost every Andoid application has many activities, a screen that interact with user. On desktop based operating system, this screen is usually called by a “form”. It is very common that it is required to switch between one activity onto another activity in user interaction. In this post I will try to explain how switching between activities and passing variable into it can be done.