HowTo

Version 12 (Neels Hofmeyr, 12/16/2013 10:53 pm)

1 2 Neels Hofmeyr
{{>toc}}
2 2 Neels Hofmeyr
3 1 Neels Hofmeyr
h1. HowTo
4 1 Neels Hofmeyr
5 11 Michael Schubert
h2. Setup gitolite
6 1 Neels Hofmeyr
7 1 Neels Hofmeyr
* Send your SSH public key to one of the gitolite admins.
8 1 Neels Hofmeyr
* Setup your SSH config. Example:
9 1 Neels Hofmeyr
** Leave 'stsp_gitolite' as-is (we're using stsp's IN-Berlin account)
10 1 Neels Hofmeyr
** Change '/home/alice' to your home directory path
11 1 Neels Hofmeyr
12 1 Neels Hofmeyr
<pre>
13 1 Neels Hofmeyr
host oophone-gitolite
14 1 Neels Hofmeyr
        user stsp_gitolite
15 1 Neels Hofmeyr
        hostname git.user.in-berlin.de
16 1 Neels Hofmeyr
        port 22
17 1 Neels Hofmeyr
        identityfile /home/alice/.ssh/oophone
18 1 Neels Hofmeyr
</pre>
19 1 Neels Hofmeyr
20 1 Neels Hofmeyr
* Test it:
21 1 Neels Hofmeyr
22 1 Neels Hofmeyr
<pre>
23 1 Neels Hofmeyr
$ ssh oophone-gitolite
24 1 Neels Hofmeyr
PTY allocation request failed on channel 0
25 1 Neels Hofmeyr
hello alice, the gitolite version here is 1.5.4-2+squeeze1 (Debian)
26 1 Neels Hofmeyr
the gitolite config gives you the following access:
27 1 Neels Hofmeyr
    @R @W	testing
28 1 Neels Hofmeyr
    ...
29 1 Neels Hofmeyr
    ...
