Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 06/26/20 in all areas

  1. 2 points
    How to boot from Raspberry Pi4 USB 3.0 SSD. This is a lot easier than it looks, just read through one time to see. I am bypassing installing the OS on an SDCARD to purely update the eeprom, seems like a huge waste of time when it can just be flashed in seconds from a basically blank SDCARD. For this you need, pi4, sdcard, ssd drive, connector for usb 3.0. What I used: Raspberry Pi4 4gb (handy with the hdmi adapter, proper plug, and case/fan) Samsung (MB-ME32GA/AM) 32GB 95MB/s (U1) microSDHC EVO Select Memory Card with Full-Size Adapter (something cheap if you don't have 1, only to flash firmware) Kingston 240GB A400 SATA 3 2.5" Internal SSD SA400S37/240G - HDD Replacement for Increase Performance StarTech.com SATA to USB Cable - USB 3.0 to 2.5? SATA III Hard Drive Adapter - External Converter for SSD/HDD Data Transfer (USB3S2SAT3CB), Black First I am using Windows 10 for this, the steps are basically same for whatever OS. Format your SDCARD to fat32, get bootloader and unzip the files to that drive. bootloader here -> https://github.com/raspberrypi/rpi-eeprom/blob/master/releases.md Under USB MSD Boot find latest, for this guide its this one https://github.com/raspberrypi/rpi-eeprom/files/4781199/rpi-boot-eeprom-recovery-2020-06-15-vl805-000137ad-BETA.zip Unzip that to the root directory of the fresh formatted SDCARD. Insert SDCARD into pi4, and wait a bit for the green light to flash, about 10-15 seconds, powered back on hooked to monitor and it just worked. That's the first part which now makes the PI4 able to boot from the blue USB 3.0 ports. Now hook up your SSD Drive and SATA adapter to your PC. Get Raspberry Pi Imager - https://www.raspberrypi.org/downloads/ Windows - https://downloads.raspberrypi.org/imager/imager.exe macOS - https://downloads.raspberrypi.org/imager/imager.dmg Ubuntu - https://downloads.raspberrypi.org/imager/imager_amd64.deb Run this and select 32-bit and write. To run Headless: Remove the drive and insert back in. Click into the drive and stick a blank ssh file in. For wifi you want to put a wpa_supplicant.conf file in there. wpa_supplicant.conf country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="NETWORK-NAME" psk="NETWORK-PASSWORD" } Looks like this when done. With or without headless: The next step is to get the latest .elf and .dat files into the root directory of the SSD drive. So make sure after flashing the SSD to unplug and plug back in for Windows to see the new filesystem. https://github.com/raspberrypi/firmware Click clone, then download zip. Double click that downloaded zip and go to the boot directory. Copy the .elf and .dat files to your SSD root directory. At the time of this guide that's 16 files you end up replacing. Now put your SSD/SATA into the pi4 USB 3.0 (blue port) and boot up. The first part will show resizing the drive, the pi4 will then reboot again and go into the OS. The ssh file will allow us to SSH into the headless unit, wpa_supplicant.conf should allow wifi if you aren't using an ethernet cable. Tips: I used a split side by side 4k monitor for this, don't do that as if the pi4 detects weird resolutions, it won't work right. 64-bit Raspberry Pi OS VNC server does not work at the moment, use 32-bit for now. After installed run benchmarks. Nench - Overall Benchmarks https://github.com/n-st/nench (wget -qO- wget.racing/nench.sh | bash; wget -qO- wget.racing/nench.sh | bash) 2>&1 | tee nench.log Raspberry Pi Diagnostics - SD Card Speed Test Click Pi (top left corner) -> Accessories -> Raspberry Pi Diagnostics -> Run Tests After the test runs -> Show Log Test : SD Card Speed Test Run 1 prepare-file;0;0;304818;595 seq-write;0;0;319687;624 rand-4k-write;0;0;71859;17964 rand-4k-read;54979;13744;0;0 Sequential write speed 319687 KB/sec (target 10000) - PASS Random write speed 17964 IOPS (target 500) - PASS Random read speed 13744 IOPS (target 1500) - PASS Test PASS
  2. 1 point
    To make the user passwordless like typical, not sure when this changed. Use this https://www.reddit.com/r/Qubes/comments/e39r8l/ubuntu_1804_lts_template_password/ dom0 terminal (change xenial desktop and newpassword) qvm-run -a --user root xenial-desktop "echo \"user:newpassword\"|chpasswd" dom0 terminal qvm-run -a --user root xenial-desktop "sudo usermod -a -G sudo user" shutdown your xenial-desktop and now try sudo apt update
  3. 1 point
    To use sudo https://www.qubes-os.org/doc/templates/minimal/ example in dom0 qvm-run -u root <vm-name> xterm like qvm-run -u root denarius-crypto xterm
  • Newsletter

    Want to keep up to date with all our latest news and information?
    Sign Up
×
×
  • Create New...