摘要: win10+archlinux 1.查看磁盘并分区并挂载1.1 分区/dev/sda1 WIN10 保留分区/dev/sda2 WIN10 ESP分区(EFI)/dev/sda3 WIN10 MSR分区/dev/sda4 WIN10 主分区(C盘)/dev/sda5 / /dev/sda6 swap 阅读全文
posted @ 2016-06-08 15:29 若丶相依 阅读(3679) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python3 #-*-encoding:utf-8-*- import re import os import urllib.request, urllib.parse, urllib.error import urllib.request, urllib.error, urllib.parse import http.cookiejar filename ... 阅读全文
posted @ 2016-05-06 10:10 若丶相依 阅读(409) 评论(0) 推荐(0)
摘要: grubby --update-kernel=ALL --args="video=hyperv_fb:1366x768" 阅读全文
posted @ 2016-05-05 00:57 若丶相依 阅读(585) 评论(0) 推荐(0)
摘要: mint17.3挂载u盘出现错误:mount:unknown filesystem type 'exfat' 安装exfat-fuse:sudo apt-get install exfat-fuse 阅读全文
posted @ 2016-04-09 09:31 若丶相依 阅读(1895) 评论(0) 推荐(0)
摘要: 转自 https://segmentfault.com/a/1190000002737213 2.1 安装lsyncd 2.2.1 lsyncd同步配置 到这启动 lsycnd 就可以完成实时同步了,默认的许多参数可以满足绝大部分需求,非常简单。 2.2.2 lsyncd.conf配置选项说明 se 阅读全文
posted @ 2016-03-31 18:09 若丶相依 阅读(2101) 评论(0) 推荐(0)
摘要: 使用rsync+lsync实现触发式实时同步 服务器信息 centos6.5 主:192.168.5.4 搭建lsync 从:192.168.5.3 搭建rsync 1.1 从服务器设置 # service xinetd start # chkconfig xinetd on 1.3.创建同步文件的 阅读全文
posted @ 2016-03-31 17:36 若丶相依 阅读(2786) 评论(0) 推荐(0)
摘要: rdesktop 使用简单,windows也不和装什么服务端,是要把远程桌面共享打开就行了 安装 yum -y install rdesktop 具体使用方法要先打开终端,然后输入以下命令: rdesktop -u administrator -p password -g 1024*720 192. 阅读全文
posted @ 2016-03-23 13:37 若丶相依 阅读(10296) 评论(0) 推荐(0)
摘要: 突然碰到有人问ssh再传输密钥时候能不手动输入密码,由于没有碰到过这种情况,所以查了一下发现可以用sshpass做到。 sshpass 【参数】 ssh命令: 参数: -p password #将参数password作为密码 -f passwordfile # 提取passwordfile的第一行作 阅读全文
posted @ 2016-03-23 13:25 若丶相依 阅读(217) 评论(0) 推荐(0)
摘要: 1 #!/usr/bin/env python 2 #-*- coding=utf-8 -*- 3 #----------------导入模块------------------------------ 4 import os 5 import sys 6 7 #----------------设置 阅读全文
posted @ 2016-03-11 15:58 若丶相依 阅读(279) 评论(0) 推荐(0)
摘要: 基于python3.4 while循环 1 #!/usr/bin/python3 2 #-*- coding=utf-8 -*- 3 4 import random 5 import sys 6 import os 7 8 lucky_num = int(random.randint(0,9)) 9 阅读全文
posted @ 2016-03-11 15:50 若丶相依 阅读(300) 评论(0) 推荐(0)