save script in /etc/init.d
make a new script start with "#! /bin/bash"
MAKE A BRIDGE
INSTALL AIRCRACK-NG (NEW GENERATION)
#! /bin/bash/
sudo apt-get install ethtool
sudo apt-get install rfkill
sudo apt-get install libnl-3-dev libnl-genl-3-dev
sudo apt-get install libssl-dev
wget http://download.aircrack-ng.org/aircrack-ng-1.2-rc4.tar.gz
tar -zxvf aircrack-ng-1.2-rc4.tar.gz
cd aircrack-ng-1.2-rc4
make
sudo make install
# https://www.aircrack-ng.org/doku.php?id=install_aircrack
MAKING BASH FILE and EXECUTE IT:
Start with this line:
#! /bin/bash
https://bash.cyberciti.biz/guide/Hello,_World!_Tutorial
https://community.linuxmint.com/tutorial/view/313
set chmod +x name_of_file.sh
sh ./name_of_file.sh to execute the file
SET DELAY IN BASH:
sleep(time in second)
PID is unique
Kill a process: kill -TSTP [pid]
or kill -STOP [pid]
Need to learn how to config chmod and chown
https://timleland.com/wireless-power-outlets/
CHMOD - CHANGE MODE
666
ls -al <directory> # to see the mode of the file
For example:
ls -l /dev/video0
CHMOD - CHANGE MODE
666
ls -al <directory> # to see the mode of the file
For example:
ls -l /dev/video0
crw-rw----+
HOW TO MANAGE SERVICE IN DEBIAN?
lost /dev/video0 file
how to solve?
try rpi-update
sudo apt-get install rpi-update
sudo rpi-update
waiting
....
reboot
sudo apt-get --purge remove motion
raspi-config -> enable camera
reboot.
Work!
NEED TO LEARN HTACCESS NEXT TIME.
TAB COMPLETION IS USEFUL:
In terminal, when you want it to guest a typing word for you, you just need to hit Enter
PIPES
using both command with "|",
ex: ls | grep funny
ls is list function
grep is the find function
the function above will find the file's name has a word "funny"
and list it
OUTPUT REDIRECTION
using >
Ex:
ifconfig > /home/xyz/myNi
https://askubuntu.com/questions/754572/cannot-restart-samba-samba-service-is-masked
HOW TO MANAGE SERVICE IN DEBIAN?
lost /dev/video0 file
how to solve?
try rpi-update
sudo apt-get install rpi-update
sudo rpi-update
waiting
....
reboot
sudo apt-get --purge remove motion
raspi-config -> enable camera
reboot.
Work!
NEED TO LEARN HTACCESS NEXT TIME.
TAB COMPLETION IS USEFUL:
In terminal, when you want it to guest a typing word for you, you just need to hit Enter
PIPES
using both command with "|",
ex: ls | grep funny
ls is list function
grep is the find function
the function above will find the file's name has a word "funny"
and list it
OUTPUT REDIRECTION
using >
Ex:
ifconfig > /home/xyz/myNi
https://askubuntu.com/questions/754572/cannot-restart-samba-samba-service-is-masked