Cách kết nối với ubuntu từ windows qua dòng lệnh

Thảo luận trong 'Tin học - Thủ Thuật' bắt đầu bởi trantiencong, 8/11/15.

  1. trantiencong

    trantiencong Sống để hưởng thụ Thành viên BQT CEO/FOUNDER

    Bài viết:
    1,221
    Đã được thích:
    338
    Giới tính:
    Nam
    Nơi ở:
    Hà Nội
    Installing XRDP on Ubuntu for RDP connection
    These steps will allow you to access a Desktop GUI environment for your Ubuntu 12.04 instance using the Remote Desktop Connection program on your Windows machine.

    1. Install the Ubuntu Desktop environment:

    sudo apt-get install ubuntu-desktop

    2. Install XRDP using the following command:

    sudo apt-get install xrdp

    3. Once the installation is complete you will need to start the XRDP Application:

    sudo /etc/init.d/xrdp start

    4. Create a new user that you will use to log into the XRDP:

    sudo adduser USERNAME


    NOTE: If the server does not accept the name you chose for the account add: "--force-badname" to the end of the command above.

    5. The user setup in step 5 will only have login access to the instance but will not be able to install applications or complete administrator tasks. You can grant sudo access to this user by putting them into the sudo group:

    sudo adduser USERNAME sudo

    6. Now start “Remote Desktop Connection” from your local machine. From the Run line (Start -> Run) you can type "mstsc" or you can find the program in your Accessories menu.

    [​IMG]

    7. Access the additional options by clicking Show Options:

    [​IMG]

    8. Enter your Floating IP and Username in their respective fields and then click the Connect button to connect:

    [​IMG]

    9. If the desktop comes up blank you may need to do this additional step:

    Access your instance via SSH and navigate to the home directory of the user account you created:

    su USERNAME

    Create a file called .xsession:

    nano .xsession

    populate this file with this data:

    gnome-session –session=Ubuntu-2d

    Exit and save the file with CTRL+X. Then repeat Step #8. You now have a Desktop GUI for your Ubuntu instance!

    Related Resources
    There are numerous resources for this function on the Internet but none specifically that we wanted to recommend.
     

Chia sẻ trang này

Đang tải...