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.

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

Toshiba Tegra AC100

# https://github.com/nthchild/ubuntu-ac100

HowTo
https://wiki.ubuntu.com/ARM/TEGRA/AC100

install nvflash (broken, download and install manually)
http://developer.download.nvidia.com/assets/mobile/files/tegra-linux-12.alpha.1.0.tar.gz
wget https://phablet-paz00.googlecode.com/files/nvflash_20110628-2_all.deb -O /tmp/nvflash_20110628-2_all.deb
sudo dpkg -i /tmp/nvflash_20110628-2_all.deb

get bootrom
# wget http://cdimage.ubuntu.com/lubuntu/releases/quantal/release/lubuntu-12.10-preinstalled-desktop-armhf+ac100.bootimg -O /tmp/ac100.bootimg
# wget http://cdimage.ubuntu.com/releases/12.04/release/ubuntu-12.04-preinstalled-desktop-armhf+ac100.bootimg -O /tmp/ac100.bootimg
wget http://cdimage.ubuntu.com/lubuntu/daily-preinstalled/pending/trusty-preinstalled-desktop-armhf+ac100.bootimg -O /tmp/ac100.bootimg

flash bootrom
# Connect the USB cable between your AC100 and the host PC
# Press CTRL and ESC keys and power on your AC100
sudo nvflash --bl /usr/lib/nvflash/fastboot.bin --download 6 /tmp/ac100.bootimg
# poweroff
# poweron

download image
sudo mount /dev/sdb1 /mnt

# wget http://cdimage.ubuntu.com/lubuntu/releases/quantal/release/lubuntu-12.10-preinstalled-desktop-armhf+ac100.tar.gz -P /mnt/
# wget http://cdimage.ubuntu.com/releases/12.04/release/ubuntu-12.04-preinstalled-desktop-armhf+ac100.tar.gz -P /mnt/
wget http://cdimage.ubuntu.com/lubuntu/daily-preinstalled/pending/trusty-preinstalled-desktop-armhf+ac100.tar.gz -O /tmp/trusty-preinstalled-desktop-armhf+ac100.tar.gz

sudo umount /mnt

# OPTIONAL configuration
wget https://raw.githubusercontent.com/panticz/installit/master/hardware/ac100.postinstall.sh -O - | sudo bash -

#!/bin/bash

# update packages
sudo apt-get update
sudo apt-get -y dist-upgrade

# configure german keyboard
sudo sed -i 's|XKBLAYOUT="us"|XKBLAYOUT="de"|g' /etc/default/keyboard



# disable unnececery services 
sudo update-rc.d -f avahi-daemon remove
sudo update-rc.d -f bluetooth remove

sudo mkdir /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/orca-autostart.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/vino-server.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/bluetooth-applet.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/bluetooth-applet-unity.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/jockey-gtk.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/deja-dup-monitor.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/onboard-autostart.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/user-dirs-update-gtk.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/ubuntuone-launch.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/update-notifier.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/gnome-user-share.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/telepathy-indicator.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/gwibber.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/gdu-notification-daemon.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/zeitgeist-datahub.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/pulseaudio-kde.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/print-applet.desktop /etc/xdg/autostart/disabled
sudo mv /etc/xdg/autostart/nautilus-autostart.desktop /etc/xdg/autostart/disabled


# remove unnecessary apps
sudo apt-get remove -y gnome-screensaver
sudo apt-get remove -y gnome-orca onboard
sudo apt-get remove -y brasero
sudo apt-get remove -y zeitgeist
sudo apt-get remove -y rhythmbox
sudo apt-get remove -y unity
sudo apt-get remove -y totem

# install extra apps
sudo apt-get install -y language-pack-de language-pack-gnome-de
sudo apt-get install -y thunderbird-locale-de thunderbird-locale-en hunspell-de-de hunspell-en-us
sudo apt-get install -y openvpn network-manager-openvpn
sudo apt-get install -y language-pack-de-base
sudo apt-get install -y sshfs vlc 




#
# ubuntu 12.04 (gnome)
#
# configure repository
cat < /etc/apt/sources.list
deb http://ports.ubuntu.com/ubuntu-ports/ precise main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ precise-security main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ precise-updates main restricted universe multiverse
#deb http://ports.ubuntu.com/ubuntu-ports/ precise-proposed main restricted universe multiverse
EOF

# install gnome classic
wget http://installit.googlecode.com/hg/install.gnome-fallback.sh -O - | bash -

gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults/ -t boolean -s /apps/gnome-screensaver/idle_activation_enabled false
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults/ -t boolean -s /apps/gnome-power-manager/lock_on_blank_screen false
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults/ -t -s /apps/gnome-power-manager/lock_use_screensaver_settings false
#gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'
#gsettings set org.gnome.power-manager lock-use-screensaver 'false'

