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;








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!










share|improve this question






















  • 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 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

















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!










share|improve this question






















  • 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 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













0












0








0


1






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!










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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 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

















  • 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 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
















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










1 Answer
1






active

oldest

votes


















0














in the end, i pretty much got it running by using nomachine. here's what i did:



  1. download the current .tar.gz from nomachine.com

  2. cd /usr

  3. sudo tar xvzf nomachine*.tar.gz


  4. sudo /usr/NX/nxserver --install fedora <-- adding fedora here overrides the "linux is not a supported operating system" message.

  5. sudo /usr/NX/scripts/vgl/vglserver_config -config +s +t +f

  6. in /usr/NX/etc/node.cfg set EnableVirtualGLSupport 1

  7. reboot

  8. 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.

  9. in ~/.xinitrc i set DEFAULT_SESSION=startxfce4.

  10. reboot

  11. the desktop comes up fine, but when i connect from the client i receive this error from nomachine "no available sessions on this server".

  12. 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!






share|improve this answer























    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    in the end, i pretty much got it running by using nomachine. here's what i did:



    1. download the current .tar.gz from nomachine.com

    2. cd /usr

    3. sudo tar xvzf nomachine*.tar.gz


    4. sudo /usr/NX/nxserver --install fedora <-- adding fedora here overrides the "linux is not a supported operating system" message.

    5. sudo /usr/NX/scripts/vgl/vglserver_config -config +s +t +f

    6. in /usr/NX/etc/node.cfg set EnableVirtualGLSupport 1

    7. reboot

    8. 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.

    9. in ~/.xinitrc i set DEFAULT_SESSION=startxfce4.

    10. reboot

    11. the desktop comes up fine, but when i connect from the client i receive this error from nomachine "no available sessions on this server".

    12. 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!






    share|improve this answer



























      0














      in the end, i pretty much got it running by using nomachine. here's what i did:



      1. download the current .tar.gz from nomachine.com

      2. cd /usr

      3. sudo tar xvzf nomachine*.tar.gz


      4. sudo /usr/NX/nxserver --install fedora <-- adding fedora here overrides the "linux is not a supported operating system" message.

      5. sudo /usr/NX/scripts/vgl/vglserver_config -config +s +t +f

      6. in /usr/NX/etc/node.cfg set EnableVirtualGLSupport 1

      7. reboot

      8. 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.

      9. in ~/.xinitrc i set DEFAULT_SESSION=startxfce4.

      10. reboot

      11. the desktop comes up fine, but when i connect from the client i receive this error from nomachine "no available sessions on this server".

      12. 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!






      share|improve this answer

























        0












        0








        0







        in the end, i pretty much got it running by using nomachine. here's what i did:



        1. download the current .tar.gz from nomachine.com

        2. cd /usr

        3. sudo tar xvzf nomachine*.tar.gz


        4. sudo /usr/NX/nxserver --install fedora <-- adding fedora here overrides the "linux is not a supported operating system" message.

        5. sudo /usr/NX/scripts/vgl/vglserver_config -config +s +t +f

        6. in /usr/NX/etc/node.cfg set EnableVirtualGLSupport 1

        7. reboot

        8. 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.

        9. in ~/.xinitrc i set DEFAULT_SESSION=startxfce4.

        10. reboot

        11. the desktop comes up fine, but when i connect from the client i receive this error from nomachine "no available sessions on this server".

        12. 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!






        share|improve this answer













        in the end, i pretty much got it running by using nomachine. here's what i did:



        1. download the current .tar.gz from nomachine.com

        2. cd /usr

        3. sudo tar xvzf nomachine*.tar.gz


        4. sudo /usr/NX/nxserver --install fedora <-- adding fedora here overrides the "linux is not a supported operating system" message.

        5. sudo /usr/NX/scripts/vgl/vglserver_config -config +s +t +f

        6. in /usr/NX/etc/node.cfg set EnableVirtualGLSupport 1

        7. reboot

        8. 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.

        9. in ~/.xinitrc i set DEFAULT_SESSION=startxfce4.

        10. reboot

        11. the desktop comes up fine, but when i connect from the client i receive this error from nomachine "no available sessions on this server".

        12. 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!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 12 '15 at 22:23









        will_will_

        563




        563



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

            Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

            Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.