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-115908

Jamie Hutber's questions

Martin Hope
Jamie Hutber
Asked: 2024-11-28 16:26:00 +0800 CST

Como criar um Symlink relativo enquanto estiver montado?

  • 5

Recentemente, eu brickei meu sistema devido ao checkinstall. Parece que tudo o que está faltando é minha pasta lib.

No entanto, tentei criar um link simbólico enquanto o sistema estava montado e obtive o seguinte link simbólico: lib -> /mnt/root/usr/lib/O problema que vejo com isso é que quando não montei o sistema, /mnt/rootesse link não existe... Como posso criá-lo para apontar para /usr/lib, é claro que isso sudo ln -s /usr/lib /libapenas criará um link para o sistema atual.

Estrutura atual

(base) hutber@hutber:/mnt/root$ ll
total 116
drwxr-xr-x  20 root root  4096 Nov 28 09:25 ./
drwxr-xr-x  13 root root  4096 Nov 28 09:10 ../
-rw-r--r--   1 root root     0 Aug 12 13:14 1
lrwxrwxrwx   1 root root     7 Feb  2  2024 bin -> usr/bin/
drwxr-xr-x   4 root root  4096 Nov 21 11:44 boot/
drwxr-xr-x   2 root root  4096 Feb  2  2024 cdrom/
drwxr-xr-x   2 root root  4096 Aug 12 13:15 .config/
drwxr-xr-x   4 root root  4096 Jan  9  2024 dev/
drwxr-xr-x 164 root root 12288 Nov 27 22:56 etc/
drwxr-xr-x   2 root root  4096 Feb  2  2024 home/
lrwxrwxrwx   1 root root    17 Nov 28 09:25 lib -> /mnt/root/usr/lib/
lrwxrwxrwx   1 root root     9 Jan  9  2024 lib64 -> usr/lib64/
drwx------   2 root root 16384 Feb  2  2024 lost+found/
drwxr-xr-x   3 root root  4096 Feb  2  2024 media/
drwxr-xr-x   4 root root  4096 Feb 14  2024 mnt/
drwxr-xr-x  16 root root  4096 Sep 19 13:30 opt/
drwxr-xr-x   2 root root  4096 Jan  9  2024 proc/
drwx------  13 root root  4096 Oct  8 13:00 root/
drwxr-xr-x  14 root root  4096 Feb  2  2024 run/
lrwxrwxrwx   1 root root     8 Feb  2  2024 sbin -> usr/sbin/
drwxr-xr-x   2 root root  4096 Jan  9  2024 srv/
drwxr-xr-x   2 root root  4096 Apr 18  2022 sys/
drwxrwxrwt  49 root root 20480 Nov 27 23:01 tmp/
drwxr-xr-x  13 root root  4096 Apr 11  2024 usr/
drwxr-xr-x  12 root root  4096 Feb 14  2024 var/
mount
  • 1 respostas
  • 18 Views
Martin Hope
Jamie Hutber
Asked: 2024-02-15 05:35:42 +0800 CST

A dependência não é satisfatória: libgtk2-perl

  • 5

Estou tentando instalar o gmusicbrowser no Ubuntu 22.04, mas infelizmente estou recebendo os erros abaixo.

Tenho sudo apt install libglib2.0-devuma esperança cega de que ele possa instalar o Perl, mas não tive essa sorte.

sudo gdebi /mnt/nas/Downloads/gmusicbrowser_1.1.16_all.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libgtk2-perl
apt
  • 1 respostas
  • 45 Views
Martin Hope
Jamie Hutber
Asked: 2023-05-16 22:48:57 +0800 CST

libXdamage.so.1: não é possível abrir o arquivo de objeto compartilhado: esse arquivo ou diretório não existe

  • 4

Estou tentando abrir o QfindPro para descobrir o endereço IP do meu nas.

(base) hutber@hutber:~$ /usr/local/bin/QNAP/QfinderPro/QfinderPro.sh
/usr/local/bin/QNAP/QfinderPro/QfinderPro: error while loading shared libraries: libXdamage.so.1: cannot open shared object file: No such file or directory

(base) hutber@hutber:~$ sudo apt-get install libxdamage1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libxdamage1 is already the newest version (1:1.1.5-2).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

Estou confuso como ele pode ser instalado, mas não encontrado?

