Archive for the ‘Bash Tip & Tricks’ Category

Oct
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 more
Aug
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 more
Aug
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: This is a preview of Screenshots in Mac OS X. Read the full post (157 words, estimated 38 secs reading time) Read more
Aug
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 more
Jul
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
Jun
20
2010

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 more
Jun
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 more
May
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 more
May
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 more
May
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 more
Apr
30
2010

Configuring the network interfaces on Gentoo

On Gentoo the main portion of the network configuration will be done inside the configuration file /etc/conf.d/net. For example, to configure the IP address and netmask for the eth0 interface you should add the following line to the /etc/conf.d/net file:... Read more
Apr
23
2010

Configuring the telned daemon on Gentoo to work with root

Gentoo will not come with a telnetd preinstalled, if you want to login with a telnet to your Gentoo box you could follow these step (running as root user): Install the xinetd internet superserver daemon: # emerge sys-apps/xinetd Wait... Read more
Feb
19
2010

KDE 4.x on Ubuntu

Yesterday I installed KDE4 on my Ubuntu 9.04 netbook, the procedure to install the K desktop environment is very easy.   Open a new terminal Type the following command: $ sudo apt-get install kubuntu-desktop This is a preview of... Read more
Jan
10
2010

Network programming: simple udp client server #2

The Client. The following code contains the implementation for the UDP client application that can send data to the server explained in the previous article. This is a preview of Network programming: simple udp client server #2. Read the... Read more
Dec
24
2009

How to remove all files generated by an extracted tar archive

Often I use tar files downloaded from the internet, sometimes these files don't include a directory containing all other files and directories, so it's very tedious removing all files generated by the extraction, but I can use the following... Read more
Dec
20
2009

AspireOne wifi led with ubuntu 9.04

If, on your AspireOne 110 with Ubuntu 9.04, you kincannot see the wifi led blinking you can execute the following commands: gg1@piccoletto:~$ sudo -s password for gg1:  root@piccoletto:~#  apt-get install linux-backports-modules-jaunty Just wait for the completion of the... Read more
Dec
08
2009

Using xargs to parallelize and speed up jobs.

Often we look for new way to boost up our work, so we write a lot of code to perform jobs at high speed. Sometimes the right way is the old way, specially if we need to do repetitive... Read more
Oct
19
2009

Using the Canon LBP2900 with Ubuntu 9.04

The Canon LBP 2900 is an inexpensive black and white laser printer with good caracteristics: Resolution Enhanced :True 600 x 600 dpi resolution Smoothing : Technology (2400 x 600 dpi equivalent with Automatic Image Refinement Technology) Warm-up Time  ... Read more
Oct
11
2009

Removing a type of file recursively.

Sometimes during my work I need to remove a set of files from a big directory tree. For example when I develop a driver or an application and I want to distribute to my customers only the obj files... Read more
Oct
02
2009

How to produce a beep using built-in speaker from the command line interface?

On Windows systems (XP or Vista) you can play a beep using the Win32 MessageBeep operating system function. rundll32 user32.dll,MessageBeep On Windows platforms you can also use the following command: echo ^G You can obtain ^G by pressing together... Read more
Statistical data collected by Statpress SEOlution (blogcraft).