[ ] Wednesday, 27 November 2013 [ ]

Dynamic Window Titles

After looking for a way to get Terminal windows to have titles with:

machine:user pwd

I came across Updating The xterm Title Bar which gave me the clues I needed to update my

.kshrc
file:

#Code for window title names
HOST=`hostname -s`
label () { /bin/echo "^[]0;$*^G"; }
alias mylabel='label $HOST:${LOGNAME} ${PWD#$HOME/}'
case $TERM in
	xterm* | *rxvt*)
		eval mylabel
esac
cdlabel ()
{
	if [ -z "$1" ]
	then
		"cd"
	else
		"cd" $*
	fi
	eval mylabel;
}
alias cd=cdlabel
eval mylabel

QEMU

Installed qemu-1.7.0-rc2 for testing and then set about installing xp:

port:fred ~/qemu> qemu-img create -f qcow2 xp.img 10G
Formatting 'xp.img', fmt=qcow2 size=10737418240 encryption=off cluster_size=65536 lazy_refcounts=off 

Had to up my ulimit as I was getting the following errors:

(qemu) Cannot set up guest memory 'pc.ram': Cannot allocate memory

when running:

port:fred ~/qemu> qemu-system-i386 -m 512 -monitor stdio -no-fd-bootchk \ 
Finish the line --> -hda xp.img -cdrom /dev/cd0a -boot d

ports

porting needs to be updated and merged into the faq


$Id: diary,v 1.38 2025/01/01 22:43:54 fred Exp $