Giter VIP home page Giter VIP logo

remakeevyday's Introduction

RemakeEvyday

仅供本人使用的配置同步仓库(重装系统太麻烦了,有空整理一下每一步的操作,咕咕咕🕊

删除双系统的 EFI 引导

以下均在 Windows 系统下进行

  • 用管理员权限打开 powershell

  • 首先将 EFI 分区挂载

diskpart
list disk
select disk 0 # 这里通常要选择 C 盘对应的磁盘
list partition
select partition 1 # 这里要选择系统分区
assign letter=P: # 挂载到 P 盘上
exit
  • 然后使用管理员权限进入 EFI 分区
cd P:/EFI/
ls # 可以看到所有 EFI 引导
rm ...
  • 删除完成后移除盘符
diskpart
select disk 0
select partition 1
remove letter=P:
exit

manjaro 配置

基础开发包和 yay

sudo pacman -S base-devel yay

换源

  • 换源
sudo pacman-mirrors -i -c China -m rank
sudo pacman-mirrors -g
sudo pacman -Syyu

或者

sudo vim /etc/pacman.d/mirrorlist
sudo pacman -Syyu
  • 添加 archlinuxcn(可选)
sudo vim /etc/pacman.conf
#复制以下配置到文件末尾
[archlinuxcn]
SigLevel = Optional TrustAll
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch

sudo pacman -Syyu
sudo pacman -S archlinuxcn-keyring

修改 grub 等待时间

sudo vim /etc/default/grub
# 修改下面的值
GRUB_TIMEOUT=...

sudo update-grub

fcitx5 输入法

  • 安装主题和必要包
sudo pacman -S fcitx5 fcitx5-chinese-addons fcitx5-qt fcitx5-gtk kcm-fcitx5

fcitx5 为主体,fcitx5-chinese-addons 中文输入方式支持

fcitx5-qt: 对 Qt5 程序的支持

fcitx5-gtk: 对 GTK 程序的支持

kcm-fcitx5: KDE 下的配置工具

  • 配置环境变量
sudo vim ~/.pam_environment

INPUT_METHOD  DEFAULT=fcitx5
GTK_IM_MODULE DEFAULT=fcitx5
QT_IM_MODULE  DEFAULT=fcitx5
XMODIFIERS    DEFAULT=\@im=fcitx5

其他配置参阅 ArchWiKi

  • 安装词库

可以从 kcm-fcitx5 的配置里面添加搜狗词库

也可以下载肥猫百万词库

yay -S fcitx5-pinyin-zhwiki
  • 安装中文字体(可选)

manjaro 自带的有中文字体,这一步选配

sudo pacman -S adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts
  • 安装主题
sudo pacman -S fcitx5-material-color

fcitx5-material-color 项目地址

修改配置文件 ~/.config/fcitx5/conf/classicui.conf

# 垂直候选列表
Vertical Candidate List=False

# 按屏幕 DPI 使用
PerScreenDPI=True

# Font (设置成你喜欢的字体)
Font="Source Han Sans CN Medium 13"

# 主题
Theme=Material-Color-Pink

dock 栏

sudo pacman -S latte-dock

zsh 配置

  • 更换默认 shellzsh
chsh -s /bin/zsh

- 安装 OhMyZsh 主题(废弃)

git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
  • 安装 zinit 管理器
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma/zinit/master/doc/install.sh)"

zinit 的更新命令是 zinit self-update

  • 将系统自带的 zshrc 备份,写入新的 zshrc

zshrc 见本项目的 zsh.zshrc

git 设置

git config --global user.name 'your name'
git config --global user.email 'your email'

全局菜单

  • 全局菜单部件在 KDE 小部件中

  • 最大化消除顶栏

sudo pacman -S plasma5-applets-active-window-control

拖到顶部面板后进行相关设置

最大化窗口隐藏标题栏: ON

仅显示当前屏幕的活动窗口: ON

鼠标离开时依然显示: ON

在图标和文字旁显示: ON

  • 部分 gtk 应用无法应用全局菜单

inkscape 等,按照以下命令

sudo pacman -S appmenu-gtk-module

详情参照Some applications are not using the global menu!

  • 部分 java 应用无法应用全局菜单

jetbrains 全家桶等,可能有几种情况:

  1. 缺少 libdbusmenu-glib 包,使用 pacman 安装即可

  2. IDE 中安装了别的主题,插件无法启动 javaFX,在 IDE 中安装 JavaFX Runtime for plugins 插件

详情参照IDEA2020.2版本无法开启KDE全局菜单的解决方案

vscode

yay -S visual-stduio-code-bin

配置使用 vscode 自带的同步功能进行同步

有时登陆帐号后会出现将登陆信息写入密钥链失败的错误,按照以下命令

sudo pacman -S gnome-keyring
  • ccls

对于大型工程,不再使用 C++ Intellisense,而是使用 ccls

LaTex

sudo pacman -S texlive-most texlive-lang
yay -S texlive-most-doc

使用 vscode 进行编写,xelatex 编译,vscode 中的设置已同步

C/C++ 环境

sudo pacman -S clang llvm gdb lldb cmake

vscode 中的 cmake-tools 有时会扫描不到 kit,这时要按下 ctrl+shift+p 输入 Edit Usr-Local CMake Kits,按照以下形式

[
  {
    "name": "GCC",
    "compilers": {
      "C": "/bin/gcc",
      "CXX": "/bin/g++"
    }
  }
]

Ranger 配置

  • ranger 安装
sudo pacman -S ranger
  • 高亮显示
sudo pacman -S highlight
  • 生成配置文件
ranger --copy-config=all

# To stop ranger from loading both the default and your custom rc.conf,
# please set the environment variable RANGER_LOAD_DEFAULT_RC to FALSE.
  • 插件安装
# 图标显示,需要安装 nerd-fonts
git clone https://github.com/alexanderjeurissen/ranger_devicons ~/.config/ranger/plugins/ranger_devicons

lazygit 配置

yay -S lazygit

vim 配置

  • neovim 安装
sudo pacman -S neovim

# neovim 检查
:checkhealth

检查后可能缺少剪切板

sudo pacman -S xsel
  • coc.nvim 依赖
sudo pacman -S npm ccls

coc.nvim 配置见 coc-settings.json

  • tags 安装
sudo pacman -S ctags global

注意:pacman 源中的 ctagsuniversal-ctags

  • ripgrep 安装
sudo pacman -S ripgrep

jetbrains-toolbox

  • 安装 jdk
sudo pacman -S jdk
  • 现在的 jetbrains-toolboxAppimageLanucher 下有一些问题:
Toolbox
When toolbox is first launched, it creates a copy of itself in ~/.local/share/JetBrains/Toolbox/bin/. This is something the developers did intentionally. It also creates it's own desktop file and icons in other locations. In other words, this is a very messy application.
AppImageLauncher
AppImageLauncher is in short an AppImage manager. Upon launching an AppImage for the first time, it will move the AppImage to well-known location (usually ~/Applications), and creates standard a desktop file with a menu option which offers uninstalling the AppImage. This allows us to uninstall AppImages very easily.
The Problem
Because of the way the regular Jetbrains toolbox app works, AppImageLauncher is often caught in a wild goose chase of finding a new copy of the application and repeatedly asking us to integrate it into the system. Of course this doesn't work and because when the new AppImage is integrated and run, it once again creates a new copy, etc, etc.

相关问题: issues239 issues338 TBX3948

  • 暂时解决方案(任选其一)
  1. 官网下载的 Appimage 文件,解压后用 appimagetool 修改桌面文件添加 X-AppImage-Integrate=false,详情见issues338

  2. 使用 yay 安装 jetbrains-toolbox-fix

  3. vim ~/.config/appimagelauncher.cfgask_to_move 置为 false

remakeevyday's People

Contributors

418-teapot avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.