Difference between revisions of "Fedora install for my own purposes"
From dbawiki
(→Assign static IP address) |
(→Assign static IP address) |
||
| Line 51: | Line 51: | ||
After... | After... | ||
<pre> | <pre> | ||
| − | |||
TYPE=Ethernet | TYPE=Ethernet | ||
| − | # | + | PROXY_METHOD=none |
| + | BROWSER_ONLY=no | ||
| + | #BOOTPROTO=dhcp | ||
BOOTPROTO=none | BOOTPROTO=none | ||
| − | + | IPADDR=192.168.1.15 | |
| − | IPADDR=192.168.1. | ||
| − | |||
NETMASK=255.255.255.0 | NETMASK=255.255.255.0 | ||
| − | |||
GATEWAY=192.168.1.1 | GATEWAY=192.168.1.1 | ||
| − | + | DNS1=192.168.1.112 | |
| − | DNS1=192.168.1. | ||
DNS2=8.8.8.8 | DNS2=8.8.8.8 | ||
DEFROUTE=yes | DEFROUTE=yes | ||
IPV4_FAILURE_FATAL=no | IPV4_FAILURE_FATAL=no | ||
| − | + | IPV6INIT=yes | |
| − | + | IPV6_AUTOCONF=yes | |
| − | NAME= | + | IPV6_DEFROUTE=yes |
| − | + | IPV6_FAILURE_FATAL=no | |
| − | UUID= | + | IPV6_ADDR_GEN_MODE=stable-privacy |
| − | + | NAME=enp0s25 | |
| − | + | UUID=a8a3bec5-64b0-34de-9e27-9c732082c94b | |
ONBOOT=yes | ONBOOT=yes | ||
| − | + | AUTOCONNECT_PRIORITY=-999 | |
| − | + | DEVICE=enp0s25 | |
| + | ZONE=FedoraWorkstation | ||
</pre> | </pre> | ||
Revision as of 20:19, 1 May 2018
At time of writing, Fedora 27 is current stable version
Contents
Download and install Fedora
Configure Fedora
Disable SELinux
Use the /usr/sbin/getenforce or /usr/sbin/sestatus commands to check the status of SELinux
$ /usr/sbin/getenforce Enforcing
or
$ /usr/sbin/sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: enforcing Mode from config file: enforcing Policy version: 23 Policy from config file: targeted
Change SELINUX to disabled in /etc/selinux/config
sudo vi /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=enforcing # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted
sudo reboot
Assign static IP address
Choose the network link to change
ifconfig -a
Easiest method is to use the command line!
vi /etc/sysconfig/network-scripts/ifcfg-<linkname>
Before...
After...
TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no #BOOTPROTO=dhcp BOOTPROTO=none IPADDR=192.168.1.15 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 DNS1=192.168.1.112 DNS2=8.8.8.8 DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=enp0s25 UUID=a8a3bec5-64b0-34de-9e27-9c732082c94b ONBOOT=yes AUTOCONNECT_PRIORITY=-999 DEVICE=enp0s25 ZONE=FedoraWorkstation