当前位置: 首页 > wzjs >正文

wordpress文章页不显示侧边郑州seo顾问外包

wordpress文章页不显示侧边,郑州seo顾问外包,免费建立网站教程,wordpress 修改ip最近需要运行某个浏览器的脚本,但是服务器没有桌面环境,无法使用,遂找到了KasmVNC,并配合xfce实现低占用的桌面环境,可以直接使用浏览器进行操作 本文基于雨云——新一代云服务提供商的Debian11服务器操作,…

最近需要运行某个浏览器的脚本,但是服务器没有桌面环境,无法使用,遂找到了KasmVNC,并配合xfce实现低占用的桌面环境,可以直接使用浏览器进行操作

本文基于雨云——新一代云服务提供商的Debian11服务器操作,NAT网络服务器实惠不限流量,有兴趣可以去看看。
另外欢迎来我的博客:火柴人儿的小站

安装KasmVNC

这里的步骤基于此教程在Ubuntu上安装KasmVNC实现轻松远程桌面访问 - 自由码农
建议都使用root用户操作,若非root用户,部分命令前需要加sudo 才可生效

  1. 下载KasmVNC

    检查系统版本

    lsb_release -a
    

    image-20250520142757935

    检查系统架构

    uname -m
    

    image-20250520142813017

    可以看到,我的是Debian11,bullseye是这个版本的代号,x86_64就是64位,那么根据这两个信息,就可以在项目发布页找到自己所需的版本进行下载,为方便取用,我这里留一个网盘的下载链接

    • kasmvncserver_bullseye_1.3.4_amd64.deb

    image-20250520143603468

    下载下来的文件上传到服务器得/home目录下

  2. 配置apt源

    选择其一即可

    • 腾讯云镜像源

      cat <<'EOF' > /etc/apt/sources.list
      # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
      deb https://mirrors.tencent.com/debian/ bullseye main contrib non-free
      # deb-src https://mirrors.tencent.com/debian/ bullseye main contrib non-freedeb https://mirrors.tencent.com/debian/ bullseye-updates main contrib non-free
      # deb-src https://mirrors.tencent.com/debian/ bullseye-updates main contrib non-freedeb https://mirrors.tencent.com/debian/ bullseye-backports main contrib non-free
      # deb-src https://mirrors.tencent.com/debian/ bullseye-backports main contrib non-free# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
      # 一般来说,为了更及时地获得安全更新,不推荐使用镜像站安全更新软件源,因为镜像站往往有同步延迟
      # deb https://mirrors.tencent.com/debian-security bullseye-security main contrib non-free
      # # deb-src https://mirrors.tencent.com/debian-security bullseye-security main contrib non-freedeb https://security.debian.org/debian-security bullseye-security main contrib non-free
      # deb-src https://security.debian.org/debian-security bullseye-security main contrib non-free
      EOF
      
      apt-get update  #更新
      
    • 中科大镜像源

      cat <<'EOF' > /etc/apt/sources.list
      # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
      deb https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
      # deb-src https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-freedeb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
      # deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-freedeb https://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free
      # deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
      # 一般来说,为了更及时地获得安全更新,不推荐使用镜像站安全更新软件源,因为镜像站往往有同步延迟
      # deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free
      # # deb-src https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-freedeb https://security.debian.org/debian-security bullseye-security main contrib non-free
      # deb-src https://security.debian.org/debian-security bullseye-security main contrib non-free
      EOF
      
      apt-get update  #更新
      
    • 阿里云镜像源

      cat <<'EOF' > /etc/apt/sources.list
      # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
      deb https://mirrors.aliyun.com/debian/ bullseye main contrib non-free
      # deb-src https://mirrors.aliyun.com/debian/ bullseye main contrib non-freedeb https://mirrors.aliyun.com/debian/ bullseye-updates main contrib non-free
      # deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main contrib non-freedeb https://mirrors.aliyun.com/debian/ bullseye-backports main contrib non-free
      # deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main contrib non-free# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
      # 一般来说,为了更及时地获得安全更新,不推荐使用镜像站安全更新软件源,因为镜像站往往有同步延迟
      # deb https://mirrors.aliyun.com/debian-security bullseye-security main contrib non-free
      # # deb-src https://mirrors.aliyun.com/debian-security bullseye-security main contrib non-freedeb https://security.debian.org/debian-security bullseye-security main contrib non-free
      # deb-src https://security.debian.org/debian-security bullseye-security main contrib non-free
      EOF
      
      apt-get update  #更新
      
  3. 安装KasmVNC

    cd /home
    dpkg -i kasmvncserver_bullseye_1.3.4_amd64.deb
    

    出现依赖问题

    image-20250520150226595

    安装依赖

    apt --fix-broken install
    

    安装完成后查看KasmVNC版本,显示出版本号即安装成功

    dpkg -s kasmvncserver | grep Version
    

    image-20250520151753653

  4. 初始化 KasmVNC 配置

    kasmvncserver
    

    image-20250520152422080

  5. 放行8444端口,将内部的8444映射到外网的18444(可随意设置)

    image-20250520152551842

  6. 通过https://ip:18444访问(必须使用https访问

    点击高级➡️继续访问

    image-20250520152902855

    输入用户名和密码

    image-20250520152956756

    登录进去之后,现在是黑屏,是正常情况,我们还需要配置一个桌面环境,教程中使用的是GNOME,它占用资源比较大,所以我改为使用XFCE

    此外,如果浏览器左上角提示是否允许读取剪贴板,一定要点允许,不然键盘无法输入命令。

  7. 配置桌面环境

    安装xfce桌面环境,时间可能比较长,耐心等待

    apt install xfce4 dbus-x11 dbus-user-session -y
    

    安装过程中会弹出以下选择界面,选择第一个,然后点击tab键,回车即可

    image-20250520160735417

    编辑配置文件

    cat << EOF > ~/.vnc/xstartup 
    #!/bin/bash
    set -x exec 
    xfce4-session 
    EOF
    

    设置执行权限

    chmod +x ~/.vnc/xstartup
    

    重启vnc服务

    vncserver -kill :1   #停止当前会话
    vncserver  #启动一个新的会话
    

    image-20250520162624414

  8. 刷新页面

    image-20250520110051599

安装火狐浏览器

安装好桌面环境之后立马内置的浏览器无法使用,使用apt安装火狐我也试了,Mozilla APT 库下载总是失败,结果发现直接下载安装包解压就能用了😂

  1. 去[官网](下载适用于 Linux 的 Mozilla Firefox — 快速、私密且免费 Mozilla 出品)下载所需安装包,默认是32位,需要自己选择64位的,这个应该都能下载,不过我还是留一个下载链接吧:firefox-138.0.4.tar.xz

    image-20250521091743448

    image-20250521091759893

  2. 并上传到服务器/home目录下,我这里使用的是WindTerm

    image-20250521091917427

  3. 解压安装包

    cd /home
    tar Jxf firefox-138.0.4.tar.xz  # 这里的J一定要大写 
    
  4. 运行firefox

    解压完成后,在解压文件内找到firefox,双机即可打开浏览器

    image-20250521092430868

    image-20250521093108656

解决中文乱码

可以看到上图的浏览器中,中文都是乱码,这是因为没有安装显示中文的字体,只需要安装一个中文字体即可

apt install fonts-noto-cjk

安装完成后,刷新浏览器即可

image-20250521093351312


文章转载自:

http://N9EbvCsu.hqmfn.cn
http://bYUVtlxJ.hqmfn.cn
http://y9GCu6hB.hqmfn.cn
http://lLZmDAxm.hqmfn.cn
http://CG4OyHff.hqmfn.cn
http://iRCLbcwx.hqmfn.cn
http://sc99xxZd.hqmfn.cn
http://0mlQCN8j.hqmfn.cn
http://yM4RvEQu.hqmfn.cn
http://lZ8nvO9f.hqmfn.cn
http://oR6iQlow.hqmfn.cn
http://FAs1qlsj.hqmfn.cn
http://Ve2aGcv9.hqmfn.cn
http://iZkuXUTD.hqmfn.cn
http://1nIMibKm.hqmfn.cn
http://lvw7AOXB.hqmfn.cn
http://xgCMXkdH.hqmfn.cn
http://mnPCgavn.hqmfn.cn
http://fpqyvgUA.hqmfn.cn
http://FGHdoK4X.hqmfn.cn
http://bJJhI5AF.hqmfn.cn
http://SondTBrV.hqmfn.cn
http://G3ljiQPK.hqmfn.cn
http://fZ85FEga.hqmfn.cn
http://yLuzGU9C.hqmfn.cn
http://nA0JFfcC.hqmfn.cn
http://f5kOS06L.hqmfn.cn
http://2EL2xWKS.hqmfn.cn
http://L5w5srZx.hqmfn.cn
http://m82YOanJ.hqmfn.cn
http://www.dtcms.com/wzjs/640681.html

相关文章:

  • 重庆网站建设重庆网站制作出售自己的网站
  • 郑州建设企业网站找哪个公司网站程序如何制作
  • 普陀网站开发培训学校网站建设 投资合作
  • 商用网站开发计划书正规seo多少钱
  • 献县网站建设公司王也天演过的电视剧
  • 湘潭做网站价格咨询磐石网络从零开始建网站
  • 淘宝联盟自己做网站php网站权限设置
  • 东莞做网站 南城信科wordpress接入官方号
  • 视频网站 wordpress主题自己公司内网网站和外网怎么做同步
  • 网站怎么做图片动态图片不显示不出来的做网站应该了解什么软件
  • 腾讯专门做数据标注的网站是珠海网站建设优化推广
  • 设计师网站源码seo是如何优化
  • 网站跳出率多少合适选择郑州网站建设
  • 网站设计公司 推荐阿里云建设wordpress
  • 网站开发项目标书外贸经济平台代销到哪里买
  • 网站设置方案行业网站建设蓝云
  • 网站地图提交西安知名网络推广公司
  • wordpress电影站模版安卓开发平台
  • 网站seo关键词排名推广免费的域名解析
  • 珠海建站软件抖音推广怎么收费
  • 好发信息网-网站建设室内设计公司经营范围
  • 网站功能模块有哪些做英文网站可以申请补贴吗
  • 大通证券手机版下载官方网站下载wordpress插件图片无法加载
  • wordpress 内外网太原网站推广优化
  • 境外网址appseo品牌
  • 昆山网站建设苦瓜网络昭通网站建设兼职
  • 关于网站建设实验报告徐州模板建站定制网站
  • 成都网站建设 四川冠辰类似freenom的免费域名网站
  • 如何自己做直播网站天津网站建设班
  • 深圳网站建设网络推广公司凌风 wordpress 大学