My_Play_Lists ~BlackCatWhiteTail’s blog~

Talk About My Favorite Songs

Waydroid on ubuntu-desktop-22.04 on VirtualBox on Mac

はじめに

 コリドールというゲームが好きでよく遊ぶ。

 正規品のコリドールは9x9の合計81マス、コリドール・キッズは7x7の合計49マスである。

 最近Twitter等で少し話題になっていたのだが、某100均でコリドールもどきが売られていた。私も購入した。このコリドールもどきは7x7マスである。

 ということで、7x7マスのコリドールの練習をしたいのだが、世のコリドールアプリのほとんどが9x9マスである。頑張って7x7コリドールアプリを探したところ、なんとかgithubに数件、androidアプリに1件見つけることができた(閲覧日2023/07/19, Quoridor - Google Play のアプリ, https://play.google.com/store/apps/details?id=com.gameconfig.block

 手元のFireタブレットでこの7x7コリドールを遊ぶことができた。

 次に、このandroidのゲームを手元のMacでやることを考えた。そこで、表題のごとく、MacにインストールしたVirtualBoxubuntuをインストールし、そこでandroidoエミュレータを動かすことにした。

 少し前までは「Anbox」というエミュレータが使われていたようだが、現在は開発停止らしい(2023/07/21, andoxは開発停止している。代替ソフトにwaydroidがある。, Anbox · GitHub, https://github.com/anbox)。

 ネットで更に調べていると、Anboxの後継とも言えるプロジェクトとして「Waydroid」というアプリケーションがある事を知った。

 そこで、「Waydroid on ubuntu on VirtualBox on Mac」を構築した。その際にいくつか問題があり、その解決方法を記事にすることにした。

ターミナルが起動しない、かつsudoが使えない。

 virtualbox上のubuntuでターミナルが起動しない。同様の報告は複数ある。

(2023/07/21, command line - Terminal not opening on Ubuntu 22.04 on Virtual box 7.0.0 - Ask Ubuntu, https://askubuntu.com/questions/1435918/terminal-not-opening-on-ubuntu-22-04-on-virtual-box-7-0-0

 ターミナルを使えるようにするためには「/etc/default/locale」を編集する必要がある。そして編集するためには「sudo」を使う必要がある。「sudo」を使えるようにするためには、ターミナルが必要。ということで卵が先か鶏が先か状態である。

仮想コンソールを使う

 Ctrl + Alt + F3で仮想コンソール開く。

(2023/07/21, Ctrl + Alt + F3で仮想コンソール, Virtual Box 7.0.6 に Ubuntu 22.04 LTS を入れたけどターミナルが立ち上がらない件 | 株式会社イプシロンソフトウェア, https://www.wantedly.com/companies/company_8457116/post_articles/494841

 Visual Studio Codeをインストールし、それに付属するターミナルを使う方法もあるが、今回は使用せず。

(2023/07/21, visual studio codeのターミナルを用いる方法, VirtualBox7.0 に Ubuntu22.04 をインストールしたらターミナルが起動できなくなった話 | フジミヤログ, https://www.fujimiya-san.com/archives/1930

sudoコマンドを使えるようにする。

 suコマンドusermodコマンドを使う。

(2023/07/21, sudoを使えるようにする。, VirtualBox7.0.6でUbuntu Desktop 22.10のTerminalが起動しない時の対処法|IT石ログ, https://it.hirokun.net/entry/virtualbox7-0-6%E3%81%A7ubuntu-desktop-22-10%E3%81%AEterminal%E3%81%8C%E8%B5%B7%E5%8B%95%E3%81%97%E3%81%AA%E3%81%84

「/etc/default/locale」を編集する。

 sudo vi /etc/default/localeで編集する。

 これでようやくターミナルが使えるようになった。

waydroidをインストール

 以下記事の通りに進める。

(2023/07/21, DebianにWaydroidで爆速快適なAndroidを使ってみる webzoit.net, https://webzoit.net/hp/it/internet/homepage/env/os/bsd_unix_linux/debian/etc/lineageos_based_android_using_waydroid_on_debian_amd64.html

 上記記事の内容は、公式文章にも書かれており、それも参考にする。OS毎のインストール手順が記されている。

(2023/07/21, ubuntuへのインストール, Install Instructions - Waydroid, https://docs.waydro.id/usage/install-on-desktops

 sudo waydroid initとするとgoogleplayなしのOSがインストールされる。waydroid init -s GAPPS -fとオプションをつけるとgoogleplay入りでOSがインストールされる。

waydroidが起動しない(GUI表示されない)

 上記の参考記事には、インストール後GUI操作できるようになるとあるが、自分の環境ではGUIが起動しなかった。

 virtualbox上で動かす際は、設定ファイルを編集する必要がある。

(2023/07/21, Can Waydroid run in a virtual machine? · Issue #310 · waydroid/waydroid · GitHub, https://github.com/waydroid/waydroid/issues/310

これも、waydroid公式文章に書かれている。

(2023/07/21, Get Waydroid to work through a VM - Waydroid, https://docs.waydro.id/faq/get-waydroid-to-work-through-a-vm

F-droidインストール

 web上の記事を参考にインストール。起動もできた。

Auroraインストール

 web上の記事を参考にインストール。インストールできたが、起動できず。

コリドールアプリ

 色々試したが、インストールできず。

まとめ

 「Waydroid on ubuntu-desktop-22.04 on VirtualBox on Mac」を構築した。

 Waydroidをインストールするところまではできた。

 目的のアプリケーションをインストールすることはできなかった。

 参考記事

andoxは開発停止している。代替ソフトにwaydroidがある。 2023/07/21, Anbox · GitHub, https://github.com/anbox

2023/07/21, Ctrl + Alt + F3で仮想コンソール, Virtual Box 7.0.6 に Ubuntu 22.04 LTS を入れたけどターミナルが立ち上がらない件 | 株式会社イプシロンソフトウェア, https://www.wantedly.com/companies/company_8457116/post_articles/494841

2023/07/21, sudoを使えるようにする。, VirtualBox7.0.6でUbuntu Desktop 22.10のTerminalが起動しない時の対処法|IT石ログ, https://it.hirokun.net/entry/virtualbox7-0-6%E3%81%A7ubuntu-desktop-22-10%E3%81%AEterminal%E3%81%8C%E8%B5%B7%E5%8B%95%E3%81%97%E3%81%AA%E3%81%84

2023/07/21, visual studio codeのターミナルを用いる方法, VirtualBox7.0 に Ubuntu22.04 をインストールしたらターミナルが起動できなくなった話 | フジミヤログ, https://www.fujimiya-san.com/archives/1930

2023/07/21, 英語の記事, command line - Terminal not opening on Ubuntu 22.04 on Virtual box 7.0.0 - Ask Ubuntu, https://askubuntu.com/questions/1435918/terminal-not-opening-on-ubuntu-22-04-on-virtual-box-7-0-0

2023/07/21, DebianにWaydroidで爆速快適なAndroidを使ってみる webzoit.net, https://webzoit.net/hp/it/internet/homepage/env/os/bsd_unix_linux/debian/etc/lineageos_based_android_using_waydroid_on_debian_amd64.html

2023/07/21, ubuntuへのインストール, Install Instructions - Waydroid, https://docs.waydro.id/usage/install-on-desktops

2023/07/21, Can Waydroid run in a virtual machine? · Issue #310 · waydroid/waydroid · GitHub, https://github.com/waydroid/waydroid/issues/310

2023/07/21, Get Waydroid to work through a VM - Waydroid, https://docs.waydro.id/faq/get-waydroid-to-work-through-a-vm

Translated with DeepL

Introduction

 I like the game Corridor and play it often.

 Corridor is 9x9 with a total of 81 squares, while Corridor Kids is 7x7 with a total of 49 squares.

 Recently, there was a little buzz on Twitter, etc., that a Corridor imitation was being sold at a certain 100-yen store. I bought one myself. This Corridor Kidz has 7x7 squares.

 So, I want to practice corridor of 7x7 square, but most of corridor applications in the world are 9x9 square. I tried my best to find a 7x7 corridor app and managed to find a few on github and one on android apps (viewed on 2023/07/19, Quoridor - Apps on Google Play, https://play.google.com/store/ apps/details?id=com.gameconfig.block)

 I was able to play this 7x7 Corridor on my Fire tablet.

 Next, I thought about playing this android game on my Mac at hand. So, as the title says, I installed ubuntu in VirtualBox installed on my Mac and decided to run the androido emulator there.

 Until a while ago, an emulator called "Anbox" was used, but it seems to be out of development now (2023/07/21, andox is out of development. There is waydroid as an alternative software. , Anbox - GitHub, https://github.com/anbox).

 Upon further research on the Internet, I learned that there is an application called "Waydroid" as a project that can be considered as a successor of Anbox.

 So, I built "Waydroid on ubuntu on VirtualBox on Mac". In doing so, I had some problems and decided to write an article about how to solve them.

Terminal does not start and sudo is not available.

 Terminal does not start on ubuntu on virtualbox. There are several similar reports.

(2023/07/21, command line - Terminal not opening on Ubuntu 22.04 on Virtual box 7.0.0 - Ask Ubuntu, https://askubuntu.com/questions/1435918/ terminal-not-opening-on-ubuntu-22-04-on-virtual-box-7-0-0)

 To be able to use the terminal, you need to edit "/etc/default/locale". And you need to use "sudo" to edit it. To be able to use "sudo", you need a terminal. So, it is a case of egg first or chicken second.

Using the virtual console

 Ctrl + Alt + F3 opens a virtual console.

 There is another way to install Visual Studio Code and use the terminal that comes with it, but I did not use it this time.

(2023/07/21, How to use the terminal of visual studio code, The story that the terminal cannot be started after installing Ubuntu22.04 on VirtualBox7.0 | Fujimiya Log, https://www.fujimiya-san.com/ archives/1930 )

Make sure you can use sudo command.

 Use su command and usermod command.

(2023/07/21, Enable to use sudo. , How to fix Ubuntu Desktop 22.10 Terminal not starting on VirtualBox 7.0.6|IT Stone Log, https://it.hirokun.net/entry/virtualbox7-0-6%E3%81%A7ubuntu-desktop- 22-10%E3%81%AEterminal%E3%81%8C%E8%B5%B7%E5%8B%95%E3%81%97%E3%81%AA%E3%81%84)

Edit "/etc/default/locale".

 Edit it with sudo vi /etc/default/locale.

 Now you can finally use the terminal.

Install waydroid

 Proceed as per the following article.

(2023/07/21, Using a blazing fast and comfortable Android with Waydroid on Debian, webzoit.net, https://webzoit.net/hp/it/internet/homepage/env/os/bsd_unix_linux/debian /etc/lineageos_based_android_using_waydroid_on_debian_amd64.html)

 The above article is also written in the official text, which is also helpful: it describes the installation procedure for each OS.

(2023/07/21, Installation on ubuntu, Install Instructions - Waydroid, https://docs.waydro.id/usage/install-on-desktops)

 If you do sudo waydroid init, the OS without googleplay will be installed. If you add sudo waydroid init -s GAPPS -f option, the OS will be installed with googleplay.

waydroid does not start (GUI is not displayed)

 The above reference article says that GUI can be operated after installation, but GUI did not start in my environment.

 If you want to run it on virtualbox, you need to edit the configuration file.

(2023/07/21, Can Waydroid run in a virtual machine? - Issue #310 - waydroid/waydroid - GitHub, https://github.com/waydroid/waydroid/issues/310)

This is also written in the official waydroid text.

(2023/07/21, Get Waydroid to work through a VM - Waydroid, https://docs.waydro.id/faq/get-waydroid-to-work-through-a-vm)

F-droid installation

 Installed F-droid with reference to the article on the web. I was able to start it.

Aurora installation

 Installed Aurora referring to the article on the web. Installed but could not start.

Corridor app

 Tried everything, but could not install.

Summary

 I built "Waydroid on ubuntu-desktop-22.04 on VirtualBox on Mac".

 I was able to install Waydroid.

 I could not install the desired application.

 このウェブサイトについて

 練習用のサイトです.

 自分の好きな曲について感想を述べます.

 また,世に役に立つかもと考えたことも書きます.

 

TOP 1 To 5

Title Artist Album
ロックバンド 中村中 私を抱いて下さい
犬の生活 SEX MACHINEGUNS SEX MACHINEGUNS
Megalovania Toby Fox UNDERTALE Soundtrack
Bokura No Fly Away Base Ball Bear Bokura No Fly Away - single
人魚の檻 陰陽座 迦陵頻伽(Ka Ryo Bin Ga