Changes

Jump to: navigation, search

Undead USB Install

2,153 bytes added, 6 months ago
m
merge: white space mitsake.
==A [https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KTQK6J5LMWZZ8&currency_code=USD Buy Paul, the author of this document, a coffee.]====[https://www.funtoo.org/Support_Funtoo Donate to funtoo, buy Daniel Robbins a 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 This isn't a live cd, this is a persistent root funtoo install that 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:{{console|body=$##i## sudo suor$##i## su}}
*identify the drive for installing:
*display what /dev/funtoo is tied to:
{{console|body=
###i## rcudevadm control -service udev-reload-rules && udevadm trigger restart
###i## ls -al /dev/funtoo
}}
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## cd /mnt/funtoo && env -i HOME=/root TERM=$TERM $(which chroot . ) /mnt/funtoo bash -l}} ===change ps1===Mark that you're chrooted.{{console|body=###i## export PS1="undead $PS1"
}}
*Set yo password:*Set yo name:*set cloudflare dns resolution for installing:*Set yo time zone:*Set yo clockyou can auto login local terminals as root by doing this:
{{console|body=
###i## sed -i 's/agetty/agetty -J -a root/' /etc/inittab}} *Add fake root user, set the password, name, dns, tz, and 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
}}
== GRUB = /etc/boot.conf ===*Install grub in legacy modeDeploy your boot.conf:
{{console|body=
###i## grub-install --target=i386-pc cat > /devetc/funtoo boot.conf << "EOF"###i## ego boot update}{generate grub default "Funtoo Linux" timeout 0}"Funtoo Linux" {kernel kernel[-v]initrd initramfs[-v]params +=real_root=auto rootfstype= EFI from Legacy auto scandelay=10 params +=quiet gfxpayload*manually make efi directory:*remount /dev/funtoo2 to /boot/efi:*install efi images:{{console|bodyauto loglevel=1 splash=silent###i## mkdir /boot/efi###i## mount /dev/funtoo2 /boot/efi}###i## grub-install --target=x86_64-efi /boot/efiEOF
}}
=== EFI from EFI GRUB ===*Install grub:
{{console|body=
###i##mount -o remount,rw /sys/firmware/efi/efivars###i## grub-install --target=i386-pc /dev/funtoo ###i##grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="FuntooBOOT" --recheck --no-nvram /dev/funtoo###i## cp /usr/share/shim/* /boot/EFI/BOOT/###i##ego boot update
}}
this produces a hybrid GPT boot that will boot on legacy computers, and uefi computers when secure boot is disabled in bios.
 
Now is a good time to install [[Package:Fchroot]] & etcher so you can install to raspberry pi's from your undead media when you reboot into it.
 
final install size is around 14,500MB gnome can fit in a 16gb usb stick, but it's a 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.
rebuild 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 kernel video drivers modulesworld. We suggest several 32gb drives over few larger drives.
=== video ===
*rebuild the kernel video drivers, or switch to nouveau to make your usb more universal.
{{console|body=
###i## emerge -1 x11-drivers/nvidia-kernel-modules}} ==DONE!==If you used a generic stage3 now would be a good time to merge in a DE: [[Install/Stage3_Desktop]] ===clean dismount==={{console|body=###i## exit###i## cd .. && sync ###i## umount -lR funtoo
}}
to not *To run nouveau instead of nvidia:
{{console|body=
###i## cd /etc/modprobe.d && mkdir .backup
###i## mv /etc/modprobe.d/n* .backup
###i## ego profile mix-in gfxcard-nouveau
###i## ego profile mix-in -gfxcard-nvidia}} remove the nouveau blacklist so it grabs the screen. {{console|body=###i## rm /etc/modprobe.d/nouveau*###i## rm /etc/modprobe.d/nvidia*
}}
If you're having problems with nouveau not playing sound over HDMI restart pulse audio: {{console|body===Profile Update===###i## pkill pulseaudio*Set your profile before emerging world:}}[[Funtoo_Profiles]]
*The magic words to updateeverything:
{{console|body=
###i## emerge -avuND @world
###i## rm /var/cache/portage/distfiles/*.tar.gz
}}
 
==DONE!==
If you used a generic stage3 now would be a good time to merge in a DE: [[Install/Stage3_Desktop]]
 
===clean dismount===
{{console|body=
###i## exit
###i## cd .. && sync
###i## umount -lR funtoo
###i## eject /dev/funtoo
###i## udisksctl power-off -b /dev/funtoo
}}
 
===uefi secure boot===
*press the f1 f2 f8 f9 f10 esc or delete to load bios.
*set bios to load uefi usb devices first, disable secure boot, and enable legacy mode. save settings and exit.
*press the f1 f2 f8 f9 f10 esc or delete to load your boot selection menu.
*load EFI from file, point to /boot/EFI/BOOT/BOOTX64.EFI
*shim will greet you with access violation warnings.
*fiddle around to get mok manager to load up.
*select add key
*point to /boot/EFI/BOOT/grubx86.efi
*press the f1 f2 f8 f9 f10 esc or delete key to load your boot selection menu.
*load EFI from file, and again point to /boot/EFI/BOOT/BOOTX64.EFI which will now load funtoo under secure boot.
==further securing==
}}
== 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.
==Swapping by file==
Loop mounts have performance penalties, prefer using swap partitions.*For a swap file on $HOME:
{{console|body=
###i## dd if=/dev/zero of=/home/swapfile bs=1M count=4096 status=progress
==Install Video==
coming soon.
{{#evt:service=youtube|id=https://wwwyoutu.youtube.combe/watch?v=3MbJU4dTaTc|autoresize=true|alignment=center|urlargs="modestbranding=1&version=3&rel=0&origin=https://www.funtoo.org"PBAl9cchQac}} [[Category:HOWTO]][[Category:Install]][[Category:Official Documentation]]
730
edits

Navigation menu