Fedora 25 set up
- Upgrade
- Install
- Configure users, groups and sudo
- Update system
- Configure shell history
- Install RPM Fusion
- Firewall configuration
- Local email with postfix and mailx
- systemd targets
- Media
- Jekyll
- Other software
- Configure SSH server
- References
Upgrade
See Notes on Fedora DNF system upgrade.
Install
Configure users, groups and sudo
Remember to use visudo
instead of directly editing the sudoers files.
Verify
Use groupadd
to add groups. Use useradd
to add users. Use passwd
to
unlock users by setting their account passwords.
Update system
Clean dnf cache, upgrade system and reboot
Configure shell history
You may not need this. Check your shell’s documentation
In your user shell configuration files, set the environment variables related
to shell history: HISTFILE
, HISTSIZE
As fallback, add to /etc/profile
too
Install RPM Fusion
Install RPM Fusion.
Firewall configuration
I configure services but keep them globally disabled, and then selectively enable them with rich rules. When editing the rich rules, using a MAC address as source doesn’t work when the source has its MAC address spoofed. I haven’t tested with the source with real hardware MAC address. Using a IP in source works OK.
Local email with postfix and mailx
Install postfix and mailx
Edit /etc/postfix/main.cf
:
Enable and start service
Verify
Configure postfix mta
Test, opening with email client after sending it.
Send root email to other user
Edit /etc/aliases
Run
Test, opening with email client after sending it (as root).
Mail from cron jobs
After setting up local email in your system, restart the cron service so jobs start sending email notifications if they’re configured to do so
systemd targets
systemd’s targets serve similar purposes as traditional SysV runlevels.
List targets
This table
roughly maps systemd targets to SysV runlevels. SysV runlevel 3 ~=
multiuser.target
and SysV runlevel 5 ~= graphical.target
.
The default target is graphical.target
, so the machine boots into a
multi-user graphical system.
For example, to make the machine boot into a non-graphical multi-user system, run below command and reboot
Media
Image and photos
Audio/video playback
Audio/video processing
Jekyll
Other software
Configure SSH server
If you have specified an IP address on wich sshd has to listen to
(sshd_config
), add network-online.target
to its systemd unit.
References
- https://ask.fedoraproject.org/en/question/81052/local-user-mail/
- https://wiki.archlinux.org/index.php/systemd