stevee

Ubuntu Server + Mint Desktop First Install Security Options

Loading

Ubuntu Server + Mint Desktop First Install Security Options While Linux distributions like Ubuntu and Mint share the "secure-by-default" philosophy seen in Windows Server 2022, their approach to hardening is significantly different. In the Linux world, the "automation" isn't a single wizard, but rather a set of specialized tools and a "minimalist" installation strategy. 1. ...  Ubuntu Server + Mint Desktop First Install Security Options

Windows Server 2022 First Install Security Options

Loading

Windows Server 2022 First Install Security Options Windows Server 2022 does not have a "one-click" automatic hardening button during the initial installation wizard. However, it is designed with a "Secure by Default" philosophy, and Microsoft provides tools to automate the bulk of the hardening process immediately after installation. Here is how the hardening process breaks ...  Windows Server 2022 First Install Security Options

CompTIA Network+ curriculum 7-step troubleshooting model

Loading

The CompTIA Network+ 7-step troubleshooting model to logically identify and resolve network issues. The 7-Step Troubleshooting Process Identify the problem Gather information: Talk to the user, identify symptoms, and determine if anything has changed recently. Duplicate the problem: If possible, try to make the error happen again. Identify symptoms: Look for error messages or physical ...  CompTIA Network+ curriculum 7-step troubleshooting model

Jake IT – Fault Finding Methodology

Loading

Jake IT - Fault Finding Methodology. What exactly is not working? Who is affected? When did it last work? What changed recently? What DOES still work? Map the System: Login issues are in the Authentication path. Internet issues are in the Network path. Application failures are in the Dependency path. Ask; what components are involved? ...  Jake IT – Fault Finding Methodology

WSL2 Install in Win11 Powershell

Loading

PS C:\Users\steve> wsl.exe --list --online The following is a list of valid distributions that can be installed. Install using 'wsl.exe --install <Distro>'. NAME FRIENDLY NAME Ubuntu Ubuntu Ubuntu-24.04 Ubuntu 24.04 LTS openSUSE-Tumbleweed openSUSE Tumbleweed openSUSE-Leap-16.0 openSUSE Leap 16.0 SUSE-Linux-Enterprise-15-SP7 SUSE Linux Enterprise 15 SP7 SUSE-Linux-Enterprise-16.0 SUSE Linux Enterprise 16.0 kali-linux Kali Linux Rolling Debian Debian ...  WSL2 Install in Win11 Powershell

NVe RAM Drive Cloning of Windows 11

Loading

Buying an NVMe-to-USB enclosure plus a "naked" NVMe drive is widely considered the "pro" way to handle backups in 2025. It is more versatile, easier to troubleshoot, and often faster than buying a pre-sealed external drive. Here is why your plan is highly effective and how to execute it with dd. 1. Why the Enclosure ...  NVe RAM Drive Cloning of Windows 11

Joining Linux Mint to Windows Domain (coz Ubuntu Desktop is Horrible!)

Loading

The 5 Point Plan Overview: Joining Linux Mint to Active Directory (Windows Server 2022) Step 1: Network & DNS (The Foundation) Before touching any domain commands, the Linux machine must "see" the world exactly as the Domain Controller does. Action: Set a static IP (e.g., 172.27.176.32). The "Why": Linux uses DNS SRV records to find ...  Joining Linux Mint to Windows Domain (coz Ubuntu Desktop is Horrible!)

Current Industry "VPN" Use

Loading

In the industry, this is known as Zero Trust Networking or SD-WAN (Software-Defined Wide Area Network). Why the "Common Sense" apps are Enterprise-grade: Feature Old School (Obsolete PPTP etc) Enterprise "New School" (Tailscale/WireGuard) Philosophy "Trust the internal network, block the outside." "Trust nothing. Encrypt everything, even inside the LAN." Setup Complex Firewall rules, NAT mappings, ...  Current Industry "VPN" Use

Network+ (V9) exam objectives summary

Loading

Network+ (V9) exam objectives summary Networking concepts (23%) OSI model layers: physical, data link, network, transport, session, presentation, application. Networking appliances: routers, switches, firewalls, IDS/IPS, load balancers, proxies, NAS, SAN, and wireless devices. Cloud concepts: NFV, VPC, network security groups, cloud gateways, deployment models (public, private, hybrid), service models (SaaS, IaaS, PaaS). Ports and protocols: FTP, SFTP, SSH, Telnet, ...  Network+ (V9) exam objectives summary

VM L1 Support Scenarios

Loading

Here are 10 random scenarios for your practice. ? Remote VM L1 Support Scenarios High CPU/Slow Performance: A user reports that their VM is running extremely slowly and is almost unusable. They mention that opening any application takes several minutes. Initial checks reveal that the VM's CPU utilization is pegged at 99-100%, even when idle. ...  VM L1 Support Scenarios

Support L1 Expectations

Loading

L1 Expectations In the real world, the best L1 techs are the ones who know exactly when to stop tinkering and start escalating with a clear set of notes. You’ve just spent hours doing L3 network engineering in a complex VM subnet environ with server 2022, win1o and win11 VMs; now let’s get back to ...  Support L1 Expectations

Semantic Search & RAG WordPress Project – Current Version Dec 2025

Loading

Project Goal and Core Function The primary goal of this project is to elevate the standard functionality of WordPress search from simple keyword matching to advanced semantic search and Retrieval-Augmented Generation (RAG). The semantic search capability ensures that the system finds content based on the meaning and intent of the user’s query, rather than just ...  Semantic Search & RAG WordPress Project – Current Version Dec 2025

Powershell IT Support PC Info Script

Loading

I developed this PS script requirements over time with AI to cover useful info about a PC state to aid fault finding - you can paste it straight into the Admin PS terminal:   # SCRIPT START: EXECUTE, FORMAT, AND SAVE OUTPUT $ReportPath = "$env:USERPROFILE\Desktop\System_Diagnostic_Report_$(Get-Date -Format 'yyyyMMdd_HHmm').txt" "Starting automated diagnostic report creation..." | Out-File $ReportPath ...  Powershell IT Support PC Info Script

Adding SSHFS mounted shares between 2 NAMED LAN clients, with an mDNS python script

Loading

Install OpenSSH Server: Bash sudo apt update sudo apt install openssh-server Configure SSHD: (Optional, but good for setup) Edit /etc/ssh/sshd_config (e.g., sudo nano /etc/ssh/sshd_config): Ensure Port 22 is uncommented or set to your desired port. Ensure ListenAddress 0.0.0.0 to allow connections from any IP within WSL2's network (or even LAN if proxied). PasswordAuthentication yes (for ...  Adding SSHFS mounted shares between 2 NAMED LAN clients, with an mDNS python script

Migrating Your Project to an Online ISP

Loading

Regarding migrating your project online to an ISP dedicated VPS for security reasons and the Flask warning about a "production WSGI server," you're hitting on a fundamental best practice for web application deployment. What is a WSGI server? WSGI stands for Web Server Gateway Interface. It's a standard specification (PEP 3333) that defines a uniform ...  Migrating Your Project to an Online ISP

WP Posts Word Count Data Science Exercise

Loading

WP Posts Word Count Data Science Exercise This document summarizes the process we followed to extract data from your WordPress posts, analyze their word counts by year, and visualize the findings in a pie chart. The key focus was to perform this exercise without interfering with your existing, working voice-activated semantic search project files. Overview ...  WP Posts Word Count Data Science Exercise

AI Semantic Search Project Summary – Local PC Version

Loading

STOP ALL: sudo pkill -f "python3 rag_api_server.py"; sudo pkill -f "ollama serve"; sudo systemctl stop apache2; sudo systemctl stop mysql; CHECK STATUS: sudo ps aux | grep -E 'apache2|mysqld|ollama|rag_api_server.py' | grep -v grep stevee@hplaptop:~$ curl https://127.0.0.1:11434 Ollama is runningstevee@hplaptop:~$ Reason: This command uses ps aux to list all running processes on your system. It then ...  AI Semantic Search Project Summary – Local PC Version

Building a Voice-Activated AI Chatbot for WordPress using Local LLMs

Loading

Project Summary: Voice-Activated AI Chatbot for WordPress using Local LLMs Project Goal: To build and integrate a voice-activated search feature into a WordPress site, leveraging local Large Language Models (LLMs) and Retrieval Augmented Generation (RAG) to provide contextual answers from the site's own content. I. Key Technologies & Tools Utilized: Operating System: Windows 11 (Host) ...  Building a Voice-Activated AI Chatbot for WordPress using Local LLMs

Install rclone in WSL2

Loading

Step 1: Install rclone in WSL2 Open your WSL2 Linux terminal and run: Bash sudo apt update sudo apt install rclone This will install rclone using the package manager. Step 2: Configure rclone for Google Drive (One-Time Setup) This step will open a browser window on your Windows host to authenticate with Google. Bash rclone ...  Install rclone in WSL2

Rare Port Conflicts with Win11 Services Stealing Apache Port 80 on Bootup

Loading

NO APACHE CONF CHANGE - a working windows arbitrary binding to NOT port 80_ You're providing excellent diagnostic information! PS C:\WINDOWS\system32> netsh http show servicestate Snapshot of HTTP service state (Server Session View): ----------------------------------------------------- Server session ID: FF00000710000001 Version: 2.0 State: Active Properties: Max bandwidth: 4294967295 Timeouts: Entity body timeout (secs): 120 Drain entity body ...  Rare Port Conflicts with Win11 Services Stealing Apache Port 80 on Bootup

Clean Up Duplicate Posts – Gem AI

Loading

Identify Duplicate Slugs: Go to the wp_posts table (your table prefix might be different, e.g., wp_xyz_posts). Look at the post_name column. You're looking for entries like my-post, my-post-2, my-post-3, etc., where the content is essentially the same or one is an older, now-obsolete version. You can run SQL queries to help identify these. For example: ...  Clean Up Duplicate Posts – Gem AI

Viewing WordPress Post Name to Number mappings in Linux MYSQL

Loading

Look in vi wp-config.php to find your DB prefix first! mysql> SELECT ID, post_name FROM wp_xubg_posts WHERE post_status = 'publish' AND post_type = 'post' ORDER BY ID ASC; +-------+---------------------------------------------------------------------------------------------------------+ | ID | post_name | +-------+---------------------------------------------------------------------------------------------------------+ | 53 | re-install-win-7-with-no-dvd-and-replace-laptop-auto-recovery-partition | | 146 | cool-command-1-dd-progress | | 181 | cool-cmd-2-find-with-exec | | 230 | cool-command-3-rsync | | ...  Viewing WordPress Post Name to Number mappings in Linux MYSQL

BitLocker Encryption with Password (No TPM Issues)

Loading

BitLocker Encryption with Password (No TPM Issues) This guide outlines the successful steps taken to enable BitLocker with a password protector on a Windows 11 Pro system, bypassing TPM complexities and resolving various command-line errors. Prerequisites: Windows 11 Pro (or Enterprise/Education) User account with Administrator privileges Steps: Configure Group Policy to Allow Password Protector: Open ...  BitLocker Encryption with Password (No TPM Issues)

Net Client to Win11 WSL2 Access Fix, with Gemini AI, 2025

Loading

This document summarizes the process and challenges involved in accessing websites hosted within WSL2 (Windows Subsystem for Linux 2) from other devices on your local network, drawing specifically from the successful troubleshooting steps and conclusions from our session. Accessing WSL2 Websites from a Remote Client Goal: To make a web server running in WSL2 on ...  Net Client to Win11 WSL2 Access Fix, with Gemini AI, 2025

SSL on Ubuntu Apache2 – Creating Self Signed Certificates, Checking SSL Traffic with TCPDUMP and Wireshark

Loading

Programmers need to write their web apps for secure server hosting practically universally now, so you should also be writing them in VS Code/other IDE with a Live Server set up for SSL as in the last Post, but if you also write at home and host on a local apache2 server or similar, it ...  SSL on Ubuntu Apache2 – Creating Self Signed Certificates, Checking SSL Traffic with TCPDUMP and Wireshark

VS Code Live Server SSL Settings

Loading

First you need to set up an SSL certificate for your VS code PC to mimic a Cert Authority locally, so on my Win11 laptop I have installed WSL Ubuntu so openssl can be run to use linux commands for the following cert setup. It doesn't matter what nonsense values you put in the certificate ...  VS Code Live Server SSL Settings

First Site Pages Speed and SEO Tweaks

Loading

My new sites - the Landing Page, Debian Admin and Electronics Stuff pages once functional, were tested initially in PageSpeed Insights to get a feel for performance jargon and some suggestions, then finding some things I needed to test in DevTools in Chrome (F12 key) and PageSpeed Insights. Changing .png images to Webp and adding ...  First Site Pages Speed and SEO Tweaks

Uploading Your Local WordPress MYSQL Site to a New Hosting cPanel Site

Loading

I have exported my home DBs from linux mysql, zipped them up and uploaded both the site WP content/uploads folder and the DB sql files. To export a sql file from an active DB I use: stevee@localhost:/var/www$ mysqldump -u stevee -p ElectronicsStuff > ElectronicsStuff.SQL The site content folder is zipped also: stevee@localhost:/var/www$ zip ElectronicsStuff.zip ElectronicsStuff ...  Uploading Your Local WordPress MYSQL Site to a New Hosting cPanel Site

WordPress CLI Commands and some MYSQL Repair Commands

Loading

