Giter Club home page Giter Club logo

archlinux-learning's Introduction

ArchLinux-Learning

Arch Linux learning notes ( Arch Wiki: https://archlinux.org/ )

  1. okular pdf注解:F6 https://docs.kde.org/stable5/en/okular/okular/annotations.html

  2. GitHub markdown:https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax
    markdown换行:末尾打两个空格

  3. Update grub after installing custom kernel:

    $ sudo grub-mkconfig -o /boot/grub/grub.cfg
    
  4. C++中矩阵要初始化。如定义一个矩阵:

    double data[row][column];

    不初始化会出现Bus error。初始化,给每个元素赋一个初始值:

    for(int i=0;i<=row-1;i++)
     {
       for(int j=0;j<=column-1;j++)
       {
         data[i][j]=0;
       }
     }
  5. linux上编译Geant4(已在opensuse、wsl2、Arch Linux上测试):

    $ cmake -DCMAKE_INSTALL_PREFIX=/path/to/install \
       -DGEANT4_USE_OPENGL_X11=ON \
       -DGEANT4_USE_RAYTRACER_X11=ON \
       -DGEANT4_INSTALL_DATA=ON \
       -DGEANT4_INSTALL_DATADIR=/path/to/datasets \
       -DGEANT4_USE_QT=ON \
       -DGEANT4_BUILD_MULTITHREADED=ON \
       /path/to/src
    
  6. Opensuse tumbleweed下nvidia导致休眠恢复失败:在/etc/default/grub中添加内核启动参数nouveau.blacklist=1

  7. 高分屏再x11下显示字体图标过小(如surface pro 7):kde下,在设置中将缩放改为200%,然后在~/.xprofile中

  8. pacman更新时出现key相关的问题(如无法导入、corrupted):删除/etc/pacman.d/gnupg,再pacman-key --init

    # rm -rf /etc/pacman.d/gnupg
    # pacman-key --init
    
  9. git本地仓库push到远程:

    git config --global user.name "yourname"
    git config --global user.email [email protected]
    git add <filename>
    git commit -m "***"
    git push origin main
    
  10. git使用ssh进行clone和push,publickey添加到GitHub:

    ssh-keygen -t rsa -C "[email protected]"
    git clone [email protected]:lcyf9102s/ArchLinux-Learning.git
    
  11. 给linux kernel source手动打patch:

    patch -p2 < name.patch
    

    P.s. 要输入对应需要打patch的文件的相对或绝对路径

  12. wayland下Geant4可视化窗口无显示问题: 运行前添加环境变量:XDG_SESSION_TYPE=x11

    $ export XDG_SESSION_TYPE=x11
    
  13. VSCode factional scaling blurring issue fix for HiDPI Display (wayland):

    code --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland
    
  14. Arch Linux 使用systemd-boot引导时开启secure boot (surface pro):https://github.com/linux-surface/linux-surface/wiki/Secure-Boot

archlinux-learning's People

Contributors

lcyf9102s 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.