Here is a quick tip on how to remove a list of files. Let’s say you have the list of files inside a file called files_to_remove. Usually I would do something like this:
LIST=`cat files_to_remove`
and then
ls -al $LIST
just to check what is in the list and if it looks good.
And finally:
rm -vf $LIST
Entries Tagged as 'HowTo'
HowTo remove a list of files
July 9th, 2010 · No Comments
Tags: CLI · HowTo · Tips and Tricks · sysadmin
Problem Moving Drupal Site With SecurePages Module Enabled
February 17th, 2010 · No Comments
I made a copy of Drupal6 site with SecurePages module installed and configured. This module is configured to redirect all or certain pages to https – depending on your configurations. For our setup we usually include the login and admin sections to redirect to https.
The problem is on the copied site that is [...]
Tags: HowTo · Tips and Tricks · drupal
Making Changes to Drupal Core
February 15th, 2010 · No Comments
Although we made it a standard not to make any changes to Drupal core and core modules, there are times that our developers really need to make changes to core modules in order to add the required functionality. Cases like additional feature for ‘user’ or ‘comment’ modules and so on. At this state [...]
Tags: HowTo · Tips and Tricks · drupal
Upgrade to Fedora 12
November 22nd, 2009 · No Comments
Fedora release 12 became available to the public November 17, 2009. New features are plentiful and many are centred around KVM virtualization.
If you are like me and still running Fedora 10 or 11 and do not wish to wait till a yum based update is pushed out you can kick off your adventure into Fedora [...]
php 5.2.9 on RHEL5.x (for Drupal 6)
October 21st, 2009 · No Comments
Latest version of PHP available for RHEL5.x is 5.1.6 and no new RedHat releases are coming as packaging has ceased. You can get PHP 5.3 for RHEL5 from Remi, but it it’s incompatible with latest versions of Drupal, Civicrm or many modules so we need the a 5.2X branch of PHP. This requires building php [...]
Tags: HowTo · Installation · drupal
HowTo display PHP errors when you don’t have access to php.ini
September 15th, 2009 · 1 Comment
If you are using a shared server, or just have a limited account on your company servers, you might not have access to your php configuration file php.ini (this is usually found under /etc/php.ini in rhel/centos and /etc/php5/apache2/php.ini in debian/ubuntu). Still, in many situations it might be needed to enable php errors in the browser [...]
Tags: CLI · Centos · Debian · HowTo · Tips and Tricks · sysadmin
Using wildcards in nginx valid_referers
August 25th, 2009 · 1 Comment
This quick post will show how we can easily allow only certain http referrers see some location using nginx. This might be useful for example if you are using nginx as a static content provider and want to not allow everyone hot-linking your images and only your own sites. Doing something like this in nginx [...]
Tags: HowTo · Tips and Tricks · sysadmin
Using svn+ssh with a non-standard ssh port
August 17th, 2009 · No Comments
Many people use subversion over ssh for a simple and secure way to work on remotely hosted svn repositories. This is normally as simple as running:
svn co svn+ssh://user@server/repo .
If the remote ssh server is not running on the default ssh port (tcp 22) then this needs a little tweaking to get it working. Normally I [...]
Tags: CLI · HowTo · Tips and Tricks · sysadmin
Task on Amazon EBS on CentOS AMI
July 29th, 2009 · 2 Comments
This is my second activity on using AWS – this time the use of EBS.
Objectives:
Format a new EBS (10GB) and mount it on a running instance of private AMI (created on first activity – add link/ref to old post)
Setup a MySQL server with the datastore on EBS partition
Setup the partition(EBS) to start [...]
Tags: Centos · HowTo · cloud computing
Waiting for SSH login prompt
July 20th, 2009 · No Comments
Are you often waiting over 1 minute to get a ssh prompt? This can be caused by several things however more often then not is a missing PTR record for server address and enabled GSSAPIAuthentication in ssh_config. GSSAPIAuthentiction is Kerberos 5 centralized authentication/authorization mechanism that relies on resolving a hostname for proper operation, when it [...]
