万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

  • ・資産運用おすすめ
    10万円は1000円くらい利益
    資産運用ブログ アセマネ
    • ・寄付お願いします
      YENTEN:YYzNPzdsZWqr5THWAdMrKDj7GT8ietDc2W
      BitZenny:ZfpUbVya8MWQkjjGJMjA7P9pPkqaLnwPWH
      c0ban:8KG95GXdEquNpPW8xJAJf7nn5kbimQ5wj1
      Skycoin:KMqcn7x8REwwzMHPi9fV9fbNwdofYAWKRo

    Kitematicでログ検索

    https://github.com/docker/kitematic/pull/1728 プルリクしてるのをパクるw

    git clone -b log-search-feature https://github.com/ClemMakesApps/kitematic

    これでクローンして

    npm install
    npm start

    自分で実装しなくても他にプルリクしてるのがいた。

    本当は自分で実装してみたいけどホットリロードのやり方がわからない・・。

    Kitematicをgitリポジトリから使う

    Kitematic(カイトマティック) qiita.com

    クローンする

    git clone https://github.com/docker/kitematic
    cd kitematic

    起動

    npm install
    npm start
    Loading "Gruntfile.js" tasks...ERROR
    >> Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    Warning: Task "default" not found. Use --force to continue.
    
    Aborted due to warnings.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 3
    npm ERR! Kitematic@0.17.7 start: `grunt`
    npm ERR! Exit status 3
    npm ERR!
    npm ERR! Failed at the Kitematic@0.17.7 start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:

    なら

    UbuntuにElectronアプリを作ってみる(環境構築) - bam6o0の記憶域

    npm install electron --verbose

    croutonいれなおし

    chronos@localhost ~ $ sudo startxfce4 で起動できずエラー

    Cannot connect to extension, retrying...
    Error: not connected.
    Cannot connect to extension, retrying...
    Unable to start display, make sure the crouton extension is installed
    and enabled, and up to date. (download from https://goo.gl/OVQOEt)
    Running exit commands...
    /usr/bin/xinit: connection to X server lost
    
    waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file.

    これみたらcroutonをいれなおす。 https://github.com/dnschneid/crouton/issues/1833 これを一旦消してまた入れた・・。 crouton integration - Chrome ウェブストア

    OK

    xenialを消す

    sudo sh ~/Downloads/crouton -r xenial -t xfce-desktop,keyboard,audio,extension,touch,chrome をしたら 下のエラー

    /usr/local/chroots/xenial already has stuff in it!
    Either delete it, specify a different name (-n), or specify -u to update it.

    これをけす

    $ sudo rm -rf /usr/local/chroots/xenial