Inane Observations $ sudo fix_it
  • LMMS MIDI percussion base note table

    22 April 2020 | music linux | Comment

    The table below shows LMMS instrument ‘base notes’ such that setting the base note will cause A4 (the default ‘percussion’ note) to play the corresponding General MIDI percussion sound. This is of particular relevance to soundfont synthesiers set to the percussion bank.

    # Instrument LMMS Base Note
    … »
  • Using apitrace with GStreamer 1.x to convert OpenGL captures to video

    09 April 2020 | video editing linux opengl | Comment

    Background

    apitrace is a set of tools to trace and replay OpenGL API calls. Using it, we can capture the output of applications like glava (an OpenGL-based audio visualiser), and later replay it or save it to a video file.

    To do this, the apitrace… »

  • Forwarding game controllers and other input over SSH

    01 December 2019 (updated 02 December 2019) | linux | Comment

    Various systems exist for remotely controlling Linux systems, such as VNC, Synergy/Barrier and other protocols like SPICE and NX. These systems, however, tend to operate at a high level, and are consequently limited in scope. For example, none of these systems support relative mouse… »

  • Relative mouse and keyboard input over SSH (or: I just want to play Minecraft)

    18 November 2019 (updated 01 December 2019) | linux | Comment

    Background

    VNC allows viewing and control of a host computer over a network. However, VNC's mouse support uses absolute mouse positions, and is ineffective when the host computer's mouse cursor is programmatically repositioned. This poses a challenge for use cases such as 3D video gaming,… »

  • Guide: cURL in an initramfs environment (with HTTPS and DNS)

    05 June 2019 (updated 05 June 2019) | guide linux | Comment

    I recently found myself wishing to be able to remotely unlock my LUKS partitions on (re)boot. The Arch Linux wiki has some information on this, but this was not sufficient for my case, as my network assigns dynamic IP addresses, which I normally push to… »

  • FIX: Issues installing Origin on Wine (error 3:0 and graphical glitches)

    16 November 2018 | gaming linux wine playonlinux | Comment

    Graphical glitches

    Issue

    The Origin installer producers a flickering black window with flashes of corrupted images (flipped, cut off, incorrect colours, etc.)

    Image Image

    Fix

    Provided that your graphics card supports Vulkan, switch from wined3d/d3d11 to DXVK. Install DXVK, then run:

    export WINEPREFIX=/path/to/wineprefix setup_dxvk64
    … »
  • GIF scrolling text marquee with ImageMagick (or: DIY X'trapolis PIDs)

    12 May 2018 | guide gif animation marquee scroll imagemagick linux | Comment

    Example scrolling GIF

    #!/bin/bash
    
    IMWIDTH=336
    IMHEIGHT=24
    STEP=2 #pixels per frame
    FRAMERATE=50 #frames per second
    
    OUTPUT="scroll.gif"
    FONT_PATH=/usr/share/fonts/TTF/LiberationSans-Bold.ttf
    
    MESSAGE="Hello World!"
    
    BACKGROUND="#000000"
    FILL="#ff9c10"
    
    # Make a "unique" prefix for this run
    PREFIX=
    … »
  • Hacking a cheap fitness tracker – Setting the time

    22 January 2018 | linux hardware hacking reverse engineering bluetooth | Comment

    The cast

    The Mambo HR is a no-name $30 fitness tracker from Chinese manufacturer Lifesense, and I recently acquired one as a gift. Let's look this horse in the mouth, shall we?

    Oof, it's not pretty. The Mambo HR has no buttons or touch functionality,… »

  • GUIDE: A DIY dynamic DNS server for Linux with BIND

    18 April 2017 (updated 30 January 2018) | guide linux dns bind nsupdate | Comment

    With last month seeing a 100% increase in the number of computers I own, I found it useful to be able to determine the IP address of my various devices, with a lightweight Linux-compatible solution. My initial solution was to use Syncthing and interface with… »

  • Fix: Allow Kodi to power down and reboot Raspbian

    23 December 2016 | linux raspberry pi kodi xbmc systemd policykit | Comment

    The default settings for Raspbian seem to prevent Kodi from accessing the power-related functions it requires to shut down or reboot the system, causing its power menu to display only the ‘Exit’ option. This is particularly frustrating, as the default setup of Kodi is generally… »

  • Guide: Launching EmulationStation/RetroPie from within Kodi on Raspbian (The XBone, part 2)

    22 December 2016 | guide linux raspberry pi kodi xbmc retropie emulationstation retroarch xbone | Comment

    So you've got your Raspberry Pi to display a glorious ‘XBone’ splash screen, but what kind of bone would it be if it couldn't play games? Kodi looks kind of like a console UI, and with RetroPie, we can launch games, but how… »

  • Guide: A custom splash screen on the Raspberry Pi, for Raspbian Jessie (The XBone, part 1)

    21 December 2016 (updated 22 December 2016) | guide linux raspberry pi xbone | Comment

    There are many guides on the internet for creating a custom splash screen on Linux, but most for Raspbian are based on SysV init, and don't interface well with systemd, which is now used by Raspbian. Those that do support systemd make use of Plymouth… »

  • Decentralised open-source self-hosted encrypted cloud services

    01 October 2016 | linux cloud | Comment

    A number of years ago, after reflecting on how dependent I was on Google's cloud services, I began to migrate to open-source self-hosted solutions, primarily through ownCloud. After a recent server outage left me without service for a substantial period, however, I began the search… »

  • FIX: Systemd services fail with code 228/SECCOMP

    25 September 2016 | linux | Comment

    Symptoms

    Services like systemd-journald and systemd-logind show a failed state with error code 228/SECCOMP, and return an error message when attempted to be started using systemctl. This also caused journald logs to not be created or updated for any services.

    Problem

    The problem on my… »

  • FIX: Steam crashes when using radeon driver

    12 June 2014 | ati arch linux defense of the ancients error amd guide linux steam gaming dota | Comment

    Symptoms

    Steam crashes upon opening, after verifying the installation and before opening the main interface, with something about the OpenGL context not supporting direct rendering. Soon afterwards, the X server crashes. (I'm not crashing my computer again just to find the exact error message, thank… »
  • Evil Bash Scripts: Sudo Impersonator

    01 May 2014 | misc linux | Comment
    [runassudo@NEXUS tmp]$ cat awesomeprogram
    #!/bin/bash
    if [[ $EUID -ne 0 ]]; then
    echo "This script must be run as root"
    else
    echo "Sorry, try again."
    echo -n "[sudo] password for $SUDO_USER: "
    read -s tmp
    echo ""
    echo "PASSWORD IS $tmp"
    # Do evil things
    … »
  • FIX: LoL errors on (PlayOn) Linux

    31 March 2014 | error guide linux league of legends lol wine gaming | Comment

    Problem

    ‘The game has crashed. Please try to reconnect.’ immediately after champion select.

    Solution

    Open /etc/hosts on the host computer in the text editor of your choice.
    On the line that resembles:
    127.0.0.1   localhost.localdomain   localhost
    add the name of your computer (found in /etc/hostname). For example:… »
  • Adventures in Arch: Part 3 - What the GNOME?

    31 January 2014 | arch linux windows linux gnome screensaver topicons evolution system tray | Comment

    A Choice

    In my previous Adventures in Arch post, I mentioned that I was using XFCE. Because XFCE is cool. However, XFCE got its fame for being a ‘lightweight’ distro, and I had originally chosen it to reduce my CPU load. After noticing, however,… »
  • GUIDE: Easier League of Legends Installation Using PlayOnLinux

    06 January 2014 | arch linux guide linux league of legends lol gaming | Comment

    Preamble

    PlayOnLinux is a brilliant wrapper for WINE, allowing for the easy installation of innumerable Windows programs on Linux. Of these, my most recent install was League of Legends, which, of course, does not have a native Linux release. PlayOnLinux installs and runs it… »
  • Adventures in Arch: Part 2 - Is It Working Yet?

    03 January 2014 | misc arch linux error rant intel amd guide linux hybrid graphics | Comment

    Let's Get Some Hybrid Graphics Up In Here!

    if [ ! -f /etc/X11/xorg.conf ]; then
    sudo cp /etc/X11/xorg.conf.fglrx /etc/X11/xorg.conf
    fi
    startx /usr/bin/openbox-session -- :1
    How simple was that? And my script for starting X on my integrated card is about the same (only using XFCE,… »
  • Adventures in Arch: Part 1 - Goodbyee Ubuntu!

    29 November 2013 | ati arch linux intel amd linux hybrid graphics video | Comment

    Introduction

    Well, this is it… This is the moment every Linux user dreads: It's time… to install Arch Linux.

    Why am I doing this? How has the moment come so soon?? I thought I had more time!! Well in a nutshell, it's because (as my… »
  • GUIDE: Exporting Encrypted bitcoin-qt Wallets into MultiBit

    24 November 2013 | bitcoin windows guide linux btc java mac | Comment

    Introduction

    Bitcoin is awesome. Unfortunately, migrating between Bitcoin clients is not. It's especially annoying when the recommended method of exporting with pywallet, importing into BlockChain.info, exporting as an aes.json and importing into MultiBit is 1) incredibly confusing and 2) doesn't actually work.
    So, here… »
  • Hand-Crafting a Linux Computer Virus… in Java!

    10 November 2013 | linux java | Comment

    It's a computer virus… for Linux… in Java. That's right, I've broken the Internet.

    (app.exec is a shell script, hello.exec and hello2.exec are compiled C programs)

    Disclaimer

    There won't be any code in this post, nor will there be detailed plans for how to implement… »
  • GUIDE: Dota 2 Dedicated Server on Linux (from Scratch)

    10 October 2013 | defense of the ancients guide linux steam wine gaming dota | Comment
    Note: it is now possible to run a Dota 2 dedicated server on Linux without WINE. This article is kept purely for archival purposes, though it should still work.

    It is entirely possible to, using the Windows Alien Swarm SRCDS and WINE, run a Dedicated… »
  • GUIDE: Directly Executable JAR File

    18 August 2013 | guide linux java | Comment

    Java is great, but having to type java -jar program.jar gets annoying. Why can't you run it like any other program, with ./program.jar? Well, you can, and it's incredibly simple!

    echo '#!/usr/bin/java -jar' | cat - Program.jar>Program
    chmod +x Program

    Tada! That's it! Program.jar… »

  • Non-linear video editing with FFmpeg

    21 July 2013 | audio video editing youtube linux ffeditor video mac | Comment

    ... like AviSynth, but less shit, and more Linux support.

    I call it...
    FFeditor
    (that's not a trademark violation or anything, is it?)

    More information when I've finished squashing bugs and making it usable.
  • GUIDE: Restoring Windows Vista/7 backup files under Linux

    18 July 2013 | backup windows guide linux | Comment

    If you've recently upgraded from Windows to Linux but now need to restore the backup files you made with Windows Backup (or need to restore someone else's), you've come to the right place!

    The Windows Backup Format

    Unlike the Windows NT BKF backup format, the… »
  • GUIDE: Downloading MMS/RTSP/HTTP/etc streams with VLC

    15 July 2013 | youtube windows guide linux stream video mac | Comment

    We all know that if you use YouTube, you can download the video from Keepvid or something. But what if your content provider uses some crazy streaming system? For example, one website (which shall remain nameless) that I use uses MMS to serve videos.

    Disclaimer

    … »
  • GUIDE: Kdenlive on Windows, Properly!

    13 June 2013 | cygwin video editing windows guide kdenlive linux kde | Comment

    Introduction

    So, you want to install and use Kdenlive on M$ Windows, but don't want to do all that crazy Live-CD sh*t (probably because that's not technically doing it in Windows)?

    Well, you've come to the right place (website, whatever)!

    This guide will show you… »
  • GUIDE: ‘Stereo Mix’ without PulseAudio

    20 April 2013 | audio guide linux | Comment
    [Cut to the chase]

    Introduction

    So I recently upgraded (yes, upgraded) from Windows to Linux a while ago, right, and now I want to record my gaming the way DXtory let me (except for free, of course).

    So a quick bit of Googling revealed that… »
  • Home
  • Git (Archives: GitLab, GitHub)
  • Research
  • Quick Links
  • Posts
    • February 2023 (1)
    • December 2022 (4)
    • October 2022 (4)
    • September 2022 (5)
    • August 2022 (2)
    • More…
  • Tags
    • linux (30)
    • misc (21)
    • opentally (20)
    • copyright (19)
    • medicine (19)
    • single transferable vote (19)
    • drm (18)
    • monash (11)
    • encryption (10)
    • mathematics (9)
    • proportional representation (8)
    • statistics (8)
    • law (7)
    • meeting procedure (7)
    • victoria (7)
    • defective by design (6)
    • digital rights management (6)
    • ptv (6)
    • public transport (6)
    • creative commons (4)
    • ledger (4)
    • plain-text accounting (4)
    • rust (4)
    • webassembly (4)
    • politics (3)
    • python (3)
    • asexuality (2)
    • gsrm (2)
    • tax (2)
    • victorian electoral commission (2)
    • android (2)
    • security (15)
    • cryptography (10)
    • programming (8)
    • bookkeeping (4)
    • television (2)
    • review (8)
    • med in review (11)
    • obfuscation (9)
    • music (9)
    • parliamentary procedure (7)
    • video editing (3)
    • reverse engineering (16)
    • voting systems (8)
    • elections (12)
    • ebook (16)
    • guide (33)
  • Pages
    • Financial statements
    • Musical arrangements
    • Random draws
  • Lee Yingtong Li
  • blog@yingtongli.me
  • My CV · CV of Failures
@RunasSudo

Most material on this website is available under an open licence. See https://yingtongli.me/blog/copyright.html for details.