CyberKeeda In Social Media
Showing posts with label Ubuntu 18.04. Show all posts
Showing posts with label Ubuntu 18.04. Show all posts

Ubuntu 18.04 Error : We cannot detect a running copy of GNOME on this system.

You might be trying to install GNOME-Shell Extension from browser and got an error like "We cannot detect a running copy of GNOME on this system, so some parts of the interface may be disabled"

Fix : Install GNOME Shell Integration plugin

How to install it, lets follow the below steps.

For Chrome :


  • Chrome Web Store --> Search for "Gnome shell integration" --> Add to Chrome
  • Open Terminal and install chrome-gnome-shell


sudo apt-get install chrome-gnome-shell
  • Restart Browser and try to install additional Gnome extensions.














For Firefox :
  • Firefox Add On --> Search for "Gnome shell integration" --> Add to Firefox --> Followup the instructions asked by Firefox to add it.

  • Restart Browser and try to install additional Gnome extensions.















Read more ...

How to install latest version of docker-compose on Ubuntu 18.04



Docker Compose requirements:

  • Pre-installed docker engine.


One liner command to install docker compose.

$  sudo curl -L https://github.com/docker/compose/releases/download/1.24.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

    Verify the installation by checking installed docker compose version.

    $  docker-compose --version
       
      Do let me know your installed version in comments, mine is 

      docker-compose version 1.24.0, build 0aa59064

      Read more ...

      How to install Jenkins on Ubuntu 18.04 Bionic


      Here we go, proceed with the below steps.


      • Mandatory requirement : Jave aka OpenJDK.
      $  sudo apt install openjdk-8-jdk
      Once installed verify the installation using the below command.
      $  java -version

      • Installing Jenkins.

      Official Ubuntu ships with older versions of jenkins, why lag behind let's add the new sources to install the latest version.

      • Add repository key first.
      $  wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
      • Once you got an OK confirmation, let's proceed to add debian package repository address to the our server's source list.
      $  sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
      • Now we are almost ready to install jenkins, lets make an update now
      $  wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
      • Here we go, install jenins now
      $  sudo apt install jenkins

      • Start Jenkins

      $  sudo systemctl start jenkins

        Access Admin Password to login to Jenkins UI.
        Open CLI, hit below cat command and grab the initial login password.

        $  sudo cat /var/lib/jenkins/secrets/initialAdminPassword

        Login to UI.

        $  http://<Your Jenkins Server IP>:8080/

          Further steps are self explanatory, install suggested plugins and change the initial admin password with your. 







          Read more ...

          Ubuntu Fix : Could not open lock file /var/lib/dpkg/lock-frontend - open (2: No such file or directory)


          Full Error :

          E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
          E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

          Fix :

          $ ps aux | grep -i apt
          : Find the corresponding PIDs, Kill using ( kill -9 <PID> and check if error went.

          An alternate for the above is to run below command.

          sudo killall apt apt-get
          
          Read more ...

          How to install and configure Docker-CE on Ubuntu



          Installation.

          • Begin with updating your system packages and remove other versions of docker and it's dependencies.
          $  sudo apt-get remove docker docker-engine docker.io containerd runc
          $  sudo apt-get update
          • Prepare system to download and install docker-ce from official repositories over https.
          $  sudo apt-get install \
              apt-transport-https \
              ca-certificates \
              curl \
              gnupg-agent \
              software-properties-common
          $  curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
          $  sudo apt-key fingerprint 0EBFCD88

          $  sudo add-apt-repository \
             "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
             $(lsb_release -cs) \
             stable"

          • Once docker repository is enabled, proceed ahead to install Docker-CE ( Community Edition.
          $  sudo apt-get update
          $  sudo apt-get install docker-ce docker-ce-cli containerd.io

          Now docker-ce has been installed, lets start the docker daemon and enable it on boot.
          $  sudo systemctl start docker
          $  sudo systemctl enable docker
          • To verify the status of  docker, run the below command.
          $  sudo systemctl status docker











            • In case, if you want to check your installed docker version.
            $  sudo docker -v

            Run Docker commands without sudo

            By default managing Docker requires administrator privileges. If you want to run Docker commands as a non-root user without adding sudo within yoir command you need to add your user to the docker group which is created during the installation of the Docker CE package. Add your user to docker group by below command.

            $  sudo usermod -aG docker $USER

            Logout- Login to reflect the changes.

            Read more ...

            How to Create Windows 10 Bootable USB on Ubuntu or any Linux desktop



            Are you looking for any desktop application on Ubuntu to create a bootable pendrive/flash drive with Windows.

            WoeUSB is a simple tool that enable you to create your own usb stick windows installer from an iso image or a real DVD.


            WoeUSB  package contains two programs:
            • woeusb: A command-line utility that enables you to create your own bootable Windows installation USB storage device from an existing Windows Installation disc or disk image
            • woeusbgui: A GUI wrapper of woeusb based on WxWidgets


            So, lets know how install the WoeUSB on Ubuntu 
            Official & updated Installation and Github link : Here
            #    sudo add-apt-repository ppa:nilarimogard/webupd8
            #    sudo apt update
            #    sudo apt install woeusb
            In case if you wish to remove that woeusb PPA, remove it from the bellow command.
            #    sudo add-apt-repository --remove ppa:nilarimogard/webupd8
            #    sudo apt-update
            Now, WoeUSB has installed on my Ubuntu, though the interface is self explanatory still let's move ahead and know how to use it.

            Open WoeUSB application and choose the USB drive and your windows iso kept within your Ubuntu.
            Once you are done click install and you are done, you can monitor the progress on screen.


            In case you receive a error dialogue like below, follow the below steps

            Find your USB drive's mounted file system and block by running lsblk on terminal and find your device their.
            To filter, look for size of your USB or name of the USB drive, below screen shot gives the picture of my USB drive ( 8 GB ) size, and named as /dev/sdc
            #    lsblk

            So we will unmount that partition out of the system.
            Notice there  /dev/sdc is the full size of my USB disk, but the data is witten on it's /dev/sdc1 partition.
            My USB disk is  /dev/sdc, ensure your USB is unmounted with the following command. Replace /dev/sdc1 with your own partition name.
            #    sudo umount /dev/sdc1
            Now try again from the   WoeUSB desktop application.
            In case if you are willing to do the same through woeusb CLI utility, here is the way.
            #    sudo woeusb -v --device /home/kunal/windows-10.iso /dev/sdc
            /home/kunal/windows-10.iso  :  Replace it with your iso location.
            /dev/sdc : replace it with your USB drive ( check it from lsblk )
            Read more ...

            How to install Sublime text editor on Ubuntu


            Sublime text editor is one of the popular text editor for code, markup and prose that's the line it says on it's official website  and most of the users believe the same.
            So let's know how to install it on your Ubuntu Box.

            I'm using Ubuntu 18.04  while writing this blog during installation.

            Install the GPG key


              #  wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

            Make apt work using https also


              #  sudo apt-get install apt-transport-https

            Select the channel to use ( Recommended Stable )
            For Stable release use the below command.
              #  echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list 

            For Development release use the below command.
              #  echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

            Update apt sources and install Sublime Text


              #  sudo apt-get update #  
              #  sudo apt-get install sublime-text

            To remove/uninstall sublime text editor  use the below command


              #  sudo apt-get remove sublime-text && sudo apt-get autoremove #  


            Meanwhile you can anytime install it from Ubuntu Software Center,  it's also enlisted there.

            Official Installation Link : Here


            Read more ...

            How to install MS Paint alternative Pinta on Ubuntu 18.04



            Missing MS Paint and it's user friendly featues on Ubuntu, Pinta can address almost all your needs.

            Pinta is a Open Source, easy-to-use open-source drawing and image editing program designed for entry-level users. It provides users with a simple yet powerful way to draw and edit images on Linux, Mac, and Windows.

            Features:

            Drawing Tools
            Effects (Blur, Glow, Warp etc)
            Image Adjustments (Auto Level, Black, and White, Sepia etc)
            Layers
            Unlimited undo/redo

            And much more...


            Here is the video tutorial for the installation.




            Read more ...

            How to create WiFi Hotspot on Ubuntu 18.04




            You might be looking to turn your Ubuntu 18.04 Laptop into to WiFi Hotspot to share your Broadband Connection/Internet Connection across you for your other devices ( Mobile, Ipads, etc ).

            So you are just a few clicks away to achieve it, believe me it's as easy as you do within your smartphone.

            Steps.

            Click on the top right buttons and click on the WiFi option. in the dropdown select Wifi-settings.





            Click on 'Turn On Wi-Fi ' option from the button.




            Click on the extra options ( 3 dots ), now Click on 'Turn On Wi-Fi Hotspot'





            The Hotspot is now active!!

            you can find the password and details.

            Now any of your devices can discover this Hotspot and connect to it with the given password.



            Video Tutorial:



            Read more ...
            Designed By Jackuna