Contents

Setting up Samba Shares (Debian 13)

apt -y install samba
mkdir /home/share
chmod 777 /home/share
vi /etc/samba/smb.conf


[Share]
path = /home/share
writable = yes
guest ok = yes
guest only = yes
force create mode = 777
force directory mode = 777


systemctl restart smbd

Tip: A good alternative to vi is ne, which offers a convenient menu-driven interface.

Install Zerotier-One

curl -s https://install.zerotier.com | sudo bash

Uninstall Zerotier-One

apt remove zerotier-one
dpkg -P zerotier-one

Reset User Password Using GRUB

Press E in GRUB. Find the line beginning with linux. Change ro to rw and add:

init=/bin/bash

Boot with Ctrl+X or F10, then reset the password:

passwd username

Finally reboot:

reboot

Install ne in to replace vi

ne is a good alternative terminal editor for Debian based systems to use over vi.

apt install ne -y

Setup SSH

 sudo apt update
 sudo apt install openssh-server
 sudo ne /etc/ssh/sshd_config

Ensure the following lines are present and uncommented

 PasswordAuthentication yes

Change the port number if desired

Save and exit the file.

 sudo service ssh start