From 726af904435e5cd3e15f3d51876c352fd95b055a Mon Sep 17 00:00:00 2001 From: GOLinux Date: Mon, 4 Aug 2014 20:49:48 +0800 Subject: [PATCH 1/2] Translated:20140804 Linux FAQs with Answers--How to check if I am in a running screen session.md --- ...eck if I am in a running screen session.md | 25 --------- ... sharing on Linux Mint Cinnamon desktop.md | 52 ------------------- 2 files changed, 77 deletions(-) delete mode 100644 sources/tech/20140804 Linux FAQs with Answers--How to check if I am in a running screen session.md delete mode 100644 sources/tech/20140804 Linux FAQs with Answers--How to enable and configure desktop sharing on Linux Mint Cinnamon desktop.md diff --git a/sources/tech/20140804 Linux FAQs with Answers--How to check if I am in a running screen session.md b/sources/tech/20140804 Linux FAQs with Answers--How to check if I am in a running screen session.md deleted file mode 100644 index c51eb996b2..0000000000 --- a/sources/tech/20140804 Linux FAQs with Answers--How to check if I am in a running screen session.md +++ /dev/null @@ -1,25 +0,0 @@ -Translating by GOLinux ... -Linux FAQs with Answers--How to check if I am in a running screen session -================================================================================ -> **Question**: I often use screen command to run multiple pseudo terminal sessions. Oftentimes I find it difficult to remember whether I am inside a screen session, or in a regular terminal. Is there any convenient way to check whether or not I am inside a running screen session? - -One quick and easy way to tell whether you are inside a screen's pseudo terminal or in a regular terminal is to check STY environment variable. When screen is invoked, it sets STY variable to a session name. So if STY environment variable is set to any non-empty string, that means you are inside a screen session. - - $ echo $STY - -> 2858.pts-3.my_host - -However, note that the above method works **only if** you are still on a local computer where you run screen command. If you SSH to any other remote computer from the local computer's screen session, STY variable will not be set on the remote computer while you are technically still in a screen session. - -In fact, a more reliable way to check if you are in a screen session is to press "Ctrl-a"+"Ctrl-t". If you are in screen, the terminal will show you time information at the bottom of the terminal. - -![](https://farm6.staticflickr.com/5578/14821730712_6a139d72e9_z.jpg) - --------------------------------------------------------------------------------- - -via: http://ask.xmodulo.com/check-running-screen-session.html - -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 diff --git a/sources/tech/20140804 Linux FAQs with Answers--How to enable and configure desktop sharing on Linux Mint Cinnamon desktop.md b/sources/tech/20140804 Linux FAQs with Answers--How to enable and configure desktop sharing on Linux Mint Cinnamon desktop.md deleted file mode 100644 index 4e48bf8946..0000000000 --- a/sources/tech/20140804 Linux FAQs with Answers--How to enable and configure desktop sharing on Linux Mint Cinnamon desktop.md +++ /dev/null @@ -1,52 +0,0 @@ -Linux FAQs with Answers--How to enable and configure desktop sharing on Linux Mint Cinnamon desktop -================================================================================ -> **Question**: I was trying to enable desktop sharing via Vino VNC server (vino-server) on Linux Mint 17 Cinnamon desktop. However, I notice that vino-preferences tool which allows us to configure vino-server (e.g., sharing option, security, notification on/off) no longer exists. Also, I cannot find desktop sharing menu on Cinnamon desktop. How can I configure desktop sharing via vino-server on the latest Linux Mint 17 Cinnamon desktop? - -The latest Linux Mint Cinnamon desktop comes with vino-server pre-installed for VNC desktop sharing, but it's reported that desktop sharing configuration menu is missing. - -An alternative way to configure vino-server and enable desktop sharing is to use dconf-editor's graphical interface. - -First install dconf-editor: - - $ sudo apt-get install dconf-editor - -Launch dconf-editor. - - $ dconf-editor - -Navigate to "org->gnome->desktop->remote-access" on the left panel of dconf-editor. Then you will see various desktop sharing options. - -![](https://farm4.staticflickr.com/3916/14843965473_e68598b01b_z.jpg) - -Most importantly, click on "enabled" to activate desktop remote access. Besides this, you can customize other options. - -For example, you can enable VNC password authentication by changing the following fields: - -- **authentication-methods**: set it to ['vnc'] -- **vnc-password**: change it to Base64-encoded string of a preferred password. - -In this example, we choose VNC password as "password", and its Base64-encoded string is "cGFzc3dvcmQ=". - -Optionally, you can enable other options: - -- notify-on-connect: shows a desktop notification when vino-server receives a connection request. -- prompt-enabled: a remote user is not allowed to access a desktop via VNC until the VNC request is approved by the desktop owner. - -### Troubleshoot ### - -1. I am getting the following error when attempting to start vino-server. - - ** (vino-server:4280): WARNING **: The desktop sharing service is not enabled, so it should not be run. - -To enable desktop sharing service, use dconf-editor as described above. Alternatively, run the following command. - - # gsettings set org.gnome.Vino enabled true - --------------------------------------------------------------------------------- - -via: http://ask.xmodulo.com/enable-configure-desktop-sharing-linux-mint-cinnamon-desktop.html - -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 \ No newline at end of file From ef41f8ef869f07678e505387298da7e396ad622a Mon Sep 17 00:00:00 2001 From: GOLinux Date: Mon, 4 Aug 2014 20:57:14 +0800 Subject: [PATCH 2/2] Translated:20140804 Linux FAQs with Answers--How to check if I am in a running screen session.md --- ... sharing on Linux Mint Cinnamon desktop.md | 52 +++++++++++++++++++ ...eck if I am in a running screen session.md | 24 +++++++++ 2 files changed, 76 insertions(+) create mode 100644 sources/tech/20140804 Linux FAQs with Answers--How to enable and configure desktop sharing on Linux Mint Cinnamon desktop.md create mode 100644 translated/tech/20140804 Linux FAQs with Answers--How to check if I am in a running screen session.md diff --git a/sources/tech/20140804 Linux FAQs with Answers--How to enable and configure desktop sharing on Linux Mint Cinnamon desktop.md b/sources/tech/20140804 Linux FAQs with Answers--How to enable and configure desktop sharing on Linux Mint Cinnamon desktop.md new file mode 100644 index 0000000000..4e48bf8946 --- /dev/null +++ b/sources/tech/20140804 Linux FAQs with Answers--How to enable and configure desktop sharing on Linux Mint Cinnamon desktop.md @@ -0,0 +1,52 @@ +Linux FAQs with Answers--How to enable and configure desktop sharing on Linux Mint Cinnamon desktop +================================================================================ +> **Question**: I was trying to enable desktop sharing via Vino VNC server (vino-server) on Linux Mint 17 Cinnamon desktop. However, I notice that vino-preferences tool which allows us to configure vino-server (e.g., sharing option, security, notification on/off) no longer exists. Also, I cannot find desktop sharing menu on Cinnamon desktop. How can I configure desktop sharing via vino-server on the latest Linux Mint 17 Cinnamon desktop? + +The latest Linux Mint Cinnamon desktop comes with vino-server pre-installed for VNC desktop sharing, but it's reported that desktop sharing configuration menu is missing. + +An alternative way to configure vino-server and enable desktop sharing is to use dconf-editor's graphical interface. + +First install dconf-editor: + + $ sudo apt-get install dconf-editor + +Launch dconf-editor. + + $ dconf-editor + +Navigate to "org->gnome->desktop->remote-access" on the left panel of dconf-editor. Then you will see various desktop sharing options. + +![](https://farm4.staticflickr.com/3916/14843965473_e68598b01b_z.jpg) + +Most importantly, click on "enabled" to activate desktop remote access. Besides this, you can customize other options. + +For example, you can enable VNC password authentication by changing the following fields: + +- **authentication-methods**: set it to ['vnc'] +- **vnc-password**: change it to Base64-encoded string of a preferred password. + +In this example, we choose VNC password as "password", and its Base64-encoded string is "cGFzc3dvcmQ=". + +Optionally, you can enable other options: + +- notify-on-connect: shows a desktop notification when vino-server receives a connection request. +- prompt-enabled: a remote user is not allowed to access a desktop via VNC until the VNC request is approved by the desktop owner. + +### Troubleshoot ### + +1. I am getting the following error when attempting to start vino-server. + + ** (vino-server:4280): WARNING **: The desktop sharing service is not enabled, so it should not be run. + +To enable desktop sharing service, use dconf-editor as described above. Alternatively, run the following command. + + # gsettings set org.gnome.Vino enabled true + +-------------------------------------------------------------------------------- + +via: http://ask.xmodulo.com/enable-configure-desktop-sharing-linux-mint-cinnamon-desktop.html + +译者:[译者ID](https://github.com/译者ID) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 \ No newline at end of file diff --git a/translated/tech/20140804 Linux FAQs with Answers--How to check if I am in a running screen session.md b/translated/tech/20140804 Linux FAQs with Answers--How to check if I am in a running screen session.md new file mode 100644 index 0000000000..d2d2f59da3 --- /dev/null +++ b/translated/tech/20140804 Linux FAQs with Answers--How to check if I am in a running screen session.md @@ -0,0 +1,24 @@ +Linux常见问题与答案——如何检查我是否处于一个运行着的screen会话中 +================================================================================ +>**问题**:我经常使用screen命令来运行多个伪终端会话。好多次,我发现都记不得自己是否在一个screen会话中,还是在一个常规终端中。是否有一种简便的方法来检查我是否在一个运行着的screen会话中? + +一个快捷而又简单的方法来检查你是否处于一个screen伪终端中,还是在一个常规终端中,就是检查STY环境变量。当调用了screen,就会把STY变量值设置为会话名。因此,如果STY环境变量被设置为任何非空字符串,就意味着你正处于一个screen会话中。 + + $ echo $STY + +> 2858.pts-3.my_host + +然而,请注意,上面的方法**只有当**你是在本地计算机上运行screen命令的时候。如果你从本地计算机的screen会话中SSH到任何远程计算机上,远程计算机上的STY变量不会被设置,尽管在技术上看,你仍然处于一个screen会话中。 + +事实上,一个更为可靠的检查你是否处于一个screen会话中的方法,是按“Ctrl-a”+“Ctrl-t”。如果你处于screen会话中,终端会在底部显示时间信息。 + +![](https://farm6.staticflickr.com/5578/14821730712_6a139d72e9_z.jpg) + +-------------------------------------------------------------------------------- + +via: http://ask.xmodulo.com/check-running-screen-session.html + +译者:[GOLinux](https://github.com/GOLinux) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出