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

Image may be NSFW.
Clik here to view.

How to Add External Storage to ownCloud 9

OwnCloud is a server software for data synchronization and file sharing with an easy to use web-based frontend that is available under an open source license. Owncloud can be installed on a linux or...

View Article


Image may be NSFW.
Clik here to view.

linux文件类型

一、linux下面所有东西都是文件,既然是文件那么这些文件类型又是如何进行区分的呢??? 在windows下面是通过文件的扩展名来区分文件类型的,但是在linux中却不是这儿样的。在linux中就没有所谓的文件扩展名,一个linux文件能不能被执行时取决于它的属性中是否有x,与文件名一点关系都没有。一般我们所看到的文件扩展名只是为了给我们用户自己看的。...

View Article


docker在systemd下的配置问题

问题说明 最近在debian8上装了个docker,但是因为存储空间的问题,需要把docker的存放路径改一下。按照官方文档的说法,只要修改/etc/default/docker里的DOCKER_OPTS,加上-g参数即可: DOCKER_OPTS="-g /path/to/dockerdata"...

View Article

Image may be NSFW.
Clik here to view.

Devuan Linux explained

Hello guys, welcome to 13th segment of " Introduction with linux Distro " . Today we have a Debian based distro as our guest . Devuan Linux is new to the Linux world. It can be a good lightweight...

View Article

Using rkt on my Fedora servers

Many of you already know that I moved all my web applications into containers on Fedora Atomic image based hosts. In the last few weeks, I moved a few of them from Docker to rkt on Fedora 25. I have...

View Article


在ubuntu 16.04下编译openjdk8

JDK源码 版本为 openjdk-8-src-b132-03_mar_2014 。 编译环境 内核版本 uname -alinux jackie-MXC061 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:05 UTC 2016 i686 i686 i686 GNU/Linux Ubuntu版本 cat /proc/versionLinux...

View Article

磁盘分区,raid,lvm,脚本编程_第七周练习

Q1:创建一个10G分区,并格式为ext4文件系统; (1) 要求其block大小为2048, 预留空间百分比为2, 卷标为MYDATA, 默认挂载属性包含acl; [root@promote ~]# fdisk /dev/sdb #将/dev/sdb进行分区操作;Device contains neither a valid DOS partition table, nor Sun, SGI or...

View Article

Image may be NSFW.
Clik here to view.

KALI LINUX安装Metasploitable 3

为了满足你们强烈的欲望,这里就再介绍一下KALI linux 最新版环境下安装Metasploitable 3的步骤吧,不要在虚拟机中再安装虚拟机,否则可能会识别不了BIOS中的VT-X是否开启,我这KALI LINUX 64位是直接安装在电脑上的。 1、安装virtualbox virtualbox安装的姿势很多,kali之前的版本是可以通过apt-get install...

View Article


如何限制一个用户的磁盘限额(quota)4步 [我是小白]

很多时候,我们可能需要限制某个用户可以使用的磁盘的大小,也就是我们常说的quota, 如何设置用户的磁盘配额呢? 只需要如下4步 1:激活(打开)磁盘配额功能 首先,我们要确定我们打开/etc/fstab ,编辑加入相关的参数 # cat /etc/fstab LABEL=/home/homeext2defaults,usrquota,grpquota1 2 这样的话我们的 /home...

View Article


Issues with Vagrant after upgrading to Fedora 25

Fedora 25 was released over a month ago, so I decided it was time to upgrade from 24. Using the dnf plugin system-upgrade the entire process went smooth. The Fedora Magazine, as always, has a nice...

View Article

FTP_Manager : A Simple Script To Install And Manage FTP Server In CentOS

Today, I have stumbled upon a script called FTP_Manager , created by a fellow linux user Mr.Janakiram Suragani . This script can be used by budding Linux system administrators to easily install and...

View Article

在 CentOS 6.8 上安装 Python 2.7

CentOS 是使用最普遍的服务器端 linux 发行版,其主要原因还是因为 RedHat 公司出品的 RHEL 享誉盛名。很多公司目前使用的主要就是 CentOS 6.x 版本的操作系统。其实我个人不是很喜欢这个发行版,当然用了这么多年也不讨厌就是了。所以,一般朋友问我服务器装什么系统,如果对方完全不懂行的话,我会建议安装...

View Article

Image may be NSFW.
Clik here to view.

Why is my NTP server costing $500 per year? Part 1 (2014)

Our recent monthly Amazon AWS bills were much higher than normal―$40dollars higher than normal. What happened? We investigated and discovered our public NTP server was heavily loaded. Over a typical...

View Article


正则表达式应用

1、复制/etc/skel目录为/home/tuser1,要求/home/tuser1及其内部文件的属组和其它用户均没有任何访问权限。 cp -a /etc/skel /home/tuser1 chmod g-x /home/tuser1/ chmod o-x /home/tuser1/ 2、编辑/etc/group文件,添加组hadoop。...

View Article

Image may be NSFW.
Clik here to view.

Set operations in unix shell (2008)

A while ago I wrote about how I solved the Google Treasure Hunt Puzzle Nr. 4 about prime numbers. I took an unusual approach and solved this problem entirely from the Unix shell. The solution involved...

View Article


Image may be NSFW.
Clik here to view.

初识linux的三个时间

1.从命令看时间 在linux下,我们可以去查看一个文件的三个时间,比如:对于test.c文件我们可以查看时间,使用命令 stat查看 stat test.c 在这里我们得到以下信息。 通过上述信息,我们可以看到有许多信息,接下来,对于这三个时间,我们进行一番讲解。 2.深入理解三个时间 atime(Access...

View Article

Image may be NSFW.
Clik here to view.

Basics of Making a Rootkit: From syscall to hook!

WARNING: This tutorial is for educational purposes only, and by NO MEANS should you actually be malicious when (or after) making a rootkit. I thought I'd share how to do this for any security minded...

View Article


Image may be NSFW.
Clik here to view.

每天一个linux命令(9):touch 命令

(点击 上方公众号 ,可快速关注) 来源 : peida 链接:http://www.cnblogs.com/peida/archive/2012/10/30/2745714.html linux的touch命令不常用,一般在使用make的时候可能会用到,用来修改文件时间戳,或者新建一个不存在的文件。 1.命令格式: touch[选项]...文件... 2.命令参数:...

View Article

Image may be NSFW.
Clik here to view.

MMC/SD/SDIO介绍

1. 前言 熟悉linux kernel的人都知道,kernel使用MMC subsystem统一管理MMC、SD、SDIO等设备,为什么呢?到底什么是MMC?SD和SDIO又是什么?为什么可以用MMC统称呢? 在分析Linux kernel的MMC subsystem之前,有必要先介绍一些概念,以便对MMC/SD/SDIO有一个大致的了解,这就是本文的目的。 2. 基本概念...

View Article

cryptsetup basics

Talking about encryption in the previous post, I realized there are a few details I keep having to look up. This is a collection of the Frequently Asked Questions about cryptsetup formatting and...

View Article
Browsing all 11063 articles
Browse latest View live