(base) hutber@hutber:~$ ldd /usr/local/bin/QNAP/QfinderPro/QfinderPro
    linux-gate.so.1 (0xf7ed7000)
    libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf7e96000)
    libQt5WebEngineWidgets.so.5 => /usr/local/lib/QNAP/QfinderPro/libQt5WebEngineWidgets.so.5 (0xf7e68000)
    libQt5Widgets.so.5 => /usr/local/lib/QNAP/QfinderPro/libQt5Widgets.so.5 (0xf772d000)
    libQt5Gui.so.5 => /usr/local/lib/QNAP/QfinderPro/libQt5Gui.so.5 (0xf707a000)
    libQt5Xml.so.5 => /usr/local/lib/QNAP/QfinderPro/libQt5Xml.so.5 (0xf7037000)
    libQt5Network.so.5 => /usr/local/lib/QNAP/QfinderPro/libQt5Network.so.5 (0xf6ea5000)
    libQt5Core.so.5 => /usr/local/lib/QNAP/QfinderPro/libQt5Core.so.5 (0xf695c000)
    libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf6939000)
    libstdc++.so.6 => /lib/i386-linux-gnu/libstdc++.so.6 (0xf675a000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf6655000)
    libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf6634000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf6445000)
    libQt5WebEngine.so.5 => /usr/local/lib/QNAP/QfinderPro/libQt5WebEngine.so.5 (0xf6408000)
    libQt5Quick.so.5 => /usr/local/lib/QNAP/QfinderPro/libQt5Quick.so.5 (0xf5fe5000)
    libQt5Qml.so.5 => /usr/local/lib/QNAP/QfinderPro/libQt5Qml.so.5 (0xf5b51000)
    libQt5WebEngineCore.so.5 => /usr/local/lib/QNAP/QfinderPro/libQt5WebEngineCore.so.5 (0xf1120000)
    libQt5WebChannel.so.5 => /usr/local/lib/QNAP/QfinderPro/libQt5WebChannel.so.5 (0xf1100000)
    libQt5Positioning.so.5 => /usr/local/lib/QNAP/QfinderPro/libQt5Positioning.so.5 (0xf10ba000)
    libGL.so.1 => /lib/i386-linux-gnu/libGL.so.1 (0xf104d000)
    libgobject-2.0.so.0 => /lib/i386-linux-gnu/libgobject-2.0.so.0 (0xf0fdd000)
    libgthread-2.0.so.0 => /lib/i386-linux-gnu/libgthread-2.0.so.0 (0xf0fd6000)
    librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf0fca000)
    libglib-2.0.so.0 => /lib/i386-linux-gnu/libglib-2.0.so.0 (0xf0e88000)
    libXext.so.6 => /lib/i386-linux-gnu/libXext.so.6 (0xf0e71000)
    libX11.so.6 => /lib/i386-linux-gnu/libX11.so.6 (0xf0d22000)
    libicui18n.so.54 => /usr/local/lib/QNAP/QfinderPro/libicui18n.so.54 (0xf0aa9000)
    libicuuc.so.54 => /usr/local/lib/QNAP/QfinderPro/libicuuc.so.54 (0xf0901000)
    libicudata.so.54 => /usr/local/lib/QNAP/QfinderPro/libicudata.so.54 (0xef0d6000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xef0d0000)
    /lib/ld-linux.so.2 (0xf7ed9000)
    libsmime3.so => /lib/i386-linux-gnu/libsmime3.so (0xef099000)
    libnss3.so => /lib/i386-linux-gnu/libnss3.so (0xeef0f000)
    libnssutil3.so => /lib/i386-linux-gnu/libnssutil3.so (0xeeee1000)
    libplc4.so => /lib/i386-linux-gnu/libplc4.so (0xeeeda000)
    libnspr4.so => /lib/i386-linux-gnu/libnspr4.so (0xeee95000)
    libfontconfig.so.1 => /lib/i386-linux-gnu/libfontconfig.so.1 (0xeee47000)
    libfreetype.so.6 => /lib/i386-linux-gnu/libfreetype.so.6 (0xeed81000)
    libXi.so.6 => /lib/i386-linux-gnu/libXi.so.6 (0xeed6c000)
    libXcursor.so.1 => /lib/i386-linux-gnu/libXcursor.so.1 (0xeed5f000)
    libXfixes.so.3 => /lib/i386-linux-gnu/libXfixes.so.3 (0xeed57000)
    libXrender.so.1 => /lib/i386-linux-gnu/libXrender.so.1 (0xeed4b000)
    libXcomposite.so.1 => /lib/i386-linux-gnu/libXcomposite.so.1 (0xeed44000)
    libasound.so.2 => /lib/i386-linux-gnu/libasound.so.2 (0xeec2e000)
    libXdamage.so.1 => not found
    libXtst.so.6 => /lib/i386-linux-gnu/libXtst.so.6 (0xeec26000)
    libXrandr.so.2 => /lib/i386-linux-gnu/libXrandr.so.2 (0xeec17000)
    libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xeebea000)
    libdbus-1.so.3 => /lib/i386-linux-gnu/libdbus-1.so.3 (0xeeb8c000)
    libcap.so.2 => /lib/i386-linux-gnu/libcap.so.2 (0xeeb83000)
    libGLdispatch.so.0 => /lib/i386-linux-gnu/libGLdispatch.so.0 (0xeeb06000)
    libGLX.so.0 => /lib/i386-linux-gnu/libGLX.so.0 (0xeeaca000)
    libffi.so.7 => /lib/i386-linux-gnu/libffi.so.7 (0xeeabe000)
    libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xeea47000)
    libxcb.so.1 => /lib/i386-linux-gnu/libxcb.so.1 (0xeea18000)
    libplds4.so => /lib/i386-linux-gnu/libplds4.so (0xeea13000)
    libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xeea09000)
    libpng16.so.16 => /lib/i386-linux-gnu/libpng16.so.16 (0xee9ca000)
    libsystemd.so.0 => /lib/i386-linux-gnu/libsystemd.so.0 (0xee90e000)
    libXau.so.6 => /lib/i386-linux-gnu/libXau.so.6 (0xee908000)
    libXdmcp.so.6 => /lib/i386-linux-gnu/libXdmcp.so.6 (0xee900000)
    liblzma.so.5 => /lib/i386-linux-gnu/liblzma.so.5 (0xee8d2000)
    liblz4.so.1 => /lib/i386-linux-gnu/liblz4.so.1 (0xee8af000)
    libgcrypt.so.20 => /lib/i386-linux-gnu/libgcrypt.so.20 (0xee7cc000)
    libbsd.so.0 => /lib/i386-linux-gnu/libbsd.so.0 (0xee7ad000)
    libgpg-error.so.0 => /lib/i386-linux-gnu/libgpg-error.so.0 (0xee787000)
apt
  • 1 respostas
  • 46 Views
Martin Hope
Jamie Hutber
Asked: 2022-10-06 05:27:35 +0800 CST

Limpar ou remover sugerindo remover XXX pacotes não relacionados [duplicado]

  • 0
Essa pergunta já tem resposta aqui :
Posso remover algumas versões do python? [fechado] (1 resposta)
Fechado há 11 dias .

Estou tentando remover o python, mas me disseram que ele removerá quase todos os meus pacotes instalados (exagero). Como posso remover o python 3.8 e não todos os outros pacotes?

hutber@hutber:/var/www$ sudo apt-get purge python3.8
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libexpat1-dev libgsf-bin libmspack0 libpython3-dev libpython3.8-dev libxmlsec1-openssl python-pip-whl zerofree zlib1g-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libutempter0 xterm
Suggested packages:
  xfonts-cyrillic
The following packages will be REMOVED:
  apparmor* apt-clone* aptdaemon* apturl* apturl-common* blueberry* bulky* caribou* celluloid* cinnamon* cinnamon-common* cinnamon-control-center* cinnamon-control-center-dbg*
  cinnamon-dbg* cinnamon-desktop-data* cinnamon-screensaver* cinnamon-session* cinnamon-settings-daemon* command-not-found* dkms* drawing* firefox* foomatic-db-compressed-ppds*
  gdebi* gdebi-core* gir1.2-cinnamondesktop-3.0* gir1.2-meta-muffin-0.0* gir1.2-xapp-1.0* gnome-menus* gnome-online-accounts* gnome-terminal* gufw* gvfs-backends* hplip*
  hplip-data* hypnotix* libcinnamon-desktop-dbg* libcinnamon-desktop4* libmpv1* libsmbclient* libxapp1* lightdm-settings* lsb-release* mint-common* mint-meta-cinnamon*
  mint-meta-core* mintbackup* mintdrivers* mintinstall* mintlocale* mintmenu* mintreport* mintsources* mintstick* mintsystem* mintupdate* mintwelcome* nemo* nemo-data*
  nemo-dbg* nemo-fileroller* nemo-preview* nemo-share* netplan.io* network-manager-gnome* networkd-dispatcher* nvidia-prime-applet* onboard* onboard-common* open-vm-tools*
  open-vm-tools-desktop* openprinting-ppds* orca* pix* pix-dbg* plymouth-theme-ubuntu-text* printer-driver-foo2zjs* printer-driver-foo2zjs-common* printer-driver-m2300w*
  printer-driver-postscript-hp* printer-driver-ptouch* printer-driver-pxljr* printer-driver-sag-gdi* python3* python3-apport* python3-apt* python3-aptdaemon*
  python3-aptdaemon.gtk3widgets* python3-blinker* python3-brlapi* python3-bs4* python3-cairo* python3-certifi* python3-cffi-backend* python3-chardet* python3-click*
  python3-colorama* python3-commandnotfound* python3-configobj* python3-crypto* python3-cryptography* python3-cups* python3-cupshelpers* python3-dbus* python3-debian*
  python3-defer* python3-dev* python3-distro* python3-distutils* python3-entrypoints* python3-gdbm* python3-gi* python3-gi-cairo* python3-grpcio* python3-httplib2* python3-icu*
  python3-idna* python3-ifaddr* python3-imdbpy* python3-jwt* python3-keyring* python3-launchpadlib* python3-lazr.restfulclient* python3-lazr.uri* python3-ldb* python3-lib2to3*
  python3-linecache2* python3-louis* python3-macaroonbakery* python3-magic* python3-mako* python3-markupsafe* python3-nacl* python3-netaddr* python3-netifaces*
  python3-oauthlib* python3-packaging* python3-pam* python3-parted* python3-pbr* python3-pexpect* python3-pil* python3-pip* python3-pkg-resources* python3-problem-report*
  python3-protobuf* python3-psutil* python3-ptyprocess* python3-pyatspi* python3-pycurl* python3-pyinotify* python3-pymacaroons* python3-pyparsing* python3-reportlab*
  python3-reportlab-accel* python3-requests* python3-requests-file* python3-requests-unixsocket* python3-rfc3339* python3-samba* python3-secretstorage* python3-setproctitle*
  python3-setuptools* python3-simplejson* python3-six* python3-soupsieve* python3-speechd* python3-systemd* python3-talloc* python3-tdb* python3-testresources*
  python3-tinycss2* python3-tldextract* python3-traceback2* python3-tz* python3-unidecode* python3-unittest2* python3-uno* python3-urllib3* python3-wadllib*
  python3-webencodings* python3-wheel* python3-xapp* python3-xdg* python3-xkit* python3-xlib* python3-xlrd* python3-yaml* python3.8* python3.8-dev* redshift-gtk*
  rhythmbox-plugin-tray-icon* rhythmbox-plugins* samba-common-bin* samba-libs* slick-greeter* smbclient* sticky* synaptic* system-config-printer* system-config-printer-common*
  system-config-printer-udev* thingy* timeshift* ubuntu-drivers-common* ubuntu-system-adjustments* ufw* warpinator* webapp-manager* xapps-common* xed* xed-dbg* xfsprogs* xorg*
  xreader* xreader-dbg* xserver-xorg* xviewer* xviewer-dbg* xviewer-plugins* yelp* youtube-dl*
The following NEW packages will be installed:
  libutempter0 xterm
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  mintsources python3-apt (due to mintsources) python3-gi (due to mintsources) python3-gi-cairo (due to mintsources) python3-pycurl (due to mintsources)
  python3-requests (due to mintsources) mint-common (due to mintsources) gir1.2-xapp-1.0 (due to mintsources) lsb-release (due to mintsources)
0 upgraded, 2 newly installed, 222 to remove and 7 not upgraded.
Need to get 773 kB of archives.
After this operation, 512 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] ^C
apt
  • 1 respostas
  • 358 Views
Martin Hope
Jamie Hutber
Asked: 2022-04-14 02:50:16 +0800 CST

Qual é o nome deste programa que mostra vários resultados ao usar a pesquisa reversa no terminal?

  • 1

No meu servidor Ubuntu 20.04, instalei habilmente este programa de pesquisa reversa ... mas não tenho ideia de como é chamado!

captura de tela do programa desconhecido

Ser capaz de ver facilmente várias opções ao percorrer o histórico da linha de comando (pressionando Ctrl+ R) é bom, então gostaria de saber o nome do programa.

command-line
  • 1 respostas
  • 87 Views
Martin Hope
Jamie Hutber
Asked: 2022-04-07 05:39:43 +0800 CST

Rede sem fio não aparece com cartão iwlwifi

  • 0

Eu tenho um cartão iwlwifi embutido na minha placa -mãe . Eu posso ver o cartão, embora ele seja exibido como um cartão ethernet?

hutber@hutber:~$ lspci -nnk | grep 0280 -A3
00:14.3 Network controller [0280]: Intel Corporation Device [8086:7af0] (rev 11)
    DeviceName: Onboard - Ethernet
    Subsystem: Intel Corporation Device [8086:0094]
    Kernel modules: iwlwifi

No entanto, ao verificar se está funcionando corretamente, certamente reclama do firmware:

hutber@hutber:~$ dmesg | grep iwl
[    9.236975] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
[    9.238500] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-63.ucode failed with error -2
[    9.238598] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-62.ucode failed with error -2
[    9.238694] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-61.ucode failed with error -2
[    9.238710] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-60.ucode failed with error -2
[    9.238725] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-59.ucode failed with error -2
[    9.238738] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-58.ucode failed with error -2
[    9.238750] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-57.ucode failed with error -2
[    9.238902] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-56.ucode failed with error -2
[    9.238991] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-55.ucode failed with error -2
[    9.239005] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-54.ucode failed with error -2
[    9.239017] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-53.ucode failed with error -2
[    9.239031] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-52.ucode failed with error -2
[    9.239044] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-51.ucode failed with error -2
[    9.239148] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-50.ucode failed with error -2
[    9.239161] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-49.ucode failed with error -2
[    9.239173] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-48.ucode failed with error -2
[    9.239186] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-47.ucode failed with error -2
[    9.239197] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-46.ucode failed with error -2
[    9.239212] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-45.ucode failed with error -2
[    9.239225] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-44.ucode failed with error -2
[    9.239234] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-43.ucode failed with error -2
[    9.239246] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-42.ucode failed with error -2
[    9.239258] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-41.ucode failed with error -2
[    9.239269] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-40.ucode failed with error -2
[    9.239281] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-39.ucode failed with error -2
[    9.239282] iwlwifi 0000:00:14.3: no suitable firmware found!
[    9.239300] iwlwifi 0000:00:14.3: minimum version required: iwlwifi-so-a0-gf-a0-39
[    9.239319] iwlwifi 0000:00:14.3: maximum version supported: iwlwifi-so-a0-gf-a0-63
[    9.239338] iwlwifi 0000:00:14.3: check git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

Então, tentei instalar sudo apt install backport-iwlwifi-dkms , mas fui esbofeteado pelos cães do computador por fotografar no escuro:

hutber@hutber:~$ sudo apt install backport-iwlwifi-dkms
[sudo] password for hutber:  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-105 linux-headers-5.4.0-105-generic linux-image-5.4.0-105-generic linux-modules-5.4.0-105-generic
  linux-modules-extra-5.4.0-105-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed
  backport-iwlwifi-dkms
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 1,568 kB of archives.
After this operation, 10.0 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 backport-iwlwifi-dkms all 8324-0ubuntu3~20.04.4 [1,568 kB]
Fetched 1,568 kB in 1s (2,130 kB/s)                
Selecting previously unselected package backport-iwlwifi-dkms.
(Reading database ... 509974 files and directories currently installed.)
Preparing to unpack .../backport-iwlwifi-dkms_8324-0ubuntu3~20.04.4_all.deb ...
Unpacking backport-iwlwifi-dkms (8324-0ubuntu3~20.04.4) ...
Setting up backport-iwlwifi-dkms (8324-0ubuntu3~20.04.4) ...
Loading new backport-iwlwifi-8324 DKMS files...
Building for 5.13.0-39-generic
Building initial module for 5.13.0-39-generic
Error!  The /var/lib/dkms/backport-iwlwifi/8324/5.13.0-39-generic/x86_64/dkms.conf for module backport-iwlwifi includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.
Skipped.

Estou executando o Ubuntu 20.04 com kernel 5.13.0-39

drivers
  • 1 respostas
  • 1393 Views
Martin Hope
Jamie Hutber
Asked: 2022-01-13 14:39:17 +0800 CST

