Archive for the ‘command line’ Category

Changing Ubuntu Server Timezone by command line

When you install Ubuntu server distribution, you would got problem when choosing the time zone, especially for Indonesian time zone. Because I had install ubuntu server several times, but you can only choose US time.

So, the easiest way is trying to change the time zone after the installation process is completed. Here is that simple command


koro@kecapi:/etc$ sudo dpkg-reconfigure tzdata
[sudo] password for koro:

Current default timezone: 'Asia/Jakarta'
Local time is now: Wed Apr 14 10:46:47 WIT 2010.
Universal Time is now: Wed Apr 14 03:46:47 UTC 2010.

koro@kecapi:/etc$ date
Wed Apr 14 10:52:47 WIT 2010

Do not forget to choose your time area according to your geographic region.

Install wordpress on vps account

I’ve got vps account couple weeks ago, but at this moment now I want to setup the wordpress engine on vps box. I setup my own vps account and set the RAM to guaranteed 128 M and burstable to 256.

I use Ubuntu 9.04 and mysql server 5.0.75. Everything looked okay, until I got this message when proceed the wordpress wizard.

Fatal error: Out of memory (allocated 6815744) (tried to allocate 4864 bytes) in /home/koro/public_html/wp-includes/kses.php on line 1026

I check the RAM usage about the lack of memory above

koro@koro:~$ free -m
total used free shared buffers cached
Mem: 256 252 3 0 0 0
-/+ buffers/cache: 252 3
Swap: 0 0 0

So I try to change the RAM to unlimited, and it works well. But I think 384 M will be enough. Before get the error message, of course I need to setup a little by creating the databases needed and create also the user for database.

Here is these commands

mysql> create user 'koro'@'localhost' identified by 'somepass';
Query OK, 0 rows affected (0.03 sec)

mysql> grant all privileges on korowp.* to 'koro'@'localhost';
Query OK, 0 rows affected (0.03 sec)

mysql> create database korowp;
Query OK, 1 row affected (0.00 sec)

Download files on SSL server using wget

My internet connection is slow enough, even people says it should fast because I’m using 512 Kbps FirstMedia internet access.

So I think I need to download the Lotus Notes using my Linux Box which is colocated at an ISP in Jakarta.
But the problem is the link given by IBM uses SSL.

So I just give a command like this

$ wget -b -c –tries=0 –no-check-certificate https://some.domain.com/filename.ext

Return top