Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1

Click here to view code image
matthew@seymour:~$ sudo hwclock --set --date "09/28/18 10:33:00"
matthew@seymour:~$ hwclock --show
Fri 28 Sep 2018 10:33:09 AM MST -0.904668 seconds


In these examples, the hardware clock has been set using hwclock, which is
then used again to verify the new hardware date and time. You can also use
hwclock to set the Linux system time and date, using your hardware clock’s
values, with the Linux system time and date.


For example, to set the system time from your PC’s hardware clock, use the —
hctosys option, like so:


Click here to view code image
matthew@seymour:~$ sudo hwclock --hctosys


To set your hardware clock using the system time, use the —systohc option,
like so:


Click here to view code image
matthew@seymour:~$ sudo hwclock --systohc


Configuring Wireless Networks


To manage networking from the GUI in Ubuntu, click the power icon (refer to
Figure 1.4 earlier in this chapter). Entries in the menu that appears allow you
to handle and monitor network connections.


Click the networking icon in the toolbar to connect to a wireless network. If
your wireless access point broadcasts its service set identifier (SSID), it
should appear in the list under wireless networks. Click the desired network,
and Network Manager detects what encryption (if any) is in use and asks you
for the passkey. Enter this, and Network Manager starts the wireless
connection. The passkey is then stored in the default keyring, a secure area
that is unique to your login. From now on, whenever you log in to Ubuntu and
are in range of this network, Network Manager will start the connection
automatically.


If for some reason your wireless network does not appear (you might have
your SSID hidden), you must use the Connect to Other Wireless Network
option, in which case you enter the network name, wireless security type, and,
when needed, the password for the connection.


Network Manager can also connect to Cisco VPN connections through use of
the vpnc software. Install this from the Ubuntu repositories (see Chapter 9,

Free download pdf