Skip to content

Instantly share code, notes, and snippets.

@larsonreever
Created August 28, 2019 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsonreever/0e7b2acfaf8ecb5a878bced402a17ac8 to your computer and use it in GitHub Desktop.
Save larsonreever/0e7b2acfaf8ecb5a878bced402a17ac8 to your computer and use it in GitHub Desktop.
Alt+shift
sudo apt-get install gnome-tweak-tool
gnome-tweaks
sudo apt update
sudo apt install mysql-server
sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '2829';
FLUSH PRIVILEGES;
Установка php
1) sudo apt-get install php
2) установка старых версий php https://askubuntu.com/questions/761713/how-can-i-downgrade-from-php-7-to-php-5-6-on-ubuntu-16-04
Или
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.3 php7.2 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-mbstring php7.2-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.3
gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state 'off'
Установка mysql
1) https://www.digitalocean.com/community/tutorials/mysql-ubuntu-18-04-ru
2) удалить плагин проверки прав https://blog.programs74.ru/how-to-resolve-mysql-error-1819/
Установить телеграм из менеджера
добавить в автолоад telegram-desktop
Установка apache2
1) https://www.digitalocean.com/community/tutorials/apache-ubuntu-18-04-ru (не делать шаг 2)
2) https://stackoverflow.com/questions/5891802/how-do-i-change-the-root-directory-of-an-apache-server сделать чтобы апач смотрел в домашнюю папку
sudo nano /etc/apache2/apache2.conf
and find this
<Directory /var/www/html/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>
3) https://toster.ru/q/216717 права на создаваемые папки
4) Добавить настройки апача https://www.digitalocean.com/community/tutorials/linux-apache-mysql-php-lamp-ubuntu-16-04-ru
5) Добавить реврайт
sudo gedit /etc/apache2/sites-available/000-default.conf - добавить
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
sudo a2enmod rewrite
6) Поменять папку найти <Directory /var/www/> и заменить на папку
sudo gedit /etc/apache2/apache2.conf
1)Cоздание апач настроек
sudo a2ensite wa.io.conf
echo '127.0.0.1 wa.io' | sudo tee -a /etc/hosts && echo '127.0.0.1 www.wa.io' | sudo tee -a /etc/hosts
echo 'umask 000' | sudo tee -a /etc/apache2/envvars
echo 'umask 000' | sudo tee -a /etc/apache2/envvars
echo 'umask 000' | sudo tee -a /etc/apache2/envvars
Установка phpstorm
1) через snap
Установка GIT
1) sudo apt-get instal -y git
ssh-keygen
git config --global user.name "Max Serdziukou"
git config --global user.email "onemikser@gmail.com"
Настроить клаву для убунту
1) https://github.com/free5lot/hid-apple-patched
Настроить наушники:
Если стандартный блютуз не подключает, то sudo apt-get install blueman
Добавить пользователя в www-data
sudo usermod -a -G www-data mikser
Собрать вебасист
sudo php etc/deploy/phing.phar -f etc/deploy/build.xml init
Включить phpmyadmin если не работает
/etc/apache2/apache2.conf строку
Include /etc/phpmyadmin/apache.conf после чего перезапустите апач
[Xdebug]
zend_extension="/etc/php/7.3/mods-available/xdebug.ini"
xdebug.remote_enable=1
xdebug.remote_port=9009
xdebug.idekey="PHPSTORM"
xdebug.default_enable = 1
xdebug.show_local_vars = 1
# Install node js
sudo apt install -y nodejs npm
Если нет звука в наушниках, то добавить его тут
alsamixer
ssl
https://devacademy.ru/article/sozdanie-ssl-sertifikata-dlya-apache-dlya-ubuntu-1404/
Nvidia
sudo add-apt-repository ppa:graphics-drivers/ppa
ubuntu-drivers devices
sudo apt install nvidia-driver-410
Долгое выключение
sudo dpkg-reconfigure tzdata
Скрины
sudo apt install flameshot
Панель задач
gsettings set org.gnome.shell.extensions.dash-to-dock isolate-monitors true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment