Author Archives: linht122

Disable secret boot for ASUS motherboard

Reference: http://www.tomshardware.com/answers/id-2225322/asus-uefi-boot-utility-secure-boot.html

 

How to shut down Secure Boot on ASUS UEFI MB. Credit to romirez for the last clue I needed: set Master password on Main Tab BIOS.
So here are the steps to disable Secure boot in ASUS BIOS; first make sure you have a clean formatted USB I just used an old 2gb and formatted to Fat32 label it PK Keys, put it in a USB port and boot up into BIOS.
Go to Boot tab page down to “Secure boot” select by hitting “Enter”
Should open “Secure Boot menu” should show Secure Boot state as “enabled” and Platform Key (PK) state as “loaded”
Page down to “OS Type” select “Windows UEFI”
Page Down to “Key Management” select by hitting “Enter” select 2nd entry “Save Secure Boot Keys” to USB. AFTER you have saved keys and confirmed on another computer that you have ALL 4 files: db, dbx, KEK, PK should be ~ 15 – 20 kb total.
Page down to PK Management select “Delete PK” look right to info panel and read it, hit “Enter”. This disables Secure Boot in ASUS BIOS.

Hit F10 and reboot into BIOS

Go to Boot tab page down to “Secure boot” select by hitting “Enter”
Should open “Secure Boot menu” should show Secure Boot state as “disabled” and Platform Key (PK) state as “unloaded”

BitBucket Tutorial

 

Set up Source Tree

  1. Security Key Set Up
    A. Source Tree Side:
    Tools -> Create or Import SSH Keys -> Generate (PuTTY Key Generator) -> Copy the generated public key -> (Goto 1.B.a) ->(1.A.a) Save Public key  and Save Private Key (to a local folder)
    Tools -> Launch SSH Agent (Pageant) -> Add Key (Pageant Key List window) -> Load the saved private key (for listening SSH events)
    B. Web Side: [User icon] -> Manage Account  Bitbucket settings -> SSH Keys -> Add Key -> (1.B.a) Paste the public key and give it a Label as the name -> Add Key ->(Goto 1.A.a)
  2. Create a repository
    A. Web Side: create -> Under “Clone your new repo” copy the origin address something like “ssh://git@bitbucket.org/XXX/[RepoName].git” -> (Goto 2.B.a)B. Source Tree Side: (2.B.a) Clone/New Icon -> Paste Source Path/URL -> Set up Destination Path -> Clone (.git folder will be created in the destination folder)
  3. Add, Submit, and Push Changes to the source
    A. Source Tree Side:
    Any modified or new files will show up in the “Working Copy Changes” -> Select all changes -> Add -> Commit-> write commit message -> Commit -> Push -> select branch
    We can also create New Branch and push it to the source, or create new Label (mile stone) and push it to the source.
  4. check file status, ignored files, if sourcetree is not tracking the changes you just made.

 

Console interface (MINGW32):

$ cd c:/workspace
$ ls
$ cd [RepoFolder]
$ ls
$ vi file.txt #edit a file
$ git add .
$ git status
$ touch file2.txt #create a new file
$ git add .
$ git status
$ git add -u
$ git status
$ git commit -m “This is a update”
$ git push origin [BranchName]
$ git branch master #may fail
$ git checkout master #current branch name is “master”
$ git push origin master #current branch name is “master”

$ git status –ignored
On branch master
Your branch is up-to-date with ‘origin/master’.
Ignored files:
(use “git add -f <file>…” to include in what will be committed)

buildcuda/Gipuma/x64/Release/scripts/makeIgnoredCommitted.txt

nothing to commit, working directory clean

$ git add *
The following paths are ignored by one of your .gitignore files:
buildcuda/Gipuma/x64/Release/scripts/makeIgnoredCommitted.txt
Use -f if you really want to add them.

$ git add -f *
How to do it recursively?

 

Ubuntu Install mve-texturing and Upgrade CMake, gcc & g++

Ubuntu 12.04 Install mve-texturing and Upgrade CMake, gcc & g++

===================================================================

Upgrade CMake

xx:~$ chmod +x /home/linht/mvs-texturing/cmake-3.5.2-Linux-x86_64.sh
xx:~$ sudo /home/linht/mvs-texturing/cmake-3.5.2-Linux-x86_64.sh
xx:~$ sudo apt-get remove cmake
xx:~$ sudo apt-get autoremove
xx:/usr/share/cmake-3.5.2-Linux-x86_64/bin$ sudo install cmake /usr/bin

Verify the installation in a new terminal:

xx:~$ cmake --version
CMake Error: Could not find CMAKE_ROOhttps://github.com/kripken/emscripten/issues/3189T !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/share/cmake-3.5
cmake version 3.5.2

xx:~$ export CMAKE_ROOT=/usr/share/cmake-3.5.2-Linux-x86_6/share/cmake-3.5
(adding this line to ~/.bashrc still does not help)
xx:~$ echo $CMAKE_ROOT

The above method does not work! cmake only runs inside the installed folder /usr/share/cmake-3.5.2-Linux-x86_6/bin without the CMAKE_ROOT error.

Another method that worked:
http://askubuntu.com/questions/610291/how-to-install-cmake-3-2-on-ubuntu-14-04

Either use a PPA or compile it yourself:

  1. Installation by a PPA (Upgrade to 3.2)
    sudo apt-get install software-properties-common
    sudo add-apt-repository ppa:george-edison55/cmake-3.x
    sudo apt-get update
    
    • When cmake is not yet installed:
      sudo apt-get install cmake
      
    • When cmake is already installed:
      sudo apt-get upgrade
      
  2. Compile it yourself  (you need to remove the cmake first if you already have an old one installed by sudo apt-get remove cmake; sudo apt-get autoremove)Currently, the latest version is 3.2.2, the following instructions based on this version. You should therefore check this URL and adjust the file name accordingly.
    sudo apt-get install build-essential
    wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
    tar xf cmake-3.2.2.tar.gz
    cd cmake-3.2.2
    ./configure
    make
    

    Now you can have to choose an installation type to decide, I recommend installing with checkinstall, as this creates a DEB package.

    • With checkinstall
      sudo apt-get install checkinstall
      sudo checkinstall
      
    • With make install
      sudo make install
      

===================================================================

install gcc-4.8 and g++-4.8

http://askubuntu.com/questions/271388/how-to-install-gcc-4-8
https://github.com/kripken/emscripten/issues/3189


sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.8 g++-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
sudo apt-get install gcc-multilib
sudo apt-get install g++-multilib

===================================================================

Build mvs-texturing

git clone https://github.com/nmoehrle/mvs-texturing.git
cd mvs-texturing
mkdir build && cd build
cmake -DRESEARCH=ON ..
make

===================================================================

Build Qt 5

wget http://download.qt.io/official_releases/qt/5.0/5.0.2/qt-linux-opensource-5.0.2-x86_64-offline.run
chmod +x qt-linux-opensource-5.0.2-x86_64-offline.run
./qt-linux-opensource-5.0.2-x86_64-offline.run

===================================================================

Build mve:

$ git clone https://github.com/simonfuhrmann/mve.git
$ cd mve
$ make -j8

and umve:

$ cd apps/umve/
$ qmake && make -j8
$ ./umve

umve_error.png
Do some modifications:
1. Add c++11 support to Makefile:

umve_makefile

2. Modify the original file scrollimage.cc to clear the compiling error.

umve_scrollimage.png

Q: Function maximumVIewportSize() is abstractly declared in /usr/include/qt4/QtGui/qabstractscrollarea.h, but never defined in concrete classes.

11.4 Ubuntu Realtek Ethernet Fix

Original post is here.  Copied as following:

Ubuntu 11.04 – the Natty Narwhal

A few weeks back I had my on board Realtek PCI express go out. I thought the onboard chip had fried so I installed another Ethernet card a ENLGA-1320 all was well until around 12:00pm today and then flop, no Internet connection from it either. So I started my decent into Google and finally got it working 5 hours later.

Here’s what didn’t work, but things you may try to get it up and working…for it seemed it was working for some just not for me.

A cold start which info was gathered from this thread on it. http://www.uluga.ubuntuforums.org/sh….php?t=1436667

Giving that forum credit by linking it, I will supply the info below:

Cold Start Instructions:

  1. Shut down the machine
  2. Unplug all cables from the tower(The power cable especially)
  3. Hold the power button down for 30 seconds Then Release
  4. Press the button a good time or two for good measure, wait 3 minutes.
  5. Plug all cables back up and press the power button
  6. Internet may or may not be active now.

