![]() |
Tutorials?
Anyone know of any decent tutorials for a newby to bash?
P.S. , what I really want to know is how to send and receive email in terminal. Thanks! |
Doing email in the Terminal is not related to bash.
All you need to know is how to run an email program - e.g. "elm", or "mutt", etc. You do this by typing the name of the program. But first you need to install these programs, since they aren't part of standard OS X. The easiest way to do this is probably by using "Fink". Here's a forum thread discussing some of these command-line email programs: http://forums.macosxhints.com/showth...threadid=12424 |
Thanks hayne, guess I'll check out Mutt. Doesn't seem to be installed. I typed "man mutt" and came up with nothing. I suppose I'll have to download it?
P.S. On a side note: I use the transparent option on my terminal windows and it sometimes leaves a ghost image when I scroll. Is this normal? |
Well, it looks like setting up email with the CLI is way too complicated and involved for me! The mail.app does a nice job anyhow. Does anyone know of any good general tutorials to get my feet wet with in Bash? I'm using Pico and have kinda figured out how to use vim. What other cool apps are there?
|
If you are interested in using the command line in OS X, I would highly recommend that you install fink http://fink.sourceforge.net/ .
Fink allows you to install lots of free open source software by simply typing something like fink install mutt or fink install pine on your command line. Trevor |
cool - what types of applications would I want to install?
|
That's like asking, "What foods would I like to eat?" There's many many choices and I don't know enough about you to make any recommendations.
You expressed an interest above in a command-line e-mail client, so that's one place you could start. To give you some feeling for fink, here are the fink programs relating to mail in some way: Code:
% fink apropos mailTrevor |
nice... thanks for your help, trevor. I'll definitely install Fink. Thanks for the tips!
|
hmm... i'm having some trouble here. Can't seem to get this to work. Any ideas why? Here's the output:
Last login: Wed Mar 17 22:27:35 on ttyp1 Welcome to Darwin! Kirk-Boragines-Computer:~ kirkboragine$ fink install xpdf sudo /sw/bin/fink install xpdf Information about 1112 packages read in 1 seconds. fink needs help picking an alternative to satisfy a virtual dependency. The candidates: (1) xfree86-base-threaded-shlibs: XFree86 libraries, utilities, clients and data (2) xfree86-base-shlibs: XFree86 libraries, utilities, clients and data (3) xfree86-shlibs: XFree86 distribution Pick one: [1] 3 fink needs help picking an alternative to satisfy a virtual dependency. The candidates: (1) ghostscript-fonts: Standard fonts for Ghostscript (2) system-ghostscript: Placeholder package for manually installed ghostscript (3) system-ghostscript6: Placeholder package for manually installed ghostscript 6.01 Pick one: [1] 3 The following package will be installed or updated: xpdf The following 8 additional packages will be installed: dlcompat-dev dlcompat-shlibs system-ghostscript6 t1lib1 t1lib1-shlibs type1inst xfree86 xfree86-shlibs Do you want to continue? [Y/n] 3 Do you want to continue? [Y/n] y rm -rf dlcompat-20030629-15 mkdir -p /sw/src/dlcompat-20030629-15 gzip -dc /sw/src/dlcompat-20030629.tar.gz | /sw/bin/tar -xf - patch -p1 </sw/fink/dists/stable/main/finkinfo/libs/dlcompat.patch patching file dlfcn.c ./configure --prefix=/sw --enable-fink --mandir=/sw/share/man checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. ### execution of ./configure failed, exit code 1 Failed: compiling dlcompat-20030629-15 failed Kirk-Boragines-Computer:~ kirkboragine$ clear Kirk-Boragines-Computer:~ kirkboragine$ fink install xpdf sudo /sw/bin/fink install xpdf Information about 1112 packages read in 1 seconds. fink needs help picking an alternative to satisfy a virtual dependency. The candidates: (1) xfree86-base-threaded-shlibs: XFree86 libraries, utilities, clients and data (2) xfree86-base-shlibs: XFree86 libraries, utilities, clients and data (3) xfree86-shlibs: XFree86 distribution Pick one: [1] 3 fink needs help picking an alternative to satisfy a virtual dependency. The candidates: (1) ghostscript-fonts: Standard fonts for Ghostscript (2) system-ghostscript: Placeholder package for manually installed ghostscript (3) system-ghostscript6: Placeholder package for manually installed ghostscript 6.01 Pick one: [1] 1 The following package will be installed or updated: xpdf The following 8 additional packages will be installed: dlcompat-dev dlcompat-shlibs ghostscript-fonts t1lib1 t1lib1-shlibs type1inst xfree86 xfree86-shlibs Do you want to continue? [Y/n] y curl -f -L -O http://distfiles.opendarwin.org/ghos...std-6.0.tar.gz % Total % Received % Xferd Average Speed Time Curr. Dload Upload Total Current Left Speed 100 1836k 100 1836k 0 0 281k 0 0:00:06 0:00:06 0:00:00 353k rm -rf dlcompat-20030629-15 mkdir -p /sw/src/dlcompat-20030629-15 gzip -dc /sw/src/dlcompat-20030629.tar.gz | /sw/bin/tar -xf - patch -p1 </sw/fink/dists/stable/main/finkinfo/libs/dlcompat.patch patching file dlfcn.c ./configure --prefix=/sw --enable-fink --mandir=/sw/share/man checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. ### execution of ./configure failed, exit code 1 Failed: compiling dlcompat-20030629-15 failed Kirk-Boragines-Computer:~ kirkboragine$ clear Kirk-Boragines-Computer:~ kirkboragine$ fink install xpdf sudo /sw/bin/fink install xpdf Information about 1112 packages read in 1 seconds. fink needs help picking an alternative to satisfy a virtual dependency. The candidates: (1) xfree86-base-threaded-shlibs: XFree86 libraries, utilities, clients and data (2) xfree86-base-shlibs: XFree86 libraries, utilities, clients and data (3) xfree86-shlibs: XFree86 distribution Pick one: [1] 3 fink needs help picking an alternative to satisfy a virtual dependency. The candidates: (1) ghostscript-fonts: Standard fonts for Ghostscript (2) system-ghostscript: Placeholder package for manually installed ghostscript (3) system-ghostscript6: Placeholder package for manually installed ghostscript 6.01 Pick one: [1] 3 The following package will be installed or updated: xpdf The following 8 additional packages will be installed: dlcompat-dev dlcompat-shlibs system-ghostscript6 t1lib1 t1lib1-shlibs type1inst xfree86 xfree86-shlibs Do you want to continue? [Y/n] y rm -rf dlcompat-20030629-15 mkdir -p /sw/src/dlcompat-20030629-15 gzip -dc /sw/src/dlcompat-20030629.tar.gz | /sw/bin/tar -xf - patch -p1 </sw/fink/dists/stable/main/finkinfo/libs/dlcompat.patch patching file dlfcn.c ./configure --prefix=/sw --enable-fink --mandir=/sw/share/man checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. ### execution of ./configure failed, exit code 1 Failed: compiling dlcompat-20030629-15 failed Kirk-Boragines-Computer:~ kirkboragine$ |
oops! i didn't mean to include all three attempts... you get the idea though.
|
Quote:
You can install one manually, if you wish, but by far the best, easiest, most complete way to get a compiler is to install Developer Tools from Apple. It comes with the gcc, the gnu c compiler. You probably got a Developer Tools CD with your Install CDs, but if you didn't, you can also sign up for a free membership to the Apple Developer Connection http://developer.apple.com/ and then download it. (Well, I guess downloading it isn't the easiest, but it is still the best and most complete.) Trevor |
okay - cool. Installed the developer's tools (didn't realize it would take 2 hours!). I'm trying to figure out how to install this game... "3dpong-0.4". It was the first one on the list when i typed "fink list". I figured out how to unzip it. Just need to figure out how to run it! Forgot how to get back to the readme file. Now I'm stuck with looking at the file name and not knowing what to do next! Kinda fun so far... thanks for bearing with me, trevor!
|
Here we go... this is where I'm at: (in the readme file)
INSTALLING To install 3D Pong, edit the "makefile" as needed. Predefined variables are declared for: CC - Your C Compiler. "gcc" is recommended. XLIB - The location and name of your X window library. From a telnet session, simply type "make". The "3dpong" executable should be created. ____________________________________________ Not sure what all that means... "edit the makefile as needed"? "from a telnet session..."? |
You don't need to do all that--fink does it for you.
If you typed fink install 3dpong then it is already installed, probably at /sw/bin/3dpong. To execute it, you will type 3dpong options I've never tried using 3dpong, so I'm not exactly sure what the options are. But if you just type 3dpong on the command line, you should get usage information. Note: I'm not sure 3dpong is a good first app to try out fink, though. Does it depend on X Windows? That's a long install. Trevor |
right - Fink did install it... this is where i'm at now:
Code:
RUNNING THE GAMEP.S. "options" returns an unknown error:0 |
Here's what i'm trying to no avail...
Code:
Kirk-Boragines-Computer:/sw/src kirkboragine$ ls -l |
Yeah, options was not meant to be typed literally, I meant that there were probably other things you'd need to type. Since I'm not at all familiar with 3dpong, I don't know what those options are.
Trevor |
Well, 3dpong is an X-Window game. I'm guessing I need to install X-Window. That's not going to happen right now. All I really want to do is learn how to intall and run an app using the CLI. Any suggestions are welcome. :confused:
|
Installing X11 is easier than you think. It is on the Panther installer CD. Give it a shot.
|
For an introduction to fink, why don't you type
fink install pine ? Pine is an e-mail client. To launch it the first time after you've installed it, just type pine It comes with a man page, unlike 3dpong, so if you have questions, type man pine Pine is very simple to use, it gives you on-screen prompts, sort of like pico. It should be a far better starter app than something complicated and graphical. Trevor |
Here are a few cli apps I have installed w/ Fink.
links-ssl - is a text based internet browser. works well w/ Mac OSX Hints and Low End Mac websites. fortune-mod - Database of witticisms. I use this to feed fortunes to Terminal. See below ( notice I still use tcsh ).... Last login: Fri Mar 19 02:21:03 on ttyp2 Welcome to Darwin! There are bugs and then there are bugs. And then there are bugs. -- Karl Lehenbauer [Sagebox:~] treavize% dict - this is a dictionary that fetches definitions from the internet. wtf - same as above but for acronyms. joe - is a text editor like pico but with a fun name. the above programs will get you started with fink installed cli fun. |
well, i need a bit more instruction on the basics at this point. I found some decent info at the linux.org site. It doesn't seem to want to hyperlink here. I found it doing a google for "bash shell tutorial". Thanks for everyone suggestions!
|
|
| All times are GMT -5. The time now is 10:41 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.