Wednesday, December 11, 2024

homebrew hints

homebrew hints

homebrew is unuable; it is taking hours to install the prerequisites for emacs29.  Macport is quick in comparison.

 

 


https://apple.stackexchange.com/questions/198623/uninstall-all-programs-installed-by-homebrew

I usually just do: 
brew remove --force $(brew list --formula)

and

brew remove --cask --force $(brew list)

 

 

https://mac.install.guide/homebrew/4

 

Interview: Max Howell, homebrew

https://sourcegraph.com/podcast/max-howell

 






Friday, December 6, 2024

Fedora on m1 mac UTM

 

Installing Fedora on an Apple Silicon Mac using UTM

I followed the step-by-step instructions, thank you Jason!

Virtualbox: No





Sunday, November 10, 2024

installing fastfetch

Installing fastfetch

Neofetch has been abandoned so fastfetch.

https://github.com/fastfetch-cli/fastfetch

 

https://idroot.us/install-fastfetch-ubuntu-24-04/


## sudo add-apt-repository ppa:fastfetch/stable

## ERROR: ppa 'fastfetch/stable' not found (use --login if private) 

 

sudo add-apt-repository ppa:zhangsongcui3371/fastfetch
sudo apt update 
 
 
old intel hd graphics on i7-4790 reported as Xeon 1200
fastfetch:
GPU: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Con]


neofetch:
GPU: Intel HD Graphics

Install and run inxi for analysis:
inxi -SGx
 
 
Update fastfetch documentation; write python script source: 
https://github.com/fastfetch-cli/fastfetch/issues/830 
https://github.com/fastfetch-cli/fastfetch/pull/1292

 
output: manpage 
 
help2man 

https://unix.stackexchange.com/questions/34516/can-i-create-a-man-page-for-a-script 
https://www.dlab.ninja/2021/10/how-to-write-manpages-with-markdown-and.html
https://www.linux-magazine.com/Online/Features/Parsing-man-pages-for-modern-users 
https://betterprogramming.pub/man-pages-the-complete-guide-800ad93425fe
 
 
 
 

 

 

Saturday, November 2, 2024

sshd troubleshooting

 OpenBSD sshd server

 systemctl status ssh

 

 

Systematic Troubleshooting

Troubleshooting SSH Issues: A Sysadmin‘s Survival Guide

check

hostname

Is host reachable on the network?

ping host


Look at the boot log

journalctl -k -b -1










Wednesday, October 30, 2024

Apple USB keyboard (wired)

Apple USB keyboard wired

It was a hardware problem: three arrow keys were not working on the Apple KB.
 Plugged PS/2 keyboard  into mouse port.

#. Not true:

These are great keyboards but support under Ubuntu is janky.

Info:

https://wiki.archlinux.org/title/Apple_Keyboard#hid_apple_module_options

https://unix.stackexchange.com/questions/407501/make-apple-keyboard-settings-persistent-in-hid-apple-parameters

 

https://2e0pgs.github.io/blog/sysadmin/2021/04/03/apple-keyboard-ubuntu/

 

You can add the following lines to: /etc/modprobe.d/hid_apple.conf

$ cat /etc/modprobe.d/hid_apple.conf
options hid_apple fnmode=2
options hid_apple iso_layout=0

Then run sudo update-initramfs -u -k all and sudo reboot


 

mac_hid or hid_apple

 Turns out hid_apple was renamed to applespi.

echo 2 | sudo tee /sys/module/applespi/parameters/fnmode


For trackpads and laptop keyboard



https://help.ubuntu.com/community/AppleKeyboard#Change_Function_Key_behavior

https://help.ubuntu.com/community/TroubleWithAppleKbdOnUbuntu

 

 

Wednesday, August 14, 2024

macports port hints

macports.org

search for available packages

https://ports.macports.org/

 

port installed
 
 
sudo port selfupdate

 

2.4. Uninstall MacPorts

uninstall all installed packages

sudo port -fp uninstall installed

 To find the location of installed components, use the contents subcommand:

port contents libxml2
macport prefix
 
 
https://github.com/cargo-generate/cargo-generate/issues/1208#issuecomment-2182884600
sudo port deactivate libiconv cargo install cargo-generate sudo port activate libiconv

 

MacPort Cheat Sheet

 

 

 

 




 
 

Friday, August 9, 2024

building emacs on mac from source

Building emacs from source 

Switch from macports to brew

MBP i5


Macbook Air M3

 

Install a few packages:

sudo port install autoconf

sudo port install automake

sudo port install texinfo

sudo port install gnutls

sudo port install pkg-config

sudo port install libgcc13

 

EmacsWiki

gcc Emacs 

Get the source code.
# git clone --depth 1 --branch emacs-29.4 https://git.savannah.gnu.org/git/emacs.git emacs-29.4  
$ git clone git://git.savannah.gnu.org/emacs.git 
$ cd emacs
    
$ ./autogen.sh 
$ ./configure 
$ make 
$ make install
configure: error: ELisp native compiler was requested, but libgccjit was not found.
Please try installing libgccjit or a similar package. 
./configure --with-native-compilation result in libgccjit errors
  

Package Notes

libgcc-devel broken port #68421 
https://issues.guix.gnu.org/issue/57849
 
M3 build time: 11m16s
M3  build time with libgcc13: 1m12s
M1 build time:  1m5s

Compiling Emacs on Mac

builds for emacsforosx.com

https://github.com/caldwell/build-emacs

https://porkrind.org/missives/mac-os-x-codesigning-woes/


Mentions many good previous refs like renard

https://github.com/mclear-tools/build-emacs-macos

 


Standalone Emacs

https://github.com/imrehorvath/bundle-dylibs

https://imrehorvath.wordpress.com/2021/04/17/wanna-build-gnu-emacs-on-macos-from-source/

https://gitlab.kitware.com/paraview/common-superbuild/-/blob/920d9bc5c6c69fd945df84668f50aca34cdf5f6f/cmake/scripts/fixup_bundle.apple.py



 
automated build 
https://github.com/jimeh/build-emacs-for-macos

self-contained build
https://github.com/jimeh/emacs-builds

emacs plus features recent updates:

https://github.com/d12frosted/homebrew-emacs-plus

Many other good sites:

https://www.zellysnyder.com/posts/compiling-emacs-on-macos/
https://www.mattduck.com/2021-05-upgrading-to-emacs-28.html
 
https://www.masteringemacs.org/article/speed-up-emacs-libjansson-native-elisp-compilation
https://andersmurphy.com/2021/11/14/emacs-building-from-source-on-macos.html 
https://emacs-ng.github.io/emacs-ng/build/building/
https://emacs.stackexchange.com/questions/58526/how-do-i-build-emacs-from-sources-on-macos-catalina-version-10-15-4
https://github.com/railwaycat/homebrew-emacsmacport?tab=readme-ov-file

Native m1 builds

https://cpufun.substack.com/p/setting-up-the-apple-m1-for-native

https://github.com/jimeh/build-emacs-for-macos/issues/47

Create signing Certificate




m3 pkgs:
The following ports are currently installed:
  alex @3.5.1.0_0+haskell_cabal_use_prebuilt
  autoconf @2.72_0 (active)
  automake @1.16.5_0 (active)
  brotli @1.1.0_0 (active)
  bzip2 @1.0.8_0 (active)
  curl @8.8.0_1+ssl
  curl @8.9.1_1+brotli+http2+idn+psl+ssl+zstd (active)
  curl-ca-bundle @8.8.0_0
  curl-ca-bundle @8.9.1_0 (active)
  db48 @4.8.30_5 (active)
  gdbm @1.24_0 (active)
  gettext-runtime @0.22.5_0 (active)
  gmp @6.3.0_0 (active)
  gnutls-devel @3.8.6_0 (active)
  icu @74.2_0 (active)
  libedit @20240517-3.1_0 (active)
  libffi @3.4.6_1 (active)
  libgit2 @1.7.2_0+threadsafe (active)
  libiconv @1.17_0 (active)
  libidn2 @2.3.7_0 (active)
  libpsl @0.21.5-20240306_0 (active)
  libssh2 @1.11.0_0 (active)
  libtasn1 @4.19.0_0 (active)
  libunistring @1.2_0 (active)
  libxml2 @2.13.3_0 (active)
  libxslt @1.1.42_0 (active)
  lz4 @1.9.4_0
  lz4 @1.10.0_0 (active)
  m4 @1.4.19_1 (active)
  ncurses @6.5_0 (active)
  nettle @3.10_0 (active)
  nghttp2 @1.62.1_0 (active)
  openssl @3_18 (active)
  openssl3 @3.3.1_1 (active)
  p11-kit @0.25.5_0 (active)
  pcre2 @10.44_0 (active)
  perl5.34 @5.34.3_1 (active)
  pkgconfig @0.29.2_0 (active)
  readline @8.2.001_0 (active)
  starship @1.19.0_0
  starship @1.20.1_0 (active)
  texinfo @7.1_0 (active)
  xz @5.4.7_0 (active)
  zlib @1.3.1_0 (active)
  zstd @1.5.6_0 (active)

m1 pkgs:
The following ports are currently installed:
  autoconf @2.72_0 (active)
  automake @1.16.5_0 (active)
  brotli @1.1.0_0 (active)
  bzip2 @1.0.8_0 (active)
  cctools @949.0.1_3+xcode (active)
  curl @8.8.0_1+ssl
  curl @8.9.1_1+brotli+http2+idn+psl+ssl+zstd (active)
  curl-ca-bundle @8.8.0_0
  curl-ca-bundle @8.9.1_0 (active)
  db48 @4.8.30_5 (active)
  gdbm @1.24_0 (active)
  gettext-runtime @0.22.5_0 (active)
  gmp @6.3.0_0 (active)
  gnutls @3.7.11_0 (active)
  icu @74.2_0 (active)
  isl @0.24_1 (active)
  ld64 @3_6+ld64_xcode (active)
  ld64-xcode @2_6 (active)
  libedit @20240517-3.1_0 (active)
  libffi @3.4.6_1 (active)
  libgcc @8.0_0 (active)
  libgcc13 @13.3.0_1+stdlib_flag (active)
  libgcc14 @14.2.0_1+stdlib_flag (active)
  libgit2 @1.7.2_0+threadsafe (active)
  libiconv @1.17_0 (active)
  libidn2 @2.3.7_0 (active)
  libmpc @1.3.1_0 (active)
  libpsl @0.21.5-20240306_0 (active)
  libssh2 @1.11.0_0 (active)
  libtasn1 @4.19.0_0 (active)
  libunistring @1.2_0 (active)
  libxml2 @2.13.3_0 (active)
  libxslt @1.1.42_0 (active)
  lz4 @1.9.4_0
  lz4 @1.10.0_0 (active)
  m4 @1.4.19_1 (active)
  mpfr @4.2.1_0 (active)
  ncurses @6.5_0 (active)
  nettle @3.10_0 (active)
  nghttp2 @1.62.1_0 (active)
  openssl @3_18 (active)
  openssl3 @3.3.1_1 (active)
  p11-kit @0.25.5_0 (active)
  pcre2 @10.44_0 (active)
  perl5.34 @5.34.3_1 (active)
  pkgconfig @0.29.2_0 (active)
  readline @8.2.001_0 (active)
  starship @1.19.0_0
  starship @1.20.1_0 (active)
  texinfo @7.1_0 (active)
  xz @5.4.7_0 (active)
  zlib @1.3.1_0 (active)
  zstd @1.5.6_0 (active)




 

 


Wednesday, July 17, 2024

using git; rust doc guessing game

using git

 

git init

git add .

git commit . -m "initial commit"

git status .

git log gen-man.py

 

Files to exclude from version control

.gitignore
https://github.com/github/gitignore/blob/main/Rust.gitignore
 
https://github.com/github/gitignore/blob/main/Haskell.gitignore
 

and for other languages.

git - the simple guide

MS Class Github Foundations

Programming a Guessing Game

Rust Book: Guessing Game

 

git config user.email querqus@blair-pop.local

git commit -m "how preview" man_page.py

 

 

 Rust update to next version


rustup  update > up.txt 2>&1
it worked:
info: syncing channel updates for 'stable-aarch64-apple-darwin'
info: latest update on 2024-11-28, rust version 1.83.0 (90b35a623 2024-11-26)
info: downloading component 'rust-std' for 'wasm32-wasi'
info: downloading component 'rust-src'
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: removing previous version of component 'rust-std' for 'wasm32-wasi'
info: removing previous version of component 'rust-src'
info: removing previous version of component 'cargo'
info: removing previous version of component 'clippy'
info: removing previous version of component 'rust-docs'
info: removing previous version of component 'rust-std'
info: removing previous version of component 'rustc'
info: removing previous version of component 'rustfmt'
info: installing component 'rust-std' for 'wasm32-wasi'
info: installing component 'rust-src'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustfmt'
info: syncing channel updates for '1.80-aarch64-apple-darwin'
info: checking for self-update

stable-aarch64-apple-darwin updated - rustc 1.83.0 (90b35a623 2024-11-26) (from rustc 1.79.0 (129f3b996 2024-06-10))
1.80-aarch64-apple-darwin unchanged - rustc 1.80.1 (3f5fd8dd4 2024-08-06)

info: cleaning up downloads & tmp directories 

 

 

Monday, July 15, 2024

cargo-generate bug iconv libiconv

linking error between macOS and macport provided libiconv library #1208

The problem is widespread and long lasting with many long discussions.


Longstanding GHC linking issues when multiple iconv libraries are installed on macOS (Haskell #18743)

 

long discussion:

MacOS iconv linkage misdetection (also deprecation warnings) #830

 

libiconv breaks compatibility with OS-provided #57821

 

Examples of possible fixes: 

ghc: Bugfixes for test and iconv linking #8523

Fix i/macOS libc++ initialization on early instrumentation #194

frida/frida-core

 



 

Sunday, July 7, 2024

raspberry pico,linux on ipad

Raspberry Pi Pico 

Microcontroller Development Board

Pico Displays


 

 

 

 

Need to put that 1st gen iPad to use.  

Apple Cortex A7 processor

https://konradybcio.pl/linuxona7/

https://ipadlinux.org/



Saturday, June 29, 2024

emacs install rust-mode, universal binary, emacs-nw

Install rust-mode for emacs

https://github.com/rust-lang/rust-mode?tab=readme-ov-file#melpa

https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html 

https://melpa.org/#/getting-started

create 

touch ~/.emacs.d/init.el

add lines to init.el

(require 'package)
(add-to-list 'package-archives
             '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(package-refresh-contents)

 

Now you can install rust-mode with:

M-x package-install rust-mode

And put this in your config to load rust-mode automatically:

(require 'rust-mode)

emacs in the terminal

Prevent launching of a new window for emacs.

 sudo ln -s /Applications/Emacs.app/Contents/MacOS/emacs-nw /usr/local/bin/emacs

 

macOS emacs Universal Binary

emacs osx Universal binary 

lipo -arch almost pointless; tried it on the emacs Universal Binary only reduced the size by 4MB.  Not worth it.  

 man lipo

lipo -archs Emacs.app/Contents/MacOS/Emacs
 
lipo -remove x86_64 Emacs.app/Contents/MacOS/Emacs -output Emacs.app/Contents/MacOS/Emacs2
eclecticlight.co has an article about it:

Instant weight loss: how to strip Universal Apps

 

Installing emacs-nox (linux)

From PPA:

https://ubuntuhandbook.org/index.php/2022/06/install-gnu-emacs-28-1-ubuntu-22-04-20-04/ 

## Installing emacs from PPA ##
sudo apt remove --autoremove emacs emacs-common
sudo add-apt-repository ppa:ubuntuhandbook1/emacs
sudo apt install emacs-nox emacs-common


Other methods

https://gist.github.com/rscircus/77e91b36de1e431e0310611a32786e3c

 https://github.com/alexmurray/emacs-snap

 

Thursday, June 27, 2024

Considering nix on macOS

Considering nix on macOS

Stop the madness: Let's not go down this rabbit hole

I have known about nix and nixOS for a long, long time.  Eelco Dolstra was still a graduate student when I first took it for a spin.  It was cool; but I didn't need its features because I am not a developer.  port (macports.org) does everything I need.

Traffic Light: RED, STOP DO NOT PROCEED

Cons: 

instrusive, potentially irreversible changes?!?

complexity = steep learning curve.

creates giant (5GB+) separate volume to hold repository!

tiny community = good luck finding info

 

Pros: 

nix shell (shell with deps)

goodbye to docker containers to isolate dependencies and packages

 

General Purpose Nix Config for macOS + NixOS

https://github.com/dustinlyons/nixos-config?tab=readme-ov-file#general-purpose-nix-config-for-macos--nixos



A graphical installer for Nix

 
 
https://determinate.systems/posts/graphical-nix-installer/

Setting up Nix on macOS



zero-to-nix.com

 

6nok.org

How Fatih uses Nix on macOS

read more at the end

 

Ian Henry: blog posts on Nix

 

Upgrade your Development Environments with Devbox

Saturday, June 22, 2024

Pop OS! Cosmic DE, icons

Trying Cosmic DE on Pop OS!

sudo nala install cosmic-session

Explore some new features as shown in the video.


Pop OS! loses icons under VirtualBox after sudo apt update and failed upgrade.

fix:

https://www.reddit.com/r/pop_os/comments/15vdwo8/popos_default_icons_are_not_showing_after_a/

mkdir ~/.icons
cp /usr/share/icons/* ~/.icons
gnome-tweak reset to default
unity --reset-icons
reboot

 

Thursday, May 30, 2024

macos: check enrollment status

Check enrollment status

Launch terminal utility and type this:

sudo profiles status -type enrollment

You should see text like this in your terminal if Mac is not enrolled in management:

greyfin@dapple.local ~ % sudo profiles status -type enrollment
Enrolled via DEP: No
MDM enrollment: No

 


Friday, May 24, 2024

part 2: virtualizing pop os on m1 Apple Silicon

Virtualizing Pop Os! on m1 Apple Silicon

 

Using UTM.  It works! Its fast!


Summary: Ubuntu server arm64 + pop os desktop (arm64)

 

install ms fonts for linux

https://www.linuxcapable.com/how-to-install-microsoft-fonts-on-ubuntu-linux/



 

Part 2: rustup; why; using git

rustup; why

Turns out rustup is essential to many projects (zed, redox).
 

curl –proto ‘=https’ –tlsv1.2 -sSf https://sh.rustup.rs | sh


Don't forget to update every once in a while (see Issue #1208 ).

rustup update
 

Friday, May 17, 2024

pop os, opensshd, nala, emacs,rust-mode,starship , smb share, bionic A72

I'd already installed it on a 500GB HDD.  


OpenSSH Server

installing open ssh server

sudo nano /etc/ssh/sshd_config


default, leave it commented

#PubkeyAuthentication yes

change from no to yes
PasswordAuthentication yes

 

restart ssh server and then check that it is running

sudo systemctl restart ssh
sudo systemctl status ssh

 

On your client machine

generate the public key (don't use sudo)

ssh-keygen -t rsa -b 4096

copy it to the open ssh server host (your pop os machine)

ssh-copy-id user@pop-os.local
 
Looking at the sshd logs:
journalctl -u ssh

Change hostname

Change default hostname to a new one.
 
sudo hostnamectl set-hostname tap-matra
 
 
 
 

Installing starship

requires font

https://www.nerdfonts.com/font-downloads

Try it with FiraCode Nerd Font

mkdir ~/.fonts

unzip FiraCode.zip

fc-cache -f -v ~/.fonts

 

https://starship.rs/guide/

Installing emacs-nox

From PPA:

https://ubuntuhandbook.org/index.php/2022/06/install-gnu-emacs-28-1-ubuntu-22-04-20-04/ 

## Installing emacs from PPA ##
sudo apt remove --autoremove emacs emacs-common
sudo add-apt-repository ppa:ubuntuhandbook1/emacs
sudo apt install emacs-nox emacs-common


Other methods

https://gist.github.com/rscircus/77e91b36de1e431e0310611a32786e3c

 https://github.com/alexmurray/emacs-snap

Install rust-mode for emacs

https://github.com/rust-lang/rust-mode?tab=readme-ov-file#melpa

https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html 

https://melpa.org/#/getting-started

create 

touch ~/.emacs.d/init.el

add lines to init.el

(require 'package)
(add-to-list 'package-archives
             '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(package-refresh-contents)

 

Now you can install rust-mode with:

M-x package-install rust-mode

And put this in your config to load rust-mode automatically:

(require 'rust-mode)

 

 

 

 

Install nala pkg manager

sudo apt install nala

Mount share on remote host

gio mount smb://hostname.local/Downloads

TODO

https://www.reddit.com/r/pop_os/comments/1cszy7m/installed_pop_on_my_old_asus_and_i_love_it/

Building zed code editor from git sources

Mekotronics R58X-HDD Rockchip RK3588 embedded PCs


Thursday, May 9, 2024

Why Linux will take over the world!

Linux reaches 4%

   will take over in 2040!

 No. 

Linux distributions can be usable even by regular folk depending on how they use them.  For web browsing, working on documents, spreadsheets and drawing its usable its fine.

 But once you go off a very narrow path of those basic tasks you may wind up fiddling with apt, peering into the terminal, trying to install package mostly succeeding but sometimes failing in mysterious ways.

 


LibreOffice endless fonts menu

font snafu reponse to EULA fails?

virtualbox additions barf (gcc-11 or gcc-12??); works from virtualbox menu but not from inside the vm session.

installing rust on ubuntu confusion no rustup in the 22.04 repo!



-----

  4% worldwide in 2022

pop_os! on Windows 10 host i5-6600

Trying pop_os!

 


 

Results

arm64 m1

 

 

amd64 i5-6600

VirtualBox on Windows 10 i5-6600 very smooth.

 

sudo apt install build-essential

https://itsfoss.com/build-essential-ubuntu/

https://noxasch.tech/blog/setting-up-popos-as-main-daily-dev-machine/

How to SSH into VirtualBox machine



amd64 i7-4790

sudo apt update && sudo apt upgrade

## install config open ssh server ##
sudo nano /etc/ssh/sshd_config
sudo systemctl restart ssh
sudo systemctl status ssh


## Installing emacs from PPA ##
sudo apt remove --autoremove emacs emacs-common
sudo add-apt-repository ppa:ubuntuhandbook1/emacs
sudo apt install emacs-nox emacs-common

## Installing melpa in ~/emacs.d/init.el ##

## Installing fonts rebuild cache
~/.fonts
fc-cache -f -v ~/.fonts


# install smbclient
smbclient -L mirin.local -U user%passwd

# mount fs with gio
gio mount smb://mirin.local/Downloads


# mount location
cd /run/user/1000/gvfs/

 

amd64 i5-460m

 

Results

 Put it on i7-4790 success!

Tried to put it on Fujitsu i5-460m failed but redox succeeded!


 

building zed code editor on pop_os!

 building zed code editor on pop_os!

 

 https://github.com/zed-industries/zed/blob/main/docs/src/development/linux.md


Success!  Don't forget to install clang

Friday, May 3, 2024

virtualizing linux m1 part 1

virtual ubuntu linux on m1

I wanted to run pop_os! on my m1 mac mini. 

Yay!

 Found UTM which is a slick frontend to qemu.  

Clipboard Sharing

Install spice-vdagent and reboot to enable clipboard sharing.

sudo apt install spice-vdagent

Woes

 x86 images are as slow as molasses.   Pop_os!  is only available in x86 iso.

arm64 are much faster; UTM has an image gallery where ubuntu 22.04 arm64 is available.

 

More Woes

Useful blog

https://blog.vkhitrin.com/booting-arch-linux-using-apple-virtualization-framework-with-utm/

UTM’s documentation.

Conclusion

 I'm out.  I have an old i7 I will run pop_os! on the bare hardware.

Wednesday, April 24, 2024

learning rust

rust

the language 

https://tourofrust.com/index.html

redox os (unix-like os written in rust)

on the mac

macports had to migrate, old install was on Monterey now on Ventura 13.6.6

setup steps (with brew)

Install rustup package manager first and then have rustup install rustc, cargo.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh rustup toolchain install stable

the rust compiler is rustc

To clean up debug and other build files:

cargo clean

Apple Silicon Development Set up for Rust


Using Rust from Python

Pyo3

 

 

Crux

Cross-platform app development in Rust

Learn how to use Crux in your project

 

 

GUI Tool kits

slint

iced 

Tauri 2.0

  https://www.youtube.com/watch?v=rC4FCS-oMpg

  https://github.com/makepad/makepad

 
 
 
Comfy - 2d game engine in Rust/wgpu

Leaving Rust gamedev after 3 years

Miniquad/Macroquad

  Using D lang to mix C++ and Rust.

www.tipi.build

https://www.youtube.com/watch?v=z6j-lCOi4XM

Corrosion.rs c++ rust bridge


apps

warp (advanced feature terminal; requires login)

gitoxide

media

Writing an OS in Rust

  Philipp Oppermann's blog

  

Brodie interviews Jeremy Soller developer of Redox OS

Building a secure Operating System (Redox OS) with Rust (Interview)

 

https://areweguiyet.com/


 

A fast new editor to try:

zed.dev (macos, build on linux)



run PopOS arm64

Reddit discussion: Installation guide for Pop!_OS (arm64) on Apple Silicon
  works great using UTM.
  Installation Guide.
 
 UTM cheat sheet

disabling GNOME

Learn Rust

 Crust of Rust by Jon Gjengset



Setup list

apt search nala
sudo apt install nala

sudo nala install curl

## install rustup toolchain manager
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

## install rustc and cargo
rustup toolchain install stable

sudo nala install git
sudo nala install build-essential
sudo nala install clang
sudo nala install strip-nondeterminism


# install macchina alt to neofetch
# https://github.com/Macchina-CLI/macchina/wiki/Installation#build-for-everything-else
#
git clone https://github.com/grtcdr/macchina
cd macchina
cargo build --release

strip target/release/macchina
cargo run --release

Build redox disk img

mkdir -p ~/tryredox
cd ~/tryredox/git clone https://gitlab.redox-os.org/redox-os/redox.git --origin upstream --recursive
cd redox/
  370  make pull
  371  pwd
  372  curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  373  nala search rust
  374  which rustc
  375  which cargo
  376  nala search rustc
  377  nala --help
  378  nala remove rustc
  379  sudo nala remove rustc
  380  curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  381  exit
  382  which rust
  383  which rustc
  384  pwd
  385  cd tryredox/redox/
  386  make pull
  387  rustup --help
  388  cargo install --force cbindgen
  389  make pull
  390  cargo install --force nasm
  391  make pull
  392  nala search nasm
  393  nala install nasm
  394  sudo nala install nasm
  395  pwd
  396  make pull
  397  ls
  398  more build.sh
  399  ls
  400  pwd
  401  more README.md
  402  ./bootstrap.sh -d
  403  rustup toolchain list
  404  time make all
  405  ll
  406  cd build
  407  cd ..
  408  more README.md
  409  cd build
  410  ls
  411  cd x86_64/
  412  ls
  413  cd desktop/
  414  ll
  415  df -h .
  416  mount
  417  neofetch
  418  uptime
  419  sudo shutdown -h now