6

I was wondering if I could install google chrome without using the sudo command.

I've tried to use the tutorials from google but I couldn't read it because I accidently downloaded the french version of Ubuntu, so I basically don't know what's happening, also, I'm a complete noob at Ubuntu... so if anyone could give me a very very basic tutorial on how to do it, it would be appreciated.

Thanks in advance.

Kyle
  • 61
  • 1
  • 1
  • 2

5 Answers5

5

1)

cd
mkdir -p ~/local/pkg
mkdir -p ~/local/src/chrome
mkdir -p ~/local/bin

2) Download the package corresponding to your Linux distribution to the ~/local/pkg directory. If you're on Ubuntu, this is the .deb package.

3) Extract the package in the ~/local/src/chrome/ directory:

  • If .deb package: dpkg -x google-chrom...
  • If .rpm package: rpm2cpio ~/local/pkg/google-chrom... | cpio -id

4) Link libraries:

cd ~/local/src/chrome/opt/google/chrome/
ln -s /lib64/libbz2.so.1 libbz2.so.1.0
ln -s /lib64/libnspr4.so libnspr4.so.0d
ln -s /usr/lib64/libnss3.so libnss3.so.1d
ln -s /usr/lib64/libnssutil3.so libnssutil3.so.1d
ln -s /lib64/libplc4.so libplc4.so.0d
ln -s /usr/lib64/libsmime3.so libsmime3.so.1d

5) Add ~/local/bin/ to your path by pasting

for dir in "$HOME/local/bin"; do
  if [ -d "$dir" ]; then
    PATH="$dir:$PATH"
  fi
done

in your .bashrc file, then run source ~/.bashrc. Done!

4

I guess without sudo you cannot install google chrome. Because google chrome will try to install it in directory /opt and few other root directory, which needs sudo privilege.

But the alternative way is to install the chrome portable app. But to run a portable app you must have RUNZ framework

Follow the procedures in this link to install google chrome portable.

But I would recommend you to install the Google chrome with sudo permissions using the below commands

Add PPA to

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

sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

Install Google chrome

sudo apt-get update
sudo apt-get install google-chrome-stable

Hope this helps

devav2
  • 37,290
3

There is no French version of ubuntu, it's just language you chose while installing ubuntu, you can change it if you wish.

The sudo command is for giving administrator privileges for an operation, admin privilege is necessary for installing a software, by the way, why don't you want to use sudo?

Tachyons
  • 17,455
0
  1. Download the stable version of google-chrome from the home page

  2. Extract the downloaded package to a location of your choice

    e.g: with .deb package: dpkg -x google-chrom... path/to/google-chrome

  3. Run google-chrome from path/to/google-chrome/opt/google/chrome/google-chrome

  4. Follow this step if you wish to open google-chrome from your status bar. When google-chrome is open right click on the icon at the status bar then select lock to launcher option.

-1

You can use the latest builds of the chromium project and use it directly without sudo. All you would need to do is to extract the zip they provide and then execute it using terminal. You can look for more information in this method at how-to-install-chromium-zip-file

Karthik T
  • 2,116