New pages
From AcrodusWiki
- 09:19, 29 May 2025 Clean uninstall of WSL (hist | edit) [642 bytes] Alex (talk | contribs) (Created page with "Got this from a blog somewhere. It worked to uninstall WSL when it was being a bitch. In powershell (as admin) # list all installed distros wsl -l -v # destroy distros wsl --unregister Ubuntu wsl --unregister Debian # and so on In Settings > Apps > Apps & Features search for Ubuntu (then Debian, etc), and if something is found, click on uninstall search for Linux, and if something is found, click on uninstall on all results In Start Menu > Turn Windows Features o...")
- 12:14, 22 April 2025 Apache2 config to allow directory access (hist | edit) [9,875 bytes] Alex (talk | contribs) (Created page with "Hello Alex, this is going to save you approximatley 2 hours of your life. Example apache2.conf <pre> # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See http://httpd.apache.org/docs/2.4/ for detailed information about # the directives and /usr/share/doc/apache2/README.Debian about Debian specific # hints. # # # Summary of how the Apache 2 configuration works in Debian: # The Apache...")
- 21:29, 2 April 2025 Setting the capabilities to sniff on an interface with libpcap (hist | edit) [767 bytes] Alex (talk | contribs) (Created page with "So i did this in rust, however is the case for any language. This allows you to run a program as a non root user but have access to the interface for sniffing. This command sets the capabilities of the executable. It must have both cap_net_admin and cap_net_raw. <pre> sudo setcap cap_net_raw,cap_net_admin=+ep target/debug/rp2009_sniffer </pre> The code then also needs to set it? <pre> 11 caps::raise(None, caps::CapSet::Inheritable, caps::Capability::CAP_NET_A...")
- 15:16, 27 March 2025 Tacacs+ verification tool (hist | edit) [178 bytes] Alex (talk | contribs) (Created page with "Python tool that can be used to verify a tacacs server is operating. pip install tacacs_plus tacacs_client -v -u test_administrator -H 192.168.69.9 -k "Atkins123!" authenticate")
- 13:27, 23 March 2025 Debian CD local repositry package list (hist | edit) [78 bytes] Alex (talk | contribs) (Created page with "Go to this webpage to lookup. <pre> https://cdimage-search.debian.org/ </pre>")
- 09:24, 6 March 2025 Add .iso file as a apt repositry (hist | edit) [242 bytes] Alex (talk | contribs) (Created page with "Slightly different to other methods. This still requires you to mount the .iso file on the system. The following line (or equivalent) then requires adding to the sources.list file. <pre> deb file:/mnt/debian-iso/ bookworm main contrib </pre>")
- 11:52, 2 March 2025 Certificate explanation (hist | edit) [96 bytes] Alex (talk | contribs) (Created page with "This image from IBM was good for explaining certificates. Media:certifcate_explanation.png")
- 20:06, 5 February 2025 GTK basic setup with timer in main thread (hist | edit) [827 bytes] Alex (talk | contribs) (Created page with "Hello future Alex, This is extract of your GTK rail control system application. Past Alex has added this as refer rence on how to setup with GTK4. This also attaches a timer in the main thread. Not everything is in the below extract, however should jog your memory on the function calls to use. <pre> int main(int argc, char **argv){ gtk_init(); gboolean done = FALSE; GMainLoop *loop =NULL; loop = g_main_loop_new(NULL, FALSE);...")
- 22:49, 4 February 2025 Make glade outut gtk4 compatible (hist | edit) [97 bytes] Alex (talk | contribs) (Created page with "Run this command future Alex. <pre> gtk4-builder-tool simplify --3to4 --replace ./main.ui </pre>")
- 20:12, 4 February 2025 Compile static library with Makefile (hist | edit) [487 bytes] Alex (talk | contribs) (Created page with "Makefile example for compiling static library with dependencies in C. <pre> # Library: libgenisys # File: Makefile # Author: Alexander Brown # # NO LICENSE # BINDIR = bin/ OBJDIR = obj/ INCDIR = include/ SRCDIR = src/ CC = gcc RM = /bin/rm -f SOURCE = grail.c OBJECT = grail.o all: ${CC} `pkg-config --cflags cairo pangocairo` -o ${OBJDIR}${OBJECT} -c ${SRCDIR}${SOURCE} `pkg-config --libs cairo pangocairo` clean: ${RM} ${BINDIR}* ${RM} ${OBJ...")
- 14:34, 2 February 2025 Install latest kernel with Debian backports (hist | edit) [602 bytes] Alex (talk | contribs) (Created page with "This installs a more recent kernel that is part of the next release of Debian onto the 'Stable' Debian release currently running on the machine. First step is to add backport repo to sources.list or into sources.list.d <pre> deb http://deb.debian.org/debian bookworm-backports main </pre> Then run the command, -t specifies the version to take the package from. <pre> sudo apt install -t bookworm-backports linux-image-amd64 linux-headers-amd64 </pre> This also can be...")
- 06:45, 20 January 2025 Initialize a 2d array in python (hist | edit) [301 bytes] Alex (talk | contribs) (Created page with "To save future Alex issue with this again, just initialise the array like this <pre> cables_type_arr = [[''] for i in range(int_inc)] </pre> And then append each element array like so <pre> cables_type_arr[i].append(record['Type']) </pre> This example was taken from the cable route analysis tool.")
- 21:17, 18 January 2025 Nftables dnat config (hist | edit) [441 bytes] Alex (talk | contribs) (Created page with "Example nftables dnat config. This took a while to set up at first, make sure there is config for packets going in the reverse direction ie. masquerade. table ip nat { chain prerouting { type nat hook prerouting priority dstnat; policy accept; tcp dport 2202 dnat to 10.0.3.2 } chain postrouting { type nat hook postrouting priority srcnat; policy accept; } }")
- 17:54, 2 January 2025 IPv6 address range (hist | edit) [37 bytes] Alex (talk | contribs) (Created page with "My /48 IPv6 range 2001:8b0:1ff5::/48")
- 17:52, 2 January 2025 Linux systemd-networkd ipv6 example (hist | edit) [15 bytes] Alex (talk | contribs) (Created page with "To create later")
- 17:23, 29 December 2024 Unable to connect to kvm host with virt-manager (hist | edit) [291 bytes] Alex (talk | contribs) (Created page with "Trying to connect to remote kvm host using virt-manager generated the following error <pre> authentication unavailable: no polkit agent available to authenticate action 'org.libvirt.unix.manage' </pre> This was fixed by adding the non root user to the libvirt group on the kvm host machine")
- 16:06, 20 December 2024 Default IP address of EAP245 access points (hist | edit) [13 bytes] Alex (talk | contribs) (Created page with "192.168.0.254")
- 15:04, 16 December 2024 Asbru not installing on debian 12 (hist | edit) [769 bytes] Alex (talk | contribs) (Created page with "Asbru-cm does not install well on debian 12 following the instructions on the website/github Below is an extract of a reddit post explaining the fix. <pre> I have just put Debian 12 Bookworm on my laptop and am happy so far. The only issue I had was I could not install Asbru-cm which I use daily for connecting to 10-12 different servers. Following the Devs instructions for installing doesn't actually work. Everything works until you type "sudo apt install asbru-cm" a...")
- 21:27, 11 December 2024 Link for avr-libc information (hist | edit) [80 bytes] Alex (talk | contribs) (Created page with "https://www.nongnu.org/avr-libc/user-manual/group__avr__sfr.html Its brilliant!")
- 20:25, 11 December 2024 Change between tab and space in live vim (hist | edit) [182 bytes] Alex (talk | contribs) (Created page with "Whilst in vim can change the settings for the current vim session. If default in .vimrc is set tabstop=2 expandtab, use below to change to actual tab. <pre> :set noexpandtab </pre>")
- 22:54, 3 December 2024 Linux machine has booted into grub prompt (hist | edit) [1,020 bytes] Alex (talk | contribs) (Created page with "This occurred when installing ARCH for the first time. On boot, i was presented with the grub shell. If prompted with grub> then this means grub loaded normally. If prompted with grub rescue> this is worse, and at the time of writing this i have not been in this situation. In my situation a separate boot partition was present, with the rootfs and swap on lvm logical volumes. There was a kernel image and initrd.img present on the /boot. The ls command showed me my two p...")
- 09:06, 3 December 2024 Use the bash export command (hist | edit) [169 bytes] Alex (talk | contribs) (Created page with "The export command shows all shell environment variables. To show environment variables for just the current shell process use the command below: <pre> export -p </pre>")
- 09:03, 3 December 2024 Using pkg-config as compiler and linker flags (hist | edit) [803 bytes] Alex (talk | contribs) (Created page with "Came across pkg-config files for the first time when using gtk4. The below extract is the makefile for that hello world test. <pre> CFLAGS = -Wall -g `pkg-config --cflags gtk4` LDFLAGS = `pkg-config --libs gtk4` all: gtk_test.c gcc -o gtk_test gtk_test.c $(CFLAGS) $(LDFLAGS) clean: rm -f *~ rm -f *.o rm -f gtk_test </pre> Main thing here is the addition of the compiler and linker flags at the top. These use the shell environment variab...")
- 08:48, 3 December 2024 Use find command linux to find file (hist | edit) [102 bytes] Alex (talk | contribs) (Created page with "Quick example if im being an idiot with the man pages. <pre> sudo find -type f -name "gtk4.pc" </pre>")