ixxmu / mp_duty

抓取网络文章到github issues保存
https://archives.duty-machine.now.sh/
115 stars 30 forks source link

人生苦短我用manjaro #1697

Closed ixxmu closed 2 years ago

ixxmu commented 2 years ago

https://mp.weixin.qq.com/s/DZFMG5ab2ikbOgwCzJM3VQ

github-actions[bot] commented 2 years ago

人生苦短我用manjaro by R语言数据分析指南

欢迎关注R语言数据分析指南

自从多年前知道「Linux」系统以来一直是使用「ubuntu」因为当时只知道它,随着使用的更加深入越来越体会到「ubuntu」的不方便之处,正好最近需要重新给电脑装系统于是有了新的选择它就是「manjaro」,从此再也不担心软件依赖问题了

先来看看我配置好的系统

还是熟悉的 Mac风格,配置起来过程相对于「Ubuntu」那是非常的简单,全程命令行操作再也没有那么多的报错信息,下面具体来介绍一下系统配置过程

系统参数

1.下载manjaro镜像文件

https://manjaro.org/download/下载镜像文件,由于个人习惯选择了「GNOME」版本下载64位版本即可

2.制作启动盘工具

https://rufus.ie/zh/#下载启动盘软件制作系统启动盘

3.安装系统

根据不同电脑型号具体执行,一般为按F12进入系统引导界面,选择对应的U盘启动器进行下一步操作即可,此次安装选择了将整个系统安装在一个硬盘上,不建议新手自行进行分区设置

执行完上面步骤后系统的安装已经完成,整个过程还是非常顺利的;下面开始进入最主要的系统配置环节

切换镜像源

sudo pacman-mirrors -c China -i -m rank
# 同步包数据库并升级
sudo pacman -Syu

安装yay助手

sudo pacman -S yay base-devel

安装常用软件

yay -S google-chrome
yay -S inkscape
yay -S typora
yay -S filezilla
yay -S flameshot #超好用的截屏工具
sudo pacman -S obs-studio
yay -S deepin-wine-wechat # 安装微信
yay -S deepin-wine-qq # 安装QQ
yay -S visual-studio-code-bin # vscode
yay -S netease-cloud-music # 网易云
yay -S mpv # 超好用的视频播放器
sudo pacman -Sy aria2
yay -S blender
yay -S geany # 文本编辑器
yay -S thunderbird # 超好用的邮箱客户端
yay -S gimp

安装vim

yay -S vim
# 修改环境变量
sudo vim ~/.xprofile

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"

WPS

yay -S --noconfirm wps-office wps-office-mui-zh-cn wps-office-fonts ttf-wps-fonts

一行命令安装wps并同时安装字体

安装一些汉化字体

sudo pacman -S thunderbird-i18n-zh-cn
sudo pacman -S gimp-help-zh_c

安装中文输入法

sudo pacman -S --noconfirm fcitx5-im
sudo pacman -S --noconfirm fcitx5-chinese-addons
yay -S --noconfirm fcitx5-pinyin-zhwiki
sudo pacman -S --noconfirm fcitx5-material-color

中文字体

sudo pacman -S wqy-zenhei
sudo pacman -S wqy-bitmapfont
sudo pacman -S wqy-microhei
sudo pacman -S ttf-wps-fonts
sudo pacman -S adobe-source-han-sans-cn-fonts
sudo pacman -S adobe-source-han-serif-cn-fonts

gephi

sudo pacman -Syu gephi
sudo vim /usr/share/java/gephi/etc/gephi.conf 
jdkhome="/usr/lib/jvm/java-8-openjdk"

安装.deb包

可以通过以下命令安装「ubuntu」的deb格式的包

yay -S debtap
sudo debtap -u # 升级
sudo debtap -q *.deb
sudo pacman -U demo-1-x86_64.pkg.tar.xz

向日葵

yay -Sy sunloginclient
systemctl start runsunloginclient.service

goland

yay -S goland
yay -S goland-jre

终端透明

yay -S gnome-terminal-transparency

