Tuesday, July 28, 2009

Reverse SSH Tunneling

Easy howto reverse ssh instructions for those who wish to access a box lying behind a NAT router.

To start lets assume that the system you wish to access is at 192.168.0.50 and your systems IP address is 140.222.111.111

The following command would be issued from the 192.168.0.50 system, to ssh login into the 140.222.111.111 system.

ssh -R 19999:localhost:22 user@140.222.111.111

where the number 19999 refers to a port, and can be any unused port number.

After this ssh connection is made between these two systems, you can reverse ssh.

ssh localhost -p 19999

How to install drupal on Ubuntu

The following commands issued on the commandline, should install drupal on ubuntu assuming you have the dependencies (apache, php, etc)
wget http://ftp.drupal.org/files/projects/drupal-6.9.tar.gz
tar xvzf drupal-6.9.tar.gz
sudo mkdir /var/www/drupal
sudo mv drupal-6.9/* drupal-6.9/.htaccess /var/www/drupal
sudo mkdir /var/www/drupal/sites/default/files
sudo chown www-data:www-data /var/www/drupal/sites/default/files
sudo cp /var/www/drupal/sites/default/default.settings.php /var/www/drupal/sites/default/settings.php
sudo chown www-data:www-data /var/www/drupal/sites/default/settings.php
mysqladmin -u root -p create drupal
mysql -u root -p
sudo /etc/init.d/apache2 restart

IF....
php isn't installed correctly.

you could try installing it as a module

sudo a2enmod
php5

Friday, May 22, 2009

My new magnetoencephalography toolset for analysis of signals with python (PyMEG)
http://wiki.server.neuromeg.org/

Tuesday, January 22, 2008

Wednesday, January 2, 2008

Tuesday, November 27, 2007