Month: December 2020

Install and configure SAMBA

1. Install samba:

sudo apt install samba

2. Adding samba user and password: (must be existing user in Linux)

smbpasswd -a nameOfYourSambaUser

3. Add your shared folder the end of /etc/samba/smb.conf file:

[share name]
path = /yourSharedFolder
writeable = yes
browseable = yes
force user = nameOfYourSambaUser

You need to give permissions for yourSambaUser to access yourSharedFolder:

chown -R nameOfYourSambaUser /path/to/yourSharedFolder

If you want access without password, replace “force user = nameOfYourSambaUser” with: guest ok = yes

4. Restart samba service:

sudo service smbd restart

xrdp on lubuntu without black srceen

Ive got black screen when tried connect to linux from Windows Remote Desktop Connection. Solution on Lubuntu 18.04:

  1. install xrdp server:
    sudo apt install xrdp
    sudo systemctl enable xrdp
  2. In the /etc/xrdp/, you will need to comment (#) the last two lines and add at the bottom of the file, the following line, and SAVE:
    lxsession -s Lubuntu -e LXDE

  3. Finally restart xprdp:
    sudo /etc/init.d/xrdp restart