Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
primtux-ldap
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
Container registry
Model registry
Operate
Environments
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Primtux-SLIS
primtux-ldap
Commits
3990314f
Verified
Commit
3990314f
authored
7 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Fix network in a separate script
parent
69ffb9e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
fix_network.sh
+10
-0
10 additions, 0 deletions
fix_network.sh
postInstall.sh
+4
-8
4 additions, 8 deletions
postInstall.sh
with
14 additions
and
8 deletions
fix_network.sh
0 → 100755
+
10
−
0
View file @
3990314f
#!/bin/bash
# Fix ethernet issues
echo
"# The primary eth0 interface"
|
sudo tee
--append
/etc/network/interfaces
echo
"auto eth0"
|
sudo tee
--append
/etc/network/interfaces
echo
"allow-hotplug eth0"
|
sudo tee
--append
/etc/network/interfaces
echo
"iface eth0 inet dhcp"
|
sudo tee
--append
/etc/network/interfaces
sudo sed
-i
's/^\(GRUB_CMDLINE_LINUX_DEFAULT="quiet\)"/\1 pcie_aspm=off"/'
/etc/default/grub
sudo
update-grub
This diff is collapsed.
Click to expand it.
postInstall.sh
+
4
−
8
View file @
3990314f
...
...
@@ -20,6 +20,7 @@ while [ -z "$SRV_NAME" ]
do
read
-p
"Merci d'entrer le code RNE de l'école (ex: DSIT or 0382693W)"
SRV_NAME
done
DIR
=
`
dirname
$0
`
# Prepare LDAP config
for
f
in
dist/
*
do
...
...
@@ -30,14 +31,8 @@ do
sudo sed
-i
.orig
"s/DSIT/
$SRV_NAME
/g"
${
f
/dist/
}
done
# Fix ethernet issues
echo
"# The primary eth0 interface"
|
sudo tee
--append
/etc/network/interfaces
echo
"auto eth0"
|
sudo tee
--append
/etc/network/interfaces
echo
"allow-hotplug eth0"
|
sudo tee
--append
/etc/network/interfaces
echo
"iface eth0 inet dhcp"
|
sudo tee
--append
/etc/network/interfaces
sudo sed
-i
's/^\(GRUB_CMDLINE_LINUX_DEFAULT="quiet\)"/\1 pcie_aspm=off"/'
/etc/default/grub
sudo
update-grub
$DIR
/fix_network.sh
# Add proxy for administrateur
for
proto
in
http https ftp
do
...
...
@@ -46,4 +41,5 @@ do
done
sudo
apt-get
-y
purge xpdf
sudo
apt-get
-y
install
evince
read
-p
"Configuration faite, appuyez sur n'importe quelle touche pour continuer"
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