jlsteelers
Posts: 4
Joined: Sun Dec 20, 2015 2:31 am

StartX issue

Sun Dec 20, 2015 2:39 am

Hello! It's my first post and I look forward to many more ;)

I'm relatively new to both python and linux. I've been trying to remote desktop into my raspberry pi, as to free up some space in my HDMI splitter. Startx has seemed like the simplest way to achieve this, however I'm having one issue that I can't seem to figure out. Below are is all I see:

Code: Select all

 startx

X.Org X Server 1.12.4
Release Date: 2012-08-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-2-mx5 armv7l Debian
Current Operating System: Linux jacobpi1 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l
Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1552 bcm2708_fb.fbheight=868 bcm2709.boardrev=0xa01041 bcm2709.serial=0x5745ab86 smsc95xx.macaddr=B8:27:EB:45:AB:86 bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait
Build Date: 11 February 2015  09:31:17PM
xorg-server 2:1.12.4-6+deb7u6 (Julien Cristau <jcristau@debian.org>)
Current version of pixman: 0.33.1
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sun Dec 20 02:18:44 2015
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
FATAL: Module g2d_23 not found.
^Cxinit: connection to X server lost

waiting for X server to shut down Server terminated successfully (0). Closing log file.

xinit: unexpected signal 2
Right now I am using kitty (nearly the exact same as putty) to ssh into it via: ssh -X pi@<iphere>
After there I type startx and get the errors listed above.
The only thing I've tried doing is going into
[XDMCPServer]
enabled = true | was #'d and false. Tried doing this and some said it would fix, but I noticed no changes.

Any ideas?

jlsteelers
Posts: 4
Joined: Sun Dec 20, 2015 2:31 am

Re: StartX issue

Sun Dec 20, 2015 6:58 pm

Did a fresh install of linux again, nothing changed.

Running out of things to try here. Any ideas?

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: StartX issue

Sun Dec 20, 2015 7:06 pm

Try lxsession not startx. And did you set X Forwarding on in the ssh configuration file? There are many tutorials on this.
There are 10 types of people: those who understand binary and those who don't.

jlsteelers
Posts: 4
Joined: Sun Dec 20, 2015 2:31 am

Re: StartX issue

Sun Dec 20, 2015 7:31 pm

kusti8 wrote:Try lxsession not startx. And did you set X Forwarding on in the ssh configuration file? There are many tutorials on this.
Hey, thanks for the ideas

I enabled x11 forwarding and put the x display location as localhost:0 as shown below.
Image
After doing this I again connect to my raspberry pi via my saved folder.
Image
Note if for some reason I had to save the settings for the SSH forwarding in my saved folder, I did not & don't particularly know how to.

There I try lxsession, to which I receive the response:
Only one lxsession can be executed at a time

I've not set up any other lxsessions (to my knowledge). I quickly also ran startx, but received the same text as in my original thread.

User avatar
satanasso
Posts: 15
Joined: Sat Dec 19, 2015 3:47 am

Re: StartX issue

Sun Dec 20, 2015 7:40 pm

Login to your remote machine and open your ssh configuration file (must be root), e.g.:

Code: Select all

# nano  /etc/ssh/sshd_config
and look for (modify if necessary):

Code: Select all

X11Forwarding yes
If modified save, close and restart the ssh server:

Code: Select all

# /etc/init.d/ssh restart
Exit from the current ssh session:

Code: Select all

$ exit
and re-login calling a X session:

Code: Select all

ssh -X <REMOTE_USER>@<REMOTE_IP>
or, better:

Code: Select all

ssh -Y -C <REMOTE_USER>@<REMOTE_IP>
Done.

Code: Select all

-- 
| (o>  | Io ho un Sistema Operativo, tu un "coso" con le finestre
| //\  | Debian [Stable]
| V_/_ | Registered Linux user #158396

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: StartX issue

Sun Dec 20, 2015 8:02 pm

jlsteelers wrote:I've been trying to remote desktop into my raspberry pi, as to free up some space in my HDMI splitter. Startx has seemed like the simplest way to achieve this
Right now I am using kitty (nearly the exact same as putty) to ssh into it via: ssh -X pi@<iphere>
I'm confused about what you are doing. If you want to see your pi via the network, you probably should use some sort of software that lets you see its desktop or creates another one and shows you that. An example of this is vnc. X2go is something I've liked although I'm not sure it has pre-built support for the pi.

You say that you are using "kitty". Does this software support locally displaying X on your Windows machine? I don't have Windows running at the moment, so I'm going from google here and memory, but isn't kitty a fork of putty which is a terminal program for command line ssh? Perhaps they added stuff to this, I don't know.

Rather than trying to get the desktop to work in this way, use vnc etc. for this, I would consider simply running specific programs via ssh -X. MobaXterm should allow you to do this. Get it from the people who make it to try to avoid as much spam as possible.

The command to run firefox on your local box is something like the following:

ssh -X firefox@pi firefox

Assuming you've created a firefox account on the pi, this will run the firefox user of firefox on the pi but display it on your local machine. You can have any number of different users for different situations and to try to fight back against cross tracking.

For example, you can use noscripts to not allow any google or twitter or facebook domains at all on one firefox for general web browsing and then on a search firefox allow in just the needed google domains, a gmail firefox with just the needed domains, a facebook firefox with just the needed domains, a twitter firefox with just the needed domains. This way the scripts you need to run for one service aren't being run from other webpages to track you.

Anyway, that's a bit off track, but you can get the programs displayed locally on your local monitor using ssh -X in the way I described.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: StartX issue

Sun Dec 20, 2015 8:02 pm

jlsteelers wrote:Did a fresh install of linux again, nothing changed.
Which distro? Because most users, most of the time have zero problems getting X to run on Raspbian.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: StartX issue

Sun Dec 20, 2015 8:13 pm

DougieLawson wrote:
jlsteelers wrote:Did a fresh install of linux again, nothing changed.
Which distro? Because most users, most of the time have zero problems getting X to run on Raspbian.
ssh -X user@pi and run startx and you'll get something like the same error he is getting, I suspect, that is what happens when I tried it. Most people using Raspbian are not trying to run X on the pi and view its desktop on their Windows box using ssh -X . They are either viewing it via vnc or something like that or they are using ssh -X user@pi someProgram and seeing just someProgram .

jlsteelers
Posts: 4
Joined: Sun Dec 20, 2015 2:31 am

Re: StartX issue

Sun Dec 20, 2015 8:36 pm

stderr wrote:
jlsteelers wrote:I've been trying to remote desktop into my raspberry pi, as to free up some space in my HDMI splitter. Startx has seemed like the simplest way to achieve this
Right now I am using kitty (nearly the exact same as putty) to ssh into it via: ssh -X pi@<iphere>
I'm confused about what you are doing. If you want to see your pi via the network, you probably should use some sort of software that lets you see its desktop or creates another one and shows you that. An example of this is vnc. X2go is something I've liked although I'm not sure it has pre-built support for the pi.

You say that you are using "kitty". Does this software support locally displaying X on your Windows machine? I don't have Windows running at the moment, so I'm going from google here and memory, but isn't kitty a fork of putty which is a terminal program for command line ssh? Perhaps they added stuff to this, I don't know.

Rather than trying to get the desktop to work in this way, use vnc etc. for this, I would consider simply running specific programs via ssh -X. MobaXterm should allow you to do this. Get it from the people who make it to try to avoid as much spam as possible.

The command to run firefox on your local box is something like the following:

ssh -X firefox@pi firefox

Assuming you've created a firefox account on the pi, this will run the firefox user of firefox on the pi but display it on your local machine. You can have any number of different users for different situations and to try to fight back against cross tracking.

For example, you can use noscripts to not allow any google or twitter or facebook domains at all on one firefox for general web browsing and then on a search firefox allow in just the needed google domains, a gmail firefox with just the needed domains, a facebook firefox with just the needed domains, a twitter firefox with just the needed domains. This way the scripts you need to run for one service aren't being run from other webpages to track you.

Anyway, that's a bit off track, but you can get the programs displayed locally on your local monitor using ssh -X in the way I described.
I ran tightvnc as suggested and written out here
https://www.raspberrypi.org/documentati ... windows.md

Thanks for the help everyone!

Return to “Troubleshooting”