Moblin: instal·lació i configuració del sistema
Les meves notes per instal·lar i configurar Moblin 2: recompilar el kernel, repos de Fedora, X-Windows, xarxa, VNC i petits trucs.
Llegeix-lo en: CastellanoEnglish
Part 2 de 5Apunts de Moblin
- moblin: Per què uso Fedora Core 10?
- Moblin: instal·lació i configuració del sistema
- Moblin + digital signage: funcionalitats, roadmap i maquinari
- Moblin: personalització de l'escriptori
- Desenvolupar amb Moblin
Aquesta pàgina era al wiki d'oriolrius.cat (2009–2012). La recupero aquí tal com era.
Què és?
Sistema Operatiu orientat a MIDs, netbooks i similars. Basat en Linux i Fedora.
Links
Compilar kernel per moblin
TOTS ELS PROCESSOS S'HAN DE FER COM A USUARI, SI NO ES DIU EL CONTRARI!!!
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
instal·lem ncurses
yum install ncurses-devel
- modifiquem el kernel
cd ~/rpmbuild/BUILD/kernel-2.6.31/linux-2.6.31
cp configs/kernel-netbook.config .config
make oldconfig
make meuconfig
- editem i afegim a l'inici del fitxer .config: '# x86'
- copiem fitxer de config:
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/
Habilitar repos Fedora en 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
a partir d'ara els updates de sistema:
yum update --disablerepo=fedora
para evitar problemas de incompatibilidad de paquetes.
X-Windows
re-configure X-Windows
- first run:
init 3
- login as root, and then execute
X -configure
- copy the generated file in /root/xorg.conf.new to /etc/X11/xorg.conf
driver nVidia
(not tested yet)
Configuració del sistema
- /etc/sysconfig/*
Xarxa
/etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=yes
HOSTNAME=deep. openna.com
GATEWAY=0.0.0.0
GATEWAYDEV=
/etc/sysconfig/network-scripts/ifcfg-ethN
Per més informació click aquí.
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 manally by /etc/init.d/cups start
- Setup your printer by http://localhost:631 in your browser, assuming you add a printer named hp1
- Specify default printer by "lpoptions -d hp1"
- Now you can print sth with default options simply by "lp text-file"
Connection Manager (conman)
- /usr/lib/connman/test: scripts hechos en python y que via dbus cambian o recojen información del 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
Modificar CD/USB d'instal·lació
http://moblin.org/documentation/moblin-image-creator-2/using-moblin-chroot
VINO: remote-desktop
- Necessitem repositori de fedora, per més ajuda afegir fedora repos (més amunt).
- Instal·lem vino:
sudo yum install vino - executem:
/usr/libexec/vino-server &
gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true
vino-preferences
- configurem VINO
- ja podem connectar des d'un escriptori remot
Multimedia
Tips and Tricks
- xdyinfo: info de les X's
- xwd: captura de pantalles
xwd -root -screen > screen.xwd
convert screen.xwd screen.jpg
- control de la pantalla:
xset +dpms
xset -dpms
xset dumps force <accio>
accio: standby, suspend or off
- screensaver:
xset s on
xset s off
xset s time chg
- canviar fondo de pantalla
gconf key "/desktop/moblin/background/picture_filename"