1 sudo 2 ls 3 sudo apt update 4 su 5 sudo ls -la /root 6 passwd 7 sudo apt update 8 sudo apt list --upgradable 9 sudo apt update 10 sudo apt update install 11 sudo apt-get update 12 sudo apt update 13 sudo apt list --upgradable 14 sudo apt full-upgrade 15 ls 16 sudo apt update 17 sudo apt install apache2 18 sudo ufw app list 19 sudo ufw app info "Apache Full" 20 sudo ufw allow in "Apache Full" 21 ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//' 22 sudo apt install mysql-server 23 sudo mysql 24 sudo mysql_secure_installation 25 ls 26 reboot 27 sudo reboot 28 sudo mysql 29 sudo apt install php libapache2-mod-php php-mysql 30 sudo nano /etc/apache2/mods-enabled/dir.conf 31 sudo systemctl restart apache2 32 apt search php- | less 33 sudo mkdir /var/www/mpruane.com 34 sudo chown -R $USER:$USER /var/www/mpruane.com 35 sudo chmod -R 755 /var/www/mpruane.com 36 nano /var/www/mpruane.com/index.html 37 sudo nano /etc/apache2/sites-available/mpruane.com.conf 38 sudo a2ensite mpruane.conf 39 pwd 40 cd /etc/apache2/sites-available/ 41 ls 42 sudo a2ensite mpruane.conf 43 sudo a2ensite mpruane.com.conf 44 sudo a2dissite 000-default.conf 45 sudo systemctl reload apache2 46 sudo a2ensite mpruane.com.conf 47 sudo systemctl reload apache2 48 sudo a2dissite 000-default.conf 49 sudo systemctl restart apache2 50 cd /var/www 51 ls 52 cd mpruane.com 53 ls 54 pico index.html 55 python3 -V 56 sudo apt install python3-django 57 django-admin --version 58 ls 59 cd / 60 ls 61 cd home 62 ls 63 cd ~ 64 ls 65 pwd 66 sudo ufw allow 8000 67 ls 68 mkdir 69 pwd 70 mkdir django 71 ls 72 cd django/ 73 ls 74 cd PD6/ 75 ls 76 python3 manage.py runserver 77 sudo apt update 78 sudo apt install python3-pip 79 sudo pip3 install djangorestframework 80 pip3 install djangorestframework 81 pip install markdown 82 pip3 install markdown 83 pip3 install django-filter 84 python3 manage.py runserver 85 ls 86 pico manage.py 87 cd PD6/ 88 ls 89 pico settings.py 90 mysql -u root -p 91 mysql -u ift -p 92 ls 93 pico settings.py 94 cd .. 95 ls 96 python3 manage.py makemigrations 97 pip3 install mysqlclient 98 sudo apt-get install python-pip python-dev libmysqlclient-dev 99 pip3 install mysqlclient 100 python3 manage.py makemigrations 101 pip3 install pymysql 102 ls 103 cd PD6 104 ls 105 pico __init__.py 106 cd .. 107 python3 manage.py makemigrations 108 ls 109 cd PD6/ 110 ls 111 pico __init__.py 112 pip3 uninstall pymysql 113 pip3 install mysqlclient 114 Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-t5cwq6am/mysqlclient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-0fr9aa7p-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-t5cwq6am/mysqlclient/ 115 sudo apt-get install python3-dv 116 sudo apt-get install python3-dev 117 python3 -V 118 sudo apt-get install libmysqlclient-dev 119 sudo -H pip3 install mysqlcleint 120 sudo -H pip3 install mysqlclient 121 sudo -H pip3 install mysqlclientCommand "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0057zy3k/mysqlclient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-dg5gdv29-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-0057zy3k/mysqlclient/ 122 /usr/bin/ld: cannot find -lssl 123 sudo install openssl-devel 124 sudo install openssl-dev 125 sudo install openssl 126 sudo apt install openssl-devel 127 sudo apt install openssl-dev 128 sudo apt install openssl 129 sudo apt install MYSQL-python 130 sudo apt install libssl-dev 131 sudo -H pip3 install mysqlclient 132 ls 133 cd.. 134 cd .. 135 ls 136 python3 manage.py makemigrations 137 python3 manage.py migrate 138 python3 manage.py runserver 66.228.47.234:8000 139 ls 140 cd .. 141 ls 142 history > history.txt 143 pico history.txt 144 ls 145 cd PD6/ 146 ls 147 python3 manage.py runserver 66.228.47.234:8000 148 sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf 149 sudo systemctl restart mysql 150 ls 151 cd django/ 152 ls 153 pico history.txt 154 sudo ufw allow 3306 155 sudo ufw status 156 sudo ufw app list 157 sudo ufw app info OpenSSH 158 sudo ufw allow ssh 159 sudo ufw allow OpenSSH 160 sudo ufw enable 161 ls 162 sudo ufw show added 163 sudo reboot 164 ls 165 dpkg -l|egrep -i "(kde|gnome|lxde|xfce|mint|unity|fluxbox|openbox)" | grep -v library 166 dpkg -l|grep xserver 167 whicg Xorg 168 type Xorg 169 ls /usr/bin/*session 170 ls 171 cd django/ 172 ls 173 cd PD6/ 174 python3 manage.py runserver 66.228.47.234:8000 175 python3 manage.py createsuperuser 176 python3 manage.py runserver 66.228.47.234:8000 177 ls 178 cd django/ 179 ls 180 mv history.txt ./ 181 mv history.txt ../ 182 ls 183 ls *. 184 ls -a 185 cd PD6/ 186 ls -a 187 ls 188 chmod git.zip 777 189 chmod 777 git.zip 190 ls 191 zip git.zip 192 unzip git.zip 193 sudo apt install unzip 194 unzip git.zip 195 ls 196 ls -a 197 cd .git 198 ls 199 cd .. 200 ls 201 rm git.zip 202 ls 203 sudo install git 204 git 205 ls 206 git add . 207 git -m "New Server - Start of P9" 208 git commit -m "New Server - Start of P9" 209 git config 210 git config --global 211 git config --global user.name "Michael Ruane" 212 git config --global user.email "mikeruane@gmail.com" 213 git commit -m "New Server - Start of P9" 214 git log --pretty=oneline 215 ls 216 cd django/ 217 ls 218 cd PD6/ 219 ls 220 python3 manage.py runserver mpruane.com 221 python3 manage.py runserver mpruane.com:8000 222 cd django/ 223 cd PD6/ 224 python3 manage.py runserver mpruane.com:8000 225 ls 226 cd .. 227 ls 228 python3 manage.py runserver mpruane.com:8000 229 ls 230 cd django/ 231 ls 232 cd PD6/ 233 ls 234 python3 manage.py runserver mpruane.com:8000 235 ls 236 cd django/ 237 ls 238 cd p 239 cd PD6/ 240 ls 241 cd solarpv/ 242 ls 243 cd static/ 244 ls 245 cd solarpv/ 246 ls 247 ls -l 248 ls 249 cd django/ 250 ls 251 cd PD6/ 252 ls 253 cd solarpv/ 254 ls 255 ls -l 256 cd templates 257 ls 258 cd solarpv/ 259 ls -l 260 WSGI 261 sudo apt-get update 262 sudo apt-get install python libexpat1 263 sudo apt-get install apache2 apache2-utils ssl-cert 264 sudo apt-get install libapache2-mod-wsgi 265 sudo systemctl restart apache2 266 sudo vi /var/www/html/wsgi_test_script.py 267 cd /var/www/mpruane.com/ 268 ls 269 pico wsgi_test_script.py 270 sudo nano /etc/apache2/conf-available/mod-wsgi.conf 271 sudo a2enconf mod-wsgi 272 sudo systemctl restart apache2 273 ls 274 cd /etc/apache2/sites- 275 cd /etc/apache2/sites-available/ 276 ls 277 sudo nano /etc/apache2/conf-available/mod-wsgi.conf 278 cd .. 279 ls 280 cd conf-enabled/ 281 ls 282 cd .. 283 ls 284 pico apache2.conf 285 cd sites-available/ 286 ls 287 pico mpruane.com.conf 288 sudo pico mpruane.com.conf 289 sudo pip3 install virtualenv 290 sudo pip install virtualenv 291 ls 292 cd ~/ 293 ls 294 cd django/ 295 ls 296 cd PD6/ 297 ls 298 cd /var/www/ls 299 cd /var/www/ 300 ls 301 cd mpruane.com/ 302 ls 303 rm *.* 304 ls 305 rm -rf * 306 ls 307 cp ~/django/PD6/ /PD6 308 ls 309 cp -r ~/django/PD6/ /PD6/ 310 sudo cp -r ~/django/PD6/ /PD6/ 311 ls 312 mkdir PD6 313 ls 314 sudo cp -r ~/django/PD6/ /PD6/ 315 ls 316 cd PD6/ 317 ls -l 318 cd .. 319 ls 320 cd PD6/ 321 ls 322 cd /PD6/ 323 ls 324 cd /var/www/mpruane.com/PD6/ 325 ls 326 cp -r ~/django/PD6/ . 327 ls 328 cd PD6/ 329 ls 330 cd .. 331 ls 332 cd .. 333 ls 334 mv PD6/ PD8 335 ls 336 cd .. 337 ls 338 cd mpruane.com/ 339 ls 340 PD8/ 341 ls 342 cd PD8/ 343 ls 344 cd .. 345 mv PD8/* . 346 ls 347 ls -l 348 rm PD8/ 349 rm -f PD8 350 rm -rf PD8 351 ls 352 cd PD6/ 353 ls 354 cd .. 355 ls 356 sudo pip3 install virtualenvwrapper 357 history > index.html 358 cd ~ 359 ls 360 nano .bashrc 361 cd /var/www/mpruane.com/ 362 ls 363 cd PD6/ 364 ls 365 cd .. 366 ls 367 which virtualenv 368 which python3 369 python3 -m pip install --upgrade pip 370 pip3 install virtualenv 371 which virtualenv 372 virtualenv solarpv 373 source solarpv/bin/activate 374 pip3 install django 375 ls 376 cd PD6/ 377 ls 378 python3 manage.py runserver mpruane.com:8000 379* 380 sudo pip uninstall django 381 sudo pip3 uninstall django 382 sudo pip3 install django==2.2 383 pip3 instal --user --upgrade pip 384 sudo python3 -m pip uninstall pip && sudo apt install python3-pip --reinstall 385 python3 manage.py runserver mpruane.com:8000 386 sudo pip3 uninstall django 387 sudo pip3 install django==2.2 388 python3 manage.py runserver mpruane.com:8000 389 ls 390 cd PD6/ 391 ls 392 nano settings.py 393 python3 manage.py collectstatic 394 ls 395 cd .. 396 python3 manage.py collectstatic 397 python3 manage.py runserver mpruane.com:8000 398 deactivate 399 ls 400 workon solarpv 401 virtualenv solarpv/ 402 ls 403 cd solarpv/ 404 ls 405 cd .. 406 ls 407 virtualenv solarpv/ 408 ls 409 cd solarpv/ 410 ls 411 cd bin 412 ls 413 activate 414 ./activate 415 sudo ./activate 416 cd .. 417 ls 418 cd .. 419 ls 420 rm index.html 421 history > index.html