<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Php2s.com Linux Guide</title> <link>http://www.php2s.com</link> <description>Linux, Security, Networking, Open Source for Newbies and Geeks</description> <lastBuildDate>Wed, 11 Jul 2012 12:47:36 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.4.1</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Php2s" /><feedburner:info uri="php2s" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>Php2s</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item><title>How to Install Secure Shell/ OpenSSH Server on Ubuntu 12.04</title><link>http://feedproxy.google.com/~r/Php2s/~3/0T6fm_YAje0/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html</link> <comments>http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html#comments</comments> <pubDate>Wed, 11 Jul 2012 12:44:34 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[OpenSSH]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[SSH]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Ubuntu 12.04]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1271</guid> <description><![CDATA[This tutorial shows you how to install, enable and configure Secure Shell (SSH)/ OpenSSH server on Ubuntu 12.04 Server. SSH lets you communicate between two networked computers securely. Because SSH is more secure than Telnet, it is recommended that you use SSH instead of Telnet to communicate, and this tutorial will show you how to [...]]]></description> <content:encoded><![CDATA[<p>This tutorial shows you how to install, enable and configure Secure Shell (SSH)/ OpenSSH server on Ubuntu 12.04 Server. SSH lets you communicate between two networked computers securely. Because SSH is more secure than Telnet, it is recommended that you use SSH instead of Telnet to communicate, and this tutorial will show you how to install and use it in Ubuntu 12.04</p><p>OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on.</p><p><span
id="more-1271"></span></p><h2><strong><span
style="color: #3366ff;">Installing OpenSSH</span></strong></h2><p>To install the OpenSSH server application, and related support files, use this command at a terminal prompt:</p><blockquote><p>[root@php2s ~]# sudo apt-get install openssh-server</p></blockquote><p>To install the OpenSSH client applications on your Ubuntu system, use this command at a terminal prompt:</p><blockquote><p>[root@php2s ~]# sudo apt-get install openssh-client</p></blockquote><p>After installing, you may configure SSH Server by running the command below to OpenSSH config file.</p><blockquote><p>[root@php2s ~]# gksu gedit /etc/ssh/sshd_config</p></blockquote><p>Make all the changes in here and save the file. For instance, the default port SSH listens on is 22. Most SSH severs are set to communicate in Protocol Version 2. You could limit the IP Address SSH Server communicates on by uncommenting ( # ) line ListenAddress x.x .x.x and specifying the IP Address.</p><p>You might also want to check the following settings:</p><blockquote><p>RSAAuthentication == YES<br
/> Protocol == 2 (make sure this is not a ’1′)<br
/> PasswordAuthentication == YES (only if you have not done the Key Authentication part below)<br
/> AllowUsers == make sure the users you want to access the machine are in here<br
/> PermitRootLogin == NO</p></blockquote><p>Then restart the sshd server:</p><blockquote><p>[root@php2s ~]# sudo /etc/init.d/ssh restart</p></blockquote><p>Save the file when done. Try connecting from a remote computer.</p><p>Use the following command to connect to server</p><blockquote><p>ssh user@your-server-ip-address</p></blockquote><blockquote><p>[root@php2s ~]# ssh frank@192.168.1.109</p></blockquote><p>Here the Ubuntu Server ip is 192.168.1.109, username frank. Put your own server ip to connect.</p><h2><span
style="color: #3366ff;"><strong>How do I use a client to connect Server</strong></span></h2><p>Assuming that your server hostname is php2s, host ip address 192.168.1.109 and username is frank, you need to type the following command:</p><blockquote><p># ssh frank@php2s<br
/> # ssh frank@192.168.1.109</p></blockquote><p><span
style="color: #ff6600;"><strong>Lets Set a Hostname for client login</strong></span><br
/> By now you’re no doubt getting sick of typing frank@192.168.1.109 or whatever. It sure would be nice to type something shorter. Let’s fix that.</p><p>OpenSSH uses a client configuration file, located at ~/.ssh/config, to simplify some of the tedious typing associated with logging into remote machines. To edit (or create) that file, we’ll use the nano text editor, but you can use vi, emacs, kate or whatever:</p><blockquote><p>nano ~/.ssh/config</p></blockquote><p>The simplest configuration file might look something like this:</p><blockquote><p>Host php2s<br
/> HostName 192.168.1.109</p></blockquote><p>This associates the Host php2s with the HostName (or IP address) 192.168.1.109, so now to login you’ll only need to type:</p><blockquote><p>ssh frank@php2s</p></blockquote><p>That’s cool, but let’s add more config to make life more easier, How about this:</p><blockquote><p>Host php2s<br
/> HostName 192.168.1.109<br
/> User frank</p></blockquote><p>Now all we need to type is:</p><blockquote><p>[root@php2s ~]# ssh php2s</p></blockquote><p>Far out! You can add as much configuration data as you need to this Host, and as many different Hosts as you like. And this shorthand will also work with all the scp examples:</p><blockquote><p>scp file.txt php2s:</p></blockquote><p>To learn more visit the <a
href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh_config">OpenSSH docs</a>, or run man ssh_config.</p><p><span
style="color: #ff6600;"><strong>How to Stop, Start &amp; Restart</strong></span><br
/> To stop ssh server, enter:</p><blockquote><p>[root@php2s ~]# sudo /etc/init.d/ssh stop</p></blockquote><p>To start sshs server, enter:</p><blockquote><p>[root@php2s ~]# sudo /etc/init.d/ssh start</p></blockquote><p>To restart ssh server, enter:</p><blockquote><p>[root@php2s ~]# sudo /etc/init.d/ssh restart</p></blockquote><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/how-to-install-turn-on-telnet-service-on-rhel-febora-centos-ubuntu-freebsd-debian.html" rel="bookmark" class="crp_title">how to install &#038; turn on telnet service on RHEL, Fedora, CentOS, Ubuntu, FreeBSD, Debian</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-configure-vsftpd-on-rhel-centos-ubuntu-fedora-debian.html" rel="bookmark" class="crp_title">How to Install &#038; Configure Vsftpd on RHEL/CentOS/Ubuntu/Fedora</a></li><li><a
href="http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html" rel="bookmark" class="crp_title">How to install Lighttpd with PHP5 and MySQL on Ubuntu 12.04</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-ntp-daemon-on-centos-rhel-fedora.html" rel="bookmark" class="crp_title">Install and Configure NTP on CentOS/ RHEL/ Fedora</a></li><li><a
href="http://www.php2s.com/linux/installing-monit-and-restart-apache-automatically-on-centos.html" rel="bookmark" class="crp_title">Installing Monit and Restart Apache Automatically on CentOS</a></li><li><a
href="http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html" rel="bookmark" class="crp_title">Install and Configure Proftpd Server on RHEL / Fedora / CentOS 6.2</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-nx-server-on-centos-red-hat-linux.html" rel="bookmark" class="crp_title">How to install and configure NX/FreeNX Server on CentOS, Red Hat Linux</a></li><li><a
href="http://www.php2s.com/linux/installing-webmin-on-ubuntu-12-04-server-using-apt.html" rel="bookmark" class="crp_title">Installing Webmin on Ubuntu 12.04 Server using APT</a></li><li><a
href="http://www.php2s.com/linux/how-to-set-static-ip-address-in-centos-6-2-linux-server.html" rel="bookmark" class="crp_title">How to Set Static IP Address in Centos 6.2 Linux Server</a></li><li><a
href="http://www.php2s.com/linux/installing-lamp-linux-apache-mysql-php-on-ubuntu-11-10.html" rel="bookmark" class="crp_title">Installing LAMP (Linux, Apache Mysql PHP) on Ubuntu 11.10</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html" title="ubuntu 12 04 scp server">ubuntu 12 04 scp server</a> (5)</li><li><a
href="http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html" title="ubuntu 12 04 telnet">ubuntu 12 04 telnet</a> (4)</li><li><a
href="http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html" title="install openssh server ubuntu 12 04">install openssh server ubuntu 12 04</a> (3)</li><li><a
href="http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html" title="how to install telnet on ubuntu pdf">how to install telnet on ubuntu pdf</a> (3)</li><li><a
href="http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html" title="ubuntu 12 04 server type:pdf">ubuntu 12 04 server type:pdf</a> (3)</li><li><a
href="http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html" title="ubuntu configure sshd">ubuntu configure sshd</a> (3)</li><li><a
href="http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html" title="ubuntu 12 install telnet server">ubuntu 12 install telnet server</a> (3)</li><li><a
href="http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html" title="ssh server ubuntu 12">ssh server ubuntu 12</a> (3)</li><li><a
href="http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html" title="ssh secure shell ubuntu 12 04">ssh secure shell ubuntu 12 04</a> (2)</li><li><a
href="http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html" title="how to operate applications in ubuntu 12 04 using telnet">how to operate applications in ubuntu 12 04 using telnet</a> (2)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=0T6fm_YAje0:ydAGRCVwDG8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=0T6fm_YAje0:ydAGRCVwDG8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=0T6fm_YAje0:ydAGRCVwDG8:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=0T6fm_YAje0:ydAGRCVwDG8:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/0T6fm_YAje0" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-install-secure-shell-openssh-server-on-ubuntu-12-04</feedburner:origLink></item> <item><title>Install and Manage Virtualbox 4 on headless Ubuntu Server 11.10 without GUI</title><link>http://feedproxy.google.com/~r/Php2s/~3/USjWK0BVLVA/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html</link> <comments>http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html#comments</comments> <pubDate>Wed, 11 Jul 2012 10:33:05 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Virtualization]]></category> <category><![CDATA[OpenSSH]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Ubuntu Server]]></category> <category><![CDATA[VBox]]></category> <category><![CDATA[VirtualBox]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1050</guid> <description><![CDATA[This guide explains how you can run virtual machines with VirtualBox 4.1 on a headless Ubuntu 11.10 server. Normally you use the VirtualBox GUI to manage your virtual machines, but a server does not have a desktop environment. Fortunately, VirtualBox comes with a tool called VBoxHeadless that allows you to connect to the virtual machines [...]]]></description> <content:encoded><![CDATA[<p>This guide explains how you can run virtual machines with VirtualBox 4.1 on a headless Ubuntu 11.10 server. Normally you use the VirtualBox GUI to manage your virtual machines, but a server does not have a desktop environment. Fortunately, VirtualBox comes with a tool called VBoxHeadless that allows you to connect to the virtual machines over a remote desktop connection, so there&#8217;s no need for the VirtualBox GUI.</p><p><span
id="more-1050"></span></p><p>I am using Ubuntu server 11.10LTS 32bit but it should work also with 64bit. The installation can be done on the server locally using tty 1-6 or connecting to the server using SSH client from another computer.</p><p><strong>First you need to install some dependencies</strong></p><ul><li>dkms</li><li>build-essential</li><li>linux-headers-&#8221;yourversion here&#8221; (to know your version type &#8220;uname -r&#8221;)</li></ul><p><strong>To install dependencies</strong></p><blockquote><p>sudo apt-get install dkms build-essential linux-headers-3.0.0-14-generic-pae</p></blockquote><p>Now Virtualbox package need to be downloaded to the server. It can be downloaded on the server by copying <em>(create a text file and scp it to the server)</em> the following link to the server and running it. Alternately, the package can be downloaded on second computer and the .deb package can be copied to server using scp.  The below package is for 64bit Ubuntu 11.10 server. Exact link can be copied from this <a
href="https://www.virtualbox.org/wiki/Linux_Downloads" target="_blank">link</a>.</p><blockquote><p><em>wget http://download.virtualbox.org/virtualbox/4.1.6/virtualbox-4.1_4.1.6-74713~Ubuntu~oneiric_amd64.deb</em></p></blockquote><p>Install Virtualbox 4.1.6 now<br
/> <em></em></p><blockquote><p>sudo dpkg -i virtualbox-4.1_4.1.6-74713~Ubuntu~oneiric_amd64.deb</p></blockquote><p>&nbsp;</p><p>if it ask for some dependencies do the following: (perryg was helping me to complete my setup and he recommend me to use the &#8221;&#8211;nox11&#8243; when installing virtualbox but I didn&#8217;t have that right so I installed all the dependencies and it works)</p><p>If you know how to put &#8211;nox11 good luck if not the do the following, this will install some X packages but they will be ignored.</p><blockquote><p>sudo apt-get -f install</p></blockquote><p>When you run &#8220;sudo apt-get -f install&#8221; it should install the dependencies and then virtualbox setup, If the VBox setup does not Start.</p><p>Then run the installation again.</p><blockquote><p>sudo dpkg -i virtualbox-4.0_4.0.0-69151~Ubuntu~maverick_i386.deb</p></blockquote><p>After that you have Virtualbox headless installed but you need to add the Extension Pack in order to have vrde and usb support.<br
/> First download the Extension Pack</p><blockquote><p>wget http://download.virtualbox.org/virtualbox/4.0.2/Oracle_VM_VirtualBox_Extension_Pack-4.0.2-69518.vbox-extpack</p></blockquote><p>(note that this link is for the 4.0.2 and I installed the 4.0.0, this is only informational you should change all of the command according with your linux version and VirtualBox version that you want to install. So if you install Vbox 4.0.0 you should install ExtcPack 4.0.0 or if you install VBox 4.0.2 you should install ExtcPack 4.0.2).</p><p>To install it type: VBoxManage extpack install &#8220;the name of the extension Pack file&#8221;</p><p>For example</p><blockquote><p>VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.0.2-69518.vbox-extpack</p></blockquote><p>Now you can create configure and add vrde capabilities to your VMs.</p><blockquote><p>Starting A VM With VBoxHeadless</p></blockquote><p>Regardless of if you create a new VM or import and old one, you can start it with the command:</p><blockquote><p>VBoxHeadless &#8211;startvm &#8220;Ubuntu 11.10 Server&#8221;</p></blockquote><p>(Replace Ubuntu 11.10 Server with the name of your VM.)</p><p>VBoxHeadless will start the VM and a VRDP (VirtualBox Remote Desktop Protocol) server which allows you to see the VM&#8217;s output remotely on another machine.</p><p>To stop a VM, run</p><blockquote><p>VBoxManage controlvm &#8220;Ubuntu 11.10 Server&#8221; poweroff</p></blockquote><p>To pause a VM, run</p><blockquote><p>VBoxManage controlvm &#8220;Ubuntu 11.10 Server&#8221; pause</p></blockquote><p>To reset a VM, run</p><blockquote><p>VBoxManage controlvm &#8220;Ubuntu 11.10 Server&#8221; reset</p></blockquote><p><strong>Create your first VM image, setup memory, boot device etc</strong></p><blockquote><p>VBoxManage createvm –name ubuntu –register<br
/> VBoxManage modifyvm ubuntu -memory &#8220;2048MB&#8221; -acpi on -boot1 dvd -nic1 nat<br
/> VBoxManage createvdi -filename ~/.VirtualBox/Machines/ubuntu/ubuntu.vdi -size 20000 -register<br
/> VBoxManage modifyvm ubuntu -hdb ~/.VirtualBox/Machines/ubuntu/ubuntu.vdi<br
/> VBoxManage registerimage dvd ~/ext/debian-40r6-i386-netinst.iso<br
/> VBoxManage modifyvm ubuntu -dvd ~/ext/debian-40r6-i386-netinst.iso</p></blockquote><p><strong>Start a VM with VBoxHeadless</strong></p><blockquote><p><em>VBoxHeadless – -startvm “Ubuntu 11.10″</em></p></blockquote><p><strong>Connecting to the VM from a remote machine </strong></p><p><strong></strong>The Remote desktop viewer in another Ubuntu machine can be used to connect to the virtual machine running on the server. The server’s ip address should be used on host field. vbox is default username for the virtualbox installed on the server.</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/07/headless-VBOX-RDP.png"><img
class="aligncenter size-full wp-image-1265" title="headless-VBOX-RDP" src="http://www.php2s.com/wp-content/uploads/2012/07/headless-VBOX-RDP.png" alt="headless VBOX RDP Install and Manage Virtualbox 4 on headless Ubuntu Server 11.10 without GUI"  /></a></p><p>To learn more about VBoxHeadless, take a look at</p><blockquote><p>VBoxHeadless &#8211;help</p></blockquote><h3>Links</h3><ul><li>VirtualBox: <a
href="http://www.virtualbox.org/" target="_blank">http://www.virtualbox.org/</a></li><li>Ubuntu: <a
href="http://www.ubuntu.com/" target="_blank">http://www.ubuntu.com/</a></li></ul><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/virtualization/howto-install-virtualbox-on-linux-server-without-gui.html" rel="bookmark" class="crp_title">Howto install Virtualbox on Linux Server without GUI</a></li><li><a
href="http://www.php2s.com/linux/how-to-quickly-install-virtualbox-4-1-on-ubuntu-12-04.html" rel="bookmark" class="crp_title">How to quickly install virtualbox 4.1 on Ubuntu 12.04</a></li><li><a
href="http://www.php2s.com/linux/virtualbox-auto-start-vm-centos-fedora-redhat.html" rel="bookmark" class="crp_title">(Q/A)VirtualBox Auto Start VM Centos Fedora RedHat</a></li><li><a
href="http://www.php2s.com/virtualization/how-to-install-virtualbox-4-1-on-centos-6-2-rhel.html" rel="bookmark" class="crp_title">How to install Virtualbox 4.1 on CentOS 6.2, RHEL without GUI</a></li><li><a
href="http://www.php2s.com/linux/download-ubuntu-11-10-oneiric-ocelot-cd-iso-dvd-images-for-3264-bit.html" rel="bookmark" class="crp_title">Download Ubuntu 11.10 (Oneiric Ocelot) CD ISO / DVD Images for 32/64 bit</a></li><li><a
href="http://www.php2s.com/linux/fast-ubuntu-linux-bittorrent-download.html" rel="bookmark" class="crp_title">Fast Ubuntu Linux BitTorrent Download</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html" rel="bookmark" class="crp_title">How to Install Secure Shell/ OpenSSH Server on Ubuntu 12.04</a></li><li><a
href="http://www.php2s.com/linux/how-to-update-lib-modules-after-copying-disk-to-a-different-system.html" rel="bookmark" class="crp_title">How to update /lib/modules after copying disk to a different system?</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-a-software-application-from-a-terminal-on-ubuntu.html" rel="bookmark" class="crp_title">How to Install a Software Application from a Terminal on Ubuntu</a></li><li><a
href="http://www.php2s.com/linux/how-to-creat-tun-tap-devices-on-ubuntu-linux.html" rel="bookmark" class="crp_title">How to Create tun/tap devices on Ubuntu/ Linux</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html" title="linux ubuntu server for virtualbox download">linux ubuntu server for virtualbox download</a> (3)</li><li><a
href="http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html" title="virtualbox installation guide ubuntu server">virtualbox installation guide ubuntu server</a> (3)</li><li><a
href="http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html" title="ubuntu headless remote desktop">ubuntu headless remote desktop</a> (2)</li><li><a
href="http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html" title="virtualbox headless">virtualbox headless</a> (2)</li><li><a
href="http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html" title="download firewall linux ubuntu iso">download firewall linux ubuntu iso</a> (2)</li><li><a
href="http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html" title="install headless virtualbox on ubuntu">install headless virtualbox on ubuntu</a> (2)</li><li><a
href="http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html" title="ubuntu 12 04 lts ubuntu-server tty2 instalacion squid proxy">ubuntu 12 04 lts ubuntu-server tty2 instalacion squid proxy</a> (1)</li><li><a
href="http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html" title="ubuntu 12 04 lts install virtualbox headless">ubuntu 12 04 lts install virtualbox headless</a> (1)</li><li><a
href="http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html" title="squid performance virtualbox">squid performance virtualbox</a> (1)</li><li><a
href="http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html" title="setup vertual macine server ubuntu">setup vertual macine server ubuntu</a> (1)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=USjWK0BVLVA:QaI3yfz8iTw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=USjWK0BVLVA:QaI3yfz8iTw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=USjWK0BVLVA:QaI3yfz8iTw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=USjWK0BVLVA:QaI3yfz8iTw:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/USjWK0BVLVA" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui</feedburner:origLink></item> <item><title>Install, Configure Munin on RHEL/CentOS 6.2/Fedora</title><link>http://feedproxy.google.com/~r/Php2s/~3/UyQ-srmIvrU/install-configure-munin-on-rhel-centos-6-2-fedora.html</link> <comments>http://www.php2s.com/linux/install-configure-munin-on-rhel-centos-6-2-fedora.html#comments</comments> <pubDate>Tue, 10 Jul 2012 11:16:30 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Centos]]></category> <category><![CDATA[Fedora]]></category> <category><![CDATA[munin]]></category> <category><![CDATA[RHEL]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1252</guid> <description><![CDATA[This tutorial shows how to install and configure Munin (network/system monitoring tool) on Linux distributions Fedora/ RHEL/ CentOS 6.2 server. Munin is a monitoring tool for servers. It uses RRDtool to log and graph data from your servers. The plugin API is very easy to grasp. Actually, I haven’t read the API documentation yet. I just looked at [...]]]></description> <content:encoded><![CDATA[<p>This tutorial shows how to install and configure Munin (network/system monitoring tool) on Linux distributions Fedora/ RHEL/ CentOS 6.2 server.</p><p><a
href="http://munin.projects.linpro.no/" target="_blank">Munin</a> is a monitoring tool for server<strong>s</strong>. It uses <a
href="http://oss.oetiker.ch/rrdtool/" target="_blank">RRDtool</a> to log and graph data from your servers. The plugin API is very easy to grasp. Actually, I haven’t read the API documentation yet. I just looked at the output of the plugins and it looks easy to achieve. The data can be accessed through the web.</p><p><span
id="more-1252"></span></p><p>Munin works by polling your servers for the data hence two applications, Munin and Munin Node. The former periodically gathers data (cronned) and the latter serves the data to the former.</p><blockquote><p>[root@php2s ~]# yum &#8211;enablerepo=epel install munin munin-node -y</p></blockquote><p><strong>On line 60, change the following to your hostname :</strong></p><blockquote><p>[root@php2s ~]# vi /etc/munin/munin.conf</p></blockquote><p>Original :</p><blockquote><p># a simple host tree<br
/> [x86-06.phx2.fedoraproject.org]<br
/> address 127.0.0.1<br
/> use_node_name yes</p></blockquote><p>Change to :</p><blockquote><p># a simple host tree<br
/> [centos62.php2s.local]<br
/> address 127.0.0.1<br
/> use_node_name yes</p></blockquote><p><strong>On line 29, please uncomment and change to your hostname :</strong></p><blockquote><p>[root@php2s ~]# vim /etc/munin/munin-node.conf</p></blockquote><p>Original :</p><blockquote><p>#host_name x86-06.phx2.fedoraproject.org</p></blockquote><p>Change to :</p><blockquote><p>host_name centos62.php2s.local</p></blockquote><p><strong>Change the following and allowed your network to access munin :</strong></p><blockquote><p>[root@php2s ~]# vim /etc/httpd/conf.d/munin.conf</p></blockquote><blockquote><p>Order Deny,Allow<br
/> Deny from all<br
/> Allow from 127.0.0.1 192.168.1.0/24</p></blockquote><p><strong>Restart Apache httpd service :</strong></p><blockquote><p>[root@php2s ~]# /etc/rc.d/init.d/httpd restart</p></blockquote><p><strong>Start Munin :</strong></p><blockquote><p>[root@php2s ~]# /etc/rc.d/init.d/munin-node start</p></blockquote><p><strong>Make munin start at boot :</strong></p><blockquote><p>[root@php2s ~]# chkconfig munin-node on</p></blockquote><p><strong>Access to munin with web browser after 5 minutes later.</strong></p><blockquote><p>http://(hostname or IP address)/munin/</p></blockquote><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/how-to-install-configure-vsftpd-on-rhel-centos-ubuntu-fedora-debian.html" rel="bookmark" class="crp_title">How to Install &#038; Configure Vsftpd on RHEL/CentOS/Ubuntu/Fedora</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-dhcp-server-on-centos-or-other-clone-of-linux.html" rel="bookmark" class="crp_title">How to Install and Configure DHCP Server on Centos or Other Clone of Linux</a></li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-card-in-red-hat-enterprise-linux-centos-fedora-core-from-cli.html" rel="bookmark" class="crp_title">How to configure network card in Red Hat Enterprise Linux, CentOS, Fedora Core from CLI</a></li><li><a
href="http://www.php2s.com/open-source/how-to-auto-restart-centos-linux-server-with-software-watchdog-softdog-to-reduce-server-downtime.html" rel="bookmark" class="crp_title">How to auto restart CentOS Linux server with software watchdog (softdog) to reduce server downtime</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html" rel="bookmark" class="crp_title">How to Install Secure Shell/ OpenSSH Server on Ubuntu 12.04</a></li><li><a
href="http://www.php2s.com/linux/installing-monit-and-restart-apache-automatically-on-centos.html" rel="bookmark" class="crp_title">Installing Monit and Restart Apache Automatically on CentOS</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-apache-httpd-on-centos-6-2.html" rel="bookmark" class="crp_title">Howto Guide: Install &#038; Start Apache or Httpd Service on CentOS 6.2</a></li><li><a
href="http://www.php2s.com/linux/how-to-set-static-ip-address-in-centos-6-2-linux-server.html" rel="bookmark" class="crp_title">How to Set Static IP Address in Centos 6.2 Linux Server</a></li><li><a
href="http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html" rel="bookmark" class="crp_title">Install and Configure Proftpd Server on RHEL / Fedora / CentOS 6.2</a></li><li><a
href="http://www.php2s.com/linux/how-to-restrict-web-access-by-time-using-squid-proxy-server-on-centos-6-2-rhel-6.html" rel="bookmark" class="crp_title">How to Restrict Web Access By Time Using Squid Proxy Server on CentOS 6.2/ RHEL 6</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/linux/install-configure-munin-on-rhel-centos-6-2-fedora.html" title="install munin with nginx centos">install munin with nginx centos</a> (15)</li><li><a
href="http://www.php2s.com/linux/install-configure-munin-on-rhel-centos-6-2-fedora.html" title="munin centos 6 2">munin centos 6 2</a> (15)</li><li><a
href="http://www.php2s.com/linux/install-configure-munin-on-rhel-centos-6-2-fedora.html" title="install munin centos nginx">install munin centos nginx</a> (9)</li><li><a
href="http://www.php2s.com/linux/install-configure-munin-on-rhel-centos-6-2-fedora.html" title="munin centos 6">munin centos 6</a> (8)</li><li><a
href="http://www.php2s.com/linux/install-configure-munin-on-rhel-centos-6-2-fedora.html" title="x86-06 phx2 fedoraproject org munin">x86-06 phx2 fedoraproject org munin</a> (7)</li><li><a
href="http://www.php2s.com/linux/install-configure-munin-on-rhel-centos-6-2-fedora.html" title="how to install munin centos 6 2">how to install munin centos 6 2</a> (4)</li><li><a
href="http://www.php2s.com/linux/install-configure-munin-on-rhel-centos-6-2-fedora.html" title="munin web polling">munin web polling</a> (4)</li><li><a
href="http://www.php2s.com/linux/install-configure-munin-on-rhel-centos-6-2-fedora.html" title="install nvidia driver on centos 6 2">install nvidia driver on centos 6 2</a> (4)</li><li><a
href="http://www.php2s.com/linux/install-configure-munin-on-rhel-centos-6-2-fedora.html" title="centos 6 start munin gui">centos 6 start munin gui</a> (3)</li><li><a
href="http://www.php2s.com/linux/install-configure-munin-on-rhel-centos-6-2-fedora.html" title="munin centos6">munin centos6</a> (2)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=UyQ-srmIvrU:16m-zFDH_oU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=UyQ-srmIvrU:16m-zFDH_oU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=UyQ-srmIvrU:16m-zFDH_oU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=UyQ-srmIvrU:16m-zFDH_oU:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/UyQ-srmIvrU" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/install-configure-munin-on-rhel-centos-6-2-fedora.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/linux/install-configure-munin-on-rhel-centos-6-2-fedora.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=install-configure-munin-on-rhel-centos-6-2-fedora</feedburner:origLink></item> <item><title>how to Synchronize Time on CentOS 6.2 using NTP</title><link>http://feedproxy.google.com/~r/Php2s/~3/WgjfeBXISRY/how-to-synchronize-time-on-centos-6-2-using-ntp.html</link> <comments>http://www.php2s.com/linux/how-to-synchronize-time-on-centos-6-2-using-ntp.html#comments</comments> <pubDate>Mon, 02 Jul 2012 14:42:39 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Centos]]></category> <category><![CDATA[CentOS 6.2]]></category> <category><![CDATA[Network Time Protocol]]></category> <category><![CDATA[ntp]]></category> <category><![CDATA[OpenNTPD]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1245</guid> <description><![CDATA[This tutorial shows, how to install and do Time synchronization on CentOS 6.2 using NTP (Network Time Protocol) manually. The NTP is used to synchronize a pc&#8217;s time with a reference time source. Under CentOS / RHEL you can use NTP or OpenNTPD server software. Both package provides client and server software programs for time [...]]]></description> <content:encoded><![CDATA[<p>This tutorial shows, how to install and do Time synchronization on CentOS 6.2 using NTP (Network Time Protocol) manually. The NTP is used to synchronize a pc&#8217;s time with a reference time source. Under CentOS / RHEL you can use NTP or OpenNTPD server software. Both package provides client and server software programs for time synchronization.</p><p><span
id="more-1245"></span></p><p><span
style="color: #3366ff;"><strong>Install NTP on CentOS</strong></span></p><p>To install the ntp, just enter this command at the terminal:</p><blockquote><p>[php2s@CentOS ~]$ sudo yum install ntp</p></blockquote><p>To make the ntpd start at boot time, use this commands:</p><blockquote><p>[php2s@CentOS ~]$ sudo chkconfig ntpd on</p></blockquote><p><span
style="color: #3366ff;"><strong>Set your own time zone</strong></span></p><p>After installation, edit the default ntp configuration:</p><blockquote><p>[php2s@CentOS ~]$ sudo nano /etc/ntp.conf</p></blockquote><p>Commented out/remove the default CentOS servers,you can add your own time-servers here to synchronize with, lists:</p><p><a
href="http://www.pool.ntp.org/en/">http://www.pool.ntp.org/en/</a><br
/> <a
href="http://www.pool.ntp.org/zone/europe">http://www.pool.ntp.org/zone/europe</a> or<br
/> <a
href="http://www.pool.ntp.org/zone/north-america">http://www.pool.ntp.org/zone/north-america</a><br
/> <strong></strong></p><p><strong>Default NTP time-servers</strong></p><blockquote><p># Use public servers from the pool.ntp.org project.<br
/> # Please consider joining the pool (http://www.pool.ntp.org/join.html).<br
/> server 0.centos.pool.ntp.org<br
/> server 1.centos.pool.ntp.org<br
/> server 2.centos.pool.ntp.org</p></blockquote><p>This is a really good idea which uses round-robin DNS to return an NTP server from a pool, spreading the load between several different servers. Even better, they have pools for different regions &#8211; for instance, if you are in Australia, you can use</p><blockquote><p>server 0.au.pool.ntp.org<br
/> server 1.au.pool.ntp.org<br
/> server 2.au.pool.ntp.org<br
/> server 3.au.pool.ntp.org</p></blockquote><p>instead of use default one.</p><p>Please chose pool zone from http://www.pool.ntp.org/en/<br
/> <span
style="color: #3366ff;"><strong>Adjusting iptables </strong></span></p><p>NTP uses UDP port 123 to conduct its business, either connecting out to another NTP server or accepting incoming connections. If you have iptables filtering incoming traffic on the main NTP server in your cluster you&#8217;ll need to open port 123 to UDP traffic to allow the other servers to connect to it.</p><p>You can open port 123 for UDP traffic with the following arguments for iptables:</p><blockquote><p>[php2s@CentOS ~]$ vi /etc/sysconfig/iptables</p></blockquote><p>Add the following rules</p><blockquote><p>-I INPUT -p udp &#8211;dport 123 -j ACCEPT<br
/> -I OUTPUT -p udp &#8211;sport 123 -j ACCEPT</p></blockquote><p>After you are done with the configuration, just start the ntp service:</p><blockquote><p>[php2s@CentOS ~]$ sudo service ntpd start</p></blockquote><p>To check if the NTP service is synchronizing:</p><blockquote><p>[php2s@CentOS ~]$  sudo ntpq -pn</p></blockquote><p>To check the synchronization log:</p><blockquote><p>[php2s@CentOS ~]$  sudo tail -f /var/log/messages</p></blockquote><p>Now compare your time with your systems time</p><blockquote><p>[php2s@CentOS ~]$ date</p></blockquote><p>Thanks for visiting Php2s.</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-ntp-daemon-on-centos-rhel-fedora.html" rel="bookmark" class="crp_title">Install and Configure NTP on CentOS/ RHEL/ Fedora</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-dhcp-server-on-centos-or-other-clone-of-linux.html" rel="bookmark" class="crp_title">How to Install and Configure DHCP Server on Centos or Other Clone of Linux</a></li><li><a
href="http://www.php2s.com/linux/qa-linux-iptables-blocking-yum.html" rel="bookmark" class="crp_title">(Q/A) Linux IPTables blocking yum</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-memcached-on-centos-6-2-rhel-5-7-fedora-16.html" rel="bookmark" class="crp_title">How to Install Memcached on CentOS 6.2, RHEL 5.7, Fedora 16</a></li><li><a
href="http://www.php2s.com/linux/how-to-modify-iptables-during-kickstart-install-of-centos-6.html" rel="bookmark" class="crp_title">How to modify iptables during Kickstart Install of CentOS 6</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-turn-on-telnet-service-on-rhel-febora-centos-ubuntu-freebsd-debian.html" rel="bookmark" class="crp_title">how to install &#038; turn on telnet service on RHEL, Fedora, CentOS, Ubuntu, FreeBSD, Debian</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-configure-vsftpd-on-rhel-centos-ubuntu-fedora-debian.html" rel="bookmark" class="crp_title">How to Install &#038; Configure Vsftpd on RHEL/CentOS/Ubuntu/Fedora</a></li><li><a
href="http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html" rel="bookmark" class="crp_title">How to install Lighttpd with PHP5 and MySQL on Ubuntu 12.04</a></li><li><a
href="http://www.php2s.com/linux/how-to-installation-and-configuration-bind-dns-server-on-centos-5-3.html" rel="bookmark" class="crp_title">How to Installation and Configuration BIND DNS Server on CentOS 5.3</a></li><li><a
href="http://www.php2s.com/linux/how-to-port-forwarding-with-iptables-between-2-hosts-on-different-networks-in-linux.html" rel="bookmark" class="crp_title">How to port forwarding with iptables between 2 hosts on different networks in Linux</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/linux/how-to-synchronize-time-on-centos-6-2-using-ntp.html" title="ntp centos6">ntp centos6</a> (6)</li><li><a
href="http://www.php2s.com/linux/how-to-synchronize-time-on-centos-6-2-using-ntp.html" title="how to configure ntp server in oel 5 7">how to configure ntp server in oel 5 7</a> (6)</li><li><a
href="http://www.php2s.com/linux/how-to-synchronize-time-on-centos-6-2-using-ntp.html" title="centos 6 open udp 123">centos 6 open udp 123</a> (4)</li><li><a
href="http://www.php2s.com/linux/how-to-synchronize-time-on-centos-6-2-using-ntp.html" title="ntpdate centos 6 ubuntu com">ntpdate centos 6 ubuntu com</a> (4)</li><li><a
href="http://www.php2s.com/linux/how-to-synchronize-time-on-centos-6-2-using-ntp.html" title="how to set time in centos 6 2">how to set time in centos 6 2</a> (4)</li><li><a
href="http://www.php2s.com/linux/how-to-synchronize-time-on-centos-6-2-using-ntp.html" title="how to configure ntp in centos-6 2">how to configure ntp in centos-6 2</a> (3)</li><li><a
href="http://www.php2s.com/linux/how-to-synchronize-time-on-centos-6-2-using-ntp.html" title="ntpd start at boot centos 6 2">ntpd start at boot centos 6 2</a> (3)</li><li><a
href="http://www.php2s.com/linux/how-to-synchronize-time-on-centos-6-2-using-ntp.html" title="how do i install and configure ntp under centos linux 6">how do i install and configure ntp under centos linux 6</a> (3)</li><li><a
href="http://www.php2s.com/linux/how-to-synchronize-time-on-centos-6-2-using-ntp.html" title="Sync Clock for Centos 6 2">Sync Clock for Centos 6 2</a> (3)</li><li><a
href="http://www.php2s.com/linux/how-to-synchronize-time-on-centos-6-2-using-ntp.html" title="project about ntp server in centos pdf">project about ntp server in centos pdf</a> (3)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=WgjfeBXISRY:aRoKlfJFA6E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=WgjfeBXISRY:aRoKlfJFA6E:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=WgjfeBXISRY:aRoKlfJFA6E:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=WgjfeBXISRY:aRoKlfJFA6E:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/WgjfeBXISRY" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-synchronize-time-on-centos-6-2-using-ntp.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/linux/how-to-synchronize-time-on-centos-6-2-using-ntp.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-synchronize-time-on-centos-6-2-using-ntp</feedburner:origLink></item> <item><title>How to install python 2.7 on CentOS 6.2 with setuptools 0.6c11</title><link>http://feedproxy.google.com/~r/Php2s/~3/hBeMPRskhqk/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html</link> <comments>http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html#comments</comments> <pubDate>Fri, 22 Jun 2012 05:18:45 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[Centos]]></category> <category><![CDATA[CentOS 6.2]]></category> <category><![CDATA[python]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1233</guid> <description><![CDATA[In this example, i will show how to download and install Python 2.7 on CentOS 6.2. Python comes with many RHEL dependancies. You need to install the packages/dependencies before install python. The following steps will show python 2.7 installation on centos 6.2. &#160; Install packages/dependencies: [php2s@CentOS ~]$ sudo yum install gccgcc-c++.x86_64 compat-gcc-34-c++.x86_64 openssl-devel.x86_64 zlib*.x86_64 wget [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignleft" title="linux-python-logo" src="http://www.php2s.com/wp-content/uploads/2012/06/linux-python-logo.jpg" alt="linux python logo How to install python 2.7 on CentOS 6.2 with setuptools 0.6c11" width="154" height="154" /><br
/> In this example, i will show how to download and install Python 2.7 on CentOS 6.2. Python comes with many RHEL dependancies. You need to install the packages/dependencies before install python.</p><p>The following steps will show python 2.7 installation on centos 6.2.</p><p><span
id="more-1233"></span></p><p>&nbsp;</p><p><strong>Install packages/dependencies:</strong></p><blockquote><p>[php2s@CentOS ~]$ sudo yum install gccgcc-c++.x86_64 compat-gcc-34-c++.x86_64 openssl-devel.x86_64 zlib*.x86_64 wget make setuptool</p></blockquote><p><strong>Now download the Python 2.7 (In my case, I will download it in tmp directory):</strong></p><blockquote><p>[php2s@CentOS ~]$ cd /tmp/<br
/> [php2s@CentOS tmp ~]$ wget http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2</p></blockquote><p>Switch to the super user (root):</p><blockquote><p>[php2s@CentOS tmp ~]$ su</p></blockquote><p>Extract the downloaded Python 2.7 package:</p><blockquote><p>[root@CentOS tmp ~]$ tar -xvjf Python-2.7.tar.bz2</p></blockquote><p>Move to the Python 2.7 directory and configure the package:</p><blockquote><p>[root@CentOS tmp ~]$ cd Python-2.7<br
/> [root@CentOS Python-2.7 ~]$ ./configure</p></blockquote><p>It’s time to actually build the binary from the source code:</p><blockquote><p>[root@CentOS Python-2.7 ~]$ make</p></blockquote><p>Now it’s finally time to install the program:</p><blockquote><p>[root@CentOS Python-2.7 ~]$ make install</p></blockquote><p><strong>Edit the user .bash_profile file:</strong></p><blockquote><p>[root@CentOS Python-2.7 ~]$ nano ~/.bash_profile</p><p>replace PATH=$PATH:$HOME/bin<br
/> with PATH=$PATH:$HOME/bin:/opt/python27/bin</p></blockquote><p
style="text-align: center;"><a
href="http://www.php2s.com/wp-content/uploads/2012/06/210.jpg"><img
class="aligncenter  wp-image-1237" title="2" src="http://www.php2s.com/wp-content/uploads/2012/06/210.jpg" alt="210 How to install python 2.7 on CentOS 6.2 with setuptools 0.6c11" width="581" height="248" /></a></p><p><strong>Reload the .bash_profile</strong>:</p><blockquote><p>[root@CentOS Python-2.7 ~]$ source ~/.bash_profile<br
/> [root@CentOS Python-2.7 ~]$ echo &#8220;/opt/python27/lib&#8221; &gt; /etc/ld.so.conf.d/python27.conf<br
/> [root@CentOS Python-2.7 ~]$ ldconfig</p></blockquote><p>Check the Python version now</p><blockquote><p>[root@CentOS Python-2.7 ~]$ python</p></blockquote><p><strong>D<a
href="http://pypi.python.org/pypi/setuptools">ownload &amp; Install Setuptools 0.6c11</a></strong></p><p>The setuptools package allows you to download, build, upgrade, install and uninstall Python packages, very easily.</p><p>If you are upgrading a previous version of setuptools that was installed using an .exe installer, please be sure to also uninstall that older version via your system&#8217;s &#8220;Add/Remove Programs&#8221; feature, BEFORE installing the newer version.</p><p>Once installation is complete, you will find an easy_install.exe program in your Python Scripts subdirectory. Be sure to add this directory to your PATH environment variable, if you haven&#8217;t already done so.</p><h2>We need to fetch the setuptools from the website:</h2><blockquote><p>[root@CentOS Python-2.7 ~]$cd ..<br
/> [root@CentOS tmp]$<br
/> [root@CentOS tmp]$ wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg<br
/> Run the setuptools using this command:<br
/> [root@CentOS tmp]$ sh setuptools-0.6c11-py2.7.egg</p></blockquote><p>Next, we will install the gevent:</p><blockquote><p>[root@centOS tmp]# yum install libevent.x86_64 libevent-devel.x86_64<br
/> [root@centOS tmp]# easy_install-2.7greenlet<br
/> [root@centOS tmp]# tar -xvzf gevent-0.13.0.tar.gz<br
/> [root@centOS tmp]# cd gevent-0.13.0<br
/> [root@centOS gevent-0.13.0]# python2.7 setup.py install</p></blockquote><p>Logout from root user and check the python version for user:</p><blockquote><p>[root@centOS gevent-0.13.0]# exit<br
/> [root@centOS user]# python</p></blockquote><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html" rel="bookmark" class="crp_title">Top 10 Free Python PDF Ebooks Download to Learn Python Programming</a></li><li><a
href="http://www.php2s.com/linux/howto-guide-setup-local-yum-repository-on-centos-6-2-from-cddvd-image.html" rel="bookmark" class="crp_title">Howto Guide: Setup Local Yum Repository on CentOS 6.2 from CD/DVD image</a></li><li><a
href="http://www.php2s.com/programming/installing-wordpress-joomla-drupal-on-centos-6-2-netinstall.html" rel="bookmark" class="crp_title">Installing WordPress/Joomla/Drupal on CentOS 6.2 (netinstall)</a></li><li><a
href="http://www.php2s.com/linux/how-to-prepare-anaconda-update-image-for-rhel-fedora-centos.html" rel="bookmark" class="crp_title">How to prepare anaconda update image for RHEL/Fedora/CentOS</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" rel="bookmark" class="crp_title">Install Samba &#038; Configure Network Share on Ubuntu 12.04 (GUI Mode)</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-recordmydesktop-on-rhel-and-centos.html" rel="bookmark" class="crp_title">How to install RecordMyDesktop on RHEL and CentOS</a></li><li><a
href="http://www.php2s.com/linux/centos-6-1-cd-dvd-iso-direct-download-torrent.html" rel="bookmark" class="crp_title">CentOS 6.1 CD / DVD ISO Direct Download &#038; Torrent</a></li><li><a
href="http://www.php2s.com/linux/howto-use-bash-auto-complete-with-yum-on-fedora-centos-rhel.html" rel="bookmark" class="crp_title">Howto use Bash auto complete with YUM on Fedora, CentOS, RHEL</a></li><li><a
href="http://www.php2s.com/virtualization/how-to-install-virtualbox-4-1-on-centos-6-2-rhel.html" rel="bookmark" class="crp_title">How to install Virtualbox 4.1 on CentOS 6.2, RHEL without GUI</a></li><li><a
href="http://www.php2s.com/linux/howto-install-webmin-1-570-1-on-centos-6-2-using-rpm.html" rel="bookmark" class="crp_title">Howto Guide: Install Webmin 1.570-1 on CentOS 6.2 using RPM</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html" title="centos 6 2 python 2 7">centos 6 2 python 2 7</a> (12)</li><li><a
href="http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html" title="centos 6 python 2 7">centos 6 python 2 7</a> (12)</li><li><a
href="http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html" title="centos python 2 7">centos python 2 7</a> (8)</li><li><a
href="http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html" title="python 2 7 centos">python 2 7 centos</a> (7)</li><li><a
href="http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html" title="python 2 7">python 2 7</a> (7)</li><li><a
href="http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html" title="python 2 7 rhel 6">python 2 7 rhel 6</a> (6)</li><li><a
href="http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html" title="python 2 7 centos 6">python 2 7 centos 6</a> (6)</li><li><a
href="http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html" title="CentOS 6 3 python 2 7">CentOS 6 3 python 2 7</a> (4)</li><li><a
href="http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html" title="install python 2 7 on redhat 6 2">install python 2 7 on redhat 6 2</a> (4)</li><li><a
href="http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html" title="centos python 2 7 설치">centos python 2 7 설치</a> (4)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=hBeMPRskhqk:AaOrm0323ug:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=hBeMPRskhqk:AaOrm0323ug:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=hBeMPRskhqk:AaOrm0323ug:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=hBeMPRskhqk:AaOrm0323ug:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/hBeMPRskhqk" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11</feedburner:origLink></item> <item><title>Top 10 Free Python PDF Ebooks Download to Learn Python Programming</title><link>http://feedproxy.google.com/~r/Php2s/~3/oMNUwfmqn0c/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html</link> <comments>http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html#comments</comments> <pubDate>Sun, 17 Jun 2012 04:25:08 +0000</pubDate> <dc:creator>Sheikh Khalid</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[framework]]></category> <category><![CDATA[python]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1223</guid> <description><![CDATA[Python is a high level programming language which increasingly popular. I have collected 10 free ebooks for python which contains lots of exercises, practices, example programs and many more. Here I have collected 10 Python ebooks for you which may help you to lean python accordingly. 1. A Byte of Python A Byte of Python [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/python-logo-official.png"><img
class="alignleft  wp-image-1225" title="python-logo-official" src="http://www.php2s.com/wp-content/uploads/2012/06/python-logo-official.png" alt="python logo official Top 10 Free Python PDF Ebooks Download to Learn Python Programming" width="101" height="101" /></a>Python is a high level programming language which increasingly popular. I have collected 10 free ebooks for python which contains lots of exercises, practices, example programs and many more.</p><p>Here I have collected 10 Python ebooks for you which may help you to lean python accordingly.</p><p><span
id="more-1223"></span></p><p>1.<strong> <a
href="http://www.swaroopch.org/notes/Python">A Byte of Python</a></strong><br
/> A Byte of Python is a beginner&#8217;s book on Python by Swaroop C H. &#8220;If all you know about computers is how to save text files, then this is the book for you,&#8221; the site says.</p><p>This book is perfect for any kind of python lover and beginner who wants an easy and progressing way of learning python. This one also comes under my personal recommendation.</p><p><a
href="http://files.swaroopch.com/python/byte_of_python_v192.pdf">Download</a></p><p>2.<strong> <a
href="http://learnpythonthehardway.org/">Learn Python the Hard Way</a></strong><br
/> Learn Python the Hard Way is a beginner&#8217;s programming book written by Zed Shaw. It was written for Python 2.6. “The Hard Way is Easier” is exactly what they have coded in their book and more they tell about it is : Have you always wanted to learn how to code but never thought you could? Are you looking to build a foundation for more complex coding? Do you want to challenge your brain in a new way? Then Learn Python the Hard Way is the book for you.<br
/> <a
href="http://learnpythonthehardway.org/book/">Read The Book</a></p><p>3.<strong> How to think like a computer scientist</strong><br
/> This book gives you the practical overview relating the real life problems and how to solve them in python. If you really want your brain to do some work and start learning python the scientist way then you should go with this one. you may go slow with this book but you will end up being an hard core programmer in python.<br
/> <a
href="http://www.greenteapress.com/thinkpython/thinkCSpy/thinkCSpy.pdf">Download</a></p><p>4.<strong> The Python Tutorial</strong><br
/> The official documentation are always best. Whether you follow some books or not this documentation is MUST to be opened in a browser while you learn python and/or you can have an offline copy of it. Download it form the site.<br
/> <a
href="http://docs.python.org/tutorial/index.html">Download</a></p><p><strong>5. <a
href="http://www.greenteapress.com/thinkpython/thinkpython.pdf">Think Python</a></strong><br
/> Think python will take you deep with awesome examples and make you work on it. This e-book tries to make readers practice each and every example they show up as they progresses and make use of it. You may also like to begin with this e-book.<br
/> <a
href="http://www.greenteapress.com/thinkpython/thinkpython.pdf">Download Think Python</a></p><p>6. <strong><a
href="http://www.rexx.com/~dkuhlman/python_101/python_101.html">Python 101</a></strong><br
/> This document is a syllabus for a first course in Python programming. This course contains an introduction to the Python language, instruction in the important and commonly used features of the language,</p><p>7. <strong><a
href="http://en.wikibooks.org/wiki/Python_Programming">Python Programming</a></strong><br
/> Python Programming is another WikiBooks guide to Python. It&#8217;s one of the texts of the MIT course mentioned above.</p><p>8. <a
href="http://effbot.org/zone/librarybook-index.htm">Python Standard Library</a><br
/> <strong> Th</strong>is is seriously showing its age as it was originally written for Python 2.0. Although there’s updates they’re incomplete. Its still worth a look though to get a good idea of the Python core.</p><p>9. <strong><a
href="http://pleac.sourceforge.net/pleac_python/">PLEAC Python</a></strong><br
/> Pleac Python like a rapid-fire Python Cookbook with short, concise examples of how to solve a variety of low-level problems. Form string manipulation to database access.</p><p>10. <strong><a
href="http://gnosis.cx/TPiP/">Text Processing in Python </a></strong><br
/> I haven’t read it but I thought I’d add it for the sake of completeness.</p><p>Extra<br
/> <strong> Python Web Frameworks</strong><br
/> <a
href="http://www.djangobook.com/">Django Book</a> – A book on Pythons greatest web framework.<br
/> <a
href="http://pylonsbook.com/">Pylons Book</a> – A book on Pythons 3rd best web framework.</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html" rel="bookmark" class="crp_title">How to install python 2.7 on CentOS 6.2 with setuptools 0.6c11</a></li><li><a
href="http://www.php2s.com/linux/howto-guide-setup-local-yum-repository-on-centos-6-2-from-cddvd-image.html" rel="bookmark" class="crp_title">Howto Guide: Setup Local Yum Repository on CentOS 6.2 from CD/DVD image</a></li><li><a
href="http://www.php2s.com/linux/gnulinux-advanced-administration-free-pdf-ebook-download.html" rel="bookmark" class="crp_title">GNU/Linux Advanced Administration Free PDF eBook Download</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" rel="bookmark" class="crp_title">Install Samba &#038; Configure Network Share on Ubuntu 12.04 (GUI Mode)</a></li><li><a
href="http://www.php2s.com/programming/installing-wordpress-joomla-drupal-on-centos-6-2-netinstall.html" rel="bookmark" class="crp_title">Installing WordPress/Joomla/Drupal on CentOS 6.2 (netinstall)</a></li><li><a
href="http://www.php2s.com/linux/how-to-prepare-anaconda-update-image-for-rhel-fedora-centos.html" rel="bookmark" class="crp_title">How to prepare anaconda update image for RHEL/Fedora/CentOS</a></li><li><a
href="http://www.php2s.com/networking/ccna-complete-guide-2nd-edition-by-yap-chin-hoong.html" rel="bookmark" class="crp_title">CCNA Complete Guide 2nd Edition by Yap Chin Hoong</a></li><li><a
href="http://www.php2s.com/software-design/software-development-team-diversity.html" rel="bookmark" class="crp_title">Software Development Team Diversity</a></li><li><a
href="http://www.php2s.com/linux/find-real-path-of-linux-symbolic-link-or-soft-link-files-%e2%80%93-linux-command-line.html" rel="bookmark" class="crp_title">Find Real Path of Linux Symbolic Link or Soft Link Files – Linux Command Line</a></li><li><a
href="http://www.php2s.com/programming/php-programming/camel-case-to-spaces-or-underscore-%e2%80%93-php-code.html" rel="bookmark" class="crp_title">Camel Case to Spaces or Underscore – PHP Code</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html" title="python ebook pdf">python ebook pdf</a> (152)</li><li><a
href="http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html" title="free python ebooks download pdf">free python ebooks download pdf</a> (46)</li><li><a
href="http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html" title="python programming pdf free download">python programming pdf free download</a> (41)</li><li><a
href="http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html" title="learning python pdf">learning python pdf</a> (29)</li><li><a
href="http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html" title="python ebook download">python ebook download</a> (28)</li><li><a
href="http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html" title="python ebooks free download">python ebooks free download</a> (27)</li><li><a
href="http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html" title="python ebook">python ebook</a> (25)</li><li><a
href="http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html" title="python tutorial pdf free download">python tutorial pdf free download</a> (23)</li><li><a
href="http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html" title="python pdf">python pdf</a> (21)</li><li><a
href="http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html" title="python ebooks pdf">python ebooks pdf</a> (20)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=oMNUwfmqn0c:5a5-WjVBSEw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=oMNUwfmqn0c:5a5-WjVBSEw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=oMNUwfmqn0c:5a5-WjVBSEw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=oMNUwfmqn0c:5a5-WjVBSEw:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/oMNUwfmqn0c" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/programming/top-10-free-python-pdf-ebooks-download-to-learn-python-programming.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=top-10-free-python-pdf-ebooks-download-to-learn-python-programming</feedburner:origLink></item> <item><title>How to install Solaris 10 Step by Step Guide Screenshots</title><link>http://feedproxy.google.com/~r/Php2s/~3/eUYyfVAufWE/how-to-install-solaris-10-step-by-step-guide-screenshots.html</link> <comments>http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html#comments</comments> <pubDate>Fri, 15 Jun 2012 06:25:03 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Solaris]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[operating system]]></category> <category><![CDATA[oracle]]></category> <category><![CDATA[solaris]]></category> <category><![CDATA[solaris 10]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1161</guid> <description><![CDATA[This tutorial shows step by step set of instructions of Solaris 10 installation. Everything you need to get started is here complete with easy to follow picture based instructions. You can Download the Solaris 10 ISO from Oracle.com according to your system configuration. Oracle Solaris 10 provides proven, enterprise-class security, reliability, and performance for SPARC [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/logo_solaris10.png"><img
class="alignleft  wp-image-1164" title="logo_solaris10" src="http://www.php2s.com/wp-content/uploads/2012/06/logo_solaris10.png" alt="logo solaris10 How to install Solaris 10 Step by Step Guide Screenshots" width="161" height="74" /></a>This tutorial shows step by step set of instructions of Solaris 10 installation. Everything you need to get started is here complete with easy to follow picture based instructions. You can Download the Solaris 10 ISO from <a
href="http://www.oracle.com/technetwork/server-storage/solaris10/downloads/index.html">Oracle.com</a> according to your system configuration.</p><p><span
id="more-1161"></span></p><p>Oracle Solaris 10 provides proven, enterprise-class security, reliability, and performance for SPARC and x86 systems. It is the best platform to run your mission-critical applications.</p><p><span
style="color: #3366ff;"><strong>Why Solaris?</strong></span></p><ul><li>Guaranteed application and development compatibility</li><li>Industry-leading performance and scalability</li><li>Proven reliability through built-in fault tolerance</li><li>Highest levels of enterprise-class security</li></ul><h2><span
style="color: #3366ff;"><strong>Step by Step Installation</strong></span></h2><p>Insert the Solaris DVD and select the “Solaris” from “<strong><span
style="color: #ff6600;">Grub Menu</span></strong>” and press Enter:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/1.jpg"><img
class="size-full wp-image-1166 aligncenter" title="1" src="http://www.php2s.com/wp-content/uploads/2012/06/1.jpg" alt="1 How to install Solaris 10 Step by Step Guide Screenshots"  /></a></p><p>Select the “1” and press Enter:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/2.jpg"><img
class="size-full wp-image-1167 aligncenter" title="2" src="http://www.php2s.com/wp-content/uploads/2012/06/2.jpg" alt="2 How to install Solaris 10 Step by Step Guide Screenshots"  /></a></p><p>Select Language:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/3.jpg"><img
class="size-full wp-image-1168 aligncenter" title="3" src="http://www.php2s.com/wp-content/uploads/2012/06/3.jpg" alt="3 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="348" /></a></p><p>Press Enter within 30 seconds:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/4.jpg"><img
class="size-full wp-image-1169 aligncenter" title="4" src="http://www.php2s.com/wp-content/uploads/2012/06/4.jpg" alt="4 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="351" /></a></p><p>Again press Enter:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/5.jpg"><img
class="size-full wp-image-1170 aligncenter" title="5" src="http://www.php2s.com/wp-content/uploads/2012/06/5.jpg" alt="5 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="353" /></a></p><p>Press 0 in order to select English as the system language:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/6.jpg"><img
class="size-full wp-image-1171 aligncenter" title="6" src="http://www.php2s.com/wp-content/uploads/2012/06/6.jpg" alt="6 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="353" /></a></p><p>Click “Next“:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/7.jpg"><img
class="size-full wp-image-1172 aligncenter" title="7" src="http://www.php2s.com/wp-content/uploads/2012/06/7.jpg" alt="7 How to install Solaris 10 Step by Step Guide Screenshots"  /></a></p><p>Select the “<strong><span
style="color: #ff6600;">Networked</span></strong>” and click “Next“:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/8.jpg"><img
class="size-full wp-image-1173 aligncenter" title="8" src="http://www.php2s.com/wp-content/uploads/2012/06/8.jpg" alt="8 How to install Solaris 10 Step by Step Guide Screenshots"  /></a></p><p>Decide here, that you want to use DHCP or manual ip address, I am going to use manual ip address:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/9.jpg"><img
class="size-full wp-image-1174 aligncenter" title="9" src="http://www.php2s.com/wp-content/uploads/2012/06/9.jpg" alt="9 How to install Solaris 10 Step by Step Guide Screenshots"  /></a></p><p>Enter the hostname and click “Next“:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/10.jpg"><img
class="size-full wp-image-1175 aligncenter" title="10" src="http://www.php2s.com/wp-content/uploads/2012/06/10.jpg" alt="10 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="462" /></a></p><p>Enter the Ip address:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/11.jpg"><img
class="size-full wp-image-1176 aligncenter" title="11" src="http://www.php2s.com/wp-content/uploads/2012/06/11.jpg" alt="11 How to install Solaris 10 Step by Step Guide Screenshots" width="629" height="467" /></a></p><p>Enter “Netmask“:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/12.jpg"><img
class="size-full wp-image-1177 aligncenter" title="12" src="http://www.php2s.com/wp-content/uploads/2012/06/12.jpg" alt="12 How to install Solaris 10 Step by Step Guide Screenshots"  /></a></p><p>Select “Yes” if you want to enable IPv6 but I will not use it:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/13.jpg"><img
class="size-full wp-image-1178 aligncenter" title="13" src="http://www.php2s.com/wp-content/uploads/2012/06/13.jpg" alt="13 How to install Solaris 10 Step by Step Guide Screenshots"  /></a></p><p>Select “Default Route”:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/14.jpg"><img
class="size-full wp-image-1179 aligncenter" title="14" src="http://www.php2s.com/wp-content/uploads/2012/06/14.jpg" alt="14 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="455" /></a></p><p>Enter the default route information (Ip address):<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/15.jpg"><img
class="size-full wp-image-1180 aligncenter" title="15" src="http://www.php2s.com/wp-content/uploads/2012/06/15.jpg" alt="15 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="458" /></a></p><p>I will select “No” for Kerberos Security, if you want to use it then select “Yes”:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/16.jpg"><img
class="size-full wp-image-1181 aligncenter" title="16" src="http://www.php2s.com/wp-content/uploads/2012/06/16.jpg" alt="16 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="455" /></a></p><p>Select your “Name Service” option, mine is “None“:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/17.jpg"><img
class="size-full wp-image-1182 aligncenter" title="17" src="http://www.php2s.com/wp-content/uploads/2012/06/17.jpg" alt="17 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="478" /></a></p><p>Select “NFSv4 Domain Name“:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/18.jpg"><img
class="size-full wp-image-1183 aligncenter" title="18" src="http://www.php2s.com/wp-content/uploads/2012/06/18.jpg" alt="18 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="472" /></a></p><p>Select “Time Zone“:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/19.jpg"><img
class="size-full wp-image-1184 aligncenter" title="19" src="http://www.php2s.com/wp-content/uploads/2012/06/19.jpg" alt="19 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="476" /></a></p><p>Select your country:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/20.jpg"><img
class="size-full wp-image-1185 aligncenter" title="20" src="http://www.php2s.com/wp-content/uploads/2012/06/20.jpg" alt="20 How to install Solaris 10 Step by Step Guide Screenshots" width="629" height="465" /></a></p><p>Confirm “Date &amp; Time” and click “Next“:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/21.jpg"><img
class="size-full wp-image-1186 aligncenter" title="21" src="http://www.php2s.com/wp-content/uploads/2012/06/21.jpg" alt="21 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="466" /></a></p><p>Enter password for “root” user and click “Next“:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/22.jpg"><img
class="size-full wp-image-1187 aligncenter" title="22" src="http://www.php2s.com/wp-content/uploads/2012/06/22.jpg" alt="22 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="464" /></a></p><p>Select “Yes” and click “Next“:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/23.jpg"><img
class="size-full wp-image-1188 aligncenter" title="23" src="http://www.php2s.com/wp-content/uploads/2012/06/23.jpg" alt="23 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="476" /></a></p><p>Confirm the “Summary” by clicking on “Confirm“:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/24.jpg"><img
class="size-full wp-image-1189 aligncenter" title="24" src="http://www.php2s.com/wp-content/uploads/2012/06/24.jpg" alt="24 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="453" /></a></p><p>Click “Next” to proceed for the next installation tasks:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/25.jpg"><img
class="size-full wp-image-1202 aligncenter" title="25" src="http://www.php2s.com/wp-content/uploads/2012/06/25.jpg" alt="25 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="474" /></a></p><p>Accept the default setting by clicking “Next” then press “OK” to continue:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/26.jpg"><img
class="size-full wp-image-1203 aligncenter" title="26" src="http://www.php2s.com/wp-content/uploads/2012/06/26.jpg" alt="26 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="461" /></a></p><p>Specify Media:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/27.jpg"><img
class="size-full wp-image-1204 aligncenter" title="27" src="http://www.php2s.com/wp-content/uploads/2012/06/27.jpg" alt="27 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="478" /></a></p><p>It will show you the initialization screen:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/28.jpg"><img
class="size-full wp-image-1205 aligncenter" title="28" src="http://www.php2s.com/wp-content/uploads/2012/06/28.jpg" alt="28 How to install Solaris 10 Step by Step Guide Screenshots" width="629" height="474" /></a></p><p>Accept the “License“:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/29.jpg"><img
class="size-full wp-image-1206 aligncenter" title="29" src="http://www.php2s.com/wp-content/uploads/2012/06/29.jpg" alt="29 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="462" /></a></p><p>Select “Type of Install“:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/30.jpg"><img
class="size-full wp-image-1207 aligncenter" title="30" src="http://www.php2s.com/wp-content/uploads/2012/06/30.jpg" alt="30 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="458" /></a></p><p>Click “Install Now“ to begin the installation:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/31.jpg"><img
class="size-full wp-image-1190 aligncenter" title="31" src="http://www.php2s.com/wp-content/uploads/2012/06/31.jpg" alt="31 How to install Solaris 10 Step by Step Guide Screenshots" width="629" height="465" /></a></p><p>Installation will begin:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/32.jpg"><img
class="size-full wp-image-1191 aligncenter" title="32" src="http://www.php2s.com/wp-content/uploads/2012/06/32.jpg" alt="32 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="469" /></a></p><p>Installation will take sometime or a lot of time to finish, after reboot, it will ask for username and password:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/33.jpg"><img
class="size-full wp-image-1192 aligncenter" title="33" src="http://www.php2s.com/wp-content/uploads/2012/06/33.jpg" alt="33 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="382" /></a></p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/34.jpg"><img
class="size-full wp-image-1193 aligncenter" title="34" src="http://www.php2s.com/wp-content/uploads/2012/06/34.jpg" alt="34 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="389" /></a></p><p>Select your desired Desktop Environment:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/35.jpg"><img
class="size-full wp-image-1194 aligncenter" title="35" src="http://www.php2s.com/wp-content/uploads/2012/06/35.jpg" alt="35 How to install Solaris 10 Step by Step Guide Screenshots" width="555" height="455" /></a></p><p>After selection, it will present you with your desired desktop environment:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/36.jpg"><img
class="size-full wp-image-1195 aligncenter" title="36" src="http://www.php2s.com/wp-content/uploads/2012/06/36.jpg" alt="36 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="294" /></a></p><p>Now we will configure the internet access on our Solaris 10:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/37.jpg"><img
class="size-full wp-image-1196 aligncenter" title="37" src="http://www.php2s.com/wp-content/uploads/2012/06/37.jpg" alt="37 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="110" /></a></p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/38.jpg"><img
class="size-full wp-image-1197 aligncenter" title="38" src="http://www.php2s.com/wp-content/uploads/2012/06/38.jpg" alt="38 How to install Solaris 10 Step by Step Guide Screenshots"  /></a></p><p>I am using googleDNS (You can use nameserver 8.8.8.8 or 8.8.4.4 any of them), you can use your local or other public dns:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/39.jpg"><img
class="size-full wp-image-1198 aligncenter" title="39" src="http://www.php2s.com/wp-content/uploads/2012/06/39.jpg" alt="39 How to install Solaris 10 Step by Step Guide Screenshots" width="630" height="464" /></a></p><p>Edit the “nsswitch.conf” file for name service configuration:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/40.jpg"><img
class="size-full wp-image-1199 aligncenter" title="40" src="http://www.php2s.com/wp-content/uploads/2012/06/40.jpg" alt="40 How to install Solaris 10 Step by Step Guide Screenshots"  /></a></p><p>Edit this line like this:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/41.jpg"><img
class="size-full wp-image-1200 aligncenter" title="41" src="http://www.php2s.com/wp-content/uploads/2012/06/41.jpg" alt="41 How to install Solaris 10 Step by Step Guide Screenshots"  /></a></p><p>Finally, Internet connectivity test:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/42.jpg"><img
class="size-full wp-image-1201 aligncenter" title="42" src="http://www.php2s.com/wp-content/uploads/2012/06/42.jpg" alt="42 How to install Solaris 10 Step by Step Guide Screenshots"  /></a></p><p>Now you have connected to internet. Enjoy!</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" rel="bookmark" class="crp_title">How to configure network using CLI ang GUI in Ubuntu 12.04</a></li><li><a
href="http://www.php2s.com/linux/installing-centos-6-2-on-vmware-fusion-step-by-step-guide.html" rel="bookmark" class="crp_title">Installing CentOS 6.2 on VMWare Fusion Step by Step Guide</a></li><li><a
href="http://www.php2s.com/linux/how-to-get-rid-of-enter-password-to-unlock-your-login-keyring-prompt-on-ubuntu.html" rel="bookmark" class="crp_title">How to get rid of “Enter password to unlock your login keyring” prompt on Ubuntu</a></li><li><a
href="http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html" rel="bookmark" class="crp_title">Download and Install BackTrack 5 R2 GNOME Screenshots</a></li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-interface-on-fedora-16-using-networkmanager.html" rel="bookmark" class="crp_title">How to configure network interface on Fedora 16 using NetworkManager</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-phpmyadmin-using-tlsssl-on-centos-6-2.html" rel="bookmark" class="crp_title">How to Install phpMyAdmin using TLS/SSL on CentOS 6.2</a></li><li><a
href="http://www.php2s.com/linux/step-by-step-delete-windows-partition-using-fdisk-command-on-linux-fedora-system.html" rel="bookmark" class="crp_title">Step by Step Delete Windows Partition using fdisk command on Linux Fedora System</a></li><li><a
href="http://www.php2s.com/linux/how-to-change-default-boot-up-runlevel-for-linux-centos-fedora-by-inittab-config-file.html" rel="bookmark" class="crp_title">How to change default boot up runlevel for Linux CentOS Fedora by inittab config file</a></li><li><a
href="http://www.php2s.com/linux/installing-lamp-server-on-debian-squeeze.html" rel="bookmark" class="crp_title">Installing LAMP Server on Debian Squeeze</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" rel="bookmark" class="crp_title">Install Samba &#038; Configure Network Share on Ubuntu 12.04 (GUI Mode)</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html" title="solaris 10 installation step by step">solaris 10 installation step by step</a> (45)</li><li><a
href="http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html" title="solaris installation step by step screenshots">solaris installation step by step screenshots</a> (25)</li><li><a
href="http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html" title="solaris 10 installation step by step pdf">solaris 10 installation step by step pdf</a> (24)</li><li><a
href="http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html" title="step by step install solaris 10">step by step install solaris 10</a> (8)</li><li><a
href="http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html" title="how to install solaris 10 step by step">how to install solaris 10 step by step</a> (8)</li><li><a
href="http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html" title="step by step solaris 10 installation">step by step solaris 10 installation</a> (7)</li><li><a
href="http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html" title="solaris 10 step by step installation">solaris 10 step by step installation</a> (6)</li><li><a
href="http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html" title="install solaris 10 step by step">install solaris 10 step by step</a> (6)</li><li><a
href="http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html" title="step by step for installling solaris 10">step by step for installling solaris 10</a> (4)</li><li><a
href="http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html" title="solaris 10 network install">solaris 10 network install</a> (4)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=eUYyfVAufWE:4wylFYn7fwQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=eUYyfVAufWE:4wylFYn7fwQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=eUYyfVAufWE:4wylFYn7fwQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=eUYyfVAufWE:4wylFYn7fwQ:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/eUYyfVAufWE" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-install-solaris-10-step-by-step-guide-screenshots</feedburner:origLink></item> <item><title>How to find lost file in Linux using ‘find’ Command</title><link>http://feedproxy.google.com/~r/Php2s/~3/ducw8i6ogHM/how-to-find-lost-file-in-linux-using-find-command.html</link> <comments>http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html#comments</comments> <pubDate>Wed, 13 Jun 2012 07:16:29 +0000</pubDate> <dc:creator>Linus</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[command]]></category> <category><![CDATA[Shell Command]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1148</guid> <description><![CDATA[Lost file can be searched different ways in Linux/Unix System. Linux &#8216;find&#8217; command can use to locate files in Linux/Unix systems effectively. Many users use the find tool with just the basic parameters. They get the results that they were looking for. Unfortunately most of the users don&#8217;t spend time to learn all about find. [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/linux-command-line-terminal-logo.jpg"><img
class="alignleft  wp-image-1150" style="border: 2px solid black; margin: 2px;" title="linux-command-line-terminal-logo" src="http://www.php2s.com/wp-content/uploads/2012/06/linux-command-line-terminal-logo.jpg" alt="linux command line terminal logo How to find lost file in Linux using find Command" width="140" height="121" /></a>Lost file can be searched different ways in Linux/Unix System. Linux &#8216;find&#8217; command can use to locate files in Linux/Unix systems effectively.</p><p>Many users use the find tool with just the basic parameters. They get the results that they were looking for. Unfortunately most of the users don&#8217;t spend time to learn all about find. If they do, they can make excellent use of this tool and I am sure you would be surprised at the possibilities.<br
/> <span
id="more-1148"></span><br
/> You can search for files by name, owner, group, type, permissions, date, and other criteria. The search is recursive in that it will search all sub-directories too. The syntax looks like this:</p><blockquote><p>find where-to-look criteria what-to-do</p></blockquote><p>All arguments to find are optional, and there are defaults for all parts. (This may depend on which version of find is used. Here we discuss the freely available Gnu version of find, which is the version available on YborStudent.) For example, <span
style="color: #ff6600;">where-to-look</span> defaults to . (that is, the current working directory), criteria defaults to none (that is, select all files), and <span
style="color: #ff6600;">what-to-do</span> (known as the find action) defaults to ‑print (that is, display the names of found files to standard output). Technically, the criteria and actions are all known as find primaries.</p><p><span
style="color: #3366ff;"><strong>Search file with name in the whole system:</strong></span></p><blockquote><p>$ find / -name file_name</p></blockquote><p>This command search for “file_name” in the whole system. The “/” tell the console to search in the whole system. You should run this command as root. If you want to search in your current directory use:</p><blockquote><p>$ find . -name file_nam</p></blockquote><p>Thus the use of “/” searches in the whole system starting from the root directory and must be run as a root. The use of “.” search in the current working directory.</p><p><span
style="color: #3366ff;"><strong>Search file with the specific extension:</strong></span></p><blockquote><p>$ find . -name &#8220;*.txt&#8221;</p></blockquote><p>This command search for the files with the extension .txt.</p><p><span
style="color: #3366ff;"><strong>Finding a particular file in your system</strong></span></p><blockquote><p>$ find / -name &#8216;filename&#8217; 2&gt;/dev/null<br
/> $ find / -name &#8216;filename&#8217; 2&gt;errors.txt</p></blockquote><p><strong>/ &#8211; </strong>Start searching from the root directory (i.e / directory)</p><p><strong>-name -</strong> Given search text is the filename rather than any other attribute of a file &#8216;filename&#8217;. Always enclose the filename in single quotes&#8230;</p><p>NOTE: 2&gt;/dev/null is not related to find tool as such. 2 indicates the error stream in Linux, and<span
style="color: #ff6600;"> /dev/null</span> is the device where anything you send simply disappears. So 2&gt;/dev/null in this case means that while finding for the files, in case any error messages pop up simply send them to /dev/null i.e. simply discard all error messages.</p><p>Alternatively you could use 2&gt;error.txt where after the search is completed you would have a file named error.txt in the current directory with all the error messages in it.</p><blockquote><p>$ find -name &#8216;met*&#8217;</p></blockquote><p>The above command would start searching for the files that begin with the letters &#8216;<span
style="color: #ff6600;">met</span>&#8216; within the current directory and the directories that are present within the current directory.</p><p>If no paths are given, the current directory is used. If no expression is given, the expression ‘-print’ is used.</p><p><span
style="color: #3366ff;"><strong>Search based on modification time:</strong></span><br
/> “-mtime” is used to search the files based on modification time. Let’s take a example for a day.</p><blockquote><p>$ find . -mtime 1(find all the files modified exact 1 day)<br
/> $ find . -mtime -1(find all the files modified less than a day)<br
/> $ find . -mtime +1(find all the files modified more than a day)</p></blockquote><p><span
style="color: #3366ff;"><strong>Searching with respect to type of the file (-type)</strong></span></p><blockquote><p>$find . -name &#8216;temp&#8217;<br
/> ./keepout/temp<br
/> ./temp</p><p>$find . -name &#8216;temp&#8217; -type d<br
/> ./temp</p></blockquote><p>Where <strong>d</strong> &#8211; directory,<strong> p</strong> &#8211; named pipe (FIFO), <strong>f</strong> &#8211; regular file and so on</p><p><span
style="color: #3366ff;"><strong>Ignoring case-sensitivity (-iname)</strong></span></p><blockquote><p>$ find /home/temp -iname &#8216;index*&#8217;</p></blockquote><p>This command searchs for a file starting with string &#8216;index&#8217; without considering the case of the filename. So all files starting with any combination of letters in upper and lower case such as INDEX or indEX or index would be returned.</p><p><span
style="color: #3366ff;"><strong>Searching for a file based on size</strong></span></p><blockquote><p>$ find /home/songs -name &#8216;*.mp3&#8242; -size -5000k<br
/> $ find / -size +10000k</p></blockquote><p>First command finds within a directory called <span
style="color: #ff6600;">/home/songs</span>, only those mp3 files that have a size less than 5000 Kilobytes.</p><blockquote><p>$ find / -mount -name &#8216;win*&#8217;</p></blockquote><p>This command searches for files starting with the letters &#8216;win&#8217; in their filenames. The only difference is that the mounted filesystems would not be searched for this time. This is useful when you have your Windows partitions mounted by default. And a search for &#8216;win&#8217; might return many files on those partitions, which you may not be really interested in. This is only one use of -mount parameter.</p><blockquote><p>$ find /mp3-collection -name &#8216;Metallica*&#8217; -and -size +10000k<br
/> $ find /mp3-collection -size +10000k ! -name &#8220;Metallica*&#8221;<br
/> $ find /mp3-collection -name &#8216;Metallica*&#8217; -or -size +10000k</p></blockquote><p>Boolean operators such as AND, OR and NOT make find an extremely useful tool.<br
/> The 1st command searches within the directory /mp3-collection for files that have their names beginning with &#8216;Metallica&#8217; and whose size is greater than 10000 kilobytes (&gt; 10 MB).<br
/> The 2nd command searches in the same directory as above case but only for files that are greater than 10MB, but they should not have &#8216;Metallica&#8217; as the starting of their filenames.<br
/> The 3rd command searches in the same directory for files that begin with &#8216;Metallica&#8217; in their names or all the files that are greater than 10 MB in size.</p><p><span
style="color: #3366ff;"><strong>How to apply a unix command to a set of files (-exec) ?</strong></span></p><blockquote><p>$ find . -name &#8216;*.sh&#8217; -exec chmod o+r &#8216;{}&#8217; \; -print</p></blockquote><p>This command will search in the current directory and all sub directories. All files ending with .sh extension will be processed by the<span
style="color: #ff6600;"> chmod -o+r</span> command. The argument &#8216;{}&#8217; inserts each found file into the chmod command line. The <span
style="color: #ff6600;">\</span>; argument indicates the exec command line has ended.</p><p>The end results of this command is all .sh files have the other permissions set to read access (if the operator is the owner of the file).</p><p><span
style="color: #3366ff;"><strong>Searching for a string in a selection of files (-exec grep &#8230;).</strong></span></p><blockquote><p>$ find . -exec grep &#8220;hello&#8221; &#8216;{}&#8217; \; -print</p></blockquote><p>Prints all files that contain the string &#8216;hello&#8217; will have their path printed to standard output.</p><p>If you want to just find each file then pass it on for processing use the -q grep option.</p><blockquote><p>$ find . -exec grep -q &#8220;hello&#8221; &#8216;{}&#8217; \; -print</p></blockquote><p><span
style="color: #3366ff;"><strong>Finding Empty files (-empty)</strong></span></p><blockquote><p>$find . -empty</p></blockquote><p><span
style="color: #3366ff;"><strong>To delete empty files in the current directory:</strong></span></p><blockquote><p>$ find . -empty -maxdepth 1 -exec rm &#8216;{}&#8217; \;</p></blockquote><p><span
style="color: #3366ff;"><strong>Find Files Under Users &amp; Groups</strong></span><br
/> <em>Users</em><br
/> To locate files belonging to a certain user:</p><blockquote><p>$ find /etc -type f \! -user root -exec ls -l {} \;<br
/> -rw&#8212;&#8212;- 1 lp sys 19731 2002-08-23 15:04 /etc/cups/cupsd.conf<br
/> -rw&#8212;&#8212;- 1 lp sys 97 2002-07-26 23:38 /etc/cups/printers.conf</p></blockquote><p><em>Groupies</em><br
/> find can locate files that belong to a specific group &#8211; or not, depending on how you use it.<br
/> This is especially suited to tracking down files that should belong to the www group but don&#8217;t:</p><blockquote><p>$ find /www/ilug/htdocs/ -type f \! -group www</p></blockquote><p>The -nogroup argument means there is no group in the<span
style="color: #ff6600;"> /etc/group</span> file for the files in question.</p><p><span
style="color: #3366ff;"><strong>Locate command<br
/> </strong></span><br
/> The locate command is often the simplest and quickest way to find the locations of files and directories on Linux and other Unix-like operating systems.</p><p>For example, the following command uses the star wildcard to display all files on the system that have the <span
style="color: #ff6600;">.c</span> filename extension:</p><blockquote><p># locate &#8220;*.c&#8221;</p></blockquote><p>The find command is extremely powerful and useful. If you find any question please don&#8217;t hesitate to ask. Hope it would be helpful.</p><p>Useful more examples<br
/> <a
href="http://content.hccfl.edu/pollock/Unix/FindCmd.htm">hccfl.edu</a><br
/> <a
href="http://www.linux.ie/newusers/beginners-linux-guide/find.php">Linux.ie</a></p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/linux-locate-command-find-files-and-directories-quickly-and-efficiently-in-linux.html" rel="bookmark" class="crp_title">Linux locate command: Find Files and Directories Quickly and Efficiently in Linux</a></li><li><a
href="http://www.php2s.com/linux/how-to-change-ownership-with-the-chown-command-on-ubuntu-11-10-oneiric-ocelot.html" rel="bookmark" class="crp_title">How to Change Ownership With The chown Command On Ubuntu 11.10 Oneiric Ocelot</a></li><li><a
href="http://www.php2s.com/programming/web-programming/fixing-apache-13permission-denied-access-to-403-forbidden.html" rel="bookmark" class="crp_title">Fixing Apache (13)Permission denied: access to / 403 Forbidden</a></li><li><a
href="http://www.php2s.com/linux/how-to-change-permissions-in-ubuntu-11-10-oneiric-ocelot-with-the-chmod-command.html" rel="bookmark" class="crp_title">How to change permissions in Ubuntu 11.10 Oneiric Ocelot with the chmod command</a></li><li><a
href="http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html" rel="bookmark" class="crp_title">How to configure bind logging with Bind-Chroot on CentOS 6.2</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-a-perl-module-in-linux-without-root-permission.html" rel="bookmark" class="crp_title">How to Install A Perl Module In Linux Without Root Permission</a></li><li><a
href="http://www.php2s.com/linux/find-real-path-of-linux-symbolic-link-or-soft-link-files-%e2%80%93-linux-command-line.html" rel="bookmark" class="crp_title">Find Real Path of Linux Symbolic Link or Soft Link Files – Linux Command Line</a></li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" rel="bookmark" class="crp_title">How to configure network using CLI ang GUI in Ubuntu 12.04</a></li><li><a
href="http://www.php2s.com/linux/vi-commands-cheat-sheet-vi-short-commands-reference-linux.html" rel="bookmark" class="crp_title">Vi Commands Cheat sheet &#8211; Vi short commands reference linux</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-ntp-daemon-on-centos-rhel-fedora.html" rel="bookmark" class="crp_title">Install and Configure NTP on CentOS/ RHEL/ Fedora</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html" title="command to use when getting lost files in linux from the network">command to use when getting lost files in linux from the network</a> (2)</li><li><a
href="http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html" title="basic linux/unix lost command">basic linux/unix lost command</a> (2)</li><li><a
href="http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html" title="lost linux command">lost linux command</a> (2)</li><li><a
href="http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html" title="linux lost file">linux lost file</a> (1)</li><li><a
href="http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html" title="linux find mp3 metalica">linux find mp3 metalica</a> (1)</li><li><a
href="http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html" title="linux find missing">linux find missing</a> (1)</li><li><a
href="http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html" title="linux find lost files">linux find lost files</a> (1)</li><li><a
href="http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html" title="linux find command to get increased file name">linux find command to get increased file name</a> (1)</li><li><a
href="http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html" title="ybor student find unix">ybor student find unix</a> (1)</li><li><a
href="http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html" title="linux detect deleted files in directory -recover">linux detect deleted files in directory -recover</a> (1)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=ducw8i6ogHM:8lQjMMwzHyU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=ducw8i6ogHM:8lQjMMwzHyU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=ducw8i6ogHM:8lQjMMwzHyU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=ducw8i6ogHM:8lQjMMwzHyU:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/ducw8i6ogHM" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-find-lost-file-in-linux-using-find-command</feedburner:origLink></item> <item><title>How to install and configure OpenVZ on CentOS 6.2 / RHEL</title><link>http://feedproxy.google.com/~r/Php2s/~3/2ZxkaQctHjk/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html</link> <comments>http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html#comments</comments> <pubDate>Tue, 12 Jun 2012 07:02:56 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Virtualization]]></category> <category><![CDATA[Centos]]></category> <category><![CDATA[OpenVZ]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1142</guid> <description><![CDATA[In this tutorial I will show, how to install OPenVZ on CentOS 6.2 and RHEL machine. OpenVZ is a great tool which offers a great virtualization solution with near zero overhead, thus offering great performance. OpenVZ consists of a kernel, some user-level tools, and container templates. Kernel and tools are needed to install OpenVZ, and [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/openvz-logo-official.png"><img
class="alignleft  wp-image-1144" title="openvz-logo-official" src="http://www.php2s.com/wp-content/uploads/2012/06/openvz-logo-official.png" alt="openvz logo official How to install and configure OpenVZ on CentOS 6.2 / RHEL" width="256" height="90" /></a>In this tutorial I will show, how to install OPenVZ on CentOS 6.2 and RHEL machine. OpenVZ is a great tool which offers a great virtualization solution with near zero overhead, thus offering great performance. OpenVZ consists of a kernel, some user-level tools, and container templates. Kernel and tools are needed to install OpenVZ, and templates are needed to create containers. Over past couple of years I was using OpenVZ and as excellent low cost solution for Linux services separation and every time I was installing it I had to Google the necessary steps. This led me into writing this simple guide to speedup my future setup. After the installation is finished and system reboots I log in as root and start the modifications.</p><p><span
id="more-1142"></span></p><p><strong>Get the OpenVZ repository and update &#8220;yum&#8221;:</strong></p><blockquote><p>#wget -P /etc/yum.repos.d http://download.openvz.org/openvz.repo<br
/> #rpm &#8211;import http://download.openvz.org/RPM-GPG-Key-OpenVZ<br
/> #yum update</p></blockquote><p><strong>Install relevant packages</strong></p><blockquote><p>#yum install openvz-kernel-rhel6 vzctl vzquota bridge-utils -y</p></blockquote><p>Modify relevant kernel (networking) settings to allow proper communication with the VPS&#8217;es:</p><blockquote><p>#vi /etc/sysctl.conf</p></blockquote><blockquote><p>#add these lines for sysctl openvz configuration<br
/> net.ipv4.ip_forward=1<br
/> net.ipv4.conf.all.rp_filter=1<br
/> net.ipv4.icmp_echo_ignore_broadcasts=1</p><p>net.ipv4.conf.default.forwarding=1<br
/> net.ipv4.conf.default.proxy_arp = 0<br
/> kernel.sysrq = 1<br
/> net.ipv4.conf.default.send_redirects = 1<br
/> net.ipv4.conf.all.send_redirects = 0<br
/> net.ipv4.conf.eth0.proxy_arp=1</p></blockquote><p>Update the new kernel settings:</p><blockquote><p>#sysctl -p</p></blockquote><p>Reboot the machine:</p><blockquote><p>#shutdown -r now</p></blockquote><p>A new Kernel should appear (2.6.32-042stab044.17 in my case) in the Grub menu.<br
/> Boot into the new Kernel.</p><p>Check that a new interface (venet0) exists:</p><blockquote><p># ifconfig venet0<br
/> venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00<br
/> inet6 addr: fe80::1/128 Scope:Link<br
/> UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1<br
/> RX packets:161 errors:0 dropped:0 overruns:0 frame:0<br
/> TX packets:182 errors:0 dropped:12 overruns:0 carrier:0<br
/> collisions:0 txqueuelen:0<br
/> RX bytes:19255 (18.8 KiB)  TX bytes:15822 (15.4 KiB)</p></blockquote><p>Also, check the the &#8220;vz&#8221; service is running:</p><blockquote><p>#/etc/init.d/vz status<br
/> OpenVZ is running..</p></blockquote><p>So far, so good &#8211; It&#8217;s time to get some OS template. Let&#8217;s get an Ubuntu 11.10 64bit template:</p><blockquote><p>#wget http://download.openvz.org/template/precreated/ubuntu-11.04-x86_64.tar.gz -P /vz/template/cache</p></blockquote><p>All templates come as archives and reside inside /vz/template/cache directory.</p><p>As a best practice it&#8217;s a good idea to keep /vz on a separate partition (or a LUN), the partition needs to be big enough to sustain all the VPS&#8217;es that are about to be created, so do the calculation according to your needs.</p><p>Basic installation is done. You should be able to use the vz* commands and administer your VM&#8217;s via the CLI.</p><p>For example to create a new VM out of the downloaded template use:</p><blockquote><p>#vzctl create 1 &#8211;ostemplate ubuntu-11.04-x86_64 &#8211;ipadd 10.0.0.12 &#8211;hostname vz03</p></blockquote><p>When 1 is the uid of the VPS.</p><p>After the creation, initialize the created VPS via:</p><blockquote><p>#vzctl start 1</p></blockquote><p>You can now enter into the VPS by simply SSH&#8217;ing into it or via the following command:</p><blockquote><p>#vzctl enter 1</p></blockquote><p>A very cool (and free) web management which I highly recommend is called OpenVZ Web Panel, can be easily installed via this command:</p><blockquote><p>#wget -O – http://ovz-web-panel.googlecode.com/svn/installer/ai.sh | sh</p></blockquote><p>After the installation, check that the OpenVZ web panel is listening on port 3000:</p><blockquote><p>#lsof -i :3000</p></blockquote><p>An initialization script is provided as part of the installation and is located under: /etc/init.d/owp</p><p>Once installed the web panel can be accessed from your browser via:</p><p>http://your-ip:3000</p><h2>Firewall setup</h2><p>If you want to have the containers on a separate network; such us when you don&#8217;t have spare public IP</p><p>To add a NAT for the local IPs</p><p>iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j SNAT &#8211;to [External IP address]</p><p>To forward port 3000 to the vz</p><blockquote><p>iptables -t nat -A PREROUTING -p tcp -d [External IP address] &#8211;dport 3000 -i eth0 -j DNAT &#8211;to-destination 10.0.0.1:3000<br
/> iptables -t nat -A POSTROUTING -s 10.0.0.1 -o eth0 -j SNAT &#8211;to [External IP address]</p></blockquote><p>If you dont want to add NAT, you can just allow access to port 12345 from firewall.<br
/> Accept tcp packets on destination ports 3000</p><blockquote><p>iptables -A INPUT -p tcp &#8211;dport 3000 -j ACCEPT</p></blockquote><p>After you setup your rules, don&#8217;t forget to save them</p><blockquote><p>service iptables save</p></blockquote><p>If iptables is not running, you can enable it by running:</p><blockquote><p>system-config-securitylevel</p></blockquote><p>Be sure to modify firewall settings on the hosting machine accordingly to allow access to port 3000.</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/how-to-port-forwarding-with-iptables-between-2-hosts-on-different-networks-in-linux.html" rel="bookmark" class="crp_title">How to port forwarding with iptables between 2 hosts on different networks in Linux</a></li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-interface-on-fedora-16-using-networkmanager.html" rel="bookmark" class="crp_title">How to configure network interface on Fedora 16 using NetworkManager</a></li><li><a
href="http://www.php2s.com/linux/install-fresh-centos-ilo-install-no-internet-connectivity-yum-wget-etc-fail.html" rel="bookmark" class="crp_title">Install fresh CentOS iLO install, no internet connectivity (yum, wget etc. fail)</a></li><li><a
href="http://www.php2s.com/linux/how-to-modify-iptables-during-kickstart-install-of-centos-6.html" rel="bookmark" class="crp_title">How to modify iptables during Kickstart Install of CentOS 6</a></li><li><a
href="http://www.php2s.com/linux/qa-linux-iptables-blocking-yum.html" rel="bookmark" class="crp_title">(Q/A) Linux IPTables blocking yum</a></li><li><a
href="http://www.php2s.com/linux/install-configure-squid-proxy-server-on-centos-or-enterprise-linux-5-and-implement-access-control-list-to-block-website.html" rel="bookmark" class="crp_title">Install &#038; Configure Squid Proxy Server on CentOS or Enterprise Linux 5 and Implement ACL</a></li><li><a
href="http://www.php2s.com/linux/how-to-disable-ipv6-on-gnu-centos-fedora-debian-redhat.html" rel="bookmark" class="crp_title">How to disable Ipv6 on GNU / CentOS, Fedora, Debian, Redhat</a></li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" rel="bookmark" class="crp_title">How to configure network using CLI ang GUI in Ubuntu 12.04</a></li><li><a
href="http://www.php2s.com/linux/howto-setup-iscsi-san-server-on-centos-red-hat-linux.html" rel="bookmark" class="crp_title">Howto Setup iSCSI San Server on CentOS / Red Hat Linux</a></li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-card-in-red-hat-enterprise-linux-centos-fedora-core-from-cli.html" rel="bookmark" class="crp_title">How to configure network card in Red Hat Enterprise Linux, CentOS, Fedora Core from CLI</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html" title="openvz howto">openvz howto</a> (17)</li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html" title="install openvz on centos 6 2">install openvz on centos 6 2</a> (14)</li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html" title="openvz centos 6 2">openvz centos 6 2</a> (10)</li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html" title="oracle vm templates in openvz">oracle vm templates in openvz</a> (7)</li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html" title="centos install openvz create bridge">centos install openvz create bridge</a> (7)</li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html" title="centos 6 openvz howto">centos 6 openvz howto</a> (6)</li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html" title="how to install openVZ on centos 6 2">how to install openVZ on centos 6 2</a> (6)</li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html" title="openvz ubuntu 12 04">openvz ubuntu 12 04</a> (6)</li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html" title="openvz en centos 6 2">openvz en centos 6 2</a> (5)</li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html" title="openvz bridge centos">openvz bridge centos</a> (5)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=2ZxkaQctHjk:cx9fnzXpr1A:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=2ZxkaQctHjk:cx9fnzXpr1A:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=2ZxkaQctHjk:cx9fnzXpr1A:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=2ZxkaQctHjk:cx9fnzXpr1A:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/2ZxkaQctHjk" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-install-and-configure-openvz-on-centos-6-2-rhel</feedburner:origLink></item> <item><title>How to Configure OSPF and Calculate Cost</title><link>http://feedproxy.google.com/~r/Php2s/~3/ZnosohoK6KM/how-to-configure-ospf-and-calculate-cost.html</link> <comments>http://www.php2s.com/networking/how-to-configure-ospf-and-calculate-cost.html#comments</comments> <pubDate>Tue, 12 Jun 2012 05:32:34 +0000</pubDate> <dc:creator>Sheikh Khalid</dc:creator> <category><![CDATA[Networking]]></category> <category><![CDATA[CCNA]]></category> <category><![CDATA[cisco]]></category> <category><![CDATA[OSPF]]></category> <category><![CDATA[Router]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1132</guid> <description><![CDATA[This example shows basic OSPF(Open Shortest Path First) configuration and cost calculation of path based on badhwidth of the link. If multiple routes to a destination are known, routes learned through the protocol with the better administrative distance are preferred.If more than one route to a destination is learned through the preferred protocol, then the [...]]]></description> <content:encoded><![CDATA[<p>This example shows basic OSPF(Open Shortest Path First) configuration and cost calculation of path based on badhwidth of the link. If multiple routes to a destination are known, routes learned through the protocol with the better administrative distance are preferred.If more than one route to a destination is learned through the preferred protocol, then the preference of routes is based on the metric of the routes.Routes with the better metric are preferred. Open Shortest Path First (OSPF) uses cost as the metric calculated, based on the bandwidth of the link.</p><p><span
id="more-1132"></span></p><h2>Basic OSPF Configuration:</h2><p><strong>Step 1:</strong> Enter privileged EXEC mode:</p><blockquote><p>Router&gt;enable password</p></blockquote><p><strong>Step 2:</strong> Enter the configure terminal command to enter global configuration<br
/> mode.</p><blockquote><p>Router#config terminal</p></blockquote><p><strong>Step 3:</strong> Enter the router ospf command and follow by the process-id.</p><blockquote><p>Router(config)#router ospf process-id</p></blockquote><p>Pick the process-id which is not being used. To determine what ids are being used, issue the show process command.</p><blockquote><p>Router(config)#show process</p></blockquote><p><strong>Step 4:</strong> Add the network number, mask and area-id</p><blockquote><p>Router(config-router)#network network-number mask area area-id</p></blockquote><p>The network-number identifies the network using OSPF. The mask tells which bits to use from the network-number, and the area-id is used for determining areas in an OSPF configuration.</p><p><strong>Example:</strong></p><blockquote><p>Router(config)#router ospf 100<br
/> Router(config-router)#network 192.168.0.0 0.0.255.255 area 3<br
/> Router(config-router)#exit<br
/> Router(config)#interface Ethernet 0/0<br
/> Router(config-if)#ip address 192.168.16.1 255.255.255.240<br
/> Router(config-if)#ip ospf priority 100<br
/> Router(config-if)#exit<br
/> Router(config)#interface Ethernet 0/1<br
/> Router(config-if)#ip address 192.168.16.15 255.255.255.240<br
/> Router(config-if)#ip ospf priority 20<br
/> Router(config-if)#exit<br
/> Router(config)#interface Ethernet 0/2<br
/> Router(config-if)#ip address 192.168.16.30 255.255.255.240<br
/> Router(config-if)#ip ospf priority 15<br
/> Router(config-if)#exit<br
/> Router(config)#interface Ethernet 0/3<br
/> Router(config-if)#ip address 192.168.16.17 255.255.255.240<br
/> Router(config-if)#ip ospf cost 10</p></blockquote><p>Repeat this step for all the network numbers.</p><p>To turn off OSPF, use the following command.</p><blockquote><p>Router(config)#no router ospf process-id</p></blockquote><h2>Configure OSPF Cost Path:</h2><p>The auto-cost reference-bandwidth command allows you to change the reference bandwidth that OSPF uses to calculate its metrics:</p><blockquote><p>Router#configure terminal<br
/> Enter configuration commands, one per line.  End with CNTL/Z.<br
/> Router(config)#router ospf 87<br
/> Router(config-router)#auto-cost reference-bandwidth 1000<br
/> Router(config-router)#end<br
/> Router#</p></blockquote><p>You can also adjust the OSPF cost of a single interface with the ip ospf cost configuration command:</p><blockquote><p>Router#configure terminal<br
/> Enter configuration commands, one per line.  End with CNTL/Z.<br
/> Router(config)#interface Ethernet0<br
/> Router(config-if)#ip ospf cost 31<br
/> Router(config-if)#end<br
/> Router#</p></blockquote><p>The custom in OSPF networks is to make the link cost inversely proportional to the bandwidth of a link. This isn&#8217;t required, but it is common, and it is the default behavior for Cisco routers. The reference bandwidth defines the link speed that has an <em>OSPF cost of 1</em>. By default, the reference<em> bandwidth is 100Mbps.</em></p><p>However, if you have faster links in your network (such as gigabit Ethernet or even OC-3 connections), OSPF can&#8217;t give these links a better cost than 1. So you should set the reference bandwidth to at least as high as the fastest link in your network. In fact, you may want to set this value higher than the bandwidth of your fastest link to ensure that you don&#8217;t have to reconfigure your whole network when you eventually upgrade some of your core links.</p><p>It is important to set the same reference bandwidth on all routers in an area, and preferably throughout the entire network. Recall that OSPF allows every router to calculate its own routing table based on the LSAs that they receive. So, they must all agree on the relationship between costs and bandwidth. Suppose you set the reference bandwidth differently on two routers, causing them to advertise different link costs for their Ethernet interfaces. This could cause seriously strange routing patterns as OSPF will try to avoid using the higher-cost links. It may decide, for example, that a FastEthernet interface on one router is faster than a Gigabit Ethernet interface on the other router.<br
/> But there is another interesting problem with the way OSPF calculates its metrics. Suppose your network includes one or more Gigabit Ethernet links in the core and a WAN that provides 9.6Kbps dial backup for the most remote branches. This means that the fastest link is over 100,000 times as fast as the slowest. When this happens, the router will simply apply the maximum link cost of 65,535.</p><p>The problem is that the OSPF metric is only 16 bits long, giving it a maximum per-link cost value of 65,535. So, if your fastest link used the emerging 10Gbps Ethernet standard, and you set the cost of this link to 1, then a relatively common 56Kbps serial link would need to have a cost of 178,571. Since this is not possible, OSPF would have to use the maximum link cost of 65,535. This in itself is not a problem. The problem is that your 128Kbps circuits would also need to have the same cost. This could cause some very poor routing patterns.</p><p>We suggest using an alternate costing strategy to avoid this problem. The idea is that the cost of a link doesn&#8217;t actually have to be 10 times as high just because the link is 1/10 as fast. In fact, this default behavior implies that it is better to go through a succession of 10 FastEthernet links rather than use a single Ethernet, which is probably not true in most cases. So a useful alternative strategy is to use the square root of the bandwidth instead of the bandwidth when calculating the link cost. The result of this strategy would be -</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/OSPF-path-Cost-calculation-configuration.jpg"><img
class="aligncenter size-full wp-image-1133" title="OSPF-path-Cost-calculation-configuration" src="http://www.php2s.com/wp-content/uploads/2012/06/OSPF-path-Cost-calculation-configuration.jpg" alt="OSPF path Cost calculation configuration How to Configure OSPF and Calculate Cost"  /></a></p><p>if you use the default costs, then the three fastest links all wind up with a cost of 1. Changing the reference bandwidth to 10Gbps, however, produces impossibly large metrics for the three slowest links (the router will assign them all a link cost of 65,535). So, no matter what reference bandwidth you use, if you retain the default 1/bandwidth cost mode, you will need to manually adjust either the fastest or slowest several link costs.</p><p>The second example shows how to change the OSPF cost for a single interface:</p><blockquote><p>Router(config)#interface Ethernet0<br
/> Router(config-if)#ip ospf cost 31</p></blockquote><p>If you change the OSPF cost of a link like this, make sure that all of the other routers that connect to this same network segment use the same cost, or strange routing will result. Further, it is usually a good practice to ensure that all of the links of a particular type have the same cost throughout the network, or at least throughout the area. So, if we set the OSPF cost for 10Mbps Ethernet to 31 on this router, we should do the same on the other routers as well.</p><p>There are times when you will want to make sure that one particular link is favored, regardless of its actual bandwidth. In this case, you can give this link a special OSPF cost value. However, you will generally want to be careful that all of the devices on this link agree on the cost.</p><p>You could also achieve a similar effect by just adjusting the bandwidth statements on each interface, but this will have other consequences as well. It will affect any other routing protocols that you might also be running. It also means that an SNMP query of the interface speed will give an incorrect value, which could confuse network management software. We recommend the direct approach of manually setting the OSPF cost because it is more clear what you are doing and why. This becomes most important when somebody else comes along and wants to change the router configuration. If your cost scheme is not clear, you could cause serious support problems for your successor.</p><h3>Helpful Commands</h3><p><strong>Area default-cost</strong><br
/> To specify a cost for the default summary route sent into a stub area, use the area default-cost command in router configuration mode. To remove the assigned default route cost, use the no form of this command.</p><blockquote><p>area area-id default-cost cost<br
/> no area area-id default-cost cost</p></blockquote><p><strong>Show ip ospf neighbour Command</strong><br
/> The show ip ospf neighbour command shows OSPF neighbours (known neighbours can be viewed using this command).</p><blockquote><p>Router#show ip ospf neighbor</p></blockquote><p>The command can once again be expanded further to show a deep-dive per interface view in as much detail as possible. Use the command displayed below.</p><blockquote><p>Router#show ip ospf neighbor {type number} {neighbour id} [detail]</p></blockquote><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/networking/how-to-configure-passwords-to-secure-your-cisco-router-on-different-mode.html" rel="bookmark" class="crp_title">How to Configure Passwords to Secure your Cisco Router on Different Mode</a></li><li><a
href="http://www.php2s.com/networking/how-to-create-an-ip-ip-tunnel-among-three-networks.html" rel="bookmark" class="crp_title">How to create an ip-ip tunnel among three Networks</a></li><li><a
href="http://www.php2s.com/networking/reset-vpn-password-on-cisco-router-ios-asa.html" rel="bookmark" class="crp_title">Reset VPN password on Cisco Router IOS / ASA</a></li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-card-in-red-hat-enterprise-linux-centos-fedora-core-from-cli.html" rel="bookmark" class="crp_title">How to configure network card in Red Hat Enterprise Linux, CentOS, Fedora Core from CLI</a></li><li><a
href="http://www.php2s.com/linux/find-real-path-of-linux-symbolic-link-or-soft-link-files-%e2%80%93-linux-command-line.html" rel="bookmark" class="crp_title">Find Real Path of Linux Symbolic Link or Soft Link Files – Linux Command Line</a></li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-interface-on-fedora-16-using-networkmanager.html" rel="bookmark" class="crp_title">How to configure network interface on Fedora 16 using NetworkManager</a></li><li><a
href="http://www.php2s.com/networking/how-to-encrypt-lan-and-wifi-traffic-on-small-private-network.html" rel="bookmark" class="crp_title">How to Encrypt LAN and wifi traffic on small private network</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-openvz-on-centos-6-2-rhel.html" rel="bookmark" class="crp_title">How to install and configure OpenVZ on CentOS 6.2 / RHEL</a></li><li><a
href="http://www.php2s.com/linux/install-fresh-centos-ilo-install-no-internet-connectivity-yum-wget-etc-fail.html" rel="bookmark" class="crp_title">Install fresh CentOS iLO install, no internet connectivity (yum, wget etc. fail)</a></li><li><a
href="http://www.php2s.com/networking/how-to-create-map-of-local-network-lan-using-lanmap.html" rel="bookmark" class="crp_title">How to create map of local network (LAN) using Lanmap</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/networking/how-to-configure-ospf-and-calculate-cost.html" title="calculate ospf cost enterprise network">calculate ospf cost enterprise network</a> (6)</li><li><a
href="http://www.php2s.com/networking/how-to-configure-ospf-and-calculate-cost.html" title="ospf cost calculation example">ospf cost calculation example</a> (4)</li><li><a
href="http://www.php2s.com/networking/how-to-configure-ospf-and-calculate-cost.html" title="calculating ospf cost">calculating ospf cost</a> (3)</li><li><a
href="http://www.php2s.com/networking/how-to-configure-ospf-and-calculate-cost.html" title="cisco ospf cost values">cisco ospf cost values</a> (3)</li><li><a
href="http://www.php2s.com/networking/how-to-configure-ospf-and-calculate-cost.html" title="cisco ospf square root costs">cisco ospf square root costs</a> (2)</li><li><a
href="http://www.php2s.com/networking/how-to-configure-ospf-and-calculate-cost.html" title="OSPF Path Cost">OSPF Path Cost</a> (2)</li><li><a
href="http://www.php2s.com/networking/how-to-configure-ospf-and-calculate-cost.html" title="ospf on fedora 16">ospf on fedora 16</a> (2)</li><li><a
href="http://www.php2s.com/networking/how-to-configure-ospf-and-calculate-cost.html" title="how to configure ospf cost">how to configure ospf cost</a> (2)</li><li><a
href="http://www.php2s.com/networking/how-to-configure-ospf-and-calculate-cost.html" title="how to calculate ip ospf routing cost">how to calculate ip ospf routing cost</a> (2)</li><li><a
href="http://www.php2s.com/networking/how-to-configure-ospf-and-calculate-cost.html" title="ospf cost square root">ospf cost square root</a> (2)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=ZnosohoK6KM:N4WiYt7MIU4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=ZnosohoK6KM:N4WiYt7MIU4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=ZnosohoK6KM:N4WiYt7MIU4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=ZnosohoK6KM:N4WiYt7MIU4:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/ZnosohoK6KM" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/networking/how-to-configure-ospf-and-calculate-cost.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/networking/how-to-configure-ospf-and-calculate-cost.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-configure-ospf-and-calculate-cost</feedburner:origLink></item> <item><title>How to configure bind logging with Bind-Chroot on CentOS 6.2</title><link>http://feedproxy.google.com/~r/Php2s/~3/tQwKPK9xjgc/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html</link> <comments>http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html#comments</comments> <pubDate>Sun, 10 Jun 2012 10:56:49 +0000</pubDate> <dc:creator>Linus</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[bind]]></category> <category><![CDATA[Centos]]></category> <category><![CDATA[chroot]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1124</guid> <description><![CDATA[This article will help you create a bind-chroot configuration to separate daemon messages from users queries on CentoOS 6.2. Note that with CentOS 6.2 bind chrooting is done by mount points, see mount &#124; fgrep named while named is started ; you must not symlink configurations files and you should edit files directly under /etc. [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/Official-bind-named-logo.gif"><img
class="alignleft size-full wp-image-1127" title="Official-bind-named-logo" src="http://www.php2s.com/wp-content/uploads/2012/06/Official-bind-named-logo.gif" alt="Official bind named logo How to configure bind logging with Bind Chroot on CentOS 6.2" width="128" height="57" /></a>This article will help you create a bind-chroot configuration to separate daemon messages from users queries on CentoOS 6.2.</p><p>Note that with CentOS 6.2 bind chrooting is done by mount points, see <em><span
style="color: #ff6600;">mount | fgrep named</span></em> while named is started ; you must not symlink configurations files and you should edit files directly under /etc. Though, you should not put your configuration directly in <span
style="color: #ff6600;">/etc/named.conf</span> but include your own files under <span
style="color: #ff6600;">/etc/named/</span> using the include directive.<br
/> <span
id="more-1124"></span></p><p><strong>There are two possible configurations:</strong></p><ol><li>Login through syslog (recommended)</li><li>Login through file</li></ol><p>With a chrooted bind, since log files are physically placed under /var/named/chroot/var/log/, a lazy admin would want to symlink them in /var/log/:</p><blockquote><p>ln -sf /var/named/chroot/var/log/dns.log /var/log/dns.log<br
/> ln -sf /var/named/chroot/var/log/dns_queries.log /var/log/dns_queries.log</p></blockquote><h2>1. Logging to syslog</h2><p><strong>1.1 Configure named for syslog</strong><br
/> <span
style="color: #ff6600;">/etc/named.conf:</span> Remove the logging{} block and include your own file</p><blockquote><p>[...]<br
/> include &#8220;/etc/named/named.conf.local&#8221;;</p></blockquote><p>/etc/named/named.conf.local:</p><blockquote><p>[...]<br
/> // Do not print-time, it&#8217;s redundant with syslog header.<br
/> logging {<br
/> channel log_dns {<br
/> syslog local3;<br
/> print-category yes;<br
/> print-severity yes;<br
/> print-time no;<br
/> };<br
/> channel log_queries {<br
/> syslog local4;<br
/> print-category yes;<br
/> print-severity yes;<br
/> print-time no;<br
/> };<br
/> category default {log_dns;};<br
/> category queries {log_queries;};<br
/> category lame-servers { null;};<br
/> category edns-disabled { null; };<br
/> };</p></blockquote><p><strong>1.2 Configure rsyslog</strong><br
/> /etc/rsyslog.conf:</p><blockquote><p># Don&#8217;t forget to add the chrooted log socket.<br
/> $AddUnixListenSocket /var/named/chroot/dev/log<br
/> if $syslogfacility-text == &#8216;local3&#8242; then /var/named/chroot/var/log/dns.log<br
/> &amp; ~<br
/> if $syslogfacility-text == &#8216;local4&#8242; then /var/named/chroot/var/log/dns_queries.log<br
/> &amp; ~</p></blockquote><p><strong>1.3 Configure logrotate</strong><br
/> /etc/logrotate.d/named:</p><p>Rsyslog must be reloaded before named in order to create the new empty log files after rotation.</p><blockquote><p>/var/named/chroot/var/log/dns.log<br
/> /var/named/chroot/var/log/dns_queries.log<br
/> /var/named/data/named.run {<br
/> missingok<br
/> create 0644 named named<br
/> postrotate<br
/> /bin/kill -HUP `cat /var/run/syslogd.pid 2&gt; /dev/null` 2&gt; /dev/null || true<br
/> /sbin/service named reload 2&gt; /dev/null &gt; /dev/null || true<br
/> endscript<br
/> }</p></blockquote><h2>2. Logging to files</h2><p><strong>2.1 Configure named</strong><br
/> /etc/named.conf: Remove the logging{} block and include your own file</p><blockquote><p>[...]<br
/> include &#8220;/etc/named/named.conf.local&#8221;;</p></blockquote><p>/etc/named/named.conf.local:</p><blockquote><p>[...]<br
/> logging {<br
/> channel log_dns {<br
/> file &#8220;/var/log/dns.log&#8221; versions 3 size 10m;<br
/> print-category yes;<br
/> print-severity yes;<br
/> print-time yes;<br
/> };<br
/> channel log_queries {<br
/> file &#8220;/var/log/dns_queries.log&#8221; versions 3 size 20m;<br
/> print-category yes;<br
/> print-severity yes;<br
/> print-time yes;<br
/> };<br
/> category default {log_dns;};<br
/> category queries {log_queries;};<br
/> category lame-servers { null;};<br
/> category edns-disabled { null; };<br
/> };</p></blockquote><p>Now you can login through file.</p><p>To display last lines on dns_queries.log, simply execute the following command :</p><blockquote><p>tail -f /var/log/dns_queries.log</p></blockquote><p>Reference@<br
/> <a
href="http://floriancrouzat.net/">Floriancrouzat</a></p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/how-to-installation-and-configuration-bind-dns-server-on-centos-5-3.html" rel="bookmark" class="crp_title">How to Installation and Configuration BIND DNS Server on CentOS 5.3</a></li><li><a
href="http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html" rel="bookmark" class="crp_title">How to find lost file in Linux using &#8216;find&#8217; Command</a></li><li><a
href="http://www.php2s.com/linux/how-to-change-ownership-with-the-chown-command-on-ubuntu-11-10-oneiric-ocelot.html" rel="bookmark" class="crp_title">How to Change Ownership With The chown Command On Ubuntu 11.10 Oneiric Ocelot</a></li><li><a
href="http://www.php2s.com/linux/linux-locate-command-find-files-and-directories-quickly-and-efficiently-in-linux.html" rel="bookmark" class="crp_title">Linux locate command: Find Files and Directories Quickly and Efficiently in Linux</a></li><li><a
href="http://www.php2s.com/networking/how-to-create-map-of-local-network-lan-using-lanmap.html" rel="bookmark" class="crp_title">How to create map of local network (LAN) using Lanmap</a></li><li><a
href="http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html" rel="bookmark" class="crp_title">How to install Lighttpd with PHP5 and MySQL on Ubuntu 12.04</a></li><li><a
href="http://www.php2s.com/open-source/nginx/how-to-redirect-all-www-traffice-to-non-www-version-in-nginx.html" rel="bookmark" class="crp_title">How to Redirect all www traffice to non-www version in Nginx</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-configure-vsftpd-on-rhel-centos-ubuntu-fedora-debian.html" rel="bookmark" class="crp_title">How to Install &#038; Configure Vsftpd on RHEL/CentOS/Ubuntu/Fedora</a></li><li><a
href="http://www.php2s.com/linux/step-by-step-delete-windows-partition-using-fdisk-command-on-linux-fedora-system.html" rel="bookmark" class="crp_title">Step by Step Delete Windows Partition using fdisk command on Linux Fedora System</a></li><li><a
href="http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html" rel="bookmark" class="crp_title">Install and Configure Proftpd Server on RHEL / Fedora / CentOS 6.2</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html" title="centos 6 bind-chroot howto">centos 6 bind-chroot howto</a> (13)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html" title="ubuntu 12 04 server chroot bind logging to rsyslog">ubuntu 12 04 server chroot bind logging to rsyslog</a> (6)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html" title="centos 6 2 bind chroot">centos 6 2 bind chroot</a> (5)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html" title="bind chroot centos 6">bind chroot centos 6</a> (5)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html" title="named chroot rsyslog messages">named chroot rsyslog messages</a> (4)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html" title="centos bind logging in chroot">centos bind logging in chroot</a> (4)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html" title="chroot bind centos 6 2">chroot bind centos 6 2</a> (4)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html" title="rndc-confgin bind-chroot centos">rndc-confgin bind-chroot centos</a> (3)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html" title="config bind9 centos6 2">config bind9 centos6 2</a> (3)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html" title="bind chroot centos 6 2">bind chroot centos 6 2</a> (3)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=tQwKPK9xjgc:Vtl9Al6AvCE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=tQwKPK9xjgc:Vtl9Al6AvCE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=tQwKPK9xjgc:Vtl9Al6AvCE:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=tQwKPK9xjgc:Vtl9Al6AvCE:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/tQwKPK9xjgc" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/linux/how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-configure-bind-logging-with-bind-chroot-on-centos-6-2</feedburner:origLink></item> <item><title>How to get a small sample dataset from a mysql database using mysqldump</title><link>http://feedproxy.google.com/~r/Php2s/~3/LpcmRAGBEBU/how-to-get-a-small-sample-dataset-from-a-mysql-database-using-mysqldump.html</link> <comments>http://www.php2s.com/database/how-to-get-a-small-sample-dataset-from-a-mysql-database-using-mysqldump.html#comments</comments> <pubDate>Wed, 06 Jun 2012 10:53:54 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Database]]></category> <category><![CDATA[database]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[mysqldump]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1110</guid> <description><![CDATA[In this quick quick tip that will show how you can get a small sample dataset from a mysql database using mysqldump. We frequently need to get a small snapshot from a very big production database to import it into a development or staging database that will not need all the original data; let’s say [...]]]></description> <content:encoded><![CDATA[<p>In this quick quick tip that will show how you can get a small sample dataset from a mysql database using mysqldump. We frequently need to get a small snapshot from a very big production database to import it into a development or staging database that will not need all the original data; let’s say we need 1,000,000 records from all the tables in the database; we will just use the option –where=”true LIMIT X”, with X the number of records we want mysqldump to stop after.</p><p><span
id="more-1110"></span></p><p>Simply we will run something like (add whatever other options you need to mysqldump):</p><blockquote><p>mysqldump &#8211;opt &#8211;where=&#8221;true LIMIT 1000000&#8243; mydb &gt; mydb1M.sql</p></blockquote><p>and this will get 1M records from each of the tables in the database. If you want this for a single table you would use something like this:</p><blockquote><p>mysqldump &#8211;opt &#8211;where=&#8221;true LIMIT 1000000&#8243; mydb mytable &gt; mydb_mytable_1M.sql</p></blockquote><p>To restore this, you would use the same as on a regular dump:</p><blockquote><p>mysql -p mydb_stage &lt; mydb1M.sql</p></blockquote><p>This will give you a small number of records that you can use for development, testing, etc. whatever you would need.</p><p>Source@</p><p><a
href="http://www.ducea.com">Ducea.com</a></p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/database/how-to-secure-mysql-database-server.html" rel="bookmark" class="crp_title">How to Secure MySQL Database Server to Prevent Anonymous Access</a></li><li><a
href="http://www.php2s.com/database/sql-to-select-a-random-row-from-a-database-table.html" rel="bookmark" class="crp_title">SQL to Select a random row from a database table</a></li><li><a
href="http://www.php2s.com/database/unique-text-in-mysql-database-text-field.html" rel="bookmark" class="crp_title">Unique Text in MySQL Database Text Field</a></li><li><a
href="http://www.php2s.com/programming/web-programming/wp-optimize-database-cleanup-and-optimization-plugin-for-wordpress.html" rel="bookmark" class="crp_title">WP-Optimize Database Cleanup and Optimization Plugin for WordPress</a></li><li><a
href="http://www.php2s.com/linux/linux-locate-command-find-files-and-directories-quickly-and-efficiently-in-linux.html" rel="bookmark" class="crp_title">Linux locate command: Find Files and Directories Quickly and Efficiently in Linux</a></li><li><a
href="http://www.php2s.com/database/auto-optimize-your-mysql-tables-script.html" rel="bookmark" class="crp_title">Auto Optimize Your MySQL Tables Script</a></li><li><a
href="http://www.php2s.com/linux/installing-lamp-server-on-debian-squeeze.html" rel="bookmark" class="crp_title">Installing LAMP Server on Debian Squeeze</a></li><li><a
href="http://www.php2s.com/programming/php-programming/benchmarking-php%e2%80%99s-magic-methods.html" rel="bookmark" class="crp_title">Benchmarking PHP’s Magic Methods</a></li><li><a
href="http://www.php2s.com/programming/php-programming/how-to-run-mutiple-localhosts-using-wamp-windows-apache-mysql-php.html" rel="bookmark" class="crp_title">How to Run Mutiple Localhosts Using WAMP (Windows Apache MySQL PHP)</a></li><li><a
href="http://www.php2s.com/networking/how-to-encrypt-lan-and-wifi-traffic-on-small-private-network.html" rel="bookmark" class="crp_title">How to Encrypt LAN and wifi traffic on small private network</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/database/how-to-get-a-small-sample-dataset-from-a-mysql-database-using-mysqldump.html" title="download mysql sample dataset">download mysql sample dataset</a> (4)</li><li><a
href="http://www.php2s.com/database/how-to-get-a-small-sample-dataset-from-a-mysql-database-using-mysqldump.html" title="mysql php list and search dataset">mysql php list and search dataset</a> (3)</li><li><a
href="http://www.php2s.com/database/how-to-get-a-small-sample-dataset-from-a-mysql-database-using-mysqldump.html" title="a small database coding using mysql and php on centos">a small database coding using mysql and php on centos</a> (1)</li><li><a
href="http://www.php2s.com/database/how-to-get-a-small-sample-dataset-from-a-mysql-database-using-mysqldump.html" title="how to get number from database using dataset">how to get number from database using dataset</a> (1)</li><li><a
href="http://www.php2s.com/database/how-to-get-a-small-sample-dataset-from-a-mysql-database-using-mysqldump.html" title="how to view the mysql data of squid using bt5">how to view the mysql data of squid using bt5</a> (1)</li><li><a
href="http://www.php2s.com/database/how-to-get-a-small-sample-dataset-from-a-mysql-database-using-mysqldump.html" title="mysql sample database">mysql sample database</a> (1)</li><li><a
href="http://www.php2s.com/database/how-to-get-a-small-sample-dataset-from-a-mysql-database-using-mysqldump.html" title="ubuntu mysqldump sample data set">ubuntu mysqldump sample data set</a> (1)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=LpcmRAGBEBU:XmmVuMK_YYg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=LpcmRAGBEBU:XmmVuMK_YYg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=LpcmRAGBEBU:XmmVuMK_YYg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=LpcmRAGBEBU:XmmVuMK_YYg:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/LpcmRAGBEBU" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/database/how-to-get-a-small-sample-dataset-from-a-mysql-database-using-mysqldump.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/database/how-to-get-a-small-sample-dataset-from-a-mysql-database-using-mysqldump.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-get-a-small-sample-dataset-from-a-mysql-database-using-mysqldump</feedburner:origLink></item> <item><title>Download and Install BackTrack 5 R2 GNOME Screenshots</title><link>http://feedproxy.google.com/~r/Php2s/~3/63SX96WZvmo/download-and-install-backtrack-5-r2-gnome-screenshots.html</link> <comments>http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html#comments</comments> <pubDate>Wed, 06 Jun 2012 10:29:06 +0000</pubDate> <dc:creator>Linus</dc:creator> <category><![CDATA[Open Source]]></category> <category><![CDATA[BackTrack]]></category> <category><![CDATA[BackTrack 5]]></category> <category><![CDATA[download]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1096</guid> <description><![CDATA[This example shows, how to install BackTrack 5 R2 GNOME edition step by step screenshots. BackTrack 5 is a Linux distribution designed for penetration testers and other security professionals, or those who want to mess with all the best security and penetration testing applications the free software community has to offer. BackTrack 5 R2 is [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/backtrack5-logo.jpg"><img
class="alignleft  wp-image-1116" title="backtrack5-logo" src="http://www.php2s.com/wp-content/uploads/2012/06/backtrack5-logo.jpg" alt="backtrack5 logo Download and Install BackTrack 5 R2 GNOME Screenshots" width="192" height="110" /></a>This example shows, how to install BackTrack 5 R2 GNOME edition step by step screenshots. BackTrack 5 is a Linux distribution designed for penetration testers and other security professionals, or those who want to mess with all the best security and penetration testing applications the free software community has to offer. BackTrack 5 R2 is the latest edition, officially released March 1 (2012). You have the option of downloading a GNOME 2 or KDE ISO installation image for 32- or 64-bit architectures. I have already written several articles using a 32-bit installation image of the KDE edition. Because the installers of the GNOME and KDE editions are slightly different.<span
id="more-1096"></span></p><p>You can download a suitable image from here. Burn it to a CD and boot the computer from it. The boot menu is shown here. By default, it should boot into a live desktop at the command line.</p><p><a
href="http://www.backtrack-linux.org/downloads/">Download BackTrack 5 R2 from Website</a></p><p>Direct Link<br
/> <a
href="http://www.backtrack-linux.org/ajax/download_redirect.php?id=BT5R2-KDE-64.torrent">BackTrack 5 R2 KDE 64 Bit</a><br
/> <a
href="http://www.backtrack-linux.org/ajax/download_redirect.php?id=BT5R2-KDE-32.torrent">BackTrack 5 R2 KDE 32 Bit</a><br
/> <a
href="http://www.backtrack-linux.org/ajax/download_redirect.php?id=BT5R2-GNOME-64.iso">BackTrack 5 R2 GNOME 64 Bit Direct Link</a><br
/> <a
href="http://www.backtrack-linux.org/ajax/download_redirect.php?id=BT5R2-GNOME-32.iso">BackTrack 5 R2 GNOME 32 Bit Direct Link</a></p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/1.BTGnomeBoot-600x450.png"><img
class="size-full wp-image-1097 aligncenter" title="1.BTGnomeBoot-600x450" src="http://www.php2s.com/wp-content/uploads/2012/06/1.BTGnomeBoot-600x450.png" alt="1.BTGnomeBoot 600x450 Download and Install BackTrack 5 R2 GNOME Screenshots" width="600" height="450" /></a></p><p>To boot into a graphical desktop, type startx, then press the Enter or Return key on the keyboard.</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/2.BTGnomeBoot1.png"><img
class="size-full wp-image-1098 aligncenter" title="2.BTGnomeBoot1" src="http://www.php2s.com/wp-content/uploads/2012/06/2.BTGnomeBoot1.png" alt="2.BTGnomeBoot1 Download and Install BackTrack 5 R2 GNOME Screenshots"  /></a></p><p>Once in the graphical live desktop, click on the Install BackTrack icon on the desktop. This edition is based on Ubuntu 10.04 LTS, so if you still remember what the installer of that edition of Ubuntu looks like, you should be in familiar territory. The installation process is a simple, point-and-click, 7-step process. The fourth step, shown here, is the disk partitioning step. If your objective is to install it standalone on the computer, select the option shown in the image, and click Forward.</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/3.BTGnomeBoot5-542x475.png"><img
class="size-full wp-image-1099 aligncenter" title="3.BTGnomeBoot5-542x475" src="http://www.php2s.com/wp-content/uploads/2012/06/3.BTGnomeBoot5-542x475.png" alt="3.BTGnomeBoot5 542x475 Download and Install BackTrack 5 R2 GNOME Screenshots"  /></a></p><p>By default, the boot loader is installed in the Master Boot Record (MBR) of the hard drive. Just be sure to verify that.</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/4..png"><img
class="size-full wp-image-1100 aligncenter" title="4." src="http://www.php2s.com/wp-content/uploads/2012/06/4..png" alt="4. Download and Install BackTrack 5 R2 GNOME Screenshots"  /></a></p><p>After the installation has completed successfully, rebooting will drop you to a command line login prompt. Type the username root, the type toor for the password. Note the case. You will be logged in to a command line environment. Type startx to start the graphical desktop. Once you are logged in, be sure to change the default password. To do that, launch a shell terminal and type sudo password. Then type you new password, twice.</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/5..png"><img
class="size-full wp-image-1102 aligncenter" title="5." src="http://www.php2s.com/wp-content/uploads/2012/06/5..png" alt="5. Download and Install BackTrack 5 R2 GNOME Screenshots" width="528" height="277" /></a></p><p>This just shows what the desktop looks like.</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/6.BTGnomeBoot4-600x450.png"><img
class="size-full wp-image-1101 aligncenter" title="6.BTGnomeBoot4-600x450" src="http://www.php2s.com/wp-content/uploads/2012/06/6.BTGnomeBoot4-600x450.png" alt="6.BTGnomeBoot4 600x450 Download and Install BackTrack 5 R2 GNOME Screenshots"  /></a></p><p>@Source<br
/> <a
href="http://www.backtrack-linux.org/downloads">BackTrack Linux</a><br
/> <a
href="http://www.linuxbsdos.com">LinuxDocs.com</a></p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html" rel="bookmark" class="crp_title">How to install Solaris 10 Step by Step Guide Screenshots</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-gnome-shell-in-ubuntu-11-10-oneric-ocelot.html" rel="bookmark" class="crp_title">How to Install Gnome Shell in Ubuntu 11.10 Oneric Ocelot</a></li><li><a
href="http://www.php2s.com/linux/how-to-get-rid-of-enter-password-to-unlock-your-login-keyring-prompt-on-ubuntu.html" rel="bookmark" class="crp_title">How to get rid of “Enter password to unlock your login keyring” prompt on Ubuntu</a></li><li><a
href="http://www.php2s.com/linux/download-ubuntu-11-10-oneiric-ocelot-cd-iso-dvd-images-for-3264-bit.html" rel="bookmark" class="crp_title">Download Ubuntu 11.10 (Oneiric Ocelot) CD ISO / DVD Images for 32/64 bit</a></li><li><a
href="http://www.php2s.com/linux/download-linux-mint-12-lisa-gnome-3-mgse-cd-dvd-img-iso.html" rel="bookmark" class="crp_title">Download Linux Mint 12 (Lisa) GNOME 3, MGSE CD/DVD</a></li><li><a
href="http://www.php2s.com/linux/howto-downloa-install-centos-6-2-step-by-step-guide-screenshots.html" rel="bookmark" class="crp_title">How to install CentOS 6.2 Step by step guide Screenshots</a></li><li><a
href="http://www.php2s.com/linux/installing-centos-6-2-on-vmware-fusion-step-by-step-guide.html" rel="bookmark" class="crp_title">Installing CentOS 6.2 on VMWare Fusion Step by Step Guide</a></li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" rel="bookmark" class="crp_title">How to configure network using CLI ang GUI in Ubuntu 12.04</a></li><li><a
href="http://www.php2s.com/linux/how-to-upgrade-to-ubuntu-12-04-for-desktops-servers-running-10-04-or-11-10.html" rel="bookmark" class="crp_title">How To Upgrade to Ubuntu 12.04 for Desktops &#038; Servers running 10.04 or 11.10</a></li><li><a
href="http://www.php2s.com/linux/how-to-make-a-usb-boot-cd-for-ubuntu-11-10.html" rel="bookmark" class="crp_title">How to make a USB Boot CD for Ubuntu 11.10</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html" title="backtrack 5">backtrack 5</a> (35)</li><li><a
href="http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html" title="backtrack 5 r2">backtrack 5 r2</a> (18)</li><li><a
href="http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html" title="backtrack 5 rc2">backtrack 5 rc2</a> (17)</li><li><a
href="http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html" title="backtrack-5-r2 gnome-screenshots html">backtrack-5-r2 gnome-screenshots html</a> (16)</li><li><a
href="http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html" title="download and install backtrack 5 r2 gnome screenshots">download and install backtrack 5 r2 gnome screenshots</a> (15)</li><li><a
href="http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html" title="backtrack 5 RC2 download">backtrack 5 RC2 download</a> (12)</li><li><a
href="http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html" title="backtrack RC2 Gnome">backtrack RC2 Gnome</a> (10)</li><li><a
href="http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html" title="download backtrack 5 r2 gnome">download backtrack 5 r2 gnome</a> (10)</li><li><a
href="http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html" title="BackTrack 5 R2 Kde booting">BackTrack 5 R2 Kde booting</a> (9)</li><li><a
href="http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html" title="Backtrack">Backtrack</a> (8)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=63SX96WZvmo:9LbPIjaaHLw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=63SX96WZvmo:9LbPIjaaHLw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=63SX96WZvmo:9LbPIjaaHLw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=63SX96WZvmo:9LbPIjaaHLw:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/63SX96WZvmo" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=download-and-install-backtrack-5-r2-gnome-screenshots</feedburner:origLink></item> <item><title>How to install Lighttpd with PHP5 and MySQL on Ubuntu 12.04</title><link>http://feedproxy.google.com/~r/Php2s/~3/Vn27VMXqudc/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html</link> <comments>http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html#comments</comments> <pubDate>Mon, 04 Jun 2012 03:42:00 +0000</pubDate> <dc:creator>Linus</dc:creator> <category><![CDATA[Open Source]]></category> <category><![CDATA[lighttpd]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[php]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[web server]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1081</guid> <description><![CDATA[Lighttpd web server is an excellent open-source tool designed for speed with all the essential functions of a web server. Lighttpd is a secure, fast, standards-compliant and very flexible web server designed for high-performance environments. It has a very low memory footprint compared to other webservers and takes care of cpu-load. Its advanced feature-set (FastCGI, [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/lighttpd-logo.png"><img
class="alignleft  wp-image-1082" title="lighttpd-logo" src="http://www.php2s.com/wp-content/uploads/2012/06/lighttpd-logo.png" alt="lighttpd logo How to install Lighttpd with PHP5 and MySQL on Ubuntu 12.04" width="174" height="167" /></a><a
href="http://www.lighttpd.net/">Lighttpd</a> web server is an excellent open-source tool designed for speed with all the essential functions of a web server. Lighttpd is a secure, fast, standards-compliant and very flexible web server designed for high-performance environments. It has a very low memory footprint compared to other webservers and takes care of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) make lighttpd the perfect webserver-software for every server that suffers load problems. Lighttpd is more configurable than tHttpd and significantly more efficient than the resource hungry Apache web server, running faster on the same hardware while using less than 1/10th the resources. This tutorial shows how to install Lighttpd on an Ubuntu 12.04 server with PHP5 support (through PHP-FPM) and MySQL support.</p><p><span
id="more-1081"></span></p><p>In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.</p><p>I&#8217;m running all the steps in this tutorial with root privileges, so make sure you&#8217;re logged in as root:</p><blockquote><p>sudo su</p></blockquote><h3><strong>Installing MySQL 5</strong></h3><p>First we install MySQL 5 like this:</p><blockquote><p>apt-get install mysql-server mysql-client</p></blockquote><p>You will be asked to provide a password for the MySQL root user &#8211; this password is valid for the user <span
style="color: #ff6600;">root@localhost</span> as well as <span
style="color: #ff6600;">root@server1.example.com</span>, so we don&#8217;t have to specify a MySQL root password manually later on:</p><blockquote><p><code>New password for the MySQL "root" user:<br
/> Repeat password for the MySQL "root" user: </code></p></blockquote><h3><strong>Installing Lighttpd</strong></h3><p>Lighttpd is available as an Ubuntu package, therefore we can install it like this:</p><blockquote><p>apt-get install lighttpd</p></blockquote><p>Now direct your browser to <span
style="color: #ff6600;">http://192.168.0.100/index.lighttpd.html</span>, and you should see the Lighttpd placeholder page:</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/lighttpd-page.png"><img
class="aligncenter size-full wp-image-1083" title="lighttpd-page" src="http://www.php2s.com/wp-content/uploads/2012/06/lighttpd-page.png" alt="lighttpd page How to install Lighttpd with PHP5 and MySQL on Ubuntu 12.04"  /></a></p><p>Lighttpd&#8217;s default document root is<span
style="color: #ff6600;"> /var/www</span> on Ubuntu, and the configuration file is<span
style="color: #ff6600;"> /etc/lighttpd/lighttpd.conf</span>. Additional configurations are stored in files in the <span
style="color: #ff6600;">/etc/lighttpd/</span>conf-available directory &#8211; these configurations can be enabled with the<span
style="color: #ff6600;"> lighttpd-enable-mod</span> command which creates a symlink from the <span
style="color: #ff6600;">/etc/lighttpd/conf-enabled</span> directory to the appropriate configuration file in <span
style="color: #ff6600;">/etc/lighttpd/conf-available</span>. You can disable configurations with the lighttpd-disable-mod command.</p><h3><strong>Installing PHP5</strong></h3><p>We can make PHP5 work in Lighttpd through PHP-FPM which we install like this:</p><blockquote><p>apt-get install php5-fpm php5</p></blockquote><p>PHP-FPM is a daemon process (with the init script <span
style="color: #ff6600;">/etc/init.d/php5-fpm</span>) that runs a FastCGI server on port 9000.</p><h3><strong>Configuring Lighttpd And PHP5</strong></h3><p>To enable PHP5 in Lighttpd, we must modify <span
style="color: #ff6600;">/etc/php5/fpm/php.ini</span> and uncomment the line cgi.fix_pathinfo=1:</p><blockquote><p>vi /etc/php5/fpm/php.ini</p></blockquote><blockquote><p>[...]<br
/> ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP&#8217;s<br
/> ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok<br
/> ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting<br
/> ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting<br
/> ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts<br
/> ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.<br
/> ; http://php.net/cgi.fix-pathinfo<br
/> cgi.fix_pathinfo=1<br
/> [...]</p></blockquote><p>The Lighttpd configuration file for PHP <span
style="color: #ff6600;">/etc/lighttpd/conf-available/15-fastcgi-php.conf</span> is suitable for use with spawn-fcgi, however, we want to use PHP-FPM, therefore we create a backup of the file (named 15-fastcgi-php-spawnfcgi.conf) and modify 15-fastcgi-php.conf as follows:</p><blockquote><p>cd /etc/lighttpd/conf-available/<br
/> cp 15-fastcgi-php.conf 15-fastcgi-php-spawnfcgi.conf<br
/> vi 15-fastcgi-php.conf</p></blockquote><blockquote><p># /usr/share/doc/lighttpd-doc/fastcgi.txt.gz<br
/> # http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions#mod_fastcgi-fastcgi</p><p>## Start an FastCGI server for php (needs the php5-cgi package)<br
/> fastcgi.server += ( &#8220;.php&#8221; =&gt;<br
/> ((<br
/> &#8220;host&#8221; =&gt; &#8220;127.0.0.1&#8243;,<br
/> &#8220;port&#8221; =&gt; &#8220;9000&#8243;,<br
/> &#8220;broken-scriptfilename&#8221; =&gt; &#8220;enable&#8221;<br
/> ))<br
/> )</p></blockquote><p>To enable the fastcgi configuration, run the following commands:</p><blockquote><p>lighttpd-enable-mod fastcgi<br
/> lighttpd-enable-mod fastcgi-php</p></blockquote><p>This creates the symlinks <span
style="color: #ff6600;">/etc/lighttpd/conf-enabled</span>/10-fastcgi.conf which points to <span
style="color: #ff6600;">/etc/lighttpd/conf-available/10-fastcgi.conf</span> and<span
style="color: #ff6600;"> /etc/lighttpd/conf-enabled/15-fastcgi-php.conf</span> which points to<span
style="color: #ff6600;"> /etc/lighttpd/conf-available/15-fastcgi-php.conf</span>:</p><blockquote><p>ls -l /etc/lighttpd/conf-enabled</p><p>root@server1:/etc/lighttpd/conf-available# ls -l /etc/lighttpd/conf-enabled<br
/> total 0<br
/> lrwxrwxrwx 1 root root 33 May 15 19:50 10-fastcgi.conf -&gt; ../conf-available/10-fastcgi.conf<br
/> lrwxrwxrwx 1 root root 41 May 15 19:50 15-fastcgi-php.conf -&gt; ../conf-available/15-fastcgi-php.conf<br
/> root@server1:/etc/lighttpd/conf-available#</p></blockquote><p>Then we reload Lighttpd:</p><blockquote><p>/etc/init.d/lighttpd force-reload</p></blockquote><p><strong>Testing PHP5 / Getting Details About Your PHP5 Installation</strong><br
/> The document root of the default web site is <span
style="color: #ff6600;">/var/www</span>. We will now create a small PHP file (info.php) in that directory and call it in a browser. The file will display lots of useful details about our PHP installation, such as the installed PHP version.</p><blockquote><p>vi /var/www/info.php</p></blockquote><p>Now we call that file in a browser (e.g. <span
style="color: #ff6600;">http://192.168.0.100/info.php</span>):</p><p>If you get the PHP info page, PHP5 is working, and it&#8217;s working through FPM/FastCGI, as shown in the Server API line. If you scroll further down, you will see all modules that are already enabled in PHP5. MySQL is not listed there which means we don&#8217;t have MySQL support in PHP5 yet.</p><h3><strong>Getting MySQL Support In PHP5</strong></h3><p>To get MySQL support in PHP, we can install the php5-mysql package. It&#8217;s a good idea to install some other PHP5 modules as well as you might need them for your applications. You can search for available PHP5 modules like this:</p><blockquote><p>apt-cache search php5</p></blockquote><p>Pick the ones you need and install them like this:</p><blockquote><p>apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl</p></blockquote><p>Xcache is a free and open PHP opcode cacher for caching and optimizing PHP intermediate code. It&#8217;s similar to other PHP opcode cachers, such as eAccelerator and APC. It is strongly recommended to have one of these installed to speed up your PHP page.</p><p>Xcache can be installed as follows:</p><blockquote><p>apt-get install php5-xcache</p></blockquote><p>Now reload PHP-FPM:</p><blockquote><p>/etc/init.d/php5-fpm reload</p></blockquote><p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/lighttpd-mysql.png"><img
class="wp-image-1088 aligncenter" title="lighttpd-mysql" src="http://www.php2s.com/wp-content/uploads/2012/06/lighttpd-mysql.png" alt="lighttpd mysql How to install Lighttpd with PHP5 and MySQL on Ubuntu 12.04" width="560" height="406" /></a></p><h3><strong>Installing phpMyAdmin</strong></h3><p><a
href="http://www.phpmyadmin.net/">phpMyAdmin </a>is a web interface through which you can manage your MySQL databases. It&#8217;s a good idea to install it:</p><blockquote><p>apt-get install phpmyadmin</p></blockquote><p>You will see the following questions:</p><blockquote><p><code>Web server to reconfigure automatically: &lt;-- lighttpd<br
/> Configure database for phpmyadmin with dbconfig-common? &lt;-- No</code></p></blockquote><p>Afterwards, you can access phpMyAdmin under <span
style="color: #ff6600;">http://192.168.0.100/phpmyadmin/:</span><br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/06/lighttpd-phpmyadmin.png"><img
class="wp-image-1089 aligncenter" title="lighttpd-phpmyadmin" src="http://www.php2s.com/wp-content/uploads/2012/06/lighttpd-phpmyadmin.png" alt="lighttpd phpmyadmin How to install Lighttpd with PHP5 and MySQL on Ubuntu 12.04" width="560" height="406" /></a></p><p><strong>Making PHP-FPM Use A Unix Socket</strong></p><p>By default PHP-FPM is listening on port 9000 on 127.0.0.1. It is also possible to make PHP-FPM use a Unix socket which avoids the TCP overhead. To do this, open /etc/php5/fpm/pool.d/www.conf&#8230;</p><blockquote><p>vi /etc/php5/fpm/pool.d/www.conf</p></blockquote><p>&#8230; and make the listen line look as follows:</p><blockquote><p>[...]<br
/> ;listen = 127.0.0.1:9000<br
/> listen = /tmp/php5-fpm.sock<br
/> [...]</p></blockquote><p>Then reload PHP-FPM:</p><blockquote><p>/etc/init.d/php5-fpm reload</p></blockquote><p>Next open Lighttpd&#8217;s PHP configuration file /etc/lighttpd/conf-available/15-fastcgi-php.conf and replace the host and port lines with &#8220;socket&#8221; =&gt; &#8220;/tmp/php5-fpm.sock&#8221;:</p><blockquote><p>vi /etc/lighttpd/conf-available/15-fastcgi-php.conf</p></blockquote><p># /usr/share/doc/lighttpd-doc/fastcgi.txt.gz<br
/> # http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions#mod_fastcgi-fastcgi</p><blockquote><p><code>## Start an FastCGI server for php (needs the php5-cgi package)<br
/> fastcgi.server += ( ".php" =&gt;<br
/> ((<br
/> "socket" =&gt; "/tmp/php5-fpm.sock",<br
/> "broken-scriptfilename" =&gt; "enable"<br
/> ))<br
/> )</code></p></blockquote><p>Finally reload Lighttpd:</p><blockquote><p>/etc/init.d/lighttpd force-reload</p></blockquote><p><strong>Stopping, Starting, and Restarting Lighttpd</strong></p><p>As each user has their own lighttpd server, they are also allowed to stop, start, and restart it.</p><p>This can be accomplished from SSH with the following commands:</p><blockquote><p>sudo /etc/init.d/lighttpd stop<br
/> sudo /etc/init.d/lighttpd start<br
/> sudo /etc/init.d/lighttpd restart</p></blockquote><h3>Useful Links</h3><ul><li>Lighttpd: <a
href="http://www.lighttpd.net/" target="_blank">http://www.lighttpd.net/</a></li><li>PHP: <a
href="http://www.php.net/" target="_blank">http://www.php.net/</a></li><li>PHP-FPM: <a
href="http://php-fpm.org/" target="_blank">http://php-fpm.org/ </a></li><li>MySQL: <a
href="http://www.mysql.com/" target="_blank">http://www.mysql.com/</a></li><li>Ubuntu: <a
href="http://www.ubuntu.com/" target="_blank">http://www.ubuntu.com/</a></li><li>phpMyAdmin: <a
href="http://www.phpmyadmin.net/" target="_blank">http://www.phpmyadmin.net/</a></li></ul><p>Source@<br
/> <a
href="www.howtoforge.com">Howtoforge</a><br
/> <a
href="http://wiki.dreamhost.com/Lighttpd">wiki.dreamhost.com</a></p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/installing-lamp-linux-apache-mysql-php-on-ubuntu-11-10.html" rel="bookmark" class="crp_title">Installing LAMP (Linux, Apache Mysql PHP) on Ubuntu 11.10</a></li><li><a
href="http://www.php2s.com/linux/installing-lamp-server-on-debian-squeeze.html" rel="bookmark" class="crp_title">Installing LAMP Server on Debian Squeeze</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-the-phpbb-forum-on-debian-squeezesid-linux.html" rel="bookmark" class="crp_title">How to install the phpbb forum on Debian (Squeeze/Sid) Linux</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-turn-on-telnet-service-on-rhel-febora-centos-ubuntu-freebsd-debian.html" rel="bookmark" class="crp_title">how to install &#038; turn on telnet service on RHEL, Fedora, CentOS, Ubuntu, FreeBSD, Debian</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-configure-vsftpd-on-rhel-centos-ubuntu-fedora-debian.html" rel="bookmark" class="crp_title">How to Install &#038; Configure Vsftpd on RHEL/CentOS/Ubuntu/Fedora</a></li><li><a
href="http://www.php2s.com/programming/php-programming/how-to-run-mutiple-localhosts-using-wamp-windows-apache-mysql-php.html" rel="bookmark" class="crp_title">How to Run Mutiple Localhosts Using WAMP (Windows Apache MySQL PHP)</a></li><li><a
href="http://www.php2s.com/linux/installing-monit-and-restart-apache-automatically-on-centos.html" rel="bookmark" class="crp_title">Installing Monit and Restart Apache Automatically on CentOS</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-ntp-daemon-on-centos-rhel-fedora.html" rel="bookmark" class="crp_title">Install and Configure NTP on CentOS/ RHEL/ Fedora</a></li><li><a
href="http://www.php2s.com/linux/how-to-disable-ipv6-on-gnu-centos-fedora-debian-redhat.html" rel="bookmark" class="crp_title">How to disable Ipv6 on GNU / CentOS, Fedora, Debian, Redhat</a></li><li><a
href="http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html" rel="bookmark" class="crp_title">How to skip mysql duplicate replication error/counter</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html" title="install lighttpd ubuntu 12 04">install lighttpd ubuntu 12 04</a> (13)</li><li><a
href="http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html" title="lighttpd ubuntu 12 04">lighttpd ubuntu 12 04</a> (10)</li><li><a
href="http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html" title="lighttpd php mysql ubuntu 12 04">lighttpd php mysql ubuntu 12 04</a> (7)</li><li><a
href="http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html" title="установка lighttpd ubuntu 12 04">установка lighttpd ubuntu 12 04</a> (6)</li><li><a
href="http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html" title="lighttpd with php5 and mysql for ubuntu free download">lighttpd with php5 and mysql for ubuntu free download</a> (6)</li><li><a
href="http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html" title="install lighttpd on ubuntu 12 04">install lighttpd on ubuntu 12 04</a> (3)</li><li><a
href="http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html" title="ubuntu 12 04 lighttpd">ubuntu 12 04 lighttpd</a> (3)</li><li><a
href="http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html" title="llmp ubuntu server 12 04 lighttpd">llmp ubuntu server 12 04 lighttpd</a> (3)</li><li><a
href="http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html" title="disable lamp and enable lighttpd">disable lamp and enable lighttpd</a> (3)</li><li><a
href="http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html" title="Lighttpd SERVER">Lighttpd SERVER</a> (3)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=Vn27VMXqudc:6Dh6gqvxG8E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=Vn27VMXqudc:6Dh6gqvxG8E:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=Vn27VMXqudc:6Dh6gqvxG8E:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=Vn27VMXqudc:6Dh6gqvxG8E:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/Vn27VMXqudc" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/open-source/how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-install-lighttpd-with-php5-and-mysql-on-ubuntu-12-04</feedburner:origLink></item> <item><title>How to skip mysql duplicate replication error/counter</title><link>http://feedproxy.google.com/~r/Php2s/~3/9Npm5XgEA7I/how-to-skip-mysql-duplicate-replication-error-counter.html</link> <comments>http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html#comments</comments> <pubDate>Sat, 02 Jun 2012 13:33:20 +0000</pubDate> <dc:creator>Sheikh Khalid</dc:creator> <category><![CDATA[Database]]></category> <category><![CDATA[database]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[MySQL Database]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1072</guid> <description><![CDATA[In this example, i will show how to skip MySQL duplicate replication error/counter. MySQL replication stops if there is an error running a query on the slave. The reason is so you can resolve the problem, thus keeping the data consistent with the master. You can skip such errors, even if this is not recommended, [...]]]></description> <content:encoded><![CDATA[<p>In this example, i will show how to skip MySQL duplicate replication error/counter. MySQL replication stops if there is an error running a query on the slave. The reason is so you can resolve the problem, thus keeping the data consistent with the master.</p><p>You can skip such errors, even if this is not recommended, as long as you know really well what are those queries and why they are failing, etc.</p><p>A simple way out of this is to run the missing DDLs on the slave and push the counter by a step. This is not recommended as this might cause data inconsistency.</p><p><span
id="more-1072"></span></p><p><strong>Skip one duplicate error</strong><br
/> For example you can <strong>skip just one query</strong> that is hanging the slave using:</p><blockquote><p>mysql&gt;SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1; START SLAVE;</p></blockquote><p>There might be cases where you will want to skip more queries.</p><p><strong>Skip all duplicate errors</strong><br
/> Edit <span
style="color: #ff6600;"><strong>my.cnf</strong></span> and add:</p><blockquote><p>slave-skip-errors = 1062</p></blockquote><p>As shown above in my example <span
style="color: #ff6600;"><strong>1062</strong></span> is the error you would want to skip.</p><p>You can skip also other type of errors, but again don’t do this unless you understand very well what those queries are and what impact they have on your data:</p><blockquote><p>slave-skip-errors=[err_code1,err_code2,...|all]</p></blockquote><p>You can skip all types of errors using the same method abobe, seperating each error code you wish to skip with a comma.</p><p><a
href="http://dev.mysql.com/doc/refman/5.6/en/error-messages-server.html">http://dev.mysql.com/doc/refman/5.6/en/error-messages-server.html</a></p><p>Hope the example would be helpful.</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/database/unique-text-in-mysql-database-text-field.html" rel="bookmark" class="crp_title">Unique Text in MySQL Database Text Field</a></li><li><a
href="http://www.php2s.com/programming/php-programming/cookie-based-login-form-and-get-last-login-time.html" rel="bookmark" class="crp_title">PHP Code: Cookie based login form and get last login time</a></li><li><a
href="http://www.php2s.com/database/how-to-secure-mysql-database-server.html" rel="bookmark" class="crp_title">How to Secure MySQL Database Server to Prevent Anonymous Access</a></li><li><a
href="http://www.php2s.com/linux/how-to-fix-linux-error-%e2%80%9ccan%e2%80%99t-find-ext2-file-system%e2%80%9d.html" rel="bookmark" class="crp_title">How To Fix Linux Error- “can’t Find Ext2 File System?”</a></li><li><a
href="http://www.php2s.com/linux/installing-monit-and-restart-apache-automatically-on-centos.html" rel="bookmark" class="crp_title">Installing Monit and Restart Apache Automatically on CentOS</a></li><li><a
href="http://www.php2s.com/programming/installing-wordpress-joomla-drupal-on-centos-6-2-netinstall.html" rel="bookmark" class="crp_title">Installing WordPress/Joomla/Drupal on CentOS 6.2 (netinstall)</a></li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-interface-on-fedora-16-using-networkmanager.html" rel="bookmark" class="crp_title">How to configure network interface on Fedora 16 using NetworkManager</a></li><li><a
href="http://www.php2s.com/linux/how-to-find-lost-file-in-linux-using-find-command.html" rel="bookmark" class="crp_title">How to find lost file in Linux using &#8216;find&#8217; Command</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-a-perl-module-in-linux-without-root-permission.html" rel="bookmark" class="crp_title">How to Install A Perl Module In Linux Without Root Permission</a></li><li><a
href="http://www.php2s.com/programming/php-programming/how-to-resolve-fatal-error-allowed-memory-size-of-33554432-bytes-exhausted-tried-to-allocate-30720-bytes.html" rel="bookmark" class="crp_title">How to Resolve Fatal Error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes)</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html" title="mysql skip counter">mysql skip counter</a> (3)</li><li><a
href="http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html" title="mysql replication skip counter">mysql replication skip counter</a> (2)</li><li><a
href="http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html" title="mysql skip-count=0">mysql skip-count=0</a> (1)</li><li><a
href="http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html" title="mysql slave counter script if error">mysql slave counter script if error</a> (1)</li><li><a
href="http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html" title="perl script to skip slave error">perl script to skip slave error</a> (1)</li><li><a
href="http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html" title="php: mysql skip counter replication script">php: mysql skip counter replication script</a> (1)</li><li><a
href="http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html" title="python mysqldb 1062 ignore error">python mysqldb 1062 ignore error</a> (1)</li><li><a
href="http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html" title="replication error skip">replication error skip</a> (1)</li><li><a
href="http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html" title="set global skip counter">set global skip counter</a> (1)</li><li><a
href="http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html" title="set global skip counter consistent">set global skip counter consistent</a> (1)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=9Npm5XgEA7I:C9C2UfJfM6g:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=9Npm5XgEA7I:C9C2UfJfM6g:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=9Npm5XgEA7I:C9C2UfJfM6g:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=9Npm5XgEA7I:C9C2UfJfM6g:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/9Npm5XgEA7I" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/database/how-to-skip-mysql-duplicate-replication-error-counter.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-skip-mysql-duplicate-replication-error-counter</feedburner:origLink></item> <item><title>Install and Configure Proftpd Server on RHEL / Fedora / CentOS 6.2</title><link>http://feedproxy.google.com/~r/Php2s/~3/cN1p_X7lm70/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html</link> <comments>http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html#comments</comments> <pubDate>Sat, 02 Jun 2012 05:05:21 +0000</pubDate> <dc:creator>Linus</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Centos]]></category> <category><![CDATA[Fedora]]></category> <category><![CDATA[ProFTPd]]></category> <category><![CDATA[RHEL]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1056</guid> <description><![CDATA[This tutorial explains how to install and configure Proftpd Server on CentOS 6.2, Fedora Linux and RHEL clones. ProFTPdProFTPd is one of the most popular, secure and reliable FTP server for the Linux operating system. Proftpd uses a single configuration file and it’s very simple to set up. Its configuration syntax is very similar to [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/06/proftpd-logo.png"><img
class="alignleft size-full wp-image-1066" title="proftpd-logo" src="http://www.php2s.com/wp-content/uploads/2012/06/proftpd-logo.png" alt="proftpd logo Install and Configure Proftpd Server on RHEL / Fedora / CentOS 6.2" width="215" height="92" /></a>This tutorial explains how to install and configure Proftpd Server on CentOS 6.2, Fedora Linux and RHEL clones. ProFTPdProFTPd is one of the most popular, secure and reliable FTP server for the Linux operating system. Proftpd uses a single configuration file and it’s very simple to set up. Its configuration syntax is very similar to apache web server.</p><p><span
id="more-1056"></span></p><p>It offers several functionalities such as:</p><ul><li>multiple virtual server</li><li>anonymous</li><li>authenticated access</li><li>chroot jail support</li><li>SSL/TLS encryption</li><li>RADIUS, LDAP and SQL support etc</li></ul><p>Before installation make sure gcc package have installed, for installation follow this posting.</p><p>To install Gcc package</p><blockquote><p>yum install gcc</p></blockquote><p>to update</p><blockquote><p>yum update gcc</p></blockquote><h2><span
style="color: #3366ff;">Download &amp; Install ProFTPD Server</span></h2><blockquote><p>[root@php2s ~]# wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.4a.tar.gz</p></blockquote><blockquote><p>[root@php2s ~]# yum install proftpd -y</p></blockquote><p><strong>Start ProFTPD when the system reboot:</strong></p><blockquote><p>[root@php2s ~]# chkconfig &#8211;level 3 proftpd on</p></blockquote><p><strong>To Start, Stop &amp; Restart proftpd ftp service, enter:</strong></p><blockquote><p>[root@php2s ~]# service proftpd start<br
/> [root@php2s ~]# service proftpd stop<br
/> [root@php2s ~]# service proftpd restart</p></blockquote><p><strong>To reload the configuration file, enter:</strong></p><blockquote><p>[root@php2s ~]# service proftpd reload</p></blockquote><h2><span
style="color: #3366ff;">Configuring Proftpd</span></h2><p><span
style="color: #ff6600;">/etc/proftpd.conf</span> &#8211; Proftpd configuration file<br
/> The default configuration file is located at /etc/proftpd.conf or /usr/local/etc/proftpd.conf, depending on your installation. To edit the configuration file, enter:</p><blockquote><p>[root@php2s ~]# nano /etc/proftpd.conf</p></blockquote><p>This is where you specify access types and read/write permissions, and lots of other neat things. In this section, you’ll walk you through a sample config file step by step and explain how we are setting the server up.</p><blockquote><p>ServerName “Php2s.com”<br
/> ServerType standalone<br
/> Port 21</p></blockquote><p><strong>ServerName –</strong> Sets the name of the server. This is what will be displayed to the connecting users.</p><p><strong>ServerType –</strong> Sets the server to standalone because that is the type of server we are running. If you do not understand this, please refer back to the “Server Type” section of this document. The alternative to “standalone” is “inetd”.</p><p><strong>Port –</strong> Determines which port on which to accept ftp connections. This is best left at it’s default of 21 unless you have a good reason to change it.</p><blockquote><p>AuthPAM on<br
/> Umask 022</p><p>MaxInstances 30</p><p>User ftp<br
/> Group ftp</p><p>DefaultRoot ~</p></blockquote><p><strong>AuthPAM –</strong> Used to set whetheror not users with accounts on the host machine can ftp in to their home directories. This is on by default so if you want to disable this type of access, you must specifically do so.</p><p><strong>Umask –</strong> This sets the default permissions of any file uploaded through the ftp server. More info can be found in the online User’s Guide.</p><p><strong>MaxInstances –</strong> The maximum number of simultaneous connections you want to allow.</p><p><strong>User/Group –</strong> These two lines set which user and group you want to run the server as.</p><p><strong>DefaultRoot –</strong> Note this for security reasons. This line tells the server to force any user who has logged in to see their home directory as the root directory. This will stop people from having access to the entire file system.</p><blockquote><p>&nbsp;</p><p>&lt;Directory /*&gt;<br
/> AllowOverwrite on<br
/> &lt;/Directory&gt;</p><p>&lt;Limit LOGIN&gt;<br
/> Order allow,deny<br
/> Allow from .clarkson.edu<br
/> Deny from all<br
/> &lt;/Limit&gt;</p><p>&lt;Limit WRITE&gt;<br
/> Allow from all</p><p>&lt;/Limit&gt;</p></blockquote><p><strong>Directory /*</strong></p><p>The Directory directive specifies that the options within it are to be applied to the aforementioned directory. In this case, we are looking at /* which encompasses the entire file system. Inside this directive, we have AllowOverwrite set to “on”. This will allow all uses the overwrite files in all directories that they have WRITE permission.</p><p><strong>Limit LOGIN</strong></p><p>Order allow,deny states the precedence of the allow and deny directives. We have set up this example server to only allow connections from someone comming from the domain .clarkson.edu. We then Deny access to everyone. You may be wondering how people at Clarkson can access this server if we have denied access to all. Well, because allow is of higher precedence than deny, when someone tried to connect from clarkson they are allowed because they fit the “Allow from .clarkson.edu” rule. However, when someone comes from .aol.com they will not fit the Allow rule, and will then be checked against the deny rule and since it is set to “Deny from all” the AOL user will be denied.</p><p><strong>Limit WRITE</strong></p><p>This directive, as we’ve set it up, allows all users of ther server to write. This is known as a global directive because it is not found inside another directive such as a user directive or a directory directive. This means that it applies to ALL users who do not have their own Limit WRITE directive. If you do not set this globaly, your users will not be able to do anything but read files on your server.</p><blockquote><p>&lt;Anonymous /home/ftp&gt;<br
/> User ftp<br
/> Group ftp<br
/> UserAlias anonymous ftp<br
/> MaxClients 10<br
/> RequireValidShell no<br
/> AccessGrantMsg “Welcome to my FTP Server!”</p><p>&lt;Limit WRITE&gt;<br
/> Deny from all<br
/> &lt;/Limit&gt;</p><p>&lt;/Anonymous&gt;</p></blockquote><p><strong>Anonymous:</strong></p><p>This directive sets up an anonymous login and sets the default directory for anonymous login to be /home/ftp/. The User/Group directives here just specify who you want an anonymous user to log in as. root is OBVIOUSLY a horrible choice for this one!! UserAlias just says “Treat the user called ftp as if he were the user anonymous”. MaxClients states that only 10 anonymous users are allowed to connect at a time. RequireValidShell is off. This is so that anonymous users will not need a login name and password to connect. AccessGrantMsg just shows the anonymous users a message after they have logged in. You can also point this to a file by simply using a filename with (no quotes) instead of a message.</p><p>The Limit directive here prevents ANY anonymous user from writting to anything. This ensures that they cannot mess anything up.</p><p>Hope this example would be helpful.</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/how-to-install-configure-vsftpd-on-rhel-centos-ubuntu-fedora-debian.html" rel="bookmark" class="crp_title">How to Install &#038; Configure Vsftpd on RHEL/CentOS/Ubuntu/Fedora</a></li><li><a
href="http://www.php2s.com/database/how-to-secure-mysql-database-server.html" rel="bookmark" class="crp_title">How to Secure MySQL Database Server to Prevent Anonymous Access</a></li><li><a
href="http://www.php2s.com/linux/how-to-restrict-web-access-by-time-using-squid-proxy-server-on-centos-6-2-rhel-6.html" rel="bookmark" class="crp_title">How to Restrict Web Access By Time Using Squid Proxy Server on CentOS 6.2/ RHEL 6</a></li><li><a
href="http://www.php2s.com/linux/how-to-change-permissions-in-ubuntu-11-10-oneiric-ocelot-with-the-chmod-command.html" rel="bookmark" class="crp_title">How to change permissions in Ubuntu 11.10 Oneiric Ocelot with the chmod command</a></li><li><a
href="http://www.php2s.com/programming/web-programming/fixing-apache-13permission-denied-access-to-403-forbidden.html" rel="bookmark" class="crp_title">Fixing Apache (13)Permission denied: access to / 403 Forbidden</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-secure-shell-openssh-server-on-ubuntu-12-04.html" rel="bookmark" class="crp_title">How to Install Secure Shell/ OpenSSH Server on Ubuntu 12.04</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-turn-on-telnet-service-on-rhel-febora-centos-ubuntu-freebsd-debian.html" rel="bookmark" class="crp_title">how to install &#038; turn on telnet service on RHEL, Fedora, CentOS, Ubuntu, FreeBSD, Debian</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-ntp-daemon-on-centos-rhel-fedora.html" rel="bookmark" class="crp_title">Install and Configure NTP on CentOS/ RHEL/ Fedora</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-a-perl-module-in-linux-without-root-permission.html" rel="bookmark" class="crp_title">How to Install A Perl Module In Linux Without Root Permission</a></li><li><a
href="http://www.php2s.com/linux/how-to-change-ownership-with-the-chown-command-on-ubuntu-11-10-oneiric-ocelot.html" rel="bookmark" class="crp_title">How to Change Ownership With The chown Command On Ubuntu 11.10 Oneiric Ocelot</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html" title="proftpd centos 6 2">proftpd centos 6 2</a> (34)</li><li><a
href="http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html" title="centos 6 2 proftpd">centos 6 2 proftpd</a> (17)</li><li><a
href="http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html" title="centos 6 proftpd">centos 6 proftpd</a> (17)</li><li><a
href="http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html" title="proftpd centos 6">proftpd centos 6</a> (14)</li><li><a
href="http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html" title="centos 6 proftpd configuration">centos 6 proftpd configuration</a> (11)</li><li><a
href="http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html" title="proftpd rpm centos 6 2">proftpd rpm centos 6 2</a> (10)</li><li><a
href="http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html" title="centos 6 howto proftpd">centos 6 howto proftpd</a> (10)</li><li><a
href="http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html" title="install proftpd centos 6 2">install proftpd centos 6 2</a> (9)</li><li><a
href="http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html" title="proftpd on centos 6 2">proftpd on centos 6 2</a> (9)</li><li><a
href="http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html" title="configure proftpd centos 6">configure proftpd centos 6</a> (9)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=cN1p_X7lm70:LEETPFfakfI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=cN1p_X7lm70:LEETPFfakfI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=cN1p_X7lm70:LEETPFfakfI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=cN1p_X7lm70:LEETPFfakfI:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/cN1p_X7lm70" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/linux/install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=install-and-configure-proftpd-server-on-rhel-fedora-centos-6-2</feedburner:origLink></item> <item><title>Install Samba &amp; Configure Network Share on Ubuntu 12.04 (GUI Mode)</title><link>http://feedproxy.google.com/~r/Php2s/~3/uPMLOFEXwN8/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html</link> <comments>http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html#comments</comments> <pubDate>Thu, 24 May 2012 10:41:33 +0000</pubDate> <dc:creator>Sheikh Khalid</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Samba]]></category> <category><![CDATA[Ubuntu]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1024</guid> <description><![CDATA[In this example, I will show how to install samba and configure network share on Ubuntu 12.04 using GUI(graphical user interface) mode. Samba is a graphical user interface to help with configuration and management, there are several GUI interfaces to Samba available, for me the most simple and powerful one of these tools is samba [...]]]></description> <content:encoded><![CDATA[<p>In this example, I will show how to install samba and configure network share on Ubuntu 12.04 using GUI(graphical user interface) mode. Samba is a graphical user interface to help with configuration and management, there are several GUI interfaces to Samba available, for me the most simple and powerful one of these tools is samba server configuration tool.<br
/> <span
id="more-1024"></span></p><h2><span
style="color: #ff0000;">Installing Samba on Ubuntu:</span></h2><p><strong>1- Install Samba files</strong></p><p>First thing we need to do is to install samba, go to Software center in Ubuntu and search for samba then install the package. If you want to install it via terminal then copy this command :</p><blockquote><p>sudo apt-get install samba samba-common</p></blockquote><p><strong>2- Install some dependencies for Configuration tools (don`t forget to install python-glade2)</strong></p><blockquote><p>sudo apt-get install python-glade2</p></blockquote><p><strong>3- Installing Samba Server configuration Tool :</strong></p><p>Now install the graphical interface System-config samba</p><blockquote><p>sudo apt-get install system-config-samba</p></blockquote><p><strong>4- Add a Linux/Unix user:</strong></p><blockquote><p>adduser pirat9</p></blockquote><p><strong>5- Make a Linux/Unix password for user pirat9</strong></p><blockquote><p>passwd pirat9</p></blockquote><p
style="text-align: left;"><strong>6- Now open samba configuration tool.</strong><br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/05/samba1.png"><img
class="aligncenter  wp-image-1034" title="samba1" src="http://www.php2s.com/wp-content/uploads/2012/05/samba1.png" alt="samba1 Install Samba & Configure Network Share on Ubuntu 12.04 (GUI Mode)" width="466" height="271" /></a></p><p
style="text-align: left;"><strong>7- Add the folder you want to share and setup the permissions access.</strong><br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/05/samba2.png"><img
class="aligncenter  wp-image-1033" title="samba2" src="http://www.php2s.com/wp-content/uploads/2012/05/samba2.png" alt="samba2 Install Samba & Configure Network Share on Ubuntu 12.04 (GUI Mode)" width="420" height="386" /></a></p><p
style="text-align: left;"><strong>Setup the permissions access</strong><br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/05/samba3.png"><img
class="aligncenter  wp-image-1032" title="samba3" src="http://www.php2s.com/wp-content/uploads/2012/05/samba3.png" alt="samba3 Install Samba & Configure Network Share on Ubuntu 12.04 (GUI Mode)" width="418" height="380" /></a></p><p><strong>8- Now before to connect to the share, you have to create the samba user :</strong></p><blockquote><p>sudo smbpasswd -a pirat9<br
/> New SMB password<br
/> retype New SMB Password</p></blockquote><p>Now the configuration is done.</p><p
style="text-align: left;"><strong>Tip</strong>: You can chose any directory you want to share by right click on the folder directory and open the share options<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/05/samba4.png"><img
class="aligncenter  wp-image-1031" title="samba4" src="http://www.php2s.com/wp-content/uploads/2012/05/samba4.png" alt="samba4 Install Samba & Configure Network Share on Ubuntu 12.04 (GUI Mode)" width="542" height="426" /></a></p><p
style="text-align: left;">And activate share:<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/05/samba5.png"><img
class="aligncenter  wp-image-1030" title="samba5" src="http://www.php2s.com/wp-content/uploads/2012/05/samba5.png" alt="samba5 Install Samba & Configure Network Share on Ubuntu 12.04 (GUI Mode)" width="470" height="482" /></a></p><p
style="text-align: left;"><strong>9-</strong> Now, let`s test if samba share is working from another Linux Machine, in my case will try to connect from LinuxMint12 machine to Ubuntu 12.04 machine where we just installed samba,<strong> from menu open connect to server and type the details of your Ubuntu machine</strong><br
/> <strong> <a
href="http://www.php2s.com/wp-content/uploads/2012/05/samba6.png"><img
class="aligncenter  wp-image-1029" title="samba6" src="http://www.php2s.com/wp-content/uploads/2012/05/samba6.png" alt="samba6 Install Samba & Configure Network Share on Ubuntu 12.04 (GUI Mode)" width="358" height="364" /></a></strong></p><p
style="text-align: left;"><strong>10-</strong></p><p
style="text-align: center;"><a
href="http://www.php2s.com/wp-content/uploads/2012/05/samba7.png"><img
class="aligncenter  wp-image-1028" title="samba7" src="http://www.php2s.com/wp-content/uploads/2012/05/samba7.png" alt="samba7 Install Samba & Configure Network Share on Ubuntu 12.04 (GUI Mode)" width="643" height="442" /></a></p><p
style="text-align: left;"><strong>11-</strong></p><p
style="text-align: center;"><a
href="http://www.php2s.com/wp-content/uploads/2012/05/samba8.png"><img
class="aligncenter  wp-image-1027" title="samba8" src="http://www.php2s.com/wp-content/uploads/2012/05/samba8.png" alt="samba8 Install Samba & Configure Network Share on Ubuntu 12.04 (GUI Mode)" width="637" height="462" /></a></p><p
style="text-align: left;"><strong>12- Connect from windows (XP/Vista/7)</strong><br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/05/samba9.png"><img
class="aligncenter  wp-image-1026" title="samba9" src="http://www.php2s.com/wp-content/uploads/2012/05/samba9.png" alt="samba9 Install Samba & Configure Network Share on Ubuntu 12.04 (GUI Mode)" width="668" height="464" /></a></p><p
style="text-align: center;"><a
href="http://www.php2s.com/wp-content/uploads/2012/05/samba10.png"><img
class="aligncenter  wp-image-1025" title="samba10" src="http://www.php2s.com/wp-content/uploads/2012/05/samba10.png" alt="samba10 Install Samba & Configure Network Share on Ubuntu 12.04 (GUI Mode)" width="668" height="316" /></a></p><p>Hope the article would be useful.</p><p><em><span
style="color: #999999;"><a
href="www.unixmen.com"><span
style="color: #999999;">Source</span></a></span></em></p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/installing-lamp-server-on-debian-squeeze.html" rel="bookmark" class="crp_title">Installing LAMP Server on Debian Squeeze</a></li><li><a
href="http://www.php2s.com/linux/howto-downloa-install-centos-6-2-step-by-step-guide-screenshots.html" rel="bookmark" class="crp_title">How to install CentOS 6.2 Step by step guide Screenshots</a></li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" rel="bookmark" class="crp_title">How to configure network using CLI ang GUI in Ubuntu 12.04</a></li><li><a
href="http://www.php2s.com/programming/installing-wordpress-joomla-drupal-on-centos-6-2-netinstall.html" rel="bookmark" class="crp_title">Installing WordPress/Joomla/Drupal on CentOS 6.2 (netinstall)</a></li><li><a
href="http://www.php2s.com/linux/installing-webmin-on-ubuntu-12-04-server-using-apt.html" rel="bookmark" class="crp_title">Installing Webmin on Ubuntu 12.04 Server using APT</a></li><li><a
href="http://www.php2s.com/linux/download-linux-mint-12-lisa-gnome-3-mgse-cd-dvd-img-iso.html" rel="bookmark" class="crp_title">Download Linux Mint 12 (Lisa) GNOME 3, MGSE CD/DVD</a></li><li><a
href="http://www.php2s.com/linux/how-to-change-default-boot-up-runlevel-for-linux-centos-fedora-by-inittab-config-file.html" rel="bookmark" class="crp_title">How to change default boot up runlevel for Linux CentOS Fedora by inittab config file</a></li><li><a
href="http://www.php2s.com/programming/php-programming/cookie-based-login-form-and-get-last-login-time.html" rel="bookmark" class="crp_title">PHP Code: Cookie based login form and get last login time</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html" rel="bookmark" class="crp_title">How to install python 2.7 on CentOS 6.2 with setuptools 0.6c11</a></li><li><a
href="http://www.php2s.com/linux/installing-centos-6-2-on-vmware-fusion-step-by-step-guide.html" rel="bookmark" class="crp_title">Installing CentOS 6.2 on VMWare Fusion Step by Step Guide</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" title="ubuntu 12 04 samba">ubuntu 12 04 samba</a> (21)</li><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" title="samba ubuntu 12 04">samba ubuntu 12 04</a> (21)</li><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" title="ubuntu 12 04 network share">ubuntu 12 04 network share</a> (17)</li><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" title="how to create user for gui mode in samba">how to create user for gui mode in samba</a> (15)</li><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" title="samba configuration in linux ubuntu step by step pdf">samba configuration in linux ubuntu step by step pdf</a> (13)</li><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" title="connect to server ubuntu 12 04">connect to server ubuntu 12 04</a> (11)</li><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" title="install samba ubuntu 12 04">install samba ubuntu 12 04</a> (10)</li><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" title="ubuntu 12 04 network shares">ubuntu 12 04 network shares</a> (10)</li><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" title="ubuntu 12 04 connect network share">ubuntu 12 04 connect network share</a> (9)</li><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" title="network share ubuntu 12 04">network share ubuntu 12 04</a> (7)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=uPMLOFEXwN8:Qc-l8C35iZA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=uPMLOFEXwN8:Qc-l8C35iZA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=uPMLOFEXwN8:Qc-l8C35iZA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=uPMLOFEXwN8:Qc-l8C35iZA:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/uPMLOFEXwN8" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-install-samba-configure-network-share-on-ubuntu-12-04</feedburner:origLink></item> <item><title>How to install MATE Desktop Environment on Ubuntu/Fedora</title><link>http://feedproxy.google.com/~r/Php2s/~3/0zD-PoOroFM/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html</link> <comments>http://www.php2s.com/linux/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html#comments</comments> <pubDate>Wed, 23 May 2012 10:24:54 +0000</pubDate> <dc:creator>Sheikh Khalid</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Fedora]]></category> <category><![CDATA[MATE]]></category> <category><![CDATA[Ubuntu]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1018</guid> <description><![CDATA[Linux MATE can provide the same desktop experience as Gnome2. Perberos initially forked Gnome 2 and called the project MATE. Users and developers were successful at running MATE in Arch Linux and due to popular demand Perberos made it easier for MATE to compile under Debian. Many gnome2 users have shifted to Xfce to avoid [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/05/Linux_MATE_Desktop_Environment_Logo.png"><img
class="alignleft" title="Linux_MATE_Desktop_Environment_Logo" src="http://www.php2s.com/wp-content/uploads/2012/05/Linux_MATE_Desktop_Environment_Logo.png" alt="Linux MATE Desktop Environment Logo How to install MATE Desktop Environment on Ubuntu/Fedora" width="162" height="98" /></a>Linux <a
href="http://mate-desktop.org/">MATE </a>can provide the same desktop experience as Gnome2. Perberos initially forked Gnome 2 and called the project MATE. Users and developers were successful at running MATE in Arch Linux and due to popular demand Perberos made it easier for MATE to compile under Debian. Many gnome2 users have shifted to Xfce to avoid gnome3. MATE can give you same old experience.</p><p><span
id="more-1018"></span></p><p>Installation of MATE is simple as packages are available for many distros. Installation instructions are available on <a
href="http://mate-desktop.org/install/">site</a>.<br
/> Fedora<br
/> Ubuntu<br
/> Debian<br
/> Linux Mint<br
/> Salix OS/Slackware<br
/> Archlinux</p><p><span
style="color: #3366ff;"><strong>Installation</strong></span></p><p><strong>Fedora 16</strong></p><blockquote><p>yum install http://dl.dropbox.com/u/49862637/Mate-desktop/mate-desktop-fedora/releases/16/noarch/mate-desktop-release-16-5.fc16.noarch.rpm -y<br
/> yum groupinstall MATE-Desktop -y</p></blockquote><p><strong>Ubuntu 12.04</strong></p><blockquote><p>add-apt-repository &#8220;deb http://packages.mate-desktop.org/repo/ubuntu precise main&#8221;</p><p>sudo apt-get update<br
/> sudo apt-get install mate-archive-keyring<br
/> sudo apt-get update<br
/> sudo apt-get install mate-core<br
/> sudo apt-get install mate-desktop-environment</p></blockquote><p>Once successfully installed you can login to MATE desktop environment.</p><p><span
style="color: #3366ff;"><strong>Uninstall</strong></span><br
/> <strong>Fedora</strong></p><blockquote><p>yum groupremove MATE-Desktop</p></blockquote><p><strong>Ubuntu</strong></p><blockquote><p>apt-get remove mate-desktop-environment<br
/> apt-get remove mate-core<br
/> apt-get remove mate-archive-keyring<br
/> apt-get autoremove</p></blockquote><p>Hope the example would be helpful.</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/download-linux-mint-12-lisa-gnome-3-mgse-cd-dvd-img-iso.html" rel="bookmark" class="crp_title">Download Linux Mint 12 (Lisa) GNOME 3, MGSE CD/DVD</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-gnome-shell-in-ubuntu-11-10-oneric-ocelot.html" rel="bookmark" class="crp_title">How to Install Gnome Shell in Ubuntu 11.10 Oneric Ocelot</a></li><li><a
href="http://www.php2s.com/linux/fast-ubuntu-linux-bittorrent-download.html" rel="bookmark" class="crp_title">Fast Ubuntu Linux BitTorrent Download</a></li><li><a
href="http://www.php2s.com/linux/how-to-upgrade-to-ubuntu-12-04-for-desktops-servers-running-10-04-or-11-10.html" rel="bookmark" class="crp_title">How To Upgrade to Ubuntu 12.04 for Desktops &#038; Servers running 10.04 or 11.10</a></li><li><a
href="http://www.php2s.com/linux/how-to-enable-root-login-in-ubuntu-11-10.html" rel="bookmark" class="crp_title">How to Enable Root Login in Ubuntu 11.10</a></li><li><a
href="http://www.php2s.com/linux/download-ubuntu-11-10-oneiric-ocelot-cd-iso-dvd-images-for-3264-bit.html" rel="bookmark" class="crp_title">Download Ubuntu 11.10 (Oneiric Ocelot) CD ISO / DVD Images for 32/64 bit</a></li><li><a
href="http://www.php2s.com/virtualization/install-and-manage-virtualbox-4-on-ubuntu-server-11-10-without-gui.html" rel="bookmark" class="crp_title">Install and Manage Virtualbox 4 on headless Ubuntu Server 11.10 without GUI</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-turn-on-telnet-service-on-rhel-febora-centos-ubuntu-freebsd-debian.html" rel="bookmark" class="crp_title">how to install &#038; turn on telnet service on RHEL, Fedora, CentOS, Ubuntu, FreeBSD, Debian</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-configure-vsftpd-on-rhel-centos-ubuntu-fedora-debian.html" rel="bookmark" class="crp_title">How to Install &#038; Configure Vsftpd on RHEL/CentOS/Ubuntu/Fedora</a></li><li><a
href="http://www.php2s.com/open-source/download-and-install-backtrack-5-r2-gnome-screenshots.html" rel="bookmark" class="crp_title">Download and Install BackTrack 5 R2 GNOME Screenshots</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/linux/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html" title="centos mate">centos mate</a> (28)</li><li><a
href="http://www.php2s.com/linux/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html" title="mate desktop centos">mate desktop centos</a> (12)</li><li><a
href="http://www.php2s.com/linux/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html" title="mate centos">mate centos</a> (12)</li><li><a
href="http://www.php2s.com/linux/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html" title="centos MATE Desktop">centos MATE Desktop</a> (11)</li><li><a
href="http://www.php2s.com/linux/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html" title="environment logo">environment logo</a> (11)</li><li><a
href="http://www.php2s.com/linux/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html" title="linux mate logo">linux mate logo</a> (9)</li><li><a
href="http://www.php2s.com/linux/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html" title="install mate on centos">install mate on centos</a> (8)</li><li><a
href="http://www.php2s.com/linux/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html" title="centos mate packages">centos mate packages</a> (7)</li><li><a
href="http://www.php2s.com/linux/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html" title="mate for centos">mate for centos</a> (7)</li><li><a
href="http://www.php2s.com/linux/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html" title="ubuntu install mate desktop">ubuntu install mate desktop</a> (6)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=0zD-PoOroFM:wjhdlYJpZgs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=0zD-PoOroFM:wjhdlYJpZgs:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=0zD-PoOroFM:wjhdlYJpZgs:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=0zD-PoOroFM:wjhdlYJpZgs:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/0zD-PoOroFM" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/linux/how-to-install-mate-desktop-environment-on-ubuntu-fedora.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-install-mate-desktop-environment-on-ubuntu-fedora</feedburner:origLink></item> <item><title>How to install NVIDIA drivers on CentOS 6.2 / Scientific Linux 6.2</title><link>http://feedproxy.google.com/~r/Php2s/~3/YBMeGF9bp8E/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html</link> <comments>http://www.php2s.com/linux/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html#comments</comments> <pubDate>Wed, 23 May 2012 08:38:03 +0000</pubDate> <dc:creator>Sheikh Khalid</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Centos]]></category> <category><![CDATA[CentOS 6.2]]></category> <category><![CDATA[Nvidia]]></category> <category><![CDATA[Scientific Linux]]></category><guid isPermaLink="false">http://www.php2s.com/?p=1011</guid> <description><![CDATA[In this example, i will show how to intall NVIDIA drivers on CentOS 6.2 / Scientific Linux 6.2 or RHEL clones. By default, RHEL clones such as CentOS 6.2 and SL 6.2 assign the nouveau X11 driver to NVIDIA graphics card. nouveau is a fine driver, miles away from the old nv; however if you want 3D performance (or a compiz powered desktop) you&#8217;ll [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/05/nvidia_logo-centos.jpg"><img
class="alignleft  wp-image-1016" title="nvidia_logo-centos" src="http://www.php2s.com/wp-content/uploads/2012/05/nvidia_logo-centos.jpg" alt="nvidia logo centos How to install NVIDIA drivers on CentOS 6.2 / Scientific Linux 6.2" width="116" height="112" /></a>In this example, i will show how to intall NVIDIA drivers on CentOS 6.2 / Scientific Linux 6.2 or RHEL clones. By default, RHEL clones such as CentOS 6.2 and SL 6.2 assign the nouveau X11 driver to NVIDIA graphics card. nouveau is a fine driver, miles away from the old nv; however if you want 3D performance (or a compiz powered desktop) you&#8217;ll need to turn to NVIDIA and its closed source drivers.</p><p><span
id="more-1011"></span><br
/> CentOS official repositories don&#8217;t contain packages for NVIDIA closed source driver so one needs to add a third party repository that has the driver available, such as the ELRepo repository.</p><p>Adding the ELRepo consists of importing the public GPG key and installing the repository:</p><blockquote><pre><code># rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org  
# rpm -Uvh http://elrepo.org/elrepo-release-6-4.el6.elrepo.noarch.rpm </code></pre></blockquote><p>Having added the repository we can finally install the driver (yum pulls nvidia-x11-drv as a dependency) and reboot:</p><blockquote><pre><code># yum install kmod-nvidia # reboot</code></pre></blockquote><p><strong>Know Issues</strong><br
/> By installing NVIDIA closed source drivers, the plymouth graphical boot will no longer be available. In other worlds, the pretty CentOS and SL logos on a black background will be replaced by a bottom horizontal progress bar.</p><p>The following link might be useful</p><p><a
href="http://elrepo.org/tiki/kmod-nvidia">http://elrepo.org/tiki/kmod-nvidia</a></p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/how-to-make-a-usb-boot-cd-for-ubuntu-11-10.html" rel="bookmark" class="crp_title">How to make a USB Boot CD for Ubuntu 11.10</a></li><li><a
href="http://www.php2s.com/linux/how-to-prepare-anaconda-update-image-for-rhel-fedora-centos.html" rel="bookmark" class="crp_title">How to prepare anaconda update image for RHEL/Fedora/CentOS</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-recordmydesktop-on-rhel-and-centos.html" rel="bookmark" class="crp_title">How to install RecordMyDesktop on RHEL and CentOS</a></li><li><a
href="http://www.php2s.com/linux/how-to-automatically-reboot-restart-debian-gnu-lenny-squeeze-linux-on-kernel-panic.html" rel="bookmark" class="crp_title">How to automatically reboot (restart) Debian GNU Lenny / Squeeze Linux on Kernel Panic</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-apache-httpd-on-centos-6-2.html" rel="bookmark" class="crp_title">Howto Guide: Install &#038; Start Apache or Httpd Service on CentOS 6.2</a></li><li><a
href="http://www.php2s.com/linux/how-to-load-custom-kernel-tun-module-in-centos-rhel-linux.html" rel="bookmark" class="crp_title">How to load custom Kernel (tun) module in CentOS/ RHEL Linux</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-and-configure-ntp-daemon-on-centos-rhel-fedora.html" rel="bookmark" class="crp_title">Install and Configure NTP on CentOS/ RHEL/ Fedora</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-python-2-7-on-centos-6-2-with-setuptools-0-6c11.html" rel="bookmark" class="crp_title">How to install python 2.7 on CentOS 6.2 with setuptools 0.6c11</a></li><li><a
href="http://www.php2s.com/linux/linux-kernel-3-2-released-and-available-for-download.html" rel="bookmark" class="crp_title">Linux Kernel 3.2 released and available for download</a></li><li><a
href="http://www.php2s.com/linux/centos-6-1-cd-dvd-iso-direct-download-torrent.html" rel="bookmark" class="crp_title">CentOS 6.1 CD / DVD ISO Direct Download &#038; Torrent</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/linux/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html" title="scientific linux nvidia">scientific linux nvidia</a> (89)</li><li><a
href="http://www.php2s.com/linux/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html" title="centos 6 2 nvidia">centos 6 2 nvidia</a> (86)</li><li><a
href="http://www.php2s.com/linux/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html" title="nvidia drivers centos 6 2">nvidia drivers centos 6 2</a> (54)</li><li><a
href="http://www.php2s.com/linux/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html" title="nvidia centos 6 2">nvidia centos 6 2</a> (52)</li><li><a
href="http://www.php2s.com/linux/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html" title="centos nvidia driver">centos nvidia driver</a> (47)</li><li><a
href="http://www.php2s.com/linux/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html" title="centos nvidia">centos nvidia</a> (45)</li><li><a
href="http://www.php2s.com/linux/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html" title="centos 6 2 nvidia driver">centos 6 2 nvidia driver</a> (38)</li><li><a
href="http://www.php2s.com/linux/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html" title="scientific linux nvidia driver">scientific linux nvidia driver</a> (26)</li><li><a
href="http://www.php2s.com/linux/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html" title="nvidia driver centos 6 2">nvidia driver centos 6 2</a> (22)</li><li><a
href="http://www.php2s.com/linux/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html" title="centos 6 2 install nvidia drivers">centos 6 2 install nvidia drivers</a> (22)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=YBMeGF9bp8E:Jm7Imdjrvt4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=YBMeGF9bp8E:Jm7Imdjrvt4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=YBMeGF9bp8E:Jm7Imdjrvt4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=YBMeGF9bp8E:Jm7Imdjrvt4:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/YBMeGF9bp8E" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/linux/how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-install-nvidia-drivers-on-centos-6-2-scientific-linux-6-2</feedburner:origLink></item> <item><title>How to configure network using CLI ang GUI in Ubuntu 12.04</title><link>http://feedproxy.google.com/~r/Php2s/~3/9uPxMbHQLSo/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html</link> <comments>http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html#comments</comments> <pubDate>Wed, 23 May 2012 08:17:38 +0000</pubDate> <dc:creator>Sheikh Khalid</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[CLI]]></category> <category><![CDATA[GUI]]></category> <category><![CDATA[How-To]]></category> <category><![CDATA[Ubuntu]]></category><guid isPermaLink="false">http://www.php2s.com/?p=993</guid> <description><![CDATA[In this example I will show how to setup network configuration using command line and graphical tool in Ubuntu 12.04. To start accessing internet or sharing other resources on the network you have to configure TCP/IP settings of you ethernet card. In ubuntu you can configure network settings through GUI and CLI. It can be [...]]]></description> <content:encoded><![CDATA[<p>In this example I will show how to setup network configuration using command line and graphical tool in Ubuntu 12.04. To start accessing internet or sharing other resources on the network you have to configure TCP/IP settings of you ethernet card. In ubuntu you can configure network settings through GUI and CLI. It can be a difficult task for newbie user who is switching from other OS to ubuntu as the look and feel of ubuntu will be different in comparison of other OS (specifically windows). In this tutorial we will be seeing how to configure TCP/IP setting via GUI as well as CLI.</p><p><span
id="more-993"></span></p><p>Before starting the configuration part, you have to know whether you will be configuring IP manually or IP will be assigned directly through DHCP server.</p><p>In case of manual IP assignment you should know IP address, subnet mask, gateway and DNS. In this tutorial I am using following information. Remember you don’t require it in case of DHCP configuration.</p><p><code>IP : 192.168.1.100<br
/> NETMASK : 255.255.255.0<br
/> GATEWAY : 192.168.1.1<br
/> BROADCAST : 192.168.1.255<br
/> NETWORK : 192.168.1.0<br
/> DNS : 8.8.8.8</code></p><h2><span
style="color: #3366ff;">Method 1 : Configure network GUI mode</span></h2><p><strong>Step 1 :</strong> First find out the network interface to configure. Open a terminal and run ifconfig</p><blockquote><p>ifconfig</p></blockquote><p>Result will be something similar to below screenshot.</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-cli-1.png"><img
class="aligncenter  wp-image-994" title="ubuntu-network-cli-1" src="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-cli-1.png" alt="ubuntu network cli 1 How to configure network using CLI ang GUI in Ubuntu 12.04" width="498" height="268" /></a></p><p><strong>Step 2 :</strong> We will be assigning IP address to eth0 adapter. To do the same Click on “System Setting” and select “Network”</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-1.png"><img
class="aligncenter size-full wp-image-995" title="ubuntu-network-gui-1" src="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-1.png" alt="ubuntu network gui 1 How to configure network using CLI ang GUI in Ubuntu 12.04"  /></a></p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-2.png"><img
class="aligncenter size-full wp-image-996" title="ubuntu-network-gui-2" src="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-2.png" alt="ubuntu network gui 2 How to configure network using CLI ang GUI in Ubuntu 12.04"  /></a></p><p><strong>Step 3 :</strong> As eth0 is wired connection click on “wired”. Choose “ON” option and click on “Configure” button.</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-3.png"><img
class="aligncenter  wp-image-997" title="ubuntu-network-gui-3" src="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-3.png" alt="ubuntu network gui 3 How to configure network using CLI ang GUI in Ubuntu 12.04" width="582" height="418" /></a></p><p><strong>Step 4 :</strong> Go to “<span
style="color: #ff6600;">IPv4 Settings</span>” tab. In case of DHCP / Automatic configuration choose “Automatic (DHCP)” option in “method”</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-4.png"><img
class="aligncenter  wp-image-998" title="ubuntu-network-gui-4" src="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-4.png" alt="ubuntu network gui 4 How to configure network using CLI ang GUI in Ubuntu 12.04" width="379" height="406" /></a></p><p>In case of manual configuration select “Manual” option in “method”. Click on “Add” button. Enter IP Address, netmask and gateway information. Also enter DNS Server. In this example I am using google DNS server’s IP.<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-5.png"><img
class="aligncenter  wp-image-999" title="ubuntu-network-gui-5" src="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-5.png" alt="ubuntu network gui 5 How to configure network using CLI ang GUI in Ubuntu 12.04" width="381" height="403" /></a></p><p>After finishing it up click on “Save” button.</p><p><strong> </strong>To confirm the setting again run “<span
style="color: #ff6600;">ifconfig</span>” command and check the “eth0″ interface settings. In case of successful configuration you will see something like below screenshot.<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-6.png"><img
class="aligncenter  wp-image-1001" title="ubuntu-network-gui-6" src="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-6.png" alt="ubuntu network gui 6 How to configure network using CLI ang GUI in Ubuntu 12.04" width="595" height="282" /></a></p><h2><span
style="color: #3366ff;">Method 2 : Configure network CLI Mode</span></h2><p><strong>Step 1 :</strong> First find out the network interface to configure. Open a terminal and run ifconfig</p><blockquote><p>ifconfig</p></blockquote><p>Result will be something similar to below screenshot.</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-cli-1.png"><img
class="aligncenter size-full wp-image-994" title="ubuntu-network-cli-1" src="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-cli-1.png" alt="ubuntu network cli 1 How to configure network using CLI ang GUI in Ubuntu 12.04" width="522" height="281" /></a></p><p><strong>Step 2 :</strong> We will be assigning IP address to eth0 adapter. Open a terminal and type</p><blockquote><p>sudo vi /etc/network/interfaces</p></blockquote><p><a
href="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-cli-2.png"><img
class="aligncenter size-full wp-image-1002" title="ubuntu-network-cli-2" src="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-cli-2.png" alt="ubuntu network cli 2 How to configure network using CLI ang GUI in Ubuntu 12.04"  /></a></p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-cli-3.png"><img
class="aligncenter size-full wp-image-1003" title="ubuntu-network-cli-3" src="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-cli-3.png" alt="ubuntu network cli 3 How to configure network using CLI ang GUI in Ubuntu 12.04"  /></a></p><p><strong>Step 3 :</strong> Now you need to add eth0 information in this file.<br
/> In case of<span
style="color: #ff6600;"> DHCP / Automatic IP</span> assignment enter following line and save this file.</p><blockquote><p>iface eth0 inet dhcp</p></blockquote><p>In case of manual IP assignment enter following line and save this file.</p><blockquote><p>iface eth0 inet static<br
/> address 192.168.1.100<br
/> netmask 255.255.255.0<br
/> network 192.168.1.0<br
/> broadcast 192.168.1.255<br
/> gateway 192.168.1.1</p></blockquote><p><a
href="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-cli-4.png"><img
class="aligncenter  wp-image-1004" title="ubuntu-network-cli-4" src="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-cli-4.png" alt="ubuntu network cli 4 How to configure network using CLI ang GUI in Ubuntu 12.04" width="398" height="468" /></a></p><p>To configure <span
style="color: #ff6600;">DNS</span>, enter following command. Remember to run it through “<span
style="color: #ff6600;">root</span>” user</p><blockquote><p>echo &#8220;nameserver 8.8.8.8&#8243; &gt;&gt; /etc/resolve.conf</p></blockquote><p><strong>Step 4 :</strong> Now run following command to start <span
style="color: #ff6600;">eth0</span> interface</p><blockquote><p>sudo ifup eth0</p></blockquote><p><a
href="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-cli-5.png"><img
class="aligncenter size-full wp-image-1005" title="ubuntu-network-cli-5" src="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-cli-5.png" alt="ubuntu network cli 5 How to configure network using CLI ang GUI in Ubuntu 12.04"  /></a></p><p><strong>Step 5:</strong> To confirm the setting again run “<span
style="color: #ff6600;">ifconfig</span>” command and check the “eth0″ interface settings. In case of successful configuration you will see something like below screenshot.</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-6.png"><img
class="aligncenter  wp-image-1001" title="ubuntu-network-gui-6" src="http://www.php2s.com/wp-content/uploads/2012/05/ubuntu-network-gui-6.png" alt="ubuntu network gui 6 How to configure network using CLI ang GUI in Ubuntu 12.04" width="604" height="287" /></a></p><p>Hope that would be helpful for you.</p><p><span
style="color: #999999;"><em><a
title="techienote" href="techienote.com"><span
style="color: #999999;">Source</span></a></em></span></p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/how-to-configure-network-interface-on-fedora-16-using-networkmanager.html" rel="bookmark" class="crp_title">How to configure network interface on Fedora 16 using NetworkManager</a></li><li><a
href="http://www.php2s.com/linux/how-to-setup-a-fedora-red-hat-linux-or-centos-dhcp-client.html" rel="bookmark" class="crp_title">How to Setup a Fedora / Red Hat Linux or CentOS DHCP Client</a></li><li><a
href="http://www.php2s.com/linux/install-fresh-centos-ilo-install-no-internet-connectivity-yum-wget-etc-fail.html" rel="bookmark" class="crp_title">Install fresh CentOS iLO install, no internet connectivity (yum, wget etc. fail)</a></li><li><a
href="http://www.php2s.com/linux/how-to-set-static-ip-address-in-centos-6-2-linux-server.html" rel="bookmark" class="crp_title">How to Set Static IP Address in Centos 6.2 Linux Server</a></li><li><a
href="http://www.php2s.com/networking/how-to-create-an-ip-ip-tunnel-among-three-networks.html" rel="bookmark" class="crp_title">How to create an ip-ip tunnel among three Networks</a></li><li><a
href="http://www.php2s.com/linux/how-to-install-samba-configure-network-share-on-ubuntu-12-04.html" rel="bookmark" class="crp_title">Install Samba &#038; Configure Network Share on Ubuntu 12.04 (GUI Mode)</a></li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-card-in-red-hat-enterprise-linux-centos-fedora-core-from-cli.html" rel="bookmark" class="crp_title">How to configure network card in Red Hat Enterprise Linux, CentOS, Fedora Core from CLI</a></li><li><a
href="http://www.php2s.com/open-source/solaris/how-to-install-solaris-10-step-by-step-guide-screenshots.html" rel="bookmark" class="crp_title">How to install Solaris 10 Step by Step Guide Screenshots</a></li><li><a
href="http://www.php2s.com/networking/how-to-create-map-of-local-network-lan-using-lanmap.html" rel="bookmark" class="crp_title">How to create map of local network (LAN) using Lanmap</a></li><li><a
href="http://www.php2s.com/linux/how-to-upgrade-to-ubuntu-12-04-for-desktops-servers-running-10-04-or-11-10.html" rel="bookmark" class="crp_title">How To Upgrade to Ubuntu 12.04 for Desktops &#038; Servers running 10.04 or 11.10</a></li></ul></div><h4>Incoming search terms:</h4><ul><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" title="ubuntu 12 04 manual network configuration">ubuntu 12 04 manual network configuration</a> (38)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" title="ubuntu 12 04 network configuration">ubuntu 12 04 network configuration</a> (35)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" title="ubuntu 12 04 network configuration command line">ubuntu 12 04 network configuration command line</a> (32)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" title="ubuntu 12 04 network configuration gui">ubuntu 12 04 network configuration gui</a> (30)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" title="ubuntu 12 04 static ip ifconfig">ubuntu 12 04 static ip ifconfig</a> (17)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" title="network settings command line ubuntu 12 04">network settings command line ubuntu 12 04</a> (15)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" title="ubuntu 12 04 configure network">ubuntu 12 04 configure network</a> (13)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" title="ubuntu 12 04 configure network command line">ubuntu 12 04 configure network command line</a> (12)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" title="ubuntu 12 04 manual network">ubuntu 12 04 manual network</a> (11)</li><li><a
href="http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html" title="how to create gateway in ubuntu without GUI">how to create gateway in ubuntu without GUI</a> (10)</li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Php2s?a=9uPxMbHQLSo:mAK78UndX8I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Php2s?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=9uPxMbHQLSo:mAK78UndX8I:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Php2s?i=9uPxMbHQLSo:mAK78UndX8I:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Php2s?a=9uPxMbHQLSo:mAK78UndX8I:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Php2s?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Php2s/~4/9uPxMbHQLSo" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.php2s.com/linux/how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-configure-network-using-cli-ang-gui-in-ubuntu-12-04</feedburner:origLink></item> </channel> </rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 151/279 queries in 0.916 seconds using disk: basic
Object Caching 11043/11720 objects using disk: basic

Served from: www.php2s.com @ 2013-05-15 01:10:29 -->
