Install samba server:
1 |
sudo apt install samba |
backup config filee:
1 |
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup |
create a shared folder for your user, like:
1 |
mkdir /home/<username>/mmyshare |
edit samba config file:
1 |
nano /etc/samba/smb.conf |
replace all smb.conf with this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
[global] workgroup = WORKGROUP server string = %h server (Samba, Ubuntu) log file = /var/log/samba/log.%m max log size = 1000 logging = file panic action = /usr/share/samba/panic-action %d server role = standalone server obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdate$ pam password change = yes map to guest = bad user usershare allow guests = yes [printers] comment = All Printers browseable = no path = /var/spool/samba printable = yes guest ok = no read only = yes create mask = 0700 [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes read only = yes guest ok = no [mysharename] comment = public anonymous access path = /home/<username>/mmyshare browsable =yes create mask = 0660 directory mask = 0771 writable = yes guest ok = no |
restart samba:
1 |
sudo systemctl restart smbd |
associarte a samba password to your systemm user:
1 |
sudo smbpasswd -a <username> |
restart samba:
1 |
sudo systemctl restart smbd |
Collegandosi al precedente articolo (articolo disponibile a questo link) in cui si esamiva l’ipotesi di creare un WebSocket client partendo dalla classe indy e implementando il protocollo web socket da zero (come piace agli anglofoni “from scratch”). Di seguito elenco le librerie ( generalmente commerciali ) che ho utilizzato nei miei progetti magari facendo un…
Leggi tutto
Come eseguire un metodo all’interno di un TThread in modo sincrono con il Thread principale dell’applicazione è abbastanza semplice. Supponiamo di voler syncronizzare l’accesso ad una variabile di conteggio, possiamo usare i metodi TThread.Synchronize e TThread.Queue. Il metodo TThread.Syncronize esegue immediatamente il metodo interrompendo immediatamente l’esecuzione del Thread principale mente il metodo TThread.Queue dovrebbe fare…
Leggi tutto
Today I tried to talk about programming with chatGPT…. and I must say I was amazed First I asked him for the code for a web server in Delphi: Then I asked him to add support for SSL Then if you give me an example of Machine Learning in Delphi Then I asked him what he…
Leggi tutto
Microsoft Remote Desktop Protocol ( RDP ) è forse il più usato tra i sistemi per gestire il desktop remoto, e risulta anche essere uno tra i più veloci e smart da usare. RDP lavora di base sulla porta TCP 3389 ed è nativo in tutti gli ambienti MS-Windows, anche per Linux sono disponibili diversi…
Leggi tutto
Grazie ad una copertura mondiale ed un accesso facile e immediato ai suoi report Creditsafe è diventato il fornitore di informazioni aziendali più utilizzato al mondo, con oltre 500.000 users e una presenza globale in 14 paesi. Le soluzioni di Creditsafe: Finance Per rendere migliori le decisioni sulla gestione dei crediti commerciali grazie alle…
Leggi tutto