Mar
11
2011
A simple tool to modify initrd and rootfs
If you want to customize a distribution to boot only on your particular computer you should be able to modify the initrd and rootfs files. This is a preview of A simple tool to modify initrd and rootfs.... Read moreDec
23
2010
C/Ruby/Perl/bash: How to check for root user
Often, during my work, I must check for the user that is launching my applications, specifically some applications like ping/shutdown/../.. need to be executed by root user. I collected four pieces of code in four languages Ruby... Read moreDec
02
2010
Linux hard drives benchmarks
Often, at the beginning of a project, it is useful to test the devices that will be used to realize the project itself. This is a preview of Linux hard drives benchmarks. Read the full post (327 words, 2... Read moreNov
26
2010
A useless trick for Mac OS X: The Desktop Background
It is possible to use a screensaver as background image in Mac OS X. Simply follow the following steps: Set your screen saver to something cool Open a new Terminal window Type the following command: # /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background that's all,... Read moreNov
21
2010
Customizing the login window on Mac OS X
It is possible adding a text string to the login window, for example you can add a welcome message, simply open a new terminal window and type the following command: # sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "Hi man” This... Read moreNov
18
2010
Cryptic LILO codes explained
Sometimes you could encounter problems with LILO, the Linux Loader. Error messages for LILO are very cryptic, so in the following table you can find some explanations. Output Problem (nothing) No part of LILO has been loaded.... Read moreNov
08
2010
Mac OS X Terminal trasparency
In Mac OS X you can make the Terminal windows transparent simply issuing the following command: # defaults write com.apple.terminal TerminalOpaqueness 'value' Where value can assume values between 0.0 and 1.0 With value=1 your terminal will be completely... Read moreNov
02
2010
Mac OS X: colorizing ls result
On Mac OS X you could give colors to the output of the "ls" command simply adding an alias: # alias ls ='ls -G' also you can show a / at the end of a directory name using the... Read moreOct
30
2010
Ubuntu 10.10: how to stop the wifi led blinking
Ubuntu 10.10 starts the wifi led in blinking mode. At first this feature is nice, but after few hours it annoyed me a lot, so I found a trick to stop this annoying blinking. Simply add the following... Read moreOct
04
2010
How to install and configure the pure-ftp daemon on Gentoo
On a bash shell, as root user run the following command: # emerge -va net-ftp/pure-ftpd ....... ....... ....... ....... ....... ....... ....... >>> /etc/conf.d/pure-ftpd --- /etc/init.d/ >>> /etc/init.d/pure-ftpd * * Before starting Pure-FTPd, you have to edit the... Read moreAug
24
2010
Using the clipboard from the Mac OS X Terminal
You can use the clipboard from the directly from the terminal application, Mac OS X gives you two commands: pbcopy pbpaste Naturally pbcopy will copy something on the clipboard and pbpaste will paste something from the clipboard. For example... Read moreAug
17
2010
Screenshots in Mac OS X
Mac OS X gives you the ability to grab a screenshot of your monitor using the following combination: Cmd-Shift-3 Also it provides the capability to grab only a portion of your screen using the following combination: Cmd-Shift-4 This is... Read moreAug
10
2010
The open command on Mac OSX terminal
On your Mac OS X terminal you can use the open command like a double click. For example you can issue the following command: # open . this command will open the working directory in the finder. This is... Read moreJul
28
2010
How to obtain an X screenshoot from the terminal.
Sometimes I need to get some screenshoots while I'm running live CD's without screenshoots applications, I solved this problem using the xwd command: In a terminal window or in a virtual console you can run the following command: #... Read more
Starting Window Maker on Cygwin
Window Maker is an X11 window manager originally designed to provide integration support for the GNUstep Desktop Environment. In every way possible, it reproduces the elegant look and feel of the NEXTSTEP user interface. It is fast, feature rich,... Read moreJun
13
2010
How to convert a .img file to .vdi
How to convert a .img disk image or a .bin disk image to a .vdi disk image. This is a preview of How to convert a .img file to .vdi. Read the full post (166 words, estimated 40 secs... Read moreMay
28
2010
The Usart Bla bla bla: Using the Standard IO facilities #16
Using the Standard IO facilities of the avr-libc The avr-libc gives some facilities of the standard I/O. Only a limited subset of the standard IO is implemented (refer to the <stdio.h>: Standard IO facilities section of the avr-libc... Read moreMay
25
2010
sudo password timeout in Ubuntu
How To Change The SUDO Password Time-out In Ubuntu The first time you run a command with "sudo" in Ubuntu, you are asked for a password but after running one more command with "sudo" (after a short while), you... Read moreMay
18
2010
The Usart Bla bla bla: The command line arguments #15
The getopt function int getopt(int argc, char * const argv, const char *optstring); extern char *optarg; extern int optind, opterr, optopt; The getopt function is used to parse command option. The parameters argc and argv are the argument count... Read moreApr
30
2010
