Purpose

This page is dedicated to helping administer issues that don't fall under the initial setup and install.

These tutorials use the vi file editor, look for tutorials on how to use vi, it will make your life so much easier!

 

Rename Your Computer

View your hostname

hostname

Change your hostname

hostnamectl set-hostname <newhostname> --static
or
vi /etc/hostname

 

Check the status of SELinux

sestatus

 

Disable/Enable SELinux Permanently

vi /etc/sysconfig/selinux

change SELINUX=enabled to SELINUX=disabled /wq

(example)
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:

 

Disable/Enable SSH Server

systemctl start sshd.service      //start ssh server
systemctl stop sshd.service       //stop ssh server
systemctl restart sshd.service     //restart ssh server
systemctl status sshd.service        //view ssh server status

 

Kill a Process

top
k
(enter process ID "PID" you want to kill listed on the right and ENTER)
q
exit

 

Automatically Login a User

vi /etc/gdm/custom.conf

[daemon]
TimedLoginEnable=true
TimedLogin=yourusername
TimedLoginDelay=5

 

Logout a User from Commandline

who -u
kill <pid>

 

Install From Source/tar.gz

tar xzvf file.tar.gz
cd file
./configure
make
make install

****
To uninstall:
make uninstall

 

Install From Source/tar.bz2

tar -xvjf file.bz2
cd file
./configure
make
make install

****
To uninstall:
make uninstall

 

Enable/Disable A Service at Startup

systemctl enable foo.service
systemctl disable foo.service

 

Allow VNC to pass through the firewall

vi /etc/sysconfig/iptables
# Add the following line to the file:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5900 -j ACCEPT

 

Install fwbackups on CentOS 7

wget http://geekface.ca/downloads/fwbackups/fwbackups.sh && chmod 755 fwbackups.sh && ./fwbackups.sh

 

Install OpenShot From Source

dnf install python
dnf install frei0r-plugins
wget http://launchpad.net/openshot/1.3/1.3.0/+download/openshot-1.3.0.tar.gz
tar -xzvf openshot-1.3.0.tar.gz
cd openshot-1.3.0
python setup.py install

 

Installing Hedgewars from a .tar.bz2 Source File

Prepare Your System for Operation

dnf install cmake fpc gcc gcc-c++ qt-devel SDL-devel SDL_net-devel SDL_mixer-devel SDL_image-devel SDL_ttf-devel

Download and Extract the Hedgewars Source Code

mkdir ~/Hedgewars
cd ~/Hedgewars
wget http://download.gna.org/hedgewars/hedgewars-src-0.9.16.tar.bz2
tar -xvjf hedgewars-src-0.9.16.tar.bz2
cd hedgewars-src-0.9.16

Compile

cmake -Wno-dev
make
make install

Remove Traces of Souce

rm -rf ~/Hedgewars
exit

 

Wireless Walk-Through

Open terminal (Applications>System>Terminal) and log in as Root

su

Install the RPM Fusion repositories that include the Broadcom drivers

rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

Check which kernel version you have

uname -r

install the driver

dnf install kmod-wl

or if r-name displayed a kernel with a PAE in it

dnf install kmod-wl-PAE



*Wireless walk-through information was taken directly from:

Fedora Forums http://forums.fedoraforum.org

A more complete walk-through can be found here: http://forums.fedoraforum.org/showthread.php?t=239922

Thanks to stoat and bbfuller for help/tutorials/walk-throughs. I have personally benefited from your help too!

Copyright ©  Geekface Computers & Service

The Fedora logo is a trademark of Red Hat inc.