Skip to content

Commit 759b179

Browse files
authored
Merge pull request #36 from SIMEXP/iss35
First draft of the tutorial to access UdeM VPN on ubuntu (using a VM)
2 parents 413771c + 4917d08 commit 759b179

File tree

2 files changed

+135
-1
lines changed

2 files changed

+135
-1
lines changed

misc/vpn_udem.md

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# UdeM VPN (Windows VM on Ubuntu)
2+
3+
## 🛠️ Part 1: Create a Clean Windows 10 VM (LTSC Recommended)
4+
5+
### 1. **Download Windows 10 LTSC (64-bit)**
6+
7+
* Visit: [https://archive.org/details/Windows10EnterpriseLTSC202164Bit](https://archive.org/details/Windows10EnterpriseLTSC202164Bit)
8+
* Select **LTSC 2021**, 64-bit ISO
9+
* Download and save the `.iso` to your `~/Downloads` folder
10+
11+
---
12+
13+
### 2. **Install VirtualBox**
14+
15+
```bash
16+
sudo apt update
17+
sudo apt install virtualbox
18+
```
19+
20+
---
21+
22+
### 3. **Create the VM in Bash**
23+
24+
```bash
25+
VM_NAME="WindowsVPN"
26+
VM_DIR="$HOME/VirtualBox VMs/$VM_NAME"
27+
ISO_PATH="$HOME/Downloads/your-downloaded-iso.iso" # replace with real filename
28+
DISK_SIZE=51200 # MB
29+
RAM=4096
30+
BRIDGE_ADAPTER=$(ip route | grep default | awk '{print $5}')
31+
32+
VBoxManage createvm --name "$VM_NAME" --ostype "Windows10_64" --register
33+
VBoxManage modifyvm "$VM_NAME" \
34+
--memory $RAM --vram 128 \
35+
--boot1 dvd --graphicscontroller vmsvga \
36+
--nic1 bridged --bridgeadapter1 "$BRIDGE_ADAPTER" \
37+
--firmware efi
38+
39+
VBoxManage createhd --filename "$VM_DIR/$VM_NAME.vdi" --size $DISK_SIZE
40+
VBoxManage storagectl "$VM_NAME" --name "SATA Controller" --add sata --controller IntelAhci
41+
VBoxManage storageattach "$VM_NAME" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium "$VM_DIR/$VM_NAME.vdi"
42+
VBoxManage storageattach "$VM_NAME" --storagectl "SATA Controller" --port 1 --device 0 --type dvddrive --medium "$ISO_PATH"
43+
VBoxManage startvm "$VM_NAME"
44+
```
45+
:::{tip}
46+
If you get the following (scary) error when starting the VM:
47+
```bash
48+
VirtualBox can't enable the AMD-V extension. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_SVM_IN_USE)
49+
```
50+
Try to run the following instead of recompiling the kernel (!):
51+
```bash
52+
sudo modprobe -r kvm_amd
53+
sudo modprobe -r kvm
54+
```
55+
:::
56+
57+
---
58+
59+
## 🪟 Part 2: Install and Configure Windows
60+
61+
### 4. **Install Windows**
62+
63+
* Go through the install steps
64+
* Choose "I don’t have a product key"
65+
* Select **Windows 10 Enterprise Evaluation**
66+
* Skip updates and telemetry
67+
* Log in and reach the desktop
68+
69+
---
70+
71+
### 5. **Install Guest Additions (Clipboard & Resolution Fixes)**
72+
73+
* In the VM: `Devices → Insert Guest Additions CD`
74+
* Run the installer from File Explorer
75+
* Reboot the VM
76+
77+
---
78+
79+
### 6. **Enable Copy-Paste Between Host and VM**
80+
81+
On Ubuntu:
82+
83+
```bash
84+
VBoxManage controlvm "$VM_NAME" clipboard bidirectional
85+
VBoxManage controlvm "$VM_NAME" draganddrop bidirectional
86+
```
87+
88+
### 7. **Mouse auto-capture**
89+
90+
When you put your mouse on the virtual machine window it will auto-capture your mouse and you'll start interacting with the desktop inside the VM. There is a special key to toggle mouse autocapture on/off which will be handy to get back to ubuntu, resize the window or access other information. By default this key is the **right control key**, although it can be remapped through the VBOX interface.
91+
92+
## 🌐 Part 3: Install the UdeM VPN
93+
94+
### 8. Download Ivanti Secure Access VPN
95+
96+
In the VM, go to:
97+
98+
https://vpn.umontreal.ca/campus
99+
100+
Log in with your code d'accès and UNIP
101+
102+
Download the Ivanti Secure Access client for Windows
103+
104+
### 8. Install the VPN Client
105+
106+
Run the downloaded installer
107+
108+
Reboot if prompted
109+
110+
### 9. Configure the VPN
111+
112+
Open Ivanti Secure Access
113+
114+
Add a new connection:
115+
116+
Name: UdeM Campus
117+
118+
Server: https://vpn.umontreal.ca/campus
119+
120+
Save the profile
121+
122+
### 10. 🐧❤️ Profit!
123+
124+
Activate the connection in the Ivanti Secure app, open FireFox and be ready to access all the wonderful UdeM online resources off campus, from the comfort of your Linux machine!
125+
126+
:::{tip}
127+
Here is a [tutorial](https://udemontreal.sharepoint.com/sites/RH/Documents/Guides%20et%20autres%20ressources%20documentaires/Carri%C3%A8re%20professorale/D_AM_Banque_encadrement_Profs_Synchro.pdf) to access the "credits d'encadrement" section on synchro.
128+
:::
129+
130+
### 11. Keep on your toes!
131+
It is very possible that Ivanti will push mandatory updates on you, and UdeM will not fail to double authenticate you constantly. Do not feel too comfortable. You can use VBOX to save a new snapshot of your virtual machine to save your progress in the menu Machine -> "take snapshot"

myst.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ project:
1414
- file: content/manifesto.md
1515
- file: content/coc.md
1616
- file: content/members.md
17-
- file: content/contributing.md
17+
- file: content/contributing.md
1818
- title: Alliance Canada
1919
children:
2020
- file: alliance_canada/quick_start.md
2121
- file: alliance_canada/advanced_usage.md
2222
- file: alliance_canada/resource_tracking.md
23+
- title: Misc
24+
children:
25+
- file: misc/vpn_udem.md
2326
site:
2427
template: book-theme
2528
options:

0 commit comments

Comments
 (0)