# NASA 2022 - Homework 0 Announcement
## § Pinned Section
* Contact us: vegetable@csie.ntu.edu.tw
* PDF: https://drive.google.com/file/d/1uLXJ9-gmADMa-zeA8d0IjomLjLA30lsY/view?usp=sharing
* Submission form: https://forms.gle/mbYwjPmgnFnPmNs27
* Due: 2022/02/16 (Wed.) ++**21:59**++
* Sweet reminder: *early-bird bonus* & *tidiness score*
---
## § Announcement
:::info
Pinned:
<span style="color: red; font-weight: bold">2/20 YouTube link</span> and <span style="color: red; font-weight: bold">2/20 slido link</span> can be found on https://cool.ntu.edu.tw/courses/13536 . Also, we have sent an email about your HW0 score. Please check it and reply by 2/20 23:59.
:::
==**02/22 12:00**==
* We have sent an email about whether you can get enrolled in this course at about 20:00 yesterday. Please check your email inbox.
* If you can get enrolled in this course, you should have received an email with 授權碼 attached.
* If you cannot get enrolled in this course, you can still fill in the [旁聽表單](https://forms.gle/34dq8bgypCM3hwiq6) and join NTU COOL as auditor.
* HW1 released! If you haven't joined NTU COOL yet, you can view this assignment [here](https://cool.ntu.edu.tw/courses/13536/assignments/69597).
==**02/14 09:00**==
* 2/14 YouTube link: https://www.youtube.com/watch?v=xkmF7j2sl9c
* 2/14 slido link (for asking questions): https://app.sli.do/event/gj97AVyGJCKGeX792nr1KA
(The first class on 2/14 (Mon.) will be hosted online to minimize the risk of COVID-19. The YouTube link will be updated here before the class starts.)
==**02/10 21:01**==
If you do not have access to NTU VPN (probably student from NTNU or NTUST), you can use the VPN service of your own school to finish the NA part of HW0. Be sure to mention your school in your PDF if you are not NTU student.
==**02/08 00:00**==
If you want to run the provided VM on the CSIE workstation, you can follow these steps:
1. Use the `qemu-img` command provided in the homework description to convert the vmdk disk format to qcow2 format.
2. Run the VM using the following command. Where \<sshport\> is an arbitrary unused port number greater than 1023 and the \<vncid\> is and arbitrary unused number between 0 to 99. After the VM starts, you can ssh into the VM with \<sshport\> or use the VNC protocol to connect to the VM with port 59\<vncid\>. (Note that you may want to run the command in a `tmux` session.)
```
qemu-system-x86_64 -cpu host -enable-kvm -smp 2,cores=2 -m 4G -hda nasahw0.qcow2 -netdev user,id=n0,hostfwd=tcp::<sshport>-:22 -device virtio-net,netdev=n0 -vnc :<vncid>,password=on -monitor stdio
```
3. After running the `qemu-system-x86_64` command, you will see a qemu shell. If you want to connect to the VM with VNC protocol, type `set_password vnc <password>` in the qemu shell, where \<password\> is the password to connect to its VNC server.
If you have any problem running VM on CSIE workstation, please contact us via vegetable@csie.ntu.edu.tw.
==**02/07 23:23**==
The [Announcement](#§-Announcement) section is reordered so that you can easily see if there are new annoucements.
==**02/07 00:00**==
Due to the maintenance of the CSIE workstations, the servers of SA part will be down on 2/11. If you fail to connect to the servers on 2/11, please patiently wait for the services comming back after the workstations are up. Thank you.
==**02/05 00:00**==
Due to the `sl` package update, which changed some important program logics, the checker program `p11/cage/root/train` will definitely fail to run `sl` successfully. Hence, we should patch `pacman`'s configuration file to freeze the package repository version on 2022/01/20 to avoid this problem. Please overwrite the whole `/etc/pacman.conf` file on the vm with the following content. (Note that if you will use `pacman` in the `cage`, you should also modify the configuration file in it: `sudo cp /etc/pacman.conf ~/p11/cage/etc/`.)
Besides, you might need to downgrade the package if you have already installed `sl` in it. If you do not know how to force downgrade or remove packages in Arch Linux, you can simply remove the whole `p11` directory and extract a new one from `beginner/package.tar.gz`.
After downgrading, your `sl` version should be 5.02-6 instead of 5.05-2. (You can check the version using `pacman -Q sl` command.) Sorry for your inconvenience, thank you.
```
[options]
HoldPkg = pacman glibc
Architecture = auto
CheckSpace
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
[core]
SigLevel = PackageRequired
Server=https://archive.archlinux.org/repos/2022/01/20/$repo/os/$arch
[extra]
SigLevel = PackageRequired
Server=https://archive.archlinux.org/repos/2022/01/20/$repo/os/$arch
[community]
SigLevel = PackageRequired
Server=https://archive.archlinux.org/repos/2022/01/20/$repo/os/$arch
```
==**01/26 ??:??**==
Homework 0 is released! Good luck & have fun!