Nov
20
2008
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 [...]
Tags: authorized, environment, key, SSH, variable
Nov
15
2008
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 [...]
Tags: compile, CPU, cpuspeed, improve, linux, make, performance, speed up, time, unix
Nov
07
2008
Need more swap but not more disk space to create a partition? Add a temporary swap file. Solaris [root@solaris]# mkfile 1024m /export/tmpswap [root@solaris]# swap -a /export/tmpswap [root@solaris]# swap -l swapfile dev swaplo blocks free /dev/dsk/c1t0d0s1 55,65 8 4160824 4160824 /export/tmpswap - 8 2097144 2097144 Linux [root@linux]# dd if=/dev/zero of=tmpswap bs=1024 count=10240 [root@linux]# 10240+0 [...]
Tags: add, file, linux, solaris, swap, temporary