补充 OpenCV 的安装,调整文章结构.

Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
rick.chan 2021-04-14 09:23:32 +08:00
parent 83832789a7
commit 92e486737b
1 changed files with 61 additions and 54 deletions

View File

@ -49,9 +49,9 @@ pacman -S linux-firmware
## 5.安装和配置网络
### Wifi
### 5.1.Wifi
#### Intel
#### 5.1.1.Intel
iwlwifi 是 Intel 无线芯片的驱动集合5100AGN、5300AGN 和 5350AGN 等。对应的 firmware 包含在 linux-firmware 包中。而 linux-firmware-iwlwifi-gitAUR 包含了一些最近的更新。
@ -79,7 +79,7 @@ If you have an 802.11ax (WiFi 6) access point and have problems detecting the be
**Note: Using 11n_disable=0 will also prevent 802.11ac and only allow connection with slower protocols (802.11a in the 5GHz band or 802.11b/g in the 2.4 GHz band).**
### 网络工具和配置
### 5.2.网络工具和配置
首先要安装网络工具:
@ -240,12 +240,19 @@ pacman -S base-devel git gcc make cmake gdb python2 python3 go arm-none-eabi-gcc
另外需要安装 flex、bison、libncurses5-dev 等。
### 安装防火墙
### 11.1.安装防火墙
```bash
pacman -S firewalld
```
### 11.2.安装 OpenCV
```bash
# OpenCV 支持 VIZ 的版本需要 VTK 库
pacman -Ss opencv vtk
```
## 12.安装 Gnome
使用下列命令安装 Gnome 并安装 Gnome 配置工具gnome-tweaks
@ -267,9 +274,51 @@ yaourt -S flat-remix-gnome flat-remix flat-remix-gtk
访问 <https://extensions.gnome.org> 搜索 AlternateTab 扩展,在网页上安装浏览器插件后可在扩展的首页右上角看到开关按钮,点击打开就会自动安装,之后在 gnome-tweaks 可以找到该扩展,使能该扩展实现“仅在当前工作区中切换窗口”的功能。
## 13.安装输入法
## 13.VMTools
### 安装 fcitx 输入法
如果 Manjaro 作为 VirtualBox 的 Guest 来运行,则需要安装 VMTools命令如下
```bash
pacman -S virtualbox-guest-utils
```
一定不要使用 VM 的菜单来安装工具。
## 14.提升权限
普通用户可能无法访问某些设备,需要提升权限:
```bash
# 通过下列命令获得设备节点所在的组.
ls -l /dev |grep <device node>
# 以下命令中的 group name 为上述 ls 得到设备节点所在组名.
gpasswd --add <user name> <group name>
# 通过以下命令确认是否已将用户添加到该组.
groups <user name>
```
## 15.配置 Bash
在 ~/.bash_profile 中增加
```ini
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vidr='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
```
## 16.安装应用
### 16.1.安装输入法
#### 16.1.1.安装 fcitx 输入法
输入以下命令安装 fcitx-im 默认安装全部软件,并安装 google 拼音输入法:
@ -299,7 +348,7 @@ fcitx-diagnose
通过 fcitx-configtool 添加输入法。通过 ctrl+space 来切换输入法。
### 安装 IBus 输入法
#### 16.1.2.安装 IBus 输入法
输入以下命令安装 ibus。
@ -327,49 +376,7 @@ export XMODIFIERS=@im=ibus
*注:如果有多个输入法,可以使用 im-config 工具进行切换。*
## 14.VMTools
如果 Manjaro 作为 VirtualBox 的 Guest 来运行,则需要安装 VMTools命令如下
```bash
pacman -S virtualbox-guest-utils
```
一定不要使用 VM 的菜单来安装工具。
## 15.提升权限
普通用户可能无法访问某些设备,需要提升权限:
```bash
# 通过下列命令获得设备节点所在的组.
ls -l /dev |grep <device node>
# 以下命令中的 group name 为上述 ls 得到设备节点所在组名.
gpasswd --add <user name> <group name>
# 通过以下命令确认是否已将用户添加到该组.
groups <user name>
```
## 16.配置 Bash
在 ~/.bash_profile 中增加
```ini
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vidr='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
```
## 17.安装应用
### 安装 Qt
### 16.2.安装 Qt
```bash
pacman -S qtcreator qt5-base qt5-doc
@ -377,13 +384,13 @@ pacman -S qtcreator qt5-base qt5-doc
echo "export QT_QPA_PLATFORMTHEME=gtk2" >> ~/.profile
```
### 音乐播放
### 16.3.音乐播放
```bash
pacman -S rhythmbox
```
### 安装 WPS Office
### 16.4.安装 WPS Office
```bash
yaourt -S wps-office-cn
@ -417,7 +424,7 @@ yaourt -S ttf-wps-fonts
yaourt -S wps-office-fonts
```
### 安装 Ocenaudio
### 16.5.安装 Ocenaudio
Ocenaudio 是一款 Linux 下的音频编辑软件,提供音频转码、滤波等功能,安装方法如下: