摘要: 刚学linux socket。写来一个UDP发送和接受数据包的程序.client_main.c:/* * @file client_main.c * @brief client of the UDP. * @author xiaou */#include <netinet/in.h> // for sockaddr_in#include <sys/types.h> // for socket#include <sys/socket.h> // for socket#include <unistd.h> // for close()#include 阅读全文
posted @ 2012-05-21 18:58 小鼬就是我 阅读(8904) 评论(0) 推荐(0) 编辑
摘要: 开启root账户: $ sudo passwd root $ su $ cp -p /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.bak $ vi /etc/lightdm/lightdm.conf 修改后为:[SeatDefaults]greeter-session=unity-greeteruser-session=ubuntugreeter-show-manual-login=true 重启即可。使用/usr/lib/ibus-sunpinyin/ibus-setup-sunpinyin 命令可... 阅读全文
posted @ 2012-05-21 18:14 小鼬就是我 阅读(1293) 评论(0) 推荐(0) 编辑
摘要: git 命令:git log -2 --name-status docker 命令:1. docker logs : docker logs --tail=200 -f container_name 2>&1 | grep see4what一直输出docker logs。并且用grep进行截取。do 阅读全文
posted @ 2012-05-21 18:11 小鼬就是我 阅读(971) 评论(1) 推荐(0) 编辑