Archive

Archive for October, 2009

Create Debian Lenny Xen VE

October 28th, 2009 No comments

I got sick of doing the same bunch of things every time I created a new VE so I wrote myself a script. It takes only one argument: The path to the lvm volume you want to use as the root device.


#!/bin/bash

mkfs.ext3 "$1"
mkdir -p /media/buildvetmp
mount "$1" /media/buildvetmp
debootstrap lenny /media/buildvetmp http://aptcache:3142/ftp.us.debian.org/debian/
sed -n '/########/,$p' /root/buildve.sh | sed -n '/bin\/bash/,$p' | sed -n '/########/,$p' | sed -n '/bin\/bash/,$p' > /media/buildvetmp/buildve.sh
chmod 700 /media/buildvetmp/buildve.sh
chroot /media/buildvetmp /bin/bash /buildve.sh
rm /media/buildvetmp/buildve.sh
umount /media/buildvetmp
rm -r /media/buildvetmp

exit

###################chroot starts here
#!/bin/bash

echo "/dev/sda2 / ext3 relatime,nodiratime 0 0
/dev/sda1 none swap sw" >> /etc/fstab
echo "APT::Default-Release \"stable\";" >> /etc/apt/apt.conf
rm -f /etc/apt/sources.list
echo "deb http://ftp.us.debian.org/debian lenny main contrib non-free
deb http://ftp.us.debian.org/debian testing main contrib non-free
deb http://packages.dotdeb.org stable all" >> /etc/apt/sources.list
echo "Acquire::http::Proxy \"http://aptcache:3142/\";" >> /etc/apt/apt.conf.d/80proxy
echo "127.0.0.1 localhost" >> /etc/hosts
rm /etc/hostname
echo "localhost" >> /etc/hostname
echo "
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.0.0.49
netmask 255.255.0.0
network 10.0.0.0
broadcast 10.0.255.255
gateway 10.0.0.1" >> /etc/network/interfaces

apt-get update
apt-get -y install linux-modules-`uname -r` libc6-xen vim

echo "#!/bin/bash
apt-get -y install udev openssh-server syslog-ng ntp
sleep 5
rm -f /etc/rc2.d/S20installpkgs
sleep 1
shutdown -r now" >> /etc/rc2.d/S20installpkgs
chmod +x /etc/rc2.d/S20installpkgs

exit
Categories: Uncategorized Tags:

BlackBerry OS 5.0 for Storm Released

October 26th, 2009 No comments

So Verizon has finally released the new 5.0 OS for the BlackBerry Storm and I’d just like to say WOW. This is 99% better and is really how the phone should have been all along.

They’ve added new glow effects to the UI, giving it an all-new shiny. There’s also the elastic scrolling effects I think Storm users have been hoping for since day one. Threaded SMS has been added as well, which will definitely please anyone who does a lot of texting. Speaking of text…the new predictive text entry system is a nice addition as well, and seems to be quite effective at correcting most of my typos as I write this blog entry on my BlackBerry. On top of all of this, the phone exhibits greatly improved performance, on par with what one would expect given that its hardware is really no slouch.

Kudos to RIM on getting a software update out there that makes the Storm behave like a whole new device. I was still a bit disappointed that there’s no sign of a mixer for audio, so incoming texts will still interrupt any music you have playing. Aside from that…its a shame it took them nearly a year after the Storm was launched to get this update out there!

Categories: Gadgets Tags:

dork-e.com is Stephen Fry proof thanks to caching by WP Super Cache