<?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>Linux Archives - ubuntu|dog</title>
	<atom:link href="https://ubuntudog.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://ubuntudog.com/category/linux/</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>Linux Archives - ubuntu|dog</title>
	<link>https://ubuntudog.com/category/linux/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Generate API Reference documentation</title>
		<link>https://ubuntudog.com/generate-api-reference-documentation/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Thu, 22 Dec 2022 02:12:28 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://ubuntudog.com/?p=273</guid>

					<description><![CDATA[<p>Follow those steps to generate API Reference documentation from a JSON file.</p>
<p>The post <a href="https://ubuntudog.com/generate-api-reference-documentation/">Generate API Reference documentation</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Follow those steps to generate API Reference documentation from a JSON file.</p>



<ol class="wp-block-list">
<li>Download latest API reference as JSON file from desired platform</li>



<li>Convert it to yaml for easier modificatoin and convert it back to json file</li>



<li>Download Swagger UI https://github.com/swagger-api/swagger-ui/releases</li>



<li>Copy the contents of the /dist folder to your server and modify index and js file</li>
</ol>
<p>The post <a href="https://ubuntudog.com/generate-api-reference-documentation/">Generate API Reference documentation</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>How to install PHP opcache</title>
		<link>https://ubuntudog.com/how-to-install-php-opcache/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Sun, 08 Dec 2019 15:16:15 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://ubuntudog.com/?p=214</guid>

					<description><![CDATA[<p>OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. CMS frameworks such as WordPress, Joomla and Drupal, use a complex code and consume many processes. Several website speed enhancement plugins are available, heavily featured within the yield of ... <a title="How to install PHP opcache" class="read-more" href="https://ubuntudog.com/how-to-install-php-opcache/" aria-label="Read more about How to install PHP opcache">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/how-to-install-php-opcache/">How to install PHP opcache</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request.</p>
<p>CMS frameworks such as WordPress, Joomla and Drupal, use a complex code and consume many processes. Several website speed enhancement plugins are available, heavily featured within the yield of a typical search engine recommendation. Most of them do not explain how to enable opcode caching server-side – thankfully, it’s simple to implement.</p>
<p>A cursory search for ways to speed up websites will yield plugins and bolt on that only address part of the requirement. The Power Users amongst us need to know how to enable functionality server-side. This short guide will cover off the basics to get you started with OPcache on Ubuntu 18.04 with PHP 7.3 but approach is more or less the same for all Ubuntu versions.</p>
<p>For more detailed runtime options, take a look at the php.net site which has a page of all the <a href="https://www.php.net/manual/en/opcache.configuration.php">runtime options available</a>.</p>
<p>To get OPcache set up requires some changes in the php.ini file on your server.</p>
<p>Open php.ini in your favourite text editor<br />
To get started open your <strong>php.ini</strong> file. Depending on your configuration, this will be in one of two locations:</p>
<pre><strong>APACHE </strong>
sudo nano /etc/php/7.3/apache2/php.ini</pre>
<p>Or</p>
<pre><strong>NGINX </strong>
sudo nano /etc/php/7.3/fpm/php.ini</pre>
<p><strong>Enable OPcache</strong><br />
To enable the OPcache, change to the following lines of your php.ini file:</p>
<pre>;opcache.enable=0</pre>
<p>Change to:</p>
<pre>opcache.enable=1</pre>
<p>Note: Remember to uncomment this line and other configuration lines (remove the “;”) as well as change the “0″ to “1″ Otherwise your change won’t take effect.</p>
<p>Modify the amount of RAM the OPcache will use<br />
With OPcache, there is a trade-off between speed and the amount of RAM used. The more RAM you are willing to dedicate to storing opcode, the more opcode that can be stored. There is a diminishing return at some point, because some code will execute rarely, or your code base might not be that big. It is worth playing with this setting to see where you get the best performance-versus-RAM trade-off. This setting is in megabytes.</p>
<pre>;opcache.memory_consumption=64</pre>
<p>Change to:</p>
<pre>opcache.memory_consumption=128</pre>
<p>Boost the number of scripts that can be cached<br />
OPcache has a strange setting that requires you to not only adjust the amount of RAM but also define the number of scripts that can be cached. You have the option of tuning this parameter for your own application too, especially if you find that your hit rate is not close to 100 percent.</p>
<pre>;opcache.max_accelerated_files=2000</pre>
<p>Change to:</p>
<pre>opcache.max_accelerated_files=4000</pre>
<p>Change the revalidate frequency<br />
To make sure that the OPcache notices when you change your PHP code, you can set the revalidate frequency. Basically, this will tell the cache how often to check the timestamp on the files. This is measured in seconds.</p>
<pre>;opcache_revalidate_freq = 2</pre>
<p>Change to:</p>
<pre>opcache_revalidate_freq = 240</pre>
<p>Verify that the PHP OPcache mod is enabled<br />
Believe it or not, that converts most of the settings you will need to get started. PHP7 has its own module system (since 5.4), so make sure that OPcache is enabled.</p>
<pre>sudo phpenmod opcache</pre>
<p>Restart PHP<br />
You should now be all set to start using PHP 7’s OPcache. You just need to restart the appropriate service to get it going.</p>
<p>APACHE WEB SERVERS</p>
<pre>sudo service apache2 restart</pre>
<p>NGINX WEB SERVERS</p>
<pre>sudo service nginx restart</pre>
<p>The post <a href="https://ubuntudog.com/how-to-install-php-opcache/">How to install PHP opcache</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Howto disable or enable apache2 autostart on Ubuntu</title>
		<link>https://ubuntudog.com/howto-disable-apache2-autostart-on-ubuntu/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Thu, 05 Dec 2019 02:37:43 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://ubuntudog.com/?p=207</guid>

					<description><![CDATA[<p>Folder /etc/init.d/ contains all the init scripts for different boot up services like for example nginx, apache, mysql, etc. There is a program that makes those services simple to enable or disable from the start up. If you need to disable apache2 from start up, type: sudo update-rc.d apache2 disable To enable apache2 at start ... <a title="Howto disable or enable apache2 autostart on Ubuntu" class="read-more" href="https://ubuntudog.com/howto-disable-apache2-autostart-on-ubuntu/" aria-label="Read more about Howto disable or enable apache2 autostart on Ubuntu">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/howto-disable-apache2-autostart-on-ubuntu/">Howto disable or enable apache2 autostart on Ubuntu</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Folder <strong>/etc/init.d/</strong> contains all the init scripts for different boot up services like for example nginx, apache, mysql, etc.</p>
<p>There is a program that makes those services simple to enable or disable from the start up.</p>
<p>If you need to <strong>disable apache2 from start up</strong>, type:<br />
<code>sudo update-rc.d apache2 disable</code></p>
<p>To <strong>enable apache2 at start up</strong>, type:<br />
<code>sudo update-rc.d apache2 enable</code></p>
<p>The post <a href="https://ubuntudog.com/howto-disable-apache2-autostart-on-ubuntu/">Howto disable or enable apache2 autostart on Ubuntu</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to upgrade to PHP 7.3 on Ubuntu</title>
		<link>https://ubuntudog.com/how-to-upgrade-to-php-7-3-on-ubuntu/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Fri, 29 Nov 2019 22:55:42 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://ubuntudog.com/?p=198</guid>

					<description><![CDATA[<p>PHP 7.3 has a lot of performance advantages compared to 7.2 and co among other bug fixes. Since performance is one of my main reason why I wanted to upgrade to PHP 7.3 on my Ubuntu server I am going to share how you can upgrade to PHP 7.3 on Ubuntu. My machine run Ubuntu ... <a title="How to upgrade to PHP 7.3 on Ubuntu" class="read-more" href="https://ubuntudog.com/how-to-upgrade-to-php-7-3-on-ubuntu/" aria-label="Read more about How to upgrade to PHP 7.3 on Ubuntu">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/how-to-upgrade-to-php-7-3-on-ubuntu/">How to upgrade to PHP 7.3 on Ubuntu</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>PHP 7.3 has a lot of performance advantages compared to 7.2 and co among other bug fixes. Since performance is one of my main reason why I wanted to upgrade to PHP 7.3 on my Ubuntu server I am going to share how you can upgrade to PHP 7.3 on Ubuntu. My machine run Ubuntu 18.04 but I have performed this upgrade even on lower versions like Ubuntu 16.04 without any problems.</p>
<p>Let&#8217;s get started.</p>
<h3>WARNING</h3>
<p>Because PHP 7.3 is not yet officially released, there can be several bugs and other kind of issues since once again its not official yet. I highly recommend you not upgrade your production servers to PHP 7.3 yet.</p>
<h2>1. Add <code>ondrej/php</code> PPA</h2>
<p>We are going to use PHP PPA by Ondrej. He has published PHP 7.3 on all supported Ubuntu versions.</p>
<h5>Commands</h5>
<pre><code>sudo add-apt-repository ppa:ondrej/php # Press enter to confirm.
sudo apt-get update</code></pre>
<h2>2. Write down current PHP packages</h2>
<p>If you are upgrading PHP from an earlier version, it&#8217;s important to make sure you ensure you have the same PHP extensions installed. PHP 7.2 onwards no longer include <code>mcrypt</code> extension. Other than that, PHP 7.3 includes all extensions that were in PHP 7.1 and 7.2. <code>dpkg -l | grep php | tee packages.txt</code> Above command will list all packages installed in your system that has <em>php</em> in its name, and write them to a file called <code>packages.txt</code> in your current working directory. You can easily refer this file to install the same PHP 7.3 package counter parts.</p>
<h2>3. Install PHP 7.3</h2>
<p>Now to the juicy part!</p>
<h3>PHP 7.3 core</h3>
<pre>sudo apt install php7.3 php7.3-common php7.3-cli</pre>
<p>This will install PHP 7.3 core extensions and PHP 7.3 CLI.</p>
<h3>PHP 7.3 extensions</h3>
<p>You can now install the remaining packages as necessary. If you are setting up a new setup, or have no clear idea which packages to install, I highly recommend installing the following packages from the command below. If you are upgrading, look at the <code>packages.txt</code> file to see your current list.</p>
<pre>sudo apt-get install php7.3-curl php7.3-gd php7.3-intl php7.3-bcmath php7.3-imap php7.3-json php7.3-mysql php7.3-oauth php7.3-readline php7.3-bz2 php7.3-mbstring php7.3-opcache php7.3-readline php7.3-xml php7.3-zip</pre>
<h3>PHP 7.3 for web server</h3>
<p>With all these packages in place, you might also need to integrate PHP with your web server. If you are using Nginx, or Apache with mod_event, you will need to install <code>php7.3-fpm</code> package. If you are using PHP as an embedded Apache module, you will need <code>libapache2-mod-php7.3</code> package. For Apache, you can run <code>apachectl -V</code> to see your current MPM, whether its <code>prefork</code> or <code>event</code>.</p>
<h5>Nginx and Apache with <code>event</code> MPM</h5>
<pre>apt install php7.3-fpm</pre>
<h5>Apache with <code>prefork</code> MPM</h5>
<pre>apt install libapache2-mod-php7.3</pre>
<h5>Activate php7.3 Apache module</h5>
<pre>sudo a2enmod php7.3</pre>
<h5>Issue update and upgrade command</h5>
<pre>sudo apt-get update</pre>
<pre>sudo apt-get upgrade</pre>
<p>The post <a href="https://ubuntudog.com/how-to-upgrade-to-php-7-3-on-ubuntu/">How to upgrade to PHP 7.3 on Ubuntu</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>osTicket &#8211; Solve problem with cron.php</title>
		<link>https://ubuntudog.com/osticket-solve-problem-with-cron-php/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Sun, 24 Nov 2019 21:00:51 +0000</pubDate>
				<category><![CDATA[GPS Tracking]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://ubuntudog.com/?p=177</guid>

					<description><![CDATA[<p>Do you have troubles polling IMAP or POP via cron.php job? I have a solution. Here is a simple solution that will help you solve the problem with cron.php 1. go into /api/ and copy cron.php to some random filename like xfgjkdscron.php 2. now edit xfgjkdscron.php and comment lines: //if (!osTicket::is_cli()) //die(__(&#8216;cron.php only supports local ... <a title="osTicket &#8211; Solve problem with cron.php" class="read-more" href="https://ubuntudog.com/osticket-solve-problem-with-cron-php/" aria-label="Read more about osTicket &#8211; Solve problem with cron.php">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/osticket-solve-problem-with-cron-php/">osTicket &#8211; Solve problem with cron.php</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Do you have troubles polling IMAP or POP via cron.php job? I have a solution. Here is a simple solution that will help you solve the problem with cron.php</p>
<p>1. go into /api/ and copy cron.php to some random filename like xfgjkdscron.php</p>
<p>2. now edit xfgjkdscron.php and comment lines:<br />
//if (!osTicket::is_cli())<br />
//die(__(&#8216;cron.php only supports local cron calls &#8211; use http -&gt; api/tasks/cron&#8217;));</p>
<p>3. Create a cronjob on an external server like this:</p>
<p>A) Issue crontab -e at command line and add below command to it</p>
<p>*/1 * * * * wget -qO- &#8211;user-agent=&lt;API KEY FROM osticket here&gt; https://www.example.com/api/xfgjkdscron.php &amp;&gt; /dev/null</p>
<p>The post <a href="https://ubuntudog.com/osticket-solve-problem-with-cron-php/">osTicket &#8211; Solve problem with cron.php</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Chrooted user for VSFTP and Webserver purpose</title>
		<link>https://ubuntudog.com/chrooted-user-for-vsftp-and-webserver-purpose/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Sun, 24 Nov 2019 20:58:03 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://ubuntudog.com/?p=173</guid>

					<description><![CDATA[<p>If you need to create a chrooted user for one of your webservers particular folder please read this article. 1. First we need to create a system user # useradd test # passwd test 2. Disable SSH access for FTP users The default user creation script will give a user the /bin/bash shell, which can ... <a title="Chrooted user for VSFTP and Webserver purpose" class="read-more" href="https://ubuntudog.com/chrooted-user-for-vsftp-and-webserver-purpose/" aria-label="Read more about Chrooted user for VSFTP and Webserver purpose">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/chrooted-user-for-vsftp-and-webserver-purpose/">Chrooted user for VSFTP and Webserver purpose</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you need to create a chrooted user for one of your webservers particular folder please read this article.</p>
<p>1. First we need to create a system user</p>
<blockquote>
<div class="code"># useradd test<br />
# passwd test</div>
</blockquote>
<p>2. Disable SSH access for FTP users<br />
The default user creation script will give a user the /bin/bash shell, which can be a little too powerful. If you don&#8217;t want your users logging into your server via SSH, we need to know how to block this access. If you change the shell to /bin/false, the users will only be able to login via ftp or mail if you have that setup. Here is how to modify your users:</p>
<blockquote>
<div class="code">usermod -s /sbin/nologin test</div>
</blockquote>
<p>3. Now add group www-data to your test user by issuing:</p>
<p class="code_header">
<blockquote>
<div class="code">usermod -a -G www-data,test test</div>
</blockquote>
<p>Where test is the user you want to modify and www-data and test are the new groups you want that user to join. Running the command without the -a argument will remove that user from all groups except group1 and group2.</p>
<p>You can check <strong>/etc/groups</strong> file to see the result.</p>
<p>4. Configure vsftpd to be chrooted.</p>
<p>5. Root directory for example /var/www/test/ needs to be owned by root user and group. The rest of the folders and files inside this directory should have www-data:test permissions.</p>
<p>6. Change root directory of your user by modifying /etc/passwd</p>
<blockquote>
<div class="code">test:x:1001:1001::/var/www/test:/bin/ftponly</div>
</blockquote>
<p>Important: number 1001 above could be different in your case.</p>
<p>Read more: <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-16-04">https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-16-04</a></p>
<p>The post <a href="https://ubuntudog.com/chrooted-user-for-vsftp-and-webserver-purpose/">Chrooted user for VSFTP and Webserver purpose</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Restart network in Ubuntu from command line</title>
		<link>https://ubuntudog.com/restart-network-in-ubuntu-from-command-line/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Sun, 24 Nov 2019 20:53:49 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://ubuntudog.com/?p=167</guid>

					<description><![CDATA[<p>If you&#8217;ve changed network configuration file /etc/network/interfaces for example you probably whish to apply changes. You can do it by two commands that I will write about in this article. Say for example that you&#8217;ve changed network configuration and need to apply these changes. Ofcourse you could restart your computer but it&#8217;s much easier to ... <a title="Restart network in Ubuntu from command line" class="read-more" href="https://ubuntudog.com/restart-network-in-ubuntu-from-command-line/" aria-label="Read more about Restart network in Ubuntu from command line">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/restart-network-in-ubuntu-from-command-line/">Restart network in Ubuntu from command line</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you&#8217;ve changed network configuration file <strong>/etc/network/interfaces</strong> for example you probably whish to apply changes. You can do it by two commands that I will write about in this article. Say for example that you&#8217;ve changed network configuration and need to apply these changes. Ofcourse you could restart your computer but it&#8217;s much easier to apply changes from command line by restarting the network.</p>
<p>1. Restart network interfaces</p>
<p class="code_header">
<blockquote>
<div class="code">$ sudo /etc/init.d/networking restart</div>
</blockquote>
<p>2. Restart dhcp</p>
<p class="code_header">
<blockquote>
<div class="code">$ sudo /etc/init.d/dhclient</div>
</blockquote>
<p>Now your network configuration is applied without restarting the computer.</p>
<p>The post <a href="https://ubuntudog.com/restart-network-in-ubuntu-from-command-line/">Restart network in Ubuntu from command line</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ext3-fs: error loading journal</title>
		<link>https://ubuntudog.com/ext3-fs-error-loading-journal/</link>
		
		<dc:creator><![CDATA[dean]]></dc:creator>
		<pubDate>Sun, 24 Nov 2019 20:52:37 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://ubuntudog.com/?p=165</guid>

					<description><![CDATA[<p>After a power surge, your linux server could be rendered un-bootable because of a corrupt file-system journal. If you are lucky and there are no physical errors, then the following could get your computer back to life. 1. Boot the linux box using live-cd (any bootable installer for server computers). 2. Choose &#8220;rescue a broken ... <a title="ext3-fs: error loading journal" class="read-more" href="https://ubuntudog.com/ext3-fs-error-loading-journal/" aria-label="Read more about ext3-fs: error loading journal">Read more</a></p>
<p>The post <a href="https://ubuntudog.com/ext3-fs-error-loading-journal/">ext3-fs: error loading journal</a> appeared first on <a href="https://ubuntudog.com">ubuntu|dog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>After a power surge, your linux server could be rendered un-bootable because of a corrupt file-system journal. If you are lucky and there are no physical errors, then the following could get your computer back to life.</p>
<blockquote><p>
1. Boot the linux box using live-cd (any bootable installer for server computers).<br />
2. Choose &#8220;rescue a broken system&#8221;.<br />
3. Get to the shell and issue the following command:<br />
4. fsck.ext3 /dev/sda1 (or other, depending on your partition)<br />
5. The list of partitions can be displayed using:<br />
6. fdisk -l</p></blockquote>
<p>The post <a href="https://ubuntudog.com/ext3-fs-error-loading-journal/">ext3-fs: error loading journal</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>
	</channel>
</rss>
