• Best of luck to the class of 2024 for their HSC exams. You got this!
    Let us know your thoughts on the HSC exams here
  • YOU can help the next generation of students in the community!
    Share your trial papers and notes on our Notes & Resources page
MedVision ad

how can I write Prog C working from home? (1 Viewer)

wiky

New Member
Joined
Oct 29, 2011
Messages
8
Gender
Undisclosed
HSC
2010
the lecturer said that we have to download some software to remote access UNSW's computer, but not sure what's it. :(
can anyone help me?
 
Last edited:

Uzername

B.S., M.S., M.A., Ph.D.
Joined
May 30, 2009
Messages
88
Gender
Male
HSC
2011
PuTTY is the software you're looking for. Connect to the address: cse.unsw.edu.au
 

D94

New Member
Joined
Oct 5, 2011
Messages
4,423
Gender
Male
HSC
N/A
PuTTY is the software you're looking for. Connect to the address: cse.unsw.edu.au
This, then your login is your CSE username in the form: abcd123

I believe gedit won't work, so you can use emacs -nw or nano to get your editor up. Save using ctrl+o.
 

Azamakumar

bannèd
Joined
Mar 30, 2006
Messages
2,748
Location
the gun show
Gender
Male
HSC
2007
ssh <username>@login.cse.edu.au


vi < filename>.c


press 'i' to write text in the editor (esc when you're done)

':w' to save the file
':quit' to close the program



you could just write the program in notepad++, then copy it using scp
(scp < filename> < username >@login.cse.unsw.edu.au:< location >)
and then compile/run it using ssh

it's a lot easier doing it this way than trying inline editing over ssh
 
Last edited:

jayen

New Member
Joined
Mar 19, 2012
Messages
2
Gender
Undisclosed
HSC
N/A
<username>vi < filename>.c

...

you could just write the program in notepad++, then copy it using scp
(scp < filename> < username >@login.cse.unsw.edu.au:< location >)
and then compile/run it using ssh

it's a lot easier doing it this way than trying inline editing over ssh
inline editing (especially with vi) isn't that bad if you compile from within your editor. in vi, ':!gcc file.c -o exe' will do it (and then be in your vi history for next time).</username> another option [on windows] is using dokanssh to make your cse space appear as a hard drive.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top