mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-23 21:20:42 +08:00
Translated:20140804 Linux FAQs with Answers--How to check if I am in a running screen session.md
This commit is contained in:
parent
726af90443
commit
ef41f8ef86
@ -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/) 荣誉推出
|
@ -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/) 荣誉推出
|
Loading…
Reference in New Issue
Block a user