All This Programming, Machine Learning & Physics

Streaming Your reMarkable Screen to macOS via USB C

|

Stream your reMarkable tablet’s screen directly to your Mac using a USB connection. This setup allows for real-time screen sharing without relying on Wi-Fi.

Setting Up SSH Access Over USB

  1. Connect reMarkable to Mac via USB
    • Use your USB C cable to connect the reMarkable tablet to your Mac.
  2. SSH into reMarkable
    • Open Terminal on your Mac.
    • Run the following command:
      ssh root@10.11.99.1
      
    • Password: Enter your SSH password. However, you can login without password by following the instructions here.

Installing goMarkableStream on reMarkable

See detailed instructions here but the steps that I used are the following.

  1. Download the goMarkableStream Binary
    • On your Mac, visit the goMarkableStream Releases page and download goMarkableStream_0.18_linux_arm.tar.gz. Change release numbers appropriately. At the time of writing it was 0.18.
  2. Transfer the Binary to reMarkable
    • In Terminal on your Mac, execute:
      scp goMarkableStream_0.18_linux_arm.tar.gz root@10.11.99.1:/home/root/
      
  3. Extract the Package and Set Permissions
    • SSH into reMarkable if not already connected:
      ssh root@10.11.99.1
      
    • Extract the tarball:
      tar xvzf goMarkableStream_0.18_linux_arm.tar.gz
      
    • Set executable permissions:
      chmod +x /home/root/goMarkableStream_0.18_linux_arm/goMarkableStream
      

Configuring goMarkableStream

  1. Create a Shell Script
     pushd /etc/systemd/system
     touch goMarkableStream.service
    
     cat <<EOF>goMarkableStream.service
     [Unit]
     Description=Go Remarkable Stream Server
    
     [Service]
     ExecStart=/home/root/goMarkableStream_0.18_linux_arm/goMarkableStream
     Restart=always
    
     [Install]
     WantedBy=multi-user.target
     EOF
    
     systemctl enable goMarkableStream.service
     systemctl start goMarkableStream.service
     systemctl status goMarkableStream.service
     popd
    
  2. Run the Setup Script
    • Execute the setup script:
      sh setupGoMarkableStream.sh
      
    • Service Status: Verify that the service is active:
      systemctl status goMarkableStream
      

      You should see:

      Active: active (running)
      
  3. Change Default Credentials
    • Edit the Service File:
      nano /etc/systemd/system/goMarkableStream.service
      
    • Add Environment Variables: Under the [Service] section, add:
      Environment="RK_SERVER_USERNAME=your_username"
      Environment="RK_SERVER_PASSWORD=your_password"
      ExecStart=/home/root/goMarkableStream_0.18_linux_arm/goMarkableStream
      

      Replace your_username and your_password with your desired credentials.

    • Save and Exit: Press Ctrl + O, Enter, then Ctrl + X.
  4. Reload systemd and Restart the Service
    systemctl daemon-reload
    systemctl restart goMarkableStream
    

Accessing the Stream on macOS

  1. Open a Web Browser on Your Mac
  2. Navigate to the Streaming URL: http://10.11.99.1:2001
  3. Enter the username and password you configured earlier.

Open any document notebook on the reMarkable and you should be able to view it in the URL above.

Setting Up a New MacBook Pro

|

Basic speed up

  1. Enable Trackpad “Tap to click” feature
  2. Enable Trackpad “Three finger drag” feature
  3. Setup the Dock on the left and hide it on default and remove auto-hide delay
    defaults write com.apple.dock autohide-delay -float 0
    defaults write com.apple.dock autohide-time-modifier -float 0
    defaults write com.apple.dock expose-animation-duration -float 0.15
    killall Dock
    
  4. Increase cursor speed in the terminal
  5. Setup spaces and keyboard shortcuts

Install useful apps

  1. Homebrew
  2. OhMyZSH

everything (when available) view brew else AppStore else Web.

  1. RayCast
  2. Alfred
  3. KeyboardMaestro
  4. Forklift
  5. Moom
  6. iStatMenus
  7. Shottr
  8. KeePass

Best Alfred Plugins for Programming and Research

|

Alfred is among the first things that I install when setting up a new Mac. It is a keyboard launcher similar to Spotlight but supercharged. A few years back, there used to be an app called Flashlight that brought amazing functionality to Spotlight. Sadly, Flashlight is no longer an option because it needs macOS “System Integrity Protection” to be disabled which is not safe.

Alfred has a lots of plugins. In the below MindMap I have organized the top plugins that I use for programming and research. You can click on each node to learn more.

Copying Citation from Zotero in BibTex Format

|

Zotero is my favorite application for organizing, sharing, and generating bibliographies for research papers. There are many other similar reference managers such as Mendeley and EndNote with superior features. They are either not open source or free (as in beer) or both. .

Zotoro gets the job done for me. It has got a lot of useful features. One such function is that a citation can be exported to clipboard so that it can be pasted into a document. This can be achieved using ⌘ + ⇧ + c keyboard shortcut.

You can export the citation in a variety of formats. However, if you are using LaTeX to write a paper, you almost always need to paste a quote in a BibTex format into a bib file. There are a few ways of achieving this as mentioned in the forum thread. I found that the easiest way is to download and install the BibTex generic citation style from the Zotero style repository. After installing, set the default export format to BibTex generic citation style as shown below.

Tiddlywiki Mindmap

|