Sukrit Dhandhania

Smart, selective backup of files with Linux

There are a number of backup methods that you can use in Linux to make sure your data is safe and available. The simplest is probably to backup everything. This method, although viable under certain circumstances, is not always the smartest way to go if you have space constraints. So you can use a more selective backup method. Let’s look at one, wherein you choose the files you want backed up, and run a single line command to backup only these files. …

Linux security tip: change your computer’s SSH port

Here’s a useful tip for people that access their computer or server over the Internet using SSH. Change your SSH port from the default port 22 to something else. Although this is not a foolproof hack to secure your server, it can at least help greatly. Let’s look at you this would be done on an Ubuntu machine. NOTE that this change should not be performed over a remote SSH connection, you might lose all contact with your server. …

How to improve your privacy settings in Mozilla Firefox

If you’re one of those people who is very particular about protecting your privacy you might find many sites on the web today very intrusive. There are some basic steps that a lot of users might be familiar with, like clearing your cookies and browsing history frequently. Here are some advanced tips on how you can improve your privacy if you use Mozilla’s Firefox web browser to surf the web. …

How to setup Ubuntu to synchronize its time over the Internet

Oftentimes my Ubuntu desktop loses track of time. Really. What happens is that the time it maintains goes a few minutes here and there every month. So I like to use a very useful Linux service called NTP to help keep the clock on my Ubuntu desktop in sync with well maintained clocks over the Internet. Let’s look at how to set this up. …

How to Compress PNG Files in Linux

If you have a blog or a website with a lot of content sometimes the images can take a toll on the load time of the pages. There are a number of steps you can take to speed things up. If you analyze the loading of your website you might notice that the images take up a huge part of the load time. Let’s take a look at how you can compress your .png images to improve on this figure. …

How to setup slow query logging in MySQL

If you run or administer a production MySQL server it’s quite likely that it sometimes runs a little slow, and can be a very time consuming effort to figure out why. To be able to pinpoint the query that slows the DB down can be hard to track down. MySQL has an option to help you out. It comes with an option to log slow queries. This way when you find your database server running slower than usual you can open this log file in a text editor and see what queries are running slow. Let’s look at how to set this up. …