回到首頁
李明哲多媒體寫作教學

2022年5月25日 星期三

Debian系统配置中文语言及环境

Debian配置系统中文语言及环境

1,安装语言包 sudo apt install locales

2,配置语言环境 sudo dpkg-reconfigure locales

按下空格即可选择,前面带星号(*)即被选中,通常不需要全部选择安装,选择需要的即可。

3,locale命令基本使用

查看已经安装的语言环境:locale -a

查看当前系统语言环境变量配置: locale

4,临时改变语言环境 export LANG=C.UTF-8

5,永久改变当前用户语言环境

编辑 ~/.bashrc ,以及~/.profile 在.bashrc以及~/.profile文件末尾加入 

export LANG=zh_CN.utf8 即可

**補充
~/.bashrc和~/.profile(仅对当前用户生效)
**

# 例如
echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
echo "export LANG=en_US.UTF-8" >> ~/.bashrc
echo "export LANGUAGE=en_US.UTF-8" >> ~/.bashrc

echo "export LANG=zh_TW.UTF-8" >> ~/.profile
echo "export LANGUAGE=zh_TW:zh:zh_CN:zh:en_US:en" >> ~/.profile
echo "export LC_ALL=zh_TW.UTF-8" >> ~/.profile

zh_CN:zh:en_US:en


再來
source ~/.bashrc 即可生效

也可以重新開機。


中文字型的問題

 

 Debian 10系列 提供 Google 思源字體套件 (fonts-noto 等系列套件) 。安裝桌面環境時,就會順便安裝思源字體。文泉驛 (fonts-wqy) 和文鼎字體 (ttf-arphic) 不再是中文桌面環境所需字體套件。視個人需要安裝。

    xfonts-wqy : 文泉驛 X11 字體。
    fonts-wqy-zenhei : 文泉驛正黑體 (TrueType)。套件舊名 ttf-wqy-zenhei 。
    fonts-wqy-microhei : 文泉驛微米黑體 (TrueType)。套件舊名 ttf-wqy-microhei 。
    fonts-arphic-ukai : 文鼎楷書體 (TrueType)。套件舊名 ttf-arphic-ukai 。
    fonts-arphic-uming : 文鼎明體 (TrueType) 。套件舊名 ttf-arphic-uming 。
    fonts-noto : Google 思源字體 (Debian 10)。

 fonts-noto-cjk-extra/stable,stable 1:20220127+repack1-1 all
fonts-noto-cjk/stable,stable,now 1:20220127+repack1-1 all 

這兩個可以安裝 fonts-noto-cjk 系列

2022年2月18日 星期五

kde kamoso cheese black screen

 v4l2-ctl --list-devices

(The above requires v4l-utils is installed)


https://community.frame.work/t/solved-webcam-not-working-on-ubuntu-22-04-12th-generation-laptop/32253/32

guvcview



lsusb

tested with Jitsi Meet and webcamera.io

https://forum.kde.org/viewtopic.php%3Ff=19&t=166063.html

gstreamer-qapt/noble 3.0.5-2build3 amd64
gstreamer1.0-adapter-pulseeffects/noble 4.8.7-2build3 amd64
gstreamer1.0-alsa/noble-updates,noble-security 1.24.2-1ubuntu0.2 amd64
gstreamer1.0-autogain-pulseeffects/noble 4.8.7-2build3 amd64
gstreamer1.0-clutter-3.0/noble,now 3.0.27-4build1 amd64 [已安裝,自動]
gstreamer1.0-convolver-pulseeffects/noble 4.8.7-2build3 amd64
gstreamer1.0-crystalizer-pulseeffects/noble 4.8.7-2build3 amd64
gstreamer1.0-espeak/noble 0.5.0-1build2 amd64
gstreamer1.0-fdkaac/noble 1.20.0-1build2 amd64
gstreamer1.0-gl/noble-updates,noble-security,now 1.24.2-1ubuntu0.2 amd64 [已安裝,自動]
gstreamer1.0-gtk3/noble-updates,noble-security,now 1.24.2-1ubuntu1.1 amd64 [已安裝,自動]
gstreamer1.0-libav/noble,now 1.24.1-1build1 amd64 [已安裝,自動]
gstreamer1.0-libcamera/noble 0.2.0-3fakesync1build6 amd64
gstreamer1.0-nice/noble 0.1.21-2build3 amd64
gstreamer1.0-opencv/noble 1.24.2-1ubuntu4 amd64
gstreamer1.0-packagekit/noble-updates 1.2.8-2ubuntu1.2 amd64
gstreamer1.0-pipewire/noble-updates 1.0.5-1ubuntu3 amd64
gstreamer1.0-plugins-bad-apps/noble 1.24.2-1ubuntu4 amd64
gstreamer1.0-plugins-bad/noble,now 1.24.2-1ubuntu4 amd64 [已安裝,自動]
gstreamer1.0-plugins-base-apps/noble-updates,noble-security 1.24.2-1ubuntu0.2 amd64
gstreamer1.0-plugins-base/noble-updates,noble-security,now 1.24.2-1ubuntu0.2 amd64 [已安裝,自動]
gstreamer1.0-plugins-good/noble-updates,noble-security,now 1.24.2-1ubuntu1.1 amd64 [已安裝,自動]
gstreamer1.0-plugins-rtp/noble 1.18.1.2 all
gstreamer1.0-plugins-ugly/noble,now 1.24.1-1build1 amd64 [已安裝,自動]
gstreamer1.0-pocketsphinx/noble 0.8.0+real5prealpha+1-15ubuntu5 amd64
gstreamer1.0-pulseaudio/noble-updates,noble-security 1.24.2-1ubuntu1.1 amd64
gstreamer1.0-python3-plugin-loader/noble 1.24.1-1 amd64
gstreamer1.0-qt5/noble-updates,noble-security 1.24.2-1ubuntu1.1 amd64
gstreamer1.0-qt6/noble-updates,noble-security 1.24.2-1ubuntu1.1 amd64
gstreamer1.0-rtsp/noble 1.24.2-1 amd64
gstreamer1.0-tools/noble-updates,noble-security 1.24.2-1ubuntu0.1 amd64
gstreamer1.0-vaapi/noble,now 1.24.2-1 amd64 [已安裝,自動]
gstreamer1.0-x/noble-updates,noble-security,now 1.24.2-1ubuntu0.2 amd64 [已安裝,自動]



2022年1月8日 星期六

按一下互動:toggle


這是網頁內容 的呈現部分。
是可以互動而移動的。


click here to move the div!!


程式語法:

<style>
.test01cla {
border: 1px solid gray;
width: 30%;
transition: 1s;
}

.test01cla001 {
margin-left: 5em;
}
</style>
<div class="test01cla" id="myDIV">
 這是網頁內容
所要呈現部分。<br>
我是可以互動而移動的。
</div>
<br>
<br>
<div onclick="myFunction()" style="cursor: pointer; text-decoration: underline;">
click here to move the div!!<br>
</div>


<script>
function myFunction() {
  var element = document.getElementById("myDIV");
  element.classList.toggle("test01cla001");
}
</script>




click下列圖像



<style>
  .japics0521 {
    width: 32% !important;
    transition: 0.5s ;
  }
  .japics0521a {
    width: 99% !important;
  }
</style>

<img onclick="this.classList.toggle('japics0521a');" src="https://images.pexels.com/photos/12016709/pexels-photo-12016709.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1" class="japics0521">

<img onclick="this.classList.toggle('japics0521a');" src="https://images.pexels.com/photos/12016708/pexels-photo-12016708.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1" class="japics0521">

<img onclick="this.classList.toggle('japics0521a');" src="https://images.pexels.com/photos/12016707/pexels-photo-12016707.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1" class="japics0521">


<br>