Ubuntu and Windows file transfer sharing

Source: Internet
Author: User
Tags file copy gtk pscp scp command secure copy ssh secure shell gstreamer

First, the use of flying pigeons to achieve the function of the book

There are Iptux and ipmsg in the popular software for the use of Flying Pigeon books under Linux.
1.1 Iptux
Iptux is an Ubuntu software that can be used to transfer files to and from Windows, which can be found in Ubuntu Software Center. Personal experience is also good, transmission speed 15m/s around, (in Ubuntu the speed can be better) compatible with the various versions of the Fly Pigeon version under Windows.

Installing Iptux is easier, download Iptux binary package Http://iptux.googlecode.com/files/iptux_0.4.4_i386.deb

Then use the command sudo dpkg-i iptux_0.4.4_i386.deb or just use it directly: sudo apt-get install iptux directly to download it.

After installation is completed in the Application-> Internet panel can be found Iptux, run after the interface with the use of similar QQ


1.2 ipmsg
First, download the UNIX version of the source code on the Fly Pigeon biography website
Http://www.ipmsg.org/archive/g2ipmsg-0.9.6.tar.gz

Then execute the command from the terminal into the extracted directory
sudo./configure--prefix=/usr--sysconfdir=/etc--enable-systray--WITH-EXT-CHARCODE=GBK
Note: The main purpose of this command is to see if there is no associated library is not installed, as prompted by the installation of Apt-get in most cases will display the following information (section):
...
No package ' libgnomeui-2.0 ' found
No package ' gtk+-2.0 ' found
No package ' glib-2.0 ' found
...
Resulting in a failed config so we installed the following three software: Gtk2-engines-mythbuntu
Libgnomeui-dev
Libpanelappletmm-2.6-dev
After the successful config, after the installation will not have to say
If error occurs during compilation or installation, you can use the following command
sudo apt-get install GetText intltool
sudo apt-get install libxml-parser-perl libgnomeui-dev libpanel-applet2-devsudo apt-get Install libgnomeui*
If you are prompted to install, enter Y to
WARNING: You need GStreamer- 0.10 or later installedIf You need ...

No package ' libpanelapplet-2.0 ' found

The above warning can be performed:
sudo apt-get install Gstreamer*-dev

sudo apt-get install libpanelapplet-*


At the end of the installation, check again and again until the no package message is no longer present.
2.2) sudo make
2.3) sudo make install
3: After compiling, the Flying Pigeon biography appears in the menu application--Accessories
4: From the menu click Execution or terminal execution/usr/bin/g2ipmsg can appear in the tray
5: Enter the Flying Pigeon, set the character encoding from the menu settings, preferences, the external code is GBK.
OK, End!

under CentOS,1. Error:
Checking for g2ipmsg ... configure:error:Package requirements (libgnomeui-2.0 >= 2.14
gtk+-2.0 >= 2.4
glib-2.0 >= 2.8) were not met:

No package ' libgnomeui-2.0 ' found
No package ' gtk+-2.0 ' found
No package ' glib-2.0 ' found
Solution: Yum install Libgnomeui-devel.

2. Error:
No package ' libpanelapplet-2.0 ' found
Solution: Yum Install Gnome-panel-devel
3, if the Linux system firewall is open, you may not find the intranet users, then as long as the firewall opened 2425 TCP and UDP port. Reference http://www.docin.com/p-38035668.html Windows has a very useful LAN communication software: Ipmsg (Flying Pigeon biography). Ipmsg also has a Linux version, however, there are bugs and updates are slow.
Linux has a people developed Iptux, compatible with the IPMSG protocol, cross-platform use, update is also very fast, you can submit a bug at any time, the author will quickly change. and the following:
1. Iptux
Installing Iptux is easier, download the Iptux binary package http://iptux.googlecode.com/files/iptux_0.4.4_i386.deb and then use the command sudo dpkg-i iptux_0.4.4_ I386.deb or, the new Ubuntu has been added to the Iptux source, can be found in the new Iptux and installed. Or you can go to the official website http://code.google.com/p/iptux/download the source code to build their own installation. After installation is completed in the Application-> Internet panel can be found Iptux, run after the interface with the use of similar QQ
2. ipmsg
First, download the UNIX version of the source code on the Fly Pigeon biography website
Http://www.ipmsg.org/archive/g2ipmsg-0.9.6.tar.gz and then enter the following command in turn
sudo./configure--prefix=/usr--sysconfdir=/etc--enable-systray
sudo make
sudo make install if error occurs during compilation or installation, you can use the following command
sudo apt-get install GetText intltool
sudo apt-get install Libxml-parser-perl libgnomeui-dev Libpanel-applet2-dev

Second, use Samba to realize the function :

First install Samba:

sudo apt-get install Samba

One, under Ubuntu View the Windows system Shared folders in the LAN:

In the location-network-Windows network, you can see other Windows hosts and their shared folders.

Second, under Windows to view the local area Network Ubuntu system Shared folders:

Back up and edit smb.conf

sudo cp/etc/samba/smb.conf/etc/samba/smb.conf_backup

sudo gedit/etc/samba/smb.conf

The contents of the changes in [global] are as follows:

Find workgroup = mshome change it to

Code:

Workgroup = Workgroup (here the name can be filled in, of course, for the convenience of others to access, it is best to fill in the name of the workgroup under Windows)

NetBIOS name = Gdhi (fill in the computer name of your local machine here)

Doc charset = UTF-8

Unix CharSet = UTF-8

The latter two lines are designed to prevent the Chinese catalog from garbled.

To allow the Windows system to access anonymously:

Search for this line of text:

; Security = User

Replace with the following code

Security = Share

Restart Samba

Sudo/etc/init.d/samba restart

Share files in Ubuntu system

Right-click on the folder you want to share: "Shared folder (S)"--"shared by"--Select "Windows Network (SMB)"--if you don't want someone else to modify your shared folders, you'd better put "read-only" on-"OK".

Well, you can share your folders.

Ways to view and modify folders that you share:

"System"--"system Management"-"shared folder".

third, use the PSCP command to achieve:

First of all, install SSH on Ubuntu and execute:

sudo apt-get update

sudo apt-get install Openssh-server

**************************************************************************************************

3. Establish SSH login without password
(1) on the Namenode to implement password-free login to the machine:
$ ssh-keygen-t dsa-p '-f ~/.SSH/ID_DSA,
A direct carriage return will generate two files in ~/.ssh/after completion: ID_DSA and Id_dsa.pub. These two are in pairs.
appear, like keys and locks. Append the id_dsa.pub to the authorization key (there is currently no Authorized_keys
files): $ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys. No password can be implemented after completion
Log on to this computer: $ ssh localhost.
(2) Implement Namenode no password login other Datanode:
Append the Id_dsa.pub file on the Namenode to the Authorized_keys in Datanode (
192.168.0.3 node for example):
A. Copy the Namenode id_dsa.pub file:
$ SCP id_dsa.pub [email protected]:/home/hexianghui/
B. Login to 192.168.0.3, execute $ cat id_dsa.pub >>. Ssh/authorized_keys
The other Datanode perform the same operation.
Note: If the configuration is complete, if Namenode still cannot access Datanode, you can modify the Datanode
authorized_keys:$ chmod Authorized_keys.
4. Turn off the firewall
$ sudo ufw disable
Note: This step is very important. If you do not close, you will see no datanode problem

**************************************************************************************************

1. From http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Download PSCP and put it in Windows system32



PSCP is a remote file transfer tool with the Putty installation package (free), similar to the Linux under SCP command, using the following methods:

C:\Documents and settings\think\ desktop \ Common Resource \putty-v0.60>pscp. Exe
PuTTY Secure Copy Client
Release 0.60
USAGE:PSCP [Options] [[Email Protected]]host:source target
PSCP [options] source [source ...] [[Email Protected]]host:target
PSCP [Options]-ls [[Email Protected]]host:filespec
Options:
-V Print version information and exit
-PGPFP Print PGP key fingerprint and exit
-P Reserved File attributes
-Q Do not display statistical data
-R Recursive Copy directory
-V Displays redundant information
-load Sessname Loading saved session settings
-P Port Specify port (default 22)
-L user Specifies username connection
-PW PASSW explicitly enter the user password
-1-2 mandatory use of the specified SSH protocol version
-4-6 mandatory use of IPv4 or IPV6
-C using compression
Private key file required for-i key authentication
-noagent Do not use pageant
-agent using Pageant
-batch Disable all interactive hints
-unsafe Wildcard (dangerous) to allow server segments
-SFTP mandatory use of the SFTP protocol
-SCP mandatory use of SCP protocol


(a) Upload
2. Start → run →cmd enter into DOS mode to enter the following command
PSCP D:\java\apache-tomcat-5.5.27\webapps\szfdc.rar
[email protected]:/home/dev
3. Enter the password OK file has been uploaded to the target machine's/home/dev directory.




(b) Download
1. Start → run →cmd enter into DOS mode to enter the following command
PSCP [email protected]:/home/dev/gren.sql d:\gren.sql; Enter the password. Ok!
Where: Dev is the user name for Linux, 192.168.68.248 is the remote Linux host IP address,
/home/dev/gren.sql for Linux files, d:\gren.sql for files saved locally
Other




------------------------------------------------------------------
PSCP is a remote file transfer tool with the Putty installation package, similar to the Linux under SCP command,
Here's how to use it:
PSCP and SCP functions the same, under Windows, with only one file, it is recommended to put Pscp.exe
To C:\WINDOWS\system32, so that it can be called from anywhere. The syntax is the same as the SCP,
Here are a few useful options.
-P copies the file at the time of the source file creation.
-Q does not display any prompt messages when performing a file copy.
-R Copy Entire directory
-V displays a prompt when copying files.
Usage:
PSCP [Options] [[Email Protected]]host:source target
PSCP [options] source [source ...] [[Email Protected]]host
PSCP [Options]-ls[email protected]: filespec
Usage:
PSCP [Options] [user name @] Host: source File destination File
PSCP [Options] source file [source file ...] [user name @] Host
PSCP [options]-LS user name @ host: File space?
Options:
Options:
-P Preserve file attributes protect files Properties
-Q Quiet, don ' t show statistics quiet, don't show stats
-r Copy Directories recursively copy subfolders
-V Print version information and exit display information
-V Show verbose messages
-load sessname load settings from saved session
-load loading, loading save section settings
-p Port Connect to specified port
-p port, connecting to the specified space port
-l user connect with specified username
-l user, connecting space with the specified user
-PW PASSW Login with specified password
-PW password, log in space with the specified password
-1/-2 forced SSH to use the version
-4-6 force use of IPv4 or IPV6
-C Open Compression
-I key key, certificate with key file
-batch Turn off interactivity, maybe
-unsafe unsafe, allows the servo-side to replace characters (dangerous)
Common methods:
1. Transfer local file files to Linux server/root/
C:\>pscp.exe file 192.168.32.50:/root/
It will prompt you to enter your password, just like using SCP under Linux.
"Note" Here PSCP will use your Windows login username, so you may need to specify the Linux
User name.
C:\>pscp.exe file[email protected]:/root/
Or
C:\>pscp.exe-l Root File 192.168.32.50:/root/
"Note" Here "-L root" before file
2, the local directory dir, file files transferred to the Linux server/root/, and specify the server-side
Port 2009
C:\>pscp.exe-p 2009-r dir file[email protected]:/root/
3. Retrieve the/root/file file on the server to the local current directory
C:\>pscp.exe[email protected]:/root/file.
4. Retrieve the local "C:\My documents\data\" directory from the/root/dir directory on the server
C:\>pscp.exe-r[email protected]:/root/dir "C:\My documents\data\"

Four, file upload and download using Putty SSH Tool
Maybe there's a classmate like me who wants to upload or download local files via ssh, SSH
The advantage is to make the file in the transmission process more secure, but I do not because of this reason to produce this idea, only
feel the same side with the FTP tool upload side with putty to decompress or compression really is very silly. In fact,
with SECURECRT can be more convenient to implement, but it is the fee software, I do not like, so I insist
to use putty.
Strictly speaking, uploading local files via SSH or downloading files from a Linux host to this
is not a function of putty, but is achieved through the Psftp.exe file in its full installation package.
Therefore, to complete these operations, you must have a full Putty installation package in Windows and not just the
Putty.exe file.
The next step is to turn on Psftp.exe, which is the full character interface as Putty. Compared to the shell complex
command, upload and download the use of a few commands, the command is listed below:
1. The open calpico.dreamhost.com is used to connect to a remote Linux server where
Calpico.dreamhost.com is replaced with your own address.
2. The CD public_html/wp-content/is used to switch directories on a remote Linux server, where Public_html/wp-contnt is replaced by your own actual path.
3. The LCD d:/downloads/is used to switch the local path, where d:/downloads/is my own computer D:\downloads\, in short, the purpose of switching the local path is to upload the
The files in this directory or the files on the server are downloaded to this folder, if you want to

Uploading the Notepad.exe to the server in the Windows folder of the C drive is
LCD c:/windows/.
4. Put Notepad.exe upload notepad.exe to the server.
5. Get notepad.exe download notepad.exe to your own computer provider.
After use, I found this upload download file also has a benefit, because is the character interface, the file on the
The system resources used during the transfer and download process are very small, and even do not feel that it is running, more than open FTP
Client silly wait a lot better. Disadvantages also, because the transmission progress is not seen, if you encounter large files, still have to
Silly wait.



V. Uploading with commands

First install vsftpd in Ubuntu, execute: sudo apt-get install vsftpd

You can then do this:

FTP Linux/unix Server IP
Enter the server user name, password, display the following prompt, indicating that it has entered the ftp:
FTP>LCD d:\ (Enter LCD d:\ here because I want the file to be imported to D under my Windows
, which is the directory to which the destination file is located)
and then prompt:
Local directory now d:\.
Indicates that the local target directory is successfully located!
Ftp>get/home/cbs20/src/loan/loan_retint.ec (indicates that I want to get
This file on Linux, as prompted by the following, already know loan_retint.ec to the d:\
Hint:
PORT Command successful.
Opening Data Connection for/home/cbs20/src/loan/loan_retint.ec
(122998 byte
s).
226 Transfer complete.
ftp: Received 127252 bytes, spents 0.02Seconds 7953.25kbytes/sec.
At this point, the file on Linux/unix has been successfully get to D:\
Ftp> under my Windows system. Quit (exit FTP)
※※※
The same thing, we can put (upload) files under the Windows directory to my Linux/unix
Server,
for the same reason, FTP Linux/unix server IP
Enter the user name password, the prompt
Ftp>
Here we enter
Ftp>cd/home/cbs20/priv/wangqiao (navigate to Linux/unix directory
/home/cbs20/priv/ Wangqiao indicates the directory where we want to upload the file)
Ftp>put D:\haha.txt (indicates that I want to send the D:\haha.txt on the system WinDOS system
)
Ftp>quit (Exit FTP program)



Vi. using the VM's sharedfolders:

Setting up the share is set in the VM, vm→setting→options→sharedfolders→add→ Select the folder to be shared and name the folder →ok,vmware will automatically mount this folder to /mnt/hgfs directory under

Vii. using the SSH tool (SSH Secure Shell Client 3.2.9): http://www.onlinedown.net/softdown/20089_2.htm

Download the installation, run.



Transferred from: http://blog.sina.com.cn/s/blog_5bce66f00100popj.html

Ubuntu and Windows file transfer sharing

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.