From ae08b37bafcf2e3774c8bbc9e06b4340f7c31777 Mon Sep 17 00:00:00 2001 From: sengstock Date: Tue, 18 Mar 2025 09:47:10 +0100 Subject: [PATCH] =?UTF-8?q?README.md=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit README/Documentation added --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..66d8930 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +## README + +This repository contains some more or less usefull linux scripts. ;) + +**`remote-admin.sh`** +This script checks for the next free remote-admin pc and established a RDP session using xfreerdp to it. +To use this script you need to create two files in your home directory + +.smbcredentials + + username=YOUR AD USERNAME + password=YOUR AD PASSWORD + +.remote-admin + + USERNAME=administrator@zfd.forumzfd.de + PASSWORD=AD ADMIN PASSWORD FROM BITWARDEN + +Make sure to proper chmod them (e.g. `chmod 600`) + +Add the following line to your /etc/fstab and edit YOUR_USERNAME + + //remote-admin1/Ampel /tmp/remote-ampel cifs credentials=/home/YOUR_USERNAME/.smbcredentials,user,noauto,workgroup=ZFD,dir_mode=0777,file_mode=0777,_netdev 0 0 + +setuid might be necessary on /usr/sbin/mount.cifs. Set it as root with + + chmod u+s /usr/sbin/mount.cifs + +Make sure you have xfreerdp installed on your computer. \ No newline at end of file