Skip to content

Commit c900a82

Browse files
committed
scripts: update ubuntu-24.04 install
1 parent 048b76a commit c900a82

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

scripts/install-cuda-ubuntu24.04.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@ set -xe
1414
# - recent Nvidia CUDA libs & tool that officially support Ubuntu-24.04
1515

1616
# If you are already root, unset this sudo variable
17-
sudo=sudo
17+
sudo=${sudo:-sudo}
1818

1919
$sudo apt-get update
2020
$sudo apt-get dist-upgrade --yes
2121

2222
$sudo apt-get install ubuntu-server --yes
2323

24-
apt-get update
25-
apt-get install -y
26-
2724
$sudo apt-get install --yes \
2825
autoconf \
2926
automake \
@@ -140,6 +137,12 @@ export LD_LIBRARY_PATH=$CUDA_HOME/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
140137
' >> ~/.profile
141138

142139
echo "
143-
Now the computer needs to reboot, do:
144-
$sudo reboot
140+
Verify the file ~/.profile
141+
You can:
142+
143+
vim ~/.profile
144+
145+
When you are ready, you can reboot:
146+
147+
$sudo reboot
145148
"

0 commit comments

Comments
 (0)