Linux
1. ubuntu password :http://askubuntu.com/questions/24006/how-do-i-reset-a-lost-administrative-password
2. psftp guideline: 1) connect ftp : psftp -P 50244 -i ~/.ssh/id_rsa.pub cranio@krs.kitware.com ; psftp -P 50244 -i ~/.ssh/id_rsa krs.kitware.com -l cranio
2) remote operation: cd, ls;
generate key: https://help.ubuntu.com/community/SSH/OpenSSH/Keys
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
b9:be:a0:c4:b1:f9:28:96:50:1d:73:ff:42:bc:e4:79 root@jqi-Precision-T3600
3) local operation: lcd lls; 4) download and upload: mget, mput -r; 5)end connection: bye.
3. linux call different version of gcc and g++ : http://askubuntu.com/questions/26498/choose-gcc-and-g-version
execute in terminal :
gcc -v
g++ -v
Okay, so that part is fairly simple. The tricky part is that when you issue the command GCC it is actually a sybolic link to which ever version of GCC you are using. What this means is we can create a symbolic link from GCC to whichever version of GCC we want.
- You can see the symbolic link :
ls -la /usr/bin | grep gcc-4.4 ls -la /usr/bin | grep g++-4.4
- So what we need to do is remove the GCC symlink and the G++ symlink and then recreate them linked to GCC 4.3 and G++ 4.3:
rm /usr/bin/gcc rm /usr/bin/g++ ln -s /usr/bin/gcc-4.3 /usr/bin/gcc ln -s /usr/bin/g++-4.3 /usr/bin/g++
- Now if we check the symbolic links again we will see GCC & G++ are now linked to GCC 4.3 and G++ 4.3:
ls -la /usr/bin/ | grep gcc ls -la /usr/bin/ | grep g++
- Finally we can check our GCC -v again and make sure we are using the correct version:
gcc -v g++ -v 4. jre install:http://www.wikihow.com/Install-Oracle-Java-JRE-on-Ubuntu-Linux 6. opencv2.4.9+ubuntu14.04: http://www.samontab.com/web/2014/06/installing-opencv-2-4-9-in-ubuntu-14-04-lts/