Friday, 18 October 2024

Running a local AI called Ollama - No internet required!

I have been using a Standalone AI at home. By Standalone I mean it needs no internet access. 

This is private and secure. It also means if you run it on a laptop, in a blackout you still have access to AI's smarts as long as the laptop has power.

I use Ollama on Windows. This program loads a model with specialised knowledge, like medicine, or general knowledge. I find most models can answer most questions, though specialised models will have greater knowledge in their area of expertise.

First steps:
Download  Ollama here

Now you need to download models to load. They are searchable on the same Ollama download page.
Hint: If you have an older PC and don't have an AI chip in your computer, try the lightweight models as the bigger ones can be very slow to answer questions. By slow I mean many seconds to minutes to reply. If unsure you will find out soon enough when you ask questions.

The following commands are run in a powershell window.

To download a model and run it:

$ ollama run <some model>

eg. ollama run llama3.2

To download a model but not run it:

$ ollama pull <some model>

To delete a model:

$ ollama rm <some model>

To find out what models you have installed:

$ ollama list

To update the models you have downloaded previously:

ollama list | Select-Object -Skip 1 | ForEach-Object {
    $model = ($_ -split '\s+')[0]
    if ($model -and $model -ne "NAME") {
        Write-Host "Updating model: $model"
        ollama pull $model
    }
}

Saturday, 5 October 2024

How I fix a USB to HDMI adaptor that stops working in Windows 10

This is how I fix a USB to HDMI adaptor that stops working in Windows 10.



  • Open Task Manager (CTRL+ALT+DEL, choose Task Manager option).
  • Find Windows USB Display (32 bit) and End Task on it.
  • Install the driver software. Note: It will state it needs to uninstall the original software and then ask to reboot. I found the reboot unnecessary. Just allow the uninstall and continue the installation.
  • If it still isn't working, reboot.


Saturday, 6 July 2024

How to login to Linux when you have forgotten the password.

You cannot recover the original password but you can change it to enable log in.

Hold down the Shift key when you boot until you get the Grub menu.

Choose the item (usually the second one) that reads something like Ubuntu, with Linux ... (recovery mode).

When it boots, select the option "root -- Drop to root shell prompt".

You will see a flashing cursor. Type the following and press Enter:

passwd user

but replace "user" with your username. Type the new password when prompted (twice).

Then press Ctrl-Alt-Delete to reboot normally.

Credit to the original author here.

Monday, 22 April 2024

Adding language packs when options are greyed out in Windows 10

After Googling for a fix I inadvertantly found the fix myself.

Open Settings->Time & Language->Language.



I found that my language was installed BUT my language had no Microphone icon in its list

Clicking the language displayed Options. Clicking Options gave me the ability to add Speech and Handwriting.

The above image is after adding the Speech.


 

Friday, 19 April 2024

No sound in Brave Browser

After you have tried rebooting the PC (Turning it off and on again😉), try the following.

Step 1: In Windows, right-click the speaker icon at the bottom right corner of the desktop and select Open Volume mixer.
Step 2: Once it is open, move the slider to change the volume of the system sound or for a specific program. Adjust the slider to increase the browser's volume.
Also, verify that the browser isn't muted as in the following screenshot. If so, click it to unmute it.




Tuesday, 9 April 2024

Retrieve Windows WiFi passwords

Windows remembers every Wi-Fi password you've ever used. The following is how it reconnects to those networks.

To display all your saved Wi-Fi networks, in PowerShell run:

netsh wlan show profiles 

Then run 

netsh wlan show profile name="PROFILE" key=clear" 

Naturally, replace PROFILE with the profile from the first command's output.
Look at KeyContent for the network's password.