-
Notifications
You must be signed in to change notification settings - Fork 1
/
red_hat.txt
70 lines (45 loc) · 1.32 KB
/
red_hat.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
======
RedHat
======
RHEL subscription::
sudo subscription-manager register
sudo subscription-manager attach
sudo yum update
YUM::
yum update # update packets
install <packet> # install packet
-y # yes for all ansvers
search <packet> # search packet
info htop # show info
yum install epel-release
yum install htop
===============
CentOS yum
===============
yum install epel-release
yum install htop
CentOS yum via proxy::
/etc/yum.conf.
proxy=http://192.168.35.10:8080
proxy_username=proxyname
proxy_password=proxypass
===============
RedHat firewall
===============
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/sec-Using_Firewalls.html
# start/stop firewall
sudo systemctl disable firewalld
sudo systemctl stop firewalld
sudo systemctl status firewalld
cat /etc/redhat-release # show version of redhat
ip addr # analog ifconfig'a
yum install net-tools # install ifconfig
# start/stop firewall
sudo systemctl disable firewalld
sudo systemctl stop firewalld
sudo systemctl status firewalld
# Change timezone
sudo mv /etc/localtime /etc/localtime.old
sudo ln -s /usr/share/zoneinfo/Europe/Kiev /etc/localtime
# login at another user
su - <username>