Wednesday, April 6, 2011

Arch Linux: ntpdate 4.2.6-1 / rdate / date

http://aur.archlinux.org/packages.php?ID=19145

Package is flagged out of date.

rdate should be replaced with ntpdate.


date

Using Telenet to Test

http://www.esqsoft.com/examples/troubleshooting-http-using-telnet.htm

INPUT:

>telnet www.esqsoft.globalservers.com 80
Note: this launches telnet and tells it to look up and connect to the server for "www.esqsoft.globalservers.com" on port 80.

OUTPUT:

Trying 64.136.56.122... Connected to www.esqsoft.globalservers.com. Escape character is '^]'.

INPUT:

GET /index.htm HTTP/1.1 host: www.esqsoft.globalservers.com <line feed>
Notes: 
1) no OS cursor caret, the connection is open so you just get a blank line waiting for input. 
2) need to hit <enter> twice after the "host:"

OUTPUT:

HTTP/1.1 200 OK Date: Mon, 18 Apr 2005 16:38:00 GMT Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6 PHP/4.1.2 mod_perl/1.27 FrontPage/5.0.2.2623 Last-Modified: Thu, 01 Jul 2004 01:16:05 GMT ETag: "158e008c-182c-40e365d5" Accept-Ranges: bytes Content-Length: 6188 Connection: close Content-Type: text/html <html> <head> <title>... ...big long nasty HTML code here... </body></html> Connection closed by foreign host. >

Linux: Creating Hard Disk and ISO images

http://www.backuphowto.info/linux-backup-hard-disk-clone-dd

  • dd if=/dev/sda of=~/disk1.img
This work for an win2k disk to pull the ISO.  I was able to used the pulled ISO to build a virtual machine.



Linux: Pogoplug: memory

To see the memory in a Linux system using the following command.
 free

Using the '-m' option will show it in megabytes.  Note this option doesn't work in the busybox; however, it does work in Ark Linux.

BusyBox link:


Ark Linux link:


Man page for 'free' command.


On the Pogoplug pink (version 2) the memory is a follows:

  • Running iRODS slave server:  50600k of 252928k (49mb of 247 mb) used
  • Without iRODS:  50972k of 252928
That is amazing.  The iRODS portion is only 172k.


  • Without iRODS:  



Using Arch Linux: Pacman, hostname, time

pacman

The main command to run to keep everything up-to-date is:

  • pacman -Syu
    • '-S' - synchronize packages
    • '-y'  - down load a fresh copy of the master package list from the server(s).  Usually used with the 'u' option.
    • '-u'  - upgrade all packages that are out of date.
This is the man page:



hostname

Setting the host name seems to be straight forward in Arch Linux.

Set the 'HOSTNAME' variable in the /etc/rc.conf file.

 HOSTNAME="Plugbox"

Map the new name in the /etc/hosts file.

 # # /etc/hosts: static lookup table for host names #  #<ip-address>	<hostname.domain.org>	<hostname> 127.0.0.1	localhost.localdomain	localhost gtripg01 ::1		localhost.localdomain	localhost gtripg01 #127.0.0.1	Plugbox  # End of file 


Much of this information was confirmed or gleaned from this thread:



time

This will take some time today.  I will just gather the links for now.

The Arch Linux page on time with some nice links at the bottom.


The LinuxSA page on time.  Talks about 'rdate' and its replacement 'xntpd'


General pages on time and time jargon:


I now know enough to find the correct page for setting time in PlugApps:


I am not sure what the 'configuration file' is or where it is, but I will try to figure that out with I install the 'openntpd' package.
 pacman -Sy openntpd



Monday, April 4, 2011

Using rdate to set the date on the PlugApps Pogoplug




Example and a site in TX that actually works.



The man page


I tried to get 'rdate' using the pacman tool.  It took a little bit before I realized that I need to download and install the package.

Added the following line to the rc.local file (/etc/rc.local)