git submodule add RemoteRepositoryURL [LocalFolderName]
- Clone a project with submodules:
git clone MainProjectURL
git submodule update –recursive –init
git clone –recursive MainProjectURL
- Pull updates from the upstream:
git submodule update –recursive –remote –merge
git push –recurse-submodules=on-demand
A windows installation wipe out your old GRUB2. You want to repair.
Suppose that /dev/sdaX is where your ubuntu was installed and /dev/sdaY is where you want to install GRUB2.
Boot with Ubuntu LiveCD. Open a terminal, then do the following:
# We call the Ubuntu from the LiveCD the Live Ubuntu
# We call the Ubuntu on our local partition /dev/sdaX the Local Ubuntu
sudo mount /dev/sdaX /mnt # mount the Local Ubuntu into the Live Ubuntu
sudo mount /dev/sdaY /mnt/boot/efi # mount the GRUB2 partition into the Local Ubuntu
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
# This step is NECESSARY. It makes the Local Ubuntu see what the Live Ubuntu see. Then the update-grub can work correctly.
sudo chroot /mnt # Now we switch from the Live Ubuntu to the Local Ubuntu
sudo grub-install /dev/sdaY # Install GRUB2
sudo update-grub # Update GRUB2
To delete folder: rd /s “\\?\D:\bad\folder\path ”
To delete file: del “\\?\D:\bad\file\path “
Rename eth0 to eth1 and make a duplicate entry of wlan0, and rename the duplicate entry to eth0.
In this way, Matlab will consider your wlan0 as eth0 and go through the activation procedure.
Install a texlive package:
$ sudo apt-get install texlive-humanities
In lyx preamble:
\linenumbers % Line numbering starts here.
Alternatives to OwnCloud:
(1) Bittorrent Sync: Its P2P idea is very attractive, but currently it is not reliable even with its basic purpose: sync and update with the right version of a file. Sometimes, it accidentally delete files; Sometimes, it overwrites new files with way old files. This happened to me just twos before I was going to submit my critical project deadline. Many other users also reported similar data lose. I will never use it before they have reliably implemented conflict management.
Secondly, Bittorrent Sync is closed source. Its company is so money hungry that advertizes and charges for such beta software without conflict management, not caring about the damage it could bring to its users. As closed source, it is not sure how secure their btsync is. In their forum, they lock discussion on btsync’s alternatives and questions on its security. Such attitude drives me away.
Third, btsync runs in background without telling the user with a task bar icon. It is very sneaky. If some one install on your computer, then it becomes a backdoor. Your data is sent somewhere without telling you. Damn! Keep far away from this software and this irresponsible company until they prove they are trustful.
Do not use Bittorrent Sync until they have implemented conflict management, if you really care about your data safety.
(2) AeroFS: AeroFS runs on virtual machines. This is both good and bad. I eventually gave it up because on a Linux host machine with wireless connection, its guest machine cannot have a unique MAC, but must use the same as the host machine. It may introduce many trouble in your LAN. If you use a Windows as a host, it shall be fine. By the way, their virtual machine appliance is really resource hungry. In comparison, OwnCloud takes much less resource.