diff --git a/frp配置.md b/frp配置.md new file mode 100644 index 0000000..0afe7c9 --- /dev/null +++ b/frp配置.md @@ -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 + +``` + diff --git a/ubuntu xrdp.md b/ubuntu xrdp.md new file mode 100644 index 0000000..cf462d9 --- /dev/null +++ b/ubuntu xrdp.md @@ -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地址即可 + diff --git a/ubuntu 笔记本合盖不休眠.md b/ubuntu 笔记本合盖不休眠.md new file mode 100644 index 0000000..e56f9b5 --- /dev/null +++ b/ubuntu 笔记本合盖不休眠.md @@ -0,0 +1,23 @@ +# ubuntu 笔记本合盖不休眠 + +``` +sudo vim /etc/systemd/logind.conf + +``` + +其中的 + +#HandleLidSwitch=suspend + +改成 + +HandleLidSwitch=ignore + +之后重启服务或者执行reboot + +``` +service systemd-logind restart +``` + + +