Oct 132010
 

tuxAs someone posted in a comment of one of my former article (nohup, bg e disown), i’ve forget a command: setsid, while talking about the possibility of detach a process from a terminal or a shell

man setsid
setsid - run a program in a new session

The main difference i see from nohup is that you “lost” your standard output, but for some programs this could be normal or acceptable.

Basic usage:
For example run a script called ~/src/compile.all on a remote machine:

ssh your.remote-box.com
setsid ~/src/compile.all
logoff (or < ctrl > D)

it’s also possible to pass arguments with setsid command:

setsid /usr/bin/totem '/path/to/my/file.avi'

Flattr this!

Oct 122010
 

ntp linuxThe Network Time Protocol (NTP) is a protocol for synchronizing the clocks of computer systems over packet-switched, variable-latency data networks.

NTP provides Coordinated Universal Time (UTC). No information about time zones or daylight saving time is transmitted; this information is outside its scope and must be obtained separately. In isolated LANs, NTP could in principle be used to distribute a different time scale (e.g. local zone time), but this is uncommon

NTPDATE

ntpdate is a computer program used to synchronize and set computers’ date and time by polling the Network Time Protocol (NTP) server(s).

The accuracy and reliability of ntpdate depends on the number of servers, the number of polls each time it is run and the interval between runs.

Continue reading »

Flattr this!

Oct 102010
 

winbox virtualboxAuthor: Mario Pesce

Introduction

As most people do,when I started using Linux, I created separate partitions for Linux and used Lilo or Grub to boot either into either Windows or Linux, according to the different job requirements.

I normally used my laptop PC during the day in a company that used Windows applications in a Windows based LAN and therefore I normally had to boot in Windows during the day to work with my colleagues whereas at home I would boot mainly into Linux. This approach has a few disadvantages as follows:

  • My work e-mails were in Microsoft Outlook and I had to boot under Windows to access them.
  • I used KMail (and later Mozilla Thunderbird) for my personal e-mails and I had to boot under Linux to access them.
  • I could access Window folders from Linux and copy data from Windows, but I could not access any Linux directory from Windows.

Continue reading »

Flattr this!

Oct 092010
 

penguinsleepSuppose you have a long-running task (for example, compiling a large program) that you need to run, but you also want to get some other work done. Linux lets you start a task in the background and keep on doing other things from the command prompt.

We will see in this article how to send commands in the background, then return them to the foreground, and make sure that also closing the current shell or terminal the process doesn’t remains tied to the session but continue to work.

An alternative to these command is using screen, as read in a former article, but now let’s see the command bg and the special character &

Continue reading »

Flattr this!

Oct 082010
 

macaddressA Media Access Control address (MAC address) is a unique identifier assigned to network interfaces for communications on the physical network segment. Logically, MAC addresses are used in the Media Access Control protocol sub-layer of the OSI reference model.

MAC addresses are most often assigned by the manufacturer of a network interface card (NIC) and are stored in its hardware, the card’s read-only memory, or some other firmware mechanism. If assigned by the manufacturer, a MAC address usually encodes the manufacturer’s registered identification number. It may also be known as an Ethernet hardware address (EHA), hardware address, adapter address, or physical address.

Continue reading »

Flattr this!