iccaros
-
Content Count
1292 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Posts posted by iccaros
-
-
it makes samba buffer request and sends into compleat packets, instead of mangling packets the way Windows does..
This make the client not have to process packets as much..
-
progress.. I love (I have gotten more than 3 hours of sleep... oh ya your issues:) )
please run fdisk -l /dev/sda
and see what partitions are listed
then run ntfsfix /dev/sda and see what it tells your, please post the output (a simple way of doing this is
ntfsfix /dev/sda > /tmp/fixntfs.txt and post the contents of that file....
some light reading.. ntfsfix
-
thanks
I always add this line
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
it helps speed up samba transfers
are you logging in If not add
guest ok = yes
also you can set permissions on the folder you are sharing (or drive)
chmod 777 -R /foldername
it will keep these setting, the reason NTFS used the UMASK at mount is because of the differences between windows and unix permissions.
what is the error your linux users are getting, permission denied on write or mount?
how are the linux users mounting the samba share... it could be in there permissions.
or are these users on the same box as the samba share.. and since you have this in your home folder they have auto read but no write permissions (note when you umasked the ntfs it allows all to write to this..)
I would also move these shares out of your home folder and move them to /mnt
it is the "standard" for mounting drives to and will limit possible security issues of people following links up into your home folder..
hope these questions help...
-
this is progress, sorry it was late last night.
This means that hda is your cdrom/dvd what ever
and sda is your harddrive, but NTFS has not unmounted it or has damaged it
can you as root type ntfs and hit tab twice and post what ntfs tools are showing up on your system.. we may be able to fix this..
superblocks are were the drive markes sections in a partition.. you can normally fix superbloc issues in a UNIX FS, but I am not soure about NTFS
-
sorry but I am totally lost with your post..
you have a windows box you are tring to share out or linux box..
you can not use chmod on a NTFS partition as windows uses a totally different format for its permissions..
and windows can not read and ext2 or ext3 format..with out commercial drivers..
in the samba (smb.conf) config (if its a linux box sharing) you set anonymous access, where that is is hard to say, but there are two ways of finding it
open /etc/init.d/samba and see where it points to its config
try under /etc/samba/smb.conf
or as root cd to /
then do a find . -name smb.conf
if its a windows box sharing out its shares... then look at the windows logs and see what error you are getting, from there we can trouble shoot this more..
-
open a command console
if its an IDE drive
sudo - su
enter your password (live cd ?? it may not ask)
type mkdir /mnt/windows1
mount /dev/hda1 /mnt/window1
if its a sata drive (or SCSI)
do the same but the mount command is
mount /dev/sda1 /mnt/window1
post any error that pop up and we can go from there... with out more information its hard to say... also that live cd may not have ntfs3g and in that case will not be able to mount the NTFS partition...
-
I sometimes run it on 2202 or 2222, but it does not really matter as long as you are not using the port for anything else..
putty lets you set the port
for the command line -p with set port.
same will need done for scp and sftp since they both use ssh
-
does it show up but not print, or is it not showing up at all..
there is a bug posted for feisty and this printer, if its showing up we can go down that route.
it has been reported that if you open a browser and go to localhost:631 (also known as the cups administrator page, CUPS is common unix print system)
select new printer on lpt1 and select by brand and model..
hope that works.
-
good luck, I don't think you'll need it. I had no issues following the debian guide.
if you are going to use ssh, I recommend that you change what port it is run on. I have not received one attempt to hack my sever since ssh has been moved.
I used signed keys, so it would be hard to hack, but I like removing the attempts
-
for those that do not know Realistic what a Radio Shack Brand when they used to make things... and they were great equipment, not top of the line but no where near the bottom.
ah the good old days when you need a 74 series chip, and could pick it up for under a dollar, and the sales person had a clue what 74 series logic was. .now they have no clue and when you do find them they are $3.
thanks for the walk down memory lane..
ps Vinyl is all the rage with collage students.. your speakers my be worth more then you think
-
so its another front end for wine.. its nice that its free, but dose only the directX stuff cedega pushed back and was accepted. Cedega may still be the better option for most direct X games.
but I would give this a try first..
now if some one could get C&C (the newest one) to run.. that would be great
but it crashes on windows alot, so maybe it is running just as well on linux..
-
last one, ignore the rest
this is a messed up project with too many versions on their sites (they have three diffrent sites I have found)
here is the newest version
http://atterer.net/jigdo/jigdo-win-0.7.2.zip
and you will need the links to the jigdo files
here
http://cdimage.debian.org/debian-cd/4.0_r3...i386-CD-1.jigdo
http://cdimage.debian.org/debian-cd/4.0_r3...i386-CD-2.jigdo
http://cdimage.debian.org/debian-cd/4.0_r3...i386-CD-3.jigdo
http://cdimage.debian.org/debian-cd/4.0_r3...i386-CD-4.jigdo
this is a horrable program and after getting it to work, well it ask no less then 5 questions you must search for on the web, I can not get a good menu file from them
this how not to write a program.
-
sorry, I see now it wil speed up download
but there script is broken replace there jigdo-easy.sh with this
#! /bin/sh
# jigdo-easy: highly portable textmode full-screen menu-driven jigdo client
# Copyright 2001-2002 Richard Atterer, J.A. Bezemer
# License: GPL version 2
# NOTE: This code was tested on a multitude of systems, including many ancient
# ones. Be sure to re-test if you make any change, however small it may seem.
# Some defaults
jigdoOpts="--cache jigdo-file-cache.db"
mirrors="mirrors.jigdo"
tmpDir="jigdo-easy-tmp" # is rm -rf'd, DON'T use "." or similar!
tmplistFile="tmplist"
filesPerFetch=10
menuURL="http://cdimage.debian.org/~costar/jigdo/jigdo-easy-2.1/menu.jigdo"
submenu="Main"
if test "${OSTYPE#cygwin}" != "$OSTYPE"; then
menuURL="http://www.uk.debian.org/~costar/jigdo/example/menu.jigdo"
rcFile="./jigdo-easy.conf"
LINES=25
PATH="$PWD":"$PATH"
else
rcFile="$HOME/.jigdo-easy"
fi
#______________________________________________________________________
# Compatibility/availability tests
# Check for programs
problem=false
testvar=false; ! $testvar 2>/dev/null \
|| { echo "Your shell does not interpret \`!' (negation) correctly"
echo " - please run this script with another shell."
problem=true; }
testvar='[test]abc'; test "${testvar#\[test\]}" = "abc" \
|| { echo "Your shell does not correctly support advanced variable substitution"
echo " - please run this script with another shell."
problem=true; }
wget --version >/dev/null 2>&1 \
|| { echo "Could not find a working \`wget' - please install it!"
problem=true; }
test "`echo test | egrep '^(ab|te)' 2>/dev/null`" = "test" \
|| { echo "Could not find a working \`egrep' (or \`test') - please install it!"
problem=true; }
test "`echo test | sed -e 's/es/tt/' 2>/dev/null`" = "tttt" \
|| { echo "Could not find a working \`sed' - please install it!"
problem=true; }
test "`printf '%3d %s' 4 az 2>/dev/null`" = ' 4 az' \
|| { echo "Could not find a correctly working \`printf' - please compile myprintf.c"
problem=true; }
# jigdo-file may be in PWD, or maybe we're running from the source tree
ORIGPATH="$PATH"
jigdo-file --version >/dev/null 2>&1 || PATH="$ORIGPATH":"$PWD"
jigdo-file --version >/dev/null 2>&1 || PATH="$ORIGPATH":"`dirname "$0"`"/../src
usejigdoport=false
if ! jigdo-file --version >/dev/null 2>&1; then
# Maybe jigdo-port is available
PATH="$ORIGPATH"
jigdo-port --version >/dev/null 2>&1 || PATH="$ORIGPATH":"$PWD"
jigdo-port --version >/dev/null 2>&1 || PATH="$ORIGPATH":"`dirname "$0"`"/../src
jigdo-port --version >/dev/null 2>&1 || PATH="$ORIGPATH":"`dirname "$0"`"/../jigdo-port
jigdo-port --version >/dev/null 2>&1 || PATH="$ORIGPATH":"`dirname "$0"`"/jigdo-port
if jigdo-port --version >/dev/null 2>&1; then
# Okay, found
usejigdoport=true
jigdo_file() { jigdo-port "$@"; }
else
echo "Could not find both jigdo-file and jigdo-port - please install either!"
problem=true
fi
else
jigdo_file() { jigdo-file "$@"; }
fi
# See if gzip is available, otherwise search for minigzip from zlib
ORIGPATH="$PATH"
if ! gzip --version >/dev/null 2>&1; then
test "`echo test | minigzip -d 2>/dev/null`" = "test" || PATH="$ORIGPATH":"$PWD"
test "`echo test | minigzip -d 2>/dev/null`" = "test" || PATH="$ORIGPATH":"$PWD"/zlib-1.1.3
test "`echo test | minigzip -d 2>/dev/null`" = "test" || PATH="$ORIGPATH":"`dirname "$0"`"
test "`echo test | minigzip -d 2>/dev/null`" = "test" || PATH="$ORIGPATH":"`dirname "$0"`"/zlib-1.1.3
if test "`echo test | minigzip -d 2>/dev/null`" = "test"; then
# Okay, found
gzip() { minigzip "$@"; }
else
echo "Could not find both gzip and minigzip - please install either!"
problem=true
fi
fi
$problem && echo "" && exit 1
#______________________________________________________________________
# trust stty (if it works) more than $LINES (if available)
linesonscreen="`stty -a | sed -n -e 's/^.*rows[^0-9]*\([0-9]*\).*$/\1/p'`"
! echo "$linesonscreen" | egrep '^[0-9][0-9]*$' >/dev/null \
&& linesonscreen="$LINES"
! echo "$linesonscreen" | egrep '^[0-9][0-9]*$' >/dev/null \
&& linesonscreen=24
#______________________________________________________________________
# read with readline, only if running bash >=2.03 (-e gives error on POSIX)
if test "${BASH_VERSION#[2-9].}" != "$BASH_VERSION"; then
if test "${BASH_VERSION#2.0[012]}" = "$BASH_VERSION"; then
read() { builtin read -e "$@"; }
fi
fi
#______________________________________________________________________
# Check for existing true/false, workaround if necessary (may even be faster)
#true 2>/dev/null || { true() { return 0; }; false() { return 1; }; }
# Commented out because HP-UX posix-sh won't parse () after reserved words.
#______________________________________________________________________
# If IFS not set, set it to default (otherwise OLDIFS problems below)
test "$IFS" || IFS="`echo ' '`" # space, tab (enter by echo)
#______________________________________________________________________
# zsh <3.1.3 has broken set -- "$@" handling (changelog 6 Jan 98) so only
# fetchAndMerge a single file there. ZSH_VERSION is defined since at least
# Oct 1994, or zsh 2.6; earlier versions (also?) used VERSION='zsh v2.3.0'
if test "${ZSH_VERSION#[0123].}" != "$ZSH_VERSION"; then
if test "${ZSH_VERSION#[012].}" != "$ZSH_VERSION"; then
filesPerFetch=1
fi
if test "${ZSH_VERSION#3.0.}" != "$ZSH_VERSION"; then
filesPerFetch=1
fi
if test "${ZSH_VERSION#3.1.[012]}" != "$ZSH_VERSION"; then
filesPerFetch=1
fi
fi
if test "${VERSION#zsh}" != "$VERSION"; then
filesPerFetch=1
fi
#______________________________________________________________________
# poor substitute for non-POSIX fmt (fmt is tape tool on HPUX...)
if test "`echo test | fmt -c -w97 2>/dev/null`" != "test"; then
# and SunOS <=4 doesn't do fold -s
if test "`echo test | fold -s`" = "test"; then
fmt() {
{ if test "$1" = "-c"; then
tr '12' ' '; echo "" # 12 is portable for \n
else
cat
fi
} | sed -e 's/ */ /g' | fold -s
}
else
fmt() {
{ if test "$1" = "-c"; then
tr '12' ' '; echo "" # 12 is portable for \n
else
cat
fi
} | sed -e 's/ */ /g' | fold
}
fi
fi
#______________________________________________________________________
# isURI <string>
# Returns 0 (true) if the supplied string is a HTTP/FTP URL, otherwise 1
isURI() {
case "$1" in
http:*|ftp:*|HTTP:*|FTP:*|file:*|FILE:*) return 0;;
*) return 1;
esac
}
#______________________________________________________________________
# fetch <URL>...
# Download one or more files, storing them in the current dir
fetch() {
if test "$#" -eq 0; then return 0; fi
wget --user-agent="jigdo-easy/2.1 ($wgetVersion)" \
--no-directories --timestamping "$@" || return 1
# (older?) wget is buggy, will --continue even if newer (--timestamping)
}
wgetVersion=`wget --version 2>/dev/null | (read ver; echo $ver)`
#______________________________________________________________________
# Given URLs, fetch them into $tmpDir, then merge them into image
fetchAndMerge() {
(mkdir "$tmpDir"; cd "$tmpDir"
wget --user-agent="jigdo-easy/2.1 ($wgetVersion)" \
--no-directories --no-parent "$@")
# wget: if downloading two different "linux"-es in one run,
# we want them separate, not --continue'd or --timestamping'd;
# dummy option --no-parent to keep same minimal argcount for
# wget-replacing function (Sun/IRIX).
# Merge into the image
if ! $usejigdoport; then
jigdo_file $jigdoOpts make-image $ijtOpts "$tmpDir"
else
jigdo_file $jigdoOpts make-image $ijtOpts "$tmpDir"/*
fi
jigdoErr="$?"
if test "$jigdoErr" -ge 2; then
echo ""
echo "jigdo-file failed with code $jigdoErr - aborting."
echo ""
exit 1
fi
# Delete tmpDir, to avoid taking up more space than necessary
rm -rf "$tmpDir"
}
#______________________________________________________________________
# Prompt user to input value, assign result to $REPLY. If user just
# presses Return, assign supplied default value instead.
# input <prompt string> <default value>
input() {
prompt=""
if test "$2"; then prompt=" [$2]"; fi
printf "%s%s: " "$1" "$prompt"
read REPLY
if test -z "$REPLY"; then REPLY="$2"; fi
}
#______________________________________________________________________
# getEntry <section> <label>
# Reads a jigdo file from $jigdo and outputs value of first matching entry
getEntry() {
insection=false
egrep '^[ ]*([[]|'"$2"'[ ]*=)' < "$jigdo" \
| while read inp; do
if test "${inp#\[}" != "$inp"; then insection=false; fi
if test "${inp#\[$1\]}" != "$inp"; then
insection=true
elif $insection; then
label="${inp%%=*}"; label="${label%% *}"; label="${label%% *}" # space, tab
if test "$label" = "$2"; then
echo "`echo "$inp" | sed -e 's/^[^=]*=//; s/^[ ]*//'`" # id.
break
fi
fi
done
}
#______________________________________________________________________
# Output a horizontal rule
hrule() {
clear
echo ' Jigsaw Download "Easy" Copyright (C) 2001-2002 R. Atterer, J.A. Bezemer GPL2'
echo ""
if test "$image"; then
echo "File : $image"
echo "Label: $shortinfo"
echo "Info : $longinfo" | fmt -s
echo ""
fi
}
#______________________________________________________________________
# Download template, unless already downloaded/checked-for-currentness
# in this session
fetchTemplate() {
if $fetchedTemplate; then return 0; fi
echo 'Downloading .template file, one moment please...'
echo ""
fetch "$templateURI"
# Does template exist now?
if test ! -r "$template"; then
echo ""
echo "Error: could not fetch \`$template'"
echo ""
echo "Note: This may happen when the automatic random server selection has"
echo "selected a server that is not available at this moment. Please try"
echo "again in a few minutes. Thanks for your patience."
echo ""
exit 1
fi
}
fetchedTemplate=false
#______________________________________________________________________
# Write $rcFile
saveoptions() {
printf "jigdo='%s'\ndebianMirror='%s'\nnonusMirror='%s'\n" \
"$jigdo" "$debianMirror" "$nonusMirror" >"$rcFile"
}
#______________________________________________________________________
# Get list from $tmplistFile, print it, read input (number or text) to $REPLY.
# listinput <lines-on-screen> <startline> <prompt> <defaultval>
# <startline> is 1-based.
# Parameters $3 and further are actually passed to input(), above.
listinput() {
lines="$1"
startline="$2"
shift; shift
{ {
num=1
while read inp; do
printf "%3d.\n %s" "$num" "$inp" | fmt -c -w79
num=$(($num+1))
done < "$tmplistFile"
echo ""
} | {
line="$startline" # = where this line is going to be printed
OLDIFS="$IFS"
IFS=""
while read inp; do
if test "$line" -ge "$lines"; then
printf "[Enter]"
read REPLY 0<&3 >/dev/null 2>/dev/null
printf "\r \r"
line=1
fi
echo "$inp"
line="$(($line+1))"
done
IFS="$OLDIFS"
}; } 3<&0
input "$@"
# Handle numbers
if test "$REPLY" && test -z "`echo "$REPLY" | sed -e 's/[0-9]//g'`"; then
# Avoid head and tail when we can easily do it ourselves.
num=1
while read inp; do
test "$num" -eq "$REPLY" && REPLY="$inp" && break
num=$(($num+1))
done < "$tmplistFile"
fi
}
#______________________________________________________________________
# "Main"
hrule
# Load preferences file, if present
if test -r "$rcFile"; then
# echo "Loading settings from \`$rcFile'"
. "$rcFile"
fi
# No cmd line argument, then show menu.
# Ignore the (possibly) saved setting, which works very confusing
# in the new menu system.
# If commandline argument, assume jigdo (+ subimage number)...
jigdo="$1"
subimage=1
test "$2" && subimage="$2"
# ...unless it's a menu
if echo "$1" | egrep '/menu.jigdo' >/dev/null 2>&1; then
menuURL="${jigdo%%\|*}"
submenu="${jigdo#*\|}"
{ test -z "$submenu" || test "$submenu" = "$jigdo"; } && submenu="Main"
jigdo=""
set --
fi
mirrorsfetched=false
oldmenuURL=""
firstmenu=true
while test -z "$jigdo"; do
# Get menu file
if test "$menuURL" != "$oldmenuURL"; then
rm -f menu.jigdo # defy --timestamping
hrule
echo "CD IMAGE SELECTION"
echo "------------------"
echo ""
echo "Fetching menu..."
echo ""
fetch "$menuURL"
if test ! -r menu.jigdo; then
echo ""
echo "Error: could not fetch the menu."
echo ""
echo "Note: This may happen when the menu server has to serve many many"
echo "users at the same time. Please try again in a few minutes. Thanks"
echo "for your patience."
echo ""
exit 1
fi
# Try to decompress
rm -f menu.jigdo.unpacked
if gzip -d < menu.jigdo > menu.jigdo.unpacked 2>/dev/null; then
rm -f menu.jigdo
mv menu.jigdo.unpacked menu.jigdo
else
rm -f menu.jigdo.unpacked
fi
oldmenuURL="$menuURL"
fi
hrule
echo "CD IMAGE SELECTION"
echo "------------------"
echo ""
firstmenuline=6
if $firstmenu; then
echo "Use the menu below to specify which CD image you want to download."
echo "Alternatively, enter a .jigdo URL or the name of a local .jigdo file directly."
echo "To resume a half-finished download, simply specify the same image."
echo ""
firstmenu=false
firstmenuline=10
fi
rm -f "$tmplistFile"
inmenu=false
newmenu=false
jigdofound=false
titleprinted=false
defaultopt=""
mirrorsURL=""
overridetemplateURL=""
subimage=1
subigrep=""
REPLY=""
while read inp; do
if $inmenu; then
if test "${inp#\[}" != "$inp"; then break; fi
label="${inp%%=*}"; label="${label%% *}"; label="${label%% *}" # space, tab
value="`echo "$inp" | sed -e 's/^[^=]*=//; s/^[ ]*//'`" # id.
case "$label" in
"Title") echo "$value"; firstmenuline="$(($firstmenuline+1))"
titleprinted=true;;
"Option") echo "$value" >> "$tmplistFile";;
"Default") defaultopt="$value";;
"Menu") REPLY="$value"; newmenu=true; break;;
"Mirrors") mirrorsURL="$value";;
"Template") overridetemplateURL="$value";;
"SubImage") subimage="$value";; # numeric; overriden by SubIGrep
"SubIGrep") subigrep="$value";; # egrep pattern, full-line match
"Jigdo") REPLY="$value"; jigdofound=true; break;; # note: break!
esac
fi
if test "${inp#\[Menu:$submenu\]}" != "$inp"; then
inmenu=true
fi
done < menu.jigdo
if ! $inmenu; then
REPLY="$1"; shift
newmenu=true
if test -z "$REPLY"; then
echo ""
echo "Error in menu $menuURL: $submenu not found."
echo ""
exit 1
fi
fi
if ! $newmenu && ! $jigdofound; then
# Remember this menu for Back function
set -- "$menuURL|$submenu" "$@"
test "$#" -gt 1 && echo "Back" >> "$tmplistFile"
if $titleprinted; then
echo ""
firstmenuline="$(($firstmenuline+1))"
fi
listinput "$linesonscreen" "$firstmenuline" "Choice/.jigdo" "$defaultopt"
if test "$REPLY" = "q" || test "$REPLY" = "quit" || test "$REPLY" = "exit" \
|| test "$REPLY" = "Quit" || test "$REPLY" = "Exit"; then exit
elif test "$REPLY" = "Back" || test "$REPLY" = "back"; then
shift; REPLY="$1"; shift
newmenu=true
elif isURI "$REPLY"; then
if echo "$REPLY" | egrep '/menu.jigdo' >/dev/null; then newmenu=true
elif test "${REPLY%.jigdo}" != "$REPLY"; then jigdofound=true
else
# default to .jigdo, even if different extension
jigdofound=true;
fi
elif test -r "$REPLY"; then jigdofound=true
fi
fi
if $jigdofound; then
jigdo="$REPLY"
elif $newmenu; then
menuURL="${REPLY%%\|*}"
submenu="${REPLY#*\|}"
{ test -z "$submenu" || test "$submenu" = "$REPLY"; } && submenu="Main"
else
submenu="$REPLY"
fi
done
rm -f menu.jigdo
# Jigdo can be either URL or filename. Maybe download file
if isURI "$jigdo"; then
hrule
echo "CD IMAGE SELECTION"
echo "------------------"
echo ""
echo "Downloading .jigdo file, one moment please..."
echo ""
if ! fetch "$jigdo"; then
# Old jigdo might still exist, but we should abort if it couldn't
# be timestamp-checked.
echo ""
echo "Error: could not download \`$jigdo'"
echo ""
echo "Note: This may happen when the automatic random server selection has"
echo "selected a server that is not available at this moment. Please try"
echo "again in a few minutes. Thanks for your patience."
echo ""
exit 1
fi
jigdo=`basename "$jigdo"`
fi
# Does jigdo exist now?
if test ! -r "$jigdo"; then
echo ""
echo "Error: file \`$jigdo' does not exist!"
echo ""
exit 1
fi
# Try to decompress it. In case of error, assume that it wasn't compressed
rm -f "$jigdo".unpacked
if gzip -d < "$jigdo" > "$jigdo".unpacked 2>/dev/null; then
rm -f "$jigdo"
jigdo="$jigdo".unpacked
else
rm -f "$jigdo".unpacked
fi
hrule
echo "WORKING"
echo "-------"
echo ""
# Get subimage info (based on getEntry, which isn't used any more)
subcounter=0
found=false
insection=false
# Don't do this in a pipe=subshell since we're setting global vars
rm -f "$jigdo".temp
egrep '^[ ]*([[]|(Filename|Template|ShortInfo|Info)[ ]*=)' \
< "$jigdo" > "$jigdo".temp
while read inp; do
if test "${inp#\[}" != "$inp"; then
insection=false
if $found; then break; fi
fi
if test "${inp#\[Image\]}" != "$inp"; then
printf '.'
insection=true
image=""
templateURI=""
shortinfo=""
longinfo=""
subcounter="$(($subcounter+1))"
! test "$subigrep" && test "$subcounter" -eq "$subimage" && found=true
elif $insection; then
if test "$subigrep"; then
echo "$inp" | egrep "$subigrep" >/dev/null 2>&1 && found=true
fi
label="${inp%%=*}"; label="${label%% *}"; label="${label%% *}" # space, tab
value="`echo "$inp" | sed -e 's/^[^=]*=//; s/^[ ]*//'`" # id.
test "$label" = "Filename" && image="$value"
test "$label" = "Template" && templateURI="$value"
test "$label" = "ShortInfo" && shortinfo="$value"
test "$label" = "Info" && longinfo="$value"
fi
done < "$jigdo".temp
rm -f "$jigdo".temp
test "$overridetemplateURL" && templateURI="$overridetemplateURL"
template=`basename "$templateURI"`
list="$image.list"
echo ""
# switches to pass to jigdo-file, specifying the image, jigdo and template
ijtOpts="--image=$image --jigdo=$jigdo --template=$template"
ready=false
# Ask user for any parts on local filesystems
while ! $ready; do
hrule
echo "LOCAL FILES"
echo "-----------"
echo ""
echo "If you already have a previous version of the image you are"
echo "downloading, jigdo can re-use files on the old image that are also"
echo "present on the new image, and you do not need to download them"
if test "${OSTYPE#cygwin}" != "$OSTYPE"; then
echo "again. If you have an older but similar CD, insert it in the CD-ROM"
echo "drive, and enter \`D:\\' (assuming the drive is D:). When done, this"
echo "question will appear again to let you re-use even more. To stop re-using"
echo "and proceed to the downloading of any remaining files, press Enter."
echo "Note: do NOT use this option if you have a local Debian FTP mirror,"
echo "that's the next question."
echo ""
echo "If you've never used Debian before, just press Enter."
echo ""
printf "Files/directories to scan: "
read -r files
else
echo "again. If you have an older but similar CD, mount it in and enter"
echo "the path to it, for example \`/mnt/cdrom'. When done, this question"
echo "will appear again to let you re-use even more. To stop re-using and"
echo "proceed to the downloading of any remaining files, press Enter."
echo "Note: do NOT use this option if you have a local Debian FTP mirror,"
echo "that's the next question."
echo ""
echo "If you've never used Debian before, just press Enter."
echo ""
printf "Files/directories to scan: "
read files
fi
if test -z "$files"; then break; fi
hrule
echo "FETCHING TEMPLATE"
echo "-----------------"
echo ""
fetchTemplate
fetchedTemplate=true
hrule
echo "CONSTRUCTING IMAGE"
echo "------------------"
echo ""
if ! $usejigdoport; then
jigdo_file $jigdoOpts make-image $ijtOpts $files
else
find $files -type f -print \
| jigdo_file $jigdoOpts make-image $ijtOpts --files-from=-
fi
jigdoErr="$?"
if test "$jigdoErr" -eq 0; then
# All files were present on local filesystem
ready=true
elif test "$jigdoErr" -ge 2; then
echo ""
echo "jigdo-file failed with code $jigdoErr - aborting."
echo ""
exit 1
fi
done
# Deal with left-over tmpdir from previous, interrupted download
if ! $ready && test -r "$tmpDir"; then
hrule
echo "WARNING"
echo "-------"
echo ""
echo "The temporary directory \`$tmpDir' already exists. It was probably created"
echo "during a previous jigdo-easy run, but you may also have created it"
echo "yourself. Its contents ARE GOING TO BE DELETED (possibly after having"
echo "been copied to the image, if they are of interest for it). If you do"
echo "not want this to happen, press Ctrl-C now. Otherwise, press Enter to"
echo "proceed."
echo ""
printf '> '
read REPLY
fi
# Crude check for whether any entry in the [Parts] section uses a
# "Debian" or "Non-US" label. If yes, start Debian mirror selection
# below.
usesDebian=false
if egrep -l '^[^=]+= *["'\'']?Debian:' "$jigdo" >/dev/null; then
usesDebian=true
fi
usesNonus=false
if egrep -l '^[^=]+= *["'\'']?Non-US:' "$jigdo" >/dev/null; then
usesNonus=true
fi
# Download files and merge them into the image. We instruct wget to
# download 10 files at a time and then merge them. This way, compared
# to downloading everything, the peak disc space usage is not twice
# the size of the final image.
while ! $ready; do
# Extra options to pass to jigdo-file for server selection
uriOpts=""
if $usesDebian; then
hrule
echo "DEBIAN MIRROR"
echo "-------------"
echo ""
echo "The jigdo file refers to files stored on Debian mirrors. Please"
echo "choose a Debian mirror as follows:"
echo ""
echo "- Local mirror, in the form \`file:/opt/mirrors/debian/', or"
echo ""
echo "- Complete URL, in the form \`ftp://ftp.debian.org/debian/', or"
echo ""
echo "- Search term to search through the list of mirrors (regexp), for"
echo " example \`de' (country code for Germany) or \`United States'"
echo " or \`sunsite'. Use \`.' to get a list of all mirrors."
echo ""
input "Debian mirror/search" "$debianMirror"
if ! isURI "$REPLY"; then
if ! $mirrorsfetched && test "$mirrorsURL"; then
mirrorsfetched=true
rm -f "$mirrors" # defy --timestamping
hrule
echo "DEBIAN MIRROR"
echo "-------------"
echo ""
echo "Downloading mirrors list, one moment please..."
echo ""
if ! fetch "$mirrorsURL"; then
echo ""
echo "Error: could not fetch the mirrors list"
echo ""
echo "Note: This may happen when the automatic random server selection has"
echo "selected a server that is not available at this moment. Please try"
echo "again in a few minutes. Thanks for your patience."
echo ""
exit 1
fi
# Try to decompress
rm -f "$mirrors".unpacked
if gzip -d < "$mirrors" > "$mirrors".unpacked 2>/dev/null; then
rm -f "$mirrors"
mv "$mirrors".unpacked "$mirrors"
else
rm -f "$mirrors".unpacked
fi
fi
while true; do
# Special-case two-letter country codes
case "$REPLY" in [a-z][a-z]) REPLY="[. ]$REPLY[/. ]";; esac
egrep -i "$REPLY" "$mirrors" | sed -n -e 's/^Debian=//p' \
> "$tmplistFile"
hrule
echo "DEBIAN MIRROR"
echo "-------------"
echo ""
echo "Known mirrors matching your search term:"
echo ""
listinput "$linesonscreen" 12 "Debian mirror/search" "$debianMirror"
REPLY="${REPLY%% *}" # keep only URL
if isURI "$REPLY"; then
break;
fi
done
fi
# Turn any "file:/opt/mirror" into "file:/opt/mirror/"
debianMirror=`echo $REPLY | sed -e 's%^\(.*[^/]\)$%\1/%'`
saveoptions
uriOpts="--uri Debian='$debianMirror'"
fi
if $usesNonus; then
hrule
echo "NON-US MIRROR"
echo "-------------"
echo ""
echo "The jigdo file also refers to files stored on Debian's separate Non-US"
echo "mirrors. Please choose such a mirror as follows:"
echo ""
echo "- Local mirror, in the form \`file:/opt/mirrors/debian-non-US/', or"
echo ""
echo "- Complete URL, in the form \`ftp://non-us.debian.org/debian-non-US/', or"
echo ""
echo "- Search term to search through the list of mirrors (regexp), for"
echo " example \`de' (country code for Germany) or \`Finland' or \`sunsite'."
echo " Use \`.' to get a list of all mirrors."
echo ""
input "Non-US mirror/search" "$nonusMirror"
if ! isURI "$REPLY"; then
if ! $mirrorsfetched && test "$mirrorsURL"; then
mirrorsfetched=true
rm -f "$mirrors" # defy --timestamping
hrule
echo "NON-US MIRROR"
echo "-------------"
echo ""
echo "Downloading mirrors list, one moment please..."
echo ""
if ! fetch "$mirrorsURL"; then
echo ""
echo "Error: could not fetch the mirrors list"
echo ""
echo "Note: This may happen when the automatic random server selection has"
echo "selected a server that is not available at this moment. Please try"
echo "again in a few minutes. Thanks for your patience."
echo ""
exit 1
fi
# Try to decompress
rm -f "$mirrors".unpacked
if gzip -d < "$mirrors" > "$mirrors".unpacked 2>/dev/null; then
rm -f "$mirrors"
mv "$mirrors".unpacked "$mirrors"
else
rm -f "$mirrors".unpacked
fi
fi
while true; do
# Special-case two-letter country codes
case "$REPLY" in [a-z][a-z]) REPLY="[. ]$REPLY[/. ]";; esac
egrep -i "$REPLY" "$mirrors" | sed -n -e 's/^Non-US=//p' \
> "$tmplistFile"
hrule
echo "NON-US MIRROR"
echo "-------------"
echo ""
echo "Known mirrors matching your search term:"
echo ""
listinput "$linesonscreen" 12 "Non-US mirror/search" "$nonusMirror"
REPLY="${REPLY%% *}" # keep only URL
if isURI "$REPLY"; then
break;
fi
done
fi
# Turn any "file:/opt/mirror" into "file:/opt/mirror/"
nonusMirror=`echo $REPLY | sed -e 's%^\(.*[^/]\)$%\1/%'`
saveoptions
uriOpts="$uriOpts --uri Non-US='$nonusMirror'";
fi
hrule
echo "FETCHING TEMPLATE"
echo "-----------------"
echo ""
fetchTemplate
fetchedTemplate=true
hrule
echo "CONSTRUCTING IMAGE"
echo "------------------"
echo ""
# Output list of missing files
jigdo_file $jigdoOpts print-missing $ijtOpts $uriOpts >"$list"
jigdoErr="$?"
if test "$jigdoErr" -ge 2; then
echo ""
echo "jigdo-file failed with code $jigdoErr - aborting."
echo ""
exit 1
fi
echo "Created \`$list'"
# If a "file:" URI was given instead of a server URL, try to merge
# any files into the image.
echo "Merging parts from \`file:' URIs, if any..."
egrep -v '^(http|HTTP|ftp|FTP):' <"$list" \
| jigdo_file $jigdoOpts make-image $ijtOpts --files-from=-
jigdoErr="$?"
if test "$jigdoErr" -ge 2; then
echo ""
echo "jigdo-file failed with code $jigdoErr - aborting."
echo ""
exit 1
fi
# Try to download and merge any remaining URIs in list
set --
egrep '^(http|HTTP|ftp|FTP):' <"$list" \
| while true; do
if read uri; then
# Download and merge $filesPerFetch parts at a time
set -- "$@" "$uri"
if test "$#" -ge "$filesPerFetch"; then
fetchAndMerge "$@"
set --
fi
else
# End of list reached - download and merge remaining parts
if test "$#" -gt 0; then fetchAndMerge "$@"; fi
break
fi
done
if test -r "$image"; then break; fi
hrule
echo "PROBLEM"
echo "-------"
echo ""
echo "Oops - not all files could be downloaded..."
echo ""
echo "Depending on the situation, it may help to just restart the download."
if $usesDebian || $usesNonus; then
echo "Also, you could try changing to another Debian or Non-US server, in"
echo "case the one you used was not updated recently."
fi
echo ""
echo "On the other hand, it may also be that some required files have"
echo "disappeared. If the image is still available on an rsync server, you"
echo "can try to complete it that way. For another option, read the README."
echo ""
echo "If you want to restart, press Enter; otherwise press Ctrl-C or close"
echo "this window (if running in one)."
echo ""
printf '> '
read REPLY
done
hrule
echo "FINISHED!"
echo "---------"
echo ""
echo "The fact that you got this far is a strong indication that the"
echo "image was generated correctly. I will perform an additional, final"
echo "check, which you can interrupt safely with Ctrl-C if you do not want"
echo "to wait."
echo ""
rm -f "$list" "$tmplistFile" "$mirrors"
jigdo_file $jigdoOpts verify $ijtOpts
rm -f "$template" "$jigdo"
echo ""in reallity there menuurl is wrong, and I fixed it
they had http://cdimage.debian.org/~costar/jigdo/ji...-2.1/menu.jigdo (which is still there we changed it when it used)
to
if test "${OSTYPE#cygwin}" != "$OSTYPE"; then
menuURL="http://www.uk.debian.org/~costar/jigdo/example/menu.jigdo"
I used a newer version then you have
-
also it looks like you may need to install cygwin to make it work, they say they contain cygwin technology, but I don't see cygwin.dll which is needed for cygwin stuff to work
-
would not this work
http://cdimage.debian.org/debian-cd/4.0_r3...386-netinst.iso
its a net install cd image. why do you need software to download an ISO image?
-
some notes that don't fix your problem but may help in the future.
first I never use magic numbers (that is I never test values against a number explisitly, this way you can change the test condition latter with a configuration file when the code is more complex.
example
int sentinel = -1;
while (x != sentinel)
this way in larger code projects the test case also means more to you, after a while you may not remember what -1 is.
also you could change this to
int sentinel = 0;
while (x > sentinel)
this way any negative number would end the loop
another thing
you can use += instead of item = item + x;
so it would be item += x;
and to increment a value you can use ++;
so item = item + 1 can be written
item++;
the same as item = item -1 could be
item--;
and why do you have while statements to test the value of min or max? should those not be if statements?
if(x > max)
{
max = x;
}
else if (x < min)
{
min = x;
}
and should the input be inside your while statement?
you have this
System.out.print("Enter values to determine Max, Min, and Mean: ");
x = input.nextInt();
twice when it could be once if it came after your while statement
while (x != -1)
I would also change that to a boolean value and test x after the input and make the value true
example
sentinel = 0;
boolean test = true;
while(test)
{
System.out.print("Enter values to determine Max, Min, and Mean: ");
x = input.nextInt();
if (x < sentinel)
{
test = false;
}
//do rest of work
}
-
you should still need a password when running the update program. This way your system is still protected while your user account is open ..
-
either the person is kidding, or plan stupid on what dev/null is.. in any case it should be ignored
-
so you can boot a cd and mount the root partition, have you run FSCK ?
is this disk (0,0 ) (or hda0 )
i can boot to a cd and mount both partitions , I thought it was a HD crash
I dont know if it is disk (0,0) or hda
I have not run the fsck yet , how do you run it
once you boot the cd, do not mount the partition but (as root) run fsck followed by the location you mount for root, what is the location, if its not hda or sda then your issues is that root in grub is pointing to the wrong place.
when you say both partitions, what are the two partitions? root and boot or are you talking about swap
-
so you can boot a cd and mount the root partition, have you run FSCK ?
is this disk (0,0 ) (or hda0 )
-
so it will not turn on even when pluged in...
sounds dead..
-
well it not there, so I am assuming that Mac Mail deleted the mail wen I removed the mail box, this is really unacceptable behavior, but its too late now.
-
I just switched over to verizon from comcast, so I deleted the comcast account after making sure verizon worked, a week latter all my email from comcast disappeared?
any one know where email is storied, I did not tell it to delete any emails..
-
first lets grow up
words like Haxoring or Haxing or what have you just shows ignorance. it is a joke language that people in the industry can not stand (leet)
here is how you become a good hacker, you hack your system, secure what was hacked, then hack it again.
or you penetrate networks you are asked to check(by owners or admin) and you give a report to only the admins in charge of the site/place to allow them to secure there vulnerabilities.
hardware hacking is a different story as I see it as a item you bought and you harm no one else if you break it. getting equipment to do things the manufacture did not, is a great way to learn.
what is freedom of information argument?
if you hack someone's site and give away their information then its wrong, the only exception is in the case of public safety, ie a case where someone is hiding information on something harmful, but come on, if you know that, the whistle blowers act is a better way to go.
so in summery,
hacking is fine as long as you own the systems you are hacking or its your job to hack it.
other hacking I have no issue with
hacking windows drivers to allow the device to run on another OS
gray forms:
DVDjohn is a gray form of hacking, because of his work we can watch DVD's on Linux machines, on the other hand he has given a way for people to rip DVD's and given them away with is wrong.
hacking games to run with out the cd/DVD : agian its helpful when I am on travel to not carry my CD's, but it would also allow people who do not own the CD to play the game and that is wrong..
so gray hacking is creating a hack that can be very helpful to allow people to use a product they legally own, but has the potential for a end user to use the hack illegally. So in this case I blame the user more than the hacker, as I believe in freedom of choice, not restricting because it may be used for illegal purposes.
Reading Windows Files/drives In Ubuntu
in Linux & Unix
Posted
I need to install some tools, I just rebuilt my laptop... (yes it running windows for developmet and I need to reactivate my ubuntu partition.. )
so as soon as I get that done I'll test these command on my NTFS partition