Showing posts with label os. Show all posts
Showing posts with label os. Show all posts

Saturday, October 12, 2024

Distrohopping on Librem5

 In continuation to my previous blog-post expressing my excitement/happiness at receiving the librem5, being a distro-hopper (maniacal) in the beginning times of my GNU/Linux journey, I couldnt hold myself. So went ahead prepared an SD card and installed my first distro of choice, Debian GNU/Linux on the librem5. However, the experience was anticlimactic. The stable version did not boot and the weeklies just gave me a "glimpse" of the mobian logo. Yes, there are other methods like "jumpstart", but, I do not want to go that route. I want my librem5 as pristine as possible. It is already running GNU/Linux and lots and lots of users and devs are putting continuous efforts to have the latest and greatest on the device. For now, I will stay with installing alternate GNU/Linux on the SD card. 

Since Mobian GNU/Linux did not boot successfully, I went towards the next effort, Postmarket OS. I am just amazed by the amount of effort put by this team and the long distance which they have already traveled. The tools developed by the team are beautifully documented. It was a joy to go through the documentation. It is like they want every individual to be able to boot Postmarket OS and they want it to do the heavy lifting themselves absolving the user from the initial resistance to free their phones. Kudos to the team and all the users. I just went to the Postmarket page for librem5 and blindly followed the procedure to get PMos on the SD card. It was so straight forward, I just remembered the first book I had bought to learn Redhat Linux 6, my first GNU/Linux installation. GNU/Linux has come a long way and the tools developed by the devs, just for the passion, is unbelievable. In the initial install, I chose the --fde(Full disc encryption) option. However, the device repeatedly asked for the passphrase. I changed the passphrase on the installation (Again thanks to the use-case already available and documented). Now,  PMos went past the passphrase window and stayed at the boot screen. Waited for half an hour, then powered the phone off. By this time, I would have removed and re-inserted by SD card not less than 10 - 20 times. The sim/sd card tray is very flimsy. Be very careful while handling it. Dont worry, I have very nimble hands.

I am a seasoned distro-hopper. I dont give in that easy. On the next day, I flashed PMos, without fde. Now, it booted and landed me onto a text login screen. No keyboard. Luckily, I decided to give the device some time. The device logged me into an empty screen with a wallpaper. Empty screen. Yes, that is what I like to see on any desktop. That is the reason I love window managers. That is the reason I have been on i3 since ... (I have forgot the count). Again, why empty screen? Well, I had chosen the choice of sxmo environment heavily inspired by DWM and i3(sway of course). I had seen few videos of sxmo running on the pinephone. However, the video I had watched was very hardware intensive. That is the actions were performed by a combination of hardware buttons on the device. I hate using hardware buttons on any device. I prefer double tapping the screen to unlock the screen and double tapping the screen again to lock the device. I want the hardware buttons for that rainy day. I want the hardware buttons to get into fastboot. Went to the sxmo website. Mind blown. My God!!. What an idea!? The gesture system is one of the best I have come across. It is the most intuitive gesture system I have come across. Oh, did i just indicate that to boot from the SD card, you just have to power the librem5 with the vol down button held down for at-least 05 seconds. You have to immediately hold down the volume down key after powering up the device. 

Let us continue about sxmo. The sxmo project has a very nicely curated set of apps. The most important contribution from the team are the scripts. The project has exposed many of the phone related activities as hooks for the user to tap into and make scripts to accomplish tasks when triggered by clicking the name of the script or a combination of hardware buttons. The present scripts written by the project devs are readily available from the script menu(swipe diagonally from the top right towards the center of the phone). The menu, when accessed through the documented shortcuts are context sensitive. That is the menu is displayed based on what is available on the screen. If it is a Firefox window, the menu will give an option to open a new window or a new tab, you get the idea... Tiling is a first class citizen on sxmo. It was a joy to see multiple windows stack one below the other. Other Operating systems took years to reach this level of window management. Anyhow, I will write on only "sxmo". Thanks again to all the devs and users making the GNU/Linux stack a reality on phones.

Friday, June 12, 2020

Well, What is on my raspberry pi 4

