hpc_computing

Bioinformatics

Resources

Key Concepts

Login Form



bypass firewall and Nat with reverse ssh tunnel PDF Print E-mail
Written by Daniele Tartarini   
Monday, 26 July 2010 13:05

On the destination computer type the following command. Replaceing middleuser with your name and replacing middle with the domain of the middle computer.

ssh -R 10002:localhost:22 middleuser@middle

This will open port 10002 for listening and forward all future connections to port 22 at destination. This connection must remain on the entire time to ensure that you can access your destination computer whenever you want.

Now if sshd is set to use GatewayPorts you should be able to connect with this:

ssh destinationuser@middle -p 10002

If you are not sure if GatewayPorts is on or you don’t have the access to change it use the following method to connect:

First connect to the middle computer how you would normally.

ssh user@middle

Then connect to the localhost of the middle computer on port 10002.

ssh user@localhost -p 10002

Note: The port 10002 is arbitrary you can use any port you want.

 

 

How to bypass firewall and nat with reverse ssh tunnel

Last Updated on Tuesday, 27 July 2010 10:20
 
*niX System architecture (Linux/Unix) PDF Print E-mail
Written by Daniele Tartarini   
Sunday, 20 June 2010 12:52

The system architecture

The Kernel

User space:  is the environment where programs are run.

Kernel space: is the environment where the kernel is run.

Each program sees itself as the only program running on the system and using hardware resources like memory and CPU.

System Calls and libraries

Last Updated on Sunday, 20 June 2010 12:58
 
Nvidia GPU vs CPU PDF Print E-mail
Written by Daniele Tartarini   
Wednesday, 19 May 2010 18:14
Last Updated on Wednesday, 19 May 2010 18:19
 
ASCII code table PDF Print E-mail
Written by Daniele Tartarini   
Monday, 17 May 2010 20:49

ASCII coda table and Extended ascii code table

 

Last Updated on Monday, 17 May 2010 20:59
 
Installing and uninstalling Mac OSX application PDF Print E-mail
Written by Daniele Tartarini   
Friday, 14 May 2010 23:48

Uninstalling applications in Mac OS X is very different than uninstalling in a Microsoft Windows environment because Mac OS X has nothing like the Windows Registry. While most Windows programs include an uninstaller that can be run through using the Add/Remove Programs control panel, no such feature exists in Mac OS X and so most users simply move application bundles (see below) to the Trash. However, often times there is more to uninstalling than a simple drag-and-drop to the trash. This article will guide you on how to fully uninstall applications.

Application Bundles

Most Mac OS X applications (anything that ends in .app), like Safari and iTunes, are bundles. The application icon you see in Finder (typically the Applications Folder) is usually a special folder itself, made to appear as a single double-clickable file. These "folders" contain all, or at least most, of the files needed to run the application, ie they are self-contained. This means that to uninstall these applications, you only have to drag them to the Trash. If you control-click (or right-click) on an Application icon, and you see "Show Package Contents", then it is a bundle.

Additional Files

Applications will leave behind preference files, and sometimes application support files, neither of which are stored in application bundles. Preference files can be safely deleted, but they usually take up negligible disk space — and, if you decide to reinstall the application again later, keeping the preference file means your settings will still be there. They are stored in the Preferences folder within your user's Library folder (~/Library/Preferences), or may also be stored in the system-wide Library located at the root of the system volume (/Library/Preferences/).

Application support files can take up anywhere from a few kilobytes to several gigabytes of space, depending on the application installed. Examples of applications that have large support files are multimedia programs such as Garageband and DVD Studio Pro. They are located in the Application Support folder within your user's Library folder, or in "/Library/Application Support/".

To remove an application's icon from the dock make sure that the program is not running at the time, then simply drag the icon off of the dock and let go. There will be a puff of smoke animation and the icon will be gone. This will only remove the dock icon/shortcut, and will not touch the application itself or any of its support files.


Applications with Installers/Uninstallers

If you ran an installer to install an application, you may wish to try running the installation program again to see if an uninstall option is available at any point during installation (many times in a drop-down menu). Check the installation CD or disk image for the original installer file. Some vendors have included simple Perl scripts that will run in the command line to uninstall applications, and may be named "uninstaller.pl".

Last Updated on Saturday, 15 May 2010 12:34
 
WebMaster Resources PDF Print E-mail
Written by Daniele Tartarini   
Friday, 07 May 2010 19:21

Useful Links

http://www.favicon.cc/

 
Protein structure prodictor automatic assessment PDF Print E-mail
Written by Daniele Tartarini   
Saturday, 01 May 2010 00:00

http://cubic.bioc.columbia.edu/eva/doc/explain_methods.html#type_sec

Last Updated on Saturday, 01 May 2010 00:06
 
Install and configure mysql on MacOsX PDF Print E-mail
Written by Daniele Tartarini   
Friday, 30 April 2010 14:53

Removing previous MySQL installations

sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
(Edit /etc/hostconfig) sudo vi /etc/hostconfig (Remove line MYSQLCOM=-YES)
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*

 

 

Download mysql for Mac OSX from:

http://www.mysql.com/downloads/mysql/

Installation guide from Apple:

http://developer.apple.com/internet/opensource/osdb.html

 

MySQL MacOSX Binary installation and adding startup items

# create the directory where you will keep your MySQL binary distribution
mkdir ~/src
cd ~/src
 
# download mysql binary distribution from http://dev.mysql.com/downloads/mysql/
# then move the distribution into your src directory
mv /path/to/mysql/download.tar.gz ~/src
# make sure you are in ~/src (use pwd if unsure) then untar
gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
 
# create the MySQL group
dscl . create /Groups/mysql
# give it some group id
dscl . create /Groups/mysql gid 296
# create a MySQL user
dscl . -create /Users/mysql
# make the MySQL user a member of the MySQL group
dscl . append /Groups/mysql GroupMembership mysql
# change ownership to mysql
chown -R mysql .
chgrp -R mysql .
 
# install mysql
scripts/mysql_install_db --user=mysql
# make a symlink in the /usr/local directory or you can customize the location in support-files/mysql.server if you prefer
mkdir /usr/local
cd /usr/local/
ln -s /full/path/to/your/mysql/install/directory mysql
 
# you should now be able to start the server
support-files/mysql.server start
 
# add mysql to your PATH
# in ~/.bash_profile
export PATH=/usr/local/mysql/bin:$PATH
source ~/.bash_profile
# should bring up the mysql CLI
mysql
# exit 
mysql> exit
 
# set mysql server to auto start upon boot
mkdir /Library/StartupItems/MySQLCOM
cd /Library/StartupItems/MySQLCOM/
ln -s /usr/local/mysql/support-files/mysql.server MySQLCOM
 
# test for success
/Library/StartupItems/MySQLCOM/MySQLCOM stop
/Library/StartupItems/MySQLCOM/MySQLCOM start
 
# create a root password
mysqladmin -u root password your_root_password

Installation from sources from official doc

WEB references

Tony Amoyal

 

Last Updated on Saturday, 15 May 2010 12:43
 
Get system information through command line interface PDF Print E-mail
Written by danielta   
Friday, 16 April 2010 11:20

Kernel version and information:

lsb_release -a  -   E.g.  Distributor ID: Ubuntu    Description: Ubuntu 8.04.4 LTS Release: 8.04 Codename: hardy

cat /etc/issue     -    E.g.  Ubuntu 8.04.4 LTS
uname -a       -   System information about kernel, processor, hardware, operating system.
Distributor ID: Ubuntu
Description: Ubuntu 8.04.4 LTS
Release: 8.04
Codename: haDistributor ID: UbuntuDescription: Ubuntu 8.04.4 LTSRelease: 8.04Codename: hardy

 

Graphics card:
glxinfo – details about OpenGL, the Xserver, and your graphics card
glxinfo | grep direct – do you have direct 3d rendering?
glxinfo | grep vendor – graphics card vendor
lspci | grep VGA – specific graphics card model
glxgears – a simple 3d benchmark, prints frame rate to the terminal
xrandr – supported display resolutions

Audio:
lspci | grep Audio – audio controller
aplay --list-devices – more audio device information

Software versions:
cat /etc/issue – current distribution and version
apt-cache showpkg packagename – packagename’s version and dependencies
uname -r - Linux kernel version
uname -a – all kernel details

Networking:
lspci | grep Ethernet – Ethernet controllers
ifconfig – networking interfaces, IP addresses, and more

Processor:
cat /proc/cpuinfo – all processors, clock speeds, flags, and more
cat /proc/loadavg – processor load average for the last 1, 5, and 15 minutes
top – press C key to sort processes by CPU usage

Memory:
cat /proc/meminfo – amount of RAM and swap, and how much is being used for what
free -m – total, used, and free memory shown in MB
top – press M key to sort processes by memory usage

Hard disks:
df -H – partitions, as well as their mount-points and usage in GB
sudo fdisk -l – all partitions, their device names, and positions on disk

USB devices:
lsusb – USB buses and attached devices

Even more:
lshal -m – monitor for hardware changes
lspci – all PCI devices
hwinfo --short (install from package hwinfo) – overview of all hardware, as well as more detailed info
lshw – another program for listing hardware
lshw -html | w3m -T text/html – lists hardware with HTML output in the w3m web browser
uptime – current time elapsed since last reboot, users, and load average

 

 

http://tombuntu.com/index.php/2008/01/31/dig-up-system-information-using-the-terminal/

Last Updated on Tuesday, 06 July 2010 15:56
 
<< Start < Prev 1 2 3 Next > End >>

Page 1 of 3

Latest Tweets (by JoomlaWorks)

News From Hpc World

daniele.tartarini.net, Powered by Joomla!; Joomla templates by SG web hosting