, ,

Category: ubuntu

  • Ubuntu – Installation of Great Little Radio Player

    # install dependencies – gstreamer sudo add-apt-repository -y ppa:gstreamer-developers/ppa sudo apt-get update sudo apt-get install -y gstreamer1.0* sudo apt-get install -y libgstreamer* #sudo apt-get install -y libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev # download #wget http://downloads.sourceforge.net/project/glrp/v1.4.4/greatlittleradioplayer_1.4.4_i386.deb wget http://downloads.sourceforge.net/project/glrp/v1.4.4/greatlittleradioplayer_1.4.4_amd64.deb # install sudo dpkg -i greatlittleradioplayer_1.4.4_amd64.deb # start greatlittleradioplayer References 1. http://linuxg.net/how-to-install-great-little-radio-player-1-4-4-on-ubuntu-linux-mint-debian-and-derivates/ 2. http://ubuntuguide.org/wiki/Ubuntu_Precise_Media_Players 2. http://superuser.com/questions/124943/how-can-i-resolve-gstreamer-dependencies-in-ubuntu

  • Ubuntu – 64 bits or 32 bits – Determine the Computer Architecture using bash in the terminal

    Using a bash function to determine the CPU architecture: amd64 or i386, x86_64 or i386 function os_cpu_bits() { if uname -a | grep “x86_64” 1> /dev/null then echo “amd64” elif uname -a | grep “i386” 1> /dev/null then echo “i386” else echo “unknown” fi } architecture=$(os_cpu_bits) echo “$architecture” # amd64 References 1. http://askubuntu.com/questions/41332/how-do-i-check-if-i-have-a-32-bit-or-a-64-bit-os 2. http://www.linuxjournal.com/content/return-values-bash-functions

  • Xfce – Configuration and Tweaks – Getting Started

    1. application menu display Application menu (right click) -> Uncheck “Show Button title” 2. Terminal Color not visible Application menu -> Terminal Emulation Edit-> Profile preferences -> Colors uncheck : “Use colors from system theme” Build in Schemes like “White on black” Or select custom Text color and background 3. remove silly scrollbars sudo add-apt-repository…

  • Disk space – using du to analyse tree and file sizes in Linux

    Size Of Directory and Disk Space du -s .archived/ du -sk k: result in KB x: expands but only on the local file system (does not follow NFS Links) du -xh | egrep “^[0-9\.]+[GT]” # Using root dir to start du -xh / |egrep “^[0-9\.]+[GT]” # Flat @directory level du -Sh |egrep “^[0-9\.]+[GT]” du -x…

  • Ubuntu – Add International Language Locales

    Adding additional locales can be necessary to read date information in available in certain languages only. Support for international dates # check all available locales locale -a # check if the german locale is available cat /usr/share/i18n/SUPPORTED|grep de_DE.UTF-8 # de_DE.UTF-8 # add german locale sudo locale-gen de_DE sudo locale-gen de_DE.UTF-8 # update server locale information…

  • Python – Spynner – Test Scripts

    Spynner is a stateful programmatic web browser module for Python based on PyQT and WebKit. How to install Spynner – easy 🙂 > cat spynner-test.py # -*- coding: utf-8 -*- import spynner import pyquery import os os.environ[‘DISPLAY’] = ‘:0.0’ def main(): browse_via_jquery() browse_using_xpath() browse_via_webkit() download_image() def browse_via_jquery(): browser = spynner.Browser(debug_level=spynner.DEBUG) browser.create_webview() browser.show() #browser.hide() browser.load(“http://www.wordreference.com”) browser.load_jquery(True)…

  • Unix – Rename Files recursively using a for-loop and find command

    find . -name “*.flv.mp4” | while read file; do echo “$file”; mv “$file” “${file%.flv.mp4}.mp4” #mv “$file” “$(expr “$file” : ‘\(.*\)\.flv.mp4’).mp4″ done; Notes: rename rename does not work: “$rename .html .txt *.html” results in… syntax error at (eval 1) line 1, near “.” basename basename does not work – only renames the filename and strip path!…

  • Unix – Collection of useful bash aliases

    The following aliases have made my unix life 10x easier 🙂 cat ~/.bash_aliases alias pj=’ps -fA|grep java’ # pdf viewer alias v=’qpdfview’ # open browser alias b=’x-www-browser’ # check space left in drives alias space=’df -h’ # open password gorilla alias pw=’password-gorilla’ # Show hidden files alias l.=’ls -d .* –color=auto’ # cd .. aliases…

  • Ubuntu – Removing Unity and Getting Started with Xfce

    # Install the gnome-fallback-session and Xfce sudo apt-get install gnome-session-fallback xfce4 -y # Check if the new sessions have been actually installed ls -ail /usr/share/xsessions total 48 drwxr-xr-x 2 root root 4096 2012-04-15 11:55 ./ drwxr-xr-x 307 root root 12288 2012-04-15 11:55 ../ -rw-r–r– 1 root root 233 2011-12-04 22:15 gnome-classic.desktop -rw-r–r– 1 root root…

  • Ubuntu – How to Install Apple Safari in Ubuntu 12.04, 12.10, 13.10, 14.04, 14.10

    Apple Safari Installation in Ubuntu Firstly install PlayOnLinux, which allow easy installation of Safari in Ubuntu. PlayOnLinux also enables the easy installation of several games and application designed to run with Microsoft Windows. PlayOnLinux wget -q -O- http://deb.playonlinux.com/public.gpg | sudo apt-key add – sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list sudo apt-get update # useful dependencies sudo…