Skip to content

Commit

Permalink
[UPDATE BONUS GUIDE] Update aliases bonus guide (minor fixes) (raspib…
Browse files Browse the repository at this point in the history
…olt#1077)

* Update aliases.md

- Fixed command to overwrite
- Updated redaction accordingly to change
- Added additional command to display current aliases in terminal

* Update for the improvement to show Tor version

Update for the improvement to show Tor version

* Fixes accordingly to suggestions
  • Loading branch information
twofaktor authored Aug 30, 2022
1 parent 1d15672 commit acdc4eb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions guide/bonus/raspberry-pi/aliases.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ The following list of aliases was derived from contributions by [RobClark56](htt

## Set up aliases

* With user "admin", access to `home` folder and download the aliases list provided by Raspibolt community at Github. Put "yes" if the prompt ask you about overwrite.
* With user "admin", access to `home` folder and download the aliases list provided by Raspibolt community at Github. ⚠️ This command will automatically overwrite the previous file you downloaded.

```sh
$ cd /home/admin
$ wget https://raw.githubusercontent.com/raspibolt/raspibolt/master/resources/.bash_aliases
$ wget https://raw.githubusercontent.com/raspibolt/raspibolt/master/resources/.bash_aliases -O .bash_aliases
```

* Inspect the list of aliases to make sure it does not do bad things and modify it with your personal aliases if you want. Exit with Ctrl-X
Expand All @@ -63,6 +63,19 @@ The following list of aliases was derived from contributions by [RobClark56](htt

## Aliases in action

* Simply type "alias" to display all available aliases

```sh
[...]
alias enableallmain='sudo systemctl enable bitcoind electrs btcrpcexplorer lnd rtl scb-backup'
alias enablebitcoind='sudo systemctl enable bitcoind'
alias enablebtcrpcexplorer='sudo systemctl enable btcrpcexplorer'
alias enablecircuitbreaker='sudo systemctl enable circuitbreaker'
alias enablecln='sudo systemctl enable cln'
alias enablefulcrum='sudo systemctl enable fulcrum'
[...]
```

* Test some of the aliases to see if it has been installed properly

```sh
Expand Down Expand Up @@ -98,7 +111,7 @@ The following list of aliases was derived from contributions by [RobClark56](htt
$ rm ~/.bash_aliases
```
* Execute a source command to register changes to the .bashrc file:
* Execute a source command to register changes to the .bashrc file:
```sh
$ source /home/admin/.bashrc
Expand Down
2 changes: 1 addition & 1 deletion resources/.bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ alias showmainversion='echo The installed versions of the main services are as f
echo BTC RPC Explorer: `sudo head -n 3 /home/btcrpcexplorer/btc-rpc-explorer/package.json | grep version` ; \
echo Electrs: `electrs --version` ; \
echo RTL: `sudo head -n 3 /home/rtl/RTL/package.json | grep version` ; \
tor --version ; \
tor --version | grep version | grep -v compiled ; \
echo NPM: v`npm --version` ; \
echo NodeJS: `node -v`; \
htop --version ; \
Expand Down

0 comments on commit acdc4eb

Please sign in to comment.