Wednesday, January 30, 2013

Resurection of the old

Let's cast a spell upon the public.
Disenchant them with a bad taste,
present them with the old switch-a-roo.

Windows 8, Unity, Gnome 3:  Hence forth I would return to Slackware but such is the sad cow that can't moo without the farmer.   So I reconcile with Ubuntu. sigh

================================================================
Below is my script to make life easier if you're using Ubuntu.

Cut below and paste into a file called Fixme.

Save it and type:
 sudo sh Fixme

Sit back and watch the magic.
Note that gedit will open a text file and if you look below you can see the contents you need paste into and save it.  Look for the marble mouse additions below.

############################################## SNIP ###########
#Updates to great software
sudo apt-add-repository -y ppa:ubuntu-wine/ppa
sudo apt-add-repository -y ppa:ferramroberto/minitube
sudo apt-add-repository -y ppa:otto-kesselgulasch/gimp
sudo apt-add-repository -y ppa:n-muench/vlc
sudo add-apt-repository -y ppa:gloobus-dev/gloobus-preview
sudo add-apt-repository -y ppa:marlin-devs/marlin-daily
sudo add-apt-repository -y ppa:tiheum/equinox
sudo apt-add-repository -y ppa:jon-severinsson/ffmpeg

gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

sudo apt-get -y update


#Remove Scrollbar Overlays
sudo apt-get -y remove overlay-scrollbar liboverlay-scrollbar-0.2-0 liboverlay-scrollbar3-0.2-0

#Remove global menubar
sudo apt-get -y autoremove appmenu-gtk appmenu-gtk3 appmenu-qt

#Remove application tracking software
sudo apt-get -y remove popularity-contest

#Stop error reports
sudo service apport stop ; sudo sed -ibak -e s/^enabled\=1$/enabled\=0/ /etc/default/apport ; sudo mv /etc/default/apportbak ~

#Stop updates
sed -ibak -e s/^NoDisplay\=true$/NoDisplay\=false/ /etc/xdg/autostart/update-notifier.desktop ; sudo mv /etc/xdg/autostart/update-notifier.desktopbak ~
sudo dconf write /com/ubuntu/update-notifier/no-show-notifications true
sudo gconftool -s --type bool /apps/update-notifier/auto_launch false

#Remove sales software
sudo apt-get -y remove unity-scope-musicstores unity-scope-video-remote

#Good software
sudo apt-get -y install celestia mesa-utils blender vim-gnome build-essential k9copy devede minitube avidemux gimp banshee gftp synaptic vlc ubuntu-restricted-extras myunity gnome-tweak-tool wine1.4 audacity xscreensaver xscreensaver-gl-extra xscreensaver-data-extra unoconv dconf-tools marlin ubuntu-restricted-extras ttf-aenigma ttf-denemo faience-theme faience-icon-theme faenza-icon-theme ffmpeg
#Enable DVD playback
sudo sh /usr/share/doc/libdvdread4/install-css.sh

#Set the default window manager
/usr/lib/lightdm/lightdm-set-defaults --session gnome-classic

#Fix minitube

sudo mv /usr/lib/i386-linux-gnu/gstreamer-0.10/libgstvideoparsersbad.so /usr/lib/i386-linux-gnu/gstreamer-0.10/libgstvideoparsersbad.so.bak
sudo mv /usr/lib/x86_64-linux-gnu/gstreamer-0.10/libgstvideoparsersbad.so /usr/lib/x86_64-linux-gnu/gstreamer-0.10/libgstvideoparsersbad.so.bak


#Fix Middle Mouse Paste
gsettings set org.gnome.settings-daemon.peripherals.mouse middle-button-enabled true

#Add support to scrolling features of Marble Mice


sudo gedit `locate xorg.conf.d | grep d$`/50-marblemouse.conf

#Paste the following then logout and log back in
#Section "InputClass"
#        Identifier  "Marble Mouse"
#        MatchProduct "Logitech USB Trackball"
#        MatchIsPointer "on"
#        MatchDevicePath "/dev/input/event*"
#        Driver "evdev"
#        Option "ButtonMapping" "1 2 3 4 5 6 7 8 9"
#        Option "EmulateWheel" "true"
#        Option "EmulateWheelButton" "8"
#        Option "ZAxisMapping" "4 5"
#        Option "XAxisMapping" "6 7"
#        Option "Emulate3Buttons" "true"
#EndSection

#Advanced configuration
# https://help.ubuntu.com/community/Logitech_Marblemouse_USB

#Remove global menu extension
##Firefox
# Tools/Addons/Extensions ; disable global extension

#Wine
# For 32 bit applications - One time
WINEARCH=win32 winecfg 

#Nvidia
# sh NVIDIA-Linux-x86_64-310.19.run  --no-runlevel-check --no-x-check -a -z