Only for Debian10(buster)
- add shortcut for open terminal. For this open settings->keyboard and
add 'x-terminal-emulator' with shortcut
ctrl-alt-t - uncomment string in .bashrc 'force_color_prompt=yes'
- add /usr/sbin and /usr/local/sbin to you PATH (in .bashrc)
- set caps_lock as additional ctrl. For this add string
'XKBOPTIONS="ctrl:nocaps"' in /etc/default/keyboard and run command
udevadm trigger --subsystem-match=input --action=change
- add current user to sudo group
su rootadduser levkovitch sudo
- install bash-completion (optional)
- add
xfce4-panelto autoload (optional)
If you have problem with load debian on you computer, then you need push e
while in grub and change quet to nomodeset. After it you need install
needed firmware. For this you need add contrib and non-free, after you
need run sudo dmesg for check which firmware is missing.
Usually enough only:
apt-get install firmware-linux-nonfree
Also you have to check firmware by:
sudo dmesg
If after installation all needed packages you get "passible missing firmware", then you can install it manually from linux-frimware repo:
git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
If you have testing buster, then you need manually change repositories. In
security you have to set testing-security insted buster/security, and change
buster to stable.
Also you can fix problem by:
sudo apt-get update --allow-releaseinfo-change
For reconfigure time you need:
- dpkg-reconfigure tzdata
For virtualbox you can install extension and guest addition:
- download extension and guest addition on download.virtualbox.org/virtualbox/
- execute
sudo adduser $USER vboxusers
On guest machine:
- install
build-essentialandlinux-headers-... - install guest addition
- execute
sudo usermod -aG vboxsf $USER
Your shared folders will be in media folder
If you choise two network adapters in you guest mashine, you have to manually
configure second network interface. For example, if you set second adapter as
bridge, then you must add next lines in your /etc/network/interfaces file:
allow-hotplug enp0s8iface enp0s8 inet dhcp
And start command: sudo ifup enp0s8.
- for connect lcd ttf display:
git clone https://github.com/goodtft/LCD-show.gitchmod -R 755 LCD-showcd LCD-show/sudo ./LCD35-show- (optional) add in /boot/config.txt at end:
fbcon=map:1
- for connect to hdmi back:
sudo ./LCD-hdmi
as root:
umount /dev/sdb1
cat image.iso > /dev/sdb; sync- run:
apt-get install linux-headers-$(uname -r)- run:
apt-get install dkms- add nouveau to blacklist:
- create
/etc/modprobe.d/blacklist-nouveau.conf - add next lines to this files:
blacklist nouveau
options nouveau modeset=0
- run:
update-initramfs -u- reboot in text mode
- switch off
x server
systemctl stop lightdm.service- run
cuda*.runfile
NOTE: in ubuntu-16 with cuda-9 you can have problem with
linux-headers version. cuda-9 can not be installed with
linux-headers 15 or 17, so install kernel version less then
15
NOTE: if after rebooting your keypad don't works, then problem can be in
xserver-xorg-input-all package. You should run system in recovery mode,
enable network-manager and install xserver-xorg-input-all package
NOTE: you can not use the GPU on you host, so switch to internal GPU and
remove all drivers for GPU. Also you have to switch on VT-d
-
Install kvm
-
Add nouveau to blacklist (
/etc/modprobe.d/blacklist-nouveau.conf):blacklist nouveau options nouveau modeset=0
-
Edit grub (
/etc/default/grub):GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on" -
Update grup:
sudo update-grub
-
Get GPU PCI ID's:
lspci -nn | grep -i nvidia -
Write it to
/etc/modprobe.d/vfio.conflike:options vfio-pci ids=$1,$2,...
-
Update initramfs:
sudo update-initramfs -u
-
Reboot
-
For check you can use commands:
dmesg | grep -E "DMAR|IOMMU" dmesg | grep -i vfio
NOTE: before installing image you have to add pci devices of the GPU.
When you use virt-manger for create image, switch on
Customize configuration before install
Also you need add next lines in image config file to features tag:
<hyperv>
<vendor_id state="on" value="whatever"/>
</hyperv>
<kvm>
<hidden state="on"/>
</kvm>Use command:
virsh edit name_of_image-
fdisk -l- get all partitons -
fdisk -u /dev/sda- can besdaor some other name -
by
dcommand remove partition which you want to resize -
by
nrecreate the partition with same number (save existing filesystem) -
if you need change type of partition by
t -
by
wsave changes -
quit by
q -
partx /dev/sdaor reboot -
resize2fs /dev/sda1- can besda1or some other name of device, which you resized
Also you can have problem while boot: resume device. For resolve it you need
change (or remove) UUID (user command blkid) of changed (removed) device in files /etc/fstab and
/etc/initramfs-tools/conf.d/resume. And call update-initramfs -u.
NOTE: if you have PARTUUID instead UUID you have to set PARTUUID instead
UUID in the files.
Also, if you change swap partition you need format and on it:
mkswap /dev/sda4swapon -a
install mtp
apt-get install mtp-toolsIf your screen locks without passibility to unlock, then reboot and remove xfce4-screensaver and install xscreensaver instead