The first thing I install is my client for the cloud based notes application. I use simplenote. It has the advantage that it is available on all the major platforms. There is a terminal client called sncli. This is my go to client.
The next thing is to install terminology for the terminal. After trying out many, I observed that terminology is the fastest on the pi.
i3 window manager. I cannot live without it. None of my Gnu/Linux installations is complete without this. It is lightweight, easily configurable and simple.
For the browser, since I have started using computers I have sided with Firefox. I am at home with this browser. I install noscript, ublock, privacy badger and dark reader plugins. I like it. It has always met my expectations.
For the application launcher i go with rofi. The run menu is shown in a small window in the bottom left corner of my monitor.
For searching on the command line I use ddgr(DuckDuckgo client for the terminal) and surfraw. After installing surfraw I install a small script called menu-sufraw available on github. This integrates beautifully with rofi. Must try.
For the office suite, My choice was OpenOffice before it went to the butcher's table with the Apache foundation. Now it is libreoffice. I like it. It gets the job done.
For my text editor, wait, wait, I use both Neovim and Doom emacs as demanded by the situation. I use emacs with the client/server model. It is quick and very snappy to start and to work.
Feh for my wallpaper needs.
There is one more plugin which I install on firefox, it is called play-with. This I combine with mpv. We now have an awesome combination for playing streaming content on the pi. For this configuration to work there is one more piece of software required and that is youtube-dl. A beautiful example of the unix philosophy working for the modern age of the internet.
Not to forget that all the apps are in dark mode, if available. I like the dark mode. It has been excellent for my eyes. Even now when firefox flashes before loading a tab, I close my eyes for a while. Thank you, Apple, only for bringing the dark mode into vogue.
My hardware setup is already discussed in one of my previous posts.
font-awesome for that "graphics" in the terminal.
d2code for the font, wherever possible. I like its legibility.
I use i3status showing the date, time, empty space, processor speed and the temperature.

Thanks to all the devs/users of all the freedom software. My respect to one and all without which this post wouldn't exist.

Sunday, June 7, 2020

raspberry pi os 64 bit on the raspberry pi 4(4 GB)

Disclaimer: I am not responsible for any damage to your pi for following any of the instruction below. These instructions are what I have used  on my pi. There might be no gurantee that it might work on yours. You have been warned.

So, now you know that there is a 64 bit beta OS for the raspberry pi. I dont know about you, but from the day I bought the pi 4 I always wanted to run the 64 bit version of any Gnu/Linux distro. I tried many flavors. I tried ubuntu, manjaro and gentoo. I rolled back to the 32 bit raspbian because it was a complete and highly optimized OS for the rpi 4. But I was sad that though the board supports 64 bit OS, we were holding back on its capabilities. The problem as always while distro-hopping is that you have to re-start majority of your configuration and app installs. So, things in the home directory can be moved easily, but other tiny optimizations we do, we forget it. This process has to start afresh. It is not an easy thing to do. The rpi does not fly in terms of computing power.

Anyhow, we are now holding the efforts of the rpi foundation in releasing a 64 bit OS with a more beefy pi with 8 GB. That will be happy news for people running servers on their pis. For us desktop users, the 4GB version will be fine for a certain amount of time. That is a very subjective line. Let us not dwell more on it. It is indeed time to laud the efforts of the rpi foundation for supporting pis from the first generation to the present with OS updates across the devices. I would like to take this opportunity to congratulate and thank the rpi foundation and the numerous contributors, beta testers and users for bringing the 64 bit OS to our favorite pi.

Thanks is also for bringing the USB boot support. This make the rpi application more universal. I had a pi 4 which had the sd card slot damaged. I taped the sd card in the slot with much difficulty and then flashed the latest bootloader. There we have it, the pi is now alive again. Thanks again to every person involved.

To start off with the USB boot support.

1. Download the latest 64 bit beta raspberry pi OS(raspbian is now renamed to this)
2. Install it on your spare sd card(8GB min is recommended)
3. Boot your rpi from this sd card
4. You now get a taste of your new rpi os 64 bit
5. Go through the setup and it will automatically upgrade all the packages.
6. reboot
7. sudo apt-get update
8. sudo apt-get upgrade
9. sudo rpi-update          ---Now, be careful here. This installs the bleeding edge kernel an other bleeding edge blobs. This is also a disclaimer regarding any damage to you pi after this. You are on your own. I have done it and many others as well and have not faced any issues.
10. reboot
11. sudo apt-get update
12. sudo apt-get upgrade
13. reboot
14. sudo nvim /etc/default/rpi-eeprom-update
    and change the "critical" to "beta"
15. reboot
16. cd /lib/firmware/raspberrypi/bootloader/beta/
17. check the latest files starting with pieeprom-
18. Now run
    sudo rpi-eeprom-update -d -f /lib/firmware/raspberrypi/bootloader/beta/latest-file from step 17
19. poweroff
20. Repeat step 1 and 2 with your ssd
23. unmount the ssd and re-connect again
24. Now the boot partition which is a fat partition will get mounted or you have to mount it on your GNU/Linux.
25. Open the file config.txt and edit the file with the following information regarding the overclocking of your pi(A disclaimer again here. This overclock has been safe on my pi with a fan connected and with heat sinks on the processor and the graphics unit. I am not responsible for any damage to you pi)

 over_voltage=6
 arm_freq=2140
 arm_freq_min=400
 gpu_freq=750

26. If you had slower ssd speeds previously dont forget to enter the quirks into the file cmdline.txt
27. Connect your ssd to your usb3 port of the pi and remove the sd card.
28. Power on the pi
29. If your boot is painfully slow then you should refer to this post. https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=245931


Enjoy the fruits of freedom software and its ethos. Dont forget to spread the ethics of freedom software and this may not include the price you paid for the software.