WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Various apps not working in RPi 1B headless  (Read 727 times)

Offline DanielH

  • Newbie
  • *
  • Posts: 36
Various apps not working in RPi 1B headless
« on: April 06, 2023, 04:48:49 PM »
I've installed TCL in a RPi headless, and installed some apps used to download and share files (curl, wget, lftp, python3.8-pip and then youtube-dl).

I've installed mc too.
mc refuses to start, presenting a message:  aterm: can't open display :0
I can't solve this issue, nor installing aterm.tcz.
How can I solve this problem? Below, my console commands:

tc@cultura:~/Shared$ tce-run mc
tc@cultura:~/Shared$ aterm: can't open display :0

tc@cultura:~/Shared$ tce-size aterm.tcz
  aterm.tcz                                     65536,   0.06 MB
  libICE.tcz                                    36864,   0.04 MB
  libSM.tcz                                     12288,   0.01 MB
  libX11.tcz                                   917504,   0.88 MB
  libXau.tcz                                     4096,   0.00 MB
  libxcb.tcz                                   229376,   0.22 MB
  libXdmcp.tcz                                   8192,   0.01 MB
  libXext.tcz                                   24576,   0.02 MB

  Total size (bytes)                          1298432,   1.24 MB
+ Indicates need to download                        0,   0.00 MB

tc@cultura:~/Shared$
tc@cultura:~$ tce-run aterm.tcz
aterm: can't open display :0

Your answers will be appreciated!
Best regards, DanielH
« Last Edit: April 06, 2023, 04:50:55 PM by DanielH »

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1089
Re: Various apps not working in RPi 1B headless
« Reply #1 on: April 06, 2023, 04:54:51 PM »
If you are headless, how do you expect to open a display?  You need to run applications designed for just a shell session.

just type mc on the command prompt to run mc.
« Last Edit: April 06, 2023, 04:56:50 PM by Paul_123 »

Offline DanielH

  • Newbie
  • *
  • Posts: 36
Re: Various apps not working in RPi 1B headless
« Reply #2 on: April 06, 2023, 05:31:49 PM »
@Paul_123

Thanks you! I've erroneously suppose that the mc command needs to be prepended by tce-run.
My mistake!

From TCL wiki:
Start an Application
To start an application that is not loaded, use tce-run app_name

Best regards, DanielH