Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start GUI from command line in Android-x86

I managed to get Android-x86 running in VMware player, but if I need to go to the command line by pressing Alt+F1 I cannot go back to the GUI. How do I restart the GUI from the command line?

like image 581
user13267 Avatar asked Aug 14 '13 04:08

user13267


4 Answers

To start the GUI, I had to select VboxVGA instead of VMSVGA in the VirtualBox display settings of the virtual machine.

Note: This is a solution to make it work with VirtualBox in case it helps someone who finds this question. It is possible that the solution to make it work with VMware player is similar.

I also found this information here:

Mandatory: Unless guest additions are installed, change the default VMSVGA to VBoxVGA.

like image 182
baptx Avatar answered Oct 25 '22 21:10

baptx


To fix this, you have to open the Virtual Machine Settings for your Android virtual machine and then go to the Display settings on the Hardware tab. Make sure that 3D acceleration is ticked! Start your Android virtual machine and wait maybe up to 10 seconds on the command line. It will then boot to Android GUI.

like image 32
JAGJIT DHALIWAL Avatar answered Oct 25 '22 21:10

JAGJIT DHALIWAL


Adding another optional solution, because even though the most voted solution (written by JAGJIT DHALIWAL) helped me, it didn't do the whole job.
When trying to install android x86 8.1 (oreo) the suggested answer didn't do the trick and the my android VM was stuck on GUI initialization, after viewing this video my problem was solved.

What I had to do is:

  1. to start the vm in debug mode, or open the CLI before GUI init first.
  2. remount mnt: mount -o remount,rw /mnt
  3. edit /mnt/grub/menu.lst (vi /mnt/grub/menu.lst)
  4. appending this code to the first option (the first line starthing with kernel) nomodeset xforcevesa
  5. save the file (:wq or :x)
  6. reboot and the VM boots like magic with GUI
like image 30
kaki gadol Avatar answered Oct 25 '22 19:10

kaki gadol


To go back to GUI try use Alt+F7

like image 11
Arek Avatar answered Oct 25 '22 20:10

Arek