Tuesday, September 21, 2021

Using Alpine Linux

 Using Alpine Linux

adduser -h /home/buster -s /bin/ash buster
passwd username
deluser username

# as root
apk update
apk upgrade
apk add pkgname
#
apk info nano
apk add nano
 
# show version
cat /etc/os-release
 
 
 
 
 
# doas = sudo
apk add doas
adduser <YourUsername> wheel
 
nano /etc/doas.d/doas.conf
# add this line:
permit persist :wheel
 
 
 
# apk add sed attr dialog bash bash-completion grep util-linux pciutils usbutils binutils findutils readline lsof less nano curl
 

 

# for Mac keyboard
https://superuser.com/questions/918823/how-to-copy-and-paste-selected-text-in-nano-on-a-mac
 
https://itsfoss.com/nano-editor-guide/
https://linuxhandbook.com/cut-copy-paste-nano/

 
https://www.cyberciti.biz/faq/how-to-add-and-delete-users-on-alpine-linux/


docker commit [ContainerID]

Using Docker, manage those images

Using Docker 

docker commands used recently: 

docker ps

docker commit 3cabaf05a6d7 baxter/manfish:version3

# host shell
history | grep docker

# stop all running docker images
docker ps -a -q | xargs docker stop
 
# remove images
docker ps -a -q | xargs docker rm
 

# CAUTION
#     remove all images 
docker images -a -q | xargs docker rmi -f
 
 
#
docker commit ca4c29b5d3f3 addnano/hint:v1
 
 
docker network ls
 
 


More

https://linuxhandbook.com/remove-docker-images/


NOT 









Monday, September 20, 2021

Docker Alpine Linux on m1 Apple Silicon

Docker on m1 Apple Silicon

  • Get the Docker.dmg for the m1 (580 MB)
  •  Install Docker
  •  launch Docker (CLI button next to run)

Alpine Linux on Docker

  • pull down the official Alpine Linux image for Docker
  • in your docker shell cli (see above) type:
docker pull alpine 

Alpine Linux 








Saturday, September 18, 2021

W10H to Windows 10 Pro; Task Scheduler autostart VB headless

autostart vb Windows 10 Pro host
using Task Scheduler


      • autostart virtualbox vm in Windows 10 H21
      • cannot create task before login need win10Pro
    •  autostart virtualbox vm using Task Scheduler
      • Windows Task Scheduler won't start vb after Hibernate or wol after Win update 9/1/2021
      • repair VB
      • autostart headless does work at reboot
      • currently disabled in Task Scheduler > Triggers >

Tuesday, September 7, 2021

Building Audacity on m1 apple silicon

Building Audacity on m1 apple silicon

Don't bother with all the stuff below.  Audacity is now available as an arm64 m1 native binary.  The x86_64 version works great too!  Great work developers!

DONE  

Visit 1

 
  • install macports for Big Sur 11.5.2
  • sudo port install audacity
  • Success, kind of, version 2.2.2 popped out in glorious Apple Silicon binary but I couldn't get the current 3.0.4.
  • pull request BUILDING.md typo, correction:
 cmake -GXcode -T buildsystem=1 -Daudacity_use_mad="off" -Daudacity_use_id3tag=off ../audacity
 
git clone https://github.com/audacity/audacity
  •  sudo pip3 install conan   
  • activated venv using py-env
  • master v3.1.0 failed check out 3.0.4
git clone -b release-3.0.4 --single-branch https://github.com/audacity/audacity
  • cmake and Xcode

cmake -GXcode -T buildsystem=1 ../audacity 

open Audacity.xcodeproj

  • rm -rf build/*
  • run cmake again:
 cmake -GXcode -T buildsystem=1 -Daudacity_use_mad="off" -Daudacity_use_id3tag=off ../audacity
 

 

 DO

 Using python3 venv virtual environment:

 BLOCKED 

  • conan install failing(use py-env)
  • source blocked for m1 compile; 
  • downloaded branch beta 12.2 wxwidget not included
  • wxwidget build error
  • Xcode does not build master branch 3.1.0 or 3.0.4
  • 3.0.4 builds then crashes immediately (Intel)
 

First, doing anything on an external USB3 hard drive is painfully slow compared to the blisteringly fast internal ssd.  macports took over an hour to install.

I think macports is finally falling behind since most sites talk about brew (meh). Macports has been working great so far.

I wish m1 virtual machine time was 3cents/hr
 
 

Info