This shows you the differences between two versions of the page.
|
informatica:servidor_internet_2009_debian_8 [2022/08/04 11:39] miquel created |
informatica:servidor_internet_2009_debian_8 [2022/08/04 11:40] (current) miquel |
||
|---|---|---|---|
| Line 16: | Line 16: | ||
| * [[https:// | * [[https:// | ||
| + | ==== Còpies de seguretat ==== | ||
| + | |||
| + | Guardo a /// | ||
| + | * /etc -> etc | ||
| + | * / | ||
| + | * / | ||
| + | |||
| + | ==== apt-get upgrade & apt-get dist-upgrade ==== | ||
| + | |||
| + | Modifico els fitxers a ''/ | ||
| + | |||
| + | ==== Actualització de PostgreSQL 9.1 a 9.4 ==== | ||
| + | |||
| + | < | ||
| + | root@sermnserver:/ | ||
| + | root@sermnserver:/ | ||
| + | total 4 | ||
| + | drwxr-xr-x 3 postgres postgres 4096 Jul 1 2016 9.1 | ||
| + | |||
| + | root@sermnserver:/ | ||
| + | Stopping old cluster... | ||
| + | Disabling connections to the old cluster during upgrade... | ||
| + | Restarting old cluster with restricted connections... | ||
| + | Creating new cluster 9.4/main ... | ||
| + | config / | ||
| + | data / | ||
| + | locale en_US.UTF-8 | ||
| + | Flags of / | ||
| + | port 5433 | ||
| + | Disabling connections to the new cluster during upgrade... | ||
| + | Roles, databases, schemas, ACLs... | ||
| + | Fixing hardcoded library paths for stored procedures... | ||
| + | Upgrading database template1... | ||
| + | Analyzing database template1... | ||
| + | Fixing hardcoded library paths for stored procedures... | ||
| + | Upgrading database postgres... | ||
| + | Analyzing database postgres... | ||
| + | Re-enabling connections to the old cluster... | ||
| + | Re-enabling connections to the new cluster... | ||
| + | Copying old configuration files... | ||
| + | Copying old start.conf... | ||
| + | Copying old pg_ctl.conf... | ||
| + | Copying old server.crt... | ||
| + | Copying old server.key... | ||
| + | Stopping target cluster... | ||
| + | Stopping old cluster... | ||
| + | Disabling automatic startup of old cluster... | ||
| + | Configuring old cluster to use a different port (5433)... | ||
| + | Starting target cluster on the original port... | ||
| + | Success. Please check that the upgraded cluster works. If it does, | ||
| + | you can remove the old cluster with | ||
| + | |||
| + | pg_dropcluster 9.1 main | ||
| + | root@sermnserver:/ | ||
| + | |||
| + | root@sermnserver:/ | ||
| + | total 8 | ||
| + | drwxr-xr-x 3 postgres postgres 4096 Jul 1 2016 9.1 | ||
| + | drwxr-xr-x 3 postgres postgres 4096 Aug 11 16:54 9.4 | ||
| + | </ | ||
| + | |||
| + | ==== Actualització d' | ||
| + | |||
| + | <WRAP todo> | ||
| + | FIXME Esmentar els canvis a la configuració del servei i dels virtual-hosts. | ||
| + | </ | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Actualització del mòdul de Python per Apache ==== | ||
| + | |||
| + | Al fitxer de registre d' | ||
| + | |||
| + | < | ||
| + | [Mon Aug 14 09: | ||
| + | [Mon Aug 14 09: | ||
| + | [Mon Aug 14 09: | ||
| + | 2.7/ | ||
| + | </ | ||
| + | |||
| + | per resoldre' | ||
| + | |||
| + | :warn: Compte! aquesta és una solució provisional. Si en algun moment cal executar una aplicació web en Python, s' | ||
| + | |||
| + | ==== Actualitzacíó de PHP 5 ==== | ||
| + | |||
| + | <WRAP todo> | ||
| + | FIXME Esmentar els canvis als fitxers de configuració /// | ||
| + | </ | ||
| + | ==== Substituir denyhosts per fail2ban ==== | ||
| + | |||
| + | <WRAP todo> | ||
| + | FIXME '' | ||
| + | </ | ||
| + | |||
| + | * denyhost -> fail2ban | ||
| + | * [[https:// | ||
| + | * [[http:// | ||
| + | * [[https:// | ||
| + | * fail2ban documentation | ||
| + | * [[https:// | ||
| + | * [[http:// | ||
| + | * ufw | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * prevent locking ssh | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Actualitzar la configuracio de phpmyadmin ==== | ||
| + | |||
| + | <WRAP todo> | ||
| + | * Comentar els canvis als fitxers de configuració de '' | ||
| + | </ | ||
| + | |||
| + | Corregir la causa del missatge d' | ||
| + | * [[https:// | ||
| + | * Correcció: actualitzar el fitxer /// | ||
| + | |||
| + | Corregir la causa del missatge d' | ||
| + | * Correcció: Actualitzar la contrasenya de l' | ||
| + | |||
| + | ==== Eliminar paquets obsolets ==== | ||
| + | |||
| + | Amb la comanda '' | ||
| + | |||
| + | < | ||
| + | root@sermnserver:/ | ||
| + | Reading package lists... Done | ||
| + | Building dependency tree | ||
| + | Reading state information... Done | ||
| + | The following packages will be REMOVED: | ||
| + | apache2.2-bin apache2.2-common evolution-webcal geoclue geoclue-hostip geoclue-localnet | ||
| + | geoclue-manual geoclue-nominatim geoclue-yahoo gir1.2-clutter-gst-1.0 gir1.2-ebookcontacts-1.2 | ||
| + | gir1.2-edataserver-1.2 gir1.2-folks-0.6 gir1.2-gee-0.8 gir1.2-gee-1.0 gir1.2-gst-plugins-base-0.10 | ||
| + | gir1.2-gstreamer-0.10 gnome-js-common gnome-session-fallback grilo-plugins-0.1 gsfonts-x11 | ||
| + | gstreamer0.10-plugins-ugly gtk2-engines guile-1.8-libs hpijs libamd2.2.0 libart2.0-cil libbind9-80 | ||
| + | libcamel-1.2-33 libclutter-gst-1.0-0 libclutter-imcontext-0.1-0 libclutter-imcontext-0.1-bin | ||
| + | libcluttergesture-0.0.2-0 libcolord1 libdbus-glib1.0-cil libdbus1.0-cil libdconf0 libdns88 | ||
| + | libdrm-nouveau1a libebackend-1.2-2 libecal-1.2-11 libedata-cal-1.2-15 libedataserver-1.2-16 | ||
| + | libepc-1.0-3 libepc-common libepc-ui-1.0-3 libffi5 libfftw3-3 libfftw3-long3 libgconf2-4 libgcr-3-1 | ||
| + | libgdata13 libgdu0 libgee2 libgeoclue0 libglade2.0-cil libglew1.7 libgmime2.6-cil | ||
| + | libgnome-bluetooth10 libgnome-media-profiles-3.0-0 libgnome2.24-cil libgnomedesktop2.20-cil | ||
| + | libgnomekbd7 libgphoto2-2 libgphoto2-port0 libgrilo-0.1-0 libgssglue1 libgtksourceview2.0-0 | ||
| + | libgtksourceview2.0-common libgweather-3-0 libical0 libicu48 libimobiledevice2 libisccfg82 | ||
| + | libiscsi1 libjavascriptcoregtk-1.0-0 libjim0debian2 libjson0 liblcms1 liblvm2app2.2 liblwres80 | ||
| + | libmono-system-runtime4.0-cil libmozjs185-1.0 libmpc2 libmusicbrainz5-0 libmx-1.0-2 libmx-bin | ||
| + | libmx-common libndesk-dbus-glib1.0-cil libndesk-dbus1.0-cil libnewtonsoft-json4.5-cil libnl1 | ||
| + | libnunit2.6-cil libparted0debian1 libplist1 libpoppler19 libproxy0 librest-extras-0.7-0 | ||
| + | librhythmbox-core6 libseed-gtk3-0 libslp1 libsocialweb-client2 libsocialweb-common | ||
| + | libsocialweb-service libsocialweb0 libstatgrab6 libt1-5 libtcl8.5 libtelepathy-logger2 | ||
| + | libtidy-0.99-0 libtk8.5 libtotem-plparser17 libts-0.0-0 libumfpack5.4.0 libupower-glib1 libusbmuxd1 | ||
| + | libusbredirparser0 libvirt-bin libvte-common libvte9 libwebkitgtk-1.0-0 libwebkitgtk-1.0-common | ||
| + | libwxbase2.8-0 libwxgtk2.8-0 libx264-123 libxen-4.1 openssh-blacklist openssh-blacklist-extra | ||
| + | python-aptdaemon python-aptdaemon.gtk3widgets python-beautifulsoup python-central python-defer | ||
| + | python-feedparser python-fpconst python-gnupginterface python-gtksourceview2 python-httplib2 | ||
| + | python-packagekit python-software-properties python-utidylib python-zeitgeist tcl8.5 tk8.5 tsconf | ||
| + | udisks vgabios wwwconfig-common | ||
| + | 0 upgraded, 0 newly installed, 148 to remove and 7 not upgraded. | ||
| + | After this operation, 158 MB disk space will be freed. | ||
| + | Do you want to continue? [Y/n] | ||
| + | (Reading database ... 178919 files and directories currently installed.) | ||
| + | Removing apache2.2-bin (2.4.10-10+deb8u10) ... | ||
| + | Removing apache2.2-common (2.4.10-10+deb8u10) ... | ||
| + | ... | ||
| + | Processing triggers for menu (2.1.47) ... | ||
| + | Processing triggers for python-support (1.0.15) ... | ||
| + | Processing triggers for libglib2.0-0: | ||
| + | </ | ||
| + | |||
| + | ==== Canviar la resolució de la consola ==== | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Problemes amb Samba (smbd & nmbd) ==== | ||
| + | |||
| + | La versió actualitzada del servidor de SMBFS/CIFS Samba no aconsegueix muntar les carpetes compartides dels ordinadors dels 250 i 360, | ||
| + | |||
| + | < | ||
| + | [2017/08/15 08: | ||
| + | query_name_response: | ||
| + | This response was from IP 192.168.2.9, | ||
| + | [2017/08/15 08: | ||
| + | query_name_response: | ||
| + | This response was from IP 192.168.2.9, | ||
| + | </ | ||
| + | |||
| + | Per resoldre l' | ||
| + | |||
| + | < | ||
| + | bind interfaces only = YES | ||
| + | interfaces = eth0 192.168.2.2 | ||
| + | smb ports = 139 | ||
| + | bind interfaces only = yes | ||
| + | </ | ||
| + | |||
| + | Llavors reinicio els serveis amb | ||
| + | |||
| + | < | ||
| + | root@sermnserver:/ | ||
| + | Synchronizing state for smbd.service with sysvinit using update-rc.d... | ||
| + | Executing / | ||
| + | Executing / | ||
| + | Synchronizing state for nmbd.service with sysvinit using update-rc.d... | ||
| + | Executing / | ||
| + | Executing / | ||
| + | </ | ||
| + | |||
| + | i comprovo que s' | ||
| + | |||
| + | < | ||
| + | root@sermnserver:/ | ||
| + | ● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd) | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | Aug 17 16:34:52 sermnserver smbd[3828]: Starting SMB/CIFS daemon: smbd. | ||
| + | Aug 17 16:34:52 sermnserver systemd[1]: Started LSB: start Samba SMB/CIFS daemon (smbd). | ||
| + | |||
| + | ● nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd) | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | Aug 17 16:34:50 sermnserver systemd[1]: Starting LSB: start Samba NetBIOS nameserver (nmbd)... | ||
| + | Aug 17 16:34:51 sermnserver nmbd[3789]: Starting NetBIOS name server: nmbd. | ||
| + | Aug 17 16:34:51 sermnserver systemd[1]: Started LSB: start Samba NetBIOS nameserver (nmbd). | ||
| + | </ | ||
| + | |||
| + | Però quan provo a muntar una de les carpetes em dóna l' | ||
| + | |||
| + | < | ||
| + | root@sermnserver:/ | ||
| + | mount.cifs kernel mount options: ip=192.168.2.10, | ||
| + | mount error(22): Invalid argument | ||
| + | Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) | ||
| + | </ | ||
| + | |||
| + | que indica que hi ha una de les opcions al fitxer ''/ | ||
| + | |||
| + | ==== Error a dwww ==== | ||
| + | |||
| + | Les pàgines servides per '' | ||
| + | |||
| + | < | ||
| + | [Thu Aug 17 17: | ||
| + | </ | ||
| + | |||
| + | per resoldre' | ||
| + | |||
| + | <code diff> | ||
| + | --- dwww-convert.OLD | ||
| + | +++ dwww-convert | ||
| + | @@ -327,7 +327,7 @@ | ||
| + | print " | ||
| + | my @stat = stat( $filename ); | ||
| + | my $mtime = $stat[9]; | ||
| + | - print "Last modified: " . gmtime($mtime) . " | ||
| + | + print " | ||
| + | print " | ||
| + | print " | ||
| + | } # }}} | ||
| + | </ | ||