index.md 7.2 KB
Newer Older
Jonathan Carter's avatar
Jonathan Carter committed
1
2
3
4
5
6
7
8
---
date: 2016-03-09T19:56:50+01:00
title: Tips and Tricks
weight: 20
---

## Managing software

Jonathan Carter's avatar
Jonathan Carter committed
9
10
11
12
13
14
15
16
17
18
Being based on Debian, AIMS Desktop uses the APT (Advanced Package Tool) to manage software.

Software and its dependencies on AIMS Desktop is managed via packages, for each program on
your computer, there is at least one package. Packages can be installed, removed or upgraded.

Here we will show you how to manage software using APT in the command line. APT needs root
(administrator) privileges, so you need to run it using the sudo command.

For example, if you want to install the program "meld", you would use `apt install`:

Jonathan Carter's avatar
Jonathan Carter committed
19
```none
Jonathan Carter's avatar
Jonathan Carter committed
20
$ sudo apt install meld
Jonathan Carter's avatar
Jonathan Carter committed
21
22
23
The following NEW packages will be installed:
  meld
Do you want to continue? [Y/n] y
Jonathan Carter's avatar
Jonathan Carter committed
24
25
26
27
```

If you would like to remove that package, you can use `apt remove`:

Jonathan Carter's avatar
Jonathan Carter committed
28
```none
Jonathan Carter's avatar
Jonathan Carter committed
29
$ sudo apt remove meld
Jonathan Carter's avatar
Jonathan Carter committed
30
31
32
The following packages will be REMOVED:
  meld
Do you want to continue? [Y/n] y
Jonathan Carter's avatar
Jonathan Carter committed
33
```
Jonathan Carter's avatar
Jonathan Carter committed
34

Jonathan Carter's avatar
Jonathan Carter committed
35
36
37
38
39
APT's remove tool plays it safe, and doesn't automatically remove configuration
files or data that may have been created for a package in the system. If you'd
like to remove that as well, you can use the purge command. This does not affect
any data in your home directory.

Jonathan Carter's avatar
Jonathan Carter committed
40
```none
Jonathan Carter's avatar
Jonathan Carter committed
41
$ sudo apt purge meld
Jonathan Carter's avatar
Jonathan Carter committed
42
43
44
The following packages will be REMOVED:
  meld*
Do you want to continue? [Y/n] y
Jonathan Carter's avatar
Jonathan Carter committed
45
```
Jonathan Carter's avatar
Jonathan Carter committed
46
47
You will notice an asterisk next to the package name, this indicates that the
package will be purged, as apposed to a normal removal.
Jonathan Carter's avatar
Jonathan Carter committed
48

Jonathan Carter's avatar
Jonathan Carter committed
49
50
51
52
Security updates and other important software updates happen regularly. To update
the list of the available packages for your system, you can run `apt update`. To
install any available upgrades, you can run `apt upgrade`.

Jonathan Carter's avatar
Jonathan Carter committed
53
```none
Jonathan Carter's avatar
Jonathan Carter committed
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
$ sudo apt update
Hit:1 http://http.debian.net/debian stretch InRelease
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [62.9 kB]
...
$ sudo apt upgrade
The following packages were automatically installed and are no longer required:
  libnfsidmap2 libtirpc1
  Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  busybox
Do you want to continue? [Y/n] y
```

In the example above, apt points out that two of the installed packages are no longer
required. They might have been installed as dependencies of packages that have been
previously removed. To remove them, use the `apt autoremove` command:

Jonathan Carter's avatar
Jonathan Carter committed
71
```none
Jonathan Carter's avatar
Jonathan Carter committed
72
73
74
75
76
The following packages will be REMOVED:
  libnfsidmap2 libtirpc1
Do you want to continue? [Y/n]
```

Jonathan Carter's avatar
Jonathan Carter committed
77
{{< note title="Tip: GNOME Software" >}}
Jonathan Carter's avatar
Jonathan Carter committed
78
79
GNOME Software is a graphical front-end that supports APT.
It makes it easier to find and install software if
Jonathan Carter's avatar
Jonathan Carter committed
80
you're still new to the system.
Jonathan Carter's avatar
Jonathan Carter committed
81

Jonathan Carter's avatar
Jonathan Carter committed
82
<div style="text-align: center; margin-top: 1em;">
Jonathan Carter's avatar
Jonathan Carter committed
83
<img src="/images/tips-tricks/gnome-software.png" alt="" />
Jonathan Carter's avatar
Jonathan Carter committed
84
</div>
Jonathan Carter's avatar
Jonathan Carter committed
85
{{< /note >}}
Jonathan Carter's avatar
Jonathan Carter committed
86

Jonathan Carter's avatar
Jonathan Carter committed
87
88
89
90
91
92
93
## Connecting to remote servers via SSH

<p><span style="color: #424242;"><b>Introduction:</b> Servers that you
normally ssh into can be accessed through the Nautilus file manager.
This allows you browse your remote files, edit them and copy to and
from the remote server.</span></p>
<p><span style="color: #424242;"><b>Step 1:</b> Open Nautilus/Files</span></p>
Jonathan Carter's avatar
Jonathan Carter committed
94
<p><span style="text-align: center"><img alt="" src="/images/tips-tricks/2017.01-nautilus-ssh-1.png" /></span></p>
Jonathan Carter's avatar
Jonathan Carter committed
95
96
97
98
99
<p><span style="color: #424242;"><b>Step 2:</b> In the location pane,
click on <em>Other Locations</em>.</span></p>
<p><span style="text-align: center"><img alt="" src="/images/tips-tricks/2017.01-nautilus-ssh-2.png" /></span></p>
<p><span style="color: #424242;"><b>Step 3:</b> At the bottom there is a
field to <em>Connect to Server</em>.</span></p>
Jonathan Carter's avatar
Jonathan Carter committed
100
<p><span style="text-align: center"><img alt="" src="/images/tips-tricks/2017.01-nautilus-ssh-3.png" /></span></p>
Jonathan Carter's avatar
Jonathan Carter committed
101
102
103
104
105
106
107
108
109
110
111
112
113

<p><span style="color: #424242;"><b>Step 4:</b> In this field enter
<code>ssh://&lt;user&gt;@&lt;server&gt;</code>, where
<code>&lt;user&gt;</code> is your username and
<code>&lt;server&gt;</code> is the address of the server you are
connecting to.  Replace <code>ssh</code> with <code>sftp</code> if you
wish to connect to a SFTP server.</span></p>
<p><span style="color: #424242;"><b>Step 5:</b> This will prompt you for
a password if necessary and mount the location. You will see the
server in the left panel and a listing of files on the right.</span></p>
<p><span style="color: #424242;"><b>Step 6:</b> If you wish to bookmark this server for future use,
right-click on the server in the location pane and select
<em>Add Bookmark</em></span></p>
Jonathan Carter's avatar
Jonathan Carter committed
114
<p><span style="text-align: center"><img alt="" src="/images/tips-tricks/2017.01-nautilus-ssh-4.png" /></span></p>
Jonathan Carter's avatar
Jonathan Carter committed
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150

## Changing your password

<ul>
<li class="has-sub" class="active"><a href="#"><span>GNOME Desktop</span></a>
<ul>
<li><span style="color: #424242;"><b>Step 1:</b> Open the Activities
overview and start typing <em>Users</em>.</span></li>
<li><img width="100%" alt="" title="Finding the Users settings in GNOME"
src="/images/tips-tricks/2017.01-change-password-1.png" /></li>
<li><span style="color: #424242;"><b>Step 2:</b> Click <em>Users</em> to
open the panel.</span></li>
<li><img alt="" width="100%" title="The Users panel in GNOME"
src="/images/tips-tricks/2017.01-change-password-2.png" /></li>
<li><span style="color: #424242;"><b>Step 3:</b> Click the label next to
<em>Password</em>.</span></li>
<li><span style="color: #424242;"><b>Step 4:</b> Enter your current
password, then a new password.</span></li>
<li><span style="color: #424242;">Enter your new password again in the
<em>Verify New Password</em> field. You can press the gear icon to
automatically generate a random password.</span></li>
<li><img width="100%" alt="" title="The change password dialog"
src="/images/tips-tricks/2017.01-change-password-3.png" /></li>
<li><span style="color: #424242;"><b>Step 5:</b> Click <em>Change</em>.</span></li>
</ul>
</li>
<li class="has-sub" class="active"><a href="#"><span>Command Line</span></a>
<ul>
<li><span style="color: #424242;"><b>Step 1:</b> Open the terminal</span></li>
<li><span style="color: #424242;"><b>Step 2:</b> Enter
<pre><code>passwd</code></pre> and follow the prompts</span></li>
<li><span style="color: #424242;">Enter your current password, your new
password and then confirm your new password. You will not be able to
see your password when you type it in.</span></li>
</ul>
</li>
Jonathan Carter's avatar
Jonathan Carter committed
151

Jonathan Carter's avatar
Jonathan Carter committed
152
{{< note title="How to choose a strong password" >}}
Jonathan Carter's avatar
Jonathan Carter committed
153
<li class="has-sub" class="active"></a>
Jonathan Carter's avatar
Jonathan Carter committed
154
<ul>
Jonathan Carter's avatar
Jonathan Carter committed
155
<li><span>Make your passwords easy enough for
Jonathan Carter's avatar
Jonathan Carter committed
156
157
158
you to remember, but very difficult to for others to guess. Your
password guards your personal information, so you should make sure
it is a strong one.</span></li>
Jonathan Carter's avatar
Jonathan Carter committed
159
<li><span>Use a mixture of upper-case and
Jonathan Carter's avatar
Jonathan Carter committed
160
161
162
lower-case letters, numbers, symbols and spaces in the password. A
good way of doing this to the take the first letter of each word
and the grammar of a phrase you can remember.</span></li>
Jonathan Carter's avatar
Jonathan Carter committed
163
<li><span>Make your password as long as
Jonathan Carter's avatar
Jonathan Carter committed
164
165
possible. This makes it difficult for a person or computer to guess
it.</span></li>
Jonathan Carter's avatar
Jonathan Carter committed
166
<li><span>Do not use one or two words from a
Jonathan Carter's avatar
Jonathan Carter committed
167
168
dictionary in any language. These are what programs use to try crack
your password.</span></li>
Jonathan Carter's avatar
Jonathan Carter committed
169
<li><span>Do not use any personal information
Jonathan Carter's avatar
Jonathan Carter committed
170
such as a date, family member's name or a pet.</span></li>
Jonathan Carter's avatar
Jonathan Carter committed
171
172
<li><span>Never write your password down.</span></li>
<li><span>Use different passwords for different
Jonathan Carter's avatar
Jonathan Carter committed
173
174
175
things.</span></li>
</ul>
</ul>
Jonathan Carter's avatar
Jonathan Carter committed
176
{{< /note >}}