All supplied tasks in one clean page
This page turns the supplied materials into one simple guide. The text is shorter, sorted, and free of note-style comments.
Each section shows the goal, the working steps, and the commands you can copy.
Windows client
Office 365, Group Policy, Visual Studio, and the Windows setup trick.
Linux server
Samba, ACL, SSH, and Apache localhost.
Network tasks
Shared folders, access rights, and tests from Windows.
Mikrotik
Router setup, Wi-Fi, SSH, backup, and AP work.
Install Office 365 from a server share
Use this when the install files are already prepared on a shared folder on the server.
Steps
- On the client, create the working folder
C:\odt. - Open the shared path from the server, for example
\\192.168.70.254\sdileny\install\odt-office. - Copy
setup.exe, the XML configuration file, and the other needed files intoC:\odt. - Open Command Prompt as administrator.
- Move to the folder
C:\odt. - Run
setup.exe /configure configuration-Office365-x64.xml. - Wait for the Microsoft 365 install window to finish.
- After the install, open Word or Excel and check that the app starts normally.
What must already exist
- The server must already share the install folder.
- The client must have read access to that folder.
- The folder must contain the correct file
configuration-Office365-x64.xml. - If the XML downloads packages from the internet, the client must also have internet access.
COMMANDS
mkdir C:\odt
xcopy \192.168.70.254\sdileny\install\odt-office\* C:\odt\ /E /I /Y
cd /d C:\odt
setup.exe /configure configuration-Office365-x64.xml
Group Policy Editor and local user setup
This is the full task written as small steps so you do not need to search through many menus.
Task 1: create the user user
- Press Win + R.
- Type
lusrmgr.mscand confirm. - Open the Users folder.
- Right-click the empty area and choose New User.
- Enter the name
user, set a password, and create the account. - Check that the user is in the Users group.
Task 2: start Microsoft Edge after sign-in
- Press Win + R.
- Type
shell:startupand confirm. - Put a shortcut to Microsoft Edge into that folder.
- Sign out and sign in again to check that Edge starts automatically.
Task 3: block Control Panel access
- Press Win + R.
- Type
gpedit.mscand confirm. - Open User Configuration -> Administrative Templates -> Control Panel.
- Find the rule Prohibit access to Control Panel and PC settings.
- Open it and set it to Enabled.
Task 4: hide Documents in the Start menu
- In
gpedit.msc, open User Configuration -> Administrative Templates -> Start Menu and Taskbar. - Find the rule Remove Documents icon from Start Menu.
- Set it to Enabled.
Task 5: remove Recycle Bin from the desktop
- In
gpedit.msc, open User Configuration -> Administrative Templates -> Desktop. - Find the rule Remove Recycle Bin icon from desktop.
- Set it to Enabled.
Task 6: show This PC, Network, and the user files on the desktop
- Right-click the desktop and choose Personalize.
- Open Themes -> Desktop icon settings.
- Turn on Computer, User's Files, and Network.
- Confirm with OK.
Task 7: the user must not shut down the PC
- In
gpedit.msc, open User Configuration -> Administrative Templates -> Start Menu and Taskbar. - Find the rule Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands.
- Set it to Enabled.
- Sign out the user or run
gpupdate /force.
Install Visual Studio from the server
This version uses a shared network folder and starts the offline installer from there.
Steps
- Open Command Prompt.
- Map the network drive with
net use J: \\192.168.70.254\sdileny. - Switch to drive
J:. - Open the folder
install\vs22. - Run
vs_community.exe --noweb --wait. - Wait until the install finishes.
- After the install, check that Visual Studio opens from the Start menu.
Quick check
- The drive
J:must be available. - The folder
vs22must contain the installer EXE. - The install should finish without an error and without switching to a web installer.
COMMANDS
net use J: \\192.168.70.254\sdileny
J:
cd install\vs22
vs_community.exe --noweb --wait
Install Samba and make the share work
This is a basic working version: two users, one group, one shared folder, and a test from Linux and Windows.
Steps on the server
- Install the packages
sambaandsmbclient. - Create the users
karelandmarie. - Create the group
sdileniand add both users to it. - Create the folder
/srv/data, set the owner toroot:sdileni, and set permissions to770. - Add both users to Samba with
smbpasswd -a. - Add the share definition into
/etc/samba/smb.conf. - Run
testparm -sand restartsmbdandnmbd.
Quick check
- Check the service with
systemctl status smbdandsystemctl status nmbd. - On Linux, test the share list with
smbclient -L localhost -U karel. - On Windows, open
\\SERVER_IP\data. - Sign in with
karelormarie.
COMMANDS
sudo apt update
sudo apt install samba smbclient
sudo adduser karel
sudo adduser marie
sudo groupadd sdileni
sudo usermod -aG sdileni karel
sudo usermod -aG sdileni marie
sudo mkdir -p /srv/data
sudo chown root:sdileni /srv/data
sudo chmod 770 /srv/data
sudo smbpasswd -a karel
sudo smbpasswd -a marie
sudo nano /etc/samba/smb.conf
sudo testparm -s
sudo systemctl restart smbd nmbd
systemctl status smbd
systemctl status nmbd
smbclient -L localhost -U karel
COMMANDS
[data]
path = /srv/data
browseable = yes
read only = no
valid users = karel marie @sdileni
create mask = 0660
directory mask = 0770
ACL permissions for Pavel, Dana, and Radek
This part turns the folder tree and permission table into one working Debian and Samba setup.
| Folder | Pavel | Dana | Radek |
|---|---|---|---|
| THP / documents | full | none | none |
| THP / private | full | none | none |
| THP / shared | read, save, delete | none | none |
| ACCOUNTING / documents | none | full | read, execute |
| ACCOUNTING / work | none | read, write | read, write |
| FOREMAN / documents | none | none | full |
| FOREMAN / shared | read | none | rwx |
| FOREMAN / programs | rw | read | rwx |
Steps
- Install the packages
sambaandacl. - Create the users
pavel,dana, andradek. - Create the folder tree from the task.
- Set pass-through access on the top folders and set
770on the working subfolders. - Use
setfaclto set user rights on each folder. - Set the same ACL rules as default so new files inherit them.
- Add the users to Samba and share
/srv/firma/home/zamestnanci.
Quick check
- Check the rights with
getfacl. - After restarting Samba, connect to the share from Windows.
- Sign in as Pavel, Dana, and Radek and test the correct folders.
- A user must not see or change folders that are not allowed by the table.
COMMANDS
sudo apt update
sudo apt install samba acl
sudo adduser pavel
sudo adduser dana
sudo adduser radek
sudo mkdir -p /srv/firma/home/zamestnanci/THP/{dokumenty,soukrome,sdilene}
sudo mkdir -p /srv/firma/home/zamestnanci/UCETNI/{dokumenty,prace}
sudo mkdir -p /srv/firma/home/zamestnanci/MISTR/{dokumenty,sdilene,programy}
sudo chmod 755 /srv/firma /srv/firma/home /srv/firma/home/zamestnanci
sudo find /srv/firma/home/zamestnanci -type d -exec chmod 770 {} \;
BASE=/srv/firma/home/zamestnanci
# THP
sudo setfacl -m u:pavel:rwx,u:dana:---,u:radek:--- $BASE/THP/dokumenty
sudo setfacl -d -m u:pavel:rwx,u:dana:---,u:radek:--- $BASE/THP/dokumenty
sudo setfacl -m u:pavel:rwx,u:dana:---,u:radek:--- $BASE/THP/soukrome
sudo setfacl -d -m u:pavel:rwx,u:dana:---,u:radek:--- $BASE/THP/soukrome
sudo setfacl -m u:pavel:rwx,u:dana:---,u:radek:--- $BASE/THP/sdilene
sudo setfacl -d -m u:pavel:rwx,u:dana:---,u:radek:--- $BASE/THP/sdilene
# UCETNI
sudo setfacl -m u:pavel:---,u:dana:rwx,u:radek:r-x $BASE/UCETNI/dokumenty
sudo setfacl -d -m u:pavel:---,u:dana:rwx,u:radek:r-x $BASE/UCETNI/dokumenty
sudo setfacl -m u:pavel:---,u:dana:rwx,u:radek:rwx $BASE/UCETNI/prace
sudo setfacl -d -m u:pavel:---,u:dana:rwx,u:radek:rwx $BASE/UCETNI/prace
# MISTR
sudo setfacl -m u:pavel:---,u:dana:---,u:radek:rwx $BASE/MISTR/dokumenty
sudo setfacl -d -m u:pavel:---,u:dana:---,u:radek:rwx $BASE/MISTR/dokumenty
sudo setfacl -m u:pavel:r-x,u:dana:---,u:radek:rwx $BASE/MISTR/sdilene
sudo setfacl -d -m u:pavel:r-x,u:dana:---,u:radek:rwx $BASE/MISTR/sdilene
sudo setfacl -m u:pavel:rwx,u:dana:r-x,u:radek:rwx $BASE/MISTR/programy
sudo setfacl -d -m u:pavel:rwx,u:dana:r-x,u:radek:rwx $BASE/MISTR/programy
sudo smbpasswd -a pavel
sudo smbpasswd -a dana
sudo smbpasswd -a radek
sudo getfacl $BASE/MISTR/programy
COMMANDS
[zamestnanci]
path = /srv/firma/home/zamestnanci
browseable = yes
read only = no
valid users = pavel dana radek
create mask = 0660
directory mask = 0770
Install SSH on Linux and connect from Windows
If Samba AD runs on Linux, SSH is installed on the same server. The Windows client then connects with the built-in SSH client or with PuTTY.
Debian / Samba AD server
- Install
openssh-server. - Start the
sshservice and enable auto-start. - Check that it listens on port 22.
- If you use a firewall, allow the SSH port.
- On a Samba AD server, use an account that has a shell and permission to manage the server.
Windows client
- Open PowerShell or CMD.
- If OpenSSH Client is installed, use
ssh user@IP. - If you use PuTTY, enter the server IP, choose SSH, and use port 22.
- On the first connection, confirm the fingerprint and enter the password.
- After sign-in, check the server with
hostnameorip a.
COMMANDS
sudo apt update
sudo apt install openssh-server
sudo systemctl enable --now ssh
sudo systemctl status ssh
sudo ss -tlnp | grep :22
# Windows client (PowerShell or CMD)
ssh user@192.168.70.254
Debian / Apache: make localhost work
The fastest working version is to install Apache, start the service, and check the default page on http://localhost.
Steps
- Install the package
apache2. - Start the service and enable auto-start.
- On the server, open
http://localhostin a browser. - If the default Apache page appears, the server is working.
- Put your own test page into
/var/www/html/index.html. - After editing the page, refresh the browser or use
curl http://localhost.
Quick check
systemctl status apache2must show an active service.http://localhostmust open in a browser.- From another PC on the network you can also test
http://SERVER_IP.
COMMANDS
sudo apt update
sudo apt install apache2
sudo systemctl enable --now apache2
systemctl status apache2
curl http://localhost
sudo nano /var/www/html/index.html
COMMANDS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Apache test</title>
</head>
<body>
<h1>Apache works on Debian</h1>
<p>This page is served by localhost.</p>
</body>
</html>
Shift + F10 and the OOBE command
Use this during the first Windows setup when you need to open Command Prompt inside the setup process.
Steps
- During the first Windows setup, press Shift + F10.
- Command Prompt opens.
- Type
OOBE\BYPASSNRO. - After the restart, continue with the setup path that your Windows version allows.
Important
- The original notes had a typo. The correct command is
OOBE\BYPASSNRO. - If one Windows build does not accept the command, continue with another available setup option.
COMMANDS
Shift + F10
OOBE\BYPASSNRO
Mikrotik setup from the supplied task
Both Mikrotik tasks are rewritten below in the order that is easiest to configure in WinBox.
Task 1: router 192.168.50.1, Wi-Fi demo_test, SSH port 10022
- Open System -> Reset Configuration and tick No Default Configuration.
- After restart, set
192.168.50.1/24on the LAN or bridge interface. - Run IP -> DHCP Server -> DHCP Setup and make a pool with only 5 addresses.
- In Wireless, set the SSID to
demo_test. - In Security Profiles, set WPA and WPA2 and use the password
mikrotik. - In IP -> Services, keep WinBox enabled, change SSH to port
10022, and disable the other unused services. - On the client, install PuTTY and test the router IP on port
10022. - In WinBox, create a backup named
routerbackup.
Task 2: Router 1 and Router 2 as an AP over PoE
- On Router 1, set IP
192.168.60.1/24. - Set DHCP for only 5 addresses.
- Power Router 2 from Router 1 over PoE.
- Set Router 2 as an access point.
- Set Wi-Fi SSID to
zkouskaand the password totest. - Set the AP address range to the network
10.20.x.xwith mask255.255.0.0. - After you connect everything, check that a client gets an address from the range and joins the Wi-Fi.
COMMANDS
System -> Reset Configuration -> tick No Default Configuration
IP -> Addresses -> 192.168.50.1/24 on LAN/bridge
IP -> DHCP Server -> DHCP Setup -> pool for example 192.168.50.10-192.168.50.14
Wireless -> SSID demo_test
Wireless -> Security Profiles -> WPA/WPA2, password mikrotik
IP -> Services -> keep WinBox, move SSH to port 10022, disable the others
Files -> Backup -> name routerbackup
COMMANDS
Router 1: 192.168.60.1/24, DHCP range for 5 addresses
Router 2: power over PoE from Router 1
Set Router 2 as AP
SSID: zkouska
Wi-Fi password: test
AP network: 10.20.x.x / 255.255.0.0