-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfedora.txt
executable file
·124 lines (85 loc) · 2.75 KB
/
fedora.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
dnf -y install hylafax mc
chcon -R -t samba_share_t /var/spool/hylafax/recvq/
chmod -R 777 /var/spool/hylafax/recvq/
firewall-cmd --add-service=samba
firewall-cmd --add-service=samba --permanent
systemctl enable smb.service
systemctl enable nmb.service
systemctl restart smb.service
systemctl restart nmb.service
systemctl enable hylafax-faxq.service
systemctl enable hylafax-hfaxd.service
systemctl restart hylafax-faxq.service
systemctl restart hylafax-hfaxd.service
systemctl enable sendmail.service
systemctl start sendmail.service
faxsetup
faxstat
systemctl start httpd
systemctl enable httpd
systemctl start faxgetty-ttyACM0.service
systemctl start faxgetty-ttyACM1.service
systemctl start faxgetty-ttyACM2.service
systemctl start faxgetty-ttyACM3.service
systemctl start faxgetty-ttyACM4.service
systemctl start faxgetty-ttyACM5.service
systemctl start faxgetty-ttyACM6.service
systemctl start faxgetty-ttyACM7.service
systemctl enable faxgetty-ttyACM0.service
systemctl enable faxgetty-ttyACM1.service
systemctl enable faxgetty-ttyACM2.service
systemctl enable faxgetty-ttyACM3.service
systemctl enable faxgetty-ttyACM4.service
systemctl enable faxgetty-ttyACM4.service
systemctl enable faxgetty-ttyACM5.service
systemctl enable faxgetty-ttyACM6.service
systemctl enable faxgetty-ttyACM7.service
systemctl enable faxgetty-ttyS2.service
systemctl enable faxgetty-ttyS3.service
systemctl enable faxgetty-ttyS4.service
systemctl enable faxgetty-ttyS5.service
/etc/mail/access - add
Connect:192.168.1 RELAY
/etc/mail/sendmail.mc - changes
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
EXPOSED_USER('root')dnl
dnl EXPOSED_USER('root')dnl
Djsmtp.expressimagingservices.com
FEATURE(always_add_domain)dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`allmasquerade')dnl
MASQUERADE_AS(`expressimagingservices.com.')dnl
MASQUERADE_DOMAIN(`expressimagingservices.com.')dnl
MASQUERADE_AS(expressimagingservices.com)dnl
echo "define(\`SMART_HOST', \`[192.168.1.33]')dnl" >> /etc/mail/sendmail.mc
cd /etc/mail/;
./make;
/etc/systemd/system/faxgetty-ttyACM0.service
[Unit]
Description=HylaFAX faxgetty for ttyACM0
[Service]
User=root
Group=root
Restart=always
RestartSec=30
ExecStart=/usr/sbin/faxgetty ttyACM0
[Install]
WantedBy=multi-user.target
PHP
/etc/php-fpm.d/www.conf
user = root
group = root
/usr/lib/systemd/system/php-fpm.service
ExecStart=/usr/sbin/php-fpm --nodaemonize --allow-to-run-as-root
sudo systemctl daemon-reload
sudo systemctl start php-fpm
ModemReadyState: D
faxstate -s up ttyACM0
faxstate -s up -n ttyACM0
faxstate -s down ttyACM0
faxstate -s down -n ttyACM0
dmesg | grep tty
ssh-keygen -R "hostname"
Class1RMQueryCmd: "!24,48,72,96"