-
Automatically Check RSYNC and Restart if Stopped
I occasionally use RSYNC to synchronize large directories of files between servers. This is especially useful if you’re moving a client from one server to another and they have alot of static files that are always changing. You can copy the files and sync them up, all with RSYNC and if your connection gets cut…
-
Mounting CIFS Shares At the LINUX Command Line or in /etc/fstab
Linux makes it relatively easy to mount shared drives either manually, at the command line, or automatically, by configuring an entry in /etc/fstab. Here is the basic syntax of our mount command. [ccase@midas ~]$ sudo mount -t cifs -o username=,password=, /// Here is an example of mounting our CIFS share to a folder named myshare.…
-
Using the Linux Command Line to Find and Copy A Large Number of Files from a Large Archive, Preserving Metadata
One of my recent challenges is to go through an archive on a NAS and find all of the .xlsx files, then copy them; preserving as much of the file metadata (date created, folder tree, etc) as possible, to a specified folder. After this copy, they will be gone through with another script, to rename…
-
Explicitly Setting log4j Configuration File Location
I ran into an issue recently, where an existing log4j.xml configuration file was built into a jar file I was referencing and I was unable to get Java to recognize another file that I wanted it to use instead. Fortunately, the solution to this problem is fairly straightforward and simple. I was running a standalone…
-
Toshiba P870: Installing Linux Mint
I have recently started using a Toshiba P870 laptop and decided to install Linux Mint 13 Maya (Cinnamon Edition) on it, due to its ease of use and overall security soundness. Being as the Toshiba P870 is a relatively new laptop, with some components’ drivers not having been included in the installation files of Mint,…
-
Tunneling Through a Remote Firewall Using SSH Commands
If you’re dealing with systems behind a firewall it’s almost inevitable that you will need to tunnel into those systems from time to time. Fortunately, there are some quick & easy commands to accomplish this. In this example, we are going to use a Mac OSX or linux-based system, to gain access to a web…
-
Tar/GZip Files in One Operation, Unattached to the Terminal Session
When you’re trying to move a large block of files, its often useful to do so in one command and to be able to close your terminal window (or allow it to time out). If you run a command under normal circumstances, losing the connection can cause your command to terminate prematurely, this is where…
-
The Paradigm Shift to Accompany The Advent of Cheap Computing
Today, it came to my attention that a LINUX computer, priced between $25-35, is now available. This computer is called the Raspberry Pi. It sure looks like computing is going to take on a whole new dimension in the coming years. No longer are there going to be significant financial barriers to acquisition, meaning they…