All you have to do:
Turn on the CONFIG_PRINTK_TIME kernel option
Wala~You get it!
Showing posts with label misc. Show all posts
Showing posts with label misc. Show all posts
Wednesday, May 11, 2011
Tuesday, May 18, 2010
oldmenuconfig
When we build linux kernel, we have to configure via menuconfig, gconfig or xconfig first. “make menuconfig” generate some auto header files(include/linux/autoconf.h, include/config/auto.conf, include/config/autoconf.cmd … etc). In my developing environment, we have pre-configure file and copy this pre-configure to Linux kernel source directory. Unfortunate, we also have old auto header files and they are not updated. Once I compile kernel modules before I update auto header files, the outcome is incorrect. In this case, we issue “make oldconfig” once before we compile kernel modules.
FYI:
linuxtopia:Chapter 7. Upgrading a kernel: http://www.linuxtopia.org/online_books/linux_kernel/kernel_configuration/ch07s03.html
FYI:
linuxtopia:Chapter 7. Upgrading a kernel: http://www.linuxtopia.org/online_books/linux_kernel/kernel_configuration/ch07s03.html
Thursday, August 20, 2009
PPP dial on Demand
We set a set of private IP address for local and remote. When users request a connection, device sends a packet to remove to launch PPP dialing up.
In general case, we always the same dummy IP address set such as 10.64.64.64 for local and 10.112.112.112 for remote (Please refer to IPCP). There are a lot of user may confuse why my device always sends strange traffic to 10.112.112.112. Some applications of PPP use the previously IP which is assigned by PPP server to prevent this occurs.
We can also start to negotiate via using address 0.0.0.0 rather than 10.64.64.64. If you use PPP in linux, you can modify "ifaddr" as following configurations:
set ifaddr 10.64.64.64/0 10.112.112.112/0 255.255.255.255
In general case, we always the same dummy IP address set such as 10.64.64.64 for local and 10.112.112.112 for remote (Please refer to IPCP). There are a lot of user may confuse why my device always sends strange traffic to 10.112.112.112. Some applications of PPP use the previously IP which is assigned by PPP server to prevent this occurs.
We can also start to negotiate via using address 0.0.0.0 rather than 10.64.64.64. If you use PPP in linux, you can modify "ifaddr" as following configurations:
set ifaddr 10.64.64.64/0 10.112.112.112/0 255.255.255.255
Wednesday, November 26, 2008
run or cancel autoexec.bat at windows nt/xp/vista
From Microsoft INFO: Configuring Parsing of the AUTOEXEC.BAT File Q124551
FYI:
http://support.microsoft.com/kb/124551/en-us/
Modify the following value within HKEY_CURRENT_USER:
Software\Microsoft\Windows NT\CurrentVersion\Winlogon\ParseAutoexec
1 = autoexec.bat is parsed
0 = autoexec.bat is not parsed
FYI:
http://support.microsoft.com/kb/124551/en-us/
Tuesday, November 25, 2008
doxygen addon- Moritz
If you need more template for output document of doxygen, try this open source-Moritz.
FYI:
http://sourceforge.net/projects/moritz
FYI:
http://sourceforge.net/projects/moritz
Thursday, July 24, 2008
10 essential tricks for admins from IBM
Vallard Benincosa posted article about how to administrate linux. Here are one of ticks:
FYI:
Lazy Linux: 10 essential tricks for admins (http://www.ibm.com/developerworks/linux/library/l-10sysadtips/index.html)
Trick 3: Collaboration with screen
David, the high-maintenance user from product engineering, calls: "I need you to help me understand why I can't compile supercode.c on these new machines you deployed."
"Fine," you say. "What machine are you on?"
David responds: " Posh." (Yes, this fictional company has named its five production servers in honor of the Spice Girls.) OK, you say. You exercise your godlike root powers and on another machine become David:
# su - david
Then you go over to posh:
# ssh posh
Once you are there, you run:
# screen -S foo
Then you holler at David:
"Hey David, run the following command on your terminal: # screen -x foo."
This will cause your and David's sessions to be joined together in the holy Linux shell. You can type or he can type, but you'll both see what the other is doing. This saves you from walking to the other floor and lets you both have equal control. The benefit is that David can watch your troubleshooting skills and see exactly how you solve problems.
At last you both see what the problem is: David's compile script hard-coded an old directory that does not exist on this new server. You mount it, recompile, solve the problem, and David goes back to work. You then go back to whatever lazy activity you were doing before.
The one caveat to this trick is that you both need to be logged in as the same user. Other cool things you can do with the screen command include having multiple windows and split screens. Read the man pages for more on that.
But I'll give you one last tip while you're in your screen session. To detach from it and leave it open, type: Ctrl-A D . (I mean, hold down the Ctrl key and strike the A key. Then push the D key.)
You can then reattach by running the screen -x foo command again.
FYI:
Lazy Linux: 10 essential tricks for admins (http://www.ibm.com/developerworks/linux/library/l-10sysadtips/index.html)
Monday, June 30, 2008
Wine
I need to use IE sometimes, and there is one thing, I should run IE on Linux. The first thought is "Setup a Microsoft windows", but I do not setup one. So, I need a package to be a VM or provide Windows API on Linux. Finally, Wine is my best choose.
By Wine, it is easy for you to use windows applications on Linux platform. Here are inductions from Wine web site:
FYI:
http://www.winehq.org/
By Wine, it is easy for you to use windows applications on Linux platform. Here are inductions from Wine web site:
Wine is an Open Source implementation of the Windows API on top of X, OpenGL, and Unix.
Think of Wine as a compatibility layer for running Windows programs. Wine does not require Microsoft Windows, as it is a completely free alternative implementation of the Windows API consisting of 100% non-Microsoft code, however Wine can optionally use native Windows DLLs if they are available. Wine provides both a development toolkit for porting Windows source code to Unix as well as a program loader, allowing many unmodified Windows programs to run on x86-based Unixes, including Linux, FreeBSD, Mac OS X, and Solaris.
More information can be read in the articles Why Wine is so important, and Debunking Wine Myths. If you are wondering how well a particular application works in Wine, please examine the Applications Database. For installation instructions and step-by-step help with running Wine, take a look at the User Guide.
Wine is free software. The licensing terms are the GNU Lesser General Public License version 2.1.
FYI:
http://www.winehq.org/
Saturday, May 17, 2008
Chang default IGMP version in Linux
Set default IGMP version of your NICs is 2:
echo 2 > /proc/sys/net/ipv4/conf/all/force_igmp_version
Set default IGMP version of your NICs is 3:
echo 3 > /proc/sys/net/ipv4/conf/all/force_igmp_version
echo 2 > /proc/sys/net/ipv4/conf/all/force_igmp_version
Set default IGMP version of your NICs is 3:
echo 3 > /proc/sys/net/ipv4/conf/all/force_igmp_version
Monday, February 18, 2008
Ask user change password at first login
After you add a user and set default password. If you want to this user change his/her password at first time login, there are some command you can issue:
1.usermod -L USERNAME
2.chage -d 0 USERNAME
3.usermod -U USERNAME
FYI:
Red Hat Knowledgebase
1.usermod -L USERNAME
2.chage -d 0 USERNAME
3.usermod -U USERNAME
FYI:
Red Hat Knowledgebase
Friday, December 14, 2007
Iptables allow BOOTPS/PC
dhcp use udp with port 67 and 68.
iptables -t filter -FORWARD -p udp --dport 67:68 --sport 67:68 -j ACCEPT
FYI:
Iptables Tutorial 1.1.19
iptables -t filter -FORWARD -p udp --dport 67:68 --sport 67:68 -j ACCEPT
FYI:
Iptables Tutorial 1.1.19
Wednesday, November 07, 2007
HTTrack
HTTrack is a website copier. It can duplicate whole website and provide you offline browsing. The more important is : HTTrack is GPL software (Currently, Version:3.41-3 is still freeware). Use it in your Linux or Windows OS.
FYI:
HTTrack official website: http://www.httrack.com/
FYI:
HTTrack official website: http://www.httrack.com/
Monday, November 05, 2007
Blogger language translation bug
Thursday, November 01, 2007
Friday, October 19, 2007
Email Obfuscator
This obfuscator can encode your e-mail.Example:
From: iHateSPAM@yahoo.com
To:
https://sourceforge.net/projects/obfuscatortool/
From: iHateSPAM@yahoo.com
To:
- <SCRIPT type="text/javascript">var vV0a8N7b0x="Ha";var sg_xMk2VjU="AM";var d9gSbi8M="i";var ucN09="@yah";var fX3QDT="o.co";var q$sYr="o";var l8$LZKH="teSP";var lH8VK="m";document.write(d9gSbi8M+vV0a8N7b0x+l8$LZKH+sg_xMk2VjU+ucN09+q$sYr+fX3QDT+lH8VK);</SCRIPT>
- iHateSPAM@yahoo.com
- <IMG src="59X65131h4.png">
- iHateSPAM @ yahoo . com
- iHateSPAM[AT]yahoo[DOT]com
- <TABLE style="display: inline-table; vertical-align: text-bottom;" border="0" cellpadding="0" cellspacing="0"><TR><TD>iHateSPAM</TD><TD>@</TD><TD>yahoo.com</TD></TR></TABLE>
https://sourceforge.net/projects/obfuscatortool/
Thursday, October 11, 2007
Wink : Screen capture
URL: http://www.debugmode.com/wink/
Currently, wink is a freeware
--------------------------From wink official site---------------------------
Currently, wink is a freeware
--------------------------From wink official site---------------------------
# Input formats: Capture screenshots from your PC, or use images in BMP/JPG/PNG/TIFF/GIF formats.
# Output formats: Macromedia Flash, Standalone EXE, PDF, PostScript, HTML or any of the above image formats. Use Flash/html for the web, EXE for distributing to PC users and PDF for printable manuals.
# Multilingual support: Works in English, French, German, Italian, Danish, Spanish, Serbian, Japanese, Brazilian Portuguese and Simplified/Traditional Chinese.
Sunday, September 24, 2006
Write python more pythonic
There will be a simple way to archive your goal in python. Here you are:
http://shalabh.infogami.com/Be_Pythonic2
http://faassen.n--tree.net/blog/view/weblog/2005/08/06/0
http://shalabh.infogami.com/Be_Pythonic2
http://faassen.n--tree.net/blog/view/weblog/2005/08/06/0
Subscribe to:
Posts (Atom)

