Wednesday, 5 June 2024

How to get the UCTRONICS OLED working on your Raspberry Pi rack mounts.

Step 1. "sudo raspi-config" then choose Interface Options and Enable "i2c"

Step 2. git clone https://github.com/UCTRONICS/U6143_ssd1306.git

Step 3. cd U6143_ssd1306/C

Step 4. sudo make clean && sudo make

Step 5. sudo ./display

Step 6. Next 2 steps are to ensure this runs at start up every time. If you skip these then it will look like the display is working after a reboot but the second line will be stuck on one stat (mine was stuck on Mem for example) 

 "sudo nano /etc/rc.local" 

Step 7. Add the following below fi: 

cd /home/pi/U6143_ssd1306/C

sudo make clean

sudo make

sudo ./display &


(https://github.com/UCTRONICS/U6143_ssd1306) 

Tuesday, 4 June 2024

Flash image using Balena Etcher

 What a pain! PITA!

Got there in the end. This was me trying to flash a Raspberry Pi Lite image to a Samsung Pro Plus Micro SD card via an Orico USB to SD card adaptor. Brand new card and brand new adaptor as my old one was reading incorrect sizes on old SD cards.

Step 1. Disable Protected folder access in Windows Security settings. It was not enough for me to add a program-specific exception to the list. (Remember to turn this back on when finished!)

    

Step 2. If you have a half-baked failed etch written to your SD card, open up disk manager (start\run "diskmgmt.msc" and delete any partitions that are there - 

    
This might have been the crucial step?

Step 3. Reboot your machine. Not sure if this helped or not but my machine locked up completely and after I powered it down and back on again (and followed the previous 2 steps) I got a working etch so who knows!?



Step 4. Change your USB port to a decent one. I was using one on the top of my case. Not sure if that one was 1,2 or 3 but I didnt trust it so I used a blue USB 2.0 port on the back of the case, directly attached to the Motherboard, and this might have also helped. (this was actually what caused my PC to lock up and need a reboot in step 3 above... Worried I might have some dicky hardware now!?!)

Step 5. Turn Windows Protected Folder access back to "on". You need this! I need this. Everyone needs this!



Certutil - Built-in Windows utility to calculate file hashes

Run command C:\> certUtil -hashfile <PATH_TO_FILE> <HASH_ALGORITHM>


e.g.

 C:\Users\[user]>certutil -hashfile "c:\Users\[user]\Desktop\2024-03-15-raspios-bookworm-armhf-lite.img.xz" sha256

SHA256 hash of c:\Users\[user]\Desktop\2024-03-15-raspios-bookworm-armhf-lite.img.xz:

4fa99737265ac338a9ed0643f502246b97b928e5dfffa92939242e26e290638d

Monday, 3 June 2024

How to remove Hyper V boot "Files" from the Boot order (under "Firmware" menu in Settings)

(Courtesy of https://sandyzeng.com/hyper-v-remove-firmware-file-bootmgfw-efi/) 


Here is the simple way delete all the bootmgfw.efi file at once. Use powershell.

$VMName = "Your virtual machine name"
Get-VMFirmware -VMName $VMName |ForEach-Object {Set-VMFirmware -BootOrder ($_.Bootorder | Where-Object {$_.BootType -ne 'File'}) $_ }

Saturday, 8 March 2014

Simple way to get ASA 8.4(2) Working in GNS3

Copied almost verbatim from Leo Li (thanks):

1. Download the required files from the below address:

http://www.mediafire.com/download.php?ssadit26tl3llms

2. Configure GNS3 preferrences -> QEMU -> ASA with below settings

RAM: 1024 MiB
Number of NICs: 6
Qemu options: -m 1024 -icount auto -hdachs 980,16,32

Initrd: C:\ASA\asa842-initrd.gz
Kernel: C:\ASA\asa842-vmlinuz
Kernel cmd line: -append ide_generic.probe_mask=0x01 ide_core.chs=0.0:980,16,32 auto nousb console=ttyS0,9600 bigphysarea=65536

3. Activate the license using the below code:

activation-key 0x4a3ec071 0x0d86fbf6 0x7cb1bc48 0x8b48b8b0 0xf317c0b5

Friday, 8 November 2013

Screen Tearing / Vsync Problems on Desktop - Windows 8

Not posted in a while since starting out under my own steam as a freelancer. Hard work!!

Anyway,

I've noticed some screen tearing on my new rig - a Dell XPS 8700 with Geforce 650 Ti. This screen tearing is occurring simply on the desktop under normal use, normally when something is moving across the screen at an average pace. This is not occuring in Games, presumably as Vsync is doing it's job. But on the desk top... Pain in the ass!

So googled this for a while and came up a with a lot of people having the same problem but they were all on Windows 7 and had decided for one reason or another, to disable Windows Aero. Windows 8 doesn't have Aero so this was not my problem.

I played with the force V-sync settings in Nvidia Control panel. - no go.

Then I thought about my weird dual monitor setup and how most settings were unavailable for the secondary monitor (even though it's the Primary). I had windows set up to "duplicate displays" under the Screen Resolution control panel (Control Panel\Appearance and Personalization\Display\Screen Resolution or simply right click on the desktop -> Screen Resolution)

I set it back to "extend" instead of "duplicate" and the problem appears to have gone away!

Yay.


Wednesday, 24 April 2013

Showing SNMP Strings in a Cisco ASA

Hi Everyone. So... not a single post since October last year! Must try harder...

Trying to figure out what you have configured for an SNMP String on a Cisco ASA can be pain in the arse on ASA version 8 and up. (It looks like they are shown in plain text in versions 7 and earlier). You look at the running configuration


ASA# sh run | inc snmp
 snmp-server host INTERFACE 10.1.1.1 poll community ***** version 2c


 no snmp-server location
 no snmp-server contact
 snmp-server community *****
 snmp-server enable traps snmp authentication linkup linkdown coldstart

You think to yourself (or I do anyway) maybe its not shown in the running config but it is shown in the startup configuration;

ASA# sh start | inc snmp
 snmp-server host INTERFACE 10.1.1.1 poll community ***** version 2c
 no snmp-server location
 no snmp-server contact
 snmp-server community *****
 snmp-server enable traps snmp authentication linkup linkdown coldstart

Nope!

The trick is to simply access the running configuration at a file level to revel it's dirty SNMP secrets;

ASA# more system:running-config | inc snmp
 snmp-server host INTERFACE 10.1.1.1 poll community C0munit7Str1ng version 2c
 no snmp-server location
 no snmp-server contact
 snmp-server community C0munit7Str1ng 
 snmp-server enable traps snmp authentication linkup linkdown coldstart
ASA#

Kick Ass!