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

AutoDL 云服务器:xfce4 远程桌面 终端乱码 + 谷歌浏览器

===================================

/usr/bin/google-chrome-stable --no-sandbox   --proxy-server="127.0.0.1:7890"

===================================

打开新的PowerShell

ssh -p 54521 root@connect.yza1.seetacloud.com

/opt/TurboVNC/bin/vncserver -kill :1  

rm -rf /tmp/.X1*

USER=root /opt/TurboVNC/bin/vncserver :1 -desktop X -auth /root/.Xauthority -geometry 1920x1080 -depth 24 -rfbwait 120000 -rfbauth /root/.vnc/passwd -fp /usr/share/fonts/X11/misc/,/usr/share/fonts -rfbport 6006

再打开一个新的PowerShell
ssh -CNg -L 6006:127.0.0.1:6006 -p 54521 root@connect.yza1.seetacloud.com

===================================

///

apt-get update -y && apt install -y xorg xdm xfce4 && apt install -y libglu1-mesa-dev mesa-utils xterm xauth x11-xkb-utils xfonts-base xkb-data libxtst6 libxv1


# 安装libjpeg-turbo和turbovnc
export TURBOVNC_VERSION=2.2.5 && export LIBJPEG_VERSION=2.0.90

wget http://aivc.ks3-cn-beijing.ksyun.com/packages/libjpeg-turbo/libjpeg-turbo-official_${LIBJPEG_VERSION}_amd64.deb

wget http://aivc.ks3-cn-beijing.ksyun.com/packages/turbovnc/turbovnc_${TURBOVNC_VERSION}_amd64.deb

dpkg -i libjpeg-turbo-official_${LIBJPEG_VERSION}_amd64.deb
dpkg -i turbovnc_${TURBOVNC_VERSION}_amd64.deb

#删除安装包
rm -rf *.deb

# 启动VNC服务端,这一步可能涉及vnc密码配置(注意不是实例的账户密码)。另外如果出现报错xauth未找到,那么使用apt install xauth再安装一次

#在6006端口启动VNC服务端
USER=root /opt/TurboVNC/bin/vncserver :1 -desktop X -auth /root/.Xauthority -geometry 1920x1080 -depth 24 -rfbwait 120000 -rfbauth /root/.vnc/passwd -fp /usr/share/fonts/X11/misc/,/usr/share/fonts -rfbport 6006

# 检查是否启动,如果有vncserver的进程,证明已经启动
ps -ef | grep vnc

打开一个新的PowerShell

原ssh登录指令如下

ssh -p 52823 root@connect.yza1.seetacloud.com

加入 -CNg -L 6006:127.0.0.1:6006

ssh -CNg -L 6006:127.0.0.1:6006 -p 52823 root@connect.yza1.seetacloud.com

--->

打开终端报错:Failed to execute default Terminal Emulator. Input/output error.

 Settings,选择Settings Manager,点击Preferred Applications

打开终端后乱码

xfce中文字符方块乱码问题解决_xfce 乱码-CSDN博客

sudo apt-get install locales
sudo dpkg-reconfigure locales

158. en_US.UTF-8 UTF-8
485. zh_CN GB2312
487. zh_CN.GBK GBK
488. zh_CN.UTF-8 UTF-8
158 485 487 488 

perl: warning: Falling back to the standard locale ("C").-CSDN博客

root@autodl-container-129644bb08-3dfa09c9:~#
root@autodl-container-129644bb08-3dfa09c9:~# USER=root /opt/TurboVNC/bin/vncserver :1 -desktop X -auth /root/.Xauthority -geometry 1920x1080 -depth 24 -rfbwait 120000 -rfbauth /root/.vnc/passwd -fp /usr/share/fonts/X11/misc/,/usr/share/fonts -rfbport 6006
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "zh_CN.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Desktop 'TurboVNC: autodl-container-129644bb08-3dfa09c9:1 (root)' started on display autodl-container-129644bb08-3dfa09c9:1

Starting applications specified in /root/.vnc/xstartup.turbovnc
Log file is /root/.vnc/autodl-container-129644bb08-3dfa09c9:1.log

root@autodl-container-129644bb08-3dfa09c9:~# echo "export LC_ALL=C" >> /root/.bashrc
root@autodl-container-129644bb08-3dfa09c9:~# source /root/.bashrc
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
+--------------------------------------------------AutoDL--------------------------------------------------------+
目录说明:
╔═════════════════╦════════╦════╦═════════════════════════════════════════════════════════════════════════╗
║目录             ║名称    ║速度║说明                                                                     ║
╠═════════════════╬════════╬════╬═════════════════════════════════════════════════════════════════════════╣
║/                ║系 统 盘║一般║实例关机数据不会丢失,可存放代码等。会随保存镜像一起保存。               ║
║/root/autodl-tmp ║数 据 盘║ 快 ║实例关机数据不会丢失,可存放读写IO要求高的数据。但不会随保存镜像一起保存 ║
╚═════════════════╩════════╩════╩═════════════════════════════════════════════════════════════════════════╝
CPU :15 核心
内存:60 GB
GPU :NVIDIA GeForce RTX 3090, 1
存储:
  系 统 盘/               :2% 523M/30G
  数 据 盘/root/autodl-tmp:1% 60K/50G
