Ein Terminal öffnen und einen Befehlö automatisch ausführen lassen  [Solved]

Message
Author
Uweles
Posts: 253
Joined: Mon Feb 03, 2020 12:14 pm

Ein Terminal öffnen und einen Befehlö automatisch ausführen lassen  [Solved]

#1 Post by Uweles »

Morgen Leute,

Code: Select all

System:
  Kernel: 6.1.0-10-amd64 [6.1.38-2] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-10-amd64 root=UUID=<filter> ro nosplash
    pci=nomsi,noaer
  Desktop: KDE Plasma v: 5.27.5 info: cairo-dock wm: kwin_x11 vt: 7 dm: SDDM
    Distro: MX-23.5_KDE_x64 Libretto July 31 2023 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop System: LENOVO product: 7033EW4 v: ThinkCentre M91p serial: <superuser required>
  Mobo: LENOVO model: N/A serial: <superuser required> BIOS: LENOVO v: 9HKT41AUS date: 05/16/2011
CPU:
  Info: model: Intel Core i3-2130 bits: 64 type: MT MCP arch: Sandy Bridge gen: core 2 level: v2
    built: 2010-12 process: Intel 32nm family: 6 model-id: 0x2A (42) stepping: 7 microcode: 0x2F
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 3392 min/max: 1600/3400 scaling: driver: intel_cpufreq governor: ondemand
    cores: 1: 3392 2: 3392 3: 3392 4: 3392 bogomips: 27139
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB
    filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics vendor: Lenovo
    driver: i915 v: kernel arch: Gen-6 code: Sandybridge process: Intel 32nm built: 2011 ports:
    active: none empty: DP-1,HDMI-A-1,VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0102 class-ID: 0380
  Device-2: NVIDIA GT216 [GeForce GT 220] driver: nouveau v: kernel non-free: series: 340.xx
    status: legacy (EOL) last: release: 340.108 kernel: 5.4 xorg: 1.20 arch: Tesla process: 40-80nm
    built: 2006-13 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 ports: active: DVI-I-1,VGA-2
    empty: HDMI-A-2 bus-ID: 01:00.0 chip-ID: 10de:0a20 class-ID: 0300 temp: 50.0 C
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9 compositor: kwin_x11 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: nouveau gpu: nouveau display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3200x1200 s-dpi: 96 s-size: 846x317mm (33.31x12.48") s-diag: 903mm (35.57")
  Monitor-1: DVI-I-1 pos: primary,top-right model: Dell U2412M serial: <filter> built: 2011
    res: 1920x1200 hz: 60 dpi: 94 gamma: 1.2 size: 518x324mm (20.39x12.76") diag: 611mm (24.1")
    ratio: 16:10 modes: max: 1920x1200 min: 720x400
  Monitor-2: VGA-2 pos: bottom-l model: EIZO NANAO L557 serial: <filter> built: 2003
    res: 1280x1024 hz: 60 dpi: 96 gamma: 1.2 size: 337x270mm (13.27x10.63") diag: 432mm (17")
    ratio: 5:4 modes: max: 1280x1024 min: 720x400
  API: OpenGL v: 3.3 Mesa 24.2.8-1mx23ahs renderer: NVA5 direct-render: Yes
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: Lenovo 6
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1c20 class-ID: 0403
  Device-2: NVIDIA GT216 HDMI Audio driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0be2 class-ID: 0403
  API: ALSA v: k6.1.0-10-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel 82579LM Gigabit Network vendor: Lenovo driver: e1000e v: kernel port: f080
    bus-ID: 00:19.0 chip-ID: 8086:1502 class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 585 GiB used: 381.85 GiB (65.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD5000AAKX-07U6AA0 size: 465.76 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: 1H17 scheme: MBR
  ID-2: /dev/sdb maj-min: 8:16 vendor: Intenso model: SSD Sata III size: 119.24 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 0A0 scheme: GPT
Partition:
  ID-1: / raw-size: 119.24 GiB size: 116.81 GiB (97.96%) used: 23.62 GiB (20.2%) fs: ext4
    dev: /dev/sdb1 maj-min: 8:17
  ID-2: /home raw-size: 465.76 GiB size: 457.38 GiB (98.20%) used: 358.24 GiB (78.3%) fs: ext4
    dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 4 GiB used: 4.5 MiB (0.1%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 46.0 C mobo: N/A gpu: nouveau temp: 50.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: 3511 pm: dpkg pkgs: 3504 libs: 1958
    tools: apt,apt-get,aptitude,gnome-software,nala,synaptic pm: rpm pkgs: 0 pm: flatpak pkgs: 7
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
    1: deb [arch=amd64 signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
    1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/megasync.list
    1: deb [signed-by=/usr/share/keyrings/meganz-archive-keyring.gpg] https://mega.nz/linux/repo/Debian_12/ ./
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bookworm main non-free
    2: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bookworm ahs
  Active apt repos in: /etc/apt/sources.list.d/opera-stable.list
    1: deb https://deb.opera.com/opera-stable/ stable non-free
  Active apt repos in: /etc/apt/sources.list.d/vivaldi.list
    1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/warpdotdev.list
    1: deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/warpdotdev.gpg] https://releases.warp.dev/linux/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/extrepo_librewolf.sources
    1: deb [arch=amd64 arm64] https://repo.librewolf.net librewolf main
Info:
  Processes: 282 Uptime: 41m wakeups: 1 Memory: 15.51 GiB used: 5.18 GiB (33.4%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: BIOS (legacy, CSM, MBR)
Ich habe zwei Thunderbird Profile und wollte gerne mit einem Befehl ein Terminal automatisch öffnen lassen und dann den Befehl ausführen lassen, damit die Auswahl für das Profil erscheint.

Im Netz habe ich das gefunden:

“’bash
konsole -e „COMMAND“
“‘

Aber es funktioniert bei mir nicht, bzw. ich blicke wohl nicht durch.
Da ich auch keine große Erfahrung mit solchen Dingen habe, hoffe ich, dass mir hier jemand weiterhelfen kann.
Vielen Dank für eure Antworten.

User avatar
gosia
Posts: 1126
Joined: Sun Apr 28, 2019 3:43 pm

Re: Ein Terminal öffnen und einen Befehlö automatisch ausführen lassen

#2 Post by gosia »

Hallo Uweless,
warum das Terminal öffnen? Reicht es nicht einen Starter einzurichten, in dem Du als Kommando

Code: Select all

thunderbird -P
einträgst, als Name einen passenden Text und gut ist.
https://gnulinux.ch/thunderbird-profil-manager

viele Grüsse gosia

PS. Im allgemeinen ist es bei Bemerkungen wie
Uweles wrote: Thu Mar 20, 2025 5:13 am Im Netz habe ich das gefunden:
hilfreicher, den Link mit anzugeben.
Last edited by gosia on Thu Mar 20, 2025 6:34 am, edited 1 time in total.

Uweles
Posts: 253
Joined: Mon Feb 03, 2020 12:14 pm

Re: Ein Terminal öffnen und einen Befehlö automatisch ausführen lassen

#3 Post by Uweles »

Du bist klasse! Vielen Dank für den Hinweis!

Manchmal ist es einfach zu naheliegend. :happy:

Eine gute Lösung, so wirds gemacht!

Post Reply

Return to “Deutsches Forum”