Find the answer to your Linux question:
Results 1 to 7 of 7
Hi Friends, Is there a way to share files and folders between WinXP and CentOS installed on same WinXP machine via VMware i.e I have installed iso image in vmware ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    7

    Sharing files between WinXp and CentOS on vmware


    Hi Friends,

    Is there a way to share files and folders between WinXP and CentOS installed on same WinXP machine via VMware i.e I have installed iso image in vmware to run it as windows program.


    Thanks and regards,
    Saurabh.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,318
    • samba (Linux has client to mount Windows shares, or you could install Samba server and have Windows access Linux samba shares)

    • ftp (server on Linux, Windows has command line client - ftp)

    • ssh (server on Linux, putty in Windows as client)

    • some built-in file sharing capabilities in VMware that I don't know about

  3. #3
    Just Joined!
    Join Date
    Oct 2011
    Posts
    7
    Hi Atreyu,

    Thanks for the reply.
    But i am new to linux environment and my question might be quite stupid. But how can i install various application in CentOS which is a vmware image on my winxp system ?
    Please guide me so that i can install samba server/client.

    Thanks.
    Saurabh.

  4. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,318
    What version of CentOS are you running?

    Code:
    cat /etc/redhat-release
    Is your CentOS box able to get to the internet? If so, then yum is the tool you will need to get to know. It is a package manager which will handle software dependencies for you. It calls rpm behind the scenes, but don't worry about that for now.

    Run all the following commands as root.

    Make sure you can see the default CentOS repos:

    Code:
    yum repolist
    Then start with the ftp daemon:
    Code:
    yum install vsftpd
    Configure the daemon to autostart at boot time:
    Code:
    chkconfig vsftpd on
    Edit the daemon config file as needed:
    Code:
    vi /etc/vsftpd/vsftpd.conf
    Read up on that config file:
    Code:
    man vsftpd.conf
    Fire up the ftp daemon:
    Code:
    service vsftpd start
    This calls a shell script, /etc/init.d/vsftpd, to control the daemon, FYI.

    Create a user for ftp with password of "password", e.g.:
    Code:
    useradd -g users ftpuser
    echo password|passwd ftpuser --stdin
    Test your ftp daemon with your new user:
    Code:
    ftp localhost
    Note: you might need to temporarily disable your firewall, in order to get it working (if so, we'll configure it later):
    Code:
    service iptables stop
    Note2: you might need to temporarily disable SELinux, too:
    Code:
    setenforce 0
    Get that much going, then try to ftp to your Linux box from your Windows machine.

    Report your progress...

  5. #5
    Just Joined!
    Join Date
    Oct 2011
    Posts
    7
    Hi Atreyu

    Thanks for guiding me !!!
    it was awesome to set the ftp...thanks a lot.

    The CentOS version is 5.6 (vmware image) that i run on my winxp system.

    I did login successfully also, but did NOT succeed to ftp to CentOS from WinXP

    I tried even from FileZilla but no success. I know it would sound like spoon feeding but can you please guide me with the next steps.
    I want to set the ftp such that i can transfer files from windows to CentOS and back from CentOS to windows.


    Thanks and regards,
    Saurabh.

  6. #6
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,318
    Sorry for the slow response...was out of pocket. Have you already solved your problem? If not....

    So did you start the ftp server on the Linux side? e.g.:

    Code:
    service vsftpd start
    Did you create the user as suggested?

    Did you try to connect locally (on the Linux side) first, as a test? e.g.:

    Code:
    ftp localhost
    If it fails, show what messages are sent to your terminal. Also check logs:
    Code:
    /var/log/xferlog
    /var/log/messages
    /var/log/secure
    To set up an FTP server on the Windows side, you can use the FTP server built-into IIS (depending on your version of Windows - it may come with it). There are also freeware FTP servers you can use, such as War FTP Daemon.

  7. #7
    Just Joined!
    Join Date
    Nov 2011
    Location
    Bandung
    Posts
    6
    If you want just copy file betwen your windows with linux, I thing beside ftp and samba you can use winscp and install it on your windows xp.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •