Skip to content

Instantly share code, notes, and snippets.

@Juul
Juul / xiaomi_mi_wifi_r4gv2_router_notes.md
Last active April 19, 2021 07:06
xiaomi mi wifi r4gv3 router notes

Xiaomi Mi WiFi R3Gv2

Also known as "R4A Gigabit". On the back it just says "R4A" but plugging into ethernet can verify that it's the gigabit edition.

Click through initial setup wizard in chinese accepting defaults. When asked for a wifi password know that this will also be the admin password. If connected through wifi you will be disconnected at the end of the wizard since the wifi now has a password. Reconnect and go to the web admin again. Type in the wifi pass in the text box and once you're logged in the stok will be in the address bar.

The latest OpenWRTInvasion repo has both stock firmware and working openwrt images. The stock firmware version from the repo miwifi_r4a_firmware_72d65_2.28.62.bin works fine.

Don't use the latest version of OpenWRTInvasion. It does not seem to work. Instead use the v0.0.1 version.

@Juul
Juul / gist:ff04f5d5c0a2e77682965f0a531fbb88
Created March 2, 2021 14:49
notes_on_winxp_vm_with_iommu
git pull <papazoga repo>
cd qemu/
git checkout ni-mite
git add remote upstream https://github.com/qemu/qemu
git fetch origin upstream (?)
@Juul
Juul / simple_gateway
Last active June 9, 2022 04:01
How to quickly configure your box as a gateway granting devices connected on ethernet access to wifi network
First ensure your ethernet isn't managed by network-manager by adding the following to `/etc/NetworkManager/NetworkManager.conf`:
```
[keyfile]
unmanaged-devices=mac:00:11:22:33:44
```
Replacing the MAC address with that of your ethernet device.
Then run:
@Juul
Juul / openwrt_enable_ssh_on_wan.md
Last active October 9, 2024 14:53
OpenWRT enable SSH on WAN port

To /etc/config/firewall add:

config rule                                     
        option name             Allow-SSH-WAN   
        option src              wan             
        option proto            tcp             
        option dest_port        22              
 option target ACCEPT 
@Juul
Juul / sudomesh_wireguard.md
Last active March 15, 2021 09:29
sudomesh wireguard guide - work in progress

Install wireguard

To install wireguard do:

opkg update
opkg install kmod-wireguard wireguard-tools
@Juul
Juul / boot_log
Created March 26, 2021 11:30
boot log
OpenRC 0.42.1.788529e388 is starting up Linux 5.8.0-kindle4+nt-12013-g4ccf5377d7ae-dirty (armv7l)
* /proc is already mounted
* Mounting /run ... * /run/openrc: creating directory
* /run/lock: creating directory
* /run/lock: correcting owner
* Caching service dependencies ... [ ok ]
* Clock skew detected with `(null)'
* Adjusting mtime of `/run/openrc/deptree' to Fri Mar 26 07:58:52 2021
@Juul
Juul / install_mfc-j480dw.md
Last active April 9, 2021 04:24
Install Brother MFC-J480DW on Ubuntu

Download the two .deb packages from Brother's website:

  • mfcj480dwlpr-1.0.0-0.i386.deb
  • mfcj480dwcupswrapper-1.0.0-0.i386.deb

Install them both at the same time: sudo apt install mfcj*.deb

Add a new printer using the GUI and enter the IPP URI manually like: ipp://<ip>:631/ipp

In the Printer Settings -> Printer Options change Media Size to Letter (unless you're using A4 of course).

@Juul
Juul / gpib_linux_82350.md
Last active November 1, 2024 15:47
Guide for setting up GPIB support in Linux for the HP/Agilent 82350 A and B PCI cards

This is a guide for getting the HP/Agilent 82350 A or B GPIB cards working on Linux.

There are other guides made by other people for a couple of other GPIB adapters here:

Unfortunately the mainline Linux kernel does not have any GPIB support. Even more unfortunate is that neither Ubuntu nor Debian appear to have packages for the kernel modules nor do any third-party apt repos appear to exist that are remotely up to date.

@Juul
Juul / xiaomi_redmi_ac2100_router_notes.md
Created April 19, 2021 07:20
xiaomi redmi ac2100 router rnotes

Attach router's WAN port to internet (or at least a DHCP server).

Connect to router's wifi (it has no password per default) then go to http://192.168.31.1/ and click through the setup wizard.

When it asks for a password just give it something easy to remember.

Once the setup wizard is done, connect your computer to one of the routers WAN ports and again go to http://192.168.31.1/ and enter the password you set to log in.

I recommend flashing the version 2.0.23 firmware before going any further. I know the exploit works on some newer firmwares but I also know it doesn't work on some 1.x firmwares. Search the web for the filename firmware miwifi_rm2100_all_fb720_2.0.23.bin to find the correct firmware.

@Juul
Juul / openwrt_dsa_vlan_config.md
Created April 20, 2021 14:03
Overview of VLAN config on OpenWRT using DSA

This a quick guide to configuring tagged VLAN using DSA on OpenWRT routers with a switch and only a single physical ethernet port.

This was tested on a Xiaomi Redmi AC2100 (MT7621 chipset) running OpenWRT Snapshot from April 19th 2021.

Here's how you make an interface lan3.2 which will send tagged packets on lan port 3. This assumes the lan port 3 interface is called lan3.

config interface 'pub'
        option ifname 'lan3.2'