LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2007, 01:34 AM   #1
rocket1356
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Rep: Reputation: 0
How to connect to a Linux machine using VB


Anyone know what component or where to get a tutorial on how to connect to a LINUX machine using a VB app?

I am trying to create a WIN32 Visual Basic application that communicates to a LINUX machine. I will need to read some file info from the LINUX machine and display it in the application. If change is need I will write the change to the file.

Thanks.
 
Old 06-22-2007, 01:49 AM   #2
excel28
Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 72

Rep: Reputation: 15
I'm guessing all you really need to do is make a server/client program. The server will be on the linux system, and the client would be on your windows system.
 
Old 06-22-2007, 03:29 AM   #3
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
err.. to much of method to do, the simplest way is:-
1. make sure the linux server install samba and the services is turn on (complete this task your linux almost become a windows file server)
2. mount the share folder into windows as a network drive (maybe U
3. Fire up your vb application to edit file in U:\

Of course, there is something to consider, included the workgroup, user, password to consider.

* you can use another way like ssh file system, nfs, ftp but all using the same scenario.

Regards,
Ks
 
Old 06-23-2007, 01:31 AM   #4
rocket1356
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Original Poster
Rep: Reputation: 0
I do not know if I can install SAMBA on the Linux Box. The LINUX OS is running on a 512mb flash drive. How big is this SAMBA?

Also, the LINUX server has an SSH server. I do not know how to work VB with ssh. Is there any library or control component for it?
 
Old 06-23-2007, 01:34 AM   #5
rocket1356
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Also, the customer will be connecting to multiple LINUX box that runs on a 512mb to change the file configuration.
 
Old 06-23-2007, 05:47 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
No need to recreate the wheel, putty is a windows SSH client.
 
Old 06-24-2007, 01:42 AM   #7
rocket1356
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Original Poster
Rep: Reputation: 0
I search around, there is a program called "plink", an command version of putty. I plan to get the file from the LINUX box over to a temp folder in WINXP and do an I/O operation. You guys think it is easy this way? Or is there anyway?
 
Old 06-24-2007, 09:12 PM   #8
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
Quote:
Originally Posted by rocket1356
I do not know if I can install SAMBA on the Linux Box. The LINUX OS is running on a 512mb flash drive. How big is this SAMBA?

Also, the LINUX server has an SSH server. I do not know how to work VB with ssh. Is there any library or control component for it?
samba is small, i think ~10-20mb

Regards,
Ks
 
Old 06-25-2007, 12:58 AM   #9
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
All versions of Windows come with command-line ftp. In VB you'd invoke it with the Shell function and input commands with SendKeys.
 
Old 06-25-2007, 09:11 AM   #10
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Quote:
Originally Posted by rocket1356
I do not know if I can install SAMBA on the Linux Box. The LINUX OS is running on a 512mb flash drive. How big is this SAMBA?

Also, the LINUX server has an SSH server. I do not know how to work VB with ssh. Is there any library or control component for it?
Any answer you receive is just wild speculation until you know what network service(s) is provided on the Linux hosts. Until you know the answer to that question, it is pretty much impossible to give a good answer. Are you asking how to build functionality into some existing VB application, or are you just assumiong that no suitable application already exists, and you think you want to write one using VB? Do you have license to set up a peer network service on the Linux hosts, or is the Linux configuration a fixed standard?
Get the answers to these questions before you start designing software.
--- rod.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to Linux box from one windows machine keimdf Linux - Networking 1 01-04-2007 09:10 PM
Connect linux machine to windows VPN paddyjoy Linux - Newbie 2 09-21-2005 12:34 AM
cannot connect a Windows and Linux machine biscayne07 Linux - Networking 10 02-02-2005 04:17 PM
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM
connect to redhat Linux from unix machine rasha Linux - Networking 7 08-15-2004 07:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration