google chrome – TecAdmin https://tecadmin.net How to guide for System Administrator's and Developers Thu, 12 Jan 2023 13:43:14 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 How to Install Google Chrome in Pop!_OS https://tecadmin.net/how-to-install-google-chrome-in-popos/ https://tecadmin.net/how-to-install-google-chrome-in-popos/#respond Thu, 12 Jan 2023 13:43:14 +0000 https://tecadmin.net/?p=33368 Google Chrome is a popular web browser that is widely used for browsing the internet, streaming videos, and running web-based applications. If you want to install Google Chrome on Pop!_OS, you can follow a few simple steps to download and install the browser. In this article, we will walk through the process of installing Google [...]

The post How to Install Google Chrome in Pop!_OS appeared first on TecAdmin.

]]>
Google Chrome is a popular web browser that is widely used for browsing the internet, streaming videos, and running web-based applications. If you want to install Google Chrome on Pop!_OS, you can follow a few simple steps to download and install the browser. In this article, we will walk through the process of installing Google Chrome on Pop!_OS, including downloading the installation package, installing dependencies, making the package executable, and using the “dpkg” command to install the package.

Steps to Install Google Chrome on Pop!_OS

  1. Download the Google Chrome package:
  2. Go to the Google Chrome website (https://www.google.com/chrome/) and click on the “Download Chrome” button. This will download the installation package for the latest version of Google Chrome.

    You can also download the latest Google Chrome version directly from the terminal with the following command:

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

    The above command will download “google-chrome-stable_current_amd64.deb” in the current directory.

  3. Install the necessary dependencies:
  4. Google Chrome requires several dependencies to be installed on your system in order to run. To install these dependencies, you can use the following command:

    sudo apt install libappindicator3-1 libgbm1 libindicator3-7 libu2f-udev
    

  5. Install Google Chrome:
  6. To install Google Chrome, you can use the “dpkg” command, which is a package manager for .deb packages. Run the following command:

    sudo dpkg -i google-chrome-stable_current_amd64.deb 
    

    This will install the Google Chrome web browser and its dependencies on your Pop!_OS system.

  7. Launch Google Chrome:
  8. To launch Google Chrome, you can use the `google-chrome` command in the terminal, or you can search for “Google Chrome” in the Pop!_OS menu and click on the icon to open the browser.

    Installing Google Chrome on Pop!_OS
    Installing Google Chrome on Pop!_OS

Conclusion

Installing Google Chrome on Pop!_OS is a straightforward process that involves downloading the installation package from the Google Chrome website, installing the necessary dependencies, making the package executable, and using the “dpkg” command to install the package. Once Google Chrome is installed, you can launch it from the terminal or the Pop!_OS menu. With Google Chrome installed, you can enjoy all of the features and benefits of this popular web browser on your Pop!_OS system.

The post How to Install Google Chrome in Pop!_OS appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-install-google-chrome-in-popos/feed/ 0
Setup Selenium with Python and Chrome on Fedora https://tecadmin.net/configuring-the-selenium-with-python-on-fedora/ https://tecadmin.net/configuring-the-selenium-with-python-on-fedora/#respond Sat, 18 Jun 2022 04:40:38 +0000 https://tecadmin.net/?p=30102 Selenium is a versatile tool, which is widely used for automating browser-based tests. It can be used to automate tests for web applications and web services. Selenium supports a number of programming languages, including Java, C#, Python, and Ruby. This makes it possible to write tests in the language that you are most comfortable with. [...]

The post Setup Selenium with Python and Chrome on Fedora appeared first on TecAdmin.

]]>
Selenium is a versatile tool, which is widely used for automating browser-based tests. It can be used to automate tests for web applications and web services. Selenium supports a number of programming languages, including Java, C#, Python, and Ruby.

This makes it possible to write tests in the language that you are most comfortable with. In addition, Selenium has a large user community that provides support and help when needed.

This tutorial will help you to configure the environment for Selenium with Python and Chrome on Fedora. We will discuss an example written in Python.

Prerequisites

Assuming you have access to a Fedora system with a Sudo privileged account.

This tutorial can be run with GUI access or shell access only.

Step 1 – Installing Google Chrome

You can use firefox or Google Chrome web browser to run your selenium test cases. In this article, we will discuss examples with the Google Chrome web browser.

So, Let’s install Google chrome first. Enable the google-chome repository with the below-mentioned commands:

sudo dnf install fedora-workstation-repositories 
sudo dnf config-manager --set-enabled google-chrome 

Now, install the latest google chrome stable web browser:

sudo dnf install google-chrome-stable 

Google Chrome will be installed on your Fedora system.

Step 2 – Setup Python Environment

We will create a virtual environment for running our Python test cases. Follow the below steps to create Python virtual environment, and install the required modules.

  1. Installing Python and its virutal environent module.
    sudo dnf install python3 python3-virtualenv 
    
  2. Create a directory for contianing python environment and scripts..
    mkdir tests && cd tests 
    
  3. Create virutal environment
    python3 -m venv venv 
    source venv/bin/activate 
    
    Creating Python Virtual Environment for Selenium on Fedora
    Creating Python Virtual Environment for Selenium on Fedora
  4. Installing selenium and webdriver manager using PIP under the virtual environemnt.
    pip install selenium webdriver-manager 
    

    Installing selenium for Python on Fedora
    Installing selenium for Python on Fedora

Step 3 – Running an Example with Selenium Python

The Python virtual environment is ready to run Selenium scripts. Let’s run an example script, that opens a website in a headless (Useful for remote ssh access) google chrome browser and prints the title of the website.

Make sure the Python virtual environment is active. you can identify that using the terminal prompt. Now create a Python script and edit it in a text editor.

nano test1.py 

Copy-paste the below snippet to file:

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager

options = Options()
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)

driver.get("https://python.org")
print(driver.title)
driver.close()

Press CTRL +O to write changes and then press CTRL + X to exit from the editor.

Now, run your Python script:

python test1.py 

You will see the output something like below:

Running Selenium Python Script on Fedora
Running Selenium Python Script on Fedora

At the first run, the script will download the latest chromedriver and place it in your system to use for the next executions.

In the output, you can see the title of the given website is printed on the screen.

Conclusion

Selenium is a popular tool among website testers for running automatic test cases. In this tutorial, we have discussed configuring the Selenium environment with Python scripts.

The post Setup Selenium with Python and Chrome on Fedora appeared first on TecAdmin.

]]>
https://tecadmin.net/configuring-the-selenium-with-python-on-fedora/feed/ 0
How To Install Google Chrome on Ubuntu 20.04 https://tecadmin.net/install-google-chrome-on-ubuntu-20-04/ https://tecadmin.net/install-google-chrome-on-ubuntu-20-04/#comments Tue, 06 Oct 2020 11:13:57 +0000 https://tecadmin.net/?p=23091 Google Chrome is the most popular web browser between developers and Internet users. It is available for the most popular operating systems (like Windows, Linux) and Android devices. As of the last update of this article, Google Chrome 91 is the latest stable version available to install. An official PPA is available to install Google [...]

The post How To Install Google Chrome on Ubuntu 20.04 appeared first on TecAdmin.

]]>
Google Chrome is the most popular web browser between developers and Internet users. It is available for the most popular operating systems (like Windows, Linux) and Android devices. As of the last update of this article, Google Chrome 91 is the latest stable version available to install.

An official PPA is available to install Google Chrome on Ubuntu and other Debian-based systems. Which provides you easy to an install and update option. As well as, you can directly install Google chrome with a graphical interface. This tutorial will cover both methods to install Google Chrome with Command line and GUI.

If you are searching for the Chromium web browser, You can use our tutorial to install Chromium web browser on Ubuntu system.

Let’s begin the installation of the latest Google Chrome web browser on the Ubuntu 20.04 LTS systems.

Prerequisites

  • You must have a running Ubuntu 20.04 LTS Desktop system.
  • Login to your Desktop system with sudo privileged account.

Installing Google Chrome on Ubuntu

First of all, You need to configure Google Chrome Apt repository on your Ubuntu system. Before adding the repository, you must import the GPG key to your system.

  1. Open a terminal on your system and type:
    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
    
  2. Next, create a Apt PPA file for Google chrome on your system by executing:
    sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' 
    

    The above command will create an Apt configuration file /etc/apt/sources.list.d/google.list to your system.

  3. Your system is ready for Google Chrome installation. Execute the following commands to update the apt cache and install the Google chrome stable package on a Ubuntu system.
    sudo apt update 
    sudo apt install google-chrome-stable 
    

    Press ‘y’ for all the confirmation asked by the installer.

That’s it. You have successfully installed the Google chrome web browser on your Ubuntu system.

Launch Chrome Application

Once the installation finished, you can run the application from applications. Click on show application’s icon at bottom left. Then search for the Google chrome, and you will see the application like below:

Launch Google chrome on Ubuntu 20.04

Click on the launcher icon to start Google chrome on the Ubuntu system.

Installing Google chrome on Ubuntu 20.04

Enjoy browsing!

Upgrade Chrome on Ubuntu

You have installed Google chrome from the official PPA on your Ubuntu system. The upgrade of Google chrome is straightforward. Open a terminal and execute the below commands to upgrade Google chrome on a Ubuntu system.

sudo apt update && apt upgrade 

The above command will upgrade all system packages including Google chrome on your system.

Conclusion

Congratulation’s you have successfully installed Google chrome on Ubuntu 20.04 Linux system. The same commands will also be used to upgrade the older versions.

You can also use the Google chrome GUI installer to install with a graphical interface.

The post How To Install Google Chrome on Ubuntu 20.04 appeared first on TecAdmin.

]]>
https://tecadmin.net/install-google-chrome-on-ubuntu-20-04/feed/ 1
How to Install Google Chrome on Ubuntu 18.04 https://tecadmin.net/install-google-chrome-on-ubuntu-18-04/ https://tecadmin.net/install-google-chrome-on-ubuntu-18-04/#comments Fri, 02 Oct 2020 06:06:44 +0000 https://tecadmin.net/?p=23096 Google Chrome is the most popular web browser used by Internet users. It is available for the most popular operating systems (like Windows, Linux) and Android devices. You can also install chromium browser on your Ubuntu system. The development team uses chromium source code to build the Chrome browser. Google chrome is not installed by [...]

The post How to Install Google Chrome on Ubuntu 18.04 appeared first on TecAdmin.

]]>
Google Chrome is the most popular web browser used by Internet users. It is available for the most popular operating systems (like Windows, Linux) and Android devices.

You can also install chromium browser on your Ubuntu system. The development team uses chromium source code to build the Chrome browser.

Google chrome is not installed by default on Ubuntu systems. So, this article will guide you to install the latest Google Chrome on Ubuntu 18.04 LTS Linux system.

Prerequisites

Login to your Ubuntu 18.04 LTS system with sudo privileged account.

Install Chrome on Ubuntu 18.04

The Chrome official team provides Debian packages of the Google chrome for the installation on Debian-based system. You just need to add the repository on your system and install Chrome.

First of all, import the GPG key to system used for verifying the packages singed by it. Open a terminal and execute following command:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 

Now, configure the Chrome PPA to your system. The below command will create a PPA file and configure repository:

echo “deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main” | sudo tee /etc/apt/sources.list.d/google.list’ 

Once you configured PPA, your Ubuntu system is ready for the Google chrome installation. Run the following commands to install google chrome on Ubuntu 18.04 system.

sudo apt update 
sudo apt install google-chrome-stable 

Press ‘y’, if the installer prompt for the confirmation.

Running Chrome Application

Click on the application’s launch button at bottom left corner, then search for google chrome. You will see the chrome launcher icon as below:

Launch Chrome Application Ubuntu 18.04

Click the launcher icon to start the Google Chrome application.

Running Chrome on Ubuntu 18.04

All done, enjoy browsing with the power of Google chrome.

Conclusion

In this tutorial, you have found the instructions to install the Google Chrome web browser on Ubuntu 18.04 LTS systems.

The post How to Install Google Chrome on Ubuntu 18.04 appeared first on TecAdmin.

]]>
https://tecadmin.net/install-google-chrome-on-ubuntu-18-04/feed/ 1
How to Capture Screenshot of Webpage Using Google Chrome https://tecadmin.net/capture-screenshot-google-chrome-headless/ https://tecadmin.net/capture-screenshot-google-chrome-headless/#comments Wed, 07 Jun 2017 17:27:54 +0000 https://tecadmin.net/?p=12847 The Google Chrome 59 and newer versions have included a new feature headless which provides functionality to run Google Chrome without UI. This allows users to use Google Chrome on the command line as well as scripts. This headless Google Chrome version also included the feature to capture a screenshot of any website using the [...]

The post How to Capture Screenshot of Webpage Using Google Chrome appeared first on TecAdmin.

]]>
The Google Chrome 59 and newer versions have included a new feature headless which provides functionality to run Google Chrome without UI. This allows users to use Google Chrome on the command line as well as scripts. This headless Google Chrome version also included the feature to capture a screenshot of any website using the command line tool.

Requirements:

You must be using Google Chrome 59 or a later version. With Google Chrome version 59, it’s only available for MAC OS and Linux users. Windows users still have to wait for some time.

Capture Screenshot:

Use the following command to capture a screenshot of the given web page. The output file will be created in the current directory with the name screenshot.png.

google-chrome --headless --disable-gpu --screenshot http://www.example.com/

You can also specifiy the dimension of screenshot using --window-size option like below.

google-chrome --headless --disable-gpu --window-size=1280,768 --screenshot http://www.example.com/

You can also specify output filename with location as --screenshot=file1.png to create specific name.

google-chrome --headless --disable-gpu --print-to-pdf=file1.png http://www.example.com/

Reference:
https://developers.google.com/web/updates/2017/04/headless-chrome

The post How to Capture Screenshot of Webpage Using Google Chrome appeared first on TecAdmin.

]]>
https://tecadmin.net/capture-screenshot-google-chrome-headless/feed/ 4
How to Install Google Chrome on Ubuntu https://tecadmin.net/install-google-chrome-in-ubuntu/ https://tecadmin.net/install-google-chrome-in-ubuntu/#comments Fri, 25 Mar 2016 08:58:49 +0000 https://tecadmin.net/?p=3207 Have you ever wondered why there are not so many users of Chromium-based browsers on Linux? Most people prefer using Google Chrome rather than the other Chromium-based browsers. The good news is that you can also enjoy its benefits by installing Google Chrome on Ubuntu and Linux Mint. If you love Google Chrome, but prefer [...]

The post How to Install Google Chrome on Ubuntu appeared first on TecAdmin.

]]>
Have you ever wondered why there are not so many users of Chromium-based browsers on Linux? Most people prefer using Google Chrome rather than the other Chromium-based browsers. The good news is that you can also enjoy its benefits by installing Google Chrome on Ubuntu and Linux Mint. If you love Google Chrome, but prefer to use it from the terminal instead of having another browser as your primary app, this article should be useful for you.

In this article, we’ll show you how to install Google Chrome on Ubuntu or Linux Mint and some tips for how to use it as your primary browser. Read on!

How to Install Google Chrome with PPA

The Google Chrome developer team provides a PPA for installing it on the Debian-based systems. All the users, that have terminal access only can follow these instructions. Use the below instructions to install Google Chrome with PPA on Ubuntu, Debian, and LinuxMint systems.

  1. Configure GPG Key: First, you need to configure the GPG key on your system. The latest Linux operating systems changed the way of using GPG keys. So use one of the below commands as per the operating system version:
    • Ubuntu 22.04 and newer versions:
      curl https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/chrome.gpg > /dev/null 2>&1 
      
    • Ubuntu 20.04 and older versions:
      wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
      
  2. Setup Chrome PPA: Next, create a PPA file for Google Chrome on your system. Use one of the below commands as per your operating system version:
    • Ubuntu 22.04 and newer versions:
      sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' 
      
    • Ubuntu 20.04 and older versions:
      sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/chrome.gpg ] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' 
      
  3. Install Google Chrome Application: After adding the Google Chrome repository to our system use the following commands to install the latest Google Chrome stable release. If you already have installed an older version, It will upgrade the currently installed version with the recent stable version.
    sudo apt update 
    sudo apt install google-chrome-stable 
    

    If prompted for confirmation, Press ‘y’ and hit enter to complete the Google chrome installation.

    How to Install Google Chrome In Ubuntu
    Installing Google Chrome In Ubuntu

Launch Google Chrome

You have successfully installed Google Chrome on your Ubuntu or LinuxMint system. After successful installation, the GUI can search for the chrome launcher icon under applications to start the application.

How to Install Google Chrome on Ubuntu
Launch Google Chrome

