-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Base box switched from ubuntu 16.04 to Debian Stretch.
- Loading branch information
1 parent
a732f94
commit 7706678
Showing
12 changed files
with
62 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ pathmunge () { | |
fi | ||
fi | ||
} | ||
pathmunge /home/ubuntu/eclipse after | ||
pathmunge /home/${USER}/eclipse after |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
#!/bin/bash | ||
source "/vagrant/scripts/common.sh" | ||
function chgPassword { | ||
echo "change password of ubuntu user" | ||
echo "change password of ${USER} user" | ||
apt-get -qq install expect | ||
tee ~/chgPasswd.sh << EOF | ||
set timeout 20 | ||
spawn sudo passwd ubuntu | ||
expect "Enter new UNIX password:" {send "ubuntu\\r"} | ||
expect "Retype new UNIX password:" {send "ubuntu\\r"} | ||
spawn sudo passwd ${USER} | ||
expect "Enter new UNIX password:" {send "${USER}\\r"} | ||
expect "Retype new UNIX password:" {send "${USER}\\r"} | ||
interact | ||
EOF | ||
expect ~/chgPasswd.sh | ||
echo "Finished ubuntu user setup" | ||
echo "Finished ${USER} user setup" | ||
} | ||
|
||
|
||
echo "setup ubuntu user" | ||
echo "setup ${USER} user" | ||
chgPassword |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters