News:

The Latest electronic and computer Tips that work!

Main Menu
[Hide Attachments]
There are no attachments!

Recent posts

#71
Raspberry Pi / Airprint With Raspberry Pi
Last post by branx86 - July 01, 2024, 09:57:43 PM
#72
General Discussion / Low power UPS 5v, 9V, 12v
Last post by branx86 - July 01, 2024, 08:12:07 PM
Low power ups
#73
General Discussion / Mini A/C from 9volts /Scale up...
Last post by branx86 - July 01, 2024, 08:06:27 PM




00:01 -  Demonstration of the effective operation of a homemade cooler for beverages. This Freezing AC cooler transforms copper pipes into ice pipes!
00:25 - Use a 4.7mm diameter copper tube!
00:45 -  Wind the copper tube around a full aluminum Coca-Cola can.
01:21 - A 25mm diameter stainless steel sleeve serves as a second base for making the condenser.
02:19 -  A thin copper tube with a diameter of 1.2 millimeters will serve as the capillary tube.
04:56 - Solder the capillary tube to the condenser and evaporator using special solder and flux.
05:26  - Solder a connector for a 9-volt battery to the pump and fan.
07:00  - The first stage of testing is conducted in an open area to ensure the efficient passage of liquid gas through the pipes and capillary system of the conditioner.
#74
General Discussion / APC Linux Monitor
Last post by branx86 - July 01, 2024, 01:14:43 PM
https://srbu.se/articles/linux-et-al/configure-apcupsd-for-use-with-centos-6-and-apc-back-ups-es-700

Getting the source and installing (compiling) it
Go here; https://sourceforge.net/projects/apcupsd/?source=directory and download the latest version.

Go to your Downloads folder and untar the archive, then start compiling the source for your system.

cd ~/Downloads
tar -xvf apcupsd-3.14.14.tar.gz
cd apcupsd-3.14.14
./configure --enable-usb
If the above configure step fails, you may want to check that your system has the needed dev tools installed.

yum groupinstall "Development Tools"
When installed, rerun the configure.

./configure --enable-usb
make
make install


Configure the daemon
The config file is in /etc/apcupsd/apcupsd.conf. Edit it with eg nano.

nano /etc/apcupsd/apcupsd.conf
Change the following lines to your specification.

UPSNAME ups1
UPSCABLE usb
UPSTYPE usb
DEVICE <blank>
Please note, the DEVICE line must not be commented. It must be there but the device should be blanked.

The below lines can be left with their default settings, or changed to suit your situation.

ONBATTERYDELAY 6
BATTERYLEVEL 5
MINUTES 3
TIMEOUT 0
NETSERVER on
The NETSERVER must be on in order to check the UPS status with apcaccess. Check any of the sources below to find out what the settings do!

Testing the UPS
Stop the apcupsd(aemon) if started.

service apcupsd stop
apctest

Enable the daemon
chkconfig --list | grep apc
apcupsd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
chkconfig apcupsd on
chkconfig --list | grep apc
apcupsd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 

Control apcupsd
service apcupsd start
service apcupsd stop
service apcupsd restart
apcaccess status


Enable CGI
Earlier we just used the --enable usb parameter to tell the installer we had a USB-type UPS. If we want to also enable CGI, we need to run the below.

It doesn't matter if you already have a working apcupsd install, you can run this without breaking anything.

./configure --enable-usb --enable-cgi --with-cgi-bin=/var/www/cgi-bin/apcupsd-cgi

What the above does is

Enable USB, because we have a USB-type UPS.
Enable the CGI bits.
Tells the installer where to save the cgi-scripts. The default is /etc/apcupsd, which may not be optimal.
 

If you get this error after running ./configure..., you need to install libgd.

configure:
error: Your system lacks the GD library which is needed for compiling the apcupsd CGI programs.
Please install libgd and re-run the ./configure script. Alternatively you can disable the CGI support.
 

For CentOS 6 it couldn't be found in the usual repos, but a Google search later revealed where to find it; https://centos.pkgs.org/6/centos-x86_64/gd-devel-2.0.35-11.el6.x86_64.rpm.html.

Therefore;

yum install http://mirror.centos.org/centos/6/os/x86_64/Packages/gd-devel-2.0.35-11.el6.x86_64.rpm
 

Install it and re-run the ./configure as above.

On a successful run, you should now see the below

Configuration complete: Run 'make' to build apcuspd.
 

