Chromium linux install debian

Содержание
  1. Как установить веб-браузер Chromium на Debian 10
  2. Как установить веб-браузер Chromium на Debian 10
  3. Установите веб-браузер Chromium на Debian 10 Buster
  4. Шаг 1. Перед установкой любого программного обеспечения важно убедиться, что ваша система обновлена, выполнив следующие apt команды в терминале:
  5. Шаг 2. Установка Chromium на Debian 10.
  6. Шаг 3. Доступ к браузеру Chromium.
  7. Useful blog
  8. среда, 28 октября 2009 г.
  9. Установка браузера Chromium под Linux Debian
  10. Как установить Chromium
  11. Как установить Chromium на Windows
  12. Инструкция по установке браузера Chromium (архив с официального сайта)
  13. Инструкция по установке браузера Chromium (установочный файл)
  14. Как установить Chromium на ноутбук в виде архива
  15. Как установить Chromium на Debian
  16. Как установить Chromium на Ubuntu
  17. Chromium
  18. Installation
  19. From the debian repo
  20. Extensions
  21. Viewing PDF
  22. Video acceleration
  23. Drivers and libraries according to your hardware
  24. Enable these browser flags
  25. Checking out and building Chromium on Linux
  26. Instructions for Google Employees
  27. Contents
  28. System requirements
  29. Install depot_tools
  30. Get the code
  31. Install additional build dependencies
  32. Run the hooks
  33. Setting up the build
  34. Faster builds
  35. Use Goma
  36. Disable NaCl
  37. Include fewer debug symbols
  38. Disable debug symbols for Blink
  39. Use Icecc
  40. ccache
  41. Using tmpfs
  42. Build Chromium
  43. Run Chromium
  44. Running test targets
  45. Update your checkout
  46. Tips, tricks, and troubleshooting
  47. Linker Crashes
  48. More links
  49. Next Steps
  50. Notes for other distros
  51. Arch Linux
  52. Crostini (Debian based)
  53. Fedora
  54. Gentoo
  55. OpenSUSE

Как установить веб-браузер Chromium на Debian 10

Как установить веб-браузер Chromium на Debian 10

В этом руководстве мы покажем вам, как установить веб-браузер Chromium на Debian 10. Для тех из вас, кто не знал, проект Chromium охватывает две утилиты, такие как Chromium и Chromium OS, которые являются проектами с открытым исходным кодом браузер Google Chrome и Google Chrome OS. Chromium был разработан как проект браузера с открытым исходным кодом, критическая миссия которого — предложить более безопасный, быстрый и стабильный способ навигации в Интернете, где каждую минуту возникают постоянные угрозы.

В этой статье предполагается, что у вас есть хотя бы базовые знания Linux, вы знаете, как использовать оболочку, и, что наиболее важно, вы размещаете свой сайт на собственном VPS. Установка довольно проста и предполагает, что вы работаете с учетной записью root, в противном случае вам может потребоваться добавить ‘ sudo ‘ к командам для получения привилегий root. Я покажу вам пошаговую установку веб-браузера Chromium на Debian 10 (Buster).

Установите веб-браузер Chromium на Debian 10 Buster

Шаг 1. Перед установкой любого программного обеспечения важно убедиться, что ваша система обновлена, выполнив следующие apt команды в терминале:

Шаг 2. Установка Chromium на Debian 10.

  • Установите Chromium с помощью Snap.

Во-первых, нет, мы устанавливаем пакеты Snap:

Чтобы установить Chromium, просто используйте следующую команду:

  • Установите Chromium из исходников:

Откройте терминал и скачайте необходимые пакеты:

Затем приступайте к их установке:

Шаг 3. Доступ к браузеру Chromium.

После успешной установки браузера Chromium вы можете запустить браузер Chromium, используя следующую команду:

Или в строке поиска «Действия» введите «Chromium» и щелкните значок, чтобы запустить приложение.

Поздравляю! Вы успешно установили Chromium . Благодарим за использование этого руководства для установки браузера с открытым исходным кодом Chromium в системе Debian 10 Buster. Для получения дополнительной помощи или полезной информации мы рекомендуем вам посетить официальный сайт Chromium .

Источник

Useful blog

Linux, Java, Python, Php, Javascript, FTP, SSH, HTTP, настройки, конфигурирование, администрирование и т.п. Всё, с чем приходится сталкиваться.

среда, 28 октября 2009 г.

Установка браузера Chromium под Linux Debian

Долгое время он был только под Windows, но сейчас появился Chromium — тот же Chrome, только Limux, в том числе даже deb пакеты.

I. Установка прямо от Google (рекомендуемое)
1) Надо скачать и установить deb-пакет отсюда. Скачиваем версию под свою архитектуру, затем выполняем следующее:

sudo apt-get install google-chrome-unstable_current_i386.deb

Если же у вас автоматически не добавится репозиторий по какой либо причине, то можно сделать это вручную:

sudo echo » deb http://dl.google.com/linux/deb/ stable non-free main » >> /etc/apt/sources.list

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

Первой строчкой мы добавляем репозиторий к нашем списку репозиториев, второй скачиваем ключ для этого репозитория и добавляем этот ключ к списку ключей.

P.s.вот по этой ссылке перечислены все репозитории google, в том числе для других дистрибутивов linux. В них,кроме Хромиума, есть так же Picasa for Linux.

P.p.s. Если при запуске с помощью команды google-chrome будут выдаваться ошибки вида

Gtk: Загружаемый модуль тем не найден в module_path: «ubuntulooks»

Gtk: Загружаемый модуль тем не найден в module_path: «pixmap»,

sudo aptitude install gtk2-engines-pixbuf gtk2-engines-ubuntulooks

sudo echo » deb http: //ppa .launchpad.net/chromium-daily/ppa/ubuntu intrepid main » >> /etc/apt/sources.list

sudo su — gpg —keyserver subkeys.pgp.net —recv-keys 5A9BF3BB4E5E17B5 gpg —armor —export 5A9BF3BB4E5E17B5 | apt-key add —

sudo aptitude install chromium-browser

5) Наслаждаемся серфингом от гугл:)

III. Еще один способ.
Установка deb- или rpm-пакета от сodeweavers вручную. Для этого надо:
1) Скачать его отсюда. Там можно выбрать версию пакета под различные архитектуры.
2) Выполнить следующее:

Читайте также:  Установка win после linux

Источник

Как установить Chromium

Chromium – браузер от компании Google и ряда сторонних разработчиков, главная особенность которого – открытый исходный код.

Наша небольшая инструкция поможет установить Chromium на ноутбук или ПК вне зависимости от используемой операционной системы. Исходный код позволяет сторонним разработчикам внедрять в ПО те или иные функции.

Как установить Chromium на Windows

Браузер Хромиум для Windows в сети распространяется в виде стандартного установочного файла в формате .exe либо в виде файлов, помещенных в архив, которые достаточно распаковать в любую директорию ПК.

Инструкция по установке браузера Chromium (архив с официального сайта)

Скачайте последнюю версию браузера тут. После скачивания распакуйте архив в любую директорию на вашем компьютере и вы сразу сможете начать работу с браузером.

Инструкция по установке браузера Chromium (установочный файл)

1. Скачиваем установочный пакет браузера;

2. Открываем директорию со скаченной программой, находим файл с расширением .exe, щелкаем по ярлыку два раза левой кнопкой мыши;

3. Запустится установочный пакет, знакомимся с условиями распространения программы, соглашаемся и начинаем процесс установки;

4. После завершения инсталляции ярлык для доступа к браузеру появится на рабочем столе.

Браузер доступен для скачивания в виде двух дистрибутивов – 32 и 64 разрядных версий. Перед скачиванием определите разрядность своей системы.

Как установить Chromium на ноутбук в виде архива

В случае, если Хромиум был скачан в виде заархивированного файла, достаточно извлечь все содержимое в созданную папку в главной директории ПК.

Далее в папке создайте ярлык браузера и переместите его на рабочий стол для упрощения процесса запуска.

Как установить Chromium на Debian

Чтобы установить браузер Chromium с открытым исходным кодом, обеспечивающим быстрый, безопасный и стабильный серфинг страниц в сети, необходимое ввести следующие команды командной строке:

apt-get update apt-get install chromium chromium-l10n

Ввод последней команды требуется в случае, если необходимо локализовать программу.

Главная особенность этой версии браузера — возможность просматривать файлы в формате PDF без необходимости скачивать сторонние программы и устанавливать дополнительные расширения.

Как установить Chromium на Ubuntu

Первая редакция браузера распространяется в сети в виде готовы бинарных пакетов, в связи с этим для инсталляции можно использовать стандартный пакетный менеджер без дополнительных программ. Чтобы установить Chromium на Linux, необходимо:

  1. С помощью команды «sudo apt update» проводим обновление списка доступных пакетов, это позволит получить в свое распоряжение самую актуальную версию ПО;
  2. Для начала процесса установки вводим команду sudo apt install chromium-browser ;
  3. Если все было сделано правильно, начнется установка актуальной на момент запроса версии Хромиума, дополнительно будет обновлена система безопасности.

Источник

  • Chromium

Chromium is an open source web browser that strives for a secure, fast and stable web browsing experience for its users. It is the open source project behind Google Chrome.

Installation

As of 2021-09-20 19:19:07, Debian’s Chromium package in buster, bullseye and bookworm repository remains vulnerable to numerous CVEs as outlined in the Chromium Security Tracker. Consider using an alternative browser like Firefox.

From the debian repo

How to install Chromium:

(chromium-l10n is only used for localization and is optional)

Extensions

Many popular, useful, and open-source browser extensions for Chromium are built as Debian packages that can be loaded locally and updated via Apt, reducing the need to use the Chrome Web Store and to trust the binary extension files that it serves. You can find these by searching for packages named webext-*.

Viewing PDF

Chromium can view PDFs without any additional extensions (internally using PDFium software library)

Video acceleration

Since Chromium 88, video acceleration is available but not enabled. This results in the CPU being used instead of the video card, attempting to enable this option offloads the CPU for the video card:

Drivers and libraries according to your hardware

For Intel Gen 7 and earlier hardware:

For Intel Gen 8+ hardware:

intel-media-va-driver-non-free from non-free repo

For nouveau and amdgpu :

Enable these browser flags

Type these URLs into your address bar, activate them and restart your browser on its request:

Источник

Checking out and building Chromium on Linux

There are instructions for other platforms linked from the get the code page.

Instructions for Google Employees

Are you a Google employee? See go/building-chrome instead.

Contents

System requirements

  • A 64-bit Intel machine with at least 8GB of RAM. More than 16GB is highly recommended.
  • At least 100GB of free disk space.
  • You must have Git and Python v3 installed already (and python3 must point to a Python v3 binary).

Most development is done on Ubuntu (currently 18.04, Bionic Beaver). There are some instructions for other distros below, but they are mostly unsupported.

Install depot_tools

Clone the depot_tools repository:

Add depot_tools to the end of your PATH (you will probably want to put this in your

/.zshrc ). Assuming you cloned depot_tools to /path/to/depot_tools :

Читайте также:  Windows 10 сам установился пароль

When cloning depot_tools to your home directory do not use

on PATH, otherwise gclient runhooks will fail to run. Rather, you should use either $HOME or the absolute path:

Get the code

Create a chromium directory for the checkout and change to it (you can call this whatever you like and put it wherever you like, as long as the full path has no spaces):

Run the fetch tool from depot_tools to check out the code and its dependencies.

If you don’t want the full repo history, you can save a lot of time by adding the —no-history flag to fetch .

Expect the command to take 30 minutes on even a fast connection, and many hours on slower ones.

If you’ve already installed the build dependencies on the machine (from another checkout, for example), you can omit the —nohooks flag and fetch will automatically execute gclient runhooks at the end.

When fetch completes, it will have created a hidden .gclient file and a directory called src in the working directory. The remaining instructions assume you have switched to the src directory:

Install additional build dependencies

Once you have checked out the code, and assuming you’re using Ubuntu, run build/install-build-deps.sh

You may need to adjust the build dependencies for other distros. There are some notes at the end of this document, but we make no guarantees for their accuracy.

Run the hooks

Once you’ve run install-build-deps at least once, you can now run the Chromium-specific hooks, which will download additional binaries and other things you might need:

Optional: You can also install API keys if you want your build to talk to some Google services, but this is not necessary for most development and testing purposes.

Setting up the build

Chromium uses Ninja as its main build tool along with a tool called GN to generate .ninja files. You can create any number of build directories with different configurations. To create a build directory, run:

  • You only have to run this once for each new build directory, Ninja will update the build files as needed.
  • You can replace Default with another name, but it should be a subdirectory of out .
  • For other build arguments, including release settings, see GN build configuration. The default will be a debug component build matching the current host operating system and CPU.
  • For more info on GN, run gn help on the command line or read the quick start guide.

Faster builds

This section contains some things you can change to speed up your builds, sorted so that the things that make the biggest difference are first.

Use Goma

Google developed the distributed compiler called Goma.

If you would like to use Goma provisioned by Google, please follow Goma for Chromium contributors.

If you are a Google employee, see go/building-chrome instead.

Disable NaCl

By default, the build includes support for Native Client (NaCl), but most of the time you won‘t need it. You can set the GN argument enable_nacl=false and it won’t be built.

Include fewer debug symbols

By default GN produces a build with all of the debug assertions enabled ( is_debug=true ) and including full debug info ( symbol_level=2 ). Setting symbol_level=1 will produce enough information for stack traces, but not line-by-line debugging. Setting symbol_level=0 will include no debug symbols at all. Either will speed up the build compared to full symbols.

Due to its extensive use of templates, the Blink code produces about half of our debug symbols. If you don’t ever need to debug Blink, you can set the GN arg blink_symbol_level=0 .

Use Icecc

Icecc is the distributed compiler with a central scheduler to share build load. Currently, many external contributors use it. e.g. Intel, Opera, Samsung (this is not useful if you’re using Goma).

In order to use icecc , set the following GN args:

Using the system linker may also be necessary when using glibc 2.21 or newer. See related bug.

ccache

You can use ccache to speed up local builds (again, this is not useful if you’re using Goma).

Increase your ccache hit rate by setting CCACHE_BASEDIR to a parent directory that the working directories all have in common (e.g., /home/yourusername/development ). Consider using CCACHE_SLOPPINESS=include_file_mtime (since if you are using multiple working directories, header times in svn sync’ed portions of your trees will be different — see the ccache troubleshooting section for additional information). If you use symbolic links from your home directory to get to the local physical disk directory where you keep those working development directories, consider putting

in your .bashrc so that $PWD or cwd always refers to a physical, not logical directory (and make sure CCACHE_BASEDIR also refers to a physical parent).

Читайте также:  Windows 10 создать напоминание

If you tune ccache correctly, a second working directory that uses a branch tracking trunk and is up to date with trunk and was gclient sync’ed at about the same time should build chrome in about 1/3 the time, and the cache misses as reported by ccache -s should barely increase.

This is especially useful if you use git-worktree and keep multiple local working directories going at once.

Using tmpfs

You can use tmpfs for the build output to reduce the amount of disk writes required. I.e. mount tmpfs to the output directory where the build output goes:

Quick and dirty benchmark numbers on a HP Z600 (Intel core i7, 16 cores hyperthreaded, 12 GB RAM)

Build Chromium

Build Chromium (the “chrome” target) with Ninja using the command:

( autoninja is a wrapper that automatically provides optimal values for the arguments passed to ninja .)

You can get a list of all of the other build targets from GN by running gn ls out/Default from the command line. To compile one, pass the GN label to Ninja with no preceding “//” (so, for //chrome/test:unit_tests use autoninja -C out/Default chrome/test:unit_tests ).

Run Chromium

Once it is built, you can simply run the browser:

Running test targets

You can run the tests in the same way. You can also limit which tests are run using the —gtest_filter arg, e.g.:

You can find out more about GoogleTest at its GitHub page.

Update your checkout

To update an existing checkout, you can run

The first command updates the primary Chromium source repository and rebases any of your local branches on top of tip-of-tree (aka the Git branch origin/main ). If you don’t want to use this script, you can also just use git pull or other common Git commands to update the repo.

The second command syncs dependencies to the appropriate versions and re-runs hooks as needed.

Tips, tricks, and troubleshooting

Linker Crashes

If, during the final link stage:

You get an error like:

you are probably running out of memory when linking. You must use a 64-bit system to build. Try the following build settings (see GN build configuration for other settings):

  • Build in release mode (debugging symbols require more memory): is_debug = false
  • Turn off symbols: symbol_level = 0
  • Build in component mode (this is for development only, it will be slower and may have broken functionality): is_component_build = true
  • Information about building with Clang.
  • You may want to use a chroot to isolate yourself from versioning or packaging conflicts.
  • Cross-compiling for ARM? See LinuxChromiumArm.
  • Want to use Eclipse as your IDE? See LinuxEclipseDev.
  • Want to use your built version as your default browser? See LinuxDevBuildAsDefaultBrowser.

Next Steps

If you want to contribute to the effort toward a Chromium-based browser for Linux, please check out the Linux Development page for more information.

Notes for other distros

Arch Linux

Instead of running install-build-deps.sh to install build dependencies, run:

For the optional packages on Arch Linux:

  • php-cgi is provided with pacman
  • wdiff is not in the main repository but dwdiff is. You can get wdiff in AUR/ yaourt

Crostini (Debian based)

First install the file and lsb-release commands for the script to run properly:

Then invoke install-build-deps.sh with the —no-arm argument, because the ARM toolchain doesn’t exist for this configuration:

Fedora

Instead of running build/install-build-deps.sh , run:

The fonts needed by Blink’s web tests can be obtained by following these instructions. For the optional packages:

  • php-cgi is provided by the php-cli package.
  • sun-java6-fonts is covered by the instructions linked above.

Gentoo

You can just run emerge www-client/chromium .

OpenSUSE

Use zypper command to install dependencies:

(openSUSE 11.1 and higher)

For 11.0, use libnspr4-0d and libnspr4-dev instead of mozilla-nspr and mozilla-nspr-devel , and use php5-cgi instead of php5-fastcgi .

The Ubuntu package sun-java6-fonts contains a subset of Java of the fonts used. Since this package requires Java as a prerequisite anyway, we can do the same thing by just installing the equivalent openSUSE Sun Java package:

WebKit is currently hard-linked to the Microsoft fonts. To install these using zypper

To make the fonts installed above work, as the paths are hardcoded for Ubuntu, create symlinks to the appropriate locations:

The Ubuntu package sun-java6-fonts contains a subset of Java of the fonts used. Since this package requires Java as a prerequisite anyway, we can do the same thing by just installing the equivalent openSUSE Sun Java package:

WebKit is currently hard-linked to the Microsoft fonts. To install these using zypper

To make the fonts installed above work, as the paths are hardcoded for Ubuntu, create symlinks to the appropriate locations:

Источник

Оцените статью