AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / user-1001756

Crusty's questions

Martin Hope
Crusty
Asked: 2021-05-28 17:21:21 +0800 CST

vim: removendo várias linhas - d3d vs 3dd

  • 1

Eu estava conversando com meu amigo sobre a remoção de várias linhas ao usar o vim . Eles disseram que usam d3d para remover 3 linhas, enquanto eu uso 3dd

Eu entendo que meu comando é: 3 (repetir 3x) dd (excluir a linha inteira)

E o comando do meu amigo é da forma ["x]d{motion} ou seja, Excluir texto que {motion} move sobre [no registrador x].

No entanto, não acho que 3d seja um movimento válido. É isso?

Não entendo por que esse comando d3d funciona no vim

vim
  • 1 respostas
  • 72 Views
Martin Hope
Crusty
Asked: 2021-05-28 14:40:57 +0800 CST

gnome-shell: Erro ao carregar miniatura

  • 2

Eu estava verificando a saída do journalctl e vejo um grande número das seguintes entradas:

gnome-shell[5944]: Erro ao carregar miniatura: Erro: Largura do argumento: valor está fora do intervalo para gfloat

Parece ser alguns milhares em um curto período de tempo

$ uptime; sudo journalctl -b | grep thumbnail | wc -l
 10:37:23 up 19:36,  1 user,  load average: 0.89, 1.06, 1.21
2171
$

Meus pensamentos são que há uma miniatura em algum lugar que o gnome está tentando fazer referência que está corrompida de alguma forma - talvez a largura da miniatura esteja retornando um valor não flutuante?

Eu tentei deletar o seguinte diretório: ~/.cache/thumbnails Ele foi recriado quando eu abri o nautilus, naveguei para um diretório contendo imagens e mudei as visualizações para a visualização "show grid".

Isso não fez diferença.

Como posso identificar a qual miniatura isso se refere?


Editar 0:

$ ls -al ~/.local/share/gnome-shell/extensions
total 16
drwxrwxr-x 4 user user 4096 Mar 23 10:48 .
drwx------ 4 user user 4096 May 28 12:55 ..
drwxrwxr-x 8 user user 4096 Apr 13 10:21 [email protected]
drwxrwxr-x 4 user user 4096 Mar 11 13:19 [email protected]
$ 
$ ls -al /usr/share/gnome-shell/extensions
total 68
drwxr-xr-x 17 root root 4096 Nov 28  2019 .
drwxr-xr-x  7 root root 4096 Mar 17 15:16 ..
drwxr-xr-x  2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x  2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x  2 root root 4096 Jan 22 08:29 desktop-icons@csoriano
drwxr-xr-x  2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x  2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x  2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x  2 root root 4096 Jan 22 08:29 native-window-placement@gnome-shell-extensions.gcampax.github.com
drwxr-xr-x  2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x  2 root root 4096 Jan 22 08:29 screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com
drwxr-xr-x  3 root root 4096 Nov 19  2020 [email protected]
drwxr-xr-x  3 root root 4096 Nov 19  2020 [email protected]
drwxr-xr-x  2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x  2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x  2 root root 4096 Jan 22 08:29 [email protected]
drwxr-xr-x  2 root root 4096 Jan 22 08:29 [email protected]
$

saída do syslog (eu incluí apenas o syslog atual): https://paste.ubuntu.com/p/BmRbpMVK8B/


Edit 1: eu removi as extensões gsconnect e system-monitor e reiniciei. Eu vi uma diminuição notável nas mensagens de erro hoje:

$ sudo grep gnome-shell /var/log/syslog | grep thumbnail
May 31 08:43:52 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 08:43:52 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 08:43:52 pc gnome-shell[5787]: message repeated 6 times: [ Error while loading thumbnail: Error: Argument width: value is out of range for gfloat]
May 31 08:43:53 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 08:43:53 pc gnome-shell[5787]: message repeated 19 times: [ Error while loading thumbnail: Error: Argument width: value is out of range for gfloat]
May 31 09:41:45 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 09:41:45 pc gnome-shell[5787]: message repeated 13 times: [ Error while loading thumbnail: Error: Argument width: value is out of range for gfloat]
May 31 13:08:12 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 13:08:13 pc gnome-shell[5787]: message repeated 13 times: [ Error while loading thumbnail: Error: Argument width: value is out of range for gfloat]
May 31 14:36:49 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 14:36:49 pc gnome-shell[5787]: message repeated 13 times: [ Error while loading thumbnail: Error: Argument width: value is out of range for gfloat]
May 31 15:41:26 pc gnome-shell[5787]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
May 31 15:41:36 pc gnome-shell[5787]: message repeated 27 times: [ Error while loading thumbnail: Error: Argument width: value is out of range for gfloat]
$

Edição 2:

Agora só tenho as seguintes extensões habilitadas:

$ ls -al /usr/share/gnome-shell/extensions
total 20
drwxr-xr-x 5 root root 4096 May 31 16:03 .
drwxr-xr-x 7 root root 4096 Mar 17 15:16 ..
drwxr-xr-x 2 root root 4096 Jan 22 08:29 desktop-icons@csoriano
drwxr-xr-x 3 root root 4096 Nov 19  2020 [email protected]
drwxr-xr-x 3 root root 4096 Nov 19  2020 [email protected]
$
$ ls -al ~/.local/share/gnome-shell/extensions
total 8
drwxrwxr-x 2 user user 4096 May 28 17:17 .
drwx------ 4 user user 4096 Jun  1 09:10 ..
$

Eu reinstalei gnome-shell-extension-prefs e libdazzle-1.0-0 e reiniciei. A seguir estão os erros desde a inicialização:

$ uptime; sudo journalctl -b | grep thumbnail
 08:40:00 up 2 min,  1 user,  load average: 0.97, 0.66, 0.26
Jun 01 08:38:03 pc audit[2679]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-thumbnailer" pid=2679 comm="apparmor_parser"
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
Jun 01 08:38:35 pc gnome-shell[6136]: Error while loading thumbnail: Error: Argument width: value is out of range for gfloat
$

Edição 3:

Captura de tela do canto superior direito da área de trabalho: Captura de tela do canto superior direito da área de trabalho


Edição 4:

Então, porque eu removi todas as extensões além das principais e ainda estou recebendo erros de miniatura ao fazer login (ou seja, nem mesmo tendo feito nada), excluí todos os arquivos da minha área de trabalho (que incluíam algumas imagens), excluí ~/.local /thumbnails novamente e reiniciado

Não houve erros:

$ uptime; sudo journalctl -b | grep thumbnail
 09:50:25 up 35 min,  1 user,  load average: 0.78, 0.64, 0.51
Jun 01 09:15:06 cn-lat7490 audit[2668]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-thumbnailer" pid=2668 comm="apparmor_parser"
$

Mas também não há diretório de miniaturas:

$ ls -al ~/.cache/thumbnails/
ls: cannot access '/home/user/.cache/thumbnails/': No such file or directory
$

Então eu naveguei para o meu diretório de imagens no Nautilus para gerar algumas miniaturas e ainda não tenho erros

$ uptime; sudo journalctl -b | grep thumbnail; ls -al ~/.cache/thumbnails
 09:54:04 up 39 min,  1 user,  load average: 0.49, 0.57, 0.51
Jun 01 09:15:06 pc audit[2668]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-thumbnailer" pid=2668 comm="apparmor_parser"
total 12
drwx------  3 user user 4096 Jun  1 09:52 .
drwx------ 32 user user 4096 Jun  1 09:52 ..
drwx------  2 user user 4096 Jun  1 09:52 normal
$
gnome-shell
  • 1 respostas
  • 251 Views
Martin Hope
Crusty
Asked: 2019-10-03 18:57:07 +0800 CST

Devo remover o cloud-init assim que o servidor for criado

  • 2

Pelo que entendi, cloud-inittrata da inicialização antecipada de uma cloud/VMinstância. Eu tenho usado para ajudar a construir VMs KVM e funciona muito bem.

Um aspecto cloud-initque não entendo é o que acontece depois que é feita a criação inicial da instância.

  • Ele se desativa automaticamente para nunca mais ser executado?
  • Ele pode ser executado novamente em determinadas circunstâncias (por exemplo, em uma alteração para /etc/machine-id)? Tenho certeza de que o forcei a re-executar em algum momento executando

    sudo rm -rf  /var/lib/cloud/*
    
  • Ele foi projetado para que eu deva desinstalar cloud-initassim que minha instância for criada e entrar em produção ou cloud-initpermanecerá instalada (sem fazer nada) mesmo depois de instanciada?

server cloud-init
  • 1 respostas
  • 1512 Views

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve