Skip to main content
Skip to main content
Nominal vs. continuous power In the United States, Public Law 107-319, established in 2002, defines electric bikes as consumer products, rather than motor vehicles. To distinguish e-bikes from motorized vehicles, the law states that a low-speed electric bicycle is “a two- or three-wheeled vehicle with fully operable pedals and an electric motor of less than 750 watts (1 h.p.), whose maximum speed on a paved level surface, when powered solely by such a motor while ridden by an operator who weighs 170 pounds, is less than 20 mph.”

Announcing an upgraded web server platform 

I have recently moved to the latest Ubuntu LTS release for this web server. 

  • Ubuntu 24.04
  • nginx version: nginx/1.24.0
  • Composer version 2.8.6 2025-02-25 13:03:50
  • PHP version 8.3.6 (php8.3-fpm)
Don't forget to change the MAC Address in the network adapter...
This applies to USB storage & remote drives Drives formatted as FAT or NTFS can be mounted in WSL. Assuming the drive appears in Windows as E:\ then
The commands below are typed into the WSL cli.

Create a mount location in WSL

# mkdir /mnt/e

Mount the drive in WSL:

mount -t drvfs e: /mnt/e

Firstly - set the default user to be "root" like this:
At at CMD prompt with Administrator rights:
C:\WINDOWS\system32>ubuntu config --default-user root

Then open WSL and run:
# passwd defaultuser
To set the password for your preferred user (in example: "defaultuser")

Then, 
At at CMD prompt with Administrator rights:
C:\WINDOWS\system32>ubuntu config --default-user defaultuser

And then restart your WSL.  
Thereafter use the passwd you set above for "defaultuser" above when you run a "sudo" command...

OK here's an easy way to burn a USB Key (Bootable) from iso image. First, find out what the USB Key is appearing as in a list of your drives by executing fdisk -l. In this case, mine is an old 1GB USB Drive: /dev/sdb
donmc@T510:~$ sudo fdisk -l

Disk /dev/sdb: 984 MiB, 1031798784 bytes, 2015232 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 2CBA5013-16E7-4D41-B75D-544A6474498B

Device       Start     End Sectors   Size Type
/dev/sdb1       64     539     476   238K Microsoft basic data
/dev/sdb2      540    6299    5760   2.8M EFI System
/dev/sdb3     6300 1341303 1335004 651.9M Apple HFS/HFS+
/dev/sdb4  1341304 1341903     600   300K Microsoft basic data

donmc@T510:~$ sudo dd bs=4M if=/full/path/to/file/some.iso of=/dev/sdb
163+1 records in
163+1 records out
687079424 bytes (687 MB, 655 MiB) copied, 378.456 s, 1.8 MB/s

When you are prompted by Composer during an update of your Drupal site - there are a few different options.

Here's the expanded version of each:

Discard changes [y,n,v,d,s,?]
y - discard changes and apply the update
n - abort the update and let you manually clean things up
v - view modified files
d - view local modifications (diff)
s - stash changes and try to reapply them after the update
donmc@cooee120 /var/www/jaxbeachtech.com.d8 $ composer update --with-dependencies
Gathering patches for root package.
No patches supplied.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 2 updates, 6 removals
  - Removing drupal/coder (8.2.12)
    The package has modified files:
    D coder_sniffer/Drupal/Test/Array/ArrayUnitTest.inc
    D coder_sniffer/Drupal/Test/Array/ArrayUnitTest.inc.fixed
    D coder_sniffer/Drupal/Test/Array/ArrayUnitTest.php
    D coder_sniffer/Drupal/Test/Array/DisallowLongArraySyntaxUnitTest.php
    D coder_sniffer/Drupal/Test/Array/disallow_long_array_d7/DisallowLongArraySyntaxUnitTest.1.inc
    D coder_sniffer/Drupal/Test/Array/disallow_long_array_d7/disallow_long_array_d7.info
    D coder_sniffer/Drupal/Test/Array/disallow_long_array_d8/DisallowLongArraySyntaxUnitTest.2.inc
    D coder_sniffer/Drupal/Test/Array/disallow_long_array_d8/DisallowLongArraySyntaxUnitTest.2.inc.fixed
    D coder_sniffer/Drupal/Test/Array/disallow_long_array_d8/disallow_long_array_d8.info.yml
    D coder_sniffer/Drupal/Test/Classes/ClassCreateInstanceUnitTest.inc
    238 more files modified, choose "v" to view the full list
    Discard changes [y,n,v,d,?]? y
  - Removing doctrine/instantiator (1.0.5)
  - Removing behat/mink-selenium2-driver (dev-master)
    The package has modified files:
    D composer.json
    Discard changes [y,n,v,d,?]? y
  - Removing behat/mink-goutte-driver (v1.2.1)
  - Removing behat/mink-browserkit-driver (1.3.3)
  - Removing behat/mink (dev-master)
    The package has modified files:
    D composer.json
    D tests/Driver/CoreDriverTest.php
    D tests/Element/DocumentElementTest.php
    D tests/Element/ElementTest.php
    D tests/Element/NodeElementTest.php
    D tests/Exception/ElementExceptionTest.php
    D tests/Exception/ElementHtmlExceptionTest.php
    D tests/Exception/ElementNotFoundExceptionTest.php
    D tests/Exception/ElementTextExceptionTest.php
    D tests/Exception/ExpectationExceptionTest.php
    12 more files modified, choose "v" to view the full list
    Discard changes [y,n,v,d,?]? y
Gathering patches for root package.
No patches supplied.
Gathering patches for dependencies. This might take a minute.
  - Updating composer/installers (v1.5.0 => v1.6.0): Downloading (100%)         
  - Updating drupal/bootstrap_barrio (4.21.0 => 4.22.0): Downloading (100%)         
Writing lock file
Generating autoload files
donmc@cooee120 /var/www/jaxbeachtech.com.d8 $ 
DEV Platform check
This is from here: https://gist.github.com/martin-juul/c4ac5c43c66452592597d894f1c9da2a I applied this to 5.2-5 with no issues: sed -i.bak 's/NotFound/Active/g' /usr/share/perl5/PVE/API2/Subscription.pm && systemctl restart pveproxy.service
This is a very useful feature for access to the host file system from an LXC Container: From: https://pve.proxmox.com/wiki/Linux_Container#_bind_mount_points Bind Mount Points Bind mounts allow you to access arbitrary directories from your Proxmox VE host inside a container. Some potential use cases are: Accessing your home directory in the guest Accessing an USB device directory in the guest Accessing an NFS mount from the host in the guest Bind mounts are considered to not be managed by the storage subsystem, so you cannot make snapshots or deal with quotas from inside the container. With unprivileged containers you might run into permission problems caused by the user mapping and cannot use ACLs. Note The contents of bind mount points are not backed up when using vzdump. Warning For security reasons, bind mounts should only be established using source directories especially reserved for this purpose, e.g., a directory hierarchy under /mnt/bindmounts. Never bind mount system directories like /, /var or /etc into a container - this poses a great security risk. Note The bind mount source path must not contain any symlinks. For example, to make the directory /mnt/bindmounts/shared accessible in the container with ID 100 under the path /shared, use a configuration line like mp0: /mnt/bindmounts/shared,mp=/shared in /etc/pve/lxc/100.conf. Alternatively, use pct set 100 -mp0 /mnt/bindmounts/shared,mp=/shared to achieve the same result.
Subscribe to