can't launch android emulator while logged in over vnc? The 2019 Stack Overflow Developer Survey Results Are Invnc over ssh port assignmentVNC session turns undead over the weekendAndroid Emulator on Arch LinuxConnection to tigervnc gets closed immediatelyRun AVD and VirtualBox at the same timeGetting Tightvnc Server Working on Debian 8 (with KDE)tigervnc on centos - black screenxrdp fails to work on Arch Linux using i3 window managerError while running vnc serverLaunching Xvnc server with xinetd, wrapped with vglrun
How to manage monthly salary
Idiomatic way to prevent slicing?
What is the steepest angle that a canal can be traversable without locks?
Lethal sonic weapons
What is the best strategy for white in this position?
What is this 4-propeller plane?
Inversion Puzzle
Access elements in std::string where positon of string is greater than its size
Is flight data recorder erased after every flight?
What is the use of option -o in the useradd command?
Is there a name of the flying bionic bird?
What is the motivation for a law requiring 2 parties to consent for recording a conversation
Geography at the pixel level
Why is it "Tumoren" and not "Tumore"?
Why isn't airport relocation done gradually?
CiviEvent: Public link for events of a specific type
Does a dangling wire really electrocute me if I'm standing in water?
Dual Citizen. Exited the US on Italian passport recently
What can other administrators access on my machine?
Why is Grand Jury testimony secret?
Manuscript was "unsubmitted" because the manuscript was deposited in Arxiv Preprints
Why is the maximum length of OpenWrt’s root password 8 characters?
What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?
Does it makes sense to buy a new cycle to learn riding?
can't launch android emulator while logged in over vnc?
The 2019 Stack Overflow Developer Survey Results Are Invnc over ssh port assignmentVNC session turns undead over the weekendAndroid Emulator on Arch LinuxConnection to tigervnc gets closed immediatelyRun AVD and VirtualBox at the same timeGetting Tightvnc Server Working on Debian 8 (with KDE)tigervnc on centos - black screenxrdp fails to work on Arch Linux using i3 window managerError while running vnc serverLaunching Xvnc server with xinetd, wrapped with vglrun
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
i have a headless box running bbqlinux that i'm trying to use as an android-studio development box. when i go to launch an .avd in the emulator, i receive this error:
Cannot launch AVD in emulator
Output: emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure KVM is properly installed and usable.
CPU acceleration status: This user doesn't have permissions to use KVM (/dev/kvm).
this was freaking me out and i spent a good amount of time trying to sure that everything was enabled, installed correctly, permissions set, etc... then: i plugged a screen in and logged directly into the box and bam! it works fine.
so my problem is maybe the vncserver? i'm using tigervnc
that i set up according to this page: https://wiki.archlinux.org/index.php/Vncserver
just in case it helps, my xstartup
file is
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -iconic &
startxfce4 &
other than that, i've not changed the default environment hardly at all except to add lighttable, ssh, & vnc. so my question is really
- should i not be doing it this way? is there a better workflow or vnc server program for what i'm trying to do?
- is there a command switch or option that i missed that maybe enables the hardware acceleration over vnc?
thanks!
arch-linux kvm vnc qemu
add a comment |
i have a headless box running bbqlinux that i'm trying to use as an android-studio development box. when i go to launch an .avd in the emulator, i receive this error:
Cannot launch AVD in emulator
Output: emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure KVM is properly installed and usable.
CPU acceleration status: This user doesn't have permissions to use KVM (/dev/kvm).
this was freaking me out and i spent a good amount of time trying to sure that everything was enabled, installed correctly, permissions set, etc... then: i plugged a screen in and logged directly into the box and bam! it works fine.
so my problem is maybe the vncserver? i'm using tigervnc
that i set up according to this page: https://wiki.archlinux.org/index.php/Vncserver
just in case it helps, my xstartup
file is
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -iconic &
startxfce4 &
other than that, i've not changed the default environment hardly at all except to add lighttable, ssh, & vnc. so my question is really
- should i not be doing it this way? is there a better workflow or vnc server program for what i'm trying to do?
- is there a command switch or option that i missed that maybe enables the hardware acceleration over vnc?
thanks!
arch-linux kvm vnc qemu
When I tried running the emulator inside vnc it failed, I can't remember the exact reason why it failed - but I have a vague recollection of it being that VNC does not have native support for XRANDR.
– Drav Sloan
Aug 5 '15 at 22:00
Also if memory serves I got more information fromadb logcat
– Drav Sloan
Aug 5 '15 at 22:05
huh. i haven't heard ofxrandr
before, but a quick search seems to show that at leasttigervnc
should support it. alsoadb logcat
won't show me any data since the emulator never actually starts.
– will_
Aug 5 '15 at 22:29
add a comment |
i have a headless box running bbqlinux that i'm trying to use as an android-studio development box. when i go to launch an .avd in the emulator, i receive this error:
Cannot launch AVD in emulator
Output: emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure KVM is properly installed and usable.
CPU acceleration status: This user doesn't have permissions to use KVM (/dev/kvm).
this was freaking me out and i spent a good amount of time trying to sure that everything was enabled, installed correctly, permissions set, etc... then: i plugged a screen in and logged directly into the box and bam! it works fine.
so my problem is maybe the vncserver? i'm using tigervnc
that i set up according to this page: https://wiki.archlinux.org/index.php/Vncserver
just in case it helps, my xstartup
file is
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -iconic &
startxfce4 &
other than that, i've not changed the default environment hardly at all except to add lighttable, ssh, & vnc. so my question is really
- should i not be doing it this way? is there a better workflow or vnc server program for what i'm trying to do?
- is there a command switch or option that i missed that maybe enables the hardware acceleration over vnc?
thanks!
arch-linux kvm vnc qemu
i have a headless box running bbqlinux that i'm trying to use as an android-studio development box. when i go to launch an .avd in the emulator, i receive this error:
Cannot launch AVD in emulator
Output: emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure KVM is properly installed and usable.
CPU acceleration status: This user doesn't have permissions to use KVM (/dev/kvm).
this was freaking me out and i spent a good amount of time trying to sure that everything was enabled, installed correctly, permissions set, etc... then: i plugged a screen in and logged directly into the box and bam! it works fine.
so my problem is maybe the vncserver? i'm using tigervnc
that i set up according to this page: https://wiki.archlinux.org/index.php/Vncserver
just in case it helps, my xstartup
file is
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -iconic &
startxfce4 &
other than that, i've not changed the default environment hardly at all except to add lighttable, ssh, & vnc. so my question is really
- should i not be doing it this way? is there a better workflow or vnc server program for what i'm trying to do?
- is there a command switch or option that i missed that maybe enables the hardware acceleration over vnc?
thanks!
arch-linux kvm vnc qemu
arch-linux kvm vnc qemu
asked Aug 5 '15 at 21:48
will_will_
563
563
When I tried running the emulator inside vnc it failed, I can't remember the exact reason why it failed - but I have a vague recollection of it being that VNC does not have native support for XRANDR.
– Drav Sloan
Aug 5 '15 at 22:00
Also if memory serves I got more information fromadb logcat
– Drav Sloan
Aug 5 '15 at 22:05
huh. i haven't heard ofxrandr
before, but a quick search seems to show that at leasttigervnc
should support it. alsoadb logcat
won't show me any data since the emulator never actually starts.
– will_
Aug 5 '15 at 22:29
add a comment |
When I tried running the emulator inside vnc it failed, I can't remember the exact reason why it failed - but I have a vague recollection of it being that VNC does not have native support for XRANDR.
– Drav Sloan
Aug 5 '15 at 22:00
Also if memory serves I got more information fromadb logcat
– Drav Sloan
Aug 5 '15 at 22:05
huh. i haven't heard ofxrandr
before, but a quick search seems to show that at leasttigervnc
should support it. alsoadb logcat
won't show me any data since the emulator never actually starts.
– will_
Aug 5 '15 at 22:29
When I tried running the emulator inside vnc it failed, I can't remember the exact reason why it failed - but I have a vague recollection of it being that VNC does not have native support for XRANDR.
– Drav Sloan
Aug 5 '15 at 22:00
When I tried running the emulator inside vnc it failed, I can't remember the exact reason why it failed - but I have a vague recollection of it being that VNC does not have native support for XRANDR.
– Drav Sloan
Aug 5 '15 at 22:00
Also if memory serves I got more information from
adb logcat
– Drav Sloan
Aug 5 '15 at 22:05
Also if memory serves I got more information from
adb logcat
– Drav Sloan
Aug 5 '15 at 22:05
huh. i haven't heard of
xrandr
before, but a quick search seems to show that at least tigervnc
should support it. also adb logcat
won't show me any data since the emulator never actually starts.– will_
Aug 5 '15 at 22:29
huh. i haven't heard of
xrandr
before, but a quick search seems to show that at least tigervnc
should support it. also adb logcat
won't show me any data since the emulator never actually starts.– will_
Aug 5 '15 at 22:29
add a comment |
1 Answer
1
active
oldest
votes
in the end, i pretty much got it running by using nomachine. here's what i did:
- download the current
.tar.gz
from nomachine.com cd /usr
sudo tar xvzf nomachine*.tar.gz
sudo /usr/NX/nxserver --install fedora
<-- adding fedora here overrides the "linux is not a supported operating system" message.sudo /usr/NX/scripts/vgl/vglserver_config -config +s +t +f
- in
/usr/NX/etc/node.cfg
setEnableVirtualGLSupport 1
- reboot
- panic a little because now (a) my client's nomachine won't acknowledge the server's desktop and (b) the server's desktop won't load on startup. if i run
startx
i receive an error message about mate-session, which i'm not even using. - in
~/.xinitrc
i setDEFAULT_SESSION=startxfce4
. - reboot
- the desktop comes up fine, but when i connect from the client i receive this error from nomachine "no available sessions on this server".
sudo /usr/NX/bin/nxserver --restart
and now it works. the emulator comes up and is highly responsive (yay!).
after rebooting a couple times, i'm having these issues:
- the desktop doesn't start and i have to run
startx
from the local terminal on the server. that's annoying if i'm remote. - i have to restart the nxserver 2 out of 3 times that i reboot.
- when i'm remoted in, the local desktop is open - so i need to put the mouse & keyboard under the desk so people don't accidentally type into my session. also if you turn on the monitor you can see what i'm doing. (or see what i'm not doing, which is probably worse, ha!)
i hope this helps someone!
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f220431%2fcant-launch-android-emulator-while-logged-in-over-vnc%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
in the end, i pretty much got it running by using nomachine. here's what i did:
- download the current
.tar.gz
from nomachine.com cd /usr
sudo tar xvzf nomachine*.tar.gz
sudo /usr/NX/nxserver --install fedora
<-- adding fedora here overrides the "linux is not a supported operating system" message.sudo /usr/NX/scripts/vgl/vglserver_config -config +s +t +f
- in
/usr/NX/etc/node.cfg
setEnableVirtualGLSupport 1
- reboot
- panic a little because now (a) my client's nomachine won't acknowledge the server's desktop and (b) the server's desktop won't load on startup. if i run
startx
i receive an error message about mate-session, which i'm not even using. - in
~/.xinitrc
i setDEFAULT_SESSION=startxfce4
. - reboot
- the desktop comes up fine, but when i connect from the client i receive this error from nomachine "no available sessions on this server".
sudo /usr/NX/bin/nxserver --restart
and now it works. the emulator comes up and is highly responsive (yay!).
after rebooting a couple times, i'm having these issues:
- the desktop doesn't start and i have to run
startx
from the local terminal on the server. that's annoying if i'm remote. - i have to restart the nxserver 2 out of 3 times that i reboot.
- when i'm remoted in, the local desktop is open - so i need to put the mouse & keyboard under the desk so people don't accidentally type into my session. also if you turn on the monitor you can see what i'm doing. (or see what i'm not doing, which is probably worse, ha!)
i hope this helps someone!
add a comment |
in the end, i pretty much got it running by using nomachine. here's what i did:
- download the current
.tar.gz
from nomachine.com cd /usr
sudo tar xvzf nomachine*.tar.gz
sudo /usr/NX/nxserver --install fedora
<-- adding fedora here overrides the "linux is not a supported operating system" message.sudo /usr/NX/scripts/vgl/vglserver_config -config +s +t +f
- in
/usr/NX/etc/node.cfg
setEnableVirtualGLSupport 1
- reboot
- panic a little because now (a) my client's nomachine won't acknowledge the server's desktop and (b) the server's desktop won't load on startup. if i run
startx
i receive an error message about mate-session, which i'm not even using. - in
~/.xinitrc
i setDEFAULT_SESSION=startxfce4
. - reboot
- the desktop comes up fine, but when i connect from the client i receive this error from nomachine "no available sessions on this server".
sudo /usr/NX/bin/nxserver --restart
and now it works. the emulator comes up and is highly responsive (yay!).
after rebooting a couple times, i'm having these issues:
- the desktop doesn't start and i have to run
startx
from the local terminal on the server. that's annoying if i'm remote. - i have to restart the nxserver 2 out of 3 times that i reboot.
- when i'm remoted in, the local desktop is open - so i need to put the mouse & keyboard under the desk so people don't accidentally type into my session. also if you turn on the monitor you can see what i'm doing. (or see what i'm not doing, which is probably worse, ha!)
i hope this helps someone!
add a comment |
in the end, i pretty much got it running by using nomachine. here's what i did:
- download the current
.tar.gz
from nomachine.com cd /usr
sudo tar xvzf nomachine*.tar.gz
sudo /usr/NX/nxserver --install fedora
<-- adding fedora here overrides the "linux is not a supported operating system" message.sudo /usr/NX/scripts/vgl/vglserver_config -config +s +t +f
- in
/usr/NX/etc/node.cfg
setEnableVirtualGLSupport 1
- reboot
- panic a little because now (a) my client's nomachine won't acknowledge the server's desktop and (b) the server's desktop won't load on startup. if i run
startx
i receive an error message about mate-session, which i'm not even using. - in
~/.xinitrc
i setDEFAULT_SESSION=startxfce4
. - reboot
- the desktop comes up fine, but when i connect from the client i receive this error from nomachine "no available sessions on this server".
sudo /usr/NX/bin/nxserver --restart
and now it works. the emulator comes up and is highly responsive (yay!).
after rebooting a couple times, i'm having these issues:
- the desktop doesn't start and i have to run
startx
from the local terminal on the server. that's annoying if i'm remote. - i have to restart the nxserver 2 out of 3 times that i reboot.
- when i'm remoted in, the local desktop is open - so i need to put the mouse & keyboard under the desk so people don't accidentally type into my session. also if you turn on the monitor you can see what i'm doing. (or see what i'm not doing, which is probably worse, ha!)
i hope this helps someone!
in the end, i pretty much got it running by using nomachine. here's what i did:
- download the current
.tar.gz
from nomachine.com cd /usr
sudo tar xvzf nomachine*.tar.gz
sudo /usr/NX/nxserver --install fedora
<-- adding fedora here overrides the "linux is not a supported operating system" message.sudo /usr/NX/scripts/vgl/vglserver_config -config +s +t +f
- in
/usr/NX/etc/node.cfg
setEnableVirtualGLSupport 1
- reboot
- panic a little because now (a) my client's nomachine won't acknowledge the server's desktop and (b) the server's desktop won't load on startup. if i run
startx
i receive an error message about mate-session, which i'm not even using. - in
~/.xinitrc
i setDEFAULT_SESSION=startxfce4
. - reboot
- the desktop comes up fine, but when i connect from the client i receive this error from nomachine "no available sessions on this server".
sudo /usr/NX/bin/nxserver --restart
and now it works. the emulator comes up and is highly responsive (yay!).
after rebooting a couple times, i'm having these issues:
- the desktop doesn't start and i have to run
startx
from the local terminal on the server. that's annoying if i'm remote. - i have to restart the nxserver 2 out of 3 times that i reboot.
- when i'm remoted in, the local desktop is open - so i need to put the mouse & keyboard under the desk so people don't accidentally type into my session. also if you turn on the monitor you can see what i'm doing. (or see what i'm not doing, which is probably worse, ha!)
i hope this helps someone!
answered Aug 12 '15 at 22:23
will_will_
563
563
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f220431%2fcant-launch-android-emulator-while-logged-in-over-vnc%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
When I tried running the emulator inside vnc it failed, I can't remember the exact reason why it failed - but I have a vague recollection of it being that VNC does not have native support for XRANDR.
– Drav Sloan
Aug 5 '15 at 22:00
Also if memory serves I got more information from
adb logcat
– Drav Sloan
Aug 5 '15 at 22:05
huh. i haven't heard of
xrandr
before, but a quick search seems to show that at leasttigervnc
should support it. alsoadb logcat
won't show me any data since the emulator never actually starts.– will_
Aug 5 '15 at 22:29