NitroPC Pro 2 ar ārējo GPU

Piezīme

Šī rokasgrāmata darbojas tikai tad, ja izmantojat Qubes OS OEM GPU tēlu no Nitrokey, ko varat izveidot šeit.

Šajā rokasgrāmatā ir izskaidrots, kā lietot NitroPC ar ārējo grafisko karti (GPU), izmantojot Qubes OS.

Brīdinājums

Šīs rokasgrāmatas ievērošana var radīt dažas Qubes OS drošības problēmas. Sekojiet tai uz savu risku.

Windows Qube izveide

Piezīme

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.

Šī daļa izmanto ElliotKillick projektu.

  1. Atveriet dom0 termināli un pārliecinieties, ka ir pieslēgts internets.

  2. Instalējiet Qubes Windows rīkus, dom0 : sudo qubes-dom0-update qubes-windows-tools-4.1.69, kad tiek prasīts, nospiediet y un ievadiet.

    Piezīme

    Lūdzu, skatiet drošības ietekmi par QWT instalēšanu.

  3. Padariet instalēšanas skriptu izpildāmu, dom0 : sudo chmod +x /install.sh

  4. Instalēšanas skripta palaišana dom0 : /install.sh

    Ja redzat šādu ziņojumu: [+] Installation complete!, varat turpināt.

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

    Lai to izdarītu, mums ir jākopē ~/qvm-create-windows-qube/windows/isos/mido.sh skripts no windows-mgmt Qube vienreizlietojamā Qube ar interneta savienojumu.

  5. Izveidojiet jaunu DVM (vienreizlietojamu) Qube un piešķiriet tam vismaz 10 GB privātās atmiņas.

  6. Palaidiet windows-mgmt Qube un kopējiet skriptu, windows-mgmt Qube : qvm-copy qvm-create-windows-qube/windows/isos/mido.sh pēc tam izvēlieties DVM Qube (dispXXXX).

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

    Piezīme

    Šajā rokasgrāmatā mēs instalējam Windows 10, bet ir pieejamas arī citas Windows versijas, kuras varat uzskaitīt, izmantojot ./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.

    Pēc kopēšanas varat aizvērt DVM Qube.

  9. Windows-mgmt Qube : mv QubesIncoming/dispXXXX/win10x64.iso qvm-create-windows-qube/windows/isos/ (aizstāt ‚dispXXXX‘ ar izveidotā vienreizlietojamā Qube nosaukumu).

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

    Piezīme

    Jūs varat iepriekš instalēt jebkuru paketi no šīs vietnes. Piemēram: qvm-create-windows-qube -n sys-firewall -oyp firefox,notepadplusplus,office365proplus -i win10x64.iso -a win10x64-pro.xml work-win10

    Ja skripts apstājas vai iestrēgst, mēģiniet vēlreiz, līdz parādās šis ziņojums: [+] Completed successfully!

  11. Tagad jums būs nepieciešams pievienot GPU Windows Qube, lai to izdarītu, dodieties uz Qube Manager un Windows 10 Qube opcijas (pārliecinieties, ka Qube ir izslēgts), sadaļā Ierīces atlasiet savu grafisko karti un nododiet to pa labi, pēc tam noklikšķiniet uz Configure strict reset for PCI devices tad atlasiet savu karti un noklikšķiniet uz OK.

  12. Tagad, kad jūsu grafiskā karte ir pievienota Windows Qube, ir nepieciešams instalēt kartes draiverus. Meklēšanas joslā meklējiet Check for updates, pēc tam noklikšķiniet uz Check for updates (būs nepieciešams vairākas reizes pārstartēt).

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.

Kad tas ir pabeigts, varat pieslēgt sekundāro displeju grafiskajai kartei.

Ja vēlaties izmantot Windows Qube speciālu peli vai tastatūru, tad jāizmanto sys-usb un jāpievieno tai vēlamā ierīce.

Linux Qube izveide

Debian

  1. Dodieties uz Qube pārvaldnieku un izveidojiet jaunu atsevišķu Qube un pēc izveides palaidiet iestatījumus.

  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. Aizveriet iestatījumus un iedarbiniet Qube.

  5. Pievienojiet avotu sarakstam bez maksas: 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

Tagad sekundārajam ekrānam vajadzētu ieslēgties un parādīt Debian XFCE darbvirsmu.

Ja Linux Qube vēlaties izmantot īpašu peli vai tastatūru, jāizmanto sys-usb un jāpievieno tai vēlamā ierīce.