<?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 &#8211; Choose a job you love</title>
	<atom:link href="https://cajyl.com/en/category/operating-system/linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://cajyl.com</link>
	<description>and you will never work a day</description>
	<lastBuildDate>Thu, 25 Jul 2024 22:31:10 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>

<image>
	<url>https://cajyl.com/wp-content/uploads/2024/07/73130396cee06279d984fbd48e98a35d-80x80.webp</url>
	<title>Linux &#8211; Choose a job you love</title>
	<link>https://cajyl.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Complete Guide to Vim Commands</title>
		<link>https://cajyl.com/en/complete-guide-to-vim-commands/</link>
					<comments>https://cajyl.com/en/complete-guide-to-vim-commands/#respond</comments>
		
		<dc:creator><![CDATA[Augustin]]></dc:creator>
		<pubDate>Thu, 25 Jul 2024 22:31:08 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Ordering]]></category>
		<guid isPermaLink="false">https://cajyl.com/?p=3549</guid>

					<description><![CDATA[Vim is a powerful and flexible text editor, widely used by developers for its speed and efficiency. Although its command-line interface can be intimidating for beginners, mastering its commands can&#8230;]]></description>
										<content:encoded><![CDATA[
<p>Vim is a powerful and flexible text editor, widely used by developers for its speed and efficiency. Although its command-line interface can be intimidating for beginners, mastering its commands can greatly improve your productivity. Here&#8217;s a complete rundown of Vim&#8217;s essential commands.</p>



<h2 id="vim-modes" class="wp-block-heading">Vim modes</h2>



<p>Vim has several operating modes. The main ones are :</p>



<ul class="wp-block-list">
<li><strong>Normal mode</strong>: The default mode for navigating and executing commands.</li>



<li><strong>Insert mode</strong>: To insert text.</li>



<li><strong>Visual mode</strong>: To select text.</li>



<li><strong>Command mode</strong>: To execute specific commands.<br></li>
</ul>



<h3 id="switching-between-modes" class="wp-block-heading">Switching between modes</h3>



<ul class="wp-block-list">
<li><strong>Esc</strong>: Return to Normal mode.</li>



<li><strong>i</strong>: Switch to Insert mode to the left of the cursor.</li>



<li><strong>a</strong>: Switch to Insert mode to the right of the cursor.</li>



<li><strong>v</strong>: Switch to Visual mode.</li>



<li><strong>(colon)</strong>: Switch to Command mode from Normal mode.<br></li>
</ul>



<h2 id="navigation" class="wp-block-heading">Navigation</h2>



<p>Navigating efficiently is crucial in Vim. Here are some basic commands:</p>



<ul class="wp-block-list">
<li><strong>h</strong>: Move the cursor to the left.</li>



<li><strong>j</strong>: Move the cursor down.</li>



<li><strong>k</strong>: Move the cursor upwards.</li>



<li><strong>l</strong>: Move the cursor to the right.</li>



<li><strong>w</strong>: Go to the beginning of the next word.</li>



<li><strong>b</strong>: Go to the beginning of the previous word.</li>



<li><strong>0</strong>: Go to the beginning of the line.</li>



<li>$ <strong>:</strong> Go to the end of the line.</li>



<li><strong>gg</strong>: Go to the beginning of the file.</li>



<li><strong>G</strong>: Go to the end of the file.<br></li>
</ul>



<h2 id="text-editing" class="wp-block-heading">Text Editing</h2>



<p>Vim offers a host of commands for editing text efficiently.</p>



<h3 id="insert-text" class="wp-block-heading">Insert text</h3>



<ul class="wp-block-list">
<li><strong>i</strong>: Insert before the cursor.</li>



<li><strong>I</strong>: Insert at the beginning of the line.</li>



<li><strong>a</strong>: Insert after the cursor.</li>



<li><strong>A</strong>: Insert at the end of the line.</li>



<li><strong>o</strong>: Insert a new line underneath.</li>



<li><strong>O</strong>: Insert a new line above.<br></li>
</ul>



<h3 id="delete-from-text" class="wp-block-heading">Delete from text</h3>



<ul class="wp-block-list">
<li><strong>x</strong>: Delete the character below the cursor.</li>



<li><strong>dd</strong>: Delete the entire line.</li>



<li><strong>dw</strong>: Delete to the beginning of the next word.</li>



<li><strong>D</strong>: Delete to the end of the line.<br></li>
</ul>



<h3 id="copy-and-paste" class="wp-block-heading">Copy and Paste</h3>



<ul class="wp-block-list">
<li><strong>yy</strong>: Copy (yank) the entire line.</li>



<li><strong>yw</strong>: Copy the next word.</li>



<li><strong>p</strong>: Paste after the cursor.</li>



<li><strong>P</strong>: Paste before the cursor.<br></li>
</ul>



<h3 id="undo-and-redo" class="wp-block-heading">Undo and Redo</h3>



<ul class="wp-block-list">
<li><strong>u</strong>: Cancel the last order.</li>



<li><strong>Ctrl + r</strong>: Restore a cancelled command.<br></li>
</ul>



<h2 id="search-and-replacement" class="wp-block-heading">Search and replacement</h2>



<p>Searching for and replacing text are common operations in file editing.</p>



<h3 id="search" class="wp-block-heading">Search</h3>



<ul class="wp-block-list">
<li><strong>/</strong>: Search forwards in the file.</li>



<li><strong>?</strong>: Search backwards in the file.</li>



<li><strong>n</strong>: Go to the next occurrence.</li>



<li><strong>N</strong>: Go to the previous occurrence.<br></li>
</ul>



<h3 id="replacement" class="wp-block-heading">Replacement</h3>



<ul class="wp-block-list">
<li><strong>:s/old/new</strong>: Replace the first occurrence on the current line.</li>



<li><strong>:s/old/new/g</strong>: Replace all occurrences on the current line.</li>



<li><strong>:%s/old/new/g</strong>: Replace all occurrences in the entire file.<br></li>
</ul>



<h2 id="file-management" class="wp-block-heading">File Management</h2>



<p>File management commands are essential for opening, saving and closing files.</p>



<ul class="wp-block-list">
<li><strong>:e file_name</strong>: Open a file.</li>



<li><strong>:w</strong>: Save the current file.</li>



<li><strong>:w filename</strong>: Save under another name.</li>



<li><strong>:q</strong>: Exit Vim.</li>



<li><strong>:q!</strong> Quit without saving.</li>



<li><strong>:wq</strong>: Save and exit.<br></li>
</ul>



<h2 id="conclusion" class="wp-block-heading">Conclusion</h2>



<p>Vim is a powerful tool that can dramatically improve your workflow. Start with these basic commands and explore the many advanced features Vim has to offer. With practice, you&#8217;ll find that Vim becomes an indispensable tool in your development arsenal.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cajyl.com/en/complete-guide-to-vim-commands/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3549</post-id>	</item>
		<item>
		<title>Synology: The Ultimate NAS for Your Home and Office</title>
		<link>https://cajyl.com/en/synology-the-ultimate-nas-for-your-home-and-office/</link>
					<comments>https://cajyl.com/en/synology-the-ultimate-nas-for-your-home-and-office/#respond</comments>
		
		<dc:creator><![CDATA[Augustin]]></dc:creator>
		<pubDate>Thu, 18 Jul 2024 23:38:11 +0000</pubDate>
				<category><![CDATA[Homelab]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Synology]]></category>
		<guid isPermaLink="false">https://cajyl.com/?p=3310</guid>

					<description><![CDATA[In today&#8217;s digital world, managing and protecting your data is more crucial than ever. Synology, a leader in Network Attached Storage (NAS), offers robust and versatile solutions to meet these&#8230;]]></description>
										<content:encoded><![CDATA[
<p>In today&#8217;s digital world, managing and protecting your data is more crucial than ever. Synology, a leader in Network Attached Storage (NAS), offers robust and versatile solutions to meet these needs. In this article, we&#8217;ll explore what a Synology NAS is, why you need one, how to set it up, and the essential features to maximise its use.</p>



<h2 id="introduction-to-synology" class="wp-block-heading">Introduction to Synology</h2>



<h3 id="what-is-a-nas" class="wp-block-heading">What is a NAS?</h3>



<p>A NAS, or Network Attached Storage, is a storage device connected to your home or office network. Unlike a traditional external hard drive, a NAS allows multiple users and devices to access and share data centrally. Synology stands out for its performance, reliability and user-friendly interface.</p>



<h3 id="why-choose-synology" class="wp-block-heading">Why choose Synology?</h3>



<p>Here are a few reasons why Synology is an excellent choice for a NAS :</p>



<ol class="wp-block-list">
<li><strong>Easy to use</strong>: Synology&#8217;s DSM (DiskStation Manager) interface is intuitive and easy to use, even for beginners.</li>



<li><strong>Security</strong>: Synology offers robust backup and restore options, as well as data protection tools such as encryption and snapshots.</li>



<li><strong>Flexibility</strong>: With a wide range of models, Synology offers solutions adapted to all needs, from home storage to corporate infrastructures.</li>



<li><strong>Rich Ecosystem</strong>: Synology has a vast library of applications to extend the functionality of your NAS, such as media servers, backup solutions, and more.<br></li>
</ol>



<h2 id="installing-and-configuring-your-synology-nas" class="wp-block-heading">Installing and configuring your Synology NAS</h2>



<h3 id="preparation" class="wp-block-heading">Preparation</h3>



<p>Before you start, make sure you have the following items:</p>



<ul class="wp-block-list">
<li>Your Synology NAS</li>



<li>Compatible hard drives</li>



<li>Internet connection</li>



<li>A computer for initial configuration<br></li>
</ul>



<h3 id="physical-installation" class="wp-block-heading">Physical installation</h3>



<ol class="wp-block-list">
<li><strong>Insert the hard disks</strong>: Open the casing of your NAS and insert the hard disks into the available bays. Follow the instructions specific to your model.</li>



<li><strong>Connect the NAS</strong>: Plug your NAS into a power socket and connect it to your router via an Ethernet cable.<br></li>
</ol>



<h3 id="initial-configuration" class="wp-block-heading">Initial configuration</h3>



<ol class="wp-block-list">
<li><strong>Turn on the NAS</strong>: Press the power button to start the NAS.</li>



<li><strong>Access the DSM interface</strong>: Use a web browser to navigate to &#8220;find.synology.com&#8221; or the local IP of your NAS. Follow the on-screen instructions to install DSM.</li>



<li><strong>Create an admin account</strong>: Set up an administrator account to secure access to your NAS.</li>



<li><strong>Configure RAID</strong>: Synology offers a hybrid technology, Synology Hybrid RAID (SHR) and SHR-2, offering redundancy of 1 or 2 disks. Unlike traditional RAIDs, SHR allows greater flexibility, making it easier to add disks of different sizes while optimising the use of storage space. SHR-2 offers additional protection by tolerating the failure of two disks simultaneously, which is particularly useful for critical storage configurations.<br></li>
</ol>



<h2 id="synology-essential-features" class="wp-block-heading">Synology Essential Features</h2>



<h3 id="file-management" class="wp-block-heading">File Management</h3>



<p>Synology makes file management easy with File Station, a web application that makes browsing, transferring and organizing your files a breeze.</p>



<h3 id="backup-and-restore" class="wp-block-heading">Backup and Restore</h3>



<ol class="wp-block-list">
<li><strong>Hyper Backup</strong>: This application lets you schedule and run backups to different locations (external disks, other NAS, cloud services).</li>



<li><strong>Snapshot Replication</strong>: Capture the state of your files and folders at specific times to make it easier to restore them if necessary.<br></li>
</ol>



<h3 id="multimedia-server" class="wp-block-heading">Multimedia server</h3>



<p>Turn your NAS into a multimedia hub with applications like Video Station, Audio Station and Photo Station. Access your movies, music and photos from any connected device.</p>



<h3 id="remote-access" class="wp-block-heading">Remote Access</h3>



<p>With QuickConnect, access your NAS from anywhere without setting up complicated port forwarding rules. Synology also offers mobile applications to manage and access your data on the go.</p>



<h3 id="security" class="wp-block-heading">Security</h3>



<ol class="wp-block-list">
<li><strong>Data encryption</strong>: Protect your sensitive data with AES 256-bit encryption.</li>



<li><strong>Firewall and Protection</strong>: Configure firewall rules and enable features such as brute force attack protection to secure your NAS.<br></li>
</ol>



<h3 id="applications-and-extensions" class="wp-block-heading">Applications and Extensions</h3>



<p>Synology&#8217;s Package Center offers a multitude of applications to extend the capabilities of your NAS. Whether you need a mail server, a content management system or a monitoring solution, there is an application for it.</p>



<h2 id="synology-a-solid-base-for-your-homelab" class="wp-block-heading">Synology: A solid base for your Homelab</h2>



<p>One of the great things about a Synology NAS is that it&#8217;s a great base from which to start your own homelab. With the ability to install Docker directly on the NAS, you can experiment and deploy a multitude of containers for different services and applications. Whether you want to set up a development environment, test software, or manage services such as web servers and databases, Synology offers a flexible and powerful platform.</p>



<h3 id="why-docker-on-synology" class="wp-block-heading">Why Docker on Synology?</h3>



<p>Docker allows you to deploy applications in isolated containers, simplifying the management and isolation of services. By using Docker on your Synology NAS, you can :</p>



<ul class="wp-block-list">
<li><strong>Deploy applications quickly</strong>: With Docker, it&#8217;s easy to deploy applications in just a few minutes thanks to predefined images available on Docker Hub.</li>



<li><strong>Manage dependencies</strong>: each container includes all the dependencies needed to run the application, avoiding version conflicts and simplifying updates.</li>



<li><strong>Optimising resources</strong>: Docker is lightweight and uses resources efficiently, which is ideal for a homelab.</li>



<li><strong>Experiment without risk</strong>: test new applications and configurations without affecting your main environment.<br></li>
</ul>



<p>To install Docker on your Synology NAS, simply go to Package Center and search for Docker. Once installed, you can start deploying containers using Synology&#8217;s web interface or Docker commands via SSH.</p>



<h2 id="conclusion" class="wp-block-heading">Conclusion</h2>



<p>Synology offers a complete and flexible NAS solution to meet a variety of needs, whether for home or business use. With its advanced features and user-friendly interface, a Synology NAS can transform your data management. In addition to serving as centralized storage, it can also be the ideal starting point for creating your own homelab, allowing you to discover and exploit the full potential of Docker and other innovative technologies. Feel free to explore all the possibilities offered by Synology to maximise the efficiency and security of your information.</p>



<p>If you have any questions or comments, leave them below! Don&#8217;t forget to share this article if you found it useful.</p>



<p>&#8212;</p>



<p><em>Note: The instructions and features mentioned in this article are based on a typical configuration and may need to be adjusted to suit your specific environment.</em></p>
]]></content:encoded>
					
					<wfw:commentRss>https://cajyl.com/en/synology-the-ultimate-nas-for-your-home-and-office/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3310</post-id>	</item>
		<item>
		<title>Docker: A Complete Guide to Maximising Your Deployments</title>
		<link>https://cajyl.com/en/docker-a-complete-guide-to-maximising-your-deployments/</link>
					<comments>https://cajyl.com/en/docker-a-complete-guide-to-maximising-your-deployments/#respond</comments>
		
		<dc:creator><![CDATA[Augustin]]></dc:creator>
		<pubDate>Thu, 18 Jul 2024 22:46:38 +0000</pubDate>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[Docker Compose]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://cajyl.com/?p=3303</guid>

					<description><![CDATA[Docker has become a must-have for developers and system administrators looking to simplify the deployment of their applications. By encapsulating applications in lightweight containers, Docker enables unprecedented portability, efficiency and&#8230;]]></description>
										<content:encoded><![CDATA[
<p>Docker has become a must-have for developers and system administrators looking to simplify the deployment of their applications. By encapsulating applications in lightweight containers, Docker enables unprecedented portability, efficiency and scalability. In this article, we&#8217;ll explore in detail the benefits of Docker, how to install it quickly, and some useful commands for managing your containers.</p>



<h2 id="introduction-to-docker" class="wp-block-heading">Introduction to Docker</h2>



<h3 id="what-is-docker" class="wp-block-heading">What is Docker?</h3>



<p>Docker is an open source platform that automates the deployment of applications in software containers. These containers are lightweight, fast and portable, and contain everything an application needs to run: code, runtime, system libraries, etc.</p>



<h3 id="why-use-docker" class="wp-block-heading">Why use Docker?</h3>



<p>Here are some of the main advantages of Docker :</p>



<ol class="wp-block-list">
<li><strong>Portability</strong>: Docker containers can be run anywhere &#8211; on your local machine, in the cloud, or on on-premise servers &#8211; without having to worry about differences in system configuration.</li>



<li><strong>Isolation</strong>: Each container operates in isolation, which means that applications do not overlap or cause conflicts.</li>



<li><strong>Resource efficiency</strong>: Unlike virtual machines, containers share the same system kernel and don&#8217;t need a complete OS, which significantly reduces resource usage.</li>



<li><strong>Ease of management</strong>: Docker simplifies the process of updating and deploying applications, thanks to tools like Docker Compose.<br></li>
</ol>



<h2 id="quick-installation-of-docker" class="wp-block-heading">Quick installation of Docker</h2>



<h3 id="installing-docker" class="wp-block-heading">Installing Docker</h3>



<p>To install Docker on a Debian-based distribution such as Ubuntu, run the following command:</p>



<pre class="wp-block-code"><code>sudo apt update &amp;&amp; sudo apt install docker.io apparmor -y
</code></pre>



<h3 id="installing-docker-compose" class="wp-block-heading">Installing Docker Compose</h3>



<p>Docker Compose is a tool that lets you define and manage multi-container applications. To install it, use the following commands:</p>



<pre class="wp-block-code"><code>sudo curl -L "https://github.com/docker/compose/releases/download/v2.19.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
</code></pre>



<h3 id="checking-the-installation" class="wp-block-heading">Checking the installation</h3>



<p>To check that Docker Compose has been correctly installed, run :</p>



<pre class="wp-block-code"><code>docker-compose --version
</code></pre>



<h2 id="useful-commands-for-docker" class="wp-block-heading">Useful commands for Docker</h2>



<h3 id="creating-and-launching-containers-with-docker-compose" class="wp-block-heading">Creating and launching containers with Docker Compose</h3>



<p>To create and launch containers defined in a <code>docker-compose.yml</code> file, use :</p>



<pre class="wp-block-code"><code>sudo docker-compose up --build --remove-orphans -d
</code></pre>



<h3 id="deleting-containers-with-docker-compose" class="wp-block-heading">Deleting containers with Docker Compose</h3>



<p>To stop and delete containers, networks and volumes defined in the <code>docker-compose.yml</code> file :</p>



<pre class="wp-block-code"><code>sudo docker-compose down
</code></pre>



<h3 id="updating-a-container" class="wp-block-heading">Updating a container</h3>



<p>To update a container, follow these steps:</p>



<ol class="wp-block-list">
<li>Stop containers :<br></li>



<li>List Docker images :<br></li>



<li>Delete the image of the container to be updated:<br></li>



<li>Recreate and relaunch containers :<br></li>
</ol>



<h3 id="accessing-a-container-via-ssh" class="wp-block-heading">Accessing a container via SSH</h3>



<p>To access a running container via SSH :</p>



<pre class="wp-block-code"><code>sudo docker exec -it container-name /bin/bash
</code></pre>



<p>Note: Use <code>/bin/sh</code> if <code>/bin/bash</code> is not available.</p>



<pre class="wp-block-code"><code>sudo docker exec -it container-name /bin/sh
</code></pre>



<h3 id="view-container-logs" class="wp-block-heading">View container logs</h3>



<p>To monitor a container&#8217;s logs in real time :</p>



<pre class="wp-block-code"><code>sudo docker logs -f container-name
</code></pre>



<h2 id="conclusion" class="wp-block-heading">Conclusion</h2>



<p>Docker offers a powerful and flexible solution for deploying and managing applications. Whether you&#8217;re a developer, system administrator or just curious, Docker can transform the way you work with software. Feel free to try out the commands above and explore further the possibilities offered by this revolutionary technology.</p>



<p>If you have any questions or comments, leave them below! Don&#8217;t forget to share this article if you found it useful.</p>



<p>&#8212;</p>



<p><em>Note: The controls and instructions mentioned in this article are based on a typical configuration and may need to be adjusted to suit your specific environment.</em></p>
]]></content:encoded>
					
					<wfw:commentRss>https://cajyl.com/en/docker-a-complete-guide-to-maximising-your-deployments/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3303</post-id>	</item>
	</channel>
</rss>
