Ultimate Web Tips

your Wordpress, jQuery, PHP, MySQL, Linux and CSS guide to a successful website
Read more:
Archive for the ‘Linux’ Category

I for one is not very comfortable working with firewalls, especially when you only has SSH access. This happened to me a few times that I blocked my self and then had to contact the provider which turned out to be well expensive, so an expensive lesson not to mess with firewalls.

September 4th, 2012

Rsync for backup over ssh with public key

No Comments, Linux, by Joakim Ling.

Using rsync is great way of keep remote files up to date, like having a fresh backup somewhere. I use it on most of my webservers so that I always have a remote copy if a server would crash. When setting up a cronjob you need to either install a key on remote server or send a public key to avoid a password question.

Using Apache WebDav service with subversion can create timeouts when your project grows. Especially if you are on a slow connection, you need to tweak your Apache config a bit to avoid connection faults.

July 19th, 2012

How to disable sudo password

No Comments, Linux, by Joakim Ling.

Sudo is a way to give users administrative rights, without giving them the root password. Very useful in a large environment where you a a mix of workstations and servers.

Had a problem with a cloud server a while ago with updating subversion. This is a kernel error and I found out that its the random pool thats not working correctly. Here is a simple way how to recreate it.

March 2nd, 2012

Disk quota exceeded error in Linux

2 Comments, Linux, by Joakim Ling.

All of your services have disk storage space allocated to you. When you fill your disk storage space, you will receive a notification message “Disk quota exceeded” when you try to perform operations, such as storing cache files or sending email. Even if you have free space left on your disk, doesn’t say that you have space to add new files.

February 9th, 2012

Use ssh-copy-id on a different port

No Comments, Linux, by Joakim Ling.

ssh-copy-id is a script that uses ssh to log into a remote machine and install your public key. I recently had to do this on a server that had ssh on a different port. Normally as you do “-p 6000″ but in this case a bit tricky

Using the Amazon Web services is a modern way to have your environment in the Cloud. It supports load balancing between your instances and thanks to Auto Scaling you’ll never need to pay for more than you use. Basically the Auto Scaling launches additional instances to meet your demand, usually with help of a CPU alarm. Later removes them when not needed any more.

I wasted a good few hours trying to find a good solution on how to save an echoed string with sudo. I tried “sudo echo ..” and lots of different combinations before I made it work.

The system time is often a symlink to the file /etc/localtime or the time zone file on the time zone directory. The definition for time zones can be written in short form as UTC±n (or GMT±n), where n is the offset in hours.