Linux Sysadmin Blog

Linux Sysadmin Blog header image 4

Entries Tagged as 'HowTo'

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: ·

Install ApacheSolr in Ubuntu for Drupal

April 3rd, 2011 · 5 Comments · drupal, HowTo, Installation

I’ve written few Drupal ApacheSolr install guides here and this one is basically an install draft for Ubuntu. Environment: Ubuntu 10.10, Apache, PHP, MySQL, Drupal 6.20 Things to install / setup: Solr, Tomcat6, ApacheSolr module for Drupal, and SolrPHPClient library 1.) Install Tomcat and setup your Tomcat admin user. aptitude install tomcat6 tomcat6-admin tomcat6-common tomcat6-user [...]

[Read more →]

Tags:

Install Apache Solr and Tomcat for Drupal

October 17th, 2010 · 2 Comments · Centos, drupal, Drupal performance, HowTo, Installation

Here’s my quick install guide for Solr, Tomcat, and Drupal ApacheSolr module for multiple sites. Mostly I based the steps below from the following sites: wiki.apache.org and drupalconnect.com. Detailed Setup: Drupal 6.19 ApacheSolr module 6-1.1 Apache Solr PHP Client Library: Rev.22 Solr 1.4.1 Tomcat 6.0.29 SunJDK 6update21 RHEL5.5×64 Install Process: Tomcat Create solr user Download [...]

[Read more →]

Tags: ··

Remove Duplicate Packages in CentOS

October 14th, 2010 · 8 Comments · Centos, HowTo

I got a package dependency issue when updating our 64-bit CentOS server, which was caused by two perl packages installed (i386 and x86_64). perl i386 4:5.8.8-32.el5_5.1 installed 28 M perl x86_64 4:5.8.8-32.el5_5.1 installed 34 M I tried to remove it using rpm command but didn’t work (maybe i just don’t know the correct params with [...]

[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: ·

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:

Upgrade to Fedora 12

November 22nd, 2009 · No Comments · desktop, HowTo

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

[Read more →]

Tags: