Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

presetup nvidia-xrun on a tty session #85

Open
DxCx opened this issue Oct 26, 2018 · 11 comments
Open

presetup nvidia-xrun on a tty session #85

DxCx opened this issue Oct 26, 2018 · 11 comments

Comments

@DxCx
Copy link

DxCx commented Oct 26, 2018

Hey,

i was wondering,
is it possible to "bind" nvidia-xrun on tty start?
for example. bind it to tty6, so when im using CTRL+ALT+F6 it will switch to nvidia-xrun right away (login should be there first ofc)

@luukvbaal
Copy link

Adding this to your shell profile should work:

# Run nvidia-xrun when logged in on tty6.
if [ "$(tty)" = "/dev/tty6" ]; then
        nvidia-xrun
fi

@DxCx
Copy link
Author

DxCx commented Nov 20, 2018

Thank you :)
Will give it a try and report back hehe.
Also, is there a way to disable root password request for nvidia-xrun script?
I can allow it in sudoers i guess but then the whole script needs to be run as root which is not what i want,
Also adding insmod to sudoers fills wrong to me
Any suggestions?

@ExoticMatter
Copy link

If you extract the parts of the script that require sudo and put them in a different script (see #87, b142b00), you can (probably) safely add the extracted script to your sudoers file/sudoers.d.

@DxCx
Copy link
Author

DxCx commented Nov 25, 2018

That actually awsome thanks alot @ExoticMatter
I hope it will get merged and released soon enough, if it wouldnt i will have to reinstall from git instead from offical package but im using it so much that it worth it anyway XD

@Witko
Copy link
Owner

Witko commented Jan 17, 2019

Hi guys, i'll try to have a look at it during weekend

@DxCx
Copy link
Author

DxCx commented Jan 18, 2019

Ty @Witiko
I got xrun setup on fixed tty like i wanted
It just requires now 2 more sudo passwords (one for insmod on login, other for rmmod on logout) which i hope to cancel by having isolated scripts which i can auto sudo

@Witko
Copy link
Owner

Witko commented Jan 18, 2019

Could you prepare a PR with documentation for this in readme? Seems like a nice thing.

@DxCx
Copy link
Author

DxCx commented Jan 18, 2019

Do you want me to add readme on auto run xrun?
Or you want @ExoticMatter to document hes no-sudo approach?

@Witko
Copy link
Owner

Witko commented Jan 18, 2019

The auto run feature. I'll look deeper into the better sudo support.

@DxCx
Copy link
Author

DxCx commented Jan 18, 2019

Sure, will do. Thanks

@IngeniousDox
Copy link

#61

Fincer has a good approach already. Perhaps something from there could be used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants