How to Install Atom Text Editor on Ubuntu 20.04

1.

wget -q https://packagecloud.io/AtomEditor/atom/gpgkey -O- | sudo apt-key add -

2.

sudo add-apt-repository "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main"

3.

sudo apt update

4.

sudo apt install atom

/lib/systemd/system/gammu-smsd.service:9: Neither a valid executable name nor an absolute path: ${CMAKE_INSTALL_FULL_BINDIR}/gammu-smsd

/lib/systemd/system/gammu-smsd.service:9: Neither a valid executable name nor an absolute path: ${CMAKE_INSTALL_FULL_BINDIR}/gammu-smsd

 

In order to resolve the above error I had to do the following steps:

sudo cp /lib/systemd/system/gammu-smsd.service /etc/systemd/system/

// Edit line number 9

sudo gedit /etc/systemd/system/gammu-smsd.service +9

Enter the absolute path in within that file in my case:

ExecStart=/usr/bin/gammu-smsd --pid=/var/run/gammu-smsd.pid --daemon

So remove the following it looks something like:

${CMAKE_INSTALL_FULL_BINDIR}/gammu-smsd

And replace that with the absolute path.

 

done!!

 

https://superuser.com/questions/1549054/broken-or-misconfigured-gammu-smsd-on-kali

How to locate php.ini file to /opt/lampp Laravel UBUNTU

Apparently i a little confuse when i use laravel,

because in my machine has  multiple php version running

i need my  laravel use this /opt/lampp/ for base machine 


first you can download and install xampp-linux-5.5.35-0-installer.run or any version xampp-linux-xxx.xxx-installer.run


sudo chmod +x xampp*

./xampp*

and it will install on /opt/lampp


and then add path to /opt/lampp

How to locate php.ini file to /opt/lampp Laravel

 

sudo xed /etc/environment

or

sudo gedit /etc/environment

 

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/lampp/bin"

restart your computer

done!!!

php --ini

Configuration File (php.ini) Path: /opt/lampp/etc
Loaded Configuration File:         /opt/lampp/etc/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)


How to locate the php.ini file UBUNTU

How to locate the php.ini file (xampp) Ubuntu

If you have multiple php-versions (xampp etc) running, I find the easiest is to use:



php --ini


Configuration File (php.ini) Path: /opt/lampp/etc
Loaded Configuration File:         /opt/lampp/etc/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)

How to completely remove PHP on ubuntu ?

 How to completely remove PHP?

This should completely remove any package with a name that starts with php and anything related to it.

sudo apt-get purge 'php*'

 

source https://askubuntu.com/questions/59886/how-to-completely-remove-php