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 7th, 2012
Easy way to copy iptables rules from one to another server
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.
July 30th, 2012
Could not connect to server with SVN WebDav and Apache
No Comments, Apache, Linux, by Joakim Ling.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.
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.
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.
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
February 8th, 2012
How to configure Auto Scaling with Amazon Web Services EC2 and ELB
7 Comments, Linux, by Joakim Ling.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.
December 2nd, 2011
Update time and timezone in Linux from command prompt
1 Comment, Linux, by Joakim Ling.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.