Unix Shell FAQWhat is a shell prompt?If you access your account by SSH, the system drops you right into a Unix shell prompt. A Unix shell is kinda' like DOS, except it works right.On JTAN, you are allowed to choose a name when you first subscribe, and you are given a home directory. (/home/yourname). When you logon with your name and password at the 'login:' prompt, you will be brought to a prompt that looks something like this:
Note that Unix commands are case sensitive. This causes endless grief for people THAT HAVE BROKEN SHIFT LOCK KEYS.
What type of shell/operating system will I be using?After many years of running SVr4 and Solaris 2.x on the shell machine, home.jtan.com, we are now running OpenBSD, a very powerful and secure flavor of Unix. Depending on the time of day and phase of the moon, your default shell may be sh, ksh, or bash. It's easy enough to change your shell interpreter through the secure members page -- click on the little "config" wrench iccon for your shell and set the interpreter. Numerous shells are available, such as the standard shell ('sh') or the Linux favorite 'bash'. Unless you are having problems with compatiblity between ksh and your programs, or your religion, you shouldn't need to change it.Some folks wonder why we "chose" to not run Linux. We have nothing against linux, but when we started this operation (1991) Linux in a useable form did not exist. We grew up using Sun workstations and SVr4 unix. Today, The level of crime and fraud on the internet is such that we wanted a stronger, more secure OS. Windoze and Linux (particularly Red Hat) are targeted by many attackers. Changing PasswordsPeriodically you may want to change your password. Normally, if you already have a strong password and only access your account through encrypted connections like SSH, there is probably no need to change your password --- ever.You may want to occasionally change it if you feel your security has been violated. You may think that someone looked over your shoulder either physically or electronically. In all seriousness, we have seen many, many instances where ProShell accounts have been compromised by snooping. It's not fun to discover that an account you paid real money for is unaccessable to you because some hacker stole it from you. For these reasons JTAN requires the use of strong passwords. And the only way JTAN permits you to change your password is through the web based interface in the Members Area. You may not change your password through the shell. Q: I changed the password for my shell account using the members area. That worked fine, but I noticed that it didn't change the password for the PPP/POP/MySQL/FrontPage... login. How do I do this? Is it covered in the FAQ's? A: You need to select the feature for which you want to change the password, and change the password separately. There is no way to change ALL PASSWORDS to be the same. Mail ForwardingBasic mail forwarding can be accomplished from the Members Area. By default, your mail goes to the POP server. This is what most people want. However, some people want their mail sent to their shell. You can forward your mail to your shell account quite easily in the members area.
A: Because you didn't forward it there.
The standard unix .forward mechanism, along with the more powerful .procmailrc mechanism, is available. However you need to forward your mail to your shell account to use these.
How do I send files with mail in UNIX?Most folks these days will use pine or mutt to send the file as a MIME attachment. This is a lot easier than what we did years ago using uuencode.A more flexible way to send multimedia from the unix shell is with metamail. See "man metamail" for more information. If you don't like reading instructions, try typing "metasend" and follow the prompts. Pine users can send metamail attachements directly from pine by simply listing a file name. MIME and metamail are compatible with most internet mail systems. They are also compatible with AOL so long as only one attachment is sent at a time.
N.B. Although this is better today than in years gone by, binary files larger than a few megs may not make it through. This is a "feature" of the Internet --- not JTAN. I guess there must be some DOS 3.3 systems out there somewhere.
How do I add a cool signature line?Most programs get your signature from a file called ".signature" that must be in your home directory. Note that files with a leading dot are invisible under the Unix "ls" command. you need to type "ls -a" to see them. You can create a .signature file with the "em" or "pico" editors. You can also upload one. Be sure to use the "d2u" command to strip off any DOS carriage returns.A significant exception to the above standardized .signature file is the elm mailer. Elm won't find a .signature file unless you first set your user level to "Intermediate" by typing "o" for "options", change your User level, and save the options. You then need to go into your new .elm directory and edit the new "elmrc" file, adding the lines:
Mutt also requires setup to find .signature files. Or you can just use pine :)
How do I filter SPAM?We hate spam too.Unfortunately, as a service provider we don't like to make judgements about what is or is not acceptable for our customers to receive. All we can do is to require that the mail have a valid domain and not be overtly spam-like, as per the RBL.
A really good way to avoid spam is to do mail filtering with procmail.
You can use something like vipul's
razor or Spam Assasin to do real-time spam checks with procmail.
If you need to know more about mail filtering and how it works, please
look at Nacy McGough's
Another good resource is
Timo's Procmail
Tips and if you really want to get tough, try
Foiling Spam with an
Email Password System
BTW, elm and mutt have a "Group Reply" feature that allows you to reply to all
adressees that were listed in your incoming message. It's handy for
informal group discussions. That feature, and the "Bounce" reply feature
are very useful. Bounce lets you redirect mail to another person without
your name appearing on the header --- it's like you never got the mail so
the person to whom it was "bounced' thinks it was written directly to him.
This is great for redirecting "you're fired" notices, jucy gossip, or
playing April fools pranks.
I have never seen these features in any Windoze mailers.
Another feature that elm has that I HAVE seen in PC mailers (it's quite
common, actually) is a local group alias. You can make up a single name
like "family" that you can use to refer to a group of people. Note,
this is different than a mailing list. A mailing list is a single name
that anyone in the world can use --- a local group alias only works for
the one individual that sets it up.
JTAN offers a Usenet server (news.jtan.com) that handles about 100,000
groups. You can get an idea of the active groups we see from a typical
newsrc and newsgroups
file. If you understand Usenet, you know that there's nobody in charge, so
the content of a feed can vary. If we aren't seeing volume on your favorite
group, we can inquire upstream if you ask us to, but we can make no warranty
or other promise about our ability to acquire any particular group.
News can only be read from a JTAN shell machine, or via a SSH tunnel through
a shell machine. See our tunneling
FAQ for all the details on tunneling.
From the shell prompt, usenet news may be read with a reader like
"nn" or "tin". Tin is menu driven and very easy for beginners to figure
out, although it can be a bit slow to start up. Nn is considered one of
the most powerful newsreaders on the planet, and is extremely fast.
However, it is very complicated, and may take a while to get used to.
HINT: When selecting a group with the "G" command, the space bar
completes a partially typed group name and the ? key will give a
mini-menu of sub group alternatives. Try it!
A: The order is predetermined. However, all you need to do is make a file named "init"
and put it in your .nn directory (Did you know that you had a .nn
directory? Names starting with a . are hidden in Unix. Use ls -a to see
them.) Anyway, the init file should have the word "sequence" in it,
followed by a list of groups in order. That does it.
You can
also use FTP to transfer files between your PC and your ProShell
account. Many people use FTP in this way to publish their web pages.
To invoke FTP from the shell prompt, enter the following:
If you connect to one of the file archive servers on the net,
you can usually logon as 'anonymous' and send YOUR e-mail
address
Once you're in FTP, typing 'help' at the 'ftp>' prompt will give you a list
of available commands, and 'help
You can also invoke FTP on your PC to transfer files between your PC and
your ProShell account. How you do that depends on your operating system,
although most modern PC OS's have a command line ftp program like we
described above. For example, on WIn95 you can go to the MSDOS prompt
and type "ftp home.jtan.com" to access your account. Alternatively, you
can use one of the fine GUI based FTP programs.
Here is a decent one
for MS Windows.
FTP can transfer files to and from your Proshell account, but it is not
a secure as "scp". The scp program is a component of the
SSH suite of programs. If you are
concerned about security, and you should be, these programs should be on
your machine.
Telnet can log into other computers from your Proshell account, but it
is not a secure as "ssh". SSH
is a
secure telnet replacement. Although we do allow telnet, we strongly
encourage all access to other machines from JTAN be through SSH.
For gz extensions you want gunzip, as in:
For tar, you use tar, as in
Often you see files that are both tarred and gzipped. Extract them in
one step with
Control-C exits from "talk".
| |||
Services | Resources | Contact | News | Members | Signup
|