CREATE database NEO ; USE NEO; DROP database NEO ; source /var/www/NEOBabyHPWorking.sql ; GRANT ALL PRIVILEGES ON NEO.* TO 'stevee'@'localhost'; ALTER USER 'stevee'@'localhost' IDENTIFIED BY 'pw'; WP-CLI: cd /opt curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar stevee@localhost:/opt$ sudo curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar [sudo] password for stevee: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload ...  WordPress CLI Commands and some MYSQL Repair Commands

MYSQL DB Repair Commands

Loading

Find DB collation: SELECT @@character_set_database, @@collation_database; and for Engine: SHOW TABLE STATUS\G Diff Engines are not a prob in same DB. GRANT ALL PRIVILEGES ON ElectronicsStuff TO stevee@localhost IDENTIFIED BY pword ; SHOW GRANTS FOR 'stevee'@'localhost'; systemctl restart mysql.service mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'PASSWORD'; mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH ...  MYSQL DB Repair Commands

Downgrading PHP Versions

Loading

Downgrade PHP8.1 to PHP8.0 or PHP7.4 on Ubuntu 22.04 | by Stavros Kounis | Medium Ubuntu 22.04 comes with PHP 8.1. This article describes how to change this and install and set as default the version 8.0 or 7.4. Install PHP Version Install the required dependencies. sudo apt install software-properties-common ca-certificates lsb-release apt-transport-http Add the ...  Downgrading PHP Versions

WebDev: Embedded Video Code for Landing Page Link

Loading

HTML: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <script src="script.js" defer></script> <link rel="stylesheet" href="styles.css" /> </head> <body> <video id="background-video" autoplay loop muted poster="VidPoster.png"> <source src="video.mp4" type="video/mp4"> </video> <header class="header">Header Text</header> <section class="primary-container"> <button class="one1">stop Paul</button> <button class="two1">start Paul</button> </section> <img src="Paul.png" class="paul rotate-image" alt="pic"/> <footer class="footer">Footer Text</footer> ...  WebDev: Embedded Video Code for Landing Page Link

JavaScript: Guess Number Game

Loading

https://www.udemy.com/course/the-complete-javascript-course/ jonas schmedtmann (Udemy): <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" /> <link rel="stylesheet" href="style.css" /> <title>Guess My Number!</title> <script src="script.js" defer></script> </head> <body> <header> <h1>Guess My Number!</h1> <p class="between">(Between 1 and 20)</p> <button class="btn again">Play Again!</button> <div class="number">?</div> </header> <main> <section class="left"> <input class="guess" type="number"> ...  JavaScript: Guess Number Game

Functions: Writing and Converting JS Functions to Arrow Functions

Loading

https://www.udemy.com/course/the-complete-javascript-course/ Functions: jonas schmedtmann (Udemy): "like a variable but for chunks of code" "..can receive data or return data back..I like to think of them as machines..like a food processor" "functions produce values" "...receive input data, transform data and output data.." (This means they can have a variable assigned to that value so used in ...  Functions: Writing and Converting JS Functions to Arrow Functions

CSS Grid Layouts

Loading

