www.virtualacorn.co.uk/forum

For support and advice on VirtualAcorn products
Forums now closed. This is an HTML only record of the content.
HTML version of Forum generated Thursday 24th May 2018

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: GCCSDK + VirtualAcorn
PostPosted: Fri Oct 20, 2006 10:13 am 
Offline

Joined: Tue Jul 26, 2005 5:36 pm
Posts: 108
Hi,
Has anyone set up their VRPC system to do compiling on the Windows system underneath? If so, does it work well? Is it complicated to set up? How does it work?
If not, is it possible?
Thanks a lot,
Adam


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 21, 2006 2:34 pm 
Offline

Joined: Mon Sep 20, 2004 11:29 am
Posts: 8
Yes. You can install Cygwin on Windows, which gives a Unix-like environment. Then you can install the Cygwin sshd package (or telnetd, perhaps). Once this is running it's possibl to SSH (or telnet) into localhost. You can then do this from a Nettle(SSH) window under VA, meaning you can control the cygwin/Windows side from RISC OS. If you make sure the cygwin home directory is mounted on VA, you can see the same files under VA as under cygwin.
Then it's a case of installing GCCSDK - pretty much follow the installation instructions. It behaves pretty much the same as building on Linux. Files output by cygwin with RISC OS filetypes (program,ff8) should be directly runnable from the emulator.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 25, 2006 10:20 pm 
Offline

Joined: Tue Jul 26, 2005 5:36 pm
Posts: 108
Thanks caliston :)
I've installed sshd (part of openssh) in Cygwin and set it up as per the instructions here but now I'm a bit stuck. How do I log in from RISC OS - specifically, what username and password would I use?
Adam


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 26, 2006 12:19 am 
Offline

Joined: Mon Sep 20, 2004 11:29 am
Posts: 8
Just use your normal Windows username and password. You might have to start sshd manually from a Cygwin shell in Windows:
$ /usr/sbin/sshd
then test logging in from Windows:
$ ssh localhost
If that works you should be able to now login from VRPC.
It might be preferable to start sshd manually like this rather than using cygrunsrv if you're not planning to use it all the time - running it as a service means it's running all the time and so your machine is more vulnerable.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 28, 2006 11:36 pm 
Offline

Joined: Tue Jul 26, 2005 5:36 pm
Posts: 108
caliston wrote:
Just use your normal Windows username and password.
Hmm, my password is nothing but just hitting return when I ssh gives "wrong password".
Quote:
You might have to start sshd manually from a Cygwin shell in Windows:

$ /usr/sbin/sshd

That gives:
Code:
/var/empty must be owned by root and not group or world-writable.

:(
Adam


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 10:57 pm 
Offline

Joined: Mon Sep 20, 2004 11:29 am
Posts: 8
You might have to do:
$ ssh-host-config
and
$ ssh-user-config
A blank password on a remote login program is a huge security risk. (Mitigated slightly if you restrict connections to localhost only, but not entirely). Could you set a Windows password? You might have to restart sshd/cygwin before trying again.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 03, 2006 7:35 pm 
Offline

Joined: Tue Jul 26, 2005 5:36 pm
Posts: 108
caliston wrote:
then test logging in from Windows:
$ ssh localhost

What should I expect to happen? I just get a message saying:
Code:
Last login: Sun Dec  3 18:26:59 2006 from localhost
and a standard $ prompt.

Quote:
A blank password on a remote login program is a huge security risk. (Mitigated slightly if you restrict connections to localhost only, but not entirely). Could you set a Windows password?

Hmm, I don't really want to have to enter a password whenever I turn on my machine. Can you set up a specific user with a password in sshd? (My situation is doubly convoluted as my Windows username has a space in it so my cygwin username is different to my Windows one :()
Adam


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 03, 2006 9:32 pm 
Offline

Joined: Tue Jul 26, 2005 5:36 pm
Posts: 108
Hmm, OK it seems my ssh problems are stemming from the username oddity :( I'll have to see if I can investigate further....
Adam


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 07, 2006 1:39 pm 
Offline

Joined: Mon Sep 20, 2004 11:29 am
Posts: 8
Quote:
What should I expect to happen? I just get a message saying:
Code:
Last login: Sun Dec  3 18:26:59 2006 from localhost



That, in fact, is success! You managed to login to your Cygwin session. Now try it from VRPC. If you have trouble, from Windows try:

Code:
ssh -1 localhost

to check SSH version 1 is enabled (NettleSSH doesn't support the newer SSH 2).


Top
 Profile  
 
 
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

   
cron
Forums originally Powered by phpBB © 2007 phpBB Group. Contents © 3QD Developments Ltd 2018 version no. 1.07