前言

本文提供两种安装方式,均自己测试过,最后还是选择了Xfce,因为它比较轻量级,占用资源较少。大家也可以都试试,比较感受下。

一、基于GNOME构建远程桌面

GNOME 提供一个现代、直观的用户界面,注重美观和用户友好性。GNOME 通常相对较重,对系统资源的需求较高,GNOME 是一个大型的开源社区项目,内部应用完整。这意味着在性能较低的硬件上可能会感觉较为占用资源,会出现比较卡顿情况,比如我只分配虚拟机2核2G资源,安装连接后桌面就挺卡的,但还是更清晰,功能更完整的,所以看自己资源选哪个。

  1. docker pull centos:7 # 拉取镜像
  2. docker run --name centos-desktop-gnome --privileged -d -p 3389:3389 --ulimit memlock=-1 -td centos:7 /usr/sbin/init # 启动容器, 并暴露端口,远程桌面端口是3389

- 阅读剩余部分 -

Docker 构建 centos 容器 Dockerfile 中使用 yum 命令报错问题

报错信息

  Loaded plugins: fastestmirror, ovl
    Determining fastest mirrors
    Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was
    14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"

    One of the configured repositories failed (Unknown),
     and yum doesn't have enough cached data to continue. At this point the only
     safe thing yum can do is fail. There are a few ways to work "fix" this:
    
         1. Contact the upstream for the repository and get them to fix the problem.
    
         2. Reconfigure the baseurl/etc. for the repository, to point to a working
            upstream. This is most often useful if you are using a newer
            distribution release than is supported by the repository (and the
            packages for the previous distribution release still work).
    
         3. Run the command with the repository temporarily disabled
                yum --disablerepo=<repoid> ...
    
         4. Disable the repository permanently, so yum won't use it by default. Yum
            will then just ignore the repository until you permanently enable it
            again or use --enablerepo for temporary usage:
    
                yum-config-manager --disable <repoid>
            or
                subscription-manager repos --disable=<repoid>
    
         5. Configure the failing repository to be skipped, if it is unavailable.
            Note that yum will try to contact the repo. when it runs most commands,
            so will have to try and fail each time (and thus. yum will be be much
            slower). If it is a very temporary problem though, this is often a nice
            compromise:
    
                yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
    
    Cannot find a valid baseurl for repo: base/7/x86_64

- 阅读剩余部分 -

原帖地址:https://www.cnblogs.com/zcg-cpdd/p/14638091.html

Windows服务器的某些端口暴露在公网中具有很大风险,不想让任意IP可以访问这些端口,可以在防火墙或者IP安全策略中添加规则限制。

比如想禁止192.168.0.1(也可以是个网段:192.168.0.1/24)访问本机的3389端口,可以在IP安全策略中添加如下规则:

1.控制面板-管理工具-本地安全策略-打开IP安全策略

2.右键-管理IP筛选器列表和筛选器操作
2024-09-11T02:00:52.png

- 阅读剩余部分 -

原帖:https://blog.csdn.net/weixin_45981263/article/details/121048734

报错:Loading mirror speeds from cached hostfile解决方案

(1)首先配置好自己的网络,看看pingwww.baidu.com 能不能上网,如果没问题了就接着下一步

(2)安装配置文件,分别输入:

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

yum clean all  #清除所有

yum makecache #重新建立源数据

2024-09-11T02:15:07.png

再次安装yum即可!!

原帖地址:https://shuidl.com/3439.html

DDNS(全名:Dynamic Domain Name Server),动态域名服务,说人话就是将家中内网的动态 ipv4 地址映射到一个固定的域名解析服务上。

Cloudflare 全球知名的 DNS 服务商。

ddns-go 是一个自动获得你的公网 IPv4 或 IPv6 地址,并解析到对应的域名服务的软件。

DDNS-go 特性

支持 Mac、Windows、Linux 系统,支持 ARM、x86 架构
支持的域名服务商 Alidns(阿里云) Dnspod(腾讯云) Cloudflare 华为云 Callback 百度云 Porkbun GoDaddy Google Domain
支持接口 / 网卡 / 命令获取 IP
支持以服务的方式运行
默认间隔 5 分钟同步一次
支持同时配置多个 DNS 服务商
支持多个域名同时解析
支持多级域名
网页中配置,简单又方便,默认勾选禁止从公网访问
网页中方便快速查看最近 50 条日志
支持 Webhook 通知
支持 TTL
支持部分 DNS 服务商传递自定义参数,实现地域解析等功能
建议在启用公网访问时,使用 Nginx 等反向代理软件启用 HTTPS 访问,以保证安全性。

- 阅读剩余部分 -