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).
- 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.")
- 17:38, 13 October 2024 Alex talk contribs created page Change udp socket buffer size on Linux Machine (Created page with "This changes the default socket buffer size within the kernel. Use the below commands to view the current settings. $ sysctl net.core.rmem_default net.core.rmem_default = 212992 $ sysctl net.core.rmem_max net.core.rmem_max = 212992 Use the below commands to edit the settings. $ sudo sysctl -w net.core.rmem_default=10000 net.core.rmem_default = 10000 sudo sysctl -w net.core.rmem_max=800000 net.core.rmem_max = 800000")
- 20:50, 7 October 2024 Alex talk contribs created page OID of Linux SNMp agent extend (Created page with "A note on how linux and snmpd creates its OID. It always starts with 1.3.6.1.4.1.8072.1.3.2.3.1.1.4 and then the remaining numbers are the ascii representation of the extend name. The second field entered when configuring the extend in the snmpd.conf")
- 21:34, 6 October 2024 Alex talk contribs created page Create systemd service on Linux machine (Created page with "This is a note on how to create a systemd service based on a c program. This was created after implementing the genisys echo detection program as a systemd service. The first thing is to make a Unit file. An example is shown below. [Unit] Description=Detect genisys echo. After=network.target [Install] WantedBy=multi-user.target [Service] Type=simple ExecStart=/home/alex/Programs/echo_detection/echo_detection WorkingDirectory=/ Restart=always RestartSec=5 StandardOut=sy...")
- 20:25, 6 October 2024 Alex talk contribs created page Extend snmp agent functionality on Linux machine (Created page with "This guide is to help extend the functionality of an snmp agent on a Linux machine. This allows for custom OID's to be queried from an snmp master to the agent. This also be subject to a program or script running and returning the value. Ensure that snmpd is installed. sudo apt-get install snmpd. First thing is to make some changes to the SNMP agent. In /etc/snmp/snmpd.conf ensure that the line "rocommunity public default -V systemonly" has the -V systemonly removed. T...")
- 20:14, 1 October 2024 Alex talk contribs created page Copy .iso file to usb to boot (Created page with "This can easily be done with a one line command in the linux terminal as seen below: : dd bs=4M if=/path/to/file.iso of=/dev/sdbx status=progress oflag=sync")
- 19:49, 1 October 2024 Alex talk contribs created page File too large for filesystem (Created page with "This note was created after an issue occurred trying to transfer a 5GB iso to a usb stick. The usb stick had a single 8GB partition with an fat32 filesystem. This error occurred because the maximum filesize of a file on a fat32 filesize is 4GB. It should also be noted that ext filesystems are not compatible with windows machines.")
- 16:47, 1 October 2024 Alex talk contribs created page Create filesystem on partition using mkfs on Linux machine (Created page with "This guide has presumed there is already a partition/s created on the disk. This will cover configuring a filesystem on a partition using the mkfs command. To create the filesystem use the command: : sudo mkfs.vfat /dev/sdb1 (using a fat32 fs on disk sdb first partition) Use the mount command to mount the filesystem if not already done so.")
- 16:42, 1 October 2024 Alex talk contribs created page Create partition using parted utility on Linux machine (Created page with "Parted is a tool/utility used by linux machines to manipulate partitions on a block device. To list currently attached disk volumes use the command: : sudo parted -l To select the disk to partition use the command: : sudo parted sdx (x being the disk you want to format, stay away from the disk that has the bootloader and rootfilesystem on) You will now be in the parted shell. Create a partition table with the command: : (parted) mklabel gpt/msdos Make sure it...")
- 16:54, 30 September 2024 Alex talk contribs created page Linux Machine copy public key to ssh server (Created page with "One line command to copy ssh public to ssh server to allow for ssh pub priv key authentication. ssh-copy-id -i ~/.ssh/id_rsa.pub alex@git.acrodus.uk ssh-copy-id : command -i : option to specify the file with the public key user:host : in this case this was for setting up git server which uses ssh ensure that when attempting to use ssh to connect to server that the default is using the private key for the public key you sent. This can be configured in /etc/ssh.conf or...")
- 14:14, 30 September 2024 Alex talk contribs created page Compiling kernel module results in ERROR (Created page with "This issue was present when compiling a linux device driver using make on a raspberry pi zero w 2. The below log was printed: make -C /lib/modules/6.6.31+rpt-rpi-v8/build M=/home/alex/Linux_I2C_LCD_driver2.0 modules make[1]: Entering directory '/usr/src/linux-headers-6.6.31+rpt-rpi-v8' ERROR: Kernel configuration is invalid. include/generated/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fi...")
- 12:31, 23 September 2024 Alex talk contribs created page Set up SNAT for Private network internet access (Created page with "This is to set up a Linux machine to provide routing and SNAT of private network to the internet. This command provides configure the machine using iptables. iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE This command can be explained in the following way: iptables: the command line utility for configuring the kernel -t nat select table "nat" for configuration of NAT rules. -A POSTROUTING Append a rule to the POSTROUTING chain (-A stands for "append"). -o...")
- 11:49, 23 September 2024 Alex talk contribs created page Disable ssh server for password authentication (Created page with "PasswordAuthentication no Match address 192.168.0.0/16 PasswordAuthentication yes Disables password authetication for sshd except for private range.")
- 11:47, 23 September 2024 Alex talk contribs created page Quick Command to find structure definition in header files (Created page with "find . -type f -name "*.h" -exec grep 'struct tvbuff' {} /dev/null \; /dev/null is to produced file name as output")
- 10:49, 10 September 2024 Alex talk contribs created page Create new user on Embedded Linux without useradd tools (Created page with "This is used on Linux systems without utilities such as useradd. This guide was written when configuring a Beaglebone Black after linux installation using buildroot. First go to /etc/passwd. Edit this file with vi. Example line to add 'alex:x:1010:1010:,:/home/alex:/bin.bash username:alex passwd:x meaning stored in /etc/shadow user id:1010 group id:1010 additional text field: seperate by commas, nothing added in this example shell prompt:bash #Ensure user id is uniqu...")
- 08:58, 3 September 2024 Alex talk contribs created page Set up Linux machine as wireless access point (Created page with "How to configure a linux machine to operate as a wireless access point. Ensure that the hostapd package is installed on the machine, to install apt-get install hostapd. Go to the file /etc/default/hostapd and edit the line DAEMON_CONF="" with the path to the hostapd.conf file. This is advised to be put at /etc/hostapd/hostapd.conf, this file may need to be created on first use. The config file needs to include the contents shown below, obviously changed for specific u...")
- 09:32, 30 August 2024 Alex talk contribs created page FFMPEG shell command to stream from RTSP and write to framebuffer (Created page with "This was required for connecting to a CCTV camera supporting RTSP. #! /bin/bash ffmpeg -rtsp_transport tcp -i rtsp://admin:'NumptyHead1!'@192.168.1.64/streaming/channels/101 -i red_circle.png -i blue_circle.png -i green_circle.png -i yellow_circle.png \ -tune zerolatency\ -preset ultrafast\ -filter_complex "[0][1] overlay=x='if((mod(floor(n/10),4)*mod(floor(n/10)+1,4)),640,650)':y='if((mod(floor(n/10)+2,4)*mod(floor(n/10)+1,4)),10,0)'[v1];...")
- 09:24, 30 August 2024 Alex talk contribs created page Cisco OID's for Optical Receive Power (Created page with "Ensure snmp is installed. If not, install the package snmp. Run the command snmpwalk -v2c -c public [ip address]. This will return a list of OID's, filter for the string of the value you are after (ie. Gi1/1 Transmit power). Take the last number from the OID and run the command snmpget -v2c -c public [ip address] 1.3.6.1.4.1.9.9.91.1.1.1.1.4.[last number]. This will return the current value. This has only been tested for a limited number of OID's. #NOTE Ensure SNMP age...")
- 10:46, 15 July 2024 Alex talk contribs created page Enable IP forwarding on Linux Machine (Created page with "==Introduction== This guide shows how to enable ip forwarding on a Linux Machine running Debian 12 for both Ipv4 and Ipv6. ==HOW TO== Go to the file /etc/sysctl.conf. Edit the lines net.ipv4.ip_forward=0 to net.ipv4.ip_forward=1 and net.ipv6.conf.all.forwarding=0 to net.ipv6.conf.all.forwarding=1.")
- 10:34, 15 July 2024 Alex talk contribs created page Configuring DNS nameservers on Linux Machine (Created page with "==Introduction== This guide explains the process of configuring dns nameserver for Linux machines running Debian 12. There are several daemons/services which manage the resolv.conf file. The resolv.conf file is where a list of nameserver IP's are kept. This file can be edited manually however will can be overwritten by a service that is supposed to manage the file on our behalf. This guide assumes that network manager is disabled, as this is preferred with Debian server...")
- 13:28, 12 July 2024 Alex talk contribs created page Setting up TFTP server on Linux machine (Created page with "==Introduction== This guide explains how to set up and configure a tftp server on a linux machine using the tftpd-hpa package. ==HOW TO== ===Set up=== Ensure tftpd-hpa has been installed on the machine. This can be checked by running 'sudo apt install tftpd-hpa'. Ensure the service is active and enabled with the command 'sudo systemctl status tftpd-hpa'. To start the service run the command 'sudo systemctl start tftpd-hpa', this is not required if the service is alre...")
- 15:38, 10 July 2024 Alex talk contribs created page Configure Linux machine with custom SSH client configuration (Created page with "==Introduction== This guide explains how to create custom static configuration for SSH client on a Linux machine. Instead of using command line options from the terminal a custom configuration file can be created. ==HOW TO== The file /etc/ssh/ssh_config contains commented out options for an SSH client. These can be used as an example for a custom ssh config. Go into the subdirectory /etc/ssh/ssh_config.d/ and create a new file. In this file specify the ip address/host...")
- 13:51, 10 July 2024 Alex talk contribs deleted page File:Screenshot from 2024-07-10 14-43-22.png
- 13:50, 10 July 2024 Alex talk contribs created page File:Screenshot from 2024-07-10 14-43-22.png
- 13:50, 10 July 2024 Alex talk contribs uploaded File:Screenshot from 2024-07-10 14-43-22.png
- 13:41, 10 July 2024 Alex talk contribs created page Configure Linux machine for SSH with Cisco device (Created page with "==Introduction== This page outlines how to configure a Linux machine for use as an SSH client with OpenSSH_9.2 for connecting to Cisco network devices over SSH. ==HOW TO== This requires configuration changes in the file /etc/ssh/ssh_config or by creating a separate configuration file in the directory /etc/ssh/ssh_config.d/. This guide will use the latter method. By creating a new file in the directory /etc/ssh/ssh_config.d/. this logically breaks up the configuration...")
- 19:33, 8 July 2024 Alex talk contribs created page AcrodusWiki:About (Changes to About Page)
- 19:30, 8 July 2024 Alex talk contribs created page Main Page (Update to main page)
- 19:29, 8 July 2024 Alex talk contribs deleted page Main Page (content was: "Welcome to AcrodusWiki, the home of all guides and notes for Alex Brown.")
- 16:51, 8 July 2024 MediaWiki default talk contribs created page Main Page