Window VNC远程控制LINUX:VNC详细配置介绍//---------------------------------------vnc linux下的详细配置1、VNC的启动/停止/重启:#service vncserver start/stop/restart关闭具体的vncserver命令:vncserver -kill :1 vncserver -kill :22、设置密码#vncpasswd3、客户端登陆在vnc客户端中输入:服务器端IP:1或服务器端IP:24、设置登陆到KDE桌面a.[root@centos ~]# vi /etc/sysconfig/vncserver Read More
posted @ 2013-07-04 19:29 立春了 Views(814) Comments(0) Diggs(0) Edit
我的Linux是Fedora 13,安装方法如下:1、打开终端,执行# yum install -y tigervnc tigervnc-server2、编辑/etc/sysconfi/vncservers# vi /etc/sysconfig/vncservers在最后加入:VNCSERVERS="1:sky"VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp -localhost"注意:sky是我的机器名称然后,:wq保存退出。3、在启动vnc之前,先要设置vnc的链接密码:# vncpasswd两次输 Read More
posted @ 2013-07-04 19:28 立春了 Views(768) Comments(0) Diggs(0) Edit
如何让putty记住密码..pietty也一样的不能记住密码.找不到好的的方法...只好试着按照参数格式做了一个快捷方式..F:\soft\pietty.exe -pw password123 root@10.0.1.1putty参数命令参考_____________________________________________命令行格式putty [-pw password] [-m file] user@ip_addr-pw password 使用ssh登录的用户的密码(明文,所以安全性请自己考虑)-m file 要在服务器上运行的命令user@ip_addr 使用ssh登录的用户名和服 Read More
posted @ 2013-07-03 17:05 立春了 Views(238) Comments(0) Diggs(0) Edit
1 int copy_mem(int nr,struct task_struct * p) 2 { 3 unsigned long old_data_base,new_data_base,data_limit; 4 unsigned long old_code_base,new_code_base,code_limit; 5 6 code_limit=get_limit(0x0f); 7 data_limit=get_limit(0x17); 8 old_code_base = get_base(current->ldt[1]); 9 old... Read More
posted @ 2013-05-18 21:46 立春了 Views(320) Comments(0) Diggs(0) Edit
http://blog.csdn.net/yixilee/article/details/5855663source insight删除已加载的project工程项目报错的解决办法我正在中文路径下加载了一个工程,结果一点击打开,source insight程序就会出现错误提示,要求关闭。详细信息如下:“Source Insight Program Editor 遇到问题需要关闭。我们对此引起的不便表示抱歉。”我想可能是不支持中文的吧,就想把这个Project删除了,结果删不了。后来,我就把source insight卸载了,重新安装后,以前的那些工程还在,仍然是同样的错误,删不了。后来发现解决 Read More
posted @ 2013-05-12 18:47 立春了 Views(1825) Comments(0) Diggs(0) Edit
1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : val(x), left(NULL), right(NULL) {} 8 * }; 9 */10 class Solution {11 public:12 bool isSameTree(TreeNode *p, TreeNode *q) {13 // S... Read More
posted @ 2013-05-11 21:45 立春了 Views(127) Comments(0) Diggs(0) Edit
1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : val(x), left(NULL), right(NULL) {} 8 * }; 9 */10 class Solution {11 public:12 int countsub(TreeNode *root) {13 int minsub=1;1... Read More
posted @ 2013-05-11 21:30 立春了 Views(181) Comments(0) Diggs(0) Edit
1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : val(x), left(NULL), right(NULL) {} 8 * }; 9 */10 class Solution {11 public:12 int countsub(TreeNode *root) {13 int minsub=1;14 ... Read More
posted @ 2013-05-11 21:27 立春了 Views(131) Comments(0) Diggs(0) Edit
1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : val(x), left(NULL), right(NULL) {} 8 * }; 9 */10 class Solution {11 public:12 int sum(int val,TreeNode *root){13 int rootval... Read More
posted @ 2013-05-11 20:55 立春了 Views(146) Comments(0) Diggs(0) Edit
class Solution {public: bool isPalindrome(string s) { // Start typing your C/C++ solution below // DO NOT write int main() function transform(s.begin(), s.end(), s.begin(), ::toupper); string ss; for ( int i = 0; i != s.length(); ++i) { if ( isalnum(s[i]) ) ss.push_... Read More
posted @ 2013-05-11 19:15 立春了 Views(174) Comments(0) Diggs(0) Edit