Blog

  1. How to Install Slack on Ubuntu 18.04

    Slack is one of the most popular collaboration platforms in the world that brings all your communication together. Conversations in Slack are organized in channels. You can create channels for your teams, projects, topics, or any other purpose to keep information and conversations organized. You can search through everything that’s been posted in channels or your messages. Slack also allows you to talk with your teammates over audio or video calls and share documents, images, videos, and other files.

    Slack is not an open-source application and it is not included in the Ubuntu repositories.

    This tutorial explains how to install Slack on Ubuntu 18.04. The same instructions apply for Ubuntu 16.04 and any other Debian based distribution, including Debian, Kubuntu, Linux Mint and Elementary OS.

    Prerequisites

    The user you are logged in as must have sudo privileges to be able to install packages.

    Installing Slack on Ubuntu

    1. Download Slack

    Open your terminal either by using the Ctrl+Alt+T keyboard shortcut or by clicking on the terminal icon.

    Visit the Slack for Linux download page and download the latest Slack .deb package. You can also use the following wget command to download the package:

    wget https://downloads.slack-edge.com/linux_releases/slack-desktop-4.0.2-amd64.deb

    2. Install Slack

    Once the download is complete, install Slack by running the following command as a user with sudo privileges:

    sudo apt install ./slack-desktop-*.deb

    You may be prompted to enter your user password. Once you have correctly entered your password, the installation will continue.

    3. Start Slack

    Now that you have Slack installed on your Ubuntu desktop, you can start it either from the command line by typing slack or by clicking on the Slack icon (Activities → Slack).

    When you start Slack for the first time, a window like the following will appear:

    From here you can sign in to a workspace you are already a member of or create a new workspace and start collaborating with your friends and colleagues.

    Updating Slack

    During the installation process, the official Slack repository will be added to your system. Use the cat command to verify the file contents:

    cat /etc/apt/sources.list.d/slack.list
    ### THIS FILE IS AUTOMATICALLY CONFIGURED ### # You may comment out this entry, but any other modifications may be lost. deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie main 

    This ensures that your Slack installation will be updated automatically when a new version is released through your desktop standard Software Update tool.

    Read more »
  2. An error has happened during application run

    The topic today is one of the popular errors you will meet. As if the error message shows “An error has happened during application run. See exception log for details” in Magento 2 when you have uploaded Magento CE latest version and want to install it on your server, so what should you do? Here is the right solution for you.

    How to resolve: “An error has happened during application run. See exception log for details”

    Please open the .htaccess from the root and comment out the first line:

    SetEnv MAGE_MODE developer


    Read more »
  3. Switch between Multiple PHP Version on Ubuntu

    On your system, if you have installed multiple versions of PHP (eg PHP 7.1 and PHP 5.6 both). PHP 7.1 is running as default PHP for Apache and CLI. For any requirement, you need to use PHP 5.6. Then you don’t need to remove PHP 7.1. You can simply switch your PHP version to default used for Apache and command line.

    For example, your server has PHP 7.1 and PHP 5.6 both version’s installed. Now following example will help you to switch between both versions.

     

    From PHP 5.6 => PHP 7.1

    Default PHP 5.6 is set on your system and you need to switch to PHP 7.1. Run the following commands to switch for Apache and command line.

     

    Apache:-

     

    $ sudo a2dismod php5.6
    $ sudo a2enmod php7.1
    $ sudo service apache2 restart
     
    Command Line:-

    $ sudo update-alternatives --set php /usr/bin/php7.1
    $ sudo update-alternatives --set phar /usr/bin/phar7.1
    $ sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.1
     

    From PHP 7.1 => PHP 5.6

    Default PHP 7.1 is set on your system and you need to switch to PHP 5.6. Now run the following commands to switch for Apache and command line.

    Apache:-

     

    $ sudo a2dismod php7.1
    $ sudo a2enmod php5.6
    $ sudo service apache2 restart
     
    Command Line:-

    $ sudo update-alternatives --set php /usr/bin/php5.6
    $ sudo update-alternatives --set phar /usr/bin/phar5.6
    $ sudo update-alternatives --set phar.phar /usr/bin/phar.phar5.6 
     

    Read more »
  4. Integrity constraint violation: 1062 Duplicate entry ‘4-Images’ for key – Magento 2

    Integrity constraint violation: 1062 Duplicate entry ‘4-Images’ for key ‘EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_NAME’, query was: UPDATE `eav_attribute_group` SET `attribute_group_name` = ? WHERE (`attribute_group_id`=10)

    This particular error presented itself while upgrading from Magento 2.0.2 to Magento 2.1.x and stops the upgrade process. We’ve discovered the issue is related to old data from the previous Magento 1.9.x installation. In order to over come this error, you’ll need to delete a row from the database.

    Run the following MySQL query to find and delete the offending attribute.

    1
    delete from eav_attribute_group WHERE attribute_group_name = 'Images';

    After that then you can attempt to run the upgrade command again and the issue should be resolved.

    We understand not everyone can be a MySQL / Magento 2 expert so if you’re faced with a similar issue and stuck between an upgrade feel free to contact us to assist with your problem.

     

    Read more »
  5. magento 2 Please re-run Magento compile command

    Depending on your configuration it may also be unecessary. If you are in default or dev mode you do not need it.

    You just need it on production mode

    From command line and from your Magento root path:

     

    php bin/magento setup:di:compile

    P.S: After installing your module make sure you ran:

    php bin/magento setup:upgrade
    Read more »
  6. steps to Uninstall Module Manually for Magento 2

    • Delete the Module folder from {folder path}\app\code
    • Remove module entry from below tables core_config_data & setup_module
    • Run command

      {magento project root path}>{php path}\php bin/magento setup:upgrade => Setup Upgrade

      {magento project root path}>{php path}\php bin/magento cache:flush => Clear Cache

    Read more »
  7. How to install phpunit on Ubuntu 16.04 (Xenial Xerus)

    Install phpunit

    Installing phpunit package on Ubuntu 16.04 (Xenial Xerus) is as easy as running the following command on terminal:

    sudo apt-get update
    sudo apt-get install phpunit
     
    Read more »
  8. How to update magento2 from 2.0.7 to 2.1.0

    Updating/Upgrading to Magento 2.1.0 (via composer)

    composer require magento/product-community-edition 2.1.0 --no-update

    composer update

    rm -rf var/di var/generation

    sudo chmod -R 777 var/

    php bin/magento cache:clean

    php bin/magento cache:flush

    php bin/magento setup:upgrade

    php bin/magento setup:di:compile

    php bin/magento indexer:reindex

     

    After upgrade, check your Magento version with the following command:

     

    php bin/magento --version

     

    Magento CLI version 2.1.0

    Read more »
  9. The mbstring extension is missing.

    If you are installing new Ubuntu 16.04 LTS or upgrading/Downgrade from your older Ubuntu installation then you will get an error like “phpMyAdmin – Error – The mbstring extension is missing. Please check your PHP configuration”. This error can happen on browser for your phpmyadmin access after installation or upgrade to Ubuntu 16.04.

    just run these command

    sudo apt-get install phpmyadmin php-mbstring php-gettext

    sudo service apache2 restart

    Read more »
  10. Hello world!

    Welcome to Samdoit blog extension for Magento® 2. This is your first post. Edit or delete it, then start blogging!
    Read more »
Page
Copyright © 2016 Samdoit Infotech. All rights reserved.