30 1 Neels Hofmeyr
Connection to git.user.in-berlin.de closed.
31 1 Neels Hofmeyr
</pre>
32 1 Neels Hofmeyr
33 1 Neels Hofmeyr
* Clone repos:
34 1 Neels Hofmeyr
35 1 Neels Hofmeyr
<pre>
36 1 Neels Hofmeyr
$ git clone oophone-gitolite:<repo>
37 1 Neels Hofmeyr
</pre>
38 1 Neels Hofmeyr
39 1 Neels Hofmeyr
40 11 Michael Schubert
h2. Edit Issue Description
41 1 Neels Hofmeyr
42 1 Neels Hofmeyr
# open issue
43 1 Neels Hofmeyr
# click on "Update"
44 1 Neels Hofmeyr
# search for "Change properties (More):", click on "More"
45 1 Neels Hofmeyr
# coolness, you may now edit the description
46 1 Neels Hofmeyr
47 11 Michael Schubert
h2. Cope with Issue Quirks
48 1 Neels Hofmeyr
49 1 Neels Hofmeyr
If I remember this right, some of the https://redmine.user.in-berlin.de/projects/oophone/issues attributes can only be accessed by *right-clicking* the issue (not the link, but the remainder of the row) in the issue list.
50 1 Neels Hofmeyr
In any case this is a faster way to change most issue attributes.
51 3 Neels Hofmeyr
52 11 Michael Schubert
h2. powers of 10 cheat
53 3 Neels Hofmeyr
54 5 Neels Hofmeyr
|notation|value|symbol|word(s)|examples|
55 6 Neels Hofmeyr
| 1e0 | (1) * 10 ^ (0) = 1 | | C/Python "e" notation, not to be confused with "the base of the natural logarithm e":http://en.wikipedia.org/wiki/E_%28mathematical_constant%29 used in RCL (resistor/capacitor/inductor) electronics calculations.||
56 4 Neels Hofmeyr
| 1e-12 | 0.000 000 000 001 | p | pico |pF = picoFarad (capacitance)|
57 4 Neels Hofmeyr
| 1e-9 | 0.000 000 001 | n | nano |nF|
58 4 Neels Hofmeyr
| 1e-6 | 0.000 001 | µ | micro |µA or uA = microAmpere (current)|
59 4 Neels Hofmeyr
| 1e-3 | 0.001 | m | milli | mA (current), mV = milliVolt (voltage) |
60 4 Neels Hofmeyr
| ...  |||||
61 8 Neels Hofmeyr
| 1k5  | 1.5 kOhm = 1500 Ohm | k = 1000 | frequently used resistor value notation | 4k7=4700 0k0=zero-Ohm-bridge=short-circuit|
62 8 Neels Hofmeyr
| u1   | 0.1 µF = 100nF | | frequently used capacitor notation | u33=330nF 1u=1.0µF |
63 4 Neels Hofmeyr
| 64k * 8 | 64 * 1024 * 8 bit = 64 kilobytes | k = 1024 | frequently used EEPROM memory size notation| "512k = 64k * 8" actually means 64kb |
64 10 Neels Hofmeyr
| 5 mA | 0.005 A | current | electrons flowing | "the module is drawing 2 Ampere" |
65 10 Neels Hofmeyr
| 100 mAh | 100 milliAmpereHours | capacity | 1 mA for 100 hours or 100 mA for one hour or ... | "a 1600mAh battery" |
66 12 Neels Hofmeyr
67 12 Neels Hofmeyr
68 12 Neels Hofmeyr
h2. kicad
69 12 Neels Hofmeyr
70 12 Neels Hofmeyr
KiCad auf Archlinux ist aus bzr-Revision 4017 gebaut worden. Als ich mit einem viel älteren KiCad schus Dateien öffnen wollte ... gings halt nicht. Deshalb hab ich jetzt KiCad neu gebaut. Und hat lang gebraucht bis ich's gerafft hab.
71 12 Neels Hofmeyr
72 12 Neels Hofmeyr
Deps:
73 12 Neels Hofmeyr
<pre>
74 12 Neels Hofmeyr
apt-get install bzr bzrtools build-essential checkinstall cmake doxygen zlib1g-dev libglew-dev
75 12 Neels Hofmeyr
apt-get install libgl1-mesa-dev libglu1-mesa-dev libglewmx-dev
76 12 Neels Hofmeyr
</pre>
77 12 Neels Hofmeyr
78 12 Neels Hofmeyr
wxWidgets selbst bauen (eigentlich sollte 'apt-get install libwxgtk2.8-dev' auch gehen, aber das findets irgendwie nicht oder was auch immer).
79 12 Neels Hofmeyr
80 12 Neels Hofmeyr
* download wxGTK-2.8.12.tar.gz von sourceforge ("z.B.":http://surfnet.dl.sourceforge.net/project/wxwindows/2.8.12/wxGTK-2.8.12.tar.gz)
81 12 Neels Hofmeyr
<pre>
82 12 Neels Hofmeyr
tar xzf Downloads/wxGTK-2.8.12.tar.gz
83 12 Neels Hofmeyr
cd wxGTK-2.8.12/
84 12 Neels Hofmeyr
</pre>
85 12 Neels Hofmeyr
86 12 Neels Hofmeyr
* einen bescheuerten Fix einbringen weil auf debian libGL.so jetzt unter /usr/lib/<arch>/ liegt. Schau nach wo unter /usr/lib deine libGL.so installiert worden ist. Bei mir ist das '/usr/lib/x86_64-linux-gnu'. Diesen Pfad musst Du in das configure script schummeln. habs nicht geschafft via configure.in, einfach gleich in 'configure' rein :/
87 12 Neels Hofmeyr
** finde SEARCH_INCLUDE=
88 12 Neels Hofmeyr
** füge den obigen Pfad ein, z.B.
89 12 Neels Hofmeyr
<pre>
90 12 Neels Hofmeyr
$ cd wxGTK-2.8.12/
91 12 Neels Hofmeyr
$ vim configure
92 12 Neels Hofmeyr
[...]
93 12 Neels Hofmeyr
94 12 Neels Hofmeyr
SEARCH_INCLUDE="\
95 12 Neels Hofmeyr
    /usr/local/include        \
96 12 Neels Hofmeyr
    /usr/local/X11/include    \
97 12 Neels Hofmeyr
    /usr/local/include/X11    \
98 12 Neels Hofmeyr
    /usr/local/X11R6/include  \
99 12 Neels Hofmeyr
    /usr/local/include/X11R6  \
100 12 Neels Hofmeyr
                              \
101 12 Neels Hofmeyr
    /usr/Motif-2.1/include    \
102 12 Neels Hofmeyr
    /usr/Motif-1.2/include    \
103 12 Neels Hofmeyr
    /usr/include/Motif1.2     \
104 12 Neels Hofmeyr
                              \
105 12 Neels Hofmeyr
    /usr/dt/include           \
106 12 Neels Hofmeyr
    /usr/openwin/include      \
107 12 Neels Hofmeyr
                              \
108 12 Neels Hofmeyr
    /usr/include/Xm           \
109 12 Neels Hofmeyr
                              \
110 12 Neels Hofmeyr
    /usr/X11R6/include        \
111 12 Neels Hofmeyr
    /usr/X11R6.4/include      \
112 12 Neels Hofmeyr
                              \
113 12 Neels Hofmeyr
    /usr/include/X11R6        \
114 12 Neels Hofmeyr
                              \
115 12 Neels Hofmeyr
    /usr/X11/include          \
116 12 Neels Hofmeyr
    /usr/include/X11          \
117 12 Neels Hofmeyr
                              \
118 12 Neels Hofmeyr
    /usr/XFree86/include/X11  \
119 12 Neels Hofmeyr
    /usr/pkg/include          \
120 12 Neels Hofmeyr
                              \
121 12 Neels Hofmeyr
    /usr/local/X1R5/include  \
122 12 Neels Hofmeyr
    /usr/local/include/X11R5  \
123 12 Neels Hofmeyr
    /usr/X11R5/include        \
124 12 Neels Hofmeyr
    /usr/include/X11R5        \
125 12 Neels Hofmeyr
                              \
126 12 Neels Hofmeyr
    /usr/local/X11R4/include  \
127 12 Neels Hofmeyr
    /usr/local/include/X11R4  \
128 12 Neels Hofmeyr
    /usr/X11R4/include        \
129 12 Neels Hofmeyr
    /usr/include/X11R4        \
130 12 Neels Hofmeyr
                              \
131 12 Neels Hofmeyr
    /usr/include/x86_64-linux-gnu        \
132 12 Neels Hofmeyr
                              \
133 12 Neels Hofmeyr
    /usr/openwin/share/include"
134 12 Neels Hofmeyr
</pre>
135 12 Neels Hofmeyr
    
136 12 Neels Hofmeyr
* wx bauen
137 12 Neels Hofmeyr
<pre>
138 12 Neels Hofmeyr
  cd wxGTK-2.8.12/
139 12 Neels Hofmeyr
140 12 Neels Hofmeyr
  cd mkdir b
141 12 Neels Hofmeyr
142 12 Neels Hofmeyr
sources: "1":http://www.kicad-pcb.org/display/DEV/Building+KiCad+on+Linux