Saturday, July 20, 2013

Hauppauge HD PVR and Linux

Fun thing to do is record yourself playing a game.

http://wiki.linuxmce.org/index.php/Hauppauge_HD_PVR

Step 1:

sudo apt-get install v4l-utils


Step 2:

copy this into a file called record:

##########    SNIP  #####################################################

#!/bin/sh

/usr/bin/v4l2-ctl --verbose -d /dev/video0 --set-ctrl brightness=0x80 --set-ctrl contrast=0x40 --set-ctrl hue=0xf --set-ctrl saturation=0x40 --set-ctrl sharpness=0x80

cat /dev/video0 > output.ts


########### FIN #######################################################


Step 3:
chmod 755 record


Step 4:

./record


Your device should light up as it is recording.



Monday, March 25, 2013

Faster Better with XFCE4 Unity

Unity runs about three times slower than XFCE4.  So why did Canonical use it?

Unity is based on Gnome 3 and Compiz.  Most systems hardly support it.

Applications launch up to TEN times faster than in Unity.

XFCE4 out performs.

Wake up Canonical.,! Drink some coffee Fedora.  XFCE can be tweaked to perfection.




XScreensavers are still used by Xfce4!!!!!!


Different people require different work-flows.  Right or Left handed individuals need the ability to customize.


Touch demands a tiling window manager!
Who has the time to devote to window management?
12.04 ubuntu didn't have it but 12.10 does.

If you need it...

sudo apt-add-repository -y ppa:fossfreedom/xfwm4
sudo apt-get update
sudo apt-get upgrade xfce4

info at:
https://launchpad.net/~fossfreedom/+archive/xfwm4

Friday, February 1, 2013

Nice view



 Make your desktop shine
 Copy and paste this into a file called changefonts.
 Save it.
Open a console.,

type
sh changefonts

####################### S N I P ############################
#Fonts

gconftool-2 --type string --set  /desktop/gnome/interface/document_font_name "Nimbus Roman No9 L Bold 12"

gconftool-2 --type string --set /desktop/gnome/interface/font_name "Nimbus_Sans_L Bold 12"

gconftool-2 --type string --set /desktop/gnome/interface/monospace_font_name "Nimbus Mono L Bold 12"

gconftool-2 --type string --set /apps/metacity/general/titlebar_font "Nimbus Sans L Bold 13"

gconftool-2 --type string --set  /apps/nautilus/preferences/desktop_font "Nimbus Roman No9 L Bold 12"
#########################################

# Themes
gconftool-2 --type string --set /desktop/gnome/interface/gtk_theme Ambience

# If you don't like dark icons
#gconftool-2 --type string --set /desktop/gnome/interface/icon_theme Faenza-Darkest

gconftool-2 --type string --set /desktop/gnome/interface/icon_theme Faience-Azur

gconftool-2 --type string --set /apps/metacity/general/theme Faience-Ocre
# General

gconftool-2 --type string --set /apps/metacity/general/button_layout ":maximize,minimize,close"


gconftool-2 --type string --set /desktop/gnome/interface/gtk_theme Faience


gconftool-2 --type float --set /desktop/gnome/font_rendering/dpi 120

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