[SOLVED] Unable to use X11 forwarding after Decrypting Encrypted Home Directory
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
it seems as if it will only forward if I am logged in to a TTY or something to that effect. It keeps giving me those messages. It would be nice to be able to forward over SSH without having to log in locally on the machine.
I don't understand this part, X is forwarded to remote client or to local client?
For the runlevel you have to find a way to start X on runlevel 3 (startx command run as your user, not as root)
I am attempting to forward applications from the server to (remote) client over WAN. I use it from time to time on my LAN, but the same issue persists. The main purpose is to forward graphical applications from my server to the outside of my home network. As for Keefaz, to forward entire X sessions instead of single applications, I close down lightdm on the client, start xinit, and then secure shell into my server and pull the desktop by using:
Code:
xinit # and then
exec startxfce4 # or
exec startlxde # or
exec startkde # and maybe even
exec enlightenment_start # However, I don\'t really use this one.
As for single applications:
Code:
ssh -C -X user@server -p 2222
xclock &
disown
xload &
disown
xtron &
disown
firefox &
disown
# Just an example of commands that I would run
I hope this explains it better. Thank you.
Sincerely,
donald3.heckel
Last edited by donald3.heckel; 05-06-2016 at 09:18 AM.
It seems as if xauth times out right at login. I asked another guy about it and he might've said that I could write a script to decrypt my home directory, and set my environment variable to bash to establish an X connection.
The script is as follows:
Code:
#!/bin/sh
ecryptfs-mount-private
cd ~
/usr/bin/env bash
I then set this as a login shell using chsh. I am still working on that.
Maybe you could put your ~/.Xauthority elsewhere on your system, in a non encrypted place, then symlink it from here to your encrypted home dir.
(ln -s /some/place/.Xauthority ~/)
edit2:
...but .ssh/rc won't be available at the time you login with ssh, no?
It's getting complicated, a simpler way would be to set up an user account in the server with a non-encrypted home directory for X forwarded sessions
The thought of moving over my .Xauthority and setting the variables accordingly did cross my mind. I will look into different ways of trying to implement that. Thank you very much. I will give it a try and let you know the results.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.