You are not logged in.
I have two arch boxes, one server one desktop on home network with router. I have SSH and VNC working great and all between them, but I'm wondering how to set up the server so that I don't have to login. Basically if the power goes out and it turns back on, it boots and goes straight in as my user. I'm the only one w/access to both boxes so unless it's bad for another reason I'd like to do it this way. The server runs a plain fluxbox session, I currently use GDM on the server because I just never bothered to take it off and set this method up hehe. Oh and I know of the option in GDM setup to enable automatc login, but wondering if I can skip GDM altogether to make it quicker.
Thanks for help with this
Last edited by colbert (2008-09-05 06:22:04)
Offline
Offline
Thanks Denacke
So I did all that and now have ~/.xinitrc with "exec startfluxbox" and I logged out and back in, but how can I have it so that if I log out it automatically logs back in? Is possible? Thx
Offline
I neded soemthing similar on my media box, I used the C program example from here: http://wiki.archlinux.org/index.php/Aut … on_startup
Along with method 3 from here: http://wiki.archlinux.org/index.php/Start_X_at_boot
Makes it so if you logout it will automatically log you back in etc.
Offline
Thanks Ruckus, that's excellent! Now in ~/.bash_profile, is it ok to put "startx" and that will read my ~/.xinitrc which indicates to "exec startfluxbox" ?? This is really fantastic solution
Offline
Why do you a) need to be constantly logged into your server and b) need a graphical environment on your server?
Offline
I suppose I do not constantly need X, but I do need it time to time to run mythtv-setup as it's a GUI interface only If there is better solution(s) I am of course very open..
Offline
Have you ever considered enabling X11 forwarding in your ssh config? You could ssh from your desktop to your server, start the graphical app, and have it appear on your desktop instead of the server.
Offline
peart, I have tried uncommenting these in the server's /etc/ssh/sshd_config:
X11Forwarding yes
But when I tried for example gedit file, it said cannot open display:. This would be a perfect solution, I hope can get it to work!
Offline
You also have to "turn it on" for the client. Something like ssh -X or ssh -Y, I can never remember which.
Offline
Oops, I just had to do /etc/rc.d/sshd restart. It works!!
The only concern with having it automatically login was that if I need to reboot the box or power goes out or what have you, I'd like a solution where I don't have to go to the basement and log in to the server because I thought I needed to log in in order to use SSH and access the box
Offline
colbert,
Just add this to ~/.ssh/config on your desktop machine:
Compression yes
CompressionLevel 6
Ciphers arcfour,blowfish-cbc,aes128-cbc,3des-cbc,cast128-cbc,aes192-cbc,aes256-cbc
ForwardX11 yes
The first 2 lines will make X11 forwarding a lot snappier (without compression, it was painfully slow here). The "Ciphers" line tells ssh to use a weak encryption to speed things up. If you are worried about security, you may want to drop that line.
HTH,
peart
Offline
peart,
I put that in ~/.ssh/config and the X forwarding is as slow as before... I tried putting it in /etc/ssh/sshd_config but trying to restart the daemon I got errors that they are bad lines.
Offline
Sorry colbert, I don't know any other tricks to speed up forwarding. When I first set it up, it was taking like 30 seconds to display a window. So I googled and found out about using compression and weak encryption. That is unfortunately all I know that might help you.
Sorry!
Offline
No sweat peart, thanks a lot for the help! At least it works
Offline
A bit off topic, but I do a similar setup, except I run the mythbackend and frontend on the same machine. So inittab autologins the frontend, but for mythtv-setup and other stuff I use FreeNX to load XFCE. FreeNX provides an amazingly fast remote desktop. Maybe something to look into.
Offline
Hmm... I run X11 forwarding over my network without compression and it works fine. I just ssh into the box and windows appear near instantly. I'm running it over 802.11g too so, not even ethernet.
Offline
Hmm... I run X11 forwarding over my network without compression and it works fine. I just ssh into the box and windows appear near instantly. I'm running it over 802.11g too so, not even ethernet.
Yeah same, I run it tunneled over the internet from home to work all the time, I just set TightVNC to low bandwidth and its very snappy.
Edit:
Home: Comcast 10mbit down/1mbit up
Work: DSL ~2-4mbit down/??
Last edited by Ruckus (2008-09-08 07:46:00)
Offline