添加了远程服务器相关

This commit is contained in:
yewuya 2021-01-26 16:17:40 +08:00
parent ba2a2b7b81
commit d6aa99f8e4
3 changed files with 88 additions and 0 deletions

48
frp配置.md Normal file
View File

@ -0,0 +1,48 @@
# frp配置
下载文件
```shell
wget https://github.com/fatedier/frp/releases/download/v0.35.1/frp_0.35.1_linux_amd64.tar.gz
tar -zxvf frp_0.35.1_linux_amd64.tar.gz
cp -r frp_0.35.1_linux_amd64 frp
cd frp
ls -a
```
服务器端配置frps.ini文件内容如下
```shell
[common]
bind_port = 7000 # 云服务器服务端口
dashboard_port = 7500 # 网页控制台端口
token = 123456 # 密码
dashboard_user = yewuya # 控制台账号
dashboard_pwd = 1689458474Wu # 控制台密码
vhost_http_port = 10080
vhost_https_port = 10443
```
客户端配置frpc.ini 文件内容如下
```shell
[common]
server_addr = 101.200.41.107 # 云服务器IP
server_port = 7000 # 云服务器服务端口
token = 123456 # 密码
[ssh] # 服务名称
type = tcp # 传输类型
local_ip = 127.0.0.1 # 本地IP
local_port = 22 # 本地服务的端口
remote_port = 6000 # 云服务器对应的端口
[rdp]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 6001
```

17
ubuntu xrdp.md Normal file
View File

@ -0,0 +1,17 @@
# ubuntu xrdp
### ubuntu服务器安装
```
sudo apt autoremove xrdp
sudo add-apt-repository ppa:martinx/xrdp-hwe-18.04
sudo apt-get update
sudo apt-get install xrdp xorg
sudo adduser xrdp ssl-cert
sudo reboot
```
### Windows客户端
使用远程桌面连接.搜索栏直接搜索即可.打开之后输入Ubuntu服务器的IP地址即可

View File

@ -0,0 +1,23 @@
# ubuntu 笔记本合盖不休眠
```
sudo vim /etc/systemd/logind.conf
```
其中的
#HandleLidSwitch=suspend
改成
HandleLidSwitch=ignore
之后重启服务或者执行reboot
```
service systemd-logind restart
```