Skip to content

Instantly share code, notes, and snippets.

@swap2ag
swap2ag / install_cross_compiler.sh
Created June 11, 2022 20:15
Compile the cross-compiler for i386-elf
#!/bin/bash
echo "Go to https://wiki.osdev.org/Cross-Compiler_Successful_Builds to view the successful versions of gcc and binutils that worked"
sudo apt update
sudo apt install build-essential
sudo apt install libgmp3-dev libmpfr-dev libmpc-dev gcc
export PREFIX="/home/$USER/i386elfgcc"
export TARGET=i386-elf
export PATH="$PREFIX/bin:$PATH"
@jnovack
jnovack / README.md
Last active April 3, 2024 03:24
Opening up mosh in firewalld using firewall-cmd

Mosh (mobile shell) is a gift from the Gods(tm). Anyone with spotty internet or wireless connection has suffered the pain of a lost SSH session. Sure, one can fire up screen (or tmux as the kids are using these days), but that's an extra step and you are still using the SSH protocol.

I'm not here to tout the benefits of Mosh, you came here to open it up in your firewall.

  1. Create the following file as /etc/firewalld/services/mosh.xml
  2. firewall-cmd --add-service=mosh --permanent
  3. firewall-cmd --reload

If you tend to have a lot of sessions (not recommended), you can increase the ports, but the default should be fine for most applications.