Иногда бывает ситуация когда 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
📰Rocket League is adding Easy Anti-Cheat, Psyonix say Linux will still be supported with Proton
Rocket League is set to get Easy Anti-Cheat in April, as the Epic Games owned studio Psyonix just recently announced.Read the full article on GamingOnLinux.
🔗 Source: https://www.gamingonlinux.com/2026/02/rocket-league-is-adding-easy-anti-cheat-psyonix-say-linux-will-still-be-supported-with-proton/
#linux
📰 Bottles 62.0 Adds Dynamic Launcher Portal Support
Bottles 62.0, a Wine prefix manager for running Windows apps on Linux, introduces Dynamic Launcher portal support and adds detailed progress reporting for backups and restore operations.
🔗 Source: https://linuxiac.com/bottles-62-0-adds-dynamic-launcher-portal-support/
#linux
📰 RISC-V In Linux 7.0 Brings User-Space CFI & Optimized strlen Assembly
The RISC-V architecture updates have been merged for Linux 7.0 with a few items to note...
🔗 Source: https://www.phoronix.com/news/Linux-7.0-RISC-V
#linux
📰 CTM360: Lumma Stealer and Ninja Browser malware campaign abusing Google Groups
CTM360 reports 4,000+ malicious Google Groups and 3,500+ Google-hosted URLs used to spread the Lumma Stealer infostealing malware and a trojanized "Ninja Browser." The report details how attackers abuse trusted Google services to steal credentials and maintain persistence across Windows and Linux systems.
🔗 Source: https://www.bleepingcomputer.com/news/security/ctm360-lumma-stealer-and-ninja-browser-malware-campaign-abusing-google-groups/
#linux
📰6 microcontroller projects that used to require a full SBC running Linux
We used to need SBCs for these projects; modern microcontrollers handle them more easily and inexpensively while being easier to maintain.
🔗 Source: https://www.xda-developers.com/microcontroller-projects-used-require-full-sbc-running-linux/
#linux