Frequently Asked Questions about Programming at Home


Q.
The prof. mentioned that we could program from our home PC's by telnetting into our accounts on the UNIX systems. I'm a bit unsure of how to do this and was hoping you could give a push in the right direction.

A.
You'd have to use some sort of "telnet" program on your home machine that will dial up BU and allow you to log into CSA (with username and password). Then you can run an editor and a compiler as usual (as we'll learn about in first week's labs). That's about as specific I can be since each student might have different kinds of software to telnet in.

The Personal Computing Support Center (in basement of 111 Cummington St.) is the place to go with questions about how to use your specific PC communications software.


Q.
I am trying to figure out how I'm going to work on these assignments-- I have a home computer, and I need to know if I can log onto csa from my dorm, or if it's a closed system?

A.
You can log into csa from home. If you know how to log into ACS from home, it's the same, except when you tell it what machine to log into, specify csa instead.


Q.
I write my programs on a PC/Mac, and am having trouble compiling on CSA. The compiler doesn't like the "carriage returns"?

A.
PCs, Macs and UNIX machines use different representations for the end of a line.

If you transfer the program to our machines via an FTP program, you should transfer it using a "text mode" (it may be called ASCII or something else--essentially, you want the "not binary" mode). How you might do that will depend on your PC software, but it usually takes care of the translation of how the end-of-line is represented on different computers.


Q.
I can't get my FTP program to convert the end-of-lines properly between my PC/Mac and UNIX. Is there another way?

A.
You can use a program called "dos2unix" to convert the end-of-lines. First, download your program from your home machine to ours. Suppose the program was named "sum.c". Then, on our system you'd run "dos2unix" on it as:

dos2unix sum.c newname.c
Make sure to give the 2nd parameter, which is its new name. That will convert end-of-lines. After that, you can rename the new file if needed.

There is also a "unix2dos" command.


Q.
I can't get the arrow keys to work with something I'm running while logged in from my computer at home?

A.

Control-b for Back
Control-f for Forward
Control-p for Previous Line
Control-n for Next Line
may work if the arrows don't.


BU CAS CS 113 - FAQ - Programming at Home