Let’s go thru the Centreon Monitoring System installation one step at a time.We will be using Centos7 x64 it is the official supported version.Pre-Requisite Disable selinuxInstall Centreon Official Repository IMPORTANT: Allow only the Centos7 Base Repo and Centreon Repo – […]
How to setup chroot and bindfs
In order to allow a user to have restrict access to a specific directory we should use the chroot and bindfs setup:(tested on Centos 7 x64) bindfs Mount a directory to another location and alter permission bits. bindfs is a […]
How to Install Graylog on Centos 7
yum install epel-release -y vi /etc/yum.conf yum clean all yum install epel-release -y yum install pwgen -y yum install mongodb-org -y systemctl daemon-reload systemctl enable mongod.service systemctl start mongod.service yum install java-1.8.0-openjdk-headless -y yum install elasticsearch -y vi /etc/elasticsearch/elasticsearch.yml cluster.name: […]
Raspberry Pi Access Point
Raspberry Pi Access Point How To OBJECTIVE: Raspberry Pi as an Access Point to route all DHCPD clients via (external server, outside my country) INTRO: I already have a server with SSH on port 443 ready for tunnel, and I […]
Gitea how to install
1) Pre-Requisite # Install Mariadb yum -y install mariadb mysql -u root -p CREATE DATABASE gitea; CREATE USER ‘gitea’@’localhost’; SET PASSWORD FOR ‘gitea’@’localhost’ = PASSWORD(‘NEW_gitea’); grant all privileges on gitea.* to ‘gitea’@’localhost’; # Install go wget “https://dl.google.com/go/go1.10.linux-amd64.tar.gz” mv go1.10.linux-amd64.tar.gz /usr/local/ […]
How to install gogs on centos7
# INSTALL GO and Gogs (github opensource server) on CENTOS 7 wget “https://dl.google.com/go/go1.10.linux-amd64.tar.gz” mv go1.10.linux-amd64.tar.gz /usr/local/ cd /usr/local/ tar -zxvf go1.10.linux-amd64.tar.gz ln -s /usr/local/go/bin/go /usr/local/bin/go ln -s /usr/local/go/bin/godoc /usr/local/bin/godoc ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt adduser -c “Gogs” git su – git […]
chroot mount bind
mkdir -v -p /sftp/root/${USER}/home chown root.root /sftp/root/${USER} mount –bind //${DIR} /sftp/root/${USER}/home useradd -g tomcat -s /sbin/nologin ${USER} sshd_config Match Group tomcat AllowTcpForwarding no ForceCommand internal-sftp -u 0002 -d home ChrootDirectory /sftp/root/%u All folder must have permission as 777, so I […]
