LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2011, 11:02 PM   #1
Junior13
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Rep: Reputation: 0
Saving xStartup ? Super-Newbie


Ok, so I'm trying to edit my xstartup file right.....I do my changes and everything, but it never saves. How do i save it. When I'm SSH it only allows me to edit it, but doesn't allow me to save my changes! Please help!
 
Old 01-29-2011, 11:24 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,333
Blog Entries: 12

Rep: Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729
What distro? And what exactly is the file you are trying edit?

I've distro hopped a number of distros, and not yet run into a file named "xstartup." xorg.conf, but not "xstartup."

The more precise and detailed information you provide, the more likely someone can help you.

Also, generally, you must edit configuration files in /etc with root privileges on the local box. Often, user can open the files, but cannot save changes to them.

Last edited by frankbell; 01-29-2011 at 11:30 PM. Reason: clarity
 
Old 01-29-2011, 11:50 PM   #3
Junior13
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
It's CentOs 5.5....Im trying to set up VNC and i've installed Gnome. I need to edit the "XStartup" file in order for it to work.
 
Old 01-30-2011, 01:43 AM   #4
Junior13
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
so after i finish editing my Xstartup File via "vi xstartup", how do i save my changes?
 
Old 01-30-2011, 01:56 AM   #5
JoshyJ
Member
 
Registered: Nov 2003
Location: Sydney , Australia
Distribution: Fedora
Posts: 49

Rep: Reputation: 1
Quote:
Originally Posted by Junior13 View Post
so after i finish editing my Xstartup File via "vi xstartup", how do i save my changes?
Try ":wq", this should save and quit editing the file. But only if you have permissions to do so.
 
Old 01-30-2011, 02:09 AM   #6
Junior13
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
Xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & startx & ~
~
~
~
~
~
~
~
~
~
~
~
-- INSERT --


Okay so im stuck on this, i finished editing, what do i do next? I how do i get out off insert and be able to type the ":wq" command?
 
Old 01-30-2011, 02:12 AM   #7
Junior13
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by JoshyJ View Post
Try ":wq", this should save and quit editing the file. But only if you have permissions to do so.
THANKS SO MUCH, without that little code i would of never got this to work! THANKS!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
please help a super newbie with RH9 yarzy Linux - Newbie 12 01-29-2006 03:21 PM
Super Newbie Good2Go Linux - Newbie 6 01-24-2006 05:51 PM
super newbie needs help ! kinghimself Linux - Software 5 11-09-2003 11:28 AM
super newbie a45b22chp Linux - Newbie 11 05-04-2003 05:46 PM
super newbie question... oulck Linux - Newbie 27 09-19-2002 02:33 PM


All times are GMT -5. The time now is 02:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration