Showing posts with label popos. Show all posts
Showing posts with label popos. Show all posts

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

 

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/



 

Friday, May 17, 2024

pop os, opensshd, 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)

 

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; 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