Here is your first assignment. You may download the PDF version of Assignment 1 here. You have three weeks to complete this assignment in a team of two. The assignment is due on 21 February 2014. Some word of advice:
- Start early. Plan your time properly.
- Write your own code. Do not copy from your class mates.
- Read the description carefully. It is long, but is full of useful information. The assignment is rather straight forward once you understand what to do.
- Read the instructions carefully and follow them exactly.
- Ask for help from teaching staff if you have questions.
Hi! I currently have no partner. Would appreciate if someone pairs up with me. I’m a yr4 Stats Major, minoring in CS! Drop me a mail!
(a0078565)
Hi,
I am a 3rd year student studying IS who is also looking for a partner. Send me an email or message me at 97277950.
Dear Prof,
I have tried to ssh to the host given in the PDF file after establishing SoC-VPN connection. But “permission denied” message still came out.
How can I fix this problem?
Thanks.
Best Regard,
Huang zhanxiang
Zhanxiang,
Let me check with our IT helpdesk. Anyone else have the same issue?
I got the following from the helpdesk.
—
Dear Prof Ooi,
So far, there is no one feedback about it.
However, Newtork Team has updated the SoC-VPN configuration file for students and staff in SoCVPN setup guide https://docs.comp.nus.edu.sg/node/2454 in Jan 2014.
The configuration files are different from the previous. Please go through the steps and download the new SoCVPN configuration file again.
They also advise to follow the mentioned document information which the tunnelblick still beta version for MAC OS 10.9.
Regards,
LayHoon
Dear Prof,
I’ve updated the configuration files but it still doesn’t work.
It seems that the prblem is probably not related to the SocVPN because I can connect to the database of the other SoC module using SoCVPN. Also, my frineds tried to ssh to the host in SoC but stil in the same situation like me. We can see the files in the host but cannot do any operation as “permission denied” occurred.
The technical helpdesk has also offered to help if you are still not able to ssh into cs2105-z after updating SoC-VPN. You can email them at techsvc@comp.nus.edu.sg
Problem has been fixed after I contact the helpdesk.
Thank you very much!
Dear Prof,
I have tried to use SSH to access cs2105-z.comp.nus.edu.sg and the SSH give me successful response.(P.S access to sunfire.comp.nus.edu.sg is successful and i can view my files under home directory) And I am not able to find any file under the home directory. Also I tried to use soc-vpn and its status is connected successfully to socvpn and the web-browser give me ‘connection fail’ response. May I know how it will cause this issue? If this problem cannot be fixed, i am not able to do my assignment 1 since I cannot even access to SOC. Could you please help me? Thank you very much.
Problem Fixed, thanks~
Have you copied the files over according to the instructions? I suspect that your home directory is empty because you have not put any files under there.
For SoC-VPN (and other SoC IT services) issue, please check with the SoC Technical Helpdesk at helpdesk@comp.nus.edu.sg.
Hi Prof,
Not sure how to do the steps under the portion titled “Your cs2105-z Account”.
Currently I am able to connect to the cs2105-z.comp.nus.edu.sg network using my UNIX id and password, and I am in the following directory when I key in “pwd”:
/home/b/bryan831
What does the instruction to put files inside directory a1 under home directory ($HOME/a1) mean? It seems that I cannot change directory to /home
Entering the line : “cp -r ~sadm/a1”
also yields the response cp: Insufficient arguments
Please Advise.
Thanks & Regards,
Bryan Chu
A0088135B
cp requires you to specify a source and a destination. $HOME refers to your home directory. /home is the parent directory of all the home directories of users on sunfire.
This assignment assumes that students are familiar with basic UNIX commands. Students who are not can take a look at http://www.comp.nus.edu.sg/~cs1010/labs/2013/intro_lab/gettingStarted.html
Hi Bryan Chu,
Please leave a space between data and $Home
Are we allowed to use some libraries to parse multi-part data? If so, are there any restrictions or any appointed recommendations?
Thank you in advanced :)
You do not have to parse multi-part data for this assignment.
I am an exchange student here and can someone tell me how to SSH to the cs2105-z.comp.nus.edu.sg server from Windows? I tried using a SSH client like Putty, didn’t work. It asks me for username and password and refuses to accept it, even though I’m using the same SoC password as I use to log on to the website.
Could someone help ? Otherwise I can’t access the files.
Which website are you referring to?
Can you ssh into sunfire.comp.nus.edu.sg using the same username/password?
I tried to run the todo.pl script via the WebServer.java on my Linux. However, it showed a syntax error:
“./todo.pl: 2: ./todo.pl: Syntax error: “(” unexpected”
I also got a similar error message even when I tried to run the Perl script normally.
Could you please suggest what to do ? Also, I am not sure how to display the list when the request has GET /todo.pl with no parameters. Should I run the Perl script to display something ? Or does the Perl script update the TODO file given to us, and we output contents of TODO file ?
Thanks
You need to run it with /usr/bin/perl, like this:
/usr/bin/perl todo.pl
An alternative to prevent calling /usr/bin/perl every time is to add the line
#!/usr/bin/perl as the first line of todo.pl.
Hi Prof,
I cannot seem to ssh to cs2105-z or even sunfire these few days. I tried pinging cs2105-z.comp.nus.edu.sg and got request timed out. Is it down?
cs2105-z is up and never went down.
uptime
gives:8:11am up 147 day(s), 16:31, 8 users, load average: 1.73, 3.62, 4.86
If you do a
dig
on cs2105-z.comp.nus.edu.sg, what do you get?Did you use VPN if you were logging in from home?
Did any other students encounter the same problem?
Yes, could SSH cs2105-z.comp.nus.edu.sg last night and this afternoon as well.
Thanks, Joanne (?)
Yes I encountered the same problem as well. I could not ssh to both host for the past few days
fan, did you login from home or from campus? If from home, did you use SoC-VPN?
p/s: please use your full name as Shao Ning did when you post a comment. I can’t tell if you are Ruofan, Junfan, Fan Yuxin, or Lang Fan :)
Hi Prof, I have been encountering some problems with the connection too. Sometimes, it keeps on disconnecting my connection too.
Hi Prof,
After installing VPN the problem is solved! Many thanks.
Dear Prof.,
I am still receiving “permission denied”(i used SOC VPN and able to ssh sunfire) and i have sent email already with no reply, what should i do if i still get “permission denied” tommorow?
Hi Yiu Hei, did you just create your SoC UNIX account recently? If so, you need to login to cs2105-z and copy the a1 files from ~sadm to start the assignment. Your cs2105-z home directory should be created now.