Fedora Setup

From Dogtag
Jump to: navigation, search

Installing Desktop

To install desktop:

$ dnf groupinstall "Fedora Workstation"

To start desktop manually:

$ startx

To adjust screen resolution:

$ xrandr
$ xrandr -s <resolution>

To enable desktop:

$ systemctl set-default graphical.target
$ reboot

To disable desktop:

$ systemctl set-default multi-user.target
$ reboot

Installing VNC

To install VNC service:

$ dnf install tigervnc-server

To set VNC password for a specific user:

$ su <USER>
$ vncpasswd
Password: ********
Verify: ********

Running VNC manually

Login to console, then execute the following command:

$ vncserver

Running VNC as service

To enable VNC service:

$ cp /usr/lib/systemd/system/vncserver@.service /etc/systemd/system

Edit /etc/systemd/system/vncserver@.service and change <USER> with an actual user.

$ systemctl daemon-reload
$ systemctl enable vncserver@:1.service
$ systemctl start vncserver@:1.service

If VNC is broken after uninstalling IPA, reinstall GNOME:

$ dnf install gnome-shell

Enabling Random Number Generator

$ yum install haveged
$ systemctl enable haveged.service
$ systemctl start haveged.service
$ yum install rng-tools
$ systemctl enable rngd.service
$ systemctl start rngd.service

Enabling NTP

$ timedatectl set-ntp true --adjust-system-clock

Increasing Disk Space

See LVM.

Disabling Firewall

See Firewall.

Creating a User

To create a user:

$ useradd <username>
$ passwd <username>

To give a user sudo privileges:

$ usermod -aG wheel <username>

See also How To Edit the Sudoers File on Ubuntu and CentOS.

Generating SSH Key

$ ssh-keygen

References