Last time I visited Hungary I took a few USB drives with me. In particular I took a very cute SanDisk Cruzer Fit that only minimally sticks out from my laptop. I have always been playing with the idea of using this cute little dongle for some Linux Live distribution. When I realized there is a Debian with Raspberry Pi Desktop I jumped on it!
While the installation guide is great as always on raspberry.org I could not follow it as my company IT makes all USB drives write protected by policy on my laptop. So I had to use my good old Raspberry Pi I have setup up again recently to burn the ISO on the dongle. I have used my laptop to download the ISO and scp it over to my little Pi where I could dd it onto /dev/sda.
dd status=progress if=2020-02-12-rpd-x86-buster.iso of=/dev/sda bs=2M
Just as a sidenote: I have also installed a graphical gparted application on my good old Pi and formatted the dongle to fat32. Furthermore also used fdisk on my dongle to create a DOS partition table, add a partition and make it bootable but I think this has all been overwritten when I have dd the ISO on /dev/sda... Not sure though hence I still mention it...
dd status=progress if=2020-02-12-rpd-x86-buster.iso of=/dev/sda bs=2M
Just as a sidenote: I have also installed a graphical gparted application on my good old Pi and formatted the dongle to fat32. Furthermore also used fdisk on my dongle to create a DOS partition table, add a partition and make it bootable but I think this has all been overwritten when I have dd the ISO on /dev/sda... Not sure though hence I still mention it...
I have used the Send feedback webform on the installation guide at raspberry.org to encourage them to include this nice and simple option to create a bootable USB drive also under Raspbian with dd command. Furthermore I also used Send feedback to encourage them to include that this USB drive can simply run Debian live with Raspberry Pi Desktop with persistence in case someone wants to use it without installing it on the internal drive of the laptop.
I must confess I got confused first and used a second USB dongle after dd the ISO on it and followed the installation guide to install Debian with Raspberry Pi Desktop on my cute little SanDisk Cruzer Fit from this second dongle. I omitted the warnings of the installation guide about creating backup of the internal SSD drive as I was hoping I can avoid touching it. At the end of the installation process it seemingly tried to install GRUB boot loader on the first disk it found but the effect was dubious. What it actually did is it created a debian option in my laptop Boot Menu by probably writing into the MBR in the BIOS. But it never really installed GRUB on my cute little SanDisk Cruzer Fit hence it did not want to boot. I suspect it tried to install GRUB on my corporate internal drive but it probably failed as it is encrypted. When I plugged back the second dongle speculating how to fix GRUB install on my cute little SanDisk Cruzer Fit I accidentally realised running down the timeout when staying on the very first Run with persistence option of the Debian installer of the second dongle that this Run with persistence is exactly the option I wanted in the first place! It simply booted into Debian with Raspberry Pi Desktop and wrote all my configuration back to the Live USB drive! As this second dongle was sticking out very much I quickly went back and dd the ISO on my cute little SanDisk Cruzer Fit dongle and I am happily using it ever since.
Fortunately my laptop normal operation does not seem to be effected apart from this ineffective debian option in Boot Menu of its BIOS stuck there even with my cute little SanDisk Cruzer Fit removed but seemingly without doing anything harmful really. Otherwise without touching my laptop at boot up it still boots into corporate Windows from the internal SSD drive by default and I need to break the boot up at BIOS level to access the Boot Menu and boot into my nice little Live Debian with Raspberry Pi Desktop choosing the USB HDD option from the Boot Menu. Later installing efibootmgr gave me a tool to get rid of the debian entry from the Boot Menu.
Once I could run Debian with Raspberry Pi Desktop it picked up almost everything automatically on my Lenovo T480s - keyboard and touchpad was working fine to set default 'pi' user password and wifi password. Resolution was too high for my eyes so I set it back to 1280x720 in Preferences / Screen Configuration menu. To save resolution I used lxrandr from terminal that pops up a resolution setting window with a save function. To enable tapping and invert scrolling on the touchpad I have created:
pi@raspberrypi:~ $ more /etc/X11/xorg.conf.d/40-libinput.conf
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "on"
Option "NaturalScrolling" "on"
EndSection
pi@raspberrypi:~ $ more /etc/X11/xorg.conf.d/40-libinput.conf
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "on"
Option "NaturalScrolling" "on"
EndSection
Enabled Battery Monitor on the top bar after my laptop repeatedly switched off and I realized it struggles with battery charging levels.
Finally I turned on sync with my Google account in Chromium and logged into my corporate Office 365 - all sprinkled to life!
I could very easily add automatic open VPN to the test lab that I am currently working on by adding the configuration file under /etc/openvpn. Installing Real VNC Viewer also completed the experience both back to my good old Pi via cloud connection or the Ubuntu jumpserver via the open VPN tunnel.
The only thing I can not access now is the corporate VPN but for that I probably should boot into corporate Windows anyway.
No comments:
Post a Comment