Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Bedrock Linux
User Name
Bedrock Linux This forum is for the discussion of Bedrock Linux.


  Search this Thread
Old 01-07-2019, 03:09 PM   #1
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 592
Blog Entries: 109

Rep: Reputation: 175Reputation: 175
screen, blackbox, possible cross-strata oddness

I installed void in a QEMU VM. Once I rebooted into the system and set networking up, I installed xorg, xterm, windowmaker, screen and bash. I was able to run startx without problems.

Bedrocked it.

Fetched a Debian strata. Installed bash, screen, xorg and blackbox.
To reiterate: blackbox Debian, windowmaker void. Void init.
Set .xinitrc to run blackbox.

Blackbox came up OK. In blackbox, ran xterm.

Typed "screen". Got error message, "Must be connected to a terminal."

Typed "strat debian screen." Got error message, "Cannot make directory '/run/screen': Permission denied.

Typed "strat void screen". Got error message, "Must be connected to a terminal."

Used su to become root. Made directory /run/screen, set it 755 and sticky. became normal non-root user again. This time, "strat debian screen" worked.

If one types screen while still in the console (don't run startx), things are different. Void's screen command works fine. Debian's says "Cannot open your terminal '/dev/tty1' - Please check."

If one edits .xinitrc to run windowmaker, which is provided by void, not debian, one can then, in a term, run screen and "strat debian screen" with no problems.

In terms of all the cross-strata action going on, is this correct behavior under bedrock?

Thank you.

edit: If one reboots, so that /run/screen is not there, running debian's screen does fail in windowmaker.

Last edited by jr_bob_dobbs; 01-07-2019 at 03:18 PM.
Old 01-07-2019, 04:51 PM   #2
Bedrock Linux Founder
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 169

Rep: Reputation: Disabled
I think either you or someone else mentioned this on IRC. I debugged most of it since then, but didn't quite finish and get around to replying back about it. I've been swamped with helping new users and support requests all over the place.

I think Void's windowmaker vs Debian's blackbox is a red herring. If Debian happened to also pull in bash and xterm as dependencies somewhere, it's possible that the WM choice implicitly chose the xterm stratum which implicitly chose the shell stratum. If that's the case, when you ran "screen" in windowmaker, you were probably running debian's screen, not void's. You didn't list what happens with "strat void screen" in windowmaker. My guess is the same as in Void's blackbox. My guess is the WM doesn't make a difference here.

I couldn't reproduce the /dev/tty1 or "must be connected to a terminal" issues through normal usage. Reading around, it seems like both happen if you try to attach to a screen session with another user (e.g. root). Might be something you accidentally did when trying to debug the /run/screen stuff as root. It seems like there's a number of ways to fix this. See:

Debian's screen uses "/run/screen" while Void's uses "/run/screens" with an extra "s" at the end. This means any init hooks to create the /run/ directory will only do it for the one from the init stratum. This is why Debian's screen gives that error when using Void's init. Debian's screen package comes with a "/etc/init.d/screen-cleanup" script which creates its directory. I'm not sure where Void's is created. It's setuid, so maybe it makes it itself.

Work-arounds for the "/run/screen" issue include getting screen from the init stratum (which you tried, but I think got side tracked by an unrelated issue) or using SCREENDIR. See "man screen".


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Possible oddness with 7.4rc1 Keith Hedger Linux From Scratch 6 08-31-2013 04:59 PM
LXer: ZaReason Strata 6880 Sandy Bridge Notebook LXer Syndicated Linux News 0 11-26-2011 03:10 PM
ntpd sets its strata too high TonyErwood Linux - Software 6 03-27-2010 02:57 AM
LXer: Protecting your network with Strata Guard Free LXer Syndicated Linux News 0 09-12-2008 08:50 PM
LXer: Stillsecure Strata Guard Is Something For Nothing LXer Syndicated Linux News 0 06-17-2006 02:54 PM > Forums > Linux Forums > Linux - Distributions > Bedrock Linux

All times are GMT -5. The time now is 05:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration