# Softwares to install - [Sublim Text](https://www.sublimetext.com/) - [ForkLift](https://itunes.apple.com/fr/app/forklift-file-manager-ftp/id412448059?mt=12) - [ImageOptim](https://imageoptim.com/mac) - [Xcode](https://itunes.apple.com/fr/app/xcode/id497799835?mt=12) - [Sequel Pro](http://www.sequelpro.com/) - [Slack](https://itunes.apple.com/fr/app/slack/id803453959?mt=12) - [SmoothCursor](https://smoothcursor.com) - [Steam](http://store.steampowered.com/about/) # Sublim Text - Install [Sublim Text](https://www.sublimetext.com/) - In the `Sublim Text` console (`View/Show Console`) run the command copied from the [official website](https://packagecontrol.io/installation) After the installation as finished press `cmd+mak+p` - Search and launch `Package Controll: Install Package` - Search and install `Predawn` theme - Search and install `Predawn Monokai` theme - Search and install `ApacheConf.tmLanguage` theme - Download the [Fira Code font files](https://github.com/tonsky/FiraCode) (ttf for macOS) - Finaly, add a Terminal shortcut `sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime` (create the folder bin if not existing) Finaly, you can copy this configuration into yours (by pressing `cmd+,`): ``` { "theme": "predawn-DEV.sublime-theme", "color_scheme": "Packages/Predawn Monokai/Predawn Monokai.tmTheme", "file_exclude_patterns": [ "*.pyc", "*.pyo", "*.exe", "*.dll", "*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db", "*.sublime-workspace" ], "font_face": "Fira Code", "font_size": 17, "ignored_packages": [ "Vintage" ], "open_files_in_new_window": false, "word_wrap": false, "show_definitions": false } ``` # Apache & localhost & PHP In `etc/apache2/httpd.conf`, uncoment these lines: - ~ line 173: `LoadModule userdir_module libexec/apache2/mod_userdir.so` - ~ line 175: `LoadModule rewrite_module libexec/apache2/mod_rewrite.so` - ~ line 176: `LoadModule php5_module libexec/apache2/libphp7.so` - ~ line 510: `Include /private/etc/apache2/extra/httpd-userdir.conf` In `/etc/apache2/extra/httpd-userdir.conf`, uncomment this line: - ~ line 16: `Include /private/etc/apache2/users/*.conf` In `/etc/apache2/users/`, create a file named `MyUserName.conf` and append it: ``` <Directory "/Users/MyUserName/Sites/"> Options +Indexes +MultiViews +FollowSymLinks +SymLinksIfOwnerMatch +ExecCGI AllowOverride All Require all granted # Require local </Directory> ``` (where `MyUserName` is your session username). Finaly create a `Sites` folder in your user root directory. Restart apache in the `Terminal`: `sudo apachectl restart`. Go to `http://localhost/~MyUserName` in your favourite browser. # MySQL - install [MySQL](https://dev.mysql.com/downloads/mysql/) the `DMG` version - add `export PATH="/usr/local/mysql/bin:$PATH"` to your `.bash_profile` For old versions: - in the `Terminal` run `sudo mysqld_safe --skip-grant-tables` - in another `Terminal` tab run `mysql -u root` - then type these commands one by one: - `use mysql;` - `update user set authentication_string=password('azerty') where user='root';` (where `azerty` is your new password) - `FLUSH PRIVILEGES;` - `quit` - `sudo /usr/local/mysql/support-files/mysql.server start` - `mysql -u root -h 127.0.0.1 -p` - type your password - `ALTER USER 'root'@'localhost' IDENTIFIED BY 'azerty';` # Node and npm (using nvm) - check if the file `.bash_profile` exist into your user folder (`/Users/MyUserName/.bash_profile`) - if not create it by running: `touch /Users/MyUserName/.bash_profile` - in the `Terminal` run `curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash` (you may need sudo) - verify installation by running: `command -v nvm` (it should return `nvm`) - Install the latest by `nvm install stable` # SSH Keys - in the `Terminal`, go into `~/.ssh/` - type `ssh-keygen -t rsa -b 4096 -C "your@email.com"` - then choose a name for your ssh key - then chosse a passphrase (or not) - then enable it `ssh-add -K ~/.ssh/ssh_key_name` # Wallpaper If your wallpaper is forced by admin go to `/Library/Desktop Pictures`. ❤️