Bug#930202: [PATCH] Updated README.Debian

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#930202: [PATCH] Updated README.Debian

積丹尼 Dan Jacobson
Package: anbox
Version: 0.0~git20190124-1
Severity: minor
File: /usr/share/doc/anbox/README.Debian

早安。 Here is a new version for you:

--- /usr/share/doc/anbox/README.Debian 2019-03-02 00:03:49.000000000 +0800
+++ /home/jidanni/anbox/README.Debian 2019-06-08 12:28:14.384032562 +0800
@@ -5,10 +5,11 @@
 
 In order to run Android system inside container, you need two kernel
 modules: ashmem_linux and binder_linux. Since Debian kernel 4.17, these
-two modules are enabled. You can find theme at,
-/lib/modules/`uname -r`/kernel/drivers/android/binder_linux.ko and
-/lib/modules/`uname -r`/kernel/drivers/staging/android/ashmem_linux.ko.
-.
+two modules are enabled. To check if they are installed, use
+
+$ ls /lib/modules/`uname -r`/kernel/drivers/android/binder_linux.ko
+$ ls /lib/modules/`uname -r`/kernel/drivers/staging/android/ashmem_linux.ko
+
 If your kernel doesn't have these two modules, you can follow upstream
 instructions to install them with DKMS. Please see
 <https://github.com/anbox/anbox-modules/>.
@@ -16,11 +17,43 @@
 You also need to download the Android image to /var/lib/anbox/android.img
 The pre-build image can be found at <https://build.anbox.io/android-images>.
 .
-Then start the anbox-container-manager.service and the
-anbox-session-manager.service, anbox-session-manager.service is a systemd
-user service.
+Then do
+
+# systemctl start anbox-container-manager.service
+$ anbox session-manager&
+
+At this point we don't see anything launch, but don't worrk, we see many
+Android processes are actually running:
+$ ps aux|grep android|wc -l
+18
+
 .
-Android application can be started from desktop menu.
+Android application can also perhaps be started from desktop menu.
+
+Never mind that still we don't see any window. Now let's install an .apk!
+
+$ adb install ~/Downloads/tbus.com_2019-05-11.apk
+Success
+
+Now do
+
+$ sed -n 's!^Exec=/usr/bin/!!p' ~/.local/share/applications/anbox/*.desktop
+
+which tells us we should do
+
+$ anbox launch --action=android.intent.action.MAIN --package=tbus.com --component=tbus.com.MainActivity
+
+And indeed, for the very first time, a window pops up on our screen! The app is running!
+
+Sure, we never saw the "Anbox Application Manager" window that others see,
+https://user-images.githubusercontent.com/15462036/46653420-0ea5ca00-cbb7-11e8-9a57-30c3517724ac.png
+but at least we got an app running!
+
+To stop anbox do
+
+# systemctl stop anbox-container-manager.service
+(As https://github.com/anbox/anbox/issues/933#issuecomment-429603143
+ method doesn't work.)
 
 * Debug

Reply | Threaded
Open this post in threaded view
|

Bug#930202: In README must mention launching org.anbox.appmgr !

積丹尼 Dan Jacobson
Also mention that one must do
$ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity &
for heavens's sake, else the user will be forever scratching his head!

Reply | Threaded
Open this post in threaded view
|

Bug#930202: Don't mention anbox session-manager

積丹尼 Dan Jacobson
In reply to this post by 積丹尼 Dan Jacobson
It turns out
$ anbox session-manager &
$ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity &
both are supposed to do the same thing. But only the latter works. So
please only mention it.

Reply | Threaded
Open this post in threaded view
|

Bug#930202: anbox: additional user documentation needed

Phil Morrell
In reply to this post by 積丹尼 Dan Jacobson
Package: anbox
Version: 0.0~git20190124-1
Followup-For: Bug #930202

I had to do the below after installation to enable the menu launchers:

sudo curl --output /var/lib/anbox/android.img https://build.anbox.io/android-images/2018/07/19/android_amd64.img
sudo systemctl start anbox-container-manager
# expect: "Your computer does meet all requirements to run Anbox"
anbox check-features
systemctl --user start anbox-session-manager
# to start on future logins, otherwise launchers crash
systemctl --user enable anbox-session-manager

Anbox application manager is listed under "Accessories", with individual
apps under "Other". Sadly there's very little end user documentation
available, and what there is assumes a constantly updated snap package.
I also found the deliberate [lack of appstore] very limiting, so I
suggest recommending F-Droid for a default install.

[lack of appstore]: https://github.com/anbox/anbox/issues/27#issuecomment-293486105

sudo apt install adb
wget https://f-droid.org/FDroid.apk
adb install FDroid.apk
sudo reboot
--
Phil Morrell (emorrp1)



-- System Information:
Debian Release: 10.0
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages anbox depends on:
ii  iptables                        1.8.2-4
ii  libboost-atomic1.67.0           1.67.0-13
ii  libboost-chrono1.67.0           1.67.0-13
ii  libboost-date-time1.67.0        1.67.0-13
ii  libboost-filesystem1.67.0       1.67.0-13
ii  libboost-iostreams1.67.0        1.67.0-13
ii  libboost-log1.67.0              1.67.0-13
ii  libboost-program-options1.67.0  1.67.0-13
ii  libboost-regex1.67.0            1.67.0-13
ii  libboost-serialization1.67.0    1.67.0-13
ii  libboost-system1.67.0           1.67.0-13
ii  libboost-thread1.67.0           1.67.0-13
ii  libc6                           2.28-10
ii  libegl1                         1.1.0-1
ii  libgcc1                         1:8.3.0-6
ii  libgles2                        1.1.0-1
ii  liblxc1                         1:3.1.0+really3.0.3-8
ii  libprotobuf-lite17              3.6.1.3-2
ii  libsdl2-2.0-0                   2.0.9+dfsg1-1
ii  libsdl2-image-2.0-0             2.0.4+dfsg1-1
ii  libstdc++6                      8.3.0-6
ii  libsystemd0                     241-5
ii  lxc                             1:3.1.0+really3.0.3-8

Versions of packages anbox recommends:
ii  dbus-user-session  1.12.16-1

anbox suggests no packages.

-- no debconf information
To: Debian Bug Tracking System <[hidden email]>
Subject: anbox: additional user documentation needed
X-Debbugs-Cc: [hidden email]

Package: anbox
Version: 0.0~git20190124-1
Followup-For: Bug #930202

I had to do the below after installation to enable the menu launchers:

sudo curl --output /var/lib/anbox/android.img https://build.anbox.io/android-images/2018/07/19/android_amd64.img
sudo systemctl start anbox-container-manager
# expect: "Your computer does meet all requirements to run Anbox"
anbox check-features
systemctl --user start anbox-session-manager
# to start on future logins, otherwise launchers crash
systemctl --user enable anbox-session-manager

Anbox application manager is listed under "Accessories", with individual
apps under "Other". Sadly there's very little end user documentation
available, and what there is assumes a constantly updated snap package.
I also found the deliberate [lack of appstore] very limiting, so I
suggest recommending F-Droid for a default install.

[lack of appstore]: https://github.com/anbox/anbox/issues/27#issuecomment-293486105

sudo apt install adb
wget https://f-droid.org/FDroid.apk
adb install FDroid.apk
sudo reboot
--
Phil Morrell (emorrp1)



-- System Information:
Debian Release: 10.0
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages anbox depends on:
ii  iptables                        1.8.2-4
ii  libboost-atomic1.67.0           1.67.0-13
ii  libboost-chrono1.67.0           1.67.0-13
ii  libboost-date-time1.67.0        1.67.0-13
ii  libboost-filesystem1.67.0       1.67.0-13
ii  libboost-iostreams1.67.0        1.67.0-13
ii  libboost-log1.67.0              1.67.0-13
ii  libboost-program-options1.67.0  1.67.0-13
ii  libboost-regex1.67.0            1.67.0-13
ii  libboost-serialization1.67.0    1.67.0-13
ii  libboost-system1.67.0           1.67.0-13
ii  libboost-thread1.67.0           1.67.0-13
ii  libc6                           2.28-10
ii  libegl1                         1.1.0-1
ii  libgcc1                         1:8.3.0-6
ii  libgles2                        1.1.0-1
ii  liblxc1                         1:3.1.0+really3.0.3-8
ii  libprotobuf-lite17              3.6.1.3-2
ii  libsdl2-2.0-0                   2.0.9+dfsg1-1
ii  libsdl2-image-2.0-0             2.0.4+dfsg1-1
ii  libstdc++6                      8.3.0-6
ii  libsystemd0                     241-5
ii  lxc                             1:3.1.0+really3.0.3-8

Versions of packages anbox recommends:
ii  dbus-user-session  1.12.16-1

anbox suggests no packages.

-- no debconf information

signature.asc (235 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#930202: [PATCH] Updated README.Debian

Martin Monperrus-2
In reply to this post by 積丹尼 Dan Jacobson
Package: anbox
Version: 0.0~git20190124-1
Followup-For: Bug #930202

I confirm that anbox works well on Sid but is hard to understand due to the
lack of documentation.

This documentation patch looks great, what about merging it?



-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_CRAP, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages anbox depends on:
ii  iptables                        1.8.3-2
ii  libboost-atomic1.67.0           1.67.0-13
ii  libboost-chrono1.67.0           1.67.0-13
ii  libboost-date-time1.67.0        1.67.0-13
ii  libboost-filesystem1.67.0       1.67.0-13
ii  libboost-iostreams1.67.0        1.67.0-13
ii  libboost-log1.67.0              1.67.0-13
ii  libboost-program-options1.67.0  1.67.0-13
ii  libboost-regex1.67.0            1.67.0-13
ii  libboost-serialization1.67.0    1.67.0-13
ii  libboost-system1.67.0           1.67.0-13
ii  libboost-thread1.67.0           1.67.0-13
ii  libc6                           2.28-10
ii  libegl1                         1.1.0-1
ii  libgcc1                         1:9.1.0-8
ii  libgles2                        1.1.0-1
ii  liblxc1                         1:3.1.0+really3.0.3-8
ii  libprotobuf-lite17              3.6.1.3-2
ii  libsdl2-2.0-0                   2.0.9+dfsg1-1
ii  libsdl2-image-2.0-0             2.0.5+dfsg1-1
ii  libstdc++6                      9.1.0-8
ii  libsystemd0                     241-6+b1
ii  lxc                             1:3.1.0+really3.0.3-8

Versions of packages anbox recommends:
ii  dbus-user-session  1.12.16-1

anbox suggests no packages.

-- debconf-show failed