In this lab, you will practice using the system configuration commands and review existing configuration setting.
locale
command, identify your current language setting.
locale
cat /etc/timezone
Set a temporary timezone for your shell by running export TZ=GMT
. What date and time does the date
command show?
export TZ=GMT
date
Start a second shell in another window and run the date
command.
date
What timezone is that one using? Clear the temporary timezone setting from the first shell.
unset TZ
sudo ntpdate 0.pool.ntp.org
How much adjustment did you clock need? Re-run the command to update your system clock. Did it adjust again?
sudo hostnamectl set-location "Some Location"
Verify that you see the new location when you run hostnamectl
with no options. What got put in /etc/machine-info?
cat /etc/machine-info
What IP address is associated with your hostname in /etc/hosts?
grep yourhostname /etc/hosts
swapon
free
free
command shows the additional space for swap.
sudo fallocate -l 500MB /newswap
sudo chmod 600 /newswap
sudo mkswap /newswap
sudo swapon /newswap
swapon
free
ssh-keygen
asks. Install the public key as an authorized key for ssh access to your account. Test it to ensure you can login to your ssh service without a password now. Install the ssh software package if necessary.
ssh-keygen
ssh-copy-id localhost
ssh localhost
logout
~/.ssh/id_rsa
) on an ssh client on your host laptop. You will have to research how to do this using a ssh program such as putty, or the included ssh program if you use a mac. Verify that you no longer need a password to log into your Linux system using ssh
by logging into your Linux machine from your host laptop.Capture screenshots of the terminal window showing your prompt, commands, and as much of the output for each command as fits in the window with your command still showing. Submit a single PDF file to blackboard containing your screenshots in the order they were performed, along wityh your responses to the questios asked in the lab.