User contributions for Alex
From AcrodusWiki
29 May 2025
- 09:2009:20, 29 May 2025 diff hist −4 Clean uninstall of WSL No edit summary current
- 09:2009:20, 29 May 2025 diff hist +1 Clean uninstall of WSL No edit summary
- 09:2009:20, 29 May 2025 diff hist −2 Clean uninstall of WSL No edit summary
- 09:1909:19, 29 May 2025 diff hist +647 N Clean uninstall of WSL 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..."
22 April 2025
- 12:1412:14, 22 April 2025 diff hist +9,875 N Apache2 config to allow directory access 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..." current
2 April 2025
- 21:2921:29, 2 April 2025 diff hist −19 Setting the capabilities to sniff on an interface with libpcap No edit summary current
- 21:2921:29, 2 April 2025 diff hist +786 N Setting the capabilities to sniff on an interface with libpcap 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..."
27 March 2025
- 15:1615:16, 27 March 2025 diff hist +178 N Tacacs+ verification tool 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" current
23 March 2025
- 13:2713:27, 23 March 2025 diff hist +78 N Debian CD local repositry package list Created page with "Go to this webpage to lookup. <pre> https://cdimage-search.debian.org/ </pre>" current
6 March 2025
- 09:2409:24, 6 March 2025 diff hist +242 N Add .iso file as a apt repositry 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>" current
2 March 2025
- 17:0517:05, 2 March 2025 diff hist +83 Setting up TFTP server on Linux machine →Configuration current
- 11:5211:52, 2 March 2025 diff hist +96 N Certificate explanation Created page with "This image from IBM was good for explaining certificates. Media:certifcate_explanation.png" current
- 11:5011:50, 2 March 2025 diff hist 0 N File:Certifcate explanation.png No edit summary current
5 February 2025
- 20:0620:06, 5 February 2025 diff hist +827 N GTK basic setup with timer in main thread 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);..." current
4 February 2025
- 22:4922:49, 4 February 2025 diff hist +97 N Make glade outut gtk4 compatible Created page with "Run this command future Alex. <pre> gtk4-builder-tool simplify --3to4 --replace ./main.ui </pre>" current
- 20:1220:12, 4 February 2025 diff hist +487 N Compile static library with Makefile 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..." current
2 February 2025
- 14:3414:34, 2 February 2025 diff hist +602 N Install latest kernel with Debian backports 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..." current
20 January 2025
- 06:4506:45, 20 January 2025 diff hist +301 N Initialize a 2d array in python 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." current
18 January 2025
- 21:1721:17, 18 January 2025 diff hist +441 N Nftables dnat config 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; } }" current
2 January 2025
- 17:5417:54, 2 January 2025 diff hist +37 N IPv6 address range Created page with "My /48 IPv6 range 2001:8b0:1ff5::/48" current
- 17:5217:52, 2 January 2025 diff hist +15 N Linux systemd-networkd ipv6 example Created page with "To create later" current
29 December 2024
- 17:2317:23, 29 December 2024 diff hist +291 N Unable to connect to kvm host with virt-manager 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" current
20 December 2024
- 16:0616:06, 20 December 2024 diff hist +13 N Default IP address of EAP245 access points Created page with "192.168.0.254" current
16 December 2024
- 15:0415:04, 16 December 2024 diff hist +769 N Asbru not installing on debian 12 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..." current
11 December 2024
- 21:2721:27, 11 December 2024 diff hist +80 N Link for avr-libc information Created page with "https://www.nongnu.org/avr-libc/user-manual/group__avr__sfr.html Its brilliant!" current
- 20:2520:25, 11 December 2024 diff hist +182 N Change between tab and space in live vim 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>" current
3 December 2024
- 23:0723:07, 3 December 2024 diff hist +192 Linux machine has booted into grub prompt No edit summary current
- 22:5422:54, 3 December 2024 diff hist +828 N Linux machine has booted into grub prompt 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:0609:06, 3 December 2024 diff hist +169 N Use the bash export command 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>" current
- 09:0309:03, 3 December 2024 diff hist +803 N Using pkg-config as compiler and linker flags 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..." current
- 08:4808:48, 3 December 2024 diff hist +102 N Use find command linux to find file Created page with "Quick example if im being an idiot with the man pages. <pre> sudo find -type f -name "gtk4.pc" </pre>" current
30 November 2024
- 16:2216:22, 30 November 2024 diff hist +300 N 'No route to host' when attempting to mount cifs drive Created page with "This error is produced when you attempt to mount from the command line however to do not have the keyutils and cifs-utils packages installed. <pre> mount: /media/alex/smb: mount(2) system call failed: No route to host. dmesg(1) may have more information after failed mount system call. </pre>" current
29 November 2024
- 22:3822:38, 29 November 2024 diff hist +185 Create KVM guest with .iso installer attached as cdrom fro package repositry No edit summary current
- 17:1117:11, 29 November 2024 diff hist +576 N Configure KVM guest to have .iso mounted as a cdrom Created page with "This was a pain in the arse. So ensure that the xml file for the host includes the following. <pre> <disk type=’file’ device=’cdrom’> <driver name=’qemu’ type=’raw' cache=’none’/> <source file=’/var/lib/libvirt/images/my-cdrom.iso’/> <target dev=’sda’ bus=’sata’/> <readonly/> <address type=’drive’ controller=’0' bus=’0' target=’0' unit=’0'/> </disk> </pre> and then run the command from the host to mount <pre> sudo virsh attac..." current
- 15:5915:59, 29 November 2024 diff hist +208 N Create KVM guest with .iso installer attached as cdrom fro package repositry Created page with "When installing via the terminal with virt-install ensure that the disk option has the --type=cdrom added to it. <pre> --disk /home/alex/jigdo/debian-12.5.0-amd64-STICK16GB-1.iso,device=cdrom </pre>"
- 15:2915:29, 29 November 2024 diff hist +109 N Error opening .iso when using virt-install to create new kvm guest Created page with "Edit the /etc/libvirt/qemu.conf to include the following two lines <pre> user = "root" group = "root" </pre>" current
- 14:3614:36, 29 November 2024 diff hist +49 N Add user to sudo group command Linux machine Created page with "<pre> sudo usermod -aG sudo [name-of-user] </pre>" current
28 November 2024
- 09:4509:45, 28 November 2024 diff hist +484 N Compress directory into tarball on Linux machine Created page with "This is the command, and more importantly the options for compressing a directory or folder into a tarball on linux. <pre> tar -czvf filename.tar.gz /path/to/directory </pre> Ensure that you create the tarball with touch first. Also to unzip use the command and options. <pre> tar -xvf /path/to/tarball </pre> -x : extract -v : give more info -f : filename you can also use the -C to specify output directory <pre> tar -xvf /path/to/tarball.tar/.gz -C /path/to/directo..." current
27 November 2024
- 09:3409:34, 27 November 2024 diff hist +387 N Mount local debian iso as cdrom repositry Created page with "Command to mount the .iso as a cdrom <pre> sudo mount -o loop /path/to/.iso /media/cdrom </pre> Must add the repository using the apt-cdrom add command, should look similar to the below in sources.list <pre> deb [trusted=yes] cdrom:[Debian GNU/Linux 12.5.0 _Bookworm_ = Official amd64 STICK16GB Binary-1 with frimaware 20240210=11:28]/ bookworm contrib main non-free-firmwasre </pre>" current
25 November 2024
- 22:2422:24, 25 November 2024 diff hist +313 N Configure DNAT on Linux machine with iptables - current
- 21:1921:19, 25 November 2024 diff hist +131 N Set LXC container to autostart Created page with "Find the config file for the container. This will be in /var/lib/lxc/{container_name}/config And add the line: lxc.start.auto =1" current
23 November 2024
- 15:2415:24, 23 November 2024 diff hist −2 Use systemd to mount CIFS drive No edit summary current
- 15:2415:24, 23 November 2024 diff hist +178 Use systemd to mount CIFS drive No edit summary
- 10:5810:58, 23 November 2024 diff hist +39 Mount samba file share on linux machine No edit summary current
22 November 2024
- 14:5514:55, 22 November 2024 diff hist +148 N Create LXC container from debian image Created page with "Use the below command to create a new container from a debian image. <pre> sudo lxc-create -n webserver --template download -- --dist debian </pre>" current
- 14:3914:39, 22 November 2024 diff hist +141 N Change user default shell on Linux machine Created page with "Enter the following command to change user shell. The example changes the user alex to use bash. <pre> usermod --shell /bin/bash alex </pre>" current
- 11:4211:42, 22 November 2024 diff hist +12 Debian online package repositry No edit summary current
21 November 2024
- 09:5909:59, 21 November 2024 diff hist +306 N How to show namespaces of different running processes on Linux machine Created page with "This command shows the associated namespaces with deifferent processes running on the machine. <pre> sudo lsns </pre> Run man lsns for more information Also, to show detailed infromation of network interface namespaces run the command <pre> sudo ip netns </pre> Run man ip netns for more information." current
- 08:2308:23, 21 November 2024 diff hist +461 N Use systemd to mount CIFS drive Created page with "This two examples of unit files that enable a systemd service to mount a cifs drive. <pre> [Unit] Description=cifs mount script Requires=network-online.target After=network-online.service [Mount] What=//10.68.64.19/Reports/NMS Where=/mnt/nas Options=domain=ewr,username=nms,password=Atkins123! Type=cifs [Install] WantedBy=multi-user.target </pre> <pre> [Unit] Description=Automount NAS [Automount] Where=/mnt/nas [Install] 23WantedBy=multi-user.target </pre>"
18 November 2024
- 21:2821:28, 18 November 2024 diff hist 0 Enable KVM guest console through virsh No edit summary current