Open app/Providers/AppServiceProvider.php
Add `use Illuminate\Support\Facades\Schema;` (line 6)
Add `Schema::defaultStringLength(191);` (line 27)


When stopping xampp service (apache) with a command like below on a linux operating system:

sudo /opt/lampp/lampp stop

I get an error like below:

XAMPP: Stopping Apache...fail.
apachectl returned 1.
XAMPP: Stopping MySQL...not running.
XAMPP: Stopping ProFTPD...not running.

To fix it, try the following methods:

sudo rm -f /opt/lampp/logs/httpd.pid

The rm command stands for “remove” and the -f option will “force” delete files without regard to permissions and will also ignore non-existent files.

Then try stopping the xampp service again.

References:
Adeye Wordpress
LinuxTechi


  1. Open LAMPP using text editor, for example i’m using nano.
nano /opt/lampp/lampp

2. Find the text as below.

# XAMPP is currently 32 bit only
case `uname -m` in
*_64)
if $XAMPP_ROOT/bin/php -v > /dev/null 2>&1
then
:
else
$GETTEXT -s “XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.”
exit 1
fi
;;
esac

3. Remove or just comment the code

# XAMPP is currently 32 bit only
#case `uname -m` in
# *_64)
# if $XAMPP_ROOT/bin/php -v > /dev/null 2>&1
# then
# :
# else
# $GETTEXT -s “XAMPP is currently only availably as…

  1. Open LAMPP file using a text editor, for example, I use nano.
nano /opt/lampp/lampp

2. Find the text as below.

osguess() {
if test -f /etc/redhat-release
then
if egrep "9 " /etc/redhat-release > /dev/null
then
echo "rh9"
return 0
else
echo "linux"
return 0
fi
elif test "$(uname)" = "Darwin"
then
echo "macosx"
return 0
else
if test -f /etc/vfstab
then
echo "solaris"
return 0
else
echo "linux"
return 0
fi
fi
}

Look at the 4th line

if egrep "9 " /etc/redhat-release > /dev/null

Change the number “9 “ to the CentOS version you are using (for example I use CentOS version 6.x)

if egrep "6 " /etc/redhat-release > /dev/null

3. Save or WriteOut by pressing Ctrl+O (if you are using nano), then press Enter


You need to install glibc alongside your current installation of glibc as you cannot update to glibc 2.14 directly in centos 6.x safely. Follow the steps below to install glibc 2.14:

  1. mkdir ~/glibc214
  2. cd ~/glibc214
  3. wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
  4. tar zxvf glibc-2.14.tar.gz
  5. cd glibc-2.14
  6. mkdir build
  7. cd build
  8. ../configure — prefix=/opt/glibc-2.14
  9. make -j4
  10. sudo make install
  11. export LD_LIBRARY_PATH=/opt/glibc-2.14/lib (for current login session)
  12. OR add LD_LIBRARY_PATH=/opt/glibc-2.14/lib in the /etc/environment and perform source /etc/environment(to add env variable permanently)

References :
StackOverflow


Download NodeJS for Linux from nodejs.org

I choose Linux Binaries (x64), extract the archive to any directory, I use

/mnt/localhost/node

Open .profile file with text editor (i use xed) as root

sudo xed ~/.profile

Add the code below to the end of file to set the environment variable

# NodeJS
VERSION=v12.15.0
DISTRO=linux-x64
export PATH=”/mnt/localhost/nodejs/node-$VERSION-$DISTRO/bin:$PATH”

Refresh to apply the change

. ~/.profile

References:
GitHub.com/NodeJS


Prerequisite

You must know the network id and managed IP from the server computer.

Download ZeroTierOne

curl -s https://install.zerotier.com | sudo bash

Set permission to read and write

sudo chmod 660 /var/lib/zerotier-one/authtoken.secret
sudo chmod 660 /var/lib/zerotier-one/identity.secret

Check status

sudo zerotier-cli info

Make sure the status is ONLINE

200 info 89e92****5 1.2.4 ONLINE

89e92****5 is the local computer id (CMIIW).

Join Network

sudo zerotier-cli join af78*********0a0

af78*********0a0 is the network id on the server computer.

Test connection

ping 10.144.205.63

Remote server using RDP

You can access the computer server using an RDP application such as Remmina, simply enter the server computer’s managed IP (IPv4) into the server column, fill in the computer server’s user name and password, and click connect.

References:
ZeroTier.com
ZeroTier on GitHub
ArchLinux.org

Dankumedia

Learning by doing and sharing.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store