Thursday, August 11, 2022

Solved: bootable ssd big sur m1 apple silicon

Creating bootable external ssd  macos big sur m1 apple silicon

I installed macos Big Sur 11.6.8 on an external 256GB m.2 NVME ssd connected to the Thunderbolt port on an m1 Apple Silicon machine.  I used both the standalone installer downloaded from the App Store and from macos Recovery mode (holding down the power button).

Each time install would fail at the first reboot of the installer.

The install log in the Installer gives a hint:

 bridge device not found 

Problem:
 
The ssd is bus powered; it is not powered up when the installer restarts.

Solution:

The external ssd needs an external power source.  I connected the ssd to a port on a drive dock with its own power brick.  After installation you can plug the external ssd into the Thunderbolt port again.  


In addition, remember to set your internal drive as the startup drive (Apple menu> system prefs>Startup Disk) when you disconnect your external ssd.  Your system may not start correctly if you don't set the startup disk.

This applies to macos Big Sur 11.6.8.


 

 

 



Sunday, July 10, 2022

MediaWiki docker image

 
 
docker pull mediawiki
docker run --name alw-mediawiki -p 8080:80 -d mediawiki
 
# launch from host browser
http://localhost:8080/
 
follow install screens
sqlite install
 
 
# copy downloaded LocalSettings.php
 
 
docker cp LocalSettings.php [ContainerID]:/var/www/html
 
   

MediaWiki on Alpine Linux with Docker

# On Docker Alpine Linux

#  install pkgs

apk add curl lighttpd php php-dom php-json php-pgsql php-cgi php-mbstring php-xml php-ctype php-fileinfo php-iconv php-zlib php-gd php-session imagemagick diffutils

 #

#

 apk add postgresql postgresql-client openrc

 

#

mkdir -p /usr/share/webapps/

cd /usr/share/webapps/

 

# latest release of MediaWiki

# https://www.mediawiki.org/wiki/Download

 

curl https://releases.wikimedia.org/mediawiki/1.38/mediawiki-1.38.2.tar.gz >mw.tar.gz

 

tar zxvf mw.tar.gz

mv mediawiki-1.38.2 mediawiki

# rm mw.tar.gz

chown -R lighttpd /usr/share/webapps/

ln -s /usr/share/webapps/mediawiki/ /var/www/localhost/htdocs/mediawiki

 

# Edit lighttpd.conf and uncomment include "mod_fastcgi.conf"

nano /etc/lighttpd/lighttpd.conf

 

Starting

/etc/init.d/postgresql setup 


# hmmmm puzzling output

# touch
/run/openrc/softlevel
# more complaints
touch: /run/openrc/softlevel: No such file or directory

mkdir -p /run/openrc

touch /run/openrc/softlevel


/etc/init.d/postgresql setup 

# Success goto next step 







/etc/init.d/postgresql start && rc-update add postgresql default


#
* WARNING: postgresql is already starting




rc-update add postgresql default
#
# * service postgresql added to runlevel default
#

# run this now
/etc/init.d/lighttpd start && rc-update add lighttpd default








Config your wiki

Install the wiki accessing
http://WEBSERVER_IP_ADDRESS/mediawiki/mw-config/index.php
When you finish, press "Install MediaWiki" button, and that's all. :) You have MediaWiki working. To access go to http://WEBSERVER_IP_ADDRESS/mediawiki and enjoy!

 

docker inspect [containerID] | grep IPAddress

rc-status -a

 

# ps is different on Alpine!



 

 

 

 

 

https://wiki.alpinelinux.org/wiki/MediaWiki

Wednesday, March 23, 2022

LAN dns services: is it too much to ask?

LAN dns services

Get dns services for LAN with:

  • pi-hole
  • unbound
  • docker

 

Proxmox on a Laptop

Installing Proxmox on a laptop
Fujitsu Lifebook AH530, i5 bad thermals

DO

  • replace thermal paste
  • SATA II/III SSD.
  •  


DONE

  • Promox 2 old machine cluster; not enough storage or processing power and uses too much electricity. So not useful.

machine1: i7-4790 8GB RAM

machine2: Core2 Duo E7500 4GB RAM

NOT

  • m1 macs won't allow p-h to listen to port 53 (disabling SIP temp fix)
  • Do not run on a USB; the high rates of writing will quickly kill the USB.

 

 

 

 

 

Tuesday, February 22, 2022

Install awesome wm on Alpine Linux Docker

 Install awesome window manager

 

 

https://wiki.alpinelinux.org/wiki/Awesome(wm)_Setup

more /etc/apk/repositories apk add nano
apk add awesome feh lxterminal
apk add lua
apk add adwaita-gtk2-theme adwaita-icon-theme
apk add cairo-gobject pango


 

# save your image 

# from host shell

 docker commit 2240105620b7 baxter/awsm:version01

 

# startx not found

# login to <new user>

 

 

https://thispointer.com/docker-how-to-stop-remove-a-running-container-by-id-or-name/

 

 

 


 

 

 

 

 

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


Doom Emacs

https://github.com/doomemacs/doomemacs

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'