by
Lars Vogel / August 31st, 2010
In July I announced that I will try to switch to Linux. I actually needed two months and a broken laptop to make the transition.
The main reason for needing longer then expected is that I have files which I need all the time. I had them on my laptop and therefore I switched frequently to it. As my laptop died a few weeks ago I had the opportunity to think about a better solution.
I solved this problem by using Git to synchronize my data via a Git account.
The setup took a while time because I wanted to use http / https and EGit does currently not support https authentication and msysGit had a bug for which I need to find a workaround. Also github had a bug which fortunately was fixed fast.
It also took me some time to migrate the build infrastructure for vogella.de to Linux. Partly because I forgot how I did the setup
and partly because I was not always as strict as I should have been with lower and upper case spelling. Windows is very forgiving in this sense while Linux is not.
So do I like it? I love it. First of all working on my Ubuntu machine is incredible fast. This might not be a big surprise as the machine is relatively new. But I also think that my crashed laptop had an issue with the harddisk (with finally failed). If I did I/O the whole laptop basically froze which was very, very annoying.

One effect I did not foresee was that I now work “geekier”. On Windows I rarely used the command line. On Linux I alway have a few terminals open and do some stuff their. Using Ubuntu I could also finally compile OpenJDK. I also now started using cygwin on Windows for some tasks.
Of course there are new bugs for me, e.g. Ctrl+alt+down arrow is not working on Linux .
In total I’m now a happy Ubuntu user at home. I believe the July monthly challenges was a success even if it took two months.
In July I announced that I will try to switch to Linux. I actually needed two months and a broken laptop to make the transition.
The main reason for needing longer then expected is that I have files which I need all the time. I had them on my laptop and therefore I switched frequently to it. As my laptop died a few weeks ago I had the opportunity to think about a better solution.
I solved this problem by using Git to synchronize my data via a Git account.
The setup took a while time because I wanted to use http / https and EGit does currently not support https authentication and msysGit had a bug for which I need to find a workaround. Also github had a bug which fortunately was fixed fast.
It also took me some time to migrate the build infrastructure for vogella.de to Linux. Partly because I forgot how I did the setup ;-) and partly because I was not always as strict as I should have been with lower and upper case spelling. Windows is very forgiving in this sense while Linux is not.
So do
Tags: Linux, Ubuntu
Posted in Challenge of the month |
by
Lars Vogel / August 30th, 2010
Tags: EGit, Git, majug
Posted in Eclipse |
by
Lars Vogel / August 26th, 2010
Tags: Git, Mylyn
Posted in Eclipse |
by
Lars Vogel / August 24th, 2010
Tags: Mylyn
Posted in Eclipse |
by
Lars Vogel / August 17th, 2010
If you ever wanted to copy the full workspace to another machine you may have noticed that a billion generated files (e.g. bin) are copied and that this takes a long time. If you start Eclipse with the -clean option the workspace will regenerate all file again.
You can avoid this bye de-selecting in the “Build automatically” in the preferences under General -> Workspace.

If you now select Project -> Clean -> All and de-select “Start an Build automatically” in the dialog you end up with a workspace without the files of the build process.
If you ever wanted to copy the full workspace to another machine you may have noticed that a billion generated files (e.g. bin) are copied and that this takes a long time. If you start Eclipse with the -clean option the workspace will regenerate all file again.
You can avoid this bye de-selecting in the "Build automatically" in the preferences under General -> Workspace.
If you now select Project -> Clean -> All and de-select "Start an Build automatically" in the dialog you end up with a workspace without the files of the build process.
Posted in Eclipse |
by
Lars Vogel / August 16th, 2010
Posted in vogella |
by
Lars Vogel / August 9th, 2010
Unfortunately the Eclipse team provider EGit does currently not support to use HTTPS for cloning and pushing.
Fortunately the Git command line supports this (under Linux without problems).
git clone https://vogella@github.com/vogella/de.vogella.rcp.example.git
// do some changes
git push https://vogella@github.com/vogella/de.vogella.rcp.example.git
If you are on Windows and if you are using msysGit then you may receive the following error:
error: error setting certificate verify locations:
CAfile: /bin/curl-ca-bundle.crt
CApath: none
while accessing your_repo
If you have this error you can disable ssl verification to solve it.
git config --global http.sslverify "false"
After this change cloning and pushing works via https on Windows.
Alternative the following should also make msysGit work, but I didn’t test these approaches.
copy C:\Program Files\Git\bin\curl-ca-bundle.crt to c:\bin\curl-ca-bundle.crt
or
git config --system http.sslcainfo \bin/curl-ca-bundle.crt
The full discussion of the msysGit issue can be found here.
[Update:] If you are behind a http proxy you can set the proxy via the following command:
git config --global http.proxy http://proxy:8080
// To check the proxy settings
git config --get http.proxy
Unfortunately the Eclipse team provider EGit does currently not support to use HTTPS for cloning and pushing.
Fortunately the Git command line supports this (under Linux without problems).
[sourcecode type="bash"]
git clone https://vogella@github.com/vogella/de.vogella.rcp.example.git
// do some changes
git push https://vogella@github.com/vogella/de.vogella.rcp.example.git
[/sourcecode]
If you are on Windows and if you are using msysGit then you may receive the following error:
[sourcecode type="bash"]
error: error setting certificate verify locations:
CAfile: /bin/curl-ca-bundle.crt
CApath: none
while accessing your_repo
[/sourcecode]
If you have this error you can disable ssl verification to solve it.
[sourcecode type="bash"]
git config --global http.sslverify "false"
[/sourcecode]
After this change cloning and pushing works via https on Windows.
Alternative the following should also make msysGit work, but I didn't test these approaches.
[sourcecode type="bash
Tags: EGit, Git
Posted in Eclipse |
by
Lars Vogel / August 5th, 2010
Tags: E4
Posted in Eclipse |
by
Lars Vogel / August 3rd, 2010
Eclipse has the option to put the semicolon at the right place in your coding.
For some very annoying reason my workspace had this feature disabled. In case you have the same activate it via the following:

Eclipse has the option to put the semicolon at the right place in your coding.
For some very annoying reason my workspace had this feature disabled. In case you have the same activate it via the following:
Posted in Eclipse |
by
Lars Vogel / July 29th, 2010
Tags: E4
Posted in Eclipse |