03142014 Flashcards Preview

LPIC > 03142014 > Flashcards

Flashcards in 03142014 Deck (8)
Loading flashcards...
0

Authentication key generation, management and conversion

ssh-keygen

# simulate apache server via peer to peer

1

OpenSSH SSH daemon

sshd

2

To configure sshd, to change how root logins work, see the _____ file

sshd_config

3

LOGGING INTO ANOTHER MACHINE- TELNET AND SECURE SHELL

telnet hostname

ssh username@hostname


telnet 192.168.1.115
pwd
exit


ssh jklewis@192.168.1.115
pwd
uptime
exit



4

Message of the day

/etc/motd

# you can change to another directory, edit files, and pretty much whatever you would normally do if you were actually on the system

5

Allows you to download files from the

URLs.

# wget

cd /tmp
wget www.jklewis.com
more index.html
wget www.jklewis.com/shipfire.gif

# man wget

6

BROWSING THE WEB- FIREFOX


firefox &

7

RUNNING YOUR OWN WEBSERVER- HTTPD


yum install httpd
cd /etc/httpd/conf
cp httpd.conf /tmp/httpd.conf.orig
vi httpd.confc
cd /etc/httpd
systemctl start httpd.service
systemctl enable httpd.service
cd /var/www/html
dmesg > dmesg1.txt
echo "This is a new file" > newfile.txt
192.168.1.15:/newfile.txt


# read the first page very closely where it talks about ServerRoot

# if a filename begins with a slash,the server will use that path as indicated. If a relative path is used, the value of ServerRoot is prepended e.g.
Include conf.modules.d/*.conf

the directory will be really:

/etc/httpd/conf.modules.d

# Be sure to remember how ServerRoots works!

# httpd.conf file

# The Listen directive tells httpd which port to use.

# Scroll down to ServerName. This is where you can enter the name of your particular server.

# DocumentRoot. This is the directory where your web pages will be served. It should be set to /var/www/html