1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293
|
<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META NAME="generator" CONTENT="lgazmail v1.3E.n">
<TITLE>More 2 Cent Tips & Tricks LG #62</TITLE></HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000"
LINK="#3366FF" VLINK="#A000A0">
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<P>
<CENTER>
<!-- *** BEGIN navbar *** -->
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="lg_answer62.html"><IMG ALT="[ Prev ]" SRC="../gx/navbar/prev.jpg" WIDTH="16" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="index.html"><IMG ALT="[ Table of Contents ]" SRC="../gx/navbar/toc.jpg" WIDTH="220" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../index.html"><IMG ALT="[ Front Page ]" SRC="../gx/navbar/frontpage.jpg" WIDTH="137" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="../faq/index.html"><IMG ALT="[ FAQ ]" SRC="./../gx/navbar/faq.jpg"WIDTH="62" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="bajgar.html"><IMG ALT="[ Next ]" SRC="../gx/navbar/next.jpg" WIDTH="15" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><IMG ALT="" SRC="../gx/navbar/right.jpg" WIDTH="15" HEIGHT="45" ALIGN="bottom">
<!-- *** END navbar *** -->
</CENTER>
</p>
<!-- QUICK TIPS SECTION ================================================== -->
<!-- endcut ======================================================= -->
<center>
<H1><A NAME="tips"><IMG ALIGN=MIDDLE ALT="" SRC="../gx/twocent.jpg">
More 2¢ Tips!</A></H1> <BR>
<!-- BEGIN tips -->
Send Linux Tips and Tricks to <A HREF="mailto:gazette@ssc.com">gazette@ssc.com</A></center>
<UL>
<!-- index_text begins -->
<li><A HREF="#tips/1"
><strong>2c tip: finding out your home router's ip address using lynx</strong></a>
<li><A HREF="#tips/2"
><strong>2cent tip Available space available on Hd - follow up</strong></a>
<li><A HREF="#tips/3"
><strong>Tech tip -- removing all files except *.c</strong></a>
<li><A HREF="#tips/4"
><strong>netscape to read html files ( $0.02 )</strong></a>
<li><A HREF="#tips/5"
><strong>Need info (Need Outlook to speak to Linux) (Issue 61, 2 cent tips)</strong></a>
<li><A HREF="#tips/6"
><strong>2-cent tip - module resource detection</strong></a>
<li><A HREF="#tips/7"
></a>about Unix command rm --or--
<br><A HREF="#tips/7"
><strong>8 Cents Worth</strong></a>
<li><A HREF="#tips/8"
><strong>Shebang problems</strong></a>
<li><A HREF="#tips/9"
><strong>about Unix command ps</strong></a>
<li><A HREF="#tips/10"
><strong>Linux security FAQ</strong></a>
<li><A HREF="#tips/11"
><strong>renaming directories</strong></a>
<li><A HREF="#tips/12"
><strong>hi im a moron</strong></a>
<li><A HREF="#tips/13"
><strong>tar on remote file system ...</strong></a>
<li><A HREF="#tips/14"
><strong>Your article in Linux gazette</strong></a>
<li><A HREF="#tips/15"
><strong>Diald and AIM</strong></a>
<li><A HREF="#tips/16"
><strong>Geforce2 and X 4.0.1</strong></a>
<li><A HREF="#tips/17"
><strong>Setting up print filters</strong></a>
<li><A HREF="#tips/18"
><strong>More e2label scripting</strong></a>
<li><A HREF="#tips/19"
><strong>RE: reading a number in a bash shell script. Here is my final sc</strong></a>
<li><A HREF="#tips/20"
><strong>RE: Trident NTSC drivers</strong></a>
<li><A HREF="#tips/21"
><strong>A rather unique query -- solved!</strong></a>
<li><A HREF="#tips/22"
><strong>Shebang problems</strong></a>
<li><A HREF="#tips/23"
><strong>How to hack a proxy (LG #53, Query number 16, I think)</strong></a>
<li><A HREF="#tips/24"
><strong>bogo</strong></a>
<li><A HREF="#tips/25"
><strong>Ben_Okopnik</strong></a>
<li><A HREF="#tips/26"
><strong>Measure your modem connection - Bogospeed</strong></a>
<!-- index_text ends -->
</UL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">2c tip: finding out your home router's ip address using lynx</FONT></H3>
Sun, 7 Jan 2001 13:35:57 -0500 (EST)
<BR>matthew willis<a href="mailto:linux-questions-only@ssc.com"> (matt from optimus.cee.cornell.edu)</a>
<!-- sig -->
<P>
Some popular home routers like the Linksys BEFSR41 work well with
linux but finding out the external address of the router (e.g. to
update some dynamic DNS service) can require manual intervention,
like using a web browser and pen and paper. The Linksys device can be
automatically queried about its external IP address using the text
browser, lynx:
</P>
<blockquote><pre> lynx -auth=\ :admin http://192.168.1.1/Status.htm -dump
</pre></blockquote>
<P>
You can then parse the output for the IP address you need, using PERL
or your favourite scripting tool. For example, here is how I chained
sed and awk to find the line "IP Address" that comes in the "WAN"
section:
</P>
<blockquote><pre> lynx -auth=\ :admin http://192.168.1.1/Status.htm -dump | sed "1,/WAN/d" | awk -F: '/IP Address/{print $2}'
</pre></blockquote>
<P>
Note that there is a single space between "\" and ":admin".
</P>
<P>
- Matt Willis
</P>
<!-- sig -->
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">2cent tip Available space available on Hd - follow up</FONT></H3>
Sat, 6 Jan 2001 06:43:49 -0800
<BR>Ted Potter<a href="mailto:linux-questions-only@ssc.com"> (tpotter from techmarin.com)</a>
<!-- sig -->
<P>
yes and for those of us who can not do the math include the -h command line
option!
</P>
<P>
here -
</P>
<blockquote><pre> df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda1 2028098 1603178 320098 83% /
/dev/hda3 9991422 607203 8865722 6% /home
/dev/hdb 60334 60334 0 100% /mnt/cdrom
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 1.9G 1.5G 313M 83% /
/dev/hda3 9.5G 593M 8.5G 6% /home
/dev/hdb 59M 59M 0 100% /mnt/cdrom
</pre></blockquote>
<P>
--
Ted Potter
</P>
<!-- sig -->
<!-- end 2 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/3"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Tech tip -- removing all files except *.c</FONT></H3>
Mon, 15 Jan 2001 13:10:40 -0800
<BR>Jane Liu <a href="mailto:linux-questions-only@ssc.com">(anonymous)</a>
<P><STRONG>
I have a question about rm command. Would you please tell me how to remove
all the files excepts certain files like anything ended with .c?
</STRONG></P>
<P>
The easiest way (meaning it will work on any Unix systems anywhere), is
to move those files to a temporary directory, then delete "everything",
then move those files back.
</P>
<blockquote><pre>mkdir /tmp/tdir
mv *.c /tmp/tdir
rm *
mv /tmp/tdir/* .
rmdir /tmp/tdir
</pre></blockquote>
<!-- sig -->
<!-- sig -->
<!-- sig -->
<!-- end 3 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/4"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">netscape to read html files ( $0.02 )</FONT></H3>
Sun, 07 Jan 2001 02:13:27 -0500
<BR>Allan Peda<a href="mailto:linux-questions-only@ssc.com"> (allan from panix.com)</a>
<!-- sig -->
<P>
I usually have netscape open, and I also have several terms open, also
some files only have html documentation (e.g., htdig ). I added this
bash function to my .bash_profile to send a file to netscape at the
command line. (for a list of the options type netscape -help):
</P>
<blockquote><pre>function ns () {
if [ "." = "$(dirname $1)" ]; then
argpath=$(pwd)
else
argpath=$(dirname $1)
fi
url_arg=${argpath}/$(basename $1)
netscape -remote "openURL(file://$url_arg)"
unset argpath url_arg
}
export -f ns
</pre></blockquote>
<P>
So for README its :
</P>
<blockquote><pre>me@box] vi README
</pre></blockquote>
<P>
but for README.html
</P>
<blockquote><pre>me@box] ns README
</pre></blockquote>
<!-- sig -->
<!-- end 4 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/5"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Need info (Need Outlook to speak to Linux) (Issue 61, 2 cent tips)</FONT></H3>
Tue, 02 Jan 2001 21:28:03 -0500
<BR>Anthony E. Greene<a href="mailto:linux-questions-only@ssc.com"> (agreene from pobox.com)</a>
<!-- sig -->
<P>
...no less than 5 people mentioned...
</P>
<P>
It sounded like the poster wanted to provide native MS Exchange services
using a UNIX/Linux server. If so, she should look into HP OpenMail
(<A HREF="http://www.hp.com/go/openmail"
>http://www.hp.com/go/openmail</A>).
</P>
<P>
Anthony
</P>
<P>
... P Kelly from pksings.com cared to add...
</P>
<P>
HP openmail, free for under 50 users. Not super easy to install but
free....
</P>
<P>
PK
</P>
<!-- end 5 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/6"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">2-cent tip - module resource detection</FONT></H3>
Mon, 22 Jan 2001 10:58:20 -0800
<BR>Ben Okopnik <a href="mailto:linux-questions-only@ssc.com">(TAG)</a>
<P>
We started doing something interesting in Tips - we have some good
scripts to do nice little things. But, a lot of people have reported
difficulty doing the necessary cut-and-paste. So I'm sure you'll
be glad to know that a number of these will now be completely seperate
files with a .txt extension, so that they can be downloaded safely.
</P>
<P>
Tip: As long as you have a #! line, linux doesn't care in the least
whether the filename has a reasonable extension... or any at all, for
that matter.
</P>
<P>
Here's the popularly requested resource detection script.
</P>
<p>See attached <a href="misc/tips/shotgun.bash.txt">misc/tips/shotgun.bash.txt</a></p>
<!-- sig -->
<!-- sig -->
<!-- end 6 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/7"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">8 Cents Worth</FONT></H3>
Tue, 16 Jan 2001 13:56:39 -0500
<BR>Heather<a href="mailto:linux-questions-only@ssc.com"> (star from starshine.org)</a>
<!-- ::
8 Cents Worth
~~~~~~~~~~~~~
:: -->
<P>
[near the tail end of a thread where we are being <EM>really</EM> careful with rm]
</P>
<P><STRONG><FONT COLOR="#006633"><EM>
[Dan]
It would be prudent to try the thing out in a directory containing
only expendable files with names similar to the intended victims/saved.
</EM></FONT></STRONG></P>
<P><STRONG><FONT COLOR="#006633"><EM>
[Dan]
I've more than once had to resort to backups due to a slip of the
fingers (the brain?) with an "rm" expression.
</EM></FONT></STRONG></P>
<P>
Note that he actually has known good backups to resort to.
</P>
<P><STRONG>
[Heather]
tip: echo (rest of command)
</STRONG></P>
<P><STRONG>
will reveal what globbing is about to inflict on you. Won't solve
everything, but at least you'll be safe from the shell's perspective.
</STRONG></P>
<P><STRONG><FONT COLOR="#000066"><EM>
[Ben]
Good call! It's also well worth checking out the "shopt" built-in command,
particularly the "extglob" and "nullglob" options (I sort of wonder why
"bash" doesn't default to those being on); they can make dealing with
globbing a slightly friendlier experience - as well as slightly more
intuitive, in my opinion.
</EM></FONT></STRONG></P>
<!-- end 7 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/8"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Shebang problems</FONT></H3>
Sat, 20 Jan 2001 16:54:52 +0100
<BR>NLH AS<a href="mailto:linux-questions-only@ssc.com"> (nlhas from online.no)</a>
<!-- sig -->
<P>
You have a question & answer on Linux Gazette with title:
</P>
<P><BLOCKQuote>
shell cannot see an existing file --or--
<TT>./script:</TT> No such file or directory
</BLOCKQuote></P>
<P>
One possibility you don't mention, which I've just found out the hard way
(ie. by using a lot of time) is that the file should not have been written
with a dos/windows editor (eg. on a samba share). CRLF at the end of the
shebang line causes exactly the chain of frustrations your correspondent
describes -- as far as I can be bothered to test (more time) this seems to
be completely consistent for bash and python scripts with a shebang line.
</P>
<P>
Oddly enough removing the shebang line makes the thing work -- the shell
<TT>exec()</TT> which you also describe is not CRLF sensitive.
</P>
<P>
Paul Mothersdill
</P>
<!-- sig -->
<!-- end 8 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/9"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">about Unix command ps</FONT></H3>
Fri, 26 Jan 2001 14:24:31 -0800
<BR>Jane Liu <a href="mailto:linux-questions-only@ssc.com">(anonymous)</a>
<!-- sig -->
<P><STRONG>
Is there a way to find out the date when a process is created?
</STRONG></P>
<P>
"ps aux" shows the date and a lot of other information as well.
You can use
</P>
<blockquote><pre>ps aux | grep DESIRED_COMMAND_NAME
</pre></blockquote>
<P>
to filter out unwanted processes, or specify the process ID as
</P>
<blockquote><pre>ps aux 1234
</pre></blockquote>
<P>
...so, she tried that, but it wasn't what she needed...
</P>
<P><STRONG>
I am using HP unix. ps -aux is the same as ps. It gives only the execution
time, but not the elapse time. Any other options?
</STRONG></P>
<P><CODE>
ps has a bazillion options; see if elapsed time is listed in the manpage.
</CODE></P>
<P>
If the process hasn't started yet and you don't need the time until after
it's over, there's the "time" command.
</P>
<P>
-- Mike Orr
</P>
<!-- sig -->
<!-- end 9 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/10"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Linux security FAQ</FONT></H3>
Tue, 2 Jan 2001 08:43:51 -0800
<BR>Anonymous Coward<a href="mailto:linux-questions-only@ssc.com"></a>
<!-- sig -->
<P>
The Linux Security FAQ has been slashdotted.
</P>
<P>
<A HREF="http://www.linuxsecurity.com/docs/colsfaq.html"
>http://www.linuxsecurity.com/docs/colsfaq.html</A>
</P>
<!-- sig -->
<!-- sig -->
<!-- end 10 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/11"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">renaming directories</FONT></H3>
Wed, 03 Jan 2001 19:45:46 -0600
<BR>k.s. yeriazarian<a href="mailto:linux-questions-only@ssc.com"> (crzybug from hotmail.com)</a>
<P><STRONG>
how do you rename/change names on directories? thanks
</STRONG></P>
<P>
Use the 'mv' command.
</P>
<P>
Please send follow-ups or future questions in text format rather than
HTML. It makes it easier to read them.
</P>
<!-- sig -->
<!-- sig -->
<!-- end 11 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/12"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">hi im a moron</FONT></H3>
Sun, 28 Jan 2001 19:51:20 -0800
<BR>luciferxe<a href="mailto:linux-questions-only@ssc.com"> (luciferxe from mediaone.net)</a>
<!-- sig -->
<P>
On Sat, Jan 27, 2001 at 01:22:57AM -0500, . wrote:
</P>
<P><STRONG>
hi im just wondering how to make a swapfile on my linux sys
</STRONG></P>
<P>
I beg to differ about that "moron" part. After all, you knew enough
to ask a question in the right place!
</P>
<P>
I'm assuming you really want a swapfile, as opposed to a swap partition.
</P>
<P>
A swapfile will be slower than a partition, but it can be a handy
thing for that sporadic task that really chews up memory.
</P>
<P>
The way I usually do it is first to make a zero-filled file of the desired
size using "dd":
</P>
<blockquote><pre> dd if=/dev/zero of=/usr/tmp/newswapfile bs=1024 count=65536
</pre></blockquote>
<P>
for a 64M swapfile. Vary "count" as desired. Then
</P>
<blockquote><pre> mkswap /usr/tmp/newswapfile
swapon /usr/tmp/newswapfile
</pre></blockquote>
<P>
If you wish to have the swapfile mounted at boot time, find the
appropriate place in your init scripts and add the "swapon" command.
</P>
<P>
See "man mkswap", "man dd", "man swapon" for more info on swapfiles.
</P>
<P>
--
Dan Wilder
</P>
<!-- sig -->
<!-- end 12 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/13"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">tar on remote file system ...</FONT></H3>
Mon, 15 Jan 2001 17:27:47 -0500
<BR>Hansjoerg Graesslin<a href="mailto:linux-questions-only@ssc.com"> (hansjoerg.graesslin from wega-informatik.ch)</a>
<!-- sig -->
<P>
On Mon, Jan 15, 2001 at 07:16:28AM +0000, Hansjoerg Graesslin wrote:
</P>
<P><STRONG>
Hi,
I read your article about making backup to remote tape devices,
but is there any way to make a backup on a remote file system with the
tar command ??
</STRONG></P>
<P><STRONG>
I tried :
</STRONG></P>
<code><strong><font color="#000033"><br>tar czSf - test | rsh -l operator remotehost
</font></strong></code>
<P><STRONG>
and get something strange ...
</STRONG></P>
<code><strong><font color="#000033"><br>$ tar czSf - test | rsh -l oracle skye
<br>tar: z: unknown option
<br>Usage: tar {txruc}[vfbFXhiBelmopwnq[0-7]] [-k size] [tapefile]
<br>[blocksize] [exc.
<br>tcgetattr: Invalid argument
<br>ioctl I_PUSH ttcompat: No such device or address
<br>$
</font></strong></code>
<P>
That's not particularly strange, given that you seem to be using something
other than GNU tar. There are many different versions out there; which one
do you have? GNU's version has supported "z", the "filter through gzip"
switch, since at least early 1997, when I started using it. So, what's
happening above is that "tar" fails with fireworks - and pipes something
of that to "rsh", which also explodes and screams in agony (hmm. Too many
Schwarzenegger movies lately, I guess.) A hint for next time: when you
have a problem that involves several programs. <EM>separate them</EM> in order to
find out which one is giving you a problem (or at least, which problem.)
It's much easier to troubleshoot things that way.
</P>
<P><STRONG>
any ideas ??
</STRONG></P>
<P>
Yes. Go to <A HREF="http://www.gnu.org"
>http://www.gnu.org</A> and download the latest version of "tar".
Compile it, run it, and if you encounter any problems at that point, write
to us again. This time, include the versions of both "tar" and "rsh", as
well as which distro and version of Linux you're using. I have a feeling,
though, that the first suggestion will fix the problem.
</P>
<!-- sig -->
<!-- sig -->
<!-- end 13 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/14"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Your article in Linux gazette</FONT></H3>
03 Jan 2001 19:32:03 +0200
<BR>Jani Grnberg<a href="mailto:linux-questions-only@ssc.com"> (chardhros from oneccuva.org )</a>
<!-- sig -->
<P>
Hi,
</P>
<P>
I scanned through your article in Linux gazette today, and having used
a configuration similar to this about a year ago, I thought that you
might appreciate this information:
</P>
<P><BLOCKQuote>
Lilo can write the boot sector information directly to a file so the
stuff with lilo.dummy and dd is not necessary. E.g. in my
configuration, <TT>/dev/hda1</TT> contained a vfat partition including the NT
loader (mounted to <TT>/dos</TT> in linux). I had the line:
</BLOCKQuote></P>
<blockquote><code><font color="#000033"><br>boot=/dos/bootsect.lin
</font></code></blockquote>
<P>
in my <TT>/etc/lilo.conf</TT> and provided that the partition is mounted and a
file exists (first time do "touch <TT>/dos/bootsect.lin</TT>") it should work
(unfortunately I'm currently using a different configuration so I
can't verify if i forgot something).
</P>
<P>
There can be issues if you have a large hard disk and the linux kernel
is not in the beginning; these are better covered in other documents,
but to avoid these I also copied my kernel to <TT>/dos/linux/vmlinuz.</TT> I'm
not sure if these are still valid with the current versions of lilo, though.
</P>
<P>
//jani
</P>
<!-- sig -->
<!-- end 14 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/15"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Diald and AIM</FONT></H3>
Fri, 19 Jan 2001 19:37:26 -0600
<BR>Michael Ikemeyer<a href="mailto:linux-questions-only@ssc.com"> (ikemeyer from brick.net)</a>
<!-- sig -->
<P>
Answerguy,
</P>
<P>
I've notice a strange anomaly in the last couple of months when using DIALD
to connect to any local ISP. I have a simple setup, boxA (the MASQ, RedHat
5.2) and boxB (private IP, Win98). Everything works great except when I try
to use AOL's Instant Messenger. Upon starting AIM the usual happens...
Connecting.... Verifying username and password... Starting services.... then
the roadblock of "Connection lost. Check your Internet connection". Viewing
my log files I get "kernel: MASQ: failed TCP/UDP checksum from
64.12.24.172". However, if I dial up any ISP with a normal pppd script (less
the SLIP interfaces involved for diald) it works. At this point I'm not
sure what I need to do to resolve this problem. Have any ideas?
</P>
<P>
Thank you,
Michael
</P>
<P>
... but he solved it!
</P>
<P>
Answerguy,
</P>
<P>
I have resolved my problem by passing the following to pppd when starting
diald...
</P>
<blockquote><pre>/usr/sbin/diald -f /etc/diald/diald.conf -- asyncmap 20A0000 escape FF
</pre></blockquote>
<!-- end 15 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/16"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Geforce2 and X 4.0.1</FONT></H3>
Wed, 3 Jan 2001 10:30:32 -0400 (VET)
<BR>Ernesto Hernandez-Novich<a href="mailto:linux-questions-only@ssc.com"> (emhn from telcel.net.ve)</a>
<P>
Lots of people sent help about the Geforce card! Thanks bunches! -- Heather
</P>
<P>
...
</P>
<P>
Regarding Ron Nicholls question in "The Mailbag" (January 2001) on using
an nVidia Geforce2 card under XFree86 4.0.1
</P>
<P>
As of today, he has two alternatives:
</P>
<P><BLOCKQuote>
1. He can download the binary drivers provided by nVidia, which are
</BLOCKQuote></P>
<P>
designed to work in 4.0.1 <EM>replacing</EM> XFree's drivers. These
drivers will give him <EM>improved</EM> 2D acceleration and 3D acceleration
via GLX. I've been using this setup with an nVidia RIVA TNT2 and
a Geforce2 GTS (both 32Mb) with no problems whatsoever.
</P>
<P>
...another reader noted that the driver has to be compiled to match your
kernel version. He must be using the source rpm, I think - Gustavo Alday
found a complicated URL which seems to hit paydirt:
</P>
<P><BLOCKQuote>
<A HREF="http://www.nvidia.com/Products/OpenLinuxDwn.nsf/b99b7f622d429347882568c800771b6c?OpenView&Start=1&Count=30&Expand=2#2"
>http://www.nvidia.com/Products/OpenLinuxDwn.nsf/b99b7f622d429347882568c800771b6c?OpenView&Start=1&Count=30&Expand=2#2</A>
</BLOCKQuote></P>
<P>
2. He can grab 4.0.2 (compile it himself and/or get binaries) for
</P>
<P>
very decent 2D acceleration for <EM>any</EM> nVidia card, including GeForce2s.
I tried this the day after 4.0.2 but unfortunately had trouble getting
the GLX extensions to work so I switched back to 4.0.1
</P>
<P>
...Michael Coyne (michael from coyne.tc) noted that Mandrake 7.2 autodetected
his card, though he suspects DRI support isn't active, and that he has used
his card happily on a continuously upgraded RedHat system with the generic
nvidia server.
</P>
<P>
The instructions included with the nVidia drivers are more than enough
to get it to work, so check out the drivers at
</P>
<P>
<A HREF="http://www.nvidia.com/Products/Drivers.nsf/Linux.html"
>http://www.nvidia.com/Products/Drivers.nsf/Linux.html</A>
</P>
<P>
Hope this helps.
</P>
<P>
And to the nVidia people: PLEASE OPEN UP YOUR DRIVERS!
-- Ernesto Hernndez-Novich
</P>
<P>
...ah, but Ryan Phillips (ryan.phillips from csus.edu) seems to have
exactly what our querent wanted; the same system in good working order,
and a pointer to a URL describing how:
</P>
<P><BLOCKQuote>
<A HREF="http://www.evil3d.net/articles/linux/howto/nvidia/redhat7"
>http://www.evil3d.net/articles/linux/howto/nvidia/redhat7</A>
</BLOCKQuote></P>
<P>
Thanks again, everyone!
</P>
<!-- end 16 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/17"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Setting up print filters</FONT></H3>
Wed, 3 Jan 2001 16:00:51 -0700
<BR>Simeon ben Nevel<a href="mailto:linux-questions-only@ssc.com"> (snevel from sonic.net)</a>
<!-- sig -->
<P>
Hi Answer Folks!
</P>
<P>
In issue 61 there was an Answer Guy question on getting an Epson Stylus
670 to work under linux.
</P>
<P>
Making color printers work seems to be a <EM>very</EM> common question on the
various linux fora and newsgroups with very few answers forthcoming.
</P>
<P>
I'd like to recommend turboprint from <A HREF="http://www.turboprint.de"
>http://www.turboprint.de</A>
</P>
<P>
It supports a wide variety of Epson, Canon and Hewlett-Packard color
printers (including my Canon BJC-3000!).
</P>
<P>
It's currently at version 0.70 and is free (as far as I can tell from the
web-site). No source is provided however.
</P>
<P>
It installed quite easily from a tar-ball and works like a dream for me.
</P>
<P>
The install process will even "probe" your system looking for "helper"
programs (like enscript, a2ps or html2ps) that the filter uses to handle
various sorts of files and let you know what you're missing.
</P>
<P>
(Actually finding RPMs for the various pieces and getting the dependencies
resolved is another issue entirely <g>
<IMG SRC="../gx/dennis/smily.gif" ALT=";)"
height="24" width="20" align="middle">
</P>
<P>
You can set up multiple configurations for a single printer to handle
different print media (plain paper, glossy paper, transparencies),
different print media sizes, different resolutions and has a whole range
of other adjustments for color saturation and absolute page positioning.
</P>
<P>
The latest version even has a couple of graphical (gtk based I believe)
application to do the configuration in addtion to ncurses based tools.
</P>
<P>
Best of all, the fellow who created turboprint answered my dumb
configuration question very promptly and in English!
</P>
<P>
There is also <A HREF="http://www.linuxprinting.org"
>http://www.linuxprinting.org</A> with a wealth of other
information. (Hmm.. I couldn't get there just now <shrug>
<IMG SRC="../gx/dennis/smily.gif" ALT=";)"
height="24" width="20" align="middle">
</P>
<P>
You might also check out the Linux Hardware Database at:
</P>
<P><BLOCKQuote>
<A HREF="http://lhd.datapower.com"
>http://lhd.datapower.com</A>
</BLOCKQuote></P>
<P>
Which has a section on printers.
</P>
<P>
I hope this information is useful.
</P>
<P>
Simeon ben Nevel
--
</P>
<!-- sig -->
<!-- end 17 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/18"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">More e2label scripting</FONT></H3>
Sat, 30 Dec 2000 14:36:05 -0500
<BR>Allan Peda<a href="mailto:linux-questions-only@ssc.com"> (allan from panix.com)</a>
<!-- sig -->
<P>
I was not satisfied with the label display script that I wrote and sent
in about 1 week ago because it ignored SCSI devices. This one should be
a little more generic.
</P>
<P>
Allan
</P>
<p>See attached <a href="misc/tips/label.sh.txt">misc/tips/label.sh.txt</a></p>
<!-- sig -->
<!-- end 18 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/19"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">RE: reading a number in a bash shell script. Here is my final sc</FONT></H3>
Thu, 11 Jan 2001 13:21:39 -0500
<BR>Steven Kladitis<a href="mailto:linux-questions-only@ssc.com"> (stevenkladitis from revsysinc.com)</a>
<!-- sig -->
<P><STRONG>
My name is Steven and I was wondering if there is an easy way in a bash
shell script to tell if the variable you read is numberic?
</STRONG></P>
<P><STRONG>
For example
</STRONG></P>
<P><STRONG><CODE>
#!/bin/bash
<BR>#set -x
</CODE></STRONG></P>
<P>
Just a comment here: the above line is unnecessary. The "-x" argument
can be used with "<TT>/bin/bash</TT>" directly to get the same effect.
</P>
<blockquote><code><font color="#000033"><br>echo -n 'Enter a number '
<br>read x
<br>????????????
</font></code></blockquote>
<P><STRONG>
How can I tell if $x is numeric easily?
I have read and reread the docs, but I see no number test. I was thinkg
about trap but I do not understand how it works.
</STRONG></P>
<P>
'trap' has no relation to what you're trying to do; it deals with
signals. Here is what you want:
</P>
<blockquote><pre>[ $(echo $value|grep -c "[^0-9]") -gt 0 ] && echo "Not a number."
</pre></blockquote>
<P>
We simply ask "grep" to check for the presence of non-numeric
characters, and echo a message if they're present.
</P>
<P>
Shell variables can be declared as numeric via the "declare" or
"typeset" commands; they do fairly well with strings like "abCD43" by
reading them as 0, but fail, very loudly, on strings that <EM>start</EM> with
a digit:
</P>
<blockquote><pre>value too great for base (error token is "3x")
</pre></blockquote>
<P>
The "grep" test always returns sensible output.
</P>
<P>
-- Ben Okopnik
</P>
<P>
This script will read a tnsnames.ora file ( Oracle stuff ) and connect ou to
the appropiate instance in sqlplus. Thanks for your help!!!
</P>
<P>
Steve
</P>
<p>See attached <a href="misc/tips/spdist.bash.txt">misc/tips/spdist.bash.txt</a></p>
<!-- sig -->
<!-- end 19 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/20"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">RE: Trident NTSC drivers</FONT></H3>
Tue, 30 Jan 2001 17:21:23 -0600
<BR>Darrick Hartman<a href="mailto:linux-questions-only@ssc.com"> (dhartman from quixnet.net)</a>
<P>
Heather--
</P>
<P>
Since I wrote [asking after the trident drivers] I discovered that no additional drivers are needed. What I DID find is Trident's manual is WRONG about the jumper on the card. It says it needs to be off to auto detect whether the card is connected to a vga or composite video device. In fact, it needs to be ON...jumpered to work correctly. Exactly opposite of the manual. If this helps someone, please pass it along.
</P>
<P>
Later--
</P>
<P>
Darrick
</P>
<!-- end 20 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/21"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">A rather unique query -- solved!</FONT></H3>
Tue, 02 Jan 2001 11:31:44 -0800 (PST)
<BR>Karen Gartner<a href="mailto:linux-questions-only@ssc.com"> (Puppy_Diddlitz from go.com)</a>
<!-- sig -->
<P>
First - THANK YOU to everyone who made suggestions and
offered expertise on solving this problem. I was just mucking about in my linux directories - searching for config files when ...
</P>
<P>
The SOLUTION: Install the GL1 driver package as is. Copy the actual driver file "firegl1" to <TT>/dev.</TT> Pico XF86Config-4, add the driver name to the video card device, and change the default video depth to 24. Then run startx at the command prompt and inko presto - graphics!
</P>
<P>
Now I don't have to worry about changing the kernel - thank heavens!
</P>
<P>
Thank you all so much!
Karen Gartner
</P>
<!-- end 21 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/22"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Shebang problems</FONT></H3>
Sat, 20 Jan 2001 16:54:52 +0100
<BR>NLH AS<a href="mailto:linux-questions-only@ssc.com"> (nlhas from online.no)</a>
<!-- sig -->
<P>
You have a question & answer on Linux Gazette with title:
</P>
<P><BLOCKQuote>
shell cannot see an existing file --or--
<TT>./script:</TT> No such file or directory
</BLOCKQuote></P>
<P>
One possibility you don't mention, which I've just found out the hard way
(ie. by using a lot of time) is that the file should not have been written
with a dos/windows editor (eg. on a samba share). CRLF at the end of the
shebang line causes exactly the chain of frustrations your correspondent
describes -- as far as I can be bothered to test (more time) this seems to
be completely consistent for bash and python scripts with a shebang line.
</P>
<P>
Oddly enough removing the shebang line makes the thing work -- the shell
<TT>exec()</TT> which you also describe is not CRLF sensitive.
</P>
<P>
Paul Mothersdill
</P>
<!-- sig -->
<!-- end 22 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/23"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">How to hack a proxy (LG #53, Query number 16, I think)</FONT></H3>
Wed, 24 Jan 2001 14:04:50 +0400
<BR>Faisal Halim<a href="mailto:linux-questions-only@ssc.com"> (faisal_hal from hotmail.com)</a>
<!-- sig -->
<P>
Dear Iman,
</P>
<P>
I would suggest you visit <A HREF="http://www.anonymiser.org"
>http://www.anonymiser.org</A> or
<A HREF="http://www.privatesurfing.com"
>http://www.privatesurfing.com</A> and use their free service. But be
careful, your administrator gets suspicious, and even these sites can
get blocked. [That is a risk I have to live with when using my
ISP-Emirates Internet and Multimedia.]
</P>
<P>
You can use a good search engine like <A HREF="http://www.google.com"
>http://www.google.com</A> and enter
"anonymiser" in the search box. Or better yet, use this search engine to
search for your topic of interest, and retrieve your page of interest
from Google's cached pages. Since Google will fetch the page for you,
your proxy will 'be tricked into thinking you are receiving a page from
Google'!
</P>
<P>
Alternatively, you could use one of the online web page caching servers
(search for "free ISP" on Google's search engine) to fool your proxy
server in a similar way.
</P>
<P>
And here is a method my friend claims to have used, but I never tested
myself. I don't even know the legal implications of using this system.
do this at your own risk. Set your http proxy to one that is outside
your network. That way, (theoretically) you will use your local network
proxy to access the net, use the net to access this other proxy, which
in tern you will use to access the hackers' sites.
</P>
<P>
You might have noticed (and in fact you should have noticed by now, that
using any of the methods I gave you, you will simply fool your network
proxy, not crack it.
</P>
<P>
You Wanted To Crack, Not Hack
There are great differences between hacking and cracking. Please check
out the page, "How to become a Hacker" at <A HREF="http://www.tuxedo.org"
>http://www.tuxedo.org</A>
</P>
<P>
Salaam, and Goodbye
Faisal Halim
</P>
<!-- sig -->
<!-- end 23 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/24"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">bogo</FONT></H3>
Tue, 2 Jan 2001 08:44:46 -0500
<BR>Kurt V. Hindenburg <a href="mailto:linux-questions-only@ssc.com">(anonymous)</a>
<!-- sig -->
<P><STRONG>
Hello,
</STRONG></P>
<P><STRONG>
I tried your little bogo script. I installed bing-1.1.3 and traceroute
-1.4a7. However ,when I execute the bogo script I get the following:
</STRONG></P>
<code><strong><font color="#000033"><br>(kvh)-(20:15)-(~)> ./bogo
<br>
<br>real 0m24.083s
<br>user 0m0.010s
<br>sys 0m0.000s
<br>
<br>Ping time to ISP: ms
<br>Measuring speed...
</font></strong></code>
<P>
If you take a look at the script itself, you'll note that the comment
immediately following the script description tells you to change the
default ISP name (www.mindspring.com) to your own ISP's URL. Also note
that in my 2-cent tip I wrote:
</P>
<P><BLOCKQuote>
"... it prints the time that is required for the first 'ping' to reach your
ISP, as well as the time that it takes to execute that ping. In my
experience, if that execution time is much longer than 3 seconds, you've
got a poor connection and should try redialing."
</BLOCKQuote></P>
<P>
24 seconds, as your output above shows, is quite a bit longer than 3
seconds. What it's saying is that the ping is probably not getting through
to MindSpring (unless you've modified $ISP) at all - most likely, it's
timing out. I recommend that you 1) replace "mindspring" with your ISP's
URL, and 2) ping that URL once you're connected to see the results.
</P>
<!-- sig -->
<!-- sig -->
<!-- end 24 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/25"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Ben_Okopnik</FONT></H3>
Tue, 2 Jan 2001 11:50:01 -0500
<BR>Werner Gerstmann<a href="mailto:linux-questions-only@ssc.com"> (WGerstmann from nexgo.de)</a>
<P>
Werner Gerstmann wasn't the only person who asked what 'bing' was, but
he did have a curious reason to be unsure:
</P>
<P><STRONG><BLOCKQuote>
Hallo Ben,
</BLOCKQuote></STRONG></P>
<P><STRONG>
in #61 of LG I found some nice scripts of yours. One question: in the
one for measuring a modem
connection, a progamme's name is "bing" or "ping" ?? For me it's a bit
funny, because in Germany
we have a regional slang (the Saxons), they cannot distinguish "d" and
"t" or "b" and "p" (the soft and the
hard ones), but normally only if they speak ! ! If "bing" is correct
please give me a hint where to find it.
</STRONG></P>
<P><STRONG>
Regards Werner
</STRONG></P>
<P>
It's "bing", an "empirical stochastic bandwidth tester" as its author
calls it, with the 'b' coming from the term "bandwidth". I just think of
it as a smarter "ping". In <A HREF="http://www.debian.org/">Debian</A>, it's part of the distribution, as part
of the "net" category; their source for it was 'bing_1.0.4.orig.tar.gz',
available at their site.
</P>
<P>
<ftp.debian.org/debian/dists/potato/main/source/net/bing_1.0.4.orig.tar.gz>
</P>
<!-- sig -->
<!-- end 25 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips/26"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Measure your modem connection - Bogospeed</FONT></H3>
Sat, 20 Jan 2001 10:50:27 -0500
<BR>Joe St.Clair - KSI Machine & Engineering<a href="mailto:linux-questions-only@ssc.com"> (ksimach from ksimachine.com)</a>
<!-- sig -->
<P>
On Sat, Jan 20, 2001 at 10:27:14AM -0500, Joe St.Clair - KSI Machine & Engineering wrote:
</P>
<P><STRONG>
What it "bing" that is needed for the "Bogospeed" script?
</STRONG></P>
<P>
A lot of folks have written in to ask this same question. I'll admit to
being a bit surprised, but here's some easily-retrieved info.
</P>
<P>
A search on Google for "bing and linux" brings up over 10,000 hits. The very
first of these says
</P>
<P>
"<A HREF="http://www.debian.org/">Debian</A> GNU/Linux -- bing Package: bing 1.0.4-5.3.1. Empirical stochastic
bandwidth tester."
</P>
<P>
For those of you who are left as unenlightened by this as I was, it's just
a fancy way of saying "a smarter version of 'ping'".
</P>
<P>
Yep; that's the dude. In fact, due to the fact that the author of "bing"
has unaccountably changed the entire syntax <EM>and</EM> output of "bing" with
the new version, the only one that will work without modifying the script
is version 1.0.4. It's easy enough to download and install. <grin> For
anyone who has read my series on shell scripting here in the LG, modifying
it for the new version should be a trivial task.
</P>
<P>
As well, here is the "new and improved" version of the "speed" script; due
to feedback from several of our readers, I've generalized the IP/time
parsing routine, which should make it a bit more useable.
</P>
<!-- sig -->
<P><STRONG><FONT COLOR="#000066"><EM>
I took the liberty of promoting the warning comment to an actual message,
in case anyone finds it useful enough to leave lying around. -- Heather
</EM></FONT></STRONG></P>
<p>See attached <a href="misc/tips/speed.bash.txt">misc/tips/speed.bash.txt</a></p>
<!-- sig -->
<!-- end 26 -->
<!--startcut ======================================================= -->
<P> <hr> </p>
<!-- *** BEGIN copyright *** -->
<H5 align="center">This page edited and maintained by the Editors
of <I>Linux Gazette</I>
<a href="http://www.linuxgazette.com/copying.html"
>Copyright ©</a> 2001
<BR>Published in issue 62 of <I>Linux Gazette</I> February 2001</H5>
<H6 ALIGN="center">HTML script maintained by
<A HREF="mailto:star@starshine.org">Heather Stern</a> of
Starshine Technical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</H6>
<!-- *** END copyright *** -->
</BODY></HTML>
<!--endcut ========================================================= -->
|