Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-06-21 11:44:26

shankhamajumdar
Member
Registered: 2019-06-21
Posts: 3

Issue in accessing Ubuntu Desktop from putty after Xfce installation

Installed Xfce Desktop on a Ubuntu 16.04 Desktop so that we could use RDP from our Windows laptop to it. While we the remote Desktop worked we failed to ssh to the Ubuntu Desktop from a putty client. The ssh session gets terminated immediately once the username and password is verified.


We tried to do a


$ sudo apt-get purge openssh-server and $ sudo apt-get install openssh-server


but the above issue remained. Before installing Xfce Desktop we were able ssh into the Ubuntu Desktop.

In the Putty log we noticed the below error

    xrdb: Can't Open display

    xfce4-session: Cannot open display

Regards,
Shankha

Offline

#2 2019-06-21 13:42:21

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Issue in accessing Ubuntu Desktop from putty after Xfce installation

Hello and welcome.

It sounds like you have some code in your shell startup scripts that is trying to start an X program (xfce4-session).

How did you configure RDP on the linux box? Which configuration changes did you make?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2019-06-21 13:52:34

shankhamajumdar
Member
Registered: 2019-06-21
Posts: 3

Re: Issue in accessing Ubuntu Desktop from putty after Xfce installation

Hi,
   I did the following to install & configure the xfce Desktop:

1a. $ sudo apt-get install xfce4
1b. $ sudo apt-get install xfce4-terminal
1c. $ sudo apt-get install gnome-icon-theme-full tango-icon-theme

Then

$ echo xfce4-session >~/.xsession

then

$ nano /etc/xrdp/startwm.sh

where I added "startxfce4" as the last line of the file

followed by:

$ sudo service xrdp restart

Offline

#4 2019-06-21 14:40:01

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Issue in accessing Ubuntu Desktop from putty after Xfce installation

Does running ssh manually work (no putty)? Maybe its a configuration issue in putty.

If not, run ssh with "-vvv" (full verbose mode) and post back the output.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2019-06-24 07:08:44

shankhamajumdar
Member
Registered: 2019-06-21
Posts: 3

Re: Issue in accessing Ubuntu Desktop from putty after Xfce installation

Hi,

I am able connect using winscp. Also before configuring xfce Desktop I was able to connect using Putty so there is no such configuration issue on Putty.

Regards,
Shankha

Offline

#6 2019-06-24 10:36:38

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Issue in accessing Ubuntu Desktop from putty after Xfce installation

Please post back the output of:

ssh -vvv HOST

...where HOST is the name or IP of the host you are trying to connect to.

Following your instructions above on Ubuntu 16.04 resulted in a working setup (both rdp and ssh). If winscp works, then it must be a configuration issue with putty or with ssh. The above command will help us to determine that.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB