#独立显卡笔记本无法进入安装界面
使用网络版manjaro-architect-17.0.2-stable-x86_64.iso安装即可
下载地址https://sourceforge.net/projects/manjarolinux-community/files/architect/17.0.2/
运行setup前sudo pacman-mirrors -c China -b testing -g -y可以使用中国源并切换到测试分支
进入安装界面完成Prepare Installation后Configure Installer Mirrorlist>Rank Mirrors By Speed>只留下清华源能令带宽跑满
#备份VirtualBox配置到坚果云
find /mnt -name nutstore|xargs cp -r ~/.config/VirtualBox
#从坚果云还原VirtualBox配置
find /mnt -name nutstore|xargs -i find {} -name VirtualBox|xargs -i cp -r {} ~/.config/
#登录后开启数字锁
yaourt -S --noconfirm systemd-numlockontty&&sudo systemctl enable numLockOnTty.service
#禁用香港pacman源 建议只留下清华源
sudo nano /etc/pacman.d/mirrorlist
"Server="前加#号
#yaourt改用清华AUR镜像
echo 'AURURL="https://aur.tuna.tsinghua.edu.cn"'>~/.yaourtrc
#增加archlinuxcn库和antergos库
echo -e "[archlinuxcn]\nSigLevel = TrustAll\nServer = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/\$arch\n[antergos]\nSigLevel = TrustAll\nServer = https://mirrors.tuna.tsinghua.edu.cn/antergos/\$repo/\$arch"|sudo tee -a /etc/pacman.conf
#系统全面更新
sudo pacman -Syyu --noconfirm
#安装archlinuxcn签名钥匙&antergos签名钥匙&某些软件
sudo pacman -Sy --noconfirm archlinuxcn-keyring antergos-keyring wget yaourt git conky jq vim clang cmake powerline-fonts autojump
#github加速(下面“定时更新racaljk的hosts”脚本已包含)
echo -e "151.101.72.249 global-ssl.fastly.Net\n192.30.253.118 github.com"|sudo tee -a /etc/hosts
#使用jetbrains激活码要在hosts中屏蔽(下面“定时更新racaljk的hosts”脚本已包含)
echo "0.0.0.0 account.jetbrains.com"|sudo tee -a /etc/hosts
#定时更新racaljk的hosts
cd /etc/cron.hourly&&sudo touch update-hosts&&sudo chmod a+x update-hosts&&echo -e '#!/bin/sh\nLOG=/var/log/update-hosts.log\nif ping -c 1 151.101.72.133 2>&1 >/dev/null ;then\nwget https://raw.githubusercontent.com/racaljk/hosts/master/hosts -qO /tmp/hosts\necho "* $(date) * update hosts success">>$LOG\nmv /tmp/hosts /etc/hosts\nelse\necho "* $(date) * no internet access">>$LOG\nfi\necho "0.0.0.0 account.jetbrains.com">>/etc/hosts'|sudo tee /etc/cron.hourly/update-hosts&&sudo /etc/cron.hourly/update-hosts
#zsh优化配置 vim优化配置 vscode优化配置
cd ~/.config&&git clone https://github.com/dongchangzhang/manjaro-linux-config.git --depth 1&&cd ~/.config/manjaro-linux-config&&chmod a+x setup.sh&&sudo ./setup.sh -2&&sudo ./setup.sh -3&&sudo ./setup.sh -4
#YaHei-Consolas字体
cd /tmp&&git clone https://github.com/GitHubNull/YaHei-Consolas-Hybrid-1.12.git --depth 1&&sudo sh YaHei-Consolas-Hybrid-1.12/setup.sh
#Yahei-Monaco字体
cd /tmp&&git clone https://github.com/maxsky/Yahei-Monaco-Hybird-Font.git --depth 1&&sudo mkdir -p /usr/share/fonts/truetype&&sudo cp -r Yahei-Monaco-Hybird-Font /usr/share/fonts/truetype&&cd /usr/share/fonts/truetype/Yahei-Monaco-Hybird-Font&&sudo chmod 644 *&&sudo mkfontscale&&sudo mkfontdir&&sudo fc-cache -fv
#Monaco字体&雅黑Monaco字体
cd /tmp&&git clone https://github.com/JianqingXiao/manjaro-linux-config --depth 1&&sudo cp -r manjaro-linux-config/res/font/Monaco /usr/share/fonts&&cd /usr/share/fonts/Monaco&&sudo chmod 644 *&&sudo mkfontscale&&sudo mkfontdir&&sudo fc-cache -fv
#github设置添加SSH http://blog.csdn.net/binyao02123202/article/details/20130891
cd ~/.config/manjaro-linux-config&&chmod a+x setup.sh&&sudo ./setup.sh -5
#卸载无用软件
#for xfce
sudo pacman -R --noconfirm audacious-plugins guayadeque vlc-nightly thunderbird libreoffice-still firefox steam-manjaro xfburn xfce4-dict xfce4-notes-plugin orage hexchat pidgin libpurple
#for budgie
sudo pacman -R --noconfirm totem lollypop thunderbird firefox-arc-maia-settings arc-firefox-theme-maia firefox steam-manjaro brasero hexchat empathy gnome-screenshot uget transmission-gtk dconf-editor
#安装常用软件sudo usermod -G vboxusers -a xiao此命令中的xiao为当前用户名
sudo pacman -Sy --noconfirm create_ap pavucontrol genymotion nutstore seahorse virtualbox-ext-oracle virtualbox-guest-iso fcitx-im fcitx-configtool fcitx-cloudpinyin chromium-dev-vaapi shadowsocks-qt5 netease-cloud-music electronic-wechat-git youdao-dict telegram-desktop xterm bilidan bomi-git go zip unzip arj lzop cpio unrar thunar thunar-archive-plugin engrampa-thunar-plugin deepin-music deepin-screenshot xfce4-terminal dia inkscape gimp variety jetbrains-toolbox ttf-wps-fonts anydesk&&sudo usermod -G vboxusers -a xiao&&cd /usr/lib/&&sudo ln -s libass.so.9.0.1 libass.so.5&&sudo ln -s libbluray.so.2.0.1 libbluray.so.1
yaourt -S --noconfirm ttf-ms-fonts ttf-tahoma flatplat-theme papirus-icon-theme-git persepolis grub-customizer grub2-theme-vimix-git&&cd /tmp&&git clone https://github.com/Dacha204/grub2-themes-Ettery.git --depth 1&&sudo cp -r grub2-themes-Ettery/Ettery /boot/grub/themes&&cd /tmp&&git clone https://github.com/aevernum/grub2-solarized-dark.git --depth 1&&sudo cp -r grub2-solarized-dark /boot/grub/themes&&sudo rm -rf /boot/grub/themes/grub2-solarized-dark/.git/&&cd /tmp&&git clone https://github.com/JianqingXiao/grub2-theme-your_name.git --depth 1&&sudo cp -r grub2-theme-your_name/your_name /boot/grub/themes
#配置fcitx
echo -e "export GTK_IM_MODULE=fcitx\nexport QT_IM_MODULE=fcitx\nexport XMODIFIERS=@im=fcitx">>~/.xprofile
#对于jetbrians系列fcitx无法跟随的情况 fcitx输入法配置>附加组件>勾选高级>xim前端>勾选on the spot
#fcitx的激活输入法方式改为ctrl+逗号,避免jetbrains系列快捷键冲突,额外的激活输入法快捷键禁用,输入法切换取消,上一页下一页改为逗号句号,在窗口间共享状态改为所有(所有的话就是windows的习惯,本人没有改默认就是否)
#外观>字体大小>13号>使用系统托盘>取消
#云拼音支持的设置候选词顺序改为1,触发长度改为3,来源改为百度
#fcitx半角快捷键ctrl+句号 刚开始使用时按一下快捷键转换为半角
#fcitx推荐使用mint-dark皮肤
cd ~&&git clone https://github.com/fu-sen/fcitx-mint-skin.git --depth 1&&mkdir ~/.config/fcitx/ -p&&mv fcitx-mint-skin/skin/ ~/.config/fcitx/skin/&&rm -rf fcitx-mint-skin
#图标包和主题 for budgie
AUR安装flatplat-theme papirus-icon-theme-git
工具>优化工具>外观>GTK+>Flat-Plat-dark-compact或light-compact>图标>Papirus-Dark或Papirus-light>光标>Adwaita
其他>QT5设置>图标主题>Papirus-Dark
#conky桌面部件
conky&&echo -e "[Desktop Entry]\nName=conky\nExec=conky\nType=Application\nTerminal=false\n">~/.config/autostart/conky.desktop&&mkdir ~/.conky/ -p&&cd ~/.conky/&&git clone https://github.com/zagortenay333/Harmattan.git --depth 1&&cp ~/.conky/Harmattan/.harmattan-assets/ ~/.harmattan-assets/ -r&&~/.conky/Harmattan/preview.sh
替换一下我修改好API和城市ID的.conkyrc文件中的enp1s0为自己的网卡名(ifconfig查看网卡名)
再把这个.conkyrc文件覆盖home目录中隐藏的同名文件
#variety壁纸切换
自行添加壁纸的话取消每10分钟随机从网络下载壁纸的选项
#virtualbox
启动必须:更新所有软件后再装virtualbox然后重启后再运行此命令
sudo modprobe vboxdrv vboxnetadp vboxnetflt vboxpci
启动后手动重新安装增强包/usr/share/virtualbox/extensions/
快捷键: 右ctrl+F全屏 右ctrl+M最小化 右ctrl+L无缝 右ctrl+T快照 右ctrl+Q退出
字体大小可以到 其他>QT5设置>字体 更改
#switchyomega下载和使用
https://switchyomega.com/
https://github.com/FelisCatus/SwitchyOmega/releases
#GFW黑名单 用于switchyomega 快速使用:扩展程序>拖入SwitchyOmega.crx>导入OmegaOptions.bak
https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt
#GFW白名单 用于jetbrains系列软件 httpProxy第二选项 android-studio必须设
https://raw.githubusercontent.com/breakwa11/gfw_whitelist/master/whiteiplist.pac
##ss-qt5自启动
echo -e "[Desktop Entry]\nName=ss-qt5\nExec=ss-qt5\nType=Application\nTerminal=false\n">~/.config/autostart/ss-qt5.desktop
#for xfce
系统设置>会话和启动>应用程序自启动>添加>名称ss-qt5>命令/usr/bin/ss-qt5
ss-qt5>文件>从gui-config.json导入连接>配置编辑器>程序启动时自动连接
#for budgie
工具>优化工具>开机启动程序>添加
#系统常用快捷键
快速截图:系统工具>设置>键盘>自定义快捷键>deepin-screenshot>ctrl+alt+A
文件管理器:系统工具>设置>键盘>自定义快捷键>thunar>super+F
任务管理器:系统工具>设置>键盘>自定义快捷键>gnome-system-monitor -p>super+M
下拉终端:系统工具>设置>键盘>自定义快捷键>xfce4-terminal --drop-down>super+T
音量控制:系统工具>设置>键盘>自定义快捷键>pavucontrol>super+C
jetbrains:系统工具>设置>键盘>自定义快捷键>jetbrains-toolbox --window-mode>super+J
#去广告
chromium安装uBlock Origin插件
#分区挂载
修改fstab用块设备名或者UUID开机挂载,缺点是分区改变或故障后无法进入系统,需要使用liveCD救命
#家里的电脑fstab
sudo mkdir /mnt/sdb5 /mnt/sdb2 -p&&echo -e "/dev/sdb5 /mnt/sdb5 ntfs-3g umask=0000,uid=1000,gid=1000,defaults 0 0\n/dev/sdb2 /mnt/sdb2 ntfs-3g umask=0000,uid=1000,gid=1000,defaults 0 0"|sudo tee -a /etc/fstab&&sudo mount -a
#上班的电脑fstab
sudo mkdir /mnt/sda2 /mnt/sda5 /mnt/sda6 -p&&echo -e "/dev/sda2 /mnt/sda2 ntfs-3g umask=0000,uid=1000,gid=1000,defaults 0 0\n/dev/sda5 /mnt/sda5 ntfs-3g umask=0000,uid=1000,gid=1000,defaults 0 0\n/dev/sda6 /mnt/sda6 ntfs-3g umask=0000,uid=1000,gid=1000,defaults 0 0"|sudo tee -a /etc/fstab&&sudo mount -a
#dell-7559
sda5 sdb1 sdb5 sdb6
sudo mkdir /mnt/sda5 /mnt/sdb1 /mnt/sdb5 /mnt/sdb6 -p&&echo -e "/dev/sda5 /mnt/sda5 ntfs-3g umask=0000,uid=1000,gid=1000,defaults 0 0\n/dev/sdb1 /mnt/sdb1 ntfs-3g umask=0000,uid=1000,gid=1000,defaults 0 0\n/dev/sdb5 /mnt/sdb5 ntfs-3g umask=0000,uid=1000,gid=1000,defaults 0 0\n/dev/sdb6 /mnt/sdb6 ntfs-3g umask=0000,uid=1000,gid=1000,defaults 0 0"|sudo tee -a /etc/fstab&&sudo mount -a
#linux下SSD优化
#把var目录中某些目录挂载到tmpfs
echo -e "tmpfs /var/log tmpfs defaults,noatime 0 0\ntmpfs /var/tmp tmpfs defaults,noatime 0 0\ntmpfs /var/spool tmpfs defaults,noatime 0 0"|sudo tee -a /etc/fstab&&sudo mount -a
#把chromium-dev的缓存挂载到tmp
mkdir ~/.cache/chromium-dev/Default/Cache -p&&cd ~/.cache/chromium-dev/Default/&&rm -rf Cache&&ln -sf /tmp Cache
#定时执行SSD trim
cd /etc/cron.hourly&&sudo touch fstrim&&sudo chmod a+x fstrim&&echo -e '#!/bin/sh\nLOG=/var/log/trim.log\necho "*$(date)*">>$LOG\nfstrim -v />> $LOG'|sudo tee /etc/cron.hourly/fstrim&&sudo /etc/cron.hourly/fstrim
#编程开发
sudo pacman -Sy --noconfirm atom visual-studio-code eclipse-jee openjdk8-doc openjdk8-src
jetbrains-toolbox安装jetbrains全系列可以跑满带宽
#android-studio
安装完成后将/opt下的android-sdk目录移动到其他分区再启动as 启动as后导入项目https://github.com/JessYanCoding/MVPArms能将所有流行开源库下载好
sudo pacman -Sy --noconfirm android-apktool android-docs android-ndk android-platform android-sdk android-sdk-build-tools android-sdk-platform-tools android-support android-support-repository android-studio
#android初学者
使用adt-bundle-linux-x86_64-20130917
Genymotion插件v1.0.6.7z解压到/eclipse/dropins
第一次使用插件需要指定genymotion安装目录/opt/genymotion
genymotion设置使用对应sdk
Android SDK Manager>Settings>mirrors.opencas.cn 端口:80 选中『Force https://... sources to be fetched using http://...』复选框
eclipse任意键代码自动补全preferences>java>editor>content assist>auto activation triggers>.abcdefghijklmnopqrstuvwxyz
#eclipse-jee
pacman安装tomcat8
tomcat插件http://marketplace.eclipse.org/content/eclipse-tomcat-plugin
#genymotion
设置virtualbox虚拟机安装路径
虚拟机快捷导入ova包的路径 ~/.Genymobile/Genymotion/ova
运行ARM应用要拖入安装对应ARM-Translation.zip
#thunar文件管理器快捷键
ctrl+ + 图标放大
ctrl+ H 显示或隐藏
ctrl+ 1/2/3 改变查看模式
#PulseAudio
可解锁最大音量
命令为pavucontrol,budgie要自行设置快捷键
#播放器
bomi 加速减速+ -
mpv 加速减速[ ]
bilidan 可以调用mpv播放bilibili 减少网页播放导致的耗电 参数-q 1 for the lowest, -q 4 for HD
#清理所有的缓存文件
sudo pacman -Scc
#centos虚拟机密码
https://zh.osdn.net/projects/sfnet_virtualappliances/releases/
CentOS-6.4-i386-minimal
CentOS-7.0-amd64-minimal
Root Password: toor
The "user" name will be the distribution you're running. For example if it's FreeBSD, the user's name is "freebsd".
User Password: nimda
#jetbrains系列激活码
CNEKJPQZEX-eyJsaWNlbnNlSWQiOiJDTkVLSlBRWkVYIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiQUMiLCJwYWlkVXBUbyI6IjIwMTgtMDEtMzAifSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAxOC0wMS0zMCJ9LHsiY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDE4LTAxLTMwIn0seyJjb2RlIjoiUlMwIiwicGFpZFVwVG8iOiIyMDE4LTAxLTMwIn0seyJjb2RlIjoiV1MiLCJwYWlkVXB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