<?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: Sohag Hossain</title>
    <description>The latest articles on DEV Community by Sohag Hossain (@sh6210).</description>
    <link>https://dev.to/sh6210</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%2F704265%2Fddaaaaaf-82bb-4abc-8de6-08070dcb6053.jpeg</url>
      <title>DEV Community: Sohag Hossain</title>
      <link>https://dev.to/sh6210</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sh6210"/>
    <language>en</language>
    <item>
      <title>Ubuntu 20.04, After installation actions</title>
      <dc:creator>Sohag Hossain</dc:creator>
      <pubDate>Sun, 12 Sep 2021 07:08:41 +0000</pubDate>
      <link>https://dev.to/sh6210/after-installation-actions-1k3</link>
      <guid>https://dev.to/sh6210/after-installation-actions-1k3</guid>
      <description>&lt;h3&gt;
  
  
  Hello, when its come to the time preparing you'r machine after a fresh setup it takes some time or couple of days for some guys. Therefore, here are some installation lines which may helpful for some guys.
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;sudo apt-get update &amp;amp;&amp;amp; sudo apt-get upgrade -y&lt;/li&gt;
&lt;li&gt;sudo snap install code --classic&lt;/li&gt;
&lt;li&gt;sudo snap install skype --classic&lt;/li&gt;
&lt;li&gt;sudo apt install git-all&lt;/li&gt;
&lt;li&gt;sudo apt install npm&lt;/li&gt;
&lt;li&gt;sudo apt install vim&lt;/li&gt;
&lt;li&gt;sudo apt install apache2&lt;/li&gt;
&lt;li&gt;sudo ufw app list&lt;/li&gt;
&lt;li&gt;sudo ufw enable&lt;/li&gt;
&lt;li&gt;sudo ufw allow 'Apache'&lt;/li&gt;
&lt;li&gt;sudo add-apt-repository ppa:ondrej/php &lt;/li&gt;
&lt;li&gt;sudo apt install libapache2-mod-fcgid&lt;/li&gt;
&lt;li&gt;sudo apt install software-properties-common&lt;/li&gt;
&lt;li&gt;sudo apt install mysql-server&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  To change the root password
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;sudo mysql &lt;/li&gt;
&lt;li&gt;&lt;p&gt;ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'desired_password';&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;sudo apt-get install sshpass&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  To install composer
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://getcomposer.org/download"&gt;https://getcomposer.org/download&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Generate ssh key for github
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;ssh-keygen -t ed25519 -C "&lt;a href="mailto:your_email@example.com"&gt;your_email@example.com&lt;/a&gt;" &amp;amp;&amp;amp; ssh-add ~/.ssh/id_ed25519
// to show the key run : "cat ~/.ssh/id_ed25519.pub" copy-paste in github settings SSH key&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Install various php versions along with some extensions
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;sudo apt-get install php8.0 libapache2-mod-php8.0 php8.0-bcmath php8.0-cli php8.0-common php8.0-curl php8.0-dev php8.0-gd php8.0-intl php8.0-json php8.0-ldap php8.0-mbstring php8.0-mysql php8.0-opcache php8.0-pgsql php8.0-soap php8.0-sqlite3 php8.0-xml php8.0-zip  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;sudo apt-get install php7.4-bcmath php7.4-cli php7.4-common php7.4-curl php7.4-dev php7.4-gd php7.4-intl php7.4-json php7.4-ldap php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-pgsql php7.4-soap php7.4-sqlite3 php7.4-xml php7.4-zip   &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;sudo apt-get install php7.2 php7.2-fpm php7.2-mysql libapache2-mod-php7.2 -y php7.2-apcu php7.2-cli php7.2-common php7.2-curl php7.2-imagick php7.2-intl php7.2-json php7.2-mbstring php7.2-mcrypt php7.2-memcache php7.2-xdebug php7.2-xml php7.2-yaml php7.2-zip  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;sudo apt-get install php7.0 php7.0-fpm php7.0-mysql libapache2-mod-php7.0 libapache2-mod-fcgid -y php7.0-apcu php7.0-cli php7.0-common php7.0-curl php7.0-imagick php7.0-intl php7.0-json php7.0-mbstring php7.0-mcrypt php7.0-memcache php7.0-xdebug php7.0-xml php7.0-yaml php7.0-zip  &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  If you want to install PHP5.6 as well
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;sudo apt-get install python-software-properties &amp;amp;&amp;amp; sudo add-apt-repository ppa:ondrej/php &amp;amp;&amp;amp; sudo apt-get -y update &amp;amp;&amp;amp; sudo apt-get install -y php5.6 &amp;amp;&amp;amp; sudo apt-get install php5.6-fpm php5.6-mysql libapache2-mod-php5.6 libapache2-mod-fcgid -y php5.6-apcu php5.6-cli php5.6-common php5.6-curl php5.6-imagick php5.6-intl php5.6-json php5.6-mbstring php5.6-mcrypt php5.6-memcache php5.6-xdebug php5.6-xml php5.6-yaml php5.6-zip&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  If you're fan of ZSH then
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;sudo apt-get install zsh&lt;/li&gt;
&lt;li&gt;sh -c "$(wget &lt;a href="https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh"&gt;https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh&lt;/a&gt; -O -)"&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Install zsh plugins.
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;If you also like zsh plugins, you can edit the ~/.zshrc like: &lt;br&gt;
insdie ~/.zshrc replace plugins value with (git z zsh-autosuggestions)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  install xdebug
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;sudo apt-get install php{version_number}-xdebug&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ubuntu</category>
      <category>php</category>
      <category>setup</category>
      <category>preparephpdevmachine</category>
    </item>
  </channel>
</rss>
