Friday, January 19, 2018

How to make an Ubuntu Active Directory Domain controller with Samba (Ubuntu 16.04 Server and Samba4)

How to make an Active Directory Domain controller using Ubuntu 16.04 Server and Samba4

Following screenshots are showing the Installation of Ubuntu 16.04 Server.


Choose the OpenSSH Server package

After restarting the server, Login with created user credentials.
1. Set password for root: through following method.
sudo passwd root
Enter the password of User (Ex: Vikram)
Enter the new password
Retype the new password
(Here I've used same password User and Root)

2. For switch user enter the command of su and enter the password of root

3. Check the IP Address through ifconfig command,

4. Change the IP address as static,
    vi /etc/network/interfaces

5. Change the Localhost IP and Hostname as following screenshot

6. Restart the server, after login switch to Root user su.
update and upgrade the default packages through following command.
apt-get update && apt-get upgrade -y


7. After update, Enter the following command for software package installation: sudo apt-get install git build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dev python-dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr krb5-user docbook-xsl libcups2-dev libpam0g-dev ntp -y


8. Configuring the Kerberos Authentication
1. Default Kerberos version 5 realm: UTP.LOCAL
2. Kerberos servers for your realm: utpserver
3. Administrative Server for your kerberos realm: utpserver

9. Enter the following command.
git clone -b v4-1-stable git://git.samba.org/samba.git samba4

10. cd samba4

11. ./configure --enable-debug --enable-selftest

12. make

13. make install

14. /usr/local/samba/bin/samba-tool domain provision --realm=utp.local --domain=utp --adminpass="UTPServer123" --server-role=dc --dns-backend=SAMBA_INTERNAL

Restart the server 
15. su
cd samba4
usr/local/samba/sbin/samba -V
usr/local/samba/bin/smbclient -V
usr/local/samba/bin/smbclient -L localhost -U%

16. /usr/local/samba/bin/smbclient //localhost/netlogon -UAdministrator%UTPServer123" -c 'ls'

17. echo domain utp.local >> /etc/resolve.conf

18. vi /usr/local/samba/etc/smb.conf  
 change the dns forwarder IP

19. vi /usr/local/samba/share/setup/krb5.conf
modify the default realm = utp.local

20.mkdir -m 770 /Users
chmod g+s /Users
chown root:users /Users
kinit administrator@UTP.LOCAL
klist -c

21. vi /usr/local/samba/etc/smb.conf
Modify the conf file as shown in following screenshot. 

22. /usr/local/samba/bin/samba-tool user setexpiry administrator --noexpiry


 Join the client desktop to the created Domain through following steps. 




 After joining the desktop to the Domain, login with the Domain user ID.

 

Managing the Domain through Remote Server Administration Tool
Download and install the Remote Server Administration Tools through following link. 
For Windows 7: https://www.microsoft.com/en-ca/download/details.aspx?id=7887
For Windows 8: https://www.microsoft.com/en-ca/download/details.aspx?id=28972
For Windows 8.1: https://www.microsoft.com/en-ca/download/details.aspx?id=39296

1. After the installation of Remote Server Administration Tool go to the Programs and Features window and select Turn Windows features on or off.

2. Select the check box as marked on the screenshot

 3. Manage the Domain users through Administrative tools.   





Tuesday, December 12, 2017

No init found. Try passing init=bootarg_initramfs



1. Boot your system through Ubuntu Live-CD.

2. Open Terminal and enter the following command.

sudo fsck /dev/sda1
or
sudo fsck /dev/sda (x)

if ask permission to proceed press Y

after completion reboot you system with normal mode.

We can't sign into your account-Windows 10 Temp profile issue




Windows 10 problem after update and lost file. sometime we found we can't sign into your account.
It's can be solved using this way. but before you should backup your user data from C drive - User (Your profile_C:\Users\Vikram).

1. Open the command prompt and enter the following command and hit Enter

CMD: wmic useraccount where name='your user profile name' get sid

2. Open Regedit

Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList


3. Right click the ProfileImagePath and choose modify (C:\Users\Temp), modify your profile name instead of Temp.

4. Now click Sign out and login to your user account.

  

Wednesday, November 8, 2017

Ubuntu File Structure

All filesystems are contained within one directory, The root directory is the top level directory, and all its sub-directories make up the directory hierarchy of needs.

•/bin ­­ binary applications (most of your executable files) 

•/boot ­­ files required to boot (such as the kernel, etc) 


•/dev ­­ your devices (everything from drives to displays) 


•/etc ­­ just about every configuration file for your system 


•/etc/rc.d  contains a number of shell scripts that are run on bootup at different run levels. 


•/etc/X11 ­­ configuration files for the X Window system


•/home ­­ locally stored user files and folders 


•/lib ­­ system libraries (similar to Program Files) 


•/media mounted or loaded devices such as cdroms, digital cameras, etc. 


•/mnt ­­ mounted file systems 


•/opt ­­ location for “optionally” installed programs 


•/sbin ­­ system­only binaries


•/sys ­­ contains information about the system 


•/tmp ­­ temporary files 


•/usr ­­ applications mainly for regular users 


•/var ­­ mainly logs, databases, etc.

Tuesday, October 24, 2017

Changing The Size Of The Preview Images In Explorer

Depending on the screen resolution, the images displayed in the preview in windows explorer are so tiny that similar photographs can barely be distinguished from one another. Is there a way i can make the preview larger?

Changing A Value In The Registry Instead Can Increase The Size Of The Preview

1.Open The Registry Editor And Navigate To The Key “HKEY_CURENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer”.

2.Click on "Edit NEW DWORD-Value".
Name this New Entry “Thumbnailsize”.

3.Double Click On The Entry,Selectthe "Decimal" Ratio Button And Enter A Number Between “32” And “256” The Default Value Is “96”.

4.Enter A Larger Value To Increase The Thumbnail size.Confirm The Change By Clicking On “OK”. Restart windows explorer for the changes to take effect.

Friday, June 9, 2017

Your connection is not private - Chromium_Ubuntu





Error:
Your connection is not private
Attackers might be trying to steal your information from www.google.rs (for example, passwords, messages, or credit cards). NET::ERR_CERT_WEAK_SIGNATURE_ALGORITHM

To resolve the issue in Ubuntu OS through install the Network Security Service libraries package through terminal and restart the Desktop.
sudo apt-get install libnss3-1d