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

Image may be NSFW.
Clik here to view.

Osmocom-BB项目(含大部分错误解决方法)

测试环境: VM 虚拟机 Ubuntu 64 (有个 kali 1.0.9 ) 打开新的终端都用 root 权限来执行命令: sudo -i 我的目录路径位: /home/seeu/ 一 . 安装编译 osmocomBB 所需的软件包: aptitude install libtool shtool autoconf git-core pkg-config make gcc apt-get...

View Article


Image may be NSFW.
Clik here to view.

Byobu 指南

如果你觉得 tmux 或者 screen 的快捷键设置反人类,那么 Byobu 就是一个让你重新热爱终端的理由。 作为一个黄金分段的 tmux 选手,在背熟了各种快捷键之后,就形成了一种惰性,懒得尝试新工具了。但是 byobu 绝对是一个值得尝试的『神器』,可以认为是 tmux 加上了一个靠谱的产品经理,各种功能和界面的设计都友好了很多,接下来就简要来说说如何使用。 安装 借助包管理器,安装...

View Article


Beginning Grep for Linux SysAdmins

GNU grep is an amazing power tool for finding words, numbers, spaces, punctuation, and random text strings inside of files, and this introduction will get you up and running quickly. We'll stick to GNU...

View Article

Image may be NSFW.
Clik here to view.

Lenovo denies deliberately blocking Linux on Windows 10 PCs

The Lenovo 900 Yoga laptop. Image: Lenovo Lenovo has denied that it is deliberately blocking linux-based operating systems from being installed on windows 10 laptops. Multiple owners of the Lenovo Yoga...

View Article

Image may be NSFW.
Clik here to view.

GNU awk工具的使用解析

GNU awk: 简介:awk是一个数据处理工具。它比较倾向于将一行分成多个“字段”来处理。所以,awk比较适合处理小型数据。 gawk pattern scanning and processing language 实现原理: 基本用法: gawk [options] 'program' FILE program:PATTERN{ACTION STATEMENTS}语句之间用分号分割...

View Article


Image may be NSFW.
Clik here to view.

'Bing Wallpapers for Linux' Revived, Works Great on Ubuntu 16.04 LTS

Bing Wallpapers for linux app brings the gorgeous "Bing Image of the Day" featured wallpapers to Linux. The app itself is pretty straight forward. You can either manually check/update if/when a new...

View Article

Linus on btime: “Let’s wait five years” (2010)

Re: [PATCH 02/18] xstat: Add a pair of system calls to make extended file stats available [ver #6] From:Linus Torvalds Date: Thu Jul 22 2010 - 11:16:18 EST Next message: Milton Miller: "[PATCH]...

View Article

折腾 Raspberry Pi + HomeKit 手记

9月14日凌晨苹果终于推送了 iOS 10 的更新。从之前发布会来看,并没有多少亮点,除了几天的新鲜感之外, 尤其是对于目前还在用上两代机型的我来说,2333。 两年前苹果发布 Swift 语言的同时,新增了 HomeKit,当时用工具 dump 过最老版本的 Swift 声明。传送门: HomeKit.swift 。目前所有官方相关的资料位于 HomeKit - Apple 。 好消息是期待很久的...

View Article


Image may be NSFW.
Clik here to view.

CentOS 下 Nginx + Tomcat 负载均衡配置

为什么要做负载均衡? 当你网站是一个企业站、个人博客的时候,或者访问量比较小的时候,一台服务器完全应付的了,那就完全没必要做负载均衡。但是,如果你的网站是平台级别,用户至少百万级别了,一台服务器明显撑不住了,那就要考虑多台服务器,这个时候每个服务器分配多少用户,负载均衡是最好的解决方式。举个大的不是很恰当的栗子:淘宝网。...

View Article


sudo找不到命令:修改sudo的PATH路径

sudo有时候会出现找不到命令,而明明PATH路径下包含该命令,让人疑惑。其实出现 这种情况的原因,主要是因为当 sudo以管理权限执行命令的时候,linux将PATH环境变量进行了重置,当然这主要是因为系统安全的考虑,但却使得sudo搜索的路径不是我们想要 的PATH变量的路径,当然就找不到我们想要的命令了。两种方法解决该问题: 首先,都要打开sudo的配置文件:sudo visudo 1....

View Article

Wayland 1.12 Next-Gen Linux Display Server Officially Released with Many Goodies

Today, September 21, 2016, Bryce Harrington has had the great pleasure of announcing the immediate availability of the Wayland 1.12.0 display server for GNU/linux operating systems, along with the...

View Article

Image may be NSFW.
Clik here to view.

linux密码的破解与保护

找回root口令: 遇到密码丢失的情况,如果只是普通用户的密码丢失,那么可以让管理员重新设定密码。但是如果管理员用户的密码丢失,那该如何解决? 在 linux环境中root 密码忘记还是可以救回来的!只要能够进入并且挂载 / , 然后重新设定一下root的密码,就救回来啦!这是因为开机流程中,若强制进入runlevel 1 时, 默认是不需要密码即可取得一个 root 的 shell...

View Article

Image may be NSFW.
Clik here to view.

进程管理工具:ps,top,htop,dstat

进程列表查看,系统资源使用情况查看,比如CPU占用情况,内存使用情况,网络IO,硬盘IO等等。本文介绍的几款工具帮您实现。 进程是指运行中的程序的一个副本,进程的有关信息映射在/proc/#下,ps等工具通过加工/proc/下文件而显示出进程列表。 linux内核属于抢占式多任务式,内核将CPU处理时间按时间片分配给各个进程,这里有一个优先级的问题,优先级越高,最先被处理。...

View Article


New Gnome emerges blinking into the sunlight

Gnome's developers have let version 3.22 “GUADEC” (the name of its primary European conference) loose on the world. The release builds on March's 3.20“Delhi” release, and the major shift this time...

View Article

如何查找YUM 安装的 JAVA_HOME

很多需要javac 的程序依赖 JAVA_HOME环境变量. 如果是手工下载源码安装的JDK,很容易知道JAVA_HOME的目录. 例如 whereis javac javac: /usr/local/jdk1.8.0_74/bin/javac 那么对应的 JAVA_HOME 为 /usr/local/jdk1.8.0_74 . 而 YUM 安装的 jdk, 不需要配置 PATH,...

View Article


CentOS Infra public service dashboard

As soon as you're running some IT services, there is one thing that you already know : you'll have downtimes , despite all your efforts to avoid those... As the old joke says : "What's up ?" asked the...

View Article

Replace in files recursively with sed

Replacing text in many files is reasonably simple with sed, on the command line. If you do this, I would recommend that you come up with a way to take a backup, because there is almost no chance you’ll...

View Article


Image may be NSFW.
Clik here to view.

系统启动及恢复

一、 知识整理 1、 modinfo 命令:显示模块的详细描述信息: -n 只显示模块文件路径 -p 显示模块参数 -a auther -d description -l license 协议 modprobe 命令:装载或卸载内核 -r 卸载内核,同 rmmod 配置文件: /etc/modprobe.d/*.conf depmod 命令:内核模块依赖关系文件及系统信息映射文件的生成工具...

View Article

Image may be NSFW.
Clik here to view.

文本处理工具三剑客之awk

文本处理工具:grep,sed,awk awk:报告生成器,格式化文本输出 AWK: Aho ,Weinberger,Kernighan gawk:GNU awk gawk pattren scanning and processing language 基本语法:gawk [options ] ‘program’ FILE…. program:PATTERN{ACTION STATEMENTS}...

View Article

gawk 语法介绍及其实例

gawk 语法介绍及其实例 § awk 介绍 linux 文本处理三剑客: grep sed 和 awk 。其中 grep 是一种文本过滤工具, sed 是文本行编辑器,而 awk 是一种报表生成器,就是对文件进行格式化处理的,这里的格式化不是文件系统的格式化,而是对文件的内容进行的各种排版,进而格式化显示。 在 linux 之上我们使用 awk 是 GUN awk 简称 gawk ,并且 gawk...

View Article
Browsing all 11063 articles
Browse latest View live