ubuntu

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

Install email server (Postfix, Courier, SASL, fetchmail, maildrop, amavisd-new)

# ToDo
# configure antivirus
# configure antispam
# configure secure connections
 
#
# configure timezone and locale
#
# dpkg-reconfigure tzdata
# locale-gen de_DE
 
# install Postfix
http://www.panticz.de/Install-Postfix
 
# install Dovecot
http://www.panticz.de/Install-Dovecot
 
#
# SASL
#
# install
apt-get install -y sasl2-bin
 
# post-configure
cp /etc/default/saslauthd /etc/default/saslauthd.$(date -I)
sed -i 's|START=no|START=yes|g' /etc/default/saslauthd
#sed -i 's|OPTIONS="-c -m /var/run/saslauthd"|OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"|g' /etc/defaul

Fileserver (Samba and DHCP)

#!/bin/bash
 
# set domU name
DOMAIN_NAME=srv
 
# install vm
xen-create-image --hostname=$DOMAIN_NAME --dhcp --mac=00:11:cc:ab:cd:ef \
--lvm=vg01 --dist=jaunty --mirror=http://archive.ubuntu.com/ubuntu/ --size=4Gb --memory=1Gb --swap=1Gb
 
# rename config file
mv /etc/xen/${DOMAIN_NAME}.cfg /etc/xen/${DOMAIN_NAME}
 
# add to autostart
ln -s /etc/xen/${DOMAIN_NAME} /etc/xen/auto
 
# create lvm for home
lvcreate --name ${DOMAIN_NAME}-media --size 200G vg01
mkfs.ext3 /dev/vg01/${DOMAIN_NAME}-media
 
# configure domU
vi /etc/xen/${DOMAIN_NAME}
(add)
'phy:/dev/vg01/srv-media,xvda3,

Update debootstrap

# update debootstrap
wget -q --no-check-certificate https://raw.githubusercontent.com/panticz/xen/master/scripts/update_debootstrap.sh -O - | bash -
 
#
# OLD?
#
# create recipe
cd /usr/lib/xen-tools/
[ ! -f  lucid.d ] && ln -s karmic.d lucid.d
[ ! -f  maverick.d ] && ln -s karmic.d maverick.d
[ ! -f  natty.d ] && ln -s karmic.d natty.d
[ ! -f  oneiric.d ] && ln -s karmic.d oneiric.d
[ ! -f  precise.d ] && ln -s karmic.d precise.d
[ ! -f  quantal.d ] && ln -s karmic.d quantal.d
[ ! -f  raring.d ] && ln -s karmic.d raring.d
[ ! -f  precise.d ] && ln -s karmic.d trusty.d
[ !

Add proposed repository

#!/bin/bash
 
cat <<EOF>> /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe
EOF

Compile error on Intrepid

/home/pako/xserver-xorg-video-ati-6.6.3# fakeroot ./debian/rules binary
 
mkdir stampdir
>stampdir/stampdir
if [ ! -e stampdir/patches ]; then \
		mkdir stampdir/patches; \
		ln -s stampdir/patches .pc; \
		echo 2 >stampdir/patches/.version; \
	fi; \
	if [ ! -e stampdir/log ]; then \
		mkdir stampdir/log; \
	fi; \
	if [ ! -e patches ]; then \
		ln -s debian/patches patches; \
	fi; \
	>stampdir/prepare
if ! [ `which quilt` ]; then \
		echo "Couldn't find quilt.

Install Google Web Toolkit

#!/bin/bash
 
#URL=http://google-web-toolkit.googlecode.com/files/gwt-linux-1.7.1.tar.bz2
URL=http://google-web-toolkit.googlecode.com/files/gwt-2.0.0.zip
 
# download
wget ${URL} -P /tmp
 
# install
unzip /tmp/gwt-*.zip -d /tmp
rm /tmp/gwt-*.zip
sudo mv /tmp/gwt-* /usr/share
 
 
# GWT Designer
apt-get install xulrunner-1.9.2
http://dl.google.com/eclipse/inst/d2gwt/beta/3.7
 
 
# Links
http://code.google.com/p/google-web-toolkit/

Ubuntu MID USB boot

DEVICE=/dev/mmcblk0
IMG=ubuntu-8.10-mid-lpia.img
VOLUME=SDCARD_2GB
 
wget http://releases.ubuntu.com/8.10/${IMG} -P /tmp
 
mkfs.vfat -n ${VOLUME} ${DEVICE}p1
syslinux -f ${DEVICE}p1
 
install-mbr ${DEVICE}
 
mount ${IMG} /mnt/ -o loop
cp -a /mnt/* /media/${VOLUME}
cp -a /mnt/.disk/ /media/SDCARD_2GB
umount /mnt
 
sync
umount /media/${VOLUME}
 
 
 
# netboot
LABEL linux
   MENU LABEL Ubuntu MID 
   KERNEL ubuntu-8.10-mid/casper/vmlinuz
   APPEND initrd=ubuntu-8.10-mid/initrd.img boot=casper netboot=nfs nfsroot=192.168.1.2:/tftpboot/ubuntu-8.10-mid file=/cdrom/preseed/mid.seed p

Install rTorrent

#!/bin/bash
 
useradd -m rtorrent
passwd rtorrent
apt-get install -y rtorrent screen
 
su rtorrent
cd ${HOME}
 
wget http://de.archive.ubuntu.com/ubuntu-releases/intrepid/ubuntu-8.10-desktop-i386.iso.torrent
wget http://de.archive.ubuntu.com/ubuntu-releases/intrepid/ubuntu-8.10-desktop-amd64.iso.torrent
 
screen -S rtorrent
rtorrent *.torrent

Huawei UMTS USB Stick

Mobile Connect Settings (under Mac OS X)
Profile Name: t-mobile
Access Point Name: internet.t-mobile
Telephone Number: *99***1#
Account Name: t-mobile
Password: tm
Authentication: CHAP

NetzClub APN
pinternet.interkom.de

disable pin on sim card
sudo mmcli -i 0 --disable-pin --pin=
#sudo apt-get install gsm-utils
#sudo gsmctl -d /dev/ttyACM0 -o unlock sc all YOUR_PIN_NUMBER

Links
http://blog.surgeons.org.uk/2008/02/three-cheers-for-vodafone.html
http://www.draisberghof.de/usb_modeswitch/

gbrainy - a brain teaser game

#!/bin/bash
 
sudo apt-get install gbrainy
Syndicate content