0
I have grown tired of the (visual) problems I get when using the combination of not-so-great terminal emulation+CygWin on Windows. Now I just run a forwarded gnome-terminal from my server when working in the terminal. The setup is quite simply using the Xserver I get through cygwin, which I start from the command line by issuing ´startx -- -multiwindows -clipboard´. The parameters means each program gets its own window. On a local network the performance is good enough for my needs.
I have three problems with my current setup
- I need to manually issue startx from a console. I wish it could just start up in the background when I log in.
- It seems startx, or rather the ~/.xinitrc needs to issue ´exec some-program´. Currently some xterm is started, which I have no use of. I would like this program to be non-visible.
- I need to start up a console (or use the xterm window that xinit starts for me) and then manually issue ´ssh -Y myuser@myserver gnome-terminal´ to get things going. If I issue the command from another cygwin console then I also have to manually set ´DISPLAY´ to whatever it is at the moment.
How can I automate/improve this setup?
Wouldn't it need a command separator like: bash.exe -l -c "DISPLAY=:0; ssh -Y myuser@myserver gnome-terminal" ? – caffeine – 2017-07-09T07:20:07.083
1@caffeine no, it is not a command. you can prefix any command with environment variables like
FOO=foo BAR=bar echo $FOO $BAR
and they will only be available for that command. It means they will not affect the environment the command is started from. – oligofren – 2017-07-11T12:17:55.037