下面介绍R与RStudio的安装

R & Rstudio

sudo pacman -S r
yay -S rstudio-desktop-bin
# 开启多线程模式
yay -S openblas-lapack
sudo pacman -S gcc-fortran
export JAVA_LIBS="$JAVA_LIBS -ldl"
sudo R CMD javareconf

Rstudio输入中文

yay -S rstudio-fcitx5

manjaro思维导图软件

一开始是想安装「Xmind」软件的,但是经过几次安装发现不是有「bug」就是文字乱码;所以下面介绍正确安装「mindmaster」的方法

统计文件完整性

因为后期需要编译所以需要先获取软件信息

[https://www.edrawsoft.cn/download/mindmaster/]  下载deb文件

yay -S coreutils

sha256sum  mindmaster_9.0.4_cn.x86_64.deb

47a9ad72b6ffdd1ec3d9147e1fbde7de095c5d00ba9db52abd4daae86acf8f98

1.克隆mindmaster-cn

git clone https://aur.archlinux.org/mindmaster-cn.git 

2.修改 PKGBUILD 为以下内容

上面的步骤获取了最新的软件地址及文件哈希值

# Maintainer: Shen ZhongLi <szl921818@gmail.com>
#mindmaster 中文版

pkgname=mindmaster-cn
pkgver=9.04
pkgrel=1
arch=('x86_64')
options=(!strip)
conflicts=("mindmaster")
pkgdesc="多功能,高颜值,易使用的专业思维导图软件"
license=('Commercial')
url="https://www.edrawsoft.cn/mindmaster/"
source_x86_64=("https://www.edrawsoft.cn/2download/x86_64/mindmaster_9.0.4_cn.x86_64.deb")
sha256sums_x86_64=('47a9ad72b6ffdd1ec3d9147e1fbde7de095c5d00ba9db52abd4daae86acf8f98')



package() { 
    cd "${pkgdir}"
    tar xf "${srcdir}/data.tar.xz"
    
    mkdir -p ${pkgdir}/usr/bin
    mkdir -p ${pkgdir}/usr/share/icons
    mkdir -p ${pkgdir}/usr/share/icons/hicolor/scalable/mimetypes
    mkdir -p ${pkgdir}/usr/share/mime/packages
    
    ln -f -s /opt/MindMaster-9/MindMaster "${pkgdir}/usr/bin/mindmaster"
    
    ln -f -s /opt/MindMaster-9/mindmaster.png "${pkgdir}/usr/share/icons/mindmaster.png"
    
    ln -f -s /opt/MindMaster-9/emmx.svg "${pkgdir}/usr/share/icons/hicolor/scalable/mimetypes/emmx.svg"
    
    ln -f -s /opt/MindMaster-9/mindmaster.xml "${pkgdir}/usr/share/mime/packages/mindmaster.xml"
    
 #  cp /usr/lib/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so "${pkgdir}/opt/MindMaster-9/plugins/platforminputcontexts/"
    
}

3.编译安装

makepkg -si

texlive & texstudio

国际通用的出版物排版软件

sudo pacman -Syyu texlive-most texlive-bin texlive-lang
yay -S texstudio

有道云笔记

下载deb包

wget -c https://artifact.lx.netease.com/download/ynote-electron/%E6%9C%89%E9%81%93%E4%BA%91%E7%AC%94%E8%AE%B0-web.deb

sudo debtap -q *.deb
sudo pacman -U demo-1-x86_64.pkg.tar.xz

IGV

yay -s igv

DaVinci Resolve

压轴的达芬奇,一款免费的视频剪辑软件;在安装前请先安装配套的显卡驱动,此款软件必须配置独立显卡才能使用;软件大小「2G」左右安装过程请耐心等待

sudo pacman-mirrors -f && sudo pacman -Syyu
sudo pacman -S base-devel
yay -S davinci-resolve

经过上面的一通操作,我们的「manjaro」系统有了绝对的生产力,安装过程也及其的简单这得益于有「AUR」这个强大的软件源,从此再也不用为解决各种依赖而头痛了