User contributions for Alex
From AcrodusWiki
18 October 2024
- 07:3207:32, 18 October 2024 diff hist +161 N 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" current
- 07:0607:06, 18 October 2024 diff hist +922 N 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..." current
- 06:4906:49, 18 October 2024 diff hist +229 N 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." current
13 October 2024
- 17:3817:38, 13 October 2024 diff hist +422 N 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" current
7 October 2024
- 20:5020:50, 7 October 2024 diff hist +251 N 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" current
6 October 2024
- 21:3421:34, 6 October 2024 diff hist +724 N 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..." current
- 20:2520:25, 6 October 2024 diff hist +1,293 N 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..." current
1 October 2024
- 20:3420:34, 1 October 2024 diff hist +46 Copy .iso file to usb to boot No edit summary current
- 20:3320:33, 1 October 2024 diff hist −1 Copy .iso file to usb to boot No edit summary
- 20:1420:14, 1 October 2024 diff hist +158 N 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:4919:49, 1 October 2024 diff hist +331 N 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." current
- 16:4716:47, 1 October 2024 diff hist +345 N 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." current
- 16:4216:42, 1 October 2024 diff hist +1,145 N 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..." current
30 September 2024
- 16:5416:54, 30 September 2024 diff hist +526 N 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..." current
- 14:1614:16, 30 September 2024 diff hist 0 Compiling kernel module results in ERROR No edit summary current
- 14:1514:15, 30 September 2024 diff hist 0 Compiling kernel module results in ERROR No edit summary
- 14:1414:14, 30 September 2024 diff hist +1,330 N 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..."
23 September 2024
- 12:3712:37, 23 September 2024 diff hist +194 Set up SNAT for Private network internet access No edit summary current
- 12:3112:31, 23 September 2024 diff hist +1,043 N 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:4911:49, 23 September 2024 diff hist +151 N 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." current
- 11:4711:47, 23 September 2024 diff hist +115 N 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" current
10 September 2024
- 10:4910:49, 10 September 2024 diff hist +1,004 N 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..." current
3 September 2024
- 08:5808:58, 3 September 2024 diff hist −4 Set up Linux machine as wireless access point No edit summary current
- 08:5808:58, 3 September 2024 diff hist +1,556 N 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..."
30 August 2024
- 09:3509:35, 30 August 2024 diff hist −2 FFMPEG shell command to stream from RTSP and write to framebuffer No edit summary current Tag: Manual revert
- 09:3409:34, 30 August 2024 diff hist +2 FFMPEG shell command to stream from RTSP and write to framebuffer No edit summary Tag: Reverted
- 09:3309:33, 30 August 2024 diff hist −14 FFMPEG shell command to stream from RTSP and write to framebuffer No edit summary
- 09:3209:32, 30 August 2024 diff hist +1,776 N 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:2409:24, 30 August 2024 diff hist +580 N 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..." current
15 July 2024
- 10:4610:46, 15 July 2024 diff hist +301 N 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." current
- 10:3410:34, 15 July 2024 diff hist +1,431 N 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..." current
12 July 2024
- 13:2813:28, 12 July 2024 diff hist −3 Setting up TFTP server on Linux machine →Example
- 13:2813:28, 12 July 2024 diff hist +1 Setting up TFTP server on Linux machine →Example
- 13:2813:28, 12 July 2024 diff hist +1,199 N 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..."
10 July 2024
- 15:4115:41, 10 July 2024 diff hist 0 Configure Linux machine with custom SSH client configuration →EXAMPLE current
- 15:4015:40, 10 July 2024 diff hist −9 Configure Linux machine with custom SSH client configuration →EXAMPLE
- 15:3815:38, 10 July 2024 diff hist +696 N 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..."
- 15:2715:27, 10 July 2024 diff hist +34 Configure Linux machine for SSH with Cisco device →Example current
- 15:1215:12, 10 July 2024 diff hist −2 Configure Linux machine for SSH with Cisco device →Example
- 15:1215:12, 10 July 2024 diff hist +5 Configure Linux machine for SSH with Cisco device →Example
- 15:0215:02, 10 July 2024 diff hist 0 Configure Linux machine for SSH with Cisco device →Example
- 15:0115:01, 10 July 2024 diff hist +4 Configure Linux machine for SSH with Cisco device →Example
- 14:2114:21, 10 July 2024 diff hist −42 Configure Linux machine for SSH with Cisco device →Example
- 14:1614:16, 10 July 2024 diff hist +3 Configure Linux machine for SSH with Cisco device →Example
- 14:1514:15, 10 July 2024 diff hist −2 Configure Linux machine for SSH with Cisco device →Example
- 14:1514:15, 10 July 2024 diff hist +142 Configure Linux machine for SSH with Cisco device No edit summary
- 13:4113:41, 10 July 2024 diff hist +1,753 N 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..."
9 July 2024
- 10:5910:59, 9 July 2024 diff hist −14 Main Page No edit summary current Tag: Manual revert
8 July 2024
- 19:3319:33, 8 July 2024 diff hist +250 N AcrodusWiki:About Changes to About Page current
- 19:3019:30, 8 July 2024 diff hist +112 N Main Page Update to main page