User contributions for Alex

From AcrodusWiki
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)

29 May 2025

22 April 2025

  • 12:1412:14, 22 April 2025 diff hist +9,875 N Apache2 config to allow directory accessCreated 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

27 March 2025

  • 15:1615:16, 27 March 2025 diff hist +178 N Tacacs+ verification toolCreated 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

6 March 2025

  • 09:2409:24, 6 March 2025 diff hist +242 N Add .iso file as a apt repositryCreated 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

5 February 2025

  • 20:0620:06, 5 February 2025 diff hist +827 N GTK basic setup with timer in main threadCreated 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 compatibleCreated 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 MakefileCreated 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 backportsCreated 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 pythonCreated 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 configCreated 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

29 December 2024

  • 17:2317:23, 29 December 2024 diff hist +291 N Unable to connect to kvm host with virt-managerCreated 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 December 2024

  • 15:0415:04, 16 December 2024 diff hist +769 N Asbru not installing on debian 12Created 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

3 December 2024

  • 23:0723:07, 3 December 2024 diff hist +192 Linux machine has booted into grub promptNo edit summary current
  • 22:5422:54, 3 December 2024 diff hist +828 N Linux machine has booted into grub promptCreated 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 commandCreated 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 flagsCreated 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 fileCreated 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 driveCreated 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

28 November 2024

  • 09:4509:45, 28 November 2024 diff hist +484 N Compress directory into tarball on Linux machineCreated 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 repositryCreated 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

23 November 2024

22 November 2024

21 November 2024

  • 09:5909:59, 21 November 2024 diff hist +306 N How to show namespaces of different running processes on Linux machineCreated 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 driveCreated 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

(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)