During the first launch, Chrome will prompt you to set it as the default browser. Choose options of your choice and click Ok.

How to Install Google Chrome on Ubuntu & LinuxMint
Set Google Chrome as default browser

The Google Chrome web browser is successfully installed and running on the Ubuntu system.

Installing Chrome on Ubuntu
Google Chrome browser running on Ubuntu

Tips for Using Google Chrome on Linux

If you’re using Google Chrome as your primary browser, we recommend that you install the following open-source extensions to enjoy all its features in an easier way.

  • The Great Suspender: This is one of the most useful extensions for Chrome on Linux. It will automatically suspend the inactive tabs, making your browser faster.
  • Session Buddy: With Session Buddy, you can resume your tabs from where you left off. This is great if you’re using more than one computer.
  • Hover Zoom: Hover Zoom allows you to zoom images by hovering the cursor over them.
  • Download Tab: You can download the complete contents of a tab or a link.
  • Speed Dial: Google Speed Dial is an excellent alternative to the built-in New Tab.
  • Session Manager: This extension allows you to save and restore sessions.

Conclusion

Chromium-based browsers are very fast and efficient. If you’re a heavy user of the internet, Google Chrome is the best browser for you. And now that you know how to install and use it, there’s no reason for you not to try it out. We hope you find this article useful. Stay tuned for more guides on Chrome on Linux!

The post How to Install Google Chrome on Ubuntu appeared first on TecAdmin.

]]>
https://tecadmin.net/install-google-chrome-in-ubuntu/feed/ 45
How to Install Google Chrome in Fedora & CentOS/RHEL 8 https://tecadmin.net/install-google-chrome-in-centos-rhel-and-fedora/ https://tecadmin.net/install-google-chrome-in-centos-rhel-and-fedora/#comments Fri, 25 Mar 2016 01:00:11 +0000 https://tecadmin.net/?p=1600 Google Chrome is a freeware web browser developed by Google Inc. It was released as a beta version for Microsoft Windows on September 2, 2008, and as a stable public release on December 11, 2008. This tutorial helps you with how to Install Google Chrome’s latest release on CentOS/RHEL 8 & Fedora Linux systems. You [...]

The post How to Install Google Chrome in Fedora & CentOS/RHEL 8 appeared first on TecAdmin.

]]>
Google Chrome is a freeware web browser developed by Google Inc. It was released as a beta version for Microsoft Windows on September 2, 2008, and as a stable public release on December 11, 2008.

This tutorial helps you with how to Install Google Chrome’s latest release on CentOS/RHEL 8 & Fedora Linux systems.

Step 1 – Enable Yum Repository

Google chrome team provides an official yum repository to install chrome on Fedora and CentOS systems. The Fedora 34/33/32 users need to enable the google-chrome repository on their system. And the CentOS/RHEL 8/7 & Fedora 26/25 Users need to create a yum configuration file on your system using the following content.

Fedora Users

sudo dnf install fedora-workstation-repositories
sudo dnf config-manager --set-enabled google-chrome

CentOS/RHEL 8 Users

sudo vi /etc/yum.repos.d/google-chrome.repo
File content: /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub

Step 2 – Install or Update Google Chrome

Now, you have a choice to install the current stable release of Google Chrome or the beta release on your Linux system. Let’s use the following commands to install the latest Google chrome as per your needs.

Install Stable Version

sudo dnf install google-chrome-stable     #Fedora 
sudo dnf install google-chrome-stable     #CentOS/RHEL 8 
sudo yum install google-chrome-stable     #CentOS/RHEL 7 

Install Beta Version

sudo dnf install google-chrome-beta     #Fedora 
sudo dnf install google-chrome-beta     #CentOS/RHEL 8 
sudo yum install google-chrome-beta     #CentOS/RHEL 7 

Step 3 – Launch Google Chrome

You have installed Google chrome on a Fedora/CentOS/RHEL system. Use the following command to launch Google Chrome from a non-root account and enjoy browsing.

google-chrome

or start the process in the background

google-chrome &

install Google Chrome on Fedora

The post How to Install Google Chrome in Fedora & CentOS/RHEL 8 appeared first on TecAdmin.

]]>
https://tecadmin.net/install-google-chrome-in-centos-rhel-and-fedora/feed/ 41