分类: Linux

117 篇文章

CentOS配置SELinux修改SSH端口
有SELinux的系统可能无法直接修改ssh,强行修改ssh会导致ssh服务无法启动。 semanage port -l | grep ssh ssh_port_t tcp 22 semanage port -a -t ssh_port_t -p tcp 25252 systemctl restart sshd 
Debian更新报错 TypeError: ‘NoneType’ object is not callable
Exception ignored in:.remove at 0x76125420>Traceback (most recent call last): File "/usr/lib/python3.5/weakref.py", line 117, in removeTypeError: 'NoneType' object is not callableException ignored in:.remove at 0x76125420> Traceback (most recent call last): File "/usr/lib/python3.5/weakref.py", line 117, in remove TypeError: 'NoneType' object is not callable   原…
Linux 网卡 mtu 1500 qdisc noop state DOWN group default qlen 1000
新装的linux安装时没配置网络,安装好了网络没法自己启动,解决方案如下: 临时: 执行命令 ip link set dev ens33 up dhclient -v ens33 永久: /etc/network/interfaces 内添加, # The primary network interface allow-hotplug ens33 iface ens33 inet dhcp
thumbnail
Linux下的ip命令,代替ifconfig
linux的ip命令和ifconfig类似,但前者功能更强大,并旨在取代后者。使用ip命令,只需一个命令,你就能很轻松地执行一些网络管理任务。ifconfig是net-tools中已被废弃使用的一个命令,许多年前就已经没有维护了。iproute2套件里提供了许多增强功能的命令,ip命令即是其中之一。 Net tools vs Iproute2 要安装ip,请点击这里下载iproute2套装工具 。不过,大多数Linux发行版已经预装了iproute2工具。 你也可以使用git命令来下载最新源代码来编译: $ git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/shemminger/iproute2.git iproute2 git clone 设置和删除Ip地…
Ubuntu缩放比例设置
虚拟机安装了Ubuntu,但是显示设置里没有缩放按钮,高分辨率屏幕太小,可以改下面的内容手动设置缩放比例。 \home\用户名称\.config\monitors.xml <monitors version="2"> <configuration> <logicalmonitor> <x>0</x> <y>0</y> <scale>2</scale>  --缩放比例 <primary>yes</primary> <monitor> <monitorspec> <connector>Virtual1</connector> <vendor>unknown…
thumbnail
debian SSD ext4 4K 对齐
2015 from---http://blog.csdn.net/rainysia/article/details/47868705 新入手了一台thinkpad, 原来的机械硬盘是500G的, 于是购入一块镁光的MX200 250G的SSD来新装debian stable(jessie) 1, 安装系统的之前按住F1进入bios后把模式改为AHCI. 2, 用U盘做的启动盘.版本是debian 8.1 AMD64 3, 安装系统的时候选择默认推荐分区,也就是一整块 4, debian8 默认是ext4 文件系统. 5, 装完后fdisk -lu 发现已经是4K对齐了. root@debian:/home/tommy# fdisk -lu Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 48839…
几个常用 Linux 桌面/窗口管理器的内存占用对比
2013年03月27日 from---http://www.vpsee.com/2013/03/a-memeory-comparison-of-popular-linux-window-managers/ A Memory Comparison of Light Linux Desktops 这篇文章比较了几个常用 Linux 桌面/窗口管理器的内存占用情况,个人使用的比较多的超轻量级窗口管理器 dwm 只占用 1MB,Fluxbox 占用 16MB,XFCE 占用 70MB,平铺窗口管理器里面最受欢迎的 xmonad 没有被提及。 大家喜欢用什么桌面/窗口管理器呢? 桌面/窗口管理器 内存占用 wm2 0.7MB dwm 1MB Ratpoison 1MB JWM 3MB i3 3MB Blackbox 3MB IceWM 4.5MB O…