Implementing tail's follow in Go
tail is a command most of us are familiar with. And I would assume you are also familiar with the -f option that it exposes. And to those that aren’t familiar it prints out the last few lines of a...
View Articletimeout 命令
命令简介 运行指定的命令,如果在指定时间后仍在运行,则杀死该进程。用来控制程序运行的时间。 使用方法 timeout [选项] 数字[后缀] 命令 [参数]... 后缀 s 代表秒(默认值), m 代表分, h 代表小时, d 代表天。 选项详解 长选项必须使用的参数对于短选项时也是必需使用的。 -s, --signal=信号 指定在超时时发送的信号。信号可以是类似"HUP"的信号名或是信号数。...
View Articlesetterm 防止黑屏
https://unix.stackexchange.com/questions/8056/disable-screen-blanking-on-text-console 防止黑屏 setterm -blank 0 -powersave off # cat /sys/module/kernel/parameters/consoleblank 名字 setterm - 设置终端属性 概要...
View ArticleWindows Server 2019 Includes OpenSSH
The OpenSSH client and serverare now available as a supported Feature-on-Demand in windows Server 2019 and Windows 10 1809! The Win32 port of OpenSSH was first included in the Windows 10 Fall Creators...
View ArticleSix-port network appliance runs Linux on Atom C3558
Acrosser’s compact “AND-DNV3N2” networking appliance runs linux on a quad-core, 2.2GHz Atom C3558 and offers a SATA-III bay, 2x mini-PCIe and USB 3.0 ports, and 6x GbE ports, two of which can be...
View ArticleFind all ancestors and children in a process
I need to write a recursive function that will take a PID and find its parent, ancestors, and children. I wrote this, but it doesn't seem to work. This function is only for the ancestors of the process...
View ArticleWindows Server 2019 officially supports OpenSSH for the first time
Back in 2015,Microsoft said it would build OpenSSH, a set of utilities that allow clients and servers to connect securely, into windows, while also making contributions to its development. Since then,...
View ArticleFor now, the experimental Linux (and Mac) port of ARMA 3 will not see any...
Sad news for those who purchased ARMA 3 due to the experimental linux (and Mac)version, as Bohemia Interactive have announced a halt to the updates for it. As a reminder,Bohemia Interactive teamed up...
View ArticleMiniature rt-ai Edge node and inference engine
I wanted a small and portablert-ai Edge node using the Neural Compute Stick for demos and decided to base it on a Gigabyte BRi7H-8550 compact PC as it is the lowest cost, smallest footprint, device...
View ArticleEffective foreground services on Android
Posted by Keith Smyth This is the fourth in a series of blog posts in which outline strategies and guidance in Android with regard to power. A process is not forever Android is a mobile operating...
View ArticleCompiz: Ubuntu Desktop's little known best friend
The default GNOME desktop in Ubuntu is functional, but also pretty unfulfilling . TL;DR Compiz can quickly get you the desktop you deserve: a desktop with a very high degree of customizability, on top...
View ArticleWindows Server 2019 内置 OpenSSH
微软官方博客 宣布 ,windows Server 2019 和 Windows 10 1809 内置 OpenSSH 客户端和服务器版。微软称 OpenSSH 是系统支持的按需功能。SSH 是 linux 上流行的远程访问和管理工具,Windows 此前没有相比拟的类似简单工具。微软早在 2015 年就宣布 Windows 将原生支持 SSH,去年发布的 Windows 10 Fall...
View ArticleNeuroFedora update: week 49
NeuroFedora logo by Terezahl from the Fedora Design Team In week 49: python-chaospy was pushed to stable and is ready to use. python-pynwb was pushed to stable and is ready to use. python-mne-bids was...
View ArticleLinux - Do you recursively move through directories?
Let's say I am in the directory /home/videos and want to iterate recursively through all of the directories underneath it. If the directory name contains "images" I want to delete the directory and all...
View Article测者的性能测试手册:快速安装LoadRunner Linux上的Generator
安装和初始化 安装包 上传linux.zip(LoadRunner Generator for Linux.zip,后台回复loadrunner获取下载地址),然后通过如下命令: unzip Linux.zip chmod -R 777 Linux cd Linuxsh installer.sh复制代码 运行起来安装程序后,一直下一步后完成。 添加一个用户 useradd -g 0 test 或者...
View Article使用swapfile来休眠
最近deepin要添加休眠功能,但是之前测试的通过swapfile来休眠失败了,所以对正在使用swap分区的用户提供休眠功能。但是昨天我在askubuntu上看到有人发了在ubuntu下通过swapfile休眠的方案,今天试了一下,效果良好,觉得可以考虑给deepin也加上这样的功能。 原文链接: Hibernate and resume from a swap file...
View ArticleUse .iso and Kickstart files to automatically create VMs
I was looking for a way to automate the creation of VMs for testing various distributed system / cluster software packages. I’ve used Vagrant in the past but I wanted something that would: Allow me to...
View ArticleTL-MR3020 NTP server, part 2
Part 1 was about the hardware, now for the software Step 1: pps-gpio-poll package This architecture doesn't support device tree yet, so it has a special pps driver. The repo for the driver package is...
View ArticleNotes about hacking with drop tools
In this report, Kasperky found Eastern European banks hacked with Raspberry Pis and “Bash Bunnies” ( DarkVishnya ). I thought I’d write up some more detailed notes on this. Drop tools A common...
View ArticleHigh resolution wheel scrolling on Linux v4.21
Disclaimer: this is pending for v4.21 and thus not yet in any kernel release. Most wheel mice have a physical feature to stop the wheel from spinning freely. That feature is called detents, notches,...
View Article