Setting Hostname#

$ hostnamectl set-hostname <hostname>

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 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#

See NTP.

Increasing Disk Space#

See LVM.

Disabling Firewall#

See Firewall.

Creating a User#

To create a user:

``$ useradd ``
``$ passwd ``

To give a user sudo privileges:

``$ usermod -aG wheel ``

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

References#