Ubuntu and Windows XP/vista file sharing and garbled code solution

Source: Internet
Author: User
Tags ssh

With the following settings, you can easily implement shared access to Linux and Windows files.

Sharing settings for accessing XP in Ubuntu:

1. Enable sharing under XP and set the access account and password. Generally, set it to guest.
2. Open the Ubuntu terminal and enter the following command:

$ Sudo mount-t cifs-o username = shared username, password = shared password, iocharset = utf8 // IP address of the XP machine/shared folder name/mount directory under Ubuntu

Example:
$ Sudo mount-t cifs-o username = guest, password =, iocharset = utf8 // 192.168.1.3/music/mnt

3. Unmount the shared mount

$ Sudo umount/Ubuntu mounted Directory

Example:
$ Sudo umount/mnt

Share settings for accessing Ubuntu, such as XP:

Ubuntu settings:
1. Install ssh-server. Run $ sudo apt-get openssh-server in the terminal and install it.
2. Start ssh-server and run $ ps aux | grep ssh under the terminal.
Enable the remote logon permission for the ROOT account, execute $ sudo vi/etc/ssh/sshd_config under the terminal, find PermitRootLogin, change it to yes, and enter: q: Save and exit.
3. Activate the root account, execute $ sudo passwd under the terminal, and enter the new password.

XP and other settings:
1. First install WinSCP (Download Address: http://winscp.net/eng/download.php)
2. Open WinSCP, enter the Ubuntu IP address and ROOT account password, and then you will be prompted whether to save the password. You must choose to save
3. After logging on, you can access Ubuntu files (pop: the interface is similar to FlashFxp)


Ubuntu solves Windows sharing (SMB, Samba) garbled issues


First, vi/etc/fstab
Add this sentence at the end.

// Xxx. xxx. xxx. xxx/sharing/media/smb smbfs ULTS ults, username = username, password = password, iocharset = utf8, codepage = cp936, uid = 0, dmask = 777, fmask = 777, gid = 46 0 1

The key is to modify the value assignment of CodePage.

Or use the following method to share the Mount:

$ Sudo mount-t cifs-o username = shared username, password = shared password, iocharset = utf8 // IP address of the XP machine/shared folder name/mount directory under Ubuntu

Example:
$ Sudo mount-t cifs-o username = guest, password =, iocharset = utf8 // 192.168.1.3/music/mnt

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.