Ubuntu 20.04 Remote Desktop Access from Windows 10 sudo apt update sudo apt install xrdp sudo systemctl enable --now xrdp sudo ufw allow from any to any port 3389 proto tcp ip address --- find ip/hostname of ubuntu Installing a root/CA Certificate Given a CA certificate file foo.crt, follow these steps to install it on Ubuntu: 1. Create a directory for extra CA certificates in /usr/local/share/ca-certificates: sudo mkdir /usr/local/share/ca-certificates/extra 2. Copy the CA .crt file to this directory: frist go to where the .crt file is and then open terminal sudo cp foo.crt /usr/local/share/ca-certificates/extra/foo.crt sudo cp squid2.crt /usr/local/share/ca-certificates/extra/squid2.crt 3. Let Ubuntu add the .crt file's path relative to /usr/local/share/ca-certificates to /etc/ca-certificates.conf: sudo dpkg-reconfigure ca-certificates APPLE TIME CAPSUILE setup 1. sudo apt install cifs-utils 2. Create a mount point sudo mkdir -p /media/capsule 3. Mount the Time Capsule sudo mount //30.3.3.50/File-Server-Backup /media/capsule1 -o username=AirServer,sec=ntlm,vers=1.0,uid=beastyjoe4k 4.Unmount the Time Capsule and remove the directory To close the connection and cleanup the /media folder, you can run: sudo umount /media/capsule sudo rmdir /media/capsule 5. notes username=jeff : jeff is the name setup on the account on the time capsule (using airport utility on an iphone) uid=jeff : jeff is my logon name in linux IPADDROFCAPSULE : put in your I.P. address of the capsule Data is the name of the drive as set in airport utility /media/capsule is a mount point of own choosing - make the directory first of course auto mount 1. sudo nano /etc/fstab add line: //30.3.3.50/File-Server-Backup /media/capsule cifs credentials=/home/beastyjoe4k/.smbcredentials,iocharset=utf8,sec=ntlm,uid=1000,gid=1000,vers=1.0 0 0 2. sudo gedit ~/.smbcredentials add 2 lines : username=msusername password=mspassword 3. chmod 600 ~/.smbcredentials 4. test it sudo mount -a 5. uid=1000 = my user id, gid=1000 gruop id and umask=022 sets permissions so owner has read,witre,ececute,groups and others will have read and execute 6. /dev/sdb1 /media/1TB auto defaults 7. /dev/sdb1 /media/1TB auto defaults 8. //30.3.3.59/server2tvshows /media/tvshows cifs uid=1000,gid=1000,credentials=/home/beastyjoe4k/.pussy,iocharset=utf8 0 0 9. //30.3.3.59/server2files1 /media/files cifs uid=1000,gid=1000,credentials=/home/beastyjoe4k/.dick1,iocharset=utf8 0 0 10. //30.3.3.59/server2moives /media/moives cifs uid=1000,gid=1000,credentials=/home/beastyjoe4k/.amdsucks,iocharset=utf8 0 0 //192.168.0.5/everything /mnt/abc cifs credentials=/home/godz/.smbcredentials,iocharset=utf8,_netdev 0 0 rassbery pi Install the unattended-upgrades package 1. sudo apt install unattended-upgrades 2.sudo nano /etc/apt/apt.conf.d/50unattended-upgrades 3.untick //Unattended-Upgrade::Mail ""; 4.sudo dpkg-reconfigure --priority=low unattended-upgrades fail2ban 1.sudo apt install fail2ban 2. sudo service fail2ban restart rassbery pi sawpfile 1.sudo dphys-swapfile swapoff 2. sudo nano /etc/dphys-swapfile find CONF_SWAPSIZE=100 3.sudo dphys-swapfile setup 4. sudo dphys-swapfile swapon 5. sudo reboot Ventoy 1. Download Ventoy from https://github.com/ventoy/Ventoy/releases 2. Extract the tar.gz file that you downloaded: sudo tar -xf ventoy-1.0.43-linux.tar.gz (change number to the new one) 3. Change directory to the extracted folder: cd ventoy-1.0.43 (change number to the new one) 4. Start the VentoyWeb.sh script with the following command: sudo ./VentoyWeb.sh http://127.0.0.1:24680 Java 1. download .deb file https://www.oracle.com/java/technologies/downloads/ 2. sudo dpkg -i jdk-17_linux-x64_bin.deb (name of fille after -i) 3. sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-17/bin/java 1 4. sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-17/bin/javac 1 5. sudo update-alternatives --config java 6. sudo nano /etc/environment add : 2 JAVA_HOME="/usr/lib/jvm/jdk-17" 7. java --version Andriod studio (needs java and snap) 1. sudo snap install android-studio --classic Anbox (android eu) (needs snap) (cant have java installed) 1. sudo snap install --devmode --beta anbox 2. sudo apt install wget curl lzip tar unzip squashfs-tools 3. wget https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-playstore.sh 4. chmod +x install-playstore.sh 5. ./install-playstore.sh 6. anbox.appmgr 7. Then go to Settings > Apps > Google Play Services > Permissions and enable all available permissions. Do the same for Google Play Store! 8. You should now be able to go to the Google Play store and download any app you see available. Remember.... they may not all work. 9. sudo apt install android-tools-adb 10. adb install my-app.apk ADB commands 1. adb devices //show devices attached 2. adb uninstall 3. -d - directs command to the only connected USB device... -e - directs command to the only running emulator... Stacer (task maganger) 1. sudo apt-get -y install stacer mangohub (fps) 1. sudo add-apt-repository ppa:flexiondotorg/mangohud 2. sudo apt-get update 3. sudo apt-get install mangohud Subline text 3 1. sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common 2. sudo apt-get install curl 3. curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/" 4. sudo apt install sublime-text Steam 1. sudo add-apt-repository multiverse sudo apt update 2. sudo apt install steam 3. sudo apt install python3 4. sudo mkdir /.steam/root/compatibilitytools.d sudo apt install python3root/compatibilitytools.d 5. cd to where the .tar file is for proton cd ~/Downloads sudo tar -xf GE-Proton7-9.tar.gz -C ~/.steam/root/compatibilitytools.d/ 6. Restart Steam. 7. Enable proton-ge-custom in steam play in the setting HandBrake 1. sudo apt-get install handbrake 2.DVD rip sudo apt install libdvd-pkg sudo dpkg-reconfigure libdvd-pkg DVDStyler 1. sudo add-apt-repository ppa:ubuntuhandbook1/dvdstyler 2. sudo apt update sudo apt install dvdstyler chkrootkit (Check for rootkits) 1. sudo apt-get install chkrootkit 2. sudo chkrootkit custom ubuntu 1. sudo apt-get install gnome-shell-extensions 2. sudo apt-get install goome-tweaks 3. install gone shell firefox and turn on user themes dash to dock and edit it position to the bootom 4. copy icons and themes to home and levae them in floders and extract them and del the .tar files TimeShift 1. sudo add-apt-repository -y ppa:teejee2008/timeshift 2. sudo apt-get update 3. sudo apt-get install timeshift VLC 1. sudo snap install vlc Rambox 1. wget https://github.com/saenzramiro/rambox/releases/download/0.7.7/Rambox-0.7.7-linux-amd64.deb 2. sudo apt update 3. sudo apt install ./Rambox-0.7.7-linux-amd64.deb get Iplayer downloader 1. sudo apt install libwww-perl liblwp-protocol-https-perl libmojolicious-perl libxml-libxml-perl libcgi-pm-perl 2. sudo apt install build-essential cpanminus liblocal-lib-perl 3. sudo apt install atomicparsley ffmpeg 4. sudo wget https://raw.githubusercontent.com/get-iplayer/get_iplayer/master/get_iplayer 5. sudo install -m 755 ./get_iplayer /usr/local/bin 6. sudo get_iplayer [...] 7. get_iplayer --release-check 8. get_iplayer --prefs-add --release-check usefull commands get_iplayer --tv-quality=hd get_iplayer --file-prefix="<-senum><-episodeshort>" get_iplayer --prefs-add --output="/home/user/recordings/" get_iplayer --prefs-add --output "/home/beastyjoe4k/Videos/" get_iplayer --fileprefix="<.>senumx<.episodeshort>" get_iplayer https:// get_iplayer --get 123 --subdir --subdir-format=--fileprefix="<.>senumx<.episodeshort>" get_iplayer --get 123 --subdir --subdir-format= get_iplayer --get 123 --file-prefix="<.>senumx<.episodeshort>" get_iplayer --prefs-add --file-prefix="--" the right one winetricks 1. sudo apt-get update -y 2. sudo apt-get install -y winetricks Wine 1. sudo dpkg --add-architecture i386 sudo apt update 2. sudo apt install software-properties-common 3. sudo apt-add-repository "deb http://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main" 4. sudo apt install --install-recommends winehq-stable 5. test wine --version winecfg krusader file manager 1. sudo apt-get update -y 2. sudo apt-get install -y krusader terminator (terminal) 1. sudo apt-get install terminator 2. sudo apt install fonts-powerline 3. sudo nano .bashrc and copy this https://raw.githubusercontent.com/ChrisTitusTech/scripts/master/fancy-bash-promt.sh at the end Kodi 1. sudo apt install software-properties-common sudo add-apt-repository -y ppa:team-xbmc/ppa sudo apt-get update 2. sudo apt install kodi 3. https://host505.github.io/ cheackrain 1. wget -O - https://assets.checkra.in/debian/archive.key | gpg --dearmor | sudo tee /usr/share/keyrings/checkra1n.gpg >/dev/null 2. echo 'deb [signed-by=/usr/share/keyrings/checkra1n.gpg] https://assets.checkra.in/debian /' | sudo tee /etc/apt/sources.list.d/checkra1n.list 3. sudo apt-get update 4. sudo apt-get install checkra1n QEMU/KVM 1. sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils 2. sudo apt install virt-manager ClamAV 1. sudo apt-get install clamav clamav-daemon -y 2. sudo systemctl stop clamav-freshclam 3. sudo freshclam sudo clamscan -r --bell -i (scan) Enable 2FA 1. sudo apt install libpam-google-authenticator 2. sudo nano /etc/pam.d/common-auth add line: auth required pam_google_authenticator.so 3. google-authenticator use full comands sudo apt --fix-missing update sudo apt-get update sudo apt-get upgrade sudo apt-get autoremove sudo apt-get autoclean sudo ubuntu-drivers autoinstall mic settings 1. sudo alsamixer OBS 1. sudo apt install ffmpeg 2. sudo apt install v4l2loopback-dkms 3. sudo add-apt-repository ppa:obsproject/obs-studio sudo apt update sudo apt install obs-studio Chmod privileges Access class Access Type Number u (user) r (read) = 4 g (group) w (write) = 2 o (other) x (execute) = 1 so for each access class add the numbers of read, write, execute then after you done that put the number together read write execute eg: user has read and execute privileges user (4 + 0 + 1 = 5) group has wirite privilegs group (0 + 2 + 0 = 2) other has no privilegs other (0 + 0 + 0 = 0) then put the numbers together ¬ so it would be chmod 520 =520