Chinaunix首页 | 论坛 | 博客
  • 博客访问: 824513
  • 博文数量: 203
  • 博客积分: 2433
  • 博客等级: 大尉
  • 技术积分: 2195
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-05 13:32
文章分类

全部博文(203)

发布时间:2016-11-04 18:05:05

在UNIX上使用sed命令进行字符串处理中常常遇到的问题就是行首行尾的空格怎么删除。 下面介绍sed是怎样实现的,当然awk同样可以。 1:行首空格sed ‘s/^[ \t]*//g’说明:第一个/的左边是s表示替换,即将空格替换为空第一个/的右边是表示后面的以xx开头 中括号表示“或”,空格或tab中的任意一种。这是正.........【阅读全文】

阅读(10027) | 评论(0) | 转发(0)

发布时间:2016-11-04 18:03:58

安装freebsd,接下来就是安装gui和配置:安装gui,首先要先安装xorg,我选用xfce,安装软件可以使用freebsd的packages和port,为了节省时间,选用packages系统安装:pkg_add -r xorgpkg_add -r xfce4================装好后,就是可以使用startxfce4启动xfce4,如果需要读环境变量和使用slim登陆管理器需要创建.xinitrc和.........【阅读全文】

阅读(1548) | 评论(0) | 转发(0)

发布时间:2016-11-04 18:02:44

Linux用时间长了,最近尝试了一下freebsd,下面是freebsd的安装,记录一下:freebsd从freebsd 9开始使用bsdinstall安装,不再使用sysinstall安装,安装很简单,可是如果需要自定分区,就需要折腾一下(因为不熟freebsd的缘故,哈哈)freebsd默认使用的文件系统是ufs,分区的类型是三种:freebsd-boot......【阅读全文】

阅读(1859) | 评论(0) | 转发(0)

发布时间:2016-11-04 17:33:28

关于openvpn的架设可以参考网上的资料,以下要说的是一些注意事项:环境:server part 使用192.168.50.x网段,vpn服务器使用的是10.8.0.x网段,只有一块物理网卡eth0,vpn服务器使用的是tun0隧道模式,openvpn可以使用两种模式tap和tun,关于tap和tun的区别是:tap把vpn服务器架设成虚拟交换机,需要先做桥接。.........【阅读全文】

阅读(7643) | 评论(0) | 转发(0)

发布时间:2016-11-04 17:31:54

先查看mppe模块是否加载:lsmod| grep -i ppp如果有ppp_mppe 39881 2ppp_generic 62561 8 ppp_synctty,ppp_async,ppp_deflate,ppp_mppe说明模块加载成功然后安装pptp,编译./configure –prefix=/usr/local/pptpd;make;make install先在/usr/local/pptp目录建etc目录 之后从pptpd源码sample/*配置文件复制到/usr/l.........【阅读全文】

阅读(2434) | 评论(0) | 转发(0)

发布时间:2016-02-16 15:05:16

因为使用hhkb,没有numpad,所以入手了realforce 23u键盘,一插上,没打两个数字就freeze,好像键盘死机了,按什么键都没有反应!经查,发现realforce 23u键盘上的numlock连动关系,把sw3设置on,取消numlock连动,问题解决,原因估计是realforce的numlock连动可能和系统有些冲突,通过系统来开启numlock就没问题了..........【阅读全文】

阅读(1942) | 评论(0) | 转发(0)

发布时间:2016-01-29 14:30:03

安装: pacman -Sy ifuse usbmuxd libplist libimobiledevice mkdir ~/iphone查看iphone是否已经检测到:dmesg|grep-i iphone[ 7632.807431] ipheth 4-1.5.1.2:4.2: Apple iPhone USB Ethernet device attached挂载iphone:ifuse ~/iphone卸载iphne:umount ~/iphone......【阅读全文】

阅读(1941) | 评论(0) | 转发(0)

发布时间:2016-01-25 20:43:18

PCI-E安装archlinux,步骤和ssd安装相同:http://blog.chinaunix.net/uid-16361381-id-3212431.html但是有个地方需要注意,就是如果想PCI-E做系统盘,sata接口的硬盘做资料盘,sata硬盘不能连接主板芯片的sata接口上,因为系统会进入紧急模式,不能启动,经查,原因在sata硬盘连接主板芯片的sata接口,会发生抢道的问.........【阅读全文】

阅读(1843) | 评论(0) | 转发(0)

发布时间:2016-01-24 04:52:41

解决办法:修改/etc/libvirt/qemu.confgroup="kvm"然后:systemctl restart libvirtd.service......【阅读全文】

阅读(1802) | 评论(0) | 转发(0)

发布时间:2016-01-22 17:56:44

在~/.config/autostart目录创建powermate.desktop,内容如下:[Desktop Entry]Name=powermate scriptGenericName=powermateComment=powermateExec=/usr/local/bin/powermateTerminal=falseType=ApplicationX-GNOME-Autostart-enabled=true......【阅读全文】

阅读(2016) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册