User avatar
tedsluis
Posts: 107
Joined: Sun Mar 03, 2013 11:49 am
Location: The Netherlands

Perform tasks like raspi-config in Pidora

Tue May 28, 2013 8:40 pm

Users who are accustomed to Raspbian ask sometimes for a tool like "Raspi-config". As far as I know here is no such tool for Pidora, but in Pidora you can perform the things "Raspi-config" does in a different way. More in the fedora way. And you can re-run the "firstboot" tool.
Below I have listed the tasks you can perform with "Raspi-config" and I have mentioned how you could perform the task in Pidora.

Firstboot
Pidora has a tool called "firstboot" that is used to configure basic system settings during the first boot. It is possible to re-run the "firstboot" by doing:

Code: Select all

# systemctl enable firstboot-graphical.service   (this will launch the firstboot process after a reboot)
# rm /etc/sysconfig/firstboot
# reboot
More info about what things you can configure with the firstboot tool: http://zenit.senecac.on.ca/wiki/index.p ... _Firstboot
And how to re-run firstboot: http://www.raspberrypi.org/phpBB3/viewt ... 89#p356189

Expand_rootfs (Expand root partition to fill SD card):
Here is an instruction how to expand the root file system using command line: http://www.raspberrypi.org/phpBB3/viewt ... 51&t=45265
If a GUI is available you could re-run "firstboot" to expand rootfs.

Overscan (Change overscan):
You can change the overscan by setting parameters in the /boot/config.txt file:
overscan_left=12 number of pixels to skip on left
overscan_right=10 number of pixels to skip on right
overscan_top=10 number of pixels to skip on top
overscan_bottom=20 number of pixels to skip on bottom
disable_overscan set to 1 to disable overscan
You can find more display options in this wiki page: http://elinux.org/RPiconfig#Video
Or run "firstboot" (GUI).

Configure_keyboard (Set keyboard layout):
The set the keyboard layout you can edit this file: /etc/sysconfig/keyboard

Code: Select all

KEYTABLE="us-acentos"
MODEL="pc105"
LAYOUT="us"
VARIANT="intl"
You can find the available keyboard maps here: "/lib/kbd/keymaps/i386/qwerty/"

Code: Select all

find /lib/kbd/keymaps/i386/qwerty/ -iname "*us*"
/lib/kbd/keymaps/i386/qwerty/us.map.gz
/lib/kbd/keymaps/i386/qwerty/br-latin1-us.map.gz
/lib/kbd/keymaps/i386/qwerty/is-latin1-us.map.gz
/lib/kbd/keymaps/i386/qwerty/us-acentos.map.gz
Or you can re-run "firstboot" to change it..

change_pass (Change password for 'root' user):

Code: Select all

# su <rootpassword>
# passwd username
At http://www.pidora.ca you can find the wiki. The page http://zenit.senecac.on.ca/wiki/index.p ... nistration explain the use of su, sudo, root privileges and how to change a password.

change_locale (Set locale):
Run firstboot (GUI).

change_timezone (Set timezone):
Use the command: ln -sf /usr/share/zoneinfo/dir/<zonefile> /etc/localtime
Browse through the timezones given in “/usr/share/zoneinfo/” and choose which one you would like to use. Then create a symlink of that timezone on the “/etc/” directory with name “localtime“

Code: Select all

# cp /etc/localtime  /etc/localtime-old (to backup your current timezone)
# ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/locatime For ex: if you want it to set to CEST (Central European time) then use this command.
Or run firstboot to change the timezone (GUI).

Memory_split (Change memory split):
You can set the memory usage by setting parameters in the /boot/config.txt file:
gpu_mem=....
cma_lwm=....
cma_hwm=....
You can find more info about the memory settings at: http://elinux.org/RPiconfig#Memory
Here is an example: http://www.raspberrypi.org/phpBB3/viewt ... ma#p217665

ssh (Enable or disable ssh server)
Use this to check the status of the sshd daemon:

Code: Select all

# systemctl status sshd.service
sshd.service - OpenSSH server daemon
	  Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled)
	  Active: active (running) since Sat, 2013-05-25 12:50:07 CEST; 4h 56min ago
	Main PID: 661 (sshd)
	  CGroup: name=systemd:/system/sshd.service
		  └ 661 /usr/sbin/sshd -D

May 25 12:50:06 raspi.local systemd[1]: Starting OpenSSH server daemon...
May 25 12:50:07 raspi.local systemd[1]: Started OpenSSH server daemon.
May 25 12:50:08 raspi.local sshd[661]: Server listening on 0.0.0.0 port 22.
May 25 12:50:08 raspi.local sshd[661]: Server listening on :: port 22.
May 25 13:59:42 raspi.local sshd[1153]: Accepted password for root from 192.168.11.52 port 32932 ssh2
You can also use:

Code: Select all

systemctl start sshd.service  
systemctl stop sshd.service
systemctl enable sshd.service  (starts this service at booting)
More info about controlling sshd: http://docs.fedoraproject.org/en-US/Fed ... -sshd.html

boot_behaviour (Start desktop on boot?)
Switch to run level 3 (command line):

Code: Select all

# ln -sf /usr/lib/systemd/system/graphical.target /etc/systemd/system/default.target
Switch to run level 5 (GUI):

Code: Select all

# ln -sf /usr/lib/systemd/system/multi-user.target /etc/systemd/system/default.target
For more info check about run levels: http://www.raspberrypi.org/phpBB3/viewt ... 0&p=358411
--- If you cannot divide then you cannot multiply. ---

gardart
Posts: 1
Joined: Wed Jul 17, 2013 1:50 pm

Re: Perform tasks like raspi-config in Pidora

Wed Jul 17, 2013 1:59 pm

There is a typo in the text above, to switch between the runlevels, you should type the following commands:

Switch to run level 3 (command line):
# ln -sf /usr/lib/systemd/system/multi-user.target /etc/systemd/system/default.target

Switch to run level 5 (GUI):
# ln -sf /usr/lib/systemd/system/graphical.target /etc/systemd/system/default.target

ruggerio
Posts: 33
Joined: Tue Jun 11, 2013 11:36 am

Re: Perform tasks like raspi-config in Pidora

Wed Jul 24, 2013 7:20 am

try using
systemctl disable graphical.target
systemctl enable multi-user.target
--> for runlevel 3

systemctl enable graphical.target
--> for runlevel 5

...this should make the same as manual removing the symlinks.

you can always go manually to runlevel 5 running the following in bash:
systemctl start graphical.target

Return to “Pidora / Fedora”