﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-SA Blog --系统管理员的博客生涯</title><link>http://www.cnitblog.com/201/</link><description>书写自己的系统管理博客生涯</description><language>zh-cn</language><lastBuildDate>Sun, 05 Jul 2009 21:07:53 GMT</lastBuildDate><pubDate>Sun, 05 Jul 2009 21:07:53 GMT</pubDate><ttl>60</ttl><item><title>Exception String: Error in invoking target install of makefile</title><link>http://www.cnitblog.com/201/archive/2009/06/23/59574.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Tue, 23 Jun 2009 11:58:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/06/23/59574.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/59574.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/06/23/59574.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/59574.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/59574.html</trackback:ping><description><![CDATA[今天上午 在linux rh4 安装oracle 9.2.0.4 过程中运行到63%时<br><br>Exception String: Error in invoking target install of makefile /orasys/oracle/product/9.2.0/plsql/lib/ins_plsql.mk<br><br>该打的补丁包 也已经打了<br><br>检查安装日志<br><br>Exception String: Error in invoking target install of makefile /orasys/oracle/product/9.2.0/plsql/lib/ins_plsql.mk<br>Exception Severity: 1<br>Exception thrown from action: make<br>Exception Name: MakefileException<br>Exception String: Error in invoking target install of makefile /orasys/oracle/product/9.2.0/plsql/lib/ins_plsql.mk<br>Exception Severity: 1<br>Exception thrown from action: make<br>Exception Name: MakefileException<br>Exception String: Error in invoking target install of makefile /orasys/oracle/product/9.2.0/plsql/lib/ins_plsql.mk<br>Exception Severity: 1<br>Exception thrown from action: make<br>Exception Name: MakefileException<br>Exception String: Error in invoking target install of makefile /orasys/oracle/product/9.2.0/plsql/lib/ins_plsql.mk<br>Exception Severity: 1<br>Exception thrown from action: make<br>Exception Name: MakefileException<br>Exception String: Error in invoking target install of makefile /orasys/oracle/product/9.2.0/plsql/lib/ins_plsql.mk<br>Exception Severity: 1<br>Exception thrown from action: make<br><br>编译make -f ins_plsql.mk  也不成功<br><br>在linux下执行以下操作<br><br>mv /usr/bin/gcc /usr/bin/gccold<br>   <br><br>mv /usr/bin/gcc32 /usr/bin/gcc<br><br>然后安装正常 成功后记的改回去<br><br>mv /usr/bin/gcc  /usr/bin/gcc32<br><br>mv /usr/bin/gccold /usr/bin/gcc<br>  <img src ="http://www.cnitblog.com/201/aggbug/59574.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-06-23 19:58 <a href="http://www.cnitblog.com/201/archive/2009/06/23/59574.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>CentOS 5.x 系统下使用yum 升级php到5.2.x 最方便方法</title><link>http://www.cnitblog.com/201/archive/2009/06/11/59280.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Thu, 11 Jun 2009 05:50:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/06/11/59280.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/59280.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/06/11/59280.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/59280.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/59280.html</trackback:ping><description><![CDATA[近期使用testlink 1.82 ，提及php需要升级到5.2以上，而centos 5.x目前提供php版本为5.1.6，<br>通过以下方法升级PHP到5.2比较方便，现推荐给大家。<br>
<div id="blogDetailDiv" style="font-size: 16px;"><wbr>先将以下地址导入。<br><br><a href="http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka" target="_blank"># rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka</a><wbr> <br><br># vi /etc/yum.repos.d/CentOS-Base.repo 增加下面信息<br><br>[utterramblings]<br>name=Jason's Utter Ramblings Repo<br>baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/<br>enabled=1<br>gpgcheck=1<br>gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka<br> <br>执行命令，自动升级。<br><br>yum update php -y<br>yum install libmcrypt -y<br><br><br><br><br></div>
<br><img src ="http://www.cnitblog.com/201/aggbug/59280.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-06-11 13:50 <a href="http://www.cnitblog.com/201/archive/2009/06/11/59280.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VMware ESX 下( guest os )Linux 虚拟机时间不正确问题修改方法</title><link>http://www.cnitblog.com/201/archive/2009/06/05/59071.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Fri, 05 Jun 2009 04:44:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/06/05/59071.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/59071.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/06/05/59071.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/59071.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/59071.html</trackback:ping><description><![CDATA[<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tbody>
        <tr>
            <td>
            <table width="100%">
                <tbody>
                    <tr>
                        <td class="document_title" rowspan="2" style="padding-bottom: 10px;" align="center"><br><br>Adjusting ESX Server Time Zone</td>
                        <td width="200">
                        <table style="border: 1px solid #a7c8e6; padding: 1px; border-spacing: 0px;" align="right">
                            <tbody>
                                <tr>
                                    <td>
                                    <table>
                                        <tbody>
                                            <tr>
                                                <td>KB Article</td>
                                                <td><strong> 1436</strong> </td>
                                            </tr>
                                            <tr>
                                                <td>Updated</td>
                                                <td><strong>
                                                Jul. 03,
                                                2008</strong> </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        </td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td>
            <table border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td class="tabbar" style="padding: 2px 5px 1px 10px;">Products<br><img alt="" src="http://kb.vmware.com/contactcenter/img/sp.gif" width="100" border="0" height="3"></td>
                        <td width="20" height="100%"><img alt="" src="http://kb.vmware.com/contactcenter/img/viewdoc_tab.gif" width="20" border="0" height="100%"></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td class="tabbar" height="2"><img alt="" src="http://kb.vmware.com/contactcenter/img/sp.gif" width="1" border="0" height="2"></td>
        </tr>
        <tr>
            <td class="body" style="padding: 10px;">
            <table border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td class="body_bold" style="padding-bottom: 5px;">VMware ESX</td>
                    </tr>
                    <tr>
                        <td class="body"><br></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td>
            <table border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td class="tabbar" style="padding: 2px 5px 1px 10px;">Details<br><img alt="" src="http://kb.vmware.com/contactcenter/img/sp.gif" width="100" border="0" height="3"></td>
                        <td width="20" height="100%"><img alt="" src="http://kb.vmware.com/contactcenter/img/viewdoc_tab.gif" width="20" border="0" height="100%"></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td class="tabbar" height="2"><img alt="" src="http://kb.vmware.com/contactcenter/img/sp.gif" width="1" border="0" height="2"></td>
        </tr>
        <tr>
            <td class="body" style="padding: 10px;"><content>
            <div><font face="Arial">During
            installation, a time zone was selected for ESX Server that doesn't
            match the desired time zone. What are the steps to change the time zone?<font size="2">  </font> </font></div>
            <div><font size="2" face="Arial"> </font>&nbsp;</div>
            <div><font size="2"><font face="Verdana"><strong> Note</strong> : An ESX
            host with the wrong date and time or time zone passes on that wrong
            information. When a&nbsp;virtual machine&nbsp;boots up it&nbsp;seems to get its inital
            time from the BIOS hardware clock which comes from the ESX host. </font> </font></div>
            </content><br></td>
        </tr>
        <tr>
            <td>
            <table border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td class="tabbar" style="padding: 2px 5px 1px 10px;">Solution<br><img alt="" src="http://kb.vmware.com/contactcenter/img/sp.gif" width="100" border="0" height="3"></td>
                        <td width="20" height="100%"><img alt="" src="http://kb.vmware.com/contactcenter/img/viewdoc_tab.gif" width="20" border="0" height="100%"></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td class="tabbar" height="2"><img alt="" src="http://kb.vmware.com/contactcenter/img/sp.gif" width="1" border="0" height="2"></td>
        </tr>
        <tr>
            <td class="body" style="padding: 10px;"><content>
            <div class="MsoNormal" style="margin: 0in 0in 0pt;">To change the time zone, please follow the steps below.</div>
            <div class="MsoNormal" style="margin: 0in 0in 0pt;">&nbsp;</div>
            <p>&#160;</p>
            <p><strong> Note:</strong>  It is not necessary to reboot the ESX Server host after following this procedure.</p>
            <ol type="1">
                <li class="MsoNormal" style="margin: 0in 0in 12pt;">Log into the ESX Server service console as root.
                </li>
                <li class="MsoNormal" style="margin: 0in 0in 12pt;">Find the desired time zone under the directory
                <tt>/usr/share/zoneinfo</tt> .<br><br><strong>Note:</strong> Some regions have multiple files in a subdirectory. For example,
                <tt>US</tt> contains several files, each representing a time zone.<br><br>The example below uses
                <tt>/usr/share/zoneinfo/US/Pacific</tt> as the new time zone file.
                </li>
                <li class="MsoNormal" style="margin: 0in 0in 12pt;">
                <div>Use
                <tt>nano</tt> ( or another text editor) to open
                <tt>/etc/sysconfig/clock</tt> . <font size="2" face="Verdana">At the command pompt, type:<br> </font><br><font size="2"><font face="Courier New">nano /etc/sysconfig/clock </font> </font><br> <br>Edit
                this file to show the relative path to the file representing the new
                time zone, and ensure that UTC and ARC are set as shown:<br><br>
                <tt>ZONE="US/Pacific"</tt> <br>
                <tt>UTC=false</tt><br>
                <tt>ARC=false</tt> </div>
                </li>
                <li class="MsoNormal" style="margin: 0in 0in 12pt;">Copy the desired time zone file to
                <tt>/etc/localtime</tt> . Continuing the example using
                <tt>US/Pacific</tt> :<br><br>
                <tt>cp /usr/share/zoneinfo/US/Pacific /etc/localtime</tt> <br><br>At the
                <tt>cp: overwrite `/etc/localtime'?</tt> prompt, answer
                <tt>y</tt> to replace the file representing the old time zone. Again, it is not necessary to reboot the ESX Server host after updating /etc/localtime .
                </li>
                <li class="MsoNormal" style="margin: 0in 0in 0pt;">Confirm that /etc/localtime has been updated with the correct zoneinfo data using the following steps:<br><br>
                </li>
                <li style="list-style-type: none;">
                <ol style="margin-top: 0in;" type="a">
                    <li class="MsoNormal" style="margin: 0in 0in 0pt;">
                    <div>Reference the zoneinfo file used in step 2 and compare it to / etc/localtime using the diff command.<br><br>[root@esxhost]# diff /etc/localtime /usr/share/zoneinfo/US/Pacific<br><br>If the files are identical, your prompt will return without any output.<br><br></div>
                    </li>
                    <li class="MsoNormal" style="margin: 0in 0in 0pt;">
                    <div>If /etc/localtime is not the same as the /usr/share/zoneinfo/&lt;your location&gt; , the output from the diff command will be something like the following:<br><br>Binary files /etc/localtime and /usr/share/zoneinfo/US/Pacific differ <br><br>If the files are not the same, repeat step 4.</div>
                    </li>
                </ol>
                </li>
            </ol>
            <p>&nbsp;</p>
            <p>After updating /etc/localtime with the correct zoneinfo data, confirm the system and hardware clocks are correct. Use the Linux date command to check and set the correct time if necessary. Set the hardware clock to match the correct system time.</p>
            <ol type="1">
                <li class="MsoNormal" style="margin: 0in 0in 12pt;">Set the system clock to the local date and time:<br><br>
                <tt>date MMDDhhmmYYYY</tt>
                </li>
                <li class="MsoNormal" style="margin: 0in 0in 0pt;">Update the hardware clock with current time of the system clock:<br><br>
                <tt>/sbin/hwclock --systohc</tt> </li>
            </ol>
            <p><strong>Note:</strong> Upon booting, ESX Server runs
            <tt>/etc/rc.d/init.d</tt> , which reads
            <tt>/etc/sysconfig/clock</tt> to
            set the system clock based on the hardware clock's current time and the
            configured time zone information. To synchronize ESX Server to an
            external time reference, see <a href="http://kb.vmware.com/kb/1339" target="_blank">http://kb.vmware.com/kb/1339</a> .</p>
            <p>&nbsp;</p>
            <p>Reference the VMware Knowledge Base at <a href="http://kb.vmware.com/">http://kb.vmware.com</a> for additional information about timezone, including issues with Daylight Saving Time (DST).</p>
            </content></td>
        </tr>
    </tbody>
</table>
<br><img src ="http://www.cnitblog.com/201/aggbug/59071.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-06-05 12:44 <a href="http://www.cnitblog.com/201/archive/2009/06/05/59071.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux下打开vnc，解决每次vnc需要先登录问题。</title><link>http://www.cnitblog.com/201/archive/2009/05/27/58873.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Wed, 27 May 2009 11:03:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/05/27/58873.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/58873.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/05/27/58873.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/58873.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/58873.html</trackback:ping><description><![CDATA[Ubuntu Forums &gt; The Ubuntu Forum Community &gt; Other Community Discussions &gt; Tutorials &amp; Tips &gt; HOWTO: Control the gnome VNC vino-server from the command line<br>PDA<br><br>View Full Version : HOWTO: Control the gnome VNC vino-server from the command line<br>srf21c<br>September 28th, 2006, 02:23 AM<br>CAVEAT: A user must already be logged into the desktop on the target machine for this to work<br><br>Here is a cool trick for remotely enabling the gnome vino VNC server (assuming that it's already been installed and configured) on a box that you only have SSH access to.<br><br>Log into the target system using SSH, and run the following command:<br><br>gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true<br><br>You can also monkey with the vino server options by editing this file<br><br>/home/&lt;userhomedir&gt;/.gconf/desktop/gnome/remote_access/%gconf.xml<br><br>Let's say you want to disable the "Ask you for confirmation" setting, or change the password.<br><br>Easiest way to do it:<br><br>1) On your own Ubuntu box; Go to System =&gt; Preferences =&gt; Remote Desktop. and configure the Remote Desktop Preferences to your liking, then click close.<br><br>2) Navigate to ~/.gconf/desktop/gnome/remote_access/ in your home directory, open up the %gconf.xml file, and copy the contents.<br><br>3) Establish an SSH connection to the remote box, change directory to /home/&lt;userhomedir&gt;/.gconf/desktop/gnome/remote_access/ directory, and backup the existing %gconf.xml file. mv %gconf.xml %gconf.xml.bak<br><br>4) Create a new %gconf.xml file, vi %gconf.xml then paste in the contents for your own %gconf.xml file that you copied in step number 2.<br><br>5) Stop and start the vino server from the command line<br>gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled false<br>gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true<br><br><br>6) Connect to the target system using your vnc client. When I'm on my Ubuntu workstation, I prefer to connect securely via SSH with the following command<br>vncviewer -via username@somehost.com targetboxhostname:0<br>motin<br>October 1st, 2006, 09:13 PM<br>Very interesting. Although I am in the same situation I cannot really use your guide, since I am using Putty from Windows... Can you maybe add some comments on how to achieve the same stuff in my situation? In case you know of course...<br>srf21c<br>October 2nd, 2006, 09:35 PM<br>You are perfectable capable of setting each value in the /home/&lt;userhomedir&gt;/.gconf/desktop/gnome/remote_access/%gconf.xml file manually using the gconftool-2 command.<br><br>I was unable to dig up any documentation on proper syntax of the %gconf.xml file so I did not feel qualified on delving into this method in more detail on my original post.<br><br>If you examine an existing %gconf.xml file, and compare that to the gconftool-2 command syntax that I have already posted, you should be able to figure out how to set the other parameters.<br>motin<br>October 8th, 2006, 12:09 AM<br>I have come so far that the vino server asks me for a password. A password that I cannot remember at all.<br><br>The problem is that I cannot change it via CLI. It is not written in plain text in ~/.gconf/desktop/gnome/remote_access/%gconf.xml, so changing it to "qwerty" in the file doesn't help.<br><br>Also, the command:<br>gconftool-2 -s -t string /desktop/gnome/remote_access/vnc_password qwerty<br><br>Just does the same thing as changing the file manually - ie doesn't help.<br><br>Do you or someone else now in what hash-type the vino passwords are written in?<br>motin<br>October 8th, 2006, 01:14 AM<br>I started a new thread on the matter (generating the password): http://ubuntuforums.org/showthread.php?p=1592817<br>srf21c<br>October 9th, 2006, 09:20 PM<br>Don't know what the vino server hash-type is, but here's the string I get after setting the vino password to "qwerty"<br><br>&lt;entry name="vnc_password" mtime="1160442984" type="string"&gt;<br>&lt;stringvalue&gt;cXdlcnR5&lt;/stringvalue&gt;<br>&lt;/entry&gt;<br>jdong<br>October 9th, 2006, 11:44 PM<br>Have you tried an htpasswd hash in there?<br>morton2002<br>October 13th, 2006, 12:11 PM<br>Many more details are available in the spun-off password thread (http://ubuntuforums.org/showpost.php?p=1613152&amp;postcount=2). Thanks for your head-start on this, I found the posts very useful and I hope I've helped you too.<br>srf21c<br>October 13th, 2006, 05:19 PM<br>I found a workaround that allows for logging in a user to the desktop remotely, simply edit the gnome desktop preferences to enable autologin, then reboot the box.<br><br>Edit the /etc/gdm/gdm.conf-custom file using your favorite text editor, and under the daemon section add the following lines<br><br>[daemon]<br>AutomaticLogin=&lt;username&gt;<br>AutomaticLoginEnable=true<br><br>Then reboot the box and the user will automatically be logged into the desktop on the next boot, thus starting the gnome vino vnc server (if enabled)<br>frafu<br>October 14th, 2006, 09:42 AM<br>@srf21c<br><br>I suppose the settings in /etc/gdm/gdm.conf-custom override those in /etc/gdm/gdm.conf<br><br>However, there is another question that I am wondering about: how can I enable the vino vnc server for the next boot on a system that is not running. (the disk with the system that does not run being mounted on another system)<br><br>Thanks in advance for your help.<br><br>frafu<br><br><br>Background:<br><br>I have a headless celeronbox with 2 ubuntu dapper systems on it; both systems have remote logins enabled (vino, nx, openssh). I would like to upgrade the second ubuntu to edgy, but I don't know whether the upgrade will disable the remote logins.<br><br>Consequently, I thought to edit menu.lst in grub to make it reboot after the upgrade with the system that has not been upgraded and reenable the remote logins from the new edgy before booting into edgy.<br>frafu<br>October 15th, 2006, 04:49 PM<br>I did the upgrade this afternoon and the update manager asked me several times whether I wanted to keep a specific old configuration file from dapper instead of installing the new one. As I kept the old configuration file for the remote desktop (and few others), I was able to connect with my vnc client at once after booting to edgy.<br><br>frafu<br>srf21c<br>October 16th, 2006, 04:54 PM<br>Excellent! In answer to your question, I think the bottom line is this; If you want the vino server to start hands-free after a reboot, you need to have automatic login to the desktop enabled.<br>bobpaul<br>March 19th, 2007, 04:35 PM<br>I know it's digging up an old thread, but one could install a windows xserver (cygwin has one, or Xming is good) and enable X forwarding in putty. It's even easier if your local machine is also linux:<br>$ ssh -XC user@host<br><br>Then you could open vino-preferences remotely. vino-preferences is a simple enough GUI that even across a pretty slow connection it still responds decently.<br><br>EDIT: I meant uppercase C for compression. Good for slower speed connections. Lowercase c will cause an error. Sorry. Thanks to srfc21 for pointing that out.<br>srf21c<br>March 19th, 2007, 07:34 PM<br>Bob,<br><br>_great_ suggestion....much more elegant than my approach. Thanks for adding that to the thread.<br><br>Btw, have you tested it succesfully?<br>bobpaul<br>March 21st, 2007, 03:45 PM<br>Yeah, I use Xming and putty's X-Forwarding optional from my WinXP machine at work to access my home machine all the time! Errm, I mean... I only do work related things at work. :-\"<br><br>Bigger apps, like firefox, are pretty unresponsive, but small config windows like this work just fine. For reference, I have 128kbps upstream on my home connection. I think your command line solution would be the best method over something like dialup as it might take a few minutes for the dialog to "stabilize" on a really slow connection like that.<br>frafu<br>March 21st, 2007, 04:22 PM<br>To open the "Login Window" preferences, you have to type into the terminal after opening your ssh -Y connection:<br><br><br>sudo gdmsetup<br><br><br>To open the "Remote Desktop" preferences, you have to type into the terminal:<br><br><br>sudo vino-preferences<br><br><br>But, the changes made in the forwarded preferences seem not to be effective in the session created by the auto-login at startup.<br>srf21c<br>March 27th, 2007, 03:37 PM<br>$ ssh -Xc user@host<br><br>Bob, I think the original command example you gave above might have a typo.<br><br>The lowercase -c option specifies the cipher to use, whereas the uppercase -C option enables compression. Did you mean to use the uppercase -C to enable compression? like this:<br><br>ssh -XC user@host<br>FXFman1209<br>June 6th, 2007, 10:43 AM<br>Hmm. I know this is an old thread, but... does this work? I don't think you should use sudo with vino-preferences, because your vino preferences are per-user. If you use sudo vino-preferences, it would set the preferences for root, and not the user.<br><br>Therefore I propose that you login as the user you want to desktop control, and then just simply do vino-preferences.<br><br>However, I could be totally wrong, however it works fine for me. Thanks for the -X suggestion, i never even thought of doing that. :-P<br>theQmaster<br>June 17th, 2007, 02:42 AM<br>I have Dapper without keyboard and monitor and I need to connect the desktop to upgrade to Edgy. Remote access seems to be the only options thus far... I have access to a sh session thru putty.<br><br>I managed to start x, vino and gdm - when I connect to the box with VNC client it looks like it's connecting but the client doesn't display any window - it looks that in background... If I kill the vino server I get the windows that the connection has been disconnected....<br><br>What's wrong ? It looks that the server awaits for acceptance from the server but I don't get any window since I'm in sh, I only get a broadcast that a connection has been established<br><br><br>Any help?<br>theQmaster<br>June 17th, 2007, 03:01 AM<br>Just realised that my vino server is not starting anymore<br><br>mc@gsi:/tmp$ sudo /usr/lib/vino/vino-server<br><br>(vino-server:31773): Gtk-WARNING **: cannot open display:<br><br><br>Any good tips ?<br>frafu<br>June 17th, 2007, 10:03 AM<br>Do you have an X server running on your local machine? If so, try to connect through sh with the following command:<br><br><br>ssh -Y loginname@remotecomputerip<br><br><br>Because of the -Y option, the gui of the application started on your remote computer should be displayed on your local machine if there is a X server running on your local machine.<br><br>Particularly, you should be able to start the synaptic Package Manager and reinstall vino. Afterwards, you should start "vino-preferences" from the shell which should display the gui of the preferences on your local machine. There you should be able to enable vino (=vnc server of the remote machine)<br><br>Have a nice day.<br>theQmaster<br>June 17th, 2007, 01:21 PM<br>I my windows' putty I typed the command by I get<br>ssh: connect to host localhost port 22: Connection refused<br><br><br><br>Do you have an X server running on your local machine? If so, try to connect through sh with the following command:<br><br><br>ssh -Y loginname@remotecomputerip<br><br><br>Because of the -Y option, the gui of the application started on your remote computer should be displayed on your local machine if there is a X server running on your local machine.<br><br>Particularly, you should be able to start the synaptic Package Manager and reinstall vino. Afterwards, you should start "vino-preferences" from the shell which should display the gui of the preferences on your local machine. There you should be able to enable vino (=vnc server of the remote machine)<br><br>Have a nice day.<br>frafu<br>June 17th, 2007, 03:03 PM<br>Is there an ssh-server running on your remote computer? (If I remember correctly, the ssh-client gets installed by the default ubuntu installation, but the ssh-server is not.) I thought that the ssh server was running on your remote computer...<br><br>Do you have some way to access the remote computer with some shell? If so, you could use the command<br>sudo apt-get install openssh-server<br>to install the ssh-server.<br><br>Unfortunately, I don't have much knowledge about this things.<br>foxmajik<br>July 10th, 2008, 03:10 PM<br>gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled trueThis doesn't actually stop or start the server, it just enables or disables the item in the configuration file.<br><br>$ gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true<br>jpruitt@winkypop:~$ nmap localhost<br><br>Starting Nmap 4.53 ( http://insecure.org ) at 2008-07-10 15:09 EDT<br>Interesting ports on localhost (127.0.0.1):<br>Not shown: 1712 closed ports<br>PORT STATE SERVICE<br>22/tcp open ssh<br>631/tcp open ipp<br><br>Nmap done: 1 IP address (1 host up) scanned in 0.069 secondsThe vino binary lives here:<br><br>/usr/lib/vino/vino-server<br><br>I discovered this while researching after my vino server crashed when I tried to set rotation to normal in the resolution preferences dialog.<br><br>Unfortunately starting the server from the command line doesn't seem to make it read the configuration stored in your home directory, and since there's no documentation available I don't know which switches to use to make it read the config, nor do I know what the switches are to specify them on the command line.<br><br>$ 10/07/2008 03:18:19 PM Autoprobing TCP port<br>10/07/2008 03:18:19 PM Autoprobing selected port 5900<br>10/07/2008 03:18:19 PM Advertising security type: 'TLS' (18)<br>10/07/2008 03:18:19 PM Advertising authentication type: 'VNC Authentication' (2)<br>10/07/2008 03:18:19 PM Advertising security type: 'VNC Authentication' (2)<br><br>jpruitt@winkypop:~$ nmap localhost<br><br>Starting Nmap 4.53 ( http://insecure.org ) at 2008-07-10 15:20 EDT<br>10/07/2008 03:20:48 PM Got connection from client localhost<br>10/07/2008 03:20:48 PM other clients:<br>Interesting ports on localhost (127.0.0.1):<br>Not shown: 1711 closed ports<br>PORT STATE SERVICE<br>22/tcp open ssh<br>631/tcp open ipp<br>5900/tcp open vnc<br><br>Nmap done: 1 IP address (1 host up) scanned in 0.070 seconds<br><br>Unfortunately there is no man page for vino-server.<br>srf21c<br>September 24th, 2008, 01:18 AM<br>Documentation for the vino-server seems hard to come by, indeed.<br><br>One option would be to configure a user to automatically log into the desktop on startup, then restart the machine. That should get the vino server running again, without having to get some hands on the physical console.<br>foxmajik<br>September 24th, 2008, 07:43 AM<br>Documentation for the vino-server seems hard to come by, indeed.<br><br>One option would be to configure a user to automatically log into the desktop on startup, then restart the machine. That should get the vino server running again, without having to get some hands on the physical console.<br><br>Yes and then anyone who walked by the computer could drop in and delete your / directory, view all of your private documents, impersonate you on the Internet and all sorts of other fun things. I wish more people would do this.<br>raindog469<br>March 25th, 2009, 11:37 AM<br>Sorry to bump an old thread, but we have three desktops with wired connections, one running Hardy and the other two Intrepid, and vino-server works fine on them. But we also have a laptop running Intrepid, and even with automatic login enabled and remote desktop enabled, the server just never runs unless we run /usr/lib/vino/vino-server manually.<br><br>We think this is because the wireless card doesn't get initialized until after the user has automatically been logged in, creating a race condition where vino-server is trying to get an IP address that may or may not exist. But the gconftool commands also don't seem to cause vino-server to run.<br><br>Anyone have any ideas about this? I'm just about to install x11vnc and make a script to run it remotely like I used to have to do under Mandriva, but just using Vino would be more convenient.<br><br>Yes and then anyone who walked by the computer could drop in and delete your / directory, view all of your private documents, impersonate you on the Internet and all sorts of other fun things. I wish more people would do this.<br><br>I'm sure glad I don't live in a group home.<br>MidSpeck<br>April 16th, 2009, 06:02 PM<br>It's nice that all the information needed is practically linked to from this thread. However, I'm the sort of guy that likes it all in one spot.<br><br>Turn on Ubuntu's built-in VNC server when all you have is SSH: (may have to have the user logged on to the desktop already, I haven't looked into that part of things at all)<br><br>gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true<br>gconftool-2 -s -t bool /desktop/gnome/remote_access/vnc_password cXdlcnR5<br>gconftool-2 -s -t list --list-type string<br>/desktop/gnome/remote_access/authentication_methods '[vnc]'<br>gconftool-2 --type bool --set /desktop/gnome/remote_access/prompt_enabled 0<br><br><br>Make an SSH tunnel to port 5900 and use a VNC viewer to connect.<br><br>Note that when you set the vnc_password, it expects it to be base64 encoded. So you'll be able to tell that my VNC password above is simply "qwerty". There are plenty of online base64 encoders and decoders to help you generate your own password.<br>srf21c<br>May 4th, 2009, 05:23 PM<br>Thanks for consolidating the info into a single post. Good idea.<br>neo-man<br>May 5th, 2009, 02:13 AM<br>I can't understand how can I use .htpasswd? anyhow Nice tutorial.<br><br>Debian (http://www.linux-archive.org/debian-user/)<br>vBulletin&#174; v3.8.1, Copyright &#169;2000-2009, Jelsoft Enterprises Ltd.<br><br>
<br><img src ="http://www.cnitblog.com/201/aggbug/58873.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-05-27 19:03 <a href="http://www.cnitblog.com/201/archive/2009/05/27/58873.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>京东购货模式，隐藏多种陷阱（行业潜规则）</title><link>http://www.cnitblog.com/201/archive/2009/05/08/57022.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Fri, 08 May 2009 03:13:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/05/08/57022.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/57022.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/05/08/57022.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/57022.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/57022.html</trackback:ping><description><![CDATA[很多网站为了优惠及服务顾客，在购买多个货物时可以免费送货或只收一次运费。<br><br>京东也提倡也提倡这样做，但要求客户发票信息不能单开。&nbsp; 如果你想但开票就只能分开下订单，交多次运费。<br><br>这招很狠，大家多注意。 是网购陷阱，还是行业潜规则！！！<br><br><img src ="http://www.cnitblog.com/201/aggbug/57022.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-05-08 11:13 <a href="http://www.cnitblog.com/201/archive/2009/05/08/57022.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>慎用 Nero 9 刻录软件，Nod32 vista下发现可疑程序。 </title><link>http://www.cnitblog.com/201/archive/2009/04/30/56848.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Thu, 30 Apr 2009 11:47:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/04/30/56848.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/56848.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/04/30/56848.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/56848.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/56848.html</trackback:ping><description><![CDATA[今日下载 Nero9 官方试用版。<br>http://www.nero.com/chs/nero9-introduction.html<br><br>Nod32 发现2个可疑程序 类似间谍软件，一个是连接地址是httpd 到Nero的。<br><br>大家慎用，本人已经卸载。没想到商业软件也不可靠。<br><br><br><br><img src ="http://www.cnitblog.com/201/aggbug/56848.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-04-30 19:47 <a href="http://www.cnitblog.com/201/archive/2009/04/30/56848.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>T400休眠后无法唤醒的解决方法</title><link>http://www.cnitblog.com/201/archive/2009/04/23/56679.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Thu, 23 Apr 2009 14:52:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/04/23/56679.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/56679.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/04/23/56679.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/56679.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/56679.html</trackback:ping><description><![CDATA[<h1>T400休眠后无法唤醒的解决方法</h1>
<strong>T400休眠后无法唤醒的解决方法</strong>
<br>
<br>
<p>症状：安装<a  href="http://vista.pcpop.com/" class="keyword" target="_blank">vista</a>进入休眠或者待机，希望唤醒时仅听到&#8220;滴&#8221;的一声，但是屏幕还是黑的，简单的说就是&#8220;系统醒不过来&#8221; （好像XP也有类似问题）<br>网上查到过的解决方法（基本都不靠谱）<br>1.打开TPM （号称是打<a  href="http://product.pcpop.com/NB/00220_1.html" target="_blank" class="keyword">联想</a>800问来的，国外很多论坛也有这么说的，但是部分朋友的情况是可以通过此方法解决）<br>2.关闭AMT（最不靠谱的说法）<br>3.装官方<a  href="http://product.pcpop.com/Power/00000_1.html" target="_blank" class="keyword">电源</a>管理驱动（这个当然要装，还用说）<br>下面来说说具体问题<br><a  href="http://product.pcpop.com/NB/00171_1.html" target="_blank" class="keyword">ThinkPad</a>在BIOS里有SATA模式的设置ACHI和兼容模式，而之前的习惯是为了正常安装XP，必须设置为兼容模式，所以很多机器从买来的时候，BIOS设置就设置在兼容模式下（尤其是最近的T400，由于没有SLIC，不能用装OEM <a  href="http://vista.pcpop.com/" class="keyword" target="_blank">vista</a>）<br>因此我们买来之后如果是装<a  href="http://vista.pcpop.com/" class="keyword" target="_blank">vista</a>的时候又没有调整SATA设置，那我们的<a  href="http://product.pcpop.com/HDD/00000_1.html" target="_blank" class="keyword">硬盘</a>其实是在模拟ATA模式工作，最终就导致休眠无法唤醒。（类似设置在之前的6系列机型就没有问题，但是现在现在机型如T400/T500/W500等机型好像都存在）<br>但问题有又来了，如果已经安装完成<a  href="http://vista.pcpop.com/" class="keyword" target="_blank">vista</a>，再去BIOS中调整为ACHI，结果就是开机蓝屏.....<br>解决方法：<br>1.修改注册表项 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Msahci&nbsp; 改Start为0 <br>2.重新启动，进入BIOS修改SATA模式至ACHI<br>3.进入<a  href="http://vista.pcpop.com/" class="keyword" target="_blank">vista</a>，更新SATA驱动（<a  href="http://product.pcpop.com/CPU/00301_1.html" target="_blank" class="keyword">Intel</a> Matrix Storage Manager Driver <a  href="http://www-307.ibm.com/pc/suppor">http://www-307.ibm.com/pc/suppor</a> ... ?lndocid=MIGR-70477）<br>4.之后系统可能需要重新启动2次（<a  href="http://product.pcpop.com/HDD/00000_1.html" target="_blank" class="keyword">硬盘</a>和<a  href="http://product.pcpop.com/OpticalStorage/00000_1.html" target="_blank" class="keyword">光驱</a>的驱动都会重新安装）<br>5.再尝试休眠，就一切OK了 </p>
<br><br><img src ="http://www.cnitblog.com/201/aggbug/56679.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-04-23 22:52 <a href="http://www.cnitblog.com/201/archive/2009/04/23/56679.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>远程桌面连接端口号修改工具</title><link>http://www.cnitblog.com/201/archive/2009/03/20/55583.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Fri, 20 Mar 2009 06:55:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/03/20/55583.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/55583.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/03/20/55583.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/55583.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/55583.html</trackback:ping><description><![CDATA[推荐一个好工具下载:<br><a  href="http://www.testlink.org.cn/downloads/RemoteDesktopConnection3389.exe">http://www.testlink.org.cn/downloads/RemoteDesktopConnection3389.exe</a><br><br><img src ="http://www.cnitblog.com/201/aggbug/55583.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-03-20 14:55 <a href="http://www.cnitblog.com/201/archive/2009/03/20/55583.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>可怜的农业银行 电话客服系统</title><link>http://www.cnitblog.com/201/archive/2009/03/09/55217.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Mon, 09 Mar 2009 15:03:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/03/09/55217.html</guid><description><![CDATA[今天遭遇北京农业银行服务低劣品质.<br><br>农行自动存款,放入钱,最后取消了存款,结果卡吐出来了.先进没收了. 打电话支持95599,30分钟终于接通一个打瞌睡的mm,告知明天上班再让我联系我外地农业银行,让外地农业银行工作人员向他们提出申请.FT.<br><br>mm说银行的人肯定大公无私,如果查出取款机帐目多出来钱一定给我,靠,无任何凭证如何去查. <br><br>以后再也不要用农行了,怕了.<br><br>河南的农业银行没有客服系统.那个95599不提供任何服务. 是只农业银行服务低劣,还是国有银行都这么样呢.<br><br>什么时候跟人家招商银行比比服务啊.<br><br><br><img src ="http://www.cnitblog.com/201/aggbug/55217.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-03-09 23:03 <a href="http://www.cnitblog.com/201/archive/2009/03/09/55217.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>关注Lenovo ThinkPad T400 LED（三星orLG)显示屏问题处理</title><link>http://www.cnitblog.com/201/archive/2009/03/07/55170.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Sat, 07 Mar 2009 05:39:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/03/07/55170.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/55170.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/03/07/55170.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/55170.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/55170.html</trackback:ping><description><![CDATA[今日国内外很多T400的朋友都在讨论LED屏幕问题，总的来说都希望是LG的屏幕。难道真的三星的LED屏幕存在缺陷。大家可以看国外报道，但不能考证是否是真的，因为作者没有给几个电脑同角度的对比。<br><a  href="http://aphnetworks.com/reports/lenovo_customer_service_hell_as_youve_heard">http://aphnetworks.com/reports/lenovo_customer_service_hell_as_youve_heard</a><br><br>不巧的是从08年12月到09年2月都是美国通过CPP购买的T400多数是三星的LED，希望大家看看自己的屏幕是否真的存在这样的问题。<br><br>09年3月份开始，美国联想网站取消了T400 配置LED屏幕的选项，所以近期网站购买只能选择LCD屏幕，没有LED选择，这是否是一个信号，是LED确实不过关，是个产品缺陷而暂停了LED的供货，还是其他原因？不可知。<br><br>所以大家还是尽快检查一下自己的LED屏幕吧，如果真的是产品缺陷，Lenovo是否会考虑召回呢？<br><br><br><br><img src ="http://www.cnitblog.com/201/aggbug/55170.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-03-07 13:39 <a href="http://www.cnitblog.com/201/archive/2009/03/07/55170.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>