Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nexus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
guillaum.pin
nexus
Commits
a7b1f811
Commit
a7b1f811
authored
8 months ago
by
Florent Gluck
Browse files
Options
Downloads
Patches
Plain Diff
nexus-exam-iso: changed wifi config
parent
67903af1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
live_exam_os/Dockerfile
+18
-17
18 additions, 17 deletions
live_exam_os/Dockerfile
live_exam_os/config/wifi/SOME_SSID.nmconnection.example
+8
-9
8 additions, 9 deletions
live_exam_os/config/wifi/SOME_SSID.nmconnection.example
with
26 additions
and
26 deletions
live_exam_os/Dockerfile
+
18
−
17
View file @
a7b1f811
...
...
@@ -12,24 +12,24 @@ ARG config_dir
WORKDIR
/live-default
##
a
dd live-cd additionnal packages
##
A
dd live-cd additionnal packages
ADD
${config_dir}/packages.list.chroot config/package-lists/
##
p
ackages to be removed
##
P
ackages to be removed
ADD
${config_dir}/removepkg.hook.chroot config/hooks/live/
##
a
dd swiss-french keyboard config
##
A
dd swiss-french keyboard config
ADD
${config_dir}/keyboard/keyboard config/includes.chroot/etc/default/
##
r
un "nexus-exam" as soon as user logs in
##
R
un "nexus-exam" as soon as user logs in
ADD
${config_dir}/nexus-exam config/includes.chroot/usr/local/bin/
ADD
${config_dir}/nexus-exam.desktop config/includes.chroot/etc/xdg/autostart/
##
r
un various screen settings as soon as user logs in
##
R
un various screen settings as soon as user logs in
ADD
${config_dir}/screen/screen_settings.sh config/includes.chroot/usr/local/bin/
ADD
${config_dir}/screen/screen_settings.desktop config/includes.chroot/etc/xdg/autostart/
##
s
ystemd service to set various screen settings (does not work - not sure why)
##
S
ystemd service to set various screen settings (does not work - not sure why)
# ADD ${config_dir}/systemd/screen_settings.sh config/includes.chroot/usr/local/bin/
# RUN chmod +x config/includes.chroot/usr/local/bin/screen_settings.sh
# ADD ${config_dir}/systemd/screen_settings.service config/includes.chroot/etc/systemd/system/
...
...
@@ -37,7 +37,7 @@ ADD ${config_dir}/screen/screen_settings.desktop config/includes.chroot/etc/xdg/
# RUN mkdir config/includes.chroot/etc/skel/
# RUN echo "export NEXUS_SERVER=${server_ip}\nexport NEXUS_CERT=/etc/ssl/certs/nexus-server.pem\n" >> config/includes.chroot/etc/skel/.xsessionrc
##
c
ustomize xfce4 desktop
##
C
ustomize xfce4 desktop
ADD
${config_dir}/xubuntu-development.png config/includes.chroot/usr/share/xfce4/backdrops/xubuntu-development.png
ADD
${config_dir}/xfce/xfce4-desktop.xml config/includes.chroot/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/
ADD
${config_dir}/xfce/xfce4-panel.xml config/includes.chroot/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/
...
...
@@ -48,28 +48,29 @@ ADD ${config_dir}/xfce/xfwm4.xml config/includes.chroot/etc/xdg/xfce4/xfconf/xfc
## Install i3 theme for xfwm4
ADD
${config_dir}/themes config/includes.chroot/usr/share/themes/
# syslinux (bios) cfg
#
Install
syslinux (bios) cfg
ADD
${config_dir}/bootloader/isolinux.cfg config/includes.binary/isolinux/isolinux.cfg
ADD
${config_dir}/bootloader/isolinux_splash.png config/includes.binary/isolinux/splash.png
# grub (uefi) cfg
#
Install
grub (uefi) cfg
ADD
${config_dir}/bootloader/grub_splash.png config/includes.binary/boot/grub/splash.png
ADD
${config_dir}/bootloader/grub_config.cfg config/includes.binary/boot/grub/config.cfg
ADD
${config_dir}/bootloader/isolinux_menu.cfg config/includes.binary/isolinux/menu.cfg
ADD
${config_dir}/bootloader/isolinux_stdmenu.cfg config/includes.binary/isolinux/stdmenu.cfg
# server pub cert
to be installed (
system wide
)
#
Install nexus
server pub cert system wide
#ADD ${config_dir}/${nexus_cert} config/includes.chroot/usr/share/ca-certificates/nexus-server/nexus-server.crt
#
ntp
server configuration
#
NTP
server configuration
ADD
${config_dir}/ntp/timesyncd.conf config/includes.chroot/etc/systemd/
#
f
irewall hook ran at boot time
#
F
irewall hook ran at boot time
ADD
${config_dir}/boot_hooks/firewall config/includes.chroot/lib/live/config/9999-firewall
RUN
echo
"firewall
${
server_ip
}
${
server_port
}
\n
"
>>
config/includes.chroot/lib/live/config/9999-firewall
# install wifi template
ADD
${config_dir}/wifi/WIFI.nmconnection config/includes.chroot/etc/NetworkManager/system-connections/
RUN
chmod
0600 config/includes.chroot/etc/NetworkManager/system-connections/WIFI.nmconnection
# Install wifi connections.
# The prefix (here *) must match wifi SSIDs.
ADD
${config_dir}/wifi/*.nmconnection config/includes.chroot/etc/NetworkManager/system-connections/
RUN
chmod
0600 config/includes.chroot/etc/NetworkManager/system-connections/
*
.nmconnection
# script hook to set password for nexus user (pwd is "pipo")
# pwd is the crypt's perl function's first argument. Second arg is salt.
...
...
@@ -78,11 +79,11 @@ RUN chmod 0600 config/includes.chroot/etc/NetworkManager/system-connections/WIFI
# echo "' nexus\n" >> config/includes.chroot/lib/live/config/0500-user-password.hook.chroot && \
# chmod 0750 config/includes.chroot/lib/live/config/0500-user-password.hook.chroot
#
s
cript hook so that user nexus has no password
#
S
cript hook so that user nexus has no password
RUN
echo
-n
"#!/bin/sh
\n
passwd -d nexus
\n
"
>
config/includes.chroot/lib/live/config/0500-user-password.hook.chroot
&&
\
chmod
0750 config/includes.chroot/lib/live/config/0500-user-password.hook.chroot
##
a
dd
exam
config
##
A
dd config
directory
ADD
${config_dir}/config auto/
RUN
lb config
...
...
This diff is collapsed.
Click to expand it.
live_exam_os/config/wifi/
WIFI
.nmconnection
→
live_exam_os/config/wifi/
SOME_SSID
.nmconnection
.example
+
8
−
9
View file @
a7b1f811
; The various WIFI connection files can be found in:
; /etc/NetworkManager/system-connections
[connection]
; Name of the connection as shown by Network Manager
id=
wifi-nexus
id=
example
; A random UUID referencing the connection
uuid=8a065b14-beb3-4f28-97b5-f560c368ae12
type=wifi
permissions=
[wifi]
; Whether the SSID is hidden or not (true/false)
hidden=true
mac-address-blacklist=
hidden=false
; Name of your WIFI SSID
ssid=
change_m
e
ssid=
exampl
e
[wifi-security]
key-mgmt=wpa-eap
[802-1x]
eap=peap;
identity=
password=
identity=
janedoe
password=
my_super_strong_password
phase2-auth=mschapv2
[ipv4]
dns-search=
method=auto
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto
[proxy]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment