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 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

Epson B-310N / B-500DN

If not already purchased, then DON´T buy this crappy Epson B-300 / B-308 / B-310 / B-500 / B-508 / B-510 printer. The printer are very short-lived. After about 1-2 years and ~10,000 pages unusable, paper jam, ink leaking, complete damage... The same problems occurred by FOUR! Business Inkjet printers. I have expected a little bit more from a "business printer" in the € 500 price range. Shame on you Epson!

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

#!/bin/bash

function fix_libxml2() {
   DEBDIR=/tmp/release/deb
   [ -d ${DEBDIR}/ ] && rm -r ${DEBDIR}/
   mkdir ${DEBDIR}/
   dpkg-deb -x /tmp/release/pips-common_3.2.0-3_i386.deb ${DEBDIR}/
   dpkg-deb --control /tmp/release/pips-common_3.2.0-3_i386.deb ${DEBDIR}/DEBIAN
   sed -i 's|libxml2 (>= 2.7.4), ||g' ${DEBDIR}/DEBIAN/control
   dpkg -b ${DEBDIR}/ /tmp/release/pips-common_3.2.0-3_i386.deb
}

# enable universe repository
sudo sed -i "s/# \(deb .* universe\)/\1/" /etc/apt/sources.list

# add support for 32 bit libs
sudo dpkg --add-architecture i386
sudo apt-get update

# install libs
sudo apt-get install -y libxml2:i386
sudo apt-get install -y libatk1.0-0:i386
sudo apt-get install -y libcairo2:i386
sudo apt-get install -y libcupsimage2:i386
sudo apt-get install -y libgtk2.0-0:i386
sudo apt-get install -y libpango1.0-0:i386
sudo apt-get install -y libstdc++6:i386

# download driver package
if [ ! -f /tmp/pips-pxb500-Ubuntu10.04-3.2.0-CG.tgz ]; then
   wget http://a1227.g.akamai.net/f/1227/40484/1d/download.ebz.epson.net/dsc/f/01/00/01/62/55/2b7dee6496e6fdc44d823bd05aaf99d2ea3a38ee/pips-pxb500-Ubuntu10.04-3.2.0-CG.tgz -O /tmp/pips-pxb500-Ubuntu10.04-3.2.0-CG.tgz
fi

# extract
tar xzf /tmp/pips-pxb500-Ubuntu10.04-3.2.0-CG.tgz -C /tmp
bash /tmp/pips-pxb500-Ubuntu10.04-3.2.0-CG.install --noexec --keep --nox11 --target /tmp/release

# fix pips-common package
dpkg -s libxml2 1>/dev/null 2>&1 || fix_libxml2
   
# install driver
sudo dpkg -i --force-architecture /tmp/release/pips-common_3.2.0-3_i386.deb
sudo dpkg -i --force-architecture /tmp/release/pips-ubuntu10.04_3.2.0-3_i386.deb
sudo dpkg -i --force-architecture /tmp/release/pips-pxb500_3.2.0-3_i386.deb

# set owner
sudo chown root:root /usr/lib/cups/filter/pips-wrapper

# create network printer when IP specified
if [ -n "${1}" ]; then
    sudo lpadmin -p Epson_B-310N -v socket://${1}:2501 -E -P /usr/share/cups/model/ekpxb310.ppd
fi

create printer
sudo lpadmin -p Epson_B-310DN -v socket://192.168.1.14:2501 -E -P /usr/share/cups/model/ekpxb310.ppd
sudo lpadmin -p EpsonColorOben -v lpd://YOUR_PRINTER_IP:515/PASSTHRU -E -P /usr/share/cups/model/ekb500dn.ppd -o DefaultInputSlot=Front
sudo lpadmin -p ZertifikateOben -v lpd://192.168.1.13:515/PASSTHRU -E -P /usr/share/cups/model/ekb500dn.ppd -o MediaType=EPHOTOGLOSSY -o PrintQuality=BestPhoto -o InputSlot=Rear -o PageSize=A5 -o PageRegion=A5 -o ImageableArea=A5 -o PaperDimension=A5 -o OutputPaper=A5

# create DIN A5 printer
wget http://dl.dropbox.com/u/4170695/ppd/Epson-B-500DN-A5.ppd -P /tmp
lpadmin -p Zertifikate -v socket://EpsonColor:9100 -E -P /tmp/Epson_B-500DN_A5.ppd

Commercial alternative TurboPrint
wget http://www.turboprint.info/tp2/turboprint_2.23-1_amd64.deb -P /tmp
sudo dpkg -i /tmp/turboprint_2.23-1_amd64.deb

HowTo convert image to AdobeRGB1998.icc
http://www.panticz.de/Adobe_ICC_Profiles

