Linux Sysadmin Blog

Linux Sysadmin Blog header image 4

Entries Tagged as 'Tips and Tricks'

Setup SSH Key Authentication

April 17th, 2011 · 5 Comments · Centos, HowTo, Tips and Tricks

Setup ssh key authentication for password-less login between servers.  For use by ssh/sftp users or scripts. Source Server (or local system) Generate RSA key for user on this system, you can also use DSA.  This asks for key pass-phrase but you can leave it blank. ssh-keygen -t rsa This asks for location to place the [...]

[Read more →]

Tags: ··

Setup SFTP-Only Access (Redhat-based Distro)

April 12th, 2011 · 1 Comment · Centos, HowTo, Installation, Tips and Tricks

Setup sftp-only access on default Redhat/CentOS install. Use built-in sftp-server which is non-chrooted and easy to setup. Server: Locate sftp-server binary and add to your list of valid shells on the system. which sftp-server Note:   This will most likely give you this: /usr/libexec/openssh/sftp-server echo /usr/libexec/openssh/sftp-server >> /etc/shells Note:  You may want to backup your /etc/shells [...]

[Read more →]

Tags:

Moving Drupal site with CiviCRM

April 11th, 2011 · No Comments · drupal, HowTo, Installation, Tips and Tricks

The common headache for beginners who try to move their Drupal site with CiviCRM is the CiviCRM configuration on new location or domain. I did this countless times and dealt with different problems before. I’ve read many online tutorials and how-tos, and I finally have my notes which is working for me everytime i move [...]

[Read more →]

Tags: ·

Gmail Shorcuts

April 1st, 2011 · No Comments · Tips and Tricks

Besides Gmail, many sites are moving to GoogleApps for hosting their emails, and if you use Gmail or GoogleApps a lot then you might love the keyboard shortcuts feature. You can quickly see available shortcut keys by typing “?” (question mark, no qoutes) and it will give you this screen. Of course you need to [...]

[Read more →]

Tags:

HowTo remove a list of files

July 9th, 2010 · No Comments · CLI, HowTo, sysadmin, Tips and Tricks

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: [...]

[Read more →]

Tags: ·

svnadmin: can’t open file ‘svn/db/fsfs.conf’: No such file or directory

June 13th, 2010 · 22 Comments · svn, Tips and Tricks

While working on setting up a backup script for a subversion repository I encountred an interesting problem. I’ve done this before many times, on different repos, and haven’t seen any issues, but in this case the backup command that is using the built-in svnadmin hotcopy command was failing with this error: svnadmin hotcopy –clean-logs /svn/repo/ [...]

[Read more →]

Tags:

Enable/Disable APC on virtual host level

March 18th, 2010 · 6 Comments · Performance, sysadmin, Tips and Tricks

APC (Alternative PHP Cache) is a free, open, and robust framework for caching and optimizing PHP intermediate code. APC is a great tool to speed up a php driven site and I can’t even think of a big site running on a php framework without an opcode cache (other good choices are eaccelerator or xcache). [...]

[Read more →]

Tags: ··

Problem Moving Drupal Site With SecurePages Module Enabled

February 17th, 2010 · 2 Comments · drupal, HowTo, Tips and Tricks

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 on [...]

[Read more →]

Tags: ·

Making Changes to Drupal Core

February 15th, 2010 · No Comments · drupal, HowTo, Tips and Tricks

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 we can’t [...]

[Read more →]

Tags:

cvs [checkout aborted]: absolute pathnames invalid for server

February 3rd, 2010 · No Comments · Debian, drupal, Security, Tips and Tricks

Absolute Path Error: cvs [checkout aborted]: absolute pathnames invalid for server (specified `/path/drupalsite/’) Ok, I got the error above when I performed Drupal CVS update on our Debian server (newly installed CVS 1.12.13). The same command works on other server with older CVS installation. The issue is the reference to local cvs directory where I [...]

[Read more →]

Tags: ·