In the name of God
This gist contains steps to setup Ubuntu 22.04
for deep learning.
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer | |
sudo sysctl -w vm.max_map_count=4262144 | |
sudo apt-get install htop | |
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.3.1.zip | |
sha1sum elasticsearch-5.3.1.zip |
#!/bin/bash | |
docker run --name some-mongo -p 27017:27017 -d mongo | |
cd ~ | |
curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh | |
sudo apt-get update | |
sudo bash nodesource_setup.sh | |
sudo apt-get install nodejs | |
sudo apt-get install build-essential | |
npm install pm2 -g | |
service ufw stop |
- name: Elasticsearch with custom configuration | |
hosts: localhost | |
roles: | |
#expand to all available parameters | |
- { role: elasticsearch, es_instance_name: "node1", es_data_dirs: "/opt/elasticsearch/data", es_log_dir: "/opt/elasticsearch/logs", es_work_dir: "/opt/elasticsearch/temp", | |
es_config: { | |
node.name: "node1", | |
cluster.name: "custom-cluster", | |
discovery.zen.ping.unicast.hosts: "localhost:9301", | |
http.port: 9201, |
#!/bin/sh | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get -y install oracle-java8-installer | |
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.2.deb | |
sudo dpkg -i elasticsearch-1.7.2.deb | |
sudo service elasticsearch start |
{ | |
"name": "restaurants", | |
"type": "restaurants", | |
"index": "restaurants", | |
"defaults": { | |
"sort": "rating" | |
}, | |
"schema": { | |
"name": { | |
"type": "string", |
server { | |
listen 80; | |
listen [::]:80; | |
server_name yourserver.com; | |
root /path/to/your/htdocs; | |
error_page 404 /404.html | |
index index.html; |
mysqldump -u username -p database_name codes > codes.sql --skip-triggers |