Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Friday, December 6, 2024

Ubuntu Multipass for x86 MBP

 

Ubuntu multipass

 
First download the tiny installer:
https://github.com/canonical/multipass/releases 
newer versions don't work on macos Monterey 12.6.7

Docs:

https://oscarchou.com/posts/handbook/multipass-command-cheatsheet/
https://medium.com/@karan.bk/modify-multipass-instances-update-resources-and-share-data-with-instance-c17315dd33d0
 https://medium.com/@karan.bk/a-beginners-guide-to-create-and-manage-ubuntu-vms-in-minutes-caa1684d9375
 

https://blog.humphd.org/multipass-on-macos/
https://fromanegg.com/post/2020/02/28/use-ubuntu-on-mac-os-with-multipass/
launch failed: multipass socket access denied

 https://github.com/canonical/multipass/issues/1437

 
 FYI, the new command is multipass auth. Note you must first issue multipass set local.passphrase as admin to set passphrase (and then enter this same passphrase when issuing the auth command).

H...Gi...4...!
 
 
https://discourse.ubuntu.com/t/ubuntu-frame-on-macos-including-apple-silicon-m1/28534 

Juju charms

charm-dev

Getting started with Juju 5 

 

 

 

 

 

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

Wednesday, April 24, 2024

learning rust; installing rustup; macchina; build redox

rust / rustup /  cargo
 
rust

the language 

https://tourofrust.com/index.html

redox os (unix-like os written in rust)

rustup

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/

zed.dev

A fast new editor to try:

zed.dev (macos, build on linux)

Configuring Rust Analyzer

 

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



nala install pop_OS!

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


 

compile macchina on pop_OS!

# 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


 
 
 

 



Saturday, July 11, 2015

How a little juju helped my Wordpress


quick install WP (wordpress) using juju charms

Help I have undead juju hanging around (even after restarting!)

getting rid of juju state

juju destroy-environment --force

sudo cleanup-juju

Resources



Tuesday, October 29, 2013

healthcare.gov on Ubuntu / VirtualBox

What:  healthcare.gov website

On: Ubuntu / VirtualBox

Why: Why not?

 The Doing:  A few easy steps 

Get the source

https://github.com/Conservatory/healthcare.gov-2013-10-01
Follow the build instructions in the README.md file.

Setup the environment

VirtualBox

VirtualBox 4.1.23
VirtualBox 4.2.18


VirtualBox 4.3.0
Don't forget to install the guest additions.

Ubuntu

* Ubuntu 10.10 (EOL)
Ubuntu 12.04 LTS
 ? Ubuntu 13.10

Ubuntu 12.04 LTS
This version was just right.  All the Gems and Ruby on Rails installed without a peep.  This was left out of the readme instructions
sudo apt-get install ruby1.9.1-dev

Now wait a little while after
jekyll serve

Then in the web browser go to this URL:
http://localhost:4000

I wasn't getting the web site but then I noticed that I had typed 4400 instead of 4000.

Enjoy!






= = = = = = = = = = = = = = = = = = = = = = = = 

* Ubuntu 10.10 (EOL)
 gem install bundler

 will keep complaining about zlib being incompatible or whatnot.  Just move on to a more recent or at least an LTS version of Ubuntu.  No need to suffer inst. hell.

 ? Ubuntu 13.10 Didn't try this yet.











Friday, July 29, 2011

Handbrake on Ubuntu 11.04 Natty

Handbrake on Ubuntu 11.04 Natty

Handbrake is great video processing software, use it to convert DVDs into more usable mp4, mkv, movie files.

Type these commands at the terminal:

Add handbrake to your list of repositories:
sudo add-apt-repository ppa:stebbins/handbrake-releases

update the list:
sudo apt-get update

more info.

Then you can use Ubuntu Software Center to install handbrake-gtk (GUI version).
Typing ghb will launch the handbrake application.

Enjoy!

Wednesday, July 28, 2010

Visiting NixOS land

Hello Nixers!

I visit NixOS annually to see the progress (like a comet?). This is my 2.5 year visit.

NixOS Visit Report
============
Visit 1:
VirtualBox install under OS X fails
VirtualBox install under Ubuntu Intrepid success!
Competitive landscape: Haiku r1 works great right out of the box.
+s Great helpful community
-s tedious to set up
time invested: 5 days?? No it can't be.

Visit 2:
VirtualBox install under Ubuntu Intrepid fails!
Tedious configuration.nix editing incantations; reading mail archives, NixOS docs (nice logo)
Competitive landscape: Haiku R2 update slower than R1 but only requires 128MB of memory!
time invested: 12 hours?? No it can't be.

Visit 2.5
NixOS pre22737 VirtualBox install under OS X success! Intel E2200 disable VB VT-X enable PAE
+Very nice liveCD the desktop looks very slick (slim)!
+ Installs yay!
+ Community remains small but incredibly helpful
- Installed NixOS lacks window manager
- Installed NixOS should come up looking like LiveCD
- Still highly tedious setup
- VirtualBox additions where?
- way too much reading of manual, and mainly mail archives
Competitive landscape: OpenSolaris 2010.03 crawls on budget hardware. don't bother. Pretty nice on even 10 year old server hardware though.
time invested: 8 hours? Still spendy willing to visit again though.

Keep up the good work; looking forward to Visit 3