• Home
  • Projects
  • Linux Commands
  • Backup DevEnv
  • Setup DevEnv
  • Modify .bashrc

    w to W (lower case to upper case)

    if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\$'
  • Restore .ssh/known_hosts
  • Restore .local/share/remoteview

Thunderbird

AddOns

  • Provider for Google Calendar
  • ? gContactSync
  • CardBook
  • TbSync
  • Provider for CalDAV & CardDAV
  • Provider for Exchange ActiveSync

Download *.deb

  • Google Chrome
  • GraphicsMagick
  • Dropbox
    install NOT by double click
    sudo apt install ./dropbox...deb
  • NextCloud (AppImage)
  • Microsoft Teams
  • Zoom
  • TeamViewer
  • Anydesk
  • Signal

Apt

  • sudo apt install curl wget unzip
  • FFMPEG
  • HandBrake
  • TeamViewer
  • Anydesk
  • Signal
  • CMake
  • HandBrake

Settings

  • "workbench.tree.indent": 14
  • "editor.renderWhitespace": "all"
  • "files.trimTrailingWhitespace": true
  • "editor.wordSeparators": "..." // remove $
  • "liveSassCompile.settings": "extensionName": ".min.css", "format": "compressed"
  • "editor.lightbulb.enabled": false

Extensions

  • PHP Intelephense
  • Live Sass Compiler (Glenn Marks)
  • Javascript (ES6) Code Snippets
  • ESLint
  • REST Client
  • make sure all folders in the directory path /home/esviko/devenv/www/vhosts are executable - like described in cwiki.apache.org
    $ chmod +x .
  • restore /etc/hosts
  • add to /etc/apache2/apache2.conf
    <Directory /home/esviko/devenv/www/vhosts/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
    </Directory>
                
  • sudo a2enmod rewrite # description
  • sudo a2enmod ssl
  • restore /etc/apache2/sites-available
  • restore /home/esviko/www AND make sure:
    sudo chown -R esviko:www-data
  • add esviko to www-data group:
    sudo usermod -a -G www-data esviko
    # the -a (append) switch is essential. Otherwise, the user will be removed from any groups, not in the list
    # the -G switch takes a (comma-separated) list of additional groups to assign the user to
  • If it isn’t already installed, install the ca-certificates package.
    sudo apt-get install -y ca-certificates
  • Copy the *.pem part of your Root CA Certificate to the certificate store.
    sudo cp /home/esviko/devenv/www/ssl/CA/certs/Root_CA_Certificate.pem /usr/local/share/ca-certificates/Root_CA_Certificate.crt
  • Update the certificate store
    sudo update-ca-certificates
  • Add the new CA (/usr/local/share/ca-certificates/Root_CA_Certificate.crt) to your browsers:
    Setting >> Security >> Manage Certificates >> Authorities >> Import
$ sudo mysql
> ALTER USER root@localhost IDENTIFIED BY 'mysqlpass'; > FLASH PRIVELEGES;

first do

sudo apt -y install software-properties-common apt-transport-https

Install current version

sudo apt install php php-cli php-curl php-gd php-intl php-mbstring php-mysql php-soap php-xdebug php-xml php-zip

Install particular version

sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install php7.4 php7.4-{cli,curl,gd,intl,mbstring,mysql,soap,xdebug,xml,zip}

via APT

  • sudo add-apt-repository ppa:serge-rider/dbeaver-ce
  • sudo apt update
  • sudo apt install dbeaver-ce
  • restore DB connections
  • add Local Client: /usr/bin
  • evtl. mysqldump –column-statistics=0

Yarn 1

Install yarn through NPM. Install NPM

sudo apt update sudo apt install nodejs npm

To try to install Yarn via npm globaly you will run into a permission issue "Error: EACCES: permission denied, access '/usr/local/lib/node_modules'". To avoid this you will have to change some npm settings.

mkdir ~/.npm-global npm config set prefix '~/.npm-global' export PATH=~/.npm-global/bin:$PATH source ~/.profile

Now you can install Yarn like described on the Yarn website

npm install --global yarn

Starting a new project

yarn init

Adding a dependency

yarn add [package]

Add Package

composer require phpmailer/phpmailer

Cover template for Bootstrap, by @mdo.