Re: [SLUG] X11 Forwarding over ssh

2008-11-16 Thread Daniel Pittman
Kyle [EMAIL PROTECTED] writes:

 can someone pls provide me with an idiot's guide to getting X11
 running over ssh.

Install xauth(1) on the remote machine.
Run 'ssh -X remote.host'
Run your x11 program.

 That is to say, I want to be able to ssh into a Linux box from Windows
 (or MAC or Linux natively - but primarily Windows) using putty and
 then have the gui come up for me.

[...]

 I have attempted to understand how to do it using putty, but I seem to
 get lost. Can anyone suggest an idiot proof tutorial or some such
 which actually refers to up-to-date versions and processes/requirements?

Well, with PuTTY, turn on X11 forwarding in the connection options
rather than running 'ssh -X', but otherwise the process is identical.

What went wrong when you tried running your remote X11 applications?

Regards,
Daniel
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] X11 Forwarding over ssh

2008-11-16 Thread Jeff Waugh
quote who=Kyle

 I know I could use VNC, but;

 1. I have to be able to use std ports to get thru corporate firewalls and
 2. I would like to have that connection secure

 And as best I can tell VNC doesn't support ssh; not to mention I  
 wouldn't know how to send it through a std port without interfering with  
 other services on those ports.

Look at the ssh man page (or Google) for port forwarding -- that will allow
you to do VNC over ssh. If you have any trouble, give SLUG another call.

:-)

- Jeff

-- 
Robot Parade  http://www.robotparade.com.au/
 
  m. +61 423 989 818 p. +61 2 9318 0284 f. +61 2 9318 2884
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] X11 Forwarding over ssh

2008-11-16 Thread Owen Townend
2008/11/16 Kyle [EMAIL PROTECTED]:
 Peter,

 for some clarification please.

 Peter Chubb wrote:

 On Linux, BSD, Solaris, MacOSX or other Unices that are running X
 locally, you do

 $ ssh -f -X host xterm 

 On the host you need to have
 X11Forwarding yes
 X11DisplayOffset 10

 in /etc/ssh/sshd_config

 ## So to be clear on this;

 The 2 X11 params above are set in sshd_confing on the host I wish to control
 (controlled host)?

 From a Linux box, I would issue your above command; and from an OSX host, I
 can use the X11.app (which is I believe and Xterm application). Correct?

 And providing you have xauth and xterm installed on the remote host,
 you should get a local terminal window, from which you can run
 anything you want.

 ## So these need to be installed on the controlled host?


 You *won't* be able to run the window manager there (is that what you
 mean by `The gui' ???).  It runs on your local machine.


 ## I can see the possibility for confusion here.

 To be clear;  My initial question has to do with running the controlled
 host's desktop much like a VNC or RDP session. Which host it physically
 runs on, I don't suppose I really mind too much. So long as I can have it
 all running through std. corporately-available ports.

 You should however be able to run anything else.

 The way this works is that clients on the host talk to the SSH proxy
 on that host which tunnels the protocol back to the display indicated by
 the
 DISPLAY variable in ssh's environment on yo

 ## But if I understand your post correctly, you're telling me how to connect
 to a host and then run X-based applications displaying on my controlling
 host, but which are actually running from the controlled-host?

Hey,

Why not just use VNC over ssh?

Crash course:
Setup the vnc server on the linux box (system-preferences-remote
desktop on Ubuntu)
Then in the putty options add a port forward from an available port
(e.g. '12345') to 'localhost:5900'.
On your windows VNC client you then connect to 'localhost:12345' and
it should connect to the remote VNC server.

VNC might not be secure or run on the desired (corporate friendly)
port, but forwarding it over ssh can help solve both of those
issues...

cheers,
Owen.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Desktop integration with Google Calendar and Remember the Milk

2008-11-16 Thread Sridhar Dhanapalan
I frequently move between computers, and so have found the 'old way'
of keeping all my communications and organisation on one computer to
be increasingly limiting. Based on recommendations, I've made the
effort to migrate to Google Mail, Google Calendar and Remember the
Milk. While it's nice to be free from specific machines, I have found
the desktop integration to be lacking.

My main bugbear is desktop notification. Gmail is fine here, as it
uses standard mail protocols (its IMAP implementation is
'interesting', but it does work) - a desktop applet polls the inbox
and tells me when there's something new. The same can't be said for
Google Calendar and Remember the Milk. How can I be notified when
there is an appointment or to-do item due? Gcal can show a pop-up
within the Web browser window (so I need Firefox to be open and
visible at all times for this to be useful). SMS and e-mail
notification are nice, but not optimal. Remember the Milk has a
similar problem, except that SMS reminders don't work here (ironic
considering the company is based on Chatswood, but perhaps
understandable given how telcos operate here).

What I want is a desktop reminder similar to what you'd get with
Korganiser/Kontact, Evolution and so on - something in-my-face that I
can't miss, but with an option to snooze/suspend. It should also not
be dependent on a Web browser being in the foreground (or even open at
all). Gcal and RTM _should_ allow for this easily, except that they
don't export VALARM parameters in their ICAL feeds. Currently I just
use the e-mail notification, but that isn't optimal.

So, how does one have their head in the cloud without losing sight of
the real world?

- Sridhar

-- 
Bring choice back to your computer.
http://www.linux.org.au/linux
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Desktop integration with Google Calendar and Remember the Milk

2008-11-16 Thread Michael Chesterton


On 17/11/2008, at 12:08 AM, Sridhar Dhanapalan wrote:


So, how does one have their head in the cloud without losing sight of
the real world?



LSD.

Have you heard of CalDAV? It's all shiny and new, but google supports  
it, and

there are linux aps out there.

--

http://chesterton.id.au/blog/
http://barrang.com.au/


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] X11 Forwarding over ssh

2008-11-16 Thread Kyle

As ever,

ask SLUG and you end up with 5 different ways of doing it.  :-)

Thanks all. I should be able to get at least one of those working.

Daniel,

most common problem I come across doing it the remote X11 way is no 
display setup. And never sure which particular variable it is that the 
relevant appl. wants. Aside from that however, the wish to run the 
'desktop' (a.k.a Window Manager - I guess) is so I can leave programs 
running, log in and check on their progress.



Kind Regards

Kyle
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Re: Ubuntu Ibex Network Manager Prepaid Wireless Broadband Question

2008-11-16 Thread Dave Kempe

bill wrote:



See http://ubuntuforums.org/showthread.php?t=964920

There seems to be problems with Network Manager. Using the Kubuntu 
version of Intrepid Ibex I cant connect to my Ntwork LAN.




yeah I have been following the bug
https://bugs.launchpad.net/bugs/259278
some very mixed results in there, but might be more helpful than the forums.
Nevertheless, I don't think its been fixed yet.

Dave
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] X11 Forwarding over ssh

2008-11-16 Thread Daniel Pittman
Kyle [EMAIL PROTECTED] writes:

 As ever,
 ask SLUG and you end up with 5 different ways of doing it.:-)
 Thanks all. I should be able to get at least one of those working.

 Daniel,

 most common problem I come across doing it the remote X11 way is no display
 setup. And never sure which particular variable it is that the relevant
 appl. wants.

Well, the particular variable is 'DISPLAY', which tells the X11
applications which display server to talk to.

ssh X forwarding /should/ set that up for you automatically, including
authentication, so that says that something went wrong at that stage.

However...

 Aside from that however, the wish to run the 'desktop' (a.k.a Window
 Manager - I guess) is so I can leave programs running, log in and
 check on their progress.

...for that, you need something other than X forwarding -- X11 has no
native display disconnection or relocation capabilities, so you would be
starting a new session and then shutting it down each time.

If you intend to do a significant amount of work remotely, especially
over high latency links, then I recommend NX, which others have also
mentioned.  The performance is significantly better than VNC.

Regards,
Daniel
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] A command question.

2008-11-16 Thread Jobst Schmalenbach

Put this into your .bashrc file:

function fstr()
{ 
OPTIND=1
local case= 
local usage=fstr: find string in files.\nUsage: fstr [-i] \pattern\ 
[\filename pattern\] 
while getopts :it opt
do
case $opt in
i) case=-i  ;;
*) echo $usage; return;;
esac
done
shift $(( $OPTIND - 1 ))
if [ $# -lt 1 ]; then
echo $usage
return;
fi
local SMSO=$(tput smso)
local RMSO=$(tput rmso)
find . -type f -name ${2:-*} -print0 | xargs -0 grep -sn ${case} $1 
2- | sed s/$1/${SMSO}\0${RMSO}/gI | more
}

... comes with the lot, even highlighting.

;-)


Jobst













On Fri, Nov 14, 2008 at 07:14:22PM +1100, [EMAIL PROTECTED] ([EMAIL PROTECTED]) 
wrote:
 Is there a command that finds a file containing a certain word?
 
 find and apropos don't. They work on filenames only.
 
 Using Hardy H.
 
 Any suggestions gratefully etc.
 
 Bill Bennett
 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

-- 
When you lose, don't lose the lesson.

  | |0| |   Jobst Schmalenbach, [EMAIL PROTECTED], General Manager
  | | |0|   Barrett Consulting Group P/L  The Meditation Room P/L
  |0|0|0|   +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Desktop integration with Google Calendar and Remember the Milk

2008-11-16 Thread Rev Simon Rumble
This one time, at band camp, Sridhar Dhanapalan wrote:

 What I want is a desktop reminder similar to what you'd get with
 Korganiser/Kontact, Evolution and so on - something in-my-face that I
 can't miss, but with an option to snooze/suspend. It should also not
 be dependent on a Web browser being in the foreground (or even open at
 all). Gcal and RTM _should_ allow for this easily, except that they
 don't export VALARM parameters in their ICAL feeds. Currently I just
 use the e-mail notification, but that isn't optimal.

You can cobble together a couple of different services to get what you 
want.

imified.com provides an instant message front-end to RTM and Google 
Calendar.  This could work well for your desktop reminders.

I synchronise my phone with my Google Calendar using goosync.com's 
service, and find it quite stable and reliable.  Having my calendar 
with you wherever you go is perhaps the biggest productivity improvement 
I've had in recent years.  There's also a tool to sync Outlook with your 
Google Calendar -- sadly I'm forced to use Outlook at work, but this way 
I can also sync it with my phone.

Finally, check out the Firefox extension that overlays RTM over your 
gmail window.  It's very very cool to have your todos right next 
http://www.rememberthemilk.com/services/gmail/

You're running kinda close to the state-of-the-art by putting all your 
stuff in the cloud, so it's not quite as beautiful as it should be.

-- 
Rev Simon Rumble [EMAIL PROTECTED]
www.rumble.net

The Tourist Engineer
Nerds need vacations too.
http://engineer.openguides.org/

 If you have an apple and I have an apple and we exchange
  apples then you and I will still each have one apple. But
  if you have an idea and I have an idea and we exchange
  these ideas, then each of us will have two ideas.
- George Bernard Shaw
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] X11 Forwarding over ssh

2008-11-16 Thread jam
On Monday 17 November 2008 06:10:16 [EMAIL PROTECTED] wrote:
 ask SLUG and you end up with 5 different ways of doing it.  :-)

 Thanks all. I should be able to get at least one of those working.

 Daniel,

 most common problem I come across doing it the remote X11 way is no
 display setup. And never sure which particular variable it is that the
 relevant appl. wants. Aside from that however, the wish to run the
 'desktop' (a.k.a Window Manager - I guess) is so I can leave programs
 running, log in and check on their progress.

There are tantalizing hints in TBM but I've not made any work, so anyone ...

I'm logged into THIS machine and I want to run a program on THIS machine but 
display on THAT machine.

Thanks
James

PS using ssh, not disable access control and enable tcp/ip:
export DISPLAY=THAT.machine:0
THISprogram
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] X11 Forwarding over ssh

2008-11-16 Thread Daniel Pittman
jam [EMAIL PROTECTED] writes:
 On Monday 17 November 2008 06:10:16 [EMAIL PROTECTED] wrote:
 ask SLUG and you end up with 5 different ways of doing it.  :-)

 Thanks all. I should be able to get at least one of those working.

 Daniel,

 most common problem I come across doing it the remote X11 way is no
 display setup. And never sure which particular variable it is that the
 relevant appl. wants. Aside from that however, the wish to run the
 'desktop' (a.k.a Window Manager - I guess) is so I can leave programs
 running, log in and check on their progress.

 There are tantalizing hints in TBM but I've not made any work, so anyone ...

 I'm logged into THIS machine and I want to run a program on THIS
 machine but display on THAT machine.

Which machine are you physically located in front of?  Specifically, are
you sitting in front of THAT, and logged in to THIS via ssh?

If so it should be as simple as passing '-X' to your ssh session, and
running your application on THIS.

If that /doesn't/ work, can you post:

ssh THIS env | grep DISPLAY
ssh THIS type xauth
ssh -X -v THIS /usr/bin/xterm

(If you don't have /usr/bin/xterm on THIS then, please, substitute some
 other X11 program that is installed.)

That will help work out where the process is going wrong

Regards,
Daniel
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] A command question.

2008-11-16 Thread Amos Shapira
2008/11/17 Jobst Schmalenbach [EMAIL PROTECTED]:

 Put this into your .bashrc file:

 function fstr()
 {
OPTIND=1
local case= 
local usage=fstr: find string in files.\nUsage: fstr [-i] \pattern\ 
 [\filename pattern\] 
while getopts :it opt
...
  find . -type f -name ${2:-*} -print0 | xargs -0 grep -sn ${case} $1 2- 
 | sed s/$1/${SMSO}\0${RMSO}/gI | more

It's a nice excercise in bash scripting but quiet redundant with
today's GNU grep:
-R/-r/--recursive will replace the find
--include=pattern will replace find's -name ... (though many times I
use --exclude \*.svn-base to skip SVN files)
--colour will highlight the results

Less' -R/--RAW-CONTROl-CHARS will help page through the highlighted output.

So in the end you can achieve the same result with something like:

grep -r --colour pattern directory/ | less -R

--Amos
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] X11 Forwarding over ssh

2008-11-16 Thread jam
On Monday 17 November 2008 10:00:07 [EMAIL PROTECTED] wrote:
 am [EMAIL PROTECTED] writes:
  On Monday 17 November 2008 06:10:16 [EMAIL PROTECTED] wrote:
  ask SLUG and you end up with 5 different ways of doing it.  :-)
 
  Thanks all. I should be able to get at least one of those working.
 
  Daniel,
 
  most common problem I come across doing it the remote X11 way is no
  display setup. And never sure which particular variable it is that the
  relevant appl. wants. Aside from that however, the wish to run the
  'desktop' (a.k.a Window Manager - I guess) is so I can leave programs
  running, log in and check on their progress.
 
  There are tantalizing hints in TBM but I've not made any work, so anyone
  ...
 
  I'm logged into THIS machine and I want to run a program on THIS
  machine but display on THAT machine.

 Which machine are you physically located in front of?  Specifically, are
 you sitting in front of THAT, and logged in to THIS via ssh?

 If so it should be as simple as passing '-X' to your ssh session, and
 running your application on THIS.

 If that /doesn't/ work, can you post:

     ssh THIS env | grep DISPLAY
     ssh THIS type xauth
     ssh -X -v THIS /usr/bin/xterm

 (If you don't have /usr/bin/xterm on THIS then, please, substitute some
  other X11 program that is installed.)

 That will help work out where the process is going wrong

Not a trivial question :-) and not as simple as -X 

I'm sitting in front of THIS machine, and logged in
I run a program on this machine, say xeyes or xmsg
I want the display of that program on THAT machine

James
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html