<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Ubuntu on sigtar.com</title>
		<link>https://sigtar.com/tags/ubuntu/</link>
		<description>Recent content in Ubuntu on sigtar.com</description>
		<generator>Hugo</generator>
		<language>en-nz</language>
		
		
		
		
			<lastBuildDate>Wed, 08 Nov 2017 00:00:00 +1300</lastBuildDate>
		
			<atom:link href="https://sigtar.com/tags/ubuntu/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Ubuntu - Disable Firewall</title>
				<link>https://sigtar.com/2017/11/08/ubuntu-disable-firewall/</link>
				<pubDate>Wed, 08 Nov 2017 00:00:00 +1300</pubDate>
				<guid>https://sigtar.com/2017/11/08/ubuntu-disable-firewall/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;https://sigtar.com/2017/11/08/ubuntu-disable-firewall/screenshot-terminal/&#34;&gt;&lt;img src=&#34;https://sigtar.com/wp-content/uploads/Screenshot-Terminal.png&#34; alt=&#34;&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;if your working with Ubuntu in lab or test env, you may want to disable firewall&amp;hellip;. two simple commands;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;sudo ufw disable&lt;/strong&gt; &lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;sudo apt-get remove ufw&lt;/strong&gt; &lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Reading package lists... Done&#xA;Building dependency tree&#xA;Reading state information... Done&#xA;The following packages will be REMOVED:&#xA;ufw&#xA;0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.&#xA;After this operation, 838 kB disk space will be freed.&#xA;Do you want to continue? [Y/n] Y&#xA;(Reading database ... 64052 files and directories currently installed.)&#xA;Removing ufw (0.35-0ubuntu2) ...&#xA;Skip stopping firewall: ufw (not enabled)&#xA;Processing triggers for man-db (2.7.5-1) ...&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
			</item>
			<item>
				<title>nginx - setup as reverse proxy</title>
				<link>https://sigtar.com/2014/02/08/nginx-setup-as-reverse-proxy/</link>
				<pubDate>Sat, 08 Feb 2014 00:00:00 +1300</pubDate>
				<guid>https://sigtar.com/2014/02/08/nginx-setup-as-reverse-proxy/</guid>
				<description>&lt;p&gt;Previously to take down this wordpress site all you needed to do was hold down F5 for about 20 seconds then the site would take about 5 mins to recover.&lt;/p&gt;&#xA;&lt;p&gt;There were a few factors causing this and quite a few different methods to solving the problem. Wordpress itself is run on php / apache, apache has an evasive mod which can block certain IPs depending on the defined abusive behavior (typical DDOS attack). Since i like to run a few websites behind a single IP i looked at fixing the issue closer to the perimeter&amp;hellip;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>squid - reverse proxy</title>
				<link>https://sigtar.com/2013/01/14/squid-reverse-proxy/</link>
				<pubDate>Mon, 14 Jan 2013 00:00:00 +1300</pubDate>
				<guid>https://sigtar.com/2013/01/14/squid-reverse-proxy/</guid>
				<description>&lt;p&gt;Great guide here - &lt;a href=&#34;http://www.classhelper.org/articles/reverse-proxy-server-squid-debian/installing-squid-proxy-server.shtml&#34;&gt;http://www.classhelper.org/articles/reverse-proxy-server-squid-debian/installing-squid-proxy-server.shtml&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve modified slightly for Ubuntu, but almost identical.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;apt-get install squid&lt;/strong&gt; &lt;strong&gt;cp /etc/squid3/squid.conf /etc/squid3/squid.bak rm /etc/squid3/squid.conf nano /etc/squid/squid.conf&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;http_port 80 defaultsite=www.yoursite.com vhost forwarded_for on refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern . 0 20% 4320 cache_peer 192.168.0.13 parent 80 0 no-query no-digest originserver name=web1 acl sites_web1 dstdomain www.yoursite.com yoursite.com cache_peer_access web1 allow sites_web1 cache_peer 192.168.0.14 parent 80 0 no-query no-digest originserver name=web2 acl sites_web2 dstdomain www.anothersite.com anothersite.com cache_peer_access web2 allow sites_web2 acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl to_localhost dst 127.0.0.0/8 acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 443 # https acl Safe_ports port 1025-65535 # unregistered ports acl CONNECT method CONNECT http_access allow sites_web1 http_access allow sites_web2 http_access allow manager all http_access allow manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports #http_access deny all access_log /var/log/squid3/access.log cache_mgr support@yoursite.com&lt;/code&gt;&lt;/p&gt;</description>
			</item>
			<item>
				<title>cron job to re prioitize tasks</title>
				<link>https://sigtar.com/2012/10/16/cron-job-to-re-prioitize-tasks/</link>
				<pubDate>Tue, 16 Oct 2012 00:00:00 +1300</pubDate>
				<guid>https://sigtar.com/2012/10/16/cron-job-to-re-prioitize-tasks/</guid>
				<description>&lt;p&gt;I&amp;rsquo;m using the following crontab script to renice my squid process&amp;hellip;.&lt;/p&gt;&#xA;&lt;p&gt;Put following in script and  call via cron (i&amp;rsquo;m doing every 10 mins)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;*/10 * * * * /home/user/renice.sh&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;(renice.sh)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;renice -15 $(ps -C squid3 -o pid=)&lt;/strong&gt; &lt;strong&gt;renice -15 $(ps -C unlinkd -o pid=)&lt;/strong&gt;&lt;/p&gt;</description>
			</item>
			<item>
				<title>Linux - install vmware tools onto guest</title>
				<link>https://sigtar.com/2010/09/05/linux-install-vmware-tools-onto-guest/</link>
				<pubDate>Sun, 05 Sep 2010 00:00:00 +1200</pubDate>
				<guid>https://sigtar.com/2010/09/05/linux-install-vmware-tools-onto-guest/</guid>
				<description>&lt;p&gt;fire up the vm, then run the following after initiating a vmware tools install&amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;mount /dev/cdrom /mnt/cdrom cd /tmp tar zxf /mnt/cdrom/VMwareTools-x.x.x.gz cd vmware-tools-disstrib ./vmware-install.pl&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then just follow the prompts through to the end.&lt;/p&gt;&#xA;&lt;p&gt;If your running fedora or similar make sure your&amp;rsquo;ve got gcc and kernel headers&amp;hellip;. (you&amp;rsquo;ll probably have to update kernel too)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;yum update shutdown -r now yum install -y gcc make kernel-devel perl&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Ubuntu 12.x&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;apt-get install open-vm-tools&lt;/strong&gt;&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
