HowTo

Version 18 (Neels Hofmeyr, 12/16/2013 11:08 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 13 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. Wahrscheinlich ist es nicht optimal, aber so wie hier hat es funktioniert:
71 12 Neels Hofmeyr
72 16 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 16 Neels Hofmeyr
* wichsWidgets 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 1 Neels Hofmeyr
<pre>
138 13 Neels Hofmeyr
cd wxGTK-2.8.12/
139 13 Neels Hofmeyr
mkdir b
140 13 Neels Hofmeyr
cd b
141 13 Neels Hofmeyr
../configure --with-gnomeprint --with-opengl --with-gtk --enable-unicode --enable-printarch --with-gtkprint
142 13 Neels Hofmeyr
make
143 13 Neels Hofmeyr
sudo make install
144 13 Neels Hofmeyr
</pre>
145 1 Neels Hofmeyr
146 14 Neels Hofmeyr
* kicad holen und auf arschlinux version gehen
147 13 Neels Hofmeyr
<pre>
148 13 Neels Hofmeyr
bzr checkout lp:kicad
149 1 Neels Hofmeyr
cd kicad
150 14 Neels Hofmeyr
bzr revert -r4017
151 14 Neels Hofmeyr
</pre>
152 1 Neels Hofmeyr
153 17 Neels Hofmeyr
* Ich musste einen Fix einbringen in
154 14 Neels Hofmeyr
<pre>
155 1 Neels Hofmeyr
kicad/CMakeModules/TokenList2DsnLexer.cmake
156 14 Neels Hofmeyr
</pre>
157 17 Neels Hofmeyr
und zwar die beiden quotes um 'clipboard' escapen, zeile 248:
158 1 Neels Hofmeyr
<pre>
159 15 Neels Hofmeyr
     *   If left empty, then _(\"clipboard\") is used.
160 14 Neels Hofmeyr
</pre>
161 14 Neels Hofmeyr
162 14 Neels Hofmeyr
* kicad bauen (installiert nach /usr/share/kicad/library|modules)
163 18 Neels Hofmeyr
<pre>
164 18 Neels Hofmeyr
cd kicad
165 13 Neels Hofmeyr
mkdir b
166 13 Neels Hofmeyr
cd b
167 1 Neels Hofmeyr
cmake -DKICAD_STABLE_VERSION=ON -DUSE_PCBNEW_NANOMETRES=ON ../
168 18 Neels Hofmeyr
make & pray --to=$GODS_OF_FORTUNE
169 13 Neels Hofmeyr
sudo make install
170 13 Neels Hofmeyr
</pre>
171 13 Neels Hofmeyr
test:
172 13 Neels Hofmeyr
<pre>
173 13 Neels Hofmeyr
$ which kicad
174 13 Neels Hofmeyr
/usr/local/bin/kicad
175 13 Neels Hofmeyr
</pre>
176 13 Neels Hofmeyr
177 13 Neels Hofmeyr
178 13 Neels Hofmeyr
* kicad libraries installieren (installiert nach /usr/share/kicad/library|modules)
179 13 Neels Hofmeyr
<pre>
180 13 Neels Hofmeyr
sudo apt-get --no-install-recommends kicad-common
181 13 Neels Hofmeyr
</pre>
182 13 Neels Hofmeyr
183 12 Neels Hofmeyr
184 12 Neels Hofmeyr
sources: "1":http://www.kicad-pcb.org/display/DEV/Building+KiCad+on+Linux