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 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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Blog On the Second Day, My Pi Gave Me a Raspberry.
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Raspberry Pi requires membership for participation - click to join
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
GPIO Pinout
Raspberry Pi Wishlist
Comparison Chart
Quiz
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: tony.the.tiger
  • Date Created: 19 Mar 2015 5:11 AM Date Created
  • Views 428 views
  • Likes 6 likes
  • Comments 1 comment
Related
Recommended
  • vnc_client
  • raspberry_pi
  • vnc_server

On the Second Day, My Pi Gave Me a Raspberry.

tony.the.tiger
tony.the.tiger
19 Mar 2015

Hello Everyone.

 

I thought I'd help any other newbies by describing the problems I had setting up my Raspberry Pi 2, and how I finally solved it. This is my first Blog Post, so please bare with me.

 

I want to state that I most of my computer experience is Windows-base, and most of my Linux experience is web- or GUi-based. In addition, I think that the Raspberry Pi (and the whole Maker & IoT movements) are the most exciting things I've see in years.

 

My Pi came in the mail yesterday, and I felt like a kid on Christmas morning. After putting it in a small case (by C4 Labs), scrounging up the cables, power adapter, a monitor, and wireless keyboard from another computer, moving the Raspbian image to the MicroSD card, the system booted-up without any problems. Really. It took longer trying to squint at the tiny writing on my old Motorola cellphone charger than it did to boot. I practically kissed it.

 

The rest of the evening went well enough. I played around for a bit; trying out some of the included applications and even installed a couple small packages - tree and midnight commander. Soon, however, my wife began asking for her monitor back. A headless system was in order. A quick search found the VNC (Virtual Network Computing) page, Raspberry Pi Documentation > Remote- Access > VNC

It was well written and easy to follow. I was caught off guard, however, when TightVNC started asking for passwords, and used something silly and weak. Even so, in 30-40 minutes both vncserver and the Windows client were up and running. It would have been quicker if I didn't keep using the "back-slash" on the Pi and the "forward-slash" on Windows. I don't know if I'll ever get the hang of that.

 

The password still bothered me. Preferring something stronger (and less cute), I followed the advice on: Get It Fixed: How to change VNC Server password on Linux 

It worked like a charm. Note that any real strong password just get truncated to the first eight character.

 

Day Two.

 

Wanting to automate the VNC service at boot-time (so I didn't need to move HDMI cables just to login first), I followed the remainder of Raspberry Pi Documentation > Remote-Access > VNC

I evencreated the script from the VNC client; and thought I was hot stuff. Then the problems started. The dependency-based boot sequencing command wouldn't work in a VNC. Nor a SSH. I had to grab my wife's monitor again. The command worked but I had to reinstall the password. Okay. I used my new and improved password and continued on. It didn't work.

 

I rebooted. I re-ran vncpasswd. I rebooted. I re-built the script. I reboot some more. I checked my spelling (admittedly, quite bad). I switch back and forth, between console, and VNC from Windows. I could either get the VNC working from Windows, or have the boot sequence start the VNC, but could not connect. After three hours, and much gnashing-of-teeth, I was planing on re-imaging the MicroSD card. Giving it one last try, as root, I opened /etc/init.d/passwd in the nano text editor. This is a one word file with the password in it. It had one word of eight random characters in it. I thought that I had read that the file should have been un-encrypted; but running out of ideas, I tried changing it to the desired password....

 

I need to take a moment to mention that I am from the United States. Also, one of the characters in my "strong" password is the "at symbol". It seems, either through my exuberance (most likely) or some quirky re-setting of defaults, that my keyboard layout was set for UK, not US. While they may both be QWERTY, the "Shift+2" on the Pi console keyboard typed the "double apostrophe", yet the VNC/Windows keyboard typed the "at symbol". Who knew?

 

Hey, it's not like I crashed a Mars orbiter because I used non-SI units instead of SI units.

 

Everything is up and running, now; but it still feels like my Pi just gave me a big wet Raspberry.

 

~Michael

  • Sign in to reply
  • johnbeetem
    johnbeetem over 10 years ago
    Michael wrote: I need to take a moment to mention that I am from the United States.  [Howdy!] Also, one of the characters in my "strong" password is the "at symbol". It seems, either through my exuberance (most likely) or some quirky re-setting of defaults, that my keyboard layout was set for UK, not US. While they may both be QWERTY, the "Shift+2" on the Pi console keyboard typed the "double apostrophe", yet the VNC/Windows keyboard typed the "at symbol". Who knew?

     

    Raspberry Pi provides lots of useful educational lessons, like this one: 

    Always be suspicious of keyboard malfunction (or malconfiguration) when it doesn't accept your password.  A good trick is to enter your password as your user name.  That way it's echoed and you can see if there are any surprises.

     


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