
Linux
sudolee
这个作者很懒,什么都没留下…
展开
-
有趣的复活节彩蛋,动手试试吧
[Lee] ~$ aptitude moo这个程序里没有复活节彩蛋。[Lee] ~$ aptitude -v moo这个程序里确实没有复活节彩蛋。[Lee] ~$ aptitude -vv moo我不是已经告诉你这个程序里没有复活节彩蛋了吗?[Lee]原创 2011-05-16 14:54:00 · 793 阅读 · 0 评论 -
kubuntu input method
You may want to take a look here: http://code.google.com/p/ibus/wiki sudo apt-get update sudo apt-get install ibus-gtk ibus-qt4 ibus-pinyin ibus-pinyin-db-open-phrase I have also installed p原创 2012-05-19 17:12:07 · 922 阅读 · 0 评论 -
如何打开/生成initrd.img
1, 解压initrd.imgzcat /boot/initrd.img | cpio -id2,压缩initrd.imgfind . | cpio -H newc --create | gzip -9 > ../initrd.img原创 2012-05-26 14:51:33 · 3727 阅读 · 0 评论 -
ubuntu systray(系统托盘)图标问题
--systray上应用程序的图标无法显示:1, install dconf-tools, and run "dconf editor".2, add your application(want to show in systray) to Desktop -> Unity -> Panel. e.g.- systray-whitelist ['JavaEmbeddedFrame',原创 2012-07-04 16:05:16 · 1467 阅读 · 1 评论 -
Access linux fs from windows
----how to access linux fs(partitoins) from windows--1, Explore2fsext2+ext3http://www.chrysocome.net/explore2fsExplore2fs is a GUI explorer tool for accessing ext2 and ext3 filesystems.It runs原创 2012-04-27 21:27:37 · 1204 阅读 · 0 评论 -
sun-java6-jdk的问题
之前一直按照这个网页搭建环境http://source.android.com/source/initializing.html今天发现sun-java6-jdk不能安装,按照ubuntu wiki的方法仍然失败:http://wiki.ubuntu.org.cn/Sun-java6LOG:在编译android代码时报错如下(之前只有openjdk-6-jdk):原创 2012-03-01 20:04:39 · 3627 阅读 · 0 评论 -
linux USB monitor 【linux usb抓包】
linux-stable/Documentation/usb/usbmon.txt* IntroductionThe name "usbmon" in lowercase refers to a facility in kernel which isused to collect traces of I/O on the USB bus. This function is analo翻译 2012-08-06 16:34:25 · 5938 阅读 · 0 评论 -
将firefox和thunderbird最小化到系统托盘
minimize firefox and thunderbird to system tray有几个插件可以办到,比如:minimize to tray 和 firetray原创 2012-08-11 15:45:46 · 3948 阅读 · 0 评论 -
删除windows代码文件中的'^M'
有时从windows中copy过来的代码文件中会有很多'^M'(回车)字符,这使代码看起来很不整洁。这里分享一个简单的处理办法。思路:找到文件中的'^M'字符,并全部替换为space。最后用indent整理代码。'^M'的ascii是13。代码:#include #include #include #include #define M_ASC 13int main(原创 2011-12-13 23:05:26 · 1332 阅读 · 0 评论 -
部件工具箱[widget toolkits]
= http://en.wikipedia.org/wiki/List_of_widget_toolkits =Widget toolkit comparison tableToolkit name MS Windows Mac OS X Unix-like Programming language licenseQt Y翻译 2012-09-15 17:44:54 · 979 阅读 · 0 评论 -
virtualbox无法挂载u盘解决办法
==在/etc/group文件中修改:"vboxusers:x:122:" -> "vboxusers:x:122:your-username"==原创 2012-10-21 22:49:49 · 4454 阅读 · 0 评论 -
手动打包sun java jdk [Installing the latest JDK on Debian by creating a .deb package from Sun binaries]
Installing the latest JDK on Debian by creating a .deb package from Sun binariesNormally we download Sun JDK installation binaries and install them. Then we configure the PATH environment variab原创 2012-10-22 13:55:46 · 1188 阅读 · 0 评论 -
给linux发行版安装新内核
我的机器是Thinkpad T420i, 系统是debian wheezy.1, 编译Kernel: make menuconfig make -jn sudo make modules_install sudo make headers_install sudo make install sudo update-grub (Ubuntu only) NOTE原创 2012-12-04 10:47:40 · 1991 阅读 · 0 评论 -
debian更新源
= wheezy =## chinadeb http://ftp.cn.debian.org/debian/ wheezy main contrib non-freedeb-src http://ftp.cn.debian.org/debian/ wheezy main contrib non-freedeb http://ftp.cn.debian.org/debian/ whe原创 2012-10-10 13:58:09 · 10162 阅读 · 0 评论 -
cscope无法索引代码树之外的软链接
背景:为什么非要使用cscope?不用ctags?尽管ctags可以索引软链接,但是,ctags不能查找“调用者”,比如:你想看看某个函数在哪些位置被调用了, .etc1, 卸载cscope2, 下载cscope源代码:http://sourceforge.net/projects/cscope/files/cscope/15.8a/p.s 我下载的15.8a,在debian原创 2013-06-08 00:04:36 · 2447 阅读 · 0 评论 -
在thinkpad上安装(kde)debian wheezy/sid (Note of install (kde)debian wheezy/sid on Thinkpad)
亲测机型: Thinkpad T420(爱机)1, 下载镜像文件: debian-testing-amd64-DVD-1.isoaxel -a http://cdimage.debian.org/cdimage/weekly-builds/amd64/iso-dvd/2, 制作U盘安装盘:cat debian-testing-amd64-DVD-1.iso > /dev/sdx3, 默认安原创 2013-04-20 15:05:51 · 4333 阅读 · 0 评论 -
svn一些使用问题
*******问题1*******--错误log如下:[Lee]~/cache/tmp$ svn ci -m "message"Sending patch-learning/READMEsvn: Commit failed (details follow):svn: File '/patch-learning/README' is out of date--问题产生的原原创 2012-02-07 04:06:23 · 861 阅读 · 0 评论 -
some useful linux commands
--dosfslabel--dosfslabel device [label]set or get a MS-DOS filesystem label--e2label--e2label device [ new-label ]Change the label on an ext2/ext3/ext4 filesystem--查看2进制包--1, vim:%! xxd -原创 2012-03-30 16:27:44 · 832 阅读 · 0 评论 -
HOWTO_Change Default Boot Order for Grub in Ubuntu
Ubuntus 9.10, 10.04, 10.10, 11.04 etc. use Grub2 so if your are using any of these versions of Linux then this trick should work for you. Th原创 2011-08-12 14:39:14 · 1684 阅读 · 0 评论 -
errno_table_on_linux
/** * asm-generic/errno-base.h */#define EPERM 1 /* Operation not permitted */#define ENOENT 2 /* No such file or directo原创 2011-09-02 10:19:12 · 591 阅读 · 0 评论 -
HOWTO_install uuencode
/** * sudo apt-get install sharutils */原创 2011-08-29 18:34:40 · 955 阅读 · 0 评论 -
ubuntu常用软件
/** * ____/| sudo apt-get install gcc g++ make gdb libc6 libc6-dev manpages manpages-posix manpages-dev manpages-posix-dev glibc-doc * \原创 2011-10-11 18:47:32 · 507 阅读 · 0 评论 -
ubuntu FAQ
> 几乎所有Ubuntu的使用问题可以在这里找到答案.... http://wiki.ubuntu.org.cn原创 2011-10-08 19:08:00 · 796 阅读 · 0 评论 -
修改ubuntu的默认文件夹
/********************************************** [sudo.lee]$ ~/.config/user-dirs.dirs* 它的内容如下,只需手动指定即可。******************************原创 2011-05-16 15:15:00 · 976 阅读 · 0 评论 -
my vim settings
"" Just copy this text document to ~/.vimrc for vim settings"se nuse cursorlinese tabstop=4se shiftwidth=4se hlsearchse incsearchs原创 2011-10-10 11:15:19 · 463 阅读 · 0 评论 -
HOWTO_Compile Linux kernel Documentation for manpages
对每一个linux内核或者驱动开发者来说,内核自带的Documentation目录无疑是一个权威的参考资料和学习资料.编写驱动或者修改内核的时候,可能需要用到kernel api,我们也想能够像libc api那样可以通过man手册查看其使用方法,of course,直接到内核source codes查找到相关的函数定义是一种方法,但是显得比较麻烦。你可以将内核api安装到man手册,原创 2011-05-16 14:51:00 · 1026 阅读 · 0 评论 -
HOWTO_setting cscope for Vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" CSCOPE settings for vim>>> Just copy this document as '~/.vim/plugin/cscope_macros.vim' """""""""""""原创 2011-08-12 09:14:20 · 701 阅读 · 0 评论 -
decode.c/jpeg.c
#include #include #include #include #include #include "./include/jpeglib.h"#include "./include/jerror.h"#ifndef u_char#define u_char unsigned char#endifvoid jpeg_error_exit(j_common_ptr ci原创 2011-08-02 18:13:25 · 2182 阅读 · 0 评论 -
安装cross toolchain及NO_PUBKEY错误解决办法
在ubuntu上安装交叉编译工具,以前安装交叉编译工具是件很麻烦的事情(那些依赖关系),但是现在emdebian已经打包好了.1>加入源:根据http://www.emdebian.org/crosstools.html的提示需要在/etc/apt/source.list中加入emdebian的源,如下:#Stable (Squeeze)#There are gcc-4.4 and原创 2011-11-03 11:09:42 · 1617 阅读 · 0 评论 -
svn命令
1、将文件checkout到本地目录 svn checkout path(path是服务器上的目录) e.g. svn checkout svn://192.168.1.1/pro/domain 简写:svn co2、往版本库中添加新的文件 svn add file e.g. svn add hello.cc(添加hello.cc原创 2011-08-02 18:07:25 · 609 阅读 · 0 评论 -
git使用问题
****保存git提交密码****Description:避免每次push/pull输入密码解决办法: $ echo 'machine code.google.com login username password ******' > ~/.netrc这里使用的是googlecode,如果是别的服务器,替换之即可。如果是google code的服务器,还需在项目根目录做如下修改:原创 2012-02-11 15:56:44 · 1095 阅读 · 0 评论 -
linux和windows时间同步问题(UTC&localtime)
Linux使用UTC,但是windows默认使用localtime.解决的办法如下:进入windows使用regedit写入DWORD值(设置成十六进制"1"):HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversalWindows XP 和 Windows原创 2013-10-31 22:01:43 · 4457 阅读 · 0 评论