This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch bugfix/osx in repository x2goclient. from 27354ff non_modal_messagebox.{h,cpp}: add new Non_Modal_MessageBox::critical() overloaded functions to be able to use informative text and a (forceful, if requested) conversion to rich text. new 63873a1 onmainwindow.cpp: prettify non-running sshd error message. new c99b741 onmainwindow.cpp: prettify non-available host key error message. The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: debian/changelog | 2 + src/onmainwindow.cpp | 113 +++++++++++++++++++++++++++++++++++++------------- 2 files changed, 87 insertions(+), 28 deletions(-) -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch bugfix/osx in repository x2goclient. commit 63873a19bb1cc399cb8cdfa797f0ab1cf06ff843 Author: Mihai Moldovan <ionic@ionic.de> Date: Thu Mar 12 22:08:54 2015 +0100 onmainwindow.cpp: prettify non-running sshd error message. --- debian/changelog | 1 + src/onmainwindow.cpp | 65 ++++++++++++++++++++++++++++++++++---------------- 2 files changed, 46 insertions(+), 20 deletions(-) diff --git a/debian/changelog b/debian/changelog index b7272da..bd56f84 100644 --- a/debian/changelog +++ b/debian/changelog @@ -227,6 +227,7 @@ x2goclient (4.0.4.0-0x2go1) UNRELEASED; urgency=low - non_modal_messagebox.{h,cpp}: add new Non_Modal_MessageBox::critical() overloaded functions to be able to use informative text and a (forceful, if requested) conversion to rich text. + - onmainwindow.cpp: prettify non-running sshd error message. -- X2Go Release Manager <git-admin@x2go.org> Thu, 19 Feb 2015 13:25:28 +0100 diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp index 7157cfb..5e9dae9 100644 --- a/src/onmainwindow.cpp +++ b/src/onmainwindow.cpp @@ -11366,30 +11366,55 @@ void ONMainWindow::printSshDError_startupFailure() { if ( closeEventSent ) return; - QString error_message = tr ("" + QString error_message = tr ( #ifdef Q_OS_WIN "SSH daemon could not be started.\n\n" #else "SSH daemon is not running.\n\n" -#endif - "You have enabled Remote Printing or File Sharing.\n" - "These features require a running and functioning SSH server on your computer.\n\n" -#ifdef Q_OS_WIN - "Normally, this should not happen as X2Go Client for\n" - "Windows ships its internal SSH server.\n\n" - - "If you see this message, please report a bug at\n" - "the X2Go bugtracker." -#else - "The Server is currently not started.\n\n" - - "Please ask your system administrator to provide the SSH\n" - "service on your computer.\n\n" -#endif - "Disabling Remote Printing or File Sharing support will get rid of this message."); +#endif // defined (Q_OS_WIN) + ); - Non_Modal_MessageBox::critical (0l, tr ("SSH Error"), - error_message, + QString detailed_error_message = tr ("You have enabled Remote Printing or File Sharing.\n" + "These features require a running and functioning SSH server on your computer.\n" + "<b>Printing and File Sharing will be disabled for this session.</b>\n\n" +#ifdef Q_OS_WIN + "Normally, this should not happen as X2Go Client for Windows " + "ships its own internal SSH server.\n\n" + + "If you see this message, please report a bug on:\n" + "<center><a href=\"https://wiki.x2go.org/doku.php/wiki:bugs\">" + "https://wiki.x2go.org/doku.php/wiki:bugs" + "</a></center>\n" +#else // defined (Q_OS_WIN) + "The SSH server is currently not started.\n\n" +#ifdef Q_OS_DARWIN + "On OS X, please follow the following steps to enable " + "SSH service:\n" + "<ul>" + "<li>Open <b>System Preferences</b> (Applications -> System Preferences)</li>" + "<li>Go to <b>Sharing</b></li>" + "<li>Tick the checkbox besides <b>Remote Login</b></li>" + "<li>Check that <b>Allow access for:</b> is set to either:" + "<ul>" + "<li>All users: <b>no further steps necessary</b></li>" + "<li>Only these users <b>and your user name is included in the list</b></li>" + "</ul>" + "<li>Optionally, add your user name to the allowed list " + "via the <b>Plus Button</b></li>" + "</ul>\n" + "<b>Warning: enabling SSH access will allow any user on the network to connect " + "to your machine. It is your responsibility to set a strong password for every " + "user that is allowed to log in via SSH.</b>\n\n" +#else // defined (Q_OS_DARWIN) + "Please ask your system administrator to provide the SSH " + "service on your computer.\n\n" +#endif // defined (Q_OS_DARWIN) +#endif // defined (Q_OS_WIN) + "Disabling Remote Printing or File Sharing support " + "in the session settings will get rid of this message."); + + Non_Modal_MessageBox::critical (0l, "X2Go Client", + error_message, detailed_error_message, true, QMessageBox::Ok, QMessageBox::NoButton); } @@ -11397,7 +11422,7 @@ void ONMainWindow::printSshDError_noHostPubKey() { if ( closeEventSent ) return; - Non_Modal_MessageBox::critical (0l, tr ( "SSH Error" ), + Non_Modal_MessageBox::critical (0l, "X2Go Client", tr ("SSH daemon failed to open its public host key.\n\n" "You have enabled Remote Printing or File Sharing.\n" -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch bugfix/osx in repository x2goclient. commit c99b74160a8af8db1a7ebcf765f9db8b8a43d371 Author: Mihai Moldovan <ionic@ionic.de> Date: Thu Mar 12 23:04:29 2015 +0100 onmainwindow.cpp: prettify non-available host key error message. --- debian/changelog | 1 + src/onmainwindow.cpp | 50 +++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 42 insertions(+), 9 deletions(-) diff --git a/debian/changelog b/debian/changelog index bd56f84..edc1053 100644 --- a/debian/changelog +++ b/debian/changelog @@ -228,6 +228,7 @@ x2goclient (4.0.4.0-0x2go1) UNRELEASED; urgency=low overloaded functions to be able to use informative text and a (forceful, if requested) conversion to rich text. - onmainwindow.cpp: prettify non-running sshd error message. + - onmainwindow.cpp: prettify non-available host key error message. -- X2Go Release Manager <git-admin@x2go.org> Thu, 19 Feb 2015 13:25:28 +0100 diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp index 5e9dae9..16c6d80 100644 --- a/src/onmainwindow.cpp +++ b/src/onmainwindow.cpp @@ -11422,20 +11422,52 @@ void ONMainWindow::printSshDError_noHostPubKey() { if ( closeEventSent ) return; - Non_Modal_MessageBox::critical (0l, "X2Go Client", - tr ("SSH daemon failed to open its public host key.\n\n" - "You have enabled Remote Printing or File Sharing.\n" - "These features require a running and functioning SSH server on your computer.\n\n" + X2goSettings st ("settings"); + + int port = st.setting ()->value ("clientport", (QVariant) 22).toInt (); - "The Server is currently not configured correctly.\n\n" + Non_Modal_MessageBox::critical (0l, "X2Go Client", + tr ("SSH daemon failed to open its public host key."), + tr ("You have enabled Remote Printing or File Sharing.\n" + "These features require a running and functioning SSH server on your computer.\n" + "<b>Printing and File Sharing will be disabled for this session.</b>\n\n" - "Please ensure that the server's public exists.\n" - "Host keys can be generated by running:\n\n" + "The SSH server is currently not configured correctly.\n\n" + + "Please ensure that the server's public exists.\n\n" +#ifdef Q_OS_WIN + "Normally, this should not happen as X2Go Client for Windows " + "ships its own internal SSH server and automatically " + "generates the required keys.\n\n" + + "If you see this message, please report a bug on:\n" + "<center><a href=\"https://wiki.x2go.org/doku.php/wiki:bugs\">" + "https://wiki.x2go.org/doku.php/wiki:bugs" + "</a></center>\n" +#else // defined (Q_OS_WIN) +#ifdef Q_OS_DARWIN + "On OS X, please follow these steps to generate the " + "required keys:" + + "<ul>" + "<li>Open a <b>Terminal Window</b> (Applications -> Utilities -> Terminal)</li>" + "<li>Run this command: <b>ssh -p " + QString::number (port).toAscii () + + " localhost</b></li>" + "<li>You do not need to login. Just quit the Terminal application " + "via Cmd + Q</li>" + "</ul>" +#else // defined (Q_OS_DARWIN) + "Please ask your system administrator to generate the required host keys.\n\n" - "\tsudo ssh-keygen -A\n\n" + "If you are administrating this system yourself, please run:\n" - "Disabling Remote Printing or File Sharing support will get rid of this message."), + "<center><b>sudo ssh-keygen -A</b></center>\n\n" +#endif // defined (Q_OS_DARWIN) +#endif // defined (Q_OS_WIN) + "Disabling Remote Printing or File Sharing support " + "in the session settings will get rid of this message."), + true, QMessageBox::Ok, QMessageBox::NoButton); } -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git