Author Topic: How to run SDL applications from telnet?  (Read 6081 times)

darklegion

  • Guest
How to run SDL applications from telnet?
« on: October 22, 2009, 07:14:40 am »
I'm just wondering how you would go about running SDL apps from telnet, for testing purposes? I get this error message:
"Couldn't initialize SDL: Unable to open a console terminal"

I'm guessing I just need to set some environment variables, or forcibly open a new vt from the commandline, how does dmenu go about doing this?

Thanks


« Last Edit: October 22, 2009, 07:17:14 am by darklegion »

zear

  • * Moderator
  • Posts: 2381
Re: How to run SDL applications from telnet?
« Reply #1 on: October 22, 2009, 09:06:12 am »
You have to first close any running SDL applications (dmenu).
To do so, edit /local/sbin/main and comment out the "./dmenu" line.

joyrider

  • *
  • Posts: 220
    • Willems Soft
Re: How to run SDL applications from telnet?
« Reply #2 on: October 22, 2009, 09:26:04 am »
You get that error in 2 cases :

1) You tried to run an sdl application while another one was already running (not likely unless dmenu was running while you tried out the command)

2) you ran an sdl program but it crashed the 1st time and you tried to run another sdl application afterwards (you'll need to reboot then).

Also when using telnet modify the main script in sbin to not start dmenu or some other menu (make a backup of it and place it back when your done) i run all my apps and don't use a menu.

the_gama

  • *
  • Posts: 155
Re: How to run SDL applications from telnet?
« Reply #3 on: October 22, 2009, 11:12:50 pm »
Ok, maybe i'm missing something, but i edited the /sbin/main file so it doesnt load dmenu,
then i reboot the dingoo pressing select to boot dingux, it boots ok and the last line says something
like 'usb0: full speed config, etc'

Now i type 'telnet 10.1.0.2' on the pc and a message appears 'Trying 10.1.0.2' but nothing, it stays like that some time and then
'telnet: Unable to connect to remote host'.

Do i need to configure something first?.  Im using the latest rootfs and zImage.  Thanks in advance.

zear

  • * Moderator
  • Posts: 2381
Re: How to run SDL applications from telnet?
« Reply #4 on: October 23, 2009, 12:17:10 am »
Check if the usb network device has the right ip (10.1.0.1).
For linux you can manually set it like that:
Code: [Select]
ifconfig usb0 10.1.0.1 netmask 255.0.0.0

the_gama

  • *
  • Posts: 155
Re: How to run SDL applications from telnet?
« Reply #5 on: October 23, 2009, 12:46:13 am »
Check if the usb network device has the right ip (10.1.0.1).
For linux you can manually set it like that:
Code: [Select]
ifconfig usb0 10.1.0.1 netmask 255.0.0.0

Thanks that did the trick :)

darklegion

  • Guest
Re: How to run SDL applications from telnet?
« Reply #6 on: October 23, 2009, 08:00:22 am »
You have to first close any running SDL applications (dmenu).
To do so, edit /local/sbin/main and comment out the "./dmenu" line.

Thanks, this worked :)

 

Post a new topic