=======================
c/c++/qt等编译环境
!
pacman -S base-devel
!
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE
:
原因:未安装make
pacman -S core/make
!
No CMAKE_C_COMPILER could be found
pacman -S core/gcc
pacman -S core/patch
=======================
!
截图软件hotshots
方法一:yay -S hotshots
方法二:源码 ,下载完成后,需要手动编译
https://phoenixnap.dl.sourceforge.net/project/hotshots/2.2.0/HotShots-2.2.0-src.zip
这个链接下载不了的话,进入这个页面
https://sourceforge.net/projects/hotshots/files/2.2.0/HotShots-2.2.0-src.zip
点击“problem downloading”切换下载源
编译成功后,将各文件放入系统local路径
cp -r /home/abc/tmp/HotShots-2.2.0-src/usr/bin /usr/local
cp -r /home/abc/tmp/HotShots-2.2.0-src/usr/share /usr/local
/home/abc/tmp/HotShots-2.2.0-src/usr/share/man/ /usr/local
编辑图标icon路径 vim hotshots.desktop
!
>yay -S hotshots
:: 正在检查冲突...
:: 正在检查内部冲突...
...
:: (1/2) 正在解析 SRCINFO: libqxt
:: (2/2) 正在解析 SRCINFO: hotshots
==> 错误: Cannot find the strip binary required for object file stripping.
下载源文件时出错: libqxt
:
https://bbs.archlinux.org/viewtopic.php?id=140055
Does /usr/bin/strip exist on your system (binutils needs to be installed for this)
pacman -S binutils
!
展示manjaro系统信息(装逼)
screenfetch
升级系统:
sudo pacman -Syyu
查看系统信息
inxi -Fx
!
https://www.cnblogs.com/pengdonglin137/p/3415558.html
关闭显示器命令 xset dpms force off
!
manjaro关于显卡、软件等等一些设置
https://www.cnblogs.com/yangruiGB2312/p/9004335.html
Manjaro安装与基本配置;软件、游戏推荐
https://my.oschina.net/langxSpirit/blog/1647000
什么Linux发行版软件最多?——一张列表看哭百万Debian、RedHat系同学、软件推荐
https://linux.zone/2787
!
manjaro系统崩溃救治方法:
因为系统进不去,需要制作manjaro的u盘启动盘
教程:https://www.jianshu.com/p/7c2db0b00ec0
注意要用dd,否则会报grup错误,u盘无法启动
为何要关闭安全启动:https://github.com/pbatard/rufus/wiki/FAQ#Why_do_I_need_to_disable_Secure_Boot_to_use_UEFINTFS
在u盘系统中打开终端,输入manjaro-chroot -a 自动挂载硬盘中的linux系统,进行恢复按照教程进行恢复操作
==================
!
安装wine环境
pacman -S wine wine-mono wine-gecko
!
pacman -S wine-wechat
!
yay -S deepin-wine-qq
===================
!
arch/Manjaro 添加国内源以及社区源
https://blog.csdn.net/weixin_43968923/article/details/86349914
!
手动更改源排名
pacman-mirrors -i -c China -m rank
!
aur源
https://aur.archlinux.org
https://aur.tuna.tsinghua.edu.cn
!
yay 更改、设置 AUR 镜像
https://razonyang.com/post/yay-aur-mirror/
yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save
!
修改yay的配置文件
vim ~/.config/yay/config.json
!
查看yay配置
yay -P -g
=================
!
查看显示器分辨率
xrandr
四个步骤添加新的分辨率
cvt 1366 768
xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
xrandr --addmode LVDS1 "1368x768_60.00"
xrandr --output LVDS1 --mode "1368x768_60.00"
!
防止启动后无法进入图形界面
打开 /etc/default/grub
找到并且改为:GRUB_CMLINE_LINUX_DEFAULT="quiet acpi_osi=! acpi_osi=Linux acpi_osi=’Windows 2015’ pcie_port_pm=off resume=..."
运行sudo update-grub,重启
!
打开N卡设置:
optirun nvidia-settings -c :8
!
查看显卡NVIDIA状态
lspci
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GTX 660M] (rev ff)
Nvidia 卡信息的末尾是 rev ff,表示独显已经关闭。现在运行的是intel核显,这正是我们安装bumblebee目的。
bumblebee的作用是禁用nvidia独立显卡,需要使用独显时,使用”optirun 程序名“手动开启nvidia来运行需要加速的程序,如optirun vmware
!
# 一直开启独显(重启完N卡又会恢复关闭状态)
sudo tee /proc/acpi/bbswitch <<< 'ON'
# 一直禁用独显
sudo tee /proc/acpi/bbswitch <<< 'OFF'
!
nvidia驱动相关:...
利用mhwd -li可以查看当前已经安装的驱动「 mhwd全称Manjaro Hardware Detection 」
用sudo mhwd -r pci video-nvidia可以卸载英伟达闭源驱动
执行nvidia-smi可以打印出英伟达显卡的运行状态
注:optirun
glxgears 测试集显的FPS
optirun glxgears 测试独显的FPS
optirun nvidia-smi 查看显卡信息
[platinum-pc platinum]# optirun nvidia-smi
Sun Sep 20 12:35:31 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.132 Driver Version: 390.132 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce 820M Off | 00000000:01:00.0 N/A | N/A |
| N/A 47C温度 P0 N/A / N/A | 4MiB / 964MiB 已使用/总计 | N/A Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+
https://www.cnblogs.com/a208606/p/10317019.html
manjaro 显卡驱动--成功!!!
># inxi -G
Graphics:
Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel
Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT
620M/625M/630M/720M]
driver: nouveau v: kernel
Device-3: Realtek HP Truevision HD integrated webcam type: USB
driver: uvcvideo
Display: x11 server: X.Org 1.20.8 driver: intel,nouveau
unloaded: modesetting resolution: 1366x768~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2)
v: 4.2 Mesa 20.1.7