1,885
edits
Changes
→Adding Swap Space
The "root" user has full privilege -- she can do anything. There are four ways to gain root privilege:
# '''Login as "root" and enter the root password.''' This is useful when you can't log in as any other user. It is unwise to run applications as root unnecessarily -- for example, if you run a web browser as root, and a remote site exploits a security bug in the browser, then running the browser as root could enable the remote attacker could add or remove software or perform other administrative tasks.# '''Use a graphical an application that is hooked into the ''consolehelper'' system''', such as <code>system-config-network</code>. You will be prompted for a password (either the user password or the root password, depending on the application configuration) and then the application will run with enhanced privilege. Most of the applications on the Administration menu in the graphical interface work this way.
# '''Use the "su" command to switch users''' (by default, it will switch to the root user). Type <code>su</code> and press enter, and enter the root password when prompted. This is useful when you have a number of system administration commands you want to run in a row. However, you must remember to switch back to your regular user account as soon as you no longer require privilege -- to do so, type <code>exit</code> or press Ctrl-D (for "Done"!).
# '''Use the <code>sudo</code> command to switch users for the duration of one command.'''
* Add a user:
** <code>useradd ''name''</code> # The -m option required on some systems is not needed - the user's home directory will be created automatically.1
** <code>useradd -c "''Full Name''" ''username''</code>
* Set a password:
== Adding Swap Space ==
The Raspberry Pi Fedora Remix 14 doesn't provision swap space by default, since the advisability of swapping to SD is debated.
If you wish to add swap space, you can easily do so:
To make the card resize the second partition the first time the new card is booted:
# Mount the second partition: <code>mkdir /mnt/sd-partition-2p2; mount /dev/sda2 /mnt/sd-p2</code>
# Create the empty file <code>/.autoresize</code>: <code>touch /mnt/sd-p2/.autoresize</code>
# Unmount the partition: <code>umount /mnt/sd-p2</code>
== Changing the Memory Mix ==
The Raspberry Pi (model A or B) ships with 256M of memory. This memory is split between the ARM and GPU halves of the System-on-a-Chip (SOC). You can change the memory allocation by selecting a different start.elf program:
* For a 128M ARM / 128M GPU split (heavy graphics): <code>cp /boot/arm128_start.elf /boot/start.elf</code>