随笔分类 - *nix
摘要:目的:在一台没有安装X-server的Debian服务器上实现命令行抓取网页快照软件:xvfb(在命令行下实现对X-server的模拟,渲染图形进行缓存)-在没有安装X-Server的环境下提供图像渲染CutyCapt(模拟浏览器对网页进行下载、HTML、css渲染、Javascript执行,并将最...
阅读全文
摘要:默认情况下,访问网络端口需要root权限,而wireshark的只是/usr/share/dumpcap的一个UI,/usr/share/dumpcap需要root权限,所以没法non-root用户无法读取网卡列表。解决办法很简单,sudo wireshark但是wireshark官方不推荐这么做:...
阅读全文
摘要:最近百度网盘将空间升级到了永久1TB,鉴于百度的实力用做数据备份空间不错,不过百度网盘没有Linux下的客户端,上传管理文件需通过百度开放云平台访问PCS资源的系列接口。1.首先加入百度开发者:http://developer.baidu.com/dev#/create2.任意创建一个应用获取API...
阅读全文
摘要:装备工作:下载JavaJDK http://www.oracle.com/technetwork/java/javase/downloads/index.html下载NDK http://developer.android.com/tools/sdk/ndk/index.html下载ADT_BUND...
阅读全文
摘要:修改rsyslog文件,将/etc/rsyslog.d/50-default.conf 文件中的#cron.*前的#删掉重启rsyslog服务service rsyslog restart重启cron服务service cron restartsudo tail -f /var/log/cron.l...
阅读全文
摘要:每次配置git的时候,要写gitignore文件,你知道你的.gitignore匹配那些文件吗?看看.gitignore放过了哪些文件:git ls-files -ocm --exclude-standardgit status -u这个命令显示了将会被git管理的文件看看.gitignore命中的文件: $ (git ls-files -oi --exclude-standard; git ls-files -oi --exclude-standard --directory) | sort | uniq $ (git ls-files -oi --exclude-standard; g..
阅读全文
摘要:plank的配置文件的路径是/home/pear/.config/plank/dock1/settings#This file auto-generated by Plank.#2013-09-09T05:35:30+0000[PlankDockPreferences]#Whether to show only windows of the current workspace.CurrentWorkspaceOnly=false#The size of dock icons (in pixels).IconSize=48#If 0, the dock won't hide. If 1,
阅读全文
摘要:sed其实就是两个主要的知识点,那就是“怎么选择”和“怎么操作”!
阅读全文
摘要:deb http://mirrors.stuhome.net/linuxmint/ nadia main upstream import# deb http://archive.getdeb.net/ubuntu quantal-getdeb apps# deb http://archive.getdeb.net/ubuntu quantal-getdeb gamesdeb http://mirrors.163.com/ubuntu/ quantal main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ qu
阅读全文
摘要:I recently installed xubuntu and wanted some good compositing. I tried compiz but it seems a bit buggy with xfce.I recently found a great solution. Using elementary os's gala window manager. it works amazingly with xfce! incredibly smooth, stable, and fast. I'm also using plank as the dock a
阅读全文
摘要:安装Xorg是开始桌面之旅的必由之路。无论安装什么环境,初始化Xorg是必须的。目前,Xorg并不再依赖于hal,也不再依赖于hwd.所以,需要做的只是安装以下:首先,更新pacmanpacman -Sy pacman然后更新整个系统pacman -Syupacman -S xorg-serverp...
阅读全文
摘要:.先在ORACLE官方网站上下载最新版本的JDK和JREhttp://www.oracle.com/technetwork/java/javase/downloads/index.html注意:如果要使用Eclipse IDE,一定要安装JRE.2.将下载好的tar.gz文件解压到 /usr/local/ 目录下,对于我下载的JDK和JRE,解压后目录为 /usr/local/jdk1.7.0_05su -c "tar -xvf jdk1.7.0_05.tar.gz -C /usr/local" 设置软链接:cd /usr/localsu -c "ln -sfv
阅读全文

浙公网安备 33010602011771号