Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
14 crawler(s) on-line.
 104 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 Troels:  7 mins ago
 Gunnar:  22 mins ago
 Rob:  27 mins ago
 zipper:  51 mins ago
 amigakit:  1 hr 47 mins ago
 OneTimer1:  1 hr 53 mins ago
 NutsAboutAmiga:  1 hr 56 mins ago
 kolla:  2 hrs 8 mins ago
 Comi:  2 hrs 38 mins ago
 vox:  3 hrs 24 mins ago

/  Forum Index
   /  Amiga PPC Linux
      /  SOLVED: Use OS4 on X1000 to access Linux box
Register To Post

Goto page ( 1 | 2 Next Page )
PosterThread
ggw 
SOLVED: Use OS4 on X1000 to access Linux box
Posted on 28-Jul-2015 1:51:29
#1 ]
Super Member
Joined: 24-May-2003
Posts: 1106
From: Austin, TX

I cannot get visually close enough to a PPC laptop Linux box to work with both eyes focused.
My X1000 is set to the perfect and comfortable distance, 17 inches +/- 1 inch

I want to edit files on my X1000, send them to the laptop and then issue CLI commands to its XTerm window. The extremely few commands will be for compilation and running a CLI QA of the resulting program. That is all.

Before I start re-inventing the wheel, have any of you done Amiga -> Linux commands? I'm interested in pretty much a done deal or I might as well get busy inventing.

Linux is on a (circa 2002) PPC iBook running Debian Wheezy with the OpenBox desktop.

I expect to boot up, login, set it next to the X1000, run whatever setup on Wheezy, then move to the X1000 for a large screen, decidedly better keyboard, and "get to work".

Any advice?

George

[I have numerous trips to my wife's ---long Dr's appts---- to take the laptop and get work done there or I'd scrap the whole laptop business (as unpleasant).][

Last edited by ggw on 06-Aug-2015 at 03:33 AM.

_________________
..effects of civilization upon...nature, the growing gap between what education was supposed to accomplish and what it consisted of, the national debt and...high taxes, the problem of the excess cost of medical care -- Philip Wylie, 1951

 Status: Offline
Profile     Report this post  
AlexC 
Re: Give commands to a linux box from my X1000?
Posted on 28-Jul-2015 3:58:04
#2 ]
Super Member
Joined: 22-Jan-2004
Posts: 1300
From: City of Lost Angels, California.

@ggw

I use three different methods depending on the task at hand:

1) ssh, using amtelnet on the Amiga with ssl v1 enabled on the Linux side. That's great for issuing any shell command and even running midnight commander.

2) vnc, using the twinvnc client on the Amiga. That's good for accessing the desktop and everything but a bit too laggy for text editors unless you have a very fast connection.

3) web, using owb or odyssey on the Amiga side and webmin on the Linux side. That one is handy to manage the system, software, servers, etc.

I'm sure there are other options depending on what you need to do.

_________________
AlexC's free OS4 software collection

AmigaOne XE/X1000/X5000/UAE-PPC OS4 laptop/X-10 Home Automation

 Status: Offline
Profile     Report this post  
smf 
Re: Give commands to a linux box from my X1000?
Posted on 28-Jul-2015 4:11:52
#3 ]
Regular Member
Joined: 15-Mar-2003
Posts: 333
From: Växjö, Sweden

I mostly use Rdesktop in a tiny window on workbech running a terminal in fullscreen.

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: Give commands to a linux box from my X1000?
Posted on 28-Jul-2015 12:42:42
#4 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3203
From: Beds, UK

@ggw

I use SSH, with the command line SSH client.
Cursor keys don't always work properly, and if you're using nano or anything else like that you can forget it, but most other stuff works.

If I edit files I do so on the Amiga side with smbfs, and issue commands through SSH.

I didn't realise AmTelnet supported SSH, I'll check that out myself.

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
ggw 
Re: Give commands to a linux box from my X1000?
Posted on 2-Aug-2015 21:43:19
#5 ]
Super Member
Joined: 24-May-2003
Posts: 1106
From: Austin, TX

@Chris_Y

Some success.
I down loaded openssh from OS4Depot, unarchived it into RAM:

I did a
makedir DEVS:SSH
In S:user-startup I put
ASSIGN HOME: DEVS:SSH
setenv TERM amiga-8bit

Then in debian I added to my ~/.bashrc

case "$TERM" in
amiga-8bit)
printf "%s\n" "Found amiga-8bit"
stty -icrnl
;;
esac
==================================
RAM Disk:openssh/Utilities> ssh scan@192.168.0.4
scan@192.168.0.4's password:
Linux debian 3.2.0-4-powerpc #1 Debian 3.2.54-2 ppc
...
Found amiga-8bit
scan@debian:~$
==================================
But that is it. Whatever I type is buffered for OS4, none of it goes to the prompt.

In another window I
>status
blah blah blah...
>break all 9
then whatever I typed at the prompt above, is the printed/complained about by OS4.
==================================
Suggestions?

_________________
..effects of civilization upon...nature, the growing gap between what education was supposed to accomplish and what it consisted of, the national debt and...high taxes, the problem of the excess cost of medical care -- Philip Wylie, 1951

 Status: Offline
Profile     Report this post  
ggw 
Re: Give commands to a linux box from my X1000?
Posted on 2-Aug-2015 21:45:15
#6 ]
Super Member
Joined: 24-May-2003
Posts: 1106
From: Austin, TX

@smf

rdesktop is to login to a windows server.
I don't know what the linux equivalent of that would be.

_________________
..effects of civilization upon...nature, the growing gap between what education was supposed to accomplish and what it consisted of, the national debt and...high taxes, the problem of the excess cost of medical care -- Philip Wylie, 1951

 Status: Offline
Profile     Report this post  
kolla 
Re: Give commands to a linux box from my X1000?
Posted on 2-Aug-2015 23:41:13
#7 ]
Elite Member
Joined: 20-Aug-2003
Posts: 2859
From: Trondheim, Norway

@ggw

Try different console device, RAW: for example, or tweak console window settings. There is also VinCEd that is more prepared for this kind of stuff.

Last edited by kolla on 02-Aug-2015 at 11:43 PM.

_________________
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC

 Status: Offline
Profile     Report this post  
ggw 
Re: Give commands to a linux box from my X1000?
Posted on 3-Aug-2015 2:13:28
#8 ]
Super Member
Joined: 24-May-2003
Posts: 1106
From: Austin, TX

@kolla

vinceEd has been my console 10 years now (maybe more?)

_________________
..effects of civilization upon...nature, the growing gap between what education was supposed to accomplish and what it consisted of, the national debt and...high taxes, the problem of the excess cost of medical care -- Philip Wylie, 1951

 Status: Offline
Profile     Report this post  
kolla 
Re: Give commands to a linux box from my X1000?
Posted on 3-Aug-2015 2:40:34
#9 ]
Elite Member
Joined: 20-Aug-2003
Posts: 2859
From: Trondheim, Norway

@ggw

So the issues you describe here, is with using VinCEd (I never get casing right, I'm sure)?

If so, you can contact Thomas Richter for support, I am sure he can help. What really annoyed me with ssh on Amiga was that ctrl-c is not transmitted, but instead breaks ssh itself.

_________________
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC

 Status: Offline
Profile     Report this post  
broadblues 
Re: Give commands to a linux box from my X1000?
Posted on 3-Aug-2015 12:52:57
#10 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@ggw

Suggestions:

Verify that you do indeed have amiga-8bit termcap installed.
Verify that vinced actual needs that set.

Use the amigaos4 console, there is no need for vinced / kingcon etc now.

If available try amiga-h it's a fraction more compatable.

Do you have a HOME: assign on your x1k , ssh expects one?

I find most things work here, except cursor keys and some programs that don't listen to the termcap correctly. eg 'mail' doesn't work 'mutt' does (mostly)



Bear in mind that you can also execute individual commands via ssh and so do not need a inetractive session.

I had a script that synced PPaint src code with an svn checkout on my linux box, it's written in perl and lauched on the remote machine via ssh without problem.


_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: Give commands to a linux box from my X1000?
Posted on 3-Aug-2015 15:04:16
#11 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3203
From: Beds, UK

@ggw

I don't recall doing anything special here. Are you using the standard Shell/console-handler?

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
kolla 
Re: Give commands to a linux box from my X1000?
Posted on 3-Aug-2015 20:20:01
#12 ]
Elite Member
Joined: 20-Aug-2003
Posts: 2859
From: Trondheim, Norway

@broadblues

Does ssh-agent work on OS4, or do you use empty passphrase?

_________________
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC

 Status: Offline
Profile     Report this post  
salass00 
Re: Give commands to a linux box from my X1000?
Posted on 3-Aug-2015 21:22:32
#13 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2707
From: Finland

@kolla

Ssh-agent is working fine in the AmigaOS 4 port. I know because I've used it.

 Status: Offline
Profile     Report this post  
kolla 
Re: Give commands to a linux box from my X1000?
Posted on 3-Aug-2015 21:42:16
#14 ]
Elite Member
Joined: 20-Aug-2003
Posts: 2859
From: Trondheim, Norway

@salass00

Interesting. How are the socket communication implemented? I suppose FFS doesn't support socket files?

_________________
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC

 Status: Offline
Profile     Report this post  
ggw 
Re: Give commands to a linux box from my X1000?
Posted on 5-Aug-2015 1:27:23
#15 ]
Super Member
Joined: 24-May-2003
Posts: 1106
From: Austin, TX

@kolla

I've used (and am using) vincEd for 10+ years.
I do not own the OS4Final. Still at update 6.

How the [blank] should I know what is not doing what? That's why I asked for a "done-deal", else I'll just wander off into the weeds and eventually come across a usable path.

It seems that in this "thread of 14 messages (5 of those by me") I have to repeat in each msg what I have done... which is follow to the letter the suggestions given. Makes me feel like I'm not going about this in the best manner.

The amiga-8bit part. (I feel like I'm at a doctor's office where EVERYTIME you come in the door you have to re-tell them your life history.)
In S:user-startup I have
Assign HOME: Devs:SSH
setenv TERM amiga-8bit
I created the folder Devs:SSH
On the Linux box I added to ~/.bashrc
case "$TERM" in
amiga-8bit)
stty -icrnl
;;
esac

And a trace of that just before the stty indicates I am in that code block.

And when I "Ram:openssh/utilities/ssh -v scan@192.168.0.4" I get
blah, blah,...
debug1: Next authentication method: password
scan@192.168.0.4's password:
I type blindly the proper password to the scan account and get

debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
Linux debian 3.2.0-4-powerpc #1 Debian 3.2.54-2 ppc

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Aug 2 16:32:40 2015 from x1000
Found amiga-8bit
scan@debian:~$

Alas, until I start another window and "break all 9" any further typing at the prompt results in nothing. However, after the "break all 9", whatever I did blindly type is taken as command to vincEd.

End-of-story.

_________________
..effects of civilization upon...nature, the growing gap between what education was supposed to accomplish and what it consisted of, the national debt and...high taxes, the problem of the excess cost of medical care -- Philip Wylie, 1951

 Status: Offline
Profile     Report this post  
kolla 
Re: Give commands to a linux box from my X1000?
Posted on 5-Aug-2015 4:04:28
#16 ]
Elite Member
Joined: 20-Aug-2003
Posts: 2859
From: Trondheim, Norway

@ggw

So, you want help or not?

I suggest that you don't use vinced, and instead use CON: or RAW:, or that you contact Thomas Richter who wrote vinced and go through the settings with him.

OR

you ignore the security aspect, drop ssh alltogether and set up telnetd on your Linux box and one of many telnet clients available.

OR

you define your own protocol and make a custom daemon on the Linux side, for example a script triggered by inetd/xinetd, that accepts certain commandos (according to your self defined protocol), and then you can talk to this daemon from amiga by writing to tcp:linuxhost/port, for example from arexx, dopus buttons or whatever you like. I made a music player for DOpus5 using this method, to manage and play music files on a linux box.

OR

Set up VNC on Linux box and use a VNC client on Amiga

OR

Use rdesktop to reach a Windows box, and use Putty or whatever from there

OR

nevermind

Last edited by kolla on 05-Aug-2015 at 04:05 AM.

_________________
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC

 Status: Offline
Profile     Report this post  
Hypex 
Re: Give commands to a linux box from my X1000?
Posted on 5-Aug-2015 14:21:48
#17 ]
Elite Member
Joined: 6-May-2007
Posts: 11180
From: Greensborough, Australia

@ggw

If you were using Linux would you know how to set this up? Having used a Mactop keyboard I find them terrible. Whatever it is I always slip and press caps. Plus thay lack keypad on even the biggest ones.

Anyway before I went off, my point was, since the X1000 can run Linux and Debian at that, would it be easier to do this from Linux on the X1000?

This thread suggests there's little on the Amiga side that can work out of the box. Or if it can no one knows about it. Or if there is then out of the box shouldn't need a lot of work.

 Status: Offline
Profile     Report this post  
smf 
Re: Give commands to a linux box from my X1000?
Posted on 5-Aug-2015 15:27:25
#18 ]
Regular Member
Joined: 15-Mar-2003
Posts: 333
From: Växjö, Sweden

@ggw

Quote:
@smf

rdesktop is to login to a windows server.
I don't know what the linux equivalent of that would be.



You can install Rdesktop on linux too, that's what i have done to my rpi2, it works great for what i'm using it for. It's handy because when the amiga crash i just reboot and click on my icon for rdesktop and i'm back just where i were when i crashed. This method is surely not suitable for everyone but it is for me.

 Status: Offline
Profile     Report this post  
OneTimer1 
Re: Give commands to a linux box from my X1000?
Posted on 5-Aug-2015 19:41:47
#19 ]
Cult Member
Joined: 3-Aug-2015
Posts: 962
From: Unknown

@ggw

Try simple old telnet first.

Yes, it should work behind your firewall, at least when this firewall is in your router (like it should be)

Last edited by OneTimer1 on 05-Aug-2015 at 07:49 PM.
Last edited by OneTimer1 on 05-Aug-2015 at 07:42 PM.

 Status: Offline
Profile     Report this post  
tomazkid 
Re: Give commands to a linux box from my X1000?
Posted on 5-Aug-2015 23:29:51
#20 ]
Team Member
Joined: 31-Jul-2003
Posts: 11694
From: Kristianstad, Sweden

@ggw

Quote:
rdesktop is to login to a windows server.


Actually, there is a remote desktop for Linux too, so you can use rdp to Linux.

_________________
Site admins are people too..pooff!

 Status: Offline
Profile     Report this post  
Goto page ( 1 | 2 Next Page )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle