„NitroPC Pro 2“ su išoriniu GPU

Pastaba

Šis vadovas veikia tik tuo atveju, jei naudojate „Nitrokey“ „Qubes OS OEM“ GPU atvaizdą, kurį galite sukurti čia.

Šiame vadove paaiškinama, kaip naudoti „NitroPC“ su išorine vaizdo plokšte (GPU) su „Qubes OS“.

Įspėjimas

Vadovaujantis šiuo vadovu gali kilti tam tikrų „Qubes“ OS saugumo problemų. Vadovaukitės juo savo rizika.

Sukurti „Windows“ kubą

Pastaba

This will install a Windows Qube from the official trial ISO. If you want a full Windows experience then you will need to add a license key.

Šioje dalyje naudojamas ElliotKillick projektas.

  1. Atidarykite dom0 terminalą ir įsitikinkite, kad esate prisijungę prie interneto.

  2. Įdiekite „Qubes Windows“ įrankius, dom0 : sudo qubes-dom0-update qubes-windows-tools-4.1.69, kai bus paprašyta, paspauskite y ir įveskite.

    Pastaba

    Žr. saugumo pasekmės diegiant QWT.

  3. Padarykite įdiegimo scenarijų vykdomąjį, dom0 : sudo chmod +x /install.sh

  4. Paleiskite diegimo scenarijų, dom0 : /install.sh

    Jei matote šį pranešimą: [+] Installation complete!, galite tęsti.

    At this point the script created a new Qube called windows-mgmt now we will download the ISO to create the Windows Qube.

    Tam turime nukopijuoti ~/qvm-create-windows-qube/windows/isos/mido.sh scenarijų iš „windows-mgmt“ kubo į vienkartinį kubą su interneto ryšiu.

  5. Sukurkite naują DVM (vienkartinį) „Qube“ ir suteikite jam bent 10 GB asmeninės saugyklos.

  6. Paleiskite „windows-mgmt Qube“ ir nukopijuokite scenarijų, „windows-mgmt Qube“ : qvm-copy qvm-create-windows-qube/windows/isos/mido.sh tada pasirinkite DVM Qube (dispXXXX).

  7. Once the script is copied launch it, in dispXXXX : ./QubesIncoming/windows-mgmt/mido.sh win10x64

    Pastaba

    Šiame vadove mes įdiegiame „Windows 10“, tačiau yra ir kitų „Windows“ versijų, kurias galite išvardyti naudodami ./QubesIncoming/windows-mgmt/mido.sh

  8. If you get a success message then you will need to copy the downloaded ISO from the DVM to the windows-mgmt Qube, in dispXXXX : qvm-copy QubesIncoming/windows-mgmt/win10x64.iso and choose the windows-mgmt Qube.

    Nukopijavę galite uždaryti DVM kubą.

  9. Windows-mgmt kubas : mv QubesIncoming/dispXXXX/win10x64.iso qvm-create-windows-qube/windows/isos/ (vietoj ‚dispXXXX‘ įrašykite sukurto vienkartinio kubo pavadinimą).

  10. Tada dom0 : qvm-create-windows-qube -n sys-firewall -oy -i win10x64.iso -a win10x64-pro.xml work-win10

    Pastaba

    Galite iš anksto įdiegti bet kurį paketą iš šios svetainės. Pvz.: qvm-create-windows-qube -n sys-firewall -oyp firefox,notepadplusplus,office365proplus -i win10x64.iso -a win10x64-pro.xml work-win10

    Jei scenarijus sustoja arba užstringa, bandykite dar kartą, kol pamatysite šį pranešimą: [+] Completed successfully!

  11. Dabar turėsite prijungti savo GPU prie „Windows Qube“, kad tai padarytumėte, eikite į „Qube Manager“ ir „Windows 10 Qube“ parinktis (įsitikinkite, kad „Qube“ yra išjungtas), skirtuke Įrenginiai pasirinkite savo vaizdo plokštę ir perduokite ją į dešinę, tada spustelėkite Configure strict reset for PCI devices tada pasirinkite savo kortelę ir spustelėkite OK.

  12. Dabar, kai vaizdo plokštė prijungta prie „Windows Qube“, reikia įdiegti plokštės tvarkykles. Paieškos juostoje ieškokite Check for updates, tada spustelėkite Check for updates (reikės kelis kartus perkrauti kompiuterį).

Now Windows will install all the drivers you will need to use your external graphic card. If you’re experiencing some problems make sure that you have enough space in your Windows Qube while installing updates.

Baigę galite prie vaizdo plokštės prijungti papildomą ekraną.

Jei norite naudoti „Windows Qube“ skirtą pelę arba klaviatūrą, turite naudoti sys-usb ir prie jos prijungti norimą įrenginį.

Sukurti „Linux Qube

Debian

  1. Eikite į „Qube Manager“ ir sukurkite naują atskirą „Qube“, o sukūrę paleiskite nustatymus.

  2. In the „Advanced“ tab change the mode to HVM and disable memory balancing and choose the amount of RAM you want.

  3. In the devices tab select the GPU and pass it to the right then click on the Configure strict reset for PCI devices then select your card and click OK.

  4. Uždarykite nustatymus ir paleiskite „Qube“.

  5. Į šaltinių sąrašą įtraukite „non-free“: sudo sed -i '1 s/.*/& non-free/' /etc/apt/sources.list

  6. sudo apt update

  7. sudo apt install nvidia-driver dbus-x11

    Now you will need to create 3 different files:

    screen.conf:

    Section "Device"
    Identifier  "GPU"
    
    # name of the driver to use. Can be "amdgpu", "nvidia", or something else
    Driver      "nvidia"
    
    # The BusID value will change after each qube reboot.
    BusID       "PCI:0:8:0"
    EndSection
    
    Section "Screen"
    Identifier "GPU screen"
    Device     "GPU"
    EndSection
    

    xorgX1.sh:

    #!/bin/bash
    
    binary=${1:?binary required}
    
    # Find the correct BusID of the AMD GPU, then set it in the Xorg configuration file
    pci=$(lspci | grep "VGA" | grep -E "NVIDIA|AMD/ATI" | cut -d " " -f 1 | cut -d ":" -f 2 | cut -d "." -f 1 | cut -d "0" -f 2)
    sed -i 's/"PCI:[^"]*"/"PCI:0:'$pci':0"/g' /home/user/screen.conf
    
    # Start the Xorg server for the X screen number 1.
    # The X screen n°0 is already used for QubesOS integration
    sudo startx "$binary" -- :1 -config /home/user/screen.conf
    

    xfce.sh:

    #!/bin/bash
    sleep 5 && sudo setxkbmap -display :1 fr &
    /bin/sudo -u user PULSE_SERVER=unix:/run/user/1000/pulse/native bash -c 'sudo xhost + local:;/usr/bin/startxfce4'
    
  8. sudo chmod +x xorgX1.sh xfce.sh

  9. sudo ./xorgX1.sh ./xfce.sh

Dabar antrinis ekranas turėtų įsijungti ir rodyti „Debian XFCE“ darbalaukį.

Jei norite naudoti „Linux Qube“ skirtą pelę arba klaviatūrą, turite naudoti sys-usb ir prie jos prijungti norimą įrenginį.