CentOS7: 05-IP Settings
ifconfig enp0s3 192.168.0.82
ifconfig enp0s3 netmask 255.255.255.0
route add default gw 192.168.0.1
ifconfig enp0s3 192.168.0.82
ifconfig enp0s3 netmask 255.255.255.0
route add default gw 192.168.0.1
touch /etc/systemd/system/phantomjs
[setup@c7 ~]$ cd /etc/systemd
[setup@c7 systemd]$ ls
bootchart.conf coredump.conf journald.conf logind.conf system system.conf user user.conf
[setup@c7 systemd]$ cd system
[setup@c7 system]$ sudo touch phantomjs.service
[sudo] password for setup:
/etc/init.d/phantomjs
[setup@c7 ~]$ cd /etc
[setup@c7 etc]$ cd init.d
[setup@c7 init.d]$ ls
functions netconsole network README
[setup@c7 init.d]$ touch phantomjs
touch: cannot touch ‘phantomjs’: Permission denied
[setup@c7 init.d]$ sudo touch phantomjs
sudo chmod +x phantomjs
/etc/default/phantomjs
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar xjf phantomjs-2.1.1-linux-x86_64.tar.bz2
chown setup phantomjs-2.1.1-linux-x86_64
chmod 777 phantomjs-2.1.1-linux-x86_64
chmod +x /bin/phantomns
/.phantomjs
[setup@c7 bin]$ ./phantomjs --webdriver 8643 [INFO - 2018-11-02T01:52:22.711Z] GhostDriver - Main - running on port 8643
mkdir /var/www/behatmink
[setup@c7 www]$ sudo chown setup behatmink [setup@c7 www]$ ls -la total 0 drwxr-xr-x. 5 root root 50 Nov 1 19:41 . drwxr-xr-x. 20 root root 278 Nov 1 19:27 .. drwxrwxrwx. 2 setup root 6 Nov 1 19:41 behatmink drwxr-xr-x. 2 root root 6 Jun 27 08:49 cgi-bin drwxr-xr-x. 2 root root 6 Jun 27 08:49 html
[setup@c7 www]$ git clone https://unityconstruct@bitbucket.org/unityconstruct/behatmink.git Cloning into 'behatmink'... Password for 'https://unityconstruct@bitbucket.org': remote: Counting objects: 350, done. remote: Compressing objects: 100% (322/322), done. remote: Total 350 (delta 150), reused 0 (delta 0) Receiving objects: 100% (350/350), 17.98 MiB | 6.17 MiB/s, done. Resolving deltas: 100% (150/150), done.
# yum install openssh openssh-server openssh-clients openssl-libs
# cp /etc/ssh/sshd_config /etc/ssh/sshd_config.orig
# nano /etc/ssh/sshd_config
# systemctl restart sshd.service
ansible
https://www.itzgeek.com/how-tos/linux/centos-how-tos/install-gnome-gui-on-centos-7-rhel-7.html
List yum packages
# yum group list
# yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
Enable GUI on start
# ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
# reboot
https://www.itzgeek.com/how-tos/linux/centos-how-tos/install-xrdp-on-centos-7-rhel-7.html
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum -y install xrdp tigervnc-server
Start xrdp & check its listener
https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s3-filesystem-var.html
Copyright 2018· All rights reserved