<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>System Administration on Jaymin Patel</title><link>https://jayminpatel.elemprin.com/tags/system-administration/</link><description>Recent content in System Administration on Jaymin Patel</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 08 Sep 2022 00:00:00 +0530</lastBuildDate><atom:link href="https://jayminpatel.elemprin.com/tags/system-administration/index.xml" rel="self" type="application/rss+xml"/><item><title>High Availability on OpenWrt with Keepalived, UCI, and LuCI</title><link>https://jayminpatel.elemprin.com/posts/2022-09-08-keepalived-uci-luci/</link><pubDate>Thu, 08 Sep 2022 00:00:00 +0530</pubDate><guid>https://jayminpatel.elemprin.com/posts/2022-09-08-keepalived-uci-luci/</guid><description>&lt;p>When a router goes down, the network goes down. For homes, it's an annoyance. For businesses, it's lost revenue. Keepalived solves this by implementing VRRP (Virtual Router Redundancy Protocol) -- two or more routers share a virtual IP. If the master fails, the backup takes over in seconds.&lt;/p>
&lt;p>I contributed Keepalived integration to OpenWrt across three areas: the core package improvements, a UCI configuration layer, and a LuCI web interface.&lt;/p></description></item><item><title>Real-Time Network Monitoring with Apinger on OpenWrt</title><link>https://jayminpatel.elemprin.com/posts/2022-07-06-apinger-uci-procd/</link><pubDate>Wed, 06 Jul 2022 00:00:00 +0530</pubDate><guid>https://jayminpatel.elemprin.com/posts/2022-07-06-apinger-uci-procd/</guid><description>&lt;p>When your network link goes down, every second counts. Whether you're running a home office with a cable modem and cellular backup, or managing a multi-WAN enterprise router, you need to know the moment a connection fails -- and you need the system to respond automatically.&lt;/p>
&lt;p>Apinger gives you that capability. It's a lightweight alive-monitoring daemon that pings multiple targets across different interfaces and triggers configurable alarm actions when links degrade or fail. With the new UCI and LuCI integration, setting it up takes minutes.&lt;/p></description></item><item><title>Persistent SSH Tunnels with Autossh and UCI on OpenWrt</title><link>https://jayminpatel.elemprin.com/posts/2022-07-04-autossh-uci-procd/</link><pubDate>Mon, 04 Jul 2022 00:00:00 +0530</pubDate><guid>https://jayminpatel.elemprin.com/posts/2022-07-04-autossh-uci-procd/</guid><description>&lt;p>SSH tunnels are the Swiss Army knife of network connectivity. Need to access a device behind NAT? Reverse tunnel. Want to secure traffic over an untrusted network? Local forward. Managing remote routers from a central jump host? Multiple tunnels, multiple ports.&lt;/p>
&lt;p>The problem with SSH tunnels is that they die. Network blips, ISP maintenance, DHCP lease renewals -- any interruption kills the connection and the tunnel goes down. Manually SSH-ing back into a remote router to re-establish tunnels doesn't scale past a handful of devices.&lt;/p></description></item><item><title>Linux Boot Loader</title><link>https://jayminpatel.elemprin.com/posts/2011-08-29-linux-boot-loader/</link><pubDate>Mon, 29 Aug 2011 00:02:00 +0530</pubDate><guid>https://jayminpatel.elemprin.com/posts/2011-08-29-linux-boot-loader/</guid><description>&lt;p>In our last post we covered the basics of Linux System Initialization. Now let's take a deeper look at the Linux Boot Loader.&lt;/p>
&lt;p>There are two possible ways to configure boot loaders:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Primary Boot Loader:&lt;/strong> Install the first stage of the boot loader into the MBR, but the boot loader must be configured to pass control to any other desired OS.&lt;/li>
&lt;li>&lt;strong>Secondary Boot Loader:&lt;/strong> Install the first stage into the boot sector of any partition on disk. Another boot loader must be installed and configured in the MBR to pass control to the OS.&lt;/li>
&lt;/ul>
&lt;p>There are two basic boot loaders used in Linux distributions:&lt;/p></description></item><item><title>Linux System Initialization</title><link>https://jayminpatel.elemprin.com/posts/2011-08-27-linux-system-initialization/</link><pubDate>Sat, 27 Aug 2011 00:00:00 +0530</pubDate><guid>https://jayminpatel.elemprin.com/posts/2011-08-27-linux-system-initialization/</guid><description>&lt;p>As a technical geek and Linux user we must have a knowledge of the Linux system Initialization process. Let's first start with its basic and will take it to the depth in upcoming articles.&lt;/p>
&lt;p>When Linux system is started, there are few basic steps are involved in process.&lt;/p>
&lt;ol>
&lt;li>Hardware Initialization&lt;/li>
&lt;li>Boot Loader&lt;/li>
&lt;li>Kernel Initialization&lt;/li>
&lt;li>Init Initialization&lt;/li>
&lt;/ol>
&lt;p>Let's have a look at them one by one.&lt;/p>
&lt;h2 id="1-hardware-initialization">
 1. Hardware Initialization
 &lt;a class="heading-link" href="#1-hardware-initialization">
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading">&lt;/i>
 &lt;span class="sr-only">Link to heading&lt;/span>
 &lt;/a>
&lt;/h2>
&lt;ul>
&lt;li>Everything on system starts with BIOS.&lt;/li>
&lt;li>BIOS runs &lt;a href="http://en.wikipedia.org/wiki/Power-on_self-test" class="external-link" target="_blank" rel="noopener">POST&lt;/a> (Power On Self Test), which checks hardware.&lt;/li>
&lt;li>It then passes control to the boot device.&lt;/li>
&lt;/ul>
&lt;h2 id="2-boot-loader">
 2. Boot Loader
 &lt;a class="heading-link" href="#2-boot-loader">
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading">&lt;/i>
 &lt;span class="sr-only">Link to heading&lt;/span>
 &lt;/a>
&lt;/h2>
&lt;ul>
&lt;li>Boot loader is responsible for loading and starting OS when computer is powered on.&lt;/li>
&lt;li>It generally invoked in two ways.&lt;/li>
&lt;/ul>
&lt;blockquote>
&lt;p>BIOS passes control to an &lt;a href="http://en.wikipedia.org/wiki/Initial_Program_Load#Initial_Program_Load" class="external-link" target="_blank" rel="noopener">IPL&lt;/a> (Initial Program Loader) installed within a drive's &lt;a href="http://en.wikipedia.org/wiki/Master_boot_record" class="external-link" target="_blank" rel="noopener">MBR&lt;/a> (Master Boot Record).&lt;/p></description></item><item><title>Allow Normal User to su Without Password</title><link>https://jayminpatel.elemprin.com/posts/2010-05-16-su-without-password/</link><pubDate>Sun, 16 May 2010 11:45:00 +0530</pubDate><guid>https://jayminpatel.elemprin.com/posts/2010-05-16-su-without-password/</guid><description>&lt;p>All Unix and Linux system will ship with different default policies. Usually these policies don't match the local policies, such as which users are allowed what kind of access to which resources and when. In addition security policies may require non-default authentication and/or logging.&lt;/p>
&lt;p>A system administrator must examine the system's configuration files and update them if necessary to enforce local policies. On modern systems PAM (Pluggable Authentication Modules) can be used to configure a wide range of security policies, including which databases to use to authenticate users, minimum password length, max login attempts, special permissions for console users (to various commands and devices), and many other policies.&lt;/p></description></item><item><title>Auto Logout in Linux</title><link>https://jayminpatel.elemprin.com/posts/2010-05-16-auto-logout-linux/</link><pubDate>Sun, 16 May 2010 11:41:00 +0530</pubDate><guid>https://jayminpatel.elemprin.com/posts/2010-05-16-auto-logout-linux/</guid><description>&lt;p>Almost everyone is forgetful and used to leave the Linux/Unix login session open without logging out. So, how to make sure all the Linux systems will automatically logout users after idle for certain minutes?&lt;/p>
&lt;p>In fact, the simplest way is to configure the &lt;strong>TMOUT&lt;/strong> shell variable!&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>export TMOUT&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">60&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This export command will immediately get the Linux OS to automatically logout a user after his/her login session being idle for 60 seconds or 1 minute!&lt;/p></description></item><item><title>Sulogin for Single User Mode</title><link>https://jayminpatel.elemprin.com/posts/2010-05-16-sulogin-single-user/</link><pubDate>Sun, 16 May 2010 11:36:00 +0530</pubDate><guid>https://jayminpatel.elemprin.com/posts/2010-05-16-sulogin-single-user/</guid><description>&lt;p>By default on Red Hat Linux, user can enter single user mode simply by typing &amp;quot;linux single&amp;quot; at the GRUB boot-editing menu. Some believe that this is left in to ease support of users with lost root passwords.&lt;/p>
&lt;p>In any case, it represents a clear security risk - authentication should always be required for root level access. It should be noted that it is extremely difficult to prevent compromise by any attacker who has knowledge, tools, and full physical access to a system. This kind of measure simply increases the difficulty of compromise by requiring more of each of these factors. These last two items have attempted to address concerns of physical/boot security.&lt;/p></description></item><item><title>Setup Proxy Setting in a Text-Based Linux Machine</title><link>https://jayminpatel.elemprin.com/posts/2010-05-16-proxy-settings-cli/</link><pubDate>Sun, 16 May 2010 11:32:00 +0530</pubDate><guid>https://jayminpatel.elemprin.com/posts/2010-05-16-proxy-settings-cli/</guid><description>&lt;p>In a generic scenario, internet access is running through a proxy in small offices. In that case, Linux command line utilities that require internet access to work like &lt;code>wget&lt;/code>, &lt;code>curl&lt;/code>, &lt;code>yum&lt;/code>, and &lt;code>apt-get&lt;/code> don't work. The questions that come up:&lt;/p>
&lt;ul>
&lt;li>How to install packages using proxy by yum?&lt;/li>
&lt;li>How to install packages using proxy by apt-get?&lt;/li>
&lt;li>How to download a file from command line using wget?&lt;/li>
&lt;/ul>
&lt;p>All these utilities depend on shell variables &lt;code>http_proxy&lt;/code> and &lt;code>ftp_proxy&lt;/code> to work with a proxy.&lt;/p></description></item></channel></rss>