Chrome linux open file

How to Browse and Open Folders and Files with Google Chrome

Everyone knows that you can use Google Chrome to browse websites. But like any browser, you can also use it to browse folders and files on your local device, just like Windows Explorer in Windows and Finder in macOS. Chrome has a full-featured navigation system that lets you explore all the storage devices connected to your computer, tablet, or smartphone—it will even open simple text and image files directly from the browser without any extensions. Here are three ways to use a browser to explore your files.

Method #1: Drag and Drop

To open a file, drag and drop it from its folder into Chrome. Wait until you see a plus sign before releasing the file.

Method #2: Use the “Open” Function

While in the browser, press Ctrl+O in Windows (Cmd+O on Mac) as in “Open” and double-click the appropriate file.

Method #3: Use the Address Bar

Type “file:///c:/” without quotes in the address bar and press Enter. Replace “c:” with the letter of the drive you want to explore. This step will open a window called ‘Index of C:\,’ which is an index of all computer files found on your C drive. From there, you can browse through the folders, much like using File Explorer in Windows or Finder in macOS.

Using Chrome’s file browser above, you can open simple text files, PDFs , and images. Click a file in one of the compatible formats to open it, and it will appear in a new tab. If you click a file that Chrome doesn’t know how to open, it will save it to your designated Downloads directory instead.

Method 4: Use a Third-Party Chrome Add-On

Chrome can open simple files, but that doesn’t include videos or music, to name just a couple. Local Explorer is a Chrome extension that enables you to open any file you want on your computer using its default software package.

How to Install Local Explorer Add-On for Chrome

Adding Local Explorer to Chrome is a two-part process. You need the add-on in Chrome, and you need an integration module to run the default programs for the files.

Step 1: Install Local Explorer Extension

  1. Open the Local Explorer extension page in the Chrome Web Store, click Add to Chrome in the upper-right corner.
  2. In the popup window, select Add extension.

Step 2: Install Local Explorer Integration Module

  1. Select Add to Windows Explorer found on the post-install page as shown below or by right-clicking the Local Explorer button on your extensions toolbar and selecting Options.
  2. Double-click the downloaded executable to install the integration module.
  3. Next, type chrome://extensions without quotes into the address bar and hit Enter. Scroll down to the Local Explorer – File Manager, and click Details. Then, toggle the Allow access to file URLs button.
  4. When you click to open a file in the tab labeled Index of, the External Protocol Request window shown below will open. Press the Launch Application button to open the file in its default software package.
Читайте также:  Стадии загрузки windows 10

Take note that this extension does not work on Chromebooks or Linux operating systems. Also, the reason this feature never gets built into Chrome is due to security policies. Be careful when opening files if you are not sure of their origination, and proceed at your own risk.

In closing, Chrome includes many features that users often don’t know exist, such as changing Chrome’s perceived location. In any case, the two options in this article (built-in and external Chrome file browsers) are handy when you’re already using the browser and don’t want to open another window on your PC or if your system’s file explorer is in a funk.

Источник

Запуск Linux-приложений на Chromebook

Появление Chromebook стало важным моментом для американских систем образования, позволив им покупать недорогие ноутбуки для учеников, учителей и администраторов. Хотя Chromebook всегда работали под управлением операционной системы на основе Linux (Chrome OS), до недавнего времени большинство Linux-приложений на них запустить было невозможно. Однако всё изменилось, когда Google выпустила Crostini — виртуальную машину, позволяющую запускать на Chromebook ОС Linux (бета).

Большинство Chromebook, выпущенных после 2019 года, а также некоторые более старые модели, способны работать с Crostini и Linux (бета). Узнать, находится ли ваш Chromebook в списке поддерживаемых устройств, можно здесь. К счастью, мой Acer Chromebook 15 с 2 ГБ ОЗУ и процессором Intel Celeron поддерживается.

Если вы планируете устанавливать много Linux-приложений, то рекомендую использовать Chromebook с 4 ГБ ОЗУ и бо́льшим объёмом свободного пространства на диске.

Настройка Linux (бета)

Войдя в систему Chromebook, переместите курсор мыши в нижний правый угол экрана, где расположены часы, и нажмите левой клавишей. Откроется панель, сверху которой будут перечислены опции (слева направо): выход, завершение работы, блокировка и открытие параметров. Выберите значок параметров (Settings).

В левой части панели Settings вы увидите в списке Linux (Beta).

Нажмите на Linux (Beta), и в основной панели появится опция его запуска. Нажмите на кнопку Turn on.

После этого запустится процесс настройки окружения Linux на Chromebook.

Затем вам предложат ввести Username и нужный размер установки Linux.

Для установки Linux на Chromebook потребуется несколько минут.

После завершения установки можно будет начинать работу с Linux на Chromebook. В панели меню нижней части дисплея Chromebook есть ярлык терминала — текстового интерфейса, который можно использовать для взаимодействия с Linux.

Можно воспользоваться стандартными командами Linux, например ls , lscpu и top , чтобы получить больше информации об окружении. Приложения устанавливаются командой sudo apt install .

Устанавливаем первое Linux-приложение

Возможность установки и запуска свободного ПО с открытым исходным кодом на Chromebook позволяет реализовать широкие возможности.

Первым делом я рекомендую установить приложение Mu editor для Python. Установим его, введя в терминал следующее:

Для установки потребуется чуть больше пяти минут, но в конечном итоге вы получите возможность пользоваться отличным редактором кода на Python.

Я с огромным успехом использовал Mu и Python в качестве инструмента обучения. Например, я учил своих студентов писать код для модуля turtle языка Python и исполнять его для создания графики. Меня расстроило то, что не удалось использовать Mu с открытой аппаратной платой BBC:Microbit. Несмотря на то, что Microbit подключается к USB и в виртуальном окружении Linux на Chromebook есть поддержка USB, заставить её работать мне не удалось.

После установки приложения оно отобразится в специальном меню Linux Apps, которое показано в нижнем правом углу скриншота.

Установка других приложений

Можно устанавливать не только язык программирования с редактором кода. На самом деле, вы можете установить большинство ваших любимых приложений с открытым исходным кодом.

Читайте также:  Образ astra linux для virtualbox

Например, такой командой можно установить пакет LibreOffice:

Аудиоредактор с открытым исходным кодом Audacity — один из моих любимых учебных приложений. Микрофон моего Chromebook работает с Audacity, благодаря чему я с лёгкостью могу создавать подкасты или редактировать бесплатные звуки из Wikimedia Commons. Установить Audacity на Chromebook легко — запустив виртуальное окружение Crostini, откройте терминал и введите следующее:

Затем запустите Audacity из командной строки или найдите его в разделе Linux Apps меню Chromebook.

Также я с лёгкостью установил TuxMath и TuxType — пару замечательных образовательных программ. Мне даже удалось установить и запустить редактор изображений GIMP. Все Linux-приложения берутся из репозиториев Debian Linux.

Передача файлов

В Linux (бета) есть утилита для резервного копирования и восстановления файлов. Также можно передавать файлы между виртуальной машиной Linux (бета) и Chromebook, открыв на Chromebook приложение Files и нажав правой клавишей на той папке, которую вы хотите передать. Можно передать все файлы с Chromebook или создать специальную папку для общих файлов. Находясь в виртуальной машине Linux, доступ к папке можно получить, перейдя к /mnt/chromeos .

Дополнительная информация

Документация по Linux (бета) очень подробна, поэтому внимательно её изучите, чтобы узнать о возможностях. Вот некоторые важные аспекты, взятые из документации:

  • Камеры пока не поддерживаются.
  • Android-устройства поддерживаются через USB.
  • Аппаратное ускорение пока не поддерживается.
  • Доступ к микрофону есть.

Пользуетесь ли вы Linux-приложениями на Chromebook? Расскажите об этом в комментариях!

На правах рекламы

VDSina предлагает серверы в аренду под любые задачи, огромный выбор операционных систем для автоматической установки, есть возможность установить любую ОС с собственного ISO, удобная панель управления собственной разработки и посуточная оплата.

Источник

User Data Directory

Contents

Introduction

The user data directory contains profile data such as history, bookmarks, and cookies, as well as other per-installation local state.

Each profile is a subdirectory (often Default ) within the user data directory.

Current Location

To determine the user data directory for a running Chrome instance:

  1. Navigate to chrome://version
  2. Look for the Profile Path field. This gives the path to the profile directory.
  3. The user data directory is the parent of the profile directory.
  • [Profile Path] C:\Users\Alice\AppData\Local\Google\Chrome\User Data\Default
  • [User Data Dir] C:\Users\Alice\AppData\Local\Google\Chrome\User Data

Default Location

The default location of the user data directory is computed by chrome::GetDefaultUserDataDirectory .

Generally it varies by

  • OS platform,
  • branding (Chrome vs. Chromium, based on is_chrome_branded in GN args), and
  • release channel (stable / beta / dev / canary).

Windows

The default location is in the local app data folder:

  • [Chrome] %LOCALAPPDATA%\Google\Chrome\User Data
  • [Chrome Beta] %LOCALAPPDATA%\Google\Chrome Beta\User Data
  • [Chrome Canary] %LOCALAPPDATA%\Google\Chrome SxS\User Data
  • [Chromium] %LOCALAPPDATA%\Chromium\User Data

(The canary channel suffix is determined using InstallConstants::install_suffix .)

Mac OS X

The default location is in the Application Support folder:

/Library/Application Support/Google/Chrome
[Chrome Beta]

/Library/Application Support/Google/Chrome Beta
[Chrome Canary]

/Library/Application Support/Google/Chrome Canary
[Chromium]

(The canary channel suffix is determined using the CrProductDirName key in the browser app’s Info.plist .)

Linux

The default location is in

/.config/google-chrome
[Chrome Beta]

/.config/google-chrome-beta
[Chrome Dev]

(The beta and dev channel suffixes are determined from $CHROME_VERSION_EXTRA , which is passed by the launch wrapper script.)

/.config portion of the default location can be overridden by $CHROME_CONFIG_HOME (since M61) or by $XDG_CONFIG_HOME .

Note that $XDG_CONFIG_HOME affects all applications conforming to the XDG Base Directory Spec, while $CHROME_CONFIG_HOME is specific to Chrome and Chromium.

Chrome OS

The default location is: /home/chronos

Android

The default location comes from Context.getDir and is specific to the app.

The default location is inside the application support directory in the app sandbox.

  • [Chrome] Library/Application Support/Google/Chrome
  • [Chromium] Library/Application Support/Chromium
Читайте также:  Как узнать tcp windows size

Overriding the User Data Directory

Command Line

On most platforms, the user data directory can be overridden by passing the —user-data-dir command-line flag to the Chrome binary.

The override happens in chrome/app/chrome_main_delegate.cc . Platforms not building with the file may not have implemented the override. Overriding the user data directory via the command line is not supported on iOS.

  • [Windows] chrome.exe —user-data-dir=c:\foo
  • [Linux] google-chrome —user-data-dir=/path/to/foo

Environment (Linux)

On Linux, the user data directory can also be overridden with the $CHROME_USER_DATA_DIR environment variable.

The —user-data-dir flag takes precedence if both are present.

Chrome Remote Desktop sessions (Linux)

A single Chrome instance cannot show windows on multiple X displays, and two running Chrome instances cannot share the same user data directory. Therefore, it’s desirable for Chrome to have a separate user data directory when running inside a Chrome Remote Desktop (CRD) virtual session on a Linux host.

By default, CRD achieves this by setting $CHROME_USER_DATA_DIR in the session. Unfortunately this means that inside the session we don’t get separate defaults for different channels (Stable, Beta, Dev) or for Chrome vs. Chromium. This can lead to profile version errors (“Your profile can not be used because it is from a newer version of Google Chrome”).

Since M61, this can be solved by setting $CHROME_CONFIG_HOME instead of $CHROME_USER_DATA_DIR . Specifically, put the following in

Then restart the host by running: /etc/init.d/chrome-remote-desktop restart

Writing an AppleScript wrapper (Mac OS X)

On Mac OS X, you can create an application that runs Chrome with a custom —user-data-dir :

Open Applications > Utilities > Script Editor.

Modify as needed for your installation path, Chrome versus Chromium, and desired user data directory.

Save the script in your Applications directory with the file format “Application”.

Close the Script Editor, find your newly created application, and run it. This opens a Chrome instance pointing to your new profile.

If you want, you can give this application the same icon as Chrome:

  1. Select the Google Chrome application and choose File > Get Info.
  2. Select the icon at the top left of the info dialog. You will see a blue highlight around the icon.
  3. Press ⌘C to copy the icon.
  4. Open the info dialog for the new application and select the icon in the top left.
  5. Press ⌘V to paste the copied icon.

User Cache Directory

On Windows and ChromeOS, the user cache dir is the same as the profile dir. (The profile dir is inside the user data dir.)

On Mac OS X and iOS, the user cache dir is derived from the profile dir as follows:

  1. If Library/Application Support is an ancestor of the profile dir, the user cache dir is Library/Caches plus the relative path from Application Support to the profile dir.
  2. Otherwise, the user cache dir is the same as the profile dir.

Example (Mac OS X):

/Library/Application Support/Google/Chrome
[profile dir]

/Library/Application Support/Google/Chrome/Default
[user cache dir]

On Linux, the user cache dir is derived from the profile dir as follows:

    Determine the system config dir. This is

/.config , unless overridden by $XDG_CONFIG_HOME . (This step ignores $CHROME_CONFIG_HOME .)
Determine the system cache dir. This is

/.cache , unless overridden by $XDG_CACHE_HOME .

  • If the system config dir is an ancestor of the profile dir, the user cache dir is the system cache dir plus the relative path from the system config dir to the profile dir.
  • Otherwise, the user cache dir is the same as the profile dir.
  • /.config/google-chrome
    [profile dir]

    /.config/google-chrome/Default
    [user cache dir]

    Источник

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