Já instalei signal-xenial sources.list
e não sei o que faz. Posso ver que sim xenial
e estou executando jammy
, então estou me perguntando se é seguro excluir?
Obrigado
Já instalei signal-xenial sources.list
e não sei o que faz. Posso ver que sim xenial
e estou executando jammy
, então estou me perguntando se é seguro excluir?
Obrigado
sudo apt-get purge mysql-client-8.0 mysql-server-8.0 mysql-server-core-8.0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'mysql-client-8.0' is not installed, so not removed
Package 'mysql-server-8.0' is not installed, so not removed
Package 'mysql-server-core-8.0' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get autoremove sudo apt-get autoclean
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Del thermald 2.4.9-1ubuntu0.3 [222 kB]
sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mysql-common : Conflicts: mysql-server-8.0 but 8.0.34-0ubuntu0.22.04.1 is to be installed
mysql-server-8.0 : Depends: mysql-client-8.0 (>= 8.0.34-0ubuntu0.22.04.1) but it is not installable
Depends: mysql-server-core-8.0 (= 8.0.34-0ubuntu0.22.04.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
Tenho dependências não atendidas, embora elas tenham sido excluídas. Eu não entendo.
Obrigado!
EDITAR:
Reinstalei um instantâneo antigo para manter meus sites online. Portanto, as versões antigas do mysql8.0 são instaladas novamente. Recebo dependências não atendidas.
apt policy mysql-common
mysql-common:
Installed: 8.0.33-1ubuntu18.04
Candidate: 8.0.33-1ubuntu18.04
Version table:
*** 8.0.33-1ubuntu18.04 500
500 http://repo.mysql.com/apt/ubuntu bionic/mysql-8.0 amd64 Packages
100 /var/lib/dpkg/status
5.8+1.0.8 500
500 http://mirrors.digitalocean.com/ubuntu jammy/main amd64 Packages
dpkg -l | grep mysql
ii dbconfig-mysql 2.0.21 all dbconfig-common MySQL/MariaDB support
ii mysql-apt-config 0.8.24-1 all Auto configuration for MySQL APT Repo.
ii mysql-client 8.0.33-1ubuntu18.04 amd64 MySQL Client meta package depending on latest version
ii mysql-common 8.0.33-1ubuntu18.04 amd64 Common files shared between packages
ii mysql-community-client 8.0.33-1ubuntu18.04 amd64 MySQL Client
ii mysql-community-client-core 8.0.33-1ubuntu18.04 amd64 MySQL Client Core Binaries
ii mysql-community-client-plugins 8.0.33-1ubuntu18.04 amd64 MySQL Client plugin
ii mysql-community-server 8.0.33-1ubuntu18.04 amd64 MySQL Server
ii mysql-community-server-core 8.0.33-1ubuntu18.04 amd64 MySQL Server Core Binaires
ii mysql-server 8.0.33-1ubuntu18.04 amd64 MySQL Server meta package depending on latest version
rc mysql-server-5.7 5.7.33-0ubuntu0.18.04.1 amd64 MySQL database server binaries and system database setup
ii php-mariadb-mysql-kbs 1.2.12-1 all Knowledge base about MariaDB and MySQL server variables
ii php-mysql 2:8.1+92ubuntu1 all MySQL module for PHP [default]
ii php8.1-mysql 8.1.2-1ubuntu2.13 amd64 MySQL module for PHP
sudo apt update
Hit:1 http://repo.mysql.com/apt/ubuntu bionic InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:3 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Get:4 http://mirrors.digitalocean.com/ubuntu jammy InRelease [270 kB]
Hit:5 https://updates.signal.org/desktop/apt xenial InRelease
Hit:6 http://mirrors.digitalocean.com/ubuntu jammy-updates InRelease
Hit:7 http://mirrors.digitalocean.com/ubuntu jammy-backports InRelease
Fetched 270 kB in 1s (390 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
apt list --upgradable
Listing... Done
mysql-client/jammy-updates,jammy-security 8.0.34-0ubuntu0.22.04.1 amd64 [upgradable from: 8.0.33-1ubuntu18.04]
mysql-server/jammy-updates,jammy-security 8.0.34-0ubuntu0.22.04.1 amd64 [upgradable from: 8.0.33-1ubuntu18.04]
apt install mysql-client mysql-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mysql-common : Conflicts: mysql-client-8.0 but 8.0.34-0ubuntu0.22.04.1 is to be installed
Conflicts: mysql-client-core-8.0 but 8.0.34-0ubuntu0.22.04.1 is to be installed
mysql-server : Depends: mysql-server-8.0 but it is not installable
E: Unable to correct problems, you have held broken packages.
Obrigado!
Recebo 3 avisos após a atualização do Ubuntu 22.04 em um droplet de pilha Digital Ocean LAMP.
W: http://repo.mysql.com/apt/ubuntu/dists/bionic/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://repos.insights.digitalocean.com/apt/do-agent/dists/main/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://pkg.cloudflare.com/dists/trusty/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Como mover as chaves para o local certo e excluir as chaves antigas?
EDITAR
lista sudo apt-key
pub rsa2048 2016-02-17 [SC]
9FE3 B226 BD77 5196 D8C2 E599 DE88 104A A4C6 383F
uid [ unknown] DigitalOcean Insights Engineering <[email protected]>
sub rsa2048 2016-02-17 [E]
pub rsa2048 2015-01-28 [SC]
FBA8 C0EE 6361 7C5E ED69 5C43 254B 391D 8CAC CBF8
uid [ unknown] CloudFlare Software Packaging <[email protected]>
pub dsa1024 2003-02-03 [SCA] [expired: 2022-02-16]
A4A9 4068 76FC BD3C 4567 70C8 8C71 8D3B 5072 E1F5
uid [ expired] MySQL Release Engineering <[email protected]>
pub rsa4096 2021-12-14 [SC] [expires: 2023-12-14]
859B E8D7 C586 F538 430B 19C2 467B 942D 3A79 BD29
uid [ unknown] MySQL Release Engineering <[email protected]>
sub rsa4096 2021-12-14 [E] [expires: 2023-12-14]
/etc/apt/trusted.gpg.d/certbot_ubuntu_certbot.gpg
-------------------------------------------------
pub rsa4096 2016-11-02 [SC]
7BF5 7606 6ADA 6572 8FC7 E70A 8C47 BE8E 75BC A694
uid [ unknown] Launchpad PPA for certbot
/etc/apt/trusted.gpg.d/ondrej-ubuntu-apache2.gpg
------------------------------------------------
pub rsa1024 2009-01-26 [SC]
14AA 40EC 0831 7567 56D7 F66C 4F4E A0AA E526 7A6C
uid [ unknown] Launchpad PPA for Ondřej Surý
/etc/apt/trusted.gpg.d/ondrej_ubuntu_php.gpg
--------------------------------------------
pub rsa1024 2009-01-26 [SC]
14AA 40EC 0831 7567 56D7 F66C 4F4E A0AA E526 7A6C
uid [ unknown] Launchpad PPA for Ondřej Surý
/etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg
------------------------------------------------------
pub rsa4096 2012-05-11 [SC]
8439 38DF 228D 22F7 B374 2BC0 D94A A3F0 EFE2 1092
uid [ unknown] Ubuntu CD Image Automatic Signing Key (2012) <[email protected]>
/etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
------------------------------------------------------
pub rsa4096 2018-09-17 [SC]
F6EC B376 2474 EDA9 D21B 7022 8719 20D1 991B C93C
uid [ unknown] Ubuntu Archive Automatic Signing Key (2018) <[email protected]>
ls -l /etc/apt/sources.list.d
-rw-r--r-- 1 root root 276 Apr 8 15:51 certbot-ubuntu-certbot-xenial.list
-rw-r--r-- 1 root root 276 Apr 8 15:51 certbot-ubuntu-certbot-xenial.list.distUpgrade
-rw-r--r-- 1 root root 274 Mar 13 2020 certbot-ubuntu-certbot-xenial.list.save
-rw-r--r-- 1 root root 43 Apr 8 15:51 cloudflare-main.list
-rw-r--r-- 1 root root 43 Apr 8 15:51 cloudflare-main.list.distUpgrade
-rw-r--r-- 1 root root 43 Mar 13 2020 cloudflare-main.list.save
-rw-r--r-- 1 root root 67 Apr 8 15:51 digitalocean-agent.list
-rw-r--r-- 1 root root 67 Apr 8 15:51 digitalocean-agent.list.distUpgrade
-rw-r--r-- 1 root root 67 Mar 13 2020 digitalocean-agent.list.save
-rw-r--r-- 1 root root 501 Apr 8 15:51 mysql.list
-rw-r--r-- 1 root root 501 Apr 8 15:51 mysql.list.distUpgrade
-rw-r--r-- 1 root root 137 Apr 8 15:51 ondrej-ubuntu-apache2-hirsute.list
-rw-r--r-- 1 root root 135 Apr 8 15:51 ondrej-ubuntu-apache2-hirsute.list.distUpgrade
-rw-r--r-- 1 root root 123 Apr 8 15:51 ondrej-ubuntu-php-xenial.list
-rw-r--r-- 1 root root 124 Apr 8 15:51 ondrej-ubuntu-php-xenial.list.distUpgrade
-rw-r--r-- 1 root root 125 Apr 8 19:11 signal-xenial.list
Eu tenho:
Sistema operacional: Ubuntu 21.04 KDE Plasma Versão: 5.21.4 KDE Frameworks Versão: 5.80.0 Qt Versão: 5.15.2 Kernel Versão: 5.11.0-37-generic Tipo de SO: 64 bits Plataforma gráfica: X11 Processadores: 4 × Intel ® Pentium® CPU 4415U @ 2,30GHz Memória: 3,6 GiB de RAM Processador gráfico: Mesa Intel® HD Graphics 610
Eu tenho 8 GB de RAM extra no meu laptop Lenovo e eles foram detectados e funcionaram antes desta atualização.
sudo lshw -C memory
description: BIOS
vendor: LENOVO
physical id: 0
version: 4WCN40WW
date: 04/13/2018
size: 128KiB
capacity: 6080KiB
capabilities: pci upgrade shadowing cdboot bootselect edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int9keyboard int10video acpi usb biosbootspecification uefi
*-cache:0
description: L1 cache
physical id: 5
slot: L1 Cache
size: 128KiB
capacity: 128KiB
capabilities: synchronous internal write-back unified
configuration: level=1
*-cache:1
description: L2 cache
physical id: 6
slot: L2 Cache
size: 512KiB
capacity: 512KiB
capabilities: synchronous internal write-back unified
configuration: level=2
*-cache:2
description: L3 cache
physical id: 7
slot: L3 Cache
size: 2MiB
capacity: 2MiB
capabilities: synchronous internal write-back unified
configuration: level=3
*-memory
description: System Memory
physical id: 24
slot: System board or motherboard
size: 4GiB
*-bank:0
description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2133 MHz (0.5 ns)
product: M471A5244CB0-CRC
vendor: Samsung
physical id: 0
serial: 00000000
slot: ChannelA-DIMM0
size: 4GiB
width: 64 bits
clock: 2133MHz (0.5ns)
*-bank:1
description: [empty]
physical id: 1
slot: ChannelB-DIMM0
*-memory UNCLAIMED
description: Memory controller
product: Sunrise Point-LP PMC
vendor: Intel Corporation
physical id: 1f.2
bus info: pci@0000:00:1f.2
version: 21
width: 32 bits
clock: 33MHz (30.3ns)
capabilities: bus_master
configuration: latency=0
resources: memory:a1324000-a1327fff
sudo dmidecode -t memory
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.0 present.
Handle 0x0024, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 32 GB
Error Information Handle: No Error
Number Of Devices: 2
Handle 0x0025, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x0024
Error Information Handle: No Error
Total Width: 64 bits
Data Width: 64 bits
Size: 4 GB
Form Factor: SODIMM
Set: None
Locator: ChannelA-DIMM0
Bank Locator: BANK 0
Type: DDR4
Type Detail: Synchronous Unbuffered (Unregistered)
Speed: 2133 MT/s
Manufacturer: Samsung
Serial Number: 00000000
Asset Tag: 9876543210
Part Number: M471A5244CB0-CRC
Rank: 1
Configured Memory Speed: 2133 MT/s
Minimum Voltage: 1.5 V
Maximum Voltage: 1.5 V
Configured Voltage: 1.2 V
Handle 0x0026, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x0024
Error Information Handle: No Error
Total Width: Unknown
Data Width: Unknown
Size: No Module Installed
Form Factor: Unknown
Set: None
Locator: ChannelB-DIMM0
Bank Locator: BANK 2
Type: Unknown
Type Detail: None
Speed: Unknown
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: Unknown
Configured Memory Speed: Unknown
Minimum Voltage: Unknown
Maximum Voltage: Unknown
Configured Voltage: Unknown
sudo swapon --show
NAME TYPE SIZE USED PRIO
/swapfile file 15G 2.8M -2
Eu tenho:
Sistema operacional: Kubuntu 20.04 KDE Plasma Versão: 5.18.5 KDE Frameworks Versão: 5.68.0 Qt Versão: 5.12.8 Kernel Versão: 5.4.0-33-generic Tipo de SO: 64 bits Processadores: 4 × Intel® Pentium® CPU 4415U @ 2,30GHz Memória: 11,5 GiB de RAM
E: O subprocesso /usr/bin/dpkg retornou um código de erro (1) após do-release-upgrade para 20.04 de 19.10
Eu tentei:
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt autoremove
sudo apt-get update && sudo apt-get upgrade -y
ls -l /var/lib/dpkg/info | grep -i polar-bookshelf
sudo mv /var/lib/dpkg/info/polar-bookshelf.* /tmp
sudo rm /var/lib/dpkg/available
sudo touch /var/lib/dpkg/available
sudo sh -c 'for i in /var/lib/apt/lists/*_Packages; do dpkg --merge-avail "$i"; done'
sudo apt-get clean
Sem sorte.
EDIT: Eu também tive um problema com um pacote de ícones, instalei e agora recebo:
package failed to install error while instaling package: tying to overwrite'/usr/lib/gnome-initial-setup/vendor.conf', which is also in package gnome-initial-setup 3.36.2-0ubuntu1
Eu tenho:
Sistema operacional: Kubuntu 19.10 KDE Plasma Versão: 5.18.3 KDE Frameworks Versão: 5.67.0 Qt Versão: 5.12.4 Kernel Versão: 5.3.0-53-generic Tipo de SO: 64 bits Processadores: 4 × Intel® Pentium® CPU 4415U @ 2,30GHz Memória: 11,5 GiB de RAM
E um Logitech G900
que eu amo muito. Normalmente eu uso no meu PC gamer com Win10. Mas eu também gostaria de usá-lo no meu laptop Kubuntu. O cursor se move muito rápido. O software possui configurações de PSI para ajustar velocidades específicas. Qualquer ajuda sobre como diminuir a velocidade do PSI será muito apreciada, obrigado!
Eu tenho:
Sistema operacional: Kubuntu 19.10 KDE Plasma Versão: 5.18.3 KDE Frameworks Versão: 5.67.0 Qt Versão: 5.12.4 Kernel Versão: 5.3.0-51-generic Tipo de SO: 64 bits Processadores: 4 × Intel® Pentium® CPU 4415U @ 2,30GHz Memória: 11,5 GiB de RAM
É seguro remover todos os ppa não verificados em outro software?
Obrigado!
O Wordpress não reconhece a atualização do PHP no droplet Ubuntu 18.04 com PHP 7.4.3 de repositórios.
Ele afirma que eu tenho a versão 7 do PHP.
Como fazer o WP aceitar a atualização?
Eu tenho isso no meu .htaccess
# END WordPress
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 400M
php_value max_execution_time 180
php_value max_input_time 180
# Wordfence WAF
<IfModule mod_php7.c>
php_value auto_prepend_file '/var/www/html/wordfence-waf.php'
</IfModule>
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
# END Wordfence WAF
WP_DEBUG true não dá erros
root@benja2:~# a2enmod php7.4
Considering dependency mpm_prefork for php7.4:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php7.4:
Enabling module php7.4.
To activate the new configuration, you need to run:
systemctl restart apache2
root@benja2:~# systemctl restart apache2
root@benja2:~#
Eu tenho isso no meu wordfence-waf.php
<?php
// Before removing this file, please verify the PHP ini setting `auto_prepend_file` does not point to this.
if (file_exists('/var/www/html/wp-content/plugins/wordfence /waf/bootstrap.php')) {
define("WFWAF_LOG_PATH", '/var/www/html/wp-content/wflogs/');
include_once '/var/www/html/wp-content/plugins/wordfence /waf/bootstrap.php';
}
?>
Obrigado
Eu tenho:
$ sudo apt-get install pulseaudio
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
pulseaudio : Depends: libpulse0 (= 1:12.2-0ubuntu4) but 1:12.2-5~bionic1 is to be installed
Depends: pulseaudio-utils but it is not going to be installed
Recommends: rtkit but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ apt-cache policy libpulse0
libpulse0:
Installed: 1:12.2-5~bionic1
Candidate: 1:12.2-5~bionic1
Version table:
*** 1:12.2-5~bionic1 100
100 /var/lib/dpkg/status
1:12.2-0ubuntu4 500
500 http://dk.archive.ubuntu.com/ubuntu cosmic/main amd64 Packages
Não consigo atualizar no Kubuntu 18.10. Eu tenho 20 pacotes, ao atualizar a partir da GUI, recebo: O PackageKit Deamon travou
Do terminal: sudo apt-get update && sudo apt-get upgrade -y Eu recebo:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Eu tentei isso sem sorte: https://itsfoss.com/could-not-get-lock-error/comment-page-5/
No dia seguinte eu recebo:
E: dpkg foi interrompido, você deve executar manualmente 'sudo dpkg --configure -a' para corrigir o problema.
Executando: sudo dpkg --configure -a
Setting up snapd (2.37.1+18.10) ...
snapd.failure.service is a disabled or a static unit, not starting it.
snapd.snap-repair.service is a disabled or a static unit, not starting it.
systemctl status snapd.service
● snapd.service - Snappy daemon
Loaded: loaded (/lib/systemd/system/snapd.service; enabled; v
Active: deactivating (stop-sigterm) (Result: timeout)
Main PID: 22246 (snapd)
Tasks: 12 (limit: 4915)
Memory: 268.4M
CGroup: /system.slice/snapd.service
├─22246 /usr/lib/snapd/snapd
├─22319 apparmor_parser --replace --write-cache -O no
└─22320 apparmor_parser --replace --write-cache -O no
Feb 13 11:46:58 xxxx systemd[1]: Starting Snappy daemon...
Feb 13 11:46:58 xxxx snapd[22246]: AppArmor status: apparmor is
Feb 13 11:46:59 xxxx snapd[22246]: helpers.go:145: error trying
Feb 13 11:46:59 xxxx systemd[1]: snapd.service: Start operation
jornalctl -xe
-- Subject: Unit snapd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit snapd.service has finished shutting down.
Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
Feb 13 11:47:47 xxxx systemd[1]: Starting Snappy daemon...
Não consigo correr: sudo dpkg --configure -a
recebo:dpkg: error: dpkg frontend is locked by another process
lsof /var/lib/dpkg/lock
tudo está morto.
Acredito que tenha que reinstalar uma nova fechadura, não sei como fazer isso?
sudo touch /var/lib/dpkg/lock
não está funcionando.
Quando entro no meu domínio recebo:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.29 (Ubuntu) Server at www.mywebsite.net Port 443
No meu log de erros, encontrei isso:
/var/www/html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration, referer: https://www.google.lv/
Minha versão do PHP rodando php -v
PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
Eu tenho isso no meu .htaccess
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^165\.227\.175\.218$
RewriteRule ^(.*)$ http://www.mywebsite.net/$1 [L,R=301]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# Wordfence WAF
<IfModule mod_php7.c>
php_value auto_prepend_file '/var/www/html/mywebsite/public_html/wordfence-waf.php'
Em /var/www/html/mywebsite/public_html/wordfence-waf.php eu tenho isso:
<?php
// Before removing this file, please verify the PHP ini setting `auto_prepend_file` does not point to this.
if (file_exists('/var/www/html/mywebsite/public_html/wp-content/plugins /wordfence/waf/bootstrap.php')) {
define("WFWAF_LOG_PATH", '/var/www/html/mywebsite/public_html/wp-content /wflogs/');
include_once '/var/www/html/mywebsite/public_html/wp-content/plugins/wordfence/waf/bootstrap.php';
}
?>
Eu tentei:
sudo a2enmod rewrite && sudo service apache2 restart
/etc/host.conf: line 3: bad command `nospoof on'
Module rewrite already enabled
/etc/host.conf: line 3: bad command `nospoof on'
/usr/sbin/apache2 -V | grep MPM
[Tue Jan 08 12:05:13.506757 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_LOCK_DIR} is not defined
[Tue Jan 08 12:05:13.506990 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_PID_FILE} is not defined
[Tue Jan 08 12:05:13.507254 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_RUN_USER} is not defined
[Tue Jan 08 12:05:13.507358 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_RUN_GROUP} is not defined
[Tue Jan 08 12:05:13.507469 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_LOG_DIR} is not defined
[Tue Jan 08 12:05:13.514596 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_RUN_DIR} is not defined
[Tue Jan 08 12:05:13.515068 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_LOG_DIR} is not defined
Server MPM: prefork
Tentando ver se esse link pode me ajudar.
Eu corri: sudo apachectl -t
e consegui syntax ok
. Não posso executar sudo apache2 -X -f /etc/apache2/httpd.conf
porque não tenho um httpd.conf
arquivo. Se eu correr: service apachectl start
eu receboFailed to start apachectl.service: Unit apachectl.service not found.
Este é meu/etc/apache2/envvars
# envvars - default environment variables for apache2ctl
# this won't be correct after changing uid
unset HOME
# for supporting multiple apache2 instances
if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
else
SUFFIX=
fi
# Since there is no sane way to get the parsed apache2 config in scripts, some
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
# temporary state file location. This might be changed to /run in Wheezy 1
export APACHE_PID_FILE=/var/run/apache2$SUFFIX/apache2.pid
export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
# Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
## The locale used by some modules like mod_dav
export LANG=C
## Uncomment the following line to use the system default locale instead:
#. /etc/default/locale
export LANG
## The command to get the status for 'apache2ctl status'.
## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
#export APACHE_LYNX='www-browser -dump'
## If you need a higher file descriptor limit, uncomment and adjust the
## following line (default is 8192):
#APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'
## If you would like to pass arguments to the web server, add them below
## to the APACHE_ARGUMENTS environment.
#export APACHE_ARGUMENTS=''
## Enable the debug mode for maintainer scripts.
## This will produce a verbose output on package installations of web server modules and web application
## installations which interact with Apache
#export APACHE2_MAINTSCRIPT_DEBUG=1
Qualquer ajuda sobre como acessar meu site novamente será muito apreciada. Eu tenho acesso SSH via WinSCP e Putty.
Eu tenho Kubuntu 18.10 com KDE Plasma 5.14.4 em um laptop Lenovo.
Existe um widget de monitor de CPU mostrando a frequência da CPU em GHz?
Eu gostaria de um monitoramento ao vivo de um widget na bandeja do sistema em GHz.
Se possível, como fazer o Psensor mostrar a frequência da CPU em GHz ou similar?
Desejo monitorar a frequência da CPU em GHz da bandeja do sistema e não quero monitorar o uso da CPU em porcentagem como a duplicata.
Eu tenho o Ubuntu 18.10 com o ambiente KDE Plasma.
Ao instalar um novo programa:
Primeiro ele instala o programa e recebo esta mensagem:
2018/10/30 14:18:34.231310 main.go:150: description of advise-snap's
"from-apt" is lowercase: "advise-snap vil tale med apt via en apt-hook"
"vil tale med" é dinamarquês e significa "quero conversar/conectar".
Não consigo encontrar nada online.
Qualquer ajuda para resolver este problema será muito apreciada, obrigado!
Lenovo ideapad 320.
Eu preferiria corrigir esse problema por meio da GUI, mas uma correção do terminal também seria aceitável.
xinput --list --short
Eu tenho o receptor USB da Logitech
xinput --set-prop "Logitech USB Receiver" "Device Accel Constant Deceleration" 1.5
Warning: There are multiple devices matching 'Logitech USB Receiver'.
To ensure the correct one is selected, please use the device ID, or prefix the
device name with 'pointer:' or 'keyboard:' as appropriate.
Qual seria o código correto com "id9"? Ou correção de GUI?
Obrigado