sábado, maio 04, 2019

ActiveDirectory Winbind Howto authenticate linux user with AD or samba-server


Packages to install
aptitude install winbind samba  smbclient libpam-winbind libnss-winbind

$ vi /etc/samba/smb.conf

       security = ADS
       workgroup = DOMAIN
       realm = AD.DOMAIN
       #log file = /var/log/samba/%m.log
       #log level = 1
       idmap config *:range = 10000-20000

        winbind enum users = yes
        winbind enum groups = yes
        template homedir = /home/%D/%U
        template shell = /bin/bash
        winbind use default domain = yes
       map acl inherit = yes
       store dos attributes = yes
       winbind refresh tickets = yes
       winbind enum users = Yes
       winbind enum groups = Yes
       winbind use default domain = Yes

       idmap config * : schema_mode = rfc2307
       idmap config * : default = yes
       idmap config DOMAIN : backend = ad
       idmap config * : backend = tdb

       log file = /var/log/samba/log.%m
       max log size = 1000
       logging = fil

$ net ads join -U Administrator

$ systemctl restart winbind.service
$ systemctl restart smbd.service
$ systemctl restart nmbd.service
$ pam-auth-update
 (make sure winbind is selected)

vi /etc/nsswitch.conf
passwd:         compat systemd winbind
group:          compat systemd winbind

Test it
$ getent passwd
$ wbinfo -u

This commands above should bring users from AD

In order to have users login you need to create it's home at /home/DOMAIN/user1

If you want sudo to work do:
for a group (this enable and do not ask for password)
%domain\ admins ALL=(ALL) NOPASSWD: ALL
for a user only

sexta-feira, maio 03, 2019

3 Command Line Tools to Install Local Debian (.DEB) Packages dpkg | gdebi | apt install .deb


sudo dpkg -i teamviewer_amd64.deb
sudo apt-get install -f
sudo dpkg -r teamviewer       [Remove Package]
sudo dpkg --purge teamviewer  [Remove Package with Configuration Files]
sudo apt install ./teamviewer_amd64.deb
sudo apt-get install ./teamviewer_amd64.deb
sudo apt-get remove teamviewer
sudo apt-get purge teamviewer
sudo apt remove teamviewer
sudo apt purge teamviewer

sudo gdebi teamviewer_13.1.3026_amd64.deb
gdebi install with all dependencies.

To remove a package installed from gdebi, you can use apt, apt-get or dpkg commands using purge option as shown.

$ sudo apt purge teamviewer
$ sudo apt-get purge teamviewer
$ sudo dpkg --purge teamviewer

quinta-feira, maio 02, 2019

using raspberry pi 3 as windows 10 desktop



Super easy to use. No-hassle.

Please keep reading carefully. All you need is here.


  • Raspberry Pi 3 Model B (or B+)
  • MicroSD card. Recommended with A1 rating.
  • A Windows 10 ARM64 Image (.wim). Please, check this link to get it.

Additional requirements

  • To run WOA Deployer you need a recent version of Windows 10 (please, use the latest to ensure it'll run correctly, don't open issues otherwise)
  • .NET Framework 4.6.1 (should come included in recent versions of Windows)

Download it

Download the latest version

Executing the tool

  1. Extract the .zip to a folder in your PC
  2. Navigate to the GUI folder
  3. Find the .exe file
  4. Run it

Show the love 🧡

Do you like my tool? Has it been useful for you? Then, I hope you point_right support my work

Donate to the contributors of this project

Please, don't forget that the RaspberryPi WOA Project is supported by other individuals and companies (see the credits and acknowledgements section).

Need help?

Then visit our projects website at https://pi64.win, the one-stop solution for all your questions blush
It's also recommended that you read the FAQ blue_book And, of course, don't hesitate to join our great Telegram group iphone

Credits and Acknowledgements

This WOA Deployer is possible because the great community behind it. I would like to thank the brilliant minds behind this technical wonder. If you think you should be listed, please, contact me using the e-mail address on my profile.
  • Andrei Warkentin for the 64-bit Pi UEFI, UEFI Pi (HDMI, USB, SD/MMC) drivers, improved ATF and Windows boot/runtime support.
  • MCCI for their great contribution to the RaspberryPI WOA project:
    • for porting their TrueTask USB stack to Windows 10 ARM64, and allowing non-commercial use with this project (see license)
    • for funding the site of the project http://pi64.win and the discourse site http://discourse.pi64.win
    • Special thanks to Terry Moore for all the great support and commitment, and for setting up the online presence for the project and its infrastructure.
  • Ard Bisheuvel for initial ATF and UEFI ports
  • Googulator for his method to install WOA in the Raspberry Pi
  • Bas Timmer (@NTauthority) for leaving ample thick hints that led to the development of HypDXe and the first bootable WOA builds
  • Microsoft for their original 32-bit UEFI for PiWindows BSP drivers, and for removing the HAL check that required HypDxe in the first place, so now we can run any new build.
  • Mario Bălănică for his awesome tool, and for tips and support :)
    • daveb77
    • thchi12
    • falkor2k15
    • driver1998
    • XperfectTR
    • woachk
    • novaspirit
    • zlockard
    ...for everything from ACPI/driver work to installation procedures, testing and so on.
  • Microsoft for the 32-bit IoT firmware.
In addition to:
And our wonderful group at Telegram for their testing and support!

Related projects

These are the related projects. The Core Packages comes from them. Big thanks!