mkdir ~/bin
sudo apt install php-cli php-xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://unix.stackexchange.com/questions/124407/what-color-codes-can-i-use-in-my-ps1-prompt | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[38;5;214m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\] \$\[\033[00m\] ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS1='\n' # new line | |
PS1="$PS1"'\[\033[32m\]' # change to green | |
PS1="$PS1"'\u@\h ' # user@host<space> | |
PS1="$PS1"'\[\033[35m\]' # change to purple | |
PS1="$PS1"'$MSYSTEM ' # show MSYSTEM | |
PS1="$PS1"'\[\033[33m\]' # change to brownish yellow | |
PS1="$PS1"'\w' # current working directory | |
PS1="$PS1"'\[\033[36m\]' # change color to cyan | |
PS1="$PS1"'`__git_ps1`' # bash function | |
PS1="$PS1"'\[\033[0m\]' # change color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://unix.stackexchange.com/questions/124407/what-color-codes-can-i-use-in-my-ps1-prompt | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\] \$\[\033[00m\] ' |
I wanted to explore disk encryption on Linux for a long time now so I decided to give it a try and, after getting some knowledge on the topic, I decided that I wanted to achieve full disk encryption with LVM volumes on top of LUKS so in case the computer is lost not even the partitions layout would be exposed to potential threats.
Since the whole disk will contain encrypted data that the BIOS cannot understand, having a separate device is a requirement for this setup: we need a primary active partition to be available for the BIOS to delegate the boot process to the boot loader.
- Deniable encryption because the hard drive will only contain unidentifiable encrypted data.
- A form of two-factor authentication because the LUKS header will be stored on the external device.