安裝ubuntu 11.04
Download NVIDIA driver and CUDA:
Reference to follow site
1.stalling CUDA Under Ubuntu 10.04
2.海豹雜記Ubuntu Linux 11.04 安裝 NVIDIA CUDA 4.0 RC2
3.Pyrit 0.4.0 with CUDA on Ubuntu 11.04
Toolkit :
cudatoolkit_3.2.9_linux_64_ubuntu10.04.run
SDK :
gpucomputingsdk_3.2_linux.run
P.S.
由於可透過
ubuntu11.04
自動安裝驅動,因此不需下載
Nvidia
驅動
Install start:
Configure GCC
>> $ sudo apt-get install gcc-4.4
>> $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.5 150
>> $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 100
>> $ sudo update-alternatives --config gcc
choose gcc-4.4
Into Nvidia x server
>> $ Ctrl+F1
>> $ sudo service gdm stop
Update Nvidia driver:
>> $ sudo apt-get install nvidia-current
Install toolkit
>> $ sudo sh ./cudatoolkit_3.2.9_linux_64_ubuntu10.04.run
Update PATH
>> $vim ~/.bashrc
>> $export PATH=$PATH:/usr/local/cuda/bin
>> $export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib
Set up environment variables:
>> $ vim /etc/environment
Set PATH:
Append the path to the CUDA binaries. Change
>> $ sudo vim /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
to
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/cuda/bin"
Reload PATH:
>> $ source /etc/environment
Set LD_LIBRARY_PATH:
(creates a new file).
>> $ sudo gedit /etc/ld.so.conf.d/cuda.conf
Paste into the file:
/usr/local/cuda/lib64
/usr/local/cuda/lib
Reload LD_LIBRARY_PATH:
>> $ sudo ldconfig
Run CUDA SDK
>> $ sh ./gpucomputingsdk_3.2_linux.run
>> $ cd NVIDIA_GPU_Computing_SDK
>> $ make
>> $cd NVIDIA_GPU_Computing_SDK/C
>> $make
>> $ ~/C/bin/linux/release/deviceQuery
Configure end
Install SSH
>> $ sudo apt-get install openssh-server
Install FTP
>> $ sudo apt-get install vsftpd
>> $ sudo gedit /etc/vsftpd.conf
設定檔中,一些重要的設定說明:
# Allow anonymous FTP? (Disabled by default)
anonymous_enable=NO
是否允許任意使用者連線,預設為=NO,只想給自己使用的就請設為NO
# Uncomment this to allow local users to log in.
local_enable=YES
是否允許本機使用者登入FTP,使用自己的帳號登入者請設為YES
# Uncomment this to enable any form of FTP write command.
write_enable=YES
是否開放寫入的權限,視需求設定,一般開放給自己的就都設為YES
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
可寫入,且可新增目錄、檔案權限為 775
local_umask=777
重新啟動vsftpd
sudo /etc/init.d/vsftpd restart
留言列表