element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Local Pi Display
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 20 replies
  • Subscribers 679 subscribers
  • Views 3558 views
  • Users 0 members are here
  • raspberry_pi
Related

Local Pi Display

Former Member
Former Member over 12 years ago

I have a model A Raspberry Pi and have been using it via a USB wireless adapter and Mint's Remote Desktop Protocol. 

 

I also have a Motorola Atrix docking station.  After I replaced my original cheap eBay HDMI cable with another cheap eBay HDMI cable, the Pi displays its boot messages and gets to the text log-in screen.  Unfortunately, the Pi doesn't see the Atrix keyboard/mouse so I can't log on.  I'm trying to fix this but because I am happy controlling the Pi remotely, I am more interested in using the Atrix display with RDP control.  So using the Atrix keyboard/touch pad isn't important.

 

Using RDP and the Pi terminal, I can get the Pi to display an X Desktop on its display by entering "sudo init 3".  While this is a step in the right direction now the Pi waits at a GUI log-in screen. 

 

I've tried multiple searches but it seems that any combination of "remote" "display" "local" "servel display" etc. just gives me results about using RDP (or SSH or VNC - all of which work for me).  I guess I'm not articulate enough to specify what I want.

 

Does any one know how to do this or at least can help me write a useful search question? 

 

One application is to use a Python program to monitor GPIO inputs and display them on the Pi.  A text display is acceptable but I prefer X Windows.

  • Sign in to reply
  • Cancel
Parents
  • blaineboswell
    blaineboswell over 12 years ago

    If I'm not understanding your question, please forgive me as I'm new to this but it sounded like an issue I've approached remotely connecting to UNIX servers for work. I prefer X Windows also. I haven't bought a Raspberry PI yet but I'm deeply interested.

     

    My solution after discussions with co-workers was to load Cygwin/X on my Windows desktop. It comes with a basic X Windows server and local xterm. I wrote a simple 1 line shell scripte called "open" in my Cygwin home directory.

     

    ssh -Y <user name>@$1;

     

    usage would be 'open 192.168.1.2' (IP or hostname of Raspberry Pi). Boom I get an xterm to my UNIX server, provide the PW and I'm in. The $DISPLAY variable is handled by Cygwin/X

     

    Sorry if I mis-understood.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to blaineboswell

    Blaine,

     

    I guess if I could explain my problem more clearly, Google would again be my friend.  And you'd know what I'm talking about.

     

    I am able to display the Pi's desktop on my Linux desktop computer using a variety of methods: RDP, SSH and VNC.  I can also control the Pi from the Linux computer. 

     

    When I'm doing this, the Atrix display is still in text mode and awaiting a local user to log in using a keyboard attached to the Pi.  The Pi (well, more accurately Linux) allows multiple indendent users.  As the RDP user I don't know how to log on for the local user.  And as the RDP user, I don't know how to display data on the Atrix through the Pi.  I'd like to have the Pi use the Atrix display to remotely run Python and display the results.  From my Linux desktop computer, I can control the Pi.  The only progress I've made so far has been that I've been able to switch the local user's display (the Atrix) to graphical mode.

     

    Assuming I understand your answer, I think that you have suggested a Windows version of what I've done via RDP.  Linux Mint provides a GUI interface (I use Remmina) that accomplishes what your shell script does so I use Remmina.  My Pi moves around in my DHCP table.  Sometime "ssh raspberrypi" works but sometimes the Pi isn't found.

     

    Dave

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mcb1
    mcb1 over 12 years ago in reply to Former Member

    My Pi moves around in my DHCP table.  Sometime "ssh raspberrypi" works but sometimes the Pi isn't found.

    Dave

    Most routers have the ability to lock the IP number issued based on the MAC address.

    For my DLink its found under the DHCP tab, and I assign it a 'fixed' IP number.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to mcb1

    i am a new Raspberry-Pi user,,, please do not make things too complicated  !!  image  lol   I have programmed on Main Frames for 20 years,,I think Rasp-Pi is cool,,, let's just keep it working that way... Thanks..  Sincerely, Sonny

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • johnbeetem
    johnbeetem over 12 years ago in reply to Former Member

    Dave Guthridge wrote:

     

    I guess if I could explain my problem more clearly, Google would again be my friend.  And you'd know what I'm talking about.

     

    I am able to display the Pi's desktop on my Linux desktop computer using a variety of methods: RDP, SSH and VNC.  I can also control the Pi from the Linux computer...

     

    You might try going to raspberrypi.org and entering "remote startx" in the Google Search box on the home page.  Something there might be useful, though in most cases they're talking about doing the VNC you already know about.  I'd like to help more, but I've only used RasPi locally (nowadays always through Lapdock image).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to mcb1

    Mark Beckett wrote:

     

    My Pi moves around in my DHCP table.  Sometime "ssh raspberrypi" works but sometimes the Pi isn't found.

    Dave

    Most routers have the ability to lock the IP number issued based on the MAC address.

    For my DLink its found under the DHCP tab, and I assign it a 'fixed' IP number.

     

    Mark

    You're right, I could just reserve an address for the Pi.  I'd still have to type in "192.168.1.xxx"  to ssh to it.  Remmina let's me connect with a single mouse click.  I'm forced into a short, painful admission: my real reason is sloth.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mcb1
    mcb1 over 12 years ago in reply to Former Member

    Dave

    Fair enough.

     

    I use WinSCP on a windows machine and luckily it remembers for me.

     

     

    mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mgt6910
    mgt6910 over 12 years ago in reply to Former Member

    Dave, you can make an entry in the file /etc/hosts. The system uses this as a look-up to translate system-names to addresses (you still need to enter the system name).

     

         How about creating a command-file on the desktop that  contains the connect command ? Just a click to run that.  

     

         If you have a forward-facing camera, you could create a program that watches for left-winks, then runs the connect-script  (not too sure about the details of that......)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to johnbeetem

    This thread might be helpful:

    http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=49311

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    coder27 wrote:

     

    This thread might be helpful:

    http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=49311

    Thanks for the link.  I've had my problems both when I use the rasp-config to initiate the display manager (start in GUI) and when I've remotely sent "startx" via RDP.  I have tried multiple variations of export DISPLAY=:0.0

    One thing that confuses me is that when I run the command "w" to find out what other users are on the raspberry, I usually only get one:

          21:29:10 up 13 min,  1 user,  load average: 0.02, 0.12, 0.14
          USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
          pi       pts/3    :10:S.0          21:21    0.00s  0.62s  0.05s w

     

    so I'm not sure what DISPLAY I want to export to.  Again, I've tried [almost] all combinations of 0, 1, 10 with and without S.

    At times I do see two users when I run "w" but right now I can't duplicate that.

     

     

    I think learning how to use DISPLAY is the optimal solution.  In the meantime, I've found that I can link the Pi and my Mint desktop using the "screen" program.  This convoluted approach allows me to set up a "screen" on the Pi, RDP to the Pi from the Mint to control the Pi, connect to the Pi "screen" through ssh&screen and have the Atrix display the Pi through the desktop. Maybe Mr. Smith is right and using a Pi shouldn't require thinking but I'm sure my explanations do.

     

    At least I think this approach will work.  I have an A model Pi with only a single USB connector so I can't have the keyboard and wireless at the same time.  And when I try to switch from keyboard to wireless, the Pi reboots.

     

    I've got to get my USB hub back from my nephew.  When I got the Atrix, I thought I didn't need it anymore and he said he did.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • johnbeetem
    johnbeetem over 12 years ago in reply to Former Member

    Dave Guthridge wrote:

     

    coder27 wrote:

     

    This thread might be helpful:

    http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=49311

    Thanks for the link.  I've had my problems both when I use the rasp-config to initiate the display manager (start in GUI) and when I've remotely sent "startx" via RDP.  I have tried multiple variations of export DISPLAY=:0.0

    One thing that confuses me is that when I run the command "w" to find out what other users are on the raspberry, I usually only get one:

          21:29:10 up 13 min,  1 user,  load average: 0.02, 0.12, 0.14
          USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
          pi       pts/3    :10:S.0          21:21    0.00s  0.62s  0.05s w

     

    so I'm not sure what DISPLAY I want to export to.  Again, I've tried [almost] all combinations of 0, 1, 10 with and without S.

    I suggest trying to set DISPLAY to "127.0.0.1:0.0".  127.0.0.1 is the usual "localhost" which lets you to IP to yourself (or something like that).  You can verify this value of "localhost" with "cat /etc/hosts".

     

    If that doesn't work, bring up X windows using the RasPi keyboard and whatever HDMI display you have (I guess the Lapdock).  Then in a terminal window enter "echo $DISPLAY".  This displays the value of DISPLAY when running from a local keyboard, for example ":0" on my RasPi.  Try setting DISPLAY to that value for remote access.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 12 years ago in reply to johnbeetem

    I read the thread only partially, but do you wish direct graphical apps onto the local display (i.e. the HDMI connected monitor) that are invoked remotely (via SSH)?

    Apologies if I've misunderstood.

     

    If that's what you want to do, I believe this link may help (I did it a few months back - not on an RPI, and I think this was the link that helped - I could be wrong!).

    xhost, xauth and of course the export DISPLAY all ring a bell.

     

    When I did it, I just wanted to bring up an xclock or something on the local display, but invoked from a remote connection which was either SSH or serial from memory - not local USB keyboard.

     

    Apologies if it is the wrong link - it was still in my browser cache, I should have bookmarked it at the time :-( I just don't use GUI programs often enough in Linux to be 100% sure - I'm happy with SSH into Linux servers.

     

    EDIT: Actually, it may be this link that helped me, this was in my browser history too. I remember reading the xroach bit in the text, so I think this is the page.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • shabaz
    shabaz over 12 years ago in reply to johnbeetem

    I read the thread only partially, but do you wish direct graphical apps onto the local display (i.e. the HDMI connected monitor) that are invoked remotely (via SSH)?

    Apologies if I've misunderstood.

     

    If that's what you want to do, I believe this link may help (I did it a few months back - not on an RPI, and I think this was the link that helped - I could be wrong!).

    xhost, xauth and of course the export DISPLAY all ring a bell.

     

    When I did it, I just wanted to bring up an xclock or something on the local display, but invoked from a remote connection which was either SSH or serial from memory - not local USB keyboard.

     

    Apologies if it is the wrong link - it was still in my browser cache, I should have bookmarked it at the time :-( I just don't use GUI programs often enough in Linux to be 100% sure - I'm happy with SSH into Linux servers.

     

    EDIT: Actually, it may be this link that helped me, this was in my browser history too. I remember reading the xroach bit in the text, so I think this is the page.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube