How to start a second X11 display from within X ?

For a game i am playing (freespace2 open) i would like to run it on a second X11 virtual display.
Following Fs2_open_on_Linux#fs2_open_freezes_X i am able to start second display with xinit -- :1 , but this only works from console.
Also the method used there (copying the mit-magic-cookie) doesn't appear to be very user-friendly.
So i have 2 questions :
is there a way to give a user permanent permission to start a second display ?
can starting a second display be done from within X ?

Lone_Wolf wrote:
I've checked and the change to xauth appears to be permanent as it was still present after a reboot and a cold start.
I use KDE as wm/de , but start it from console with startx.
I have no options for starting another session, possibly because i don't use kdm or another login manager.
startx works from within kde , xinit works from console.
Unfortunately fs2_open crashes with a segfault after switching back and forth between display 0 and display 1 a few times.
When running fs_open on display 0 it never crashes.
Sofar i've used startx -- :1 , xinit -- :1 and xinit /usr/bin/fs2-open -- :1 , and they all give the same problem.
Thanks for the tips, i'll check them out.
If you using kde, you could make life alot easier if you need multiple xsession by running kdm...
I mean my system boots 21 second including starting KDM starting from xinittab... if I add it as a deamon in rc.conf it takes 36 seconds

Similar Messages

  • Starting an external .exe application from within Visual Basic

    How do I start an external .exe appliction from within Visual Basic. for example start Internet Explorer or FireFox?
    Thanks in advance
    Big Buzzard
    Philippe de Marchin

    How do I start an external .exe appliction from within Visual Basic. for example start Internet Explorer or FireFox?
    If you know the path and filename of the application, or if it is an application that the operating system will find for you, then you can pass the application details to the Start method of the Process class.   If you don't know the path and filename
    of the application - for instance you want to start the user's web browser but it might be IE or Firefox or something else, then the argument to the Start method can be of any file type for which the extension has been associated with an application installed
    on the system. 
    https://msdn.microsoft.com/en-us/library/53ezey2s(v=vs.110).aspx

  • How to drive a 30" Cinema Display from a new 27" iMac?

    How do I drive a 30" Cinema Display from a new 27" iMac that has no obvious video out port? There are lots of ports, but nothing resembling or identified as a video out port. Is the very small hole in the cabinet by the power in port the thing I'm looking for? If so, the power/video adapter for the Cinema will not work as is. Do I need a Mini DisplayPort to VGA Adapter? I am completely uncertain about this, and could use solid advice. The AppleCare tech I spoke with today seemed not to have a clue. He said he would get back with me on this. He didn't.

    Overview
    Every Mac with a Mini DisplayPort allows you to connect an external display or projector using an adapter. You can use an external display as your main workspace or to extend your desktop, or you can work in mirrored mode with a projector so you can view what your audience sees.
    Use the Mini DisplayPort to Dual-Link DVI Adapter to connect your Mac to a 30-inch display that includes a DVI connector, such as the 30-inch Apple Cinema Display HD, and enjoy the ultimate widescreen canvas with a resolution of 2560 by 1600 pixels.
    Compatible only with Mac computers with Mini DisplayPort and Mac OS X v10.5.6 or later.

  • How to start a second labview programme automatically when first programme is aborted ?

    Hi,
    I have two independent labview programme. I want to run one programme at first. Second programme should start automatically if first programme is aborted by clicking abort button. Could you please help me in this regard.
    Thanks

    Would it not be better to close the meters when you close the application and have your application exit gracefully rather than having it start another one?
    (You can call an executable from within LabVIEW using the System Exec VI but I don't think you need that here)
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • How to start a Web GUI program from a Web Dynpro application

    I know the program name , and it is a Web GUI program ,is anybody know how to start it from a Web Dynpro application

    hi,
    I use the following program to call a SAP GUI program :
    DATA: l_componentcontroller TYPE REF TO ig_componentcontroller.
      DATA: l_api_componentcontroller type ref to if_wd_component.
      DATA: l_sapgui_manager type ref to cl_wdr_sapgui_integration.
      DATA: lt_parameters    TYPE wdr_name_value_list.
      l_componentcontroller = wd_this->get_componentcontroller_ctr( ).
      l_api_componentcontroller = l_componentcontroller->wd_get_api( ).
      l_sapgui_manager = l_api_componentcontroller->get_sapgui_manager( ).
      IF l_sapgui_manager IS NOT INITIAL.
        l_sapgui_manager->fire( EXPORTING name = 'PROGRAM_NAME 'parameters = lt_parameters ).
    But the l_sapgui_manager is always initial , what can I do ?
    ENDIF.

  • How can I execute an external program from within a button's event handler?

    I am using Tomcat ApacheTomcat 6.0.16 with Netbeans 6.1 (with the latest JDK/J2EE)
    I need to execute external programs from an event handler for a button on a JSF page (the program is compiled, and extremely fast compared both to plain java and especially stored procedures written in SQL).
    I tried what I'd do in a standalone program (as shown in the appended code), but it didn't work. Instead I received text saying the program couldn't be found. This error message comes even if I try the Windows command "dir". I thought with 'dir' I'd at least get the contents of the current working directory. :-(
    I can probably get by with cgi on Apache's httpd server (or, I understand tomcat supports cgi, but I have yet to get that to work either), but whatever I do I need to be able to do it from within the button's event handler. And if I resort to cgi, I must be able to maintain session jumping from one server to the other and back.
    So, then, how can I do this?
    Thanks
    Ted
    NB: The programs that I need to run do NOT take input from the user. Rather, my code in the web application processes user selections from selection controls, and a couple field controls, sanitizes the inoputs and places clean, safe data in a MySQL database, and then the external program I need to run gets safe data from the database, does some heavy duty number crunching, and puts the output data into the database. They are well insulated from mischeif.
    NB: In the following array_function_test.pl was placed in the same folder as the web application's jsp pages, (and I'd tried WEB-INF - with the same result), and I DID see the file in the application's war file.
            try {
                java.lang.ProcessBuilder pn = new java.lang.ProcessBuilder("array_function_test.pl");
                //pn.directory(new java.io.File("K:\\work"));
                java.lang.Process pr = pn.start();
                java.io.BufferedInputStream bis = (java.io.BufferedInputStream)pr.getInputStream();
                String tmp = new String("");
                byte b[] = new byte[1000];
                int i = 0;
                while (i != -1) {
                    bis.read(b);
                    tmp += new String(b);
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + tmp);
            } catch (java.io.IOException ex) {
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + ex.getMessage());
            }

    Hi Fonsi!
    One way to execute an external program is to use the System Exec.vi. You find it in the functions pallet under Communication.
    /Thomas

  • How can I call a java class from within my program?

    I was wondering if there's a platform independent way to call a java class from my program.

    Here's my scenario. I'm working on a platform independent, feature rich, object-oriented command prompt program. The way I'm designing it is that users can drop classes they write into my bin directory and gain access to the class through my program. For example, they drop a class named Network.class in the bin directory. They would type Network network at my command prompt and gain access to all the methods available in that class. They can then type system.echo network.ipaddress() at my prompt and get the system's ip address. I have it designed that there's a server running in the background and the clients connect to my port. Once connected the end-user can enter their user name and password and gain access to the system. When they type a command they actually call another java program which connects to my server using a seperate thread. They can then communicate back and forth. I have it set that everything has a process id and it's used to keep track of who called what program. Once the program is done it disconnects and closes. Rather than getting into the nitty gritty (I didn't want to get into heavy detail, I know how everything will work) I'm really interested in finding out how I can call a java program from my program. I don't want it to be part of the app in any way.

  • How to restrict the ordering of apps from within an app

    My grandkids somehow run up charges by ordering apps from within an app they are using usually games  without even knowing they are doing it. How do I restrict them from doing it?  And how do I get the charges to Itunes removed when this happens?

    You can go into settings, and restrictions and turn off 'in app purchases'
    You may also want to set your apple id from 'require after 15 minutes' to 'require immediately'
    As to getting the charges reversed you can contact the app developer. Maybe they will reverse the charges, but they don't have to. The terms of sale are that all sales are final.

  • How to get the RGB Working Space from within a Filter Plug-In?

    Within my Filter Plug-In I need to access the image's icc profile data. I know this can be accomplished with the according data structure 'iCCprofileData'. But what if there is no profile assigned to the image? Then iCCprofileData is NULL and the default should apply which is the 'RGB Working Space' (assuming the Plug-In works in RGB mode only, what it does). But how can I get to know what the 'RGB Working Space' is from within my Plug-In?

    As far as I know, the profile provided to the plugin API should never be NULL. If the image is not color managed, it still should have the working space profile in the ICCProfileData field.

  • How to get the edit channel link from within the channel?

    Following problem:
    I want to include a link to edit the settings of a channel in the channel contents. The link should be the same as the edit button on the frame of the channel container. Searching through the provider jsps I found that the edit link is created in single.jsp. The code I need seems to boil down to
    <dt:obtainContainer container="$JSPProvider">
      <dtsingle:singleContainerProvider>
      <dtpc:getStringProperty key="editContainerName" id="editContainerName" scope="request"/>
      <dt:getName id="SingleContainer" scope="request"/>
      <jx:declare id="editContainerName" type="java.lang.String"/>
      <jx:declare id="SingleContainer" type="java.lang.String"/>
        <dtsingle:obtainSelectedChannel>
    <A HREF="<dtpc:getDesktopURL/>?action=edit
    &provider=<%=editContainerName%>
    &targetprovider=<dt:getName/>
    &containerName=<%=SingleContainer%>"
    TARGET="_self"> EDIT! </A>
        </dtsingle:obtainSelectedChannel>
      </dtsingle:singleContainerProvider>
    </dt:obtainContainer>However I am unable to get that working in the channel, as I always receive a ProviderException on the line with
    <dt:obtainContainer container="$JSPProvider">
    What am I doing wrong, or is does the obtainContainer simply not work from within a channel?
    If anyone can help me out to get the edit link it would be greatly appreciated. Any hints and/or sample code would help alot.
    thanks!
    Message was edited by:
    obstler42

    Hi Detlev ,
    Thank you very very much . We could figure out how to get the URL and Driver information from there .I have rewarded the points also.
    Thanks
    Ravi
    Message was edited by: Ravi Krishnan

  • How to save CD files to disk from within Flash?

    Hi.
    Is there any way I can copy files from a swf in a CD ROM to
    users computer?
    Some kind of "save to..." from within flash... ?
    Maybe I can explain better what I need to do:
    I have an external .swf, loaded into an .EXE.
    In the .swf, I need to put buttons to downloads of wallpapers
    and stuff.
    This is where my troubles start...
    tks for your time.

    pedrosantos.dsgner wrote:
    > Hi.
    > Is there any way I can copy files from a swf in a CD ROM
    to users computer?
    > Some kind of "save to..." from within flash... ?
    >
    > Maybe I can explain better what I need to do:
    > I have an external .swf, loaded into an .EXE.
    > In the .swf, I need to put buttons to downloads of
    wallpapers and stuff.
    >
    try
    http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00002210.html
    or 3rd party tools like Jsystem from
    http://www.flashjester.com/?section=tricks_jtools_jsystem
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • How to get the Weblogic Server Id from within java code

    I would like to log which server (among a cluster) a certain job is running on. Is there a way to get the server id from within Java code (this code is in a session bean if that is relevant.)
    By server id I mean the "Name" column in the summary of servers on the weblogic console.
    Thanks,
    ken

    Use the two entries close to the bottom of the page: "list WebLogic
    MBeans:listMBeans.jsp
    display MBean attributes and operations:showMBean.jsp"
    Nils
    Anatoly wrote:
    >
    Cameron,
    That page has these items on it:
    which one do you think helps with my issue?
    Misc WebLogic examples
    LongRunningTask
    Execute tasks in parallel using WebLogic Execute Threads
    Weblogic stats (5.1)
    Reload Servlet(s) programmatically (5.1)
    Network classload from WebLogic:using reflection,or the launcher
    Weblogic 5.1 debugging properties
    Seppuku pattern readme
    Using dynamic proxies to intercept EJB invocations (6.1)
    list WebLogic MBeans:listMBeans.jsp
    display MBean attributes and operations:showMBean
    Thanks to Marcelo Caldas for filter by type option and nice UI!
    Using com.sun.jdmk.comm.HtmlAdaptorServer with WebLogic 6.1
    Cool
    EJBGen
    Dimitri
    back
    "Cameron Purdy" <[email protected]> wrote in message news:<3c7a745d$[email protected]>...
    JMX ... see http://dima.dhs.org/misc/ for some info on JMX in Weblogic.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Anatoly" <[email protected]> wrote in message
    news:[email protected]..
    Does anyone know who to get the managing server URL's port
    from within the EJB code running on Weblogic 6.1?
    The URL port is not default (not 7001), but when creating
    initial context, I am not specifying the URL in properties.
    Due to that, trying to the the PROVIDER_URL property from
    environment does not return anything.
    Appreciate any responses.
    -Anatoly
    ============================
    [email protected]

  • How can I call a LabVIEW executable from within another LabVIEW executable?

    I have a customer requirement for two LabVIEW executables. Based on their current setup, they need to run executable "A" or "B", both of which are under independent revision control. I have created a third "selection" executable that allows the operator to choose between one of the two, but I am receiving errors when I attempt to call a LabVIEW executable from within a LabVIEW executable using either the "System exec" VI or the "Run Application" VI. If I call a non-LabVIEW executable (such as Windows Explorer) everything works fine.

    > I have a customer requirement for two LabVIEW executables. Based on
    > their current setup, they need to run executable "A" or "B", both of
    > which are under independent revision control. I have created a third
    > "selection" executable that allows the operator to choose between one
    > of the two, but I am receiving errors when I attempt to call a LabVIEW
    > executable from within a LabVIEW executable using either the "System
    > exec" VI or the "Run Application" VI. If I call a non-LabVIEW
    > executable (such as Windows Explorer) everything works fine.
    As with the other poster, I suspect a path problem. You might try the
    path out in a shell window, and if it works, copy the complete absolute
    path to LV to see if that works. LV is basically passing the comma
    nd to
    the OS and doesn't even know what is in it, so you should be able to get
    it to work.
    The other poster commented on subpanels, which is a good suggestion, but
    without going to LV7, an EXE can have open more than one VI. You can
    use the VI Server and the Run method to fire up another top-level VI.
    The decision is whether you want both to be in unique processes.
    Greg McKaskle

  • How do I access BSD file tree from within Linux?

    I just installed PC-BSD 8.0 RC on an external USB HDD.  I went with the PC-BSD default partition layout, i.e. one primary partition for the entire PC-BSD slice, and 4 "partitions" within that slice, for /, swap, /usr and /var.
    In order to access the PC-BSD file tree from within Linux, I mount it as follows:
    mount -t ufs -o ufstype=ufs2,ro /dev/sdb1 /mnt/bsd
    But after executing this command I can only access the PC-BSD / , not /usr and /var , presumably because they reside on two BSD "partitions" (subslices) different from / .  Is there any way I can mount these (read-only) in Linux, too, or would I have to reinstall PC-BSD and opt for laying out the slice differently, i.e. specifying only / and swap in sdb1?
    Last edited by RobF (2010-02-13 11:55:39)

    Look at  /dev/sdb*  there should be more than just sdb1.  You would need to mount those to see which is which.  For ufs write support the default kernel needs to be recompiled with experimental enabled.

  • X11 DISPLAY from remote Unix host does not launch.

    X11 is coming up with some very strange behaviour.
    Launching X applications to display back on my Mac was working till just the last week or so. Now, for the most part, after setting up xhost on the Mac and settting the DISPLAY environment variable on the remote host.
    Launching xterm (for example). Results in can't open display"ip addr:0" and "error couldn't find per display information".
    But this does not happen in all cases. I have found one server where my display will route back.
    I created a new account on my Mac and tried to see if it would work in a fresh account. X display works now in my fresh account for all the nodes that I can't access in my "regular" account.
    I have removed my .Xauthority file and my .Xresoures file to see if anything in there was corrupting my ability to route the DISPLAY. This has had no affect.
    What other Mac OS X files would affect the characteristics of how X11 is working?
    Warren

    Hi Zoarre,
    > why doesn't -X work in tiger? isn't it more secure?
       Yes, the -Y option is very much less secure than the -X option. Unfortunately as you've noticed, this strict interpretation of "trusted" can be shall we say, inconvenient. You can read more about the X11 Security Extension Specification by downloading the PDF document from security.pdf.
       The use of the -Y option will cause all X11 apps that you forward to be treated as "trusted". In the X11 Security Extension Specification, this means that the application can be trusted to be harmless and thus that security may be lax. For instance, xclock only conveys the local time and this information can be compromised without serious risk. However, if you designate a forwarded word processor app as "trusted", you are saying that your keystrokes need not be closely guarded. If the app is specified as "untrusted" it is isolated, preventing the sharing of those keystrokes. Of course it's difficult for most apps to function in such isolation.
       Older versions of ssh were found to cause the client xauth vulnerability described in SSH client xauth Vulnerability. When they communicate the (usually MIT-MAGIC-COOKIE-1) cookie for your local XServer to the remote machine, it is placed in the remote machine's authorization cache for use by X11 apps to negotiate connections with your local XServer. Thus, if the remote machine's authorization cache is compromised, so is your XServer.
       To minimize the risk, when ssh connects with the -X option it sends an untrusted cookie to the remote machine so that X11 applications that obtain authorization with this cookie are marked as untrusted and restricted in what they can do. While this is safer, the X11 Security Extension Specification is in its infancy and many apps crash as a result of the limitations. Thus, as you've discovered, the -Y option is often necessary. However, it is less secure and should only be used when necessary!
    Gary
    ~~~~
       I have seen the Great Pretender and he is not what he seems.

Maybe you are looking for