########################################## Basic WS ########################################## sudo apt remove gnome-games cheese -y sudo apt autoremove -y sudo apt install fail2ban tmux htop vinagre minicom pv vlc -y # Change night theme # Change background # Install hide topbar extension # Install ibus bamboo # Change sshd_config "PermitRootLogin yes" & X11-forward # Install graphics drivers # Samba/NFS? sudo apt install samba // sudo apt install nfs-kernel-server nfs-commnon ## /home/Data/NFS_Shares 192.168.122.0/255.255.255.0(rw,sync,no_subtree_check) sudo apt install samba -y sudo nano /etc/samba/smb.conf Add the followings [W_Point] comment = Accessible by all path = /home/NTFS/Shares/W_Shares/ browseable = yes guest ok = yes read only = no create mask = 0775 directory mask = 0775 # NFS sudo apt install nfs-kernel-server nfs-commnon -y sudo nano /etc/export Add the following /home/Data/NFS_Shares 192.168.122.0/255.255.255.0(rw,sync,no_subtree_check) # Avahi sudo apt install avahi-daemon -y # Virtual Manager sudo apt install --no-install-recommends qemu-system libvirt-clients libvirt-daemon-system -y sudo apt install virt-manager -y sudo adduser mgt libvirt # WineHQ sudo dpkg --add-architecture i386 sudo apt update #sudo apt install wine-stable wine-stable-i386 wine-stable-amd64 libwine libwine:i386 fonts-wine -y sudo apt install wine wine32 wine64 libwine fonts-wine winetricks -y Winearch=win32 WINEPREFIX="/home/mgt/.wine/" winecfg winetricks dotnet452 Wine has its own built-in uninstaller - the equivalent of Windows' "Add/Remove Programs" function for running standardized uninstallers. In recent versions, a shortcut has been added to Wine's menu, along with a shortcut to winecfg. Note that Wine does not fully implement everything required to cleanly uninstall all applications. Some uninstallers might not function at all. To remove all programs installed under Wine, remove the ~/.wine directory: rm -rf $HOME/.wine Also the uninstaller does not remove menu and desktop entries. To remove all Wine-created menu entries run the following commands rm -f $HOME/.config/menus/applications-merged/wine* rm -rf $HOME/.local/share/applications/wine rm -f $HOME/.local/share/desktop-directories/wine* rm -f $HOME/.local/share/icons/????_*.xpm # Install/Config CUPS sudo apt install cups sudo apt install printer-driver-all http://localhost:631/admin/ add printer manage printer: add allowed users, options # Install XRDP and config accept connection through ssh tunnels only # Not needed anymore (wget https://c-nergy.be/downloads/xRDP/xrdp-installer-1.4.7.zip ) # Not needed anymore unzip xrdp-installer-1.4.7.zip # Not needed anymore chmod +x xrdp-installer-1.4.7.sh # Not needed anymore ./xrdp ... -c # remove all dirs/subdirs/files when finised sudo apt install xrdp sudo nano /etc/xrdp/xrdp.ini # change port=3389 to port=tcp://.:3389 # On client machine - i.e Windows 10 - ssh -p 50022 mgt@mgt.dynu.net -L 50055:127.0.0.1:3389 to create ssh tunnel # On client machine - i.e Windows 10 - Remote Desktop Connection to localhost:50055 ########################################## FOR WS@fhl ########################################## # Install MS core fonts sudo apt-get install msttcorefonts fc-cache -f -v sudo cp /usr/share/fonts/truetype/msttcorefonts/Calibri.ttf /usr/local/share/fonts/ # Install REW # Copy Windows_10_tiny for Ultraviewer/Teamviewer and print # Install Ardour, Reaper # Buildroot sudo apt install sed make binutils build-essential diffutils gcc g++ bash patch gzip bzip2 perl tar cpio unzip rsync file bc findutils wget git graphviz # Install nginx sudo apt install nginx # change configs in /etc/nginx/sites-enable/default or copy old config files/folder # Evolution (Exchange Web Service) sudo apt-get install evolution-ews # GIMP sudo apt install gimp # PDFSam (AppImage: ok) # Audacity (AppImage: ok) # Viber (AppImage: ok) # Etcher (AppImage: ok) ########################################## Clone linux system ########################################## https://nikvdp.com/post/cloning-a-linux-install/ sudo mount --bind / /mnt/src # Mount system to some mount point to avoid copying loop sudo tar -C /mnt/src -c . > source-fs.tar # Create tar file from mounted system sudo mount /dev/ ~/dest # Mount destination disk part to some mount point pv < [image-file] | sudo tar -C ~/dest -x # Untar system to destination disk, use pv to show progress cd ~/dest for i in /dev /dev/pts /proc /sys /run; do sudo mount --bind $i .$i; done # Mount special device before chrooting mkdir -p ./boot/efi # skip if using MBR mode sudo mount /dev/ ./boot/efi # skip if using MBR mode sudo chroot . sudo nano /etc/fstab # Modify fstab to reflect new UUID/dev, at least for / partition apt install grub-efi-amd64-bin # skip if using MBR mode grub-install /dev/ # use the whole drive (e.g. sda, not sda1) mount -t efivarfs none /sys/firmware/efi/efivars