Skip to content

3.Software

yi-yun edited this page Jun 14, 2019 · 24 revisions

个人常用软件

编辑源文件

打开 /etc/pacman.conf 文件修改

<!-- 还要去掉 testing 的注释 -->
[multilib]
Include = /etc/pacman.d/mirrorlist

[archlinuxcn]
SigLevel = Never
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch

PS:要让 pacman 有颜色还要将 Color 取消注释

安装 yay

sudo pacman -Sy yay

搜狗输入法

  1. 安装,不要少安装一个,有可能会有问题
    sudo pacman -Sy fcitx fcitx-im fcitx-configtool fcitx-sogoupinyin
  2. ~/.xprofile 添加
    export GTK_IM_MODULE=fcitx
    export QT_IM_MODULE=fcitx
    export XMODIFIERS="@im=fcitx"

zsh

sudo pacman -S zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

网络

chrome

sudo pacman -S google-chrome flashplugin

代理

sudo pacman -S shadowsocks proxychains-ng
sudo systemctl start [email protected] 
sudo systemctl status [email protected] 

SwitchOmega

https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt

PS:别忘记保存。

日常

目录有点乱,反正只是给我自己看的(逃)

状态监控

sudo pacman -S net-tools neofetch htop dnsutils inetutils iproute2

deepin 系列

yay deepin-wine- # 想装哪个装哪个

远程工具

sudo pacman -S teamviewer

启动后如果出现,未就绪,请检查网络连接

sudo systemctl enable --now teamviewerd
sudo pacman -S baidupcs-go-bin

图片压缩

sudo pacman -S pngquant jpegoptim

截图

sudo pacman -S shutter flameshot
  • 快捷键
    • shutter -s -e -C -o /tmp/screenshot.png && pngquant /tmp/screenshot.png -f --ext .png && xclip -selection clipoard -t 'image/png' /tmp/screenshot.png
    • flameshot gui

编程

sudo pacman -S jdk8 maven intellij-idea-ultimate-edition nodejs npm mariadb dbeaver code git

SSH 秘钥对

ssh-keygen -t ecdsa -b 521 -C "$(yi-yun)@$([email protected])-$(date -I)"

Git 配置

git config --global user.name "yi-yun"
git config --global user.email "[email protected]"
git config --global core.editor vim
git config --global alias.ci "commit -a -v"

Java 环境

archlinux-java status   #列出所有jdk
sudo archlinux-java set java-8-jdk

Maven 配置

  1. mvn help:system #执行该命令的过程中,会生成~/.m2文件夹,并且会从Maven官网下载必要的依赖包
  2. cp /opt/maven/conf/settings.xml ~/.m2
  3. vim ~/.m2/setting.xml
    <mirrors>
        <mirror>
            <id>aliyunmaven</id>
            <mirrorOf>*</mirrorOf>
            <name>aliyun maven</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public</url>
        </mirror>
    </mirrors>

MySQL

sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo systemctl start mysqld
mysqladmin -u root password '123456'    #设置root密码为123456

Node.js

npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
npm install -g something --registry=https://registry.npm.taobao.org

yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global

在 .zshrc 里添加

PATH="$HOME/.node_modules/bin:$PATH"
export npm_config_prefix=~/.node_modules

VSCode

  • Bracket Pair
  • EditorConfig

Python

wget https://bootstrap.pypa.io/get-pip.py
ls -al /usr/bin/python*

Arduino

sudo pacman -S arduino arduino-avr-core
sudo gpasswd -a $USER uucp
sudo gpasswd -a $USER lock  # 添加用户
logout # 需要重启

参考