All public logs

From AcrodusWiki

Combined display of all available logs of AcrodusWiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).

Logs
(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)
  • 09:19, 29 May 2025 Alex talk contribs created page 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...")
  • 12:14, 22 April 2025 Alex talk contribs created page 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...")
  • 21:29, 2 April 2025 Alex talk contribs created page 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...")
  • 15:16, 27 March 2025 Alex talk contribs created page 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")
  • 13:27, 23 March 2025 Alex talk contribs created page Debian CD local repositry package list (Created page with "Go to this webpage to lookup. <pre> https://cdimage-search.debian.org/ </pre>")
  • 09:24, 6 March 2025 Alex talk contribs created page 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>")
  • 11:52, 2 March 2025 Alex talk contribs created page Certificate explanation (Created page with "This image from IBM was good for explaining certificates. Media:certifcate_explanation.png")
  • 11:50, 2 March 2025 Alex talk contribs created page File:Certifcate explanation.png
  • 11:50, 2 March 2025 Alex talk contribs uploaded File:Certifcate explanation.png
  • 20:06, 5 February 2025 Alex talk contribs created page 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);...")
  • 22:49, 4 February 2025 Alex talk contribs created page Make glade outut gtk4 compatible (Created page with "Run this command future Alex. <pre> gtk4-builder-tool simplify --3to4 --replace ./main.ui </pre>")
  • 20:12, 4 February 2025 Alex talk contribs created page 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...")
  • 14:34, 2 February 2025 Alex talk contribs created page 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...")
  • 06:45, 20 January 2025 Alex talk contribs created page 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.")
  • 21:17, 18 January 2025 Alex talk contribs created page 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; } }")
  • 17:54, 2 January 2025 Alex talk contribs created page IPv6 address range (Created page with "My /48 IPv6 range 2001:8b0:1ff5::/48")
  • 17:52, 2 January 2025 Alex talk contribs created page Linux systemd-networkd ipv6 example (Created page with "To create later")
  • 17:23, 29 December 2024 Alex talk contribs created page 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")
  • 16:06, 20 December 2024 Alex talk contribs created page Default IP address of EAP245 access points (Created page with "192.168.0.254")
  • 15:04, 16 December 2024 Alex talk contribs created page 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...")
  • 21:27, 11 December 2024 Alex talk contribs created page Link for avr-libc information (Created page with "https://www.nongnu.org/avr-libc/user-manual/group__avr__sfr.html Its brilliant!")
  • 20:25, 11 December 2024 Alex talk contribs created page 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>")
  • 22:54, 3 December 2024 Alex talk contribs created page 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:06, 3 December 2024 Alex talk contribs created page 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>")
  • 09:03, 3 December 2024 Alex talk contribs created page 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...")
  • 08:48, 3 December 2024 Alex talk contribs created page 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>")
  • 16:22, 30 November 2024 Alex talk contribs created page '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>")
  • 17:11, 29 November 2024 Alex talk contribs created page 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...")
  • 15:59, 29 November 2024 Alex talk contribs created page 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:29, 29 November 2024 Alex talk contribs created page 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>")
  • 14:36, 29 November 2024 Alex talk contribs created page Add user to sudo group command Linux machine (Created page with "<pre> sudo usermod -aG sudo [name-of-user] </pre>")
  • 09:45, 28 November 2024 Alex talk contribs created page 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...")
  • 09:34, 27 November 2024 Alex talk contribs created page 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>")
  • 22:24, 25 November 2024 Alex talk contribs created page Configure DNAT on Linux machine with iptables (-)
  • 21:19, 25 November 2024 Alex talk contribs created page 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")
  • 14:55, 22 November 2024 Alex talk contribs created page 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>")
  • 14:39, 22 November 2024 Alex talk contribs created page 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>")
  • 09:59, 21 November 2024 Alex talk contribs created page 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.")
  • 08:23, 21 November 2024 Alex talk contribs created page 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>")
  • 21:27, 18 November 2024 Alex talk contribs created page Enable KVM guest console through virsh (Created page with "Using the virsh console [vm_name] command can be used to get a shell to the vm. This is very handy when there is no virt-manager/desktop environment or no ssh. Although you will need to get a shell up somehow. This assumes that the configuration in the xml is correct with <serial> and <console> sections. sudo systemctl status serial-getty@ttyS0 If this is not active. sudo systemctl enable serial-getty-ttyS0 and sudo systemctl start serial-getty-ttyS0 When creating...")
  • 15:57, 18 November 2024 Alex talk contribs created page Bring up wireguard interface with wg script (Created page with "This is the example script and associated config file for the vpn client. This was connecting to a vpn server hosted on the home network. wg_acrodus_up.sh #!/bin/bash ip l add dev wg0 type wireguard wg setconf wg0 wg_acrodus.conf ip a add 10.0.0.2/32 dev wg0 ip l set dev wg0 up wg set wg0 fwmark 51821 ip -4 rule add not fwmark 51821 table 51821 ip -4 route add 0.0.0.0/0 dev wg0 table 51821 ip -6 rule add not fwmark 51821 table 51821 ip -6 route add ::/0 dev wg0 tab...")
  • 09:54, 8 November 2024 Alex talk contribs created page Mount samba file share on linux machine (Created page with "Use the following commands to mount a samba file share onto a local linux machine sudo mount -t cifs //samba.acrodus.uk/sharing /media/alex/smb -o username=alex Notes- cifs stands for common internet file system and is a protocol that is a subset of smb (server message block). -o option allows to specify parameters for the authentication, this can be a seperate file if required, example below username=target_user_name password=target_user_password domain=domain The...")
  • 21:31, 28 October 2024 Alex talk contribs created page Debian online package repositry (Created page with "Add these to /etc/apt/sources.list to be able to download packages from online repositry. deb http://deb.debian.org/debian/ bookworm main non-free-firmware deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware deb http://security.debian.org/debian-security bookworm-security main non-free-firmware deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware # bookworm-updates, to get updates before a point release is made...")
  • 20:54, 28 October 2024 Alex talk contribs created page Wg-quick actual commands (Created page with "This is a reference to what commands are part of the wg-quick command. This is useful when manually setting up a wireguard vpn. Consideration should be given to the ip rule commands, which effectively determine what routing table packets that are encrypted or not use. $ sudo wg-quick up wg0 [#] ip link add wg0 type wireguard [#] wg setconf wg0 /dev/fd/63 [#] ip -4 address add 10.90.90.2/24 dev wg0 [#] ip link set mtu 1420 up dev wg0 [#] wg set wg0 fwmark 1234 [#] ip -4...")
  • 15:09, 28 October 2024 Alex talk contribs created page Linux Machine create ssh key pair for ssh authentication (Created page with "This is very simple, use the one line command ssh-keygen -t rsa Just ensure you check where it is going to store the file. Follow the guide on copying the public key to an ssh server to set up ssh authentication.")
  • 14:49, 26 October 2024 Alex talk contribs created page Set up VLAN interface on Linux Machine (Created page with "This guide gives you commands to quickly set up a vlan tagged interface one a linux machine. $ sudo ip link add link enp0s3 name enp0s3.100 type vlan id 100 $ sudo ip addr add 192.168.0.200/24 dev enp0s3.100 $ sudo ip link set up enp0s3.100 Ensure that the link is up, in doing so the operating system will add the route into the routing table. This however can be confirmed with the ip r command.")
  • 18:04, 18 October 2024 Alex talk contribs created page Set up Linux machine as dhcp server (Created page with "This is a quick note on how to setup a linux machine to be a dhcp server. This is likely to be on the same machine configured as the router but does not have to be. The package to install in dhcp-isc-server. Configuration can be found in /etc/dhcp/dhcpd.conf Example below configured on home network however default examples are commented out in the conf file. subnet 192.168.40.0 netmask 255.255.255.0 { option routers 192.168.40.1; option subnet-mask 255.255.255.0;...")
  • 07:32, 18 October 2024 Alex talk contribs created page Terminal based web browser (Created page with "A few options for terminal based web browser. Links2, Lynx, w3m, browsh. Links2 was the preferred for no desktop environment terminal. sudo apt install links2")
  • 07:06, 18 October 2024 Alex talk contribs created page Configure Linux Machine with wireless config (Created page with "How to add persistent configuration in /etc/network/interfaces to connect to wireless access point. Just edit /etc/network/interfaces and write: auto wlan0 iface wlan0 inet dhcp wpa-ssid {ssid} wpa-psk {password} A good tool to have installed is the iw command. Run the command 'iw dev' to show the wireless adapter information. ##### To have a non persistent configuration use the following commands. //This creates a configuration fi...")
  • 06:49, 18 October 2024 Alex talk contribs created page Show contents of file in Cisco IOS command line (Created page with "This is the equivalent to using the cat command in a Linux shell. Use the command 'more' with the path to the file. For example 'more flash:config.text' with print the contents of config.text stored on the local on board flash.")
(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)