目前分類:軟體技術 (60)

瀏覽方式: 標題列表 簡短摘要

來源

http://leedase.blogspot.tw/2014/04/link-fatal-error-lnk1123-coff.html

真的有效!!

 

LINK : fatal error LNK1123: 轉換成 COFF 時失敗: 檔案無效或損毀

 
VS 不能編譯?

這個問題前幾天我發生過

突然不能編譯了,讓我緊張了一下 , 上網查果然也有人跟我一樣的情況

原因是我 的電腦 WIN7 x64, Visual Studio 2010, Visual Studio 2012 都有
 
所以按照人家提出的方法, 確定是可以解決的. 以下兩個資料夾, 都同時存在一個檔案 cvtres.exe,
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin
C:\Windows\Microsoft.NET\Framework\v4.0.30319
只要把 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin 裡面的cvtres.exe 改名字, 問題就解決了, 因為這個版本是 10.00.xxx, 比較老的.
 
查詢的網址為:
http://xiaolaba.wordpress.com/2013/09/01/link-fatal-error-lnk1123-%E8%BD%89%E6%8F%9B%E6%88%90-coff-%E6%99%82%E5%A4%B1%E6%95%97-%E6%AA%94%E6%A1%88%E7%84%A1%E6%95%88%E6%88%96%E6%90%8D%E6%AF%80/

mybeauty 發表在 痞客邦 留言(0) 人氣()

下面寫個很簡單可以改變按鈕外觀的方法

 

到designer裡按右鍵,變更樣式表即可

 

 

 

Another way, to edit it's StyleSheets. It's easy!

 

 

 

#include <QApplication>
#include <QPushButton>
#include <QFont>
#include <QMenu>
#include <QLabel>
 
int main(int argc, char *argv[]) {
 
 
     QApplication app(argc, argv);
 
     QPushButton *btn = new QPushButton("Close");
     btn->setWindowTitle("Signal & Slot");
     btn->setFont(QFont("Courier", 18, QFont::Bold));
     btn->resize(250, 50);
     btn->setStyleSheet("background-color: yellow");
 
     QObject::connect(btn, SIGNAL(clicked()), &app, SLOT(quit()));
 
     btn->show();
 
 
     return app.exec();
}
 
 
 

 

mybeauty 發表在 痞客邦 留言(0) 人氣()

原文 

http://www.heerengandhi.com/2009/07/29/firefox-icon-went-missing-in-windows-7-heres-a-fix/

 

照著做之後,Windows 7下的Thunderbird的圖標就恢復正常了。

轉貼如下

 

Firefox Icon went missing in Windows 7? Here’s a Fix

After installing the latest and greatest Mozilla Firefox 3.5 in Windows 7 (RC 64-bit) I noticed that after a while the icon went missing. Now Firefox was still working correctly, and when I checked the icon properties the icon was still present. But for some strange reason it wouldn’t show up in on my Desktop, my Start Menu, or my Taskbar, I would just see a broken icon.

The resolution? Rebuilding the Windows 7 Icon Cache.

Follow these directions:

  1. Close all folder windows that are currently open.
  2. Launch Task Manager using the CTRL+SHIFT+ESC key sequence, or by running taskmgr.exe
  3. In the Process tab, right-click on the Explorer.exe process and select End Process
  4. Click the End process button when asked for confirmation.
  5. From the File menu of Task Manager, select New Task (Run…)
  6. Type CMD.EXE, and click OK
  7. In the Command Prompt window, type the commands one by one and press ENTER after each command:CD /d %userprofile%\AppData\Local
    DEL IconCache.db /a
    EXIT
  8. In Task Manager, click File, select New Task (Run…)
  9. Type EXPLORER.EXE, and click OK.

Your icons should be as good as new!

mybeauty 發表在 痞客邦 留言(0) 人氣()

今天發現了好文章,解決了我的問題。

分享如下

 

軟體套件發行的方法:大型專案開發適用,使用 C++ 語言
 1、下載 Qt5.5 
  - 網頁 http://www.qt.io/download-open-source/#section-2
  - 找 Windows Host 中的 Qt 5.5.1 for Windows 32-bit (MinGW 4.9.2, 1.0 GB)  只有 32位元版
   - 檔案:qt-opensource-windows-x86-mingw492-5.5.1.exe
 2、下載 Qt Installer Framework
  - 網頁 http://www.qt.io/download-open-source/#section-2
  - 找 Other downloads 中的 Qt Installer Framework
   - 檔案:Qt Installer Framework Opensource 2.0.1.exe
 3、安裝 qt-opensource-windows-x86-mingw492-5.5.1.exe
 4、安裝 Qt Installer Framework Opensource 2.0.1.exe
 5、開啟 Qt Creator (Community)
 6、開啟現有專案
  - C:\Qt\Qt5.5.1\Examples\Qt-5.5\opengl\2dpainting\2dpainting.pro
  - 按下 Configure Project ,會生一個 C:\Qt\Qt5.5.1\Examples\Qt-5.5\opengl\2dpainting\2dpainting.pro.user 以後就不會再問了
  - 建置 -> 執行(或是按下左下方的綠色 Play 按鈕)
  - 會在 C:\Qt\Qt5.5.1\Examples\Qt-5.5\opengl\build-2dpainting-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug 生出我們要的 2dpainting.exe
 7、把他 copy 出來,或是把其他的 *.o *.cpp 殺了
 8、開一個命令提示字元視窗,加持 Qt 要用的 path
  - 直接執行 C:\Windows\System32\cmd.exe /A /Q /K C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\qtenv2.bat
  - 或 下指令 set PATH=C:\Qt\Qt5.5.1\5.5\mingw492_32\bin;C:\Qt\Qt5.5.1\Tools\mingw492_32\bin;%PATH%
  - 或點選開始選單裡的 Qt 5.5.1 > 5.5 > MinGW 4.9.2 (32-bit) > Qt 5.5 for Desktop (MinGW 4.9.2 32 bit) 項目
 9、切換到專案發佈的目錄: cd C:\Qt\Qt5.5.1\Examples\Qt-5.5\opengl\build-2dpainting-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug
10、執行 windeployqt 2dpainting.exe ,幫我們帶出 DLL 們
11、這整個 C:\Qt\Qt5.5.1\Examples\Qt-5.5\opengl\build-2dpainting-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug 就是綠色套件了
12、其實從項次 7 開始,我研究了二天,終於看到異國年輕人的教材,聽得半懂,看得全懂,有興趣可以去看看 Tutorial Qt Installer Frameworkhttps://youtu.be/pXRwgEP_q-Y 
13、最後就是用 Qt Installer Framework 去打包成安裝檔,詳解請閱聽上述 youtube 影片

這樣,我就可以開始拼湊範例程式,開發我的「桌面應用程式」了。或許「手機應用程式」也能陸續完成。

 

來源

http://phorum.study-area.org/index.php/topic,71475.msg343309.html#msg343309

 

mybeauty 發表在 痞客邦 留言(1) 人氣()

問題描述

1.png 

2.png 

解決"無法加入成員變數至具有ID IDC_STATIC的控制項" Visual C++ 2015

如下面寫的,把IDC_STATIC改名就可以了。


https://social.msdn.microsoft.com/Forums/vstudio/e...

What error did you get?   What is the type of mLabel?  

First, right click on the static control and select 'Properties.'  If the control ID is IDC_STATIC you must edit it so it has a unique value, like IDC_MY_LABEL.

mLabel should be created by right clicking on the static control in the dialog editor and selecting 'Add Variable',  then selecting 'Control Variable'. The result will be a dialog member variable CStatic mLabel.  mLabel.SetWindowText should then work.

mybeauty 發表在 痞客邦 留言(0) 人氣()

官網的文章就很好用了。

寫在這裡

Visual Studio 中的 C++ 使用者入門

https://msdn.microsoft.com/zh-tw/library/jj620919....

mybeauty 發表在 痞客邦 留言(0) 人氣()

解決"找不到或無法開啟 PDB 檔案"在Visual C++ 2015 Community (VC 2015)

上網找了一下都是舊文章

新的選項的位置不同。

解決方法

偵錯-->選項

1.png


偵錯-->符號-->把Microsoft符號伺服器打勾)

符號.png 


如下圖,已可以正常偵錯。

ConsoleApplication1.exe' (Win32): 已載入 'D:\xxxxxxxxxx\VC\ConsoleApplication1\x64\Debug\ConsoleApplication1.exe'。已載入符號。

ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\ntdll.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\kernel32.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\KernelBase.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\msvcp140d.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\vcruntime140d.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\ucrtbased.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\api-ms-win-core-timezone-l1-1-0.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\api-ms-win-core-file-l2-1-0.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\api-ms-win-core-localization-l1-2-0.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\api-ms-win-core-synch-l1-2-0.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\api-ms-win-core-processthreads-l1-1-1.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\api-ms-win-core-file-l1-2-0.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\advapi32.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\msvcrt.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\sechost.dll'。已載入符號。
ConsoleApplication1.exe' (Win32): 已載入 'C:\Windows\System32\rpcrt4.dll'。已載入符號。
'[3604] ConsoleApplication1.exe' 程式以返回碼 0 (0x0) 結束。


3.png 

mybeauty 發表在 痞客邦 留言(9) 人氣()

作者: bur (角落) 看板: AntiVirus
標題: [求救] IE8 新索引標籤 變成 babylon search
時間: Wed Sep 14 08:43:31 2011

系統:win 7
已經掃毒過,找不到病毒
也在控制台移除了babylon toolbar 執行程式
網際網路的工具裡面的附加管理也移除了babylon search

也下載了惡意程式移除掃描
網址的about:tabs的登錄值也跟預設值一樣沒有其他奇怪的網址

該怎麼處理!!!> <


----------------------

→ ringshin:網際網路選項理的最下方TAB進去回復預設應該就好了    

這是正解,我剛才測試有用

 

 

 

 

mybeauty 發表在 痞客邦 留言(0) 人氣()

改phpbb上傳檔案大小的限制
以下是我昨天試驗整理好的..下次照這個改

(1) 先檢查phpbb本身的限制

(2) 改php.ini
/etc/php.ini
upload_max_filesize = 50M

下面也要改
; Maximum size of POST data that PHP will accept.
post_max_size = 30M

(3)重啟apache
# /etc/init.d/httpd restart


2) apache的設定
預設: max_execution_time = 30 (30秒)
改為: max_execution_time = 600 (10分鐘)
預設: memory_limit = 128M
所以我這裡不動

 

mybeauty 發表在 痞客邦 留言(0) 人氣()

登入vsftpd 出現 500 OOPS: vsftpd: refusing to run with writable anonymous root 訊息

原來是目錄的權限不對

修正方法:

chown root:root /var/ftp

chmon 755 /var/ftp

mybeauty 發表在 痞客邦 留言(0) 人氣()

我試了好幾版本,最後試出來的方法非常簡單。

下載這個檔案,然後解壓縮到wiki安裝目錄的extensions下面

http://mediawiki.fckeditor.net/nightly/svn/mediawiki_fckeditor_ext_N.tar.gz

修改配置文件
编辑LocalSettings.php 最後一行加上

require_once( "extensions/FCKeditor/FCKeditor.php" );

---------------------------------------------------------------------------------------------------------

http://www.mediawiki.org/wiki/Extension:FCKeditor_(Official)

這個網頁抓的我就是無法安裝成功,原因不明。

會顯示內部網頁錯誤。

 

mybeauty 發表在 痞客邦 留言(0) 人氣()

訊息:

Discuz! info: MySQL Query Error

User: admin
Time: 2011-4-24 8:02am
Script: /admincp.php

SQL: SELECT *, f.fid AS fid FROM [Table]forums f
LEFT JOIN [Table]forumfields ff USING (fid)
WHERE f.fid='86'
Error: SELECT command denied to user 'xxxxxxxx'@'localhost' for column 'fid' in table 'f'
Errno.: 1143

解決方法:

应该是数据没有导入完整,UTF8导入是经常出错的,
最好的恢复数据方式是后台备份再后台导入,弱点:耗时~

 

 

mybeauty 發表在 痞客邦 留言(0) 人氣()

目录属性在FTP里设置,linux设置成777,如果已经设置了还是不能上传的话,有可能是服务器限制了数据库的一些动作,一般虚拟主机才会这样。
试试先在后台备份一下,提示失败以后去文件目录里看forumdata里面,有一个backup_******的文件夹,把名字复制下来,然后删除此文件夹,再新建一个同名的文件夹,再设置其属性为777。
然后再回discuz后台备份数据,看看能否成功。
反正我是成功了,虽然有点麻烦。

 

 

mybeauty 發表在 痞客邦 留言(0) 人氣()

刚完成了在CentOS5.5安装Zend Optimizer插件的任务,以前老版本 Zend Optimizer的安装方法是运行安装脚本 ./install.sh,新的Zend Optimizer 3.3.9没有安装脚本,只能按
照以下方法安装。
# wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
可以根据自己操作系统的需要下载32bit或者64bit的压缩包
解压缩下载的文件包(x86):
# tar -zxvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
# cd ZendOptimizer-3.3.9-linux-glibc23-i386
这里要注意,进入data文件夹后,so文件是对应版本的,看好PHP版本再安装,我的是5.2版本的

在 /usr/local/webserver/ 下新建 /Zend/lib 目录  “/usr/local/webserver/”是你php、mysql的安装目录
把 ZendOptimizer.so 文件拷贝到 /usr/local/webserver/Zend/lib 下
# cp ZendOptimizer.so /usr/local/webserver/Zend/lib/
进入php安装目录
# cd /usr/local/webserver/php/etc
把下列两行加入php.ini,不要加入任何空格和制表符
zend_optimizer.optimization_level=15
zend_extension=/usr/local/webserver/Zend/lib/ZendOptimizer.so
重启Nginx和php环境
# /usr/local/webserver/nginx/sbin/nginx -s reload
# /usr/local/webserver/php/sbin/php-fpm restart
再看看你的phpinfo 大功告成啦!

-------------

上面的步驟有些要修正。

(1) ZendOptimizer.so放哪邊都可以,記得/etc/php.ini加入
zend_optimizer.optimization_level=15
zend_extension=/usr/local/webserver/Zend/lib/ZendOptimizer.so
即可

(2)重啟nginx和php-fpm
/etc/ini.d/nginx restart

/etc/ini.d/php-pfm

 

mybeauty 發表在 痞客邦 留言(0) 人氣()

這一篇寫的最簡單清楚,一定要看

http://blog.shian.tw/centos-install-nginx-and-php-fpm.html

 

mybeauty 發表在 痞客邦 留言(0) 人氣()

剛剛碰到了怪事, 在命令列下無法登入 mysql  驚訝

ERROR 1045 (28000): Access denied for user '=root'@'localhost' (using password: YES)

系統是 Ubuntu 8.041 server + MySQL

密碼是安裝 Ubuntu 系統時設定的

但是用 phpMyAdmin - 2.11.3deb1ubuntu1 但可以正確登入 @@

不過問題已解決, 解決方式如下..

# service mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &

Starting mysqld daemon with databases from /var/lib/mysql
mysqld_safe[5523]: started


# mysql -u root mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.51a-3ubuntu5.1 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>



進去了, 再設定一次密碼..

mysql> UPDATE user SET Password=PASSWORD('xxxxxxxxxxxxxxx') where USER='root';
mysql> FLUSH PRIVILEGES;

mysql> \q

# service mysqld restart

# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.0.51a-3ubuntu5.1 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> \q

這樣就可以正常登入了  奸笑 奸笑

mybeauty 發表在 痞客邦 留言(0) 人氣()

到Zend下載Zend Optimizer,(下載時要註冊,就填個e-mail就行了,很容易的)

我發現它的安裝方法和網路上分享的不一樣。大概是新的方法有改過。

但是步驟是挺簡單的,如下

1. Extract the Zend Optimizer package.

2. Locate the ZendOptimizer.so (Unix) or ZendOptimizer.dll (Windows) file in the directory which
   corresponds to your version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x).

2. Add the following line to your php.ini file:
   Linux and Mac OS X:     zend_extension=<full_path_to_ZendOptimizer.so>
   Windows:                zend_extension_ts=<full_path_to_ZendOptimizer.dll>
   Windows non-thread safe: zend_extension=<full_path_to_ZendOptimizer.dll>
   (*) The Windows non-thread safe binary is only used with Zend Core 2.0.
 
3. Restart your Web server.

 

mybeauty 發表在 痞客邦 留言(0) 人氣()

這個問題我找了很多方法,最後google出來的第2篇寫的最簡單好用。

錯誤訊息

治療方法

Firstly in your my.cnf

remove '--skip-bdb'

Try to start it again /etc/init.d/mysqld start

it also seems like you have upgraded to a newer version 5.1 so you will need to run mysql_upgrade once the server is running

 
]FAILED[  :Starting MySQL
 . starttoMySQL Daemon failed
mysqld start /d.init/etc/ #

mybeauty 發表在 痞客邦 留言(0) 人氣()

上網找了方法,這一版滿好用的。

vim /etc/yum.repos.d/utterramblings.repo

輸入

[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

最後安裝

yum install httpd php

 

mybeauty 發表在 痞客邦 留言(0) 人氣()

真是有點難裝,因為裝完一直連不上。

這一篇中國大陸的文章不錯,照著裝就會動了。

http://hi.baidu.com/afantihome/blog/item/df03a0169df9fc14962b432b.html

 

CentOS下安装FreeNX远程桌面
2010-04-14 13:14

在CentOS 4.4 下安装比较简单,先确保 sshd 服务启动并运行在 22 端口,然后检查 expect 和 nc 这个两个包是否安装了。

运行 yum install freenx

server 端的安装就结束了。



[root@mail ~]# rpm -qa | grep freenx
[root@mail ~]# yum install freenx
Setting up Install Process
Setting up repositories
update                    100% |=========================|  951 B    00:00     
base                      100% |=========================| 1.1 kB    00:00     
addons                    100% |=========================|  951 B    00:00     
extras                    100% |=========================| 1.1 kB    00:01     
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for freenx to pack into transaction set.
freenx-0.7.3-2.el4.centos 100% |=========================|  14 kB    00:01     
---> Package freenx.i386 0:0.7.3-2.el4.centos set to be updated
--> Running transaction check
--> Processing Dependency: nx >= 2.0.0 for package: freenx
--> Processing Dependency: /usr/bin/expect for package: freenx
--> Processing Dependency: expect for package: freenx
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for expect to pack into transaction set.
expect-5.42.1-1.i386.rpm  100% |=========================|  13 kB    00:03     
---> Package expect.i386 0:5.42.1-1 set to be updated
---> Downloading header for nx to pack into transaction set.
nx-3.3.0-14.el4.centos.i3 100% |=========================|  18 kB    00:01     
---> Package nx.i386 0:3.3.0-14.el4.centos set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
freenx                  i386       0.7.3-2.el4.centos  extras             92 k
Installing for dependencies:
expect                  i386       5.42.1-1         base              148 k
nx                      i386       3.3.0-14.el4.centos  extras            2.7 M

Transaction Summary
=============================================================================
Install      3 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         
Total download size: 2.9 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): expect-5.42.1-1.i3 100% |=========================| 148 kB    00:19     
(2/3): nx-3.3.0-14.el4.ce 100% |=========================| 2.7 MB    06:49     
(3/3): freenx-0.7.3-2.el4 100% |=========================|  92 kB    00:08     
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: nx                           ######################### [1/3]
Installing: expect                       ######################### [2/3]
Installing: freenx                       ######################### [3/3]
Stopping sshd:[  OK  ]
Starting sshd:[  OK  ]
Starting freenx-server:  [  OK  ]


Installed: freenx.i386 0:0.7.3-2.el4.centos
Dependency Installed: expect.i386 0:5.42.1-1 nx.i386 0:3.3.0-14.el4.centos
Complete!
[root@mail ~]# rpm -qa | grep freenx
freenx-0.7.3-2.el4.centos
然后:
[root@mail ~]# /usr/bin/nxsetup --install
------> It is recommended that you use the NoMachine key for
easier setup. If you answer "y", FreeNX creates a custom
KeyPair and expects you to setup your clients manually.
"N" is default and uses the NoMachine key for installation.

Do you want to use your own custom KeyPair? [y/N] ySetting up /etc/nxserver ...done
Setting up /var/lib/nxserver/db ...done
Setting up /var/log/nxserver.log ...done
Adding user "nx" to group "utmp" ...done
Setting up known_hosts and authorized_keys2 ...done
Setting up permissions ...done
Setting up cups nxipp backend ...done

----> Testing your nxserver configuration ...
Warning: Could not find nxdesktop in /usr/bin. RDP sessions won't work.
Warning: Could not find nxviewer in /usr/bin. VNC sessions won't work.
Warning: Invalid value "APPLICATION_LIBRARY_PRELOAD=/usr/lib/libX11.so.6.2:/usr/lib/libXext.so.6.4:/usr/lib/libXcomp.so.2:/usr/lib/libXcompext.so:/usr/lib/libXrender.so.1.2". /usr/lib/libX11.so.6.2 could not be found. Users will not be able to run a single application in non-rootless mode.
Warning: Invalid value "COMMAND_START_CDE=cdwm"
Users will not be able to request a CDE session.
Warning: Invalid cupsd version of "/usr/sbin/cupsd". Need version 1.2.
Users will not be able to enable printing.
Error: Could not find 1.5.0 or 2.[01].0 or 3.[01].0 version string in nxagent. NX 1.5.0 or 2.[01].0 or 3.[012].0 backend is needed for this version of FreeNX.

Warnings occured during config check.
To enable these features please correct the configuration file.

<---- done

----> Testing your nxserver connection ...
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
RSA key fingerprint is 17:e1:f2:33:b4:a1:f7:8d:1f:e3:5a:ba:f8:1d:90:3a.
Are you sure you want to continue connecting (yes/no)?
Warning: Permanently added '127.0.0.1' (RSA) to the list of known hosts.
HELLO NXSERVER - Version 3.2.0-73 OS (GPL, using backend: not detected)
NX> 105 quit
Quit
NX> 999 Bye
<--- done

Ok, nxserver is ready.

PAM authentication enabled:
All users will be able to login with their normal passwords.

PAM authentication will be done through SSH.
Please ensure that SSHD on localhost accepts password authentication.

You can change this behaviour in the /etc/nxserver/node.conf file.
Have Fun!

添加ENABLE_PASSDB_AUTHENTICATION="1" 到 /etc/nxserver/node.conf.


[root@mail ~]# nxserver --adduser kevin 
NX> 100 NXSERVER - Version 3.2.0-73 OS (GPL, using backend: not detected)
NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not detected)
NX> 716 Public key added to: /home/kevin/.ssh/authorized_keys2
NX> 1001 Bye.
NX> 999 Bye
[root@mail ~]# nxserver --passwd kevin
NX> 100 NXSERVER - Version 3.2.0-73 OS (GPL, using backend: not detected)
New password:
Password changed.
NX> 999 Bye
[root@mail ~]# nxsetup --install --setup-nomachine-key
Setting up /etc/nxserver ...done
Setting up /var/lib/nxserver/db ...done
Setting up /var/log/nxserver.log ...done
Adding user "nx" to group "utmp" ...done
Setting up known_hosts and authorized_keys2 ...done
Setting up permissions ...done
Setting up cups nxipp backend ...done

----> Testing your nxserver configuration ...
Warning: Could not find nxdesktop in /usr/bin. RDP sessions won't work.
Warning: Could not find nxviewer in /usr/bin. VNC sessions won't work.
Warning: Invalid value "APPLICATION_LIBRARY_PRELOAD=/usr/lib/libX11.so.6.2:/usr/lib/libXext.so.6.4:/usr/lib/libXcomp.so.2:/usr/lib/libXcompext.so:/usr/lib/libXrender.so.1.2". /usr/lib/libX11.so.6.2 could not be found. Users will not be able to run a single application in non-rootless mode.
Warning: Invalid value "COMMAND_START_CDE=cdwm"
Users will not be able to request a CDE session.
Warning: Invalid cupsd version of "/usr/sbin/cupsd". Need version 1.2.
Users will not be able to enable printing.
Error: Could not find 1.5.0 or 2.[01].0 or 3.[01].0 version string in nxagent. NX 1.5.0 or 2.[01].0 or 3.[012].0 backend is needed for this version of FreeNX.

Warnings occured during config check.
To enable these features please correct the configuration file.

<---- done

----> Testing your nxserver connection ...
HELLO NXSERVER - Version 3.2.0-73 OS (GPL, using backend: not detected)
NX> 105 quit
Quit
NX> 999 Bye
<--- done

Ok, nxserver is ready.

PAM authentication enabled:
All users will be able to login with their normal passwords.

PAM authentication will be done through SSH.
Please ensure that SSHD on localhost accepts password authentication.

You can change this behaviour in the /etc/nxserver/node.conf file.
Have Fun!

=======
启动、查看、停止nx命令 # nxserver --start: 启动NX服务器 nxserver --stop: 停止NX服务器 nxserver --status: 查看NX服务器 nxserver --restart: 重新启动NX服务器 nxserver --help: 查看帮助信息 如果你在使用 iptables防火墙,你必需打开相应端口: # iptables -A INPUT -i lo -s 127.0.0.1 -j ACCEPT #iptables -A INPUT -p tcp --dport 22 -j ACCEPT #iptables -A OUTPUT -p udp --sport 22 -j ACCEPT # iptables -A INPUT -p tcp --dport 5000 -j ACCEPT #iptables -A OUTPUT -p udp --sport 5000 -j ACCEPT 说明:NxFree服务器完全依赖于SSH进行工作,所以请先确保Linux服务器的Openssh配置无误。
=======


下载客户端:
http://www.nomachine.com/download.php

mybeauty 發表在 痞客邦 留言(0) 人氣()

«12 3