Links
http://download.ebz.epson.net/dsc/search/01/search/searchModuleFromResult
http://avasys.jp/eng/linux_driver/
http://linux.avasys.jp/customerservice/pips3x_ubuntu804_e.html
http://dl.dropbox.com/u/4170695/ppd/Epson-B-500DN-A5.ppd - PPD DIN A5 only
http://dl.dropbox.com/u/4170695/ppd/Epson-B-500DN.ppd - PPD

Install Kodi

Install stable version
wget https://raw.githubusercontent.com/panticz/installit/master/install.xbmc.sh -O - | bash -

#!/bin/bash

sudo apt-get install -qq -y python-software-properties pkg-config

if [ "$1" == "-u" ]; then
    # add unstable repository
    sudo add-apt-repository -y ppa:team-xbmc/unstable
    
    RELEASE=$(lsb_release -rs | tr -d ".")
    if [ ${RELEASE} -gt 1110 ]; then
        # downgrade to oneiric (lastest available release)
        sudo sed -i "s|$(lsb_release -cs)|oneiric|g" /etc/apt/sources.list.d/team-xbmc-unstable-*.list
    fi
else
    # add stable repository
    sudo add-apt-repository -y ppa:team-xbmc/ppa

    RELEASE=$(lsb_release -rs | cut -d"." -f1)
    if [ ${RELEASE} -gt 10 ]; then
        # downgrade to maverick (lastest available release)
        sudo sed -i "s|$(lsb_release -cs)|maverick|g" /etc/apt/sources.list.d/team-xbmc-ppa-*.list
    fi
fi

# update
sudo apt-get update -qq

# install xbmc
sudo apt-get install -qq -y xbmc

# install required libraries
sudo apt-get install -qq -y libmad0 libmpeg2-4

install unstable version
wget http://installit.googlecode.com/hg/install.xbmc.sh -O /tmp/install.xbmc.sh
bash /tmp/install.xbmc.sh -u

Unofficial PVR repository
sudo add-apt-repository ppa:lars-opdenkamp/xbmc-pvr

XBMC standalone
sudo apt-get install -y xbmc xbmc-standalone

Configuring a Wii Remote
http://www.mini-itx.com/projects/xbmc-ion/module/6

Ubuntu: Install Nero Linux

Nero Download
http://www.nero.com/enu/downloads-linux4-trial.php

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

#!/bin/bash

if [ ! -z $1 ] {
  URL=$1
  FILE=${URL##*/}
} else {
  # get download URL
  if [ "$(uname -m)" == "x86_64" ]; then
    # 64 bit OS found
    OS="_64"
  fi
  URL=$(wget -q http://www.nero.com/deu/downloads/previous-versions/download-linux4-update.php -O - | egrep "^.*dlLink.*http.*x86${OS}.deb" | cut -d'"' -f2)

  # set file name
  FILE=nerolinux-x86${OS}.deb
}

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

# install file
sudo dpkg -i /tmp/${FILE}

# clean up
rm /tmp/${FILE}

Extract Nero DOS bootimage
mkdir /tmp/nero
dpkg -x /tmp/nerolinux-x86_64.deb /tmp/nero
ls -l /tmp/nero/usr/share/nero/DosBootImage.ima

Ubuntu: Install NVIDIA proprietary video drivers

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

#/bin/bash

# nvidia graphic driver
sudo apt-get install -y nvidia-current-updates

# configure driver
sudo nvidia-xconfig --no-logo --cool-bits=1

# TODO: options
#--registry-dwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"

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 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 VirtualBox

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

#!/bin/sh

if [ ! -z $1 ]; then
    USER=$1
fi

# install debconf-utils
sudo apt-get install debconf-utils

# add debconf answer
sudo debconf-set-selections <<\EOF
virtualbox virtualbox/group-vboxusers note
EOF

# add key
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

# install repository key
wget -q -O - http://www.virtualbox.org/download/oracle_vbox_2016.asc | apt-key add -

# update repository list
echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
sudo apt-get update -qq

# install
sudo apt-get install -y virtualbox-5.1

# install extension pack
VERSION=$(dpkg-query -W -f='${Version}' "virtualbox*" | cut -d "-" -f1)
wget http://download.virtualbox.org/virtualbox/${VERSION}/Oracle_VM_VirtualBox_Extension_Pack-${VERSION}.vbox-extpack -P /tmp/
sudo VBoxManage extpack install /tmp/Oracle_VM_VirtualBox_Extension_Pack-${VERSION}.vbox-extpack

# add current user to vboxusers group
sudo adduser ${USER} vboxusers

--allow-unauthenticated

Fix kernel module
sudo /etc/init.d/vboxdrv setup

Links
http://wiki.ubuntuusers.de/VirtualBox/Installation
http://www.virtualbox.org/wiki/Linux_Downloads
http://www.panticz.de/node/143

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