Copying files. If same AND different file size VS if same and same size.
Provide details on what file and location, date created, thumbnail
Copying files. If same AND different file size VS if same and same size.
Provide details on what file and location, date created, thumbnail
https://askubuntu.com/questions/491104/all-folders-and-files-in-sd-card-and-usb-drive-appearing-as-locked , trying first with the SDHC drive (sda or sdb or sdc) which you can find with:
fdisk -l
The command
sudo mount --options remount,rw /dev/sdb
Might have to do it not by dev/sda or sdb, but instead by mountpoint https://askubuntu.com/questions/213889/microsd-card-is-set-to-read-only-state-how-can-i-write-data-on-it
sudo mount --options remount,rw /media/username/mountpointofsdcard
But after those attempts, it still said "error taking ownership of filesystem on read-only file system udisk-error-quark", so I tried to reformat it (the files were readable but the disk had become read-only).
https://www.youtube.com/watch?v=ZNaT03-xamE
lsblk
to view media. Let's say your flashdrive is in 'sda'
fdisk /dev/sda
to wipe it. Enter d for delete, then n for new partition, then p for primary, and hit enter to accept the defaults and type YES
lsblk
to look again. Now you have a sda1
cryptsetup luksFormat /dev/sda1
to encrypt it. Select a password for it
cryptsetup open /dev/sda1 drive
to open it and name it, for the time being, 'drive'. Enter the same password you gave it
lsblk
and you should see 'drive' there
mkfs.ext4 /dev/mapper/drive
to make a filesystem on it (because it doesn't have one yet). it'll auto be on mapper. It'll take some seconds or a minute
mount /dev/mapper/drive /mnt/
to mount it (to mnt for the time being)
# BEFORE YOU RUN THE SCRIPT, you need to make it executable. Open a Terminal in the same folder as this file, and do:
# chmod +x setup_script.sh
Now you can run the script using the following command:
# ./setup_script.sh
# OTHER STUFF TO KNOW
# the backslash (\) at the end of each line indicates that the command continues on the next line. This makes the script more readable and avoids syntax errors.
#!/bin/bash
# Update package repositories
sudo apt update
# Install packages
sudo apt install -y \
hydrogen gimp kdenlive gnome-disk-utility shotwell vokoscreen \
libreoffice inkscape secure-delete imagemagick \
fonts-indic fonts-thai-tlwg \
xinput cherrytree gdebi gdebi-core gnome-system-monitor \
system-config-printer cups font-manager virtualbox-dkms \
gnome-control-center \
plasma-workspace \
# Gnome-control-center is for auto-setting the languages with Spanish
# Plasma-workspace is for adding launchers to the panel
# More packages (Thai, Hindi fonts, Brave browser)
sudo apt-get install -y fonts-thai-tlwg fonts-indic \
sudo apt install -y apt-transport-https curl
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update
sudo apt install brave-browser
# Do some other things
sudo systemctl enable cups \
sudo timedatectl set-timezone America/Managua \
pactl set-sink-mute 0 false \
pactl set-sink-volume 0 50% \
sudo dpkg --add-architecture i386 \
# i386 is for installing Bitwig
#Change power options. Set “Security” > “Automatically lock the session:” to “Never”, and then uncheck “Lock screen when system is going to sleep”, and change the sub-options in “Display power management” all to “60 minutes”, and change “Brightness reduction” > “Reduce after” to “Never”
# keep luks decrypt screen on boot, but don't do log in screen. Just automatically log in.
# go to keyboard settings, to Layout, and unlock the default settings, add Spanish, and then change layout option, and set ctrl-shift to change language input
# Add launchers to the panel for VirtualBox, Vokoscreen, and Screenshot, remove launcher for mousepad and firefox
# Open another Terminal and print OS, version, ram, processor, diskspace, desktop environment, IP, and say write these down and put them on a sticky note
sudo apt-get update \
gnome-system-monitor \
# Create directory for custom fonts
mkdir -p ~/.local/share/fonts
# Configure other system settings
kwriteconfig5 --file plasma-org.kde.plasma.desktop-appletsrc --group Containments --group panel --group Applets --key cherrytree value "cherrytree.desktop"
# You still need to
# Manually use Gdebi and open bitwig's deb and install it
# Inside VMs, reinstall Firefox as shown in the SettingUpKali guide
# Plug in your printer, open Print Settings, and Add your printer (even if it already displays, add it again if it doesn't print)