I misspelled a word when I exported a large group of photos from Aperture. I did not want to repeat the operation, so I renamed the files at a bash prompt in Terminal:
for FILE in * ; do NEWNAME=`echo $FILE | sed 's/oldstring/newstring/g' ` ; mv "$FILE" "$NEWNAME" ; done
Just change ‘oldstring’ [...]
Dropbox is so useful! Wouldn’t it be great to have that same convenience and function for your user account on your server, just like you have on your workstation?
This has been tested on Ubuntu Lucid and Jaunty. This procedure will create a system with:
Install a separate Dropbox client (daemon) for individual users [...]
This is a copy of the script I use to create an instance of a Kohana project. It works on Ubuntu server (tested with Lucid). Adapt it to your own needs, of course.
#! /bin/bash CODE="upc" OWNER="myusername" GROUP="mygroupname" KOHANA_URL="http://dev.kohanaframework.org/attachments/download/1355/kohana-v2.3.4.zip" KOHANA_ZIP="kohana-v2.3.4.zip" SITESROOT="/usr/local/var/www" URL="www.mysite.com" # database.php parameters DBUSER="mydbuser" DBPWD="mydbpasswd" DBHOST="localhost" DBDATABASE="mydbname" # # make sure this [...]
You can create your own daemon in Perl to do whatever is needed. [...]
Security is relative. Will these steps make your server “secure”? It will be more secure than it was before. And more secure than most servers. Your server will not be “low hanging fruit”. Security is an on-going process. It includes settings, practices and procedures. Make it your business to regularly read about security and [...]
This lists packages added after Ubuntu was installed.
When I upgrade from one version of Ubuntu to another, I do a fresh install. I have a procedure on my personal wiki with all of the steps to move in. Part of that is restoring data from backup, Part is restoring or recreating configuration files.
Debian’s aptitude command is, according to their documentation, the preferred program for package management. I use Ubuntu for my work machine and servers and have found aptitude to be easy to understand and use, as well as reliable.
see also: Aptitude vs Apt-get Comparison
Unlike apt-get, aptitude offers a full-screen (or full-window more likely) [...]
see also: Interactive, Full Screen Aptitude
One of the many attractive features of Ubuntu and Debian Linux is the package management system. Coming from other operating systems and other distributions makes the discovery of the Advanced Packaging Tool, APT, a source of pleasure and delight. Here is a system that solves dependency hell, makes [...]
This post is directed at Ubuntu and Debian server admins. As all work and no play makes Jack a dull boy, it is imperative that you immediately make your server more fun. If you do not get a little smile when you log into your server via SSH, then something is terribly wrong! Avoid [...]
For historical reasons, I have a 1and1 shared host account with a few sites hosted there.
For more projects, I use Slicehost, which I’ve had great experiences with. Ideally, I’d like to move these 1and1 hosted sites to a Slice, but, my experience with 1and1 has been pretty flawless and two of the sites [...]