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 Wine

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

#!/bin/bash

# add repository
sudo add-apt-repository -y ppa:ubuntu-wine/ppa
sudo dpkg --add-architecture i386
sudo apt-get update -qq

# pre-answer installation questions
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

# install wine
if [ "$1" == "-n" ]; then
  # development release
  sudo apt-get install -y wine1.8
else
  # stable release
  sudo apt-get install -y wine1.6
fi

Downgrade to lastest Wine 1.2 (64 bit)
sudo apt-get remove wine1.4
cd /tmp
wget http://ie.archive.ubuntu.com/ubuntu/pool/universe/w/wine1.2/wine1.2_1.2.3-0ubuntu1_amd64.deb
wget http://ie.archive.ubuntu.com/ubuntu/pool/universe/n/nss-mdns/lib32nss-mdns_0.10-3.1ubuntu1_amd64.deb
sudo dpkg -i wine1.2_1.2.3-0ubuntu1_amd64.deb lib32nss-mdns_0.10-3.1ubuntu1_amd64.deb
wine --version

OPTIONAL: fake ie6 installation
wget kegel.com/wine/winetricks -P /tmp; sh /tmp/winetricks fakeie6

Compile wine
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get build-dep wine1.3
sudo apt-get --build source wine1.3
./configure
make

LINKS
http://appdb.winehq.org/ - supported applicatinos
http://www.winehq.org/site/download-deb - Wine for Debian based distributions
http://wiki.winehq.org/AdobePhotoshop
http://wiki.winehq.org/AdobeAcrobatPro

Auto update Ubuntu PXE files

Update script
wget https://raw.githubusercontent.com/panticz/preseed/master/pxe/scripts/update.ubuntu.pxe.files.sh -O - | bash -

#!/bin/bash

MIRROR=http://archive.ubuntu.com/ubuntu/dists/SUITE/main/installer-ARCH/current/images/netboot/ubuntu-installer/ARCH
TFTPDIR=/var/lib/tftpboot/ubuntu/SUITE/ARCH

download() {
  SUITE=$1
        ARCH=$2
  FILE=$3
  
  echo -n "    - $3"

  MIRROR1=${MIRROR//SUITE/$SUITE}
  MIRROR_TMP=${MIRROR1//ARCH/$ARCH}

  TFTPDIR1=${TFTPDIR//SUITE/$SUITE}
  TFTPDIR_TMP=${TFTPDIR1//ARCH/$ARCH}

  if [ ! -d $TFTPDIR_TMP ]; then
    mkdir -p $TFTPDIR_TMP
  fi
  
  wget --quiet $MIRROR_TMP/$FILE -O $TFTPDIR_TMP/$FILE

  if [ $? == 0 ]; then
    printf "%20s\n" "OK"
  else
    printf "%20s\n" "ERROR"
    echo "$MIRROR_TMP/$FILE"
  fi
}

echo "Update Ubuntu netboot files:"
for SUITE in oneiric precise quantal; do
  echo "+ $SUITE"

  for ARCH in i386 amd64; do
    echo "  + $ARCH"
  
    for FILE in linux initrd.gz; do
      download $SUITE $ARCH $FILE
    done
  done
done

Create cronjob
wget https://raw.githubusercontent.com/panticz/preseed/master/pxe/scripts/update.ubuntu.pxe.files.cronjob -O - /etc/cron.d/update.ubuntu.pxe.files.cronjob; chmod a+x update.ubuntu.pxe.files.cronjob

#!/bin/sh

echo "update.ubuntu.pxe.files.cronjob $(date -I)" > /var/log/update.ubuntu.pxe.files.log

wget --quiet https://raw.github.com/panticz/preseed/master/pxe/scripts/update.ubuntu.pxe.files.sh -O - | bash -

Configure PXE
wget https://installit.googlecode.com/hg/preseed/preseed.precise.i386.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.precise.i386.conf
wget https://installit.googlecode.com/hg/preseed/preseed.precise.amd64.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.precise.amd64.conf
wget https://installit.googlecode.com/hg/preseed/preseed.quantal.i386.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.quantal.i386.conf
wget https://installit.googlecode.com/hg/preseed/preseed.quantal.amd64.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.quantal.amd64.conf

vi /var/lib/tftpboot/default
MENU SEPARATOR
MENU BEGIN
MENU TITLE + Preseed
MENU INCLUDE pxelinux.cfg/preseed.oneiric.i386.conf
MENU INCLUDE pxelinux.cfg/preseed.oneiric.amd64.conf
MENU INCLUDE pxelinux.cfg/preseed.precise.i386.conf
MENU INCLUDE pxelinux.cfg/preseed.precise.amd64.conf
MENU INCLUDE pxelinux.cfg/preseed.quantal.i386.conf
MENU INCLUDE pxelinux.cfg/preseed.quantal.amd64.conf

MENU SEPARATOR
LABEL Back
MENU EXIT
MENU END

Install androidscreencast under Ubuntu

# install android sdk

# install java
wget http://dl.dropbox.com/u/4170695/scripts/install.sun-java6-jre.sh -O - | bash -

# set path to android sdk
PATH=$PATH:~/android-sdk-linux_86/tools

# start android sdk server
adb start-server

# start androidscreencast
wget http://androidscreencast.googlecode.com/svn/trunk/AndroidScreencast/dist/androidscreencast.jnlp -P ~/
javaws ~/androidscreencast.jnlp

# Links
http://code.google.com/p/androidscreencast/

Download and install Docky Stacks under Ubuntu

wget http://www.panticz.de/sites/default/files/Docky/docky.stacks.install.sh.txt -O - | bash -

#!/bin/bash

wget http://www.panticz.de/sites/default/files/Docky/stacks.tar.bz2 -O /tmp/stacks.tar.bz2
tar xjf /tmp/stacks.tar.bz2 -C /tmp/
cd /tmp/stacks
sudo make install
killall docky
nohup docky > /dev/null &
1

Install Docky under Ubuntu

wget http://dl.panticz.de/scripts/install.docky.sh -O - | bash -

#!/bin/bash

sudo add-apt-repository ppa:docky-core/ppa
sudo apt-get update
sudo apt-get install -y docky

OPTIONAL: configure docky
gconftool-2 -t string -s /apps/docky-2/Docky/Interface/DockPreferences/Dock1/Autohide "Intellihide"
gconftool-2 -t bool -s /apps/docky-2/Docky/Interface/DockPreferences/Dock1/FadeOnHide true
gconftool-2 -t float -s /apps/docky-2/Docky/Interface/DockPreferences/Dock1/FadeOpacity 0.4
gconftool-2 -t int -s /apps/docky-2/Docky/Interface/DockPreferences/Dock1/IconSize 24
gconftool-2 -t bool -s /apps/docky-2/Docky/Interface/DockPreferences/Dock1/IndicateMultipleWindows true
gconftool-2 -t bool -s /apps/docky-2/Docky/Items/DockyItem/ShowDockyItem false

gconftool -s --type string /apps/docky-2/Docky/Items/DockyItem/DockyItemCommand 'gnome-terminal --geometry 177x47+0+0'

Add Gnome menu to Docky
sudo apt-get install -y xdotool
gconftool -s --type string /apps/docky-2/Docky/Items/DockyItem/DockyItemCommand 'xdotool key -clearmodifiers alt+F1'

Links
http://wiki.ubuntuusers.de/Docky

Compile Docky with Stacks under Ubuntu

Quick install (go Applications > Accessories > Terminal and put this line into):

wget http://www.panticz.de/sites/default/files/Docky/compile.docky.stacks.sh.txt -O - | bash -

Script code:
#!/bin/bash

# install requires libraries
sudo add-apt-repository ppa:docky-core/ppa
sudo apt-get update -qq
sudo apt-get install -y bzr libgio2.0-cil-dev automake bzr mono-gmcs libmono-cairo2.0-cil gtk-sharp2 libndesk-dbus-glib1.0-cil libndesk-dbus1.0-cil libgtk2.0-dev libnotify0.4-cil libgio2.0-cil-dev libtool intltool ca-certificates gnome-desktop-sharp2 libgconf2-dev monodevelop-nunit
sudo apt-get build-dep -y docky

# fix link in maverick (test)
if [ "$(lsb_release -c -s)" == "maverick" ]; then
   sudo touch /var/lib/apt/lists/ppa.launchpad.net_savoirfairelinux_ppa_ubuntu_dists_maverick_main_source_Sources
fi

# build docky stacks
cd /tmp
bzr branch lp:~docky-core/docky/stacks
cd stacks
./autogen.sh 
./configure --prefix=/usr
make
sudo make install
killall docky
nohup docky > /dev/null &
1

Install Docky Stacks (already compiled)
http://www.panticz.de/Download-and-install-Docky-Stacks-under-Ubuntu

Links
http://wiki.go-docky.com/index.php?title=Installing
http://www.omgubuntu.co.uk/2010/06/stacks-for-docky-looks-like-a-dream-works-like-one-too/

Install neatx

# server
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:freenx-team
sudo apt-get update
sudo apt-get install neatx-server

# client
http://www.nomachine.com/download-client-linux.php
wget http://64.34.161.181/download/3.4.0/Linux/nxclient_3.4.0-7_i386.deb -P /tmp
sudo dpkg -i /tmp/nxclient_*.deb

# printing
sudo chmod 755 /usr/lib/cups/backend/ipp

# Links
http://www.griessler.org/neatx-freenx-server-auf-ubuntu-10-04-lucid-lynx.php

apt / dpkg

# run update
LANG=en_US.UTF-8 apt-get update -y && apt-get dist-upgrade -y && apt-get autoremove -y && apt-get clean -y

# view avaiable package version
apt-cache show wget
apt-cache madison wget

# install specific version
apt-get install package name=version
apt-get install wget=1.6

# install from specific repository
apt-get install -t squeeze-backports wget

# view available versions
apt-cache policy chromium-browser

# autoupdate
http://www.panticz.de/debian-ubuntu-automatic-upgrades

# download package
apt-get download

# list deb package dependency

Configure file association / default application for file

# global system configuration
/etc/gnome/defaults.list

# user configuration
#~/.local/share/applications/defaults.list
~/.local/share/applications/mimeapps.list

sed -i 's|totem.desktop|vlc.desktop|g' /etc/gnome/defaults.list

sudo sed -i 's|totem.desktop|vlc.desktop|g' /etc/gnome/defaults.list

image/x-psd=gimp.desktop

# Links
https://help.ubuntu.com/community/AddingMimeTypes
http://www.libre-software.net/change-the-default-application-ubuntu-linux
http://askubuntu.com/questions/289337/how-can-i-change-file-association-globally

Syndicate content