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.

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

Install DVD decryption library script

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

#!/bin/bash

# add repository
echo "deb http://download.videolan.org/pub/debian/stable/ /" | sudo tee /etc/apt/sources.list.d/libdvdcss.list

# get keyring
wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc | sudo apt-key add -

# update repository
sudo apt-get update -qq

# install libdvdcss
sudo apt-get install -y libdvdcss2

Other method:
sudo apt-get install ubuntu-restricted-extras
sudo /usr/share/doc/libdvdread4/install-css.sh

Links
http://download.videolan.org/pub/libdvdcss/

Install Ubuntu restricted extras

# FIXME

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

#!/bin/bash

sudo apt-get install -y debconf-utils

# create answer file
sudo debconf-set-selections <<\EOF
msttcorefonts msttcorefonts/defoma note
ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula boolean true
ttf-mscorefonts-installer msttcorefonts/present-mscorefonts-eula note
EOF

sudo apt-get install -y ubuntu-restricted-extras

Install Gimp from Ubuntu PPA

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

#!/bin/bash

# add repository
RELEASE=$(lsb_release -rs | tr -d ".")
if [ ${RELEASE} -ge 1204 ]; then
  sudo add-apt-repository -y ppa:otto-kesselgulasch/gimp
fi

# update
sudo apt-get update -qq

# install gimp
sudo apt-get install -y gimp

Ansible
https://github.com/panticz/ansible/tree/master/roles/gimp
- hosts: localhost
roles:
- gimp

# OPTIONAL: enable single window mode
Menu Window > check "Single window mode"

# Links
https://launchpad.net/~matthaeus123/+archive/mrw-gimp-svn - Matt Walker Gimp PPA repository
http://www.webupd8.org/2009/08/how-to-install-gimp-27-in-ubuntu-jaunty.html
ftp://ftp.gimp.org/pub/gimp/v2.7/

installSqlDeveloper.sh

Get Oracle SQL Developer package
1. go to Homepage: http://www.oracle.com/technology/software/products/sql/index.html
2. accept the licence
3. login
4. download "Oracle SQL Developer for other platforms"

#http://download.oracle.com/otn/java/sqldeveloper/sqldeveloper-4.1.0.18.37-no-jre.zip
http://download.oracle.com/otn/java/sqldeveloper/sqldeveloper-17.4.1.054.0712-no-jre.zip

wget https://raw.githubusercontent.com/panticz/installit/master/install.sqldeveloper.sh-qO - | bash -s /tmp/sqldeveloper-17.4.1.054.0712-no-jre.zip

#!/bin/bash

if [ -z "$1" ]; then
  echo "Please enter the url to download"
  exit
else
  URL=$1
fi

FILE=${URL##*/}
[ -n "$2" ] && USER=$2

# install Java JRE
wget -q https://raw.githubusercontent.com/panticz/installit/master/install.java-jdk.sh -O - | bash -

# get file
if [ ${URL:0:4} == "http" ]; then
  wget -q ${URL} -O /tmp/${FILE}
else
  cp ${URL} /tmp/${FILE}
fi

case ${FILE: -3} in
rpm)
  # convert rpm package to debian
  sudo apt-get install -y alien
  sudo alien /tmp/${FILE}
  sudo dpkg -i /tmp/${FILE/.rpm/.deb}
  ;;
deb)
  # install debian package
  sudo dpkg -i /tmp/${FILE}
  ;;
zip)
  # extract
  [ -d /opt ] || sudo mkdir /opt
  sudo unzip -q /tmp/${FILE} -d /opt/
  sudo chmod +x /opt/sqldeveloper/sqldeveloper.sh
  ;;
*)
  echo "Unknown file format"
  exit
  ;;
esac

# fix "Error: SQL Developer can't recognize the JDK version" error
sudo sed -i '1a unset GNOME_DESKTOP_SESSION_ID' /opt/sqldeveloper/sqldeveloper.sh

# create startet
cat << EOF | sudo tee -a "/usr/share/applications/oracle-sql-developer.desktop"
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Oracle SQL Developer
Type=Application
Terminal=false
Exec=/opt/sqldeveloper/sqldeveloper.sh
Icon=/opt/sqldeveloper/icon.png
Categories=Application;Development;
EOF

# create user config to the latest installed JDK version
[ -d /home/${USER}/.sqldeveloper ] || mkdir /home/${USER}/.sqldeveloper
[ -f /home/${USER}/.sqldeveloper/jdk ] || echo "/usr/lib/jvm/$(ls /usr/lib/jvm | grep oracle | tail -1)/" > /home/${USER}/.sqldeveloper/jdk

# set owner
chown -R ${USER}:${USER} /home/${USER}/.sqldeveloper/

# reduced memory usage
sed -i 's|-Xmx640M|-Xmx384M|g' /opt/sqldeveloper/ide/bin/ide.conf

# ToDo
# http://download.oracle.com/otn/java/sqldeveloper/sqldeveloper-4.0.2.15.21-1.noarch.rpm?AuthParam=XXX_XXX
# use a repository
# configure global

Install Dropbox under Ubuntu

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

#!/bin/bash

# add repository
sudo apt-add-repository -y "deb http://linux.dropbox.com/ubuntu $(lsb_release -cs) main"

# update repository
sudo apt-get update -qq
 
# install Dropbox
sudo apt-get install nautilus-dropbox -y --force-yes

# install libs
sudo apt-get install -y python-gpgme

# dowload client
#wget http://www.getdropbox.com/download?plat=lnx.x86 -P /tmp
#su $1 -c tar xzf /tmp/dropbox-lnx.x86-*.tar.gz -C ~/

# create delayed start
# run this as user
sed -i 's|dropbox start -i|/usr/sbin/dropbox_start_dely|g' ~/.config/autostart/dropbox.desktop

# run this as root
cat < /usr/sbin/dropbox_start_dely
#!/bin/sh
sleep 120
ionice -c 3 dropbox start -i
EOF

chmod a+x /usr/sbin/dropbox_start_dely

Create account and get free Dropbox account with extra 250mb space
https://www.dropbox.com/referrals/NTQxNzA2OTU5

Enable folder share
http://www.dropbox.com/enable_shmodel

Links
http://wiki.ubuntuusers.de/Dropbox
http://www.getdropbox.com/download?plat=lnx.x86
http://www.maximumpc.com/article/features/15_things_you_have_know_about_dropbox

Install Tipp10

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

#!/bin/bash

# parse download link
URL=$(wget -q http://www.tipp10.com/de/download/getfile/5/ -O - | grep getfile | tail -1 | cut -d"\"" -f 2)

# download
wget "http://www.tipp10.com${URL}" -O /tmp/tipp10.deb

# install
sudo dpkg -i /tmp/tipp10.deb

Install Skype from repository

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

#!/bin/bash

# add partner repository
sudo add-apt-repository -y "deb http://archive.canonical.com/ $(lsb_release -sc) partner"

# update
sudo apt-get update -qq

# install
sudo apt-get install -y skype

Fix upside down webcam
wget https://raw.githubusercontent.com/panticz/scripts/master/fix_skype_upsidedown_webcam.sh -O - | bash -

#!/bin/bash

# install video4linux libraries 
sudo apt-get install libv4l-0:i386

# fix lib path
if [ ! -f /usr/lib/libv4l/v4l1compat.so ]; then
  sudo mkdir /usr/lib/libv4l
    if [ "$(uname -m)" == "x86_64" ]; then
      # 64 bit
      sudo ln -s /usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so /usr/lib/libv4l/v4l1compat.so
    else
      # 32 bit
      sudo ln -s /usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/lib/libv4l/v4l1compat.so
  fi
fi

# modify Skype launcher
sudo sed -i 's|env PULSE_LATENCY_MSEC=60 skype %U|env PULSE_LATENCY_MSEC=60 LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype %U|g' /usr/share/applications/skype.desktop

Disable "contacts comes online" notification
# Notify
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml

# Sound
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml

Links
http://wiki.ubuntuusers.de/Canonical_Partner - Ubuntu partner repository
http://www.semanticpool.de/hidden-skype-emoticons/ - hidden skype emoticons
https://help.ubuntu.com/community/SkypeTroubleshooting
https://wiki.ubuntu.com/SkypeWebCams

Install Java JRE

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

#!/bin/bash

# no JRE package available, use JDK package
wget -q --no-check-certificate https://raw.githubusercontent.com/panticz/installit/master/install.java-jdk.sh -O - | bash -

Download Oracle Java JRE & JDK using a script
https://ivan-site.com/2012/05/download-oracle-java-jre-jdk-using-a-script/

Fix mozilla java plugin
JAVA_HOME=/usr/lib/jvm/jdk1.7.0
MOZILLA_HOME=~/.mozilla
mkdir $MOZILLA_HOME/plugins
ln -s $JAVA_HOME/jre/lib/i386/libnpjp2.so $MOZILLA_HOME/plugins
or
ln -s $JAVA_HOME/jre/lib/amd64/libnpjp2.so $MOZILLA_HOME/plugins
or
ln -s /usr/lib/jvm/java-7-oracle/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/

Links
http://wiki.ubuntuusers.de/make-jpkg
https://github.com/flexiondotorg/oab-java6 - Create a local apt repository for Sun Java 6 and/or Oracle Java 7 packages.
http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
http://www.webupd8.org/2011/03/install-java-in-ubuntu-1104-natty.html
http://www.sysadminslife.com/linux/howto-oracle-sun-java-7-installation-unter-debian-6-squeeze/

Syndicate content