
Linux基础
文章平均质量分 79
Linux基本操作,配置,软件安装
CodingAlgo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ubuntu16安装NFS服务
1、安装NFSsudo apt install nfs-kernel-server2、创建并设置共享目录mkdir /home/zhenglf/nfssudo gedit /etc/exports在最后一行加入/home/zhenglf/nfs *(rw,sync,no_root_squash)各段表达的意思如下,根据实际进行修改/home :共享的目录* ...原创 2018-11-14 15:58:08 · 704 阅读 · 0 评论 -
xshell 瓷砖排列 /发送输入键到所有会话
原创 2018-04-20 15:47:34 · 1882 阅读 · 0 评论 -
BAT 批处理脚本教程
参考:https://baike.baidu.com/item/bat/365230?fr=aladdin批处理文件在DOS和Windows(任意)系统中,.bat文件是可执行文件,由一系列命令构成,其中可以包含对其他程序的调用。这个文件的每一行都是一条DOS命令(大部分时候就好像我们在DOS提示符下执行的命令行一样),你可以使用DOS下的Edit或者Windows的记事本(notepad...转载 2019-05-28 15:20:16 · 418 阅读 · 0 评论 -
NTFS Centos EPEL源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repoyum install ntfs-3g原创 2017-11-29 10:53:41 · 349 阅读 · 0 评论 -
makefile入门
参考:http://blog.youkuaiyun.com/haoel/article/details/2886makefile很重要 什么是makefile?或许很多Winodws的程序员都不知道这个东西,因为那些Windows的IDE都为你做了这个工作,但我觉得要作一个好的和professional的程序员,makefile还是要懂。这就好像现在有这么多的HTML的编辑器,但如果你想成为一...转载 2019-05-28 15:08:44 · 142 阅读 · 0 评论 -
Centos7.4 安装
CenOS 7 安装问题:dracut_initqueue[599]: Warning: Could not boot 原因,及解决办法在Window下,将从CentOS官网上下载的CentOS7镜像文件,用UltrISO以硬盘镜像方法写入U盘安装过程中出现下面错误:dracut-initqueue[624]:Warning: Could not boot.dracut-ini原创 2017-11-28 18:06:17 · 1604 阅读 · 0 评论 -
ubuntu更新源为国内
1、备份源文件sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak2、编辑sources.list,用新的源文件替换sudo gedit /etc/apt/sources.list清华数据源地址:https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/自行选择相应的版本3、更新源:...原创 2018-11-14 16:11:35 · 202 阅读 · 0 评论 -
Linux下设置和查看环境变量
Linux的变量种类按变量的生存周期来划分,Linux变量可分为两类: 1 永久的:需要修改配置文件,变量永久生效。 2 临时的:使用export命令声明即可,变量在关闭shell时失效。 设置变量的三种方法1 在/etc/profile文件中添加变量【对所有用户生效(永久的)】 用VI在文件/etc/profile文件中增加变量,该变量将会对Linux下所有用户有效,转载 2017-11-11 15:56:12 · 255 阅读 · 0 评论 -
Centos7最小化安装后 配置静态IP 和 主机名
Centos7最小化安装后 配置静态IP 和 主机名(一)[root@master network-scripts]# cd /etc/sysconfig/network-scripts[root@master network-scripts]# [root@master network-scripts]# dirifcfg-ens160 ifdown-bnep ifdown-i原创 2018-04-20 10:59:22 · 820 阅读 · 0 评论 -
genirq: Flags mismatch irq 12. 00000000 (galcore:0) vs. 00000080 (p6birq)
参考:"Flags mismatch irq" register interrupt handler errorinsmod ./drivers/galcore.ko irqLine=12 registerMemBase=0xF6A00000 registerMemSize=0x00020000 contiguousBase=0x40000000 contiguousSize=0...原创 2019-05-31 11:13:36 · 4524 阅读 · 0 评论 -
Centos7最小化安装后 防火墙的配置
Centos7最小化安装后 防火墙的配置(一)firewalld服务启用/停用启动一个服务:systemctl start firewalld.service关闭一个服务:systemctl stop firewalld.service重启一个服务:systemctl restart firewalld.service显示一个服务的状态:systemctl stat原创 2018-04-20 12:05:41 · 1569 阅读 · 0 评论 -
ubuntu清空回收站
rm -rf ~/.local/share/Trash/*原创 2018-07-09 13:13:21 · 388 阅读 · 0 评论 -
Shell入门
Shell 教程Shell 是一个用 C 语言编写的程序,它是用户使用 Linux 的桥梁。Shell 既是一种命令语言,又是一种程序设计语言。Shell 是指一种应用程序,这个应用程序提供了一个界面,用户通过这个界面访问操作系统内核的服务。Ken Thompson 的 sh 是第一种 Unix Shell,Windows Explorer 是一个典型的图形界面 Shell。...转载 2019-05-28 14:21:18 · 132 阅读 · 0 评论 -
vnc viewer灰屏黑屏问题
先用xhell远程登录服务器,执行以下命令编辑xstartup文件: vi /home/zhenglf/.vnc/xstartup#!/bin/sh# Uncomment the following two lines for normal desktop:# unset SESSION_MANAGER# exec /etc/X11/xinit/xinitrc[ -x /...原创 2018-07-09 12:44:26 · 4535 阅读 · 1 评论 -
Shell
(一)Shell入门原创 2019-05-28 14:26:48 · 112 阅读 · 0 评论 -
vnc使用小技巧
VNC图形界面用久后会卡顿:(1)top命令查看进程,对于占用资源大的杀死 kill -9 PID(2)重启VNC,先关闭: vncserver -kill :PortID 后开启: vncserver重启VNC可以使得新配置的环境变量生效,相当于重启 ...原创 2019-02-21 17:15:45 · 685 阅读 · 0 评论 -
运行autogen.sh需要:yum install autoconf automake libtool
[zlf@localhost protobuf-3.5.1_source]$ ./autogen.sh+ autoreconf -f -i -Wall,no-obsolete./autogen.sh: line 50: autoreconf: command not found[root@localhost protobuf-3.5.1_source]# yum install autoc原创 2018-04-12 11:57:03 · 5259 阅读 · 0 评论 -
linux修改文件所属的用户组以及用户
背景:将文件夹从A用户(huangxf)目录复制B用户(zhenglf)目录,其中B没有sudo权限。将A的Downloads文件夹下的所有文件,复制到B的Documents文件夹下,此时在Documents文件夹下多了一个Downloads文件夹可使用以下命令,将sourceDir文件夹拷贝到destDir文件夹下:cp sourceDir/ destDir/ -rf在A用户的终端执行sudo ...原创 2018-07-09 12:34:16 · 7181 阅读 · 1 评论 -
Centos7设置环境变量,环境变量对不同用户的作用范围
(一) command env get all environment variables[zlf@localhost ~]$ envXDG_VTNR=1XDG_SESSION_ID=1SSH_AGENT_PID=2192HOSTNAME=localhost.localdomainIMSETTINGS_INTEGRATE_DESKTOP=yesXDG_MENU_PREFIX=gnom原创 2018-02-08 16:56:40 · 2804 阅读 · 0 评论 -
Centos7设置、修改用户密码
(1) in user UserInGroup, we forget the old password or have not set the passwd when creating the user UserInGroupand we give a wrong (current) UNIX password, system returns 'passwd: Authentication原创 2018-02-06 16:16:59 · 10318 阅读 · 1 评论 -
Centos7查看、创建、删除用户和组
(1) add a new group and delete[root@localhost home]# groupadd -g 1001 Centos_User_Group1[root@localhost home]# groupadd -g 1001 Centos_User_Group1groupadd: group 'Centos_User_Group1' already exists原创 2018-02-06 12:47:11 · 19416 阅读 · 0 评论