Skip to content

Month: June 2013

Linux ‘Environment Variables’

In windows, when we want a program to run anywhere we simple add it to the PATH section of the environment Variables… Well, what about linux? ln -s /root/ /bin/shortname # nnow we can run with ‘shortname’  

How to setup open MySQL Port (3306) on Ubuntu

Step 1: ensure we have mysql-server installed. apt-get install mysql-server Then: vim /etc/mysql/my.cnf COMMENT OUT (with a ‘#’): “bind-address =” Restart Server with service mysql restart ——– To test with another linux client, use mysql -h ip.or.hostname -u root -p (ERROR 2003 (HY000): Can’t connect to MySQL server on…

How to change date and timezone in linux

To change date: date -s “18 JUN 2013 12:22:00” To change timezone: sudo dpkg-reconfigure tzdata   NOTE: After changing linux date/time/timezone make sure you restart cron with: /etc/init.d/cron stop /etc/init.d/cron start #or in Ubuntu/Debian based OS’s service cron stop service cron start