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
Raspberry Pi Forum Nano Error Writting
  • 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 5 replies
  • Subscribers 664 subscribers
  • Views 954 views
  • Users 0 members are here
  • nano
  • helpme
  • element14
  • pi
  • vnc
  • raspberry_pi
  • raspberrypi
  • rpi
Related

Nano Error Writting

Former Member
Former Member over 12 years ago

I am trying to set up VNC Server on my PI as per instruction on pengiuntutor.com/linux/tightvnc.

when attempting to add to the start up using the Provided script and pasting in Nano when I came to save it i get a "error writing to /ect/init.d/tightvncserver: no such file or directory"

I have tried using root and 'pre-creating' the file in the GUI with no luck.

What am I doing wrong?

  • Sign in to reply
  • Cancel
  • johnbeetem
    johnbeetem over 12 years ago

    You might try "/etc/init.d" instead of "/ect/init.d".

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

    You could try it a different way:

     

    1. boot up RPi

    2. On RPi open up a file called '/etc/rc.local':

     

    sudo nano /etc/rc.local

     

    3. add the line to the bottom of the file BUT ABOVE  ' exit0 '

     

     

    su -c "vncserver -geometry 1024x800 -depth 24" root

     

    This will start a tightVNC session with the dimentions of 1024 x 800.  You can change this what-ever you want providing it is a supported resolution/the shape you want.  Also note that this session is for the user 'root' . Change this to the user you want to use.

     

    This will start the tightVNC server everytime you boot up your RPi.  Personally, I wouldn't mess around wit .init scripts when there is a simpler way to do it (I have not used .init scripts for this but I have used one for a LCD display I am using...I had many problems and hence my dislike of that method.)

     

    Hope this helps you.

     

    /etc/rc.local:

     

    #!/bin/sh -e

    #

    # rc.local

    #

    # This script is executed at the end of each multiuser runlevel.

    # Make sure that the script will "exit 0" on success or any other

    # value on error.

    #

    # In order to enable or disable this script just change the execution

    # bits.

    #

    # By default this script does nothing.

     

     

    # Print the IP address

    _IP=$(hostname -I) || true

    if [ "$_IP" ]; then

      printf "My IP address is %s\n" "$_IP"

      printf "VNCserver has started on $_IP"       # I added this one to look cool image

    fi

    su -c "vncserver -geometry 1280x800 -depth 24" root

     

    exit 0

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

    Ok First I thought that was just a typo in my post I would have check that. Then I has a look tried it and it worked image&image.

    Thanks for the correction your a star

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to wallarug

    Fergus Byrne wrote:

     

    You could try it a different way:

     

    1. boot up RPi

    2. On RPi open up a file called '/etc/rc.local':

     

    sudo nano /etc/rc.local

     

    3. add the line to the bottom of the file BUT ABOVE  ' exit0 '

     

     

    su -c "vncserver -geometry 1024x800 -depth 24" root

     

    This will start a tightVNC session with the dimentions of 1024 x 800.  You can change this what-ever you want providing it is a supported resolution/the shape you want.  Also note that this session is for the user 'root' . Change this to the user you want to use.

     

    This will start the tightVNC server everytime you boot up your RPi.  Personally, I wouldn't mess around wit .init scripts when there is a simpler way to do it (I have not used .init scripts for this but I have used one for a LCD display I am using...I had many problems and hence my dislike of that method.)

     

    Hope this helps you.

     

    /etc/rc.local:

     

    #!/bin/sh -e

    #

    # rc.local

    #

    # This script is executed at the end of each multiuser runlevel.

    # Make sure that the script will "exit 0" on success or any other

    # value on error.

    #

    # In order to enable or disable this script just change the execution

    # bits.

    #

    # By default this script does nothing.

     

     

    # Print the IP address

    _IP=$(hostname -I) || true

    if [ "$_IP" ]; then

      printf "My IP address is %s\n" "$_IP"

      printf "VNCserver has started on $_IP"       # I added this one to look cool image

    fi

    su -c "vncserver -geometry 1280x800 -depth 24" root

     

    exit 0

    Cheers Fergus

    Got the other way working but will give you suggestion a try when I get a chance looks like it might be neater and give me something else to play with.

    I guess I should ask How one would remove the Scripts from the start up, that one has now added?image

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

    Delete it. image

     

    from prompt:

    rm /<directory>/<file>

    • 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