January 17, 2021
# adduser factorio
# systemctl enable factorio.service
# service factorio start
# /etc/systemd/system/factorio.service
[Unit]
Description=Factorio Server
[Service]
Type=simple
User=factorio
ExecStart=/factorio/bin/x64/factorio --start-server-load-latest --server-settings /factorio/data/server-settings.json
WorkingDirectory=/factorio
Restart=on-failure
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target
Read More...
linux (10) factorio (2) systemd (1)
January 17, 2021
Apache Bench (ab) is a popular command-line tool used for benchmarking the performance of HTTP web servers. Here's a basic guide on how to use it:
#!bash
N=100
C=15
AB=/usr/sbin/ab
URL=https://yahoo.com/
$AB -n $N -c $C $URL
Read More...
apache (1) test (1)
January 17, 2021
#!bash
su -
service factorio stop
cd /factorio
bin/x64/factorio --create saves/my-save.zip \
--map-gen-settings data/map-gen-settings.json \
--map-settings data/map-settings.json
chown -R factorio:factorio /factorio
service factorio start
Read More...
linux (10) factorio (2)
December 20, 2020
####################################################################
# R1
# Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.7(3)M5, RELEASE SOFTWARE (fc1)
# Factory reset
reload
# In minicom, hit: Ctrl A, F
confreg 0x2142 # skip loading startup-config
reset
Read More...
cisco (1) ccna (1) home (1) lab (1)
July 12, 2020
I wrote a console version of Blackjack in Rust.
Read More...
blackjack (15) console (12) rust (1)
June 6, 2020
I wanted to access a RHEL machine from Cacti, so I needed to install and configure net-snmp on there first.
yum install net-snmp
After installing net-snmp the snmpd.conf needs to be configured:
vi /etc/snmp/snmpd.conf
Read More...
cacti (1) rhel (1) snmpd (1)
June 1, 2020
Install irssi and oidentd:
# apt install oidentd irssi irssi-scripts build-essential
See that oidentd is now running:
# ps aux | grep oidentd
Read More...
debian (5) irssi (1) oidentd (1)
May 31, 2020
This is how I install xfce4 on a new Debian.
Read More...
debian (5) awk (1) apt (1) xargs (1) xfce4 (1)