Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Browsing all 11063 articles
Browse latest View live

Android Things系统体验

Google年底突然发布Android Thing生态系统,还有一堆芯片公司站台。公布的已支持硬件里面,能买到的只有intel和rasperry pi开发板了,IMX6的基本无货。本文先以Raspberry Pi3B作为开发板,体验Android Things系统,并运行官方例程。 Android Things 官网 具体的镜像或工具,直接从官网下载就可以了。 下载Raspberry...

View Article


Image may be NSFW.
Clik here to view.

PS4 hack: Fail0verflow demonstrate Linux and Steam running on Firmware 4.05

Marcan42 ofFail0verflow fame was at the CCC33 event this year, to explain how Fail0verflow exploited the PS4 hardware in order to run linux on the PS4. The presentation goes back to all the pain the...

View Article


Image may be NSFW.
Clik here to view.

Our 2016 in Review

2016 has gone by in a flash! So in a similar style, we’d like to give a quick rundown of some of the things our team accomplished this year, complete with links to all the original articles! Photo by...

View Article

Image may be NSFW.
Clik here to view.

Siemens Desigo PX Web Modules 无效熵漏洞(CVE-2016-9154)

Siemens Desigo PX Web Modules 无效熵漏洞(CVE-2016-9154)发布日期:2016-12-26更新日期:2016-12-26受影响系统:Siemens Desigo PX Web Modules描述: BUGTRAQ ID: 94962CVE(CAN) ID: CVE-2016-9154Siemens Desigo PX Web...

View Article

Image may be NSFW.
Clik here to view.

The Beginner’s Guide to Scripting on Linux

Have you ever wanted to learn “scripting” in linux? Making them is easier than you might think. Sometimes scripts (often referred to as shell or bash scripts) are real programs with complicated code...

View Article


Linux的chattr与lsattr命令详解

=Start= 缘由: 文件系统的安全是linux系统加固中很重要的一部分,这里记录一下用chattr和lsattr命令保护文件安全的用法。 正文: 参考解答: 有时候你发现用root权限都不能修改某个文件,大部分原因是曾经用chattr命令锁定该文件了。chattr命令的作用很大,其中一些功能是由Linux内核版本来支持的,不过现在生产环境中绝大部分跑的Linux系统都是2.6以上内核了。...

View Article

Image may be NSFW.
Clik here to view.

Portable Minimal Emacs Clone For Linux

I have the benefit of working in an organization that provides quite a bit of autonomy, but even still the life of a programming inside of a fortune 500 company means I'm going to be editing text...

View Article

Image may be NSFW.
Clik here to view.

Linux入门教程(四)文件与目录管理

第六章 linux 文件与目录管理 在 linux 中什么是一个文件的路径呢,说白了就是这个文件存在的地方,例如在上一章提到的 /root/.ssh/authorized_keys 这就是一个文件的路径 。 如果你告诉系统这个文件的路径,那么系统就可以找到这个文件 。 在 linux 的世界中,存在着绝对路径和相对路径 。 绝对路径 :路径的写法一定由根目录 ”/” 写起,例如...

View Article


Image may be NSFW.
Clik here to view.

Linux入门教程(五)linux系统用户以及用户组管理

