Adding mounting and passw manager doc

This commit is contained in:
Jose 2023-05-03 11:44:11 -03:00
parent 1934845ee1
commit 7f98b0edfa
3 changed files with 110 additions and 0 deletions

View File

@ -31,3 +31,8 @@ How to -safely- migrate to [[https://www.fsf.org][free software]] (free as in fr
** Hardware
* [[./doc/hardware.org][Table - Free hardware]]
** Daily system use
* [[./doc/mount.org][Mounting devices]]
* [[./doc/password_m.org][Password manager]]

43
doc/mount.org Normal file
View File

@ -0,0 +1,43 @@
#+date: 2023-04-07
* Mount devices in the system
The command mount will show the devices that are actually mounted
mount
You may also use ~lsblk~
#+begin_example sh
lsblk --fl
#+end_example
Or use:
#+begin_example sh
df -h
#+end_example
Or even ~fdisk~ (should use ~sudo~) to obtain details on the devices:
#+begin_example sh
fdisk -l
#+end_example
Let's say that you have a second disk identified as ~/dev/sdb~
You may use the command following to mount the disk:
#+begin_example sh
mount /dev/sdb /mnt
#+end_example
This command should be run using ~sudo~ before the line. The command mounts a device
(/dev/sdb) in any directory that exists in the system (here, we used ~/mnt~)
To unmount the disk use (should use ~sudo~ before):
#+begin_example sh
umount /dev/sdb
#+end_example

62
doc/password_m.org Normal file
View File

@ -0,0 +1,62 @@
#+date: 2023-05-03
#+options: toc:nil
* Using passwords
** Password managers
*** pass
*First, install and set the pass configuration files:*
Installing in Parabola-GNU
#+begin_example sh
pacman -S pass
#+end_example
Installing in Debian-Ubuntu-Trisquel-PureOS
#+begin_example sh
apt install pass
#+end_example
Initialize password store, using the gpg ID and then create a git repository
for the password storage key:
#+begin_example sh
pass init "CXZ Passwords"\
pass git init
#+end_example
Verify the place were passwords live:
#+begin_example sh
ls ~/.password-store/
#+end_example
*Then, use pass to manage passwords*
#+begin_example sh
pass insert Email/email1
#+end_example
Then, you can retrieve the password for this:
#+begin_example sh
pass Email/email1
#+end_example
After using this command you will need to inform the GPG password for the ID
you have created to encrypt the ~pass~ files.
You could also copy the retrieved password:
#+begin_example sh
pass -c Email/email1
#+end_example
** References
- [[https://www.passwordstore.org/][Check the man page]]