Blog: TTTThis

External monitors on Pixels and other phones

Pixel 8, 8a etc and later Pixels are shipped with the ability to connect an external monitor (finally). You can just plug in a usbc to hdmi and plug in a monitor, or you can plug the usbc into a dock or hub (note some do but most don't come with an audio out but do push audio through the hdmi) and connect the hub to the monitor. No software required. GrapheneOS same, no software required. However, you might have to long press the Pixel's screen and go into options and turn on rotate desktop. You might also have to go into Dev options and

"Enable Key Desktop Features"

Go to Settings > System > Developer options.

Scroll down to the "App compatibility" or "Drawing" sections.

Look for and enable the following flags:

Force desktop mode (This enables the basic desktop environment.)

Enable freeform windows on secondary display (This is crucial, as it tells the system to use the external screen as a separate display with resizable windows, rather than just mirroring.)

PIXEL 7 OR EARLIER (that don't have the hardware built into them to stream, ie chipset)

Use a hub that has ‘DisplayLink’ (company) that makes the graphics chip that allows the phone to stream to a monitor.

https://www.youtube.com/watch?v=UJ4hzT7It2o&t=509s

An example product that I think probably works

"HDMI Adapter USB Type C Cable 4K MHL Converter Cord w/Charging Port for TV Projector Monitor Connet Samsu…"

But for sure the adapter requires a graphics chip in. Renkship and Maylowen make them.

Install the app called Displaylink presenter (which is just a driver basically, you don't need to launch it, it just is installed).

NOTE

Mouse doesn't work on external monitor. Streaming like Netflix is encrypted and will just show as black on the external.

PIXEL 3 (same thing as above)

Display link certified adapter.

https://www.youtube.com/watch?v=Yz8cr3vXKM4

ANY PHONE RUNNING ANDROID 14.4 or later

https://www.youtube.com/watch?v=44-jXexQ8Kk Tested out the Moto G Fast, Samsung A01, and the Alldocube iplay40 in this video.

2-in-1 USB Type C/Micro USB to HDMI Cable adapter (chip with 128mb ram).

He says you can send audio through bluetooth from the phone to the unit to pipe it into the monitor through the hdmi.

This uses MiraPlug Mirrorcast app. So who knows trustworthy.

OTHER PHONES

Samsung S8 and later, S21 (earlier I think also?), plug and play.

TTTThis

Kali install 2025

  • Install List
  • Brave
  • Do things
  • QEMU
  • Printer (ecotank)
  • Bitwig



INSTALL LIST

(Used the same code from 2023 https://tttthis.com/blog/kali-install-2-in-2024 and 2024 https://tttthis.com/blog/kali-install-3-2024 .)

sudo apt-get install hydrogen shotwell gnome-disk-utility gimp shotwell vokoscreen libreoffice inkscape secure-delete imagemagick fonts-indic fonts-thai-tlwg xinput cherrytree gdebi gdebi-core clamav clamtk gnome-system-monitor system-config-printer cups font-manager && sudo systemctl enable cups 

...

BRAVE BROWSER

sudo apt install 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 THINGS

  • Time zone: cuba, or Latin American countries are listed like 'Americas/CountryName'
  • Power Manager (otherwise it will dim after 120seconds): Keep screen from locking:
  • Top-left menu > Settings > Power Manager > (fourth tab) Security > Automatically lock: Never, and uncheck []Lock screen when system is going to sleep
  • in Power Settings, you have to click the top buttons for ‘plugged in’ and ‘on battery’ and do both
  • Menu > Keyboard > Layout, unlock the Default settings and +add Spanish, and set a ‘Change layout option.' I selected Ctrl-shift to change language input
  • Disable login screen. Didn't find a way.

...

INSTALL QEMU ON KALI

https://www.kali.org/docs/virtualization/install-qemu-guest-vm/

sudo apt update && sudo apt install virt-manager -y

Then (on next boot, although everything works on current session), maybe you get an Error starting domain. Requested operation is not valied. Network ‘default’ is not active.

(To fix do in Terminal

sudo virsh net-start default

But) to ensure ‘default’ starts after system reboot, do

sudo virsh net-autostart default  

QEMU SHARED FOLDERS

https://www.youtube.com/watch?v=DE7_isunZA8 or his blog https://absprog.com/post/qemu-kvm-shared-folder

  • First, in Terminal (in Host)
sudo apt install virtiofsd
  • Turn off the VM
  • Memory > (check) Enable Shared Memory
  • Click Add Hardware > Filesystem. Driver: Virtiofs. Browse the folder on the Host Machine. Target Path: any name, it's just a label, and we'll pick ‘WhatYouCalledIt’
  • Click ‘Finish’.
  • Open the VM.
  • Mount the shared folder inside the VM.
    1. First create a mount point anywhere. Just make a folder wherever you want it to be in the VM.
    2. Open /etc/fstab
    3. Add the following line at the end of that file:

WhatYouCalledIt /home/your_username/shared_folder(or whatever the folder is called in the VM, this is inside the VM) virtiofs defaults 0 0

  1. Then either reboot or do ‘sudo mount -a’

Example: SsharedFoldsRandomName /home/kali/SharedFolds/ virtiofs defaults 0 0

...

INSTALL PRINTER ON KALI (Ecotank L3250 (L3210 was similar and I put instructions on tttthis)

In the 'LINUX INSTALL 2025' folder, use gdebi to install lsb-compat_9.20161125_amd64 (hard to find online) and either both or one of epson-inkjet-printer-escpr_1.8.6-1_amd64.deb and epson-printer-utility_1.2.2-1_amd64.deb

Then click the Dragon > Printer, and add the printer (Generic or Epson? I did both in the mess of this install)

...

INSTALL BITWIG

https://tttthis.com/blog/kali-install-3-2024

...

HARDENING / SECURING OS

TURN OFF Journaling, but keep thumbnailing in Thunar (this requires storing them in .cache because Thunar doesn't make it's own local thumbnails, but we just store them in .cache but on RAM so on reboot they're gone. We also turn off Swap file (computer maybe is set up to start saving stuff on the drive's swap space if it runs out of RAM Disk (need to have a decent amoung of RAM otherwise system might overload and freeze with RAM usage, like 8gb or more or something).

First, deal with the ‘recent files’ log on kali/sfce

  1. Modify or create a settings.ini file in /.config/gtk-3.0/
  2. The settings.ini should have:
[Settings]

gtk-recent-files-enabled=false

gtk-recent-files-max-age=0

Why this works:

gtk-recent-files-enabled=false: This tells the system "Stop recording my file history."

gtk-recent-files-max-age=0: This tells the system "If you do find any history, keep it for 0 days (delete it immediately)."

You can also run a clear of the ‘recent files’ log with

rm ~/.local/share/recently-used.xbel

And you can create a different ‘recent files’ list that is empty and ‘un writable’ (not sure if I did this but I don't think so):

touch ~/.local/share/recently-used.xbel sudo chattr +i ~/.local/share/recently-used.xbel

Then, deal with .cache

  1. Clear thumbnails with
rm -rf ~/.cache/thumbnails/*

(note that this doesn't delete them it just clears them. If you want to delete them use SD, maybe something like srm -rlvz ~/.cache/thumbnails/* )

  1. Make the thumbnails folder ‘un writable’ (You might not want to do this, the strikethrough commands are fixed/undone later

rm -rf ~/.cache/thumbnails

ln -s /dev/null ~/.cache/thumbnails

This replaces the folder with a symbolic link to /dev/null (the "black hole" of Linux), so any data sent there simply vanishes.

But you might see that now Thunar doesn't even create thumbnails. Actually you do want to .cache thumbnails (otherwise you can't view them at all), just you don't want them to be cached permanently. So we do the ‘RAM Disk’ trick. (There is an alternative method called the ‘self cleaning script method' which let's Thunar save thumbnails but you make a script that automatically removes the thumbnails when you close Thunar, but I didn't do this method.)

Undo previous link with

rm ~/.cache/thumbnails

mkdir ~/.cache/thumbnails

  1. Mount the folder in RAM (Tmpfs): Open your file system table with sudo:
sudo mousepad /etc/fstab
  1. Add this line to the bottom of the file (modify username):
tmpfs  /home/yourusername/.cache/thumbnails  tmpfs  rw,size=100M,user,exec,nosuid,nodev  0  0

Now Thunar will save thumbnails to RAM. They’ll stay there for your current session, but will be wiped every time you restart.

...

Make TRIM schedule more frequent (daily instead of standard Kali weekly) (explained on tttthis page:

sudo mkdir -p /etc/systemd/system/fstrim.timer.d && \
echo -e "[Timer]\nOnCalendar=daily\nAccuracySec=1h" | sudo tee /etc/systemd/system/fstrim.timer.d/override.conf && \
sudo systemctl daemon-reload

(You can run TRIM with this command: sudo fstrim -av)

TTTThis

How to clone a harddrive (with Clonezilla)

The clonezilla software https://clonezilla.org/downloads.php is about 500mb now. I have an old version which was like 250mb or something.

You write this like any .iso to a flash drive and stick it in the machine you want to clone the harddrive from, and also plug in the harddrive you want to clone to. Note size is big enough.

TTTThis

Yt-dlp commands

To download a single video or a playlist as mp3

yt-dlp --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" https://www.youtube.com/etcetcetcetc

yt-dlp playlist

yt-dlp -x --audio-format mp3 --audio-quality 0 --embed-thumbnail --add-metadata --ppa "EmbedThumbnail+ffmpeg_o:-c:v mjpeg -vf crop=\"'if(gt(ih,iw),iw,ih)':'if(gt(iw,ih),ih,iw)'\"" -o "%(title)s.%(ext)s" "PLAYLIST_URL"

TTTThis

INSTALL OsTIrus (dsp56300 software) on Windows7 (didn't work for me)

For this software (2 things actually) to work, it seems (from successfully installing on Linux with Wine for the Virus software), you need to install the Virus software (anywhere) and then either install the OsTIrus vst or just put the vst in the right folder and find it inside BItwig (I already had it in that folder, so even though I did install it from anther deb, maybe I didn't need to).

Then you go into the Program Files/Access Music/Virus TI/Common folder and copy the firmware.bin file and paste it beside the OsTIrus vst you're finding in Bitwig. Then it will work (ie it worked before, the vst loaded before, but it didn't have any sounds, and now it should have all the TI sounds. I guess the firmware.bin directs it to find where all that is on your harddrive?

You can read the next post here to see how I got it to work on AVlinux.

TTTThis