dpkg --get-selections | awk '{printf("echo \"%s:\"`sudo aptitude show %s |grep \"Uncompressed Size:\"` \n", $1, $1 );}' >output.sh
sh output.sh| awk -F: '{printf("%s:%s\n",$1,$3);}' >list.txt
rm output.sh
A record of solutions to when I get stuck on some problem. When I think 'I know I have found the answer to this before' I can just search my blog.
mount -t cifs -o username=guest \\\\192.168.0.97\\share /home/share-buff/
# assume we are setting it up to vnc as bsmith
su -
# as root: verify current ip address
ifconfig
# as root: install if needed
yum install vnc-server
# as root: uncomment out 2 lines, replace myusername with bsmith
vim /etc/sysconfig/vncservers
# as bsmith: set vnc password
vncpasswd
# as root: generates ~/.vnc/xstartup
service vncserver start
# as root: sets service to startup with machine
chkconfig vncserver on
# as root: uncomment out line 4 and 5
vim /bsmith/.vnc/xstartup
# as root: applies settings
service vncserver start
# as root: open up port in firewall, note vnc is insecure by protocol
vim /etc/sysconfig/iptables
# as root: apply firewall changes, vnc=insecure so better to use over lan
service iptables restart
sudo apt-get install libgtk1.2
umount /media/cdrom
sudo mount /dev/cdrom /media/cdrom
export SETUP_CDROM=/media/cdrom
/media/cdrom/linux-installer.sh
... let it install ...
umount -f /media/cdromls *.psd | cut -d . -f 1 | xargs -L1 -i convert {}.psd {}.pngsort -t$'\t' +1 -2 export_1612.txt>sorted.txt