CasperFS521-HowTo.txt http://www.kameda-lab.org/_local/imagelab.tsukuba.ac.jp/ubuntu1204/ http://www.kameda-lab.org/_local/imagelab.tsukuba.ac.jp/ubuntu1204/cartridges/521J/CasperFS521-HowTo.txt kameda[at]iit.tsukuba.ac.jp 2012/10/18, 00:05 JST first version. ============================== (1) Install ============================== (ReCasper:1) What you need to prepare - A USB memory stick (8GB or larger required) - One Windows PC (Use it to cook USB and boot test) - One PC with NVidia graphic card ( (ReCasper:2-a, download) You need to download : - Universal USB Installer(windows executable) http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/ - Ubuntu 12.04 LTS Japanese Remix: ubuntu-ja-12.04-desktop-i386.iso http://www.ubuntulinux.jp/News/ubuntu1204-desktop-ja-remix - You need to rename it from ubuntu-ja-12.04-desktop-i386.iso to ubuntu-12.04-desktop-ja-i386.iso - CasperFS521.zip http://www.kameda-lab.org/_local/imagelab.tsukuba.ac.jp/ubuntu1204/cartridges/521J/CasperFS521.zip - Unzip CasperFS521.zip and you will have four files. 52939 17-Oct-12 21:00 CasperFS505/filesystem.manifest 52875 17-Oct-12 21:00 CasperFS505/filesystem.manifest-desktop 12 17-Oct-12 21:09 CasperFS505/filesystem.size 3332923392 17-Oct-12 21:08 CasperFS505/filesystem.squashfs (ReCasper:2-b, do) Then do : - Plug the USB stick the PC, and run the universal USB installer. Step1: Desktop Ubuntu12.4.X Step2: Specify the ubuntu-12.04-desktop-ja-i386.iso at your directory Step3: Check-box On ("We will format") Step4: 0MB - 4089MB (*) Go! (It will take several minutes) --- size problem --- At Step4, the size of the casper-rw depends on the size of your USB memory stick. 4GB: It is almost impossible (200MB or so, and then nvidia driver will use half). 8GB: around 3000 MB or so. 16GB or more: you can set 4089MB (max of vfat file system) without any problem. MAKE SURE you have 50MB or so free area on the USB memory at the end. (The free space will be used for display driver update.) -------------------- (ReCasper:3) Replace casper/filesystem.* on the USB memory by the downloaded ones. Suppose your USB memory stick is at E: - Delete the pre-installed files E:\casper\filesystem.* - Copy the downloaded files (below) to E:\casper filesystem.manifest filesystem.manifest-desktop filesystem.size filesystem.squashfs And now the USB memory stick is ready to boot. ============================== (2) Boot ============================== The hardest part for some people would be here. - Power off the target PC. - Plug in the USB memory stick. - I strongly recommend you to take off any other USB storage devices! (internal SATA HDD is OK, Casper won't use it) - Power on - GET TO THE BIOS MENU and choose the boot device to the USB memory stick. ... If you have "boot options" (or quick boot menu or whatever), it would be easy. ... Usually Func-2? Func-11? Del? it depends. ... Secured PC might not be allowed to boot from USB. Ask your administrator. - If you successfully choose your USB memory stick, you will see "Installer boot menu" with a simple (but nice) black/white screen. Do wait for 5 seconds, it will automatically boot up (or choose "Run Ubuntu from this USB"). - You should see the Unity Desktop screen in a minute or so. Welcome to the Casper Cartridge! [Warning : Calm down, wait for 10 or 20 more seconds :-)] - Sometimes Ubuntu is not still ready even after you see the normal Unity Desktop. - (It happens when your PC is not fast, your USB memory stick is not fast, ... whatever). - I recommend you to wait for 30 seconds or so before you start working. - (This delay is obvious when you want to use DASH, left side bar.) [Warning : DO SHUT DOWN on exit] - After you boot the system, the Ubuntu behaviour is exactly same as the one installed on HDD. (This is NOT like CDROM-boot!) - That means, YOU NEED TO gracefully SHUT DOWN the system to turn off the system. - Do not power off suddenly! - Do not plug out your USB memory stick suddenly! - SHUT-DOWN can be done in normal procedure, just click the top-right icon and select "shut down". [Ready to Go Further?] - You can use the system now, but unfortunately, it won't activate Nvidia video card fully. - So you need to go to the next step. ============================== (3) Activate Nvidia driver ============================== This procedure is required only when you FIRST boot Nvidia-PC. (You don't need to do for the second time.) (You can do that for the second time too, but it is just waste of your time. ;-) 3-1. Open terminal - Boot up the system as shown in "(2) Boot". - Open terminal. - Click the left icon ("Dash Home") and type in "terminal" in the query box. - You should see "terminal" icon. Click and run it. 3-2. Check current driver. - From now on, you exactly type in the commands after "$" letter. $ date - You should see the time stamp which is same on the top-right. OK? Good. - Check which module you are using: $ lsmod | grep vid - You will see "nouveau" words, and you can not unfortunately find the word nvidia. - (If you find nvidia and no nouveau, it is already OK, quit this step (3) now.) 3-3. Install Driver - (Re)Install nvidia driver - It will take one minute or so to finish. - As the locally cached package is used, you do not need the Internet conneciton. - (This also assures you run the same driver.) $ sudo apt-get --ignore-missing --no-download --reinstall install nvidia-current - Immediately after you install nvidia-current (before rebooting), - you need to tell the system the driver is updated. $ ccsm -> Category -> Desktop -> Turn on "Ubuntu Unity Plugin" -> Back 3-4. Reboot and Check - Then shut down and restart the Ubuntu system. - You should see new screen splash on boot, after the boot menu. "Ubuntu 12.04" in cheep font ;-) "NVIDIA" logo (for just a second) - At Desktop, nothing seems to be changed. That's OK. - open terminal, run lsmod again, and you should find nvidia this time. - In addition, you can check CUDA availability by $ ./CUDA-Casper/NVIDIA_GPU_Computing_SDK/C/bin/linux/release/deviceQuery - If you see messages including the line below, you are ready to use CUDA too. Found 1 CUDA Capable Device(s) ============================== (4) Some DO NOTs !! ============================== [Package Update] - Do not update the packages from GUI tools, No updates from the top-right icon No updates from "Ubuntu Software Center" (They could be fine, but I never tried.) - I prefer to that from terminal. $ sudo apt-get update - Anyway, as this is not a permanently running system, you don't need to update so much. ============================== (5) Demos ! ============================== (5-1) My samples My cheap samples could be found at /home/ubuntu/GoGoCasper . (5-2) Demos from software packages Some demos could be found in these directories. You'd better run binaries from the terminal, at their directory. /home/ubuntu/ARToolKit-Casper/ARToolKit-2.7.21-Casper/bin/ /home/ubuntu/ARToolKit-Casper/ARToolKitPlus-2.3.0/sample/ /home/ubuntu/Uchiyamakers-Casper/DRDM/DRDM-Casper/ /home/ubuntu/OpenNI-Casper/NITE-Bin-Dev-Linux-x86-v1.5.2.21/Samples/Bin/x86-Release/ /home/ubuntu/CUDA-Casper/NVIDIA_GPU_Computing_SDK/C/bin/linux/release/ /home/ubuntu/OpenCV-Casper/OpenCV-2.4.2/build20121016/bin/ /home/ubuntu/kinect-Casper/OpenNI/Platform/Linux/Bin/x86-Release/ /home/ubuntu/PCL-Casper/PCL-1.6.0-Source/build20121016/bin/ /home/ubuntu/PTAM-Casper/PTAMM-Casper/ /home/ubuntu/PTAM-Casper/PTAMM-TrakMark/ ============================== (6) Citation ? ============================== The related articles could be found at: [1] A Study of Camera Tracking Evaluation on TrakMark Data-Set Masayuki Hayashi, Itaru Kitahara, Yoshinari Kameda, Yuichi Ohta (University of Tsukuba) The 2nd International Workshop on Benchmark Test Schemes for AR/MR Geometric Registration and Tracking Method (TrakMark2011) in conjunction with ISMAR2011. http://ypcex.naist.jp/trakmark/workshop11/ [2] Uniform Software Environment for AR Performance Evaluation based on USB boot Linux Yoshinari Kameda, Itaru Kitahara, Yuichi Ohta (University of Tsukuba) The 3rd International Workshop on Benchmark Test Schemes for AR/MR Geometric Registration and Tracking Method (TrakMark2012) in conjunction with ICPR2012. http://ypcex.naist.jp/trakmark/workshop12/ --- End of HowTo ---