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.
Atveriet dom0 termināli un pārliecinieties, ka ir pieslēgts internets.
Instalējiet Qubes Windows rīkus, dom0 :
sudo qubes-dom0-update qubes-windows-tools-4.1.69, kad tiek prasīts, nospiedietyun ievadiet.Piezīme
Lūdzu, skatiet drošības ietekmi par QWT instalēšanu.
Padariet instalēšanas skriptu izpildāmu, dom0 :
sudo chmod +x /install.shInstalēšanas skripta palaišana dom0 :
/install.shJa 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.shskripts no windows-mgmt Qube vienreizlietojamā Qube ar interneta savienojumu.Izveidojiet jaunu DVM (vienreizlietojamu) Qube un piešķiriet tam vismaz 10 GB privātās atmiņas.
Palaidiet windows-mgmt Qube un kopējiet skriptu, windows-mgmt Qube :
qvm-copy qvm-create-windows-qube/windows/isos/mido.shpēc tam izvēlieties DVM Qube (dispXXXX).Once the script is copied launch it, in dispXXXX :
./QubesIncoming/windows-mgmt/mido.sh win10x64Piezī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.shIf 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.isoand choose the windows-mgmt Qube.Pēc kopēšanas varat aizvērt DVM Qube.
Windows-mgmt Qube :
mv QubesIncoming/dispXXXX/win10x64.iso qvm-create-windows-qube/windows/isos/(aizstāt ‚dispXXXX‘ ar izveidotā vienreizlietojamā Qube nosaukumu).Tad dom0 :
qvm-create-windows-qube -n sys-firewall -oy -i win10x64.iso -a win10x64-pro.xml work-win10Piezī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-win10Ja skripts apstājas vai iestrēgst, mēģiniet vēlreiz, līdz parādās šis ziņojums:
[+] Completed successfully!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 devicestad atlasiet savu karti un noklikšķiniet uzOK.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 uzCheck 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¶
Dodieties uz Qube pārvaldnieku un izveidojiet jaunu atsevišķu Qube un pēc izveides palaidiet iestatījumus.
In the „Advanced“ tab change the mode to HVM and disable memory balancing and choose the amount of RAM you want.
In the devices tab select the GPU and pass it to the right then click on the
Configure strict reset for PCI devicesthen select your card and clickOK.Aizveriet iestatījumus un iedarbiniet Qube.
Pievienojiet avotu sarakstam bez maksas:
sudo sed -i '1 s/.*/& non-free/' /etc/apt/sources.listsudo apt updatesudo apt install nvidia-driver dbus-x11Now 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.confxfce.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'
sudo chmod +x xorgX1.sh xfce.shsudo ./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.