github 2hjaito/davish v1.15.4
Davish v1.15.4

one hour ago

Added

  • Arabic interface, as a preview (#345, thanks @uddx7): Settings → General → Language has العربية, and an Arabic system picks it on first launch. The shell, onboarding, connection dialogs and parts of Settings and the apps are translated; the rest is still English. The layout runs right to left, while terminal and editor content, charts and numbers stay left to right. The README has an Arabic version.
  • Files: right-click a folder in the sidebar or the path bar to open it, open a terminal there, pin it to the desktop or copy its path. A folder of another server in the sidebar gets the same menu, without pinning, and its terminal opens on that server.
  • Terminal on this computer (#365): the + button in Terminal now also opens a tab with your own shell on the computer running Davish (your login shell on macOS and Linux, PowerShell or cmd on Windows), beside the server's tabs. It works with the server disconnected, keeps the color scheme and font, and typing ; lists saved commands for every server. With Davish prompt on in Settings → Terminal, zsh and bash (4 and later) there get the same prompt as on servers, after your own startup files. Nothing in it is sent to a server or recorded in the command log.
  • Saved commands in Terminal (#361): type ; at the prompt and your saved commands show up next to the cursor; keep typing to filter, pick with ↑↓, and Tab or Enter types the command at the prompt without running it. A saved command can have a short name (;dv-log then Tab), tags to group and filter by, and {{placeholders}} that are asked for before the command is typed. ⌘⇧P / Ctrl+Shift+P searches the saved commands from Terminal and ⌘⇧K / Ctrl+Shift+K saves the selected text as one; both are in the Terminal menu too. The ; list can be turned off in Settings → Terminal.
  • zypper in Packages (#324): on openSUSE and SLES, Packages now lists what rpm installed and what zypper list-updates can upgrade, and types sudo zypper install, remove, update and refresh into a terminal; All servers → Update packages runs sudo -n zypper refresh && sudo -n zypper update there. Reading uses zypper's cache only (--no-refresh), so a check never downloads metadata as your user. Updates are not marked as security fixes yet: zypper lists those as patches, not packages.
  • A RAM widget (#286): how much memory is used, with a ring (small), or used, cache and free on one bar with swap under it (medium). It turns amber at the memory alert threshold in Settings → Alerts and red from 95%, as Monitor and the menu bar do by default. It reads the same collector as Monitor: no command of its own.

Fixed

  • Linux without a keyring: the server list no longer fails (no issue yet, found while measuring performance): on a desktop with no Secret Service, such as i3 or sway without gnome-keyring or KWallet, reading whether a server has a saved password failed, and that failed the whole list, so no server showed and none connected, not even with a key. Davish now shows the servers with no saved password or passphrase and logs once why. Key and agent logins connect; only a login that needs a saved password or passphrase says the keychain cannot be read.
  • Packages and All servers → Update packages use zypper dist-upgrade on openSUSE Tumbleweed and Slowroll (#324): a rolling openSUSE is upgraded with dup, and zypper update there skips the renames, splits and vendor changes a snapshot brings, which can leave the system half upgraded. Davish now reads the system's ID from /etc/os-release and types sudo zypper refresh && sudo zypper dist-upgrade there; zypper lists what it will install, upgrade and remove and asks before it goes ahead. Leap and SLES keep zypper update.
  • Nginx no longer says to install nginx when it runs in Docker (#370, #358): on a server without /etc/nginx whose nginx runs in a container, the Nginx app showed the install command, and following it started a second nginx competing with the container for ports 80 and 443. It now says which running container serves nginx (images nginx, nginx-proxy-manager, nginx-unprivileged) and opens it in Docker; Install nginx on the server anyway still shows the command, for a container that leaves those ports free. Managing that nginx from the Nginx app is still to come.
  • Security → Firewall showed an error instead of opening when ufw was missing, needed root or had no rules: the server sent the ufw rules as null instead of an empty list, and the tab read their length. The list is now always there, so the tab opens and shows "Not installed" or "Needs root" as it should. The Accepted tab could fail the same way on a server with an empty login history, and is fixed too.
  • Terminal dropped the whole connection now and then while typing: two keys sent at the same moment (fast typing, a paste right after a key) could reach the SSH library together, and its channel builds every packet in one shared buffer, so the server got a broken packet and closed the connection, taking every tab and Monitor with it. Writes to a terminal now go one at a time and in order.
  • Settings → Terminal → Color scheme now says when the Davish scheme is drawn on a solid background because GPU acceleration or Solid background is on, and how to get the glass look back. Before, choosing Davish again after another scheme looked wrong when GPU acceleration was on.
  • All servers → Run a command… showed no output (#352): each server's tab ended with its exit code, but the area under the command stayed empty. Since All servers moved onto the Docker layout, the run sat in a page that does not stretch what it holds, so its terminal was 0 pixels tall. The terminal fills the window again.
  • Pasting into the Terminal on Linux did nothing (#346): Paste in the right-click menu and Ctrl+Shift+V failed with NotAllowedError, because WebKitGTK does not let the page read the clipboard. The Terminal now reads and writes the clipboard through the app, as the other apps already did. Not tried yet on Linux itself.
  • The sudo password is asked again: whenever sudo needed a password, Davish showed "Something went wrong." instead of asking for it, in Open with sudo, deleting, saving as root, Docker, nginx, cron, Database and Security. The Wails runtime turned every error into "[object Object]" and dropped its code, so no error reached the interface with its own message either; errors now carry their code again.
  • Open with sudo opens the file ready to edit: a file opened with sudo that your SSH user cannot write now saves as root straight away (each save still shows its command first), instead of opening read-only with Edit with sudo… to press again. Open with sudo on a file already open in a tab now switches that tab too, or reads it through sudo if its plain read failed.
  • Files on a server without SFTP (#344, QNAP QTS ships it turned off) said "The server is not connected" while the server was connected. It now says SFTP is off and where to turn it on (on a QNAP: Control Panel → Network & File Services → Telnet / SSH → Enable SFTP). Each failed attempt also left an SSH session open, and sshd allows 10 per connection, so retrying could end up blocking every app on that server; the session is now closed.
  • Docker and other programs showed as not installed when they live outside the PATH sshd gives a command, which is often only /usr/bin:/bin (#344, #263). Commands and log streams now also look in /usr/local/bin (Docker on Synology), /usr/local/sbin, /usr/sbin, /sbin, /opt/bin, /opt/sbin (Entware) and Container Station's folder on a QNAP volume, after the server's own folders. Not yet tried on a real QNAP; Services and Logs there still need systemd, which QTS does not have.
  • Packages → Programs showed an error and no programs on a server without apt, dnf, yum or apk, such as a NAS (#344). Programs now lists what it finds, and Updates and Installed say there is no package manager Davish knows.
  • Logs: a stream that ended with an error, such as journalctl missing on QNAP (#344), said "Something went wrong" instead of the reason.
  • The support log (davish.log) now records when SFTP fails to open, and which log stream ended and why; a report like #344 showed neither.
  • Auto now offers Light when Linux paints the window on the CPU (#360): on the proprietary NVIDIA driver (or with DAVISH_WEBVIEW_GPU=never) WebKitGTK draws without the GPU, but the Auto check timed frames while nothing moved, and those come at the refresh rate on any CPU. So it never offered Light, and the full look stayed on, laggy even on a fast machine. Auto now offers Light whenever the GPU is off, and Check again recommends it.
Tiếng Việt

Thêm

  • Giao diện tiếng Ả Rập, bản xem trước (#345, cảm ơn @uddx7): Cài đặt → Chung → Ngôn ngữ có العربية, và máy dùng tiếng Ả Rập sẽ tự chọn nó ở lần mở đầu tiên. Phần khung, phần giới thiệu ban đầu, các hộp thoại kết nối và một phần Cài đặt cùng các app đã được dịch; phần còn lại vẫn là tiếng Anh. Bố cục chạy từ phải sang trái, còn nội dung Terminal, Editor, biểu đồ và con số vẫn từ trái sang phải. README có bản tiếng Ả Rập.
  • Files: chuột phải thư mục ở thanh bên hoặc thanh đường dẫn để mở nó, mở Terminal tại đó, ghim lên màn hình nền hoặc chép đường dẫn. Thư mục của server khác ở thanh bên cũng có menu này, trừ mục ghim, và Terminal mở trên chính server đó.
  • Terminal trên máy này (#365): nút + trong Terminal giờ mở được thêm tab chạy shell của chính bạn trên máy đang chạy Davish (shell đăng nhập trên macOS và Linux, PowerShell hoặc cmd trên Windows), cạnh các tab của server. Tab này chạy cả khi server chưa kết nối, giữ bảng màu và font, gõ ; hiện các lệnh hay dùng cho mọi server. Khi bật Prompt Davish trong Cài đặt → Terminal, zsh và bash (từ bản 4) ở đây có prompt giống trên server, sau khi đọc file khởi động của bạn. Không gì trong tab này được gửi tới server hay ghi vào Nhật ký lệnh.
  • Lệnh hay dùng ngay trong Terminal (#361): gõ ; trên dòng lệnh là các lệnh đã lưu hiện cạnh con trỏ; gõ tiếp để lọc, chọn bằng ↑↓, Tab hoặc Enter gõ lệnh vào dòng lệnh mà không chạy. Lệnh đã lưu có thể có tên tắt (;dv-log rồi Tab), nhãn để nhóm và lọc, và {{biến}} được hỏi giá trị trước khi gõ. ⌘⇧P / Ctrl+Shift+P tìm lệnh đã lưu ngay từ Terminal, ⌘⇧K / Ctrl+Shift+K lưu đoạn đang chọn thành lệnh; cả hai cũng có trong menu Terminal. Danh sách khi gõ ; tắt được trong Cài đặt → Terminal.
  • zypper trong Packages (#324): trên openSUSE và SLES, Packages giờ liệt kê các gói rpm đã cài và các bản zypper list-updates có thể nâng cấp, và gõ sẵn sudo zypper install, remove, update và refresh vào Terminal; Tất cả server → Cập nhật package chạy sudo -n zypper refresh && sudo -n zypper update trên các server đó. Việc đọc chỉ dùng cache của zypper (--no-refresh), nên lần kiểm tra không bao giờ tải metadata bằng tài khoản của bạn. Bản cập nhật chưa được đánh dấu là bản vá bảo mật: zypper liệt kê chúng dưới dạng patch, không phải gói.
  • Widget RAM (#286): RAM đang dùng bao nhiêu, kèm vòng đo (cỡ nhỏ), hoặc phần đã dùng, cache và còn trống trên một thanh, swap ở dưới (cỡ vừa). Nó đổi sang vàng ở ngưỡng cảnh báo RAM trong Cài đặt → Cảnh báo và đỏ từ 95%, giống Monitor và thanh menu với cài đặt mặc định. Nó dùng chung collector với Monitor: không có lệnh riêng.

Sửa

  • Linux không có keyring: danh sách server không còn hỏng (chưa có issue, tìm ra khi đo hiệu năng): trên máy không có Secret Service, như i3 hay sway không cài gnome-keyring hoặc KWallet, việc đọc xem server có lưu mật khẩu không bị lỗi, và lỗi đó làm hỏng cả danh sách, nên không server nào hiện ra và không kết nối được, kể cả bằng khóa. Giờ Davish vẫn hiện các server như chưa lưu mật khẩu hay passphrase và ghi log một lần lý do. Đăng nhập bằng khóa và agent kết nối bình thường; chỉ đăng nhập cần mật khẩu hay passphrase đã lưu mới báo không đọc được keychain.
  • Packages và Tất cả server → Cập nhật package dùng zypper dist-upgrade trên openSUSE Tumbleweed và Slowroll (#324): openSUSE dạng rolling được nâng cấp bằng dup, còn zypper update ở đó bỏ qua các gói đổi tên, tách gói và đổi vendor mà mỗi snapshot mang tới, nên có thể để hệ thống nửa cũ nửa mới. Giờ Davish đọc ID của hệ thống trong /etc/os-release và gõ sudo zypper refresh && sudo zypper dist-upgrade ở đó; zypper liệt kê những gì sẽ cài, nâng cấp và gỡ, rồi hỏi trước khi làm. Leap và SLES vẫn dùng zypper update.
  • Nginx không còn bảo cài nginx khi nginx chạy trong Docker (#370, #358): trên server không có /etc/nginx mà nginx chạy trong container, app Nginx hiện lệnh cài, và làm theo sẽ chạy một nginx thứ hai tranh cổng 80 và 443 với container. Giờ app báo container nào đang chạy nginx (image nginx, nginx-proxy-manager, nginx-unprivileged) và mở nó trong Docker; Vẫn cài nginx lên server vẫn hiện lệnh cài, cho container không chiếm các cổng đó. Quản lý nginx đó ngay trong app Nginx sẽ có sau.
  • Security → Tường lửa báo lỗi thay vì mở ra khi ufw chưa cài, cần root hoặc chưa có rule: server gửi danh sách rule của ufw là null thay vì một danh sách rỗng, còn tab lại đọc độ dài của nó. Giờ danh sách luôn có, nên tab mở được và hiện "Chưa cài" hay "Cần root" như đúng ra phải thế. Tab Accepted cũng có thể lỗi y như vậy trên server có lịch sử đăng nhập trống, giờ cũng đã sửa.
  • Terminal thỉnh thoảng làm rớt cả kết nối khi đang gõ: hai phím gửi cùng một lúc (gõ nhanh, dán ngay sau một phím) có thể tới thư viện SSH cùng lúc, mà kênh của nó dựng mọi gói tin trong một bộ đệm dùng chung, nên server nhận gói hỏng và cắt kết nối, kéo theo mọi tab và Monitor. Giờ dữ liệu gửi vào terminal đi lần lượt, đúng thứ tự.
  • Cài đặt → Terminal → Bảng màu giờ nói rõ khi bảng màu Davish đang vẽ trên nền đặc vì Tăng tốc GPU hoặc Nền đặc đang bật, và cách lấy lại kính mờ. Trước đây, chọn lại Davish sau một bảng màu khác trông như sai khi đang bật tăng tốc GPU.
  • Tất cả server → Chạy lệnh… không hiện kết quả (#352): tab của mỗi server kết thúc với mã thoát, nhưng phần bên dưới lệnh vẫn trống. Từ khi Tất cả server chuyển sang bố cục giống Docker, phần chạy lệnh nằm trong một trang không kéo giãn nội dung bên trong, nên terminal của nó cao 0 pixel. Giờ terminal lại chiếm hết cửa sổ.
  • Dán vào Terminal trên Linux không có tác dụng (#346): Dán trong menu chuột phải và Ctrl+Shift+V đều báo lỗi NotAllowedError, vì WebKitGTK không cho trang đọc clipboard. Giờ Terminal đọc và ghi clipboard qua chính app, như các app khác vẫn làm. Chưa thử trên Linux thật.
  • Lại hỏi mật khẩu sudo: mỗi khi sudo cần mật khẩu, Davish báo "Đã có lỗi xảy ra." thay vì hỏi, ở Mở bằng sudo, xóa, lưu bằng root, Docker, nginx, cron, Database và Security. Runtime của Wails biến mọi lỗi thành "[object Object]" và làm mất mã lỗi, nên cũng không lỗi nào hiện đúng thông báo của nó; giờ lỗi lại mang theo mã.
  • Mở bằng sudo mở file sẵn sàng để sửa: file mở bằng sudo mà tài khoản SSH không ghi được giờ lưu bằng root ngay (mỗi lần lưu vẫn hiện lệnh trước), thay vì mở ở chế độ chỉ đọc rồi phải bấm Sửa bằng sudo… lần nữa. Mở bằng sudo một file đã mở trong một tab giờ cũng chuyển tab đó, hoặc đọc qua sudo nếu lần đọc thường bị lỗi.
  • Files trên server không có SFTP (#344, QNAP QTS tắt SFTP sẵn) báo "Server chưa được kết nối" dù server đã kết nối. Giờ Files báo SFTP đang tắt và chỗ bật nó (trên QNAP: Control Panel → Network & File Services → Telnet / SSH → Enable SFTP). Mỗi lần mở hỏng còn để lại một phiên SSH, mà sshd chỉ cho 10 phiên mỗi kết nối, nên thử lại nhiều lần có thể chặn mọi ứng dụng của server đó; giờ phiên đó được đóng.
  • Docker và các chương trình khác bị coi là chưa cài khi chúng nằm ngoài PATH mà sshd đưa cho lệnh, thường chỉ là /usr/bin:/bin (#344, #263). Giờ lệnh và luồng log còn tìm trong /usr/local/bin (Docker trên Synology), /usr/local/sbin, /usr/sbin, /sbin, /opt/bin, /opt/sbin (Entware) và thư mục của Container Station trên volume QNAP, sau các thư mục của chính server. Chưa thử trên QNAP thật; Services và Logs ở đó vẫn cần systemd, thứ QTS không có.
  • Packages → Programs báo lỗi và không hiện chương trình nào trên server không có apt, dnf, yum hay apk, như một NAS (#344). Giờ Programs liệt kê những gì tìm thấy, còn Updates và Installed báo server không có trình quản lý gói nào Davish biết.
  • Logs: luồng kết thúc vì lỗi, như thiếu journalctl trên QNAP (#344), báo "Đã có lỗi xảy ra." thay vì lý do.
  • Log hỗ trợ (davish.log) giờ ghi lại khi SFTP không mở được, và luồng log nào kết thúc, vì sao; báo cáo như #344 không thấy được cả hai.
  • Tự động giờ đề xuất mức Nhẹ khi Linux vẽ cửa sổ bằng CPU (#360): với driver NVIDIA độc quyền (hoặc khi đặt DAVISH_WEBVIEW_GPU=never), WebKitGTK vẽ không dùng GPU, nhưng lần kiểm tra của Tự động đo khung hình lúc không có gì chuyển động, và khi đó máy nào cũng đạt đủ tần số làm tươi của màn hình. Vì vậy nó không bao giờ đề xuất Nhẹ, giao diện đầy đủ vẫn bật và giật cả trên máy mạnh. Giờ Tự động đề xuất Nhẹ mỗi khi GPU tắt, và Kiểm tra lại cũng chọn Nhẹ.

Don't miss a new davish release

NewReleases is sending notifications on new releases.