Иногда бывает ситуация когда 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
📰 EndeavourOS Titan released, devs comment on age verification laws
The Arch-based Linux distribution EndeavourOS Titan is out now, bringing with it plenty of nice sounding upgrades and some comments on age verification.Read the full article on GamingOnLinux.
🔗 Source: https://www.gamingonlinux.com/2026/03/endeavouros-titan-released-devs-comment-on-age-verification-laws/
#linux#arch
📰 Manjaro Linux looks like it's in trouble with the release of the "Manjaro 2.0 Manifesto"
At one point it seemed like Manjaro Linux would be the most popular Arch-based distribution, but after many missteps it appears to be at breaking point.Read the full article on GamingOnLinux.
🔗 Source: https://www.gamingonlinux.com/2026/03/manjaro-linux-looks-like-its-in-trouble-with-the-release-of-the-manjaro-2-0-manifesto/
#arch#linux
📰 How to Install Linux Kernel 7.0 on Ubuntu 25.10
You can now install the latest and greatest Linux 7.0 kernel series on your Ubuntu 25.10 distribution. Here’s how to do it!
🔗 Source: https://9to5linux.com/how-to-install-linux-kernel-7-0-on-ubuntu-25-10
#kernel#linux#ubuntu
📰 elementary OS 8.1.1 Released With Linux kernel 6.17
elementary OS 8.1.1 arrives with Linux kernel 6.17 and the latest Ubuntu 24.04 LTS Hardware Enablement stack.
🔗 Source: https://linuxiac.com/elementary-os-8-1-1-released-with-linux-kernel-6-17/
#ubuntu#linux#kernel
📰 Ubuntu 24.04.4 LTS released with Linux 6.17 + Mesa 25.2
Ubuntu 24.04.4 LTS is now available to download. This fourth point release brings the Linux 6.17 HWE kernel and Mesa 25.2 graphics stack for better hardware support.You're reading Ubuntu 24.04.4 LTS released with Linux 6.17 + Mesa 25.2, a blog post from OMG! Ubuntu. Do not reproduce elsewhere without permission.
🔗 Source: https://www.omgubuntu.co.uk/2026/02/ubuntu-24-04-4-lts-released
#linux#kernel#ubuntu
#今天又看了啥#security#提权#Linux#GitHub
The Dirty Pipe Vulnerability CVE-2022-0847
a vulnerability in the Linux kernel since 5.8 which allows overwriting data in arbitrary read-only files. This leads to privilege escalation because unprivileged processes can inject code into root processes.
It is similar to CVE-2016-5195 “Dirty Cow” but is easier to exploit.
The vulnerability was fixed in Linux 5.16.11, 5.15.25 and 5.10.102.
又一个 Linux kernel 本地提权,可覆盖重写任意只读文件中的数据,从而可将普通权限的用户提升到特权 root
影响范围 >=5.8, <5.16.11, 5.15.25 and 5.10.102
https://dirtypipe.cm4all.com/
See also:
- Easily exploitable Linux bug gives root access to attackers (CVE-2022-0847)
POC & Exploit:
- https://github.com/Arinerron/CVE-2022-0847-DirtyPipe-Exploit/
- https://github.com/imfiver/CVE-2022-0847/
(以上的原理是把 /etc/passwd 文件中 root 用户需要密码的 x flag 去掉
- https://haxx.in/files/dirtypipez.c
(原理是直接覆写一个带有 SUID 权限的程序,如 ./exp /usr/bin/su
This is Probably the Best Video Downloader App (And it is Free and Open Source) | itsFOSS
VidBee allows you to download videos from YouTube, Facebook, X, Instagram, etc. In fact, it supports over 1,800 websites.
It is built on top of popular command line tools like yt-dlp and #ffmpeg. For the interface, it uses the Electron framework. I understand that some people dislike Electron framework as it runs a web browser underneath, but the 'advantage' of this framework is that you get the same interface in all the operating systems. At least, it's an advantage for the developers as they don't have to build the interface separately for #Linux, #Windows and #macOS.
The source code for VidBee is available on its GitHub repository.
#VidBee - Free Open Source Video Downloader
https://vidbee.org/
[$] The future for Tyr
Tyr 团队在 2025 年初时,为 Arm Mali 硬件开发 Rust GPU 驱动的工作进展甚微。但到年底,他们已在 Linux Plumbers Conference 上成功运行了开源 3D 赛车游戏 SuperTuxKart。该原型由 Arm、Collabora 和 Google 合作开发,在会议期间运行稳定,性能足以满足游戏需求。
这一进展恰逢其时:Dave Airlie 在维护者峰会上宣布,DRM 子系统将在大约一年后禁止新的 C 语言驱动程序,并要求使用 Rust。因此,团队现在需要为 2026 年制定路线图,以期将所有工作整合到上游内核中。
原文链接:https://lwn.net/Articles/1055590/
#Linux#内核开发#Rust#GPU驱动
#AIGC
Read more
[$] Asterinas: a new Linux-compatible kernel project
中国南方科技大学团队开发了名为Asterinas的新型Linux兼容内核项目。该项目采用Rust语言编写,基于"框架内核架构"设计理念,试图融合单体内核与微内核的优势。
Asterinas与Rust for Linux项目有部分目标重叠,但采取了不同的技术路线。该项目保持与Linux ABI兼容,旨在通过Rust语言的安全特性提升系统可靠性。
原文链接:https://lwn.net/Articles/1022920/
#Linux#操作系统#Rust#内核开发#开源项目
#AIGC
Read more