<?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: Sharafat</title>
    <description>The latest articles on DEV Community by Sharafat (@sharafat).</description>
    <link>https://dev.to/sharafat</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%2F965990%2F9e759d6b-3df4-42cf-994a-27b6f45763d6.jpg</url>
      <title>DEV Community: Sharafat</title>
      <link>https://dev.to/sharafat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sharafat"/>
    <language>en</language>
    <item>
      <title>How to find checksum of a Google Drive File</title>
      <dc:creator>Sharafat</dc:creator>
      <pubDate>Sun, 23 Nov 2025 10:49:45 +0000</pubDate>
      <link>https://dev.to/sharafat/how-to-find-checksum-of-a-google-drive-file-45b7</link>
      <guid>https://dev.to/sharafat/how-to-find-checksum-of-a-google-drive-file-45b7</guid>
      <description>&lt;p&gt;A checksum (hash) lets you verify a file has not been altered or corrupted. Common use: confirm a downloaded ISO matches the publisher’s SHA-256 hash.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Open Google Colab
&lt;/h2&gt;

&lt;p&gt;Go to &lt;a href="https://colab.research.google.com" rel="noopener noreferrer"&gt;https://colab.research.google.com&lt;/a&gt; and create a new Python notebook.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Connect to Google Drive
&lt;/h2&gt;

&lt;p&gt;Run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;google.colab&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;drive&lt;/span&gt;
&lt;span class="n"&gt;drive&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mount&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;/content/drive&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Approve the auth prompt. Your Drive files appear under &lt;code&gt;/content/drive/MyDrive/&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Locate the File Path
&lt;/h2&gt;

&lt;p&gt;In the left sidebar (folder icon):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Navigate to the file.&lt;/li&gt;
&lt;li&gt;Right‑click the file and choose "Copy path" (or manually note its path).
Example path: &lt;code&gt;/content/drive/MyDrive/DATA/iso/Win11_24H2_English_x64_Custom_Optimized.iso&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Compute the SHA‑256 Checksum
&lt;/h2&gt;

&lt;p&gt;Use &lt;code&gt;sha256sum&lt;/code&gt; (installed by default in Colab):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="err"&gt;!&lt;/span&gt;&lt;span class="n"&gt;sha256sum&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;drive&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;MyDrive&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;DATA&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;iso&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Win11_24H2_English_x64_Custom_Optimized&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iso&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output format:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&amp;lt;sha256_hash&amp;gt;  &amp;lt;file_path&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Verify Against Known Hash
&lt;/h2&gt;

&lt;p&gt;Compare the printed hash with the official one from the source website. They must match exactly. If not, the file may be incomplete or tampered with.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common Issues
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;File not found: Confirm the path (case sensitive).&lt;/li&gt;
&lt;li&gt;Large files: Hashing can take time; wait for completion.&lt;/li&gt;
&lt;li&gt;Different algorithm needed: Replace with &lt;code&gt;!md5sum&lt;/code&gt; or &lt;code&gt;!sha1sum&lt;/code&gt; (only if required; SHA‑256 is stronger).&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>googledrive</category>
      <category>sh256</category>
    </item>
    <item>
      <title>Setting up oracle database in Linux (podman container + vscode)</title>
      <dc:creator>Sharafat</dc:creator>
      <pubDate>Wed, 22 Jan 2025 12:32:29 +0000</pubDate>
      <link>https://dev.to/sharafat/setting-up-oracle-database-in-linux-podman-container-vscode-4fga</link>
      <guid>https://dev.to/sharafat/setting-up-oracle-database-in-linux-podman-container-vscode-4fga</guid>
      <description>&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;Mainly I will be focusing linux, but will work on mac as well with same commands.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;For windows? You can download the installer from the official website and follow the instructions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.oracle.com/database/technologies/xe-downloads.html" rel="noopener noreferrer"&gt;https://www.oracle.com/database/technologies/xe-downloads.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Setup a container
&lt;/h3&gt;

&lt;p&gt;Docker and podman are the two most popular containerization tools. I will be using podman for this, and I will recommend podman as well. Why? Maybe I will write a blog on this later.&lt;/p&gt;

&lt;p&gt;Whatever, let's install podman! You can follow the official documentation for this. I guess most of the major linux distributions have podman in their official repositories.&lt;/p&gt;

&lt;p&gt;Like, for Arch Linux:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;pacman &lt;span class="nt"&gt;-S&lt;/span&gt; podman
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Pull the image
&lt;/h3&gt;

