Choose style:

Author Topic: Installing Yandex Browser Through The Terminal [SOLVED]  (Read 4193 times)

0 Members and 1 Guest are viewing this topic.

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3967
  • Karma: 361
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Installing Yandex Browser Through The Terminal [SOLVED]
« on: October 23, 2016, 05:59:54 pm »
Hello Peppermint,

I've found instructions on how to install Yandex browser via the terminal for Ubuntu here.  Needless to say, I'm trying to add this browser via the terminal to Peppermint 7.

But, according to the terminal, I have a malformed line in my source list --which means I'm making some mistake here with the commands I am entering in a terminal-type box of which I am unfamiliar.

Spoiler (click here to view / hide)
perknh@peppermint ~ $ sudo nano /etc/apt/sources.list.d/yandex-browser.list
[sudo] password for perknh:
perknh@peppermint ~ $ wget https://repo.yandex.ru/yandex-browser/YANDEX-BROWSER-KEY.GPG
--2016-10-23 17:36:45--  https://repo.yandex.ru/yandex-browser/YANDEX-BROWSER-KEY.GPG
Resolving repo.yandex.ru (repo.yandex.ru)... 213.180.204.183, 2a02:6b8::183
Connecting to repo.yandex.ru (repo.yandex.ru)|213.180.204.183|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3137 (3.1K) [application/octet-stream]
Saving to: ‘YANDEX-BROWSER-KEY.GPG’

YANDEX-BROWSER-KEY. 100%[===================>]   3.06K  --.-KB/s    in 0s     

2016-10-23 17:36:46 (300 MB/s) - ‘YANDEX-BROWSER-KEY.GPG’ saved [3137/3137]

perknh@peppermint ~ $ sudo apt update
E: Malformed line 2 in source list /etc/apt/sources.list.d/yandex-browser.list (type)
E: The list of sources could not be read.

perknh@peppermint ~ $
[close]

If somebody, with an interest in Yandex browser, could show me how to handle the second command, I'd really appreciate it.  The gray box where I'm to enter the code below really confuses me --reminding me of something from my old Crunchbang days.  :-\

Quote
deb [arch=amd64] http://repo.yandex.ru/yandex-browser/deb beta main

Thank you,

perknh
« Last Edit: October 23, 2016, 09:40:50 pm by perknh »
[T]here are a lot of people happily running Peppermint ICE which hasn't been receiving ANY updates for a while now .. and I personally would STILL consider that MUCH more secure than any version of Windows with up-to-date AV/Anti-malware ;)

--  PCNetSpec, Cornwall, Eng.  Dec 03, 2013 5:18 pm

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26454
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Installing Yandex Browser Through The Terminal
« Reply #1 on: October 23, 2016, 05:59:54 pm »
To help us help you, ALL new requests for technical support should include basic system information.

If you haven't already done so, please open a terminal (Ctrl+Alt+T) and run the following command:
Code: [Select]
inxi -Fz
then copy what was returned in the terminal and post it back here.

This was an automated response but please don't ignore it, providing this information now is highly likely to save time for both you and any prospective respondents and aid in the diagnosis of your problem  .. Thanks in advance :)

Note - Please rest assured there is nothing in the output from that command that could be construed as a 'security risk', the '-z' option makes sure of that by filtering out your MAC address.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3967
  • Karma: 361
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Installing Yandex Browser Through The Terminal
« Reply #2 on: October 23, 2016, 06:01:22 pm »
Spoiler (click here to view / hide)
perknh@peppermint ~ $ inxi -Fz
System:    Host: peppermint Kernel: 4.4.0-45-generic x86_64 (64 bit)
           Desktop: N/A Distro: Peppermint Seven
Machine:   System: TOSHIBA product: Satellite C70-A v: PSCE2U-03E00S
           Mobo: Type2 - Board Vendor Name1 model: Type2 - Board Product Name1 v: Type2 - Board Version
           Bios: Insyde v: 1.30 date: 04/18/2014
CPU:       Dual core Intel Pentium 2020M (-MCP-) cache: 2048 KB
           clock speeds: max: 2400 MHz 1: 1495 MHz 2: 1496 MHz
Graphics:  Card: Intel 3rd Gen Core processor Graphics Controller
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1600x900@60.01hz
           GLX Renderer: Mesa DRI Intel Ivybridge Mobile
           GLX Version: 3.0 Mesa 11.2.0
Audio:     Card Intel 7 Series/C210 Series Family High Definition Audio Controller
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.4.0-45-generic
Network:   Card-1: Realtek RTL8188EE Wireless Network Adapter
           driver: rtl8188ee
           IF: wlp2s0 state: down mac: <filter>
           Card-2: Qualcomm Atheros AR8162 Fast Ethernet driver: alx
           IF: enp3s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 240.1GB (4.6% used)
           ID-1: /dev/sda model: PNY_CS1311_240GB size: 240.1GB
Partition: ID-1: / size: 215G used: 4.8G (3%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 6.33GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 53.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 161 Uptime: 8:01 Memory: 1119.3/5861.8MB
           Client: Shell (bash) inxi: 2.2.35
perknh@peppermint ~ $
[close]
[T]here are a lot of people happily running Peppermint ICE which hasn't been receiving ANY updates for a while now .. and I personally would STILL consider that MUCH more secure than any version of Windows with up-to-date AV/Anti-malware ;)

--  PCNetSpec, Cornwall, Eng.  Dec 03, 2013 5:18 pm

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26454
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Installing Yandex Browser Through The Terminal
« Reply #3 on: October 23, 2016, 06:17:06 pm »
What's the contents of:
Code: [Select]
pluma /etc/apt/sources.list.d/yandex-browser.list



[EDIT]

Or if you just wanna fix it without bothering finding out where you went wrong, just run these 4 commands in sequence:-

remove the yandex-browser.list you created with:
Code: [Select]
sudo rm -v /etc/apt/sources.list.d/yandex-browser.list
then create a new one with:
Code: [Select]
echo "deb [arch=amd64] http://repo.yandex.ru/yandex-browser/deb beta main" | sudo tee /etc/apt/sources.list.d/yandex-browser-beta.list
then download and add the gpg key in a single command:
Code: [Select]
wget -q -O - https://repo.yandex.ru/yandex-browser/YANDEX-BROWSER-KEY.GPG | sudo apt-key add -
then update the package cache:
Code: [Select]
sudo apt update
and if you got no errors, then install yandex with:
Code: [Select]
sudo apt install yandex-browser-beta
« Last Edit: November 02, 2016, 05:53:30 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3967
  • Karma: 361
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Installing Yandex Browser Through The Terminal
« Reply #4 on: October 23, 2016, 06:56:03 pm »
What's the contents of:
Code: [Select]
pluma /etc/apt/sources.list.d/yandex-browser.list

Thank you, PCNetSpec,

Yes, I'm curious what I did wrong.  Then I'll do whatever you say.  In theory, since this is through the terminal, I would think this is a safer way to install a proprietary browser --even safer than what Google Chrome permits a Linux user to do.

Here's the output:

Code: [Select]
deb [arch=amd64] http://repo.yandex.ru/yandex-browser/deb beta main
0


« Last Edit: October 23, 2016, 06:57:52 pm by perknh »
[T]here are a lot of people happily running Peppermint ICE which hasn't been receiving ANY updates for a while now .. and I personally would STILL consider that MUCH more secure than any version of Windows with up-to-date AV/Anti-malware ;)

--  PCNetSpec, Cornwall, Eng.  Dec 03, 2013 5:18 pm

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26454
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Installing Yandex Browser Through The Terminal
« Reply #5 on: October 23, 2016, 07:14:24 pm »
it's that second line with the "0" on it that's the problem .. it shouldn't be there.

So, open yandex-browser.list for editing (use pluma instead of nano):
Code: [Select]
sudo pluma /etc/apt/sources.list.d/yandex-browser-beta.list
and make sure the ONLY line in that file reads
Code: [Select]
deb [arch=amd64] http://repo.yandex.ru/yandex-browser/deb beta main
Save the file and exit pluma.

Now as you've already added the key, just run:
Code: [Select]
sudo apt update
then
Code: [Select]
sudo apt install yandex-browser-beta
« Last Edit: November 02, 2016, 05:52:30 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3967
  • Karma: 361
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Installing Yandex Browser Through The Terminal
« Reply #6 on: October 23, 2016, 08:18:45 pm »
I get this after running:

sudo apt update.  What I highlighted in red causes me some concern:

Spoiler (click here to view / hide)
perknh@peppermint ~ $ sudo apt update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease                     
Hit:3 http://dl.google.com/linux/chrome/deb stable Release                     
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]   
Hit:5 http://archive.canonical.com/ubuntu xenial InRelease                     
Hit:6 http://ppa.launchpad.net/peppermintos/p7-release/ubuntu xenial InRelease
Hit:7 http://security.ubuntu.com/ubuntu xenial-security InRelease             
Hit:9 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease           
Get:10 http://repo.yandex.ru/yandex-browser/deb beta InRelease [4,249 B]
Err:10 http://repo.yandex.ru/yandex-browser/deb beta InRelease 
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 218017D1CC5FDB34
Reading package lists... Done
W: GPG error: http://repo.yandex.ru/yandex-browser/deb beta InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 218017D1CC5FDB34
E: The repository 'http://repo.yandex.ru/yandex-browser/deb beta InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure manpage for repository creation and user configuration details.

perknh@peppermint ~ $
[close]
[T]here are a lot of people happily running Peppermint ICE which hasn't been receiving ANY updates for a while now .. and I personally would STILL consider that MUCH more secure than any version of Windows with up-to-date AV/Anti-malware ;)

--  PCNetSpec, Cornwall, Eng.  Dec 03, 2013 5:18 pm

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26454
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Installing Yandex Browser Through The Terminal
« Reply #7 on: October 23, 2016, 08:30:37 pm »
Okay. maybe you didn't get the key then
Code: [Select]
wget -q -O - https://repo.yandex.ru/yandex-browser/YANDEX-BROWSER-KEY.GPG | sudo apt-key add -
then
Code: [Select]
sudo apt update
then
Code: [Select]
sudo apt install yandex-browser-beta
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3967
  • Karma: 361
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Installing Yandex Browser Through The Terminal
« Reply #8 on: October 23, 2016, 09:34:59 pm »
Perfect, PCNetSpec...that's a bull's-eye.  I've now, because of your expertise and help, installed Yandex browser to Peppermint 7 via the terminal.  :)

Now I wish to summarize, for someone else running Peppermint 7, how they can do this for themselves.

First create a source list file for Yandex browser:

Code: [Select]
sudo pluma /etc/apt/sources.list.d/yandex-browser-beta.list

and make sure the ONLY line in that file reads:

Code: [Select]
deb [arch=amd64] http://repo.yandex.ru/yandex-browser/deb beta main

Now, click SAVE and exit.

Now download and import the GPG key so that packages downloaded from this repository can be authenticated.

Code: [Select]
wget -q -O - https://repo.yandex.ru/yandex-browser/YANDEX-BROWSER-KEY.GPG | sudo apt-key add -

then update local package index:

Code: [Select]
sudo apt update

Finally, install Yandex browser:

Code: [Select]
sudo apt install yandex-browser-beta

That's it.  You've now installed Yandex browser in Peppermint 7 via the terminal!   8)

Credits and special thanks go to Xiao Guoan for linuxbabe.com who gave me the idea to adapt this article for Peppermint Linux OS.  And, of course, PCNetSpec, our friend, CEO, Team Leader and Support Administrator for Peppermint Linux OS, for instructing me, and showing us, how to do so.

Thank you, both.  ;)


P.S.

And here's a little something interesting about Yandex in general:

Yandex Is The First Russian Tech Firm To Join The CVE

By Roland Moore-Colyer for TechWeekEurope UK

http://www.techweekeurope.co.uk/security/yandex-is-the-first-russian-tech-firm-to-join-the-cve-200060

P.P.S.

On the other hand, this is the gist of the counterargument for NOT ever using Yandex, or Yandex browser.  This counterargument is put forth by Maxim Chesnokov in his article Should You Use a Russian Branded Browser? which was published in Bitcoin.com in March of 2016.  I have not posted the article because the article contains language not suitable for children.

Quote
The service’s privacy policy contains all the necessary permissions for the company to steal userdata and give it to authorities “during the legal procedure.” See 1.1.2 and 4 paragraphs for more details. -- Maxim Chesnokov

https://yandex.ru/legal/confidential/?lang=en

In this regard, would this make Yandex any different than Microsoft or Google regarding legal processes?  Does Yandex notify a user if he or she is subject to legal proceedings in Russia --as Google claims to do (with exception) for its users here in the US.  I really don't know. :-\
« Last Edit: March 26, 2017, 06:38:49 pm by perknh »
[T]here are a lot of people happily running Peppermint ICE which hasn't been receiving ANY updates for a while now .. and I personally would STILL consider that MUCH more secure than any version of Windows with up-to-date AV/Anti-malware ;)

--  PCNetSpec, Cornwall, Eng.  Dec 03, 2013 5:18 pm

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26454
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Installing Yandex Browser Through The Terminal [SOLVED]
« Reply #9 on: October 24, 2016, 09:44:55 am »
No problem my mate :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec