Diferència entre revisions de la pàgina «Notes per a la compra d'un ordinador»
| (Hi ha 5 revisions intermèdies del mateix usuari que no es mostren) | |||
| Línia 207: | Línia 207: | ||
==Todo per instal·lar== | ==Todo per instal·lar== | ||
<pre> | <pre> | ||
| + | sudo apt-get update | ||
sudo apt-get install joe | sudo apt-get install joe | ||
sudo apt-get install sshpass | sudo apt-get install sshpass | ||
| + | sudo apt-get install gimp | ||
| + | sudo apt-get install curl | ||
| + | sudo apt-get install git | ||
| + | sudo apt-get install build-essential | ||
</pre> | </pre> | ||
| + | ===Google Chrome=== | ||
| + | ho instal·lo per a 64 bits, i també en el portàtil antic (32 bits). Per a la versió de 32 bits sembla ser que el Google Meet (videoconferència) no funciona. En canvi, el Mozilla sí que funciona. | ||
| + | ===Libreoffice=== | ||
| + | *https://ca.libreoffice.org/ | ||
| + | <pre> | ||
| + | tar xvzf LibreOffice_7.0.0_Linux_x86-64_deb.tar.gz | ||
| + | cd LibreOffice_7.0.0.3_Linux_x86-64_deb/ | ||
| + | cd DEBS/ | ||
| + | sudo dpkg -i *.deb | ||
| + | </pre> | ||
| + | Però per a aquesta última versió 7.0.0 del Libreoffice no tenim els debs per al pack català. Si vull els debs, he d'anar a una versió prèvia, 6.*. Suposo que amb setmanes/mesos sortirà el paquet català per a aquesta versió. | ||
| + | |||
| + | Funciona bé el Libreoffice i tinc els diccionaris en català, però la interfície no està en català. | ||
| + | *https://www.libreoffice.org/download/download/?lang=ca | ||
| + | Aquí tinc la interfície en català per a la versió 7, però només en format rpm. El paquet debian encara no està publicat. | ||
| + | |||
| + | ===impressora i scanner=== | ||
| + | <pre> | ||
| + | sudo apt install libxml2 libglade2-0 libpng12-0 libtiff5 | ||
| + | sudo apt install libxml2 libglade2-0 libtiff5 | ||
| + | |||
| + | tar xvzf cnijfilter2-5.70-1-deb.tar.gz | ||
| + | cd cnijfilter2-5.70-1-deb/ | ||
| + | ./install.sh | ||
| + | </pre> | ||
| + | <pre> | ||
| + | sudo apt-get install simple-scan | ||
| + | simple-scan | ||
| + | </pre> | ||
| + | |||
| + | ===Sublime Text 3=== | ||
| + | <pre> | ||
| + | cd sublime_text_3/ | ||
| + | </pre> | ||
| + | ./sublime_text | ||
| + | ===simplescreenrecorder=== | ||
| + | <pre> | ||
| + | sudo apt-get install simplescreenrecorder | ||
| + | simplescreenrecorder | ||
| + | </pre> | ||
| + | ===Instal·lació Node (última versió)=== | ||
| + | <pre> | ||
| + | sudo apt-cache search node | ||
| + | sudo apt-get install python-software-properties | ||
| + | curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - | ||
| + | sudo apt-get install nodejs | ||
| + | node -v | ||
| + | |||
| + | sudo apt-get install npm | ||
| + | npm -v | ||
| + | </pre> | ||
| + | Instal·lació projecte Pintar Tracks (OSM amb Node, ol package (OpenLayers)) | ||
| + | <pre> | ||
| + | cd projectes/OSM/la_casa_de_papel/ | ||
| + | PS1="$ " | ||
| + | npm init | ||
| + | npm install ol | ||
| + | ls node_modules/ | ||
| + | npm install --save-dev parcel-bundler | ||
| + | cp package_pintar_tracks_gpx.json package.json | ||
| + | npm start | ||
| + | </pre> | ||
| + | |||
| + | ===Instal·lació Python3 i pip3=== | ||
| + | python3 ja està instal·lat per defecte | ||
<pre> | <pre> | ||
| − | |||
| − | |||
python3 | python3 | ||
| − | llibreries | + | python3 --version |
| − | JOSM | + | |
| − | gpsprune | + | sudo apt-get install python3.8 |
| + | python3 --version | ||
| + | python --version | ||
| + | </pre> | ||
| + | |||
| + | <pre> | ||
| + | command -v pip3 | ||
| + | command -v pip | ||
| + | sudo apt-get install python3-pip | ||
| + | pip3 | ||
| + | pip3 --version | ||
| + | </pre> | ||
| + | ===Instal·lació llibreries matemàtiques de Python: matplotlib, numpy, sympy=== | ||
| + | <pre> | ||
| + | cd projectes/elementary_mechanics_using_python/ | ||
| + | python3 9_3_2_pendulum_with_air_resistance.py | ||
| + | sudo apt-get install python3-matplotlib | ||
| + | sudo apt-get install python3-numpy | ||
| + | python3 9_3_2_pendulum_with_air_resistance.py | ||
| + | </pre> | ||
| + | volem provar un exemple senzill que utilitzi sympy. | ||
| + | <pre> | ||
| + | git clone git://github.com/sympy/sympy.git | ||
| + | cd sympy/ | ||
| + | pip3 install mpmath | ||
| + | </pre> | ||
| + | ===gpsprune i JOSM=== | ||
| + | <pre> | ||
| + | echo deb https://josm.openstreetmap.de/apt $(lsb_release -sc) universe | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null | ||
| + | wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add - | ||
| + | sudo apt-get install josm | ||
| + | josm | ||
| + | java --version | ||
| + | </pre> | ||
| + | Descarreguem gpsprune: | ||
| + | <pre> | ||
| + | cd Baixades/ | ||
| + | java -jar gpsprune_20.jar | ||
| + | </pre> | ||
| + | ===Apache2 i mysql=== | ||
| + | <pre> | ||
| + | sudo apt-get install apache2 | ||
| + | sudo apt-get install mysql-server | ||
| + | </pre> | ||
| + | Per entrar al mysql la primera vegada ho he de fer com a sudo. | ||
| + | <pre> | ||
| + | sudo su | ||
| + | mysql -h localhost -u root -p | ||
| + | </pre> | ||
| + | i ara he de fer de manera que pugui entrar al mysql amb l'usuari normal (mirar instal·lació OVH Cloud, és fàcil) | ||
| + | <pre> | ||
| + | sudo apt-get install php php-mysql php-xml php-cli | ||
| + | sudo apt-get install libapache2-mod-php | ||
| + | sudo joe /etc/apache2/sites-available/000-default.conf | ||
| + | </pre> | ||
| + | ===zoom - videoconferències=== | ||
| + | Download center: | ||
| + | *https://zoom.us/download?os=linux | ||
| + | <pre> | ||
| + | sudo apt install ./zoom_amd64.deb | ||
| + | </pre> | ||
| + | ===TODO=== | ||
| + | <pre> | ||
| + | |||
| + | |||
sudo sense posar password? | sudo sense posar password? | ||
arduino ide | arduino ide | ||
| − | + | ||
librecad | librecad | ||
openshoot video editor | openshoot video editor | ||
| Línia 316: | Línia 448: | ||
$ mysql -u alumne -p$MYPASS2 romanic | $ mysql -u alumne -p$MYPASS2 romanic | ||
$ pwd2 mysql -u alumne -p romanic | $ pwd2 mysql -u alumne -p romanic | ||
| + | </pre> | ||
| + | |||
| + | '''NOTA''': hi ha una mica d'embolic en quins scripts s'ha de posar les comandes per tal de què funcioni. Opcions: | ||
| + | *.bashrc | ||
| + | *.profile | ||
| + | *.bash_profile | ||
| + | */etc/profile | ||
| + | Crec que la correcta és la última. Repassar. | ||
| + | |||
| + | =TODO: coses que he perdut, sort del history= | ||
| + | <pre> | ||
| + | 27 tar xvzf LibreOffice_7.0.0_Linux_x86-64_deb.tar.gz | ||
| + | 28 ls | ||
| + | 29 cd LibreOffice_7.0.0.3_Linux_x86-64_deb/ | ||
| + | 30 ls | ||
| + | 31 cd DEBS/ | ||
| + | 32 ls | ||
| + | 33 cd ~ | ||
| + | 34 sudo apt-cache search libreoffice | ||
| + | 35 cd LibreOffice_7.0.0.3_Linux_x86-64_deb/ | ||
| + | 36 cd Baixades/ | ||
| + | 37 ls | ||
| + | 38 cd LibreOffice_7.0.0.3_Linux_x86-64_deb/ | ||
| + | 39 cd DEBS/ | ||
| + | 40 ls | ||
| + | 41 sudo dpkg -i *.deb | ||
| + | 42 cd .. | ||
| + | 43 ls | ||
| + | 44 tar xvzf LibreOffice_7.0.0_Linux_x86-64_rpm_langpack_ca.tar.gz | ||
| + | 45 ls | ||
| + | 46 cd LibreOffice_7.0.0.3_Linux_x86-64_rpm_langpack_ca/ | ||
| + | 47 ls | ||
| + | 48 cd RPMS/ | ||
| + | 49 ls | ||
| + | 50 cd .. | ||
| + | 51 ls | ||
| + | 52 sudo apt-cache search libreoffice | grep catala | ||
| + | 53 sudo apt-cache search libreoffice | grep catalan | ||
| + | 54 sudo apt-cache search libreoffice | ||
| + | 55 sudo apt-cache search libreoffice | grep language | ||
| + | 56 sudo apt-cache search libreoffice | grep -ca | ||
| + | 57 sudo apt-get install libreoffice-l10n-ca | ||
| + | 58 ping www.google.es | ||
| + | 59 ls | ||
| + | 60 rm * | ||
| + | 61 sudo apt install libxml2 libglade2-0 libpng12-0 libtiff5 | ||
| + | 62 sudo apt install libxml2 libglade2-0 libtiff5 | ||
| + | 63 ls | ||
| + | 64 tar xvzf cnijfilter2-5.70-1-deb.tar.gz | ||
| + | 65 ls | ||
| + | 66 cd cnijfilter2-5.70-1-deb/ | ||
| + | 67 ls | ||
| + | 68 ./install.sh | ||
| + | 69 cd .. | ||
| + | 70 ls | ||
| + | 71 rm * | ||
| + | 72 sudo apt-get install sshpass | ||
| + | 73 sudo apt-get install gimp | ||
| + | 74 ls | ||
| + | 75 cd .. | ||
| + | 76 cd sublime_text_3/ | ||
| + | 77 ls | ||
| + | 78 ./sublime_text | ||
| + | 79 gedit | ||
| + | 80 xed %U | ||
| + | 81 xed | ||
| + | 82 sudo apt-get install simplescreencast | ||
| + | 83 sudo apt-get install simplescreenrecorder | ||
| + | 84 simplescreenrecorder | ||
| + | 85 sudo apt-cache search simplescan | ||
| + | 86 sudo apt-cache search skanlite | ||
| + | 87 sudo apt-get install skanlite | ||
| + | 88 sudo apt-get install gscan2pdf | ||
| + | 89 sudo apt-cache search xsane | ||
| + | 90 sudo apt-get install simple-scan | ||
| + | 91 simple-scan | ||
| + | 92 sudo joe etc/default/acpi-support | ||
| + | 93 sudo joe /etc/default/acpi-support | ||
| + | 94 sudo joe ~/.bashrc | ||
| + | 95 pwd1 sudo ls -la | ||
| + | 96 pwd1 ls -la | ||
| + | 97 pwd1 ls | ||
| + | 98 echo pwd1 | ||
| + | 99 sudo joe ~/.bashrc | ||
| + | 100 pwd1 joe ~/.bashrc | ||
| + | 101 pwd1 | ||
| + | 102 $MYPASS1 | ||
| + | 103 echo $MYPASS1 | ||
| + | 104 echo $pwd1 | ||
| + | 105 echo pwd1 | ||
| + | 106 alias pwd1='echo $MYPASS1 | ' | ||
| + | 107 pwd1 | ||
| + | 108 echo pwd1 | ||
| + | 109 echo $pwd1 | ||
| + | 110 alias ll='ls -la' | ||
| + | 111 ll | ||
| + | 112 alias pwd1='echo $MYPASS1' | ||
| + | 113 pwd1 | ||
| + | 114 alias pwd1='echo $MYPASS1 |' | ||
| + | 115 pwd1 | ||
| + | 116 alias pwd1='echo $MYPASS1' | ||
| + | 117 pwd1 | ||
| + | 118 pwd1 | sudo ll | ||
| + | 119 echo $MYPASS1 | sudo -S ls -la | ||
| + | 120 pwd1 | ||
| + | 121 pwd1 | sudo -S ls -la | ||
| + | 122 alias pwd1='echo $MYPASS1 | ' | ||
| + | 123 pwd1 sudo -S ls -la | ||
| + | 124 alias pwd1='echo $MYPASS1 |' | ||
| + | 125 pwd1 sudo -S ls -la | ||
| + | 126 pwd1 | ||
| + | 127 pwd1 sudo -S ls -la | ||
| + | 128 pwd1 ls -la | ||
| + | 129 pwd1 sudo -S ls -la | ||
| + | 130 cd projectes/OSM/la_casa_de_papel/ | ||
| + | 131 ls | ||
| + | 132 PS1="$ " | ||
| + | 133 npm | ||
| + | 134 sudo apt-cache search node | ||
| + | 135 pwd1 sudo apt-cache search node | ||
| + | 136 pwd1 | sudo apt-cache search node | ||
| + | 137 pwd1 sudo apt-cache search node | ||
| + | 138 echo $PWD1 | ||
| + | 139 echo $PWD2 | ||
| + | 140 echo PWD1 | ||
| + | 141 echo $PWD1 | ||
| + | 142 cd ~ | ||
| + | 143 joe .profile | ||
| + | 144 joe .bashrc | ||
| + | 145 joe .profile | ||
| + | 146 pwd1 sudo apt-cache search node | ||
| + | 147 cat .profile | ||
| + | 148 pwd1 | ||
| + | 149 echo $PWD1 | ||
| + | 150 echo $MYPWD1 | ||
| + | 151 echo MYPWD1 | ||
| + | 152 echo $MYPWD1 | ||
| + | 153 joe .profile | ||
| + | 154 echo $MYPWD1 | ||
| + | 155 source ~/.profile | ||
| + | 156 echo $MYPWD1 | ||
| + | 157 joe .profile | ||
| + | 158 joe .bash_profile | ||
| + | 159 joe .bash_login | ||
| + | 160 joe .bash_profile | ||
| + | 161 ls bash_profile | ||
| + | 162 ls | ||
| + | 163 ls .bash_profile | ||
| + | 164 joe .bash_login | ||
| + | 165 ls .bash_login | ||
| + | 166 ls .profile | ||
| + | 167 joe .profile | ||
| + | 168 exit | ||
| + | 169 echo $MYPWD1 | ||
| + | 170 echo $MYPWD2 | ||
| + | 171 joe /etc/profile | ||
| + | 172 sudo joe /etc/profile | ||
| + | 173 exit | ||
| + | 174 echo $MYPWD2 | ||
| + | 175 echo $MYPWD1 | ||
| + | 176 sudo joe /etc/profile | ||
| + | 177 echo $MYPASS1 | ||
| + | 178 pwd1 sudo la -la | ||
| + | 179 pwd1 sudo ls -la | ||
| + | 180 pwd1 sudo apt-cache search node | ||
| + | 181 pwd1 sudo apt-cache search node | grep node | ||
| + | 182 ented I/O for V8 javascript´ | ||
| + | 183 sudo apt-get install curl python-software-properties | ||
| + | 184 pwd1 sudo apt-get install curl python-software-properties | ||
| + | 185 echo $PASSWD1 | ||
| + | 186 echo $MYPASS1 | ||
| + | 187 pwd1 sudo apt-get install curl python-software-properties | ||
| + | 188 pwd1 | ||
| + | 189 pwd1 sudo apt-get install curl python-software-properties | ||
| + | 190 pwd1 sudo ls | ||
| + | 191 pwd1 sudo apt-get install curl python-software-properties | ||
| + | 192 pwd1 sudo apt-get install curl | ||
| + | 193 sudo apt-get install curl python-software-properties | ||
| + | 194 curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - | ||
| + | 195 sudo apt-get install nodejs | ||
| + | 196 node -v | ||
| + | 197 npm -v | ||
| + | 198 cd projectes/OSM/la_casa_de_papel/ | ||
| + | 199 PS1="$ " | ||
| + | 200 npm init | ||
| + | 201 npm install ol | ||
| + | 202 ls | ||
| + | 203 ls node_modules/ | ||
| + | 204 npm install --save-dev parcel-bundler | ||
| + | 205 ls | ||
| + | 206 cp package_pintar_tracks_gpx.json package.json | ||
| + | 207 npm start | ||
| + | 208 python3 | ||
| + | 209 python3 --version | ||
| + | 210 pwd1 sudo apt-cache search python | grep 3.7 | ||
| + | 211 pwd1 sudo apt-cache search python | grep 3.8 | ||
| + | 212 pwd1 sudo apt-cache search python | grep 3.9 | ||
| + | 213 pip | ||
| + | 214 pip3 | ||
| + | 215 sudo apt-get install python3.8 | ||
| + | 216 python3 --version | ||
| + | 217 command | ||
| + | 218 command -v pip3 | ||
| + | 219 command -v pip | ||
| + | 220 pip | ||
| + | 221 python --version | ||
| + | 222 python3 --version | ||
| + | 223 python --version | ||
| + | 224 python | ||
| + | 225 cd ~ | ||
| + | 226 ls | ||
| + | 227 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | ||
| + | 228 ls | ||
| + | 229 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | ||
| + | 230 ls | ||
| + | 231 python get-pip.py | ||
| + | 232 python3 get-pip.py | ||
| + | 233 pip3 | ||
| + | 234 ls | ||
| + | 235 sudo apt-cache search pip | ||
| + | 236 sudo apt-cache search pip3 | ||
| + | 237 sudo apt-cache search python | grep pip | ||
| + | 238 sudo apt-get install python3-pip | ||
| + | 239 pip3 | ||
| + | 240 pip3 --version | ||
| + | 241 ls | ||
| + | 242 cd projectes/ | ||
| + | 243 ls | ||
| + | 244 cd elementary_mechanics_using_python/ | ||
| + | 245 ls | ||
| + | 246 python3 9_3_2_pendulum_with_air_resistance.py | ||
| + | 247 sudo apt-cache search matplotlib | ||
| + | 248 sudo apt-get install python3-matplotlib | ||
| + | 249 sudo apt-cache search numpy | ||
| + | 250 sudo apt-cache search python3 | grep numpy | ||
| + | 251 sudo apt-get install python3-numpy | ||
| + | 252 python3 9_3_2_pendulum_with_air_resistance.py | ||
| + | 253 la | ||
| + | 254 ls | ||
| + | 255 cd ~ | ||
| + | 256 ls | ||
| + | 257 git clone git://github.com/sympy/sympy.git | ||
| + | 258 sud apt-get install git | ||
| + | 259 sudo apt-get install git | ||
| + | 260 git clone git://github.com/sympy/sympy.git | ||
| + | 261 python | ||
| + | 262 python3 | ||
| + | 263 ls | ||
| + | 264 cd sympy/ | ||
| + | 265 ls | ||
| + | 266 python3 | ||
| + | 267 pip install mpmath. | ||
| + | 268 pip3 install mpmath. | ||
| + | 269 pip3 install mpmath | ||
| + | 270 python3 | ||
| + | 271 ls | ||
| + | 272 cd .. | ||
| + | 273 ls | ||
| + | 274 cd ~ | ||
| + | 275 echo deb https://josm.openstreetmap.de/apt $(lsb_release -sc) universe | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null | ||
| + | 276 wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add - | ||
| + | 277 sudo apt-get install josm | ||
| + | 278 josm | ||
| + | 279 java --version | ||
| + | 280 cd Baixades/ | ||
| + | 281 ls | ||
| + | 282 java -jar gpsprune_20.jar | ||
| + | 283 history | grep screen | ||
| + | 284 sudo apt-get install apache2-server | ||
| + | 285 sudo apt-get cache-search apache2 | ||
| + | 286 sudo apt-cache search apache2 | ||
| + | 287 sudo apt-get install apache2 | ||
| + | 288 sudo apt-cache search mysql | ||
| + | 289 sudo apt-cache search mysql-server | ||
| + | 290 sudo apt-get install mysql-server | ||
| + | 291 mysql -h localhost -u root -p | ||
| + | 292 sudo su | ||
| + | 293 mysql -h localhost -u root -p | ||
| + | 294 sudo su | ||
| + | 295 mysql -h localhost -u root -p | ||
| + | 296 sudo joe /etc/mysql/my.cnf | ||
| + | 297 sudo joe /etc/mysql/mysql.conf.d/mysql.cnf | ||
| + | 298 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf | ||
| + | 299 sudo /etc/init.d/mysqld restart | ||
| + | 300 sudo /etc/init.d/mysql restart | ||
| + | 301 mysql -h localhost -u root -p | ||
| + | 302 sudo su | ||
| + | 303 mysql -h localhost -u root -p | ||
| + | 304 mysql --version | ||
| + | 305 sudo su | ||
| + | 306 exit | ||
| + | 307 sudo su | ||
| + | 308 sudo mysql | ||
| + | 309 sudo apt-get remove mysql-server | ||
| + | 310 sudo apt-get install mysql-server | ||
| + | 311 sudo mysql | ||
| + | 312 sudo su | ||
| + | 313 sudo apt-get purge mysql-server | ||
| + | 314 sudo apt-get install mysql-server | ||
| + | 315 sudo mysql | ||
| + | 316 mysql -h localhost -u root -p | ||
| + | 317 sudo mysqladmin -u root | ||
| + | 318 sudo mysqladmin -u root password She4aiVa | ||
| + | 319 sudo /etc/init.d/mysql stop | ||
| + | 320 sudo mysqld --skip-grant-tables & | ||
| + | 321 mysql -u root mysql | ||
| + | 322 mysql -u root | ||
| + | 323 sudo mysql -u root | ||
| + | 324 sudo apt-get purge mysql-server | ||
| + | 325 sudo apt-get purge mysql-common | ||
| + | 326 sudo apt-get install mysql-server | ||
| + | 327 sudo su | ||
| + | 328 sudo joe /etc/mysql/my.cnf | ||
| + | 329 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf | ||
| + | 330 sudo /etc/init.d/mysql restart | ||
| + | 331 ifconfig | ||
| + | 332 sudo su | ||
| + | 333 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf | ||
| + | 334 sudo /etc/init.d/mysql restart | ||
| + | 335 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf | ||
| + | 336 sudo /etc/init.d/mysql restart | ||
| + | 337 sudo su | ||
| + | 338 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf | ||
| + | 339 sudo joe /etc/mysql/mysql.conf.d/mysql.cnf | ||
| + | 340 sudo joe /etc/mysql/mysql.cnf | ||
| + | 341 sudo joe /etc/mysql/my.cnf | ||
| + | 342 sudo /etc/init.d/mysql restart | ||
| + | 343 mysql -h 192.168.1.50 -u root | ||
| + | 344 sudo joe /etc/mysql/mysql.conf.d/mysql.cnf | ||
| + | 345 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf | ||
| + | 346 sudo /etc/init.d/mysql restart | ||
| + | 347 sudo su | ||
| + | 348 sudo apt-get purge mysql-server | ||
| + | 349 sudo apt-get purge mysql-common | ||
| + | 350 sudo apt-get purge mysql* | ||
| + | 351 sudo apt-get remove mysql* | ||
| + | 352 sudo apt-get autoremove | ||
| + | 353 sudo apt-get autoclean | ||
| + | 354 sudo apt-get remove dbconfig-mysql | ||
| + | 355 sudo apt-get install mysql-server | ||
| + | 356 sudo su | ||
| + | 357 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf | ||
| + | 358 sudo mysql | ||
| + | 359 sudo su | ||
| + | 360 exit | ||
| + | 361 sudo su | ||
| + | 362 sudo /etc/init.d/mysql stop | ||
| + | 363 sudo /etc/init.d/mysql start | ||
| + | 364 sudo su | ||
| + | 365 sudo /etc/init.d/mysql stop | ||
| + | 366 sudo apt-get remove --purge mysql* | ||
| + | 367 sudo apt-get purge mysql* | ||
| + | 368 sudo apt-get autoremove | ||
| + | 369 sudo apt-get autoclean | ||
| + | 370 sudo apt-get remove dbconfig-mysql | ||
| + | 371 cd rutesgps/v4 | ||
| + | 372 ls | ||
| + | 373 cd rutesgps/ | ||
| + | 374 ls -la | ||
| + | 375 cd .. | ||
| + | 376 ls | ||
| + | 377 ls -la | ||
| + | 378 cd .. | ||
| + | 379 ls -la | ||
| + | 380 sudo adduser joan www-data | ||
| + | 381 sudo removeuser joan www-data | ||
| + | 382 sudo apt-get install mysql-server | ||
| + | 383 sudo su | ||
| + | 384 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf | ||
| + | 385 sudo joe /etc/mysql/my.cnf | ||
| + | 386 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf | ||
| + | 387 sudo /etc/init.d/mysql restart | ||
| + | 388 mysql -u root -p | ||
| + | 389 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf | ||
| + | 390 mysql -u root -p | ||
| + | 391 echo $MYPASS1 | ||
| + | 392 mysql -u root -p$MYPASS1 | ||
| + | 393 sudo su | ||
| + | 394 mysql -u root -p$MYPASS1 | ||
| + | 395 sudo apt-cache search php | ||
| + | 396 sudo apt-get install php php-mysql php-xml php-cli | ||
| + | 397 sudo apt-get install libapache-mod-php | ||
| + | 398 sudo apt-get install libapache2-mod-php | ||
| + | 399 cd /etc/apache2/sites-available/ | ||
| + | 400 ls | ||
| + | 401 sudo joe 000-default.conf | ||
| + | 402 sudo /etc/init.d/apache2 restart | ||
| + | 403 sudo joe 000-default.conf | ||
| + | 404 sudo /etc/init.d/apache2 restart | ||
| + | 405 sudo joe 000-default.conf | ||
| + | 406 sudo /etc/init.d/apache2 restart | ||
| + | 407 sudo joe 000-default.conf | ||
| + | 408 sudo /etc/init.d/apache2 restart | ||
| + | 409 gpsprune | ||
| + | 410 ls | ||
| + | 411 cd Baixades/ | ||
| + | 412 ls | ||
| + | 413 history | grep java | ||
| + | 414 java -jar gpsprune_20.jar | ||
| + | 415 ssh | ||
| + | 416 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}' | ||
| + | 417 echo $PASSW1 | ||
| + | 418 pwd1 | ||
| + | 419 pwd1 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}' | ||
| + | 420 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}' | ||
| + | 421 sudo apt-get install nmap | ||
| + | 422 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}' | ||
| + | 423 ifconfig | ||
| + | 424 ssh pi@192.168.1.60 | ||
| + | 425 pwd1 ls | ||
| + | 426 pwd1 sudo ls | ||
| + | 427 pwd1 | ||
| + | 428 alias pwd1 | ||
| + | 429 echo $MYPASS1 | ||
| + | 430 echo $MYPASS1 | sudo ls -la | ||
| + | 431 echo $MYPASS1 | sudo ls -la 2> /dev/null | ||
| + | 432 echo $MYPASS1 | sudo -S ls -la | ||
| + | 433 echo $MYPASS1 | sudo ls -la | ||
| + | 434 echo $MYPASS1 | sudo -S ls -la | ||
| + | 435 pwd1 sudo -S ls -la | ||
| + | 436 man sudo | ||
| + | 437 pwd1 sudo ls -la | ||
| + | 438 pwd1 sudo -S ls -la | ||
| + | 439 pwd1 sudo ls -la | ||
| + | 440 ssh joan@wiki.joanillo.org | ||
| + | 441 exit | ||
| + | 442 cd Baixades/ | ||
| + | 443 pwd1 scp joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps/coma_vaca* . | ||
| + | 444 history | grep gpsprune | ||
| + | 445 java -jar gpsprune_20.jar | ||
| + | 446 ls | ||
| + | 447 pwd1 scp Coma_de_Vaca-Ull_de_Ter-Ras_de_Caranca.gpx joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps | ||
| + | 448 java -jar gpsprune_20.jar | ||
| + | 449 pwd1 scp joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps/coma_vaca* . | ||
| + | 450 ls coma_vaca-ull_ter-ras_caranca.gpx | ||
| + | 451 pwd1 coma_vaca-ull_ter-ras_caranca.gpx joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps | ||
| + | 452 scp coma_vaca-ull_ter-ras_caranca.gpx joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps | ||
| + | 453 java -jar gpsprune_20.jar | ||
| + | 454 scp coma_vaca-ull_ter-ras_caranca.gpx joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps | ||
| + | 455 java -jar gpsprune_20.jar | ||
| + | 456 scp aaa.gpx joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps | ||
| + | 457 ping $ mysql -h database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -u admin -p database-1 | ||
| + | 458 ping database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com | ||
| + | 459 exit | ||
| + | 460 java -jar gpsprune_20.jar | ||
| + | 461 cd Baixades/ | ||
| + | 462 java -jar gpsprune_20.jar | ||
| + | 463 history | grep simplescreenrecorder | ||
| + | 464 simplescreenrecorder | ||
| + | 465 cd .. | ||
| + | 466 mysql -h database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -p database-1 | ||
| + | 467 ping database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com | ||
| + | 468 mysql -h database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -p -P 3306 database-1 | ||
| + | 469 mysql -h database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -u admin -p database-1 | ||
| + | 470 mysql -h database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -u admin -p | ||
| + | 471 ping langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com | ||
| + | 472 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -u admin -p langtrainer | ||
| + | 473 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -u admin -p | ||
| + | 474 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -P 3306 -u admin -p | ||
| + | 475 dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}' | ||
| + | 476 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -P 3306 -u admin -p | ||
| + | 477 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -P 3306 -u admin -p langtrainer | ||
| + | 478 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -P 3306 -u admin -p | ||
| + | 479 exit | ||
| + | 480 ls | ||
| + | 481 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -u admin -p langtrainer < /home/joan/copia_langtrainer_200902.dmp | ||
| + | 482 php llista_langtrainer.php | ||
| + | 483 exit | ||
| + | 484 ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head | ||
| + | 485 php llista_langtrainer.php | ||
| + | 486 dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}' | ||
| + | 487 php llista_langtrainer.php | ||
| + | 488 ssh -i /home/joan/Baixades/prova1_ec2.pem ec2-user@ec2-52-91-66-204.compute-1.amazonaws.com | ||
| + | 489 sudo chmod 400 /home/joan/Baixades/prova1_ec2.pem | ||
| + | 490 ssh -i /home/joan/Baixades/prova1_ec2.pem ec2-user@ec2-52-91-66-204.compute-1.amazonaws.com | ||
| + | 491 exit | ||
| + | 492 php llista_langtrainer.php | ||
</pre> | </pre> | ||
Revisió de 08:52, 18 març 2021
Contingut
- 1 Sobretaula
- 2 Portàtil
- 3 Portàtil slimbook ProX
- 3.1 Todo per instal·lar
- 3.1.1 Google Chrome
- 3.1.2 Libreoffice
- 3.1.3 impressora i scanner
- 3.1.4 Sublime Text 3
- 3.1.5 simplescreenrecorder
- 3.1.6 Instal·lació Node (última versió)
- 3.1.7 Instal·lació Python3 i pip3
- 3.1.8 Instal·lació llibreries matemàtiques de Python: matplotlib, numpy, sympy
- 3.1.9 gpsprune i JOSM
- 3.1.10 Apache2 i mysql
- 3.1.11 zoom - videoconferències
- 3.1.12 TODO
- 3.2 Configurant...
- 3.1 Todo per instal·lar
- 4 TODO: coses que he perdut, sort del history
Sobretaula
DELL té la possibilitat de comprar un ordinador sense Windows Vista, oferint Freedos (t'estalvies 100e)
Starting Price $743
Instant Savings $100
Subtotal $643
My Components PROCESSOR Intel® Core™2 Quad processor Q6600 (8MB L2, 2.4GHz, 1066FSB) edit WARRANTY AND SERVICE 1Yr Ltd Hardware Warranty, InHome Service after Remote Diagnosis edit OPERATING SYSTEM FreeDOS™ included in the box, ready to install edit MEMORY 4GB Dual Channel DDR2 SDRAM at 800MHz- 4DIMMs edit HARD DRIVE 500GB Serial ATA Hard Drive (7200RPM) w/DataBurst Cache™ edit OPTICAL DRIVE 16x DVD+/-RW Drive edit MONITORS 19 inch SE198WFP Widescreen Digital Flat Panel Monitor edit VIDEO CARD Integrated Intel Graphics Media Accelerator 3100 edit SOUND CARD Integrated 7.1 Channel Audio edit SPEAKERS No speakers (Speakers are required to hear audio from your system) edit KEYBOARD Dell USB Keyboard and Dell Optical USB Mouse edit MOUSE Mouse included in Wireless, Laser or Bluetooth Package edit MEDIA READER No Floppy Drive Included edit MODEM No Modem Option
Se'm planteja el problema que no hi ha manera de saber quina és la placa base, i si aquesta té firewire o no (en el futur podria comprar una targeta de so firewire).
Portàtil
DELL: Studio 17
729€
ProcesadorIntel® Core™ 2 Duo Processor T6500 (2.1GHz, 800MHz, 2MB) Sistemas operativosWindows Vista® Home Premium SP1 original (64 BIT) - Español color negre MonitorPantalla TFT panorámica WXGA+ CCFL de 17" (1.440 x 900) con TrueLife™ Tarjetas de vídeoATI Mobility RADEON HD 3650 de 256 MB MemoriaSDRAM DDR2 de 4.096 MB [2 x 2.048] a 800 MHz de doble canal Unidades de disco duroDisco duro SATA de 320 GB (5.400 rpm) Unidad ópticaUnidad interna fija de DVD+/-RW con carga por ranura, incluye software té càmara web integrada afegits: Intel® Core™ 2 Duo Processor P8600 (2.40Ghz, 3MB, 1066MHz) 828,99€
té firewire? si no ho indica suposo que no...
Studio XPS 16 : 899 €
PROCESADOR Procesador Intel® Core™ 2 Duo P8600 (2,40 GHz, FSB a 1.066 MHz, caché de 3 MB) editar SISTEMA OPERATIVO Windows Vista® Home Premium SP1 original (64 BIT) - Español editar PANTALLA LCD 16" (inch) Truelife 720p HD WLED Edge to Edge Display editar MEMORIA SDRAM DDR3 de doble canal a 1.067 MHz de 4.096 MB [2 x 2.048] editar Recomendado por Dell SDRAM DDR3 de doble canal a 1.067 MHz de 6.144 MB UNIDAD DE DISCO DURO Disco duro SATA de 500 GB (5.400 rpm) TARJETA GRÁFICA 512MB ATI® Radeon™ HD 3670 graphics card UNIDAD(ES) ÓPTICA(S) Unidad interna de DVD+/-RW (lee y graba DVD y CD) con carga por ranura y software BATERÍA PRINCIPAL Batería principal de iones de litio de 6 celdas y 56 W/h SINTONIZADOR DE TV Y MANDO A DISTANCIA Sintonizador de TV no integrado Accesorios SOFTWARE DE SEGURIDAD Sin protección de seguridad/Anti-Virus - Español editar CONECTIVIDAD INALÁMBRICA Tarjeta mini 1/2 Intel WiFi Link 5100 (802.11 a/g/n 1X2) editar Cámara Cámara de 2,0 megapíxeles integrada con software de reconocimiento facial
Són en total 973 €
Tema firewire
Compte! (http://forum.notebookreview.com/showthread.php?t=73829&page=7)
Default Re: Firewire issue affecting all the Dell Core Duo notebooks If you want a firewire interface, don't get a dell laptop. If you can live with USB, then dell is okay. It's not known yet whether other brands are affected or not. If you are planning on purchasing a Core Duo laptop for using with a firewire sound card, I would recommend that you find a way to test them before buying, or buy, test and if won't work, return. So far it seems like it's Intel's fault, so maybe you could try an AMD laptop. The new Turion X2 is quite comparable to the Core Duo processors.
http://www.gearslutz.com/board/music-computers/153216-m-audio-firewire-410-dell-laptop.html:
The firewire port on the dells are ricoh and are useless for recording. I just build me a new system after months of attempting to "fix" the issue. The best bet is if you are softsynth / ITB it is feasible to run Sonar / Nuendo / etc. If you need to recording full sessions return the dell ASAP and either build a reputable system, or have the pro's here in the forum guide you in the right direction.
Here are 2 PCMCIA cards that use the Texas Instruments 1394 chipset. LaCie - PC Card FireWire 800 FireCard 400™ 1394a PCMCIA (Cardbus) adapter Hope it helps resolve this problem and helps prevent future firewire issues. The Ricoh R5C832 1394 chipset is terrible for recording and unfortunately used on several laptop brands, from gateway to lenovo.
Compra portàtil DELL Studio 17 (agost 2010)
laptop for audio recording:
missatges a la LAU list
- [LAU] Laptop as portable synth/effects box?
- [LAU] Laptop for live performance and recording
per ficar dos discs durs necessito una placa que em permeti ficar dos discs durs (millor a 7200 rpm), i això el DELL Studio 17 ho té
en la pestanya especificacions ho diu:
Hasta 500 GB1 a 7.200 RPM configurados con un disco duro Hasta un 1 TB1 a 7.200 RPM configurados con unidades dobles
és a dir, dos discs durs de 500GB, i això em permet tenir arrencament dual de dos SO amb discs durs diferents, i tenir el software d'audio i la gravació de les pistes d'audio en discs diferents (com es recomana).
- assegurar-se que té HDMI
- Ranura ExpressCard de 34 mm (o de 54mm?)
- mirar si la targeta gràfica té problemes amb Linux
- té càmera web?
referència d'un portàtil que està bé per a audio:
some interesting laptops include Asus V1s, Lenovo ThinkPad T61, Dell > Lattitude D830. Anyone using one of those for audio under linux? Do they > have a TI firewire chipset?
En el DELL Studio 17 hi ha dues configuracions. Una em donen un disc doble:
Disco duro doble Serial ATA de 1 TB a 7.200 rpm (2 x 500 GB)
La targeta gràfica en el DELL Studio 17 és:
- ATI Mobility Radeon HD 5650 de 1 GB
- té càmera web
- té bluetooth integrat
- té HDMI
- té Firewire (no el xip de TI)
- Ranura ExpressCard de 34 mm
amb aquesta ranura puc tenir un port firewire amb el xipset de Texas Instruments (TI): 2x 1394a FireWire 34mm ExpressCard, TI Chipset
La gamma de DELL Vostro tenen targeta nVidia
Especificacions DELL Studio 17
PROCESADOR INTEL® CORE™ i5-520M (2,4 GHZ, 4 SUBPROCESOS, TURBO BOOST DE HASTA 2,93 GHZ, CACHÉ DE 3 M) PANTALLA LCD 17.3” High Definition+ (1600x900) LED with TL MEMORIA SDRAM DDR3 de 4.096 MB a 1067 MHz de doble canal [2 x 2.048] UNIDAD DE DISCO DURO Disco duro doble Serial ATA de 1 TB a 7.200 rpm (2 x 500 GB) UNIDAD(ES) ÓPTICA(S) DVD +/- RW Drive (read/write CD & DVD) with DVD Burn software BATERÍA PRINCIPAL Batería principal de iones de litio de 6 celdas y 56 W/h TECLADO Internal Spanish Qwerty Keyboard CONECTIVIDAD INALÁMBRICA Tarjeta mini inalámbrica Dell Wireless 1397 (802.11 b/g) WEBCAM Cámara Web integrada de 2,0 megapíxeles TARJETA GRÁFICA ATI Mobility Radeon HD 5650 de 1 GB
A més (no és d'interès):
SISTEMA OPERATIVO Windows® 7 Home Premium original 64bit - Español SOFTWARE DE MICROSOFT Office Starter 2010 - Español COLORES, PATRONES Y DISEÑOS DE ARTISTAS Black chainlink SERVICIOS Y SOPORTE 1 año de asistencia para hardware con recogida y devolución incluido con el ordenador SOPORTE DAÑOS ACCIDENTALES Sin asistencia por daños accidentales PROTECT YOUR NEW PC McAfee® Security Centre - 15 meses de protección - Español SOLUCIÓN DE PROTECCIÓN Computrace LoJack para Laptops, licencia de 1 año (incluido en el ordenador) Referencia del paquete Gedis N0874907 Información sobre el pedido Studio 1749 Order - Spain Asistencia técnica estándar 1 año de cobertura incluido con su ordenador Unidades de sistema Studio 1749 Resource DVD (Diagnostic & Drivers) Power Supply Adaptador de CA de 90 W Documentos de envío Spanish Documentation DataSafe (Services Owned) Datasafe Local 2.0 Basic Labels Wireless Label CI5 Cables 1 Meter Power Cord (3 Wire) - European PalmRest Silver chainlink palm rest – with Black Chainlink cover only Dell Dock Dell Dock
Gracias, se ha recibido el pedido.
Su número de recibo de Internet es: ES0132-7415-12668
Portàtil slimbook ProX
Procesador Intel i7 de 10ª generación Pantalla: 14" IPS LED cover 100 sRGB Teclado: retro-iluminado Material: Magnesio y Aluminio Puertos USB 3.0: 2 Puertos USB C: 1 Puertos USB 2.0: 1 Puertos HDMI: 1 Puertos RJ45: 1 Memoria RAM: 32GB Disco duro M.2: 1TB SSD NVMe Disco duro 2: No Teclado: Español X Sistema Operativo: Linux Mint. Pendrive: No 1274e === Wifi y antenas mejoradas, a elegir: Intel 3165N a 433Mbps o Intel 9560 AC a 1730 Mbps Red RJ45 Conector integrado de red cableada 10/100/1000 Mbps Chip RTL8111GS-CG
Todo per instal·lar
sudo apt-get update sudo apt-get install joe sudo apt-get install sshpass sudo apt-get install gimp sudo apt-get install curl sudo apt-get install git sudo apt-get install build-essential
Google Chrome
ho instal·lo per a 64 bits, i també en el portàtil antic (32 bits). Per a la versió de 32 bits sembla ser que el Google Meet (videoconferència) no funciona. En canvi, el Mozilla sí que funciona.
Libreoffice
tar xvzf LibreOffice_7.0.0_Linux_x86-64_deb.tar.gz cd LibreOffice_7.0.0.3_Linux_x86-64_deb/ cd DEBS/ sudo dpkg -i *.deb
Però per a aquesta última versió 7.0.0 del Libreoffice no tenim els debs per al pack català. Si vull els debs, he d'anar a una versió prèvia, 6.*. Suposo que amb setmanes/mesos sortirà el paquet català per a aquesta versió.
Funciona bé el Libreoffice i tinc els diccionaris en català, però la interfície no està en català.
Aquí tinc la interfície en català per a la versió 7, però només en format rpm. El paquet debian encara no està publicat.
impressora i scanner
sudo apt install libxml2 libglade2-0 libpng12-0 libtiff5 sudo apt install libxml2 libglade2-0 libtiff5 tar xvzf cnijfilter2-5.70-1-deb.tar.gz cd cnijfilter2-5.70-1-deb/ ./install.sh
sudo apt-get install simple-scan simple-scan
Sublime Text 3
cd sublime_text_3/
./sublime_text
simplescreenrecorder
sudo apt-get install simplescreenrecorder simplescreenrecorder
Instal·lació Node (última versió)
sudo apt-cache search node sudo apt-get install python-software-properties curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - sudo apt-get install nodejs node -v sudo apt-get install npm npm -v
Instal·lació projecte Pintar Tracks (OSM amb Node, ol package (OpenLayers))
cd projectes/OSM/la_casa_de_papel/ PS1="$ " npm init npm install ol ls node_modules/ npm install --save-dev parcel-bundler cp package_pintar_tracks_gpx.json package.json npm start
Instal·lació Python3 i pip3
python3 ja està instal·lat per defecte
python3 python3 --version sudo apt-get install python3.8 python3 --version python --version
command -v pip3 command -v pip sudo apt-get install python3-pip pip3 pip3 --version
Instal·lació llibreries matemàtiques de Python: matplotlib, numpy, sympy
cd projectes/elementary_mechanics_using_python/ python3 9_3_2_pendulum_with_air_resistance.py sudo apt-get install python3-matplotlib sudo apt-get install python3-numpy python3 9_3_2_pendulum_with_air_resistance.py
volem provar un exemple senzill que utilitzi sympy.
git clone git://github.com/sympy/sympy.git cd sympy/ pip3 install mpmath
gpsprune i JOSM
echo deb https://josm.openstreetmap.de/apt $(lsb_release -sc) universe | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add - sudo apt-get install josm josm java --version
Descarreguem gpsprune:
cd Baixades/ java -jar gpsprune_20.jar
Apache2 i mysql
sudo apt-get install apache2 sudo apt-get install mysql-server
Per entrar al mysql la primera vegada ho he de fer com a sudo.
sudo su mysql -h localhost -u root -p
i ara he de fer de manera que pugui entrar al mysql amb l'usuari normal (mirar instal·lació OVH Cloud, és fàcil)
sudo apt-get install php php-mysql php-xml php-cli sudo apt-get install libapache2-mod-php sudo joe /etc/apache2/sites-available/000-default.conf
zoom - videoconferències
Download center:
sudo apt install ./zoom_amd64.deb
TODO
sudo sense posar password? arduino ide librecad openshoot video editor simplescreencast OBS gimp scratch mysql -> que no arrenqui a l'inici apache -> que no arrenqui a l'inici Sublime Text NodeJS Android Studio màquina virtual Apache: *rutesgps *langtrainer *arthropoda *catalunya_megalitica (dolmens) *catalunya_romanica *Casa de Papel *M06 *M09 *arbres monumentals mysql: arthropoda langtrainer municipis romanic jbalmes ...
Configurant...
deshabilitar serveis a l'inici del sistema
Per saber els processos que s'arrenquen a l'inici:
$ sudo systemctl list-unit-files --type=service ... apache2.service enabled ... mysql.service enabled ...
Que no arrenquin a l'inici del sistema (alguns d'aquests serveis no els tindré en una màquina acabada d'instal·lar):
$ sudo systemctl disable mysql $ sudo systemctl disable apache2 $ sudo systemctl disable bluetooth $ sudo systemctl disable openvpn $ sudo systemctl disable postfix $ sudo systemctl disable postgresql
check:
$ sudo systemctl is-enabled mysql disabled
ara quan arrenqui el sistema el mysql i l'apache2 ja no arrenquen, i per arrencar-los ho he de fer manualment.
$ sudo /etc/init.d/apache2 start
Anell de claus
No haver de posar el password contínuament
$ export MYPASS1=$(echo "tTSRhEe77745xga3Fdi23V888asdsd" | tr -s "sd" | tr -s "8" | tr -d "23" | tr -d "3Fd" | tr -d "5xg" | tr -s "7" | tr -d "E" | tr -d "R" | tr -d "tT" | tr -d "s" | tr -d "78") $ export MYPASS2=$(echo "0rk89eF7iRrL3D24AlcD6arrffi444" | tr -s "4" | tr -s "rf" | tr -d "6Dc" | tr -d "A4" | tr -d "3"| tr -d "rR7F" | tr -d "0r9f8")
Fem un àlies:
alias pwd1='echo $MYPASS1 | ' alias pwd2='echo $MYPASS2 | '
i poso aquestes quatre comandes en el fitxer .bashrc, a baix de tot:
$ sudo joe ~/.bashrc
Ara que ja tinc aquestes dues variables en l'inici del sistema i disponibles en la meva sessió, puc utilitzar-les sempre que faci un sudo:
$ echo $MYPASS1 | sudo -S ls -la $ echo $MYPASS1 | sudo -S /etc/init.d/mysql start $ pwd1 sudo -S ls -la $ pwd1 sudo -S /etc/init.d/mysql start També: $ sshpass -p $MYPASS2 mysql -u alumne -p romanic $ mysql -u alumne -p$MYPASS2 romanic $ pwd2 mysql -u alumne -p romanic
NOTA: hi ha una mica d'embolic en quins scripts s'ha de posar les comandes per tal de què funcioni. Opcions:
- .bashrc
- .profile
- .bash_profile
- /etc/profile
Crec que la correcta és la última. Repassar.
TODO: coses que he perdut, sort del history
27 tar xvzf LibreOffice_7.0.0_Linux_x86-64_deb.tar.gz
28 ls
29 cd LibreOffice_7.0.0.3_Linux_x86-64_deb/
30 ls
31 cd DEBS/
32 ls
33 cd ~
34 sudo apt-cache search libreoffice
35 cd LibreOffice_7.0.0.3_Linux_x86-64_deb/
36 cd Baixades/
37 ls
38 cd LibreOffice_7.0.0.3_Linux_x86-64_deb/
39 cd DEBS/
40 ls
41 sudo dpkg -i *.deb
42 cd ..
43 ls
44 tar xvzf LibreOffice_7.0.0_Linux_x86-64_rpm_langpack_ca.tar.gz
45 ls
46 cd LibreOffice_7.0.0.3_Linux_x86-64_rpm_langpack_ca/
47 ls
48 cd RPMS/
49 ls
50 cd ..
51 ls
52 sudo apt-cache search libreoffice | grep catala
53 sudo apt-cache search libreoffice | grep catalan
54 sudo apt-cache search libreoffice
55 sudo apt-cache search libreoffice | grep language
56 sudo apt-cache search libreoffice | grep -ca
57 sudo apt-get install libreoffice-l10n-ca
58 ping www.google.es
59 ls
60 rm *
61 sudo apt install libxml2 libglade2-0 libpng12-0 libtiff5
62 sudo apt install libxml2 libglade2-0 libtiff5
63 ls
64 tar xvzf cnijfilter2-5.70-1-deb.tar.gz
65 ls
66 cd cnijfilter2-5.70-1-deb/
67 ls
68 ./install.sh
69 cd ..
70 ls
71 rm *
72 sudo apt-get install sshpass
73 sudo apt-get install gimp
74 ls
75 cd ..
76 cd sublime_text_3/
77 ls
78 ./sublime_text
79 gedit
80 xed %U
81 xed
82 sudo apt-get install simplescreencast
83 sudo apt-get install simplescreenrecorder
84 simplescreenrecorder
85 sudo apt-cache search simplescan
86 sudo apt-cache search skanlite
87 sudo apt-get install skanlite
88 sudo apt-get install gscan2pdf
89 sudo apt-cache search xsane
90 sudo apt-get install simple-scan
91 simple-scan
92 sudo joe etc/default/acpi-support
93 sudo joe /etc/default/acpi-support
94 sudo joe ~/.bashrc
95 pwd1 sudo ls -la
96 pwd1 ls -la
97 pwd1 ls
98 echo pwd1
99 sudo joe ~/.bashrc
100 pwd1 joe ~/.bashrc
101 pwd1
102 $MYPASS1
103 echo $MYPASS1
104 echo $pwd1
105 echo pwd1
106 alias pwd1='echo $MYPASS1 | '
107 pwd1
108 echo pwd1
109 echo $pwd1
110 alias ll='ls -la'
111 ll
112 alias pwd1='echo $MYPASS1'
113 pwd1
114 alias pwd1='echo $MYPASS1 |'
115 pwd1
116 alias pwd1='echo $MYPASS1'
117 pwd1
118 pwd1 | sudo ll
119 echo $MYPASS1 | sudo -S ls -la
120 pwd1
121 pwd1 | sudo -S ls -la
122 alias pwd1='echo $MYPASS1 | '
123 pwd1 sudo -S ls -la
124 alias pwd1='echo $MYPASS1 |'
125 pwd1 sudo -S ls -la
126 pwd1
127 pwd1 sudo -S ls -la
128 pwd1 ls -la
129 pwd1 sudo -S ls -la
130 cd projectes/OSM/la_casa_de_papel/
131 ls
132 PS1="$ "
133 npm
134 sudo apt-cache search node
135 pwd1 sudo apt-cache search node
136 pwd1 | sudo apt-cache search node
137 pwd1 sudo apt-cache search node
138 echo $PWD1
139 echo $PWD2
140 echo PWD1
141 echo $PWD1
142 cd ~
143 joe .profile
144 joe .bashrc
145 joe .profile
146 pwd1 sudo apt-cache search node
147 cat .profile
148 pwd1
149 echo $PWD1
150 echo $MYPWD1
151 echo MYPWD1
152 echo $MYPWD1
153 joe .profile
154 echo $MYPWD1
155 source ~/.profile
156 echo $MYPWD1
157 joe .profile
158 joe .bash_profile
159 joe .bash_login
160 joe .bash_profile
161 ls bash_profile
162 ls
163 ls .bash_profile
164 joe .bash_login
165 ls .bash_login
166 ls .profile
167 joe .profile
168 exit
169 echo $MYPWD1
170 echo $MYPWD2
171 joe /etc/profile
172 sudo joe /etc/profile
173 exit
174 echo $MYPWD2
175 echo $MYPWD1
176 sudo joe /etc/profile
177 echo $MYPASS1
178 pwd1 sudo la -la
179 pwd1 sudo ls -la
180 pwd1 sudo apt-cache search node
181 pwd1 sudo apt-cache search node | grep node
182 ented I/O for V8 javascript´
183 sudo apt-get install curl python-software-properties
184 pwd1 sudo apt-get install curl python-software-properties
185 echo $PASSWD1
186 echo $MYPASS1
187 pwd1 sudo apt-get install curl python-software-properties
188 pwd1
189 pwd1 sudo apt-get install curl python-software-properties
190 pwd1 sudo ls
191 pwd1 sudo apt-get install curl python-software-properties
192 pwd1 sudo apt-get install curl
193 sudo apt-get install curl python-software-properties
194 curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
195 sudo apt-get install nodejs
196 node -v
197 npm -v
198 cd projectes/OSM/la_casa_de_papel/
199 PS1="$ "
200 npm init
201 npm install ol
202 ls
203 ls node_modules/
204 npm install --save-dev parcel-bundler
205 ls
206 cp package_pintar_tracks_gpx.json package.json
207 npm start
208 python3
209 python3 --version
210 pwd1 sudo apt-cache search python | grep 3.7
211 pwd1 sudo apt-cache search python | grep 3.8
212 pwd1 sudo apt-cache search python | grep 3.9
213 pip
214 pip3
215 sudo apt-get install python3.8
216 python3 --version
217 command
218 command -v pip3
219 command -v pip
220 pip
221 python --version
222 python3 --version
223 python --version
224 python
225 cd ~
226 ls
227 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
228 ls
229 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
230 ls
231 python get-pip.py
232 python3 get-pip.py
233 pip3
234 ls
235 sudo apt-cache search pip
236 sudo apt-cache search pip3
237 sudo apt-cache search python | grep pip
238 sudo apt-get install python3-pip
239 pip3
240 pip3 --version
241 ls
242 cd projectes/
243 ls
244 cd elementary_mechanics_using_python/
245 ls
246 python3 9_3_2_pendulum_with_air_resistance.py
247 sudo apt-cache search matplotlib
248 sudo apt-get install python3-matplotlib
249 sudo apt-cache search numpy
250 sudo apt-cache search python3 | grep numpy
251 sudo apt-get install python3-numpy
252 python3 9_3_2_pendulum_with_air_resistance.py
253 la
254 ls
255 cd ~
256 ls
257 git clone git://github.com/sympy/sympy.git
258 sud apt-get install git
259 sudo apt-get install git
260 git clone git://github.com/sympy/sympy.git
261 python
262 python3
263 ls
264 cd sympy/
265 ls
266 python3
267 pip install mpmath.
268 pip3 install mpmath.
269 pip3 install mpmath
270 python3
271 ls
272 cd ..
273 ls
274 cd ~
275 echo deb https://josm.openstreetmap.de/apt $(lsb_release -sc) universe | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null
276 wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add -
277 sudo apt-get install josm
278 josm
279 java --version
280 cd Baixades/
281 ls
282 java -jar gpsprune_20.jar
283 history | grep screen
284 sudo apt-get install apache2-server
285 sudo apt-get cache-search apache2
286 sudo apt-cache search apache2
287 sudo apt-get install apache2
288 sudo apt-cache search mysql
289 sudo apt-cache search mysql-server
290 sudo apt-get install mysql-server
291 mysql -h localhost -u root -p
292 sudo su
293 mysql -h localhost -u root -p
294 sudo su
295 mysql -h localhost -u root -p
296 sudo joe /etc/mysql/my.cnf
297 sudo joe /etc/mysql/mysql.conf.d/mysql.cnf
298 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf
299 sudo /etc/init.d/mysqld restart
300 sudo /etc/init.d/mysql restart
301 mysql -h localhost -u root -p
302 sudo su
303 mysql -h localhost -u root -p
304 mysql --version
305 sudo su
306 exit
307 sudo su
308 sudo mysql
309 sudo apt-get remove mysql-server
310 sudo apt-get install mysql-server
311 sudo mysql
312 sudo su
313 sudo apt-get purge mysql-server
314 sudo apt-get install mysql-server
315 sudo mysql
316 mysql -h localhost -u root -p
317 sudo mysqladmin -u root
318 sudo mysqladmin -u root password She4aiVa
319 sudo /etc/init.d/mysql stop
320 sudo mysqld --skip-grant-tables &
321 mysql -u root mysql
322 mysql -u root
323 sudo mysql -u root
324 sudo apt-get purge mysql-server
325 sudo apt-get purge mysql-common
326 sudo apt-get install mysql-server
327 sudo su
328 sudo joe /etc/mysql/my.cnf
329 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf
330 sudo /etc/init.d/mysql restart
331 ifconfig
332 sudo su
333 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf
334 sudo /etc/init.d/mysql restart
335 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf
336 sudo /etc/init.d/mysql restart
337 sudo su
338 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf
339 sudo joe /etc/mysql/mysql.conf.d/mysql.cnf
340 sudo joe /etc/mysql/mysql.cnf
341 sudo joe /etc/mysql/my.cnf
342 sudo /etc/init.d/mysql restart
343 mysql -h 192.168.1.50 -u root
344 sudo joe /etc/mysql/mysql.conf.d/mysql.cnf
345 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf
346 sudo /etc/init.d/mysql restart
347 sudo su
348 sudo apt-get purge mysql-server
349 sudo apt-get purge mysql-common
350 sudo apt-get purge mysql*
351 sudo apt-get remove mysql*
352 sudo apt-get autoremove
353 sudo apt-get autoclean
354 sudo apt-get remove dbconfig-mysql
355 sudo apt-get install mysql-server
356 sudo su
357 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf
358 sudo mysql
359 sudo su
360 exit
361 sudo su
362 sudo /etc/init.d/mysql stop
363 sudo /etc/init.d/mysql start
364 sudo su
365 sudo /etc/init.d/mysql stop
366 sudo apt-get remove --purge mysql*
367 sudo apt-get purge mysql*
368 sudo apt-get autoremove
369 sudo apt-get autoclean
370 sudo apt-get remove dbconfig-mysql
371 cd rutesgps/v4
372 ls
373 cd rutesgps/
374 ls -la
375 cd ..
376 ls
377 ls -la
378 cd ..
379 ls -la
380 sudo adduser joan www-data
381 sudo removeuser joan www-data
382 sudo apt-get install mysql-server
383 sudo su
384 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf
385 sudo joe /etc/mysql/my.cnf
386 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf
387 sudo /etc/init.d/mysql restart
388 mysql -u root -p
389 sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf
390 mysql -u root -p
391 echo $MYPASS1
392 mysql -u root -p$MYPASS1
393 sudo su
394 mysql -u root -p$MYPASS1
395 sudo apt-cache search php
396 sudo apt-get install php php-mysql php-xml php-cli
397 sudo apt-get install libapache-mod-php
398 sudo apt-get install libapache2-mod-php
399 cd /etc/apache2/sites-available/
400 ls
401 sudo joe 000-default.conf
402 sudo /etc/init.d/apache2 restart
403 sudo joe 000-default.conf
404 sudo /etc/init.d/apache2 restart
405 sudo joe 000-default.conf
406 sudo /etc/init.d/apache2 restart
407 sudo joe 000-default.conf
408 sudo /etc/init.d/apache2 restart
409 gpsprune
410 ls
411 cd Baixades/
412 ls
413 history | grep java
414 java -jar gpsprune_20.jar
415 ssh
416 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
417 echo $PASSW1
418 pwd1
419 pwd1 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
420 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
421 sudo apt-get install nmap
422 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
423 ifconfig
424 ssh pi@192.168.1.60
425 pwd1 ls
426 pwd1 sudo ls
427 pwd1
428 alias pwd1
429 echo $MYPASS1
430 echo $MYPASS1 | sudo ls -la
431 echo $MYPASS1 | sudo ls -la 2> /dev/null
432 echo $MYPASS1 | sudo -S ls -la
433 echo $MYPASS1 | sudo ls -la
434 echo $MYPASS1 | sudo -S ls -la
435 pwd1 sudo -S ls -la
436 man sudo
437 pwd1 sudo ls -la
438 pwd1 sudo -S ls -la
439 pwd1 sudo ls -la
440 ssh joan@wiki.joanillo.org
441 exit
442 cd Baixades/
443 pwd1 scp joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps/coma_vaca* .
444 history | grep gpsprune
445 java -jar gpsprune_20.jar
446 ls
447 pwd1 scp Coma_de_Vaca-Ull_de_Ter-Ras_de_Caranca.gpx joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps
448 java -jar gpsprune_20.jar
449 pwd1 scp joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps/coma_vaca* .
450 ls coma_vaca-ull_ter-ras_caranca.gpx
451 pwd1 coma_vaca-ull_ter-ras_caranca.gpx joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps
452 scp coma_vaca-ull_ter-ras_caranca.gpx joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps
453 java -jar gpsprune_20.jar
454 scp coma_vaca-ull_ter-ras_caranca.gpx joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps
455 java -jar gpsprune_20.jar
456 scp aaa.gpx joan@wiki.joanillo.org:/var/www/rutesgps/v4/rutesgps
457 ping $ mysql -h database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -u admin -p database-1
458 ping database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com
459 exit
460 java -jar gpsprune_20.jar
461 cd Baixades/
462 java -jar gpsprune_20.jar
463 history | grep simplescreenrecorder
464 simplescreenrecorder
465 cd ..
466 mysql -h database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -p database-1
467 ping database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com
468 mysql -h database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -p -P 3306 database-1
469 mysql -h database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -u admin -p database-1
470 mysql -h database-1.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -u admin -p
471 ping langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com
472 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -u admin -p langtrainer
473 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -u admin -p
474 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -P 3306 -u admin -p
475 dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}'
476 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -P 3306 -u admin -p
477 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -P 3306 -u admin -p langtrainer
478 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -P 3306 -u admin -p
479 exit
480 ls
481 mysql -h langtrainer.cyr40ydu5rcj.us-east-1.rds.amazonaws.com -u admin -p langtrainer < /home/joan/copia_langtrainer_200902.dmp
482 php llista_langtrainer.php
483 exit
484 ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
485 php llista_langtrainer.php
486 dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}'
487 php llista_langtrainer.php
488 ssh -i /home/joan/Baixades/prova1_ec2.pem ec2-user@ec2-52-91-66-204.compute-1.amazonaws.com
489 sudo chmod 400 /home/joan/Baixades/prova1_ec2.pem
490 ssh -i /home/joan/Baixades/prova1_ec2.pem ec2-user@ec2-52-91-66-204.compute-1.amazonaws.com
491 exit
492 php llista_langtrainer.php
creat per Joan Quintana Compte, juliol 2009 - agost 2010 - juliol 2020