If you have an existing data directory and wish to reset the root and user passwords, and to create a
2104 x bekeken
dnf install dnf-automatic
rpm -qi dnf-automatic
vim /etc/dnf/automatic.conf
upgrade_type = default
apply_updates = yes
system_name = name server
emit_via = motd
systemctl enable --now dnf-automatic.timer
systemctl list-timers *dnf-*
2002 x bekeken
Linux version
hostnamectl
cat /etc/*-release
lsb_release -a
Kernel version
uname -a
uname -mrs
cat /proc/version
1899 x bekeken
Single file copy scp file.txt root@192.168.1.22:/backup/ Directory copy scp -r /home/user/weekly root@192.168.1.22:/backup/weekly rsync -hvrPt /home/user/weekly root@192.168.1.22:/backup/
2019 x bekeken
On the host where the cron job is ssh-keygen -t rsa -b 4096 No password Cd ~/.ssh 760708 -rw-------.
2296 x bekeken
[root@backup02 ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your
2117 x bekeken
Login to Linux server and do the following steps
1. Update /etc/hosts and add active directory server IP and host name
2314 x bekeken
[Inloggen in Mariadb] mysql -u root -p
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' WITH GRANT
2026 x bekeken
Fdisk /dev/sda
M
(list commandos)
n
p
t
3
(option t ) 8e (voor lvm)
w
Reboot server
Pvcreate /dev/sda3
Vgdisplay
Vgextend centos /dev/sda3
Vgdisplay
Lvdisplay
pvscan
lvextend -L+20G /dev/centos_docker/home
Lvdisplay
Vgdisplay
Df -h
xfs_growfs /dev/centos_docker/home
Df -h
2161 x bekeken
Continue pre-config
yum install firewalld -y
systemctl start firewalld
systemctl enable firewalld
for service in http https tftp ftp mysql nfs mountd rpc-bind proxy-dhcp
2451 x bekeken
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce
systemctl enable docker.service
systemctl start docker.service
yum install epel-release
yum install -y python-pip
pip install
3330 x bekeken
yum install git
sudo -i
git clone https://github.com/FOGProject/fogproject.git /root/fogproject
cd /root/fogproject/
git checkout dev-branch
git pull
cd bin
./installfog.sh
Navigate to http://IPofYourFOGServer/fog/management
2037 x bekeken
Instructions
Connecting via SSH to your server
Browse to your user directory with the following command: cd ~
Create a .vimrc
4781 x bekeken
NFS Server: server.example.com, IP address: 192.168.2.133
NFS Client: client.example.com, IP address: 192.168.2.134
Yum -y install vim perl mlocate Configure the
4558 x bekeken
Samba is a free and open-source re-implementation of the SMB/CIFS network file sharing protocol that allows end users to access
4317 x bekeken
Installing a Web Server
In this section, I will show you how to install a web server on CentOS 7. I
4099 x bekeken