Help with .bash files

Help with .bash files

Post by Frederique Vernh » Fri, 26 Feb 1993 06:15:12



Hi

        First of all, I want to say how happy I am with linux.
I have been using and maintaining Sparcs for a few years now, and
I had bought a 486 last summer, hoping to be able to have
unix, and a windowing system for it. I was betting
on things like SCO, and Solaris, when I heard of Linux. (Thanks Ed).
So I installed SLS ( I am quite impressed with the whole
distribution set. It is easier than suninstall...:-) .

So, I am the proud user of a linux PC, running X11 in
800x600 mode. I read the FAQ, and I still have two questions.
One of them is about Xterm. I am running bash. When I go
into X, all my xterms ignore the .bashrc, or .bash_profile
or .profile files. Does anyone know why?
One way I got around it was to use /bin/bash -login, and
then it reads .bash_profile. However, once I read my
dot file, I can't successfully type xterm anymore, I get the following
error:
xterm: unable to find usable termcap entry.

still, xterm from the twm menu works.

So what am I doing wrong?

Second problem is that my clocks on my "infamous" Diamond
card is not found until I run DOS, MSWindows in 800x600 first.
Then I do a soft reboot, get into linux. At this point, ttyS0 is not recognize
and I lose the mouse, so I have to shutdown, and use my "reset"
button, restart linux (without shutting off the computer), and now
I am ready for fun and games with X11 in 800x600 mode.

Well, all and all, I consider I have a working system.
Still, I would love to fix these little problems.

While I am at it, does anyone konw where xterm.1 is located
in the SLS release? I can't find it in /usr/man/cat1, or man1.

Feel free to e-mail any ideas/suggestions that could help me,
I will be glad to post a summary.

Thanks,
--

        =:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
                        VIVE LINUX!!!!!!

 
 
 

Help with .bash files

Post by Johannes Gros » Fri, 26 Feb 1993 11:08:58


[ stuff deleted ]

Quote:>So, I am the proud user of a linux PC, running X11 in
>800x600 mode. I read the FAQ, and I still have two questions.
>One of them is about Xterm. I am running bash. When I go
>into X, all my xterms ignore the .bashrc, or .bash_profile
>or .profile files. Does anyone know why?

If you want a login shell in an xterm you need to invoke it as:
        xterm -ls

Note that most shells (ksh, sh, bash) don't read the .profile when
invoked this way. You should have your path, etc. defined in your
.bashrc

[ more stuff deleted ]

Quote:

>Second problem is that my clocks on my "infamous" Diamond
>card is not found until I run DOS, MSWindows in 800x600 first.
>Then I do a soft reboot, get into linux. At this point, ttyS0 is not recognize
>and I lose the mouse, so I have to shutdown, and use my "reset"
>button, restart linux (without shutting off the computer), and now
>I am ready for fun and games with X11 in 800x600 mode.

Which version of the kernel are your running? Pre-.99.5 kernels
didn't handle the serial ports correctly for things like mice. You
may want to upgrade your kernel to at least .99.5

regards,

--
Johannes Grosen
ISC System Administrator


 
 
 

1. Help with .bash files---Summary.

Hi,

Thanks to those who helped with my problems initializing
xterm with the correct dot file.
This is what worked:
        1- I now only have one dot file: .bashrc
        2- I invoke xterm with the -ls flag
( I did read the man page, and I had tried -xrm loginShell, but it did
not seem to do much good. It is possible I was not reading the man page
carefully enough..)

        To be able to call xterm from an already going xterm -e /bin/bash,
I need to specify -tn console. I tried setting TERM to xterm, but
if I do not specify -tn console after xterm, I am told that xterm is
unable to find the termcap entry. It makes sense that if
TERMCAP is set /etc/termcap, things might work better. I will give it
a try tonight.

I had tried using -e /bin/bash -login, but I thought I had
to put quotes around "/bin/bash -login". Bad idea. It works
fine without the quotes, not at all with the quotes.

Thanks again for the help, now I can move on to more questions.

Fred.
--

        =:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
                        VIVE LINUX!!!!!!

2. Apache Server Stats

3. BASH BASH BASH BASH BASH BASH BASH BASH BASH BASH

4. Somebody Help!

5. Bashing bash (Was Re: bash or user error with set -e and subshells)

6. Best email setup for SCO UNIX V 3.2.4.2

7. Bash calls TCL, TCL calls Bash, 2nd Bash never reads input

8. PCMCIA Ethernet Adapters Supported?

9. bash config files - need help

10. Help using awk and bash script to copy and rename lots of index.htm files

11. Copy files using filenames from text files with shell script or bash script

12. Bash/CGI - - HTML call to Bash script

13. difference in behaviour of bash-2.0 from bash-1.14.7