第七章 linux 系统用户以及用户组管理 【 认识 /etc/passwd 和 /etc/shadow】 这两个文件可以说是 linux 系统中最重要的文件之一 。 如果没有这两个文件或者这两个文件出问题,则你是无法正常登录 linux 系统的 。 /etc/passwd 由 ’:’ 分割成 7 个字段,每个字段的具体含义是: 1 )用户名(如第一行中的 root...

View Article


Image may be NSFW.
Clik here to view.

Linux入门教程(六)linux磁盘管理

第八章 linux 磁盘管理 【 查看磁盘或者目录的容量 df 和 du 】 df 查看已挂载磁盘的总容量 、 使用容量 、 剩余容量等,可以不加任何参数,默认是按 k 为单位显示的 df 常用参数有 i -h -k m 等 -i 使用 inodes 显示结果 -h 使用合适的单位显示,例如 G -k -m 分别为使用 K , M 为单位显示 简单介绍一下,你看到的相关数据 。Filesystem...

View Article

Alexa, is she the new PFY?

As I take a break from my day job over the holiday season, I often turn to projects that I can use to improve my knowledge or home network; sometimes like this time I achieve both (or should that...

View Article

issue #61: Btrfs, Syncthing, Parallel, Rootkit, Kubernetes, Container...

Happy new year cron.weekly readers! It’s january 1st, 2017 and this is probably the first newsletter to arrive in your inbox in 2017. My wishes for your new year: may your favourite abandoned open...

View Article

Image may be NSFW.
Clik here to view.

“Shell教程”

这里的 shel l脚本指的 bash 脚本。 如果你新建的是 test.sh,如果想运行这个 sh。你需要执行 ./test.sh而不是 test.sh。 运行其它二进制的程序也一样,直接写 test.sh,linux 系统会去PATH里寻找有没有叫test.sh的,而只有 /bin, /sbin, /usr/bin,/usr/sbin 等在 PATH 里,你的当前目录通常不在 PATH...

View Article


Linux内核调试技术之修改内核定时器来定位系统僵死问题

1.简介 在内核调试中,会经常出现内核僵死的问题,也就是发生死循环,内核不能产生调度。导致内核失去响应。这种情况下我们可以采用修改系统内核中的系统时钟的中断来定位发生僵死的进程和函数名称。因为内核系统系统时钟采用的是硬件中断的形式存在,所以,软件发生僵死的时候,系统时钟照样会发生中断。 1.1、我们在命令行输入:# cat /proc/interrupts # cat...

View Article

Linux内核调试技术之printk

1、简介(基于s3c2440 linux) 在内核调试技术之中,最简单的就是printk的使用了,它的用法和C语言应用程序中的printf使用类似,在应用程序中依靠的是stdio.h中的库,而在linux内核中没有这个库,所以在linux内核中,使用这个printk就要对内核的实现有一定的了解。...

View Article


Image may be NSFW.
Clik here to view.

Linux内核调试技术之自构proc

1、简介 在上一篇中,在内核中使用printk可以讲调试信息保存在log_buf缓冲区中,可以使用命令 #cat /proc/kmsg 将缓冲区的数区的数数据打印出来,今天我们就来研究一下,自己写kmsg这个文件,我们取名叫做 mymsg。 2、查看内核中 /proc/kmsg怎么写的! 在Proc_misc.c (fs\proc) 文件中: void __init...

View Article

Linux Block Driver - 7

1. 背景 本系列文章整体脉络回顾, linux Block Driver - 1 介绍了一个只有 200 行源码的 Sampleblk 块驱动的实现。 Linux Block Driver - 2 中,在 Sampleblk 驱动创建了 Ext4 文件系统,并做了一个 fio 顺序写测试。 测试中我们利用 Linux 的各种跟踪工具,对这个 fio 测试做了一个性能个性化分析。 Linux...

View Article


脚本编程部分_第十周练习

Q1:写一个脚本: (1) 能接受四个参数:start, stop, restart, status;start: 输出“starting 脚本名 finished.”其余参数类似; (2) 其它任意参数,均报错退出; #!/bin/bash#read -p "The following choices can be allowed.[start/stop/restart/status]"...

View Article

Image may be NSFW.
Clik here to view.

创建 redis systemd 服务

服务器操作系统一直使用的是 ubuntu server,因为安装软件很方便,直接 apt-get install 就行。但使用 apt 安装 redis 版本比较旧,也没有新的源,所有只能自己编译安装了。不过有个问题,自己编译安装的启动和重启比较麻烦(启动:/usr/bin/redis-server /etc/redis/redis.conf,停止:/usr/bin/redis-cli...

View Article

Image may be NSFW.
Clik here to view.

揭秘Linux(三)

揭秘linux(三) 一点号Linux运维黑匣子22分钟前 经过前面的操作系统引导以及如何分区后接下来将是安装了。Linux有很多的发行版本,但是总结下来主要有两个分支一个是Red Hat系列,另一个是Debian系列。当然还有SUSE等。在这里就不深究Linux的发行版本,目前在国内服务器端大部分使用的是Red Hat系列的Linux,而在PC领域Debian系列偏多,所以在这里我将使用Red...

View Article
Browsing all 11063 articles
Browse latest View live