最終的には/etc/default/grubに記述すれば反映された。
#GRUB_GFXMODE=640x480 GRUB_GFXMODE=2560x1600 # 設定したい解像度
#GRUB_GFXMODE=640x480 GRUB_GFXMODE=2560x1600 # 設定したい解像度
Sorry, Terminal was unable to connect to the remote machine.と出て接続できなかった。
server does not support diffie-hellman-group1-sha1 for key exchange
$ curl -fsSL https://get.docker.com/ | sh apparmor is enabled in the kernel and apparmor utils were already installed + sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.KxiBSCIzyE --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/alessandro-strada_ubuntu_ppa.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D gpg: 鍵2C52609Dをhkpからサーバーp80.pool.sks-keyservers.netに要求 gpg: 鍵2C52609D: 公開鍵“Docker Release Tool (releasedocker)”を読み込みました gpg: 処理数の合計: 1 gpg: 読込み: 1 (RSA: 1) + sh -c mkdir -p /etc/apt/sources.list.d + dpkg --print-architecture + sh -c echo deb [arch=amd64] https://apt.dockerproject.org/repo ubuntu-wily main > /etc/apt/sources.list.d/docker.list + sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine ヒット http://jp.archive.ubuntu.com wily InRelease 取得:1 http://jp.archive.ubuntu.com wily-updates InRelease [65.9 kB] ヒット http://jp.archive.ubuntu.com wily-backports InRelease 無視 http://dl.google.com stable InRelease ヒット http://jp.archive.ubuntu.com wily/main Sources ヒット http://jp.archive.ubuntu.com wily/restricted Sources ヒット http://jp.archive.ubuntu.com wily/universe Sources ヒット http://jp.archive.ubuntu.com wily/multiverse Sources ヒット http://jp.archive.ubuntu.com wily/main amd64 Packages ヒット http://jp.archive.ubuntu.com wily/restricted amd64 Packages ヒット http://jp.archive.ubuntu.com wily/universe amd64 Packages ヒット http://jp.archive.ubuntu.com wily/multiverse amd64 Packages ヒット http://jp.archive.ubuntu.com wily/main i386 Packages ヒット http://jp.archive.ubuntu.com wily/restricted i386 Packages ヒット http://jp.archive.ubuntu.com wily/universe i386 Packages ヒット http://dl.google.com stable Release.gpg ヒット http://jp.archive.ubuntu.com wily/multiverse i386 Packages ヒット http://jp.archive.ubuntu.com wily/main Translation-ja ヒット http://jp.archive.ubuntu.com wily/main Translation-en ヒット http://jp.archive.ubuntu.com wily/multiverse Translation-ja ヒット http://jp.archive.ubuntu.com wily/multiverse Translation-en ヒット http://jp.archive.ubuntu.com wily/restricted Translation-ja ヒット http://jp.archive.ubuntu.com wily/restricted Translation-en ヒット http://jp.archive.ubuntu.com wily/universe Translation-ja ヒット http://jp.archive.ubuntu.com wily/universe Translation-en 取得:2 https://apt.dockerproject.org ubuntu-wily InRelease [454 B] 無視 https://apt.dockerproject.org ubuntu-wily InRelease 取得:3 https://apt.dockerproject.org ubuntu-wily Release.gpg [801 B] 取得:4 http://security.ubuntu.com wily-security InRelease [65.9 kB] ヒット https://apt.dockerproject.org ubuntu-wily Release 取得:5 http://jp.archive.ubuntu.com wily-updates/main Sources [69.2 kB] 取得:6 http://jp.archive.ubuntu.com wily-updates/restricted Sources [3,741 B] 取得:7 http://jp.archive.ubuntu.com wily-updates/universe Sources [21.1 kB] ヒット https://apt.dockerproject.org ubuntu-wily/main amd64 Packages 取得:8 http://jp.archive.ubuntu.com wily-updates/multiverse Sources [3,199 B] 取得:9 http://jp.archive.ubuntu.com wily-updates/main amd64 Packages [197 kB] 取得:10 http://jp.archive.ubuntu.com wily-updates/restricted amd64 Packages [13.3 kB] 取得:11 http://jp.archive.ubuntu.com wily-updates/universe amd64 Packages [87.6 kB] ヒット http://dl.google.com stable Release 取得:12 http://jp.archive.ubuntu.com wily-updates/multiverse amd64 Packages [6,247 B] ヒット http://ppa.launchpad.net wily InRelease 取得:13 http://jp.archive.ubuntu.com wily-updates/main i386 Packages [194 kB] 取得:14 http://jp.archive.ubuntu.com wily-updates/restricted i386 Packages [13.4 kB] 取得:15 http://jp.archive.ubuntu.com wily-updates/universe i386 Packages [85.0 kB] 取得:16 http://jp.archive.ubuntu.com wily-updates/multiverse i386 Packages [6,678 B] 取得:17 http://jp.archive.ubuntu.com wily-updates/main Translation-en [90.1 kB] 取得:18 https://apt.dockerproject.org ubuntu-wily/main Translation-ja_JP [454 B] 取得:19 http://jp.archive.ubuntu.com wily-updates/multiverse Translation-en [3,156 B] 取得:20 http://jp.archive.ubuntu.com wily-updates/restricted Translation-en [3,024 B] 取得:21 http://jp.archive.ubuntu.com wily-updates/universe Translation-en [51.0 kB] ヒット http://jp.archive.ubuntu.com wily-backports/main Sources ヒット http://jp.archive.ubuntu.com wily-backports/restricted Sources ヒット http://jp.archive.ubuntu.com wily-backports/universe Sources ヒット http://jp.archive.ubuntu.com wily-backports/multiverse Sources ヒット http://jp.archive.ubuntu.com wily-backports/main amd64 Packages ヒット http://jp.archive.ubuntu.com wily-backports/restricted amd64 Packages ヒット http://jp.archive.ubuntu.com wily-backports/universe amd64 Packages ヒット http://jp.archive.ubuntu.com wily-backports/multiverse amd64 Packages ヒット http://dl.google.com stable/main amd64 Packages ヒット http://jp.archive.ubuntu.com wily-backports/main i386 Packages ヒット http://jp.archive.ubuntu.com wily-backports/restricted i386 Packages ヒット http://jp.archive.ubuntu.com wily-backports/universe i386 Packages ヒット http://jp.archive.ubuntu.com wily-backports/multiverse i386 Packages ヒット http://jp.archive.ubuntu.com wily-backports/main Translation-en ヒット http://ppa.launchpad.net wily/main amd64 Packages ヒット http://jp.archive.ubuntu.com wily-backports/multiverse Translation-en ヒット http://jp.archive.ubuntu.com wily-backports/restricted Translation-en ヒット http://jp.archive.ubuntu.com wily-backports/universe Translation-en 取得:22 http://security.ubuntu.com wily-security/main Sources [41.3 kB] 取得:23 https://apt.dockerproject.org ubuntu-wily/main Translation-ja [454 B] ヒット http://ppa.launchpad.net wily/main i386 Packages 取得:24 http://security.ubuntu.com wily-security/restricted Sources [2,854 B] ヒット http://ppa.launchpad.net wily/main Translation-en 取得:25 http://security.ubuntu.com wily-security/universe Sources [10.8 kB] 取得:26 https://apt.dockerproject.org ubuntu-wily/main Translation-en [454 B] 取得:27 http://security.ubuntu.com wily-security/multiverse Sources [2,788 B] 取得:28 http://security.ubuntu.com wily-security/main amd64 Packages [133 kB] 取得:29 https://apt.dockerproject.org ubuntu-wily/main Translation-ja_JP [454 B] 取得:30 https://apt.dockerproject.org ubuntu-wily/main Translation-ja [454 B] 取得:31 https://apt.dockerproject.org ubuntu-wily/main Translation-en [454 B] 取得:32 https://apt.dockerproject.org ubuntu-wily/main Translation-ja_JP [454 B] 取得:33 http://security.ubuntu.com wily-security/restricted amd64 Packages [10.9 kB] 取得:34 http://security.ubuntu.com wily-security/universe amd64 Packages [49.3 kB] 取得:35 http://security.ubuntu.com wily-security/multiverse amd64 Packages [6,247 B] 取得:36 https://apt.dockerproject.org ubuntu-wily/main Translation-ja [454 B] 取得:37 http://security.ubuntu.com wily-security/main i386 Packages [130 kB] 取得:38 https://apt.dockerproject.org ubuntu-wily/main Translation-en [454 B] 取得:39 https://apt.dockerproject.org ubuntu-wily/main Translation-ja_JP [454 B] 取得:40 http://security.ubuntu.com wily-security/restricted i386 Packages [10.8 kB] 取得:41 https://apt.dockerproject.org ubuntu-wily/main Translation-ja [454 B] 取得:42 http://security.ubuntu.com wily-security/universe i386 Packages [49.3 kB] 取得:43 https://apt.dockerproject.org ubuntu-wily/main Translation-en [454 B] 取得:44 http://security.ubuntu.com wily-security/multiverse i386 Packages [6,443 B] 取得:45 http://security.ubuntu.com wily-security/main Translation-en [65.6 kB] 取得:46 https://apt.dockerproject.org ubuntu-wily/main Translation-ja_JP [454 B] 無視 https://apt.dockerproject.org ubuntu-wily/main Translation-ja_JP 取得:47 https://apt.dockerproject.org ubuntu-wily/main Translation-ja [454 B] 取得:48 http://security.ubuntu.com wily-security/multiverse Translation-en [2,806 B] 無視 https://apt.dockerproject.org ubuntu-wily/main Translation-ja 取得:49 http://security.ubuntu.com wily-security/restricted Translation-en [2,666 B] 取得:50 https://apt.dockerproject.org ubuntu-wily/main Translation-en [454 B] 無視 https://apt.dockerproject.org ubuntu-wily/main Translation-en 取得:51 http://security.ubuntu.com wily-security/universe Translation-en [32.3 kB] 無視 http://dl.google.com stable/main Translation-ja_JP 無視 http://dl.google.com stable/main Translation-ja 無視 http://dl.google.com stable/main Translation-en 1,537 kB を 7秒 で取得しました (218 kB/s) パッケージリストを読み込んでいます... 完了 パッケージリストを読み込んでいます... 依存関係ツリーを作成しています... 状態情報を読み取っています... 以下の追加パッケージがインストールされます: aufs-tools cgroupfs-mount git git-man liberror-perl 提案パッケージ: git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn 推奨パッケージ: yubico-piv-tool 以下のパッケージが新たにインストールされます: aufs-tools cgroupfs-mount docker-engine git git-man liberror-perl アップグレード: 0 個、新規インストール: 6 個、削除: 0 個、保留: 1 個。 12.7 MB のアーカイブを取得する必要があります。 この操作後に追加で 68.7 MB のディスク容量が消費されます。 取得:1 http://jp.archive.ubuntu.com/ubuntu/ wily/universe aufs-tools amd64 1:3.2+20130722-1.1 [92.3 kB] 取得:2 http://jp.archive.ubuntu.com/ubuntu/ wily/universe cgroupfs-mount all 1.2 [4,970 B] 取得:3 http://jp.archive.ubuntu.com/ubuntu/ wily/main liberror-perl all 0.17-1.1 [21.1 kB] 取得:4 http://jp.archive.ubuntu.com/ubuntu/ wily-updates/main git-man all 1:2.5.0-1ubuntu0.1 [728 kB] 取得:5 http://jp.archive.ubuntu.com/ubuntu/ wily-updates/main git amd64 1:2.5.0-1ubuntu0.1 [3,009 kB] 取得:6 https://apt.dockerproject.org/repo/ ubuntu-wily/main docker-engine amd64 1.10.3-0~wily [8,834 kB] 12.7 MB を 1秒 で取得しました (9,082 kB/s) 以前に未選択のパッケージ aufs-tools を選択しています。 (データベースを読み込んでいます ... 現在 121037 個のファイルとディレクトリがインストールされています。) .../aufs-tools_1%3a3.2+20130722-1.1_amd64.deb を展開する準備をしています ... aufs-tools (1:3.2+20130722-1.1) を展開しています... 以前に未選択のパッケージ cgroupfs-mount を選択しています。 .../cgroupfs-mount_1.2_all.deb を展開する準備をしています ... cgroupfs-mount (1.2) を展開しています... 以前に未選択のパッケージ docker-engine を選択しています。 .../docker-engine_1.10.3-0~wily_amd64.deb を展開する準備をしています ... docker-engine (1.10.3-0~wily) を展開しています... 以前に未選択のパッケージ liberror-perl を選択しています。 .../liberror-perl_0.17-1.1_all.deb を展開する準備をしています ... liberror-perl (0.17-1.1) を展開しています... 以前に未選択のパッケージ git-man を選択しています。 .../git-man_1%3a2.5.0-1ubuntu0.1_all.deb を展開する準備をしています ... git-man (1:2.5.0-1ubuntu0.1) を展開しています... 以前に未選択のパッケージ git を選択しています。 .../git_1%3a2.5.0-1ubuntu0.1_amd64.deb を展開する準備をしています ... git (1:2.5.0-1ubuntu0.1) を展開しています... man-db (2.7.4-1) のトリガを処理しています ... ureadahead (0.100.0-19) のトリガを処理しています ... systemd (225-1ubuntu9.1) のトリガを処理しています ... aufs-tools (1:3.2+20130722-1.1) を設定しています ... cgroupfs-mount (1.2) を設定しています ... docker-engine (1.10.3-0~wily) を設定しています ... liberror-perl (0.17-1.1) を設定しています ... git-man (1:2.5.0-1ubuntu0.1) を設定しています ... git (1:2.5.0-1ubuntu0.1) を設定しています ... libc-bin (2.21-0ubuntu4.1) のトリガを処理しています ... systemd (225-1ubuntu9.1) のトリガを処理しています ... ureadahead (0.100.0-19) のトリガを処理しています ... + sh -c docker version Client: Version: 1.10.3 API version: 1.22 Go version: go1.5.3 Git commit: 20f81dd Built: Thu Mar 10 15:59:07 2016 OS/Arch: linux/amd64 Server: Version: 1.10.3 API version: 1.22 Go version: go1.5.3 Git commit: 20f81dd Built: Thu Mar 10 15:59:07 2016 OS/Arch: linux/amd64 If you would like to use Docker as a non-root user, you should now consider adding your user to the "docker" group with something like: sudo usermod -aG docker your-user Remember that you will have to log out and back in for this to take effect!
$ docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 03f4658f8b78: Pull complete a3ed95caeb02: Pull complete Digest: sha256:8be990ef2aeb16dbcb9271ddfe2610fa6658d13f6dfb8bc72074cc1ca36966a7 Status: Downloaded newer image for hello-world:latest Hello from Docker. This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker Hub account: https://hub.docker.com For more examples and ideas, visit: https://docs.docker.com/userguide/
$ add-apt-repository ppa:alessandro-strada/ppa $ apt-get update $ apt-get install google-drive-ocamlfuseインストールしたパッケージをデスクトップ上のターミナルで実行する。
$ google-drive-ocamlfuseすると、ブラウザが開きGoogleの認証画面になるのでアカウントを入力しログインする。
$ cd ドキュメント $ mkdir GoogleDrive $ google-drive-ocamlfuse GoogleDrive/これでマウントができたので、GoogleDriveの中のファイルをローカルにコピーしてみる。
$ cp -ip GoogleDrive/image1.JPG ~きちんとコピーできた。
$ fusermount -u GoogleDrive/これで便利なると思うんだけど、毎回マウントするのが面倒くさいので起動時にマウントするようにしておくとなお便利かな。~/.bashrcあたりに書いといたらいいんじゃないかと。
$ apt-get install guake
ssh -L [any local Port]:localhost:3389 [username]@[sakura vps IP] -i ~/.ssh/[secretkey Name]
Remote Desktop Clientのlocalhost:Macのlocalhost
SSHコマンドのlocalhost:サーバ側がフォワードにいくサーバとしてのlocalhost
address=127.0.0.1そのあとxrdpのサービスを再起動する。
$ rhc ssh myphpapp RSA 1024 bit CA certificates are loaded due to old openssl compatibility Connecting to 56b61d5c89f5cf92a000003f@myphpapp-xxxxxx.rhcloud.com ... ********************************************************************* You are accessing a service that is for use only by authorized users. If you do not have authorization, discontinue use at once. Any use of the services is subject to the applicable terms of the agreement which can be found at: https://www.openshift.com/legal ********************************************************************* Welcome to OpenShift shell This shell will assist you in managing OpenShift applications. !!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!! Shell access is quite powerful and it is possible for you to accidentally damage your application. Proceed with care! If worse comes to worst, destroy your application with "rhc app delete" and recreate it !!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!! Type "help" for more info. [myphpapp-xxxxxx.rhcloud.com 56b61d5c89f5cf92a000003f]\>でも使えるコマンドは限られてるみたい。
\> help Help menu: The following commands are available to help control your openshift application and environment. gear control your application (start, stop, restart, etc) or deps with --cart (gear start --cart mysql-5.1) tail_all tail all log files export list available environment variables rm remove files / directories ls list files / directories ps list running applications kill kill running applications mysql interactive MySQL shell mongo interactive MongoDB shell psql interactive PostgreSQL shell quota list disk usage Deprecated: ctl_app control your application (start, stop, restart, etc) ctl_all control application and deps like mysql in one command簡単なの使ってみよう。
[myphpapp-xxxxxx.rhcloud.com 56b61d5c89f5cf92a000003f]\> ls app-deployments app-root git php
[myphpapp-xxxxxx.rhcloud.com 56b61d5c89f5cf92a000003f]\> pwd /var/lib/openshift/56b61d5c89f5cf92a000003fファイルやディレクトリは見える。
[myphpapp-xxxxxx.rhcloud.com 56b61d5c89f5cf92a000003f]\> ps -aef UID PID PPID C STIME TTY TIME CMD 2385 182328 181214 0 13:13 ? 00:00:00 sshd: 56b61d5c89f5cf92a000003f@pts/1 2385 182339 182328 0 13:13 pts/1 00:00:00 /bin/bash --init-file /usr/bin/rhcsh -i 2385 189163 182339 2 13:14 pts/1 00:00:00 ps -aef 2385 423174 1 0 12:12 ? 00:00:00 /usr/sbin/httpd -c Include /var/lib/openshift/56b61d5c89f5cf92a000003f 2385 423175 1 0 12:12 ? 00:00:00 /usr/bin/logshifter -tag php 2385 423184 423174 0 12:12 ? 00:00:00 tee 2385 423185 423174 0 12:12 ? 00:00:00 tee 2385 423186 423174 0 12:12 ? 00:00:00 /usr/sbin/httpd -c Include /var/lib/openshift/56b61d5c89f5cf92a000003f 2385 434288 423174 0 12:14 ? 00:00:00 /usr/sbin/httpd -c Include /var/lib/openshift/56b61d5c89f5cf92a000003f動いているプロセスも見えるみたい。
[myphpapp-xxxxxx.rhcloud.com 56b61d5c89f5cf92a000003f]\> cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.7 (Santiago)OSはRedHat EnterPrise 6.7か。
[myphpapp-xxxxxx.rhcloud.com 56b61d5c89f5cf92a000003f]\> env MANPATH=/opt/rh/php54/root/usr/share/man: OPENSHIFT_SECRET_TOKEN=wD_1nmlzQ0FN8WHQ_Xs5hsUAiermXB5i7GVLGFP1N7w6_wGfnAT9PZNgwecEUpOGAJIp1ER8Ao-lGBwx8dU_8Q9fqn-R482B6JF9aySaXIXp9ScZZ8xY0Q_MeqZPzFJ1 OPENSHIFT_PHP_IDENT=redhat:php:5.4:0.0.28 OPENSHIFT_GEAR_MEMORY_MB=512 SELINUX_ROLE_REQUESTED= OPENSHIFT_DEPLO : :helpには書いてないけどenvで環境変数も見えるみたい。