This didn’t work for me, and if it did not for you lets continue on. This is another post located in the thread linked above, ones again I’ll sum it up. Open a terminal and do the following.

  1. Check the model number of your Ethernet controller:
    :~$ lspci | grep Realtek
    02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express
  2. Check the driver your kernel is loading:
    :~$ lsmod | grep r816*
    r8169 36489 0
    mii 4425 1 r8169
  3. Download the 8168 Linux drivers from RealTek: http://www.realtek.com.tw/downloads/…Cbr%3ERTL8105E
  4. cd to the directory you downloaded the realtek driver:
    :~$ cd Downloads
  5. extract the files:
    :~$ tar -xvf r8168-8.020.00.tar.bz2
  6. cd to the newly extracted folder:
    :~$ cd r8168-8.020.00
  7. Auto compile the driver:
    :~$ sudo ./autorun.sh
  8. I highly doubt this is needed, because at this point my machine restarted its network connection on its own. However I will still include the optional commands to test the driver.
    :~$ sudo rmmod r8169
    :~$ sudo modprobe r8168
    :~$sudo /etc/init.d/networking restart
  9. At this point your network should be up and running, if not do not take the following next two steps.
  10. Blacklist r8169:
    :~$ sudo gedit /etc/modprobe.d/blacklist.conf
  11. Append the following lines:
    #Blacklist Realtek RTL8111/8169 gigabit driver
    blacklist r8169
  12. Save and quit
  13. Update driver cache:
    :~$ update-initramfs -u
  14. Reboot, and see if correct driver has loaded:
    $ lsmod | grep r816*
    r8168 91629 0

Ok so if that worked for you cool, however for me I was ones again met with dismay and had to find another solution. This time around I’m desperate this is my development box, but also sort of mad and just going to do what it takes to get it up and running,

http://www.webupd8.org/2009/06/how-t…our-wired.html

The link above is where most/parts of the following instructions came from, must give credit where credit is due.

  1. Remove any drivers/modules installed i had both r8169 and r8168 installed so in terminal write
    :~$ sudo rmmod r8169
    sudo rmmod r8168
  2. So now I have no eth0 at this point.
  3. Remove network manager:
    sudo apt-get remove network-manager-gnome network-manager
  4. now in terminal type:
    :~$ ifconfig

    all I saw was lo listed and not eth0, again I was lost but I thought what the hey might as well continue on with the instructions that were provided by the link mentioned above.

  5. Set up manually the /etc/network/interfaces in terminal type:
    gksu gedit /etc/network/interfaces
  6. I set up a static IP and even though All that was in the file was
    auto lo
    iface lo inet loopback

    I still appended the following to that file:

    auto eth0
    iface eth0 inet static
    address 192.168.1.10
    netmask 255.255.255.0
    gateway 192.168.0.1

    Change eth0, address, and gateway to your own network values. Save the file and close it.

  7. For the static IP It needed to find the domain name servers(DNS). This is the function of the /etc/resolv.conf file so you need to edit it. If the file doesn’t exist, create it.
  8. In terminal:
    gksu gedit /etc/resolv.conf
  9. In that file place the following:
    nameserver 208.67.222.222
    nameserver 208.67.220.220

    Replace these values with your own DNS values. I just used googles DNS

    nameserver 8.8.8.8
    nameserver 8.8.4.4

    Save and close the file.

  10. Download the 8168 Linux drivers from RealTek: http://www.realtek.com.tw/downloads/…Cbr%3ERTL8105E
  11. cd to the directory you downloaded the realtek driver:
    :~$ cd Downloads
  12. extract the files:
    :~$ tar -xvf r8168-8.020.00.tar.bz2
  13. cd to the newly extracted folder:
    :~$ cd r8168-8.020.00
  14. Auto compile the driver:
    :~$ sudo ./autorun.sh
  15. Now restart the network in terminal :
    :~$ sudo /etc/init.d/networking restart

Ok at this point my pc fully black screened after resetting the network, it was on but no body was home. So I shut it down manually by holding the power button cut it back on and eth0 works perfect now, and that’s the built in one that went out on the mother board first.

Last edited by zxkelxz; January 7th, 2011 at 12:30 AM. Reason: Addition