<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Php2s.com</title> <atom:link href="http://www.php2s.com/feed" rel="self" type="application/rss+xml" /><link>http://www.php2s.com</link> <description>Linux, Security, Networking, Open Source for Newbies and Geeks</description> <lastBuildDate>Mon, 06 Feb 2012 14:13:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>How to improve battery life of Linux System / Laptop / PC</title><link>http://www.php2s.com/linux/how-to-improve-battery-life-of-linux-system-laptop-pc.html</link> <comments>http://www.php2s.com/linux/how-to-improve-battery-life-of-linux-system-laptop-pc.html#comments</comments> <pubDate>Mon, 06 Feb 2012 14:13:46 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[How-To]]></category> <category><![CDATA[Laptop]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=831</guid> <description><![CDATA[In this tutorial i will show you how to improve battery life of linux system or laptop. For Linux users who enjoy a fragmentation-free and virus-immune laptop, there’s barely anything that makes them whine as much as their Redmond-loving counterparts. Linux, on a fully compatible machine, achieves a perfect blend of performance and stability. That [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/02/linux-system.jpg"><img
class="alignleft  wp-image-832" title="linux-system" src="http://www.php2s.com/wp-content/uploads/2012/02/linux-system-300x219.jpg" alt="" width="210" height="153" /></a>In this tutorial i will show you how to improve battery life of linux system or laptop. For Linux users who enjoy a fragmentation-free and virus-immune laptop, there’s barely anything that makes them whine as much as their Redmond-loving counterparts. Linux, on a fully compatible machine, achieves a perfect blend of performance and stability. That said, there are some of us who want more than perfection, they want optimum performance and a beast-like computing speed. I know, overclocking is a bit risky, but tweaking isn&#8217;t. We&#8217;ve heard them whining about their empty batteries and their always-plugged workdays, and yeah, as always, we couldn&#8217;t help doling out some useful advice to those folks.</p><p><span
id="more-831"></span></p><h2><span
style="color: #3366ff;"><strong>Dim the Lights</strong></span></h2><p>In most of the devices, including cellphones, the display is the biggest culprit when it comes to reduced battery life. A brightly lit laptop won’t really help you get through a whole workday. The best solution to this problem is to dim the screen as much as possible. If, in certain cases like movie-watching or reading you need a bright display, you can turn the brightness up for that period and them dim the screen back when you’re finished.</p><h2><span
style="color: #3366ff;"><strong>Kill the Slowpokes</strong></span></h2><p>It’s not just the display that hurts the battery, it’s also those CPU-hogging programs that make you reach out for the charger sooner than expected. That said, it’s not always easy for a user to spot that the CPU is under a load. It takes a real slowdown or freezing to realize that the program has become a mess and needs to be killed.</p><p>Don’t worry yet, as you can always keep an eye on your CPU or RAM by using any of the following methods:</p><p><strong>1.</strong> Take a look at the system monitor if you feel the slightest of difference in performance. From there, you can kill any misbehaving task.</p><p><strong>2.</strong> Ubuntu users can install the System Load Indicator from a ppa, which, once installed, will let you take a look at the performance right from the indicator menu. To install, go to the terminal (Ctrl+Alt+T) and paste/type in the following commands.</p><blockquote><p>sudo add-apt-repository ppa:indicator-multiload/stable-daily</p><p>sudo apt-get update &amp;&amp; sudo apt-get install indicator-multiload</p></blockquote><h2><span
style="color: #3366ff;"><strong>Power Management</strong></span></h2><p>The computer’s power management scheme is one of the most important factors that decide the fate of your battery. In the power management settings window, always make sure you choose a balanced plan that helps you get through a whole workday without looking for an adapter. Another great way to take advantage of this setting is by making sure that the laptop goes into suspend mode as soon as the lid is closed. Though, it might not be a suitable setting for folks who are a tad impatient, it still is one of the most effective ways of saving battery life. To access the power management settings in Ubuntu, open the Dash (Super/Windows key) and type in the word “Power” without quotes.</p><h2><span
style="color: #3366ff;"><strong>Hibernate over Suspend</strong></span></h2><p>If, instead of shutting down your laptop, you put it on suspend mode, always make sure you’re connected to a charger. If not, then put the computer in hibernate mode and go for a nice nap. That way, neither would you lose any precious battery life nor would you lose your current work.</p><h2><span
style="color: #3366ff;"><strong>Keep It Cool</strong></span></h2><p>Most of the battery loss also occurs due to overheating laptops. The overheating issue is something that affects a lot of laptops. To remedy that problem, simply use a laptop cooling pad, a simple accessory that saves your computer from overheating. It’s also a good idea to keep an eye on the temperature; to do that, simply install the system monitor indicator that comes with various temperature sensors.</p><blockquote><p>sudo add-apt-repository ppa:alexeftimie/ppa</p><p>sudo apt-get update &amp;&amp; sudo apt-get install indicator-sysmonitor</p></blockquote><p>Or, if all you want is a simple hardware sensor, then try out the following indicator applet:</p><blockquote><p>sudo add-apt-repository ppa:alexmurray/indicator-sensors</p><p>sudo apt-get install indicator-sensors</p></blockquote><h2><span
style="color: #3366ff;"><strong>Update Update Update</strong></span></h2><p>Finally, always remember to update your computer. The Linux kernel is continuously improving, and so are the distributions. In Ubuntu 12.04 for example, users will get to see an improved support for battery life. So, make sure you don’t ignore your computer when it badgers you to give it a big update.</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><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/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/installing-and-tweaking-homebrew-on-mac-os-x.html" rel="bookmark" class="crp_title">Installing and Tweaking Homebrew on Mac OS X</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/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/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-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-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/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>how to improve the battery life in fedora (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-improve-battery-life-of-linux-system-laptop-pc.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to load custom Kernel (tun) module in CentOS/ RHEL Linux</title><link>http://www.php2s.com/linux/how-to-load-custom-kernel-tun-module-in-centos-rhel-linux.html</link> <comments>http://www.php2s.com/linux/how-to-load-custom-kernel-tun-module-in-centos-rhel-linux.html#comments</comments> <pubDate>Mon, 06 Feb 2012 07:25:42 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Centos]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[How-To]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=825</guid> <description><![CDATA[Just recently it was necessery to load up a tun kernel module on few CentOS Linux servers. I’m using Debian on daily basis, and everybody that had even little of experience with Debian should already be aware about the existence of the handy: /etc/modules file. On Debian to enable a certain kernel module to load [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/02/centos-logo11.jpg"><img
class="alignleft  wp-image-826" title="centos-logo1" src="http://www.php2s.com/wp-content/uploads/2012/02/centos-logo11-300x80.jpg" alt="" width="240" height="64" /></a>Just recently it was necessery to load up a <strong>tun</strong> kernel module on few <strong>CentOS</strong> Linux servers.</p><p>I’m using Debian on daily basis, and everybody that had even little of experience with Debian should already be aware about the existence of the handy:<br
/> <strong> /etc/modules </strong> file.<br
/> On Debian to enable a certain kernel module to load up on Linux boot, all necessery is to just place the kernel module name in <em>/etc/modules</em>.</p><p><span
id="more-825"></span><br
/> For example loading the <strong>tun</strong> tunneling kernel module I issue the command:</p><blockquote><p><code>debian:~# echo tun &gt;&gt; /etc/modules<br
/> </code></p></blockquote><p>I wondered if CentOS, also supports<span
style="color: #3366ff;"> <strong> /etc/modules</strong></span> as it was necessery now to add this <em>tun</em> module to load up on CentOS’s boot.<br
/> After a bit of research I’ve figured out CentOS does not have support for adding modules names in <strong> /etc/modules </strong>, anyhow after consulting <strong> CentOS </strong> documentation on <em> <a
href="http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-kernel-modules-persistant.html">http://www.centos.org</a> </em>, I found <span
style="color: #3366ff;"><strong>CentOS and RHEL use /etc/rc.modules instead of Debian’s /etc/modules </strong></span> to load up any custom kernel modules not loaded by default during system boot.</p><p>Therefore instructing the RHEL Linux to load up my desired <strong>tun</strong> module in kernel on next boot was as easy as executing:</p><blockquote><p><code>[root@centos ~]# echo 'modprobe tun' &gt;&gt; /etc/rc.modules<br
/> [root@centos ~]# chmod +x /etc/rc.modules<br
/> </code></p></blockquote><p>Now on next boot CentOS will load up the <strong>tun</strong> module in kernel. Achiving the same module load up is also possible through <strong> /etc/rc.local </strong>, but it’s not recommended way as <strong>/etc/rc.local</strong> would load up the kernel module after all of the rest init boot scripts complete and therefore will load up the module slightly later, at the final boot stage.</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><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/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-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-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-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-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-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/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-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-setup-usergroup-quotas-4tib-on-ubuntu.html" rel="bookmark" class="crp_title">How to Setup user/group quotas >4TiB on Ubuntu</a></li></ul></div>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-load-custom-kernel-tun-module-in-centos-rhel-linux.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to auto restart CentOS Linux server with software watchdog (softdog) to reduce server downtime</title><link>http://www.php2s.com/open-source/how-to-auto-restart-centos-linux-server-with-software-watchdog-softdog-to-reduce-server-downtime.html</link> <comments>http://www.php2s.com/open-source/how-to-auto-restart-centos-linux-server-with-software-watchdog-softdog-to-reduce-server-downtime.html#comments</comments> <pubDate>Sun, 05 Feb 2012 07:38:32 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Open Source]]></category> <category><![CDATA[Centos]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Softdog]]></category> <category><![CDATA[Watchdog]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=816</guid> <description><![CDATA[If you are in charge of dozen of Linux servers these days and therefore required to restart many of the servers with a support ticket (because many of the Data Centers where the servers are co-located does not have a web interface or IPKVM connected to the server for that purpose). Therefore the server restart [...]]]></description> <content:encoded><![CDATA[<p>If you are in charge of dozen of Linux servers these days and therefore required to restart many of the servers with a support ticket (because many of the Data Centers where the servers are co-located does not have a web interface or IPKVM connected to the server for that purpose). Therefore the server restart requests in case of crash sometimes gets processed in few hours or in best case in at least half an hour.</p><p>I’m aware of the existence of Hardware Watchdog devices, which are capable to detect if a server is hanged and auto-restart it, however the servers I administrate does not have Hardware support for Watchdog timer.</p><p><span
id="more-816"></span></p><p>Thankfully there is a free software project called Watchdog which is easily configured and mitigates the terrible downtimes caused every now and then by a server crash and respective delays by tech support in Data Centers.</p><p>I’ve recently blogged on the topic of<a
href="http://www.php2s.com/linux/how-to-automatically-reboot-restart-debian-gnu-lenny-squeeze-linux-on-kernel-panic.html"> Debian Linux auto-restart in case of kernel panic</a> , however now i had to configure watchdog on some dozen of CentOS Linux servers.</p><p>It appeared installation &amp; configuration of Watchdog on CentOS is a piece of cake and comes to simply following few easy steps, which I’ll explain quickly in this post:</p><p><strong>1. Install with yum watchdog to CentOS</strong></p><blockquote><p>[root@centos:/etc/init.d ]# yum install watchdog<br
/> &#8230;</p></blockquote><p><strong>2. Add to configuration a log file to log watchdog activities and location of the watchdog device</strong></p><p>The quickest way to add this two is to use echo to append it in /etc/watchdog.conf:</p><blockquote><p>[root@centos:/etc/init.d ]# echo &#8216;file = /var/log/messages&#8217; &gt;&gt; /etc/watchdog.conf<br
/> echo &#8216;watchdog-device = /dev/watchdog&#8217; &gt;&gt; /etc/watchdog.conf</p></blockquote><p><strong>3. Load the softdog kernel module to initialize the software watchdog via /dev/watchdog</strong></p><blockquote><p>[root@centos:/etc/init.d ]# /sbin/modprobe softdog</p></blockquote><p>Initialization of softdog should be indicated by a line in dmesg kernel log like the one above:</p><blockquote><p>[root@centos:/etc/init.d ]# dmesg |grep -i watchdog<br
/> Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_margin=60 sec (nowayout= 0)</p></blockquote><p><strong>4. Include the softdog kernel module to load on CentOS boot up</strong></p><p>This is necessary, because otherwise after reboot the softdog would not be auto initialized and without it being initialized, the watchdog daemon service could not function as it does automatically auto reboots the server if the /dev/watchdog disappears.</p><p>It’s better that the softdog module is not loaded via /etc/rc.local but the default CentOS methodology to load module from /etc/rc.module is used:</p><blockquote><p>[root@centos:/etc/init.d ]# echo modprobe softdog &gt;&gt; /etc/rc.modules<br
/> [root@centos:/etc/init.d ]# chmod +x /etc/rc.modules</p></blockquote><p><strong>5. Start the watchdog daemon service</strong></p><p>The successful initialization of Softdog in step 4, should have provided the system with /dev/watchdog, before proceeding with starting up the watchdog daemon it’s wise to first check if /dev/watchdog is existent on the system. Here is how:</p><blockquote><p>[root@centos:/etc/init.d ]# ls -al /dev/watchdogcrw&#8212;&#8212;- 1 root root 10, 130 Aug 10 14:03 /dev/watchdog</p></blockquote><p>Being sure, that /dev/watchdog is there, I’ll start the watchdog service.</p><blockquote><p>[root@centos:/etc/init.d ]# service watchdog restart<br
/> &#8230;</p></blockquote><p>Very important note to make here is that you should never ever configure watchdog service to run on boot time with chkconfig. In other words the status from chkconfig for watchdog boot on all levels should be off like so:</p><blockquote><p>[root@centos:/etc/init.d ]# chkconfig &#8211;list |grep -i watchdog<br
/> watchdog 0:off 1:off 2:off 3:off 4:off 5:off 6:off</p></blockquote><p>Enabling the watchdog from the chkconfig will cause watchdog to automatically restart the system as it will probably start the watchdog daemon before the softdog module is initialized. As watchdog will be unable to read the /dev/watchdog it will though the system has hanged even though the system might be in a boot process. Therefore it will end up in an endless loops of reboots which can only be fixed in a linux single user mode!!! Once again BEWARE, never ever activate watchdog via chkconfig!</p><p>Next step to be absolutely sure that watchdog device is running it can be checked with normal ps command:</p><blockquote><p>[root@centos:/etc/init.d ]# ps aux|grep -i watchdog<br
/> root@hosting1-fr [~]# ps axu|grep -i watch|grep -v greproot 18692 0.0 0.0 1816 1812 ? SNLs 14:03 0:00 /usr/sbin/watchdog<br
/> root 25225 0.0 0.0 0 0 ? ZN 17:25 0:00 [watchdog]</p></blockquote><p>You have probably noticed the defunct state of watchdog, consider that as absolutely normal, above output indicates that now watchdog is properly running on the host and waiting to auto reboot in case of sudden /dev/watchdog disappearance.</p><p>As a last step before, after being sure its initialized properly, it’s necessery to add watchdog to run on boot time via /etc/rc.local post init script, like so:</p><blockquote><p>[root@centos:/etc/init.d ]# echo &#8216;echo /sbin/service watchdog start&#8217; &gt;&gt; /etc/rc.local</p></blockquote><p>Now enjoy, watchdog is up and running and will automatically restart the CentOS host.</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><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-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/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-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/howto-guide-enable-autostart-httpd-daemon-on-centos-6-2.html" rel="bookmark" class="crp_title">Howto Guide: Enable Autostart httpd Daemon on CentOS 6.2</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/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/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><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-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></ul></div><h4>Incoming search terms:</h4><ul><li>config vsftpd in centos 6 2 (1)</li><li>linux softdog (1)</li><li>linux software watchdog check kernel (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/open-source/how-to-auto-restart-centos-linux-server-with-software-watchdog-softdog-to-reduce-server-downtime.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to check fiber connectivity in VMware ESXi 5.0</title><link>http://www.php2s.com/virtualization/how-to-check-fiber-connectivity-in-vmware-esxi-5-0.html</link> <comments>http://www.php2s.com/virtualization/how-to-check-fiber-connectivity-in-vmware-esxi-5-0.html#comments</comments> <pubDate>Sun, 05 Feb 2012 07:20:12 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Virtualization]]></category> <category><![CDATA[ESXi]]></category> <category><![CDATA[VMware]]></category> <category><![CDATA[vSphere]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=813</guid> <description><![CDATA[Problem: On a VMware ESXi 5.0 host, how can I check if fiber storage adapters are properly connected to the fiber switch/SAN, i.e. if the fiber link is up? Solution: This information is shown nowhere in the vSphere Client, and there is no command-line tool to check it, either. The only way to verify if [...]]]></description> <content:encoded><![CDATA[<p><strong><span
style="color: #ff0000;">Problem</span>:</strong></p><p>On a VMware ESXi 5.0 host, how can I check if fiber storage adapters are properly connected to the fiber switch/SAN, i.e. if the fiber link is up?</p><p><strong><span
style="color: #3366ff;">Solution</span>:</strong></p><p>This information is shown nowhere in the vSphere Client, and there is no command-line tool to check it, either.</p><p>The only way to verify if a fiber link is up is to access the ESXi shell and go to /<span
style="color: #3366ff;">proc</span>/scsi/your_hba_driver (in my case, /<span
style="color: #3366ff;">proc</span>/scsi/qla2xxx); there is a (virtual) file there for each fiber port, and the contents of these files include one of the following:</p><p><span
id="more-813"></span></p><p><strong>For an active link:</strong></p><blockquote><p>Host adapter:Loop State = &lt;READY&gt;, flags = 0xaa68<br
/> Link speed = &lt;8 Gbps&gt;</p></blockquote><p><strong>For an inactive link:</strong></p><blockquote><p>Host adapter:Loop State = &lt;DEAD&gt;, flags = 0x1a268<br
/> Link speed = &lt;Unknown&gt;</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-creat-tun-tap-devices-on-ubuntu-linux.html" rel="bookmark" class="crp_title">How to Create tun/tap devices on Ubuntu/ Linux</a></li><li><a
href="http://www.php2s.com/virtualization/esxi-4-backup-and-restore-configuration.html" rel="bookmark" class="crp_title">Esxi 4 Backup and Restore configuration</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/programming/php-programming/draw-pie-chart.html" rel="bookmark" class="crp_title">How to Draw pie chart in PHP</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">Cookie based login form and get last login time</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-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/programming/php-programming/a-dynamic-bar-chart.html" rel="bookmark" class="crp_title">A Dynamic Bar Chart in PHP</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/open-source/installing-and-tweaking-homebrew-on-mac-os-x.html" rel="bookmark" class="crp_title">Installing and Tweaking Homebrew on Mac OS X</a></li></ul></div>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/virtualization/how-to-check-fiber-connectivity-in-vmware-esxi-5-0.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to automatically reboot (restart) Debian GNU Lenny / Squeeze Linux on Kernel Panic</title><link>http://www.php2s.com/linux/how-to-automatically-reboot-restart-debian-gnu-lenny-squeeze-linux-on-kernel-panic.html</link> <comments>http://www.php2s.com/linux/how-to-automatically-reboot-restart-debian-gnu-lenny-squeeze-linux-on-kernel-panic.html#comments</comments> <pubDate>Sun, 05 Feb 2012 07:02:56 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[How-To]]></category> <category><![CDATA[kernel]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=807</guid> <description><![CDATA[In this tutorial i will show you how to automatically reboot Debian Squeeze Linux on Kernel panic to avoid CPU overload or system crash. If you are a system administrator, you have probably wondered at least once how to configure your Linux server to automatically reboot itself if it crashes, is going through a mass [...]]]></description> <content:encoded><![CDATA[<p>In this tutorial i will show you how to automatically reboot Debian Squeeze Linux on Kernel panic to avoid CPU overload or system crash.</p><p>If you are a system administrator, you have probably wondered at least once how to configure your Linux server to automatically reboot itself if it crashes, is going through a mass CPU overload, e.g. the server <strong> load average </strong> &#8220;hits the sky&#8221;.</p><p>I just learned from a <a
href="http://blogs.techrepublic.com.com/opensource/?p=158"> nice article found here</a> that there is a kernel variable which when enabled takes care to automatically restart a crashed server with the terrible <strong> Kernel Panic </strong>message we all know.</p><p>The variable I&#8217;m taking about is <strong> kernel.panic </strong> for instance <strong> kernel.panic = 20 </strong> would instruct your GNU Linux kernel to automatically reboot if it experiences a kernel panic system crash within a time limit of 20 seconds.</p><p><span
id="more-807"></span></p><p>To start using the auto-reboot linux capabilities on a kernel panic occurance just set the variable to <strong> /etc/sysctl.conf </strong></p><blockquote><p><code>debian-server:~# echo 'kernel.panic = 20' &gt;&gt; /etc/sysctl.conf</code></p></blockquote><p>Now we will also have to enable the variable to start being use on the system, so execute:</p><blockquote><p><code>debian-server:~# sysctl -p</code></p></blockquote><p>There you go automatic system reboots on kernel panics is now on.<br
/> Now to further assure yourself the linux server you&#8217;re responsible of will automatically restart itself on a emergency situation like a system overload I suggest you check <a
href="http://sourceforge.net/projects/watchdog/"> Watchdog </a></p><p>You might consider checking out <a
href="http://forums.theplanet.com/lofiversion/index.php/t40908.html"> this auto reboot tutorial </a> which explains in simple words how watchdog is installed and configured.<br
/> On Debian installing and maintaining watchdog is really simple and comes to <strong>installing and enabling the watchdog system service, right afteryou made two changes in it&#8217;s configuration file </strong> <strong>/etc/watchdog.conf </strong></p><p>To do so execute:</p><blockquote><p><code>debian-server:~# apt-get install watchdog<br
/> debian-server:~# echo "file = /var/log/messages" &gt;&gt; /etc/watchdog.conf<br
/> debian-server:~# echo "watchdog-device = /dev/watchdog" &gt;&gt; /etc/watchdog.conf<br
/> </code></p></blockquote><p>Well that should be it, you might also need to load some kernel module to monitor your watchdog.<br
/> On my system the kernel modules related to watchdog are located in:</p><p><strong>/lib/modules/2.6.26-2-amd64/kernel/drivers/watchdog/</strong><br
/> If not then you should certainly try the <strong> software watchdog </strong> linux kernel module called <strong> softdog </strong>, to do so issue:<br
/> <code> </code></p><blockquote><p><code>debian-server:~# /sbin/modprobe softdog<br
/> </code></p></blockquote><p>It&#8217;s best if you load the module while the softdog daemon is disabled.<br
/> If you consider auto loadig the softdog software watchdog kernel driver you should exec:</p><blockquote><p><code> debian-server:~# echo 'softdog' &gt;&gt; /etc/modules<br
/> </code></p></blockquote><p>Finally a start of the watchdog is necessery:<code><br
/> </code></p><blockquote><p><code>debian-server:~# /etc/init.d/watchdog start<br
/> Stopping watchdog keepalive daemon....<br
/> Starting watchdog daemon....<br
/> </code></p></blockquote><p>That should be all your automatic system reboots should be now on!</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><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-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-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-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/p-linux-pipes-%e2%80%93-event-triggers-action.html" rel="bookmark" class="crp_title">(P/S) Linux Pipes – Event triggers action</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><li><a
href="http://www.php2s.com/linux/how-to-clear-squid-proxy-cache-on-debian-and-ubuntu.html" rel="bookmark" class="crp_title">How to clear Squid Proxy Cache on Debian and Ubuntu</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/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-generate-new-passowrd-for-squid-proxy-server-user-with-digest-user-authentication.html" rel="bookmark" class="crp_title">How to generate new passowrd for SQUID Proxy Server user with digest user authentication</a></li></ul></div>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-automatically-reboot-restart-debian-gnu-lenny-squeeze-linux-on-kernel-panic.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>PHP Tutorial: A Quick Way to Break up a URL into usable Pieces</title><link>http://www.php2s.com/programming/php-programming/php-tutorial-a-quick-way-to-break-up-a-url-into-usable-pieces.html</link> <comments>http://www.php2s.com/programming/php-programming/php-tutorial-a-quick-way-to-break-up-a-url-into-usable-pieces.html#comments</comments> <pubDate>Thu, 02 Feb 2012 16:01:05 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[php]]></category> <category><![CDATA[php code]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=800</guid> <description><![CDATA[PHP has a built in function which allows for the quick breaking up of a well formed URL into usable pieces, namely parse_url. This function parses a URL and returns an associative array containing any of the various components of the URL that are present. It is important to note that parse_url does not validate [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/02/php-logo.jpg"><img
class="alignleft  wp-image-801" title="php-logo" src="http://www.php2s.com/wp-content/uploads/2012/02/php-logo-300x207.jpg" alt="php dice logo" width="210" height="145" /></a>PHP has a built in function which allows for the quick breaking up of a well formed URL into usable pieces, namely parse_url.</p><p>This function parses a URL and returns an associative array containing any of the various components of the URL that are present. It is important to note that parse_url does not validate the given URL, it simply breaks it up into parts. Partial URLs are also accepted, and whilst parse_url tries its best to parse them correctly, it may return -1 if the URL provided is too malformed.</p><p><span
id="more-800"></span></p><p>So what exactly does it break an URL up into then?</p><p>Well, given an URL like below, parse_url would return the following:</p><blockquote><p>$url = &#8216;http://username:password@hostname/path?arg=value#anchor&#8217;;</p><p>print_r(parse_url($url));</p><p>echo parse_url($url, PHP_URL_PATH);</p></blockquote><p>&nbsp;</p><p>The output:</p><blockquote><p>Array<br
/> (<br
/> [scheme] =&gt; http<br
/> [host] =&gt; hostname<br
/> [user] =&gt; username<br
/> [pass] =&gt; password<br
/> [path] =&gt; /path<br
/> [query] =&gt; arg=value<br
/> [fragment] =&gt; anchor<br
/> )</p><p>/path</p></blockquote><p>So pretty useful if you want say just the host or query value from a given URL then!</p><p>Another thing to note is that it is not designed to work with relative URLs, meaning that you do need to provide it with fully qualified URLs in order to get something usable back.</p><p>Still, a pretty nifty little function to keep in mind when writing parsing scripts…</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/programming/php-programming/php-memory-usage-information-class.html" rel="bookmark" class="crp_title">PHP Memory Usage Information Class</a></li><li><a
href="http://www.php2s.com/networking/how-to-passwordless-connect-ssh-without-authentication-keys.html" rel="bookmark" class="crp_title">How to passwordless connect SSH without authentication keys</a></li><li><a
href="http://www.php2s.com/programming/php-programming/php-remove-last-character-from-string-substrsubstr_replacertrim.html" rel="bookmark" class="crp_title">PHP: Remove Last Character from String – substr/substr_replace/rtrim</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/virtualization/vmware-esx-emc-clariion-arrays-and-multiple-protocols.html" rel="bookmark" class="crp_title">VMware ESX, EMC CLARiiON Arrays, and Multiple Protocols</a></li><li><a
href="http://www.php2s.com/linux/how-to-split-files-on-linux-freebsd-netbsd-and-openbsd.html" rel="bookmark" class="crp_title">How to Split files on Linux FreeBSD, NetBSD and OpenBSD</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/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/open-source/installing-and-tweaking-homebrew-on-mac-os-x.html" rel="bookmark" class="crp_title">Installing and Tweaking Homebrew on Mac OS X</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></ul></div>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/programming/php-programming/php-tutorial-a-quick-way-to-break-up-a-url-into-usable-pieces.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to disable Ipv6 on GNU / CentOS, Fedora, Debian, Redhat</title><link>http://www.php2s.com/linux/how-to-disable-ipv6-on-gnu-centos-fedora-debian-redhat.html</link> <comments>http://www.php2s.com/linux/how-to-disable-ipv6-on-gnu-centos-fedora-debian-redhat.html#comments</comments> <pubDate>Thu, 02 Feb 2012 15:37:55 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networking]]></category> <category><![CDATA[Servers]]></category> <category><![CDATA[Administration]]></category> <category><![CDATA[ipv6]]></category> <category><![CDATA[Server]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=795</guid> <description><![CDATA[In this tutorial you will learn how to disable IPv6 on Debian and other linux distributions (RHEL, CentOS, Fedora, Ubuntu). I have few servers, which have automatically enabled IPv6 protocols (IPv6 gets automatically enabled on Debian), as well as on most latest Linux distribituions nowdays. Disabling IPv6 network protocol on Linux if not used has [...]]]></description> <content:encoded><![CDATA[<p>In this tutorial you will learn how to disable IPv6 on Debian and other linux distributions (RHEL, CentOS, Fedora, Ubuntu).</p><p>I have few servers, which have automatically enabled IPv6 protocols (IPv6 gets automatically enabled on Debian), as well as on most latest Linux distribituions nowdays.</p><p><span
id="more-795"></span></p><p><strong>Disabling IPv6 network protocol on Linux </strong> if not used has 2 reasons:</p><ol><li>Security (It&#8217;s well known security practice to disable anything not used on a server)<br
/> Besides that IPv6 has been known for few criticil security vulnerabilities, which has historically affected the Linux kernel.</li><li>Performance (Sometimes disabling IPv6 could have positive impact on IPv4 especially on heavy traffic network servers).<br
/> I&#8217;ve red people claiming <em>disabling IPv6</em> improves the DNS performance, however since this is not rumors and did not check it personally I cannot positively confirm this.</li></ol><p>Disabling IPv6 on all GNU / Linuces can be achieved by changing the kernel sysctl settings <span
style="color: #800080;"><strong> net.ipv6.conf.all.disable_ipv6</strong></span> by default <em>net.ipv6.conf.all.disable_ipv6</em> equals 1 which means IPv6 is enabled, hence to <span
style="color: #800080;"><strong>disable IPv6</strong></span> I issued:</p><blockquote><p><code>server:~# sysctl net.ipv6.conf.all.disable_ipv6=0<br
/> </code></p></blockquote><p>To set it permanently on system boot I put the setting also in<span
style="color: #800000;"> <em> /etc/sysctl.conf </em></span>:</p><blockquote><p><code>server:~# echo 'net.ipv6.conf.all.disable = 1 &gt;&gt; /etc/sysctl.conf</code></p></blockquote><p>The aforedescribed methods should be working on most <em>Linux kernels version &gt; 2.6.27 </em>in that number it should work 100% on recent versions of <em><span
style="color: #3366ff;">Fedora, CentOS, Debian and Ubuntu</span>.</em><code><br
/> </code><br
/> <strong>To disable<span
style="color: #800080;"> IPv6 protocol on Debian</span> Lenny </strong>its necessery to blackist the ipv6 module in <span
style="color: #800000;"><em>/etc/modprobe.d/blacklist </em></span>by issuing:</p><blockquote><p><code>echo 'blacklist ipv6' &gt;&gt; /etc/modprobe.d/blacklist </code></p></blockquote><p>On<span
style="color: #800080;"><strong> Fedora </strong>/ <strong>CentOS </strong></span>there is a another<strong> universal &#8220;<span
style="color: #800080;">Redhat</span>&#8221; way disable IPv6</strong>.</p><p>On them disabling IPv6 is done by editting<span
style="color: #800000;"> /etc/sysconfig/</span>network and adding:</p><blockquote><p><code>NETWORKING_IPV6=no<br
/> IPV6INIT=no </code></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-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-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-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-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-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/programming/php-programming/draw-pie-chart.html" rel="bookmark" class="crp_title">How to Draw pie chart in PHP</a></li><li><a
href="http://www.php2s.com/programming/php-programming/a-dynamic-bar-chart.html" rel="bookmark" class="crp_title">A Dynamic Bar Chart in PHP</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/programming/php-programming/cookie-based-login-form-and-get-last-login-time.html" rel="bookmark" class="crp_title">Cookie based login form and get last login time</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></ul></div><h4>Incoming search terms:</h4><ul><li>centos 6 2 ipv6 (1)</li><li>centos 6 2 ipv6 disable (1)</li><li>disabling ipv6 rhel 6 2 (1)</li><li>redhat NETWORKING_IPV6=no (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-disable-ipv6-on-gnu-centos-fedora-debian-redhat.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to clear Squid Proxy Cache on Debian and Ubuntu</title><link>http://www.php2s.com/linux/how-to-clear-squid-proxy-cache-on-debian-and-ubuntu.html</link> <comments>http://www.php2s.com/linux/how-to-clear-squid-proxy-cache-on-debian-and-ubuntu.html#comments</comments> <pubDate>Thu, 02 Feb 2012 15:28:42 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[Squid]]></category> <category><![CDATA[Squid Proxy]]></category> <category><![CDATA[Ubuntu]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=791</guid> <description><![CDATA[In this tutorial i will show how to clear squid proxy cache on Debian and Ubuntu Linux. It was necessery to clean up some squid cache for some proxy users on a Debian host. Until now I’ve used to run only custom build Squid server on Slackware Linux. Thus I was curious if Debian guys [...]]]></description> <content:encoded><![CDATA[<p>In this tutorial i will show how to clear squid proxy cache on Debian and Ubuntu Linux. It was necessery to clean up some squid cache for some proxy users on a Debian host. Until now I’ve used to run only custom build <strong>Squid</strong> server on Slackware Linux.</p><p>Thus I was curious if Debian guys were smart enough to implement a proxy cache cleaning option as an option to be passed on to squid’s init script.</p><p><span
id="more-791"></span></p><p>Honestly I was quite suprised squid clear cache option is not there;</p><blockquote><p><code>squid-cache:~# /etc/init.d/squid3<br
/> Usage: /etc/init.d/squid3 {start|stop|reload|force-reload|restart}<br
/> squid-cache:/#<br
/> </code></p></blockquote><p>As it was not embedded into init script I still hoped, there might be some Debian way to do the proxy cache clearing, so I spend some 10 minutes checking online as well as checked in <em>squid3</em>‘s manual just to find there is no specific command or Debian accepted way to clean squid’s cache.</p><p>Since I couldn’t find any Debian specific, way I did it the old fashioned way <img
src="http://www.pc-freak.net/blog/wp-includes/images/smilies/icon_wink.gif" alt=";)" /> (deleted directory/file structures in <strong> /var/spool/squid3/*</strong> and used squid’s <strong> -z </strong> option, to recreate the swap directories.</p><p>Here is how:</p><blockquote><p><code>squid-cache:~# /etc/init.d/squid3 stop;<br
/> squid-cache:~# rm -Rf /var/spool/squid3/*;<br
/> squid-cache:~# squid3 -z; /etc/init.d/squid3 start<br
/> </code></p></blockquote><p>Finally I was quite amazed to realize, there was not even a crontab script to periodically clear and re-create proxy cache.</p><p>My previous experience with maintaning an office Squid proxy cache has prooved, that periodic cache clean ups are very helpful, especially to resolve issues with cached unreslovable DNS entries in the server.<br
/> Clearing up squid cache every week or something, guarantees that failure to resolve certain hosts at certain times would not stay unresolvable like forever <img
src="http://www.pc-freak.net/blog/wp-includes/images/smilies/icon_wink.gif" alt=";)" /></p><p>In that manner of thougths, I decided to put the following crontab which will twice a month clear up proxy’s cache, to possibly solve some failed squid DNS issues.</p><blockquote><p><code>squid-cache:~# crontab -u root -l &gt; file;<br
/> echo '00 04 12,26 * * /etc/init.d/squid3 stop; rm -Rf /var/spool/squid3/*; squid3 -z; /etc/init.d/squid3 start &gt;/dev/null 2&gt;&amp;1'<br
/> &gt;&gt; file; crontab file<br
/> </code></p></blockquote><p>By the way, implementing the <strong>squid clear cache</strong> in <strong>Debian</strong> and <strong> Ubuntu </strong>‘s init scripts and putting a periodic proxy clear up cron, seems like a feature worthy to be proposed to the distro developers and hopefully be embbed in some of the upcoming distro releases <img
src="http://www.pc-freak.net/blog/wp-includes/images/smilies/icon_wink.gif" alt=";)" /></p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/how-to-generate-new-passowrd-for-squid-proxy-server-user-with-digest-user-authentication.html" rel="bookmark" class="crp_title">How to generate new passowrd for SQUID Proxy Server user with digest user authentication</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/step-by-step-install-and-configure-squid-proxy-server-on-centos-6-2-rhel-6.html" rel="bookmark" class="crp_title">Step by Step Install and Configure Squid Proxy Server on CentOS 6.2 / RHEL 6</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/new-64-bit-linux-system-has-regular-processes-ps-grep-etc-taking-up-way-too-much-virt-mem.html" rel="bookmark" class="crp_title">New 64 bit linux system has regular processes (ps, grep etc) taking up way too much VIRT mem</a></li><li><a
href="http://www.php2s.com/programming/web-programming/ruby-reload-script-or-console-without-restarting-%e2%80%93-ruby-on-rails.html" rel="bookmark" class="crp_title">Ruby Reload Script or Console Without Restarting – Ruby on Rails</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/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/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-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></ul></div><h4>Incoming search terms:</h4><ul><li>download linux image with squid (1)</li><li>slackware (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-clear-squid-proxy-cache-on-debian-and-ubuntu.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to generate new passowrd for SQUID Proxy Server user with digest user authentication</title><link>http://www.php2s.com/linux/how-to-generate-new-passowrd-for-squid-proxy-server-user-with-digest-user-authentication.html</link> <comments>http://www.php2s.com/linux/how-to-generate-new-passowrd-for-squid-proxy-server-user-with-digest-user-authentication.html#comments</comments> <pubDate>Thu, 02 Feb 2012 07:04:16 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[How-To]]></category> <category><![CDATA[Squid]]></category> <category><![CDATA[Squid Proxy]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=782</guid> <description><![CDATA[This tutorial will show you how to  generate new password for proxy user configured on SQUID proxy server configured with digest user authentication. I found the squid password generate script, which generates the one line string which needs to go to the squid user password file: #!/bin/sh user="$1"; realm="$2"; pass="$3"; if [ -z "$1" -o [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/02/squid_proxy_server.jpg"><img
class="alignleft  wp-image-777" title="squid_proxy_server" src="http://www.php2s.com/wp-content/uploads/2012/02/squid_proxy_server-300x269.jpg" alt="" width="88" height="79" /></a>This tutorial will show you how to  generate new password for proxy user configured on SQUID proxy server configured with digest user authentication.<br
/> I found the squid password generate script, which generates the one line string which needs to go to the squid user password file:</p><p><span
id="more-782"></span></p><blockquote><p><code>#!/bin/sh<br
/> user="$1";<br
/> realm="$2";<br
/> pass="$3";<br
/> if [ -z "$1" -o -z "$2" -o -z "$3" ] ; then<br
/> echo "Usage: $0 user password 'realm'";<br
/> exit 1<br
/> fi<br
/> ha1=$(echo -n "$user:$realm:$pass"|md5sum |cut -f1 -d' ')<br
/> echo "$user:$realm:$ha1"</code></p></blockquote><p>You can alternatively <a
href="http://www.php2s.com/wp-content/uploads/2012/02/squid_generate_pass.zip"> download the squid_generate_pass.sh script here </a></p><p>The script accepts three arguments;<br
/> <code></code></p><blockquote><p><code>proxy-server:~# ./squid_generate_pass.sh<br
/> <strong> Usage: ./squid_generate_pass.sh user password 'realm' </strong></code></p></blockquote><p>Thus to generate a new user and password and insert it immediately into let’s say a squid configured user/pass file in <strong> /etc/squid3/users </strong> execute command:</p><blockquote><p><code>proxy-server:~# ./squid_generate_pass.sh admin_user MySecretPassword 'Squid_Configured_Realm'<br
/> &gt;&gt; /etc/squid3/users</code></p></blockquote><p>Where <strong> Squid_Configured_Realm </strong> depends on the realm name configured in <strong>squid.conf</strong>, for example if <em> squid.conf </em> includes some auth configuration similar to:</p><blockquote><p><code>auth_param digest program /usr/lib/squid3/digest_pw_auth -c /etc/squid3/users<br
/> auth_param digest children 2<br
/> auth_param digest realm My_Proxy_Realm<br
/> acl localusers proxy_auth REQUIRED</code></p></blockquote><p>The realm script argument should be <strong> My_Proxy_realm </strong>. If <em> squid_generate_pass </em> does completes without errors, it should add a line to <em> /etc/squid3/users </em> file similar to:</p><blockquote><p><code>proxy-server:~# cat /etc/squid3/users<br
/> admin_user:My_Proxy_realm:3bbcb35e505c52a0024ef2e3ab1910b0</code></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-clear-squid-proxy-cache-on-debian-and-ubuntu.html" rel="bookmark" class="crp_title">How to clear Squid Proxy Cache on Debian and Ubuntu</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/step-by-step-install-and-configure-squid-proxy-server-on-centos-6-2-rhel-6.html" rel="bookmark" class="crp_title">Step by Step Install and Configure Squid Proxy Server on CentOS 6.2 / RHEL 6</a></li><li><a
href="http://www.php2s.com/linux/p-linux-pipes-%e2%80%93-event-triggers-action.html" rel="bookmark" class="crp_title">(P/S) Linux Pipes – Event triggers action</a></li><li><a
href="http://www.php2s.com/programming/web-programming/ruby-reload-script-or-console-without-restarting-%e2%80%93-ruby-on-rails.html" rel="bookmark" class="crp_title">Ruby Reload Script or Console Without Restarting – Ruby on Rails</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-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/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/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-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></ul></div><h4>Incoming search terms:</h4><ul><li>password file for digest authentication on squid (1)</li><li>proxy host sh (1)</li><li>squid proxy server password generator (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-generate-new-passowrd-for-squid-proxy-server-user-with-digest-user-authentication.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to Restrict Web Access By Time Using Squid Proxy Server on CentOS 6.2/ RHEL 6</title><link>http://www.php2s.com/linux/how-to-restrict-web-access-by-time-using-squid-proxy-server-on-centos-6-2-rhel-6.html</link> <comments>http://www.php2s.com/linux/how-to-restrict-web-access-by-time-using-squid-proxy-server-on-centos-6-2-rhel-6.html#comments</comments> <pubDate>Thu, 02 Feb 2012 06:42:25 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[CentOS 6.2]]></category> <category><![CDATA[How-To]]></category> <category><![CDATA[RHEL]]></category> <category><![CDATA[RHEL 6]]></category> <category><![CDATA[Squid]]></category> <category><![CDATA[Squid Proxy]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=776</guid> <description><![CDATA[This tutorial covers how to control internet access by time using Squid Proxy cache server for CentOS 6.2/RHEL 6. Before beginning this steps, please make sure you have properly configured the squid proxy server. If not, please follow this article to install squid proxy server on CentOS 6.2/RHEL 6 (How to Install and Configure Squid [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/02/squid_proxy_server.jpg"><img
class="alignleft  wp-image-777" title="squid_proxy_server" src="http://www.php2s.com/wp-content/uploads/2012/02/squid_proxy_server-300x269.jpg" alt="" width="126" height="113" /></a>This tutorial covers how to control internet access by time using <strong>Squid</strong> Proxy cache server for CentOS 6.2/RHEL 6. Before beginning this steps, please make sure you have properly configured the <em>squid</em> proxy server.</p><p>If not, please follow this article to install <span
style="text-decoration: underline;">squid</span> proxy server on CentOS 6.2/RHEL 6 (<a
href="http://www.php2s.com/linux/step-by-step-install-and-configure-squid-proxy-server-on-centos-6-2-rhel-6.html">How to Install and Configure Squid Proxy Server on CentOS 6.2/RHEL 6</a>)</p><p><span
id="more-776"></span></p><p><strong>1. Open the squid.conf configuration file :</strong></p><blockquote><pre>[root@php2s ~]# vi /etc/squid/squid.conf</pre></blockquote><p><strong>2. In this example, the setup just allow surfing_hour’s access from the php2s.com network, while always restricting access to ehowstuff.com network other than surfing hour.</strong></p><blockquote><pre># Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl php2s.com src 192.168.1.0/24    # Your php2s.com internal network</pre></blockquote><p><strong>3. Define surfing_hour group’s name and time.</strong></p><blockquote><pre>#Add this at the bottom of the ACL Section
#
acl surfing_hours time M T W H F 08:00-17:00
#</pre></blockquote><p><strong>4. Always restricting access to php2s.com, but allow during surfing hours only.</strong></p><blockquote><pre># Only allow cachemgr access from php2s.com
http_access allow php2s.com surfing_hours
http_access deny php2s.com</pre></blockquote><p><strong>5. Restart Squid proxy server to take effect :</strong></p><blockquote><pre>[root@php2s ~]# service squid restart
Stopping squid: ................                           [  OK  ]
Starting squid: .                                          [  OK  ]</pre></blockquote><p><strong>Full Configuration of the Squid Cache Proxy Configuration :</strong></p><blockquote><pre>#
# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8	# RFC1918 possible internal network
acl localnet src 172.16.0.0/12	# RFC1918 possible internal network
acl localnet src 192.168.0.0/16	# RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines
acl php2s.com src 192.168.1.0/24    # Your php2s.com internal network

acl SSL_ports port 443
acl Safe_ports port 80		# http
acl Safe_ports port 21		# ftp
acl Safe_ports port 443		# https
acl Safe_ports port 70		# gopher
acl Safe_ports port 210		# wais
acl Safe_ports port 1025-65535	# unregistered ports
acl Safe_ports port 280		# http-mgmt
acl Safe_ports port 488		# gss-http
acl Safe_ports port 591		# filemaker
acl Safe_ports port 777		# multiling http
acl CONNECT method CONNECT

#Add this at the bottom of the ACL Section
#
acl surfing_hours time M T W H F 08:00-17:00
#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Only allow cachemgr access from ehowstuff.com
http_access allow php2s.com surfing_hours
http_access deny php2s.com

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost

#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
#http_access allow localnet
http_access allow localhost
http_access allow php2s.com

# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 3128

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

# Uncomment and adjust the following to add a disk cache directory.
#cache_dir ufs /var/spool/squid 100 16 256

# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern -i (/cgi-bin/|\?) 0	0%	0
refresh_pattern .		0	20%	4320</pre></blockquote><p>if you like the tutorial please subscribe.</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/step-by-step-install-and-configure-squid-proxy-server-on-centos-6-2-rhel-6.html" rel="bookmark" class="crp_title">Step by Step Install and Configure Squid Proxy Server on CentOS 6.2 / RHEL 6</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-clear-squid-proxy-cache-on-debian-and-ubuntu.html" rel="bookmark" class="crp_title">How to clear Squid Proxy Cache on Debian and Ubuntu</a></li><li><a
href="http://www.php2s.com/linux/how-to-generate-new-passowrd-for-squid-proxy-server-user-with-digest-user-authentication.html" rel="bookmark" class="crp_title">How to generate new passowrd for SQUID Proxy Server user with digest user authentication</a></li><li><a
href="http://www.php2s.com/open-source/nginx/how-to-install-nginx-with-https-support-on-centos.html" rel="bookmark" class="crp_title">How to Install Nginx with HTTPS support on CentOS</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-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/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-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/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></ul></div><h4>Incoming search terms:</h4><ul><li>centos 6 server configurations (2)</li><li>reset password for webmin centos6 2 (2)</li><li>configurar phpMyAdmin en centos 6 2 (1)</li><li>how to configure squid web proxy server in ubuntu 11 10 (1)</li><li>install phpmyadmin centos 6 2 (1)</li><li>phpmyadmin for centos 6 2 (1)</li><li>phpymadmi centos 6 2 (1)</li><li>rhel 6 2 yum proxy configuration (1)</li><li>squid proxy configuration in redhat and centos 6 (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-restrict-web-access-by-time-using-squid-proxy-server-on-centos-6-2-rhel-6.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Fast Ubuntu Linux BitTorrent Download</title><link>http://www.php2s.com/uncategorized/fast-ubuntu-linux-bittorrent-download.html</link> <comments>http://www.php2s.com/uncategorized/fast-ubuntu-linux-bittorrent-download.html#comments</comments> <pubDate>Wed, 01 Feb 2012 14:18:36 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[download]]></category> <category><![CDATA[Torrent]]></category> <category><![CDATA[Ubuntu]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=766</guid> <description><![CDATA[Fast Ubuntu torrent download links, below are the links to download Ubuntu via bit torrent this is by far the fastest way to download Ubuntu and costs the Ubuntu project less money in bandwidth (However, I am sure Mark can afford it!). Also download via torrent will prevent corrupt HTTP downloads, Ubuntu torrent links below: [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/02/Ubuntu_3D_Logo.jpg"><img
class="alignleft  wp-image-774" title="Ubuntu_3D_Logo" src="http://www.php2s.com/wp-content/uploads/2012/02/Ubuntu_3D_Logo-300x251.jpg" alt="" width="126" height="106" /></a>Fast Ubuntu torrent download links, below are the links to download Ubuntu via bit torrent this is by far the fastest way to download Ubuntu and costs the Ubuntu project less money in bandwidth (However, I am sure Mark can afford it!).</p><p>Also download via torrent will prevent corrupt HTTP downloads, Ubuntu torrent links below:</p><p><span
id="more-766"></span></p><h2>Ubuntu 11.10 torrents</h2><h3>Ubuntu 11.10 Alternate Torrent</h3><ul><li><a
href="http://releases.ubuntu.com/11.10/ubuntu-11.10-alternate-amd64.iso.torrent">ubuntu-11.10-alternate-amd64.iso.torrent</a></li><li><a
href="http://releases.ubuntu.com/11.10/ubuntu-11.10-alternate-i386.iso.torrent">ubuntu-11.10-alternate-i386.iso.torrent</a></li></ul><h3>Ubuntu 11.10 Desktop Torrent</h3><ul><li><a
href="http://releases.ubuntu.com/11.10/ubuntu-11.10-desktop-amd64.iso.torrent">ubuntu-11.10-desktop-amd64.iso.torrent</a></li><li><a
href="http://releases.ubuntu.com/11.10/ubuntu-11.10-desktop-i386.iso.torrent">ubuntu-11.10-desktop-i386.iso.torrent</a></li></ul><h3>Ubuntu 110.10 Server Torrent</h3><ul><li><a
href="http://releases.ubuntu.com/11.10/ubuntu-11.10-server-amd64.iso.torrent">ubuntu-11.10-server-amd64.iso.torrent</a></li><li><a
href="http://releases.ubuntu.com/11.10/ubuntu-11.10-server-i386.iso.torrent">ubuntu-11.10-server-i386.iso.torrent</a></li></ul><h2>Ubuntu 10.04 LTS Torrents</h2><h3>Ubuntu 10.04 LTS Alternate Torrent</h3><ul><li><a
href="http://releases.ubuntu.com/lucid/ubuntu-10.04.3-alternate-amd64.iso.torrent">ubuntu-10.04.3-alternate-amd64.iso.torrent</a></li><li><a
href="http://releases.ubuntu.com/lucid/ubuntu-10.04.3-alternate-i386.iso.torrent">ubuntu-10.04.3-alternate-i386.iso.torrent</a></li></ul><h3>Ubuntu 10.04 LTS Desktop Torrent</h3><ul><li><a
href="http://releases.ubuntu.com/lucid/ubuntu-10.04.3-desktop-amd64.iso.torrent">ubuntu-10.04.3-desktop-amd64.iso.torrent</a></li><li><a
href="http://releases.ubuntu.com/lucid/ubuntu-10.04.3-desktop-i386.iso.torrent">ubuntu-10.04.3-desktop-i386.iso.torrent</a></li></ul><h3>Ubuntu 10.04 LTS Netbook Torrent</h3><ul><li><a
href="http://releases.ubuntu.com/lucid/ubuntu-10.04-netbook-i386.iso.torrent">ubuntu-10.04-netbook-i386.iso.torrent</a></li></ul><h3>Ubuntu 10.04 LTS Server Torrent</h3><ul><li><a
href="http://releases.ubuntu.com/10.04.3/ubuntu-10.04.3-server-amd64.iso.torrent">ubuntu-10.04.3-server-amd64.iso.torrent</a></li><li><a
href="http://releases.ubuntu.com/lucid/ubuntu-10.04.3-server-i386.iso.torrent">ubuntu-10.04.3-server-i386.iso.torrent</a></li></ul><p>&nbsp;</p><p>These Ubuntu Torrent links should be the fastest around, have fun installing and using your new Ubuntu systems.</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><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/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/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-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-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/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-creat-tun-tap-devices-on-ubuntu-linux.html" rel="bookmark" class="crp_title">How to Create tun/tap devices on Ubuntu/ Linux</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/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/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>split download ubuntu 10 04 3 (1)</li><li>ubuntu 11 10 torrent (1)</li><li>ubuntu 110 10 password (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/uncategorized/fast-ubuntu-linux-bittorrent-download.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Step by Step Install and Configure Squid Proxy Server on CentOS 6.2 / RHEL 6</title><link>http://www.php2s.com/linux/step-by-step-install-and-configure-squid-proxy-server-on-centos-6-2-rhel-6.html</link> <comments>http://www.php2s.com/linux/step-by-step-install-and-configure-squid-proxy-server-on-centos-6-2-rhel-6.html#comments</comments> <pubDate>Tue, 31 Jan 2012 15:48:13 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Centos]]></category> <category><![CDATA[RHEL]]></category> <category><![CDATA[Squid]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=759</guid> <description><![CDATA[This tutorial will show you steps by step how to install and configure a Squid 3 Proxy Server on CentOS6.2 / RHEL 6. Squid service plays two main roles which mainly act as a caching proxy server between the user and the web. Second role, squid also regularly used as a content accelerator, or reverse [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/01/redhat-logo-large.jpg"><img
class="alignleft  wp-image-690" title="redhat-logo-large" src="http://www.php2s.com/wp-content/uploads/2012/01/redhat-logo-large.jpg" alt="" width="104" height="134" /></a>This tutorial will show you steps by step how to install and configure a Squid 3 Proxy Server on CentOS6.2 / RHEL 6.</p><p>Squid service plays two main roles which mainly act as a caching proxy server between the user and the web. Second role, squid also regularly used as a content accelerator, or reverse proxy, intercepting requests to a server and using a cached version of the page to serve the request. Follow below steps to install and configure squid.</p><p><span
id="more-759"></span></p><p><strong>1.</strong> Install Squid proxy using yum command. This installation is performed using local yum repository as documented in this article.</p><blockquote><p>[root@php2s ~]# yum install squid -y</p></blockquote><p><strong>2.</strong> Configure server hosts file :</p><blockquote><p>[root@php2s ~]# vi /etc/hosts</p><p>127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4<br
/> ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6</p><p>192.168.1.44 linux.php2s.com</p></blockquote><p><strong>3.</strong> Configure main squid configuration file. Use vi to edit.</p><blockquote><p>[root@php2s ~]# vi /etc/squid/squid.conf</p></blockquote><p><strong>4.</strong> Add your internal network name into the IP networks list where browsing should be allowed. In this example, your internal network name is php2s.com.</p><blockquote><p>acl localnet src 10.0.0.0/8     # RFC1918 possible internal network<br
/> acl localnet src 172.16.0.0/12  # RFC1918 possible internal network<br
/> acl localnet src 192.168.0.0/16 # RFC1918 possible internal network<br
/> acl localnet src fc00::/7       # RFC 4193 local private network range<br
/> acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines<br
/> acl ehowstuff.com src 192.168.1.0/24    # Your internal network</p></blockquote><p><strong>5.</strong> Add php2s.com network in the ACL section list IP networks where browsing should be allowed :</p><blockquote><p>#http_access allow localnet<br
/> http_access allow localhost<br
/> http_access allow php2s.com</p></blockquote><p><strong>6.</strong> Make sure squid proxy port is uncomment. You can change the proxy port to any available port here. As an example, other available port is 8080.</p><blockquote><p># Squid normally listens to port 3128<br
/> http_port 3128</p></blockquote><p><strong>7.</strong> Configure auto start at boot for squid service :</p><blockquote><p>[root@php2s ~]# chkconfig squid on</p></blockquote><p><strong>8.</strong> Start squid service :</p><blockquote><p>[root@php2s ~]# service squid restart<br
/> Stopping squid: &#8230;&#8230;&#8230;&#8230;&#8230;.                           [  OK  ]<br
/> Starting squid: .                                          [  OK  ]</p></blockquote><p><strong>9.</strong> Client browser configuration should be as below :</p><p><a
href="http://www.php2s.com/wp-content/uploads/2012/01/proxy-centos6.2.png"><img
class="size-full wp-image-760 aligncenter" title="proxy-centos6.2" src="http://www.php2s.com/wp-content/uploads/2012/01/proxy-centos6.2.png" alt="" width="384" height="339" /></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-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/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-clear-squid-proxy-cache-on-debian-and-ubuntu.html" rel="bookmark" class="crp_title">How to clear Squid Proxy Cache on Debian and Ubuntu</a></li><li><a
href="http://www.php2s.com/linux/how-to-generate-new-passowrd-for-squid-proxy-server-user-with-digest-user-authentication.html" rel="bookmark" class="crp_title">How to generate new passowrd for SQUID Proxy Server user with digest user authentication</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/open-source/nginx/how-to-install-nginx-with-https-support-on-centos.html" rel="bookmark" class="crp_title">How to Install Nginx with HTTPS support on CentOS</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/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/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><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></ul></div><h4>Incoming search terms:</h4><ul><li>step by step squid configuration in rhel 6 (2)</li><li>redhat squid howto (2)</li><li>clear squid centos 6 (1)</li><li>squid proxy complete configuration on rhel video (1)</li><li>reverse proxy in squid - centos (1)</li><li>install squid proxy on centos step by sterp (1)</li><li>install reverse proxy centos (1)</li><li>howto install proxy-server in centos6 (1)</li><li>how to install squid on centos 6 2 (1)</li><li>how to install squid centos 6 2 (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/step-by-step-install-and-configure-squid-proxy-server-on-centos-6-2-rhel-6.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Video Editor for Linux, Openshot 1.4.1 has been released</title><link>http://www.php2s.com/open-source/video-editor-for-linux-openshot-1-4-1-has-been-released.html</link> <comments>http://www.php2s.com/open-source/video-editor-for-linux-openshot-1-4-1-has-been-released.html#comments</comments> <pubDate>Tue, 31 Jan 2012 14:51:44 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Open Source]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[openshot]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=750</guid> <description><![CDATA[Openshot1.4.1 has been released! This was originally going to be a quick and simple bug fix release, but instead, has grown into a more full-featured release. This has been a very busy month for OpenShot, with a trip to SCALE 10x, a couple presentations, and now a new release! My head is still spinning,. Openshot1.4.1 [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/01/OriginalOpenShotLogo.jpg"><img
class="alignleft  wp-image-752" title="OriginalOpenShotLogo" src="http://www.php2s.com/wp-content/uploads/2012/01/OriginalOpenShotLogo-300x225.jpg" alt="" width="126" height="95" /></a><a
href="http://www.openshotvideo.com/2012/01/its-here-version-141-released.html">Openshot1.4.1</a> has been released! This was originally going to be a quick and simple bug fix release, but instead, has grown into a more full-featured release. This has been a very busy month for OpenShot, with a trip to SCALE 10x, a couple presentations, and now a new release! My head is still spinning,. Openshot1.4.1 comes with a New 3D animation (wireframe text), New Titles (gold) ,New Effects (fish eye), New Animation Presets and more.</p><p><span
id="more-750"></span></p><p><strong>What`s new on Openshot 1.4.1:</strong></p><ul><li>New 3D animation (wireframe text)</li><li>New Titles (gold)</li><li>New Effects (fish eye)</li><li>New Animation Presets</li><li>Support for Blender 2.6.X</li><li>Localization fixes (seg faults, audio volume, rotation effect)</li><li>UI bugs (disappearing icons using some GTK themes)</li><li>Improved Help Manual</li><li>Improved Title UI (interactive font list)</li><li>Improved Precision (clip length, default image length)</li><li>Tons of bug fixes! (view all bug reports)</li></ul><h3><strong></strong><a
href="http://www.php2s.com/wp-content/uploads/2012/01/openshot1.4.1.jpg"><img
class="aligncenter size-full wp-image-755" title="openshot1.4.1" src="http://www.php2s.com/wp-content/uploads/2012/01/openshot1.4.1.jpg" alt="" width="430" height="310" /></a></h3><h3><strong>Installation of Openshot1.4.1</strong></h3><p><strong>- Ubuntu and LinuxMint  ppa:</strong></p><p>Open terminal and enter the following commands:</p><blockquote><p>sudo add-apt-repository ppa:jonoomph/openshot-edge<br
/> sudo apt-get update<br
/> sudo apt-get install openshot openshot-doc</p></blockquote><p><strong>- For other Linux distribution</strong>, please download this new release from the <a
href="http://www.openshot.org/download/">download page</a></p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><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/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/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/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/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/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/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/nginx/how-to-install-nginx-with-https-support-on-centos.html" rel="bookmark" class="crp_title">How to Install Nginx with HTTPS support on CentOS</a></li><li><a
href="http://www.php2s.com/linux/how-to-improve-battery-life-of-linux-system-laptop-pc.html" rel="bookmark" class="crp_title">How to improve battery life of Linux System / Laptop / PC</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></ul></div><h4>Incoming search terms:</h4><ul><li>centos openshot (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/open-source/video-editor-for-linux-openshot-1-4-1-has-been-released.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to Install Nginx with HTTPS support on CentOS</title><link>http://www.php2s.com/open-source/nginx/how-to-install-nginx-with-https-support-on-centos.html</link> <comments>http://www.php2s.com/open-source/nginx/how-to-install-nginx-with-https-support-on-centos.html#comments</comments> <pubDate>Mon, 30 Jan 2012 10:23:46 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Nginx]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Centos]]></category> <category><![CDATA[How-To]]></category> <category><![CDATA[Https]]></category> <category><![CDATA[nginx]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=742</guid> <description><![CDATA[Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Igor Sysoev started development of Nginx in 2002, with the first public release in 2004. Nginx now hosts nearly 12.18% (22.2M) of all domains worldwide. As Netcraft predicted, Nginx now surpasses Microsoft IIS as the second most [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/01/nginx_small1.png"><img
class="alignleft size-full wp-image-743" title="nginx_small1" src="http://www.php2s.com/wp-content/uploads/2012/01/nginx_small1.png" alt="Nginx Logo" width="150" height="50" /></a>Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Igor Sysoev started development of Nginx in 2002, with the first public release in 2004. Nginx now hosts nearly 12.18% (22.2M) of all domains worldwide. As Netcraft predicted, Nginx now surpasses Microsoft IIS as the second most popular web server.</p><p>Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption. This tutorial will help those who is trying to install Nginx with HTTPS support.<span
id="more-742"></span></p><p>Note: The ssl certification is self generated. Therefore it is not recommended for commercial websites, though it can be used for personal use such as hosting an administration area</p><p><strong>Download Nginx and Install It</strong></p><blockquote><p>cd<br
/> wget http://nginx.org/download/nginx-1.0.11.tar.gz<br
/> tar -zxvf nginx-1.0.11.tar.gz<br
/> cd nginx-1.0.11<br
/> ./configure  &#8211;with-http_ssl_module<br
/> make<br
/> make install</p></blockquote><p><strong>Now, let us generate a self signed ssl certificate valid for 1 year</strong></p><blockquote><p>cd /usr/local/nginx/conf<br
/> openssl genrsa -out server.key 1024<br
/> openssl req -new -key server.key -out server.csr -subj &#8220;/C=ab/ST=cd/L=ef/CN=ghij&#8221;<br
/> mv server.key server.key.org<br
/> openssl rsa -in server.key.org -out server.key<br
/> openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt</p></blockquote><p><strong>Final step</strong><br
/> Edit nginx configuration</p><blockquote><p>nano /usr/local/nginx/conf/nginx.conf</p></blockquote><p>Comment out the https section</p><blockquote><p>server {<br
/> listen       443;<br
/> server_name  localhost;</p><p>ssl                  on;<br
/> ssl_certificate      server.crt;<br
/> ssl_certificate_key  server.key;</p><p>ssl_session_timeout  5m;</p><p>ssl_protocols  SSLv2 SSLv3 TLSv1;<br
/> ssl_ciphers  HIGH:!aNULL:!MD5;<br
/> ssl_prefer_server_ciphers   on;</p><p>location / {<br
/> root   html;<br
/> index  index.html index.htm index.php;<br
/> }<br
/> }</p></blockquote><p>&nbsp;</p><p>That is fine.</p><p><strong>Now you have to restart nginx to take effect</strong></p><blockquote><p>cd /usr/local/nginx/sbin/<br
/> ./nginx -s stop<br
/> ./nginx</p></blockquote><p>&nbsp;</p><p>Now you can browser https://serverip</p><p>Please subscribe us if you like this blog.</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-virtualhost-by-different-domains-nginx.html" rel="bookmark" class="crp_title">How to configure VirtualHost by different domains (nginx)</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/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/step-by-step-install-and-configure-squid-proxy-server-on-centos-6-2-rhel-6.html" rel="bookmark" class="crp_title">Step by Step Install and Configure Squid Proxy Server on CentOS 6.2 / RHEL 6</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/run-php-file-without-create-any-file-via-wget-to-cronjob-of-linux.html" rel="bookmark" class="crp_title">Run PHP File Without Create Any File Via Wget to Cronjob of Linux</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><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/open-source/installing-and-tweaking-homebrew-on-mac-os-x.html" rel="bookmark" class="crp_title">Installing and Tweaking Homebrew on Mac OS X</a></li><li><a
href="http://www.php2s.com/linux/how-to-generate-new-passowrd-for-squid-proxy-server-user-with-digest-user-authentication.html" rel="bookmark" class="crp_title">How to generate new passowrd for SQUID Proxy Server user with digest user authentication</a></li></ul></div><h4>Incoming search terms:</h4><ul><li>centos 6 2 nginx (2)</li><li>install ngix centos (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/open-source/nginx/how-to-install-nginx-with-https-support-on-centos.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to Split files on Linux FreeBSD, NetBSD and OpenBSD</title><link>http://www.php2s.com/linux/how-to-split-files-on-linux-freebsd-netbsd-and-openbsd.html</link> <comments>http://www.php2s.com/linux/how-to-split-files-on-linux-freebsd-netbsd-and-openbsd.html#comments</comments> <pubDate>Mon, 30 Jan 2012 07:35:36 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[FreeBSD]]></category> <category><![CDATA[NetBSD]]></category> <category><![CDATA[OpenBSD]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=736</guid> <description><![CDATA[Did you have the need to sometimes split an SQL extra large files to few pieces in order to be able to later upload it via phpmyadmin? Did you needed an extra large video or data file to be cut in few pieces in order to transfer it in few pieces over an USB stick? [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/01/Linux-online-inc-full-s-.png"><img
class="alignleft  wp-image-737" title="Linux-online-inc-full-s-" src="http://www.php2s.com/wp-content/uploads/2012/01/Linux-online-inc-full-s--250x300.png" alt="" width="150" height="180" /></a><br
/> Did you have the need to sometimes split an SQL extra large files to few pieces in order to be able to later upload it via phpmyadmin?<br
/> Did you needed an extra large video or data file to be cut in few pieces in order to transfer it in few pieces over an USB stick?<br
/> Or just to give you an another scenario where I sometimes need to have an enormous file let’s say 3G split in few pieces, in order to later read it in <strong> vim</strong> or <strong> mcedit </strong>.<br
/> I sometimes need to achieve this on FreeBSD and Linux hosts thus I thought it will be helpful to somebody to give a very quick tutorial on the way large files can be cut in pieces on Linux and BSD hosts.</p><p><span
id="more-736"></span></p><p>GNU/Linux and FreeBSD are equipped with the <strong> split </strong> command. The purpose of this command is exactly the cutting of a file to a number of pieces.</p><p>On Linux the <strong> split </strong> command comes by default install to the system with the <em> coreutils </em> package on most Debian (deb) based and Redhat based (rpm) distributions, theerefore Linux’s version of split is GNU/split since it’s part of the GNU Coreutils package. An interesting fact about Linux split is that one of the two programmers who has coded it is Richard Stallman</p><p>On BSD Unix split is the<strong> AT&amp;∓T UNIX (BSD) split </strong></p><p>In the past splitting files in pieces was much more needed than today, as people used floppy drives to transfer data, though today with the bloom of Internet and the improve of the data carriers transferring even an extra large files from one place to another is a way more trivial task still at many occasions splitting it in pieces is needed.</p><p>Even though today splitting file is very rarely required, still there are times when being able to split a file in <strong> X number </strong> of parts is very much needed.<br
/> Maybe the most common use of splitting a file today is necessery when a large SQL file dumps, like let’s say 200 MBytes of info database needs to be moved from ane hosting provider to another one.<br
/> Many hosting providers does disallow direct access with standard mySQL client programs to the database directly and only allow a user to connect only via <strong>phpMyAdmin</strong> or some other web interface like Cpanel to improve data into the SQL or PostgreSQL server.</p><p>In such times, having knowledge on the Unix <strong>split</strong> command is a priceless asset.</p><p>Even though on Linux and BSD the code for the split command is not identical and GNU/split and BSD/split has some basic differences, the use of <strong> split </strong> on both of these Unices is identical.<br
/> The way to split a file in few pieces using on both Linux and BSD OSes is being done with one and the same command, here is how:</p><p><span
style="color: #3366ff;"><strong>1. Splitting file in size of 40 mb On Linux</strong></span></p><blockquote><p><code>linux:~# split -b 40m SQL-Backup-Data.sql SQL-Backup-Data_split<br
/> </code></p></blockquote><p><span
style="color: #3366ff;"><strong>2. Splitting file in size of 40mb on BSD (FreeBSD, OpenBSD, NetBSD) </strong></span></p><blockquote><p><code>freebsd# split -b 40m SQL-Backup-Data.sql SQL-Backup-Data_split<br
/> </code></p></blockquote><p>The Second argument the split command takes is actually called a prefix, the prefix is used as a basis name for the creation of the newly generated files cut in pieces file based on SQL-Backup-Data.sql.</p><p>As I said identical command will split the <strong> SQL-Backup-Data.sql </strong> files in a couple of parts which of it will be sized 40 megas.</p><p>These command will generate few files output like:</p><blockquote><p><code>freebsd# ls -1 SQL-Backup-Dat*SQL-Backup-Data.sql<br
/> SQL-Backup-Dataa<br
/> SQL-Backup-Dataab<br
/> SQL-Backup-Dataac<br
/> SQL-Backup-Dataad<br
/> SQL-Backup-Dataae<br
/> </code></p></blockquote><p>As you see the <strong>SQL-Backup-Data.sql</strong> with size 200MB is being split in four files each of which is sized 40mbytes.</p><p>After the files are transfered to another Linux or BSD host, they can easily be again united in the original file with the command:</p><blockquote><p><code>linux:~# for i in $(ls -1 SQL-Backup-Data_split*); echo $i &gt;&gt; SQL-Backup-Data.sql<br
/> </code></p></blockquote><p>Alternatively in most Unices also using cat should be enough to collect back the pieces into the original file, like so:</p><blockquote><p><code>freebsd# cat SQL-Backup-Data_split* &gt;&gt; SQL-Backup-Data.sql</code></p></blockquote><p>Hope the tutorial will be useful.</p><p>∓</p><p>AT</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><li><a
href="http://www.php2s.com/linux/linux-encryptdecrypt-files-command-gpg-interactivenon-interactive-modes.html" rel="bookmark" class="crp_title">Linux Encrypt/Decrypt Files Command, GPG Interactive/Non Interactive Modes</a></li><li><a
href="http://www.php2s.com/virtualization/esxi-4-backup-and-restore-configuration.html" rel="bookmark" class="crp_title">Esxi 4 Backup and Restore configuration</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-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/recursively-copy-whole-directories-ftp-linux-command-line.html" rel="bookmark" class="crp_title">Recursively copy whole directories FTP Linux command line</a></li><li><a
href="http://www.php2s.com/programming/php-programming/php-tutorial-a-quick-way-to-break-up-a-url-into-usable-pieces.html" rel="bookmark" class="crp_title">PHP Tutorial: A Quick Way to Break up a URL into usable Pieces</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/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/arch-linux-compared-to-other-distributions.html" rel="bookmark" class="crp_title">Arch Linux Compared to Other Distributions</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></ul></div><h4>Incoming search terms:</h4><ul><li>bsd split file command (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-split-files-on-linux-freebsd-netbsd-and-openbsd.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to install the phpbb forum on Debian (Squeeze/Sid) Linux</title><link>http://www.php2s.com/linux/how-to-install-the-phpbb-forum-on-debian-squeezesid-linux.html</link> <comments>http://www.php2s.com/linux/how-to-install-the-phpbb-forum-on-debian-squeezesid-linux.html#comments</comments> <pubDate>Mon, 30 Jan 2012 07:24:43 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[phpbb]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=714</guid> <description><![CDATA[In this tutorial you will learn how to install phpbb3 on Debian Linux phpBB forum is a free flat-forum bulletin board software solution that can be used to stay in touch with a group of people or can power your entire website. With an extensive database of user-created modifications and styles database containing hundreds of [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/01/Debian1.jpg"><img
class="alignleft  wp-image-726" title="Debian" src="http://www.php2s.com/wp-content/uploads/2012/01/Debian1-300x145.jpg" alt="" width="210" height="102" /></a>In this tutorial you will learn how to install phpbb3 on Debian Linux<br
/> <em><a
title="Install PHPBB in Ubuntu" href="http://www.phpbb.com/" target="_blank">phpBB forum</a> is a free flat-forum bulletin board software solution that can be used to stay in touch with a group of people or can power your entire website. With an extensive database of user-created modifications and styles database containing hundreds of style and image packages to customise your board, you can create a very unique forum in minutes.</em></p><p>Before to start installing the Forum, you need to  <span
style="color: #ff0000;"><strong><a
href="http://www.php2s.com/linux/installing-lamp-server-on-debian-squeeze.html"><span
style="color: #ff0000;">Install LAMP on Debian</span></a></strong></span>, to complete this step.<br
/> <span
id="more-714"></span></p><p>Here are the exact steps I followed to have a properly it properly instlled:</p><p><span
style="color: #3366ff;"><strong> 1. Install the phpbb3 debian package </strong></span><br
/> This was pretty straight forward:</p><blockquote><p><code>debian:~# apt-get install phpbb3<br
/> </code></p></blockquote><p>At this point of installation I’ve faced a <strong>dpkg-reconfigure</strong> phpbb deb package configuration issue:<br
/> I was prompted to pass in the credentials for my <strong>MySQL</strong> password right after I’ve selected the <em>MySQL</em> as my preferred database back engine.<br
/> I’ve feeded my MySQL root password as well as my preferred forum database name, however the database installation failed because, somehow the configuration procedure tried to connect to my MySQL database with the <strong> htcheck </strong> user.<br
/> I guess this has to be a bug in the package itself or something from my previous installation misconfigured the way the debian database backend configuration was operating.<br
/> My assumption is that my previously installed <em>htcheck </em> package or something beforehand I’ve done right after the <strong> htcheck and htcheck-php </strong> packages installation.</p><p>after the package configuration failed still the package had a status of properly installed when I reviewed it with <strong> dpkg </strong><br
/> I’ve thought about trying to manually reconfigure it using the <strong> dpkg-reconfigure </strong> debian command and I gave it a try like that:</p><blockquote><p><code>debian:~# dpkg-reconfigure phpbb3<br
/> </code></p></blockquote><p>This time along with the other fields I’ve to fill in the ncurses interface I was prompted for a username before the password prompted appeared.<br
/> Logically I tried to fill in the <strong> root </strong> as it’s my global privileges MySQL allowed user.<br
/> However that didn’t helped at all and again the configuration tried to send the credentials with user <strong> htcheck </strong> to my MySQL database server.<br
/> To deal with the situation I had to approach it in the good old manual way.</p><p><span
style="color: #3366ff;"><strong> 2. Manually prepare / create the required phpbb forum database</strong></span></p><p>To completet that connected to the MySQL server with the mysql client and created the proper database like so:</p><blockquote><p><code>debian:~# mysql -u root -p<br
/> mysql&gt;<br
/> CREATE database phpbb3forum;<br
/> </code></p></blockquote><p><span
style="color: #3366ff;"><strong> 3. Use phpmyadmin or the mysql client command line to create a new user for the phpbb forum</strong></span></p><p>Here since adding up the user using the phpmyadmin was a way easier to do I decided to go that route, anyways using the mysql cli is also an option.</p><p>From phpmyadmin It’s pretty easy to add a new user and grant privileges to a certain database, to do so navigate to the following database:</p><p><strong> Privileges -&gt; -&gt; Add a new user -&gt;</strong></p><p>Now type your <strong> User name: </strong>, <strong> Host </strong>, <strong> Password </strong>, <strong> Re-type password </strong>, also for a <strong> Host: </strong> you have to choose <strong> Local </strong> from the drop down menu.</p><p>Leave the <strong>Database for user</strong> field empty as we have already previously created our desired database in step 2 of this article</p><p>Now press the <strong>“Go”</strong> button and the user will get created.</p><p>Further after choose the <em> Privileges </em> menu right on the bottom of the page once again, select through the checkbox the username you have just created let’s say the previously created user is <strong> phpbb3 </strong></p><p>Go to <strong> Action </strong> (There is a picture with a man and a pencil on the right side of this button</p><p>Scroll down to the page part saying <strong> Database-specific privileges </strong> and in the field <strong> Add privileges on the following database: </strong> fill in your previosly created database name in our case it’s <strong> phpbb3forum </strong></p><p>and then press the <strong>“Go”</strong> button once again.<br
/> A page will appear where you will have to select the exact privileges you would like to grant on the specific selected database.<br
/> For some simplicity just check all the checkbox to grant as many privilegs to your database as you could.<br
/> Then again you will have to press the <strong> “Go” </strong> button and there you go you should have already configured an username and database ready to go with your new phpbb forum.</p><p><span
style="color: #3366ff;"><strong> 4. Create a virtualhost if you would like to have the forum as a subdomain or into a separate domain </strong></span></p><p>If you decide to have the forum on a separate sub-domain or domain as I did you will have to add some kind of Virtualhost into either your Apache configuration <span
style="color: #3366ff;">/etc/apache2/apache2.conf</span> or into where officially the virutualhosts are laid in Debian Linux in <strong>/etc/apache2/sites-available</strong><br
/> I’ve personally created a new file like for instance <strong> /etc/apache2/sites-available/mysubdomain.mydomain.com </strong></p><p>Here is an example content of the new Virtualhost:</p><blockquote><p><code>&lt;VirtualHost *&gt;<br
/> ServerAdmin admin-email@domain.com<br
/> ServerName mysubdomain.domain.com</code></p><p># Indexes + Directory Root.<br
/> DirectoryIndex index.php index.php5 index.htm index.html index.pl index.cgi index.phtml index.jsp index.py index.asp</p><p>DocumentRoot /usr/share/phpbb3/www/</p><p><code> # Logfiles<br
/> ErrorLog /var/log/apache2/yourdomain/error.log<br
/> CustomLog /var/log/apache2/yourdomain/access.log combined<br
/> # CustomLog /dev/null combined<br
/> &lt;Directory /usr/share/phpbb3/www/&gt;<br
/> Options FollowSymLinks MultiViews -Includes ExecCGI<br
/> AllowOverride All<br
/> Order allow,deny<br
/> allow from all &lt;/Directory&gt;<br
/> &lt;/VirtualHost&gt;<br
/> </code></p></blockquote><p>In above Virtualhost just change the values for <strong> ServerAdmin </strong>, <strong> ServerName </strong>, <strong> DocumentRoot </strong>, <strong> ErrorLog </strong>, <strong> CustomLog </strong> and <strong> Directory </strong> declaration to adjust it to your situation.</p><p><span
style="color: #3366ff;"><strong> 5. Restart the Apache webserver for the new Virtualhost to take affect</strong></span></p><blockquote><p><code>debian:~# /etc/init.d/apache2 restart<br
/> </code></p></blockquote><p>Now accessing your <strong> http://mysubdomain.domain.com</strong> should display the installed phpbb3 forum<br
/> The default username and password for your forum you can use straight are:</p><p><strong> username: admin </strong><br
/> <strong> password: admin </strong></p><p>So far so good you by now have the PHPBB3 forum properly installed and running, however if you try to <strong> Register a new user </strong> in the forum you will notice that it’s impossible because of a terrible ugly message reading:</p><blockquote><p><span
style="color: red;">Sorry but this board is currently unavailable.</span></p></blockquote><p>I’ve spend few minutes online to scrape through the forums before I can understand what I have to stop that annoying message from appearing and allow new users to register in the <em>phpbb forum </em></p><p>The solution came natural and was a setting that had to be changed with the forum admin account, thus login as admin and look at the bottom of the page, below the text reading <strong> Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group </strong> you will notice a link with <em> Administration Control Panel </em><br
/> just press there a whole bunch of menus will appear on the screen allowing you to do numerous things, however what you will have to do is go to <strong> Board Settings -&gt; Disable Board </strong> and change the radio button there to say <strong> No </strong></p><p>That’s all now your forum will be ready to go and your users can freely register and if the server where the forum is installed has an already running mail server, they will receive an emails with a registration data concerning their new registrations in your new phpbb forum.<br
/> Cheers and Enjoy your new shiny phpbb Forum</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/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/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/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/linux/how-to-set-up-an-apache-virtual-host-vhost-on-ubuntu.html" rel="bookmark" class="crp_title">How to set up an Apache Virtual Host (vhost) on Ubuntu</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/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-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/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-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></ul></div><h4>Incoming search terms:</h4><ul><li>debian (2)</li><li>debian linux (2)</li><li>images of debian in linux (1)</li><li>linux debian logo (1)</li><li>powered by phpBB forum inurl:/phpbb/ (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-install-the-phpbb-forum-on-debian-squeezesid-linux.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing Monit and Restart Apache Automatically on CentOS</title><link>http://www.php2s.com/linux/installing-monit-and-restart-apache-automatically-on-centos.html</link> <comments>http://www.php2s.com/linux/installing-monit-and-restart-apache-automatically-on-centos.html#comments</comments> <pubDate>Mon, 30 Jan 2012 06:26:17 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[Centos]]></category> <category><![CDATA[CentOS 6.2]]></category> <category><![CDATA[Monit]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=708</guid> <description><![CDATA[Monit is a free open source utility for managing and monitoring, processes, programs, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. You can use Monit to monitor daemon processes or similar programs running on localhost. Monit is particular useful for [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/01/monit-logo1.jpg"><img
class="alignleft  wp-image-734" title="monit-logo" src="http://www.php2s.com/wp-content/uploads/2012/01/monit-logo1.jpg" alt="" width="170" height="103" /></a>Monit is a free open source utility for managing and monitoring, processes, programs, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. You can use Monit to monitor daemon processes or similar programs running on localhost. Monit is particular useful for monitoring daemon processes, such as those started at system boot time from <span
style="color: #3366ff;">/etc/init.d/</span>.</p><p><span
id="more-708"></span></p><p><span
style="color: #3366ff;"><strong>Common monit usage:</strong></span></p><ul><li>Monit can start a process if it does not run.</li><li>Restart a process if it does not respond.</li><li>Stop a process if it uses to much resources etc.</li></ul><p><span
style="color: #3366ff;"><strong>Installation on <a
href="http://www.php2s.com/tag/centos">CentOS</a></strong></span></p><blockquote><p>yum install openssl*<br
/> wget http://mmonit.com/monit/dist/monit-5.3.2.tar.gz<br
/> tar -zxf monit-5.3.2.tar.gz<br
/> cd monit-5.3.2<br
/> ./configure<br
/> make &amp;&amp; make install<br
/> cp monitrc /etc/<br
/> cd ..<br
/> rm -rf monit-5.3.2*<br
/> echo &#8220;include /etc/monit.d/*&#8221; &gt;&gt; /etc/monitrc<br
/> chmod 700 /etc/monitrc<br
/> mkdir /etc/monit.d/<br
/> nano /etc/monit.d/apache</p></blockquote><p>And copy/paste the following and save the file</p><p><span
style="color: #ff0000;"><strong>Note:</strong></span> If you are on <span
style="color: #800080;">cPanel</span>, use the <span
style="color: #800080;">codeblock</span> posted next to the below post</p><blockquote><p>check process httpd with pidfile /var/run/httpd.pid<br
/> group apache<br
/> start program = &#8220;/etc/init.d/httpd start&#8221;<br
/> stop program = &#8220;/etc/init.d/httpd stop&#8221;<br
/> if failed host 127.0.0.1 port 80 protocol http<br
/> and request &#8220;/test.html&#8221;<br
/> then restart<br
/> if 5 restarts within 5 cycles then timeout</p><p>check process httpd with pidfile /usr/local/apache/logs/httpd.pid<br
/> group nobody<br
/> start program = &#8220;/scripts/restartsrv httpd&#8221;<br
/> stop program = &#8220;/scripts/restartsrv httpd&#8221;<br
/> if failed host 127.0.0.1 port 80 protocol http<br
/> and request &#8220;/test.html&#8221;<br
/> then restart<br
/> if 5 restarts within 5 cycles then timeout</p></blockquote><p>I believe, it is better if you use <span
style="color: #3366ff;">“/scripts/restartsrv httpd</span>” instead of “<span
style="color: #3366ff;">/etc/init.d/httpd start</span>” if you are on cPanel/WHM server.</p><p>Note: Next step may change according to your system configuration. The location of apache on cPanel server is<br
/> <span
style="color: #3366ff;"> /usr/local/apache and htdocs will be /usr/local/apache/htdocs</span></p><p>So you should use this command provided below</p><blockquote><p>echo &#8220;Test file&#8221; &gt; /usr/local/apache/htdocs/test.html</p></blockquote><p>If you are not using cPanel, then the apache location may be <span
style="color: #3366ff;">/etc/httpd</span> and htdocs may be <span
style="color: #3366ff;">/var/www/html</span>. In that case, change the code accordingly</p><blockquote><p>echo &#8220;Test file&#8221; &gt; /var/www/html/test.html</p></blockquote><p>Add monit to rc.local so that it starts automatically when your server starts.</p><blockquote><p>echo &#8220;/usr/local/bin/monit -d 60 -v -c /etc/monitrc  -p /var/run/monit.pid -l /var/log/monit.log&#8221; &gt;&gt; /etc/rc.local</p></blockquote><p>Finally, execute monit now.</p><blockquote><p>/usr/local/bin/monit -d 60 -v -c /etc/monitrc  -p /var/run/monit.pid -l /var/log/monit.log</p></blockquote><p>You will see a message “<span
style="color: #800080;">Starting monit daemon</span>” at the end if everything goes perfect.</p><p><em>That should start monit as deamon and check the ports on every 60 seconds.</em></p><p><strong>Extending monit</strong></p><p>You can monitor other services using monit such as mysql, exim etc. To do so, create a new file at<span
style="color: #3366ff;"> /etc/monit.d/</span> and save it with the appropriate commands to check and restart code.</p><p>For example, if you want to monitor mysql, you can use the below commands</p><blockquote><p>touch /etc/monit.d/mysql<br
/> echo &#8220;check process mysqld with pidfile /var/lib/mysql/`hostname`.pid&#8221; &gt; /etc/monit.d/mysql<br
/> echo &#8220;start program = \&#8221;/etc/init.d/mysql start\&#8221;" &gt;&gt; /etc/monit.d/mysql<br
/> echo &#8220;stop program = \&#8221;/etc/init.d/mysql stop\&#8221;" &gt;&gt; /etc/monit.d/mysql<br
/> echo &#8220;if failed host 127.0.0.1 port 3306 then restart&#8221; &gt;&gt; /etc/monit.d/mysql<br
/> echo &#8220;if 5 restarts within 5 cycles then timeout&#8221; &gt;&gt; /etc/monit.d/mysql</p></blockquote><p>Those commands will add the following lines to <span
style="color: #3366ff;">/etc/monit.d/mysql</span></p><blockquote><p>check process mysqld with pidfile /var/lib/mysql/server.php2s.com.pid<br
/> start program = &#8220;/etc/init.d/mysql start&#8221;<br
/> stop program = &#8220;/etc/init.d/mysql stop&#8221;<br
/> if failed host 127.0.0.1 port 3306 then restart<br
/> if 5 restarts within 5 cycles then timeout</p></blockquote><p>Be sure to re-execute monit after adding this.</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-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-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/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-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/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/programming/php-programming/cookie-based-login-form-and-get-last-login-time.html" rel="bookmark" class="crp_title">Cookie based login form and get last login time</a></li><li><a
href="http://www.php2s.com/programming/php-programming/a-dynamic-bar-chart.html" rel="bookmark" class="crp_title">A Dynamic Bar Chart in PHP</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-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></ul></div><h4>Incoming search terms:</h4><ul><li>centos 6 2 apache restart (1)</li><li>descargar dvd centos 6 2 iso 64 bits ftp (1)</li><li>monit centos apache (1)</li><li>monitrc squid (1)</li><li>repairing centos 6 2 (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/installing-monit-and-restart-apache-automatically-on-centos.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing LAMP Server on Debian Squeeze</title><link>http://www.php2s.com/linux/installing-lamp-server-on-debian-squeeze.html</link> <comments>http://www.php2s.com/linux/installing-lamp-server-on-debian-squeeze.html#comments</comments> <pubDate>Sun, 29 Jan 2012 22:42:36 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[LAMP]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=715</guid> <description><![CDATA[LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language. In this quick tutorial we will explain you how to install LAMP SERVER on Debian Squeeze (For [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/01/Debian1.jpg"><img
class="alignleft  wp-image-726" title="Debian" src="http://www.php2s.com/wp-content/uploads/2012/01/Debian1-300x145.jpg" alt="" width="210" height="102" /></a>LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.<br
/> In this quick tutorial we will explain you how to install LAMP SERVER on Debian Squeeze (For newbies)</p><p><span
id="more-715"></span></p><p>The installation of Lamp server  in  Debian Sqeeze  will be done in 3 steps :</p><h2><span
style="color: #3366ff;">1. Install apache2 + php5</span></h2><p>Apache is one of the most famous web server which runs on most linux based servers. With just few commands you can configure apache to run with  PHP 5.</p><blockquote><pre>root@unixmen-debian6:~# apt-get install apache2 php5 libapache2-mod-php5</pre></blockquote><p>your  normal web folder is located in <strong>/var/www/</strong></p><p>Now  lets  check if php is corectly  installed</p><blockquote><pre>vi /var/www/test.php</pre></blockquote><p>and  add</p><p>{codecitation}&lt;?php phpinfo(); ?&gt;{/codecitation}<br
/> save and exit</p><p>Now open browser with <strong>http://ip/test.php</strong></p><p>&nbsp;</p><p
style="text-align: center;"><a
href="http://www.php2s.com/wp-content/uploads/2012/01/LAMP-install-debian-1.png"><img
class="aligncenter  wp-image-716" title="LAMP-install-debian-1" src="http://www.php2s.com/wp-content/uploads/2012/01/LAMP-install-debian-1.png" alt="" width="578" height="416" /></a></p><p>&nbsp;</p><h2><span
style="color: #3366ff;">2. Installing MySQL Database Server</span></h2><p>To install MySQL, as root enter the following command:</p><blockquote><pre>apt-get install mysql-server mysql-client php5-mysql</pre></blockquote><p>in this  installation you will  get a  windows  to  insert  your root mysql password</p><p>- Or  yon can add it manually later  with :</p><blockquote><pre>mysql -u root mysql&gt; USE mysql;mysql&gt; UPDATE user SET Password=PASSWORD('your-password') WHERE user='root';mysql&gt; FLUSH PRIVILEGES;</pre></blockquote><p>&nbsp;</p><h2><span
style="color: #3366ff;"><strong>3. Install  PhpMyAdmin</strong></span></h2><p><a
title="phpmyadmin" href="http://www.phpmyadmin.net/">Phpmyadmin</a> is   easy webtool  to  manage  you  databases to install  it :</p><blockquote><pre>apt-get  install  phpmyadmin</pre></blockquote><p
style="text-align: left;">Choose the  webserver that  you want  to use  , in my  case is apache2<br
/> <a
href="http://www.php2s.com/wp-content/uploads/2012/01/LAMP-install-debian-2.png"><img
class="aligncenter  wp-image-717" title="LAMP-install-debian-2" src="http://www.php2s.com/wp-content/uploads/2012/01/LAMP-install-debian-2.png" alt="" width="576" height="432" /></a></p><p>Now open your browser with <span
style="color: #3366ff;">http://ip/phpmyadmin</span></p><p
style="text-align: center;"><a
href="http://www.php2s.com/wp-content/uploads/2012/01/LAMP-install-debian-4.png"><img
class="aligncenter  wp-image-719" title="LAMP-install-debian-4" src="http://www.php2s.com/wp-content/uploads/2012/01/LAMP-install-debian-4.png" alt="" width="578" height="416" /></a></p><p
style="text-align: center;"><a
href="http://www.php2s.com/wp-content/uploads/2012/01/LAMP-install-debian-3.png"><img
class="aligncenter  wp-image-718" title="LAMP-install-debian-3" src="http://www.php2s.com/wp-content/uploads/2012/01/LAMP-install-debian-3.png" alt="" width="572" height="412" /></a></p><p>Hope the tutorial will be useful.</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/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/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/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/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-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/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-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-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></ul></div><h4>Incoming search terms:</h4><ul><li>debian lamp server 2012 (1)</li><li>debian queeze reinstalling lamp (1)</li><li>installer lamp debian squeeze (1)</li><li>lamp debian squeeze (1)</li><li>setup apache2 debian (1)</li><li>tuto lamp debian (1)</li><li>tuto serveur lamp squeeze (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/installing-lamp-server-on-debian-squeeze.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to change permissions in Ubuntu 11.10 Oneiric Ocelot with the chmod command</title><link>http://www.php2s.com/linux/how-to-change-permissions-in-ubuntu-11-10-oneiric-ocelot-with-the-chmod-command.html</link> <comments>http://www.php2s.com/linux/how-to-change-permissions-in-ubuntu-11-10-oneiric-ocelot-with-the-chmod-command.html#comments</comments> <pubDate>Sun, 29 Jan 2012 15:00:47 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[chmod]]></category> <category><![CDATA[command]]></category> <category><![CDATA[Ubuntu]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=703</guid> <description><![CDATA[The chmod command lets you change permissions on files and directories from the command line in Ubuntu 11.10 Oneiric Ocelot. First, though, what are permissions? Basically, every file and folder on a Ubuntu system can be accessed by three different groups of users – the owning user, the owning group, and everybody else with an [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/01/Ubuntu_Plastic_Logo.jpg"><img
class="alignleft  wp-image-408" title="Ubuntu_Plastic_Logo" src="http://www.php2s.com/wp-content/uploads/2012/01/Ubuntu_Plastic_Logo.jpg" alt="" width="160" height="134" /></a>The chmod command lets you change permissions on files and directories from the command line in Ubuntu 11.10 Oneiric Ocelot.</p><p>First, though, what are permissions?</p><p>Basically, every file and folder on a Ubuntu system can be accessed by three different groups of users – the owning user, the owning group, and everybody else with an account on the system. In Linux file permissions, “ownership” means that the owner, whether the owning user or the owning group, has full control over the file or folder. The owning user and group, obviously, are the particular user and group that have been assigned ownership of that file or folder. (The owner and the root user are the only ones who can change or assign permissions to a file.) Everyone else means every other user on the system.</p><p><span
id="more-703"></span><br
/> There are<span
style="color: #3366ff;"> three permissions</span> that can be assigned to the owner, the owning group, and everyone else – <span
style="color: #ff0000;">read</span>, <span
style="color: #ff0000;">write</span>, and <span
style="color: #ff0000;">execute</span>.</p><p><span
style="color: #800080;">The Read permission</span> allows you to access the file, but not to delete it or alter it. For example, you could open a document with the Read permission, but you could not edit it, and you could not delete it.</p><p><span
style="color: #800080;">The Write permission</span> allows you alter or delete a file. To return to our example document, if you have the Write permission, you could delete it or make changes to it. (Ironically, to actually view the document, you also need the Write permission.)</p><p><span
style="color: #800080;">The Execute permission</span> allows you to run a file as a program. Any application or program files need to have this permission, otherwise they won’t work.</p><p><strong>So, how to change a file’s permissions?</strong> This is done using the chmod command. (In Linux, a file’s total permissions are called the “mode”, so chmod stands for “change mode.”) If you want to add the execute permission to the owning user of a file, you would use chmod like this (note that in chmod, u stands for the owning user):</p><blockquote><p>chmod u+x test.txt</p></blockquote><p>If you wanted to add the execute permission to the owning group:</p><blockquote><p>chmod g+x test.txt</p></blockquote><p>Finally, if you wanted to add the execute permission for everyone on the system:</p><blockquote><p>chmod o+x test.txt</p></blockquote><p>(In chmod, o stands for Others, or everyone else on the system.)</p><p>And to do all three at once:</p><blockquote><p>chmod u+x,g+x,o+x test.txt</p></blockquote><p>Alternately, to remove permissions, replace the + sign with the – symbol:</p><blockquote><p>chmod u-x,g-x,o-x test.txt</p></blockquote><p>All this typing is rather cumbersome, isn’t it? Fortunately, file permissions in Ubuntu Linux have numeric codes – mathematical shorthand, if you will. The Read permission is assigned the number 4, Write the number 2, and Execute the number 1. Having no permissions is represented by a zero. You then calculate the permissions by adding up the numbers. Take this example:</p><blockquote><p>-rwxrw-r– 6 bobsmith users 4096 Dec 9 14:56 test.txt</p></blockquote><p>The file’s owner receives the Read, Write, and Execute permissions, the owning group gets Read and Write, and everyone else gets Read. Since Read is 4, Write is 2, and Execute is 1, the file owner gets a permission of 7. The owning group gets a total of 6, and everyone else gets 4. The permissions can then be expression numerically as this:</p><blockquote><p>764</p></blockquote><p>And so to set the permissions as 764, you would use the chmod command:</p><blockquote><p>chmod 764 test.txt</p></blockquote><p>Much easier to simply type 764, isn’t it?</p><p>Or to give the owning user full permissions, while denying permissions to both the owning group and everyone else, use this command:</p><blockquote><p>chmod 700 test.txt</p></blockquote><p>Needless to say, this makes using the <span
style="color: #800080;">chmod</span> command far less cumbersome. As another example, let us say you wanted to change the permissions of test.txt so that the owner can read, write and execute, the owning group can read and execute, and everyone on the system who is neither the owner nor the owning user can read the file but not write or execute. You would use this <span
style="color: #800080;">chmod</span> command:</p><blockquote><p>chmod 754 test.txt</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-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-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/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-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/p-linux-pipes-%e2%80%93-event-triggers-action.html" rel="bookmark" class="crp_title">(P/S) Linux Pipes – Event triggers action</a></li><li><a
href="http://www.php2s.com/linux/how-to-setup-usergroup-quotas-4tib-on-ubuntu.html" rel="bookmark" class="crp_title">How to Setup user/group quotas >4TiB on Ubuntu</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/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/virtualbox-auto-start-vm-centos-fedora-redhat.html" rel="bookmark" class="crp_title">(Q/A)VirtualBox Auto Start VM Centos Fedora RedHat</a></li></ul></div><h4>Incoming search terms:</h4><ul><li>no permission owner is root ubuntu 11 10 (4)</li><li>ubuntu 11 10 owner (2)</li><li>change owner user group ubuntu 11 10 (1)</li><li>command to open the file in ubuntu11 10 (1)</li><li>how to change groups in ubuntu 11 10 (1)</li><li>how to change permission in ubuntu? (1)</li><li>how to change root name linux oneiric (1)</li><li>ubuntu 11 10 change folde owner from root to user (1)</li><li>ubuntu 11 10 php owner (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-change-permissions-in-ubuntu-11-10-oneiric-ocelot-with-the-chmod-command.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to Change Ownership With The chown Command On Ubuntu 11.10 Oneiric Ocelot</title><link>http://www.php2s.com/linux/how-to-change-ownership-with-the-chown-command-on-ubuntu-11-10-oneiric-ocelot.html</link> <comments>http://www.php2s.com/linux/how-to-change-ownership-with-the-chown-command-on-ubuntu-11-10-oneiric-ocelot.html#comments</comments> <pubDate>Sun, 29 Jan 2012 14:53:25 +0000</pubDate> <dc:creator>Frank Boros</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[chmod]]></category> <category><![CDATA[chown]]></category> <category><![CDATA[Ubuntu]]></category><guid
isPermaLink="false">http://www.php2s.com/?p=698</guid> <description><![CDATA[You can use the chmod command to assign permissions in Linux. However, the basis of Linux permissions revolves around the concept of ownership, which you can change using the chown command. What is file and folder ownership? In Linux file permissions, “ownership” means that the owner, whether the owning user or the owning group, has [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.php2s.com/wp-content/uploads/2012/01/Ubuntu_Plastic_Logo.jpg"><img
class="alignleft  wp-image-408" title="Ubuntu_Plastic_Logo" src="http://www.php2s.com/wp-content/uploads/2012/01/Ubuntu_Plastic_Logo.jpg" alt="" width="160" height="134" /></a>You can use the <span
style="color: #993366;">chmod</span> command to assign permissions in Linux. However, the basis of Linux permissions revolves around the concept of ownership, which you can change using the <span
style="color: #993366;">chown</span> command.</p><p>What is file and folder ownership? In Linux file permissions, “ownership” means that the owner, whether the owning user or the owning group, has full control over the file or folder. Basically, every file and folder on a Linux system can be accessed by three different groups of users – the owning user, the owning group, and everybody else with an account on the system. The owning user and group, obviously, are the particular user and group that have been assigned ownership of that file or folder. (The owner and the root user are the only ones who can change or assign permissions to a file.) Everyone else means every other user on the system.</p><p><span
id="more-698"></span></p><p><em>Permissions are then assigned based on those groups – the owning user, the owning group, and all other users on the system.</em></p><p>Assigning permissions is useful, but it’s only the first half of managing security for your files and folders. You may also need to sometimes take ownership of files, or to assign them to different owners. Or you may need to assign a file to a different group.</p><p>To change the ownership of files, you can use the <span
style="color: #993366;">chown</span> command. To assign the ownership of the test.txt file to a user named tim:</p><blockquote><p>sudo chown tim test.txt</p></blockquote><p>(You won’t need root permissions to change the ownership of files you already own, but you’ll need it while changing the ownership of files that you don’t own.)</p><p>You might have noticed that all this command only affects one file or directory at one time. How do you change the ownership of a large number of files at once? Like the cp or the mv commands, all the commands for managing permissions and ownership work with both the recursive -r option and with wildcards. For instance, to assign ownership of the /test directory, and all its files and sub-directories, to a user named tim:</p><blockquote><p>sudo chown -r tim /test</p></blockquote><p>Using <span
style="color: #993366;">chown</span>, you can quickly manage both ownership on your Linux system.</p><div
id="crp_related"><h2>You might be interested in this:</h2><ul><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-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-setup-usergroup-quotas-4tib-on-ubuntu.html" rel="bookmark" class="crp_title">How to Setup user/group quotas >4TiB on Ubuntu</a></li><li><a
href="http://www.php2s.com/linux/howto-guide-get-the-size-of-a-directory-via-terminal-on-ubuntu.html" rel="bookmark" class="crp_title">Howto Guide: Get the Size of a Directory via Terminal on Ubuntu</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/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/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-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-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></ul></div><h4>Incoming search terms:</h4><ul><li>centos 6 2 chowner (1)</li><li>change owner using chown in centos (1)</li><li>take ownership ubuntu 11 10 (1)</li><li>ubuntu 11 10 login as owner (1)</li></ul>]]></content:encoded> <wfw:commentRss>http://www.php2s.com/linux/how-to-change-ownership-with-the-chown-command-on-ubuntu-11-10-oneiric-ocelot.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </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 40/227 queries in 0.227 seconds using disk: basic
Object Caching 6018/6378 objects using disk: basic

Served from: www.php2s.com @ 2012-02-06 16:23:58 -->
