<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tuan Tu Tran</title>
    <description>The latest articles on DEV Community by Tuan Tu Tran (@trantuantubk).</description>
    <link>https://dev.to/trantuantubk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1026317%2F8d2e36d9-86b1-4e97-b918-4edaa79f72f7.jpg</url>
      <title>DEV Community: Tuan Tu Tran</title>
      <link>https://dev.to/trantuantubk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/trantuantubk"/>
    <language>en</language>
    <item>
      <title>rsync: a top-notch tool for file synchronization</title>
      <dc:creator>Tuan Tu Tran</dc:creator>
      <pubDate>Mon, 20 Feb 2023 17:53:59 +0000</pubDate>
      <link>https://dev.to/trantuantubk/rsync-an-excellent-file-synchronization-tool-ekf</link>
      <guid>https://dev.to/trantuantubk/rsync-an-excellent-file-synchronization-tool-ekf</guid>
      <description>&lt;p&gt;I used to perform data backups among Linux machines by using &lt;strong&gt;rsync&lt;/strong&gt;. Recently, I've been spending more time working on a Windows 11 laptop as my main host, and I've discovered that rsync is also included in MobaXterm. I've just performed some familiar synchronization tasks between local folders on my Windows host and between this Windows host and a remote Linux machine, and I'm happy to see that it works correctly.&lt;/p&gt;

&lt;p&gt;I still need to perform other synchronizations to make sure it works thoroughly in my new settings, but in any case, it's a great tool that makes me feel as if I were working in a Linux system. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;References&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories"&gt;https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rsync</category>
      <category>mobaxterm</category>
      <category>windows</category>
      <category>crossplatform</category>
    </item>
    <item>
      <title>MobaXterm - An excellent tool for Linux CLI users to work on a Windows host</title>
      <dc:creator>Tuan Tu Tran</dc:creator>
      <pubDate>Sun, 19 Feb 2023 06:55:04 +0000</pubDate>
      <link>https://dev.to/trantuantubk/mobaxterm-an-excellent-tool-for-linux-cli-users-to-work-on-a-windows-host-3dg</link>
      <guid>https://dev.to/trantuantubk/mobaxterm-an-excellent-tool-for-linux-cli-users-to-work-on-a-windows-host-3dg</guid>
      <description>&lt;p&gt;I have been working with Linux for a long time using the command-line interface (CLI). Recently, I started using a Windows 11 laptop as my main working machine. To my delight, I discovered MobaXterm, an excellent tool that provides a Unix-like working environment. With MobaXterm, I can interact with my Windows 11 laptop as if it were a Linux machine. For example, I can use apt-get to install applications such as nano, write and execute shell scripts, and perform a variety of other tasks that were previously only possible on Linux systems.&lt;br&gt;
&lt;strong&gt;References:&lt;/strong&gt;&lt;br&gt;
[1]&lt;a href="https://mobaxterm.mobatek.net/documentation.html"&gt;https://mobaxterm.mobatek.net/documentation.html&lt;/a&gt;&lt;br&gt;
[2]&lt;a href="https://www.admin-magazine.com/Articles/MobaXterm-Unix-for-Windows"&gt;https://www.admin-magazine.com/Articles/MobaXterm-Unix-for-Windows&lt;/a&gt;&lt;/p&gt;

</description>
      <category>crossplatform</category>
      <category>mobaxterm</category>
      <category>windows</category>
      <category>cli</category>
    </item>
    <item>
      <title>Build a project on Windows 11 using MinGW</title>
      <dc:creator>Tuan Tu Tran</dc:creator>
      <pubDate>Sat, 18 Feb 2023 06:57:04 +0000</pubDate>
      <link>https://dev.to/trantuantubk/build-a-project-on-windows-11-using-mingw-335m</link>
      <guid>https://dev.to/trantuantubk/build-a-project-on-windows-11-using-mingw-335m</guid>
      <description>&lt;p&gt;Assuming that the CMakeLists.txt is located in the root folder of the project, follow these steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;1. Create a build folder:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;mkdir build&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;2. Change to the build folder:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;cd build&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;3. Use MinGW to generate the Makefile&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;cmake -G "MinGW Makefiles" ..&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
(The ".." at the end of the cmake command tellls it to look for the CMakeLists.txt file in the parent directory)&lt;/p&gt;

&lt;p&gt;+4. Compile the project using mingw32-make:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;mingw32-make&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;Reference:&lt;/strong&gt;&lt;br&gt;
[1]&lt;a href="https://cmake.org/cmake/help/v3.12/generator/MinGW%20Makefiles.html"&gt;https://cmake.org/cmake/help/v3.12/generator/MinGW%20Makefiles.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cmake</category>
      <category>mingw</category>
      <category>crossplatform</category>
      <category>windows11</category>
    </item>
    <item>
      <title>How to keep your Ubuntu laptop running with the lid closed</title>
      <dc:creator>Tuan Tu Tran</dc:creator>
      <pubDate>Fri, 17 Feb 2023 08:10:34 +0000</pubDate>
      <link>https://dev.to/trantuantubk/how-to-keep-your-ubuntu-laptop-running-with-the-lid-closed-2nec</link>
      <guid>https://dev.to/trantuantubk/how-to-keep-your-ubuntu-laptop-running-with-the-lid-closed-2nec</guid>
      <description>&lt;p&gt;I have a Dell laptop running Ubuntu 20.04 that I use for remote work. By default, the laptop goes into suspend mode when I close the lid, which causes me to lose my connection. To prevent this, I followed the instructions in this guide [1] and edited the /etc/systemd/logind.conf file to set the HandleLidSwitch parameter to "ignore":&lt;/p&gt;

&lt;p&gt;&lt;code&gt;HandleLidSwitch=ignore&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Then, I restarted the login service by using the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo systemctl restart systemd-logind.service&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;According to the guide, this command may restart the session, so it's important to save all current work beforehand. However, in my case, the session did not restart, and the laptop continued to work as expected even after I closed the lid.&lt;br&gt;
&lt;strong&gt;Reference&lt;/strong&gt;:&lt;br&gt;
[1] &lt;a href="https://ubuntuhandbook.org/index.php/2020/05/lid-close-behavior-ubuntu-20-04/"&gt;https://ubuntuhandbook.org/index.php/2020/05/lid-close-behavior-ubuntu-20-04/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ubuntu</category>
      <category>powermanagement</category>
      <category>laptop</category>
    </item>
  </channel>
</rss>
