Tuesday, July 20, 2021

Installing the Chromium web Browser on the Raspberry Pi Desktop

Chrome browser is one of the most popular web browsers in the world, but not supported on the Raspberry Pi desktop. There are no builds of the Chrome web browser for any ARM-based desktop except for the Chromebooks, which unfortunately won’t support the Pi’s.

To get around this, we can use the open-source version of Chrome on our Raspberry Pi called Chromium browser. The Chromium web browser is the open-source version of Chrome. For the most part, it features the same functionality as Chrome.

Anyhow, it is missing out on some functionality that is not allowed to be included with the open-source version. These features are the proprietary libraries used for digital rights management. It means you will not be able to view streaming services like NETFLIX or Amazon Prime on your Raspberry Pi using the Chromium web browser.

The steps to installing the Chromium web browser on your Raspberry Pi.

1. Before we can install the Chromium web browser, we need to update the package list. To update the package list, use the command below.

In Terminal 

sudo apt update

2. we’ve to upgrade all of the packages which have already been installed. To run a full upgrade, you can use the following command.

sudo  apt full-upgrade 

3. To install the browser, you need to run the following command

sudo apt install chromium-browser -y

It will install the latest version of the web browser that is provided from the Raspberry Pi OS repository.


Thursday, July 30, 2020

How to check the Hard Disk Serial Number in Linux

Check the hard drive serial number using lshw.
lshw is a tool used to display the list of hardware installed on your computer. This tool has been installed by default on the vast majority of Linux. To use this tool to display the hard drive serial number, you can type the following command.

lshw -class disk

if not logged in through root user then type the following command.

sudo lshw -class disk

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.