223 CS162 刷课指南 -- 第一课

最近在跟ucb的cs162,上来配置vagrant就挺头大的
https://cs162.eecs.berkeley.edu/static/hw/hw0.pdf

vagrant 配置 – ubuntu

我家里使用ubuntu 16.04,公司电脑是win10 ,先说ubuntu

1.下载vagrant 和 virtualBox

virtualbox
vagrantup

sudo dpkg -i xxxxxx #替换为文件名

2. up vagrant image

vagrant up会等很久

$ mkdir cs162-vm
$ cd cs162-vm
$ vagrant init cs162/spring2016 // 这里请替换为最新的学期
$ vagrant up
$ vagrant ssh

3.把代码同步到本地

安装smbclientcifs-utils

$ sudo apt-get install smbclient

$ sudo apt-get install cifs-utils

$ sudo mount -t cifs -o username=vagrant,password=vagrant //192.168.162.162/vagrant/code /home/cs162-vm/code

vagrant配置 – win10

留坑

第一题

Your first assignment is going to be to modify wc.c,so that it implements word count according to the specification of “man wc”,except that it does not need to support any flags and only needs to support a single input file,(or STDIN if none is specified).
Beware that wc in OS X behaves differently from wc in Ubuntu.

修改wc.c,根据“man wc”里面的要求实现字统计,不需要接受参数,只需要接受文件名(如果没有参数则默认取STDIN)

相关文章

ubuntu退出redis的示例:指定配置文件方式启动源码redis:roo...
ubuntu中mysql改密码忘了的解决方法:1.在终端中切换到root权...
ubuntu安装mysql失败的解决方法原因:可能是原有的MySQL还有...
使用centos和ubuntu建站的区别有以下几点1.CentOS是Linux发行...
ubuntu图形界面和字符界面切换的方法:可以通过快捷键CTRL+A...
ubuntu中重启mysql失败的解决方法1.首先,在ubuntu命令行中,...