Git Product home page Git Product logo

Comments (5)

MoritzMaxeiner avatar MoritzMaxeiner commented on August 25, 2024

Apparently when you use startx/xinit from a tty the X session does not get your authentication unless you give it the vt argument for the exact same tty you're on (ttyx- > -- vtx):
http://blog.falconindy.com/articles/back-to-basics-with-x-and-systemd.html

from cdm.

ryneeverett avatar ryneeverett commented on August 25, 2024

Thanks for looking into this @Calrama. I'm having the same issue running CDM on Arch. Were you able to solve this? If so, can you explain how/where you passed the vt argument since xinit/startx isn't being called explicitly?

from cdm.

MoritzMaxeiner avatar MoritzMaxeiner commented on August 25, 2024

Sadly no and as far as I can tell there's no easy solution for this, because when using systemd there's just no apparent way to carry over the authentication from a tty login at say ttyX (which cdm uses) over to a newly started X session on ttyY - unless X = Y, of course. All of this is based on information from 5 months ago, though, maybe something has changed since then and now there is some way in a new systemd version, but if so, I know nothing about it, as I made a tactical retreat back to slim.

from cdm.

ryneeverett avatar ryneeverett commented on August 25, 2024

After reviewing this and browsing my .cdmrc again I noticed the following promises to do exactly what you described:

# Where should the first X tty be spawned?
# special value `keep' causes to run X in current tty.
xtty='7'

After changing that line to xtty='keep', my authentication issues were solved. Turns out this was already known on the Arch forum.

from cdm.

MoritzMaxeiner avatar MoritzMaxeiner commented on August 25, 2024

Well, yeah, but that way you stay on the same tty instead of returning to the login prompt and the x session starting on tty(7+). What this does is allowing you to start the x session automatically on any (same) tty you login from. That's not what I wanted, but if it is for you, that's good.

from cdm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.