Remote access to your CNC machine

More
23 Jan 2013 02:29 - 24 Jan 2013 00:36 #28985 by kangus
kangus created the topic: Remote access to your CNC machine
I just downloaded and installed LinuxCNC then Googled around and found all the applications needed for remote access, here is my list:

## NOTE: my machines are behind a firewall, all local access is secure behind locked doors
## My Windows based machines are Windows 7 and XP
## I named my computer CNC during the install
## First get the user root to work
sudo -I
passwd root
## logout and login as root
## now get a ssh server up for remote access, install the wrapper for unknown WiFi devices, install a
## RDP server for windows to remote access the server and then install file sharing
apt-get -y install openssh-server ndisgtk xrdp samba

## or one at a time:
apt-get install openssh-server
## I use putty as a windows client www.putty.org/
## if you have a USB WiFi device 10.04 can't use:
apt-get install ndisgtk
## after it is installed you can open System/Administration/Windows Wireless Drivers and install the
## XP/x86 inf file then configure the WiFi network.

apt-get install xrdp
## www.liberiangeek.net/2011/06/connect-to-...-via-remote-desktop/

apt-get install samba
## edit sambas config file installing your net workgroup name and uncomment the security=user line
nano /etc/samba/smb.conf
workgroup=myworkgroup
security=user
## At the bottom of the smb.conf add: ([share] is the share name for drive mapping)
[share]
comment = Ubuntu File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
## save and exit
mkdir -p /srv/samba/share
chown nobody.nogroup /srv/samba/share/
restart smbd
restart nmbd
Pasted from < help.ubuntu.com/10.04/serverguide/samba-fileserver.html >

## Webmin a tool to manage the server from a WEB Browser
wget prdownloads.sourceforge.net/webadmin/webmin_1.610_all.deb
dpkg --install webmin_1.610_all.deb
Pasted from < www.webmin.com/deb.html >
## after it fails
apt-get -f install

## edit the hosts file and add the IP of the ubuntu server and alias by the name you gave it
## /windows/system32/drivers/etc/hosts is hidden and you must be admin to save it, if you use
## notepad to edit it then use Save As with *.* and save the file as hosts, you should get a prompt
## telling you that you're over writing a file.
## open a browser to https:\\YOURSERVERALAIS:10000 and login as root, from the menu select servers/samba/User
## List and select the user you will use to create the drive mapping on your windows desktop, enter the
## users password and exit and now you can create the drive mapping on your windows computers.
## Now you can use YOURSERVERALAIS to gain access to the machine with ssh client, RDP client or a
## browser

What ever you do DONOT apt-get tasksel then try to install LAMP, it will remove everything including your desktop then fail!
Now logout and login as a normal user!

Nice job on your packaging LinuxCNC, simple to install without the blot!

Update: Has an issue with the screen saver not working:
## I tried adjusting compiz by installing a manager
apt-get install compizconfig-settings-manager
## that didn't work, screen saver still would not function
## Fix the screen saver issue
Apt-get install fusion-icon
## Then select Metacity was the windows manager seems to fix it
Last Edit: 24 Jan 2013 00:36 by kangus. Reason: More software to load
More
23 Jan 2013 07:45 - 23 Jan 2013 07:47 #28993 by birchy
birchy replied the topic: Remote access to your CNC machine
Surely SSH/SCP with pass key and terminal access is easier than installing all that? If you're a geek like me. :woohoo:
Last Edit: 23 Jan 2013 07:47 by birchy.
More
24 Jan 2013 00:46 - 24 Jan 2013 01:08 #29031 by kangus
kangus replied the topic: Remote access to your CNC machine
It was a lot of googling to get all the parts but it was worth it; now I sit in my computer room on my workstation with my 32" monitors, twin quad 3.2Ghz Xeons, I can use Microsoft's Remote Desktop Connection tool to control my LinuxCNC box as it sits in the shop at 35 degrees!
:blush:
Attachments:
Last Edit: 24 Jan 2013 01:08 by kangus. Reason: Added another image
More
28 Jan 2013 01:22 #29190 by birchy
birchy replied the topic: Remote access to your CNC machine
Just for plain remote desktop, you can use these simple steps: wiki.ubuntu.com/Lubuntu/RemoteDesktop . RemoteDesktop is already installed in Ubuntu. You just have to enable/configure it.

And for file sharing SCP is very easy to use. You could also use RSYNC to automatically copy files/folders if you always use the same source and destination paths.
More
28 Jan 2013 05:14 #29202 by kangus
kangus replied the topic: Remote access to your CNC machine
I did do the simple steps for remote file serving; apt-get install xrdp

Rsync is from samba.org but not the GUI part.

SCP, in order to use scp I need WINSCP install on my windows machine.

I could use wget/wput but that defeats the purpose; I wouldn't get to spend quality time figuring out how to do something! :woohoo:

It's all what you are use to, I have xrdp on two Raspberry-PI's so I can run them headless, I've been using Samba for a while and. WEBMIN is just a fast means to maintain linux boxes from my windows workstation without having to hook monitors to the linux boxes.
:)
Now on to something good, installing a new spindle motor on my lathe and figuring out how to do it!
More
20 Apr 2017 14:48 #91689 by ElenRey
ElenRey replied the topic: Remote access to your CNC machine
Here is an article about remote accessing CNC macine - www.eltima.com/cnc-machine-software/ . Have anybody used this application?
More
20 Apr 2017 15:46 #91695 by tommylight
tommylight replied the topic: Remote access to your CNC machine

ElenRey wrote: Here is an article about remote accessing CNC macine - www.eltima.com/cnc-machine-software/ . Have anybody used this application?

That is for windows machines, not Linux.
I think that is for DNC type of machines, so it sends all the data and then starts the machine.
This post was refering to actual control of the machine, not just sending gcode to it.
The following user(s) said Thank You: ElenRey
More
21 Apr 2017 11:06 #91769 by andypugh
andypugh replied the topic: Remote access to your CNC machine
I think you can do all this already with LinuxCNC.

(Lots of different ways to do it, depending on exactly what is required)

Here is something I often do when running a long job, I create a little window on the Mac in my living room that keeps my apprised of whether the mill is still running or needs a toolchange / has finished.

1) Connect to the CNC controller from the Mac
ssh -Y andypugh@mill.local
2) Open a halmeter to monitor a useful HAL pin
halcmd loadusr halmeter -s pin motion.program-line

As long as the numbers keep changing, the machine is running. When waiting for a (manual) toolchange or when finished, the value goes to zero.

Using ssh -Y and running "linuxcnc" from the Mac terminal I can have the entire CNC GUI on the Mac rather than on the controller, but that is rarely useful (might be OK with a camera in the workshop). Alternatively remote-desktop can be used to display the CNC screen on both computers.
More
21 Apr 2017 15:25 #91791 by ElenRey
ElenRey replied the topic: Remote access to your CNC machine
tommylight, you are right. This soft is not for controlling cnc, it allows to access a machine remotely. But on the product page ( www.eltima.com/products/serial-over-ethernet/ ) I found linux version.
The following user(s) said Thank You: tommylight
Time to create page: 0.102 seconds
Powered by Kunena Forum