LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 09-03-2008, 12:33 AM   #1
carrots
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
.tcshrc mess up


Hi all,

I am a student remotely connecting to a linux server at school from my personal apple computer. I created some aliases in the .tcshrc file, but now it seems as if I messed something up. For instance, there used to be the name of the server I am connected to in the prompt (ie 'server>'), now the name of the server is gone and there just shows a >. Also vncserver is not working now (error message: vncserver: couldn't find "xauth" on your path). All this worked before I tried to create the damned aliases. your help would be much appreciated.

Thanks
 
Old 09-03-2008, 05:43 AM   #2
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 718

Rep: Reputation: 72
Hi.

This is the procedure I follow when I modify critical files.

1) keep a backup copy using some naming scheme when no version control is available. In this case, for example, I would use initially:
Code:
cp .tcshrc old.1.tcshrc
make some changes, then for the next set of changes:
Code:
cp .tcshrc old.2.tcshrc
and so on. Once you are satisfied with your changes, perhaps after a few days of successful use, then get rid of the old.n.tcshrc files.

2) always stay logged in 1 session, and test logging in from another session, from another window, computer, or whatever resource you need. That allows you to quickly test your changes, and fix problems or restore from old.n files as needed.

In the current situation, we could only guess as to what the problem is because we don't know what the original situation was nor what the current situation is.

If you can get a command-line login, you can try to restore the .tcshrc file to its original state.

If there is a way to get a default .tcshrc, you might try that. Failing that, you may need to ask the system administrator to do it.

Best wishes ... cheers, makyo
 
Old 09-03-2008, 07:41 AM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
If the default shell is tcsh, ask one of your mates who hasn't changed theirs to let you have a copy.
 
Old 09-03-2008, 01:50 PM   #4
carrots
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Original Poster
Rep: Reputation: 0
thanks for the tips. i am super-new to linux and am unsure how to copy my friends .tcshrc to mine. any help would be GREATLY appreciated, since I am pretty much deadlocked and can't finish any of my work.

Thanks again
 
Old 09-03-2008, 08:21 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
man cp

ie to copy a file

cp srcfile destfile

eg

cp /home/yourmate/.tcshrc /home/you

Read/learn this:
http://rute.2038bug.com/index.html.gz
My recommendation; don't change anything in your env until you are familiar with (at least) the basic cmds: cp, ls, find, rm, cd, and ALWAYS backup (take a copy) of a file before you mess with it.
HTH & welcome to LQ
 
  


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
.tcshrc error and setting env. variables leblebi Linux - Newbie 1 04-14-2008 02:02 AM
I mess up leveex Slackware 1 12-11-2006 04:30 AM
Where Did I mess Up? xsithlordx Ubuntu 1 09-09-2006 10:15 PM
Editing .tcshrc problems boydasilva Linux - Newbie 16 12-10-2004 07:35 AM
How to logout from .tcshrc? (never log in) BrianK Linux - General 3 04-13-2004 02:47 AM


All times are GMT -5. The time now is 08:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration