piszczynski>Aleks No edit summary |
piszczynski>Aleks |
||
Line 22: | Line 22: | ||
*sudo swapoff -a #turn off swap file | *sudo swapoff -a #turn off swap file | ||
*sudo dd if=/dev/zero of=/swapfile bs=1M count=8192 #set size of blocks for swap file | *sudo dd if=/dev/zero of=/swapfile bs=1M count=8192 #set size of blocks for swap file | ||
*sudo chmod 0600 /swapfile # | *sudo chmod 0600 /swapfile #Assign it read/write permissions for root only | ||
*sudo mkswap /swapfile # | *sudo mkswap /swapfile #Format the file as swap | ||
*sudo swapon -a #enable swap file | *sudo swapon -a #enable swap file - will also be activated on next reboot without this command | ||
Alternate commands to make 8GB swap file | |||
*sudo swapoff /swapfile | |||
*sudo rm /swapfile | |||
*sudo fallocate -l 8G /swapfile |
Revision as of 16:21, 21 August 2021
Remote Desktop Protocol App for linux
Remmina can be used for RDP connections to windows computers using RDP as well as VNC SSH and others
To user also need to install xrdp and tightvnc:
- sudo apt install xrdp xorgxrdp -y
- echo env -u SESSION_MANAGER -u DBUS_SESSION_BUS_ADDRESS cinnamon-session>~/.xsession
Other newer option is xserver-xorg-core
Swap File
Check size of swap file:
- swapon -s
increase swap file to 8GB:
- sudo swapoff -a #turn off swap file
- sudo dd if=/dev/zero of=/swapfile bs=1M count=8192 #set size of blocks for swap file
- sudo chmod 0600 /swapfile #Assign it read/write permissions for root only
- sudo mkswap /swapfile #Format the file as swap
- sudo swapon -a #enable swap file - will also be activated on next reboot without this command
Alternate commands to make 8GB swap file
- sudo swapoff /swapfile
- sudo rm /swapfile
- sudo fallocate -l 8G /swapfile