WebServer - Debian based Linux

From The TinkerNet Wiki
Revision as of 15:08, 1 January 2022 by Tinker (talk | contribs) (Created page with "=MySQL on Debian= Debian does not have MySQL in its repositories... :( We can solve this! Check the [https://dev.mysql.com/downloads/repo/apt/ MySQL download page] for cur...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

MySQL on Debian

Debian does not have MySQL in its repositories... :(

We can solve this!

Check the MySQL download page for current version...

  • wget https://dev.mysql.com/get/mysql-apt-config_0.8.20-1_all.deb
  • sudo apt install ./mysql-apt-config_0.8.20-1_all.deb

On LMDE, Select "debian buster" (It won't ask on Debian...)

Select "Ok"

Select "Ok"

  • sudo apt update
  • sudo apt upgrade

Now you can go ahead & pretend they haven't dropped MySQL from the Debian repos...

VIM (& fixing it on Debian)

(as installed on Debian) has mouse weirdness. Selecting text with the mouse automatically enters visual mode. This prevents useful things like using the mouse to copy/paste while editing in the terminal. (Visual Mode is stupid...)

Solution

Either enter:

  • :set mouse-=a

during an editing session, or even better, put it (without the leading colon) in your ~/.vimrc file. (create the .vimrc file if it's not already there...)

  • vim ~/.vimrc
set mouse-=a

If you tend to use vim via sudo a lot... (duh... Who doesn't?)

  • sudo vim ~root/.vimrc

Sadly, this seems to turn off the colour syntax hilighting.

But!

add

syntax on

to the .vimrc files & it's back.