Archive for the ‘linux’ Category

Using screen for linux background processing

Perfect for long running batch jobs on a remote server over unreliable connections or if you want to bring your laptop home (instead of keeping that terminal running). Log in and run screen -t title_of_your_choice Do the same thing again if you want to create another window. All the following screen commands are preceeded by [...]

Count files recursively in a directory using Linux

Using Linux, to get the number of files in the current directory, use: ls -1 | wc -l To count the number of files recursively in the current and all directories below it, use: find . -type f | wc -l

Installing GlassFish on Debian Etch or Ubuntu

I had to install GlassFish on an Debian Etch machine and here is how I did it (the purpose of these instructions is as a reminder to myself so I know what I did in case I have to do it again). Install Java 5 First thing needed is Java 5. To be able to [...]

Enable symbolic links in GlassFish

To enable symbolic links in GlassFish, which is disabled by default, go to the admin interface, click Configuration > Http Service > Virtual Servers and then the name of of the virtual server you are using (e.g. server). Under Additional Properties, click Add Property and enter allowLinking as name and true as value. It is [...]

Simple Backup on Linux and Ubuntu

Incremental encrypted remote backup using Amazon S3: Duplicity Incremental backup to another (remote) directory: rdiff-backup Easily available on Ubuntu using: sudo apt-get rdiff-backup Nice instructions for automating and scheduling backups. Simple backup by simply tar’ing everything, instructions on Ubuntu Forums.