+----------------------------------------------------------------------------------------------------------------+
*注意:
1.系统盘较小请将大的数据存放于数据盘或文件存储中,重置系统时数据盘和文件存储中的数据不受影响
2.清理系统盘请参考:https://www.autodl.com/docs/qa1/
3.终端中长期执行命令请使用screen等工具开后台运行,确保程序不受SSH连接中断影响:https://www.autodl.com/docs/daemon/
root@autodl-container-129644bb08-3dfa09c9:~#
root@autodl-container-129644bb08-3dfa09c9:~#
root@autodl-container-129644bb08-3dfa09c9:~# /opt/TurboVNC/bin/vncserver -kill :1
Killing Xvnc process ID 1229
root@autodl-container-129644bb08-3dfa09c9:~#
root@autodl-container-129644bb08-3dfa09c9:~#
root@autodl-container-129644bb08-3dfa09c9:~#
root@autodl-container-129644bb08-3dfa09c9:~# USER=root /opt/TurboVNC/bin/vncserver :1 -desktop X -auth /root/.Xauthority -geometry 1920x1080 -depth 24 -rfbwait 120000 -rfbauth /root/.vnc/passwd -fp /usr/share/fonts/X11/misc/,/usr/share/fonts -rfbport 6006

Desktop 'TurboVNC: autodl-container-129644bb08-3dfa09c9:1 (root)' started on display autodl-container-129644bb08-3dfa09c9:1

Starting applications specified in /root/.vnc/xstartup.turbovnc
Log file is /root/.vnc/autodl-container-129644bb08-3dfa09c9:1.log

root@autodl-container-129644bb08-3dfa09c9:~#

仍然乱码

解决perl: warning: Falling back to the standard locale ("C").-CSDN博客

Linux深入探索16-区域设置_update-locale-CSDN博客

仍然乱码

///

仍然乱码

///

===================================

在安装xfce4之前配置字体

xfce中文字符方块乱码问题解决_xfce 乱码-CSDN博客

===================================

===================================

安装locales并配置
sudo apt-get install locales
sudo dpkg-reconfigure locales
1
2
选择语言编码en_US.UTF8,zh_CN GB2312,zh_CN GBK GBK,zh_CN UTF-8 UTF-8


选择系统默认语言为英文en_US.UTF8


为当前用户配置默认语言为中文zh_CN UTF-8 UTF-8

vim ~/.bashrc
1
在.bashrc最后添加一行

export LANG=zh_CN.UTF-8
1
安装中文字体
sudo apt-get install fonts-wqy-zenhei
1
重启
————————————————

                            版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
                        
原文链接:https://blog.csdn.net/weixin_42937217/article/details/121970539

======================================================================

======================================================================

# 下载安装包
sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
# 添加密匙
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub  | sudo apt-key add -
# 更新系统包
sudo apt-get update
# 安装谷歌浏览器
sudo apt-get install google-chrome-stable
# 启动谷歌浏览器
/usr/bin/google-chrome-stable

如果是root用户
/usr/bin/google-chrome-stable --no-sandbox


root@autodl-container-129644bb08-d8b91e33:~/Desktop# 
root@autodl-container-129644bb08-d8b91e33:~/Desktop# /usr/bin/google-chrome-stable
[1478:1478:0130/140013.712026:ERROR:zygote_host_impl_linux.cc(101)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
root@autodl-container-129644bb08-d8b91e33:~/Desktop# 
root@autodl-container-129644bb08-d8b91e33:~/Desktop# /usr/bin/google-chrome-stable --no-sandbox


======================================================================

/usr/bin/google-chrome-stable --no-sandbox   --proxy-server="127.0.0.1:7890"

======================================================================


http://www.kler.cn/a/525808.html

相关文章:

  • WINDOWS安装eiseg遇到的问题和解决方法
  • 1.Template Method 模式
  • Vuex中的getter和mutation有什么区别
  • 关于产品和技术架构的思索
  • Baklib揭示内容中台与人工智能技术的创新协同效应
  • nvm安装详细教程(安装nvm、node、npm、cnpm、yarn及环境变量配置)
  • oracl:数据查询语言DQL
  • 密码强度验证代码解析:C语言实现与细节剖析
  • ChatGPT与GPT的区别与联系
  • cubemx配置ETH(以太网)
  • (java) IO流
  • 利用Edu邮箱解锁Notion Pro,提升学习与工作效率
  • 【Envi遥感图像处理】008:波段(批量)分离与波段合成
  • 【Prometheus】jmx_prometheus_javaagent监控java应用
  • 网站快速收录:提高页面加载速度的重要性
  • 使用DeepSeek批量生成文章,对搜索引擎产生一定影响。
  • 12.udp
  • 完整解读:从DeepSeek Janus到Janus-Pro!
  • 天融信 NGFW2.3 mibs
  • 书生大模型实战营4
  • SpringBoot 基础(Spring)
  • AI 计算的未来:Deepseek从中心化到去中心化的变革
  • c++:vector
  • 【Linux系统】进程间通信:认识命名管道
  • windows10 配置使用json server作为图片服务器
  • 笔记:使用ST-LINK烧录STM32程序怎么样最方便?