Create OpenSSL certificate for Apache (SSL with Apache2)

make-ssl-cert generate-default-snakeoil --force-overwrite
a2enmod ssl
a2ensite default-ssl
service apache2 restart

# install packages
apt-get install openssl
# apache2 apache2.2-common php5

# enable ssl in apache
a2enmod ssl
a2ensite default-ssl

# default
make-ssl-cert generate-default-snakeoil --force-overwrite

# customized
openssl \
req \
-x509 \
-newkey rsa:2048 \
-sha256 \
-nodes \
-days 365 \
-keyout /etc/ssl/private/$(hostname -f).key \
-out /etc/ssl/certs/$(hostname -f).pem \
-subj "/C=DE/ST=NRW/L=Bonn/O=Example Inc/

Configure anonymous rsync account

# install rsync
apt-get install rsync

# configure share
cp /etc/rsyncd.conf /etc/rsyncd.conf.old
cat < /etc/rsyncd.conf
uid = nobody
gid = nogroup
timeout = 600
log file = /var/log/rsyncd.log
transfer logging = true

[ftp]
comment = public archive
path = /var/www/pub
use chroot = yes
EOF

# enable rsync demon
sed -i 's|RSYNC_ENABLE=false|RSYNC_ENABLE=true|g' /etc/default/rsync

# restart rsync
/etc/init.d/rsync restart

# EXAMPLES
# list shares / modules
rsync YOUR_SERVER::

# sync files
rsync -rP YOUR_SERVER::stsbox/* .

# LINKS
http://transamrit.

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

SmartGWT

https://raw.githubusercontent.com/panticz/installit/master/dep/install.smartgwt.sh

# install smart gwt
wget http://smartgwt.googlecode.com/files/smartgwt-2.4.zip -P /tmp
sudo unzip /tmp/smartgwt-2.4.zip -d /usr/share/
sudo ln -sf /usr/share/smartgwt-2.4/ /usr/share/smartgwt
sudo ln -sf /usr/share/smartgwt/smartgwt.jar /usr/share/java/
sudo ln -sf /usr/share/smartgwt/smartgwt-skins.jar /usr/share/java/

# restart tomcat server
sudo /etc/init.d/tomcat6 restart

# create default GWT Project
File > New > Web Application Project

Project name:
Smart

Package:
smart

[ Finish ]

# a

Debian / Ubuntu: Configure APT autoupdate with unattended-upgrades

# configure
wget -q --no-check-certificate https://raw.githubusercontent.com/panticz/scripts/master/enable_auto_update.sh -O - | bash -

# install unattended-upgrades
apt-get install -y unattended-upgrades

# perform dry-run
unattended-upgrade --debug --dry-run

# download updates only
apt-get install -y unattended-upgrades
cat <> /etc/apt/apt.conf.d/10periodic
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
EOF

# v2
# update package list only
apt-get install cron cron-apt --no-install-recommends

http://wiesel.ece.

Install boxee

## new
wget http://www.boxee.tv/download/ubuntu -P /tmp
dpkg -i /tmp/boxee*.deb
sudo apt-get install -f -y

### old

# add boxee repository
cat < /etc/apt/sources.list.d/boxee.list
deb http://apt.boxee.tv hardy main
EOF

# add ubuntu jaunty repository
cat < /etc/apt/sources.list.d/jaunty.list
deb http://de.archive.ubuntu.com/ubuntu/ jaunty main universe
EOF

# add repository
apt-get update
apt-get install boxee
apt-get install -f --force-yes

# get boxee beta version
wget http://dl.boxee.tv/boxee-0.9.20.10356.i486.deb -P /tmp
dpkg -i /tmp/boxee*.deb -y