Skip to content

abc34/how-to

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

how-to CentOS 7

Disable SELinux and Disable FirewallD

systemctl disable firewalld.service
sed -i /etc/selinux/config -r -e 's/^SELINUX=.*/SELINUX=disabled/g'
systemctl reboot

Enable/restore ssh access user=admin by public key authentication, SELinux

chown -R admin:admin /home/admin/.ssh
chmod 700 /home/admin/.ssh;
chmod 600 /home/admin/.ssh/*
restorecon -R -v /home/admin/.ssh

Installing ZFSonLinux

yum -y update && systemctl reboot   # Update and reboot first, to load any upgraded kernel
yum -y install epel-release
yum localinstall --nogpgcheck http://archive.zfsonlinux.org/epel/zfs-release.el7.noarch.rpm
yum -y install kernel-devel zfs
systemctl reboot

bash conditions

[ -e path/to/fileordir ] return true if fileordir exist
[ -f path/to/fileordir ] return true if fileordir is file and exist
[ -d path/to/fileordir ] return true if fileordir is dir and exist

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages