nmap HOST
## Example
nmap google.com
nmap 55.1.22.5.68
Open network ports
# Openning 8080 port
sudo iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
Open Firewall ports
To open ports on the firewall, using the iptables command is possible specifying the desired port. Using the example below, just replace port 8888 with the desired port.
Use the "--remove" flag, similar to how the PPA was added:
sudo add-apt-repository --remove ppa:whatever/ppa
As a safer alternative, you can install "ppa-purge":
sudo apt-get install ppa-purge
And then remove the PPA, downgrading gracefully packages it provided to packages provided by official repositories:
sudo ppa-purge ppa:whatever/ppa
Note that this will uninstall packages provided by the PPA, but not those provided by the official repositories. If you want to remove them, you should tell it to apt:
sudo apt-get purge package_name
You can also remove PPAs by deleting the .list files from /etc/apt/sources.list.d directory.
Last but not least, you can also disable or remove PPAs from the "Software Sources" section in Ubuntu Settings with a few clicks of your mouse (no terminal needed).
Execute "add-apt-repository" without press enter
--force-yes
Force yes; this is a dangerous option that will cause apt to continue without prompting if it is doing something potentially harmful. It should not be used except in very special situations. Using force-yes can potentially destroy your system! Configuration Item: APT::Get::force-yes.
# Example
sudo add-apt-repository ppa:ondrej/php --force-yes
Create an alias for shell commands
Add the script below at end of the file ~/.profile
- [x] sudo apt-get install hfsprogs
- [x] Mount volume
or
- [x] chmod -R 777 /user/media/volumeX
# df -h
# sudo mount -t hfsplus -o remount,force,rw /dev/sdg1
apt install xrdp
adduser xrdp ssl-cert
systemctl restart xrdp
# Allow firewall access on port 3389
ufw allow 3389
# Change "allowed_users" to anybody
# like this: allowed_users=anybody
vim /etc/X11/Xwrapper.config
# Check your hostname
cat /etc/hostname
# Or get your ip address
if config