Editing User:Jebba/Fedora

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 91: Line 91:
===freemoe-fedora-install===
===freemoe-fedora-install===
-
Make & run this script; adjust the partition numbers to match your own setup.
+
Make & run this script:
  #!/bin/sh
  #!/bin/sh
Line 218: Line 218:
Note 2: If you reboot without powering off or perhaps yanking the battery, your device may appear as wlan2 or wlan3 etc.
Note 2: If you reboot without powering off or perhaps yanking the battery, your device may appear as wlan2 or wlan3 etc.
-
 
-
 
-
'''EDIT: UPDATE:''' by SimonGie 28/07/2010
 
-
 
-
This works for a network that has no encryption but will not connect to one that does.
 
-
Boot into Maemo and chroot into the Fedora install. Then yum install wpa_supplicant.
 
-
Then edit your wpa_supplicant.conf to something like this:
 
-
 
-
This config below is for two wireless networks...I have one at home and at work that I could connect to. Obviously you need to change the SSID and passkeys to your relevant info. If you only need to connect to one wlan, then leave the 2nd one off.
 
-
 
-
 
-
        ap_scan=1
 
-
        ctrl_interface=/var/run/wpa_supplicant
 
-
        network={
 
-
        ssid="network SSID 1"
 
-
        scan_ssid=1
 
-
        proto=WPA
 
-
        key_mgmt=WPA-PSK
 
-
        psk="Passkey1"
 
-
        pairwise=TKIP
 
-
        group=TKIP
 
-
        }
 
-
        network={
 
-
        ssid="network SSID 2"
 
-
        scan_ssid=1
 
-
        proto=WPA
 
-
        key_mgmt=WPA-PSK
 
-
        psk="Passkey2"
 
-
        pairwise=TKIP
 
-
        group=TKIP
 
-
        }
 
-
 
-
 
-
Save that. Then make a little initialisation script:
 
-
 
-
        vim wlanon
 
-
 
-
Put this in the file:
 
-
 
-
        wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -Dwext
 
-
        rhclient wlan0
 
-
 
-
 
-
and save it
 
-
Then
 
-
 
-
        chmod +x wlanon
 
-
 
-
Then reboot the phone and boot into Fedora desktop
 
-
Once logged in, run the script wlanon
 
-
This should initialise the wlan card, you can check this by typing iwconfig
 
-
 
-
If you have device does not exist errors, boot into Maemo, mount the Fedora partition and delete the file
 
-
 
-
        /etc/udev/rules.d/70-persistent-net.rules
 
-
 
-
Because the wireless MAC address changes for some reason and Udev assigns it a different name. Deleting that file will make Udev redetect it as wlan0
 
-
 
-
You should now have internet access.
 
-
 
-
Do a yum install NetworkManager-gnome and let it install. When eventually you boot into the desktop, NetworkManager should start and you will be able to connect to any wireless network, regarless of wpa_supplicant.conf
 
-
 
-
If NetworkManager complains about required resources, run this command from the terminal
 
-
 
-
      gtk-update-icon-cache -f /usr/share/icons/hicolor
 
-
 
-
NetworkManager is working flawlessly with my install.
 
-
--[[Special:Contributions/77.101.61.5|77.101.61.5]] 20:49, 27 July 2010 (UTC)
 
=X.org=
=X.org=
-
X is up and running with XFCE & openbox. I have the touchscreen working. I can do touchscreen calibration.
+
X is up and running with XFCE, but I don't have the touchscreen working. I can do touchscreen calibration though...
  # as root, I did this via ssh when networking was working
  # as root, I did this via ssh when networking was working
Line 296: Line 228:
  yum groupinstall XFCE
  yum groupinstall XFCE
   
   
-
  # Screen config.
+
  # not sure if the above drags this in or not
-
  yum install tslib xorg-x11-apps
+
  yum install tslib
   
   
  # fix /etc/hosts to this so XFCE doesn't complain:
  # fix /etc/hosts to this so XFCE doesn't complain:
Line 309: Line 241:
  # then next time you boot up, log in as root and run "ts" to calibrate.
  # then next time you boot up, log in as root and run "ts" to calibrate.
   
   
-
  # Uncomment this line in /etc/ts.conf:
+
  # You may need to uncomment this line in /etc/ts.conf:
  module_raw input
  module_raw input
Line 320: Line 252:
  yum update
  yum update
-
  yum install wireless-tools openssh-clients git
+
  yum install wireless-tools openssh-clients
  route add default gw 192.168.1.1
  route add default gw 192.168.1.1
-
 
-
* disable /etc/sysconfig/network-scripts/ifcfg-eth0
 
-
 
-
* Have lame network startup script run at boot.
 
-
 
-
* stop startup stuff
 
-
 
-
chkconfig abrtd off
 
-
chkconfig auditd off
 
-
chkconfig ip6tables off
 
-
chkconfig iptables off
 
-
chkconfig netconsole off
 
-
chkconfig netfs off
 
-
chkconfig restorecond off
 
-
 
-
* Build tools:
 
-
 
-
yum groupinstall --skip-broken "Development Tools"
 
-
 
-
 
-
yum install -y vim-enhanced file gqview xorg-x11-apps xterm
 
-
 
-
* Auto login, edit /etc/gdm/custom.conf
 
-
[daemon]
 
-
AutomaticLoginEnable=true
 
-
AutomaticLogin=jebba
 
-
 
-
* Edit /etc/inittab to set default runlevel to 5.
 
-
 
-
To get X pointer and keyboard working:
 
-
 
-
* Mount up Maemo root partition:
 
-
 
-
mkdir -p /mnt/maemo
 