# configure nautilus (broken ?)
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults/ -t string -s /apps/nautilus/preferences/default_folder_viewer 'list_view'
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults/ -t string -s /apps/nautilus/list_view/default_zoom_level smallest
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults/ -t string -s /apps/nautilus/preferences/show_directory_item_counts never


#
# ubuntu 12.10 (lxdm)
#
# install nvidia driver
if [ $(lsb_release -rs | tr -d ".") -ge 1210 ]; then
    wget http://flie.no-ip.org:7080/ac100/deb/nvidia-tegra-ventana-codecs_16.0.0-0ubuntu1_armhf.deb
    wget https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-tegra/16.2.0-0ubuntu3/+build/3907865/+files/nvidia-tegra_16.2.0-0ubuntu3_armhf.deb
    sudo dpkg -i nvidia-tegra_16.2.0-0ubuntu3_armhf.deb nvidia-tegra-ventana-codecs_16.0.0-0ubuntu1_armhf.deb
fi

# clean up
sudo apt-get -y autoremove
sudo apt-get clean

echo "*** ac100 postinstall done, reboot in 30 sec ***"
sleep 30

sudo reboot


# todo
# autologin
# remove screen lock
# nvidia tegra graphic
#dpkg -i Downloads/nvidia-tegra_12~beta1-0ubuntu1_armel.deb
1

Ubuntu images for AC100
http://cdimage.ubuntu.com/releases/11.10/release/
http://cdimage.ubuntu.com/releases/12.04/beta-2/
http://cdimage.ubuntu.com/daily-preinstalled/current/

Links
http://cdimage.ubuntu.com/lubuntu/daily-preinstalled/current/
http://ac100.grandou.net/hw_accelerated_video_playback - Ubuntu 12.10 / 12.04 Nvidia graphic driver for Toshiba AC100
http://wiki.informatik.hu-berlin.de/nomads/index.php/Erfahrungsbericht_Toshiba_AC100#Nvidia_Grafiktreiber_f.C3.BCr_Tegra_2
http://ac100.grandou.net/
http://ac100.grandou.net/nvflash#debian_ubuntu_package - NvFlash
http://ac100.grandou.net/ubuntu_deubuntuization
http://developer.nvidia.com/content/linux-tegra-release-12-alpha-1-released
http://ac100.grandou.net/apps

Accelated Video
wget http://launchpadlibrarian.net/118260107/linux-image-3.1.10-6-ac100_3.1.10-6.9_armhf.deb
wget http://flie.no-ip.org:7080/ac100/deb/nvidia-tegra_16.1.0-0ubuntu3~fly2_armhf.deb
sudo dpkg -i linux-image-3.1.10-6-ac100_3.1.10-6.9_armhf.deb nvidia-tegra_16.1.0-0ubuntu3~fly2_armhf.deb

http://ac100.grandou.net/hw_accelerated_video_playback
nvgstplayer -i "file://$1" --svs="nvxvimagesink" --sas="nv_omx_audiosink"

Java Linux ARM v6/v7 VFP
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

# axis
http://ports.ubuntu.com/pool/multiverse/a/axe/axe_6.1.2-16.2_armhf.deb
http://ports.ubuntu.com/ubuntu-ports/pool/universe/t/tk8.6/tk8.6-lib_8.6.0-1ubuntu1_armhf.deb

# kali
http://cdimage.kali.org/kali-latest/armhf/

Lubuntu / LXDM enable autologin
/etc/lightdm/lightdm.conf.d/10-autologin.conf
[SeatDefaults]
autologin-user=USERNAME
autologin-user-timeout=0
user-session=Lubuntu
greeter-session=lightdm-gtk-greeter

# old
sudo echo "deb http://people.debian.org/~jak/ac100/ unreleased main non-free" > /etc/apt/sources.list.d/people.debian.org.jak.ac100.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AC2A5FFE00823EC2
sudo apt-get update
sudo apt-get -y --force-yes install xserver-xorg-video-tegra

wget https://launchpad.net/~canonical-arm-dev/+archive/ppa/+build/2610299/+files/nvidia-tegra_12-0ubuntu1~alpha1monson6_armel.deb -O /tmp/nvidia-tegra_12-0ubuntu1~alpha1monson6_armel.deb
sudo dpkg -i /tmp/nvidia-tegra_12-0ubuntu1~alpha1monson6_armel.deb

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

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_libs() {
   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
   sed -i 's|libgnutls26 (>= 2.7.14-0), ||g' ${DEBDIR}/DEBIAN/control
   dpkg -b ${DEBDIR}/ /tmp/release/pips-common_3.2.0-3_i386.deb
}

# enable universe repository
sudo apt-add-repository universe

# 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
sudo apt-get install -y libgnutls30: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
fix_libs
   
# 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

Syndicate content