Grid is similar to Flex in that you tell it what layout style you want, but in form of columns and rows. In this case there are 3 columns with column 2 twice the width of 1 and 3: <!DOCTYPE html> <html lang="en"> <head> <style> .item { border: 1px solid #333; background-color: #777; color: yellow; ...  CSS Grid Layouts

CSS Flex Positioning Options

Loading

Because flex is such a powerful and common selector, I've summarised most of it's useful aspects, in a short enough document, so even Joe might read it..(lots of pics, min text) lol! <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="styles.css"> <style> .item { border: 1px ...  CSS Flex Positioning Options

Joining/Sizing MP4 Video Files

Loading

sudo apt install ffmpeg ffmpeg -i input.avi -vf scale="720:-1" output.avi Shrink size ffmpeg -i /media/stevee/489EB74C63B82B0E/ Iquitos.mp4 -vcodec libx264 -s hd720 -crf 25 -vf copy Dieta3Iquitos.mp4 Merge vids: Let,s create the list first. Here is an example and let us call the list fileList.txt. In this example, both the files are in the home directory. each ...  Joining/Sizing MP4 Video Files

Thumbdrive Performance Differences V USB SATA disk

Loading

Overall reference speed: LITEONIT LCS-256L9S-11 2.5 7mm 256GB (HC8110B) via internal SATA in Probook 6550b i5: All laptop ports below are USB2 on an HP 6530B laptop. SATA high speed [2210] (2014 build) via SATA/USB dongle: The TERMINALLY slow SanDisk Cruzer Force: The as bad Kingston DataTraveler 2.0: The better write speed Integral USB3:

GParted's e2fsck -fyvC0 /dev/sdx and ntfsresize -ifv /dev/sdx

Loading

Unmount the drives first!! Use these commands to check/repair linux ext4 and Win NTFS drives respectively - at your own risk of course... sudo e2fsck -fyvC0 /dev/sdx stevee@localhost:~$ sudo e2fsck -fyvC0 /dev/sdb1e2fsck 1.44.1 (24-Mar-2018)Pass 1: Checking inodes, blocks, and sizesPass 2: Checking directory structurePass 3: Checking directory connectivityPass 4: Checking reference countsPass 5: Checking group ...  GParted's e2fsck -fyvC0 /dev/sdx and ntfsresize -ifv /dev/sdx

My Rsync Local WordPress Backup Examples (in Win11 I just use Syncback)

Loading

Syncback for Win 11: https://www.2brightsparks.com/ Make sure drives are MOUNTED first! rm -vr --i=no /home/stevee/.cache/google-chrome/Default/Cache/* mysqldump -u root -p wp > /var/www/localhostwp.sql mysqldump -u root -p DebianAdmin > /var/www/localhostDA.sql sudo rsync /var/www /media/stevee/87b55176-f602-48db-ac1c-4fe0101b1a79/ -vah sudo rsync /* /media/stevee/51800665-dd6d-4c80-adf4-cf8c0061d0be/ --delete-excluded --exclude={1500,dev,home/stevee/.*,media,proc,sys} -vah rsync /var/www/* /1500/www/ --delete-excluded -vah sudo rsync /var/www/* /media/stevee/WinData/www/ --delete-excluded -vah sudo rsync /* ...  My Rsync Local WordPress Backup Examples (in Win11 I just use Syncback)

WP Info/Search Replace on CMD Line/vsftpd

Loading

A fresh Mint install for WP to run, not just read the wp-*php files will require: sudo apt install mysql-server wordpress apache2 libapache2-mod-php php-mbstring vsftpd php-curl php php-mysql sudo vi /etc/apache2/apache2.conf # Sets the default security model of the Apache2 HTTPD server. It does # not allow access to the root filesystem outside of /usr/share ...  WP Info/Search Replace on CMD Line/vsftpd

New Mint Install and Want WordPress at Home? Full Steps I Take… 

Loading

After a new Mint install! Personal Extras: sudo apt-get install ssh nmap vim automake autoconf module-assistant nbtscan locate libnss-winbind winbind g++ gparted intel-microcode amd64-microcode linux-firmware mysql-server wordpress apache2 samba libapache2-mod-php php-mbstring php-curl php php-mysql sudo passwd root sudo smbpasswd -a stevee To check FS every boot: sudo tune2fs -c 1 /dev/sda1 sudo vim /etc/samba/smb.conf Uncomment ...  New Mint Install and Want WordPress at Home? Full Steps I Take… 

Booting a Pi3 from USB3 Devices

Loading

This process is really easy now with the latest Raspian image - depending if your USB device make/model works: https://www.raspberrypi.org/downloads/raspbian/ The two USB3 devices which worked for me are these (Integral 16GB NOT the 8GB! That did not work): stevee@AMDA8:~ $ lsusb Bus 001 Device 004: ID 0781:5583 SanDisk Corp. (Sandisk Ultrafit 16GB) Bus 004 Device ...  Booting a Pi3 from USB3 Devices

WordPress Upload Limit – .user.ini

Loading

Importing Posts - Size Limits: sudo vi /etc/php/7.0/apache2/php.ini ; Maximum size of POST data that PHP will accept. ; Its value may be 0 to disable the limit. It is ignored if POST data reading ; is disabled through enable_post_data_reading. ; https://php.net/post-max-size post_max_size = 0 ; Maximum allowed size for uploaded files. ; https://php.net/upload-max-filesize upload_max_filesize ...  WordPress Upload Limit – .user.ini

Personal Data Awareness for Broken/Stolen PCs – The Data People Give Away! Use Shred/Other App

Loading

I have been tinkering with PCs since my first Atari ST1040 in 1988, then a Win95 PC from 1996 on, and have come into possession of many "broken" PCs and parts since, but it still amazes me that you can get old hard disks in boot sales etc. that have masses of personal data of the ...  Personal Data Awareness for Broken/Stolen PCs – The Data People Give Away! Use Shred/Other App

Cisco Setup WiFi LAN and NTP – Full Config + Password Reset + Webpage Access

Loading

Because the WiFi setup is so complex and I can't begin to explain it, it's best to give the final working config including the Network Time Protocol settings that worked for me to set the 877s clock by so log files and Internet time is correct. cisco877#clock set 21:12:20 11 january 2017 cisco877#sh clock 21:13:11.295 ...  Cisco Setup WiFi LAN and NTP – Full Config + Password Reset + Webpage Access

Cisco Setup ADSL Connection (WAN)

Loading

I can't write this Post to WP as I go because I don't have 2 phone lines to use (!!), so I won't have a working internet connection for LAN access via the Cisco until many sections are set up fully. Below, I add the minimum needed key sections of the config file that enable WAN connectivity only ...  Cisco Setup ADSL Connection (WAN)

Small Business Data Security Requirements Summary

Loading

Business Legal requirements under Data Protection Act 1998 Identify/nominate the Data Controller: https://ico.org.uk/media/for-organisations/documents/1558/getting_it_right_-_how_to_comply_checklist.pdf https://ico.org.uk/media/for-organisations/documents/1575/it_security_practical_guide.pdf https://ico.org.uk/media/for-organisations/documents/1542/cctv-code-of-practice.pdf 10 practical ways to keep your IT systems safe and secure: "Keeping your IT systems safe and secure can be a complex task and does require time, resource and specialist knowledge. If you have personal data within your IT system ...  Small Business Data Security Requirements Summary

Converting m4a to mp3

Loading

If you own m4a music files you bought off Apple iStore/other, and don't use iTunes now you have moved permanently away from Windoze (WHY NOT YET????!! Shame on you!!), you may know that m4a files don't play too well with mplayer on a remote server system if you are ssh'd into it they are broken ...  Converting m4a to mp3

Sysbench – Simulated Database Testing

Loading

man sysbench oltp This test mode was written to benchmark a real database performance. At the prepare stage the following table is created in the specified database (sbtest by default): Example usage: (THESE DON'T WORK AS IS - A DB NEEDS CREATING FIRST - SEE BELOW) $ sysbench --test=oltp --mysql-table-type=myisam --oltp-table-size=1000000 --mysql-socket=/tmp/mysql.sock prepare $ sysbench ...  Sysbench – Simulated Database Testing

Awk/Perl/SED Notepad

Loading

Create yourself a copy of the awk/sed man page - it's easier to read: man -t awk | ps2pdf - > awkman.pdf man -t sed | ps2pdf - > sedman.pdf From sed & awk by OReilly - older kernel/system example problems...examples don't copy in lines, but columns often, and major parts of examples are assumed knowledge/steps, ...  Awk/Perl/SED Notepad

How Slow Can You Go? Sysbench Comparisons Disk/File IO

Loading

Going with the examples in the sysbench man page for disk IO - a 3 part process: Usage example: $ sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw prepare $ sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw run $ sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw cleanup I'll try these in my home dir on the laptop first for a timescale as ...  How Slow Can You Go? Sysbench Comparisons Disk/File IO

How Slow Can You Go? Sysbench Comparisons – Memory

Loading

stevee@AMDA8 ~ $ sudo sysbench --test=mutex --memory-oper=read run [sudo] password for stevee: sysbench 0.4.12: multi-threaded system evaluation benchmark Running the test with following options: Number of threads: 1 Doing mutex performance test Threads started! Done. Test execution summary: total time: 0.0071s total number of events: 1 total time taken by event execution: 0.0066 per-request statistics: ...  How Slow Can You Go? Sysbench Comparisons – Memory

Flame Graphs by www.brendangregg.com – Intro to System Profiling and Admin Tools

Loading

Profiling builds a picture of a target that can be studied and understood...by sampling the system state at timed intervals...provides a coarse view of activity, depending on sampling rate. Systems Performance, p30, Brendan Gregg Flame Graphs are a stroke of genius and an advanced topic. I discovered them only today. They give an insight into the inner workings ...  Flame Graphs by www.brendangregg.com – Intro to System Profiling and Admin Tools

Intro to Gnuplot

Loading

https://www.gnuplot.info/demo/ sudo apt-get install gnuplot-x11 This looks like a great tool for tech students of all disciplines. The basic idea is plotting the data from an already prepared data file, e.g. "gaussian.txt"  then setting the visual parameters in gnuplot for the look/type of the graph, then running a final plot command e.g. plot 'gaussian.txt' using ...  Intro to Gnuplot

Exploring Find Cmd Options – file types you may want to find…and go insane trying

Loading

This find command exploration nearly got me sectioned! It is the most un-intuitive, cryptic, annoying command I have come across. If you get to the end of this Post doing similar tests you may understand why...if you want some quick simple examples (not all work in Mint) look here: 35 Practical Examples of Linux Find ...  Exploring Find Cmd Options – file types you may want to find…and go insane trying

Remote Server gkrellm Monitors or Other GUI Apps via SSH and X11

Loading

https://gkrellm.srcbox.net/ These are cool looking but very comprehensive status widgets that allow remote server monitoring via ssh and X11 once set up. This assumes you have generated local public RSA keys using: ssh-keys that are stored in .ssh/id_rsa.pub, and copied them across to any remote servers you wish to use passwordless logins with using: ssh-copy-id ...  Remote Server gkrellm Monitors or Other GUI Apps via SSH and X11

Experiment with Pipes, Redirection, Command Substitution and Variable Expansion

Loading

After you read this article, I'll let you think of interesting ways to use the above video example of piping data between terminals into other programs for immediate processing...if the commands are not clear; term 1 creates a fifo pipe in my home dir: mkfifo fifo_pipe term 2 cats that pipe to receive what comes ...  Experiment with Pipes, Redirection, Command Substitution and Variable Expansion

Chapter 8 Notes Practical C Programming, 3rd Edition By Steve Oualline

Loading

Chapter 8 describes additional control statements. Included are while, break, and continue. The switch statement is discussed in detail. while loop example: #include <stdio.h> int total; /* total of all the numbers */ int current; /* current value from the user */ int counter; /* while loop counter */ char line[80]; /* Line from keyboard ...  Chapter 8 Notes Practical C Programming, 3rd Edition By Steve Oualline

Chapter 7 Notes – Practical C Programming, 3rd Edition By Steve Oualline

Loading

Chapter 7 takes you through all the necessary steps to create a simple program from specification through release. Structured programming, fast prototyping, and debugging are also discussed. It's just a simple matter of programming. —Any boss who has never written a program The major steps in making a program are: •Requirements. Programs start when someone gets an ...  Chapter 7 Notes – Practical C Programming, 3rd Edition By Steve Oualline

Chapter 6 Notes Practical C Programming, 3rd Edition By Steve Oualline

Loading

Chapter 6 explains simple decision statements including if, else, and for. A discussion of == versus = is presented. If the condition is true (nonzero), the statement will be executed. If the condition is false (0), the statement will not be executed. if (total_owed <= 0) printf("You owe nothing.\n"); Multiple statements may be grouped by putting them ...  Chapter 6 Notes Practical C Programming, 3rd Edition By Steve Oualline

Chapters 1-4 Notes – Practical C Programming, 3rd Edition By Steve Oualline

Loading

https://www.oualline.com/ Chapter 1 gives a brief description of the C language and its use. This chapter includes some background on the history of the language. There is only one way to learn how to program and that is to write programs. You'll learn a lot more by writing and debugging programs than you ever will by ...  Chapters 1-4 Notes – Practical C Programming, 3rd Edition By Steve Oualline

Multi Picam Webserver

Loading

If you are thinking of buying a Picam then I found the case that has the right lid to fit the camera is this one: bought from NewIT or a whole starter kit that has that case lid from PiHut: https://www.ebay.co.uk/itm/Deluxe-Black-Case-for-the-Raspberry-Pi-3-2-and-Model-B-B-Plus-v-1-2-/181565226592?hash=item2a46217e60:g:xpkAAOSwHnFVi9dm https://www.ebay.co.uk/itm/RASPBERRY-PI-3-8GB-Starter-Media-Centre-Kit-2016-Model-/261984753417?hash=item3cff821709:g:XwgAAOSwq19XBncF and can have a cheap indoor mount carefully screwed into the rear of the ...  Multi Picam Webserver

Cool Command #10 – mogrify

Loading

sudo mogrify -resize 25% *.JPG As I write these and motorcycle Posts for this site that often require fone pics to be uploaded to WordPress, I needed a way to reduce default Sony Arc S 5MP shots of up to 1MB size to a smaller upload size, for which I used MS Paint for years. Now ...  Cool Command #10 – mogrify

SED Basics using O_Reilly.pdf example, and Unexpected Mind-Bending Parsing Behaviour

Loading

The O_Reilly.pdf pdf of this 1990 book refers to POSIX standard changes in SED etc. so may account for different behaviour by my Mint version of grep, sed and awk etc. from their original examples, as I think happened below. As an introduction to the ideas of iteration and recursion using SED: In simple terms, ...  SED Basics using O_Reilly.pdf example, and Unexpected Mind-Bending Parsing Behaviour

Some Linux One Line Cmds

Loading

lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1.4T 0 disk /dev/sda1 8:1 0 1.4T 0 part /1500GB sdb 8:16 0 931.5G 0 disk /dev/sdb1 8:17 0 931.5G 0 part /Quadra sdc 8:32 0 149.1G 0 disk â”─sdc1 8:33 0 142.6G 0 part / â”─sdc2 8:34 0 1K 0 part /dev/sdc5 8:37 ...  Some Linux One Line Cmds

Cool Command #8 – lsof

Loading

An lsof Primer here for this very powerful tool: https://danielmiessler.com/study/lsof/ 10 lsof Command Examples in Linux man lsof DESCRIPTION Lsof revision 4.86 lists on its standard output file information about files opened by processes for the following UNIX dialects: Apple Darwin 9 and Mac OS X 10.[567] FreeBSD 4.9 and 6.4 for x86-based systems FreeBSD ...  Cool Command #8 – lsof

Fix Double Minus Sign Problem in WordPress in Theme Functions php

Loading

Why do programmers/bosses/managers feel they have to interfere in stuff that's not needed? A Bill Gates/MS, know all, egomaniacal, OCD control freak character trait or something? If people can't write or type properly, why is it up to a programmer to "cater" for it by DEFAULT???!!! Jeez..."texturize"...Really..!? Shit! My question mark is placed after the ...  Fix Double Minus Sign Problem in WordPress in Theme Functions php

Using Awk, Sed, Cut and TR To Cut a Column List for Character Substitution and Nmap Bad Ports List

Loading

*BEWARE! a  note on terminal characters before you start: apostrophe pairs can be problematic for copy/paste operations between different editors, term types, WordPress etc. The common standard is now UTF8, so make sure you set PuTTY correctly using the Translation option: This may still paste one of the two apostrophes in the wrong "direction" and ...  Using Awk, Sed, Cut and TR To Cut a Column List for Character Substitution and Nmap Bad Ports List

Adding a SSH Share Using SSHFS and Viewing Netstat

Loading

I just want to doc the basics of this and will add as I find more info, with the initial overview coming from: https://www.howtogeek.com/howto/ubuntu/how-to-mount-a-remote-folder-using-ssh-on-ubuntu/ Beware the line for changing ownership of /dev/fuse or any other fuse related commands at that link for Ubuntu! My Mint PC lost my user mdm (mint desktop manager) access so ...  Adding a SSH Share Using SSHFS and Viewing Netstat

First Python Scripts For Pi Camera

Loading

https://www.raspberrypi.org/documentation/hardware/camera.md I'm not a programmer at all - never was - I tried a few times at college with C and Java, but hated it... So this is an enjoyable start for me, as there is immediate satisfaction, as Python is "English"; plain and simple as it gets with programming - so far anyway - ...  First Python Scripts For Pi Camera

PXE Menu Issues and ISO Boot File Problems

Loading

I'm still struggling at this point to get correct info to make some of these menus work. Those in bold work. -- default menu.c32 prompt 0 timeout 300 ONTIMEOUT local menu title # PXE Boot Menu # label 1 menu label (^1) Install pmagic32 kernel pmagic/bzImage INITRD pmagic/initrd.img,pmagic/fu.img,pmagic/m32.img,pmagic/files.cgz APPEND edd=on vga=normal label 2 menu label ...  PXE Menu Issues and ISO Boot File Problems

Cryptography + Encryption

Loading

The GCHQ guys inc. Clifford Cox finally get a mention as the original secret inventors of RSA: ISCW_Cryptography_and_VPNs_OU_template_v1.ppt

Cool Cmd #6 – dd_rescue

Loading

Continuing from the last Post, I want look at dd_rescue... Simply, it recovers data blocks as small as 512k in fwd or rev directions to maximise the potential for reading bad sectors. If it can't, it continues on without quitting to the next sector, writing zeros in place of the corruption, which may mean possible ...  Cool Cmd #6 – dd_rescue

Recover Your Data and PC

Loading

Protect Your Data and PC ***** For more of Business/Corporate level security understanding of legal requirements for Data Protection see this PowerPoint: Introduction_to_Security.ppt For Server 2003/other(?), the ONLY FREE AV software I know that will run on it is Immunet - that will remove/quarantine files also. https://www.immunet.com/ ClamAV for Windows is a scanner - it ...  Recover Your Data and PC

Basic Security Concepts – Principles For Any System or OS

Loading

Because there are so many aspects to overall system security management that have to be considered, basic security protocols and definitions have been established to enable a structured, more modular approach to separating and simplifying the many complex and often overlapping areas involved in security issues, so that forms of system protection could be researched, ...  Basic Security Concepts – Principles For Any System or OS