- Clone the github repository onto your local machine.
$ git clone https://github.com/torvalds/linux.git
$ cd linux
- Configure the build
$ echo global > /sys/kernel/debug/tracing/trace_clock
$ echo 'p:kprobes/tcp_reset tcp_reset port=+12(%di):u16 dst=+0(%di):u32 state=+18(%di):u8' >> /sys/kernel/debug/tracing/kprobe_events
$ echo 1 > /sys/kernel/debug/tracing/events/kprobes/tcp_reset/enable
$ echo 'p:kprobes/tcp_retransmit tcp_retransmit_skb port=+12(%di):u16 dst=+0(%di):u32 state=+18(%di):u8' >> /sys/kernel/debug/tracing/kprobe_events
$ echo 1 > /sys/kernel/debug/tracing/events/kprobes/tcp_retransmit/enable| # this needs to be on the *remote* machine. | |
| if [ ! -z "$SSH_CLIENT" ] | |
| then | |
| function code() { | |
| local ssh_client_host=$(echo $SSH_CLIENT | cut -d ' ' -f1) | |
| if [ -z "$1" ] | |
| then | |
| local argpath="." |
| # NetworkManager connection config does not like custom ports for DNS servers | |
| # we work around this by using a dispatcher to configure this on up events | |
| # change these to your desired configs | |
| CONNECTION_ID=wg0 | |
| DNS_TARGET=10.10.0.1:5300 | |
| DNS_SEARCH_DOMAIN=~testing | |
| cat > /etc/NetworkManager/dispatcher.d/99-${CONNECTION_ID}.sh <<EOF | |
| #!/usr/bin/env bash |
| #!/bin/sh | |
| # | |
| # This startup script initializes a Shadowsocks server in Debian 11. | |
| # It's compatible with DigitalOcean, Linode and Vultr. | |
| # | |
| # Author: @lexrus https://github.com/lexrus | |
| # | |
| # Get $100 free credit for VPS with my referral links: | |
| # DigitalOcean: https://m.do.co/c/3eb5cf371fc9 | |
| # Linode: https://www.linode.com/lp/refer/?r=9f144941e797d495a10c2841c3137ce1acde5f15 |
| [ | |
| { | |
| "bindings": { | |
| // Built-in | |
| "ctrl-g": "menu::Cancel", | |
| "ctrl-x 5 2": "workspace::NewWindow", | |
| "ctrl-x ctrl-c": "zed::Quit", | |
| "ctrl-x ctrl-f": "workspace::Open", | |
| "ctrl-x k": "pane::CloseActiveItem", | |
| "ctrl-x o": "workspace::ActivateNextPane", |