manjaro_install_all_in_one

manjaro_install_all_in_one

  • 20201111

镜像下载:

https://mirrors.tuna.tsinghua.edu.cn/osdn/storage/g/m/ma/manjaro/

装机准备

  • 制作启动盘
1.需要 4GB 以上的U盘
2.使用 rufdus 的 DD 模式写入(亲测可用)
3.使用 ultariso 的 RAW 模式写入(其他人说可用,未尝试)
4.分区表类型可以选择 GPT 或者 MBR
5.启动引导方式可以为 UEFI 或者 Legancy

manjaro_install_on_virturalbox

  • manjaro 系统选择与 virturalbox 虚拟机创建
桌面版系统选择,硬件配置超过4C16GB可以安装kde或者gnome桌面版,2核8GB及以下的建议使用xfce桌面版,性能及体验更好
打开virtualbox创建虚拟机,选择专家模式,进行个性化设置虚拟机配置
CPU2核,内存4GB,硬盘100GB
显卡配置,显存调整到128MB,监视器数量不需要修改,显卡控制器选择VBoxSVGA,否则无法使用自适应修改显示屏分辨率,会提示发现无效配置,提示需要选择VMSVGA,忽略即可
存储,需要有光盘选项,也就是IDE控制器,可以预先指定安装光盘,这里是注册这个按钮进行选择光盘
系统光盘选择,manjaro-xfce-20.0.3-200606-linux56.iso

1.修改终端的字体显示(xfce)

  • 配置方法:编辑-首选项-外观-选择字体 Source Code Pro Bold
alias ll="ls -alh"
echo -e '\nalias ll="ls -alh"' >> ~/.bashrc
tail -3 ~/.bashrc
source ~/.bashrc
sudo pacman -S vim

2.配置系统的软件源

  • 改为国内软件源,可以增加软件下载速度(必备)
  • 2.1.手动配置增加国内软件源配置
sudo vim /etc/pacman.conf
--------------------------------
# 增加以下配置内容,软件源的名称,后续用到,可以自定义
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch

[arch4edu]
SigLevel = Never
Server = http://mirrors.tuna.tsinghua.edu.cn/arch4edu/$arch
--------------------------------

# 或者
sudo vim /etc/pacman.d/mirrorlist
--------------------------
## Country : China
Server = https://mirrors.tuna.tsinghua.edu.cn/manjaro/stable/$repo/$arch
Server = https://mirrors.sjtug.sjtu.edu.cn/manjaro/stable/$repo/$arch
Server = https://mirrors.ustc.edu.cn/manjaro/stable/$repo/$arch
Server = https://mirrors.aliyun.com/manjaro/stable-staging/$repo/$arch
  • 常用命令
pacman -R pkg_name      # 删除指定安装包,但是保留其全部已安装的依赖关系
pacman -Rs pkg_name     # 删除指定软件包,以及没有被其他已安装软件包使用的依赖关系。
pacman -Sc              # 清除未安装软件包的缓存
pacman -Rsc              # 移除一个包及其所有依赖
pacman -Ss              # 查询包数据库
pacman -Qs              # 搜索已安装的包
pacman -Si              # 显示包信息
pacman -Qi              # 本地安装包	
sudo pacman -S 软件名   # 安装
sudo pacman -R 软件名   # 删除单个软件包,保留其全部已经安装的依赖关系
sudo pacman -Rs 软件名   # 除指定软件包,及其所有没有被其他已安装软件包使用的依赖关系
sudo pacman -Ss 软件名   # 查找软件
sudo pacman -Sc         # 清空并且下载新数据
sudo pacman -Syu       # 升级所有软件包
sudo pacman -Qs         # 搜索已安装的包	

Yay 是用 Go 编写的 Arch Linux AUR 包管理工具。具体可以查看 Arch Wiki
yay 的常用命令:

yay -S package          # 从 AUR 安装软件包
yay -Rns package        # 删除包
yay -Syu                # 升级所有已安装的包
yay -Ps                 # 打印系统统计信息
yay -Qi package         # 检查安装的版本
  • 2.2.在线配置可用的软件源信息
# 在线设置软件源
sudo pacman-mirrors -c China
sudo pacman-mirrors -c China -m rank  #  配置国内软件源,好用
sudo pacman-mirrors -i -c China -m rank   # 先查询后选择,费时间
sudo pacman-mirrors -c all        # 配置全球的软件源,费时间
sudo pacman-mirrors -g            # 在线获取全球可用软件源,费时间
sudo pacman-mirrors -id       # 重置为默认源,也就是全球可用源配置信息,费时间,

-c,--country     # 指定国家
-m,--method      # 指定方法,rank等级,random随机
-i,--interactive # 交互式
-d,--default     # 默认
-g                    # Create mirror list from active pool.
--------------------------------
https://mirrors.tuna.tsinghua.edu.cn/manjaro/
https://mirrors.ustc.edu.cn/manjaro/
https://mirrors.sjtug.sjtu.edu.cn/manjaro/
--------------------------------
  • 同步软件包数据库列表信息
sudo pacman -Sy
sudo pacman -Sy archlinuxcn-keyring
sudo pacman -Sy archlinux-keyring
  • 如果上面安装失败则使用以下命令:
sudo pacman -Syu haveged
sudo systemctl start haveged
sudo systemctl enable haveged
sudo rm -rf /etc/pacman.d/gnupg
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman -S archlinuxcn-keyring
sudo pacman-key --populate archlinuxcn

3.VirturalBox虚拟机相关配置

  • 安装增强工具,配置虚拟机全屏显示(virturalbox)
# 虚拟机-设备-安装增强工具,之后进入系统并进入光盘目录
cd /run/media/zhaoshuai/VBox_GAs_6.1.10
sudo ./VBoxLinuxAdditions.run

# 如果有内核报错参考以下:
# 解决屏幕自适应问题,参考资料: https://blog.csdn.net/bell_love/article/details/105080026
------------- 失败提示 -----------------
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted
-----------------------------------------
# 提示安装失败,” 请安装与当前内核匹配的 headers“
# 内核安装完成,重启生效,然后重新执行命令安装虚拟机增强工具

uname -r
sudo pacman -S linux-headers
  • 开启虚拟机与物理机之间共享粘贴板并实现文件的互相拖放
需要在 VirtualBox 的 “设备” 下,将 “共享粘贴板” 和 “拖放” 设置成 “双向”
  • 关于 virtualbox 的显卡选项问题
宿主机为windows则virtualbox的显示选项-显卡控制器需要使用VBoxSVGA,可以自适应窗口大小变化
报错提示:Set your Virtualbox Graphics Controller to VBoxSVGA to enable window resizing
宿主机为linux则virtualbox的显示选项-显卡控制器需要使用VMSVGA 

4.安装包管理工具 yaourt 和 yay

  • pacman 是 arch 系统下的包管理工具,类似于 centos 下的 yum 或者 ubuntu 下的 apt-get
  • yaourt 是 arch 系统下的包管理工具,类似于 pacman 的升级版
  • yay 可以当作是 yaourt 的升级版
  • yay 和 yaourt本质上会调用 pacman 来安装软件
  • 使用 yay 和 yaourt 时可以不使用 root 或者 sudo,且要尽量避免使用
sudo pacman -S yaourt yay
sudo pacman -Sy base-devel
yay -S net-tools

5.安装常用软件

5.1.安装生产力工具

# 远程桌面 remmina
yay -S remmina freerdp libvncserver gnome-terminal

# 也可以使用snap安装
https://snapcraft.io/install/remmina/arch#install

# 文本编辑器
yay -S gedit
yay -S typora
yay -S neovim
yay -S atom
  
# 安装 net-tools,可以使用ifconfig 和 netstat
yay -S net-tools
  • 其他软件
screenfetch neofetch htop iftop tree baobab bind-tools grub-customizer dbeaver dfc lolcat figlet

# 安装 SecureCRT
# 参考:https://www.cnblogs.com/itxdm/p/crt.html


# 源码安装 SecureCRT 软件(可以是ubuntu版本的软件,可以使用有管理员权限的普通用户)
mkdir -p /home/zhaoshuai/Applications
cd /home/zhaoshuai/Applications
tar -xf scrt-8.5.3.1867.ubuntu18-64-m.tar.gz
mv scrt-8.5.3 SecureCRT

# 下载破解脚本
cd SecureCRT
ll
wget http://download.boll.me/securecrt_linux_crack.pl
chmod 755 securecrt_linux_crack.pl
./securecrt_linux_crack.pl ./SecureCRT

----------------------
crack successful

License:

        Name:           xiaobo_l
        Company:        www.boll.me
        Serial Number:  03-91-324785
        License Key:    AC33SN 4JHKFS 48KYUT MY8F24 AAKC1C HJYFXT 8P6S99 MRAUQ2
        Issue Date:     02-12-2019
---------------------------
# 返回以上信息代表破解完成

# 打开程序填写注册信息(可以从 Windows 版的破解工具中生成一个注册信息)
cd /home/zhaoshuai/Applications/SecureCRT
./SecureCRT
------------------------------------
Name:ygeR[
Company:TEAM ZWT[
Serial Number:03-19-195472[
License Key:AB4JH5 XFK42B 7ATX6K 6Y318A ABGKSW W16FUU CYNJUW VPFJ7R[
Issue Date:07-27-2020[
Features:[
------------------------------------

# 创建桌面快捷方式
sudo vim /usr/share/applications/SecureCRT.desktop
---------------------------------
[Desktop Entry]
Comment[zh_CN]=SecureCRT
Comment=SecureCRT
Exec=/home/zhaoshuai/Applications/SecureCRT/SecureCRT
GenericName[zh_CN]=SecureCRT
GenericName=SecureCRT
Icon=/home/zhaoshuai/Applications/SecureCRT/securecrt_64.png
MimeType=
Name[zh_CN]=SecureCRT
Name=SecureCRT
Path=/home/zhaoshuai/Applications/SecureCRT
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
---------------------------------
sudo chmod 755 /usr/share/applications/SecureCRT.desktop
ln -s /usr/share/applications/SecureCRT.desktop /home/zhaoshuai/Desktop
# 至此打开桌面即可看到 SecureCRT 的图标

5.2.安装输入法

5.2.1.安装输入法软件包

# 安装依赖包
yay -S fcitx-im fcitx-configtool \
fcitx-gtk2 fcitx-gtk3

# 安装搜狗拼音
yay -S fcitx-sogoupinyin

# 安装谷歌拼音
yay -S fcitx-googlepinyin

# 创建开机自启动配置文件
cp /etc/xdg/autostart/fcitx-autostart.desktop ~/.config/autostart/

5.2.2.配置环境变量:3个

sudo vim ~/.xprofile
------------------------
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
------------------------

sudo vim ~/.pam_environment
------------------------
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
------------------------

sudo vim /etc/profile
--------------------
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
--------------------

sudo vim ~/.bashrc

# 应用环境变量
cat ~/.xprofile
cat ~/.pam_environment
cat /etc/profile

source ~/.xprofile
source ~/.pam_environment
source /etc/profile
  • 也可以命令行设置环境变量
echo "export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx" > ~/.xprofile

echo "GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx" > ~/.pam_environment

5.2.3.配置中文输入法

  • 安装完成后开始菜单搜索 "fcitx配置" 打开输入法配置工具
  • 调整默认输入法,清理不需要的输入法的
  • 可能需要注销或者重启

5.2.4.常见输入法问题

https://www.jianshu.com/p/057a80940de6
https://bbs.archlinuxcn.org/viewtopic.php?id=1862
https://bbs.archlinuxcn.org/viewtopic.php?id=2605
https://bbs.archlinuxcn.org/viewtopic.php?id=1862
https://bbs.archlinuxcn.org/viewtopic.php?id=1919

  • 问题1:安装完输入法无法正常使用
# fcitx-im 包含 fcitx 和 fcitx-qt5 两个包,取消了 fcitx-qt4
# 如果输入法无法正常使用,需要单独安装AUR仓库里的 fcitx-qt4
yay -S fcitx-qt4

# 如果无法正常安装 fcitx-qt4 可以安装 fcitx-lilydjwg-git 替代(需要 archlinuxcn 源)
# 该软件包会与 fcitx-im 中的 fcitx 冲突,选择替换即可
yay -S fcitx-lilydjwg-git
  • 问题2:日常使用出现异常或升级后无法使用
  • 现象:
系统自带的文本工具,vscode等可以正常使用
无法在谷歌等浏览器或者第三方软件调出输入法,提示无输入框
  • 处理方法:
1.检查软件包是否正常可用,尝试重装解决
2.使用输入法工具进行诊断确定问题
fcitx-diagnose
------------------------------
## Gtk:
1.  gtk - `${GTK_IM_MODULE}`:

    环境变量 GTK_IM_MODULE 已经正确地设为了 "fcitx".

2.  `gtk-query-immodules`:

    1.  gtk 2:
Cannot load module /usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx.so: GModule (/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx.so) initialization check failed: GLib version too old (micro mismatch)
/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx.so does not export GTK+ IM module API: GModule (/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx.so) initialization check failed: GLib version too old (micro mismatch)

        在 `/usr/bin/gtk-query-immodules-2.0` 找到了未知 gtk 版本的 `gtk-query-immodules`.

        **无法在 `/usr/bin/gtk-query-immodules-2.0` 的输出重找到 fcitx.**

        **无法找到 gtk 2 的 `gtk-query-immodules`.**

        **无法找到 gtk 2 的 fcitx 输入法模块.**

    2.  gtk 3:
Cannot load module /usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx.so: GModule (/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx.so) initialization check failed: GLib version too old (micro mismatch)
/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx.so does not export GTK+ IM module API: GModule (/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx.so) initialization check failed: GLib version too old (micro mismatch)

        在 `/usr/bin/gtk-query-immodules-3.0` 找到了未知 gtk 版本的 `gtk-query-immodules`.

        **无法在 `/usr/bin/gtk-query-immodules-3.0` 的输出重找到 fcitx.**

        **无法找到 gtk 3 的 `gtk-query-immodules`.**

        **无法找到 gtk 3 的 fcitx 输入法模块.**
------------------------------
# 这个故障是由于 gtk2 和 gtk3 软件包异常导致,重装即可
# 可能需要卸载原有安装包
# 重装后,某些软件可能需要重启才能生效
yay -S gtk2 gtk3

# 安装完毕重新检查,以下为正确返回
-------------------------
## Gtk:
1.  gtk - `${GTK_IM_MODULE}`:

    环境变量 GTK_IM_MODULE 已经正确地设为了 "fcitx".

2.  `gtk-query-immodules`:

    1.  gtk 2:

        在 `/usr/bin/gtk-query-immodules-2.0` 找到了 gtk `2.24.32` 的 `gtk-query-immodules`.
        版本行:

            # Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.32

        已找到 gtk `2.24.32` 的 fcitx 输入法模块.

            "/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx.so" 
            "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*" 

    2.  gtk 3:

        在 `/usr/bin/gtk-query-immodules-3.0` 找到了 gtk `3.24.23` 的 `gtk-query-immodules`.
        版本行:

            # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.23

        已找到 gtk `3.24.23` 的 fcitx 输入法模块.

            "/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx.so" 
            "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*" 

3.  Gtk 输入法模块缓存:

    1.  gtk 2:

        在 `/usr/lib/gtk-2.0/2.10.0/immodules.cache` 找到了 gtk `2.24.32` 的输入法模块缓存.
        版本行:

            # Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.32

        已找到 gtk `2.24.32` 的 fcitx 输入法模块.

            "/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx.so" 
            "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*" 

    2.  gtk 3:

        在 `/usr/lib/gtk-3.0/3.0.0/immodules.cache` 找到了 gtk `3.24.23` 的输入法模块缓存.
        版本行:

            # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.23

        已找到 gtk `3.24.23` 的 fcitx 输入法模块.

            "/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx.so" 
            "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*" 

4.  Gtk 输入法模块文件:

    1.  gtk 2:

        找到的全部 Gtk 2 输入法模块文件均存在.

    2.  gtk 3:

        找到的全部 Gtk 3 输入法模块文件均存在.
-------------------

3.重新加载语言选项
vim /etc/locale.gen
sudo locale-gen

4. 重新安装 fcitx
如果 fcitx 调用时出现错误异常,请执行以下命令:
rm -rf ~/.config/fcitx  
rm -rf ~/.sogouinput #如果安装了sogou输入法也执行这个

5. 针对部分软件的环境变量设置
一般来说到了这步,fcitx 在绝大部分的软件中是可以正常使用的。只是在 wps、Qt、jetbrains全家桶、deepin-TIM、deepin-wechat 等软件中无法使用中文输入。
针对以上软件,在下列对应文件中单独添加如下环境变量:
---------------------
export XMODIFIERS="@im=fcitx"
export GTK_IM_MODULE="fcitx"
export QT_IM_MODULE="fcitx"
---------------------

deepin-wine 系列的举例如下:
---------------------
TIM:
/opt/deepinwine/apps/Deepin-TIM/run.sh
微信:
/opt/deepinwine/apps/Deepin-WeChat/run.sh

WPS:
/usr/bin/wps
/usr/bin/wpp
/usr/bin/et

Jetbrain 系列举例如下:
Goland:
/opt/goland/bin/goland.sh
---------------------
如果出现问题的软件不再我所述范围内的话,可以先尝试寻找其运行的 sh 文件,如果找不到,再尝试在 /usr/bin 文件夹中寻找。

5.3.安装办公软件

# 浏览器
yay -S google-chrome
yay -S opera

# 国内版火狐浏览器
sudo pacman -S firefox firefox-i18n-zh-cn

# office
yay -S wps-office-cn ttf-wps-fonts wps-office-mui-zh-cn
yay -S xmind-zen 
# yay -S archlincn/nixnote2 archlinuxcn/qownnotes archlinuxcn/vnote-git

# 压缩解压缩
yay -S file-roller unrar unzip p7zip

# 百度云盘命令行版
baidupcs

5.4.安装娱乐软件

# 聊天软件:微信,Tim,QQ
yay -S deepin-wine-wechat
yay -S deepin-wine-tim

# 安装 QQ,娱乐性,支持不是很好,聊天的话 Tim 足够
yay -S deepin-wine-qq

# 旧版的软件:
yaourt -S deepin.com.qq.im
yaourt -S deepin.com.qq.office

# 音乐播放器
yay -S netease-cloud-music
yay -S listen1

# 迅雷
yay -S deepin-wine-thunderspeed

5.5.安装其他常用工具

# 安装配置 git
yay -S git
git config --global user.name "github昵称"
git config --global user.email "注册邮箱"

# 安装开发工具,VSCode,pycharm
yay -S visual-studio-code-bin
yay -S pycharm-community-edition
# yay -S pycharm

# 文本对比
yay -S bcompare

#  数据库管理
yay -S navicat
yay -S Dbeaver

5.6.卸载不常用的预装软件

yay -Rs evolution 
sudo pacman -Rs galculator 
sudo pacman -Rs brasero 
sudo pacman -Rs hexchat

# 卸载默认的 openjdk
sudo pacman -R jdk8-openjdk 
sudo pacman -R jre8-openjdk 
sudo pacman -R jre8-openjdk-headless

5.7.修改默认的 shell

  • 常用命令:
安装 pacman -S
删除 pacman -R
移除已安装不需要软件包 pacman -Rs
删除一个包,所有依赖 pacman -Rsc
升级包 pacman -Syu
查询包数据库 pacman -Ss
搜索以安装的包 pacman -Qs
显示包大量信息 pacman -Si
本地安装包 pacman -Qi
清理包缓存 pacman -Sc

配置 zsh

  • 查看系统当前安装使用和支持的 shell
echo $SHELL

cat /etc/shells
----------------------
/bin/sh
/bin/bash
/bin/zsh
/usr/bin/zsh
/usr/bin/git-shell
----------------------
  • 安装配置使用 zsh
# 安装 zsh (可以是普通用户或者 root 用户)
# sudo pacman -S zsh zsh-completions
yay -S zsh zsh-completions
zsh --version

# 修改默认 shell 配置
chsh -s /bin/zsh
cat /etc/passwd|grep zhaoshuai

# 使用 zsh 的配置模板 oh-my-zsh
# 在以 root 用户为前提下,oh-my-zsh 的安装目录:/root/.oh-my-zsh
# 在以 root 用户为前提下,Zsh 的配置文件位置:/root/.zshrc
# 为 root 用户设置 zsh 为系统默认 shell:chsh -s /bin/zsh root
# 如果你要重新恢复到 bash:chsh -s /bin/bash root
  • 安装 oh-my-zsh 优化终端配置
Oh My Zsh 它是基于 zsh 命令行的一个扩展工具集,提供了丰富的扩展功能
官网了解:
http://www.zsh.org/

# Oh My Zsh主要优点:
1.更强大的tab补全,当你切换目录敲两下tab,他可以列出当前目录下面的所有目录,并且可以使用键盘上下左右键来选择要进入的目录。
2.更智能的切换目录,比如你要进入一个很深的目录 比如:var/log/nginx/error/lastyear/may/first/monday, 用zsh可以这样输入cd /v/l/n/e/l/m/f/m,然后按tab即可补全整个路径。或者你实现知道当前目录名称,可以直接输入目录,即可进去目录。bash下cd - 可以切换到刚才进入的目录
3.命令选项补齐,比如输入docker,然后按tab,即可显示出docker都有哪些命令选项。
4.命令参数补齐,比如要kill一个进程,直接输入kill 进程名,会自动显示出进程的process id,如果用ssh,则会输出最近用ssh 连接过的主机名,配合.zshrc还可以实现自定义ping命令自动补齐的命令参数。
# 下载安装
wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh

# 或者
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

# 看到以下信息表示安装完成:
-------------------------------
[zhaoshuai@ZS-Dell630 manjaro]$ chmod 755 install_oh-my-zsh.sh 
[zhaoshuai@ZS-Dell630 manjaro]$ ./install_oh-my-zsh.sh
Cloning Oh My Zsh...
正克隆到 '/home/zhaoshuai/.oh-my-zsh'...
remote: Enumerating objects: 1155, done.
remote: Counting objects: 100% (1155/1155), done.
remote: Compressing objects: 100% (1121/1121), done.
remote: Total 1155 (delta 20), reused 1073 (delta 18), pack-reused 0
接收对象中: 100% (1155/1155), 775.06 KiB | 219.00 KiB/s, 完成.
处理 delta 中: 100% (20/20), 完成.

Looking for an existing zsh config...
Found ~/.zshrc. Backing up to /home/zhaoshuai/.zshrc.pre-oh-my-zsh
Using the Oh My Zsh template file and adding it to ~/.zshrc.

Time to change your default shell to zsh:
Do you want to change your default shell to zsh? [Y/n] 
Changing the shell...
正在更改 zhaoshuai 的 shell。
密码:
Shell 已更改。
Shell successfully changed to '/usr/bin/zsh'.

         __                                     __
  ____  / /_     ____ ___  __  __   ____  _____/ /_
 / __ \/ __ \   / __ `__ \/ / / /  /_  / / ___/ __ \
/ /_/ / / / /  / / / / / / /_/ /    / /_(__  ) / / /
\____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_/
                        /____/                       ....is now installed!


Before you scream Oh My Zsh! please look over the ~/.zshrc file to select plugins, themes, and options.

• Follow us on Twitter: https://twitter.com/ohmyzsh
• Join our Discord server: https://discord.gg/ohmyzsh
• Get stickers, shirts, coffee mugs and other swag: https://shop.planetargon.com/collections/oh-my-zsh

➜  manjaro
--------------------------------
  • 修改 zsh 终端主题配置
vim ~/.zshrc
---------------------
# 确认增加以下参数,可以修改为 random 随机主题,每次打开都是不一样的体验,修改完下次登录生效
ZSH_THEME="robbyrussel"
---------------------

# 以下为可选的主题列表,可以根据喜好进行选择
https://github.com/ohmyzsh/ohmyzsh/wiki/themes
https://github.com/ohmyzsh/ohmyzsh/wiki/External-themes
  • 安装 powerline 主题进行美化配置
# 注意需要预先查看本机 Python 版本确定相关库文件位置
python -V
sudo pacman -S powerline powerline-fonts powerline-vim

vim ~/.vimrc
---------------------
let g:powerline_pycmd="py3" 
set laststatus=2 
set t_Co=256
syntax on
---------------------

# 修改 ~/.zshrc 增加 powerline 选项
vim ~/.zshrc
---------------------
# 增加以下配置
powerline-daemon -q 
. /usr/lib/python3.8/site-packages/powerline/bindings/zsh/powerline.zsh
---------------------

# 修改 ~/.bashrc 增加 powerline 选项
vim ~/.bashrc
---------------------
# 增加以下配置
powerline-daemon -q 
POWERLINE_BASH_CONTINUATION=1 
POWERLINE_BASH_SELECT=1 
. /usr/lib/python3.8/site-packages/powerline/bindings/bash/powerline.sh
---------------------
  • 参考文档:
[完美脱离Windows!! Linux发行版第一系统 Manjaro 开箱教程 :)]
https://www.cnblogs.com/demonxian3/p/9259912.html
  • linux 桌面版
Manjaro 凭什么排名 Linux 桌面发行版第一 https://ywnz.com/linuxxw/3440.html
Manjaro 是 Linux 桌面发行版前三名的常客,经常排名第一,和 Linux Mint、Ubuntu、Debian 等知名 Linux 版本齐名,
Manjaro 基于 Arch Linux 但远比 Arch Linux 出名,Arch Linux 排名在前十名之外,而 Manjaro 早就是前三名的常客了
  
Manjaro 的这几点改进非常友好
1.非常简单且美观的图形化安装程序,使其安装更加的便捷。
2.Manjaro 能自动检测计算机的硬件,绝大多数硬件都能完美支持。
3.自动安装用户必需的软件,包括图形驱动程序,使用户安装完成即可投入使用。
4.有专门的软件仓库,提供经过严格测试的稳定软件包,使用户能够使用可靠的软件。
5.能使用多个 Linux 内核。
6.预先安装了桌面环境,包括提供 Awesome、bspwm、Budgie、Cinnamon、Deepin、GNOME、i3、KDE Plasma、LXQt、MATE、Openbox、Xfce 桌面。
7.独家开发的 pamac 软件管理器,轻松安装软件和更新 Manjaro 系统,相比其它的 Linux 发行版更具有优势。
8.解决了播放多媒体文件问题,预先安装编解码器播放多媒体文件。
9.丰富的日志型文件系统:Btrfs、ext3、ext4、JFS、ReiserFS、XFS。
10.Manjaro 以简单、最新、快速、用户友好,并遵循 K.I.S.S 原则为主旨。
11.Manjaro 完全继承 ArchLinux 的 3 个无与伦比优势,
即滚动更新可以使软件保持最新、AUR 软件仓库有着世界上最齐全的 Linux 软件、丰富的 wiki 和活跃的社区让所有问题都可以快速得到满意的答案,
除此之外,Manjaro 大幅优化 ArchLinux,简 化安装及使用方式,让用户更便捷的使用到 Manjaro,这是 ArchLinux 不可比的。
你可以看看 ArchLinux 的安装方式,非常复杂,参考在 VMWare 虚拟机中安装 Arch Linux 一文。
listen1: 可以搜索和播放来自网易云音乐,虾米,QQ 音乐,酷狗音乐,酷我音乐网站的歌曲 

Dbeaver: 一个通用的数据库管理工具和 SQL 客户端,提供 dbeaver-ce 社区版
  • screenfetch 获取系统信息
---------------------
 ██████████████████  ████████     zhaoshuai@ZS-Dell630
 ██████████████████  ████████     OS: Manjaro 20.1-rc1 Mikah
 ██████████████████  ████████     Kernel: x86_64 Linux 5.7.9-1-MANJARO
 ██████████████████  ████████     Uptime: 4h 59m
 ████████            ████████     Packages: 1322
 ████████  ████████  ████████     Shell: bash
 ████████  ████████  ████████     Resolution: 1920x1080
 ████████  ████████  ████████     DE: KDE 5.72.0 / Plasma 5.19.3
 ████████  ████████  ████████     WM: KWin
 ████████  ████████  ████████     GTK Theme: Breath [GTK2/3]
 ████████  ████████  ████████     Icon Theme: breath2
 ████████  ████████  ████████     Disk: 40G / 230G (18%)
 ████████  ████████  ████████     CPU: Intel Core i5-7200U @ 4x 3.1GHz [64.0°C]
 ████████  ████████  ████████     GPU: Mesa Intel(R) HD Graphics 620 (KBL GT2)
                                  RAM: 5041MiB / 7711MiB
-----------------------------
yay -S audacity     音频编辑
yay -S xmind        脑图
yay -S shutter      截图工具
yay -S dingtalk     钉钉
yay -S okular       pdf
yay -S scrt         SecureCRT,安装失败
yay -S virtualbox   虚拟机
yay -S youdao-dict  有道词典
yay -S vokoscreen   录屏软件
yay -S deepin-screenshot    深度截图
yay -S netease-musicbox     命令行版的网易云音乐,装逼神器
yay musicbox        可以列出可以安装的版本供选择

# 项目地址:
https://github.com/darknessomi/musicbox

# 使用说明
https://github.com/darknessomi/musicbox/blob/master/README.md#%E9%94%AE%E7%9B%98%E5%BF%AB%E6%8D%B7%E9%94%AE

yay -S foxitreader      福熙阅读器

# steam是自带软件, 如果启动不成功, 可以补一个包steam-native-runtime
pacman -S steam-native-runtime

# 安装git客户端
sudo yaourt GitKraken

安装下载工具 uget
sudo yaourt -S uget

安装视频播放器
sudo yaourt -S mpv

# deepin 系的软件
sudo pacman -S deepin-picker # 深度取色器
sudo pacman -S deepin-screen-recorder # 录屏软件,可以录制 Gif 或者 MP4 格式
sudo pacman -S deepin-screenshot # 深度截图
sudo pacman -S deepin-system-monitor # 系统状态监控
yay -s deepin-wine-wechat
yay -S deepin-wine-tim
yay -S deepin-wine-baidupan
yay -S deepin.com.thunderspeed

# 开发软件
sudo pacman -S jdk8-openjdk
sudo pacman -S make
sudo pacman -S cmake
sudo pacman -S clang
sudo pacman -S nodejs
sudo pacman -S npm
sudo pacman -S goland
sudo pacman -S vim
sudo pacman -S maven
sudo pacman -S pycharm-professional # Python IDE
sudo pacman -S intellij-idea-ultimate-edition # JAVA IDE
sudo pacman -S goland # Go IDE
sudo pacman -S visual-studio-code-bin # vscode
sudo pacman -S qtcreator # 一款QT开发软件
sudo pacman -S postman-bin
sudo pacman -S insomnia # REST模拟工具
sudo pacman -S gitkraken # GIT管理工具
sudo pacman -S wireshark-qt # 抓包
sudo pacman -S zeal
sudo pacman -S gitkraken # Git 管理工具

# 办公软件
sudo pacman -S google-chrome
sudo pacman -S foxitreader # pdf 阅读
sudo pacman -S bookworm # 电子书阅读
sudo pacman -S unrar unzip p7zip
sudo pacman -S goldendict # 翻译、取词
sudo pacman -S wps-office
yay -S typora # markdown 编辑
yay -S electron-ssr # 缺少我需要的加密算法
yay -S xmind

# 设计
sudo pacman -S pencil # 免费开源界面原型图绘制工具

# 娱乐软件
sudo pacman -S netease-cloud-music

# 下载软件
sudo pacman -S aria2
sudo pacman -S filezilla  # FTP/SFTP

# 图形
sudo pacman -S gimp # 修图

# 系统工具
sudo pacman -S albert #类似Mac Spotlight,另外一款https://cerebroapp.com/
yay -S copyq #  剪贴板工具,类似 Windows 上的 Ditto

# 终端
sudo pacman -S screenfetch # 终端打印出你的系统信息,screenfetch -A 'Arch Linux'
sudo pacman -S htop
sudo pacman -S bat
sudo pacman -S yakuake # 堪称 KDE 下的终端神器,KDE 已经自带,F12 可以唤醒
sudo pacman -S net-tools # 这样可以使用 ifconfig 和 netstat
yay -S tldr
yay -S tig # 命令行下的 git 历史查看工具
yay -S tree
yay -S ncdu # 命令行下的磁盘分析器,支持Vim操作
yay -S mosh # 一款速度更快的 ssh 工具,网络不稳定时使用有奇效


wireshark-qt
Wireshark 是一款免费开源的包分析器,可用于网络排错、网络分析、软件和通讯协议开发以及教学等。然而不幸的是官方网站上仅提供了 Windows 和 MacOS 的版本。不过不用担心,你依然可以使用 pacman 直接从 Arch 的 community 软件源里直接安装 wireshark-qt 。wireshark-qt 就是用 qt 做成的 wireshark 前端界面,它依赖于终端版的 wireshark-cli 。

这里提示一点: 通常直接安装完后启动 wireshark 会提示 /usr/bin/dumpcap 无权限,有些用户会因此选择在命令行里 sudo wireshark 打开 wireshark,这其实很不安全。正确做法是运行命令 gpasswd -a username wireshark 然后重新启动,详情可以参见 Arch Wiki 。

其他问题

开机后某些应用需要输入用户密码访问 kdewallet

nextcloud-client
kdesvn
kded5

系统配置---个性化---账户详细信息---kde钱包
1.需要启用kde钱包子系统,否则无法正常使用记录的账号密码信息
2.右下角,调用钱包管理器,修改密码,设置为空密码

至此,开机需要输密码连接 kdewallet 的应用不需要输入即可密码连接

开机需要输入wifi密码

关闭kde钱包后,开机需要输入wifi密码
打开wifi配置
常规配置:勾选,所有用户可以连接到此网络
wifi安全,配置密码,为所有用户保存密码

参考文档

https://www.pianshen.com/article/740635897/

Linux 桌面版排名网站:https://distrowatch.com/dwres.php?resource=popularity

https://cloud.tencent.com/developer/article/1390999

https://michael728.github.io/2019/08/03/linux-manjaro-install/

secureCRT安装破解
https://blog.csdn.net/z2066411585/article/details/78935917

Linux显卡配置
http://www.iamlightsmile.com/articles/%E4%BA%BA%E7%94%9F%E8%8B%A6%E7%9F%AD%EF%BC%8C%E6%88%91%E7%94%A8Manjaro%EF%BC%81/
posted @ 2020-11-11 16:36  天生帅才  阅读(533)  评论(0编辑  收藏  举报
// 百度统计