Skip to content

andrejlevkovitch/MySettings

Repository files navigation

MySettings

Support

Only for Debian10(buster)

for Debian

  1. add shortcut for open terminal. For this open settings->keyboard and add 'x-terminal-emulator' with shortcut ctrl-alt-t
  2. uncomment string in .bashrc 'force_color_prompt=yes'
  3. add /usr/sbin and /usr/local/sbin to you PATH (in .bashrc)
  4. 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
  5. add current user to sudo group
    • su root
    • adduser levkovitch sudo
  6. install bash-completion (optional)
  7. add xfce4-panel to autoload (optional)

Boot problems

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

Release

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

Time

For reconfigure time you need:

  • dpkg-reconfigure tzdata

Virtualbox Notes

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-essential and linux-headers-...
  • install guest addition
  • execute sudo usermod -aG vboxsf $USER

Your shared folders will be in media folder

Network

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 enp0s8
  • iface enp0s8 inet dhcp

And start command: sudo ifup enp0s8.

Raspberry Pi3

  1. for connect lcd ttf display:
  • git clone https://github.com/goodtft/LCD-show.git
  • chmod -R 755 LCD-show
  • cd LCD-show/
  • sudo ./LCD35-show
  • (optional) add in /boot/config.txt at end:
    • fbcon=map:1
  1. for connect to hdmi back:
  • sudo ./LCD-hdmi

Create bootable usb stick

as root:

umount /dev/sdb1
cat image.iso > /dev/sdb; sync

Install nvidia driver and cuda

  1. run:
apt-get install linux-headers-$(uname -r)
  1. run:
apt-get install dkms
  1. add nouveau to blacklist:
  2. create /etc/modprobe.d/blacklist-nouveau.conf
  3. add next lines to this files:
blacklist nouveau
options nouveau modeset=0
  1. run:
update-initramfs -u
  1. reboot in text mode
  2. switch off x server
systemctl stop lightdm.service
  1. run cuda*.run file

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

Add gpu to kvm (Intel, Nvidia)

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.conf like:

    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

Change partions with save all data

  • fdisk -l - get all partitons

  • fdisk -u /dev/sda - can be sda or some other name

  • by d command remove partition which you want to resize

  • by n recreate the partition with same number (save existing filesystem)

  • if you need change type of partition by t

  • by w save changes

  • quit by q

  • partx /dev/sda or reboot

  • resize2fs /dev/sda1 - can be sda1 or 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/sda4
  • swapon -a

Browse files on android phone

install mtp

apt-get install mtp-tools

Xubuntu BUG with screen lock

If your screen locks without passibility to unlock, then reboot and remove xfce4-screensaver and install xscreensaver instead

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published