Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Jan 2019
    Posts
    4

    "screen" terminal multiplexer on boot

    Name:  screen.PNG
Views: 257
Size:  4.5 KB

    Error is "Must be connected to a terminal." Right now, the output gets to "Finished piCorePlayer setup, crond syncing time" and then just halts. SSH works fine and gives me a bash terminal, which runs screen.

    I think the goal is self explanatory. I have a custom cli-gui that lives in .screenrc that I want to load on boot.

  2. #2
    Junior Member
    Join Date
    Jan 2019
    Posts
    4
    Things I've tried:

    webgui usercommands
    script -c startscreen.sh
    /opt/bootlocal.sh before pcp and after pcp loading

    Pretty much all the same "Must be connected to a terminal."

    Does PCP normally not load a console, even busybox, on boot? That seems weird.

  3. #3
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,569
    pCP does boot to a console. Press [Enter] to see prompt.

    pCP doesn't have bash by default.

  4. #4
    Junior Member
    Join Date
    Jan 2019
    Posts
    4
    For my application, unfortunately, I can't hit enter on boot.

    I figured it out. Adding to the end of /opt/bootsync.sh:

    $ /usr/local/bin/screen -c /home/tc/.screenrc

    Bypasses the pcp_startup output messages and loads straight into screen with my configuration. Will leave this here for the posterity of Google.
    Last edited by anaphora; 2019-01-16 at 11:04.

  5. #5
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,569
    Why don't you post some screenshots of what you are doing....it may spark some interest.

  6. #6
    Junior Member
    Join Date
    Jan 2019
    Posts
    4
    Quote Originally Posted by Greg Erskine View Post
    Why don't you post some screenshots of what you are doing....it may spark some interest.
    Will do, with a git repo and parts list, once it's presentable.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •