Merge lp:~bdfhjk/clicompanion/setupscript into lp:clicompanion
- setupscript
- Merge into trunk
Status: | Rejected |
---|---|
Rejected by: | Marek Bardoński |
Proposed branch: | lp:~bdfhjk/clicompanion/setupscript |
Merge into: | lp:clicompanion |
Diff against target: |
639 lines (+375/-160) 6 files modified
data/clicompanion2.config (+0/-151) data/clicompanion2.config.debian (+151/-0) data/clicompanion2.config.ubuntu (+151/-0) plugins/LocalCommandList.py (+48/-1) setup.py (+12/-8) setupscript.py (+13/-0) |
To merge this branch: | bzr merge lp:~bdfhjk/clicompanion/setupscript |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marek Bardoński | Disapprove | ||
David Caro | Needs Fixing | ||
Review via email: mp+101091@code.launchpad.net |
Commit message
Description of the change
- 110. By Marek Bardoński
-
Fixed debian distro name
Jonathan Marsden (jmarsden) wrote : | # |
David Caro (dcaro) wrote : | # |
Hi Marek!
Try not to use a secondary file (setupscript.py) for installation, merge it with the setup.py script (it's not really something outside the installation procedure nor something clearly modular).
To change the executable bit of the files something like this will help you:
$ find data images clicompanionlib locale plugins MANIFEST -type f -exec chmod -x {} \;
I've seen that the .clicompanion file (hidden) is not used anywhere... (not even the MANIFEST), we should delete it.
Also edit the MANIFEST file to include the new files.
David
Marek Bardoński (bdfhjk) wrote : | # |
I've sent another branch. Noted issues fixed.
Thanks for review!
Unmerged revisions
- 110. By Marek Bardoński
-
Fixed debian distro name
- 109. By Marek Bardoński
-
Added setup script to check system version and install correct cheatsheet. Also added an option to revert cheatsheet to orginal state
Preview Diff
1 | === modified file '.bzrignore' (properties changed: -x to +x) |
2 | === modified file '.clicompanion' (properties changed: -x to +x) |
3 | === modified file 'MANIFEST' (properties changed: -x to +x) |
4 | === modified file 'clicompanion.1' (properties changed: -x to +x) |
5 | === modified file 'clicompanionlib/__init__.py' (properties changed: -x to +x) |
6 | === modified file 'clicompanionlib/config.py' (properties changed: -x to +x) |
7 | === modified file 'clicompanionlib/helpers.py' (properties changed: -x to +x) |
8 | === modified file 'clicompanionlib/menus_buttons.py' (properties changed: -x to +x) |
9 | === modified file 'clicompanionlib/plugins.py' (properties changed: -x to +x) |
10 | === modified file 'clicompanionlib/preferences.py' (properties changed: -x to +x) |
11 | === modified file 'clicompanionlib/tabs.py' (properties changed: -x to +x) |
12 | === modified file 'clicompanionlib/utils.py' (properties changed: -x to +x) |
13 | === modified file 'clicompanionlib/view.py' (properties changed: -x to +x) |
14 | === modified file 'data/clicompanion.16.png' (properties changed: -x to +x) |
15 | === modified file 'data/clicompanion.64.png' (properties changed: -x to +x) |
16 | === modified file 'data/clicompanion.desktop' (properties changed: -x to +x) |
17 | === removed file 'data/clicompanion2.config' |
18 | --- data/clicompanion2.config 2012-01-13 21:22:53 +0000 |
19 | +++ data/clicompanion2.config 1970-01-01 00:00:00 +0000 |
20 | @@ -1,151 +0,0 @@ |
21 | -dpkg -l ? package Find version of a package |
22 | -df -h File system disk space usage |
23 | -free -m Show RAM usage |
24 | -ps aux | grep ? search string Search active processes for search string |
25 | -iwconfig Display wireless network information |
26 | -ifconfig -a Displays the status of the currently active interfaces |
27 | -lsb_release -a What version of Ubuntu do I have? |
28 | -uname -a What kernel am I running |
29 | -sudo apt-get update && sudo apt-get upgrade Refresh update info and update all packages |
30 | -sudo apt-get clean Clear out all packages in /var/cache/apt/archives |
31 | -sudo apt-get autoclean Clear out obsolete packages(packages with a newer release) |
32 | -apt-cache search ? package Find information on a package (not installed) |
33 | -sudo lshw List hardware |
34 | -lspci List all PCI devices |
35 | -aplay -l List all soundcards and digital audio devices |
36 | -cat ? path Read File & Print to Standard Output |
37 | -ls ? path List Folders Contents |
38 | -ls -lSr ? path Show files by size, biggest last |
39 | -mv ? ? sourcePath, destinationPath Move (Rename) Files |
40 | -cp ? ? sourcePath, destinationPath Copy File from sourcePath to destinationPath |
41 | -sudo lspci attached PCI devices |
42 | -chmod ? ? permissions, file Change access permissions, change mode |
43 | -chown ? ? owner group, file Change the owner and/or group of each given file |
44 | -dmesg Print kernel & driver messages |
45 | -history Command History |
46 | -history | grep -i ? command search history for a command |
47 | -locate ? file Find files (updatedb to update DB) |
48 | -sudo updatedb update the database for locate |
49 | -which ? command Show full path name of command |
50 | -find -maxdepth 1 -type f | xargs grep -F ? string Search all regular files for 'string' in this dir |
51 | -gpg -c ? file Encypt a file |
52 | -gpg ? file.gpg Decrypt a file |
53 | -tar -cvf ? ? Destination.tar Source Compress(tar) Source into Destination |
54 | -tar -cvzf ? ? Destination.tar.gz Source Compress(tar.gz) Source into Destination |
55 | -tar -cjvf ? ? Destination.tar.bz2 Source Compress(tar.bz2) Source into Destination |
56 | -tar xvf ? file decompress/extract .tar |
57 | -tar xvzf ? file decompress/extract tar.gz |
58 | -tar xjvf ? file decompress/extract a tar.bz2 |
59 | -sudo dpkg --configure -a help fix broken packages |
60 | -sudo apt-get -f install help fix broken packages |
61 | -top display Linux tasks |
62 | -netstat Print network connections and interface statistics |
63 | -sudo fdisk -l ? disk(usually /dev/sda) List partition tables for specified devices |
64 | -sudo ufw enable Enable netfilter firewall |
65 | -sudo ufw allow ? port Open a port in netfilter firewall |
66 | -sudo ufw deny ? port Close a port in netfilter firewall |
67 | -sudo ufw disable Disable netfilter firewall |
68 | -cat ? ? | sort | uniq > ? file1, file2, file3 combine, sort and remove duplicates from 2 files |
69 | -dpkg-query -W -f='${Installed-Size;10}\t${Package}\n' | sort -k1,1n List all installed packages by size |
70 | -apropos ? command or package search the manual page names and descriptions |
71 | -ip addr Display info about active network interfaces |
72 | -ip route Display currently active routing table |
73 | -dpkg -L ? Package name List all files installed by a given package |
74 | -dpkg -S $(which ?) command name List which package installed given command |
75 | -dpkg -S ? path (example /etc/wgetrc) List which package installed given file or directory |
76 | -dpkg-deb -I ? .deb package file Display information about given .deb file |
77 | -dpkg-deb -c ? .deb package file List contents of given .deb file |
78 | -dpkg-source -x ? .dsc source package file Extract source package to current directory |
79 | -sudo dpkg-reconfigure ? Package name Reconfigures given installed package |
80 | -sudo dpkg -i ? .deb package file Installs given .deb package |
81 | -find . -type d List all directories under current directory |
82 | -find . -size +? File size (example 10M) List all files under current directory over given size |
83 | -find . -mtime 0 List all files under current directory modified in last 24 hours |
84 | -find . -mtime +? Number of days List all files under current directory modified more than given number of days ago |
85 | -find . -newer ? filename List all files under current directory newer than given file |
86 | -find . ! -newer ? filename List all files under current directory older than given file |
87 | -find . ! -user $USER List all files under current directory not owned by current user |
88 | -find . -user ? Username List all files under current directory owned by given user |
89 | -find . -perm -2 ! -type l List all world-writeable files and directories under current directory |
90 | -mount List all mounted filesysystems |
91 | -mount -t ? Filesystem type (example ext4) List all mounted filesystems of given type |
92 | -sudo umount ? Device or mount point Un-mount the filesystem from the given device or mount point |
93 | -sudo mount -av Mount all automatically mounted filesystems (listed in /etc/fstab) |
94 | -sudo mount ? ? device, mount point Mount given device at given mount point |
95 | -sudo fdisk -l /dev/sda List partition table of first hard drive /dev/sda |
96 | -sudo fdisk -l ? Device name (example /dev/sdb) List partition table of given device |
97 | -du -sh . Display total size of all files and directories under current directory |
98 | -du -skxc * .[^.]* |sort -n|tail -20 List disk usage in Kbytes of largest 20 files or subdirectories under current dir in current filesystem |
99 | -du -skxc * .[^.]* |sort -n List disk usage in Kbytes of all files and directories under current directory in current filesystem |
100 | -du -smxc * .[^.]* |sort -n|tail -20 List disk usage in Mbytes of largest 20 files or subdirectories under current dir in current filesystem |
101 | -du -smxc * .[^.]* |sort -n List disk usage in Mbytes of all files and directories under current directory in current filesystem |
102 | -wget ? File URL (example http://example.com/somefile.html) Download single given file using http, ftp or https |
103 | -wget -m ? Site URL (example http://example.com) Recursively download entire given site |
104 | -ls -ltr List files, most recently modified last |
105 | -ls -lAd .[^.]* List all files and directories starting with a dot (all hidden files and directories) |
106 | -sudo lsof -c ? command name List files opened by processes beginning with given command name |
107 | -sudo lsof +D ? directory List open files under given directory |
108 | -sudo lsof -i List open (Internet) network sockets |
109 | -sudo lsof -N List open NFS files |
110 | -sudo lsof -U List open Unix domain files (Unix sockets) |
111 | -tar axf ? Compressed tar archive (example somefile.tar.bz2) Extract given compressed tar archive to current directory |
112 | -tar atf ? Compressed tar archive (example somefile.tar.gz) Test given compressed tar archive integrity |
113 | -tar jcf ? ? Compressed tar archive filename (example myfiles.tar.bz2),File or directory spec Create .tar.bz2 compressed archive of given filespec |
114 | -zip -r ? ? Zip file name (example myfiles.zip),file or directory spec Create .zip compressed archive of given filespec |
115 | -unzip ? Zip file name Extract given compressed zip archive into current directory |
116 | -gzip -9 ? Filename Compress given file using gzip, adding a .gz suffix to its name |
117 | -bzip2 -9 ? Filename Compress given file using bzip2b, adding a .bz2 suffix to its name |
118 | -gunzip ? Filename (example myfile.gz) Decompress given gzipped file, removing .gz suffix |
119 | -bunzip2 ? Filename (example somefile.bz2) Decompress given bzip2'ed file, removing .bz2 suffix |
120 | -gunzip -t ? Filename (example myfile.gz) Test compression of given gzipped file |
121 | -bunzip2 -t ? Filename (example myfile.bz2) Test compression of given bzip2'ed file |
122 | -cd $OLDPWD Change directory to previously used directory |
123 | -pushd ? directory Change to given directory, remembering current directory on stack |
124 | -popd Change to topmost directory on stack created by pushd |
125 | -pwd List current directory |
126 | -cd Change to home directory |
127 | -sudo apt-get update Update database of available packages |
128 | -sudo apt-get install ? Package Install given package and its dependencies |
129 | -sudo apt-get remove ? Package Remove given package |
130 | -sudo apt-get auto-remove Remove all packages installed as dependencies which are no longer needed |
131 | -apt-get source ? Package Download and install given source package into current directory |
132 | -date Display local date and time in local display format |
133 | -date -R Display local date and time in RFC2822 format |
134 | -date -u Display UTC time in local display format |
135 | -date -u +%s Display UTC time in number of seconds past the epoch |
136 | -ntpq -p List NTP time sources and their offsets |
137 | -smbstatus List current status of local SAMBA server |
138 | -smbclient -L \\\\? -N Hostname List shares and related information about SMB server on given host |
139 | -testparm -s Test and display current SAMBA configuration |
140 | -sudo service ? stop Service name Stop given service |
141 | -sudo service ? start Service name Start given service |
142 | -sudo service ? restart Service name Restart given service |
143 | -sudo service ? status Service name Show status of given service |
144 | -jobs List current jobs |
145 | -fg ? jobspec (example %1) Run given job the foreground |
146 | -bg ? jobspec (example %1) Run given job the background |
147 | -suspend Suspend the currently running shell |
148 | -md5sum ? filename or wildcard Display MD5 checksum of given file(s) |
149 | -sha1sum ? filename or wildcard Display SHA-1 checksum of given file(s) |
150 | -gpg --list-keys --list-options show-photos ? key id Display specified GnuPG key, with photo if present |
151 | -gpg --list-keys Display GnuPG keys |
152 | -gpg --clearsign ? filename Create a clearsigned copy of given filename with a .asc suffix |
153 | -gpg -ea -r ? ? Key ID, filename Create encrypted armoured copy of given file with a .asc suffix, for decryption by user with given GnuPG key id |
154 | -gpg -d ? filename Decrypt and display given file |
155 | -gpg -c ? filename Encrypt given file using symetric cipher and prompt for passphrase, result in filename.gpg |
156 | -gpg --keyserver keyserver.ubuntu.com --recv-keys ? Key ID Import public key with given key ID from Ubuntu keyserver |
157 | -top Interactively display running processes (q to quit) |
158 | -top -n1 Display a snapshot of currently running processes |
159 | -htop Display configurable interactive process viewer (q to quit) |
160 | -vmstat 5 Display information about virtual memory (process, swap, disk activity, etc.) every 5 seconds (Ctrl-C to quit) |
161 | -iostat 5 Display information about io activity every 5 seconds (Ctrl-C to quit) |
162 | -sudo jnettop -i eth0 Display information about network traffic (q to quit) |
163 | -uptime Display how long system has been running and current load averages |
164 | -sudo apt-get install packaging-dev Installs all the usual basic Debian/Ubuntu development and packaging tools |
165 | -rmadison -u ubuntu ? package name Display versions of given source package in all releases of Ubuntu |
166 | -rmadison -u debian ? package name Display versions of given source package in all releases of Debian |
167 | -rmadison -u ubuntu -s precise ? package name Display version of given source package in Precise version of Ubuntu |
168 | -rmadison -u debian -s unstable ? package name Display version of given source package in Debian unstable |
169 | -sudoedit ? filename Edit filename with root priviledges |
170 | -sudo visudo Edit sudo configuration file |
171 | - |
172 | |
173 | === added file 'data/clicompanion2.config.debian' |
174 | --- data/clicompanion2.config.debian 1970-01-01 00:00:00 +0000 |
175 | +++ data/clicompanion2.config.debian 2012-04-06 11:40:27 +0000 |
176 | @@ -0,0 +1,151 @@ |
177 | +dpkg -l ? package Find version of a package |
178 | +df -h File system disk space usage |
179 | +free -m Show RAM usage |
180 | +ps aux | grep ? search string Search active processes for search string |
181 | +iwconfig Display wireless network information |
182 | +ifconfig -a Displays the status of the currently active interfaces |
183 | +lsb_release -a What version of Ubuntu do I have? |
184 | +uname -a What kernel am I running |
185 | +gksu apt-get update && gksu apt-get upgrade Refresh update info and update all packages |
186 | +gksu apt-get clean Clear out all packages in /var/cache/apt/archives |
187 | +gksu apt-get autoclean Clear out obsolete packages(packages with a newer release) |
188 | +apt-cache search ? package Find information on a package (not installed) |
189 | +gksu lshw List hardware |
190 | +lspci List all PCI devices |
191 | +aplay -l List all soundcards and digital audio devices |
192 | +cat ? path Read File & Print to Standard Output |
193 | +ls ? path List Folders Contents |
194 | +ls -lSr ? path Show files by size, biggest last |
195 | +mv ? ? sourcePath, destinationPath Move (Rename) Files |
196 | +cp ? ? sourcePath, destinationPath Copy File from sourcePath to destinationPath |
197 | +gksu lspci attached PCI devices |
198 | +chmod ? ? permissions, file Change access permissions, change mode |
199 | +chown ? ? owner group, file Change the owner and/or group of each given file |
200 | +dmesg Print kernel & driver messages |
201 | +history Command History |
202 | +history | grep -i ? command search history for a command |
203 | +locate ? file Find files (updatedb to update DB) |
204 | +gksu updatedb update the database for locate |
205 | +which ? command Show full path name of command |
206 | +find -maxdepth 1 -type f | xargs grep -F ? string Search all regular files for 'string' in this dir |
207 | +gpg -c ? file Encypt a file |
208 | +gpg ? file.gpg Decrypt a file |
209 | +tar -cvf ? ? Destination.tar Source Compress(tar) Source into Destination |
210 | +tar -cvzf ? ? Destination.tar.gz Source Compress(tar.gz) Source into Destination |
211 | +tar -cjvf ? ? Destination.tar.bz2 Source Compress(tar.bz2) Source into Destination |
212 | +tar xvf ? file decompress/extract .tar |
213 | +tar xvzf ? file decompress/extract tar.gz |
214 | +tar xjvf ? file decompress/extract a tar.bz2 |
215 | +gksu dpkg --configure -a help fix broken packages |
216 | +gksu apt-get -f install help fix broken packages |
217 | +top display Linux tasks |
218 | +netstat Print network connections and interface statistics |
219 | +gksu fdisk -l ? disk(usually /dev/sda) List partition tables for specified devices |
220 | +gksu ufw enable Enable netfilter firewall |
221 | +gksu ufw allow ? port Open a port in netfilter firewall |
222 | +gksu ufw deny ? port Close a port in netfilter firewall |
223 | +gksu ufw disable Disable netfilter firewall |
224 | +cat ? ? | sort | uniq > ? file1, file2, file3 combine, sort and remove duplicates from 2 files |
225 | +dpkg-query -W -f='${Installed-Size;10}\t${Package}\n' | sort -k1,1n List all installed packages by size |
226 | +apropos ? command or package search the manual page names and descriptions |
227 | +ip addr Display info about active network interfaces |
228 | +ip route Display currently active routing table |
229 | +dpkg -L ? Package name List all files installed by a given package |
230 | +dpkg -S $(which ?) command name List which package installed given command |
231 | +dpkg -S ? path (example /etc/wgetrc) List which package installed given file or directory |
232 | +dpkg-deb -I ? .deb package file Display information about given .deb file |
233 | +dpkg-deb -c ? .deb package file List contents of given .deb file |
234 | +dpkg-source -x ? .dsc source package file Extract source package to current directory |
235 | +gksu dpkg-reconfigure ? Package name Reconfigures given installed package |
236 | +gksu dpkg -i ? .deb package file Installs given .deb package |
237 | +find . -type d List all directories under current directory |
238 | +find . -size +? File size (example 10M) List all files under current directory over given size |
239 | +find . -mtime 0 List all files under current directory modified in last 24 hours |
240 | +find . -mtime +? Number of days List all files under current directory modified more than given number of days ago |
241 | +find . -newer ? filename List all files under current directory newer than given file |
242 | +find . ! -newer ? filename List all files under current directory older than given file |
243 | +find . ! -user $USER List all files under current directory not owned by current user |
244 | +find . -user ? Username List all files under current directory owned by given user |
245 | +find . -perm -2 ! -type l List all world-writeable files and directories under current directory |
246 | +mount List all mounted filesysystems |
247 | +mount -t ? Filesystem type (example ext4) List all mounted filesystems of given type |
248 | +gksu umount ? Device or mount point Un-mount the filesystem from the given device or mount point |
249 | +gksu mount -av Mount all automatically mounted filesystems (listed in /etc/fstab) |
250 | +gksu mount ? ? device, mount point Mount given device at given mount point |
251 | +gksu fdisk -l /dev/sda List partition table of first hard drive /dev/sda |
252 | +gksu fdisk -l ? Device name (example /dev/sdb) List partition table of given device |
253 | +du -sh . Display total size of all files and directories under current directory |
254 | +du -skxc * .[^.]* |sort -n|tail -20 List disk usage in Kbytes of largest 20 files or subdirectories under current dir in current filesystem |
255 | +du -skxc * .[^.]* |sort -n List disk usage in Kbytes of all files and directories under current directory in current filesystem |
256 | +du -smxc * .[^.]* |sort -n|tail -20 List disk usage in Mbytes of largest 20 files or subdirectories under current dir in current filesystem |
257 | +du -smxc * .[^.]* |sort -n List disk usage in Mbytes of all files and directories under current directory in current filesystem |
258 | +wget ? File URL (example http://example.com/somefile.html) Download single given file using http, ftp or https |
259 | +wget -m ? Site URL (example http://example.com) Recursively download entire given site |
260 | +ls -ltr List files, most recently modified last |
261 | +ls -lAd .[^.]* List all files and directories starting with a dot (all hidden files and directories) |
262 | +gksu lsof -c ? command name List files opened by processes beginning with given command name |
263 | +gksu lsof +D ? directory List open files under given directory |
264 | +gksu lsof -i List open (Internet) network sockets |
265 | +gksu lsof -N List open NFS files |
266 | +gksu lsof -U List open Unix domain files (Unix sockets) |
267 | +tar axf ? Compressed tar archive (example somefile.tar.bz2) Extract given compressed tar archive to current directory |
268 | +tar atf ? Compressed tar archive (example somefile.tar.gz) Test given compressed tar archive integrity |
269 | +tar jcf ? ? Compressed tar archive filename (example myfiles.tar.bz2),File or directory spec Create .tar.bz2 compressed archive of given filespec |
270 | +zip -r ? ? Zip file name (example myfiles.zip),file or directory spec Create .zip compressed archive of given filespec |
271 | +unzip ? Zip file name Extract given compressed zip archive into current directory |
272 | +gzip -9 ? Filename Compress given file using gzip, adding a .gz suffix to its name |
273 | +bzip2 -9 ? Filename Compress given file using bzip2b, adding a .bz2 suffix to its name |
274 | +gunzip ? Filename (example myfile.gz) Decompress given gzipped file, removing .gz suffix |
275 | +bunzip2 ? Filename (example somefile.bz2) Decompress given bzip2'ed file, removing .bz2 suffix |
276 | +gunzip -t ? Filename (example myfile.gz) Test compression of given gzipped file |
277 | +bunzip2 -t ? Filename (example myfile.bz2) Test compression of given bzip2'ed file |
278 | +cd $OLDPWD Change directory to previously used directory |
279 | +pushd ? directory Change to given directory, remembering current directory on stack |
280 | +popd Change to topmost directory on stack created by pushd |
281 | +pwd List current directory |
282 | +cd Change to home directory |
283 | +gksu apt-get update Update database of available packages |
284 | +gksu apt-get install ? Package Install given package and its dependencies |
285 | +gksu apt-get remove ? Package Remove given package |
286 | +gksu apt-get auto-remove Remove all packages installed as dependencies which are no longer needed |
287 | +apt-get source ? Package Download and install given source package into current directory |
288 | +date Display local date and time in local display format |
289 | +date -R Display local date and time in RFC2822 format |
290 | +date -u Display UTC time in local display format |
291 | +date -u +%s Display UTC time in number of seconds past the epoch |
292 | +ntpq -p List NTP time sources and their offsets |
293 | +smbstatus List current status of local SAMBA server |
294 | +smbclient -L \\\\? -N Hostname List shares and related information about SMB server on given host |
295 | +testparm -s Test and display current SAMBA configuration |
296 | +gksu service ? stop Service name Stop given service |
297 | +gksu service ? start Service name Start given service |
298 | +gksu service ? restart Service name Restart given service |
299 | +gksu service ? status Service name Show status of given service |
300 | +jobs List current jobs |
301 | +fg ? jobspec (example %1) Run given job the foreground |
302 | +bg ? jobspec (example %1) Run given job the background |
303 | +suspend Suspend the currently running shell |
304 | +md5sum ? filename or wildcard Display MD5 checksum of given file(s) |
305 | +sha1sum ? filename or wildcard Display SHA-1 checksum of given file(s) |
306 | +gpg --list-keys --list-options show-photos ? key id Display specified GnuPG key, with photo if present |
307 | +gpg --list-keys Display GnuPG keys |
308 | +gpg --clearsign ? filename Create a clearsigned copy of given filename with a .asc suffix |
309 | +gpg -ea -r ? ? Key ID, filename Create encrypted armoured copy of given file with a .asc suffix, for decryption by user with given GnuPG key id |
310 | +gpg -d ? filename Decrypt and display given file |
311 | +gpg -c ? filename Encrypt given file using symetric cipher and prompt for passphrase, result in filename.gpg |
312 | +gpg --keyserver keyserver.ubuntu.com --recv-keys ? Key ID Import public key with given key ID from Ubuntu keyserver |
313 | +top Interactively display running processes (q to quit) |
314 | +top -n1 Display a snapshot of currently running processes |
315 | +htop Display configurable interactive process viewer (q to quit) |
316 | +vmstat 5 Display information about virtual memory (process, swap, disk activity, etc.) every 5 seconds (Ctrl-C to quit) |
317 | +iostat 5 Display information about io activity every 5 seconds (Ctrl-C to quit) |
318 | +gksu jnettop -i eth0 Display information about network traffic (q to quit) |
319 | +uptime Display how long system has been running and current load averages |
320 | +gksu apt-get install packaging-dev Installs all the usual basic Debian/Ubuntu development and packaging tools |
321 | +rmadison -u ubuntu ? package name Display versions of given source package in all releases of Ubuntu |
322 | +rmadison -u debian ? package name Display versions of given source package in all releases of Debian |
323 | +rmadison -u ubuntu -s precise ? package name Display version of given source package in Precise version of Ubuntu |
324 | +rmadison -u debian -s unstable ? package name Display version of given source package in Debian unstable |
325 | +sudoedit ? filename Edit filename with root priviledges |
326 | +sudo visudo Edit sudo configuration file |
327 | + |
328 | |
329 | === added file 'data/clicompanion2.config.ubuntu' |
330 | --- data/clicompanion2.config.ubuntu 1970-01-01 00:00:00 +0000 |
331 | +++ data/clicompanion2.config.ubuntu 2012-04-06 11:40:27 +0000 |
332 | @@ -0,0 +1,151 @@ |
333 | +dpkg -l ? package Find version of a package |
334 | +df -h File system disk space usage |
335 | +free -m Show RAM usage |
336 | +ps aux | grep ? search string Search active processes for search string |
337 | +iwconfig Display wireless network information |
338 | +ifconfig -a Displays the status of the currently active interfaces |
339 | +lsb_release -a What version of Ubuntu do I have? |
340 | +uname -a What kernel am I running |
341 | +sudo apt-get update && sudo apt-get upgrade Refresh update info and update all packages |
342 | +sudo apt-get clean Clear out all packages in /var/cache/apt/archives |
343 | +sudo apt-get autoclean Clear out obsolete packages(packages with a newer release) |
344 | +apt-cache search ? package Find information on a package (not installed) |
345 | +sudo lshw List hardware |
346 | +lspci List all PCI devices |
347 | +aplay -l List all soundcards and digital audio devices |
348 | +cat ? path Read File & Print to Standard Output |
349 | +ls ? path List Folders Contents |
350 | +ls -lSr ? path Show files by size, biggest last |
351 | +mv ? ? sourcePath, destinationPath Move (Rename) Files |
352 | +cp ? ? sourcePath, destinationPath Copy File from sourcePath to destinationPath |
353 | +sudo lspci attached PCI devices |
354 | +chmod ? ? permissions, file Change access permissions, change mode |
355 | +chown ? ? owner group, file Change the owner and/or group of each given file |
356 | +dmesg Print kernel & driver messages |
357 | +history Command History |
358 | +history | grep -i ? command search history for a command |
359 | +locate ? file Find files (updatedb to update DB) |
360 | +sudo updatedb update the database for locate |
361 | +which ? command Show full path name of command |
362 | +find -maxdepth 1 -type f | xargs grep -F ? string Search all regular files for 'string' in this dir |
363 | +gpg -c ? file Encypt a file |
364 | +gpg ? file.gpg Decrypt a file |
365 | +tar -cvf ? ? Destination.tar Source Compress(tar) Source into Destination |
366 | +tar -cvzf ? ? Destination.tar.gz Source Compress(tar.gz) Source into Destination |
367 | +tar -cjvf ? ? Destination.tar.bz2 Source Compress(tar.bz2) Source into Destination |
368 | +tar xvf ? file decompress/extract .tar |
369 | +tar xvzf ? file decompress/extract tar.gz |
370 | +tar xjvf ? file decompress/extract a tar.bz2 |
371 | +sudo dpkg --configure -a help fix broken packages |
372 | +sudo apt-get -f install help fix broken packages |
373 | +top display Linux tasks |
374 | +netstat Print network connections and interface statistics |
375 | +sudo fdisk -l ? disk(usually /dev/sda) List partition tables for specified devices |
376 | +sudo ufw enable Enable netfilter firewall |
377 | +sudo ufw allow ? port Open a port in netfilter firewall |
378 | +sudo ufw deny ? port Close a port in netfilter firewall |
379 | +sudo ufw disable Disable netfilter firewall |
380 | +cat ? ? | sort | uniq > ? file1, file2, file3 combine, sort and remove duplicates from 2 files |
381 | +dpkg-query -W -f='${Installed-Size;10}\t${Package}\n' | sort -k1,1n List all installed packages by size |
382 | +apropos ? command or package search the manual page names and descriptions |
383 | +ip addr Display info about active network interfaces |
384 | +ip route Display currently active routing table |
385 | +dpkg -L ? Package name List all files installed by a given package |
386 | +dpkg -S $(which ?) command name List which package installed given command |
387 | +dpkg -S ? path (example /etc/wgetrc) List which package installed given file or directory |
388 | +dpkg-deb -I ? .deb package file Display information about given .deb file |
389 | +dpkg-deb -c ? .deb package file List contents of given .deb file |
390 | +dpkg-source -x ? .dsc source package file Extract source package to current directory |
391 | +sudo dpkg-reconfigure ? Package name Reconfigures given installed package |
392 | +sudo dpkg -i ? .deb package file Installs given .deb package |
393 | +find . -type d List all directories under current directory |
394 | +find . -size +? File size (example 10M) List all files under current directory over given size |
395 | +find . -mtime 0 List all files under current directory modified in last 24 hours |
396 | +find . -mtime +? Number of days List all files under current directory modified more than given number of days ago |
397 | +find . -newer ? filename List all files under current directory newer than given file |
398 | +find . ! -newer ? filename List all files under current directory older than given file |
399 | +find . ! -user $USER List all files under current directory not owned by current user |
400 | +find . -user ? Username List all files under current directory owned by given user |
401 | +find . -perm -2 ! -type l List all world-writeable files and directories under current directory |
402 | +mount List all mounted filesysystems |
403 | +mount -t ? Filesystem type (example ext4) List all mounted filesystems of given type |
404 | +sudo umount ? Device or mount point Un-mount the filesystem from the given device or mount point |
405 | +sudo mount -av Mount all automatically mounted filesystems (listed in /etc/fstab) |
406 | +sudo mount ? ? device, mount point Mount given device at given mount point |
407 | +sudo fdisk -l /dev/sda List partition table of first hard drive /dev/sda |
408 | +sudo fdisk -l ? Device name (example /dev/sdb) List partition table of given device |
409 | +du -sh . Display total size of all files and directories under current directory |
410 | +du -skxc * .[^.]* |sort -n|tail -20 List disk usage in Kbytes of largest 20 files or subdirectories under current dir in current filesystem |
411 | +du -skxc * .[^.]* |sort -n List disk usage in Kbytes of all files and directories under current directory in current filesystem |
412 | +du -smxc * .[^.]* |sort -n|tail -20 List disk usage in Mbytes of largest 20 files or subdirectories under current dir in current filesystem |
413 | +du -smxc * .[^.]* |sort -n List disk usage in Mbytes of all files and directories under current directory in current filesystem |
414 | +wget ? File URL (example http://example.com/somefile.html) Download single given file using http, ftp or https |
415 | +wget -m ? Site URL (example http://example.com) Recursively download entire given site |
416 | +ls -ltr List files, most recently modified last |
417 | +ls -lAd .[^.]* List all files and directories starting with a dot (all hidden files and directories) |
418 | +sudo lsof -c ? command name List files opened by processes beginning with given command name |
419 | +sudo lsof +D ? directory List open files under given directory |
420 | +sudo lsof -i List open (Internet) network sockets |
421 | +sudo lsof -N List open NFS files |
422 | +sudo lsof -U List open Unix domain files (Unix sockets) |
423 | +tar axf ? Compressed tar archive (example somefile.tar.bz2) Extract given compressed tar archive to current directory |
424 | +tar atf ? Compressed tar archive (example somefile.tar.gz) Test given compressed tar archive integrity |
425 | +tar jcf ? ? Compressed tar archive filename (example myfiles.tar.bz2),File or directory spec Create .tar.bz2 compressed archive of given filespec |
426 | +zip -r ? ? Zip file name (example myfiles.zip),file or directory spec Create .zip compressed archive of given filespec |
427 | +unzip ? Zip file name Extract given compressed zip archive into current directory |
428 | +gzip -9 ? Filename Compress given file using gzip, adding a .gz suffix to its name |
429 | +bzip2 -9 ? Filename Compress given file using bzip2b, adding a .bz2 suffix to its name |
430 | +gunzip ? Filename (example myfile.gz) Decompress given gzipped file, removing .gz suffix |
431 | +bunzip2 ? Filename (example somefile.bz2) Decompress given bzip2'ed file, removing .bz2 suffix |
432 | +gunzip -t ? Filename (example myfile.gz) Test compression of given gzipped file |
433 | +bunzip2 -t ? Filename (example myfile.bz2) Test compression of given bzip2'ed file |
434 | +cd $OLDPWD Change directory to previously used directory |
435 | +pushd ? directory Change to given directory, remembering current directory on stack |
436 | +popd Change to topmost directory on stack created by pushd |
437 | +pwd List current directory |
438 | +cd Change to home directory |
439 | +sudo apt-get update Update database of available packages |
440 | +sudo apt-get install ? Package Install given package and its dependencies |
441 | +sudo apt-get remove ? Package Remove given package |
442 | +sudo apt-get auto-remove Remove all packages installed as dependencies which are no longer needed |
443 | +apt-get source ? Package Download and install given source package into current directory |
444 | +date Display local date and time in local display format |
445 | +date -R Display local date and time in RFC2822 format |
446 | +date -u Display UTC time in local display format |
447 | +date -u +%s Display UTC time in number of seconds past the epoch |
448 | +ntpq -p List NTP time sources and their offsets |
449 | +smbstatus List current status of local SAMBA server |
450 | +smbclient -L \\\\? -N Hostname List shares and related information about SMB server on given host |
451 | +testparm -s Test and display current SAMBA configuration |
452 | +sudo service ? stop Service name Stop given service |
453 | +sudo service ? start Service name Start given service |
454 | +sudo service ? restart Service name Restart given service |
455 | +sudo service ? status Service name Show status of given service |
456 | +jobs List current jobs |
457 | +fg ? jobspec (example %1) Run given job the foreground |
458 | +bg ? jobspec (example %1) Run given job the background |
459 | +suspend Suspend the currently running shell |
460 | +md5sum ? filename or wildcard Display MD5 checksum of given file(s) |
461 | +sha1sum ? filename or wildcard Display SHA-1 checksum of given file(s) |
462 | +gpg --list-keys --list-options show-photos ? key id Display specified GnuPG key, with photo if present |
463 | +gpg --list-keys Display GnuPG keys |
464 | +gpg --clearsign ? filename Create a clearsigned copy of given filename with a .asc suffix |
465 | +gpg -ea -r ? ? Key ID, filename Create encrypted armoured copy of given file with a .asc suffix, for decryption by user with given GnuPG key id |
466 | +gpg -d ? filename Decrypt and display given file |
467 | +gpg -c ? filename Encrypt given file using symetric cipher and prompt for passphrase, result in filename.gpg |
468 | +gpg --keyserver keyserver.ubuntu.com --recv-keys ? Key ID Import public key with given key ID from Ubuntu keyserver |
469 | +top Interactively display running processes (q to quit) |
470 | +top -n1 Display a snapshot of currently running processes |
471 | +htop Display configurable interactive process viewer (q to quit) |
472 | +vmstat 5 Display information about virtual memory (process, swap, disk activity, etc.) every 5 seconds (Ctrl-C to quit) |
473 | +iostat 5 Display information about io activity every 5 seconds (Ctrl-C to quit) |
474 | +sudo jnettop -i eth0 Display information about network traffic (q to quit) |
475 | +uptime Display how long system has been running and current load averages |
476 | +sudo apt-get install packaging-dev Installs all the usual basic Debian/Ubuntu development and packaging tools |
477 | +rmadison -u ubuntu ? package name Display versions of given source package in all releases of Ubuntu |
478 | +rmadison -u debian ? package name Display versions of given source package in all releases of Debian |
479 | +rmadison -u ubuntu -s precise ? package name Display version of given source package in Precise version of Ubuntu |
480 | +rmadison -u debian -s unstable ? package name Display version of given source package in Debian unstable |
481 | +sudoedit ? filename Edit filename with root priviledges |
482 | +sudo visudo Edit sudo configuration file |
483 | + |
484 | |
485 | === modified file 'images/CLIcompanion.16.png' (properties changed: -x to +x) |
486 | === modified file 'images/CLIcompanion.64.png' (properties changed: -x to +x) |
487 | === modified file 'locale/ast/LC_MESSAGES/clicompanion.mo' (properties changed: -x to +x) |
488 | === modified file 'locale/clicompanion.pot' (properties changed: -x to +x) |
489 | === modified file 'locale/de/LC_MESSAGES/clicompanion.mo' (properties changed: -x to +x) |
490 | === modified file 'locale/en_AU/LC_MESSAGES/clicompanion.mo' (properties changed: -x to +x) |
491 | === modified file 'locale/en_GB/LC_MESSAGES/clicompanion.mo' (properties changed: -x to +x) |
492 | === modified file 'locale/es/LC_MESSAGES/clicompanion.mo' (properties changed: -x to +x) |
493 | === modified file 'locale/eu/LC_MESSAGES/clicompanion.mo' (properties changed: -x to +x) |
494 | === modified file 'locale/he/LC_MESSAGES/clicompanion.mo' (properties changed: -x to +x) |
495 | === modified file 'locale/hu/LC_MESSAGES/clicompanion.mo' (properties changed: -x to +x) |
496 | === modified file 'locale/pt/LC_MESSAGES/clicompanion.mo' (properties changed: -x to +x) |
497 | === modified file 'locale/ru/LC_MESSAGES/clicompanion.mo' (properties changed: -x to +x) |
498 | === modified file 'locale/tr/LC_MESSAGES/clicompanion.mo' (properties changed: -x to +x) |
499 | === modified file 'plugins/CommandLineFU.py' (properties changed: -x to +x) |
500 | === modified file 'plugins/LaunchpadURL.py' (properties changed: -x to +x) |
501 | === modified file 'plugins/LocalCommandList.py' (properties changed: -x to +x) |
502 | --- plugins/LocalCommandList.py 2012-01-12 20:51:02 +0000 |
503 | +++ plugins/LocalCommandList.py 2012-04-06 11:40:27 +0000 |
504 | @@ -25,6 +25,8 @@ |
505 | pygtk.require('2.0') |
506 | import gobject |
507 | import collections |
508 | +import platform |
509 | +import shutil |
510 | |
511 | try: |
512 | import gtk |
513 | @@ -388,7 +390,17 @@ |
514 | self.file_btn.connect('clicked', self.select_file) |
515 | hbox.pack_end(self.file_btn, False, False, 8) |
516 | self.pack_start(hbox, False, False, 8) |
517 | - |
518 | + hbox2 = gtk.HBox() |
519 | + hbox3 = gtk.HBox() |
520 | + self.file_btn2 = gtk.Button("Revert cheatsheet to clean Ubuntu version") |
521 | + self.file_btn3 = gtk.Button("Revert cheatsheet to clean Debian version") |
522 | + self.file_btn2.connect('clicked', self.revert_cheatsheet_to_ubuntu_version) |
523 | + self.file_btn3.connect('clicked', self.revert_cheatsheet_to_debian_version) |
524 | + hbox2.pack_start(self.file_btn2) |
525 | + hbox3.pack_start(self.file_btn3) |
526 | + self.pack_start(hbox2, False, False, 8) |
527 | + self.pack_start(hbox3, False, False, 8) |
528 | + |
529 | def select_file(self, btn): |
530 | chooser = CHFileSelector() |
531 | resp = chooser.run() |
532 | @@ -403,7 +415,42 @@ |
533 | self.remove(child) |
534 | self.draw_all() |
535 | self.show_all() |
536 | + |
537 | + def revert_cheatsheet_to_ubuntu_version(self, btn): |
538 | + distribution = platform.linux_distribution() |
539 | + if distribution[0] == 'debian': |
540 | + self.show_warning() |
541 | + shutil.copy2('/etc/clicompanion.d/clicompanion2.config.ubuntu', os.path.expanduser('~') + '/.clicompanion2') |
542 | + self.show_information() |
543 | + |
544 | + def revert_cheatsheet_to_debian_version(self, btn): |
545 | + distribution = platform.linux_distribution() |
546 | + if distribution[0] == 'Ubuntu': |
547 | + self.show_warning() |
548 | + shutil.copy2('/etc/clicompanion.d/clicompanion2.config.debian', os.path.expanduser('~') + '/.clicompanion2') |
549 | + self.show_information() |
550 | |
551 | + def show_warning(self): |
552 | + dlg = gtk.MessageDialog( |
553 | + None, |
554 | + gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, |
555 | + gtk.MESSAGE_ERROR, |
556 | + gtk.BUTTONS_CLOSE, |
557 | + message_format=_('Warning!')) |
558 | + dlg.format_secondary_text(_('You are changing cheatsheet to version for another distribution')) |
559 | + dlg.run() |
560 | + dlg.destroy() |
561 | + |
562 | + def show_information(self): |
563 | + dlg = gtk.MessageDialog( |
564 | + None, |
565 | + gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, |
566 | + gtk.MESSAGE_INFO, |
567 | + gtk.BUTTONS_CLOSE, |
568 | + message_format=_('Information')) |
569 | + dlg.format_secondary_text(_('Cheatsheet was changed. Restart application to see results')) |
570 | + dlg.run() |
571 | + dlg.destroy() |
572 | |
573 | class CHFileSelector(gtk.FileChooserDialog): |
574 | ''' |
575 | |
576 | === modified file 'plugins/StandardURLs.py' (properties changed: -x to +x) |
577 | === modified file 'plugins/__init__.py' (properties changed: -x to +x) |
578 | === modified file 'plugins/clfu.py' (properties changed: -x to +x) |
579 | === modified file 'setup.py' (properties changed: -x to +x) |
580 | --- setup.py 2012-01-08 01:23:55 +0000 |
581 | +++ setup.py 2012-04-06 11:40:27 +0000 |
582 | @@ -19,6 +19,7 @@ |
583 | |
584 | import sys |
585 | import glob |
586 | +import setupscript |
587 | from distutils.core import setup |
588 | try: |
589 | from DistUtilsExtra.command import * |
590 | @@ -27,7 +28,8 @@ |
591 | sys.exit(1) |
592 | |
593 | |
594 | - |
595 | +# Run setup script |
596 | +setupscript.main() |
597 | |
598 | setup( name='clicompanion', |
599 | version='1.1', |
600 | @@ -37,12 +39,14 @@ |
601 | scripts=['clicompanion'], |
602 | packages=['clicompanionlib', 'plugins'], |
603 | data_files=[('/etc/clicompanion.d/', ['data/clicompanion2.config']), |
604 | - ('/usr/share/pixmaps', ['data/clicompanion.16.png']), |
605 | - ('/usr/share/applications', ['data/clicompanion.desktop']), |
606 | - ('/usr/share/clicompanion/locale/', glob.glob('locale/*/LC_MESSAGES/*.mo')), |
607 | - ], |
608 | + ('/etc/clicompanion.d/', ['data/clicompanion2.config.debian']), |
609 | + ('/etc/clicompanion.d/', ['data/clicompanion2.config.ubuntu']), |
610 | + ('/usr/share/pixmaps', ['data/clicompanion.16.png']), |
611 | + ('/usr/share/applications', ['data/clicompanion.desktop']), |
612 | + ('/usr/share/clicompanion/locale/', glob.glob('locale/*/LC_MESSAGES/*.mo')), |
613 | + ], |
614 | |
615 | - cmdclass = { 'build' : build_extra.build_extra, |
616 | - 'build_i18n' : build_i18n.build_i18n, |
617 | - }, |
618 | + cmdclass={ 'build' : build_extra.build_extra, |
619 | + 'build_i18n' : build_i18n.build_i18n, |
620 | + }, |
621 | ) |
622 | |
623 | === added file 'setupscript.py' |
624 | --- setupscript.py 1970-01-01 00:00:00 +0000 |
625 | +++ setupscript.py 2012-04-06 11:40:27 +0000 |
626 | @@ -0,0 +1,13 @@ |
627 | +import platform |
628 | +import shutil |
629 | + |
630 | +def main(): |
631 | + distribution = platform.linux_distribution() |
632 | + if distribution[0] == 'Ubuntu': |
633 | + shutil.copy2('data/clicompanion2.config.ubuntu', 'data/clicompanion2.config') |
634 | + elif distribution[0] == 'debian': |
635 | + shutil.copy2('data/clicompanion2.config.debian', 'data/clicompanion2.config') |
636 | + |
637 | +if __name__ == "__main__": |
638 | + main() |
639 | + |
On 04/06/2012 03:59 AM, Marek Bardoński wrote:
> Marek Bardoński has proposed merging
> lp:~bdfhjk/clicompanion/setupscript into lp:clicompanion.
>> file '.bzrignore' (properties changed: -x to +x) b/__init_ _.py' (properties changed: -x to +x) b/config. py' (properties changed: -x to +x) b/helpers. py' (properties changed: -x to +x) b/menus_ buttons. py' (properties changed: -x to +x) b/plugins. py' (properties changed: -x to +x) b/preferences. py' (properties changed: -x to +x) b/tabs. py' (properties changed: -x to +x) b/utils. py' (properties changed: -x to +x) b/view. py' (properties changed: -x to +x) ion.16. png' (properties changed: -x to +x) ion.64. png' (properties changed: -x to +x) ion.desktop' (properties changed: -x to +x)
>> file '.clicompanion' (properties changed: -x to +x)
>> file 'MANIFEST' (properties changed: -x to +x)
>> file 'clicompanion.1' (properties changed: -x to +x)
>> file 'clicompanionli
>> file 'clicompanionli
>> file 'clicompanionli
>> file 'clicompanionli
>> file 'clicompanionli
>> file 'clicompanionli
>> file 'clicompanionli
>> file 'clicompanionli
>> file 'clicompanionli
>> file 'data/clicompan
>> file 'data/clicompan
>> file 'data/clicompan
What is going on here? Why are we now marking so many files as
executable? You can't really execute a .png file...?! Was this change
intended? If not, please avoid the unwanted properties changes before
merging.
Thanks,
Jonathan