Проблема с пустым крошем

При загрузке crosh в Chrome OS, crosh просто полностью пуст. Нет текста или чего-то еще. Я просто получаю разрешение всплывающее, но об этом. Мне нужно crosh, чтобы иметь возможность запускать Ubuntu. Как исправить это, чтобы снова запустить его? Это связано с моей версией? У меня версия Chrome OS Dev 68.0.3431.0 и версия Ubuntu Trusty 14.04 (я знаю ее старый).

-2
задан 21 May 2018 в 17:56

3 ответа

на вкладке, которую вы открыли crosh, откройте инструменты разработчика и запустите в консоли консоль (это нужно запускать каждый раз, когда вы открываете экземпляр crosh, пока не будет установлен метод доступности в ветке dev) :

Crosh.init = function() {
  const qs = lib.f.parseQuery(document.location.search);
  const profileName = qs['profile'];
  var terminal = new hterm.Terminal(profileName);

  terminal.decorate(document.querySelector('#terminal'));
  const runCrosh = function() {
    terminal.keyboard.bindings.addBinding('Ctrl-Shift-P', function() {
      nassh.openOptionsPage();
      return hterm.Keyboard.KeyActions.CANCEL;
    });

    terminal.setCursorPosition(0, 0);
    terminal.setCursorVisible(true);
    terminal.runCommandClass(Crosh, qs['args'] || []);

    terminal.command.keyboard_ = terminal.keyboard;
  };
  terminal.onTerminalReady = function() {
    runCrosh();

  };

  // Useful for console debugging.
  window.term_ = terminal;
  console.log(nassh.msg(
      'CONSOLE_CROSH_OPTIONS_NOTICE',
      ['Ctrl-Shift-P', lib.f.getURL('/html/nassh_preferences_editor.html')]));

  return true;
};

Crosh.init();
1
ответ дан 8 June 2018 в 14:05

на вкладке, которую вы открыли crosh, откройте инструменты разработчика и запустите в консоли консоль (это нужно запускать каждый раз, когда вы открываете экземпляр crosh, пока не будет установлен метод доступности в ветке dev) :

Crosh.init = function() { const qs = lib.f.parseQuery(document.location.search); const profileName = qs['profile']; var terminal = new hterm.Terminal(profileName); terminal.decorate(document.querySelector('#terminal')); const runCrosh = function() { terminal.keyboard.bindings.addBinding('Ctrl-Shift-P', function() { nassh.openOptionsPage(); return hterm.Keyboard.KeyActions.CANCEL; }); terminal.setCursorPosition(0, 0); terminal.setCursorVisible(true); terminal.runCommandClass(Crosh, qs['args'] || []); terminal.command.keyboard_ = terminal.keyboard; }; terminal.onTerminalReady = function() { runCrosh(); }; // Useful for console debugging. window.term_ = terminal; console.log(nassh.msg( 'CONSOLE_CROSH_OPTIONS_NOTICE', ['Ctrl-Shift-P', lib.f.getURL('/html/nassh_preferences_editor.html')])); return true; }; Crosh.init();
1
ответ дан 17 July 2018 в 13:47

на вкладке, которую вы открыли crosh, откройте инструменты разработчика и запустите в консоли консоль (это нужно запускать каждый раз, когда вы открываете экземпляр crosh, пока не будет установлен метод доступности в ветке dev) :

Crosh.init = function() { const qs = lib.f.parseQuery(document.location.search); const profileName = qs['profile']; var terminal = new hterm.Terminal(profileName); terminal.decorate(document.querySelector('#terminal')); const runCrosh = function() { terminal.keyboard.bindings.addBinding('Ctrl-Shift-P', function() { nassh.openOptionsPage(); return hterm.Keyboard.KeyActions.CANCEL; }); terminal.setCursorPosition(0, 0); terminal.setCursorVisible(true); terminal.runCommandClass(Crosh, qs['args'] || []); terminal.command.keyboard_ = terminal.keyboard; }; terminal.onTerminalReady = function() { runCrosh(); }; // Useful for console debugging. window.term_ = terminal; console.log(nassh.msg( 'CONSOLE_CROSH_OPTIONS_NOTICE', ['Ctrl-Shift-P', lib.f.getURL('/html/nassh_preferences_editor.html')])); return true; }; Crosh.init();
1
ответ дан 20 July 2018 в 13:52

Другие вопросы по тегам:

Похожие вопросы: