element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
RIoTboard
  • Products
  • Dev Tools
  • Single-Board Computers
  • RIoTboard
  • More
  • Cancel
RIoTboard
Forum Python IDLE and terminal...
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RIoTboard to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 8 replies
  • Subscribers 25 subscribers
  • Views 879 views
  • Users 0 members are here
Related

Python IDLE and terminal...

mubase
mubase over 11 years ago

Hi again.

OK. I'm getting to grips with Riotboard & Ubuntu. Still haven't solved the HDMI to VGA problem but I'm going to try a powered converter box.

I want to run IDLE but when I do I get an error about the DISPLAY environment variable..

I have heard about being able to run programs using X11 and tunneling with SSH on a host computer.. Does anyone know if this could be done with RIoTboard?? If they have or know if it's possible .......

Cheers. image

Steve.

  • Sign in to reply
  • Cancel

Top Replies

  • radiatortwo
    radiatortwo over 11 years ago in reply to mubase +1
    Putty is a client that connects over the SSH protocol to the unix systems console. It´s like a remote access to the terminal. So yes the username and password you are asked for are those from the Riotboard…
  • Former Member
    Former Member over 11 years ago +1
    the 3.0.35 based distro from from e14 had a password "linaro".
Parents
  • Former Member
    Former Member over 11 years ago

    on the client side you need to add ForwardX11 yes to either /etc/ssh/ssh_config or $HOME/.ssh/config possibly under a Host <ip.of.riot.> section.

     

    On the RIoTboard you'd need to add something like

    X11Forwarding yes
    X11UseLocalhost yes

     

    into /etc/ssh/sshd_config

     

    Then restart sshd to be sure that your changes are noticed.

     

    In theory you can then ssh into the RIoT and start your X11 app using the CLI.  However there are many other things that might cause issues.. Depending on the distro you might need to relax xauth restrictions or transfer the magic cookie http://www.snapdba.com/2013/02/ssh-x-11-forwarding-and-magic-cookies/ and possibly deal with $DISPLAY.

     

    It's also worth considering what your host computer is. If it's linux and is already running X11 it's relatively easy. If it's Windows then you'll need additional software that can add to the complexity (and cost). Some examples of windows X11 servers:

    http://www.starnet.com/xwin32/

    http://sourceforge.net/projects/xming/

    http://x.cygwin.com/

    http://www.attachmate.com/Products/PC+X+Server/rx2011/rx2011.htm

     

    While I've not done it with the RIoT, I frequently use X11 forwarding on other machines, often to run Wireshark on a headless router.

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

    Hi Selsinork. On remote connecting...

    I've read up a bit on X11 and ssh connected both my Riotboard & windows Laptop to my wifi router.

     

    When I connect to the Riotboard's IP address in putty, it asks for a log on name and then a password...?

    Is this a password set in Riotboard or am i completely on the wrong track??

    Its all really f***ng confusing this ssh thing...!

    Any help would be appreciated.

    Thanks again,

    Steve.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • radiatortwo
    radiatortwo over 11 years ago in reply to mubase

    Putty is a client that connects over the SSH protocol to the unix systems console.

    It´s like a remote access to the terminal.

     

    So yes the username and password you are asked for are those from the Riotboard.

     

    The username will be most likely "root", since you didn´t add a new user I suppose.

     

    If you don´t know the password for a user you can change it on the serial console on the Riotboard for example with:

     

    passwd root

    (As root is the username)

     

    Then you can login with putty with username root and the password you´be given.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • radiatortwo
    radiatortwo over 11 years ago in reply to mubase

    Putty is a client that connects over the SSH protocol to the unix systems console.

    It´s like a remote access to the terminal.

     

    So yes the username and password you are asked for are those from the Riotboard.

     

    The username will be most likely "root", since you didn´t add a new user I suppose.

     

    If you don´t know the password for a user you can change it on the serial console on the Riotboard for example with:

     

    passwd root

    (As root is the username)

     

    Then you can login with putty with username root and the password you´be given.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • mubase
    mubase over 11 years ago in reply to radiatortwo

    Changed my password to Steve earlier.

    F**K ME IT WORKS!!!. image

    image

     

    Thanks Otto. You are brilliant. image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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