Learning On Demand Learning anything from anywhere

Archive for the ‘Work’ Category

Create tar.gz in OpenSolaris

10.11.2009 · Posted in Work

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 ...

How to change proxy information on ubuntu server

10.06.2009 · Posted in Linux, Unix, Work

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 ...

How to change timezone on ubuntu

10.03.2009 · Posted in Linux, Unix, Work

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 ...

WARNING: Found /var/db/mysql/my.cnf

07.26.2009 · Posted in Work

MySQL 5.4 beta already hit freebsd ports and I eager to try it after read a lot of review. Everyhing seem OK until I want to start the server. # /usr/local/etc/rc.d/mysql-server restart mysql not running? (check /var/db/mysql/proxy2.host.com.pid) hmmm, perhaps I can try mysqld_safe # /usr/local/bin/mysqld_safe & [1] 87164 proxy2# WARNING: Found /var/db/mysql/my.cnf Datadir is deprecated ...

How to Setting ntp client in Mikrotik

07.20.2009 · Posted in Work

RouterBoard have special behavior, that’s my observation after install MT in hard disk and then bought RB433AH. In RB433AH time setting automatically to January 1970 every time its get restart. Till I use ntp (network time protocol) client in MT. The step to set ntp client in MT : 1. Click ‘System’ -> NTP Client. ...

Setting up RouterBoard RB433 AH

07.16.2009 · Posted in Work

New Mikrotik RB has arrived, its RB433AH wireless indoor. As I never use mikrotik before it’s time to configure it for first use : 1. Download neigbour viewer for windows from mikrotik. 2. Unzip the files using winzip or winrar. Double click to launch neighbour viewer At first time IP address will display 0.0.0.0 it ...

Start Learning PHP framework

06.18.2009 · Posted in Work

Newest project actually just inherit from other project but due to old style programming approach. The time it take for completing seem to waste our time and stress when deadline come. Learning php framework such codeigniter, zend framework, cake, symphony etc open our eye that we ‘must’ forget our knowledge and try to think big. ...

Install AnsavAnti Virus in Ubuntu Server

06.06.2009 · Posted in Work

Playing around with anti virus lead me to ansav, a free anti virus that convince me to give it a chance for our linux server. Installation process is simple as 123 : 1. Download core engine and update from here. 2. Install ansav. dpkg -i ansav-linux-i386.deb 3. Move latest update to /etc/ansav mv dbs.anv /etc/ansav/ ...

WARNING: Crypto package not found. Some features will fail.

06.05.2009 · Posted in Unix, Work

That message show up when I scan conflicker in our lan. After some google, I know the answer : In FreeBSD : # cd /usr/ports/security/py-pycrypto && make install In Ubuntu : # apt-get install python-crypto Done. NO more error message I guess. WARNING: Crypto package not found Some features will failCrypto package not foundpython crypto ...

Detect conflicker in our LAN

06.05.2009 · Posted in Unix, Work

Another conflicker variant force us to behave like paranoid. Any tool that might help us to detect it get more attention, specially when it’s free Detect from Windows machine : Download detector from Florian Roth, click here. Save and extract to any folder, I choose C. Make sure to run it from comman line : ...

Install OpenNMS on FreeBSD

05.15.2009 · Posted in Unix, Work

Download # cd /usr/ports/net-mgmt # wget -c http://www.geeklan.co.uk/files/opennms/opennms-164-freebsd-port.tgz –2009-05-15 03:17:40–  http://www.geeklan.co.uk/files/opennms/opennms-164-freebsd-port.tgz Resolving www.geeklan.co.uk… 93.97.185.103 Connecting to www.geeklan.co.uk|93.97.185.103|:80… connected. HTTP request sent, awaiting response… 200 OK Length: 15093 (15K) [application/x-tar] Saving to: `opennms-164-freebsd-port.tgz’ 100%[=====================================================================================================>] 15,093      5.23K/s   in 2.8s 2009-05-15 03:17:45 (5.23 KB/s) – `opennms-164-freebsd-port.tgz’ saved [15093/15093] Extract and delete # tar xvzf opennms-164-freebsd-port.tgz && rm opennms-164-freebsd-port.tgz ...