This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Connect from macOS to remote Linux server. For example to Debian or Ubuntu. | |
| # Prepare remote server. | |
| # Enable X11 Forwarding in SSH. | |
| vim /etc/ssh/sshd_config | |
| #X11Forwarding yes | |
| #X11DisplayOffset 10 | |
| #X11UseLocalhost no | |
| systemctl restart sshd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "io/ioutil" | |
| "time" | |
| stdruntime "runtime" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat /etc/redhat-release | |
| yum remove docker* | |
| yum update -y | |
| 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 -y docker-ce | |
| systemctl start docker | |
| systemctl enable docker |