[Gem 5] Recover ubuntu root password in Virtualbox (reset password trong ubuntu)

some how you get lost your password. Then, I can not remember what your password is. you can reset your password.

Step1: restart your ubuntu and hold shift key until the boot screen appears.

Step2: choose the generic second boot option

Step3: the new screen appears, choose "Drop into root shell prompt"

Step4: run below command:
           >> mount -rw -o remount /

Step5: run below command to create new root password
          >> sudo passwd root


If you see some error like:
passwd: Authentication token manipulation error
passwd: password unchanged

This means that you did not run the command at step 4. If so, try to run the command at step 4 and then command at step 5.

--
Lấy lại password trong ubuntu dùng virtualbox. Theo các bước ở trên

[gem5] How to install Cuda on ubuntu 14.04

Step 1: get the suitable cuda repo from https://developer.nvidia.com/cuda-downloads
    in this case, cuda for ubuntu 14.04 is fetched using below command:
      >> wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.deb

Step 2: get cuda and install:
    >> sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb

Step 3: install cuda tookit
    >> sudo apt-get install cuda

When you are done with installation, you should set the Cuda environment variable. It is better to place below commands into your .bashrc file in your home director

export CUDA_HOME=/usr/local/cuda-7.0
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64

PATH=${CUDA_HOME}/bin:${PATH}
export PATH 


---
Cách cài đặt Cuda trên ubuntu 14.04. Theo từng bước như ở trên.

[Gem 5] Steps to compile an ARM program, run execution program and stats output

Follow steps below:

Step 1: get the program ( queen.c program is used in this case )

[~/gem5]  wget https://llvm.org/svn/llvm-project/test-suite/tags/RELEASE_14/SingleSource/Benchmarks/McGill/queens.c

Step 2: compile the program, it is recommended to compile with static flag

[~/gem5]  arm-linux-gnueabi-gcc –DUNIX –o queens queens.c –static

Step 3:run program in SE mode

[~/gem5]  ./build/ARM/gem5.opt configs/example/se.py -c queens –o 16

Step 4: display statistics:
[~/gem5] cat m5out/stats.txt
Related Posts Plugin for WordPress, Blogger...