manjaro 및 시간대, nat 및 broter 프린터 HL-L8360 CDW

###일본어 PDF 인쇄 시 문자화
pacman -S firefox-i18n-ja
그 다음
firefox JPN.pdf
프린트하면 오케이.
brother HL-L8360CDW
지금 이게 잘 안 돼.
... 을 누르다
https://qiita.com/tyokai/items/f41a38c5e884e3a5500c
보다
일본 시간이 아닌 영국 그리니치 시간,'미친 열매'상태

https://www.youtube.com/watch?v=IzoM1znmy0w
먼저 시간에 대해서.
systemctl disable ntpd.service
systemctl stop ntpd.service
systemctl start systemd-timesyncd.service
systemctl enable systemd-timesyncd.service


이것뿐이다
## 메모 1
1) 일본어 입력기
nano .xprofile 열기
export XMODIFIERS= @im =fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
2) 이후
pacman -Sy otf-ipafont fcitx-im fcitx-configtool fcitx-mozc cups ghostscript evince poppler-data noto-fonts-cjk
poppler-data는 pdf를 표시할 수 있는 일본어가 필요합니다)
3) systemctl enable cups
비망록2: NEC의express가nat기계로 변했다


# ifconfig 
eno1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500

eno2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

enp0s20u2:  <---USBデアリングをされて出現するもの
      
wlp0s20u6: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500







# ./comment-out.bat /etc/dhcpd.conf
option domain-name-servers 8.8.8.8, 8.8.4.4;
option subnet-mask 255.255.255.0;
option routers 139.96.10.1;
subnet 139.96.10.0 netmask 255.255.255.0 {
  range 139.96.10.100 139.96.10.109;
}





# ./comment-out.bat /etc/default/ufw
IPV6=yes
DEFAULT_INPUT_POLICY="DROP"
DEFAULT_OUTPUT_POLICY="ACCEPT"
DEFAULT_FORWARD_POLICY="ACCEPT"
DEFAULT_APPLICATION_POLICY="SKIP"
MANAGE_BUILTINS=no
IPT_SYSCTL=/etc/ufw/sysctl.conf
IPT_MODULES="nf_conntrack_ftp nf_nat_ftp nf_conntrack_netbios_ns"





# ./comment-out.bat /etc/ufw/sysctl.conf 
net/ipv4/ip_forward=1
net/ipv4/conf/default/rp_filter=1
net/ipv4/conf/all/rp_filter=1
net/ipv4/conf/default/accept_source_route=0
net/ipv4/conf/all/accept_source_route=0
net/ipv6/conf/default/accept_source_route=0
net/ipv6/conf/all/accept_source_route=0
net/ipv4/conf/default/accept_redirects=0
net/ipv4/conf/all/accept_redirects=0
net/ipv6/conf/default/accept_redirects=0
net/ipv6/conf/all/accept_redirects=0
net/ipv4/icmp_echo_ignore_broadcasts=1
net/ipv4/icmp_ignore_bogus_error_responses=1
net/ipv4/icmp_echo_ignore_all=0
net/ipv4/conf/default/log_martians=0
net/ipv4/conf/all/log_martians=0
net/ipv4/tcp_sack=1




head -30 /etc/ufw/before.rules
#
# rules.before
#
# Rules that should be run before the ufw command line added rules. Custom
# rules should be added to one of these chains:
#   ufw-before-input
#   ufw-before-output
#   ufw-before-forward
#
# 139.96.30.

#####################>>>>>>>>>>>
# nat Table rules
*nat
:POSTROUTING ACCEPT [0:0]

# Forward traffic from eth0 through eth1.
-A POSTROUTING -s 139.96.10.0/24 -o enp0s20u2 -j MASQUERADE

# don't delete the 'COMMIT' line or these nat table rules won't be processed
COMMIT
#####################<<<<<<<<<<<<<<

*filter
:ufw-before-input - [0:0]
:ufw-before-output - [0:0]
:ufw-before-forward - [0:0]
:ufw-not-local - [0:0]
-A ufw-before-input -i lo -j ACCEPT
-A ufw-before-output -o lo -j ACCEPT
-A ufw-before-input -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A ufw-before-output -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A ufw-before-forward -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A ufw-before-input -m conntrack --ctstate INVALID -j ufw-logging-deny
-A ufw-before-input -m conntrack --ctstate INVALID -j DROP
-A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT
-A ufw-before-input -p icmp --icmp-type time-exceeded -j ACCEPT
-A ufw-before-input -p icmp --icmp-type parameter-problem -j ACCEPT
-A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT
-A ufw-before-forward -p icmp --icmp-type destination-unreachable -j ACCEPT
-A ufw-before-forward -p icmp --icmp-type time-exceeded -j ACCEPT
-A ufw-before-forward -p icmp --icmp-type parameter-problem -j ACCEPT
-A ufw-before-forward -p icmp --icmp-type echo-request -j ACCEPT
-A ufw-before-input -p udp --sport 67 --dport 68 -j ACCEPT
-A ufw-before-input -j ufw-not-local
-A ufw-not-local -m addrtype --dst-type LOCAL -j RETURN
-A ufw-not-local -m addrtype --dst-type MULTICAST -j RETURN
-A ufw-not-local -m addrtype --dst-type BROADCAST -j RETURN
-A ufw-not-local -m limit --limit 3/min --limit-burst 10 -j ufw-logging-deny
-A ufw-not-local -j DROP
-A ufw-before-input -p udp -d 224.0.0.251 --dport 5353 -j ACCEPT
-A ufw-before-input -p udp -d 239.255.255.250 --dport 1900 -j ACCEPT
COMMIT





# ./comment-out.bat ufw-nat.bat 
ufw disable
ufw enable
ufw default deny
 ufw allow Deluge
 ufw limit ssh/tcp
 ufw status
sleep 1
ifconfig eno2 139.96.10.1
sleep 1
systemctl start dhcpd4
ifconfig



brother Laser printer

tar-xvf로 해동
$ makepkg -s
pacman -U brother-hll2370dn-4.0.0-1-x86_64.pkg.tar.zst
이렇게 양면으로 찍어도 OK.
고맙다
자기 방에 텔레비전 안테나가 없어도
텔레비전:와이파이 단골손님...전파무선 라우터 - 전선 - 샤프 비디오
전체 이미지

및 하네스

링크 단추를 누르면 됩니다.
발췌하다
pacman -S noto-fonts-cjk
~/.xprofile
export LANG="ja_JP.UTF-8"
export XMODIFIERS="@im =fcitx"
export XMODIFIER="@im =fcitx"
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export DefaultIMModule=fcitx

Something went wrong
###감시 카메라]
# ./comment-out.bat snap.bat 
while true
do
x=`date +%M:%S`
fswebcam -d /dev/video0    -r 640x480    --jpeg 75 $x.jpg
y=`date +%m%d`
z=`date +%H`
mkdir -p /home/jaro/kansi---/$y/$z
mv $x.jpg     /home/jaro/kansi---/$y/$z
sleep 10
done




# ./comment-out.bat motion-clear.bat
x=`date +%Y%m%d`
z9=`date +%Y%m%d  --date '9 day ago' `
z8=`date +%Y%m%d  --date '8 day ago' `
z7=`date +%Y%m%d  --date '7 day ago' `
z6=`date +%Y%m%d  --date '6 day ago' `
z5=`date +%Y%m%d  --date '5 day ago' `
z4=`date +%Y%m%d  --date '4 day ago' `
z3=`date +%Y%m%d  --date '3 day ago' `
z2=`date +%Y%m%d  --date '2 day ago' `
z1=`date +%Y%m%d  --date '1 day ago' `
z0=`date +%Y%m%d`
rm -rf /home/jaro/kansi---/$z9
rm -rf /home/jaro/kansi---/$z8
rm -rf /home/jaro/kansi---/$z7





# crontab -l | ./comment-out.bat -
@reboot /home/jaro/snap.bat
1	18	*	*	*	 /home/jaro/motion-clear.bat
*/7	*	*	*	*	/home/jaro/ping-1.bat
*/11	*	*	*	*	cp /etc/resolv.conf-8888 /etc/resolv.conf
0	0	*	*	*	/usr/bin/reboot
0	1	*	*	*	/home/jaro/ipset.bat








참고 자료
https://askubuntu.com/questions/102755/how-do-i-use-ffmpeg-to-take-pictures-with-my-web-camera

좋은 웹페이지 즐겨찾기