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? - macos

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.

Related

Chrome Native messaging host won't start on macOS Sierra

I use Packages app to install an application and run a post install script that configures the Native messaging host. I require admin rights to for the installation. I had 2 main issues on macOS Sierra (maybe High Sierra too).
The native messaging host is a python3 script, I run command -v python3 on the post install script the to check if python3 is installed, if not the script exits with an error.
When I run the installer on macOS 10.15 (Catalina) everything works es expected (since Catalina comes with python3). I have installed the official python3 pkg and ran the installer again on 2 machines, one is on Catalina so no problem, the other is on Sierra on which the command command -v python3 fails always even though it runs perfectly from terminal.
I now check for python3 in 2 paths using ls /usr/bin/python3 (Catalina's python3) or ls /usr/local/bin/python3 (official python3) and it works perfectly on Sierra and Catalina.
Another issue, only on Sierra, I kept getting the error Unchecked runtime.lastError: Native host has exited. so I tried to run Chrome on debug to see what's going on and I was surprised to discover that the message has disappeared, but I kept getting if if I click to open the app, it works also if I just run open from terminal (keep in mind that everything works perfectly on Catalina). I have tried everything I could think of, I still don't understand what's going on. I have reproduced this issue on 2 other VMs Sierra.
the rights on the nmh script -rwxr-xr-x
Will provide any code you'll need.
UPDATE
See my answer, I will leave the question open as I am curious about the reason I get different behaviours on Catalina and Sierra
it looks like on Sierra Chrome can't interpret the shebang #!/usr/bin/env python3. I solved it by using sed after finding the right python 3 path.

MacOS High Sierra and X11 forwarding

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

Install headless Ubuntu server to VirtualBox on windows

I have recently started using VirtualBox to get my Linux environment rather than fully using Ubuntu. For me this works well. But recently i have realized that in the Ubuntu vm the only thing I use a lot is the terminal, mostly just because I need the Linux environment and not the full desktop.
So I tried installing Ubuntu server into a VM, which worked. But as soon as I reboot the machine, it fails after the system boot logo. After BIOS and where I would log on from the command line I simply get a black screen with a non blinking cursor. So I am never fully able to boot into the vbox.
I read up on the command line version, trying to run it headless and then connecting to it from demote desktop. after starting the vbox I am able to connect to the desktop and see the grub screen but after selecting Ubuntu I get that same non-blinking cursor.
So is this really possible? I tried cygwin but it never really felt adequate to me. I like and am very comfortable with the Ubuntu/Debian command line. How could I (if possible) accomplish this? I want to be bale to start up the VBox and get the full command line for that vbox session. Any ideas?
Ubuntu version: 10.10, VirtualBox v. 4.0.4 r70112 and I am on Windows 7 Ultimate.
You didn't mention the versions of Ubuntu and Virtualbox.
I failed twice to install full Ubuntu 10.10 over the latest VirtualBox 4.0.4 over Ubuntu (problems like those you describe), so I switched to Debian 6.0.
All you require to install Ubuntu headless is to install the server version, which you already did. If you get blank screens, tweak the ioapic settings in both VB and Ubuntu. Another tweak is to switch between IDE and SATA drivers for the main disk (the Grub in my non-virtualized Ubuntu hangs if there's USB media attached at boot time).
If you can run full Ubuntu on a VM, you can try downgrading it by removing the xserver-xorg package, or changing the default runlevel.
If all you want is a Linux consule, you can install Debian 6 without any GUI components.

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