update ripgrep installation, add swap file creation script

This commit is contained in:
arnaucube
2024-02-03 19:01:29 +01:00
parent 292bf2b2db
commit 3f99aae988
3 changed files with 41 additions and 3 deletions

View File

@@ -54,3 +54,26 @@ alias lst='exa -l -snew'
### server side ### server side
- radicale `config` - radicale `config`
- in `~/.conf/radicale/config` - in `~/.conf/radicale/config`
## swap file
```bash
# create swap file
> dd if=/dev/zero of=./swapfile bs=1GB count=40
# add permisions
> chmod 600 ./swapfile
# format the swapfile
> mkswap ./swapfile
# enable swap on swapfile
> swapon ./swapfile
# check that it is enabled
> swapon --show
# make swap persistent:
# add the following line at the end of the /etc/fstab file
~/swapfile swap swap defaults 0 0
```

View File

@@ -61,14 +61,15 @@ git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install ~/.fzf/install
echo "instaling ripgrep" echo "instaling ripgrep"
curl -LO https://github.com/BurntSushi/ripgrep/releases/download/11.0.2/ripgrep_11.0.2_amd64.deb # curl -LO https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep_13.0.0_amd64.deb
dpkg -i ripgrep_11.0.2_amd64.deb # dpkg -i ripgrep_13.0.0_amd64.deb
apt install ripgrep -y
echo "install Rust" echo "install Rust"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# needed for later rust packages installations # needed for later rust packages installations
apt install build-essential apt install build-essential -y
# assuming that Rust is installed # assuming that Rust is installed
echo "installing delta (gitdiff tool)" echo "installing delta (gitdiff tool)"

14
swap-create.sh Normal file
View File

@@ -0,0 +1,14 @@
# create swap file
dd if=/dev/zero of=./swapfile bs=1GB count=40
# add permisions
chmod 600 ./swapfile
# format the swapfile
mkswap ./swapfile
# enable swap on swapfile
swapon ./swapfile
# check that it is enabled
swapon --show