<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sybase数据库技术，数据库恢复专家 &#187; CentOS</title>
	<atom:link href="http://www.dbainfo.net/tag/centos/feed" rel="self" type="application/rss+xml" />
	<link>https://www.dbainfo.net</link>
	<description>提供Sybase ASE及Sybase SQL Anywhere数据库修复服务，电话：13811580958(微信)，QQ：289965371！We have many years of experience in recovering data from damanged Sybase devices. Contact us by Phone: +86 13811580958 Wechat: 13811580958 Email: 289965371@qq.com</description>
	<lastBuildDate>Sat, 14 Jun 2025 16:28:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>centos 5.5 vnc server配置方法</title>
		<link>https://www.dbainfo.net/config-vn-cserver-on-centos5-5.htm</link>
		<comments>https://www.dbainfo.net/config-vn-cserver-on-centos5-5.htm#comments</comments>
		<pubDate>Thu, 03 Nov 2011 14:21:50 +0000</pubDate>
		<dc:creator>dbainfo</dc:creator>
				<category><![CDATA[Unix&Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[VNC]]></category>

		<guid isPermaLink="false">http://www.dbainfo.net/?p=1249</guid>
		<description><![CDATA[1.安装所需要的包 所需的包有vnc-server(vnc服务器软件包）,vnc（客户端包）。 另外，既然想用VNC，肯定是想要看图形界面，那就还要安装&#34;GNOME Desktop Environment&#34;(如果是想用GNOME,否则用KDE） 如下： #yum install vnc-server(注意在root下安装） #yum install vnc #yum groupinstall &#34;GNOME Desktop Environment&#34; 注意安装前先用rpm -qa&#124;grep &#34;vnc-server&#34;这种方式来查询一下是否已经安装好。一般如果你安装centos时选用的是默认的方式安装系统，那上面的步骤可以省略。 2.准备VNC用户资料，包括创建你想要的用户和密码（就是系统自己那种用户密码）。 如： #useradd peter #passwd peter 如果系统所需帐号已经建立，或是你只想用root来登录VNCServer，那此步骤也可以略过。 3.设定你想用来登录的用户的VNC密码。注意这里并不是系统帐号密码，而是用来登录VNC的密码。可以与系统的密码一样，也可以不一样。 方法是：先进入相应的帐号，比如在终端下进入peter用户，然后输入vncpasswd命令 peter$ vncpasswd (在这里输入你要的密码，确定）（其它帐号方法同样） 这时候，可以进入家目录下的.vnc目录下来查看是否产生了passwd文件，如果有，说明密码创建成功。 【～】$cd .vnc [~}$ls passwd 查看文件内容时并不能看到密码资料，因为是加密的。 4.修改VNC服务器配置文件/etc/sysconfig/vncservers 里面所有内容都是注释行，所以你可以直接在后面加上下面的语句： VNCSERVERS=&#34;1:peter 2:root&#34; VNCSERVERARGS[1]=&#34;-geometry 800x600&#34; VNCSERVERARGS[2]=&#34;-geometry 1024x768&#34; 这里要注意两点，第一、上面三行中第一行是设定可以使用VNC服务器的帐号，可以设定多个，但中间要用空格隔开。注意前面的数字&#8220;1&#8221;或是&#8220;2&#8221;，当你要从其它电脑来VNC服务器时，就需要用IP:1这种方法，而不能直接用 IP。如假定你的VNC服务器IP是192.168.1.100，那想进入VNC服务器，并以peter用户登录时，需要在vncviewer里输入IP的地方输入：192.168.1.100:1,如果是root,那就是192.168.1.100:2. 第二、下面两行[1][2]最好与上面那个相对应，后面的800X600可以换成你电脑支持的分辨率。注意中间的&#34;x&#34;不是&#8220;*&#8221;，而是小写字母&#34;x&#34;. 5.创建xstartup scripts。 只要你启用一次VNCserver，就能自动创建，方法如下： #/sbin/service vncserver start(注意要在root下才能启动） [...]]]></description>
			<content:encoded><![CDATA[<p>1.安装所需要的包<br />
	所需的包有vnc-server(vnc服务器软件包）,vnc（客户端包）。<br />
	另外，既然想用VNC，肯定是想要看图形界面，那就还要安装&quot;GNOME Desktop Environment&quot;(如果是想用GNOME,否则用KDE）<br />
	如下：</p>
<pre>#yum install vnc-server(注意在root下安装）
#yum install vnc
#yum groupinstall &quot;GNOME Desktop Environment&quot;
</pre>
<p>注意安装前先用rpm -qa|grep &quot;vnc-server&quot;这种方式来查询一下是否已经安装好。一般如果你安装centos时选用的是默认的方式安装系统，那上面的步骤可以省略。</p>
<p>2.准备VNC用户资料，包括创建你想要的用户和密码（就是系统自己那种用户密码）。<br />
	如：<br />
	#useradd peter<br />
	#passwd peter<br />
	如果系统所需帐号已经建立，或是你只想用root来登录VNCServer，那此步骤也可以略过。<span id="more-1249"></span></p>
<p>3.设定你想用来登录的用户的VNC密码。注意这里并不是系统帐号密码，而是用来登录VNC的密码。可以与系统的密码一样，也可以不一样。<br />
	方法是：先进入相应的帐号，比如在终端下进入peter用户，然后输入vncpasswd命令<br />
	peter$ vncpasswd<br />
	(在这里输入你要的密码，确定）（其它帐号方法同样）<br />
	这时候，可以进入家目录下的.vnc目录下来查看是否产生了passwd文件，如果有，说明密码创建成功。<br />
	【～】$cd .vnc<br />
	[~}$ls<br />
	passwd<br />
	查看文件内容时并不能看到密码资料，因为是加密的。</p>
<p>4.修改VNC服务器配置文件/etc/sysconfig/vncservers<br />
	里面所有内容都是注释行，所以你可以直接在后面加上下面的语句：</p>
<pre>VNCSERVERS=&quot;1:peter 2:root&quot;
VNCSERVERARGS[1]=&quot;-geometry 800x600&quot;
VNCSERVERARGS[2]=&quot;-geometry 1024x768&quot;
</pre>
<p>这里要注意两点，第一、上面三行中第一行是设定可以使用VNC服务器的帐号，可以设定多个，但中间要用空格隔开。注意前面的数字&ldquo;1&rdquo;或是&ldquo;2&rdquo;，当你要从其它电脑来VNC服务器时，就需要用IP:1这种方法，而不能直接用</p>
<p>IP。如假定你的VNC服务器IP是192.168.1.100，那想进入VNC服务器，并以peter用户登录时，需要在vncviewer里输入IP的地方输入：192.168.1.100:1,如果是root,那就是192.168.1.100:2.<br />
	第二、下面两行[1][2]最好与上面那个相对应，后面的800X600可以换成你电脑支持的分辨率。注意中间的&quot;x&quot;不是&ldquo;*&rdquo;，而是小写字母&quot;x&quot;.</p>
<p>5.创建xstartup scripts。<br />
	只要你启用一次VNCserver，就能自动创建，方法如下：<br />
	#/sbin/service vncserver start(注意要在root下才能启动）<br />
	#/sbin/service vncserver stop(启动后再关闭，方便下面的操作）<br />
	通过上面的方法，就可以在用户家目录下的.vnc目录里创建xstartup文件.</p>
<pre>6.修改xstartup文件。
原本的xstartup文件内容应该如下：
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &amp;
xterm -geometry 80x24+10+10 -ls -title &quot;$VNCDESKTOP Desktop&quot; &amp;
twm &amp;</pre>
<pre>只要取消上面第三行第四行前的#符号，就行，当然，如果你想进入VNC服务器时看到的是图形界面，那就还需要把最后面的那行注释掉，并加上gnome-session $.
修改后的文件内容应该如下：
#!/bin/sh
# Add the following line to ensure you always have an xterm available.
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &amp;
xterm -geometry 80x24+10+10 -ls -title &quot;$VNCDESKTOP Desktop&quot; &amp;
#twm &amp;
gnome-session &amp;</pre>
<p>上面的步骤做完，VNC服务器基本上就配置完了，接下来要做的是用root登录进去，然后，用&quot;service vncserver start&quot;命令启动vncserver，这时候你再用&quot;netstat -tunlp&quot;命令来查看它启用的端口，可以发现有5801，5901，6001。都是TCP端口，另外如果你如我设置，那就还会有5802，5902，6002这些端口也是它的。</p>
<p>接下来，是给它开防火墙端口放行。把5801这些端口都加入进去。一般来说，直接在图形界面上加端口会更方便。点&ldquo;系统-管理-安全级别与防火墙&rdquo;在里面加入上面的端口号就行了。</p>
<p>做到这里，总算是大功告成了，接下来你可以用http://IP:port的方式来WEB登录比如说</p>
<p>http://IP:5801,也可以在vncviewer里用IP:1这种来登录。</p>
<hr />
<p>转自：<a href="http://blog.doulexiang.com/" target="_blank">苏北小三/开源技术BLOG</a> -&nbsp; <a href="http://blog.doulexiang.com/notes/centos-55-vnc-server%E9%85%8D%E7%BD%AE%E6%96%B9%E6%B3%95" target="_blank">http://blog.doulexiang.com/notes/centos-55-vnc-server%E9%85%8D%E7%BD%AE%E6%96%B9%E6%B3%95</a></p>
<div style="clear: both; margin: 10px 0pt; border: 1px dashed rgb(153, 153, 153); font-size: 12px; padding: 5px 10px;">
<li>本文链接地址：<a href="https://www.dbainfo.net/config-vn-cserver-on-centos5-5.htm">https://www.dbainfo.net/config-vn-cserver-on-centos5-5.htm</a>；</li>
<li>本文为dbainfo个人原创，请在尊重作者劳动成果的前提下进行转载；</li>
<li>转载务必注明原始出处 : <a href="https://www.dbainfo.net/">Sybase数据库技术，数据库恢复专家</a>；</li>
<li>对《<a href="https://www.dbainfo.net/config-vn-cserver-on-centos5-5.htm">centos 5.5 vnc server配置方法</a>》有何疑问或见解，请在本文下方发表；</li>
<li>对网站还有其他问题或建议，请提交在<a href="https://www.dbainfo.net/messages" target="_blank">留言板</a>，谢谢！</li>
</div>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2011-10-14 -- <a href="https://www.dbainfo.net/install-centos-6-0-from-pxe-hangggg.htm" title="解决通过网络(PXE)安装CentOS6.0 x86_64时无法初始化硬件的问题">解决通过网络(PXE)安装CentOS6.0 x86_64时无法初始化硬件的问题</a> (0)</li><li>2009-12-28 -- <a href="https://www.dbainfo.net/vnc-from-windows-to-remote-linxu-desktop.htm" title="用vnc实现windows远程连接linux桌面">用vnc实现windows远程连接linux桌面</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>https://www.dbainfo.net/config-vn-cserver-on-centos5-5.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决通过网络(PXE)安装CentOS6.0 x86_64时无法初始化硬件的问题</title>
		<link>https://www.dbainfo.net/install-centos-6-0-from-pxe-hangggg.htm</link>
		<comments>https://www.dbainfo.net/install-centos-6-0-from-pxe-hangggg.htm#comments</comments>
		<pubDate>Fri, 14 Oct 2011 01:49:08 +0000</pubDate>
		<dc:creator>dbainfo</dc:creator>
				<category><![CDATA[Unix&Linux]]></category>
		<category><![CDATA[acpi]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[PXE]]></category>

		<guid isPermaLink="false">http://www.dbainfo.net/?p=1194</guid>
		<description><![CDATA[环境： 硬件：hp 6910p 笔记本,intel T7300 CPU(EM64T,VT-x) 软件：CentOS6.0 x86_64 问题： 使用网络方式(PXE)安装CentOS6.0 x86_64的时候，屏幕上输出waiting for hardware to initialize信息后，一直黑屏，无法继续安装！ 解决： 在boot选项中，尝试acpi=off解决。 修改文件：/tftpboot/pxelinux.cfg/default ，在append行添加：acpi=off label centos6 kernel vmlinuz_centos6 append initrd=initrd.img_centos6 acpi=off 关于双核CPU显示单核的问题 系统安装完成后，查看cpu的核数： grep &#34;processor&#34; /proc/cpuinfo 发现只显示一个核。 使用dmesg命令查看开机启动信息。发现有下面一条信息： CPU: Unsupported number of siblings 2 解决办法： 删除引导文件grub.conf中的acpi=off， #vi /boot/grub/grub.conf default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.32-71.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-71.el6.x86_64 ro [...]]]></description>
			<content:encoded><![CDATA[<p><strong>环境：<br />
	</strong></p>
<p>硬件：hp 6910p 笔记本,intel T7300 CPU(EM64T,VT-x)</p>
<p>软件：CentOS6.0 x86_64</p>
<p><strong>问题：</strong></p>
<p>使用网络方式(PXE)安装CentOS6.0 x86_64的时候，屏幕上输出<span style="font-size:14px;">waiting for hardware to initialize</span>信息后，一直黑屏，无法继续安装！</p>
<p><strong>解决：<br />
	</strong></p>
<p>在boot选项中，尝试<span style="color:#f00;">acpi=off</span>解决。</p>
<p>修改文件：/tftpboot/pxelinux.cfg/default ，在append行添加：acpi=off<span id="more-1194"></span></p>
<pre>label centos6
  kernel vmlinuz_centos6
  append initrd=initrd.img_centos6 <span style="font-size:14px;"><span style="color: rgb(255, 0, 0);">acpi=off </span></span></pre>
<hr />
<p><strong>关于双核CPU显示单核的问题<br />
	</strong></p>
<p>系统安装完成后，查看cpu的核数：</p>
<p>grep &quot;processor&quot; /proc/cpuinfo</p>
<p>发现只显示一个核。</p>
<p>使用dmesg命令查看开机启动信息。发现有下面一条信息：</p>
<p>CPU: Unsupported number of siblings 2<br />
	<strong>解决办法：</strong></p>
<p>删除引导文件grub.conf中的acpi=off，</p>
<p>#vi /boot/grub/grub.conf</p>
<pre>default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-71.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-71.el6.x86_64 ro root=/dev/mapper/vg_centos6-lv_root rd_LVM_LV=vg_centos6/lv_root rd_LVM_LV=vg_centos6/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us <span style="color:#f00;"><strike>acpi=off </strike></span>crashkernel=auto rhgb quiet
        initrd /initramfs-2.6.32-71.el6.x86_64.img
</pre>
<p>重启后，使用dmesg查看发现：</p>
<p>Brought up 2 CPUs<br />
	Total of 2 processors activated (7980.35 BogoMIPS).</p>
<p>说明已经能够识别双核CPU了。</p>
<pre>sh-4.1# grep &quot;processor&quot; /proc/cpuinfo
processor       : 0
processor       : 1
</pre>
<p><strong>参考：<br />
	</strong></p>
<p>关于acpi知识：<br />
	<a href="http://blog.chinaunix.net/space.php?uid=10618870&amp;do=blog&amp;cuid=394768" target="_blank">noapic和acpi=off能帮我做到什么？</a><br />
	<a href="http://blog.chinaunix.net/space.php?uid=10618870&amp;do=blog&amp;id=2945494" target="_blank">ACPI和APIC有什么关系？ </a></p>
<p><a href="http://community.linuxmint.com/tutorial/view/420" target="_blank">Fix for ACPI=OFF Boot Option<br />
	</a></p>
<p>通过网络安装(PXE)linux操作系统：</p>
<p><a href="http://wiki.centos.org/HowTos/PXE/PXE_Setup" target="_blank">http://wiki.centos.org/HowTos/PXE/PXE_Setup<br />
	</a></p>
<p><a href="http://www.server-world.info/en/note?os=CentOS_6&amp;p=pxe&amp;f=2" target="_blank">http://www.server-world.info/en/note?os=CentOS_6&amp;p=pxe&amp;f=2<br />
	</a></p>
<div style="clear: both; margin: 10px 0pt; border: 1px dashed rgb(153, 153, 153); font-size: 12px; padding: 5px 10px;">
<li>本文链接地址：<a href="https://www.dbainfo.net/install-centos-6-0-from-pxe-hangggg.htm">https://www.dbainfo.net/install-centos-6-0-from-pxe-hangggg.htm</a>；</li>
<li>本文为dbainfo个人原创，请在尊重作者劳动成果的前提下进行转载；</li>
<li>转载务必注明原始出处 : <a href="https://www.dbainfo.net/">Sybase数据库技术，数据库恢复专家</a>；</li>
<li>对《<a href="https://www.dbainfo.net/install-centos-6-0-from-pxe-hangggg.htm">解决通过网络(PXE)安装CentOS6.0 x86_64时无法初始化硬件的问题</a>》有何疑问或见解，请在本文下方发表；</li>
<li>对网站还有其他问题或建议，请提交在<a href="https://www.dbainfo.net/messages" target="_blank">留言板</a>，谢谢！</li>
</div>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2011-11-03 -- <a href="https://www.dbainfo.net/config-vn-cserver-on-centos5-5.htm" title="centos 5.5 vnc server配置方法">centos 5.5 vnc server配置方法</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>https://www.dbainfo.net/install-centos-6-0-from-pxe-hangggg.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
