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 / ubuntu / 问题

Perguntas[kde](ubuntu)

Martin Hope
Oneechan69
Asked: 2025-03-28 14:13:31 +0800 CST

KDE Wayland: Tirando capturas de tela de regiões mais rápido?

  • 5

Estou usando este script do HN * para selecionar regiões na tela e copiar seu texto, tirei a linha com mogrify. Ele usa o Spectacle, mas demora um pouco antes de abrir a IU. É possível e seria mais rápido se o Spectacle permanecesse aberto em segundo plano? O slurp CLI inicia instantaneamente para mim para selecionar regiões, procurei ferramentas de captura de tela de linha de comando para talvez usar com ele ou tem seu próprio suporte de região, mas não encontrei nenhuma. Nenhum dos dois maim scrote grimnão funcionam no Plasma Wayland. Instalei o ksnip flatpak, mas a opção para regiões retangulares não aparece para mim.

* O roteiro:

  #!/bin/bash 
  # Dependencies: tesseract-ocr imagemagick 
  # on gnome: gnome-screenshot 
  # on kde: spectacle
  # on x11: xsel
  # on wayland: wl-clipboard

  die(){
    notify-send "$1"
    exit 1
  }
  cleanup(){
    [[ -n $1 ]] && rm -r "$1"
  }

  SCR_IMG=$(mktemp -d) || die "failed to take screenshot"

  # shellcheck disable=SC2064
  trap "cleanup '$SCR_IMG'" EXIT

  #notify-send "Select the area of the text" 
  if  which "spectacle" &> /dev/null
  then
    spectacle -n -b -r -o "$SCR_IMG/scr.png" || die "failed to take screenshot"
  else
    gnome-screenshot -a -f "$SCR_IMG/scr.png" || die "failed to take screenshot"
  fi

  # increase image quality with option -q from default 75 to 100
  mogrify -modulate 100,0 -resize 400% "$SCR_IMG/scr.png"  || die "failed to convert image"
  #should increase detection rate

  tesseract "$SCR_IMG/scr.png" "$SCR_IMG/scr" &> /dev/null || die "failed to extract text"
  if [ "$XDG_SESSION_TYPE" == "wayland" ]
  then 
    wl-copy < "$SCR_IMG/scr.txt" || die "failed to copy text to clipboard"
  else
    # xsel -b -i  < "$SCR_IMG/scr.txt" || die "failed to copy text to clipboard"
    xclip -selection clipboard -i < "$SCR_IMG/scr.txt" || die "failed to copy text to clipboard"  
  fi
  # Notify the user what was copied but truncate the text to 100 characters
  notify-send "Text extracted from image" "$(head -c 100 "$SCR_IMG/scr.txt")" || die "failed to send notification"
  exit  #!/bin/bash 
  # Dependencies: tesseract-ocr imagemagick 
  # on gnome: gnome-screenshot 
  # on kde: spectacle
  # on x11: xsel
  # on wayland: wl-clipboard

  die(){
    notify-send "$1"
    exit 1
  }
  cleanup(){
    [[ -n $1 ]] && rm -r "$1"
  }

  SCR_IMG=$(mktemp -d) || die "failed to take screenshot"

  # shellcheck disable=SC2064
  trap "cleanup '$SCR_IMG'" EXIT

  #notify-send "Select the area of the text" 
  if  which "spectacle" &> /dev/null
  then
    spectacle -n -b -r -o "$SCR_IMG/scr.png" || die "failed to take screenshot"
  else
    gnome-screenshot -a -f "$SCR_IMG/scr.png" || die "failed to take screenshot"
  fi

  # increase image quality with option -q from default 75 to 100
  mogrify -modulate 100,0 -resize 400% "$SCR_IMG/scr.png"  || die "failed to convert image"
  #should increase detection rate

  tesseract "$SCR_IMG/scr.png" "$SCR_IMG/scr" &> /dev/null || die "failed to extract text"
  if [ "$XDG_SESSION_TYPE" == "wayland" ]
  then 
    wl-copy < "$SCR_IMG/scr.txt" || die "failed to copy text to clipboard"
  else
    # xsel -b -i  < "$SCR_IMG/scr.txt" || die "failed to copy text to clipboard"
    xclip -selection clipboard -i < "$SCR_IMG/scr.txt" || die "failed to copy text to clipboard"  
  fi
  # Notify the user what was copied but truncate the text to 100 characters
  notify-send "Text extracted from image" "$(head -c 100 "$SCR_IMG/scr.txt")" || die "failed to send notification"
  exit
kde
  • 1 respostas
  • 28 Views
Martin Hope
Oneechan69
Asked: 2025-03-10 03:31:19 +0800 CST

KDE 6: exportando scripts Kwin e decorações de janelas?

  • 5

Eu tive que fazer exportações enquanto estava experimentando com Linux. Eu sei que um monte de configurações são salvas, ~/.config/mas isso não parece incluir scripts Kwin ou decorações de janela em si, então eu teria que reinstalá-los em uma nova instalação do KDE. Eu olhei para ferramentas como konsave, mas isso é apenas para dotfiles.

kde
  • 1 respostas
  • 18 Views
Martin Hope
jophuh
Asked: 2025-01-12 04:18:22 +0800 CST

Como modificar permanentemente os arquivos Flatpak .desktop

  • 5

Estou no KDE Ubuntu com Plasma. Gosto de editar meus aplicativos com uma descrição relevante. Como exemplo, aqui está um trecho do .desktoparquivo GIMPs:

Name=GNU Image Manipulation Program
Comment=Image Editor
...

Vou entrar no .desktoparquivo na minha ~/.local/share/applications/pasta e alterar a DESCRIÇÃO para algo como

Name=GNU Image Manipulation Program
Comment=Image Editor and Photo Editor
...

Dessa forma, se eu não lembrar o nome do meu editor de fotos, posso simplesmente digitá-lo photono menu iniciar do KDE e a entrada do GIMP aparecerá.

Isso funciona bem, mas acho que não funcionará nos meus Flatpaks por dois motivos:

  1. Os arquivos Flatpak .desktopsão links simbólicos na minha ~/.local/share/applications/pasta.
  2. Os arquivos Flatpak reais .desktopsão armazenados na /var/lib/flatpak/app/...pasta e as alterações parecem ser substituídas toda vez que um Flatpak é atualizado.

Qual é a melhor maneira de alterar uma .desktopentrada Flatpak (nome e/ou descrição) e fazer com que as alterações sejam aplicadas permanentemente? Como alternativa, como eu poderia pesquisar um nome de aplicativo no KDE com tags que eu aplico (por exemplo, aplicando uma phototag ao programa GIMP)?

kde
  • 1 respostas
  • 134 Views
Martin Hope
Bruni
Asked: 2024-10-22 16:14:09 +0800 CST

O Dolphin Services desapareceu após a atualização para o Kubuntu 24.10

  • 5

O Dolphin no plasma 6.1 ainda suporta serviços dolphin? Meus serviços instalados não estão mais disponíveis após a atualização.

kde
  • 1 respostas
  • 20 Views
Martin Hope
xii69
Asked: 2024-07-06 16:07:30 +0800 CST

Instalou o KDE, mas não configurou o gerenciador de exibição

  • 5

Acabei de instalar kde-fulle escolher sddmcomo Display Manager após a instalação, mas não desconectei e mudei o ambiente de desktop para KDE e apenas reiniciei, agora quando inicializo meu Ubuntu vejo uma tela preta.

kde
  • 1 respostas
  • 45 Views
Martin Hope
Kai Neergård
Asked: 2024-06-15 03:29:51 +0800 CST

Janela do Okular não abre

  • 8

Depois de uma atualização há alguns dias, o Okular, que uso com sucesso há algum tempo, parou de exibir qualquer janela quando aberto. O dock e a lista de processos ativos informam que o programa está em execução. Isso ocorre após o programa ter sido aberto e fechado algumas vezes. Reiniciar o computador não ajuda. Se eu desinstalar e reinstalar, volto ao funcionamento normal por algumas sessões e depois o comportamento retorna. Alguém experimentou algo semelhante e alguém sabe o que está acontecendo? Estou executando o Ubuntu 24.04 e a versão do Okular é 24.05.1. Na linha de comando, posso produzir a seguinte caixa de diálogo.

$ okular (algum arquivo PDF)
kf.windowsystem: static int KX11Extras::currentDesktop() só pode ser usado no X11

** (okular:(ID do processo)): AVISO **: (carimbo de data/hora): atk-bridge: get_device_events_reply: assinatura desconhecida

Nada mais acontece antes de eu romper com ^C. Entrando apenas

$okular

resulta apenas no aviso. Nenhuma janela do programa ocorre.

kde
  • 1 respostas
  • 128 Views
Martin Hope
Tony Prajapati
Asked: 2024-04-20 14:37:23 +0800 CST

Inicializado em uma tela tty1 no Ubuntu KDE após a remoção automática de certificados ca

  • 5

Eu estava tendo um problema ao atualizar o Ubuntu. A verificação do certificado falhou, então pesquisei na internet. Então, pela minha própria lógica e algumas respostas em algum fórum. Executei o seguinte comando:

sudo apt autoremove ca-certificates

Agora, depois de reiniciar meu PC, recebo uma tela tty1 em vez da tela de login normal. Tentei pressionar a combinação de teclado Ctrl+Shift+F7-ou-F8 várias vezes. Alguém tem ideia do que é isso e como resolver?

Estou usando o Ubuntu com o pacote completo do KDE Plasma Desktop. Eu desinstalei o GNOME.

Depois de tentar

sudo apt update && sudo apt instalar ubuntu-desktop

Isso é o que estou recebendo:

insira a descrição da imagem aqui

kde
  • 1 respostas
  • 56 Views
Martin Hope
reneas
Asked: 2024-01-31 22:20:05 +0800 CST

O KDE Discover não inicia com uma mensagem de erro estranha

  • 5

Acabei de instalar o Kubuntu no meu laptop e tudo funcionou perfeitamente. Então plasma-discoverparou de funcionar de repente. Quando tento iniciá-lo, a janela aparece por um segundo ou mais como um pequeno retângulo no canto superior esquerdo e desaparece imediatamente depois. Iniciá-lo na linha de comando dá o mesmo resultado com a seguinte mensagem:

$ plasma-discover
kf.config.core: "\"geometry\" - conversion of \"776,258,0,65507\" to QRect failed"
kf.config.core: "\"geometry\" - conversion of \"776,258,0,65507\" to QRect failed"
kf.config.core: "\"geometry\" - conversion of \"776,258,0,65507\" to QRect failed"
kf.config.core: "\"geometry\" - conversion of \"776,258,0,65507\" to QRect failed"
qrc:/qml/DiscoverWindow.qml:116:19: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/PageRow.qml:674:5: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 14. Use 'sequences: [ <key> ]' to bind to all of them.
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/PageRow.qml:670:5: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 13. Use 'sequences: [ <key> ]' to bind to all of them.
QObject::startTimer: Timers cannot have negative intervals
kf.config.core: "\"geometry\" - conversion of \"776,258,0,65507\" to QRect failed"
qrc:/qml/DiscoverPage.qml:42:37: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
adding empty sources model QStandardItemModel(0x55feeb4688e0)
org.kde.plasma.libdiscover: Couldn't find a category for  "fwupd-backend"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/PrivateActionToolButton.qml:75:5: QML Binding: Binding loop detected for property "value"
QQuickItem::stackBefore: Cannot stack QQuickRectangle(0x55feeb88dda0, parent=0x55feeaea8fe0, geometry=0,0 0x0) before QQuickPopupItem(0x55feeb04c110), which must be a sibling
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/GlobalDrawer.qml:333:17: QML RowLayout (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "preferredHeight"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/AbstractApplicationWindow.qml:283:5: QML Binding: Not restoring previous value because restoreMode has not been set.
This behavior is deprecated.
You have to import QtQml 2.15 after any QtQuick imports and set
the restoreMode of the binding to fix this warning.
In Qt < 6.0 the default is Binding.RestoreBinding.
In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.

Segmentation fault (core dumped)

Executar o comando rootinicia o aplicativo corretamente com a seguinte mensagem:

sudo plasma-discover
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qrc:/qml/DiscoverWindow.qml:116:19: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/PageRow.qml:674:5: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 14. Use 'sequences: [ <key> ]' to bind to all of them.
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/PageRow.qml:670:5: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 13. Use 'sequences: [ <key> ]' to bind to all of them.
qrc:/qml/DiscoverPage.qml:42:37: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
adding empty sources model QStandardItemModel(0x561aaf758820)
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
org.kde.plasma.libdiscover: Couldn't find a category for  "fwupd-backend"
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/PrivateActionToolButton.qml:75:5: QML Binding: Binding loop detected for property "value"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/AbstractApplicationWindow.qml:283:5: QML Binding: Not restoring previous value because restoreMode has not been set.
This behavior is deprecated.
You have to import QtQml 2.15 after any QtQuick imports and set
the restoreMode of the binding to fix this warning.
In Qt < 6.0 the default is Binding.RestoreBinding.
In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.

file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/BasicListItem.qml:273:18: QML QQuickItem*: Binding loop detected for property "implicitWidth"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/AbstractApplicationWindow.qml:283:5: QML Binding: Not restoring previous value because restoreMode has not been set.
This behavior is deprecated.
You have to import QtQml 2.15 after any QtQuick imports and set
the restoreMode of the binding to fix this warning.
In Qt < 6.0 the default is Binding.RestoreBinding.
In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.

Fiz algumas pesquisas e talvez tenha algo a ver com alguns atalhos de teclado, mas não tenho ideia de como consertar isso... Minha plasma-discoverversão é 5.24.7e estou executando o Kubuntu 22.04 no 6.5.0-15-generic x86_64kernel

A execução gdb plasma-discoverresulta em:

$ gdb plasma-discover
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from plasma-discover...
(No debugging symbols found in plasma-discover)
(gdb) start
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n
Starting program: /usr/bin/plasma-discover 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff0147640 (LWP 9869)]
[New Thread 0x7fffef0d6640 (LWP 9870)]
[New Thread 0x7fffedb22640 (LWP 9871)]
[New Thread 0x7fffed321640 (LWP 9872)]
[New Thread 0x7fffecb20640 (LWP 9873)]
[New Thread 0x7fffe5fff640 (LWP 9874)]
[New Thread 0x7fffe57fe640 (LWP 9875)]
[New Thread 0x7fffe4ffd640 (LWP 9876)]
[New Thread 0x7fffd8fff640 (LWP 9877)]
[New Thread 0x7fffbbfff640 (LWP 9878)]
[New Thread 0x7fffbb7fe640 (LWP 9879)]
[Thread 0x7fffbb7fe640 (LWP 9879) exited]
[Thread 0x7fffbbfff640 (LWP 9878) exited]
[New Thread 0x7fffbbfff640 (LWP 9880)]
[New Thread 0x7fffbb7fe640 (LWP 9881)]
[New Thread 0x7fffbaffd640 (LWP 9882)]
[Thread 0x7fffbaffd640 (LWP 9882) exited]
[Thread 0x7fffbb7fe640 (LWP 9881) exited]
kf.config.core: "\"geometry\" - conversion of \"776,258,0,65507\" to QRect failed"
kf.config.core: "\"geometry\" - conversion of \"776,258,0,65507\" to QRect failed"
kf.config.core: "\"geometry\" - conversion of \"776,258,0,65507\" to QRect failed"
kf.config.core: "\"geometry\" - conversion of \"776,258,0,65507\" to QRect failed"
qrc:/qml/DiscoverWindow.qml:116:19: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/PageRow.qml:674:5: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 14. Use 'sequences: [ <key> ]' to bind to all of them.
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/PageRow.qml:670:5: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 13. Use 'sequences: [ <key> ]' to bind to all of them.
QObject::startTimer: Timers cannot have negative intervals
[New Thread 0x7fffbb7fe640 (LWP 9883)]
[New Thread 0x7fffbaffd640 (LWP 9884)]
[New Thread 0x7fffb99e6640 (LWP 9885)]
[New Thread 0x7fffb91e5640 (LWP 9886)]
kf.config.core: "\"geometry\" - conversion of \"776,258,0,65507\" to QRect failed"
qrc:/qml/DiscoverPage.qml:42:37: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
[New Thread 0x7fffa3fff640 (LWP 9887)]
[New Thread 0x7fffa37fe640 (LWP 9888)]
[New Thread 0x7fffa2ffd640 (LWP 9889)]
[New Thread 0x7fffa27fc640 (LWP 9890)]
[New Thread 0x7fffa1ffb640 (LWP 9891)]
adding empty sources model QStandardItemModel(0x555555eec230)
[New Thread 0x7fffa17fa640 (LWP 9892)]
[New Thread 0x7fff8bfff640 (LWP 9893)]
[Detaching after fork from child process 9894]
org.kde.plasma.libdiscover: Couldn't find a category for  "fwupd-backend"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/PrivateActionToolButton.qml:75:5: QML Binding: Binding loop detected for property "value"
[New Thread 0x7fff8b7fe640 (LWP 9896)]
[New Thread 0x7fff8affd640 (LWP 9897)]
[New Thread 0x7fff8a7fc640 (LWP 9898)]
QQuickItem::stackBefore: Cannot stack QQuickRectangle(0x555556312ba0, parent=0x55555592d020, geometry=0,0 0x0) before QQuickPopupItem(0x555555acfa70), which must be a sibling
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/GlobalDrawer.qml:333:17: QML RowLayout (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "preferredHeight"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/AbstractApplicationWindow.qml:283:5: QML Binding: Not restoring previous value because restoreMode has not been set.
This behavior is deprecated.
You have to import QtQml 2.15 after any QtQuick imports and set
the restoreMode of the binding to fix this warning.
In Qt < 6.0 the default is Binding.RestoreBinding.
In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.


Thread 1 "plasma-discover" received signal SIGSEGV, Segmentation fault.
0x00007ffff6ace859 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
(gdb) c
Continuing.
[Thread 0x7fffb91e5640 (LWP 9886) exited]
[Thread 0x7fffa3fff640 (LWP 9887) exited]
[Thread 0x7fffa17fa640 (LWP 9892) exited]
[Thread 0x7fffa27fc640 (LWP 9890) exited]
[Thread 0x7fffbb7fe640 (LWP 9883) exited]
[Thread 0x7fffbaffd640 (LWP 9884) exited]
[Thread 0x7fffb99e6640 (LWP 9885) exited]

Thread 1 "plasma-discover" received signal SIGSEGV, Segmentation fault.
0x00007ffff6ace859 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
(gdb) bt
#0  0x00007ffff6ace859 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#1  0x00007ffff6aeaa4e in QQmlPropertyCapture::captureProperty(QObject*, int, int, bool) ()
   from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#2  0x00007ffff69a78cd in QV4::QObjectWrapper::getProperty(QV4::ExecutionEngine*, QObject*, QQmlPropertyData*) ()
   from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#3  0x00007fffd82c119b in ?? ()
#4  0x0000000000000000 in ?? ()
kde
  • 1 respostas
  • 41 Views
Martin Hope
jan
Asked: 2023-10-17 21:18:38 +0800 CST

Como habilitar o KDE via XRDP no Ubuntu 22.04 no Windows 10 Hyper V?

  • 5

Instalei o Ubuntu 22.04 de criação rápida e tudo funciona bem com o Gnome. No entanto, quero mudar para o KDE e instalá-lo, e também está funcionando bem no modo local do Hyper V. No entanto, se eu conectar via XRDP, o Gnome ainda será usado. Alterei /etc/xrdp/startwm.she comentei as duas últimas linhas e adicionei exec startkde:

#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession
exec startkde

No entanto, isso não está funcionando e no modo local posso ver esses erros em /var/log/xrdp.log:

[20231017-13:52:43] [ERROR] xrdp_sec_recv: xrdp_mcs_recv failed
[20231017-13:52:43] [ERROR] xrdp_rdp_recv: xrdp_sec_recv failed
[20231017-13:52:43] [ERROR] libxrdp_process_data: xrdp_rdp_recv failed
[20231017-13:52:43] [ERROR] xrdp_process_data_in: xrdp_process_loop failed
[20231017-13:52:43] [ERROR] xrdp_iso_send: trans_write_copy_s failed
[20231017-13:52:44] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed

Também descobri como configurar o XRDP para iniciar o canela como sessão de desktop padrão e tentei

echo "startkde" > ~/.Xclients

chmod u+x ~/.Xclients

sudo systemctl restart xrdp.service

No entanto, isso também não está funcionando. O que está errado?

Acabei de ver o /etc/xrdp/startubuntu.sharquivo e parece que ele também deve ser alterado:

#!/bin/sh
# DESKTOP_IMG: This file was created/modified by the Desktop Image build process
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
exec /etc/xrdp/startwm.sh

Eu tentei com

export KDE_SESSION_VERSION=5
export DESKTOP_SESSION=plasma
export XDG_CURRENT_DESKTOP=KDE
exec /etc/xrdp/startwm.sh

No entanto, ainda não está funcionando.

kde
  • 1 respostas
  • 47 Views
Martin Hope
Ahmed Khaldoon
Asked: 2023-07-12 05:39:26 +0800 CST

Eu removi a área de trabalho de plasma do KDE e fiquei presa em uma tela de comando

  • 6

Eu sou novo no Linux. Acabei de instalar o Ubuntu e depois de remover a área de trabalho de plasma do KDE e reiniciar o sistema. Estou preso em uma tela de comando preta. Não tenho certeza de como chegar à tela padrão da área de trabalho do Ubuntu.

kde
  • 1 respostas
  • 16 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