Advanced Search
Search Results
100 total results found
OSSEC Ubuntu Server
OSSEC is a useful tool in monitoring for malicious activity across various servers. It's lightweight, and easy to install an agent and have it reporting to the master server within minutes. Unfortunately, there is no automated solution to configuring agents re...
Jekyll
Jekyll can be installed by following the Installation Instructions hosted on the official website. So if you are on Ubuntu Linux, sudo apt-get install ruby-full build-essential zlib1g-dev echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc echo 'export ...
Hexo
Hexo is a static site generator that converts Markdown syntax into prebuilt dynamic themes. Hexo's use of Node.js, HTML, and CSS / YAML makes for a simple, scalable website that is easy to maintain, build upon, or migrate. Check out the book on Systemd Servic...
OSSEC Rules
Global ossec.conf Settings OSSEC comes with a server-wide configuration file. Its important to look for and modify this file on the host that runs the server your agents connect to. This configuration will control the alerting and rules used on the server and...
Unattended Upgrades
To configure linux hosts to automatically install updates and upgrades, add or edit the following lines in /etc/apt/apt.conf.d/50unattended-upgrades. Feel free to change the settings as you see fit. Unattended-Upgrade::Mail "user@example.com"; Unattended-Upg...
Audio Devices
When using various Linux Distributions, you may (or may not) run into some issues with audio devices. See some of the configs, logs, and commands below for helpful output in troubleshooting these issues. GUI Tools / Applications If looking for a GUI Tool to ...
i3
i3 is a tiling window manager. See i3 User Guide for official documentation. Also see my notes below on various settings, modules, etc Because this is such a broad topic, I'll put some links here for the sources I used to configure my own Manjaro Linux system ...
Installing Fonts
See the Arch wiki on Fonts for much more information. Some of this information has been copied from there for my own reference / notes. List Installed Fonts These commands will list installed fonts, see the subcategories below for sorting through installed f...
tmux
Multiplexers can be used to reattach to previous sessions and manage clipboard content / session history. This means that when you close a terminal, the session still exists in the background and can be called to the foreground using your choice of tmux comman...
System Sensors
Your system likely has many sensors built in for displaying useful information on internal hardware status. For example, the commands below will help in finding the path to system temperature sensors. user@host ~ $:sensors -f coretemp-isa-0000 Adapter: ISA ...
Swap Allocation
Creating swap memory for your host could prevent system or services from crashing when under heavy loads. To do this, run the following commands. Creating Swap Files # To createa 512MiB swap file - sudo dd if=/dev/zero of=/swapfile bs=1M count=512 status=prog...
Crontab
Using crontab to schedule tasks for the system to perform is fairly straight forward, once you get familiar with the syntax used within the configuration. Run crontab -e to open the file for editing, and modify to your needs using the examples below Tell cron...
Linux on Chromebooks
Booting Persistent USB It is possible to boot into a 3.1 USB stick with persistent data saved between sessions. There are plenty of cheap options out there for ultra portable USBs that you'll hardly notice due to their low-profiles. Even better, if you have a ...
Building Projects
If you use vim, you can bind CTRL-B to build a cmake project nnoremap <C-b> :!cmake -S . -B ./build/ && cmake --build ./build Building from Bash Within bash, you can easily build a single C++ source file into an executable with g++ -g -Wall source.cpp, this w...
Disk Management
Show all disks, usage, and format type sudo df -T -h Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 930M 4.0K 930M 1% /dev tmpfs tmpfs ...
Exploring the Database
I'm running my Bookstack in a docker container, so for me if I want to explore my database the first step is to get a bash terminal within the container. Lets say you've named your bookstack database container db_bookstack - the command to enter a bash termina...
Arch
Package Management Pacman First, you should check to verify your pacman-mirrors are configured to the nearest location. Do this manually by editing /etc/pacman.d/mirrorlist, or run sudo pacman-mirrors -g - [kapper@kanjaro ~ ]$ sudo pacman-mirrors -g INFO D...
Systemd Services
To define our own service with systemd, we need to create a daemon.service file. This is easily done within a few quick lines using vim, and should only take a few minutes. First, we need to locate the binary for the command we want to be executed as a servic...