倒腾 debian12 vm虚拟机

https://www.osboxes.org/debian/


Debian 12.6 Bookworm

VirtualBox (VDI) 64bit  Size: 1.9GB

SHA256: 6182ca38266d263cb72055e2cb13ec94c5966d1579278fba0440892a92576d9e


Credentials for images:

username: osboxes

password: osboxes.org

Root account password: osboxes.org


新建虚拟机,

删除硬盘。

增加scsi磁盘,不改格式,vmdk



更新中文源

cp /etc/apt/sources.list /etc/apt/sources.list.bak

sudo nano /etc/apt/sources.list


deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware

deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware

deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware

deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware

deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware

deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware

deb https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware

deb-src https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware


命令:sudo apt update 重新拉一下索引文件。

然后就可以使用sudo apt-get upgrade更新依赖了。


Debian Linux中设置中文界面和安装中文输入法

https://yuanj.top/posts/z9g0s6i9/


首先先把自带的 fcitx 和 ibus 删了吧:


sudo apt purge fcitx*

sudo apt purge ibus*

哦对了,我使用的是英文的桌面环境,中文的高低会出点小小的问题,所以这里还需要配置下 locales,Debian 默认安装,如果没有,apt 安装就行。


sudo dpkg-reconfigure locales

使用键盘选择 zh_CN.UTF-8,但是后面选择默认语言的时候还是选 en_US.UTF-8,重启后编辑 locale:


sudo nano /etc/default/locale

内容写为:


LANG=en_US.UTF-8

LC_CTYPE=zh_CN.UTF-8

然后就可以开始安装中文输入法了! 直接安装 fcitx5 的中文插件:


sudo apt install fcitx5-chinese-addons

再安装 rime 输入法:


sudo apt install fcitx5-rime

也是有 ibus 的,但是据说 ibus 停止维护了,而 fcitx5 现在对中文的支持还算不错,就用 fcitx5 了。


安装完之后 rime 还需要简单配置,这里我用了 GitHub 上的自动化配置脚本(GitHub 大法好啊!):


这是一个 ruby 脚本,所以先安装 ruby:

sudo apt install ruby


然后直接克隆仓库运行脚本即可,运行完之后在在 rime 输入法那里点一下deploy即可。

sudo apt install git

git clone --depth=1 https://github.com/Mark24Code/rime-auto-deploy.git --branch latest

cd rime-auto-deploy

./installer.rb

实测 Debian12 上面 rime 的皮肤不生效,但是可以直接用 fcitx5 的皮肤 fcitx5-themes。此外,前面自动化脚本会启用模糊音,但是对于我来说明显是有点多此一举,删除配置目录下的rime_ice.custom.yaml重新部署即可。

 


活动 -- 输入法  确定 确定 确定  选择fcitx5  确定




安装 Chrome 浏览器


下载最新版本:


wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

安装:


dpkg -i google-chrome-stable_current_amd64.deb


---------------------------------------------会有一些依赖错误。

安装后使用以下命令即可运行:

google-chrome-stable

如果是要使用代理运行,使用如下命令即可:

google-chrome-stable --proxy="http://127.0.0.1:1080" # 端口号为你本地的代理监听端口

-----------------------------------------------无视,直接去桌面找chrome 图标,运行即可。

google-chrome-stable --proxy="http://192.168.192.1:10889"


留言

這個網誌中的熱門文章

CF优选IP和反代IP的方法总结

通过cf cdn给serv00加速

下载测速文件100M/1GB/10GB