質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

UNIX

UNIXとは、AT&Tのベル研究所で開発されたコンピューター用のマルチユーザー・マルチタスクのオペレーションシステム(OS)です。政府や教育機関や研究所で広範囲に採用されています。

MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

VirtualBox

VirtualBoxは、現在米オラクル社が開発している、 x86仮想化ソフトウェア・パッケージの一つです。

Q&A

2回答

1586閲覧

macでlinux勉強中にGUI?を表示したい

退会済みユーザー

退会済みユーザー

総合スコア0

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

UNIX

UNIXとは、AT&Tのベル研究所で開発されたコンピューター用のマルチユーザー・マルチタスクのオペレーションシステム(OS)です。政府や教育機関や研究所で広範囲に採用されています。

MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

VirtualBox

VirtualBoxは、現在米オラクル社が開発している、 x86仮想化ソフトウェア・パッケージの一つです。

0グッド

0クリップ

投稿2018/08/17 23:50

前提・実現したいこと

linuxの勉強を始めようとしているものです。
ドットインストールのunixの動画をみているのですが
動画中に出てくるファイル構成を確認するような画面(GUI?)を表示しながら学習したいのですが
表示の方法やその調べ方もわからずに困っています。
おすすめの勉強法等ありましたら一緒に教えてください。

補足情報

使っているパソコン:macbookair
仮装環境の構築にはドワンゴのN校の動画をみて構築しました
vagrant,ubuntu,virtualboxを使っています。

※勉強を始めたばかりのためわかる限りの情報を書き出しました。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

hope_mucci

2018/08/18 00:54 編集

この情報だけでは全くさっぱりわかりません。 > ドットインストールのunixの動画をみているのですが どの動画ですか。URL貼ってください。 > 動画中に出てくるファイル構成を確認するような画面(GUI?) 画面キャプチャ貼ってもらえないとわかりません。 回答する側、逆の立場に立ってみてください。質問の情報では全然内容がつかめないことがわかるかと。
退会済みユーザー

退会済みユーザー

2018/08/18 01:22

初心者のためと文中に記載している通り、このサイトもまだ慣れておりません。そのような内容を理解頂けているため、ご理解いただけない方は結構です。ご指摘ありがとうございます。今回の内容を以後参考にはさせていただきます
hope_mucci

2018/08/18 02:01

初心者であることと、姿勢が伴わないことは別の問題です。以後肝に銘じるように。
退会済みユーザー

退会済みユーザー

2018/08/18 03:14

ありがとうございます。姿勢が伴うように学んでいきます!このサイトの目的を十分理解されてて、hope_mucciは素晴らしい姿勢です。ソンケイします。
guest

回答2

0

Linux の勉強をするというのであれば、べつにVagrant をつかわずとも、VirtualBoxに直接Ubuntuをインストールしてしまえばいいんじゃないでしょうか

投稿2018/08/18 00:57

y_waiwai

総合スコア87749

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2018/08/18 01:13

ありがとうございます
y_waiwai

2018/08/18 01:20

ネットワークアダプタの設定をブリッジにしとけば、LinuxもMacのネットワークにつながるので、それでいろいろできます。 まあ、仮想マシンをサーバ公開するとかする場合は、それだとやばいですが
退会済みユーザー

退会済みユーザー

2018/08/18 01:25

まだまだ初心者のため内容を理解するまでには至りませんが、ありがとうございますm(__)m
guest

0

Vagrant で GUIログインする場合と、VagrantからGUIをX11に送信する方法があります。
前者の方が簡単だと思いますのでGUIログインを説明します。

VirtualBox の起動設定の変更

まず、 Vagrantfile のvb.gui = true の行を有効にします。
注意:このファイルはお使いのVagrantfileによって場所や記載内容が異なります

ruby

1# Provider-specific configuration so you can fine-tune various 2# backing providers for Vagrant. These expose provider-specific options. 3# Example for VirtualBox: 4# 5config.vm.provider :virtualbox do |vb| 6 # 7 vb.gui = true 8# 9# # Use VBoxManage to customize the VM. For example to change memory: 10# vb.customize ["modifyvm", :id, "--memory", "1024"] 11end

Linuxの起動とログイン

つぎに vagrantでLinuxを起動します。おそらくtext modeでしょう。

sh

1vagrant up

しばらくするとlogin:とプロンプトがでるのでvagrant/vagrantでログインします。

必要パッケージのインストール

つぎに デスクトップ環境のパッケージをインストールします。
このステップは時間がネットワーク環境により時間がかかります。
ここでは標準のデスクトップ環境にしていますが、VMのマシンパワーが不足するようでしたら、xfceでもいいかもしれません。

sh

1sudo apt update 2sudo apt -y install ubuntu-desktop

GUIの起動とログイン

最後にGUIで起動します。

sh

1sudo startx

GUIのログイン画面が表示されるので、vagrant/vagrantでログインします。

投稿2018/08/18 00:36

fu7mu4

総合スコア1088

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2018/08/18 01:16

初心者をご理解の上、大変親切な詳しい説明ありがとうございます!! 文中にもある通り初心者のため本当に助かりますm(__)m 出先のため帰ってから試してみます^ ^
退会済みユーザー

退会済みユーザー

2018/08/18 12:55

試して見ました!! このような画面が出て GUIを起動しようとしたんですがこのような画面が出てしまい、 入力ができなくなりました。 X.Org X Server 1.18.4 Release Date: 2016-07-19 X Protocol Version 11, Revision 0 Build Operating System: Linux 4.4.0-97-generic x86_64 Ubuntu Current Operating System: Linux ubuntu-xenial 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-130-generic root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0 Build Date: 13 October 2017 01:57:05PM xorg-server 2:1.18.4-0ubuntu0.7 (For technical support please see http://www.ubuntu.com/support) Current version of pixman: 0.33.6 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sat Aug 18 12:00:59 2018 (==) Using system config directory "/usr/share/X11/xorg.conf.d" error setting MTRR (base = 0xe0000000, size = 0x01000000, type = 1) No such device or address (6) //ここから下は動かなくなり適当に入力してます :p :q お忙しいのにすいません この先はどうすればいいですか?
退会済みユーザー

退会済みユーザー

2018/08/18 13:02

control+cで終了できました。 でもやはりGUIが表示されません。
fu7mu4

2018/08/19 03:02

デバイスがないといわれていますので、Vagrantfileが間違っている可能性があります。こちらにVagrantfileを提示していただけますか?
fu7mu4

2018/08/19 03:34 編集

例えば、ubuntu/bionic で GUIを有効にした Vagrantfileの例 ````ruby # -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure("2") do |config| # The most common configuration options are documented and commented below. # For a complete reference, please see the online documentation at # https://docs.vagrantup.com. # Every Vagrant development environment requires a box. You can search for # boxes at https://vagrantcloud.com/search. config.vm.box = "ubuntu/bionic64" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs # `vagrant box outdated`. This is not recommended. # config.vm.box_check_update = false # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine. In the example below, # accessing "localhost:8080" will access port 80 on the guest machine. # NOTE: This will enable public access to the opened port # config.vm.network "forwarded_port", guest: 80, host: 8080 # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine and only allow access # via 127.0.0.1 to disable public access # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1" # Create a private network, which allows host-only access to the machine # using a specific IP. # config.vm.network "private_network", ip: "192.168.33.10" # Create a public network, which generally matched to bridged network. # Bridged networks make the machine appear as another physical device on # your network. # config.vm.network "public_network" # Share an additional folder to the guest VM. The first argument is # the path on the host to the actual folder. The second argument is # the path on the guest to mount the folder. And the optional third # argument is a set of non-required options. # config.vm.synced_folder "../data", "/vagrant_data" # Provider-specific configuration so you can fine-tune various # backing providers for Vagrant. These expose provider-specific options. # Example for VirtualBox: # config.vm.provider "virtualbox" do |vb| # Display the VirtualBox GUI when booting the machine vb.gui = true # # Customize the amount of memory on the VM: # vb.memory = "1024" end # # View the documentation for the provider you are using for more # information on available options. # Enable provisioning with a shell script. Additional provisioners such as # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the # documentation for more information about their specific syntax and use. # config.vm.provision "shell", inline: <<-SHELL # apt-get update # apt-get install -y apache2 # SHELL end ````
fu7mu4

2018/08/19 03:40

vagrant up後にVagrantを実行した端末(Terminal.app?)の外にGUIが表示されるます。そのときGUIの中は背景色黒:文字色白でlogin:が表示されるはずです。しばらく、vagrant upの出力が終るのを待ってから GUIの方をクリックして login:のあとにvagrantと入力します。それからパスワードを入力します。 vagrant sshはしません。
退会済みユーザー

退会済みユーザー

2018/08/19 22:53

fu7mu4さんありがとうございます。 vagrantfileを載せます よろしくおながいしますm(._.)m # -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure("2") do |config| # The most common configuration options are documented and commented below. # For a complete reference, please see the online documentation at # https://docs.vagrantup.com. # Every Vagrant development environment requires a box. You can search for # boxes at https://vagrantcloud.com/search. config.vm.box = "ubuntu/xenial64" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs # `vagrant box outdated`. This is not recommended. # config.vm.box_check_update = false # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine. In the example below, # accessing "localhost:8080" will access port 80 on the guest machine. # NOTE: This will enable public access to the opened port # config.vm.network "forwarded_port", guest: 80, host: 8080 # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine and only allow access # via 127.0.0.1 to disable public access # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1" # Create a private network, which allows host-only access to the machine # using a specific IP. # config.vm.network "private_network", ip: "192.168.33.10" # Create a public network, which generally matched to bridged network. # Bridged networks make the machine appear as another physical device on # your network. # config.vm.network "public_network" # Share an additional folder to the guest VM. The first argument is # the path on the host to the actual folder. The second argument is # the path on the guest to mount the folder. And the optional third # argument is a set of non-required options. # config.vm.synced_folder "../data", "/vagrant_data" config.vm.synced_folder "./workspace", "/home/vagrant/workspace" # Provider-specific configuration so you can fine-tune various # backing providers for Vagrant. These expose provider-specific options. # Example for VirtualBox: # config.vm.provider "virtualbox" do |vb| # # Display the VirtualBox GUI when booting the machine # vb.gui = true # # # Customize the amount of memory on the VM: vb.memory = "1024" end # # View the documentation for the provider you are using for more # information on available options. # Enable provisioning with a shell script. Additional provisioners such as # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the # documentation for more information about their specific syntax and use. # config.vm.provision "shell", inline: <<-SHELL # apt-get update # apt-get install -y apache2 # SHELL end
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問