`DISPLAY=:1 firefox` within a LXC to a vncserver [kinda-solved]

Setup: On my host machine, I have a vncserver running in on port 5901.  I also have a linux container running.
Goal: Run a command in a linux container and have it display a GUI program in the vncserver.
What works:
* From the host, open a terminal and run `DISPLAY=:1 firefox` and a firefox loads inside the vncserver.
* From the container (ssh or lxc-attach), run `DISPLAY=:0 firefox` and a firefox from the container loads inside my Xsession on the physical display.
What doesn't work:
* From the container (ssh or lxc-attach), run `DISPLAY=:1 firefox` which ends in this error:
No protocol specified
Error: cannot open display: :1
Now, it DOES work with this insecure hack so I know nothing is setup incorrectly in the container or the vncserver:
1) In the vncserver, run `xhost +`
2) From the container (ssh or lxc-attach), run `DISPLAY=:1 firefox` and a firefox from the container loads inside my vncserver.
So what am I doing incorrectly?
Last edited by graysky (2015-04-24 19:16:49)

If it works after you do 'xhost +' in the vncserver then that points to an authentication issue. Something less insecure would be 'xhost +local' or you could try 'xhost +si:hostname:lxc_hostname' where lxc_hostname is the hostname configured inside the container (not sure if this will work though; I have zero experience with lxc so I don't know if this applies). There is also the option of restricting by username but that should be a local username I suppose, xhost's man page is a bit terse on this.
I suspect you are going to be pulling your hair trying to sort this out the way you want but it should be possible, get yourself enough cookies and coffee and dive into the man pages. Some googling and lots of trial and error will be needed.

Similar Messages

  • New favicon will not display in Firefox, but does display in Safari

    I am working on a new website and uploaded the favicon.ico into the root folder (Go Daddy). The favicon appears when I use Safari, not does not appear in Firefox... I have a mac OSX version 10.5 I have cleared the history and cache too. Any thoughts?

    I have this problem too. I've just loaded my favicon.ico into my root folder and it shows next to the site url in latest Safari 5.0.5, but not in Firefox 3.6.17 - neither next to the site url nor on the page name tab.
    Firefox also does not show the favicon in the Tools > Page Info > Media tab, although this does list just three of the many jpgs and pngs within its folders. I've just added the favicon.ico to the folder where it does see a jpg and png, but no joy, still not displayed. See attached png.
    How do I overcome this problem? Is there a plugin that resolves this issue? It would be nice to have some color in the page name tabs. Many sites, such as this one, do have their favicons displayed by Firefox...

  • Mov files don't display in firefox

    mov files do not display in Firefox....what's the fix?

    Apologies Old Toad, but you appear to have misread the issue. This issue refers to Audio mov files, not movies.
    To recap: in iWeb when you drag an "Audio mov" file to a page it will not appear in Firefox, or Chrome, or IE. Note: we are a business so we build sites for final release versions only--FF5 is not business class code and can not be used for for customer projects.
    Here's the relevant line of code that shows up in the Page Source screen after publishing what turns out to be a blank page (we created a simple blank Test page containing only 1 audio file in mov format created in QT Pro):
    <script type="text/javascript"><!--
    writeMovie1();
    --></script>
    You can see by inspection that the writeMovie1(); command is within an ignore statement so the browser will not execute it. That is why the audio controls do not show and why the page is blank.
    Here is a shot of the iWeb layout page:
    In FF, Chrome, IE, the controls will not render because the command is being ignored by the browser--a bug in iWeb. In Safari, it  renders just fine but you will read in previous versions that Safari had the same issue. Hence, the "rigging" claim.
    We'd appreciate your best shot at a resolution--and save the sarcasm...we can't do anything with that.

  • Newly created images will not display in Firefox 8 for Mac. Same images appear in other browsers. Why?

    1. Specific new images are uploaded but will not display in Firefox 8 on my Mac with OS 10.6.8. (Does appear in other browsers, e.g., Chrome and Opera, and appears on Firefox 8 for PC.) Also, other images on the page display.
    2. I have cleared cache, cookies, etc., in Recent History, and restarted both application and computer.
    3. I've tried creating GIF, JPG and PNG, but none show on the page in Firefox on my Mac. I can see the offending image in other browsers such as Chrome on the same computer, and on Firefox on PC. Offending pages are in both PHP and HTML: http://www.brookfieldcivic.org/advertisers.php and http://www.brookfieldcivic.org/advertising_freedom_montessori.html
    Image links: http://www.brookfieldcivic.org/images/advertisers/freedom.png and http://www.brookfieldcivic.org/images/advertisers/Freedom_Montessori_bizcard.jpg

    You can use these steps to check if images are blocked:
    *Open the web page that has the images missing in a browser tab.
    *Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    *Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    *Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    *Select the first image link and scroll down through the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

  • Need help in displaying a feed within my flex app

    Hello guys,
    I was hoping that someone can push me in the right direction. I am looking to display our feed within our Flex Application. I am using some of the sample from tour de flex
    This is what I have so far:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx"
         width="960" height="850">
         <fx:Script>
         <![CDATA[
              import flashx.textLayout.conversion.TextConverter;
              import flashx.textLayout.elements.TextFlow;
              import spark.utils.TextFlowUtil;
              XML.ignoreWhitespace = false;
         ]]>
         </fx:Script>
         <fx:Style>
              @namespace s "library://ns.adobe.com/flex/spark";
              @namespace mx "library://ns.adobe.com/flex/mx";
              @namespace components "components.*";
              s|WindowedApplication {
                   background-color:#000000;
                   background-alpha:"0.9";
              s|ButtonBar s|ButtonBarButton:upAndSelected,
              s|ButtonBar s|ButtonBarButton:overAndSelected,
              s|ButtonBar s|ButtonBarButton:downAndSelected,
              s|ButtonBar s|ButtonBarButton:disabledAndSelected {
                   chromeColor: #00529c;
                   color: #FFFFFF;
              s|ButtonBar {
                   chromeColor: #053867;
                   color: #FFFFFF;
         </fx:Style>
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
              <!--<s:HTTPService id="srv" url="http://feeds.feedburner.com/standforisrael/iWIn?format=xml" />-->
              <fx:XML id="srv" source="http://feeds.feedburner.com/standforisrael/iWIn?format=xml" />
         </fx:Declarations>
         <s:ButtonBar dataProvider="{myViewStack}" y="175" height="35" width="700" />
         <mx:ViewStack id="myViewStack" borderStyle="none" x="0" y="209" width="700" height="500">
              <s:NavigatorContent id="home" label="Home">
              </s:NavigatorContent>
              <s:NavigatorContent id="about" label="About Us">
              </s:NavigatorContent>
              <s:NavigatorContent id="rabbi" label="Rabbi Eckstein">
              </s:NavigatorContent>
              <s:NavigatorContent id="rabbiCom" label="Rabbi's Commentary">
              </s:NavigatorContent>
              <s:NavigatorContent id="programs" label="Our Blog">
                   <s:RichText id="rt5" width="280"
                        textFlow="{TextFlowUtil.importFromXML(srv)}" />
              </s:NavigatorContent>
         </mx:ViewStack>
    </s:WindowedApplication>
    Now when I run this I get a prompt that is telling me that if the program is already running to stop the program... I have no idea what program it is that i'm running that would prompt that type of dialogue box.
    I also get these errors:
    Unexpected processing instruction encountered and will be ignored. Found: type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css" IFCJ.mxml /IFCJ/src Unknown Flex Problem
    Unexpected processing instruction encountered and will be ignored. Found: type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl" IFCJ.mxml /IFCJ/src Unknown Flex Problem
    Is there anything that I am not doing right here?
    Any help would really be appreciated,
    Thank You

    I did try HTTPService but the problem that I was seeing was that I would need to push the information into a datagrid and that really doesn't help me witth presentation of the blog posts.
    What if I create a custom component that takes the RSS feed and parses it into sections like so:
    Title
    Description
    Link
    Where lets say the title is like so:
    [Bindable]
                public var title:String; <-- this is where I get stuck
    <s:Label x="0" y="80"
            text="{title}"/>
    I would like to also have that title wrapped in a url so that when the person is looking at our RSS they can click either the title or the read more link
    What else can i do?

  • Albums won't display in Firefox

    I know this is kind of an old problem, but I can't seem to resolve it. I'm running iweb 2.0.4, and my photo galleries will not display in Firefox 3.
    I tried downloading Fix iweb, but it won't recognize my software. It says "This patch will only run on version 2.0.3."
    I'm not sure what else to do. I've republished the site after making minor tweaks, hoping that since i'm using 2.0.4, the problem will be fixed. But nothing. No pics.
    The site is sethraab.com
    To view the section in question, visit "The Work" section and then click on the part that takes you to print/direct mail/posters/outdoor.
    Any help would be SUPER appreciated. I really need this site functional again.
    Thank you so much.
    -S

    What's the URL of your site and where are you hosting the site? iWeb 2 and Firefox did have problems but most were with the "enhancements" like frames, drop shadow and reflections.
    When you republish the site try using the File-Publish Full site or whatever it's called. Don't use the publish changes option. Doing a full publish may jump start the albums.
    OT

  • Image does not appear in Internet Explorer but displays in Firefox

    Hi All,
    I have an image in my page in the header section.
    The problem is that the image displays in Firefox but does not display in Internet Explorer.
    Thanks in advance.
    Best Regards
    Arif Khadas
    Application Express 4.0.1.00.03
    Edited by: Arif Khadas on Feb 13, 2011 2:29 PM

    Hi Jari,
    Thanks for the reply.
    This is the code that is in the Region Source of the Header Section :
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr width="100%" align="left" valign="top">
      <td align="right" valign="top">
       <a href="http://www.bridgesinfotech.com/"
        <img src="#APP_IMAGES#header.jpg" alt="Bridges Information Technology" WIDTH="1000" HEIGHT="125">
       </a>
      </td>
    </tr>
    </table>

  • Airtight Gallery Not Displaying in Firefox

    I am using Lightroom to generate the Autoview gallery from Airtight and the Lightroom export facility to drop it into my Dreamweaver defined site. The gallery works fine in Internet Explorer but does not display in Firefox. I have tried hardcoding the entire url and file structure string into the param name field of the object clause - didn't fix it. I'm using most if not all of the defaults for the Dreamweaver and Lightroom paramaters. I have found very few postings on this in any of the Adobe, Airtight, and Firefox forums I have checked. There were a few that referenced making sure that hot links were not turned on at the web service. In my case, they are not - that is not the problem. Can anyone offer any help? 

    I would check the differences between the version that targets IE browsers versus all other browsers since dreamweaver uses code that targets one or the other, and make sure they have the appropriate information for both.  Next I would check the css for that area.

  • Image code doesn't display in Firefox beta 26

    FYI I noticed a difference between browsers on this Test page: http://manotick.net/test.htm
    Both images display in Firefox 25 + Windows7 and Chrome 30.0 + Android 4.2.1
    Top images does not display in FirefoxBeta 26 + Android 4.2.1

    I don't see any difference between Firefox desktop and Firefox for Android on 25 through 28. I don't notice any missing images.
    If possible would you provide a screenshot. On many newer Android phones one can capture the screen by pressing volume down and the power button at the same time.
    Then attach that picture to this post by using the browse button below the Add images: line.

  • IPAD3/IPAD2 :PDF files/ attachments  sent in an email  displayed inline ( embedded within the main email) in the message text on both my Ipad2 and Ipad three, however the same email displayed the PDF File icons/ attachment on both my Iphone and a friend's

    IPAD3/IPAD2 :PDF files/ attachments  sent in an email  displayed inline ( embedded within the main email) in the message text on both my Ipad2 and Ipad three, however the same email displayed the PDF File icons/ attachment on both my Iphone and a friend’s PC. How do i get both my IPAD devices to display the PDF icons/attachments? Bearing in mind if i open the same email over the internet the PDF Icons/attachments display OK!
    Has anyone come across this? Your advice/help would be most appreciated

    This happens to me all the time.
    If is a one page PDF it seems as though it comes over already open and inline in the body of the email. Multiple page PDF files show as the PDF icon.
    I can't find any official documentation of this - other than based on my own experience with PDF attachments in my various email accounts.
    Message was edited by: Demo

  • RH8 WebHelp not displaying in Firefox

    We have just upgraded to RH8 (from RH6) and one of our WebHelp projects that is available on our website will not display in Firefox. It is OK in IE and Safari.  All we see is  .  We can view individual pages using the page url but not the project as a whole.
    WebHelp that was generated using RH6 and is still on our website is still displayed correctly.
    Has anyone got any suggestions.  Obviously we cannot roll back to RH6.
    Thanks
    Pauline

    I experienced the same problem. It is because your server is not configured to handle UTF 8 encoding. Once my webhost fixed that, it was OK.
    This is what he advised me
    I would therefore conclude that the solution to this problem (on Linux systems running Apache) is to add the AddDefaultCharset utf-8 directive to either the Apache config or the site .htaccess file. The advantage of the latter is that it only affects individual sites. The default Apache character set is taken from the locale file on Linux and defaults to iso-8859-1. It is the conflict between the Apache header with iso-8859-1 and the page character set of utf-8 that obviously causes Firefox a problem.
    In a forum post Chrissy_Tissy added
    My machine is Windows, but this fix still worked  - some notes about making the fix visible:
    1. Do the fix itself (httpd.conf: AddDefaultCharset utf-8).
    2. Restart the box to apply the fix.
    3. Once the box is restarted, clear your cache in FireFox to make sure you don't continue to see the cached file.
    Once all this is done you will see the output content as expected.
    See www.grainge.org for RoboHelp and Authoring tips

  • Flash files not displaying in Firefox, Safari, and Opera. Most recent Shockwave installed, private b

    Flash files not displaying in Firefox, Safari, and Opera. Most recent Shockwave installed, private browsing active in Firefox?  Works perfectly in Chrome and Internet Explorer.  HELP!!!!

    I suppose it would have helped if you knew what it was supposed to look like!   I'm using Shockwave Flash 11.7.700.169  and the version of Firefox I'm on is 20.0
    When you see it in Firefox  - do the thumbnail populate the grid?  See attached populated and un-populated.
    Populated grid is with Chrome.
    Thanks!
    Thanks in advance!

  • No images or form elements are displaying in Firefox, used to work but not after an update

    Virtually no images are displaying in Firefox, mainly background images - but on every website. Also, form elements are often not visible. Didn't happen before; new Vaio laptop running windows 7 - it can't all be bad coding. Yes, load images automatically is checked etc.
    == This happened ==
    Every time Firefox opened
    == After some update of the software

    See:
    [[Website colors are wrong]]
    [[Websites look wrong]]

  • The padlock icon shown when entering secure sites using Firefox 3.x is not displayed using Firefox 4. How can this be restored? Is it indicating another problem?

    The padlock icon shown when entering secure sites using Firefox 3.x is not displayed using Firefox 4.

    It has been changed. Please read this article:
    https://support.mozilla.com/en-US/kb/Site%20Identity%20Button
    You can use this add-on to get the classic icon back:
    https://addons.mozilla.org/en-US/firefox/addon/padlock-icon/

  • I cannot print pages displayed by firefox, the printing just hangs when I go to File--- Print and press print.

    If I want to print a page displayed by Firefox, I do the usual, I go to file, choose Print and press Print on the print window. Then the printer just hang, nothing happens.
    No problem with MSN, Word, WordPerfect, Yahoo, etc
    Thanks for your help.

    There's no "pages" of information, it's one long page of preferences.
    '''print.printer''' will be listed multiple times, there are like 3 dozen or more preferences for each printer. If you have more than one printer there will be groups of prefs for each printer.
    You can try resetting only '''print.print_printer''' and then restart Firefox, and see if that solves your problem. But chances are that you may need to reset every pref for that printer.
    Also make sure that you don't have multiples of the same prefs for that printer. It is very possible that you may find duplicates like this or similar. <br />
    '''print.printer_HP Officejet 6500_Series(2).print_evenpages'''
    (2) or (3) in a pref means you have multiple prefs for the same printer ''(usually caused by installing the print drivers multiple times without uninstalling the old drivers first)'', and that can cause problems with Firefox; the "printer" driver you select probably ain't gonna be the one that is really "installed". If you see something like that, you will definitely need to reset every pref for that printer; the duplicates will be gone after the restart and won't return after you use your printer the first time after the reset.

Maybe you are looking for

  • Cannot Delete Template - 3.0.2

    Hi All, I've saved a 2.2.2 guest into a template and imported that into 3.0.2. The import process completed successfully though I noticed under the message column that the file copy process was: Copying file 1/1, 12,676 MB/12,885 MB I've imported oth

  • Unable to connect SQL Developer 4.0.2 to Oracle REST Data Services 2.0.7 (Apex Listener)

    Background 1. Weblogic 10.3.6.0 running on Oracle Linux 6.5 with Oracle JRockit(R) (build R28.2.3-13-149708-1.6.0_31-20120327-1523-linux-x86_64, compiled mode) 2. Oracle Apex 4.2.1 3. Apex Listener 1.1.3 4. Apex and Apex Listener running on the Weblo

  • Account Restricted for purchases. pls help

    Hi I got this message yesterday as I changed my password and updated my credit card details for my skype number. I am expecting important calls and my number is not working !!! How can i get this resolved ASAP? You are currently restricted from purch

  • ORA-12096: error in materialized view log on a table

    Hi while updating a table getting below error ORA-12096: error in materialized view log on "FII"."FII_GL_JE_SUMMARY_B" What might be the problem. Thanks.

  • View Filter

    I need help on a view filter. I tried it via view UI setting but does not work.  Then I am working in designer with the following code. I got an error when I open it in browser "Cannot complete this action. Please try again.". I appreciate if someone