Ubuntu access Windows XP Linux in LAN

In LAN, Ubuntu and Windows XP are two common operating systems. In some cases, you may need to access a Windows XP machine running on your LAN from Ubuntu. This article explains how to achieve this on Ubuntu.

  1. Make sure Ubuntu and Windows XP are on the same LAN. Make sure both computers are connected to the same router or switch and assigned the correct IP address.

  2. Install Samba client on Ubuntu. Samba is an open source software suite that allows file and printer sharing between Linux and Windows.

    sudo apt update
    sudo apt install smbclient
    ```
    
    
  3. Open a terminal and execute the following command in the command line to view the Windows XP computers available on the LAN.

    smbtree
    ```
    
    这将列出局域网中的所有 Windows XP 计算机。请记下你想要访问的 Windows XP 计算机的名称。
    
    
  4. Mount Windows XP shared directories via Samba. First, create a local directory for mounting the shared directory.

    mkdir ~/windows_share
    ```
    
    然后,使用以下命令挂载 Windows XP 共享目录到该本地目录。
    
    

    sudo mount -t cifs //windows_xp_computer/share_name ~/windows_share -o username=windows_username,password=windows_password

    
    将 `windows_xp_computer` 替换为你要访问的 Windows XP 计算机的名称,`share_n

Guess you like

Origin blog.csdn.net/ai52learn/article/details/133544059