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
- moblin: Why do I use Fedora Core 10?
- Moblin: system installation and configuration
- Moblin + digital signage: features, roadmap and hardware
- Moblin: desktop customisation
- 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.
Links
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:
- Work around this bug in moblin kernel building by adding "%_default_patch_fuzz 2" to ~/.rpmmacros
- Guide: http://fedoraproject.org/wiki/Docs/CustomKernel
- Howtoforge guide: http://www.howtoforge.com/kernel_compilation_fedora
- Another interesting guide: http://wiki.centos.org/HowTos/Custom_Kernel
- Kernel moblin from intel knowledge base: http://software.intel.com/en-us/articles/compiler-moblin2-kernel-sources-with-intel-compiler/
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)
- Firstly, launch CUPS manually with /etc/init.d/cups start
- Set up your printer at http://localhost:631 in your browser, assuming you add a printer named hp1
- Specify the default printer with "lpoptions -d hp1"
- Now you can print something with the default options simply with "lp text-file"
Connection Manager (conman)
- /usr/lib/connman/test: scripts written in python that via dbus change or gather information from the connection manager
- 3g: http://www.betavine.net/bvportal/blog/view.html?blogId=133&postId=ff80808122c6188b01232a3e936809f3&redirectUrl=redirect:/community/linux
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"