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

ops/2025/2/1 16:00:25/

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

/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.90wget http://aivc.ks3-cn-beijing.ksyun.com/packages/libjpeg-turbo/libjpeg-turbo-official_${LIBJPEG_VERSION}_amd64.debwget http://aivc.ks3-cn-beijing.ksyun.com/packages/turbovnc/turbovnc_${TURBOVNC_VERSION}_amd64.debdpkg -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:1Starting applications specified in /root/.vnc/xstartup.turbovnc
Log file is /root/.vnc/autodl-container-129644bb08-3dfa09c9:1.logroot@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 6006Desktop 'TurboVNC: autodl-container-129644bb08-3dfa09c9:1 (root)' started on display autodl-container-129644bb08-3dfa09c9:1Starting applications specified in /root/.vnc/xstartup.turbovnc
Log file is /root/.vnc/autodl-container-129644bb08-3dfa09c9:1.logroot@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-sandboxroot@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.ppmy.cn/ops/154789.html

相关文章

kafka-保姆级配置说明(broker)

一. important ##broker ID,cluster唯一标识,数字类型 ##此值可以不指定,有集群自动创建(由当前集群现有的brokerID 1)。 ##默认值为-1 broker.id5 #broker.id.generation.enabletrue ##zookeeper连接地址 zookeeper.…

TensorFlow 手动构建一个神经网络

TensorFlow 和 Keras 来构建和训练一个简单的神经网络模型。我们来逐行解析它的功能 import tensorflow as tf import numpy as np tensorflow:导入 TensorFlow 库,TensorFlow 是一个开源的机器学习框架。numpy:导入 NumPy 库,它…

STM32使用VScode开发

文章目录 Makefile形式创建项目新建stm项目下载stm32cubemx新建项目IED makefile保存到本地arm gcc是编译的工具链G++配置编译Cmake +vscode +MSYS2方式bilibiliMSYS2 统一环境配置mingw32-make -> makewindows环境变量Cmake CmakeListnijia 编译输出elfCMAKE_GENERATOR查询…

小程序 uniapp 地图 自定义内容呈现,获取中心点,获取对角经纬度,首次获取对角经纬度

前言 使用uniapp 小程序 使用地图,我使用的是uniapp原生的地图,实现根据坐标在地图上显示自定义内容,首次加载获取坐标对角经纬度,通过对角经纬度给后端,进行只显示当前屏幕内的自定义内容,在通过拖拽事件…

装饰SpringMVC的适配器实现响应自动包装

文章目录 1.common-tool-starter1.目录结构2.ResultWrapper.java 2.common-web-starter1.目录结构2.IgnoredResultWrapper.java 自定义注解,忽略对返回结果的自动包装3.ReturnValueHandlersDecorator.java 对适配器进行扩展的装饰器4.WebAutoConfiguration.java 将装…

SAP内向交货单详解

【SAP系统研究】 #SAP #交货单 #内向交货单 一、内向交货单的概念 内向交货单,Inbound Delivery,是SAP系统中用于管理外部供应商或内部工厂向公司发货的文档。它记录了货物从供应商到公司仓库或生产地点的运输和接收过程。 内向交货单的主要功能有: (1)货物接收:用于…

Java---猜数字游戏

本篇文章所实现的是Java经典的猜数字游戏 , 运用简单代码来实现基本功能 目录 一.题目要求 二.游戏准备 三.代码实现 一.题目要求 随机生成一个1-100之间的整数(可以自己设置区间),提示用户猜测,猜大提示"猜大了",…

LeetCode 跳跃类问题的解题技巧:跳跃游戏与最少跳跃数

LeetCode 跳跃类问题的解题技巧:跳跃游戏与最少跳跃数 在 LeetCode 中,有一类经典的题目是关于跳跃的,例如 跳跃游戏 和 跳跃游戏 II。这些问题通常要求我们判断是否能从数组的起始位置跳跃到结束位置,或者求得最少跳跃次数。解决…