| Introduction |
|
xxv | |
| Chapter 1: Mobile Linux |
|
1 | |
|
|
|
1 | |
|
A Short History: From Big Iron to Mighty Mouse |
|
|
2 | |
|
|
|
3 | |
|
|
|
4 | |
|
|
|
5 | |
|
Netbooks, Linux, and Ubuntu |
|
|
6 | |
|
A Giant's Strength in a Dwarf's Arm |
|
|
8 | |
|
|
|
9 | |
| Chapter 2: The Development Environment |
|
11 | |
|
|
|
12 | |
|
Getting Familiar with the Ubuntu Mobile Environment |
|
|
12 | |
|
|
|
12 | |
|
|
|
21 | |
|
|
|
21 | |
|
|
|
22 | |
|
|
|
23 | |
|
|
|
25 | |
|
|
|
25 | |
|
|
|
26 | |
|
Advanced Networking on VirtualBox and KVM/QEMU |
|
|
26 | |
|
Using the Bridge in VirtualBox |
|
|
28 | |
|
|
|
29 | |
|
Sharing Files Between Guests and Host |
|
|
29 | |
|
Sharing Files Between Guests and Host with Advanced Networking |
|
|
30 | |
|
Building Your Own Virtual Image |
|
|
31 | |
|
|
|
31 | |
|
|
|
32 | |
|
Installing Applications inside the Image |
|
|
33 | |
|
Increasing a Downloaded Image Size |
|
|
34 | |
|
|
|
34 | |
| Chapter 3: Power Management |
|
35 | |
|
|
|
35 | |
|
|
|
36 | |
|
Power Management Packages |
|
|
36 | |
|
|
|
37 | |
|
|
|
37 | |
|
|
|
37 | |
|
|
|
37 | |
|
|
|
38 | |
|
|
|
38 | |
|
|
|
40 | |
|
|
|
40 | |
|
|
|
41 | |
|
The Quality of Service: QoS Interface |
|
|
43 | |
|
Controlling Radio Transmitters |
|
|
44 | |
|
|
|
45 | |
|
|
|
45 | |
|
Investigating Power Usage |
|
|
46 | |
|
|
|
47 | |
|
Preparing to Run the Tests |
|
|
47 | |
|
|
|
47 | |
|
|
|
48 | |
|
|
|
50 | |
|
|
|
51 | |
| Chapter 4: Application Development |
|
53 | |
|
|
|
54 | |
|
Creating a New Application |
|
|
55 | |
|
|
|
55 | |
|
|
|
56 | |
|
The Desktop Entry Specification |
|
|
56 | |
|
The Desktop Application Autostart Specification |
|
|
57 | |
|
XDG Base Directory Specification |
|
|
57 | |
|
Desktop Menu Specification |
|
|
57 | |
|
Hildon: An Application Framework for Handheld Devices |
|
|
58 | |
|
What Is Hildon in Terms of Code? |
|
|
58 | |
|
|
|
58 | |
|
|
|
59 | |
|
|
|
59 | |
|
|
|
59 | |
|
|
|
59 | |
|
|
|
60 | |
|
|
|
60 | |
|
|
|
60 | |
|
|
|
64 | |
|
|
|
65 | |
|
|
|
66 | |
|
|
|
66 | |
|
|
|
66 | |
|
|
|
66 | |
|
|
|
69 | |
|
|
|
70 | |
|
|
|
75 | |
|
|
|
79 | |
|
|
|
81 | |
|
|
|
81 | |
|
What Key Technologies Do I Need to Know to Develop Applications for a Mobile Device? |
|
|
82 | |
|
|
|
82 | |
|
Object Paths and Bus Names |
|
|
83 | |
|
Exporting Objects with D-Bus |
|
|
84 | |
|
Connect to a D-Bus Signal |
|
|
85 | |
|
Useful D-Bus Command-Line Applications |
|
|
85 | |
|
|
|
85 | |
|
|
|
87 | |
|
|
|
87 | |
|
|
|
88 | |
|
|
|
88 | |
|
|
|
89 | |
|
|
|
90 | |
|
|
|
91 | |
|
|
|
93 | |
|
Putting All the Concepts Together |
|
|
94 | |
|
|
|
103 | |
| Chapter 5: Application Packaging |
|
105 | |
|
Background and Important Tools |
|
|
105 | |
|
Packaging and Using a PPA |
|
|
108 | |
|
|
|
109 | |
|
|
|
109 | |
|
|
|
112 | |
|
|
|
112 | |
|
|
|
113 | |
|
|
|
114 | |
|
|
|
115 | |
|
|
|
115 | |
|
|
|
116 | |
|
|
|
117 | |
|
Creating Your Own Repository |
|
|
118 | |
|
|
|
118 | |
|
|
|
118 | |
|
|
|
118 | |
|
Adding Packages to a Repository |
|
|
119 | |
|
Removing Packages From a Repository |
|
|
119 | |
|
|
|
119 | |
|
|
|
120 | |
|
|
|
120 | |
|
Performing Actions on PBuilder |
|
|
123 | |
|
Creating a Distribution Environment |
|
|
124 | |
|
Building a Package to a Specific Release |
|
|
124 | |
|
Updating the PBuilder Environment |
|
|
124 | |
|
|
|
124 | |
|
|
|
125 | |
|
Additional Hook Manipulation with PBuilder |
|
|
125 | |
|
|
|
126 | |
|
Mount Bind a Package Repository for Use with PBuilder |
|
|
126 | |
|
|
|
126 | |
|
|
|
126 | |
|
|
|
127 | |
|
|
|
127 | |
| Chapter 6: Application Selection |
|
129 | |
|
|
|
129 | |
|
|
|
130 | |
|
|
|
131 | |
|
|
|
131 | |
|
|
|
132 | |
|
Useful Keybindings in the Entertainer GUI |
|
|
133 | |
|
|
|
134 | |
|
|
|
134 | |
|
|
|
136 | |
|
|
|
136 | |
|
|
|
136 | |
|
|
|
138 | |
|
|
|
138 | |
|
|
|
138 | |
|
|
|
139 | |
|
Test the Gypsy to GPS Connection |
|
|
142 | |
|
Interaction with the GPS Daemon |
|
|
142 | |
|
|
|
143 | |
|
|
|
146 | |
| Chapter 7: Theming |
|
147 | |
|
|
|
147 | |
|
Where Are Themes Located in the Filesystem? |
|
|
148 | |
|
What Is a Theme Engine and Where Are They Located? |
|
|
148 | |
|
|
|
148 | |
|
What Happens When a MID Device Boots? |
|
|
149 | |
|
|
|
150 | |
|
A Useful Tool When Working with Themes |
|
|
150 | |
|
|
|
151 | |
|
|
|
151 | |
|
|
|
152 | |
|
|
|
152 | |
|
|
|
153 | |
|
|
|
153 | |
|
|
|
153 | |
|
|
|
154 | |
|
|
|
154 | |
|
|
|
154 | |
|
Automatically Theming MID |
|
|
156 | |
|
Theming Ubuntu Netbook Remix |
|
|
157 | |
|
|
|
158 | |
|
|
|
158 | |
|
Customizing the Netbook Launcher |
|
|
159 | |
|
Performance Testing of Themes |
|
|
160 | |
|
Test the Human Metacity Theme |
|
|
160 | |
|
|
|
160 | |
|
|
|
162 | |
|
|
|
163 | |
| Chapter 8: Kernel Fine-Tuning |
|
165 | |
|
Ubuntu MID Kernel Overview |
|
|
165 | |
|
|
|
165 | |
|
|
|
166 | |
|
|
|
172 | |
|
Updating a Customized Kernel Tree |
|
|
175 | |
|
Updating an Ubuntu Kernel Tree |
|
|
175 | |
|
Update a Non-Ubuntu Kernel Tree |
|
|
181 | |
|
Dynamic Kernel Module Support |
|
|
181 | |
|
Inside the DKMS Framework |
|
|
182 | |
|
|
|
183 | |
|
|
|
186 | |
| Chapter 9: Testing and Usability |
|
187 | |
|
|
|
187 | |
|
|
|
188 | |
|
Mago — A Desktop Testing Initiative |
|
|
188 | |
|
Building an Application for Testing |
|
|
189 | |
|
|
|
189 | |
|
|
|
190 | |
|
|
|
193 | |
|
Adding the Browser Test to Mago |
|
|
193 | |
|
Linux Standards Base and Certification |
|
|
196 | |
|
Installing the LSB Application Testkit |
|
|
196 | |
|
Running the LSB Application Testkit |
|
|
196 | |
|
|
|
197 | |
|
|
|
197 | |
|
PBuilder for Automating the Testing of Packages |
|
|
200 | |
|
Other Useful Linux Performance Testing Tools |
|
|
201 | |
|
|
|
201 | |
|
|
|
201 | |
|
|
|
201 | |
|
|
|
201 | |
|
|
|
202 | |
|
|
|
202 | |
|
|
|
202 | |
|
|
|
203 | |
|
|
|
203 | |
|
|
|
203 | |
|
|
|
204 | |
|
|
|
204 | |
|
|
|
205 | |
|
|
|
205 | |
|
Filing a Bug Report Automatically |
|
|
206 | |
|
Reporting a Bug from the Command Line |
|
|
206 | |
|
|
|
206 | |
| Chapter 10: Tips and Tricks |
|
207 | |
|
|
|
207 | |
|
|
|
207 | |
|
Creating a /tmp That Is Half the Size of Physical RAM |
|
|
208 | |
|
|
|
208 | |
|
|
|
209 | |
|
|
|
209 | |
|
Getting to Know the Battery on a Device |
|
|
210 | |
|
|
|
211 | |
|
Use Power Management Settings on Disks |
|
|
211 | |
|
|
|
212 | |
|
Turning Off Background Services |
|
|
212 | |
|
|
|
213 | |
|
Configuring the Touchscreen |
|
|
214 | |
|
Watching Hard Disk Activity |
|
|
217 | |
|
|
|
218 | |
| Chapter 11: Putting It All Together |
|
219 | |
|
Important Things to Consider |
|
|
219 | |
|
Check If the Device Architecture Is Supported by Ubuntu |
|
|
220 | |
|
|
|
220 | |
|
|
|
221 | |
|
|
|
221 | |
|
Is It an Embedded System? |
|
|
221 | |
|
Customizing the User Interface |
|
|
222 | |
|
|
|
222 | |
|
|
|
223 | |
|
|
|
224 | |
|
|
|
224 | |
|
Setting the Default Ubuntu, XFCE, and Hildon Behaviors |
|
|
224 | |
|
Fine-Tuning the Build Process |
|
|
225 | |
|
|
|
225 | |
|
Caching Packages with approx |
|
|
225 | |
|
Creating a Default Ubuntu Image |
|
|
226 | |
|
Choosing Which Type of Installer to Use |
|
|
226 | |
|
When to Use Debian-Installer (Ubuntu Alternate Image) |
|
|
226 | |
|
When to Use Ubiquity (Ubuntu Desktop Image) |
|
|
226 | |
|
Getting Started on the Image: Preparing the Environment |
|
|
226 | |
|
Finally, Building the Default ISO |
|
|
229 | |
|
Building a Customized Ubuntu Image |
|
|
230 | |
|
|
|
231 | |
|
|
|
232 | |
|
An Example: Germinating Ubuntu Netbook Remix |
|
|
234 | |
|
Packages and Repositories |
|
|
235 | |
|
Generating Metapackages the Ubuntu Way |
|
|
235 | |
|
|
|
236 | |
|
Generating Metapackages the Simple Way |
|
|
238 | |
|
|
|
239 | |
|
Adding Packages to the Image |
|
|
240 | |
|
Finally, Build the Custom ISO |
|
|
240 | |
|
Ubuntu Policies, Trademarks, Copyright, and Common Sense |
|
|
240 | |
|
So What Is a Derived Distribution? |
|
|
241 | |
|
|
|
241 | |
|
|
|
242 | |
| Chapter 12: Mobile Directions |
|
243 | |
|
Choice, Change, and Opportunity |
|
|
244 | |
|
Evolution and Software Development |
|
|
246 | |
|
|
|
247 | |
|
|
|
247 | |
|
|
|
248 | |
|
|
|
248 | |
|
|
|
249 | |
|
The Politics of Technology |
|
|
249 | |
|
|
|
249 | |
|
|
|
249 | |
|
|
|
250 | |
|
|
|
250 | |
|
|
|
251 | |
|
|
|
251 | |
|
|
|
251 | |
|
|
|
253 | |
|
Ubuntu, Linux, and Mobile Computing |
|
|
254 | |
|
|
|
255 | |
| Chapter 13: Common Problems and Possible Solutions |
|
257 | |
|
|
|
257 | |
|
Application Icon Does Not Appear |
|
|
258 | |
|
|
|
259 | |
|
Setting a Flag Automatically |
|
|
259 | |
|
|
|
260 | |
|
Running Ubuntu on Freerunner |
|
|
260 | |
|
|
|
261 | |
|
Ubuntu Intrepid UMPC Project |
|
|
261 | |
|
Installing Ubuntu Netbook Remix on a UMPC |
|
|
261 | |
|
|
|
261 | |
|
Joining the Ubuntu Mobile Developers Team |
|
|
262 | |
|
|
|
262 | |
|
|
|
262 | |
|
|
|
263 | |
|
|
|
263 | |
| Appendix A: Ubuntu's Right ARM |
|
265 | |
| Appendix B: Git Usage |
|
277 | |
| Appendix C: Hosting Your Project on Launchpad |
|
287 | |
| Appendix D: Desktop Power Applet Code |
|
291 | |
| Appendix E: D-Bus: An Overview |
|
297 | |
| Index |
|
307 | |