Linux 下 Python 实现按任意键退出
某天在群内有同学问到,在python下我用input或者raw_input都得输入完后回车才能获取到输入的值,那如何实现任意键退出暂停等功能呢,我当时也没有多想,因为接触python时间也不算长,主要还是linux下的。...
View ArticleLEDE ―― 嵌入式 Linux 发行版
OpenWrt社区的一次重启(reboot) LEDE项目是OpenWrt项目的一个衍生(spin-off)并有许多相同的目标。我们正在构建一个嵌入式linux发行版,使它易于被开发者、系统管理员或其他Linux爱好者为嵌入式设备尤其是无线路由器去编译(build)和定制软件。名称LEDE代表Linux嵌入式开发环境(Linux Embedded Development Environment)。...
View ArticleMy Experience with the ESP8266 Making an LED Strip I can Control from my Shel...
IoT is one of those buzzwords that’s been thrown around so much that it’s become largely synonymous with disappointing marketing hype. Still, home automation, in principle at least, has a lot of...
View ArticleHow to Remove CTRL-M characters From a File in UNIX and Linux
I wanted to transfer some files from windows to Unix using FileZilla, but the problem arises when these files are transferred (Ascii or Binary mode both) and opened using VI we get ^M characters, also...
View ArticleExt3日志文件系统简述
当我们修改某个文件时,必然要对相应文件系统上的块进行更新。但是对文件系统块的更新可能因为页高速缓存的影响在内存保留相当长的时间后才刷新到磁盘,此时若发生断电故障或系统崩溃这样的不可预测的时间,可能会导致文件系统处于不一致的状态。文件系统的不一致状态,是指元数据中存储的信息与磁盘实际情况不一致。这个相当长的时间是相对于计算机运行速度来说,事实上也是极短的(通常为1/500...
View ArticleReduce Spotify cache size under Linux
Unfortunately the only option you can change in the settings menu (go to Advanced Settings) is the place of the storage folder, but you can't change the size there. Spotify: cache setting The size...
View ArticleLinux POSIX信号量解决经典进程同步问题
之前我写了一篇博文:操作系统之进程同步,关于多进程(线程)同步的问题,这里我来继续扩展下主题,如何使用信号量来解决进程之间的同步问题,不过我接下来实现还是使用 线程 ,理由很简单我之前说过了。 在Unix/linux上,信号量有2种标准: System V 和 Posix 。我选择了 Posix ,因为它的接口很简单,功能又和 System V 相近。 不过有些情况可以用 互斥体...
View Article九项实例技巧帮您保障Linux服务器安全
【51CTO.com 快译】任何一套关键性系统都需要高度重视服务器安全性,特别是在公有云环境当中。在今天的文章中,我们将专注于基本原理与一般性最佳实践层面对此加以解读。 我在操作系统配置完成之后始终坚持执行的安全改进举措。 让我们以Ubuntu 16.04为例: 1.保持内核随时更新。 环境虽然不应该盲目更新,不过在刚刚安装完成的服务器当中,版本更新一般都能够带来更理想的安全成效。...
View ArticleLinux文件权限之设置用户ID和设置组ID(即SUID和SGID)
linux的文件权限不只有r、w和x,还包括s和t两个比较特殊的权限位,它们与系统的账号和进程有关。 s可以出现在文件拥有者的x权限位上,也可以出现在文件所属组的x权限位上。前者是Set UID,即SUID,后者是Set GID,即SGID。 SUID权限拥有这样的功能: SUID仅对二进制程序有效 执行者对于该程序具有x的可执行权限 执行权限仅在执行程序的过程中有效 执行者将具有该程序拥有者的权限...
View ArticleTest Lab V.8
首先对该站点进行端口扫描,发现打开的端口 然后用目录扫描器分别对HTTP和HTTPS进行扫描,得到以下扫描结果 在HTTP站点存在.git源码泄漏,利用网上的一个工具rip-git,可以把源码down下来,然后在源码里面可以找到HTTP站点的后台登录用户和密码,登录后可以找到SITE的TOKEN CABINET CABINET对应的是HTTPS的站点,通过之前的扫描结果,存在一个API You...
View ArticleWindows Server 2016:腾飞助力还是锁定客户?
ZD至顶网软件频道消息: Microsoft Ignite大会 软件巨头微软将在下周正式发布其下一代服务器平台,但是随着企业客户越来越多地通过云计算获取IT服务,这家公司面临着来自linux日益激烈的竞争。 微软对这种情况的回应是什么?将windows Server 2016中最有用的部分同Software Assurance授权协议捆绑在一起,用这种做法锁定客户。 Windows Server...
View ArticleLinux 2016 发展报告
简评:linux 走过了 25 个年头,已经成为了一种文化的象征,给世界带来了一种新的可能性,来看看 Linux 这 25 年走过的路吧。: ) 为了纪念 Linux 诞生 25 周年,Linux 社区发布了第七版 Linux Kernel 发展报告,全面分析了 Linux 的发展情况。 比如: 目前已经有超过 13,500 名开发者为 Linux Kernel 贡献过代码。...
View ArticleCI with Vexor
Today I’ve configured CI with Vexor formy personal blog . Actually I use Hexo to generate a static site and then upload the generated static content to the remote machine, hosting the blog. Quite...
View Article3 Awesome Themes For Plank, The Linux Dock App
Plank with ‘Numix’ theme (and Corebird with a GTK bug) Plenty of peopleusethe desktop dock Plank on theirlinux desktop ― and for good reason. Related: How To Add an Awesome Dock To Your Ubuntu Desktop...
View ArticleDeploying Docker Containers On A Raspberry Pi Device
Recently I’ve been using a good amount of Docker for various deployment pipelines. As everyone knows, I’m a huge Raspberry Pi fan, so I figured it would be a cool idea to bring the two together. After...
View Article在浏览器上启用Linux、BSD和Live镜像
在浏览器上启用linux、BSD和Live镜像 pigsrollaroundinthem (39396)发表于 2016年09月26日 20时51分 星期一新浪微博分享 人人分享 网易分享 来自略微有点慢部门 2011年,QEMU模拟器项目创始人 Fabrice Bellard 开发了在javascript中运行的模拟器,允许用户在浏览器上启动Linux。这个项目 仍然在继续发展...
View ArticleParrot S.L.A.M Dunk is a Ubuntu & ROS Computer with 3D Depth Cameras for...
Parrot and Canonical have partnered to develop the Parrot S.L.A.M.dunk development kit for the design of applications for autonomous navigation, obstacle avoidance, indoor navigation and 3D mapping...
View ArticleBoot Linux (or OpenBSD Or Oberon Or FreeDOS) In Your Browser
Long-time Slashdot readerDeQueue writes: Back in 2011 Fabrice Bellard, the initiator of the QEMU emulator, wrote a PC emulator in javascript that let you boot linux in your browser . But he didn't stop...
View ArticleIndicator Sound Switcher Makes Switching Audio Devices on Ubuntu a Snap
Indicator Sound Switcher running on the Ubuntu desktop Indicator Sound Switcher is ― no prizes for guessing― a sound input/outputselectorfor the Ubuntu desktop. Many linux desktop environments,...
View ArticleUnimpressed with Ubuntu 16.10? Yakkety Yak... don't talk back
Before I dive into what's new in Ubuntu 16.10, called Yakkety Yak, let's just get this sentence out of the way: Ubuntu 16.10 will not feature Unity 8 or the new Mir display server. I believe that's the...
View Article