jueves, 28 de mayo de 2020

LINUX. Samba Client. Basic configuration

Purpose

Mapped remote Samba server folders Linux machine boot client.

Steps

[1] Update system

  Command: apt-get update

  Command: apt-get upgrade


[2] Install Samba Client

 Command: apt-get install smbclient


[3] Check remote shares

Command: smbclient -U SambaUser -L 10.10.10.10
Description: Test connection


[4] Check manual connection

Command: smbclient //10.10.10.10/SambaDiskShare -U  SambaUser
DescriptionMap net share


[5] Configure start system to map samba remote shares

Command:  sudo mkdir /media/usbremoto
DescriptionCreate mount point


Command:  sudo cp /etc/fstab /etc/fstab.old
DescriptionBackup fstab file


Command:  sudo nano /etc/fstab 
DescriptionModify fstab file

//10.10.10.10/SambaDiskShare /media/usbremoto cifs username=SambaUser,password=XXXXXXXXX 0 0

Expecial for Raspberry Pi

//10.10.10.10/SambaDiskShare /media/usbremoto cifs username=SambaUser,password=XXXXXXXXX,,x-systemd.automount 0 0 


[6] Manual mount

  Command:  sudo mount -a


[7] Manual and visual verification

  Command:  ls /media/usbremoto


Future improvements
  • Hidden user & password
  • Modify share folders (read only)
  • Configure FW rules

Check at Linux
by GoN | Published: May 29, 2020 | Last Updated:

miércoles, 27 de mayo de 2020

LINUX. RDP. UBUNTU. Remote Desktop. xrdp


Purpose

Configure graphical linux remote sesions. 


Steps

Command: ip a
Description: Check IP linux address


Command: uname -a
Description: Linux version


Comamnd: sudo apt-get update
Description: update system


Command: sudo apt-get install xrdp
Description: Install rdp program



Command: sudo systemctl enable xrdp
Description: activate rdp service


Command: systemctl status xrdp
Description: Check rdp status


Command: (In Windows) mstsc
Description: Open rdp client


Put user linux and password:


Access to linux GUI Desktop



Some times when you contect to Ubuntu server only can view a Black screen, the cause is that you connect with user root, try connect with other user with less privileges

Check at Ubuntu 20.04 
by GoN | Published: May 27, 2020 | Last Updated: May 29, 2020