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