808 reputation
56
bio website
location
age
visits member for 3 years, 4 months
seen Aug 10 at 13:46

Nov
6
comment iptables port-mirroring
It'just a typo, 172.0.0.1 -> 127.0.0.1.
Sep
12
comment vim search numbers containing specific number of digits
Thank god for them vim gurus.
Jan
11
comment What do different BSDs have in common?
haha well it was just a demo. I like how the burnlevel seems to be above 200% on the display screen.
Jul
20
comment Installing new Operating System such as FreeBSD with PXE boot?
PXE can be used to download a small install ramdisk on which the computer will boot and usually let you install the OS on a physical drive. It requires setting up a DHCP server on the LAN and a TFTP server accessible from your host. Most of the time you will have to edit your BIOS parameters to let your computer try to boot on the network. PXE is not that convenient now that you can download and burn an image in 10 minutes, I got many issues with FreeBSD installer while downloading packages, I would advise against PXE or network install for it (it should work now though).
May
31
comment Error, some other host already uses address IPADDRESS
add the output of 'arp -na'. Chances are that another host on the same network has the same address. In this case, change it.
May
23
comment Why don't you need to update drivers? (Or do you?)
Follow you constructor's updates, if there's a security fix, update. If you find a fault and it's fixed, update. It's a PITA but it's the best way to do it. Organisation becomes critical at this point. Or you can just ignore this problem and never update your drivers.
May
23
comment Why don't you need to update drivers? (Or do you?)
For other systems, it occurs when you update the whole system (re-install).
Apr
20
comment /lib/modules/2.6.37.6/build missing in linux puppy? what should I do?
When building a driver, you need to get the source of the running kernel, which may either be downloaded on kernel.org or by your package manager (read the doc and use a search engine). Don't touch anything, just put the files where they oughta be (that is, extracting or installing the sources the right way).
Apr
20
comment How does searching a file (locate) or autocompletion work?
The shell runs a script sounds not 100% correct, when implementing a shell people shouldn't be misguided in thinking they should write external scripts. It's simply a routine in the code itself, it may or not access external files for configuration convenience, but simple built-in completion works well.
Apr
20
comment what is inode for, in FreeBSD or Solaris
Search engine win: linuxquestions.org/questions/linux-kernel-70/….
Mar
8
comment Add consecutive numbers succintly and elegantly to index lines
Too standard. It can make things portable...
Mar
8
comment Add consecutive numbers succintly and elegantly to index lines
Sweet. He could even map the commands to a key. But for the first example I'd rather write a shell script and execute it than open the file on vim and enter this command each time (or press a key) and quit vim then print my file.
Mar
8
comment Add consecutive numbers succintly and elegantly to index lines
surely not POSIX. It's not on OpenBSD. Though I knew it existed before but I will strongly advise not to use it in scripts. A little "idx=0;for i in cat file; do echo $idx $i; idx=eval $idx + 1 ; done" should do the trick (didn't test, but surely you see the point). You could use an editor like vim/view to look at the file and configure it to print line numbers too, you'll have syntax colors as well hey.
Feb
9
comment On what occasion will inode change?
The inode can change but what you mean is the file status information associated with a certain inode. I don't answer since I didn't double check, but it would change when you change your rights, access time, owner, data, etc. This option is useful if you want to check what changed recently on your filesystem, for security reasons (but it's not reliable of course) or just because you forgot what file you just modified. It's just a tool that gives your control, options are here because a file/inode has properties, it's up to anyone to find a use, just know it's here, eventually it'll be useful.
Feb
9
comment Why is my C++ program killed by OS
Oh it evolved well since the time it used to kill sshd.
Feb
8
comment Why is my C++ program killed by OS
Would the OOM killer kill this application? Isn't it designed to select a program with a half-random algorithm and kill it? ahh.. I really despise the OOM killer, I understand why it's needed though... Wish one could build a linux kernel with a -DLOGICAL_BEHAVIOR flag :).
Feb
8
comment Why is my C++ program killed by OS
@ChrisDown: indeed, I forgot that Linux overcommits memory.
Feb
8
comment Can't get to desktop
look at your logs, kill slim then start it by hand.
Feb
8
comment Why is my C++ program killed by OS
Strange, when you request resources like memory or IO operation, the OS will say "OK" or "not OK", but killing the process seems a little drastic. What could have happened is that you were killed because you performed an invalid operation (accessing memory you can't access). Do you have BUS ERROR/Segmentation Fault errors? Run your program within gdb (gdb ./program and hit 'r [arg1] [arg2] to run it), provide us with the output.
Feb
8
comment Failed to get access to the Internet after disabling networkmanager on ArchLinux
can you ping your gateway? does the output of arp -na tells you something (can it resolve the gateway's mac?).