-
mount -t ubifs ubi0:rootfs /mnt/maemo
 
-
 
-
* /usr/share/hal/fdi/* stuff from maemo to get touchscreen working in X. Copy it to /etc/hal/...
 
-
 
-
* Copy over xkb stuff to get numbers etc from keyboard working:
 
-
 
-
mv /usr/share/X11/xkb /usr/share/X11/xkb.f12
 
-
cp -a /mnt/maemo/usr/share/X11/xkb /usr/share/X11/xkb
 
-
 
-
* ofono
 
-
 
-
yum -y install glib2-devel dbus-devel libudev-devel
 
-
 
-
To initialize modem, you need to run this non-free command:
 
-
 
-
/mnt/initfs/sbin/phonet -a 0x6C -i phonet0
 
-
ifconfig phonet0 up # or:
 
-
ip link set dev phonet0 up
 
-
 
-
* misc misc misc
 
-
 
-
yum -y install openbox rxvt-unicode alsa-utils sox
 
-
 
-
'''UPDATE'''
 
-
 
-
I had issues updating via yum, and I had to rebuild the database. Boot into Maemo and mount and chroot the Fedora partition. Then run
 
-
      rm -f /var/lib/__db*
 
-
and then
 
-
      rpm --rebuilddb
 
-
 
-
Once it's done you should be able to run yum
 
-
--[[Special:Contributions/77.101.61.5|77.101.61.5]] 20:49, 27 July 2010 (UTC)
 
-
 
-
=Battery?=
 
-
Copying over the script from Mer to get the battery working appears to run, not certain how it is working yet.
 
-
 
-
cp -p /mnt/mer/etc/init.d/n900-support /etc/init.d/
 
-
# edit n900-support, adding this line:
 
-
# chkconfig: - 58 74
 
-
chkconfig --level 35 n900-support on
 
-
 
-
=watchdog=
 
-
To disable R&D mode, try this:
 
-
 
-
yum -y install watchdog
 
-
wget http://atorkhov.fedorapeople.org/n900_wd-1-1.noarch.rpm
 
-
rpm -Uvh n900_wd-1-1.noarch.rpm
 
-
 
-
==kludge up symlinks==
 
-
 
-
chroot /mnt/initfs/
 
-
ln -s /f12/tmp/bme-dbus-socket /tmp/bme-dbus-socket
 
-
 
-
Outside chroot:
 
-
ln -s /mnt/initfs/tmp/dsmesock /tmp/
 
-
sudo ln -s /mnt/initfs/tmp/.bmesrv /tmp/
 
-
 
-
cp -p /mnt/initfs/usr/lib/libbmeipc.so.0 /usr/lib
 
-
cp -p /mnt/initfs/usr/lib/hal/hald-addon-bme /usr/libexec/hald-addon-bme
 
-
cp -p /mnt/initfs/usr/share/hal/fdi/policy/10osvendor/10-bme.fdi /etc/hal/fdi/policy/10osvendor/
 
-
 
-
==watchdog other==
 
-
Here's some scripts that I got from somewhere, i think another fedora/n900 user. :)  It is another way to disable the watchdog without having to enter R&D mode.
 
-
 
-
===n900_wd===
 
-
#!/bin/sh
 
-
#
 
-
# chkconfig: 12345 01 99
 
-
# description: N900 watchdog kicker
 
-
#
 
-
 
-
# Source function library.
 
-
. /etc/rc.d/init.d/functions
 
-
 
-
[ -x /usr/sbin/wd_keepalive ] || exit 0
 
-
 
-
RETVAL=0
 
-
prog=wd_keepalive
 
-
pidfile=/var/run/wd_keepalive.pid
 
-
lockfile=/var/lock/subsys/n900_wd
 
-
 
-
start() {
 
-
echo -n $"Starting $prog: "
 
-
/usr/sbin/${prog} -c /etc/watchdog-omap.conf
 
-
RETVAL=$?
 
-
[ $RETVAL -ne 0 ] && (echo_failure; echo; return $RETVAL)
 
-
/usr/sbin/${prog} -c /etc/watchdog-twl4030.conf
 
-
RETVAL=$?
 
-
[ $RETVAL -eq 0 ] && touch $lockfile
 
-
[ $RETVAL -eq 0 ] && echo_success
 
-
[ $RETVAL -ne 0 ] && echo_failure
 
-
echo
 
-
return $RETVAL
 
-
}
 
-
 
-
stop() {
 
-
rm -f $lockfile $pidfile
 
-
}
 
-
 
-
case "$1" in
 
-
  start)
 
-
start
 
-
;;
 
-
  stop)
 
-
stop
 
-
;;
 
-
  status)
 
-
status $prog
 
-
RETVAL=$?
 
-
;;
 
-
  *)
 
-
echo $"Usage: $0 {start|status}"
 
-
exit 1
 
-
esac
 
-
 
-
===watchdog-twl4030.conf===
 
-
 
-
watchdog-device = /dev/twl4030_wdt
 
-
interval = 10
 
-
realtime = yes
 
-
priority = 1
 
-
 
-
===watchdog-omap.conf===
 
-
 
-
watchdog-device = /dev/watchdog
 
-
interval = 10
 
-
realtime = yes
 
-
priority = 1
 
=See also=
=See also=
Line 501: Line 271:
* [[User:Jebba/Mer | My docs on installing Mer, which is similar procedure]]
* [[User:Jebba/Mer | My docs on installing Mer, which is similar procedure]]
-
 
-
* [http://alexeytorkhov.blogspot.com/2010/02/running-fedora-arm-on-nokia-n900.html Another N900/Fedora user]
 

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)