Add A New User
sudo adduser alice
You will be prompted to create a password.
The new user home directory is at /home/alice/
Add to the sudo group and give sudo permissions:
sudo adduser alice sudo
sudo su: If it runs aok account is in sudo group.
Add user to groups via: Sudo adduser alice adm
Add to the following groups: adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi
Disable wifi & bluetooth
Sudo apt install rfkill: Sudo rfkill list all
Sudo rfkill block Bluetooth: Sudo rfkill block wifi
OR Edit config file
Sudo nano /boot/config.txt
# Disable Bluetooth: Dtoverlay=pi3-disable-bluetooth
#Disable Wi Fi: Dtoverlay=pi3-disable-wifi
Add Video Codecs
From a command prompt type:
sudo nano /boot/config.txt –
Add the line: decode_MPG2=XXXXXXX
Where XXXXXX is the code you got when you bought the MPG2 licence from the Raspberry Pi store.
Then CTRL O to save the file then CTRL X to exit.
Check if enabled from the command prompt by typing:
vcgencmd codec_enabled MPG2
vcgencmd codec_enabled WVC1
To shred a file:
Open a command prompt in the directory the file (called test.doc) you want to shred is located.
Type:
shred –u test.doc
The -u can be replaced with the following:
-f: Changes permissions to allow writing if needed
-n=x: Overwrites x times instead of the default (*3)
-s=x: Specifies the number of bytes, x, to shred
-u: Truncates and removes files after overwriting
-v: Shows verbose information about the progress
-x: Do not round file sizes up to the next full block
-z: Adds a final overwrite with zeros to hide shredding
-u: Removes the file after overwriting
Linux Encryption
To create an encrypted usb stick connect to the internet and type the following from a command prompt:
sudo apt install cryptsetup
sudo apt install gparted
To view cryptsetup encryption data type
cryptsetup –help
To encrypt a file with gpg
To encrypt a file called test.doc, open the command prompt in the directory it is located in and type:
gpg –c test.doc
You will then be asked to enter the password you want to use. Twice.
To decrypt the file stay in the directory and type:
gpg test.doc.gpg
Enter your password and you should see the document appear in the folder.