Linux server setup

Fedora


tftp


1.) Install the tftp-server package
yum install -y tftp-server
2.) Enable TFTP by making the following change to the /etc/xinetd.d/tftp file
Find disable = yes, make it no
3.) Turn everything on and start the xinetd service
chkconfig tftp on
/sbin/chkconfig xinetd on
/sbin/service xinetd start
4.) Poke a hole in the firewall to allow TFTP access
CLI: Insert the following line before the “COMMIT” line of /etc/sysconfig/iptables and then restart the service with ‘service iptables restart’:
-A INPUT -m state --state NEW -m udp -p udp --dport 69 -j ACCEPT
GUI: System -> Administration -> Firewall, put a checkmark on TFTP, and finally click apply.
Additional Information:
The TFTP server root directory is set to /var/lib/tftpboot/ by default but can be changed in the/etc/xinetd.d/tftp file.
Proper permissions to allow the TFTP daemon to update the files located in the TFTP server root directory are 666:
chmod 666 /var/lib/tftpboot/bootpImage




[root@owl ~]# dnf grouplist -v
...
Fedora Workstation (workstation-product-environment)
...
Basic Desktop (basic-desktop-environment)
...

KDE Desktop Environment


Desktop Environment is not neccessary for Server usage, though. But Sometimes installation or using an application requires Desktop Environment, then build Desktop Environment as follwos.

[1] Install KDE Desktop Environment on here.
  [root@dlp ~]# dnf -y group install "KDE Plasma Workspaces" 
[2] Input a command like below after finishing installation of new packages.
  [root@dlp ~]# echo "exec /usr/bin/startkde" >> ~/.xinitrc 
  [root@dlp ~]# startx


GNOME



  yum groupinstall gnome


Adding gdm to start automatically:


  systemctl enable gdm.service

Restart your computer and it should automatically execute gdm and xorg should work out of the box unless you need special video drivers.

SELinux


As root, open the file /etc/selinux/config then change the line SELINUX=enforcing to

 SELINUX=disabled

startx


The startx script in Fedora will read /etc/sysconfig/desktop for the “DESKTOP” variable (through /etc/X11/xinit/Xclients) and starts the desktop environment depending on it. While the default value for “DESKTOP” is set to “GNOME”, we will get to gnome if we don’t set the variable. When we want to startx to KDE we just need to add one line to /etc/sysconfig/desktop:

  DESKTOP="KDE"

If there is already one line that defines “DESKTOP”, just change the value of it.

Then we will start KDE when we run startx from console.

Free additional gift

The “DISPLAYMANAGER” in the /etc/sysconfig/desktop file is used to specify the default display manager. To make KDM the default display, just add this line:

  DISPLAYMANAGER="KDE"

留言

熱門文章