User Tools

Site Tools


tech

Sleeping policemen

loadkeys sv-latin1
iwctl 
station wlan0 scan
station wlan0 connect 
timedatectl
fdisk /dev/nvme..
p d n w 
mkfs.btrfs /dev/nvme..p3
mkswap /dev/nvme..p7
mount /dev/nvme..p3 /mnt
mount --mkdir /dev/nvme...p1 /mnt/boot
swapon /dev/nvme..p7
reflector
pacstrap -K /mnt base base-devel linux linux-firmware linux-firmware-marvell sway swaybg alacritty wireguard-tools iwd networkmanager zsh git bluez bluez-utils firefox syncthing nvim 

genfstab -U /mnt >> /mnt/etc/fstab
nvim /mnt/etc/fstab

arch-chroot /mnt

systemctl enable start NetworkManager.service bluetooth

locale-gen
nvim /etc/locale.conf
nvim /etc/vconsole.conf
nvim /etc/hostname
passwd
pacman -S refind
refind-install
blkid >> UUIDs.txt
nvim /mnt/boot/EFI/refind/refind.conf
nmcli device wifi connect SSID password XXX 

useradd -m -G wheel,audio,video,seat,optical,storage -s /bin/zsh tomas
passwd tomas

grep -r '^psk=' /etc/NetworkManager/system-connections/

jdbc:h2:file:/data/demo

curl -sS https://download.spotify.com/debian/pubkey.gpg | sudo apt-key add - 
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt-get update && sudo apt-get install spotify-client

sudo apt-get install guake
sudo apt install conky-all
wget --content-disposition https://mullvad.net/download/deb/latest
sudo apt-get -y install gdebi-core && sudo gdebi MullvadVPN-XXXX.X_amd64.deb

sudo apt install ubuntustudio-installer

====Syncthing====
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
sudo apt-get update
sudo apt-get install syncthing

===Riot===
sudo apt install -y wget apt-transport-https
sudo wget -O /usr/share/keyrings/riot-im-archive-keyring.gpg https://packages.riot.im/debian/riot-im-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/riot-im-archive-keyring.gpg] https://packages.riot.im/debian/ default main" |
    sudo tee /etc/apt/sources.list.d/riot-im.list
sudo apt update
sudo apt install riot-desktop

=====Razer sleep bug=====

sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="button.lid_init_state=open"


acpitool -w 
sudo echo XHC | sudo tee /proc/acpi/wakeup
sudo nano /etc/rc.local

	\#!/bin/sh -e
	sudo echo XHC | sudo tee /proc/acpi/wakeup 
	exit 0

chmod +x /etc/rc.local

=====VNC=====
sudo apt install vino

=====Pantheon=====
sudo touch /etc/apt/sources.list.d/elementary.list
sudo nano /etc/apt/sources.list.d/elementary.list

	deb http://ppa.launchpad.net/elementary-os/stable/ubuntu bionic main
	deb-src http://ppa.launchpad.net/elementary-os/stable/ubuntu bionic main


sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6C8769CEDC20F5E66C3B7D37BF36996C4E1F8A59
sudo apt update
sudo apt install pantheon-files
root@mother:~# wget https://gandalfn.ovh/debian/pool/main/p/pantheon-debian-repos/pantheon-debian-repos_5.0-0+pantheon+buster+juno1_all.deb
root@mother:~# PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin dpkg -i /home/tomas/pantheon-debian-repos_5.0-0+pantheon+buster+juno1_all.deb
root@mother:~# apt-get update
root@mother:~# apt-get install pantheon-files
root@mother:~# apt-get remove nautilus

sudo apt-get install gnome-sushi

sudo apt install curl

curl -s https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add -
echo “deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main” | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list
sudo apt update && sudo apt install signal-desktop
snap install signal-desktop

gsettings set org.gnome.desktop.background picture-uri ““
gsettings set org.gnome.desktop.background primary-color '#000000'

Wifi analyser

nmcli -f "CHAN,BARS,SIGNAL,SSID" d wifi list | sort -n

sudo grep psk= /etc/NetworkManager/system-connections/*

=====Dokuwiki footer remote=====
/lib/tpl/dokuwiki/tpl_footer.php


===Sailfish hosts===
devel-su
cp /etc/hosts /etc/hosts.original
cp /system/etc/hosts /system/etc/hosts.original
cp /opt/alien/system/etc/hosts /opt/alien/system/etc/hosts.original
echo /etc/hosts /system/etc/hosts /opt/alien/system/etc/hosts | xargs -n 1 cp ~/Public/hosts

===Swap===
sudo swapoff -v /swapfile
sudo rm /swapfile
sudo fallocate -l 16G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo nano /etc/fstab
/swapfile swap swap defaults 0 0

sudo swapon –show

From boot to fix broken package sudo dpkg –configure -a sudo apt-get update sudo apt-get upgrade -y

sudo apt-get install meshlab

wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_440.33.01_linux.run reboot to cli sudo sh cuda_10.2.89_440.33.01_linux.run

Atom

sudo apt install software-properties-common apt-transport-https wget wget -q https://packagecloud.io/AtomEditor/atom/gpgkey -O- | sudo apt-key add - sudo add-apt-repository “deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main” sudo apt install atom

wget https://atom.io/download/deb -O atom.deb sudo dpkg -i atom.deb

exfat

sudo apt install exfat-fuse exfat-utils

CUDA

sudo apt-get install linux-headers-$(uname -r) sudo apt purge 'nvidia*' 'cuda*' sudo apt-get –purge remove “*cublas*” “cuda*” sudo apt-get –purge remove “*nvidia*” sudo apt autoremove sudo apt autoclean sudo apt clean sudo touch /etc/modprobe.d/blacklist-nouveau.conf sudo nano /etc/modprobe.d/blacklist-nouveau.conf sudo dpkg -i cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb https://developer.download.nvidia.com/compute/cuda/repos sudo apt-get update sudo apt-get install cuda

reboot

export PATH=/usr/local/cuda-10.2/bin${PATH:+:${PATH}} export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64\ ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

cuda-install-samples-10.2.sh ~ cd ~/NVIDIA_CUDA-10.2_Samples/5_Simulations/nbody make ./nbody

- PATH includes /usr/local/cuda-11.0/bin - LD_LIBRARY_PATH includes /usr/local*/cuda-11.0/lib64

CUDA

sudo apt-get install linux-headers-$(uname -r)
sudo apt purge 'nvidia*' 'cuda*'
sudo apt autoremove
sudo apt autoclean
sudo apt clean
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01_1.0-1_amd64.deb
sudo apt-key add /var/cuda-repo-10-2-local-10.2.89-440.33.01/7fa2af80.pub
sudo apt-get update
sudo apt-get -y install cuda

syncthing

Get latest ARM64 at https://syncthing.net/downloads/

tar -xvzf syncthing-linux-arm64-v1.X.X.tar.gz
mk dir /home/nemo/opt/syncthing-linux-arm/ 
devel-su mv syncthing-linux-arm64-v1.X.X/ /home/nemo/opt/syncthing-linux-arm/
 cp -i /home/nemo/opt/syncthing-linux-arm/syncthing-linux-arm64-v1.X.X/etc/linux-systemd/user/syncthing.service  /home/nemo/.config/systemd/user/syncthing.service 
vi /home/nemo/.config/systemd/user/syncthing.service

#correct ExecStart=///home/nemo/opt/syncthing/syncthing-linx-arm64-V1.X.X// -no-browser -no-restart -logflags=0 
//OR?
#correct ExecStart=///home/nemo/opt/syncthing-linux-arm/syncthing-linx-arm64-V1.X.X// -no-browser -no-restart -logflags=0

systemctl --user enable syncthing.service
systemctl --user start syncthing.service

ssh key


I. ssh-keygen -t rsa #creates id_rsa id_rsa.pub in /home/jammy/.ssh
II. ssh-copy-id nemo@192.168.1.11 #transfers id_rsa.pub to /root/.ssh /home/nemo/.ssh

Alt II.
mkdir -p /root/.ssh
mkdir -p /home/nemo/.ssh
chmod 700 /root/.ssh
chmod 700 /home/nemo/.ssh
#transfer files
cat /home/nemo/.ssh/id_rsa.pub > /home/nemo/.ssh/authorized_keys
cat /root/.ssh/id_rsa.pub > /root/.ssh/authorized_keys
chmod 600 /home/nemo/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys

Conky

tech.txt · Last modified: 2024/04/11 18:48 by tomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki