Moblin: system installation and configuration

My notes for installing and configuring Moblin 2: recompiling the kernel, Fedora repos, X-Windows, networking, VNC and a few tricks.

Translation of the original in Catalan. Read it in: CatalàCastellano

Part 2 of 5Moblin notes
  1. moblin: Why do I use Fedora Core 10?
  2. Moblin: system installation and configuration
  3. Moblin + digital signage: features, roadmap and hardware
  4. Moblin: desktop customisation
  5. Developing with Moblin

This page was on the oriolrius.cat wiki (2009–2012). I recover it here as it was.

What is it?

Operating System aimed at MIDs, netbooks and similar devices. Based on Linux and Fedora.

Compiling the kernel for moblin

ALL PROCESSES MUST BE DONE AS A USER, UNLESS STATED OTHERWISE!!!

rpm -ivh kernel-2.6.29.rc2-13.1.moblin2.src.rpm
cd /root/rpmbuild/SPECS
vi kernel.spec

add this line:

%define netbook 1
  • install:
yum install rpmdevtools elfutils-libelf-devel make binutils-devel gcc

we install ncurses

yum install ncurses-devel
  • we modify the kernel
cd ~/rpmbuild/BUILD/kernel-2.6.31/linux-2.6.31
cp configs/kernel-netbook.config .config
make oldconfig
make meuconfig
  • we edit and add at the beginning of the .config file: '# x86'
  • we copy the config file:
cp .config ~/rpmbuild/SOURCES/config-netbook
  • build:
rpmbuild -bb --target=$(uname -m) --with baseonly --without debug --without debuginfo kernel.spec 2> build-err.log | tee build-out.log
  • install:
cd ~/rpmbuild/RPMS/i686
# install kernel
rpm -ivvh --force kernel-netbook-2.6.31.5-10.1.moblin2.i686.rpm
# install sources
rpm -ivvh --force kernel-netbook-devel-2.6.31.5-10.1.moblin2.i686.rpm
# "perf" tool that can be used to monitor performance counter
#events as well as various kernel internal events
rpm -ivh /home/oriol/rpmbuild/RPMS/i686/perf-2.6.31.5-10.1.moblin2.i686.rpm

Troubleshooting:

Enabling Fedora repos in Moblin

yum install wget
wget http://matteocorti.ch/files/yum/fedora.repo
Edit the file and remove the # before ‘baseurl’, and then change the ‘$releasever’ to ‘10′.
wget https://fedoraproject.org/static/4EBFC273.txt
rpm --import 4EBFC273.txt

from now on the system updates:

yum update --disablerepo=fedora

to avoid package incompatibility problems.

X-Windows

re-configure X-Windows

  • run first:
init 3
  • log in as root, and then execute
X -configure
  • copy the generated file in /root/xorg.conf.new to /etc/X11/xorg.conf

nVidia driver

(not tested yet)

System configuration

  • /etc/sysconfig/*

Network

/etc/sysconfig/network

NETWORKING=yes
FORWARD_IPV4=yes
HOSTNAME=deep. openna.com
GATEWAY=0.0.0.0
GATEWAYDEV=

/etc/sysconfig/network-scripts/ifcfg-ethN

For more information click here.

DEVICE=eth0
IPADDR=208.164.186.1
NETMASK=255.255.255.0
NETWORK=208.164.186.0
BROADCAST=208.164.186.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no

Keyboard layout

  • change via gconf-editor
  • gconf:
    • /desktop/gnome/peripherals/keyboard/general/defaultGroup
    • /desktop/gnome/peripherals/keyboard/kbd/layouts

Configure date and time

system-config-date

Printing (CUPS)

  1. Firstly, launch CUPS manually with /etc/init.d/cups start
  2. Set up your printer at http://localhost:631 in your browser, assuming you add a printer named hp1
  3. Specify the default printer with "lpoptions -d hp1"
  4. Now you can print something with the default options simply with "lp text-file"

Connection Manager (conman)

Vodafone Mobile Connect

http://www.betavine.net/bvportal/resources/datacards/os/moblin

Modifying the installation CD/USB

http://moblin.org/documentation/moblin-image-creator-2/using-moblin-chroot

VINO: remote-desktop

  • We need the fedora repository, for more help add fedora repos (above).
  • We install vino: sudo yum install vino
  • we run:
/usr/libexec/vino-server &
gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true
vino-preferences
  • we configure VINO
  • now we can connect from a remote desktop

Multimedia

Tips and Tricks

  • xdyinfo: info on the X's
  • xwd: screenshots
xwd -root -screen > screen.xwd
convert screen.xwd screen.jpg
  • screen control:
xset +dpms
xset -dpms
xset dumps force <accio>
accio: standby, suspend or off
  • screensaver:
xset s on
xset s off
xset s time chg
  • change the wallpaper
gconf key "/desktop/moblin/background/picture_filename"