Open main menu

CDOT Wiki β

Changes

Raspberry Pi Fedora Remix Administration

256 bytes added, 13:44, 18 September 2012
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.'''
=== Package Management Using the Graphical User Interface ===
To update software graphically, use the menu option Administration > Software Update Software.
To add/remove software graphically, use the menu option Administration > Add and Remove Software.
== Adding and removing Users ==
* 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>
Although the boot files must be on the SD card, the Linux filesystem may be on an external drive. To use such an external drive:
# Obtain a USB disk drive and attach it to your Raspberry Pi.
# Create a partition at least as large as the second partition on the SD card using the <code>fdisk</code> command. In this example, it's assumed that this partition is the first one on the USB disk(<code>/dev/sda1</code>).
# Copy the contents of the second SD card partition to the disk drive: <code>dd if=/dev/mmcblk0p2 of=/dev/sda''1''</code>
# Since the copy was made of the SD card while it was in use, the filesystem copy on the hard disk will be marked as "dirty". Use the filesystem check command to check and clean it: <code>fsck -y -f /dev/sda''1''</code>