Arquivos com data "Desconhecida", mas arquivos com data de criação nos metadados

  • 4

Estou bastante confuso porque nemo está relatando que alguns arquivos não têm data definida. O que significa que não posso ordenar meus arquivos por data. Isso só está acontecendo com meus vídeos GoPro que vou adicionar. Mas ao verificar posso ver que Media Create Dateé realmente o momento correto da gravação.

Como faço para que a data correta seja mostrada no nemo e no bash ao classificar arquivos para meus scripts:

insira a descrição da imagem aqui

Data desconhecida

(base) hutber@hutber:/media/hutber/3834-3762/DCIM/100GOPRO$ exiftool GX055351.MP4
ExifTool Version Number         : 11.88
File Name                       : GX055351.MP4
Directory                       : .
File Size                       : 3.7 GB
File Modification Date/Time     : 0000:00:00 00:00:00
File Access Date/Time           : 2022:01:12 22:32:31+00:00
File Inode Change Date/Time     : 0000:00:00 00:00:00
File Permissions                : rwxrwxrwx
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
Major Brand                     : MP4 v1 [ISO 14496-1:ch13]
Minor Version                   : 2013.10.18
Compatible Brands               : mp41
Media Data Size                 : 4004174743
Media Data Offset               : 36
Movie Header Version            : 0
Create Date                     : 2022:01:11 19:08:56
Modify Date                     : 2022:01:11 19:08:56
Time Scale                      : 120000
Duration                        : 0:05:21
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 5
Lens Serial Number              : LKO1062003401692
Camera Serial Number Hash       : 9ea9a8bdbd36f956eaa1b923d1cf581e
Firmware Version                : H21.01.01.16.00
Camera Serial Number            : C3461324767792
Camera Model Name               : HERO10 Black
Auto Rotation                   : Down
Digital Zoom                    : No
Pro Tune                        : On
White Balance                   : AUTO
Sharpness                       : MED
Color Mode                      : NATURAL
Auto ISO Max                    : 1600
Auto ISO Min                    : 100
Exposure Compensation           : 0.0
Rate                            : 
Field Of View                   : Unknown (N)
Electronic Image Stabilization  : HS Boost
Audio Setting                   : AUTO
Device Name                     : Highlights
Track Header Version            : 0
Track Create Date               : 2022:01:11 19:08:56
Track Modify Date               : 2022:01:11 19:08:56
Track ID                        : 1
Track Duration                  : 0:05:21
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 3840
Image Height                    : 2160
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : hvc1
Source Image Width              : 3840
Source Image Height             : 2160
X Resolution                    : 72
Y Resolution                    : 72
Compressor Name                 : GoPro H.265 encoder
Bit Depth                       : 24
Video Frame Rate                : 119.88
Time Code                       : 3
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 24
Audio Sample Rate               : 48000
Text Font                       : Unknown (21)
Text Face                       : Plain
Text Size                       : 10
Text Color                      : 0 0 0
Background Color                : 65535 65535 65535
Font Name                       : Helvetica
Other Format                    : tmcd
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2022:01:11 19:08:56
Media Modify Date               : 2022:01:11 19:08:56
Media Time Scale                : 1000
Media Duration                  : 0:05:21
Handler Class                   : Media Handler
Handler Type                    : NRT Metadata
Handler Description             : GoPro MET
Gen Media Version               : 0
Gen Flags                       : 0 0 0
Gen Graphics Mode               : srcCopy
Gen Op Color                    : 0 0 0
Gen Balance                     : 0
Meta Format                     : gpmd
Warning                         : [minor] The ExtractEmbedded option may find more tags in the media data
Image Size                      : 3840x2160
Megapixels                      : 8.3
Avg Bitrate                     : 99.7 Mbps
Rotation                        : 180

A mesma sessão de gravação, mas a data correta

(base) hutber@hutber:/media/hutber/3834-3762/DCIM/100GOPRO$ exiftool GX075351.MP4
ExifTool Version Number         : 11.88
File Name                       : GX075351.MP4
Directory                       : .
File Size                       : 3.7 GB
File Modification Date/Time     : 2022:01:11 19:46:27+00:00
File Access Date/Time           : 2022:01:12 22:32:33+00:00
File Inode Change Date/Time     : 2022:01:11 19:46:27+00:00
File Permissions                : rwxrwxrwx
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
Major Brand                     : MP4 v1 [ISO 14496-1:ch13]
Minor Version                   : 2013.10.18
Compatible Brands               : mp41
Media Data Size                 : 4004313141
Media Data Offset               : 36
Movie Header Version            : 0
Create Date                     : 2022:01:11 19:08:56
Modify Date                     : 2022:01:11 19:08:56
Time Scale                      : 120000
Duration                        : 0:05:21
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 5
Lens Serial Number              : LKO1062003401692
Camera Serial Number Hash       : 9ea9a8bdbd36f956eaa1b923d1cf581e
Firmware Version                : H21.01.01.16.00
Camera Serial Number            : C3461324767792
Camera Model Name               : HERO10 Black
Auto Rotation                   : Down
Digital Zoom                    : No
Pro Tune                        : On
White Balance                   : AUTO
Sharpness                       : MED
Color Mode                      : NATURAL
Auto ISO Max                    : 1600
Auto ISO Min                    : 100
Exposure Compensation           : 0.0
Rate                            : 
Field Of View                   : Unknown (N)
Electronic Image Stabilization  : HS Boost
Audio Setting                   : AUTO
Device Name                     : Highlights
Track Header Version            : 0
Track Create Date               : 2022:01:11 19:08:56
Track Modify Date               : 2022:01:11 19:08:56
Track ID                        : 1
Track Duration                  : 0:05:21
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 3840
Image Height                    : 2160
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : hvc1
Source Image Width              : 3840
Source Image Height             : 2160
X Resolution                    : 72
Y Resolution                    : 72
Compressor Name                 : GoPro H.265 encoder
Bit Depth                       : 24
Video Frame Rate                : 119.88
Time Code                       : 3
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 24
Audio Sample Rate               : 48000
Text Font                       : Unknown (21)
Text Face                       : Plain
Text Size                       : 10
Text Color                      : 0 0 0
Background Color                : 65535 65535 65535
Font Name                       : Helvetica
Other Format                    : tmcd
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2022:01:11 19:08:56
Media Modify Date               : 2022:01:11 19:08:56
Media Time Scale                : 1000
Media Duration                  : 0:05:21
Handler Class                   : Media Handler
Handler Type                    : NRT Metadata
Handler Description             : GoPro MET
Gen Media Version               : 0
Gen Flags                       : 0 0 0
Gen Graphics Mode               : srcCopy
Gen Op Color                    : 0 0 0
Gen Balance                     : 0
Meta Format                     : gpmd
Warning                         : [minor] The ExtractEmbedded option may find more tags in the media data
Image Size                      : 3840x2160
Megapixels                      : 8.3
Avg Bitrate                     : 99.7 Mbps
Rotation                        : 180

Estatística do arquivo quebrado:

14_Training$ stat ./GX055351.MP4
  File: ./GX055351.MP4
  Size: 4004635826  Blocks: 7821560    IO Block: 4096   regular file
Device: 821h/2081d  Inode: 19475       Links: 1
Access: (0777/-rwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-01-12 23:32:35.441047700 +0000
Modify: 1970-01-01 01:00:00.000000000 +0100
Change: 2022-01-12 23:32:33.504918500 +0000
 Birth: -
video
  • 1 respostas
  • 188 Views
Martin Hope
Jamie Hutber
Asked: 2021-09-27 01:23:42 +0800 CST

Usando ffmpeg para cortar vídeo em vários pontos

  • 1

Eu tenho um vídeo que é um jogo de futebol. Eu gostaria de cortar o tempo e before the game, during half timefinalmente, o fim do jogo.

Comprimento Total do Clipe 1h 51mou111m

Idealmente, os cortes e o tempo são os seguintes:

+------------+-------------+---------------------+
| Start Time | Finish Time |    Clip Duration    |
+------------+-------------+---------------------+
| 1:30       |   47:30     |  47:30              |
| 53:00      |   100:00    |  47                 |
+------------+-------------+---------------------+

No entanto, meu vídeo termina em

ffmpeg -ss 00:01:30 -i Tripod_Camera.mp4 -t 00:47:30 -ss 00:53:00 -t 00:47:00 -c copy VideoClip.mp4
video
  • 2 respostas
  • 713 Views
Martin Hope
Jamie Hutber
Asked: 2021-08-09 07:04:54 +0800 CST

Falha ao abrir necessário 'PhpMyAdmin/MoTranslator/autoload.php'

  • 0

Eu tenho uma nova instalação do 20.04, php 7e acabei de executar apt install phpmyadmintodos os procedimentos e agora ao navegar para localhost/phpmyadminestou vendo:

[Sun Aug 08 14:51:58.410439 2021] [php7:warn] [pid 84550] [client 93.115.195.232:6537] PHP Warning:  require_once(PhpMyAdmin/MoTranslator/autoload.php): failed to open stream: No such file or directory in /usr/share/phpmyadmin/autoload.php on line 2
[Sun Aug 08 14:51:58.410486 2021] [php7:error] [pid 84550] [client 93.115.195.232:6537] PHP Fatal error:  require_once(): Failed opening required 'PhpMyAdmin/MoTranslator/autoload.php' (include_path='/usr/share/phpmyadmin') in /usr/share/phpmyadmin/autoload.php on line 2

Esta é a autoload.phpaparência do meu arquivo:

<?php
require_once 'PhpMyAdmin/MoTranslator/autoload.php';
require_once 'PhpMyAdmin/ShapeFile/autoload.php';
require_once 'PhpMyAdmin/SqlParser/autoload.php';
require_once 'Symfony/Component/ExpressionLanguage/autoload.php';
require_once 'phpseclib/autoload.php';
require_once 'Twig/autoload.php';
require_once 'Twig-Extensions/autoload.php';
require_once 'ReCaptcha/autoload.php';
require_once 'Psr/Container/autoload.php';
@include_once 'tcpdf/tcpdf.php';

Eu abertamente não tenho idéia PhpMyAdminde quais referências?

-rw-r--r--   1 root root  1560 Mar 21  2020 ajax.php
-rw-r--r--   1 root root 44058 Aug  8 15:02 autoload.php
-rw-r--r--   1 root root  1750 Mar 21  2020 browse_foreigners.php
-rw-r--r--   1 root root  3194 Mar 21  2020 changelog.php
-rw-r--r--   1 root root   856 Mar 21  2020 chk_rel.php
-rw-r--r--   1 root root  4516 Mar 21  2020 config.sample.inc.php
-rw-r--r--   1 root root  5674 Mar 21  2020 db_central_columns.php
-rw-r--r--   1 root root  5878 Mar 21  2020 db_datadict.php
-rw-r--r--   1 root root  7706 Mar 21  2020 db_designer.php
-rw-r--r--   1 root root   271 Mar 21  2020 db_events.php
-rw-r--r--   1 root root  4631 Mar 21  2020 db_export.php
-rw-r--r--   1 root root   899 Mar 21  2020 db_import.php
-rw-r--r--   1 root root  1038 Mar 21  2020 db_multi_table_query.php
-rw-r--r--   1 root root  9860 Mar 21  2020 db_operations.php
-rw-r--r--   1 root root  4859 Mar 21  2020 db_qbe.php
-rw-r--r--   1 root root   365 Mar 21  2020 db_routines.php
-rw-r--r--   1 root root  1997 Mar 21  2020 db_search.php
-rw-r--r--   1 root root   746 Mar 21  2020 db_sql_autocomplete.php
-rw-r--r--   1 root root   485 Mar 21  2020 db_sql_format.php
-rw-r--r--   1 root root   952 Mar 21  2020 db_sql.php
-rw-r--r--   1 root root  1011 Mar 21  2020 db_structure.php
-rw-r--r--   1 root root  4415 Mar 21  2020 db_tracking.php
-rw-r--r--   1 root root   273 Mar 21  2020 db_triggers.php
drwxr-xr-x   2 root root  4096 Aug  8 14:50 doc/
-rw-r--r--   1 root root  4608 Mar 21  2020 error_report.php
-rw-r--r--   1 root root 15919 Mar 21  2020 export.php
-rw-r--r--   1 root root 22486 Mar 21  2020 favicon.ico
-rw-r--r--   1 root root 15984 Mar 21  2020 gis_data_editor.php
-rw-r--r--   1 root root 23976 Mar 21  2020 import.php
-rw-r--r--   1 root root  3463 Mar 21  2020 import_status.php
-rw-r--r--   1 root root 20259 Mar 21  2020 index.php
drwxr-xr-x   7 root root  4096 Aug  8 14:50 js/
drwxr-xr-x   6 root root  4096 Aug  8 14:50 libraries/
-rw-r--r--   1 root root   894 Mar 21  2020 license.php
-rw-r--r--   1 root root  1430 Mar 21  2020 lint.php
drwxr-xr-x  47 root root  4096 Aug  8 14:50 locale/
-rw-r--r--   1 root root   311 Mar 21  2020 logout.php
-rw-r--r--   1 root root  2309 Mar 21  2020 navigation.php
-rw-r--r--   1 root root  4143 Mar 21  2020 normalization.php
-rw-r--r--   1 root root   507 Mar 21  2020 phpinfo.php
-rw-r--r--   1 root root   740 Mar 21  2020 phpmyadmin.css.php
-rw-r--r--   1 root root  2493 Mar 21  2020 prefs_forms.php
-rw-r--r--   1 root root 14356 Mar 21  2020 prefs_manage.php
-rw-r--r--   1 root root  1594 Mar 21  2020 prefs_twofactor.php
-rw-r--r--   1 root root  1213 Mar 21  2020 print.css
-rw-r--r--   1 root root   653 Mar 21  2020 schema_export.php
-rw-r--r--   1 root root   785 Mar 21  2020 server_binlog.php
-rw-r--r--   1 root root   818 Mar 21  2020 server_collations.php
-rw-r--r--   1 root root   798 Mar 21  2020 server_databases.php
-rw-r--r--   1 root root   784 Mar 21  2020 server_engines.php
-rw-r--r--   1 root root  1085 Mar 21  2020 server_export.php
-rw-r--r--   1 root root   634 Mar 21  2020 server_import.php
-rw-r--r--   1 root root   784 Mar 21  2020 server_plugins.php
-rw-r--r--   1 root root 14184 Mar 21  2020 server_privileges.php
-rw-r--r--   1 root root  2432 Mar 21  2020 server_replication.php
-rw-r--r--   1 root root   698 Mar 21  2020 server_sql.php
-rw-r--r--   1 root root   862 Mar 21  2020 server_status_advisor.php
-rw-r--r--   1 root root  2962 Mar 21  2020 server_status_monitor.php
-rw-r--r--   1 root root   897 Mar 21  2020 server_status.php
-rw-r--r--   1 root root  1879 Mar 21  2020 server_status_processes.php
-rw-r--r--   1 root root  1423 Mar 21  2020 server_status_queries.php
-rw-r--r--   1 root root  1562 Mar 21  2020 server_status_variables.php
-rw-r--r--   1 root root  1872 Mar 21  2020 server_user_groups.php
-rw-r--r--   1 root root   798 Mar 21  2020 server_variables.php
-rw-r--r--   1 root root  1089 Mar 21  2020 show_config_errors.php
drwxr-xr-x   2 root root  4096 Aug  8 14:50 sql/
-rw-r--r--   1 root root  6352 Mar 21  2020 sql.php
-rw-r--r--   1 root root  3754 Mar 21  2020 tbl_addfield.php
-rw-r--r--   1 root root  6334 Mar 21  2020 tbl_change.php
-rw-r--r--   1 root root   972 Mar 21  2020 tbl_chart.php
-rw-r--r--   1 root root  3365 Mar 21  2020 tbl_create.php
-rw-r--r--   1 root root  2431 Mar 21  2020 tbl_export.php
-rw-r--r--   1 root root   999 Mar 21  2020 tbl_find_replace.php
-rw-r--r--   1 root root  1763 Mar 21  2020 tbl_get_field.php
-rw-r--r--   1 root root  1540 Mar 21  2020 tbl_gis_visualization.php
-rw-r--r--   1 root root   684 Mar 21  2020 tbl_import.php
-rw-r--r--   1 root root  1401 Mar 21  2020 tbl_indexes.php
-rw-r--r--   1 root root 15446 Mar 21  2020 tbl_operations.php
-rw-r--r--   1 root root   452 Mar 21  2020 tbl_recent_favorite.php
-rw-r--r--   1 root root  2375 Mar 21  2020 tbl_relation.php
-rw-r--r--   1 root root 16972 Mar 21  2020 tbl_replace.php
-rw-r--r--   1 root root  5005 Mar 21  2020 tbl_row_action.php
-rw-r--r--   1 root root  1130 Mar 21  2020 tbl_select.php
-rw-r--r--   1 root root  1176 Mar 21  2020 tbl_sql.php
-rw-r--r--   1 root root  2042 Mar 21  2020 tbl_structure.php
-rw-r--r--   1 root root  5797 Mar 21  2020 tbl_tracking.php
-rw-r--r--   1 root root   141 Mar 21  2020 tbl_triggers.php
-rw-r--r--   1 root root  1049 Mar 21  2020 tbl_zoom_select.php
drwxr-xr-x  19 root root  4096 Aug  8 14:50 templates/
drwxr-xr-x   4 root root  4096 Aug  8 14:50 themes/
-rw-r--r--   1 root root   956 Mar 21  2020 themes.php
-rw-r--r--   1 root root  1910 Mar 21  2020 transformation_overview.php
-rw-r--r--   1 root root  4617 Mar 21  2020 transformation_wrapper.php
-rw-r--r--   1 root root  1296 Mar 21  2020 url.php
-rw-r--r--   1 root root  1934 Mar 21  2020 user_password.php
-rw-r--r--   1 root root  1085 Mar 21  2020 version_check.php
-rw-r--r--   1 root root  6604 Mar 21  2020 view_create.php
-rw-r--r--   1 root root  3866 Mar 21  2020 view_operations.php
apache2
  • 2 respostas
  • 1116 Views
Martin Hope
Jamie Hutber
Asked: 2021-02-12 14:31:00 +0800 CST

Não foi possível encontrar a tag para o codec pcm_s16le no stream nº 1, codec não suportado atualmente no contêiner

  • 7

Eu tenho um arquivo .AVI muito antigo e estou tentando convertê-lo para o formato MP4 com FFMPEG

Aqui está meu comando atual para tentar converter:

ffmpeg -i aVideo.avi -s 1980x1080 -c:a copy aNewVideo.mp4

estou usando a versãoffmpeg version 4.2.4-1ubuntu0.1

Editar

Aqui está o script sh que criei para me permitir converter facilmente vídeos para poder compartilhar com meus amigos. Não é o meu melhor trabalho... sou um desenvolvedor de JS :O

hutber@hutber:/mnt/users/Downloads/Old$ sd
Select Resolution:
1) 1280x720
2) 1980x1080
#? 1
/mnt/users/Downloads/Old/1011 Random Goal 1.avi
/mnt/users/Downloads/Old/02.12.2021/1011 Random Goal 1.avi_02.12.2021_00.31_SD.mp4
ffmpeg -i /mnt/users/Downloads/Old/1011 Random Goal 1.avi -s 1280x720 -c:a copy /mnt/users/Downloads/Old/02.12.2021/1011 Random Goal 1.avi_02.12.2021_00.31_SD.mp4
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-liblensfun --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, avi, from '/mnt/users/Downloads/Old/1011 Random Goal 1.avi':
  Duration: 00:01:09.72, start: 0.000000, bitrate: 30356 kb/s
    Stream #0:0: Video: dvvideo (dvsd / 0x64737664), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28816 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (dvvideo (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libx264 @ 0x562e372efc40] using SAR=3/4
[libx264 @ 0x562e372efc40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x562e372efc40] profile High, level 3.1
[libx264 @ 0x562e372efc40] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x562e372ee600] Could not find tag for codec pcm_s16le in stream #1, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 -- 
Conversion failed!

Sendo este o script:

hutber@hutber:/mnt/users/Downloads/Old$ cat /mnt/googledrive/Documents/sh/sd.sh
#!/bin/bash

simpleCopy(){    
    printf "Select Resolution:\n"
    select answer in "1280x720" "1980x1080"
    do
        break;
    done
}
simpleCopy

file=$(zenity --file-selection)
currentDateTime=$(date +'%m.%d.%Y_%H.%M')
currentDate=$(date +'%m.%d.%Y')
safeVideoName="${file/ /_}"
safeVideoName="${file/.mp4/}"
safeVideoName="${file/.mp4/}"
filename=${safeVideoName##*/}

fullpath="${safeVideoName%/*}/$currentDate"
videoName="${fullpath}/${filename}_${currentDateTime}_SD.mp4"
echo $file
echo $videoName
mkdir -p $fullpath
echo "ffmpeg -i "$file" -s "$answer" -c:a copy "$videoName""
ffmpeg -i "$file" -s "$answer" -c:a copy "$videoName"
sound
  • 1 respostas
  • 6515 Views
Martin Hope
Jamie Hutber
Asked: 2021-01-26 14:49:50 +0800 CST

Por que minhas miniaturas precisam ser regeneradas a cada reinicialização? É possível permitir que eles persistam?

  • 2

Eu tenho uma grande quantidade de imagens na minha máquina e toda vez que reinicio a máquina, perco esse cache, ou pelo menos parece assim.

A pasta que mais frequento tem cerca de 3,6 mil imagens, mas muitas outras têm um número um pouco menor, mas semelhante.

Muitas vezes, passei talvez 5 minutos apenas percorrendo para permitir que todas as miniaturas fossem geradas apenas para voltar mais tarde e as miniaturas desapareceram.

Como posso reter as miniaturas geradas?

nautilus
  • 1 respostas
  • 163 Views
Martin Hope
Jamie Hutber
Asked: 2020-03-06 16:51:39 +0800 CST

Encontrando diretórios dentro de uma pasta e excluindo pasta + pai se o subdiretório for menor que um determinado tamanho?

  • 1

Eu uso gmusic para ordenar e organizar minha estrutura de pastas. No entanto, isso significa que fico com algumas pastas que não possuem nenhum arquivo além do normal, uma capa de imagem.

Gostaria de classificar todas as minhas pastas e subpastas e remover a pasta pai se, digamos, as pastas estiverem abaixo de 5 MB.

Aqui está o que posso ver em outra resposta , mas isso não lida com subpastas.

du --max-depth 1 | awk -v q='"' '$1 < 30000000 && $2 != "." {sub(/^[0-9\t ]+/, "", $0); print q $0 q}'

Abaixo, gostaríamos de remover a pasta Always Ascendinge deixar todas as pastas.

insira a descrição da imagem aqui

Mas aqui, gostaríamos de remover George Harrison& 2017 - Guardians Of The Galaxy Vol. 2 Awesome Mix Vol. 2& Disk 1.

insira a descrição da imagem aqui

command-line directory rm find du
  • 1 respostas
  • 64 Views
Martin Hope
Jamie Hutber
Asked: 2019-11-29 17:20:17 +0800 CST

Percorra todas as pastas e renomeie todos os arquivos dentro da pasta sequencialmente 1.*, 2.*, 3.*

  • 0

Isso não funciona... Eu ainda sou muito ruim com scripts sh.

for imageFolder in *; do
    [ -d $imageFolder ] && cd "$imageFolder" && 
        for file in *.*
        do
          echo "$file" #"${file/?/?}" //the bit I am stuck on I believe.
        done
done

Eu tenho a seguinte estrutura de pastas e gostaria que todos os arquivos começassem em 1vez de0

nome

Então a estrutura de pastas ficaria assim

insira a descrição da imagem aqui

bash directory rename sh
  • 1 respostas
  • 81 Views
Martin Hope
Jamie Hutber
Asked: 2019-10-31 07:14:18 +0800 CST

Remova a pasta se ela tiver outra pasta com os mesmos números iniciados

  • 4

Eu tenho algumas pastas que foram criadas com erro. Eu gostaria de remover essas pastas.

¬ 636
¬ 636.empty
¬ 637
¬ 638.empty
¬ 639
¬ 639.empty

Nesta situação, gostaria de remover 636.emptye deixar a pasta vazia restante.

Depois de executar o comando do terminal, gostaria que todas as pastas que uma sisterpasta fossem removidas.

¬ 636
¬ 637
¬ 638.empty
¬ 639

As pastas removidas seriam:

¬ 636.empty
¬ 639.empty

Eu tenho algumas 25,000pastas talvez 1000 delas sejam duplicatas com a emptypasta

command-line directory rm
  • 1 respostas
  • 352 Views
Martin Hope
Jamie Hutber
Asked: 2019-10-31 06:43:21 +0800 CST

Renomeie todas as pastas vazias com `$ empty`

  • 1

Eu tenho muitas pastas que acabei com muitas emptiesnos nomes das pastas e preciso remover todas as emptye deixar as pastas com$1.empty

É claro que minha lógica é falha aqui, pois não tenho certeza de como obter o newnome do arquivo. Eu só posso obter o que está combinando do regex.

#!/bin/sh

for I in `cat filelist`;
do
     # for renaming, use mv
    NEWNAME = `$I.empty`
    echo $NEWNAME 
done

O objetivo é substituir as pastas que foram $ empty.emptyentão $.empty. As pastas que não contêm empty.emptydevem ser deixadas sozinhas.

insira a descrição da imagem aqui

command-line mv
  • 1 respostas
  • 259 Views
Martin Hope
Jamie Hutber
Asked: 2019-09-30 04:25:25 +0800 CST

O pacote mysql-server-5.7 ainda não está configurado

  • 0

Eu tentei tudo relevante que posso encontrar dentro desta resposta

Mas nada para mim até agora resolveu esse problema. Eu nunca tive o mysql instalado com sucesso. Como eu tentei instalar phpmyadminantes de instalar o mysql, o que significa que eu abortei a phpadmininstalação e, estranhamente, durante a minha mysql-serverinstalação, a phpmyadmintela de confirmação apareceu.

Então é uma bagunça :D

hutber@hutber:~$ ps -ef | grep mysql
999       3952  3925  0 12:51 ?        00:00:36 mysqld
hutber   27307 27070  0 23:56 pts/2    00:00:00 grep --color=auto mysql
hutber@hutber:~$ sudo apt-get purge mysql*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'mysqltcl' for glob 'mysql*'
Note, selecting 'mysql-workbench' for glob 'mysql*'
Note, selecting 'mysql-client-5.5' for glob 'mysql*'
Note, selecting 'mysql-client-5.6' for glob 'mysql*'
Note, selecting 'mysql-client-5.7' for glob 'mysql*'
Note, selecting 'mysql-common-5.6' for glob 'mysql*'
Note, selecting 'mysql-server-5.0' for glob 'mysql*'
Note, selecting 'mysql-server-5.1' for glob 'mysql*'
Note, selecting 'mysql-server-5.5' for glob 'mysql*'
Note, selecting 'mysql-server-5.6' for glob 'mysql*'
Note, selecting 'mysql-server-5.7' for glob 'mysql*'
Note, selecting 'mysql-utilities' for glob 'mysql*'
Note, selecting 'mysql-testsuite' for glob 'mysql*'
Note, selecting 'mysql-server' for glob 'mysql*'
Note, selecting 'mysql-client' for glob 'mysql*'
Note, selecting 'mysql-sandbox' for glob 'mysql*'
Note, selecting 'mysql-client-core-5.5' for glob 'mysql*'
Note, selecting 'mysql-client-core-5.6' for glob 'mysql*'
Note, selecting 'mysql-client-core-5.7' for glob 'mysql*'
Note, selecting 'mysql-testsuite-5.5' for glob 'mysql*'
Note, selecting 'mysql-testsuite-5.6' for glob 'mysql*'
Note, selecting 'mysql-testsuite-5.7' for glob 'mysql*'
Note, selecting 'mysql-common' for glob 'mysql*'
Note, selecting 'mysqltuner' for glob 'mysql*'
Note, selecting 'mysql-workbench-data' for glob 'mysql*'
Note, selecting 'mysql-server-core-5.1' for glob 'mysql*'
Note, selecting 'mysql-server-core-5.5' for glob 'mysql*'
Note, selecting 'mysql-server-core-5.6' for glob 'mysql*'
Note, selecting 'mysql-server-core-5.7' for glob 'mysql*'
Note, selecting 'mysql-source-5.7' for glob 'mysql*'
Package 'mysql-client-5.5' is not installed, so not removed
Package 'mysql-client-5.6' is not installed, so not removed
Package 'mysql-server-core-5.6' is not installed, so not removed
Package 'mysql-client-core-5.5' is not installed, so not removed
Package 'mysql-client-core-5.6' is not installed, so not removed
Note, selecting 'mysql-common' instead of 'mysql-common-5.6'
Package 'mysql-server-5.5' is not installed, so not removed
Package 'mysql-server-5.6' is not installed, so not removed
Package 'mysql-server-core-5.5' is not installed, so not removed
Package 'mysql-testsuite-5.5' is not installed, so not removed
Package 'mysql-testsuite-5.6' is not installed, so not removed
Package 'mysql-server-5.0' is not installed, so not removed
Package 'mysql-server-5.1' is not installed, so not removed
Package 'mysql-server-core-5.1' is not installed, so not removed
Package 'mysql-common' is not installed, so not removed
Package 'mysql-sandbox' is not installed, so not removed
Package 'mysql-utilities' is not installed, so not removed
Package 'mysql-workbench' is not installed, so not removed
Package 'mysql-workbench-data' is not installed, so not removed
Package 'mysqltcl' is not installed, so not removed
Package 'mysqltuner' is not installed, so not removed
Package 'mysql-client' is not installed, so not removed
Package 'mysql-client-5.7' is not installed, so not removed
Package 'mysql-client-core-5.7' is not installed, so not removed
Package 'mysql-server' is not installed, so not removed
Package 'mysql-server-5.7' is not installed, so not removed
Package 'mysql-server-core-5.7' is not installed, so not removed
Package 'mysql-source-5.7' is not installed, so not removed
Package 'mysql-testsuite' is not installed, so not removed
Package 'mysql-testsuite-5.7' is not installed, so not removed
The following package was automatically installed and is no longer required:
  libevent-core-2.1-6
Use 'sudo apt autoremove' to remove it.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
hutber@hutber:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED
  libevent-core-2.1-6
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
After this operation, 251 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 342618 files and directories currently installed.)
Removing libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
hutber@hutber:~$ sudo apt-get autoclean
Reading package lists... Done
Building dependency tree       
Reading state information... Done
hutber@hutber:~$ sudo apt-get install mysql-server --fix-missing --fix-broken
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libevent-core-2.1-6 mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7
Suggested packages:
  mailx tinyca
Recommended packages:
  libhtml-template-perl
The following NEW packages will be installed
  libevent-core-2.1-6 mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server mysql-server-5.7 mysql-server-core-5.7
0 to upgrade, 7 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/20.4 MB of archives.
After this operation, 160 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 342614 files and directories currently installed.)
Preparing to unpack .../mysql-common_5.8+1.0.4_all.deb ...
Unpacking mysql-common (5.8+1.0.4) ...
Selecting previously unselected package mysql-client-core-5.7.
Preparing to unpack .../mysql-client-core-5.7_5.7.27-0ubuntu0.18.04.1_amd64.deb ...
Unpacking mysql-client-core-5.7 (5.7.27-0ubuntu0.18.04.1) ...
Selecting previously unselected package mysql-client-5.7.
Preparing to unpack .../mysql-client-5.7_5.7.27-0ubuntu0.18.04.1_amd64.deb ...
Unpacking mysql-client-5.7 (5.7.27-0ubuntu0.18.04.1) ...
Selecting previously unselected package mysql-server-core-5.7.
Preparing to unpack .../mysql-server-core-5.7_5.7.27-0ubuntu0.18.04.1_amd64.deb ...
Unpacking mysql-server-core-5.7 (5.7.27-0ubuntu0.18.04.1) ...
Selecting previously unselected package libevent-core-2.1-6:amd64.
Preparing to unpack .../libevent-core-2.1-6_2.1.8-stable-4build1_amd64.deb ...
Unpacking libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...
Setting up mysql-common (5.8+1.0.4) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-5.7.
(Reading database ... 342775 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.27-0ubuntu0.18.04.1_amd64.deb ...
Unpacking mysql-server-5.7 (5.7.27-0ubuntu0.18.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.7.27-0ubuntu0.18.04.1_all.deb ...
Unpacking mysql-server (5.7.27-0ubuntu0.18.04.1) ...
Setting up libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...
Setting up mysql-server-core-5.7 (5.7.27-0ubuntu0.18.04.1) ...
Setting up mysql-client-core-5.7 (5.7.27-0ubuntu0.18.04.1) ...
Setting up mysql-client-5.7 (5.7.27-0ubuntu0.18.04.1) ...
Setting up mysql-server-5.7 (5.7.27-0ubuntu0.18.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
dpkg: error processing package mysql-server-5.7 (--configure):
 installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                                                                            dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10.29) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Editar 2

hutber@hutber:~$ sudo apt install mysql-server-5.7 phpmyadmin --reinstall
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dbconfig-common dbconfig-mysql libjs-sphinxdoc libjs-underscore php php-php-gettext php-phpseclib php7.2
Suggested packages:
  php-libsodium php-mcrypt php-gmp
Recommended packages:
  javascript-common php-gd php-bz2 php-zip php-tcpdf
The following NEW packages will be installed
  dbconfig-common dbconfig-mysql libjs-sphinxdoc libjs-underscore php php-php-gettext php-phpseclib php7.2 phpmyadmin
0 to upgrade, 9 to newly install, 1 reinstalled, 0 to remove and 0 not to upgrade.
2 not fully installed or removed.
Need to get 0 B/4,813 kB of archives.
After this operation, 28.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
E: Internal Error, No file name for mysql-server-5.7:amd64```
server mysql apache2 phpmyadmin 18.04
  • 2 respostas
  • 3143 Views
Martin Hope
Jamie Hutber
Asked: 2018-08-27 15:45:31 +0800 CST

Como adicionar menu suspenso na janela atual no Gnome

  • 0

Eu tenho o Ubuntu 18.04 e o Gnome 3.28.3, mas é muito chato não poder ter os menus na janela atual assim:

insira a descrição da imagem aqui

Isso é possível sem mudar para mate ou canela?

gnome-shell globalmenu
  • 1 respostas
  • 101 Views
Martin Hope
Jamie Hutber
Asked: 2018-01-27 04:03:33 +0800 CST

Comando para abrir nova aba no terminal atual e passar o comando para rodar na nova aba [duplicado]

  • 2
Esta pergunta já tem respostas aqui :
Passando vários comandos para gnome-terminal de um script (1 resposta)
Existe um comando no Gnome-Terminal ou algum shell tabável para abrir uma nova guia? (2 respostas)
Fechado há 4 anos .

Eu sei que gnome-terminalabrirá uma nova janela, gostaria de saber se existe uma maneira de abrir uma nova guia, não apenas uma nova janela?

Depois disso, existe uma maneira de passar um comando para a nova janela, por exemplo

gnome-terminal && cd /

O que resultará em

  1. Abre Novo Terminal
  2. Novo Terminal então é executadocd /

[Editar] Será que essas respostas vão dizer como passar cmds para outro terminal, não responde como abrir uma nova TAB . Que é o que estou procurando, não quero mais de um terminal aberto.

gnome command-line gnome-terminal
  • 2 respostas
  • 5391 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