Changes

Jump to: navigation, search

Undead USB Install

877 bytes removed, 3 months ago
m
merge: white space mitsake.
==[https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KTQK6J5LMWZZ8&currency_code=USD Buy Paul, the author of this document, a coffee, or a pint of beer!.]====[https://www.funtoo.org/Support_Funtoo Donate to funtoo, buy Daniel Robbins a beer!coffee.]==
==Undead USB, a linux nomadbsd alternative==
This is an install strategy to target a USB flash stick as / (root) instead of a traditional hard drive or internal solid state drive. This isn't a live cd, this is a persistent root funtoo install where changes will keep living on. Since were treating a USB stick as a root partition, it requires much more space than a live usb like area31. 32gb minimum for gnome, 16gb are ok for xfce, lxde, lxqt, & server only type builds. get a [https://amzn.to/3m1hJoW fast usb3 drive ] even if you don't have usb3 ports as the flash memory on them is much faster than the flash memory on usb2 keys which will improve usability. This is a speed run of the official install x86_64 no swap & add JFS but does not intend to replace the official install. this is to make a more flexible, and robust install boot media than area31. undead usb can be used to build undead usb also. If you're reading this from linux, and have a blank 32gb USB drive you can mount up, and start building funtoo immediately. This guide has traditional hard drive aliasing, however it is targeted at building USB install media, and USB development sandbox installs. The user experience is like virtualization running on bare metal. If you run into a problem you can easily unplug permanent hard drives, and let a funtoo developer vpn into your fresh build to debug hardware directly.
*grab root:
Command: ##i## new ↵
First sector: ##i##↵
Last sector: ##i##+1M 2M
Hex Code: ##i##EF02 ↵
Enter name: ##i##BIOS Boot ↵
First sector: ##i##↵
Last sector: ##i##↵
Hex Code: ##i## 8304 8300
Enter name: ##i##FUNTOO ↵
}}
{{console|body=
Disk Drive: /dev/sdcfuntoo
Size: 62333952, 29.7 GiB
###i## cd /mnt/funtoo
###i## wget https://build.funtoo.org/1.4-release-std/x86-64bit/generic_64/gnome-latest.tar.xz
###i## tar --numeric-owner --xattrs --xattrs-include='*' -xpf *gnome* && rm -f mv *gnome*/mnt/funtoo/mnt && mkdir /mnt/funtoo/mnt/funtoo
}}
===Load Funtoo==*expand your run tmpfs to be half of your ram:{{console|body=###i## mount -t tmpfs tmpfs /run}}
*mount up:
mount --rbind /sys sys
mount --rbind /dev dev
mount --rbind /run run
}}
===chroot===
*chroot in:
{{console|body=
###i## env -i HOME=/root TERM=$TERM $(which chroot ) /mnt/funtoo bash -l
}}
*give chroot an absolute path if the above command fails:===change ps1===Mark that you're chrooted.
{{console|body=
$##i## sudo which chroot && sudo su###i## env -i HOME=/root TERMexport PS1="undead $TERM /usr/sbin/chroot /mnt/funtoo bash -lPS1"
}}
Mark that *you're chrooted.can auto login local terminals as root by doing this:
{{console|body=
###i## export PS1="FUNTOO $PS1"sed -i 's/agetty/agetty -J -a root/' /etc/inittab
}}
*Set yo Add fake root user, set the password:*Set yo , name:*set cloudflare , dns resolution for installing, tz, and clock:*Set yo time zone:*Set yo clock:
{{console|body=
###i## useradd -o -g 0 -u 0 funtoo###i## passwdfuntoo
###i## echo 'hostname="undead"' > /etc/conf.d/hostname
###i## echo "nameserver 1.1.1.1" > /etc/resolv.conf
###i## ln -sf /usr/share/zoneinfo/America/Detroit /etc/localtime
###i## rc-service busybox-ntpd restart
###i## mkdir /mnt/funtoo
}}
LABEL=BOOT /boot vfat noauto,noatime 1 2
LABEL=FUNTOO / jfs noatime 0 1
tmpfs /run var/tmp/portage tmpfs rwuid=portage,nodevgid=portage,nosuid mode=775,noatime 0 0
EOF
}}
*compile in ram:
{{console|body=
###i## echo 'PORTAGE_TMPDIR="mkdir /run"' > var/etctmp/portage###i## chown portage:portage/make.confvar/tmp/portage###i## mount /var/tmp/portage
}}
===merge===
*merge stuff:
{{console|body=
###i## echo cat > /etc/portage/package.use << "EOF"sys-kernel/linux-firmware initramfs" >> app-emulation/qemu static-user qemu_user_targets_aarch64 qemu_user_targets_riscv64 qemu_user_targets_armdev-libs/etcglib static-libsdev-libs/portagelibpcre static-libssys-apps/package.useattr static-libsEOF###i## ego sync && emerge sys-boot/shim jfsutils grub haveged intel-microcode linux-firmware fchroot eix discord-bin firefox-bin media-fonts/notoetcher-bin logmein-hamachi fortune-mod cowsay}}
you can also install [[Package:Brave]] or other browsers.
*Set your startup services:
{{console|body=
###i## rc-update del swap boot && rc-update add haveged && rc-update add busybox-ntpd && rc-update add logmein-hamachi && rc-update add gpm
}}
###i## cat > /etc/boot.conf << "EOF"
boot {
generate grub
default "Funtoo Linux"
timeout 0
}
"Funtoo Linux" {
kernel kernel[-v] initrd initramfs[-v] params += real_root=auto rootfstype=auto scandelay=10
params += quiet gfxpayload=auto loglevel=1 splash=silent
}
=== GRUB ===
*Install grub in legacy mode
{{console|body=
###i## mount -o remount,rw /sys/firmware/efi/efivars
###i## grub-install --target=i386-pc /dev/funtoo
###i## ego boot update}} === EFI from EFI ===*performed from a legacy boot:{{console|body=###i##mount -o remount,rw /sys/firmware/efi/efivarsmount: /sys/firmware/efi/efivars: mount point does not exist.###i##grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="BOOT" --recheck /dev/funtooInstalling for x86_64-efi platform.EFI variables are not supported on this system.EFI variables are not supported on this system.Installation finished. No error reported. << this installed correctly, /boot/EFI/BOOT/grubx64.efi exists.###i##ego boot update}}When this is rebooted in efi mode, the efivars directory exists. We can re-run the grub install command swapping in the --bootloader-id="FUNTOO" to make a funtoo uefi menu boot entry. === EFI from Legacy ===*If the first EFI install attempt failed try this:{{console|body=###i## mkdir /boot/EFI###i## grub-install --target=x86_64-efi --efi-directory=/boot --bootloaderno-id="BOOT" nvram /bootdev/EFIInstalling for x86_64-efi platform.EFI variables are not supported on this system.EFI variables are not supported on this system.Installation finished. No error reported.}} this produces a install that will boot on legacy computers, and uefi computers when secure boot is disabled in bios. *install fedora's shim{{console|body=funtoo
###i## cp /usr/share/shim/* /boot/EFI/BOOT/
###i## ls /ego boot/EFI/BOOT/BOOTIA32.EFI BOOTX64.EFI grubx64.efi mmia32.efi mmx64.efiupdate
}}
Now is a good time to install [[Package:Fchroot]] & [[Package:Etcher]] so you can install to raspberry pi's from your undead media when you reboot into it. final install size is around 15,000MB without noto. gnome can fit in a 16gb usb stick, but it's a very tight squeeze and unix file systems degrade in performance at around 80%-90% full. 32gb keys are good, 64gb are excellent, 128gb keys can emerge the world. We suggest several 32gb drives over few larger drives.
=== video ===
###i## cd .. && sync
###i## umount -lR funtoo
###i## eject /dev/funtoo
###i## udisksctl power-off -b /dev/funtoo
}}
}}
== Tweeks ==If you're having problems with nouveau not playing sound over HDMI restart pulse audio: {{console|body=###i## pkill pulseaudio}} ===Disable DPMS===
dpms disrespects screen blanking settings, so you can't watch movies in VLC without the screen turning off.
724
edits

Navigation menu