Friday, May 17, 2024

pop os on 4th gen i7

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

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

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 nala pkg manager

sudo apt install nala

Install rust-mode for emacs

https://github.com/rust-lang/rust-mode

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

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)

 




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


 

 





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

Trying pop_os! on Windows 10 host

Trying pop_os!

 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

 

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. 

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 documentation

UTM’s documentation.

Conclusion

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