install

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.

Update Ubuntu PXE files

Update pxe configuration
wget http://installit.googlecode.com/hg/preseed/preseed.squeeze.amd64.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.squeeze.amd64.conf
wget http://installit.googlecode.com/hg/preseed/preseed.wheezy.amd64.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.wheezy.amd64.conf
wget http://installit.googlecode.com/hg/preseed/preseed.precise.i386.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.precise.i386.conf
wget http://installit.googlecode.com/hg/preseed/preseed.precise.amd64.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.precise.amd64.conf

Install Scribus under Ubuntu

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

#!/bin/bash
cat < /etc/apt/sources.list.d/scribus.list
deb http://debian.scribus.net/debian/ raring main
deb http://debian.tagancha.org/debian/ raring main
EOF

sudo gpg --keyserver wwwkeys.pgp.net --recv-keys EEF818CF
sudo gpg --armor --export EEF818CF | sudo apt-key add -

sudo apt-get update
sudo apt-get install -y --force-yes scribus

sudo apt-get remove qt-at-spi

Links
http://wiki.scribus.net/canvas/Debian

Install SQuirreL SQL

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

#!/bin/bash

# download link
URL=http://switch.dl.sourceforge.net/project/squirrel-sql/1-stable/3.5.0-plainzip/squirrel-sql-3.5.0-standard.tar.gz

# install Java JRE
wget http://installit.googlecode.com/hg/install.java-jre.sh -O - | bash -

# download
wget ${URL} -O /tmp/squirrel-sql-3.5.0-standard.tar.gz

# extract
sudo tar xzf /tmp/squirrel-sql-3.5.0-standard.tar.gz -C /usr/lib/
sudo chown root:root -R /usr/lib/squirrel-sql
sudo chmod +r -R /usr/lib/squirrel-sql
sudo ln -s /usr/lib/squirrel-sql-3.5.0-standard /usr/lib/squirrel-sql

# create starter
cat <<EOF> /tmp/squirrel-sql.desktop
[Desktop Entry]
Name=SQuirreL SQL
Comment=SQuirreL SQL Client
Exec=/usr/lib/squirrel-sql-3.5.0-standard/squirrel-sql.sh
Icon=/usr/lib/squirrel-sql-3.5.0-standard/icons/acorn.xpm
Terminal=false
Type=Application
Categories=GTK;Database;Development;Application
EOF

sudo mv /tmp/squirrel-sql.desktop /usr/share/applications/squirrel-sql.desktop
sudo chmod +r /usr/share/applications/squirrel-sql.desktop

# cleanup
rm /tmp/squirrel-sql-3.5.0-standard.tar.gz

Install Brother P-Touch QL-500 / QL-550 / QL-560 / QL-570 under Ubuntu

wget https://raw.githubusercontent.com/panticz/installit/master/hardware/install.brother-ql-labelprinter.sh -O - | bash -

#!/bin/bash

[ ! -d /usr/share/cups/model ] && mkdir /var/spool/lpd
[ ! -d /usr/share/cups/model ] && mkdir /usr/share/cups/model
#ln -s /etc/init.d/cups /etc/init.d/cupsys

# create outdated cupsys init script
cat < /etc/init.d/cupsys
#!/bin/bash

/etc/init.d/cups \$@
EOF
chmod a+x /etc/init.d/cupsys

cat < /var/lib/dpkg/info/ql570cupswrapper.list
./
./usr/
./usr/local/
./usr/local/Brother/
./usr/local/Brother/PTouch/
./usr/local/Brother/PTouch/ql570/
./usr/local/Brother/PTouch/ql570/cupswrapper/
./usr/local/Brother/PTouch/ql570/cupswrapper/cupswrapperql570pt1
./usr/local/Brother/PTouch/ql570/cupswrapper/brcupsconfpt1
EOF

mkdir -p /var/spool/lpd/ql570

wget http://www.brother.com/pub/bsc/linux/dlf/ql570lpr-1.0.1-0.i386.deb -P /tmp
dpkg -i --force-all /tmp/ql570lpr-*.i386.deb

wget http://www.brother.com/pub/bsc/linux/dlf/ql570cupswrapper-1.0.1-0.i386.deb -P /tmp
dpkg -i --force-all /tmp/ql570cupswrapper-*.i386.deb

# connect and power-on the printer

# delete default printer
lpadmin -x QL-570

# create new printer (example for QL-500)
lpadmin -p Brother_P-Touch -E -v usb://Brother/QL-500 -P /usr/share/cups/model/Brother/brother_ql570_printer_en.ppd

# recreate printer
lpadmin -x QL-500
lpadmin -p Brother_QL-500 -E -v usb://Brother/QL-500 -P /usr/share/cups/model/brql500.ppd

lpadmin -p Brother_38x90 -v socket://PRINTSERVER_IP:9100 -E -P /usr/share/cups/model/Brother/brother_ql570_printer_en.ppd -o PageSize=38x90 -o PageRegion=38x90 -o ImageableArea=38x90 -o PaperDimension=38x90

# set Label to 38x90 mm
lpadmin -p Brother_38x90 -v usb://Brother/QL-500 -E -P /usr/share/cups/model/Brother/brother_ql570_printer_en.ppd -o PageSize=38x90 -o PageRegion=38x90 -o ImageableArea=38x90 -o PaperDimension=38x90 -o BrPriority=BrQuality -o orientation-requested-default=4

# test
sudo apt-get install -y psutils

# LINKS
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/faq_esp.html
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_esp1.html
http://solutions.brother.com/linux/en_us/download_esp.html#QL-500
http://welcome.solutions.brother.com/bsc/public_s/es/os/linux/linux_ql500550.html

HowTo: Compile Nautilus

Install compiled 64bit version
wget http://dl.panticz.de/nautilus/nautilus_3.2.1-0ubuntu3.1_amd64.deb
sudo dpkg -i /tmp/nautilus_3.2.1-0ubuntu3.1_amd64.deb
nautilus -q

Automatic installation script
wget http://dl.panticz.de/scripts/rebuild.nautilus.sh -O - | bash -

#!/bin/bash

cd /usr/src/
sudo apt-get install -y dpkg-dev
sudo apt-get source nautilus
sudo apt-get -y build-dep nautilus
sudo sed -i 's|gtk_toolbar_insert (GTK_TOOLBAR (self->priv->toolbar), item, 0);|gtk_toolbar_insert (GTK_TOOLBAR (self->priv->toolbar), item, 2);|g' nautilus-*/src/nautilus-toolbar.c
cd ./nautilus-*/
sudo dpkg-buildpackage -us -uc -b
sudo dpkg -i /usr/share/nautilus_*-0ubuntu*.deb
nautilus -q

Links
http://www.omgubuntu.co.uk/2011/12/how-to-move-nautilus-navigation-buttons-back-to-the-left
http://ubuntuforums.org/showthread.php?p=11501676#post11501676

Install Handbrake

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

#!/bin/bash

sudo apt-add-repository -y ppa:stebbins/handbrake-snapshots
sudo apt-get update -qq
sudo apt-get install -y handbrake-cli handbrake-gtk

Install Chromium

Automatic installation script
wget https://raw.githubusercontent.com/panticz/installit/master/install.chromium.sh -O - | bash -

#!/bin/bash

sudo apt-get install -y chromium-browser

# fix key?
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1397BC53640DB551

Install proftpd FTP server

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

#!/bin/bash

debconf-set-selections <<\EOF
proftpd-basic shared/proftpd/inetd_or_standalone select standalone
EOF

# install
apt-get install proftpd
# ServerType: standalone

# configure 
sed -i 's|# RequireValidShell|RequireValidShell|g' /etc/proftpd/proftpd.conf
sed -i 's|# DefaultRoot|DefaultRoot|g' /etc/proftpd/proftpd.conf
cat <<EOF>> /etc/proftpd/proftpd.conf
<Limit LOGIN>
    DenyGroup !ftpuser
</Limit>
EOF

# create ftpuser group
addgroup ftpuser

# restart
/etc/init.d/proftpd restart

Create new ftp user
adduser ftp_user_1 -shell /bin/false -home /var/www/ftp_user_1/

# add ftp user to grup
adduser ftp_user_1 ftpuser

# clear user dir
rm /var/www/ftp_user_1/.*

Links
http://www.thomas-krenn.com/de/wiki/FTP-Server_unter_Debian_einrichten
http://www.debian-administration.org/article/228/Setting_up_an_FTP_server_on_Debian

Install Postfix

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

#!/bin/bash

# ensure that this script is run by root
if [ $(id -u) -ne 0 ]; then
sudo $0
  exit
fi

# pre-configure
debconf-set-selections <<\EOF
postfix postfix/mailname string $(hostname)
postfix postfix/main_mailer_type select Internet Site
EOF
 
# install
apt-get install -y postfix
 
# post-configure
cp /etc/postfix/main.cf  /etc/postfix/main.cf.$(date -I)
postconf -e 'myhostname = example.com'
postconf -e 'smtp_sasl_security_options = noanonymous'
postconf -e 'smtp_sasl_auth_enable = yes'
postconf -e 'message_size_limit = 0'
 
# configure smtp
echo 'smtp.gmail.com you@gmail.com:password' > /etc/postfix/sasl_password
postmap /etc/postfix/sasl_password
postconf -e 'relayhost = smtp.gmail.com'
postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_password'

# configure user mapping
echo "root@postfix.example.com you@gmail.com" >> /etc/postfix/generic
postmap /etc/postfix/generic
postconf -e 'smtp_generic_maps = hash:/etc/postfix/generic'

# restart
/etc/init.d/postfix restart

Links
http://www.gtkdb.de/index_33_727.html - SMTP Relay HowTo

Install Dovecot

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

#!/bin/bash

# ensure that this script is run by root
if [ $(id -u) -ne 0 ]; then
  sudo $0
  exit
fi

# install dovecot
apt-get install -y dovecot-imapd

# enable secure imap only (Port 993)
sed -i 's|#port = 143|port = 0|g' /etc/dovecot/conf.d/10-master.conf

# configure mailbox path
sed -i 's|mbox:~/mail:INBOX=/var/mail/%u|maildir:~/Maildir|g' /etc/dovecot/conf.d/10-mail.conf

# configure ssl
sed -i 's|^#ssl = yes|ssl = yes|g' /etc/dovecot/conf.d/10-ssl.conf
sed -i 's|^#disable_plaintext_auth = yes|disable_plaintext_auth = yes|g' /etc/dovecot/conf.d/10-auth.conf

# restart
/etc/init.d/dovecot restart

/etc/dovecot/conf.d/10-master.conf
inet_listener imaps {
port = 993
ssl = yes
}

openssl req -new -x509 -nodes -out /etc/dovecot/dovecot.pem -keyout /etc/dovecot/private/dovecot.pem -days 1095 -newkey rsa:4096

Links
http://wiki2.dovecot.org/SSL/DovecotConfiguration
http://wiki2.dovecot.org/SSL/CertificateCreation
http://ebalaskas.gr/wiki/dovecot/DovecotSSL
http://wiki.ubuntuusers.de/Dovecot
https://help.ubuntu.com/11.04/serverguide/C/dovecot-server.html
http://wiki.dovecot.org/MainConfig
http://www.howtoforge.com/dovecot_mail_server_sieve_virtual_users

Syndicate content