martes, 10 de marzo de 2020

Add printer support to Debian 10




apt install task-print-server

All the printer on network are available!!!


Image from here, thanks

Delete domain user profile on a workstation with Windows 10






  • Start | Run
  • sysdm.cpl
  • switch to register "Advanced"
  • In the "User Profiles" section click on "Settings"
  • The "User Profiles" dialog is displayed
  • Select the account. Hit Delete.


Image from iconifinder, Thanks

lunes, 9 de marzo de 2020

Install Chrome on Debian 10

 
 
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt install ./google-chrome-stable_current_amd64.deb

jueves, 5 de marzo de 2020

Compress and decompress files on Linux



.Tar.gz files:
Compress: tar -czvf packaging.tar.gz / folder / a / package /
Unzip: tar -xzvf file.tar.gz

.Tar files:
Package: tar -cvf package.tar / dir / to / compress /
Unpack: tar -xvf package.tar

.Gz files:
Compress: gzip -9 index.php
Unzip: gzip -d index.php.gz

.Zip files:
Compress: zip file.zip folder
Unzip: unzip file.zip

Samba on debian 10 as member of domain



Join in Active Directory Domain
https://www.server-world.info/en/note?os=Debian_10&p=realmd

Samba : Samba Winbind
https://www.server-world.info/en/note?os=Debian_10&p=samba&f=3

Samba : Fully accessed share directory
https://www.server-world.info/en/note?os=Debian_10&p=samba&f=1

Warning: "kerberos method" must be set to a keytab method to use keytab functions.


Insert in smb.conf:

kerberos method = dedicated keytab
dedicated keytab file = /etc/krb5.keytab

net ads keytab create -U Your_admin_user
service sssd start

Realm leave clear and re-join



Leave the realm:

realm leave Your_realm_name
Some clean ups:

systemctl stop sssd
find /var/lib/sss/ -name '*.ldb' -delete
> /etc/sssd/sssd.conf
systemctl stop realmd

Join it again:

realm join Your_realm_name -U Your_admin_user_on_realm