Wednesday, November 10, 2021

Julia emacs support and DateTime

Date Time

 

using Dates

import dates


Julia mode for Emacs

https://github.com/JuliaEditorSupport/julia-emacs


weird Big Sur things: zsh

 

 

 h | grep | build


and nothing; zsh history only give you the last last 10 commands, history 1 gives you all the saved commands.  Confusing?

Just stick this in your .zprofile

alias ll='ls -lG'
alias h='history 1'
 

Thursday, October 14, 2021

emacs Universal build Intel x86_64 and arm64

emacs Intel, arm build

If you just want to install gnu emacs for macos and get going Emacs for MacOSX is the place to go.  

I did the builds on my early-2015 mbp with Big Sur 11.6.
  • read https://github.com/caldwell/build-emacs
  • download build scripts
 
I didn't install xcode.
xcode-select --install (installs command line tools)

install macports
sudo port install xz
./fetch-emacs-from-ftp -v ftp://ftp.gnu.org/gnu/emacs/
 
# port install xz
# if you need to convert xz to bz2
# xzcat -c emacs-27.2.tar.xz | bzip2 > emacs-27.2.tar.bz2

./build-emacs-from-tar -v emacs-27.2.tar.bz2 release 

Success:
Built Emacs-27.2-11.6-x86_64.tar.bz2, Emacs-27.2-11.6-x86_64-extra-source.tar

  • CODESIGN crash
Then I reproduced those same steps on an m1 mac mini with xcode13 installed and signed it:
  • ./combine-and-package -v --sign "Common Name" Emacs-27.2-11.6-arm64.tar.bz2 
    • replace "Common Name" with the name in the keychain access login cert.
  • see: code signing issue #103  
  • Success!  Thanks Emacs for MacOSX!
TODO:
Go back to the MBP and try the codesign step. 


 

 

 




 

Download Xcode 13 xip

Download Xcode 13 xip

I went on a search for Xcode which is on the App Store but also just downloadable:

 https://download.developer.apple.com/Developer_Tools/Xcode_13/Xcode_13.xip

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 

 



 

Monday, August 23, 2021

macports gramps geneology build Universal binary

 

Installing macports pkg manager for macos 11.5.2


  • Install port 
  • edit macports.conf; uncomment the universal_archs line

sudo nano /opt/local/etc/macports/macports.conf

sudo port install gramps +universal

try this instead 

sudo port -s install gramps +universal 

result:

--->  Configuring m4

Error: Failed to configure m4: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_m4/m4/work/m4-1.4.19/config.log

Error: Failed to configure m4: configure failure: command execution failed

Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_m4/m4/main.log for details.

Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Error: Processing of port gramps failed

 

known issue

#62991    m4 @1.4.19+universal: configure: error:
 
sudo port clean m4 

sudo port install gramps

result:


--->  Configuring db53

Error: Failed to configure db53: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_db53/db53/work/db-5.3.28/build_unix/config.log

Error: Failed to configure db53: configure failure: command execution failed

Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_db53/db53/main.log for details.

Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Error: Processing of port gramps failed

--->  Some of the ports you installed have notes:

  gawk has the following notes:

    readline support has been removed from gawk. If you need to run gawk interactively, install rlwrap:

    

    sudo port install rlwrap

    

    and run gawk using rlwrap:

    

    rlwrap gawk ...


db53 report filed

#63400    Error: Processing of port db53 failed


Check:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_m4/m4/work/m4-1.4.19/config.log


$xcodebuild -showsdks




Nice Table of Xcode and macos versions

https://developer.apple.com/support/xcode/




Update needed after OS upgrade


sudo xcode-select --install



Big Sur problem builds

broken ports









Sunday, August 15, 2021

Friday, August 13, 2021

Apple m1 Big Sur 11.5.2 update

macos Big Sur 11.5.2: Large update 

took longer than I thought it would

Updated my 2020 Apple m1 mac mini model A2348 with Big Sur 11.5.2
  • mystery update no release notes
  • see the excellent eclecticlight blog for more info
  • blaaaaarrgh whaaaaaaa: the update bar on reboot looked frozen. ugh. Five minutes later the text appeared with a time estimate, whew!
  • please can't some big brains at apple reduce the SIZE of these updates? How about 300MB?
  • RESULT: everything seems fine so far
  • Relocated Items folder: /etc/group trustd 282
  • Get rid of Other user on login screen; how to hide other users

Explore using Nix instead of Homebrew

 

Explore using Nix instead of Homebrew.

https://wickedchicken.github.io/post/macos-nix-setup/

 Moving from Homebrew to Nix Package Manager

https://dev.to/louy2/use-nix-on-macos-as-a-homebrew-user-22d

Not recommended, use it on Debian

Switching from Homebrew to Nix - ErrRight

TODO: Debian config, Export vbox

DO

 NOT 

 

DONE

  • added myself to sudoers file:
nano /etc/sudoers

 
 

  • more







     

     

     

     

  •  


Thursday, August 12, 2021

Visiting Nix package manager and Rocket

Nix, NixOS, Rust

An enthusiast gives it a spin+ 

I used to visit NixOS once a year; I did it every year from 2010-12 then stopped.  Things have progressed immensely but I don't have a home application for what NixOS does.  If you don't have need of a reliably reproducible system its like trying to drive a zamboni wrapped in plastic wrapAnd why it's not.  There's a live cd give it a whirl.

 How refreshing to discover Xe and her website.  Here's how she uses Nix (package manager) and NixOS:


 I have the configuration for my shell, emacs, my window manager and just about every program I use on a regular basis defined in their own NixOS modules so I can pick and choose things for new machines.

  Xe 


As an example of devotion to NixOS see the highly entertaining: ianthehenry.com

I am going to try to replicate Xe's example on the Windfall System.  

 


Windfall Computer Part 3

  ...Previously

 

 Installed virtualbox on the Road Pooter. 
VirtualBox Guest Additions failing to install. 

 

launch powershell in admin mode

 

 ../VBoxManage [more stuff here]


google around.  this is the stuff I wanted to avoid ugh.


Virtualbox working great on the Windows 10 host.   Installed the NixOS livecd image with Plasma.  Looks very very slick.  Installing Debian Buster 10 so I can try the Nix package manager.

Next time, install:
VirtualBox Guest Additions on Debian Buster 10


Let Debian vm get an IP address from DHCP




Windfall Computer Part 2

 ...Previously

 

  • installed 2x4GB sticks DDR3L RAM and Ubuntu 20.04

DDR3L RAM low(er) voltage so uses less power 

Doing almost anything on Linux requires some amount of sudo apt update get install. 


  • reverted to Windows 10 H21
unknown SMB bios device
no setup DVD-iso on ASUS site

Asus H81M-K audio driver:

  • installed Virtualbox 6.1
  • installed Starcraft 2 and World of Warships

Next ...

Windfall Computer Part 1

 Covered in dust and leaves; on the sidewalk a black tower pc. Free.  Hmmm.


Quality Corsair case.  Plastic retention clips brittle with age.  What was inside?


  • Asus H81M-K motherboard
  • i7-4790 cpu (85W TDP)
  • stock Intel heatsink and fan
  • quiet case fans
  • 8GB DDR3 RAM

I had hit the jackpot!  Free on the street but Windows 10 install fails. ubuntu install fails.  Ran memtest86+ for hours and then found bad RAM. 

 

Next ...