Ask a Question related to Mac Applications & Software, Design and Development.
-
Hal Sadofsky #1
Re: paths and ssh connections
Christopher Masi <cjmasi@*nogarbageplease*rcn.com> writes:
try doing> When I establish an ssh connetion from my PB 1400c to my Pismo or an ssh
> connection from my Pismo to itself, my paths get screwed up.
>
> For example, in a terminal.app window I type "rasmol-272" and RasMol
> v.2.7.2.1 launches; however, if I first do ssh and establish an ssh
> connection to myself, rasmol-272 doesn't show up. Other programs
> dissappear too. For example, xhost and man xhost give command not found
> and no entry for responses. xclock gives a command not found too.
>
> So, what did I screw up? Any ideas?
>
> Oh yeah, why do I get a TERM_PROGRAM: undefined variable when I ssh, or
> when xterm starts along with Apple's x11.app?
ssh -X
to enable X forwarding (which defaults to disabled on the Os X
supplied ssh client).
Next question is, suppose you want X forwarding _on_ by default.
Is it as simple as editing ssh_config in /etc, or do you have to do
some crazy netinfo thing?
Hal Sadofsky Guest
-
How do I do this... re-paths
I am sure that this is a simple task, and hopefully I can give an uncomplicated description of what I am trying to do. I have a complex rectangular... -
Bringing paths into Photoshop from AI as PATHS
What happened to bringing paths into Photoshop from Illustrator as PATHS? Used to be able to copy paths into Photoshop from AI 8 as a path. Can this... -
Paths
Hi All After converting text to paths, is it possible in FH9 to unconvert it after it has been saved so undo won't work -- Kind Regards Gina... -
Help with paths
I have been using SSI would like to start using php From what I have seen php does not support absolute paths like SSI eg <!--#include... -
need general help with setting paths & man paths for apps
On Thu, 10 Jul 2003, solaris newbie wrote: That is one way, but a (perhaps) beter way would be to modify PATH in individual user's .profile. ... -
Dave Seaman #2
Re: paths and ssh connections
On 18 Jul 2003 15:07:41 -0700, Hal Sadofsky wrote:
> Christopher Masi <cjmasi@*nogarbageplease*rcn.com> writes:>> When I establish an ssh connetion from my PB 1400c to my Pismo or an ssh
>> connection from my Pismo to itself, my paths get screwed up.>> For example, in a terminal.app window I type "rasmol-272" and RasMol
>> v.2.7.2.1 launches; however, if I first do ssh and establish an ssh
>> connection to myself, rasmol-272 doesn't show up. Other programs
>> dissappear too. For example, xhost and man xhost give command not found
>> and no entry for responses. xclock gives a command not found too.>> So, what did I screw up? Any ideas?>> Oh yeah, why do I get a TERM_PROGRAM: undefined variable when I ssh, or
>> when xterm starts along with Apple's x11.app?> try doing> ssh -X> to enable X forwarding (which defaults to disabled on the Os X
> supplied ssh client).> Next question is, suppose you want X forwarding _on_ by default.It's even simpler than that, since you don't even need to use sudo or the> Is it as simple as editing ssh_config in /etc, or do you have to do
> some crazy netinfo thing?
equivalent.
Just create your own personal ~/.ssh/config file and include the entry
ForwardX11 yes
which overrides the entry in /etc/ssh_config. While you are at it, that
same file is also the place where you can enter host definitions, so that
you can simply type
ssh otherhost
and have ssh automatically expand it to
ssh [email]mylogin@otherhost.some.doma[/email]in
as described in the ssh_config(5) man page. The configuration lines to
do this would be
Host otherhost
User mylogin
HostName otherhost.some.domain
and you can have entries like these for each host you connect to. In my
case, I don't need the "User" line, since it is always the same.
--
Dave Seaman
Judge Yohn's mistakes revealed in Mumia Abu-Jamal ruling.
<http://www.commoncouragepress.com/index.cfm?action=book&bookid=228>
Dave Seaman Guest
-
WeSaySo #3
Re: paths and ssh connections
Christopher Masi <cjmasi@*nogarbageplease*rcn.com> wrote on Fri 18 Jul
2003 01:24:45p:
/usr/share/tcsh/examples/aliases is being read by your shell, but it> Oh yeah, why do I get a TERM_PROGRAM: undefined variable when I ssh,
> or when xterm starts along with Apple's x11.app?
has a typo that Apple has not fixed.
Change the TERM_PROGRAM section near the bottom of that file to this.
Basically, you're just wrapping the original if-then around another if-
then that checks to see if TERM_PROGRAM has been set. Be careful with
the settermtitle line. There are control characters in there that
might not travel well over a copy/paste and Usenet. That line is not
changed in the fix, but I included it here for clarity.
if ($?TERM_PROGRAM) then
if ("$TERM_PROGRAM" == "Apple_Terminal") then
alias settermtitle 'echo -n "^[]2;\!:1^G"'
endif
endif
hn
WeSaySo Guest
-
Hal Sadofsky #4
Re: paths and ssh connections
Dave Seaman <dseaman@no.such.host> writes:
Good point. But I'd still like to know if editing /etc/ssh_config works> On 18 Jul 2003 15:07:41 -0700, Hal Sadofsky wrote:>> > Christopher Masi <cjmasi@*nogarbageplease*rcn.com> writes:>> >> When I establish an ssh connetion from my PB 1400c to my Pismo or an ssh
> >> connection from my Pismo to itself, my paths get screwed up.>> >> For example, in a terminal.app window I type "rasmol-272" and RasMol
> >> v.2.7.2.1 launches; however, if I first do ssh and establish an ssh
> >> connection to myself, rasmol-272 doesn't show up. Other programs
> >> dissappear too. For example, xhost and man xhost give command not found
> >> and no entry for responses. xclock gives a command not found too.>> >> So, what did I screw up? Any ideas?>> >> Oh yeah, why do I get a TERM_PROGRAM: undefined variable when I ssh, or
> >> when xterm starts along with Apple's x11.app?>> > try doing>> > ssh -X>> > to enable X forwarding (which defaults to disabled on the Os X
> > supplied ssh client).>> > Next question is, suppose you want X forwarding _on_ by default.>> > Is it as simple as editing ssh_config in /etc, or do you have to do
> > some crazy netinfo thing?
> It's even simpler than that, since you don't even need to use sudo or the
> equivalent.
>
> Just create your own personal ~/.ssh/config file and include the entry
>
> ForwardX11 yes
to change the machine's behavior globally (for all accounts) or if
some netinfo thing is necessary.
More to the point, I'd like to generally understand when I have to use
netinfo, and when I can edit the configuration file in /etc!
Hal Sadofsky Guest
-
Christopher Masi #5
Re: paths and ssh connections
In article <cgsmp3biaa.fsf@darkwing.uoregon.edu>,
Hal Sadofsky <sadofsky@darkwing.uoregon.edu> wrote:
I don't think it is the X forwarding option that is the problem. I did> Christopher Masi <cjmasi@*nogarbageplease*rcn.com> writes:
>>> > When I establish an ssh connetion from my PB 1400c to my Pismo or an ssh
> > connection from my Pismo to itself, my paths get screwed up.
> >
> > For example, in a terminal.app window I type "rasmol-272" and RasMol
> > v.2.7.2.1 launches; however, if I first do ssh and establish an ssh
> > connection to myself, rasmol-272 doesn't show up. Other programs
> > dissappear too. For example, xhost and man xhost give command not found
> > and no entry for responses. xclock gives a command not found too.
> >
> > So, what did I screw up? Any ideas?
> >
> > Oh yeah, why do I get a TERM_PROGRAM: undefined variable when I ssh, or
> > when xterm starts along with Apple's x11.app?
> try doing
>
> ssh -X
>
> to enable X forwarding (which defaults to disabled on the Os X
> supplied ssh client).
>
> Next question is, suppose you want X forwarding _on_ by default.
>
> Is it as simple as editing ssh_config in /etc, or do you have to do
> some crazy netinfo thing?
ssh -l username 127.0.0.1 -X and I still got command not found. When I
check my environment after ssh'ing, I get the following for my path.
usr/bin:/bin:/usr/sbin:/sbin
My terminal.app path has more stuff in it. Can I add to my ssh path
using the global setting file, or ~/.ssh/config. Is it the same as
adding path info to .tcshrc?
Thanks!
Chris
Christopher Masi Guest
-
Christopher Masi #6
Re: paths and ssh connections
In article <cjmasi-1CCF2B.22462319072003@reader1.news.rcn.net>,
Christopher Masi <cjmasi@*nogarbageplease*rcn.com> wrote:
Thanks to WeSaySo <tryandguessit@yahoo.com>> In article <cgsmp3biaa.fsf@darkwing.uoregon.edu>,
> Hal Sadofsky <sadofsky@darkwing.uoregon.edu> wrote:
>>> > Christopher Masi <cjmasi@*nogarbageplease*rcn.com> writes:
> >> >> > > When I establish an ssh connetion from my PB 1400c to my Pismo or an ssh
> > > connection from my Pismo to itself, my paths get screwed up.
> > >
> > > For example, in a terminal.app window I type "rasmol-272" and RasMol
> > > v.2.7.2.1 launches; however, if I first do ssh and establish an ssh
> > > connection to myself, rasmol-272 doesn't show up. Other programs
> > > dissappear too. For example, xhost and man xhost give command not found
> > > and no entry for responses. xclock gives a command not found too.
> > >
> > > So, what did I screw up? Any ideas?
> > >
> > > Oh yeah, why do I get a TERM_PROGRAM: undefined variable when I ssh, or
> > > when xterm starts along with Apple's x11.app?
> > try doing
> >
> > ssh -X
> >
> > to enable X forwarding (which defaults to disabled on the Os X
> > supplied ssh client).
> >
> > Next question is, suppose you want X forwarding _on_ by default.
> >
> > Is it as simple as editing ssh_config in /etc, or do you have to do
> > some crazy netinfo thing?
> I don't think it is the X forwarding option that is the problem. I did
> ssh -l username 127.0.0.1 -X and I still got command not found. When I
> check my environment after ssh'ing, I get the following for my path.
>
> usr/bin:/bin:/usr/sbin:/sbin
>
> My terminal.app path has more stuff in it. Can I add to my ssh path
> using the global setting file, or ~/.ssh/config. Is it the same as
> adding path info to .tcshrc?
>
> Thanks!
> Chris
I fixed the "TERM_PROGRAM: undefined variable" thing as you suggested,
and suddenly all my paths appear in X11.app's xTerm and when I establish
ssh connections.
Thanks!
Chris
Christopher Masi Guest
-
Anno Siegel #7
Re: paths and ssh connections
Hal Sadofsky <sadofsky@darkwing.uoregon.edu> wrote in comp.sys.mac.system:
[big snip]
In general, if a configuration file is delivered with OS X, but not> More to the point, I'd like to generally understand when I have to use
> netinfo, and when I can edit the configuration file in /etc!
(normally) used, it will contain a comment to that effect. So, as a
first step, just edit the file you want to edit, but look for comments
first.
If a configuration file doesn't exist, or if you aren't sure if it
was delivered with the OS, it's harder. You can look at "man nidump"
to check the dump "format"s it provides. The format names are the
names of corresponding configuration files (minus the leading /etc/,
or whatever), like "hosts", "passwd", and so on. If there is *no*
corresponding format, the configuration file is almost certainly
active.
Otherwise, there is only poking around with NetInfo Manager to see
if there is something in NetInfo that looks like the corresponding
file.
The book _OS X for Unix Geeks_ (O'Reilly) has a comprehensive list (it
isn't long). IIRC it dedicates a chapter to this subject.
Anno
Anno Siegel Guest
-
Hal Sadofsky #8
Re: paths and ssh connections
[email]anno4000@lublin.zrz.tu-berlin.de[/email] (Anno Siegel) writes:
Thanks. This is helpful, and I guess not so tricky. I look at the> Hal Sadofsky <sadofsky@darkwing.uoregon.edu> wrote in comp.sys.mac.system:
>
> [big snip]
>>> > More to the point, I'd like to generally understand when I have to use
> > netinfo, and when I can edit the configuration file in /etc!
> In general, if a configuration file is delivered with OS X, but not
> (normally) used, it will contain a comment to that effect. So, as a
> first step, just edit the file you want to edit, but look for comments
> first.
difference between /etc/printcap and /etc/sshd_config and see quite
clearly that one is not worth editing and the other might be!
Thanks for the recommendation.> If a configuration file doesn't exist, or if you aren't sure if it
> was delivered with the OS, it's harder. You can look at "man nidump"
> to check the dump "format"s it provides. The format names are the
> names of corresponding configuration files (minus the leading /etc/,
> or whatever), like "hosts", "passwd", and so on. If there is *no*
> corresponding format, the configuration file is almost certainly
> active.
>
> Otherwise, there is only poking around with NetInfo Manager to see
> if there is something in NetInfo that looks like the corresponding
> file.
>
> The book _OS X for Unix Geeks_ (O'Reilly) has a comprehensive list (it
> isn't long). IIRC it dedicates a chapter to this subject.
Hal Sadofsky Guest



Reply With Quote

