Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KasmVNC
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
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
NoCloud
docker
KasmVNC
Commits
b3b44e3f
Verified
Commit
b3b44e3f
authored
3 months ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
WIP changing user name
parent
c6eac291
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker-compose.yml
+2
-0
2 additions, 0 deletions
docker-compose.yml
docker/Dockerfile
+3
-0
3 additions, 0 deletions
docker/Dockerfile
docker/custom_startup.sh
+9
-9
9 additions, 9 deletions
docker/custom_startup.sh
with
14 additions
and
9 deletions
docker-compose.yml
+
2
−
0
View file @
b3b44e3f
...
...
@@ -6,6 +6,7 @@ services:
args
:
-
SPYDER=${SPYDER}
-
ANACONDA=${ANACONDA}
-
KASM_USER=${USER}
image
:
"
kasmvnc-ubuntu-noble:spyder-${SPYDER}_anaconda-${ANACONDA}"
container_name
:
KasmVNC-ubuntu
volumes
:
...
...
@@ -15,6 +16,7 @@ services:
-
VNC_PW=${PASS}
-
SPYDER=${SPYDER}
-
ANACONDA=${ANACONDA}
-
KASM_USER=${USER}
volumes
:
...
...
This diff is collapsed.
Click to expand it.
docker/Dockerfile
+
3
−
0
View file @
b3b44e3f
...
...
@@ -11,6 +11,7 @@ WORKDIR $HOME
ARG
SPYDER
ARG
ANACONDA
ARG
ANACONDA_VERS=Anaconda3-2024.02-1
ARG
KASM_USER
RUN
apt-get update
&&
\
...
...
@@ -27,6 +28,8 @@ RUN apt-get update && \
locale-gen
--purge
fr_FR.UTF-8 en_US.UTF-8
RUN
mkdir
/install
RUN for
f
in
/dockerstartup/
*
.sh
;
do
sed
-i
-e
"s/kasm_user/
$KASM_USER
/g"
$f
;
done
WORKDIR
/install
# === Install Spyder === #
...
...
This diff is collapsed.
Click to expand it.
docker/custom_startup.sh
+
9
−
9
View file @
b3b44e3f
#!/bin/bash
VNC_
USER
=
kasm-user
VNC_
HOME
=
/home/
kasm-user
sed
-i
-e
"s@kasm-default-profile@
$
VNC
_USER
@g"
~/anaconda3/etc/profile.d/conda.sh
sed
-i
-e
"s@kasm-default-profile@
$
KASM
_USER
@g"
~/anaconda3/etc/profile.d/conda.sh
# Add changepassword icon
mkdir
-p
/home/
$VNC_
USER
/Desktop
cat
<<
EOF
>
/home/
$VNC_
USER
/Desktop/users.desktop
mkdir
-p
$VNC_
HOME
/Desktop
cat
<<
EOF
>
$VNC_
HOME
/Desktop/users.desktop
[Desktop Entry]
Type=Link
Name=Change password
...
...
@@ -15,23 +15,23 @@ terminal=true
EOF
if
[
$ANACONDA
==
'true'
]
;
then
cat
<<
eof
>
/home/
$VNC_
USER
/Desktop/anaconda.desktop
cat
<<
eof
>
$VNC_
HOME
/Desktop/anaconda.desktop
[Desktop Entry]
Type=Application
Name=Anaconda
Terminal=true
Icon=
/home/
$VNC_
USER
/anaconda3/lib/python3.8/site-packages/anaconda_navigator/static/images/anaconda.png
Exec=
/home/
$VNC_
USER
/anaconda3/bin/anaconda-navigator
Icon=
$VNC_
HOME
/anaconda3/lib/python3.8/site-packages/anaconda_navigator/static/images/anaconda.png
Exec=
$VNC_
HOME
/anaconda3/bin/anaconda-navigator
eof
fi
if
[
$SPYDER
==
'true'
]
;
then
cat
<<
eof
>
/home/
$VNC_
USER
/Desktop/spyder.desktop
cat
<<
eof
>
$VNC_
HOME
/Desktop/spyder.desktop
[Desktop Entry]
Type=Application
Name=Spyder
Terminal=true
Icon=
/home/
$VNC_
USER
/anaconda3/share/icons/spyder.png
Icon=
$VNC_
HOME
/anaconda3/share/icons/spyder.png
Exec=
$(
which spyder
)
eof
fi
...
...
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