MacOS High Sierra and X11 forwarding - macos

All,
I do have linux servers which do not have GUI installed and sometimes I just need to use graphical applications, such as installers. So the option is to use X11 forwarding. My question is how X11 forwarding is used with MacOS High Sierra today. What options or applications you do use? On windows I would probably use Xming or similar but are such server also available on MacOS? I know about XQuartz, but I'm reluctant to install it.

XQuartz is standard. It used to come bundled with the OS, but Apple removed it back around Mavericks. It generally works great.
You want to use:
ssh -Y [remote_server]
and you may have to add to your $HOME/.ssh/config file:
Host [remote_server]
ForwardX11 yes
ForwardX11Trusted yes

Related

Using snapd instead of flatpak in Linux Mint

I installed IntelliJ and WebStorm on my Linux Mint distro. The problem I have is that I cannot use the integrated terminal on both of the software. In both of them there is a problem with my bash binary location. I researched and saw that the software manager in Linux Mint installs flatpak software by default, and that it works as a sort of a container. I tried to change the location of my bash binary to var/run/host.. but it didn't seem to work.
I read that people solve this by installing the tar version of the software or using snapd. Since snapd is not supported by Linux Mint, what are my alternatives? Can I somehow give access to my software to use my bash, npm, etc... and if not, why is it that flatpak makes these things so difficult?..
Flatpak works as a sandbox environment - each pack has its own runtime environment and because of security reasons, flatpak apps do not have direct access to host files. There could be a lot of problems due to this.
Please try reinstalling the IDE using one of the officially recommended options (https://www.jetbrains.com/help/webstorm/installation-guide.html) - download the tar.gz from https://www.jetbrains.com/webstorm/download/#section=linux, or use the toolbox app to manage installations

mac osx 10.4.11 with x11 1.1.3 (XFree86 4.4.0) - is this compatible to do X-forwarding from Mac OS 10.13.6?

This is a long story.
I use an old OSX 10.4.11 machine (Power PC) as a web server. Very low use.
It runs X11 at 1.1.3 (XFree86 4.4.0).
For several years I used X-forwarding to show log traffic on a newer Mac Intel machine (Mac mini). At some point after about 2006 this just stopped working. I have never tried to upgrade the 10.4.11 machine as it met and continues to meet my needs for a low cost Web server.
Meantime XQuartz has come and been through several new versions, as has MacOS. Currently I have MacOS 10.13.6 and XQuartz 2.7.11 on the Mac Mini. I am revisiting why the long-defunct X-forwarding sessions to OSX 10.4.11 stopped working.
I find I can do X-forwarding fine from my Linux 18.04 box, which was a surprise. I have spent a lot of time trying various approaches to resolving the issue. It occurs to me that the 10.4.11 setup may just be too old, and therefore incompatible. Hence my question: "mac osx 10.4.11 with x11 1.1.3 (XFree86 4.4.0) - is this compatible to do X-forwarding from Mac OS 10.13.6?".
Any comments will be much appreciated.
I am answering my own question.
I spent several days looking at logs from ssh -v -X user#hostname, with -vv and -vvv for more log info. I also tried the ssh -Y variants of that command.
Reading extensively from stackexchange and elsewhere, I restored and re-edited the ssh_config and sshd_config files on both server and client hosts several times, and coded shell scripts to restart sshd.
The insurmountable problem was that $DISPLAY was not being set up correctly on the client. This is what led to my question.
The only way I could get X-forwarding to work with my OSX 10.4.11 PPC client was:
1) ssh -f user#hostname /usr/X11R6/bin/xterm
then
2) run my local commands on the client from that window (nsu and nsu-go).
I also had to add the correct path to all my commands, including /usr/X11R6/bin for xterm as above, and ~/bin to my commands on the client.
The package I was working with was https://sourceforge.net/projects/nsu/ where detail changes are required.

xterm on sles 11.2

I am trying to get xterm to work on sles 11.2. I did it recently on 10.3 and it was really simple but nothing works on 11.2.
On 10.3 I installed xterm on the server and ran xming for windows on my local PC. Then from a putty went to SSH > X11 > Enable X11 forwarding. When I connected to the server I could run xterm and it worked straight away.
However, when I do the same thing on Sles 11.2 and I try and run xterm it says the display isn't set.
Is there something special I need to do for 11.2 to make it work. There isn't any firewalls enabled so this isn't the problem.
Thanks for any help you can provide.
UPDATE
I have changed the SSH config files as suggested by twalberg but still no luck.
In /etc/ssh/ssh_config I have the following
Host *
# ForwardAgent no
ForwardX11 yes
ForwardX11Trusted yes
In /etc/ssh/sshd_config I have the following
X11Forwarding yes
I then restarted ssh using /etc/init.d/ssh restart and then performed the same steps as mentioned in the question with putty but still getting the display not found
I suspect sshd on your 11.2 box is configured to not allow X11 forwarding for security reasons. It needs to be enabled on the client side (which you are doing) and on the server side (in sshd_config) for it to work, so you might need to tweak the config on the SLES system.
I've managed to find out the problem. I need to install x-core package in yast. Didn't need to do this in sles 10.3 but apparently for 11.2 you do.
Thanks all for your help and suggestions.

gedit text editor - mac os x

Does anybody know if you can setup remote connections in gedit(on mac os x snow leopard), so I don't have to keep ftp'ing up seperately.
I know it can be done on Ubuntu but can't figure out how to do it on a mac, if even possible.
An application independent solution for this would be sshfs on OSX through MacFUSE. sshfs is also available for Linux.
This sshfs with a GUI is also available via MacPorts.
There is also a possibility of automatic upload after each file save in Transmit and in Cyberduck (FTP programs).

confused about macports

I am using MacBook Pro Mac OS 10.5 with related version of XCode. I am new to this development environment. I am learning macports, and I read information about macports from http://www.macports.org/. But I am still confused what macports is after reading information from this site.
I am previous working on Windows and Linux, could anyone let me know what macports is (in easy words) and what is the similar item on Windows/Linux?
thanks in avdance,
George
macports is a way of getting executables and other compiled code installed on your computer without having to work out the details of compiling/linking each apllication.
It is equivalent to a package manager under Linux and other Unicies. There is no direct equivalent under Windows.
It is just a convenient way to install a lot of *nix soft on your mac book. They are installed separately (not overwriting) from binaries/daemons/libs already installed on your mac (by default in folder /opl/local). Also they are much fresher than those installed on your mac.
For example 10.6 ships with bash 3.2, but after running sudo port install bash, you will get version 4.x (to make it your default shell add /opt/local/bin/bash to file /private/etc/shells, run chsh -s /opt/local/bin/bash and reopen terminal).
Note other os x package managers: fink and homebrew (superuser question)

Resources