„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.
Atidarykite dom0 terminalą ir įsitikinkite, kad esate prisijungę prie interneto.
Įdiekite „Qubes Windows“ įrankius, dom0 :
sudo qubes-dom0-update qubes-windows-tools-4.1.69, kai bus paprašyta, paspauskiteyir įveskite.Pastaba
Žr. saugumo pasekmės diegiant QWT.
Padarykite įdiegimo scenarijų vykdomąjį, dom0 :
sudo chmod +x /install.shPaleiskite diegimo scenarijų, dom0 :
/install.shJei 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.shscenarijų iš „windows-mgmt“ kubo į vienkartinį kubą su interneto ryšiu.Sukurkite naują DVM (vienkartinį) „Qube“ ir suteikite jam bent 10 GB asmeninės saugyklos.
Paleiskite „windows-mgmt Qube“ ir nukopijuokite scenarijų, „windows-mgmt Qube“ :
qvm-copy qvm-create-windows-qube/windows/isos/mido.shtada pasirinkite DVM Qube (dispXXXX).Once the script is copied launch it, in dispXXXX :
./QubesIncoming/windows-mgmt/mido.sh win10x64Pastaba
Šiame vadove mes įdiegiame „Windows 10“, tačiau yra ir kitų „Windows“ versijų, kurias galite išvardyti naudodami
./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.Nukopijavę galite uždaryti DVM kubą.
Windows-mgmt kubas :
mv QubesIncoming/dispXXXX/win10x64.iso qvm-create-windows-qube/windows/isos/(vietoj ‚dispXXXX‘ įrašykite sukurto vienkartinio kubo pavadinimą).Tada dom0 :
qvm-create-windows-qube -n sys-firewall -oy -i win10x64.iso -a win10x64-pro.xml work-win10Pastaba
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-win10Jei scenarijus sustoja arba užstringa, bandykite dar kartą, kol pamatysite šį pranešimą:
[+] Completed successfully!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 devicestada pasirinkite savo kortelę ir spustelėkiteOK.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ėkiteCheck 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¶
Eikite į „Qube Manager“ ir sukurkite naują atskirą „Qube“, o sukūrę paleiskite nustatymus.
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.Uždarykite nustatymus ir paleiskite „Qube“.
Į šaltinių sąrašą įtraukite „non-free“:
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
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į.