Create tar.gz in OpenSolaris

I need to make backup for our public_html directory

using tar command I used to use :

tar cvzf  filename.tar.gz directory_name

It work in linux or bsd but I have different situation with OpenSolaris :

# uname -a

SunOS TGLxxxxxxx 5.11 snv_86 i86pc i386 i86xpv

# tar cvzf public_html.tar.gz public_html

tar: z: unknown function modifier
Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@/[0-7]][bfk][X…] [blocksize] [tarfile] [size] [exclude-file…] {file | -I include-file | -C directory file}…
#

Combine it with gzip using pipe will give tar.gz file :

tar cvf -  public_html | gzip > public_html.tar.gz

Yes, it works!

scp time.

P.S :

In case you want to extract .tar.gz file in OpenSolaris use this command :

gzip -dc filename.tar.gz | tar xvf –

How to change proxy information on ubuntu server

New motherboard has come and I ask my friend to install Ubuntu Hardy 8.0.4.3 . Everything is fine except proxy section when I try to apt-get update.

# apt-get update

Err http://security.ubuntu.com hardy-security Release.gpg
Could not resolve ‘172.88.1.3;3128’
Err http://security.ubuntu.com hardy-security/main Translation-en_US
Could not resolve ‘172.88.1.3;3128’
Err http://security.ubuntu.com hardy-security/restricted Translation-en_US
Could not resolve ‘172.88.1.3;3128’
Err http://security.ubuntu.com hardy-security/universe Translation-en_US
Could not resolve ‘172.88.1.3;3128’

As you see proxy information is incorrect, there is a ; sign not :

Continue reading

How to change timezone on ubuntu

One of my friend server must get reconfigure its clock each time, specially when the server get reboot after lamp problem.

Until he realized the timezone is different.

Here’s quick way to change it :

# dpkg-reconfigure tzdata

Current default timezone: ‘Asia/Jakarta’
Local time is now:      Sat Oct  3 13:02:53 WIT 2009.
Universal Time is now:  Sat Oct  3 06:02:53 UTC 2009.

Check

# date

Sat Oct  3 13:03:15 WIT 2009

Great, it fix.

How to extend / renew flickr pro account

My wife flickr account pro almost expire, it will expire on October 2009.

Since she stay at my mother in law house with our newly born child she ask me to renew her account on flickr.

I thought the process is quite clear but I’ll post it for some people that might have difficult on doing this procedure.

1. Login to flickr

A confirmation message will appear, click on head over to the upgrade page.

flickr1

Click on Buy Now button

Continue reading

Howto install Aptana studio with php support

I’m old fashion student who use phpcoder as tool for coding php until my friend suggest aptana editor with php support. When everything configured properly I’ll have php interpreter for immediate debug purpose and I think it’s suitable for new php user :-)

I decide to give this software a try and here it goes.

Install Aptana

Aptana studio available from their website, I use free version. (1.5)

After download it I run installer to get installation work.

Welcome to Aptana Studio 1.5 setup, click Next to start.

install_aptana

Continue reading