Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
mediaserver
envsetup
Commits
eed4a649
Commit
eed4a649
authored
6 years ago
by
Florent Thiery
Browse files
Options
Downloads
Patches
Plain Diff
fix updating of the configuration file, refs
#26945
parent
8c956ac9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
5.MediaServer/3.Deploy_demokit/0_setup.py
+10
-10
10 additions, 10 deletions
5.MediaServer/3.Deploy_demokit/0_setup.py
with
10 additions
and
10 deletions
5.MediaServer/3.Deploy_demokit/0_setup.py
+
10
−
10
View file @
eed4a649
...
...
@@ -22,23 +22,23 @@ def setup(interactive=True):
cmd
=
cmd_template
%
c
cmds
.
append
(
cmd
)
with
open
(
'
/etc/miris/netcapture.json
'
,
'
r
+
'
)
as
f
:
with
open
(
'
/etc/miris/netcapture.json
'
,
'
r
'
)
as
f
:
c
=
json
.
load
(
f
)
c
[
'
campusmanager_check_ssl
'
]
=
False
json
.
dump
(
c
,
f
)
cmds
.
append
(
'
rsync -r mirisconf/ /etc/miris/conf
'
)
cmds
.
append
(
'
netcapturectl add
'
)
c
[
'
campusmanager_check_ssl
'
]
=
False
# try to enable hw accel if available
subprocess
.
getstatusoutput
(
"
apt install -y vainfo
"
)
if
subprocess
.
getstatusoutput
(
"
vainfo
"
)[
0
]
==
0
:
# hw acceleration requires boot-time module options so a reboot will be needed
with
open
(
'
/etc/miris/netcapture.json
'
,
'
r+
'
)
as
f
:
c
=
json
.
load
(
f
)
c
[
'
enable_hw_acceleration
'
]
=
True
json
.
dump
(
c
,
f
)
c
[
'
enable_hw_acceleration
'
]
=
True
cmds
.
append
(
'
echo
"
options i915 enable_guc_loading=1 enable_guc_submission=1
"
> /etc/modprobe.d/netcapture.conf
'
)
cmds
.
append
(
'
update-initramfs -u
'
)
print
(
'
A reboot is required
'
)
with
open
(
'
/etc/miris/netcapture.json
'
,
'
w
'
)
as
f
:
json
.
dump
(
c
,
f
)
cmds
.
append
(
'
rsync -r mirisconf/ /etc/miris/conf
'
)
cmds
.
append
(
'
netcapturectl add
'
)
utils
.
run_commands
(
cmds
)
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