Иногда бывает ситуация когда dev-сервер по какой-либо причине не закрылся и висит в процессах, занимая порт.
Это может быть из-за падения IDE или просто сам забыл погасить и закрыл терминал.
Для таких случаев я набросал простую функцию с командой:
kill_on_port() {
port=$(lsof -t -i:$1)
echo "KILL PROCESS:" $port
sudo kill -9 $port
}
alias killonport="kill_on_port $@"
Код поместить в ~/.bashrc и рестартнуть систему.
Если во время старта dev-сервера получаете ошибку что порт уже занят, просто выполните команду, подставив свой порт.
Bash
kill_on_port 8000
Скорее всего бесполезно, если другой процесс назначен на перезапуск вашего dev-сервера в случае падения.
Имя команды можете изменить на любое другое.
#linux
#shell#icon_theme#icons#linux#papirus#papirus_icon_theme#papirus_theme#theme
Papirus is a free, open-source icon theme for Linux with over 60,000 icons covering apps, folders, and system elements, available in light, dark, and base variants for different desktop themes. It supports customization like folder color changes, integrates with KDE and GTK themes, and offers easy installation via scripts, PPAs, or third-party packages for most Linux distributions, providing a visually consistent and modern look across your system.
https://github.com/PapirusDevelopmentTeam/papirus-icon-theme
📰ZimaBoard 2: An Interesting Intel-Powered Linux Home Mini Server
For those looking for a low-power, well-built small office / home office Linux server with interesting connectivity options, the ZimaBoard 2 is an interesting option that has been available for some months now and powered by the Intel N150 processor. Besides the interesting single board hardware and well built aluminum chassis, the offering is rounded out by being preloaded with ZimaOS as a Linux-based "personal cloud OS" to easily get hosting...
🔗 Source: https://www.phoronix.com/review/zimaboard2
#intel#linux#linuxbased
標題:MX Linux 中文 Respin
類別:#公開#群組#繁中
分類:#程式#社群#中文圈
標籤:#中文化#自由軟體#作業系統#debian#linux
簡介:Live Debian System 是基於 MX Linux 的使用優化版本,為便於初學之中文使用者學習,使用Xfce桌面環境並優化使用界面,一個隨身碟就可以立即操作毋須安裝。
Krita - a professional FREE and open source painting program
It is made by artists that want to see affordable art tools for everyone.
— concept art
— texture and matte painters
— illustrations and comics
https://krita.org/en/
https://docs.krita.org/en/KritaFAQ.html#license-rights-and-the-krita-foundation
#krita#art#illustrations#comics#painting#program#opensource#linux#windows#mac
📡@NoGoolag📡@Libreware
Для январской Elevation of Privilege (Local Privilege Escalation) - Linux Kernel (CVE-2024-1086) 26 марта вышел write-up и PoC. Видео демка работы скрипта выглядит эффектно: запускают скрипт от обычного пользователя и через пару секунд получают рутовый шелл. ⚡️ По заявлениям автора эксплоит работает с большинством ядер Linux между версиями 5.14 и 6.6, включая Debian, Ubuntu и KernelCTF.
🔻 Эксплойт требует kconfig CONFIG_USER_NS=y; sh command sysctl kernel.unprivileged_userns_clone = 1; kconfig CONFIG_NF_TABLES=y. Автор пишет, что это по дефолту выполняется для Debian, Ubuntu, and KernelCTF, а для других дистрибов нужно тестить.
🔹 Эксплойт не работает на ядрах v6.4> с kconfig CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y (включая Ubuntu v6.5)
NSFOCUS пишет, что Redhat тоже подвержен уязвимости. 🤷♂️
@avleonovrus#nftables#Linux#Vulristics#EoP#LPE#MakeMeRoot#DirtyPagedirectory#NSFOCUS
📰 CachyOS Delivers More Performance Out Of Intel Panther Lake
Most of my Intel Panther Lake benchmarking over the past two months for the new Core Ultra Series 3 hardware has been done with Ubuntu Linux given the pervasiveness of it, especially in the corporate/enterprise space. But for those looking at achieving even greater out-of-the-box Linux performance on Intel Panther Lake, the Arch Linux based CachyOS does a pretty fine job at further advancing the performance.
🔗 Source: https://www.phoronix.com/review/cachyos-panther-lake
#linux#arch#ubuntu#intel
📰 Linux 7.1 Looks To Support Extended Attributes On Sockets For New GNOME & systemd Functionality
While the Linux 7.0 feature merge window ended this past weekend and that next kernel release won't debut as stable until April, there are already features out on the horizon that are being positioned for likely merging into the Linux 7.1 kernel assuming no issues appear or objections raised by Linus Torvalds. One of the features already looking like it will be submitted for Linux 7.1 is supporting extended attributes on sockets...
🔗 Source: https://www.phoronix.com/news/Linux-7.1-Looks-xattrs-Sockets
#linux#systemd#gnome#kernel
📰 CachyOS dethrones Arch as the top desktop distro for Linux gamers on ProtonDB
Gaming on Linux is no longer the joke it used to be. Once relegated to the world of professional use and nothing else, gaming support on the open-source operating system has been gradually growing over the past few years, and it has gotten to the point where some people claim that Linux runs their games better than Windows does.
🔗 Source: https://www.xda-developers.com/cachyos-dethrones-arch-as-the-top-desktop-distro-for-linux-gamers-on-protondb/
#linux#opensource#distro#arch
📰 Gentoo-Based Redcore Linux Hardened 2601 Released with Kernel 6.19
Redcore Linux Hardened 2601 Vulpecula has been released, featuring Linux kernel 6.19, FFmpeg 8, and updates to the Sisyphus package manager.
🔗 Source: https://linuxiac.com/gentoo-based-redcore-linux-hardened-2601-released-with-kernel-6-19/
#ffmpeg#kernel#linux