You are here

Unix/Linux

Managing multiple ssh keys

Wiki Terms: 

linkback: http://www.karan.org/blog/index.php/2009/08/25/multiple-ssh-private-keys

ssh-keygen -t rsa -f ~/.ssh/id_rsa.acquia -C "Key for my Acquia accounts"
touch ~/.ssh/config
chmod 600 ~/.ssh/config

~/.ssh/config looks like this :

Host *acquia*
  IdentityFile ~/.ssh/id_dsa.home
  User jbarnett

Host *babson*
  IdentityFile ~/.ssh/id_rsa.work
  User jbarnett
  Port 44787

Setup Ubuntu with SSL (for Drupal)

Wiki Terms: 

I have this working, SSL is setup for Drupal 7

1.) At the bottom of apache2.conf file in /etc/apache2

#setup name based virtual hosting instead of IP based (JLB)
NameVirtualHost *:443
NameVirtualHost *:80

2.) In /etc/apache2/sites-available/default-ssl

To install lamp with PDO on Ubuntu (worked on rackspace server)

Wiki Terms: 

To install lamp with PDO on Ubuntu (worked on rackspace server)
http://churchit.com/php-pdo-errors-while-installing-ubuntu-10-4-php-5-3-... (here's a linkback for this guy that saved me from loosing even more time on this since apt-get didn't install pdo)

sudo tasksel install lamp-server
sudo a2enmod rewrite (to enable mod rewrite)

Run a query from php / ubuntu on sql server

(note to run stored procs on sql server from php/ubuntu there's another tech note I've posted)

http://jamesrossiter.wordpress.com/2011/03/08/connecting-to-microsoft-sq...

sudo apt-get install php5-sybase
sudo /etc/init.d/apache2 restart

now here is the php file that works:

Create a virtual host on ubuntu

Wiki Terms: 

create a file: /etc/apache2/sites-available/cf_facultyportal.babsondrupal.org where the filename is the name of the url that will hit the webserver.

Put this in the file replacing the url and the file paths where appropriate:

search content of files using grep and find

Wiki Terms: 

On solaris boxes I need to use this command to search through the content of files recursively through all directories:

find . -exec grep -l "text to find" '{}' \;

on linux this works

grep -r "text to find" '{}' \;

To send mail from a Unix/Linux shell script

Wiki Terms: 

echo "This is mail body" | mail -s "This is subject" mail_ID@somedomain.com

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer