Blog: TTTThis

Install Kali Bash Script (in progress)

# 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)
TTTThis

X1 Carbon

X1 Carbon sucks:

  • no sd slot, not SD or microSD. Nothing.
  • didn't come with touch screen
  • kind of buggy with screenlocks. Have to restart a lot.
  • comes with Thinkpad Startup BIOS which has a lot of options you need to turn off (including a lot of Windows things)
  • doesn't seem too much faster for most tasks. Video render is like 3 or 4x faster, which seems to reflect the same PCbenchmark score difference.

X1 Good:

  • smaller and lighter
  • larger screen, kind of squarer

OS

Had to use 22.4 Kali because 22.3 didn't have drivers for wifi. 22.4 was fine though. However, on 22.4 Virtualbox work right away, but did work eventually (QEMU did work but can't share folders with Windows and didn't figure out how to share with LinuxGuest).

TTTThis

Arduino Midi Controllers (Arduino Pro Micro/Leonardo as a midi USB device)

(next time, start here https://www.youtube.com/watch?v=WpXE3v3m8zw&t=101s not sure if that works but looks like maybe) or unrelated activities here https://www.youtube.com/watch?v=TiwmAPjXFcE&t=160s .

Note that if your Arduino is not detected it is often that the cable isn't a data cable but just a charge cable. Note that Arduino Pro Micro detects as Leonardo and that is fine. There's no difference except the physical size of the board.


Not all Arduinos have midi capability. Only those with the ATmega32U4 (which has HID capability ie it can be recognized as a keyboard or mouse. Leonardo and Pro Micro. But the ATmega32U4 still doesn't have midi out of the box but you can add a library (the 'midi USB library').

To import the library, in the Arduino IDO do (menu) Sketch > Library > manage libraries > (type) midi USB > ‘midi USB by Gary Grewal’ > install it.

(Note that you can actually use Unos and Megas etc but that's a method called hairless to use them as midi controllers.)

If you plug this into your laptop and have Ableton open, it should just automatically detect an Arduino Mini is plugged.

Tutorial on YouTube by Nerd Musician https://www.youtube.com/watch?v=32myesnWLuY and he has other videos including a 1.5hour full tutorial.


Plug in Arduino Pro Micro and select ‘arduino micro’ as board and etc.

If you get ‘Failed uploading: no upload port provided’ error upon upload attempt, if your ‘Tools > Port’ menu item is greyed out,


Arduino Uno drum set (not midi but connects directly) with SDcard https://www.youtube.com/watch?v=HvrgHK1RmFo Code: https://www.youtube.com/watch?v=CP-H2qi6AKE


.

Hello Drum library. With the Arduino IDE program opened, go to manage libraries and it will be there in the search (downloadable). I also downloaded it locally and put it in the Software Folder "avrdude: stk500_getsync(): not in sync: resp=0x00," aka Some Dude Named Avr Won't Let Me Upload My Program ... ... This error, retry evertying, and then do Tools > Processor and try the at least 2 options 328 and 328 Old Bootloader. This worked for me.

"These library allows any microcontroller with native USB capabilities (atmega32u4 based boards or ARM boards) to appear as a MIDI peripheral over USB to a connected computer.)"

The biggest issue is that the Nano does not have built-in (silicon based) USB Client support.

As the error states; You need to use an Aruino Pro Micro or Leonardo (for instance, there are many others) that are based off of the ATmega32u4 processor instead of the ATmega328 which is what is used on the Nano.

TTTThis

Things to learn on computer still

Make AppImages

Script to do manual things on OS install (set time, power options, launcher shortcuts)

Anydesk on Kali

QEMU with shared folders for LinuxGuest and for Win7Guest

Remove login screen and just use encryption screen

OpenVPN

Tenacity (Audacity fork) install, make an all-inclusive (dependencies) AppImage

An install that has everything, with AppImages for programs .. doesn't need internet for anything even printers and fonts

Disable persistence/journaling on Kali, tailsify

A Pi that just does printers, with an SD slot

piHole for internet protection while visiting hotels

Ableton on Linux

Set up shortcut key for thunar, for rename, open Terminal here, up directory

https://superuser.com/questions/1006661/show-shortcuts-for-actions-in-thunar

transfer files online

communications

TTTThis

Online programs (webApps) 2024

Talky.io

TTTThis