Tuesday, October 11, 2022

speed up oh my zsh launch

Slow Start Up

The first time I launch terminal (which I rarely do) it takes about 10 seconds to finish loading.  Way longer than it should but I didn't bother fixing it.

 

What Really Happened

Still slow, adding the two lines to .zshrc did not fix it. Commented them out.

Added:

export NVM_LAZY=1


Will not fix for now.

 

 

Fix

Launch your Terminal app.  I used the nano editor in Terminal. 

Edit .zshrc

 

nano .zshrc

then copy and paste, the lines below to the end of your .zshrc file

# configure node version manager
export NVM_DIR=~/.nvm [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" --no-use 
# This loads nvm
alias node='unalias node ; unalias npm ; nvm use default ; node $@'
alias npm='unalias node ; unalias npm ; nvm use default ; npm $@'
 

Info

 

 

 




Sunday, September 11, 2022

Audacity 3.2.1 and libraries

Audacity 3.2.1

Tried arm64 and x86_64 both available for download.  The libraries are available in FAT binaries; works great.

 
Ignore below:

Building FFmpeg import/export library notes

Visit 2: building m1 arm64 apple silicon native ffmpeg


port install automake fdk-aac git lame libass libtool libvorbis libvpx \
opus sdl shtool texi2html theora wget x264 x265 xvid nasm
 Error: Port fdk-aac not found 
Error: Port opus not found
Error: Port sdl not found 

Error: Port shtool not found 

Error: Port theora not found



Error: Port shtool not found


Corrections:
sudo port install libfdk-aac
sudo port install libopus
sudo port install libsdl
sudo port install libtheora



sudo port install automake libfdk-aac lame libass libtool libvorbis libvpx libopus libsdl texi2html libtheora wget x264 x265 xvid nasm

  


Install shtool manually:
https://www.gnu.org/software/shtool/

 --annoying of MacPorts to drop shtool?  brew has a formula



In /Users/b____/Documents/builds/ffmpeg_src/ffmpeg-4.4

./configure

WARNING: pkg-config not found, library detection may fail.



sudo port install pkgconfig 

./configure
make

sudo make install



The binary will be installed in:

/usr/local/bin/ffmpeg

 

Success building ffmpeg but ...



Still no ffmpeg.55.64bit.dylib !?!

Let's wait for Release 3.2

 

Visit 1: Building audacity


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/