<?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>General Archives - ubuntu|dog</title>
	<atom:link href="https://ubuntudog.com/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>https://ubuntudog.com/category/general/</link>
	<description>Knowledge is power</description>
	<lastBuildDate>Fri, 20 Dec 2024 22:25:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>

<image>
	<url>https://media.ubuntudog.com/2019/11/cropped-favicon-32x32.png</url>
	<title>General Archives - ubuntu|dog</title>
	<link>https://ubuntudog.com/category/general/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Enable HTTP/2 in Apache on Ubuntu</title>
		<link>https://ubuntudog.com/enable-http-2-in-apache-on-ubuntu/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Fri, 09 Oct 2020 13:08:15 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">https://ubuntudog.com/?p=243</guid>

					<description><![CDATA[<p>First of all make sure that the following 3 requirement is fullfilled: A registered domain name with working HTTPS (TLS/SSL). HTTP/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don’t support HTTP/2 in cleartext (non-TLS) mode. Also you need at least Apache version 2.4.24 If you run PHP in Apache via mod_php, ... <a title="Enable HTTP/2 in Apache on Ubuntu" class="read-more" href="https://ubuntudog.com/enable-http-2-in-apache-on-ubuntu/" aria-label="Read more about Enable HTTP/2 in Apache on Ubuntu">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/enable-http-2-in-apache-on-ubuntu/">Enable HTTP/2 in Apache on Ubuntu</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>First of all make sure that the following 3 requirement is fullfilled:</p>



<ul class="wp-block-list"><li>A registered domain name with working HTTPS (TLS/SSL). HTTP/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don’t support HTTP/2 in cleartext (non-TLS) mode.</li></ul>



<ul class="wp-block-list"><li>Also you need at least Apache version 2.4.24</li></ul>



<ul class="wp-block-list"><li>If you run PHP in Apache via mod_php, you need to switch to FPM. That is not a bad thing. FPM is newer and faster.</li></ul>



<h2 class="wp-block-heading">Now lets do the configuratoin for HTTP/2</h2>



<p id="block-4a1bfe2f-bf6c-47ae-814b-d4946cd02dc9">Switching Apache’s PHP Module from MPM Prefork to Event<br>Run the following commands:</p>



<pre class="wp-block-preformatted">sudo apt-get install php7.2-fpm
sudo a2enmod proxy_fcgi
sudo a2enconf php7.2-fpm
sudo a2dismod php7.2
sudo a2dismod mpm_prefork
sudo a2enmod mpm_event
sudo service apache2 restart</pre>



<h2 class="wp-block-heading">Installing and Enabling HTTP/2 in Apache</h2>



<p>Enable the module mod_http2:</p>



<pre class="wp-block-preformatted">sudo a2enmod http2<br>sudo service apache2 restart</pre>



<p>Enable the HTTP/2 protocol by adding the following to <em>/etc/apache2/apache2.conf:</em></p>



<pre class="wp-block-preformatted">Protocols h2 http/1.1</pre>



<h2 class="wp-block-heading">Verify that HTTP/2 is Working</h2>



<p>Cloudflare put together a <a href="https://blog.cloudflare.com/tools-for-debugging-testing-and-using-http-2/">comprehensive list</a> of ways you can check a website for HTTP/2 support. The easiest to use are probably Chrome Dev Tools (network view, add the Protocol column) or the <a href="https://tools.keycdn.com/http2-test" target="_blank" rel="noreferrer noopener">online test from KeyCDN</a>.</p>
<p>The post <a href="https://ubuntudog.com/enable-http-2-in-apache-on-ubuntu/">Enable HTTP/2 in Apache on Ubuntu</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Chroot VSFTPD user on a webserver and change port of VSFTPD</title>
		<link>https://ubuntudog.com/chroot-vsftpd-user-on-a-webserver-and-change-port-of-vsftpd/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Thu, 19 Dec 2019 16:04:25 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://ubuntudog.com/?p=235</guid>

					<description><![CDATA[<p>First of all make sure to change the name of your VSFTP configuration file: sudo mv /etc/vsftpd.conf /etc/vsftpd.conf_orig sudo nano /etc/vsftpd.conf Now paste below code in vsftpd.conf file: listen_port=4021 listen=NO listen_ipv6=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES connect_from_port_20=NO chroot_local_user=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key ssl_enable=NO pasv_enable=Yes pasv_min_port=10000 pasv_max_port=10100 allow_writeable_chroot=YES Restart VSFTPD service and it ... <a title="Chroot VSFTPD user on a webserver and change port of VSFTPD" class="read-more" href="https://ubuntudog.com/chroot-vsftpd-user-on-a-webserver-and-change-port-of-vsftpd/" aria-label="Read more about Chroot VSFTPD user on a webserver and change port of VSFTPD">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/chroot-vsftpd-user-on-a-webserver-and-change-port-of-vsftpd/">Chroot VSFTPD user on a webserver and change port of VSFTPD</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>First of all make sure to change the name of your VSFTP configuration file:<br></p>



<pre class="wp-block-preformatted"> sudo mv /etc/vsftpd.conf /etc/vsftpd.conf_orig 
 sudo nano /etc/vsftpd.conf</pre>



<p><br>Now paste below code in vsftpd.conf file:</p>



<pre class="wp-block-preformatted">listen_port=4021<br>
listen=NO<br>
listen_ipv6=YES<br>
anonymous_enable=NO<br>
local_enable=YES<br>
write_enable=YES<br>
local_umask=022<br>
dirmessage_enable=YES<br>
use_localtime=YES<br>
xferlog_enable=YES<br>
connect_from_port_20=YES <br>
connect_from_port_20=NO<br>
chroot_local_user=YES<br>
secure_chroot_dir=/var/run/vsftpd/empty<br>
pam_service_name=vsftpd<br>
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem<br>
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key<br>
ssl_enable=NO<br>
pasv_enable=Yes<br>
pasv_min_port=10000<br>
pasv_max_port=10100<br>
allow_writeable_chroot=YES</pre>



<p>Restart VSFTPD service and it will start to listen on <strong>port 4021</strong></p>



<pre class="wp-block-preformatted">service vsftpd restart</pre>



<p>Now create sftp group:</p>



<pre class="wp-block-preformatted">groupadd sftp</pre>



<p>Modify /etc/ssh/sshd_config file to disable users that are part of sftp group to login by a ssh client.</p>



<pre class="wp-block-preformatted">nano /etc/ssh/sshd_config</pre>



<p>Add the following line in the end of the file</p>



<pre class="wp-block-preformatted">Match group sftp
ChrootDirectory /home
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp</pre>



<p>Restart the SSH server</p>



<pre class="wp-block-preformatted">service ssh restart</pre>



<p>Now let&#8217;s create a user and give it a password</p>



<pre class="wp-block-preformatted">useradd myftpuser

passwd  myftpuser</pre>



<p>Change a home folder of your &#8220;myftpuser&#8221; user:</p>



<pre class="wp-block-preformatted">usermod -d /var/www/myftpuser/www myftpuser</pre>



<p>Root must be owner of the path /var/www/myftpuser/:</p>



<pre class="wp-block-preformatted">chown root:root /var/www/myftpuser/</pre>



<p>Add user to sftp and www-data group:</p>



<pre class="wp-block-preformatted">usermod  myftpuser -G sftp, www-data</pre>



<p>Check groups of your newly created user:</p>



<pre class="wp-block-preformatted">groups  myftpuser  </pre>



<p>Groups www-data and sftp should be listed.</p>



<p>Make www-data owner of the web folder there all of your files will be stored:</p>



<pre class="wp-block-preformatted">chown www-data:www-data /var/www/myftpuser/www/ </pre>



<p>Last but not least try to ssh into your myftpuser account. You should not be able to login.<br><br>The next step is try login to your FTP but don&#8217;t forget to use port: 4021 that we specified above.</p>



<p>Also do not forget to allow port 4021 in your firewall. I use ufw firewall so the following command will allow port 4021:</p>



<pre class="wp-block-preformatted"> ufw allow 4021</pre>



<p></p>
<p>The post <a href="https://ubuntudog.com/chroot-vsftpd-user-on-a-webserver-and-change-port-of-vsftpd/">Chroot VSFTPD user on a webserver and change port of VSFTPD</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Password protect directories / folders with nginx</title>
		<link>https://ubuntudog.com/password-protect-directories-folders-with-nginx/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Mon, 09 Dec 2019 21:05:49 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://ubuntudog.com/?p=218</guid>

					<description><![CDATA[<p>Overview On an Apache server, it&#8217;s possible to password protect a directory using .htaccess and .htpasswd files. However, .htaccess files are not supported on Nginx. You can still password protect your directories, but you need to use a basic_auth.conf file instead. Creating the file Log into your server via SSH. Navigate to your user&#8217;s directory. ... <a title="Password protect directories / folders with nginx" class="read-more" href="https://ubuntudog.com/password-protect-directories-folders-with-nginx/" aria-label="Read more about Password protect directories / folders with nginx">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/password-protect-directories-folders-with-nginx/">Password protect directories / folders with nginx</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Overview</h2>
<p>On an Apache server, it&#8217;s possible to password protect a directory using .htaccess and .htpasswd files. However, .htaccess files are not supported on Nginx.</p>
<p>You can still password protect your directories, but you need to use a basic_auth.conf file instead.</p>
<h2>Creating the file</h2>
<ol>
<li>Log into your server via SSH.</li>
<li>Navigate to your user&#8217;s directory.</li>
<li>Make sure you have a /home/username/nginx/example.com directory.This doesn&#8217;t exist by default; you must create it by running the following:
<pre>sudo mkdir -p nginx/example.com</pre>
</li>
<li>In this /home/username/nginx/example.com directory, add a file named &#8216;<strong>basic_auth.conf</strong>&#8216; with the following:
<pre>location / {
        auth_basic "Restricted";
        auth_basic_user_file /home/username/nginx/example.com/.htpasswd;
}</pre>
<p>* The auth_basic parameter is just the title of the prompt the user sees when visiting this directory.<br />
* The auth_basic_user_file parameter specifies where the password file is. Note how its path is set to the /nginx directory.</p>
<p>In this example, the &#8216;location&#8217; directive password protects the entire domain since it&#8217;s pointing to &#8216;/&#8217;.<br />
If you want a subdirectory to be password protected, change the &#8216;location&#8217; directive as follows:</p>
<pre>location /subdirectory/</pre>
</li>
<li>Run the following to create the <strong>.htpasswd</strong> file:
<pre>sudo htpasswd -c /home/username/nginx/example.com/.htpasswd LOGIN</pre>
<p>* LOGIN is the username you want to be used to authenticate in the login prompt.</li>
<li>After typing that command, enter a password and confirm it when prompted:
<pre>New password: 

Re-type new password:</pre>
<p>Adding password for user LOGIN</li>
<li>Reload the nginx config file.
<pre>sudo service nginx reload</pre>
</li>
<li>In your browser, load the directory your /home/username/nginx/example.com/basic_auth.conf points to. *In the example above, this would be your domain&#8217;s root directory since the &#8216;location&#8217; directive points to /.</li>
<li>Enter a user/password when prompted to log in.<br />
* In this example, your username is LOGIN and the password is the one you created above.</li>
</ol>
<p>See also:</p>
<ul>
<li><a href="https://ubuntudog.com/update-timezone-in-ubuntu/">How to update timezone in Ubuntu</a></li>
<li><a href="https://ubuntudog.com/how-to-install-php-opcache/">How to install opcache in Ubuntu</a></li>
</ul>
<p>The post <a href="https://ubuntudog.com/password-protect-directories-folders-with-nginx/">Password protect directories / folders with nginx</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Update timezone in Ubuntu</title>
		<link>https://ubuntudog.com/update-timezone-in-ubuntu/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Sun, 08 Dec 2019 00:33:25 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">https://ubuntudog.com/?p=210</guid>

					<description><![CDATA[<p>To check your current timezone, run: date Fri Jan 25 02:12:14 UTC 2020 Above we can see the timezone is UTC (Coordinated Universal Time). UTC is the default time zone. To avoid timezone confusion and the complexities of adjusting clocks for daylight saving time in accordance with regional custom, it is often recommended that all ... <a title="Update timezone in Ubuntu" class="read-more" href="https://ubuntudog.com/update-timezone-in-ubuntu/" aria-label="Read more about Update timezone in Ubuntu">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/update-timezone-in-ubuntu/">Update timezone in Ubuntu</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To check your current timezone, run:</p>
<pre>date</pre>
<p>Fri Jan 25 02:12:14 UTC 2020<br />
Above we can see the timezone is UTC (Coordinated Universal Time).</p>
<p>UTC is the default time zone. To avoid timezone confusion and the complexities of adjusting clocks for daylight saving time in accordance with regional custom, it is often recommended that all servers use UTC.</p>
<p>If your site or application requires a different system timezone, start by listing the available options:</p>
<pre>timedatectl list-timezones
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa</pre>
<p>Now its time to set your time zone. Mine timezone is Europe/Stockholm</p>
<pre>sudo timedatectl set-timezone Europe/Stockholm</pre>
<p>Now check if the timezone has been set correctly.</p>
<pre>date</pre>
<p>We can see the timezone has changed to CET, which correct for Stockholm.</p>
<p>The post <a href="https://ubuntudog.com/update-timezone-in-ubuntu/">Update timezone in Ubuntu</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to remove GUI Desktop from Ubuntu 16.04 or 18.04</title>
		<link>https://ubuntudog.com/how-to-remove-gui-desktop-from-ubuntu-16-04-or-18-04/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Fri, 29 Nov 2019 20:47:32 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">https://ubuntudog.com/?p=196</guid>

					<description><![CDATA[<p>I installed Ubuntu Server with Desktop support that I almost never use. Also using GUI is both resource damanding and can be a security issue. This is why I decided to completely remove it from my server. This is how to do it. sudo apt-get -y purge ubuntu-desktop sudo apt-get -y purge unity gnome-shell lightdm ... <a title="How to remove GUI Desktop from Ubuntu 16.04 or 18.04" class="read-more" href="https://ubuntudog.com/how-to-remove-gui-desktop-from-ubuntu-16-04-or-18-04/" aria-label="Read more about How to remove GUI Desktop from Ubuntu 16.04 or 18.04">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/how-to-remove-gui-desktop-from-ubuntu-16-04-or-18-04/">How to remove GUI Desktop from Ubuntu 16.04 or 18.04</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I installed Ubuntu Server with Desktop support that I almost never use. Also using GUI is both resource damanding and can be a security issue. This is why I decided to completely remove it from my server.</p>
<p>This is how to do it.</p>
<pre>sudo apt-get -y purge ubuntu-desktop
sudo apt-get -y purge unity gnome-shell lightdm
sudo apt-get -y remove ubuntu-desktop
sudo apt purge ubuntu-desktop -y &amp;&amp; sudo apt autoremove -y &amp;&amp; sudo apt autoclean
sudo apt-get -y clean
sudo apt-get -y autoremove
sudo apt-get -f install</pre>
<p>However if you need to install it again just run the following command:</p>
<pre>sudo apt-get install ubuntu-desktop</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://ubuntudog.com/how-to-remove-gui-desktop-from-ubuntu-16-04-or-18-04/">How to remove GUI Desktop from Ubuntu 16.04 or 18.04</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Howto remove remembered skype username</title>
		<link>https://ubuntudog.com/howto-remove-remembered-skype-username/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Sun, 24 Nov 2019 20:56:20 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">http://ubuntudog.com/?p=171</guid>

					<description><![CDATA[<p>Its quite annoying if someone else visited you and used your skype to login on his/her account. That account appears all the time the next time you start skype. If you whish to remove remembered skype username from login screen than open up explorer and navigate to: C:/Users/YourWindowsUsername/AppData/Roaming/Skype Change slash to backslash in code above! ... <a title="Howto remove remembered skype username" class="read-more" href="https://ubuntudog.com/howto-remove-remembered-skype-username/" aria-label="Read more about Howto remove remembered skype username">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/howto-remove-remembered-skype-username/">Howto remove remembered skype username</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Its quite annoying if someone else visited you and used your skype to login on his/her account. That account appears all the time the next time you start skype. If you whish to remove remembered skype username from login screen than open up explorer and navigate to:</p>
<div class="code"><strong>C:/Users/YourWindowsUsername/AppData/Roaming/Skype</strong></div>
<p>Change slash to backslash in code above!</p>
<p>Remove folders that contains username(s)</p>
<p>Restart skype!</p>
<p>The post <a href="https://ubuntudog.com/howto-remove-remembered-skype-username/">Howto remove remembered skype username</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to remove all of the mails for a user account on your system</title>
		<link>https://ubuntudog.com/how-to-remove-all-of-the-mails-for-a-user-account-on-your-system/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Sun, 24 Nov 2019 20:49:57 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://ubuntudog.com/?p=159</guid>

					<description><![CDATA[<p>Have you ever tried to type &#8220;mail&#8221; at comment prompt? Command line tool mail uses for reading system mail messages on your system. However if your system is running as a webserver than user account www-data probably has got many messages. If you want to remove all of the mails for user www-data just go ... <a title="How to remove all of the mails for a user account on your system" class="read-more" href="https://ubuntudog.com/how-to-remove-all-of-the-mails-for-a-user-account-on-your-system/" aria-label="Read more about How to remove all of the mails for a user account on your system">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/how-to-remove-all-of-the-mails-for-a-user-account-on-your-system/">How to remove all of the mails for a user account on your system</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Have you ever tried to type &#8220;mail&#8221; at comment prompt? Command line tool mail uses for reading system mail messages on your system. However if your system is running as a webserver than user account www-data probably has got many messages. If you want to remove all of the mails for user www-data just go to:</p>
<p class="code_header">
<blockquote>
<div class="code">cd /var/mail/<br />
ls -l</div>
</blockquote>
<p>Make sure that file www-data is listed.</p>
<p>Now you can safely remove that file by typing:</p>
<p class="code_header">
<blockquote>
<div class="code">rm www-data</div>
</blockquote>
<p>The post <a href="https://ubuntudog.com/how-to-remove-all-of-the-mails-for-a-user-account-on-your-system/">How to remove all of the mails for a user account on your system</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Aptana remote won&#8217;t remember password</title>
		<link>https://ubuntudog.com/aptana-remote-wont-remember-password/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Sun, 24 Nov 2019 20:49:02 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">http://ubuntudog.com/?p=157</guid>

					<description><![CDATA[<p>This is really annoying. My Aptana remote won&#8217;t remember passwords for my sites. I&#8217;ve come up with easy solution. Finally I&#8217;ve found the problem for this bug. Although I updated Aptana to latest release and they state that this issue would have been solved, it is not. Actually the problem is that Aptana remote will ... <a title="Aptana remote won&#8217;t remember password" class="read-more" href="https://ubuntudog.com/aptana-remote-wont-remember-password/" aria-label="Read more about Aptana remote won&#8217;t remember password">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/aptana-remote-wont-remember-password/">Aptana remote won&#8217;t remember password</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This is really annoying. My Aptana remote won&#8217;t remember passwords for my sites. I&#8217;ve come up with easy solution. Finally I&#8217;ve found the problem for this bug. Although I updated Aptana to latest release and they state that this issue would have been solved, it is not. Actually the problem is that Aptana remote will not remember password. The checkbox is empty when I click up properties for a remote site.</p>
<p>This is how to solve this bug. Go to:<br />
<strong><span class="_b">Preferences &gt; General &gt; Security &gt; Secure Storage &gt; Contents &gt; Delete</span></strong></p>
<p>The Aptana will restart and window will appear there you have to create two security questions. Create these and now your Aptana remote will remember the passwords.</p>
<p>Chears!</p>
<p>The post <a href="https://ubuntudog.com/aptana-remote-wont-remember-password/">Aptana remote won&#8217;t remember password</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to remove Powered By OpenCart</title>
		<link>https://ubuntudog.com/how-to-remove-powered-by-opencart/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Sun, 24 Nov 2019 20:48:14 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[OpenCart]]></category>
		<guid isPermaLink="false">http://ubuntudog.com/?p=155</guid>

					<description><![CDATA[<p>Powered By OpenCart is a language variable located in footer.php language file. Edit the file /catalog/language/-yourlang-/common/footer.php and remove the text before the first %s in the variable $_[&#8216;text_powered&#8217;] That&#8217;s it 😉</p>
<p>The post <a href="https://ubuntudog.com/how-to-remove-powered-by-opencart/">How to remove Powered By OpenCart</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Powered By OpenCart is a language variable located in footer.php language file. Edit the file <strong>/catalog/language/-yourlang-/common/footer.php</strong><br />
and remove the text before the first <strong>%s</strong> in the variable <strong>$_[&#8216;text_powered&#8217;]</strong></p>
<p>That&#8217;s it 😉</p>
<p>The post <a href="https://ubuntudog.com/how-to-remove-powered-by-opencart/">How to remove Powered By OpenCart</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>OpenCart: How to move search field to top menu (content_top.tpl)</title>
		<link>https://ubuntudog.com/opencart-how-to-move-search-field-to-top-menu-content_top-tpl/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Sun, 24 Nov 2019 20:42:34 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[OpenCart]]></category>
		<guid isPermaLink="false">http://ubuntudog.com/?p=153</guid>

					<description><![CDATA[<p>Please read this article to learn how to easy move search field to another part of your page. In my case I will move it to my custom menu. First you need to copy the code for the search form from: /catalog/view/theme/-yourtheme-/template/common/header.tpl Code: &#60;div id=&#8221;search&#8221;&#62; &#60;div class=&#8221;button-search&#8221;&#62;&#60;/div&#62; &#60;?php if ($filter_name) { ?&#62; &#60;input type=&#8221;text&#8221; name=&#8221;filter_name&#8221; ... <a title="OpenCart: How to move search field to top menu (content_top.tpl)" class="read-more" href="https://ubuntudog.com/opencart-how-to-move-search-field-to-top-menu-content_top-tpl/" aria-label="Read more about OpenCart: How to move search field to top menu (content_top.tpl)">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/opencart-how-to-move-search-field-to-top-menu-content_top-tpl/">OpenCart: How to move search field to top menu (content_top.tpl)</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Please read this article to learn how to easy move search field to another part of your page. In my case I will move it to my custom menu. First you need to copy the code for the search form from: <strong>/catalog/view/theme/-yourtheme-/template/common/header.tpl</strong></p>
<p class="code_header">Code:</p>
<blockquote>
<div class="code">
&lt;div id=&#8221;search&#8221;&gt;<br />
&lt;div class=&#8221;button-search&#8221;&gt;&lt;/div&gt;<br />
&lt;?php if ($filter_name) { ?&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;filter_name&#8221; value=&#8221;&lt;?php echo $filter_name; ?&gt;&#8221; /&gt;<br />
&lt;?php } else { ?&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;filter_name&#8221; value=&#8221;&lt;?php echo $text_search; ?&gt;&#8221; onclick=&#8221;this.value = &#8221;;&#8221; onkeydown=&#8221;this.style.color = &#8216;#000000&#8217;;&#8221; /&gt;<br />
&lt;?php } ?&gt;<br />
&lt;/div&gt;</div>
</blockquote>
<p>Now I will paste this code in my content_top.tpl file located in the same directory as header.tpl</p>
<p>Open up header.php that is located in <strong>/catalog/controller/common/ directory</strong><br />
and copy these code lines:</p>
<p class="code_header">Code:</p>
<blockquote>
<div class="code">
$this-&gt;language-&gt;load(&#8216;common/header&#8217;);<br />
$this-&gt;data[&#8216;text_search&#8217;] = $this-&gt;language-&gt;get(&#8216;text_search&#8217;);<br />
if (isset($this-&gt;request-&gt;get[&#8216;filter_name&#8217;])) {<br />
$this-&gt;data[&#8216;filter_name&#8217;] = $this-&gt;request-&gt;get[&#8216;filter_name&#8217;];<br />
} else {<br />
$this-&gt;data[&#8216;filter_name&#8217;] = &#8221;;<br />
}</p>
</div>
</blockquote>
<p>Paste these lines into the file <strong>/catalog/controller/common/content_top.php </strong>under public function index(). Just paste it below the line 10 or 11.</p>
<p>Copy now language variable for the input search text to the right language file.</p>
<p>Copy variable <span class="_b">$_[&#8216;text_search&#8217;] = &#8216;Search&#8217;;</span> from /language/-yourlangugage-/common/header.php to /language/-yourlangugage-/yourlanguage.php</p>
<p>The last thing we need to make is to copy js function that will post our search. Your search field is for sure not placed in the #header at this time so we need to copy function from /catalog/view/javascript/common.js and rename it.</p>
<p>Copy and paste this function into the same js file and don&#8217;t forget to rename #header according to your div&#8217;s/container&#8217;s ID (#example) or class (.example).</p>
<p class="code_header">Code:</p>
<blockquote>
<div class="code">
$(&#8216;#header input[name=&#8217;filter_name&#8217;]&#8217;).keydown(function(e) {<br />
if (e.keyCode == 13) {<br />
url = $(&#8216;base&#8217;).attr(&#8216;href&#8217;) + &#8216;index.php?route=product/search&#8217;;<br />
var filter_name = $(&#8216;input[name=&#8217;filter_name&#8217;]&#8217;).attr(&#8216;value&#8217;)</p>
<p>if (filter_name) {<br />
url += &#8216;&amp;filter;_name=&#8217; + encodeURIComponent(filter_name);<br />
}</p>
<p>location = url;<br />
}<br />
});</p></div>
</blockquote>
<p>My div container looks like this &lt;div id=&#8221;example&#8221;&gt;&#8230;.search field code&#8230;&lt;/div&gt; so my javascript function for submitting the search form will look like this:</p>
<p class="code_header">Code:</p>
<blockquote>
<div class="code">
$(&#8216;#example input[name=&#8217;filter_name&#8217;]&#8217;).keydown(function(e) {<br />
if (e.keyCode == 13) {<br />
url = $(&#8216;base&#8217;).attr(&#8216;href&#8217;) + &#8216;index.php?route=product/search&#8217;;<br />
var filter_name = $(&#8216;input[name=&#8217;filter_name&#8217;]&#8217;).attr(&#8216;value&#8217;)</p>
<p>if (filter_name) {<br />
url += &#8216;&amp;filter;_name=&#8217; + encodeURIComponent(filter_name);<br />
}</p>
<p>location = url;<br />
}<br />
});</p></div>
</blockquote>
<p>I hope you enjoyed this article 😉</p>
<p>The post <a href="https://ubuntudog.com/opencart-how-to-move-search-field-to-top-menu-content_top-tpl/">OpenCart: How to move search field to top menu (content_top.tpl)</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