&lt;p&gt;There are mainly two images available for free, full and lite.&lt;/p&gt;

&lt;p&gt;To get the full image:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman pull container-registry.oracle.com/database/free:latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And to be honest, it's a huge image around 9.48 G. So, I will recommend the lite version. It may take upto 2 G.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman pull container-registry.oracle.com/database/free:23.5.0.0-lite
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Run the container
&lt;/h3&gt;

&lt;p&gt;Now let's go ahead and actually run the container.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; 1521:1521 &lt;span class="nt"&gt;--name&lt;/span&gt; oracle-db container-registry.oracle.com/database/free:23.5.0.0-lite
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, I have used the lite version of the image. You can use the full version as well. Just replace the image name.&lt;br&gt;
And the port &lt;code&gt;1521&lt;/code&gt; is the default port for Oracle Database. You can change it if you want.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Flag &lt;code&gt;-d&lt;/code&gt; is used to run the container in the background.&lt;br&gt;
Flag &lt;code&gt;-p&lt;/code&gt; is used to map the host port to the container port.&lt;br&gt;
Flag &lt;code&gt;--name&lt;/code&gt; is used to give a name to the container. (Try to remember it!)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;
  
  
  Set a password
&lt;/h3&gt;

&lt;p&gt;Here I have used &lt;code&gt;1234&lt;/code&gt; as the password. You can use whatever you want.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;-it&lt;/span&gt; oracle-db ./setPassword.sh 1234
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Connect to the database
&lt;/h3&gt;

&lt;p&gt;You can use any database client to connect to the database. I will be using SQL*Plus.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;-it&lt;/span&gt; oracle-db sqlplus
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And then enter the following details:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Username: &lt;code&gt;system&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Password: &lt;code&gt;1234&lt;/code&gt; (Or the one you set in the previous step!)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Stop the container
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman stop oracle-db
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Start the container
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman start oracle-db
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;You may need to start the container if you have restarted your system!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Misc
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Port address
&lt;/h3&gt;

&lt;p&gt;To get your outgoing forwarded port from podman, use the following,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman port oracle-db     
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Integration
&lt;/h2&gt;

&lt;h3&gt;
  
  
  VSCODE
&lt;/h3&gt;

&lt;p&gt;It would be weird if we have to use terminal everytime we want to access our database, right?&lt;br&gt;
Let's use vscode. Simply install the following extension,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=Oracle.sql-developer" rel="noopener noreferrer"&gt;https://marketplace.visualstudio.com/items?itemName=Oracle.sql-developer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Or, Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ext install Oracle.sql-developer&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The size of this extension is more than 300 M, so it'll take a bit of time.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Now on our left/ right toolbar, you will find a icon, and maybe try to add a new connection? You will asked to fill up a form.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For the port number try to use the one you got from &lt;code&gt;podman port oracle-db&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For the username, use &lt;code&gt;system&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;And for the password, use the one you set in the previous steps.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For the service name, it should be &lt;code&gt;FREE&lt;/code&gt;. Or you can use the following code in &lt;code&gt;sqlplus&lt;/code&gt; to get the service name,&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;VALUE&lt;/span&gt; 
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;V&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="k"&gt;PARAMETER&lt;/span&gt; 
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;NAME&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'service_names'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And you are good to go!&lt;/p&gt;

</description>
      <category>oracle</category>
      <category>linux</category>
      <category>archlinux</category>
      <category>podman</category>
    </item>
    <item>
      <title>Running MySQl in Linux (with/ without podman container with phpmyadmin)</title>
      <dc:creator>Sharafat</dc:creator>
      <pubDate>Wed, 22 Jan 2025 12:30:08 +0000</pubDate>
      <link>https://dev.to/sharafat/running-mysql-in-linux-with-without-container-3ed9</link>
      <guid>https://dev.to/sharafat/running-mysql-in-linux-with-without-container-3ed9</guid>
      <description>&lt;h1&gt;
  
  
  My SQL
&lt;/h1&gt;

&lt;p&gt;MySQL is a RDBMS software which use SQL like syntax to manage databases. Nowadays most of the major linux distributions come with maria db preinstalled, which is an open source drop in replace ment for MySQL. I’ll be writing about some ways to install MySQL in linux based operating systems,&lt;/p&gt;

&lt;h2&gt;
  
  
  XAMPP
&lt;/h2&gt;

&lt;p&gt;Xampp is a popular tool which is an open source cross-platform web server solution stack package developed by Apache friends. It can be installed via the official website’s installer. Here a &lt;code&gt;.run&lt;/code&gt; file will be downloaded which can be installed by executing from a terminal. But it is not recommended to install in this way.&lt;br&gt;
The most recommended way is to search for a similar package in distros native package manager. For example, in Arch Linux the package is available through AUR (Arch User Repository). Here’s the git-clone URL,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://aur.archlinux.org/packages/xampp" rel="noopener noreferrer"&gt;https://aur.archlinux.org/packages/xampp&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To install it, we can use a AUR wrapper like &lt;code&gt;yay&lt;/code&gt;. To do so, use the following command to query and install the latest version of &lt;code&gt;xampp&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;yay xampp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After installing open the app, head over to the second tab and start database and web server. Web UI will be available under &lt;code&gt;localhost&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Podman Container
&lt;/h2&gt;

&lt;p&gt;One another good way to install MySQL is to use a podman or docker container. I personally prefer podman so I will be writing about it. Installing a container running only MySQL is pretty much easy. We just have to grub the image and run it in a container. It’s volume will be created automatically. Or if we also want to include a phpmyadmin web app to manage our image then we actually have to use a pod to contain two different containers.&lt;/p&gt;

&lt;h3&gt;
  
  
  MySQL image
&lt;/h3&gt;

&lt;p&gt;To setting up MySQL image, we can pull it from dockerhub. The command will be like,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman pull mysql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;then, we can start and run our image with the following command,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; 3306:3306 &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nv"&gt;MYSQL_ROOT_PASSWORD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;tree &lt;span class="nt"&gt;--name&lt;/span&gt; mysql-db mysql:latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here our root password is defined as tree by the environement variable &lt;code&gt;MYSQL_ROOT_PASSWORD&lt;/code&gt;.&lt;br&gt;
And if we try to do list running process we can execute,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman ps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It will see our image up and running. Now let’s actually enter to our server!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;-it&lt;/span&gt; mysql-db mysql &lt;span class="nt"&gt;-u&lt;/span&gt; root &lt;span class="nt"&gt;-p&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let’s run a command to verify,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;show databases&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It’ll list all databases.&lt;br&gt;
Now with &lt;code&gt;localhost:3306&lt;/code&gt; you can access this database from mysql workbench or other clients.&lt;/p&gt;
&lt;h3&gt;
  
  
  Phpmyadmin image
&lt;/h3&gt;

&lt;p&gt;Phpmyadmin is a web UI for managing MySQL databases. Let’s pull it first,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman pull phpmyadmin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now if run this image we won’t be able to access another image (MySQL) because there’s no connection in between them. So we will be using podman pod. Let’s create a podman pod,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman pod create &lt;span class="nt"&gt;--name&lt;/span&gt; mysql &lt;span class="nt"&gt;-p&lt;/span&gt; 8080:8080 3306:3306
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If we have previously created an image as per this guide and that is up and running, try the follwing command to stop and delete,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman stop mysql-db &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; podman &lt;span class="nb"&gt;rm &lt;/span&gt;mysql-db
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now let’s start our mysql server under this pod,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nv"&gt;MYSQL_ROOT_PASSWORD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;tree &lt;span class="nt"&gt;--pod&lt;/span&gt; mysql &lt;span class="nt"&gt;--name&lt;/span&gt; mysql-db mysql:latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And finally let’s open our phpmyadmin with this pod,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman run &lt;span class="nt"&gt;--name&lt;/span&gt; phpmyadmin &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nv"&gt;PMA_ARBITRARY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;--pod&lt;/span&gt; mysql phpmyadmin

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It will be availabe under port 8080, as like we defined earlier. So let’s head over to,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/" rel="noopener noreferrer"&gt;http://localhost:8080/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here, our,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Server = localhost:3306
Username = root
Password = tree
This can be also done graphically with the help of `podman desktop`.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Docker
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Pull the image from the docker hub
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker pull mysql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or, using podman?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman pull docker.io/library/mysql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Now, let’s create our first container from the mysql image. Here is the command we will use:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;--name&lt;/span&gt; test-mysql &lt;span class="nt"&gt;-p&lt;/span&gt; 3306:3306 &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nv"&gt;MYSQL_ROOT_PASSWORD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;tree &lt;span class="nt"&gt;-d&lt;/span&gt; mysql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;run: creates a new container or starts an existing one&lt;/p&gt;

&lt;p&gt;--name CONTAINER_NAME: gives the container a name. The name should be readable and short. In our case, the name is test-mysql.&lt;/p&gt;

&lt;p&gt;-e ENV_VARIABLE=value: the -e tag creates an environment variable that will be accessible within the container. It is crucial to set MYSQL_ROOT_PASSWORD so that we can run SQL commands later from the container. Make sure to store your strong password somewhere safe (not your brain).&lt;/p&gt;

&lt;p&gt;-d: short for detached, the -d tag makes the container run in the background. If you remove this tag, the command will keep printing logs until the container stops.&lt;/p&gt;

&lt;p&gt;image_name: the final argument is the image name the container will be built from. In this case, our image is mysql.&lt;/p&gt;

&lt;p&gt;-p HOST_PORT:CONTAINER_PORT: the -p tag maps a port from the host machine to the container. In this case, we are mapping port 3306 from the host to the container. This is the default port for MySQL.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If the command returns a long string of gibberish (the container ID), it means the container has started. You can check its status with docker ps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To access the terminal inside your container, you can use the following command:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;-it&lt;/span&gt; container_name bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;And then to login to mysql:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mysql &lt;span class="nt"&gt;-u&lt;/span&gt; root &lt;span class="nt"&gt;-p&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://stackoverflow.com/questions/41645309/mysql-error-access-denied-for-user-rootlocalhost" rel="noopener noreferrer"&gt;https://stackoverflow.com/questions/41645309/mysql-error-access-denied-for-user-rootlocalhost&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>mysql</category>
      <category>linux</category>
      <category>archlinux</category>
      <category>podman</category>
    </item>
    <item>
      <title>disable Bluetooth at startup in TLP</title>
      <dc:creator>Sharafat</dc:creator>
      <pubDate>Sun, 07 May 2023 15:40:33 +0000</pubDate>
      <link>https://dev.to/sharafat/disable-bluetooth-at-startup-in-tlp-2k8d</link>
      <guid>https://dev.to/sharafat/disable-bluetooth-at-startup-in-tlp-2k8d</guid>
      <description>&lt;h2&gt;
  
  
  TLP
&lt;/h2&gt;

&lt;p&gt;From the project page:&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;TLP is a feature-rich command line utility for Linux, saving laptop battery power without the need to delve deeper into technical details.
TLP’s default settings are already optimized for battery life and implement Powertop’s recommendations out of the box. So you may just install and forget it.
Nevertheless TLP is highly customizable to fulfil your specific requirements.
&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;p&gt;Read more from,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://linrunner.de/tlp/"&gt;Tlp official website&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://wiki.archlinux.org/title/TLP"&gt;Arch wiki&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Steps
&lt;/h1&gt;

&lt;p&gt;To disable Bluetooth at startup, open the following file in your preferred text editor (root privilege will be required),&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/etc/tlp.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;For example to use &lt;code&gt;nano&lt;/code&gt; text editor, your command will be, &lt;code&gt;sudo nanao /etc/tlp.conf&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Then change,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;RESTORE_DEVICE_STATE_ON_STARTUP=0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;RESTORE_DEVICE_STATE_ON_STARTUP=1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And, also use the following line,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DEVICES_TO_DISABLE_ON_STARTUP="bluetooth"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Don't forget to remove the '#' from the beginning of a line (removing comments).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Example layout
&lt;/h2&gt;

&lt;p&gt;Here is a basic example of my config,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Restore radio device state (Bluetooth, WiFi, WWAN) from previous shutdown
# on system startup: 0=disable, 1=enable.
# Note: the parameters DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below
# are ignored when this is enabled.
# Default: 0

RESTORE_DEVICE_STATE_ON_STARTUP=1

# Radio devices to disable on startup: bluetooth, nfc, wifi, wwan.
# Separate multiple devices with spaces.
# Default: &amp;lt;none&amp;gt;

#DEVICES_TO_DISABLE_ON_STARTUP="bluetooth nfc wifi wwan"
DEVICES_TO_DISABLE_ON_STARTUP="bluetooth nfc wwan"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here besides &lt;code&gt;bluetooth&lt;/code&gt;, I've also disabled &lt;code&gt;nfc&lt;/code&gt; and &lt;code&gt;wwan&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://forum.manjaro.org/t/bluetooth-turns-on-automatically-after-reboot/101073"&gt;Manjaro forum - 
Bluetooth Turns On Automatically After Reboot! &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
  </channel>
</rss>
