-
Notifications
You must be signed in to change notification settings - Fork 2
1. Linux environment
Yaniv Carmel edited this page Apr 5, 2022
·
13 revisions
In this section, you'll set up the environment in which you'll store your project files. In most cases, it should be a Linux environment, so that you'll be able to compile and execute your project like you would on the Technion Linux server.
In a later section, you'll install VSCode & extensions that would allow you to do all of your work directly from VSCode.
Some of your options are:
- Work directly on the Technion server with the "Remote-SSH" extension - not recommended, since the server tends to disconnect a lot.
- Work with WSL and the "Remote-WSL" extension - recommended for most courses, such as Matam and Data Structures.
- Work with a virtual machine and the "Remote-SSH" extension - recommended for courses such as Operating Systems (where you need to work on a specific Linux image).
Windows Subsystem for Linux (WSL) is a feature of the Windows operating system that enables you to run a Linux file system, along with Linux command-line tools, directly on Windows.
- On your Windows machine, open cmd as administrator and run:
wsl --install- Restart your Windows machine.
- When the restart is done, you'll be asked to choose a username and password for the Linux environment. Make sure to remember those.
- You'll now need to install some tools on the Linux environment. Use the newly installed "Ubuntu on Windows" app to run these commands. Alternatively, you can use Windows Terminal which is pretty neat.
sudo apt-get update
sudo apt-get install build-essential gdb cmake clang-format-10 valgrind- Note that you can open your WSL directories in the Windows file explorer, under
\\wsl$\Ubuntu\home
- After installing your virtual machine, make sure that it is configured with a NAT network adapter (guide for VMWare, guide for VirtualBox)
- Find the VM's ip address by running
ifconfig, and make sure you can access it from your host, by runningping <ip>on your Windows host (you need to see some replies). - Install some tools, including OpenSSH, on your VM. You may need to restart your VM afterwards.
sudo apt-get install cmake clang-format-10 valgrind openssh-server