Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
setup_lubuntu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nvmnghia
setup_lubuntu
Commits
f8934441
Commit
f8934441
authored
Oct 11, 2019
by
nvmnghia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update `conda` and `pip`
parent
7be7b819
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
SetupLubuntu.sh
SetupLubuntu.sh
+19
-12
No files found.
SetupLubuntu.sh
View file @
f8934441
...
...
@@ -54,18 +54,25 @@ while read p; do
done
< code_ext.txt
echo
"Install Skype using latest online deb package"
wget
-O
skype.deb https://repo.skype.com/latest/skypeforlinux-64.deb
dpkg
-i
skype.deb
rm
skype.deb
echo
"Install anaconda"
ANACONDA_LATEST
=
$(
wget
-r
--spider
-l
1 https://repo.anaconda.com/archive/ 2>&1 |
grep
Anaconda3 |
grep
-v
ppc64le |
grep
-m
1 Linux
)
ANACONDA_LATEST
=
${
ANACONDA_LATEST
##*--
}
# Keep the https part, which is right after '-- ' ^ -m 1 to grep the first match
wget
-O
anaconda.sh
$ANACONDA_LATEST
sudo
-u
$usr
bash ./anaconda.sh
-f
-p
$HOME
/anaconda
rm
-rf
anaconda.sh repo.anaconda.com
if
!
[
-x
"
$(
command
-v
skypeforlinux
)
"
]
;
then
echo
"Install Skype using latest online deb package"
wget
-O
skype.deb https://repo.skype.com/latest/skypeforlinux-64.deb
dpkg
-i
skype.deb
rm
skype.deb
fi
if
!
[
-x
"
$(
command
-v
skypeforlinux
)
"
]
;
then
echo
"Install anaconda"
ANACONDA_LATEST
=
$(
wget
-r
--spider
-l
1 https://repo.anaconda.com/archive/ 2>&1 |
grep
Anaconda3 |
grep
-v
ppc64le |
grep
-m
1 Linux
)
ANACONDA_LATEST
=
${
ANACONDA_LATEST
##*--
}
# Keep the https part, which is right after '-- ' ^ -m 1 to grep the first match
wget
-O
anaconda.sh
$ANACONDA_LATEST
sudo
-u
$usr
bash ./anaconda.sh
-f
-p
$HOME
/anaconda
rm
-rf
anaconda.sh repo.anaconda.com
fi
conda upgrade
--all
pip list
--outdated
--format
=
freeze |
grep
-v
'^\-e'
|
cut
-d
=
-f
1 | xargs
-n1
pip
install
-U
pip3 list
--outdated
--format
=
freeze |
grep
-v
'^\-e'
|
cut
-d
=
-f
1 | xargs
-n1
pip
install
-U
echo
"Install docker"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment