How I setting a brand new fedora system
Created at Updated at

332 Words

Basic Settings

Terminal shortcuts

gnome-terminal

SSH service for winscp/xshell

  • install openssh-server

    $ sudo dnf install openssh-server
    
  • start ssh service to ensure that port 22 is not refused

    $ sudo systemctl start sshd
    

    or use the enable command to set this service to start by default

    $ sudo systemctl enable sshd
    
  • now we can get access to host by using SSH service

$ ln -s src linkname

Valgrind tool package

Installation

$ sudo dnf install valgrind

set shortcuts

$ vim ~/.bashrc

add the following line of code

valgrind --tool=memcheck --leak-check=full ./a.out

add alias

alias memcheck='valgrind --tool=memcheck --leak-check=full --show-reachable=yes

PS1 Customize

config the file

$ vim ~/.bashrc

add this:

export PS1="\[\e[1;35m\]$\[\e[m\] "

enable the settings

$ source ~/.bashrc

Generate Pivate Key

$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
$ cd ~/.ssh

Git

git global config set

$ git config --global user.name "Your Name"
$ git config --global user.email "your_email@example.com"

proxy settings

git config --global http.proxy http://127.0.0.1:xxxx
git config --global https.proxy http://127.0.0.1:xxxx

Software settings

SDCV

$ sudo dnf install sdcv

Dowonload dicts at:https://www.nchrs.xyz/stardict/zh_CN/index.html

recommand 朗道英汉字典/ 朗道汉英字典。

dictionaries position: ~/.stardict/dic

$ mkdir -p ~/.stardict/dic
$ tar -xvf stardict-oxford-gb-2.4.2.tar.bz2 -C ~/.stardict/dic
$ sdcv -l

snippet

$ cd ~/.vim/plugged/prepare-code/snippet

Markdown settigns

  1. inject.

    $ cargo build --bin node-inject --release
    $ mv target/release/node-inject /opt/typora
    $ cd /opt/typora
    $ sudo ./node-inject
    
  2. generator a license.

    $ cargo run --bin license-gen --release
    
  3. input license in software.

  4. set a desktop shortcuts

    $ cd /usr/share/applications
    $ vim xxx.desktop
    
    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=YourAppName
    Comment=Your application description
    Exec=/path/to/your/executable
    Icon=/path/to/your/icon.png
    Terminal=false
    Categories=Utility;Application;
    
  5. restart system to see if the software on the desktop

  6. set default md application

    $ vim ~/.config/mimeapps.list
    

    add one line

    text/markdown=typora.desktop;