Dias Shell Restore settings

Συζητήσεις σχετικά με θέματα που αφορούν λειτουργικά συστήματα (Linux, *BSD, MacOS, Windows, κτλ.) .
Post Reply
User avatar
netharis
Venus Former Team Member
Posts: 1845
Joined: Sun Jul 15, 2007 2:37 pm
Academic status: Alumnus/a
Gender:
Location: Seattle, Washington
Contact:

Dias Shell Restore settings

Post by netharis » Wed Jan 30, 2008 5:22 pm

Τώρα τελευταία έπαιζα λίγο με το shell στο Δία, και τις προάλλες όταν πήγα να ξαναμπώ το prompt μου είχε γίνει έτσι:

Code: Select all

>
και το Backspace δεν δούλευε, είναι σαν να πατάω Enter αλλα χωρίς να εκτελείται η εντολή...
Το prompt μπορώ να το κάνω set όπως θέλω αλλά ισχύει μόνο για το session που είμαι. Μόλις ξανακάνω login χάνεται.
Οι μεταβλητές είναι ως εξής:

Code: Select all

addsuffix
argv    ()
cwd     /etc/config
echo_style      both
edit
gid     119
history 100
home    /home2/students/plir/p3070ΧΧΧ
path    (/usr/sbin /usr/bsd /sbin /usr/bin /usr/bin/X11 . /usr/local/bin /home2/apps/informix/bin /usr/java2v14/jre/bin /usr/freeware/bin /usr/local/bin /usr/local/lib)
prompt  >
prompt2 %R?
prompt3 CORRECT>%R (y|n|e)?
shell   %R?
shlvl   2
status  0
tcsh    6.04.00
term    vt100
tty     ttyq4
uid     6532
user    p3070***
version tcsh 6.04.00 (Cornell) 93/07/03 (iris4d) options 8b,nls,dl
Έψαξα να βρώ το config file αλλα απέτυχα.
Γνωρίζει κανείς που είναι έτσι ώστε να το κάνω restore;
Η εντολή setup δεν λειτουργεί στο tcsh δυστυχώς...
Καμία ιδέα; :roll:
Last edited by Zifnab on Wed Jan 30, 2008 7:04 pm, edited 1 time in total.
Reason: To user σου είχε ακάλυπτο το id ! την έπαθα και εγώ...
Image
Resistance is futile. Join the foss-side now!
"UNIX is very simple, it just needs a genius to understand its simplicity." - Dennis Ritchie
"The things that I want, by Max Payne. A smoke. A whiskey. For the sun to shine. I want to sleep, to forget. To change the past. Unlimited ammo and a license to kill. But right then, more than anything, I wanted her."
User avatar
Zifnab
Venus Former Team Member
Posts: 7581
Joined: Tue Nov 15, 2005 2:42 am
Academic status: MSc
Gender:
Location: Connecticut
Contact:

Re: Dias Shell Restore settings

Post by Zifnab » Wed Jan 30, 2008 6:57 pm

Δεν έχω ιδέα, απο αυτά αλλά για σύγκριση οι δικές μου μεταβλητές έχουν ως εξής:

Code: Select all

dias 1% set

addsuffix
argv    ()
autologout      15
cwd     /home2/students/plir/p3050ΧΧΧ
echo_style      both
edit
gid     119
history 100
home    /home2/students/plir/p3050ΧΧΧ
loginsh
mail    /var/mail/p3050ΧΧΧ
path    (/usr/sbin /usr/bsd /sbin /usr/bin /usr/bin/X11 . /usr/local/bin /home2/
apps/informix/bin /usr/java2v14/jre/bin /usr/freeware/bin /usr/local/bin /usr/lo
cal/lib)
prompt  dias !%
prompt2 %R?
prompt3 CORRECT>%R (y|n|e)?
shell   /bin/tcsh
shlvl   1
status  0
tcsh    6.04.00
term    vt100
tty     ttyq3
uid     11700
user    p3050XXX
version tcsh 6.04.00 (Cornell) 93/07/03 (iris4d) options 8b,nls,dl
User avatar
netharis
Venus Former Team Member
Posts: 1845
Joined: Sun Jul 15, 2007 2:37 pm
Academic status: Alumnus/a
Gender:
Location: Seattle, Washington
Contact:

Re: Dias Shell Restore settings

Post by netharis » Wed Jan 30, 2008 7:23 pm

Σε ευχαριστώ Zifnab, δοκίμασα να κάνω set μερικές μεταβλητές όπως είναι σε σένα, αλλα τελικά το πρόβλημα βρίσκεται σε κάποιο config file το οποίο δεν μπορώ να βρώ... :roll:
Image
Resistance is futile. Join the foss-side now!
"UNIX is very simple, it just needs a genius to understand its simplicity." - Dennis Ritchie
"The things that I want, by Max Payne. A smoke. A whiskey. For the sun to shine. I want to sleep, to forget. To change the past. Unlimited ammo and a license to kill. But right then, more than anything, I wanted her."
User avatar
cyberpython
Mbyte level
Mbyte level
Posts: 654
Joined: Wed Nov 21, 2007 8:18 pm
Academic status: Alumnus/a
Gender:
Location: Αθηνα
Contact:

Re: Dias Shell Restore settings

Post by cyberpython » Wed Jan 30, 2008 9:04 pm

The tcsh looks for a configuration file at startup time. The file it looks for is called "~/.cshrc"

Note that I always recommend backing up a copy of your account configuration files before meddling with them (such as "cp .cshrc .cshrc.bak").

Το βρήκα εδώ : http://www.csee.umbc.edu/courses/underg ... 5/06.shtml

(ο χαρακτήρας "~" αντιπροσωπεύει το home κατάλογο σου στο Δία.)
User avatar
netharis
Venus Former Team Member
Posts: 1845
Joined: Sun Jul 15, 2007 2:37 pm
Academic status: Alumnus/a
Gender:
Location: Seattle, Washington
Contact:

Re: Dias Shell Restore settings

Post by netharis » Wed Jan 30, 2008 9:40 pm

Σε ευχαριστώ πολύ!
Tελικά επανέφερα τα αρχεία .login και .cshrc μέσα στο home directory και δούλεψε. :)
Υπάρχουν στο root folder του Δία.
Συμπέρασμα, να μην παίζουμε με το Δία :-p
Image
Resistance is futile. Join the foss-side now!
"UNIX is very simple, it just needs a genius to understand its simplicity." - Dennis Ritchie
"The things that I want, by Max Payne. A smoke. A whiskey. For the sun to shine. I want to sleep, to forget. To change the past. Unlimited ammo and a license to kill. But right then, more than anything, I wanted her."
User avatar
HdkiLLeR
Venus Project Founder
Venus Project Founder
Posts: 4356
Joined: Tue Jan 27, 2004 4:41 pm
Academic status: Alumnus/a
Gender:
Location: New York, NY
Contact:

Re: Dias Shell Restore settings

Post by HdkiLLeR » Thu Jan 31, 2008 11:08 am

Όλα τα .* files στο home directory σου είναι configuration files για διάφορα applications συμπεριλαμβανομένου και του shell. Επειδή στον Dias χρησιμοποιείται το C-Shell το file που κρατάει τις ρυθμήσεις του είναι το .cshrc. Εάν έχεις bash είναι .bashrc κλπ. Ομοίως στo .logout είναι οι εντολές που θα εκτελεστούν όταν κάνεις logout (με CTRL^D ή με την εντολή logout και όχι με κλείσιμο του terminal κατευθείαν).
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d-->--- s+:+ a- C++(+++) BILS++++$ P--- L++++>+++++ E--- W+++ N+ o+ K w--
O M+ V-- PS++>+++ PE- Y++ PGP++ t+ 5+ X+ R* tv b++ DI- D+ G+++ e+++>++++ h r++ y++
------END GEEK CODE BLOCK------

"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." -- Dennis Ritchie
Post Reply

Return to “Λειτουργικά συστήματα”