This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
guides:how_to_get_a_usable_olpc_xo-1_system_in_2024 [2024-09-27 00:28] omolini [Enable network time updates (optional)] |
guides:how_to_get_a_usable_olpc_xo-1_system_in_2024 [2024-09-27 03:46] (current) omolini |
||
---|---|---|---|
Line 21: | Line 21: | ||
</code> | </code> | ||
- | ==== Enable network time updates (optional) ==== | + | ==== Enable Bash settings for root account ==== |
+ | By default, the OLPC installation has no bash settings. You can easily copy them from the OLPC account, which uses the global settings: | ||
+ | |||
+ | <code bash> | ||
+ | $ cp /home/olpc/.bashrc /root | ||
+ | </code> | ||
+ | |||
+ | ==== Enable network time and date updates (optional) ==== | ||
+ | If your OLPC has an empty clock battery, you may want to enable network time service. These steps help you configure and enable automatic updates every 10 minutes. | ||
<code bash> | <code bash> | ||
$ yum install ntpdate | $ yum install ntpdate | ||
Line 29: | Line 38: | ||
<code bash> | <code bash> | ||
- | $ echo "export EDITOR=nano" >> /root/.bashrc | + | $ echo "export EDITOR=nano" >> /etc/bashrc |
</code> | </code> | ||
Line 39: | Line 48: | ||
$ crontab -e | $ crontab -e | ||
</code> | </code> | ||
+ | |||
+ | Add the following line in the crontab file: | ||
+ | <code bash> | ||
+ | */10 * * * * ntpdate pool.ntp.org | ||
+ | <<<EMPTY LINE>>> | ||
+ | </code> | ||
+ | |||
+ | Note! The file must contain an empty line feed at the end or the crontab will not properly save. | ||
+ | |||
+ | ==== Set system time zone ==== | ||
+ | If you know your current time zone identifier, edit /etc/sysconfig/clock and change the ZONE variable from GMT to your time zone. If you don't know it, run tzselect, then edit the clock file. Once this is done, run tzdata-update. | ||
+ | |||
+ | <code bash> | ||
+ | $ tzselect | ||
+ | $ nano /etc/sysconfig/clock | ||
+ | $ tzdata-update | ||
+ | </code> | ||
+ | |||
+ | In my case, I had to change the default from ''ZONE="GMT"'' to ''ZONE="America/Chicago"''. | ||
Line 46: | Line 74: | ||
<code bash> | <code bash> | ||
+ | $ cd /etc/yum.repos.d | ||
$ nano rpmfusion.repo | $ nano rpmfusion.repo | ||
</code> | </code> | ||
Line 57: | Line 86: | ||
mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-$releasever&arch=$basearch | mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-$releasever&arch=$basearch | ||
enabled=1 | enabled=1 | ||
- | include=file:///etc/yum/olpc-exclude | ||
metadata_expire=7d | metadata_expire=7d | ||
+ | gpgcheck=0 | ||
</code> | </code> | ||
If you want to install a RPM package manually, you can also go to https://mirrors.rpmfusion.org/mm/publiclist/ , and once you have selected your OS version and architecture, scroll down to bottom to click on either http or rsync methods. You can the download whatever RPM package you need, and use the ''rpm -i'' utility to install the RPM package. | If you want to install a RPM package manually, you can also go to https://mirrors.rpmfusion.org/mm/publiclist/ , and once you have selected your OS version and architecture, scroll down to bottom to click on either http or rsync methods. You can the download whatever RPM package you need, and use the ''rpm -i'' utility to install the RPM package. | ||
- | |||
- | |||
==== Example ==== | ==== Example ==== | ||
- | Now that you have RPM Fusion enabled, to install X Multimedia System (xmms) with MP3 support, run the following: | + | Now that you have RPM Fusion enabled, to install X Multimedia System (xmms) and MP3 support, run the following: |
- | + | ||
- | <code bash> | + | |
- | $ yum install xmms | + | |
- | </code> | + | |
- | + | ||
- | This will install xmms music player from official Fedora repositories without MP3 input plugin. | + | |
<code bash> | <code bash> | ||
- | $ yum install xmms-mp3 | + | $ yum install xmms xmms-mp3 |
</code> | </code> | ||
- | This will install the MP3 input plugin from the RPM Fusion repository and place it under /usr/lib/xmms/input. | + | This will install xmms music player from official Fedora repositories and then install MP3 input support from the RPM Fusion repository. The MP3 input plugin will be placed in /usr/lib/xmms/input. |
{{tag>Guides Guides:Software Guides:"OLPC XO-1"}} | {{tag>Guides Guides:Software Guides:"OLPC XO-1"}} |