Larger fonts for XBMC in Raspbian

Edit the file /usr/share/xbmc/addons/skin.confluence/720p/Font.xml and add the following code inside the block:

     
    
        
            font10
            Roboto-Regular.ttf
            14
        
        
            font12
            Roboto-Regular.ttf
            23
        
        
            font13
            Roboto-Regular.ttf
            25
        
        
            font14
            Roboto-Regular.ttf
            25
        
        
            font16
            Roboto-Regular.ttf
            25
        
        
            font30
            Roboto-Regular.ttf
            30
        
        
            fontContextMenu
            Roboto-Regular.ttf
            25
        


    
        
            font10_title
            Roboto-Bold.ttf
            12
        
        
            font12_title
            Roboto-Bold.ttf
            17
        
        
            font13_title
            Roboto-Bold.ttf
            20
        
        
            font24_title
            Roboto-Bold.ttf
            24
        
        
            font28_title
            Roboto-Bold.ttf
            28
        
        
            font30_title
            Roboto-Bold.ttf
            30
        
        
            font35_title
            Roboto-Bold.ttf
            35
        
        
            font45caps_title
            Roboto-Bold.ttf
            45
        
        
            font_MainMenu
            Roboto-Bold.ttf
            
            40
        
        
            WeatherTemp
            Roboto-Bold.ttf
            80
        
    

To select the newly created fontset go to “System > Settings > Appearance > Skin > Fonts” and change it to the blank value.

If you edit the file /usr/share/xbmc/addons/skin.confluence/720p/language/English/strings.po (or the corresponding file to your current language) and add the following code at the end it should appear “Massive” and not a blank text in the fonts option but that didn’t work for me though:

msgctxt "#31911"
msgid "Massive"
msgstr ""

Ref: http://forum.xbmc.org/showthread.php?tid=127671

Add Shutdown option to XBMC in Raspbian

When I installed XBMC in Raspbian I noticed that the shutdown menu only had the “Exit” button, which returned me to the ussual terminal login screen. I want my parents to use this media center so I have to make it as simple as possible.

After some time searching on the net I found the solution. You have to become root (using su, note that if you haven’t yet changed roots password you can do it by running sudo passwd) and create a file named /var/lib/polkit-1/localauthority/50-local.d/xbmc.pkla with those options (in my case I had to change the xbmc user to pi because thats the one that runs XBMC):

[Actions for xbmc user]
Identity=unix-user:xbmc
Action=org.freedesktop.upower.*;org.freedesktop.consolekit.system.*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

If you want to change or remove some of the menu options in the shutdown window just edit the /usr/share/xbmc/addons/skin.confluence/720p/DialogButtonMenu.xml file. There you can change the option to “no” if you want to hide a button for example.

Ref: http://www.raspberrypi.org/phpBB3/viewtopic.php?p=127003
http://wiki.xbmc.org/index.php?title=HOW-TO:Suspend_and_wake_in_Ubuntu

Install script for XBMC in Raspbian

# Install XBMC
sudo sh -c "echo 'deb http://archive.mene.za.net/raspbian wheezy contrib' > /etc/apt/sources.list.d/mene.list"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 5243CDED
sudo apt-get update
sudo apt-get install xbmc

# Add input group if it doesn't exist
egrep -i "^input" /etc/group
if [ $? -ne 0 ]; then
    sudo addgroup --system input
fi

# Make keyboard work
sudo sh -c "echo 'SUBSYSTEM=="input", GROUP="input", MODE="0660"' > /etc/udev/rules.d/99-input.rules"
sudo sh -c "echo 'KERNEL=="tty[0-9]*", GROUP="tty", MODE="0660"' >> /etc/udev/rules.d/99-input.rules"

# Add current user to groups
$USER=`awk -F: "/:$(id -u):/{print \$1}" /etc/passwd`
sudo usermod -a -G audio $USER
sudo usermod -a -G video $USER
sudo usermod -a -G input $USER
sudo usermod -a -G dialout $USER
sudo usermod -a -G plugdev $USER
sudo usermod -a -G tty $USER

# Enable autoboot and configure current user
sudo sed -i 's/ENABLED=0/ENABLED=1/g' /etc/default/xbmc
sudo sed -i 's/USER=xbmc/USER='"$USER"'/g' /etc/default/xbmc

Ref: http://michael.gorven.za.net/raspberrypi/xbmc

Disable power management for TL-WN725N (8188eu driver) in Raspbian

If your wifi connections switches off after being connected for some time sometimes it may be fixed by disabling the power management so it never goes to power saving mode. Create the file /etc/modprobe.d/8188eu.conf with this content:

options 8188eu rtw_power_mgnt=0 rtw_enusbss=0

Restart Raspbian and check those options with those commands:

$ cat /sys/module/8188eu/parameters/rtw_power_mgnt
0
$ cat /sys/module/8188eu/parameters/rtw_enusbss
0

Ref: https://github.com/xbianonpi/xbian/issues/217

Configure the locale and keyboard layout in Raspbian

I have a keyboard with the spanish layout (with the “ñ” key, etc.) but Raspbian comes by default only with the english locale and keyboard layout. To make my keyboard work correctly I first added the spanish es_ES.UTF-8 locale on the system:

$ sudo dpkg-reconfigure locales

Then configure the keyboard layout:

$ sudo dpkg-reconfigure keyboard-configuration

You may also change the time zone to your country:

$ sudo dpkg-reconfigure tzdata

Ref: http://wiki.bandaancha.st/C%C3%B3mo_espa%C3%B1olizar_tu_Raspberry_Pi

  • Page 1 of 19
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • ...
  • 19
  • >