Slashdot Mirror


User: nwk

nwk's activity in the archive.

Stories
0
Comments
6
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 6

  1. Re:Ch Ch Ch Changes on WikiLeaks Moves To Swiss Domain After DNS Takedown · · Score: 1

    Windows XP SP3: C:\WINDOWS\system32\drivers\etc\hosts

    Linux: /etc/hosts

    I use the hosts file on Linux and Windows to redirect ad domains to the loopback void.

    e.g.
    127.0.0.1 ad.doubleclick.net

  2. Wireless Mesh Networks on Combining BitTorrent With Darknets For P2P Privacy · · Score: 2, Insightful

    What we really need is wireless mesh networks formed from a bunch of cheap routers.

    It would not be feasible to monitor a distributed wireless network covering a whole city or county. TOR running on top of this wouldn't have the asymmetrical upload limits that we have with our wired Internet run by The Man.

    It would be the Wild West all over again.

  3. Tar backup script with log and error files on It's 2006 and Backups For Home User Still Tricky? · · Score: 2, Interesting

    I use the following script to backup my Window box.
    It is a shell script that I run under Cygwin that creates a tar backup of a given directory. It also creates a log file of the backup and an error file that you can inspect for files that were not successfully backed up.

    Put the mybackup.sh script somewhere accessible to your PATH variable

    Set the BACKUPDIR variable to your backup directory.
    I backup to my second hardrive at D:\BACKUP so I set BACKUPDIR to /D/BACKUP

    I backup my directory with the following command from the the Cygwin command line:
    mybackup.sh /C/Documents\ and\ Settings/nwk

    with tab completions it's something more like:
    myb[TAB]/C/D[TAB]nwk

    If you want you can set up a cron task to schedule automated backups at regular intervals. You could also modify this script for incremental backups.

    This script can also be used on Linux and UNIX systems (just change the BACKUPDIR). What I like about this script is I can see what didn't get backed up , restored backups preserve the file and directory timestamps, the backups all have a unique name based on the directory name + date + timestamp .tar, tar is universally available, and you have a single file that can be easily burned to disc.

    mybackup.sh:

    #!/bin/sh

    #2005-08-11

    PATH=/bin

    #for testing

    #SRC="/C/temp"

    #first argument is path to backup

    SRC=$1

    echo $1

    BACKUPDIR="/D/BACKUP"

    DIRNAME=`dirname "${SRC}"`

    BASENAME=`basename "${SRC}"`

    TIMESTAMP=`date +%Y%m%d-%H%M`

    ARCHIVENAME="$BASENAME-$TIMESTAMP"

    TARFILE="${BACKUPDIR}/${ARCHIVENAME}.tar"

    LOGFILE="${ARCHIVENAME}_out.txt"

    LOGFILE="$BACKUPDIR/$LOGFILE"

    ERRORFILE="${ARCHIVENAME}_err.txt"

    ERRORFILE="$BACKUPDIR/$ERRORFILE"

    echo $TARFILE

    echo $LOGFILE

    echo $ERRORFILE

    #change directory to create relative path tape archive

    cd "$DIRNAME"

    tar cvf "${TARFILE}" "${BASENAME}" 1>"${LOGFILE}" 2>"${ERRORFILE}"

  4. Re:Just Pick One and Learn it Well on Learning Java or C# as a Next Language? · · Score: 1

    Also, download the JDK source code and point Eclipse at the source code archive and you'll get the documentation from the comments embedded with the code for said completion.

  5. Re:Still no SSH on Microsoft Offers to License the Internet · · Score: 1

    Install Windows Services for Unix and OpenSSH SFU is a POSIX layer that runs on top of the kernel at the same level as Win32. Cygwin runs on top of Win32. More software has been already been ported to Cygwin, but I find that ssh works better with SFU.

  6. Use PortTalk on Windows 98 Phased Out · · Score: 2, Informative

    Use PortTalk to access ports directly.
    http://www.beyondlogic.org/porttalk/porttalk.htm