New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

newbie help (dumb terminal settings?)


Post Reply New Thread Subscribe

 
Thread Tools
CaptainMack
Guest
 
Posts: n/a

i am new to this (as in started yesterday) and whenever i start up it says i am using dumb terminal settings. can i change this because i think it prevents me from doing stuff.
here is exactly what it says in case you need it:

Last login: Thu Jan 15 14:10:25 on ttyp1
Welcome to Darwin!
tcsh: Cannot open /etc/termcap.
tcsh: using dumb terminal settings.
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
Not knowing what you may have done. Did you make any change to tcsh shell environment?

There is normally a dot file that control or defines your environment. An example woulod be in csh (c-shell) the .cshrc file, in sh (borne shell) and ksh (korn shell) there is the .profile. I currently don't know what tcsh (trusted shell) uses.
QUOTE Thanks
CaptainMack
Guest
 
Posts: n/a

i havent changed anything (that i know of)
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
I have found the dot file for tcsh (.tcshrc).

Since you have not changed anything. Have you deleted anything?
QUOTE Thanks
CaptainMack
Guest
 
Posts: n/a

no i havent deleted anything i look on the web and people said to make sure i hade the vt100 file in /usr/share/terminfo/76/ i do. i also realised that when i open a new shell i am not using dumb terminal settings. i am only using them when i login to a new naame and log back into my name.
QUOTE Thanks
StarManta
Guest
 
Posts: n/a

Sounds to me like someone is playing a prank on you... meh
QUOTE Thanks
masaka___
Guest
 
Posts: n/a

Let's look at the error message again. It says it can't open /etc/termcap, so look to see if it's there. Tell us what happens when you type:

ls -l /etc/termcap

If the file isn't there, you should find a suitable termcap file, and put it in /etc. I've attached one from a Redhat box that you should be able to use, because termcap files don't vary much (if at all) between operating systems. Or at least that's my understanding. Just get rid of the .txt extension in the attachment and copy it to /etc, but that's only if there isn't a termcap file there already.
Attached Files
File Type: txt termcap.txt (720.2 KB, 16 views)
QUOTE Thanks
CaptainMack
Guest
 
Posts: n/a

it says no such file so i guess that means none is there.
how exactly do i copy the termcap file to /etc
(pardon my ignorence but i am new to all this:p)
QUOTE Thanks
masaka___
Guest
 
Posts: n/a

Quote:
Originally Posted by CaptainMack
it says no such file so i guess that means none is there.
how exactly do i copy the termcap file to /etc
(pardon my ignorence but i am new to all this:p)
It's cool...

Let's suppose you saved "termcap.txt" to your Desktop. Here's how
you'd copy it to the right place.

sudo cp ~/Desktop/termcap.txt /etc/termcap


Explanation:

sudo is a command you use when you want to
temporarily upgrade your normal account to have
administrator (root) priveleges. Copying things
into /etc (which is where a lot of Unix programs
like to place their configuration files) is an
appropriate time to use sudo. When you execute
sudo, it'll usually ask you for your password
(so it can make sure you're not someone
malicious).

cp is Unix command to copy files, and it's
syntax is `cp SOURCE DESTINATION`. You can
specify multiple sources, but there must always
only be one destination. The destination will
usually be a directory (or folder), but if you
specify a filename (as we've done here), it'll
perform a rename operation after the copy.


Summary:

sudo cp ~/Desktop/termcap.txt /etc/termcap

sudo -- temporarily give me more priveleges so that I can...

cp -- copy ~/Desktop/termcap.txt to /etc and have it be named termcap


PS: ~ means your home directory. You can say `echo ~` and it should say /Users/whomever where "whomever" is your login name.

PPS: to learn more about sudo and cp, type `man sudo` and `man cp` in your terminal.
QUOTE Thanks
CaptainMack
Guest
 
Posts: n/a

i did all that and it still says this.

Last login: Tue Feb 17 15:06:41 on ttyp2
Welcome to Darwin!
tcsh: No entry for terminal type "network"
tcsh: using dumb terminal settings.
QUOTE Thanks
masaka___
Guest
 
Posts: n/a

Quote:
Originally Posted by CaptainMack
no i havent deleted anything i look on the web and people said to make sure i hade the vt100 file in /usr/share/terminfo/76/ i do. i also realised that when i open a new shell i am not using dumb terminal settings. i am only using them when i login to a new naame and log back into my name.
I totally missed this post, but it explains a lot. Let me guess -- you're typing "login" at the shell prompt, and logging in as someone else. If that's the case, let me show you a better way to log in as someone else.

su - username

...where username is the name of the person you want to log in as. FYI, login is not a program that you normally execute from the shell. Instead, it's usually started by a program called getty, but that's another story.
QUOTE Thanks

Post Reply New Thread Subscribe


« File type code from the command line | De-Compiler »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
looking for a terminal emulator and command shell in Mac OSX CandiMarie OS X - Operating System 9 03-05-2004 03:53 PM
Mac Newbie with some Advanced questions CannonFotter Switcher Hangout 5 09-08-2003 11:55 PM
Newbie Questions Jon Switcher Hangout 3 07-14-2003 08:38 PM

All times are GMT -4. The time now is 01:35 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?