1. 程式人生 > >Warning: ***** is taken because of /tmp/.X1-lock警告

Warning: ***** is taken because of /tmp/.X1-lock警告

有時候,在linux上啟動一個vncserver :1時,報警告:Warning: *****  is taken because of /tmp/.X1-lock

那需要將提示刪除的檔案都刪除掉。比如: /tmp/.X1-lock

CODE:[[email protected] ~]# cd .vnc
[[email protected] .vnc]# ls
localhost.localdomain:1.log localhost.localdomain:2.log passwd
localhost.localdomain:1.pid localhost.localdomain:2.pid xstartup
[

[email protected] .vnc]#

編輯這個名為xstartup的指令碼,
將這內容前面的註釋符號去掉,否則你將只能得到一個什麼都沒有的灰屏。

#!/bin/sh

# Uncomment the following two lines for normal desktop:

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop”
twm

因為我們已經修改了啟動指令碼,現在來重新啟動vncserver.

相關推薦

Warning: ***** is taken because of /tmp/.X1-lock警告

有時候,在linux上啟動一個vncserver :1時,報警告:Warning: *****  is taken because of /tmp/.X1-lock 那需要將提示刪除的檔案都刪除掉。比如: /tmp/.X1-lock CODE:[[email pr

VNC啟動報錯問題‘testdb:1 is taken because of’解決

遇到了啟動桌面的VNC服務,收到報錯的情況:vncserver :1錯誤:Warning: IDEACOM:1 is taken because of /tmp/.X1-lock Remove thi

MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解決方法

lin 從庫 修改 admin error bsp with 入mysql數據庫 方法 環境:linux,mysql5.5.21 錯誤:Host is blocked because of many connection errors; unblock with ‘mysq

Host is blocked because of many connection errors

max admin mys error ror -h 服務 sql host MySQL 出現:Host ‘XXXXXX‘ is blocked because of many connection errors; unblock with ‘mysqladmin flus

mysql中出現host ‘XXXXXX’ is blocked because of many connection errors

出現錯誤的原因: 同一ip在短時間內產生太多(超過mysql資料庫max_connection_errors的最大值)終端的資料庫連線而導致的阻塞; 解決方法 更改max_connection_errors的值,即提高允許的max_connection_errors的數量 修

null, message from server: "Host 'PC-20130201IBXI' is blocked because of many connection errors; un

忽然一天,資料庫連線拋了異常:null,  message from server: "Host 'PC-20130201IBXI' is blocked because of many&n

遠端連線伺服器資料庫報錯:Host ‘XXXXXX’ is blocked because of many connection errors

一、我遇到的問題描述     使用Navicat for mysql連線公司的伺服器資料庫,報錯:Host ‘XXXXXX’ is blocked because of many connection errors 二、出現錯誤原因    

MySQL--is blocked because of many connection errors解決方案

max_connect_errors C:\Documents and Settings\Administrator>D:\iCloud_1\bin\iCloud_Channel_One.exeUnhandled Exception: MySql.Data.MySqlC

XCode warning:“View Controller” is unreachable because it has no entry points

ins warning 指針 xcod tro 方案 ant access 不能 Unsupported Configuration: “View Controller” is unreachable because it has no entry points, and

安卓驅動編譯:warning: the frame size of 1072 bytes is larger than 1024 bytes

  在編譯核心模組驅動時,如果出現如下警告資訊:warning: the frame size of 1040 bytes is larger than 1024 bytes。主要是因為核心中設定了堆疊報警大小,其預設為1024bytes。我們主要將其修改為4096既可以消除

SmartSVN無法提交的解決辦法:because it was moved from which is not part of the commit; both sides of the move

  對工程大規模改名,一路磕磕碰碰總算成功了。然後提交SVN,報錯:   because it was moved from XXX which is not part of the commit; both sides of the move    那我分開提交怎麼樣?

執行 composer require 出現Warning: This development build of composer is over 60 days old.

問題 Warning: This development build of composer is over 60 days old. It is recommended to update

You (root) are not allowed to access to (crontab) because of pam configuration

作業 cnblogs led 賬號密碼 pad .so normal access new 巡檢發現一臺Linux服務器上的作業沒有如期發送郵件,登錄服務器檢查後發現作業並沒有執行,於是檢查一下crontab的設置。結果發現如下錯誤: [[email pr

freedom is a kind of responsibility

重寫 小學 三個月 一個 經濟 創新 裏的 它的 整形 張維迎教授在2017年7月1日北大國發院2017屆畢業典禮上的發言《自由是一種責任》 張維迎:自由是一種責任 本文為張維迎教授在2017年7月1日北大國發院2017屆畢業典禮上的發言 同學們好!首先祝賀大

HwPointEventFilter: do not support AFT because of no config華為手機進入工程菜單

event filter conf 點擊 color body gpo pan nbsp 在調試時應用報出HwPointEventFilter: do not support AFT because of no config 是因為華為系統裏設置了不打印log 解決方法是在

解決“This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms”

policy font edi config 分享 his 內容 class crypto 解決“This implementation is not part of the Windows Platform FIPS validated cryptographic alg

Assuming that agent dropped connection because of

response sql -s esp 記錄 failed docker perm because Zabbix出現了報錯 Received empty response from Zabbix Agent at [172.17.113.52]. Assuming that

linux下C語言程式設計解決warning : incompatible implicit declaration of built-in function問題

         在C語言程式設計過程中,偶遇如下warning,雖然並不影響最終的編譯結果,但是看著warning也很無語,畢竟強迫症。        我們可以發現被警告沒有宣告的都是常用

上傳文件報錯:Warning: POST Content-Length of 9443117 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

The lin clas php 但是 exce 小文件 情況 lan 只需在php.ini中設置: upload_max_filesize = 1000M; post_max_size = 1000M;還有一種情況就是小文件可以上傳成功,但是大文件上傳,$_FILES

NASA Satellites din rail mounting Show Arctic Ocean is Absorbing More of the Sun’s Energy

www.inhandnetworks.com The Arctic Ocean is absorbing more of the sun’s energy in recent years as white, reflective sea ice melts and darker ocea