Archive for 2008

 

 

Dec 21 2008

Synchronize Directories with Rsync and SSH

Published by under SSH

To copy or synchronize data across servers with SSH encryption benefits, run on the target: rsync -avz -e ssh remoteuser@remotehost:/remote/dir /local/dir/

No responses yet

Dec 21 2008

Linux and Solaris Package Managers

Published by under Linux,Solaris

Here’s a package managers basic commands quick reminder/comparative for (in this order) – Linux Debian/Ubuntu, – Linux Redhat/Suse and – Solaris/OpenSolaris.   rpm and dpkg are basic package managers while yum (rpm) and apt-get/aptitude (dpkg) manage dependancies and (online) repositories.   # List ALL installed packages dpkg –list rpm -qa | grep rpm pkginfo   […]

No responses yet

Nov 20 2008

Environment Variables and SSH

Published by under SSH

Very few environment variables are defined when connecting to a remote host with an SSH authorized key.   # ssh localhost env SHELL=/bin/bash SSH_CLIENT=127.0.0.1 53816 22 USER=dave MAIL=/var/mail/dave PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games PWD=/home/dave LANG=en_US.UTF-8 SHLVL=1 HOME=/home/dave LOGNAME=dave SSH_CONNECTION=127.0.0.1 53816 127.0.0.1 22 _=/usr/bin/env   To run a program calling libs from an unusual location, we’d need to redefine the […]

One response so far

Nov 15 2008

Speed up your Compile Times

Published by under Linux

Having loads of apps to compile, I worked on improving times. I wasn’t getting the best performances out of my Linux Redhat, so I turned off the cpuspeed service. I don’t know what’s up with cpuspeed, but it doesn’t release the full cpu capabilities. Then I took benefits of the server’s 4 processors running "make […]

No responses yet

Nov 07 2008

Additional Swap in File on Linux/Solaris

Published by under Linux,Solaris

You need more swap but there’s no more disk space left to create a partition? Here’s a quick and easy fix creating a swap file on the existing filesystem. No reboot needed! Solaris Linux Do not use swap files on a personal computer that is configured to “suspend to disk” since it requires a dedicated […]

No responses yet

Next »