Run make and make install as earlier.

When done, you should see new contents in /var/www/cgi-bin/apcupsd-cgi.

root@cyndane2:/var/www/cgi-bin/apcupsd-cgi # ll
total 384
drwxr-xr-x 2 root root 4096 Nov 30 15:53 .
drwxr-xr-x. 3 root root 4096 Nov 30 15:39 ..
-rwxr-xr-x 1 root root 99256 Nov 30 15:53 multimon.cgi
-rwxr-xr-x 1 root root 83746 Nov 30 15:53 upsfstats.cgi
-rwxr-xr-x 1 root root 96980 Nov 30 15:53 upsimage.cgi
-rwxr-xr-x 1 root root 94399 Nov 30 15:53 upsstats.cgi


If you see error  apcupsd[543317]: /etc/rc.d/init.d/apcupsd: line 12: /etc/rc.d/init.d/functions: No such file or directory install line below
# dnf install -y initscripts

Once installed Browse to : http://www.(Yoursite).com/cgi-bin/apcupsd-cgi/multimon.cgi
#75
Windows Fixes / Change Password Hint on login ...
Last post by branx86 - June 27, 2024, 07:14:15 PM
 

Step 1- On the search bar, type "Settings" then locate and click on "Accounts".

Step 2- On the left navigation pane, locate and click on "Sign- In Options", then click on "Password" Click Change.

Step 3- Type your current password/new password and the hint that you want to provide under "Password Hint".
#76
Linux Fixes / HP Drivers for Linux
Last post by branx86 - May 08, 2024, 05:06:22 PM
sudo apt-get update
sudo apt-get install hplip cups #Leave cups off if already installed.
sudo apt-get install  foo2zjs  #Needed by some hp printers Laserjet 2600 ,1020
 
hp-plugin #Some printer drivers need this extra plug-in

In a Terminal:
sudo yum install hplip
sudo yum install hplip-gui
hp-setup
Do:  hp-setup -gi 192.168.1.12  if your printer is not found but on the network.
#77
Windows Fixes / Create List of all installed P...
Last post by branx86 - December 21, 2023, 07:53:34 PM
In admin CMD window
wmic /output:C:\list.txt product get name, version

Then go to C:\ and you'll see the file list.txt with all your installed softwares.

Powershell
# Get the current user's Documents folder path
$documentsPath = [Environment]::GetFolderPath("MyDocuments")
$outputFile = Join-Path -Path $documentsPath -ChildPath "InstalledPrograms.txt"

# Collect installed programs from registry
$installedPrograms = Get-ItemProperty -Path `
    HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*, `
    HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*, `
    HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* |
    Select-Object DisplayName, DisplayVersion, Publisher, InstallDate |
    Where-Object { $_.DisplayName } | # Filter out entries without a DisplayName
    Sort-Object DisplayName

# Output to file in table format
$installedPrograms | Format-Table -AutoSize | Out-File -FilePath $outputFile -Encoding UTF8

# Notify user
Write-Host "Installed programs list saved to: $outputFile"


or the easiest

In PowerShell as admin
# Get the list of installed programs from the registry
$installedPrograms = Get-WmiObject -Class Win32_Product | Select-Object Name, Version

# Define the file path to save the list in the user's Documents folder
$userDocumentsPath = [Environment]::GetFolderPath('MyDocuments')
$outputFile = "$userDocumentsPath\InstalledProgramsList.txt"

# Save the list to the output file
$installedPrograms | ForEach-Object {
    "$($_.Name) - $($_.Version)"
} | Out-File -FilePath $outputFile

Write-Host "Installed programs list has been saved to: $outputFile"


#The output file will be saved in your Documents folder labeled ( InstalledProgramsList.txt ) and will list the installed programs with their names and versions.


#78
General Discussion / Bose Soundlink 2 Fix for Blink...
Last post by branx86 - December 14, 2023, 12:07:09 AM

 

On the Bose page do  A D V up arrow and Down Arrow and then reflash your speaker with the same firmware and have nice music afterwards.
#79
Windows Fixes / Fix Drive Icons back to Defaul...
Last post by branx86 - December 13, 2023, 11:51:33 PM

#80
Raspberry Pi / Scandisk (Raspberry Pi SD Card...
Last post by branx86 - November 24, 2023, 05:49:05 PM
1st - sudo umount /dev/mmcblk0p2
2nd - sudo fsck /dev/mmcblk0p2