Difference between revisions of "User:Innsill/dwm-starter (x86-64)"

From Alpine Linux
Jump to: navigation, search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
... ???
 
... ???
 +
{{TOC right}}
 +
 +
<pre>
 +
  /dev/sda              /dev/nvme0n1 
 +
  (old bios bootable)    (m.2 PCIe NVMe, unbootable)
 +
  +-------------------+  +-------------------+
 +
  |  *--------------+ |  |  +--------------+ |
 +
  |  | /boot        | |  |  | swap        | |
 +
  |  +--------------+ |  |  +--------------+ |
 +
  +-------------------+  |  +--------------+ |
 +
                        |  |  /          | |
 +
                        |  +--------------+ |
 +
                        +-------------------+
 +
</pre>
 +
 +
'''[https://alpinelinux.org/downloads/ alpine-extended-3.10.3-x86_64.iso]'''
 +
 +
= setup-alpine =
 +
'''{{c| setup-alpine}}'''    ...none, none, none,...
 +
 
* lsblk
 
* lsblk
 
* wipefs /dev/nvme0n1  
 
* wipefs /dev/nvme0n1  
Line 11: Line 31:
 
** ... </br> '''a''' - toggle a bootable flag </br> ...
 
** ... </br> '''a''' - toggle a bootable flag </br> ...
 
* __________________________________________________</br> mkfs.btrfs -L RC100 /dev/nvme0n1p2 </br> mkfs.ext3 -L OLD_HDD /dev/sda2 </br> wipefs /dev/nvme0n1p2 </br> wipefs /dev/sda2
 
* __________________________________________________</br> mkfs.btrfs -L RC100 /dev/nvme0n1p2 </br> mkfs.ext3 -L OLD_HDD /dev/sda2 </br> wipefs /dev/nvme0n1p2 </br> wipefs /dev/sda2
* __________________________________________________</br> mount -o compress /dev/nvme0n1p2 /mnt </br> mkdir /mnt/boot </br> mount /dev/sda2 /mnt/boot
+
* __________________________________________________</br> mount -t btrfs -o compress /dev/nvme0n1p2 /mnt </br> mkdir /mnt/boot </br> mount /dev/sda2 /mnt/boot
* swapon /dev/sda1 </br>  swapon /dev/nvme0n1p1
+
<!--* swapon /dev/sda1 </br>  swapon /dev/nvme0n1p1 -->
* ./setup-disk /mnt
+
 
*...
+
= setup-disk =
 +
* BOOTLOADER=grub </br> '''{{c| setup-disk /mnt}}'''
 +
* {{c| mount /dev/ /mnt/dev/ --bind}} </br> {{c| mount -t proc none /mnt/proc}} </br> {{c| mount -o bind /sys /mnt/sys}} </br> chroot /mnt </br> grub-install /dev/sda
 +
 
 +
= =
 +
echo "ff  ALL = (ALL) NOPASSWD: /usr/sbin/hdparm -Y /dev/sda" >> /etc/sudoers.d/ff
 +
 
 +
chmod 400 /etc/sudoers.d/ff
 +
 
 +
echo "sudo hdparm -Y /dev/sda" >> /home/ff/.profile
 +
 
 +
= X ??? =
 +
* {{c| X -configure}}
 +
** {{c| vi xorg.conf.new}}
 +
 
 +
Section "Device"
 +
        Identifier  "Card0"
 +
        Driver      "[[amdgpu]]"
 +
        BusID      "PCI:0:17:0"
 +
EndSection
 +
 
 +
...
 +
 
 +
$vi .xinitrc {{cat |/home/ff/.xinitrc |<nowiki>setxkbmap ... &
 +
exec dvm</nowiki>}}
  
 
= =
 
= =
Line 20: Line 64:
 
* [https://gh.de/delock-pci-express-x16-x4-x8-card-to-1x-nvme-m-2-key-m-for-server-90303-a1985030.html DeLOCK PCIe 3] gh.de
 
* [https://gh.de/delock-pci-express-x16-x4-x8-card-to-1x-nvme-m-2-key-m-for-server-90303-a1985030.html DeLOCK PCIe 3] gh.de
 
* [https://gh.de/asus-m4a78lt-m-90-mibbj0-g0eay00z-a495831.html ASUS M4A78LT-M PCIe 2]
 
* [https://gh.de/asus-m4a78lt-m-90-mibbj0-g0eay00z-a495831.html ASUS M4A78LT-M PCIe 2]
 +
* [[dwm]]

Latest revision as of 08:32, 19 November 2019

... ???

  /dev/sda               /dev/nvme0n1  
  (old bios bootable)    (m.2 PCIe NVMe, unbootable)
  +-------------------+  +-------------------+
  |  *--------------+ |  |  +--------------+ |
  |  | /boot        | |  |  | swap         | |
  |  +--------------+ |  |  +--------------+ |
  +-------------------+  |  +--------------+ |
                         |  |  /           | |
                         |  +--------------+ |
                         +-------------------+

alpine-extended-3.10.3-x86_64.iso

setup-alpine

setup-alpine ...none, none, none,...

  • lsblk
  • wipefs /dev/nvme0n1
  • __________________________________________________
    fdisk /dev/nvme0n1
    • o - clear out any partitions
    • n
      • p - primary
        1 - first partition on the drive
        +16G
        t - 82 Linux swap
        ...
    • n
      ... enter - to accept the default ending sectors
    • ...
  • __________________________________________________
    fdisk /dev/sda
    • ...
      a - toggle a bootable flag
      ...
  • __________________________________________________
    mkfs.btrfs -L RC100 /dev/nvme0n1p2
    mkfs.ext3 -L OLD_HDD /dev/sda2
    wipefs /dev/nvme0n1p2
    wipefs /dev/sda2
  • __________________________________________________
    mount -t btrfs -o compress /dev/nvme0n1p2 /mnt
    mkdir /mnt/boot
    mount /dev/sda2 /mnt/boot

setup-disk

  • BOOTLOADER=grub
    setup-disk /mnt
  • mount /dev/ /mnt/dev/ --bind
    mount -t proc none /mnt/proc
    mount -o bind /sys /mnt/sys
    chroot /mnt
    grub-install /dev/sda

echo "ff ALL = (ALL) NOPASSWD: /usr/sbin/hdparm -Y /dev/sda" >> /etc/sudoers.d/ff

chmod 400 /etc/sudoers.d/ff

echo "sudo hdparm -Y /dev/sda" >> /home/ff/.profile

X ???

  • X -configure
    • vi xorg.conf.new
Section "Device"
       Identifier  "Card0"
       Driver      "amdgpu"
       BusID       "PCI:0:17:0"
EndSection

...

$vi .xinitrc

Contents of /home/ff/.xinitrc

setxkbmap ... & exec dvm