Uncategorized

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:

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

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

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

Cool Command #3 Rsync

Loading

Cool Cmd #3 Rsync man rsync DESCRIPTION Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon. It offers a large number of options that control every aspect of its behaviour and permit very flexible specification of the ...  Cool Command #3 Rsync

Cool Command #2, Find with -exec or -delete or pipe to xargs rm -v

Loading

man find FIND(1) NAME find - search for files in a directory hierarchy SYNOPSIS find [-H] [-L] [-P] [-D debugopts] [-Olevel] [path...] [expression] DESCRIPTION This manual page documents the GNU version of find. GNU find searches the directory tree rooted at each given file name by evaluating the given expression from left to right, according ...  Cool Command #2, Find with -exec or -delete or pipe to xargs rm -v

Cool Command #1 – DD with Progress

Loading

(Amended 18 Sept 2015) sudo dd if=/dev/sdc of=/dev/sdb bs=512 conv=sync,noerror status=progress For an insight into using the best Block Size values when copying to/from different media types, and using DD in general, read this link FIRST - see the quotes to get some perspective and optimise your copying time: https://blog.tdg5.com/tuning-dd-block-size/ "Let's start off with a ...  Cool Command #1 – DD with Progress