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

Image may be NSFW.
Clik here to view.

[Linux编程学习笔记]Linux多线程学习[1] - 线程的创建和基本控制

文章系列原因 2017年年初,我给自己定了一个小小的目标:学习linux编程,并通过网络来分享自己的学习心得。为了完成这个小小的目标,我开始用通过写文章来记录我的学习心得,希望在年底时,我能完成24篇Linux相关的学习文档,以实现我这个小小的目标。这是这个系列的第一篇文章,是我对最近学习Linux多线程的总结。 什么是线程 我们来看看维基百科是如何对线程进行定义的:...

View Article


Image may be NSFW.
Clik here to view.

How to install and enable memcached on Ubuntu and CentOS

Image: Jack Wallen Memcached is a caching system that temporarily stores information that would normally be used by a database, in memory. With this in place, in-memory transactions become incredibly...

View Article


Linux下守护进程的C语言实现

=Start= 缘由: 以后可能要用C语言写一个daemon程序(守护进程)运行在服务器上,以进行一些信息收集的工作。之前只是简单知道什么是守护进程,但对于一些细节以及该如何编写都不太清楚,所以需要先学习、准备一下。 正文: 参考解答: 守护进程(Daemon)是什么? 守护进程,也即通常所说的 Daemon 进程, 是 linux...

View Article

Linux下守护进程的Golang语言实现

=Start= 缘由: 以后可能要用Golang语言写一个daemon程序(守护进程)运行在服务器上,以进行一些信息收集的工作。之前只是简单知道什么是守护进程,但对于一些细节以及该如何用Golang进行编写都不太清楚,所以需要先学习、准备一下。 正文: 参考解答: ……待补充…… package main import ( "fmt" "log" "os" "os/signal" "runtime"...

View Article

Image may be NSFW.
Clik here to view.

Linux的进程状态

=Start= 缘由: 补充一些基础的linux系统知识。 正文: 参考解答: 进程状态 为了弄明白正在运行的进程是什么意思,我们需要知道进程的不同状态。一个进程可以有几个状态(在Linux内核里,进程有时候也叫做任务)。 下面的状态在 fs/proc/array.c 文件里定义: /* * The task state array is a strange "bitmap" of *...

View Article


CentOS环境下rsync的配置和使用

=Start= 缘由: 需要给其它组的同事提供审计日志的安全存储功能,安全存储一方面是保证日志的安全和不可篡改,另一方面就是保证日志的不可丢失。保证日志的安全和不可篡改咱们以后再说,这里主要说一下如何保证日志的不可丢失的方法――异地备份,主要用到的是rsync在不同机器之间进行审计日志的异地备份存储,以防止在一台机器宕掉的情况下审计日志不丢失。 正文: 参考解答: 什么是rsync...

View Article

Image may be NSFW.
Clik here to view.

PlayStation 4刷新GPU固件之后可运行Vulkan与Linux 4.10 RC2

去年,在PlayStation 4上使用4.05版固件运行linux和Steam之后,fail0verflow团队的Hector Martin刚刚在今天早些时候发布了一个大消息, Vulkan在PS4上运行 。现在,只有一个截图,如下所示,PlayStation 4运行Vulkan与Linux 4.10 RC2内核和AMD专为Linux操作系统推出的AMDGPU-PRO...

View Article

Image may be NSFW.
Clik here to view.

Kodi and ALSA on Fedora 25

My hardware configuration is Kodi HTPC connected to TV HDMI and HiFi stereo with analog input. Kodi is running as a standalone app so ALSA is preferred over PulseAudio (plus some other advantages). And...

View Article


CentOS7 安装Docker

1 使用 yum 安装 Docker yum install -y docker-io 2 启动 Docker service docker start 接下来执行一下 docker ps ,会列出正在运行中的 docker 容器,当然,因为我们现在没有容器,列表只有表头。 3 安装 Docker 镜像 docker run ubuntu Docker 会自动去仓库下载最新版本的 ubuntu...

View Article


CentOS 7.3 (1611) Linux Distro Officially Released for ARM64/AArch64 Machines

CentOS developer Jim Perrin reports on January 4, 2017, the release and general availability of the CentOS linux 7.3 (1611) operating system for AArch64/ARM64 machines. CentOS Linux 7.3 (1611) is based...

View Article

Apache访问日志access.log按天归档

问题: Apache访问日志access.log文件记录数会一直递增,文件大小一直变大;当达到一定大小后,会导致效率问题; 解决方案: Apache访问日志access.log按天归档,每天自动生成一个新的access.log日志,避免单个文件过大导致效率问题; 具体步骤如下: OS:windows Server 2008...

View Article

Image may be NSFW.
Clik here to view.

Ted Gould: Snapping Unity8

For the last little while we’ve been working to snap up Unity8 . This is all part of the conversion from a system image based device to one that is entirely based on snaps. For the Ubuntu Phones we...

View Article

Image may be NSFW.
Clik here to view.

FCN网络的训练――以SIFT-Flow 数据集为例

caffe的安装配置,以及fcn的使用在我前边的文章当中都已经提及到了,这边不会再细讲。在下边的内容当中,我们来看看如何使用别人提供的数据集来训练自己的模型!在这篇文章之后,我计划还要再写如何fine-tune和制作自己的数据集,以及用自己的数据集fine-tune。 Caffe 深度学习入门教程 http://www.linuxidc.com/Linux/2016-11/136774.htm...

View Article


Image may be NSFW.
Clik here to view.

Music recording on CentOS 7 DAW

There was something that was on my (private) TODO list for quite some time now : being able to record music, mix and output a single song from multiple recorded tracks. For that you need a Digital...

View Article

Image may be NSFW.
Clik here to view.

Kernel 4.8.7 & Realtek Wireless - Fedora report

Updated: January 6, 2017 Several weeks ago, I happily informed you that it would appear, barring any special corner cases, that the long-standingproblem of random disconnects on laptopswith the...

View Article


Search And Browse Stack Overflow Website From Commandline

Stack Overflowis one of the well-known and prominent online community website for Programmers to learn and share their knowledge with millions of users around the world. Also, It is my preferred...

View Article

Image may be NSFW.
Clik here to view.

Linux字符设备驱动模型之点亮LED灯

linux字符设备驱动模型之点亮LED灯 一点号云汉电子社区3天前 在前面的文章中,已经描述了整一个字符设备模型,那现在,可以来使用相应的模型进行操作硬件设备了。那么,从点亮一个LED灯开始。1.理论基础 大部分驱动程序除了需要提供读写设备的能力外,还需要具备控制设备的能力。比如设置UART波特率这样的操作。...

View Article


Image may be NSFW.
Clik here to view.

Linux文件类型发布啦!

linux文件类型发布啦! 7小时前来源:CSDN博客 linux(技术干货)(201)导读在windows下面是通过文件的扩展名来区分文件类型的,但是在linux中却不是这儿样的。在linux中就没有所谓的文件扩展名,一个linux文件能不能被执行时取决于它的属性中是否有x,与文件名一点关系都没有。一般我们所看到的文件扩展名只是为了给我们用户自己看的。一、Linux文件类型是如何进行区分的呢?...

View Article

Image may be NSFW.
Clik here to view.

How to assign a grep command value to a variable in Linux/Unix

H ow do I store grep command output in shell variable? What is the syntax to store the command output into a variable in linux or Unix? You can use the grep command for any given input files,...

View Article

Image may be NSFW.
Clik here to view.

How to change MAC address using macchanger on Kali Linux

Objective The objective is to change or fake an original network card's hardware MAC address. The following article will show how to change MAC address using macchanger on Kali linux. Requirements...

View Article
Browsing all 11063 articles
Browse latest View live