Merge lp:~kgunn72/unity/8_CODING_updates into lp:unity/8.0

Proposed by kevin gunn
Status: Rejected
Rejected by: Michał Sawicz
Proposed branch: lp:~kgunn72/unity/8_CODING_updates
Merge into: lp:unity/8.0
Diff against target: 117 lines (+44/-17)
1 file modified
CODING (+44/-17)
To merge this branch: bzr merge lp:~kgunn72/unity/8_CODING_updates
Reviewer Review Type Date Requested Status
Michał Sawicz Disapprove
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+171433@code.launchpad.net

Commit message

update to the CODING file

Description of the change

update to the CODING file

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

49 +Options can be passed to test the lock screen
50 +$ ./run -p OR -k
51 +
52 +-p is for pin lock, for which the default prompt answer is "1234"
53 +-k is for keylock passphrase, for which the default prompt answer is "password"

I think enumerating the options is the task of "./run --help". Would be good to inform the default passwords there.

CODING is meant for a new developer to get started. So, IMHO, it should be about the basic stuff only. I wasn't aware of those run options and default passwords myself. :-D

Revision history for this message
kevin gunn (kgunn72) wrote :

> 49 +Options can be passed to test the lock screen
> 50 +$ ./run -p OR -k
> 51 +
> 52 +-p is for pin lock, for which the default prompt answer is "1234"
> 53 +-k is for keylock passphrase, for which the default prompt answer is
> "password"
>
> I think enumerating the options is the task of "./run --help". Would be good
> to inform the default passwords there.
>
> CODING is meant for a new developer to get started. So, IMHO, it should be
> about the basic stuff only. I wasn't aware of those run options and default
> passwords myself. :-D

I'll go out on a limb and say most folks don't run --help, so think of this as nice advertisement about -p/-k....note i didn't put -f or -m. Remember we are also using this text on the wiki to promote playing around with unity8. And sorry, i didn't see your MP (doh) should we just merge yours in here ?

Revision history for this message
Michał Sawicz (saviq) wrote :
review: Disapprove

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CODING'
2--- CODING 2013-06-13 11:32:52 +0000
3+++ CODING 2013-06-25 23:25:33 +0000
4@@ -3,7 +3,8 @@
5
6 download source
7 ---------------
8-- the build requires some additional dependencies, so create the parent folder to not pollute your setup
9+- the build requires some additional dependencies, so create the parent
10+folder to not pollute your setup
11 $ mkdir ~/unity
12
13 - fetch Unity 8 source
14@@ -16,19 +17,22 @@
15 If its your first time, download & build deps
16 $ ./build -s
17 this will:
18- - add ppa:phablet-team/desktop-deps, ppa:canonical-qt5-edgers/qt5-proper, ppa:ubuntu-sdk-team
19- - build and install lp:libunity/phablet, lp:unity/phablet-mods, lp:hud/phablet locally
20- - install build dependencies
21+ - add the following ppa's
22+ - ppa:phablet-team/desktop-deps
23+ - ppa:canonical-qt5-edgers/qt5-proper
24+ - ppa:ubuntu-sdk-team
25+ - install the required dependencies to build, as well as run on the desktop
26+
27+Note, once the ppa's are added a apt-get update will be run, if you have
28+any failures associated with it, the build script will bail out of the setup
29+and fail to install all the required dependencies.
30
31 build Unity 8
32 -------------
33 $ ./build
34
35-subsequent updates of the dependencies
36---------------------------------------
37-$ ./build_unity -u
38-$ ./build_unity
39-
40+You may also rebuild with the -c for clean, which just deletes the build
41+directory.
42
43 Running Unity 8 on your desktop
44 ===============================
45@@ -38,6 +42,12 @@
46 $ cd ~/unity/unity8
47 $ ./run
48
49+Options can be passed to test the lock screen
50+$ ./run -p OR -k
51+
52+-p is for pin lock, for which the default prompt answer is "1234"
53+-k is for keylock passphrase, for which the default prompt answer is "password"
54+
55 Notes
56 -----
57 - to navigate, utilize the mouse left button as you would your finger
58@@ -49,10 +59,16 @@
59 Running Unity 8 on devices
60 ==========================
61 - Ubuntu Touch builds are currently only available in 13.10 flavour
62-- supported hardware should match one those listed here https://wiki.ubuntu.com/Touch/Devices#Running_fine
63-- follow the Ubuntu Touch install instructions for your chosen device https://wiki.ubuntu.com/Touch/Install
64+- supported hardware should match one those listed here
65+https://wiki.ubuntu.com/Touch/Devices#Running_fine
66+- follow the Ubuntu Touch install instructions for your chosen device
67+https://wiki.ubuntu.com/Touch/Install
68 - make sure your device is connected to a WiFi network
69-- also make sure you have your SSH key in ~/.ssh/id_rsa.pub (or install one on the device yourself)
70+- If you haven’t already or if you’ve just freshly flashed your device
71+make sure you run phablet-network-setup which will allow package updates to
72+the device
73+- also make sure you have your SSH key in ~/.ssh/id_rsa.pub (or install one
74+on the device yourself)
75
76 $ cd ~/unity/unity8
77 $ ./run_on_device -s
78@@ -67,18 +83,27 @@
79 - build on the device
80 - replace the running shell
81
82+Options can be passed to test the lock screen
83+$ ./run_on_device -p OR -k
84+
85+-p is for pin lock, for which the default prompt answer is "1234"
86+-k is for keylock passphrase, for which the default prompt answer is "password"
87+
88 Notes
89 -----
90 - using adb over TCP has some advantages, Google will be of help here
91 - TL;DR: `adb tcpip 5555; adb connect $your_device_ip`
92 - you can persist the above via `adb shell setprop persist.adb.tcp.port 5555`
93 - it's unsafe - anyone can connect to your device
94- - with TCP the Nexus 10 doesn't drop the adb connection when locking the screen
95-- exporting ANDROID_SERIAL=$your_device_serial or ANDROID_SERIAL=$your_device_ip:5555
96- will make adb not complain about multiple devices
97+ - with TCP the Nexus 10 doesn't drop the adb connection when locking
98+ the screen
99+- exporting ANDROID_SERIAL=$your_device_serial or
100+ANDROID_SERIAL=$your_device_ip:5555
101+ will make adb not complain about multiple devices
102 - you can export TARGET_IP=$your_device_ip TARGET_SSH_PORT=22 for run_on_device
103 to not use adb forwarding - useful if you use multiple devices
104-- using Ninja (package ninja-build - run_on_device -s installs this now) will improve
105+- using Ninja (package ninja-build - run_on_device -s installs this now)
106+will improve
107 build times (especially in the nothing-to-build case)
108
109
110@@ -90,4 +115,6 @@
111
112 Development Environment
113 =======================
114-QtCreator (available via the Software Center) is the best IDE to hack on Unity 8.
115+QtCreator (available via the Software Center) is the best IDE to hack on
116+Unity 8.
117+

Subscribers

People subscribed via source and target branches

to all changes: