软件整理

wps

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
yay -S wps-office wps-office-mui-zh-cn

安装完后启动WPS,可能会弹出窗口,提示「系统缺失字体」。问题原因是wps for 没有自带Windows的字体。
在终端中输入以下命令进入tmp目录
cd /tmp
将字体库克隆下来
git clone git@github.com:IamDH4/ttf-wps-fonts.git
进入下面的目录
cd ttf-wps-fonts
使用安装脚本安装字体
sudo bash install.sh
清理tmp目录
rm -rf /tmp/ttf-wps-fonts
完成

如果需要修改WPS的界面语言,先打开WPS Writer,新建一个文件,界面的右上方有个A字符的按钮,点进去后,取消勾选「跟随系统语言」选项,然后选择你想要的语言即可。

注:使用wps的用户还需要编辑~/.xprofile添加以下内容(在新版中bug被修复了,但是如果有问题的话,可以尝试此方法)
export QT_IM_MODULE=fcitx5

解决无法输入中文问题:

1
2
3
4
sudo vim /usr/bin/wps,在第一行(#!/bin/bash)下面添加:
export XMODIFIERS="@im=fcitx"
export QT_IM_MODULE="fcitx"
gOpt=gTemplateExt=("wpt" "dot" "dotx")

使用timeshift备份系统

安装:

1
yay -S timeshift

打开软件,保持默认。

在【用户】选项内设置需要备份的分区,

  • root选择【包含一切】或者【排除一切】
  • home选择【排除一切】

注: root默认就是全备份的,经测试更改也是无效的,也就是root必须备份。

在【筛选】选项内可以自定义备份文件或文件夹

建议这样配置:

  • 先将home整个目录排除,添加/home/用户名/**

  • home目录下比较重要的如:.local.config等,需要加入,切记要加上***三个星

  • 创建快照

    此时timeshift会根据时间生成一个带有时间戳的快照,此过程需要等待一段时间,并且期间不要对电脑执行任何操作。

如果只能进入登录界面

一般系统崩溃后不能进入桌面,但是能够进入登录界面,现象就是在登录界面输入密码后不会进入桌面,那么就要通过命令行的方式进行还原。

  1. 通过Ctrl+Alt+F1(一般是F1-F6都可)进入tty终端:

  2. 输入用户和密码登录

  3. 执行下面命令获取系统当前可以还原的节点:

    1
    2
    sudo timeshift --list
    1

    输出内容:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    Device : /dev/sdb4
    UUID : 197c4161-abc6-4069-8544-d86594211f04
    Path : /home
    Mode : RSYNC
    Device is OK
    12 snapshots, 92.5 GB free

    Num Name Tags Description
    ------------------------------------------------------------------------------
    0 > 2018-08-08_11-49-26 O D
    1 > 2018-08-13_23-02-06 O
    2 > 2018-08-15_22-53-24 O
    3 > 2018-08-21_09-37-29 O
    4 > 2018-11-19_17-43-59 O
    5 > 2019-01-20_19-36-34 O
    6 > 2019-03-01_11-18-09 O
    7 > 2019-03-01_14-54-37 O
    8 > 2019-03-04_14-48-57 O
    9 > 2019-03-10_20-50-00 O
    10 > 2019-03-14_11-51-54 O
    11 > 2019-07-16_16-35-42 O
    123456789101112131415161718192021
  4. 选择一个节点进行还原

    1
    2
    sudo timeshift --restore --snapshot '2019-07-16_16-35-42' --skip-grub
    1

    –skip-grub 选项为跳过grub安装,一般来说grub不需要重新安装,除非bios启动无法找到正确的grub启动项,才需要安装。

    在输出的内容中依次输入【Enter】键和【y】键。

    当然也可以直接输入下面的命令,忽略交互式的安装界面:

    1
    2
    sudo timeshift --restore --snapshot '2019-07-16_16-35-42' --skip-grub --scripted
    1

无法进入系统,通过U盘启动系统

当登录界面和桌面环境都无法进入时,一般系统已经彻底崩溃,此时只能通过Linux live CD进行还原。

  1. 制作Linux Mint 启动盘,制作过程略。

  2. 进入Live系统后打开 Timeshift 软件,点击设置按钮,设置快照的存储位置:

  3. 快照的存储位置是Timeshift在做备份的时候就已经设置好的。

  4. 后续步骤和【如果能够进入系统】内的还原方式一样。

其实此时还可以通过命令行的方式进行还原,但是首先需要设置快照存储的位置:

1
2
sudo timeshift --snapshot-device /dev/sdb4

后续步骤和【如果只能进入登录界面】内的还原方式一样。


错误: Cannot find the fakeroot binary. ==> 错误: Cannot find the strip binary required for object fil…

解决方法:因为没安装 fakeroot、binutils 等打包基本工具,所以 sudo pacman -S base-devel 装一下。(sudo pacman -S -needed base-devel安装包,且不重新安装已安装的包)


imwheel 调整鼠标滚轮速度

Arch Wiki上的方法

Arch:

1
sudo pacman -S imwheel
配置

创建~/.imwheelrc文件

1
nano ~/.imwheelrc

编辑内容:

后面的数字就是速度的倍数

1
2
3
4
5
6
7
".*"
None, Up, Button4, 4
None, Down, Button5, 4
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
运行

运行测试一下

1
imwheel

重新运行

1
imwheel kill

看到提示就成功了。

使用systemed服务或者shell脚本在系统启动后自动调用imwheel,参照wiki.

Run IMWheel on startup using a service

To avoid starting IMWheel manually, you can run it as part of your systemd startup.

Example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
~/.config/systemd/user/imwheel.service
[Unit]
Description=IMWheel
Wants=display-manager.service
After=display-manager.service

[Service]
Type=simple
Environment=XAUTHORITY=%h/.Xauthority
ExecStart=/usr/bin/imwheel -d
ExecStop=/usr/bin/pkill imwheel
RemainAfterExit=yes

[Install]
WantedBy=graphical-session.target

After installing the above:

1
2
3
systemctl --user daemon-reload
systemctl --user enable --now imwheel
journalctl --user --unit imwheel
Run IMWheel on startup using a shell script

Alternatively, you can create a startup.sh script in /etc/profile.d

1
2
3
#!/bin/sh

imwheel

And then, on restart, it will automatically read and run the file. Always test your script manually before putting it in /etc/profile.d


安装配置vmware workstation

前言

在manjaro的安装配置中,关于vmware的安装着实让我头疼;新建虚拟机打开出现错误

could not open /dev/vmmon:?????? please make sure that the kernel moduel vmmon is load

google、baidu搜索有遇到同样问题的,但是没有一个能够解决!!!前后折腾了许久,还选择安装了VirtulBox但是使用不习惯,后来突然醒悟可以去manjaro的论坛找找,这才找到解决方法。
感慨:

  • 使用linux真的可以很好锻炼自我解决问题的能力。
  • 找资料要有的放矢,不能盲目,否则就是浪费时间,要缩小查找范围。
解决方法
  • 使用manjaro提供的方法Install vmware-workstation
1
pamac build vmware-workstation
  • 安装之后,重启你的设备,执行下面命令加载vmmon模块
1
sudo modprobe -a vmw_vmci vmmon
  • Start and enable services(开启以及自启动服务)
1
2
3
sudo systemctl enable --now vmware-networks.service
sudo systemctl enable --now vmware-usbarbitrator.service
sudo systemctl enable --now vmware-hostd.service

上述服务的用处:
vmware-networks.service: Provides network access inside VMs, most people will want this enabled
vmware-usbarbitrator.service: Allows USB devices to be connected inside VMs
vmware-hostd.service: Enables sharing of VMs on the network

至此,vmmon的问题应该完美解决了;如果你的问题还没有解决可以参考以下链接或者到manjaro frum提出问题
Installing VMWare Workstation on Manjaro

音乐

1
2
3
4
5
6
7
8
sudo pacman -S netease-cloud-music #安装网易云音乐
高分屏缩放 可以通过 env QT_SCREEN_SCALE_FACTORS=1.25 netease-cloud-music 启动来解决,也就是在启动文件里添加。

如果应用商店下载时遇到下面错误
错误:未知下载协议:https
问题的解决办法是,修改一下 PKGBUILD 的第 18 行,把 http 改成 https 就可以了。
DLAGENTS=("https::/usr/bin/curl -A 'Mozilla' -fLC - --retry 3 --retry-delay 3 -o %o %u")

可能无法输入中文

这里有个解决bug的

  • 高颜值、开发活跃的第三方客户端:yay -S yesplaymusic
  • qq音乐 yay -S qqmusic-bin
  • 一个支持全平台听歌的软件:FeelUown yay -S feeluown

笔记

  • 为知笔记:全平台通用、有云端同步、支持md的笔记 : yay -S wiznote

  • 如果你更喜欢开源软件,这里还有个很好的选择: joplin yay -S joplin

  • 还有个选择:notion : yay -S notion-app

  • mkdown编辑器Typora: yay -S typora

  • LaTeX是学术出版的标准排版软件。可以直接从软件仓库中安装,不需要完全安装,安装基础组件以及中文语言包即可:sudo pacman -S texlive-most texlive-langchinese

    编辑器TexStudio也是必备的:sudo pacman -S texstudio

Android反编译

1
2
3
sudo pacman -S jadx
#官网:https://github.com/skylot/jadx
打开gui界面:jadx-gui

腾讯软件

  • 安装qq

    1
    2
    3
    4
    yay -S com.qq.im.deepin
    这个使用的是deepin-wine5
    调整qq的缩放
    WINEPREFIX=~/.deepinwine/Deepin-QQ deepin-wine5 winecfg
  • 安装Tim

1
yay -S deepin-wine-tim

安装过程中出现选择输入n就好

切换deepin-wine环境

1
sh /opt/deepinwine/apps/Deepin-Tim/run.sh -d

如果这个版本的卡或者有其他问题,建议安装:

1
yay -S deepin.com.qq.office

如果这个也没办法装,则使用linuxqq

1
yay -S linuxqq
  • 安装微信

deepin-wine版:

1
yay -S deepin-wine-wechat

切换到deepin-wine环境:

1
/opt/apps/com.qq.weixin.deepin/files/run.sh -d

关于字体发虚问题:

在切换到deepin-wine环境后,在terminal输入下面的指令:

1
env WINEPREFIX="$HOME/.deepinwine/Deepin-TIM" /usr/bin/deepin-wine winecfg

在弹出的窗口中选择windows xp,将DPI调大(默认是96),我调成了120

微信的同样,只需要将命令改为:

1
env WINEPREFIX="$HOME/.deepinwine/Deepin-WeChat" /usr/bin/deepin-wine winecfg

electron版:

1
yay -S electron-wechat

隔离应用
1
firejail或者他的gui版本风传讹

其他

  • 复古的终端

    1
    2
    3
    wget https://github.com/Swordfish90/cool-retro-term/releases/download/1.1.1/Cool-Retro-Term-1.1.1-x86_64.AppImage
    chmod a+x Cool-Retro-Term-1.1.1-x86_64.AppImage
    ./Cool-Retro-Term-1.1.1-x86_64.AppImage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# 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
yay -S pycharm pycharm-jre #pycharm
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 管理工具

# 办公&文本
yay -S youdao-dict #安装有道词典安装
yay -S foxitreader #福昕pdf阅读器
sudo pacman -S bookworm # 电子书阅读
sudo pacman -S unrar unzip p7zip
sudo pacman -S goldendict # 翻译、取词
yay -S typora # markdown 编辑
yay -S electron-ssr # 缺少我需要的加密算法
yay -S xmind-2020 #xmind-2020
yay -S calibre # calibre:电子书管理

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

# 娱乐软件
sudo pacman -S netease-cloud-music # 网易云音乐
(注:直接安装完Wireshark后启动软件,会提示/usr/bin/dumpcap无权限,运行下面的命令即可解决问题: sudo gpasswd -a username wireshark # username是用户名)

# 下载软件&网络浏览
sudo pacman -S aria2
sudo pacman -S filezilla # filezilla 强大的FTP工具
yay -Sy filezilla # filezilla 强大的FTP工具

yay -S baidunetdisk-bin #百度云
yay -S xunlei-bin #迅雷
sudo pacman -S google-chrome
yay -S microsoft-edge-dev-bin #edge浏览器
sudo pacman -S you-get #强大的Web内容(视频,音频,图片)下载工具
yay -S nutstore #坚果云
注: yay -S python-gobject #如果出现坚果云打不开或者没有登录页面的情况,安装坚果云相关依赖


# 图形
sudo pacman -S gimp # 修图
sudo pacman -Sy obs-studio # OBS

# 系统工具
sudo pacman -S albert #类似Mac Spotlight,另外一款https://cerebroapp.com/
yay -S copyq # 剪贴板工具,类似 Windows 上的 Ditto
sudo pacman -S gufw #安装防火墙 Linux 世界中最简单的防火墙之一
sudo pacman -S yay # AUR助手
yay -S latte-dock # 安装latte-dock

# 终端
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 工具,网络不稳定时使用有奇效
sudo pacman -S thefuck #自动纠正上一个控制台命令
sudo pacman -S tmux#强大的终端复用工具
yay -S lolcat #终端渐变色工具
yay -S ranger #终端文件浏览器

其他:
sudo pacman -S clang make cmake gdb # 编译调试环境
sudo pacman -S visual-studio-code-bin # 牛逼的编辑器
sudo pacman -S vim # 命令行下的编辑器
sudo pacman -S qtcreator # IDE for Qt
sudo pacman -S wireshark-qt # 抓包工具
sudo pacman -S git # 版本管理工具
sudo pacman -S octave # Matlab的开源替代

# zsh
zsh以默认安装在系统中,F12中输入zsh即可使用,输入exit退出zsh

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!