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.

Preseed Debian / Ubuntu installation

Pressed on GitHub
https://github.com/panticz/preseed

pressed install under kvm
wget https://raw.githubusercontent.com/panticz/preseed/master/pxe/scripts/cre... -O - | bash -

wget -q http://dl.panticz.de/preseed/UbuntuNetInstall.iso -O /tmp/UbuntuNetInstall.iso
kvm -m 512 -hda /dev/sda -cdrom /tmp/UbuntuNetInstall.iso -boot d

Install UPnP server
http://dl.dropbox.com/u/4170695/preseed/preseed.upnp.seed

Preseed auto RAID1 LVM

DataLogic QuickScan QS6500 with Ubuntu as USB Keyboard

download configuration codes
https://easeofaccess.scanning.datalogic.com/public/marketlit/Send.aspx?file=R44-2816A

reset to factory default (Page 3)
scan: Return handheld to factory defaults

configure as USB Keyboard
Interface Selection (Page 30 / 33)
scan: START
scan: USB Keyboard
scan: END

OPTIONAL, configure Keyboard Layout (Page 53 / 54)

Ubuntu LiveCD quick tweaks

GoTo: Applications > Accessories > Terminal

SSH server
sudo apt-get install -y openssh-server
echo root:t00r | sudo chpasswd
ifconfig | grep Bcast | cut -d':' -f2 | cut -d' ' -f1

Adobe Flash
#wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.deb -P /tmp && \
#sudo dpkg -i /tmp/install_flash_player_10_linux.deb
sudo add-apt-repository ppa:sevenmachines/flash
sudo apt-get update
sudo apt-get install flashplugin64-installer

Skype

Install Fax client for Hylafax (YajHFC)

wget https://raw.githubusercontent.com/panticz/installit/master/install.yajhfc.sh -O - | bash -

#!/bin/bash

# add repository
sudo apt-add-repository "deb http://download.yajhfc.de/repository/apt/ stable/"
 
# add repository key
wget -q http://download.yajhfc.de/JonasWolz.pub -O - | sudo apt-key add -
 
# update repository list
sudo apt-get update -qq
 
# install yajhfc
sudo apt-get install -y yajhfc yajhfc-faxprinter

# install apps
sudo apt-get install -y libtiff-tools gs

# fix installation
sudo apt-get install -f

# disable autostart
sudo mv /etc/xdg/autostart/yajhfc-autostart.desktop /etc/xdg/autostart/yajhfc-autostart.desktop.disabled

# rename menu entry
sudo sed -i 's|YajHFC|FAX Client|g' /usr/share/applications/yajhfc.desktop

# TODO: rename YajHFC printer to FAX

# OPTIONAL, set evince as default fax viewer
sed -i 's|gnome-open|evince|g' ~/.yajhfc/settings

Links
http://www.yajhfc.de/
http://wiki.xtronics.com/index.php/Faxfrontend
http://www.yajhfc.de/downloads/deb-packages
http://developer.berlios.de/forum/forum.php?forum_id=34299

Ubuntu repository list

## Main
deb http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse

## Updates
deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse

## Backports
deb http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse

## Proposed

upstart

cat <<EOF> /etc/init/cdromrun.conf
start on started tty1
#start on runlevel 2
stop on runlevel [!2]
 
console output
 
script
   [ -f /cdrom/run ] && exec /cdrom/run
end script
EOF
 
# Links
http://upstart.ubuntu.com/cookbook/
http://upstart.ubuntu.com/getting-started.html
http://wiki.frugalware.org/index.php/Upstart_Job_HOWTO

SheevaPlug HDD susped with hdparm (Hard drive sleep mode)

sudo apt-get install -y hdparm
 
cat <<EOF>> /etc/hdparm.conf
/dev/sda {
   spindown_time = 240
}
EOF

Ubuntu Trusty DomU

# configure domU
[ -z $DOMAIN_NAME ] && DOMAIN_NAME=trusty
[ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:00:00:00:aa:bb
[ -z $DOMAIN_RAM ] && DOMAIN_RAM=1Gb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=8Gb
 
# create domU on LVM (for image file use --dir=/root,)
xen-create-image \
--hostname=${DOMAIN_NAME} \
--dist=trusty \
--lvm=vg1 \
--fs=ext4 \
--dhcp \
--mac=${DOMAIN_MAC} \
--mirror=http://archive.ubuntu.com/ubuntu \
--size=${DOMAIN_HDD} \
--memory=${DOMAIN_RAM} \
--swap=${DOMAIN_RAM}
--genpass=0 \
--password=t00r \
--apt_proxy=http://apt-cacher:3142/ \
--vcpus $(cat /proc/cpuinfo | grep pro

Ubuntu emergency LiveCD from harddisk (boot from iso file)

sudo su
 
mkdir /boot/iso
wget http://cdimage.ubuntu.com/daily-live/current/karmic-desktop-i386.iso -P /boot/iso
 
cat <<EOF>> /boot/grub/grub.cfg
menuentry "Ubuntu LiveCD" {
 loopback loop /boot/iso/karmic-desktop-i386.iso
 linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/iso/karmic-desktop-i386.iso noprompt --
 initrd (loop)/casper/initrd.lz
}
EOF
Syndicate content