How to create a bootable USB drive without additional/third-party tool

# How to create a bootable USB drive without additional/third-party tool
# Prerequisite:
# USB (g:) -> disk 2 (in diskpart)
# CD Windows 7 (d:)

# run "diskpart" as administrator
select disk 2
clean
create partition primary
active
format fs=ntfs quick

# run "cmd" as administrator
cd d:
cd boot
bootsect.exe /nt60 g:
xcopy d:\ g:\ /s /e /r /c /h /k /o /x /y

# Let have fun 🙂

# Note: It would work the same for Windows 8 or 10

Understanding DNS Zone…

zone "example.com" in {
type master;
file "/etc/bind/zones/master.example.com";
allow-transfer { key dns-server.example.com; };
allow-query { any; };
also-notify { 172.16.200.23; 172.16.202.23; };
notify yes;
};

Let’s understand each line and its meaning in the above shown zone clause inside our bind installation.

zone "example.com": is the opening of the zone clause and it specifies the zone for which this configuration is applicable.
type master: this statement is used to specify that this server is going to be the master server for the zone example.com, and will be authoritatively modifying the zone content.
file "/etc/bind/zones/master.example.com": This statement denotes the file on our DNS server which contains the zone file and its records(we will see that file in some time).
allow-transfer {key dns-server.example.com}: This line is the most important line that is part of the security feature in bind for secure zone transfer. This line says that zone trasfer is allowed only to servers that have this key named dns-server.example.com. Please note the fact that the name of this key must be same on the slave servers as well.
allow-query {any;}: This line specifies that this zone can be queried by any ip address.
also-notify {172.16.200.23; 172.16.202.23; }: This line says that the bind server should notify these servers whenever a zone modification happens. If you see the statement, it is also-notify, means bind is will already be informing some servers about its zone modification, along with that include these servers as well(i will exaplain this a little later while making the zone file for example.com).
notify yes; is an option used to convey bind to notify slaves about the zone modification.

;zone file for domain example.com
$TTL 300 ; zone default of 5 minutes
$ORIGIN example.com.
@ IN SOA ns1.example.com. admin.example.com. (
2013100702 ; serial number
2h ; refresh
15m ; update retry
5w ; retry
2h ; <minimum></minimum>
)
IN MX 10 mail.example.com.
IN NS ns1.example.com.
IN NS ns2.example.com.
ns1 IN A 172.16.202.55
ns2 IN A 172.16.203.85
www IN A 172.16.200.18
apps IN A 172.16.200.19
ftp IN A 172.16.200.22

Routing – How a host routes

How a Host Routes

The default gateway is the device that routes traffic from the local network to devices on remote networks. In a home or small business environment, the default gateway is often used to connect the local network to the Internet.

If the host is sending a packet to a device on a different IP network, then the host must forward the packet through the intermediate device to the default gateway. This is because a host device does not maintain routing information, beyond the local network, to reach remote destinations. The default gateway does. The default gateway, which is most often a router, maintains a routing table. A routing table is a data file in RAM that is used to store route information about directly connected network, as well as entries of remote networks the device has learned about. A router uses the information in the routing table to determine the best path to reach those destinations.

So how does a host keep track of whether or not to forward packets to the default gateway? Hosts must maintain their own, local, routing table to ensure that network layer packets are directed to the correct destination network. The local table of the host typically contains:

  • Direct connection – This is a route to the loopback interface (127.0.0.1).
  • Local network route – The network which the host is connected to is automatically populated in the host routing table.
  • Local default route – The default route represents the route that packets must take to reach all remote network addresses. The default route is created when a default gateway address is present on the host. The default gateway address is the IP address of the network interface of the router that is connected to the local network. The default gateway address can be configured on the host manually or learned dynamically.

It is important to note that the default route, and therefore, the default gateway, is only used when a host must forward packets to a remote network. It is not required, nor even needs to be configured, if only sending packets to devices on the local network.

For example, consider a network printer/scanner. If the network printer has an IP address and subnet mask configured, then local hosts can send documents to the printer to be printed. Additionally, the printer can forward documents that have been scanned to any local hosts. As long as the printer is only used locally, a default gateway address is not required. In fact, by not configuring a default gateway address on the printer, you are effectively denying Internet access, which may be a wise security choice. No Internet access means no security risk. While devices, such as printers, may offer the capability to perform automatic updates via the Internet, it is usually easier and more secure to achieve those same updates via a local upload from a secured local host, such as a PC.


​​

What?: Synchronous Logging & Disabling Domain Lookup

Synchronous Logging

The Cisco IOS software often sends unsolicited messages, such as a change in the state of a configured interface. Sometimes these messages occur in the middle of typing a command. The message does not affect the command, but can cause the user confusion when typing. To keep the unsolicited output separate from the typed input, the “logging synchronous” command can be entered under line configuration like line console 0 or line vty 0 4...

Disabling Domain Lookup

By default, when a host name is entered in enable mode, the router assumes that the user is attempting to telnet to a device. The router tries to resolve unknown names entered in enable mode by sending them to the DNS server. This process includes any words entered that the router does not recognize, including mistyped commands. If this capability is not wanted, the “no ip domain-lookup” command can be entered in global configuration mode to turn off this default feature.

Which ports are used by TeamViewer?

TeamViewer-Feature-Image-644x250.jpg?97885c
In general, TeamViewer will always work if surfing on the Internet is possible. Hence, no firewall configuration is required.

As an alternative to port 80 HTTP, port 443 HTTPs is also being checked. In addition, it is also possible to open only port 5938 TCP on the outgoing side (required for mobile connections). Data traffic should then be able to pass through on this port without any problems.

Source: https://www.teamviewer.com/en/help/334-Which-ports-are-used-by-TeamViewer.aspx

Can TeamViewer be used within a local network (LAN) only?

​You can establish Remote control sessions on your local network directly by using IP addresses or computer names. By default this feature is deactivated because software firewalls may open an acceptance dialog when configured this way.

To activate the LAN mode in TeamViewer full version and Host module:

  1. In the menu click on Extras and then on Options
  2. On the General tab activate Accept incoming LAN connections

When selecting accept exclusively it will display the IP-address of the computer in the ID-field.

A connection can now be established using the IP-address or alternatively using the host name.

Source: https://www.teamviewer.com/en/help/40-Can-TeamViewer-be-used-within-a-local-network-LAN-only

IOS and JunOS commands

Here’s a small “translation” table for IOS and JunOS commands with a comment about their scope.

IOS JunOS Purpose
clear counters clear interface statistics Clears the interface counters
clear arp-cache clear arp Clears the ARP cache
clear ip bgp clear bgp neighbor Clears all BGP sessions
clear ip bgp neighbor clear bgp neighbor peer Clears BGP session to a specifis neighbor
clock set set date Set the actual time
ping dest ping dest rapid (for cisco like output) Simple Ping
ping (setting source int) ping dest bypass-routing Ping with specific source interface
reload request system reboot Reboot the system
send request message Send a message to other users
show arp show arp Shows ARP cache
show clns interface show isis interface Shows IS-IS information from participating interfaces
show clns neighbors show isis adjacency Shows ES-IS and IS-IS neighbors
show clock show system uptime Display current date
show controller interface show interfaces interface extensive Displays physical port informations
show diags show chassis hardware Displays hardware diagnostics and status
show environment all show chassis environment Infos about Voltage, Power consumption, Temperature,…
show history show cli history Shows recent entered commands
show interface interface show interfaces interface detail Shows interface configuration, counters and status
show interface description (newer IOS) show interfaces description Shows description, status and interface name
show ip bgp neighbor peer advertised-routes show route advertising-protocol bgp peer Shows whether a neighbor supports the route refresh capabilty
show ip bgp neighbors neigh received-routes show route receive-protocol bgp peer Shows whether a neighbor supports the route refresh capability
show ip bgp peer-group show bgp group Displays BGP informations about all peer-groups
show ip bgp peer-group group show bgp group group Displays BGP informations about a specific peer-group
show ip bgp network mask show route protocol bgp prefix BGP informations about a specific prefix
show ip bgp network mask longer-prefixes show route range prefix BGP informations about a specific prefix as well as longer prefixes
show ip bgp regexp regex show route aspath-regexp “regex” Shows routes matching AS path filter regex
show ip bgp summary show bgp summary Shows all BGP IPv4 neighbors
show ip interface brief show interface terse Displays IPv4 addresses per interface (in JunOS: IPv6 and ISO as well)
show ip ospf database show ospf database Shows the OSPF database
show ip ospf neighbor show ospf neighbor Displays all OSPF neighbors
show ip ospf interface show ospf interface Shows OSPF informations for the interface (e.g. state, dead time,…)
show ip route show route Displays the global routing table
show ip route isis show isis routes / show route protocol isis Display only IS-IS originated routes
show ip route ospf show ospf route / show route protocol ospf Display only OSPF originated routes
show ipv6 neighbors show ipv6 neighbors Display discovered IPv6 neighbors
show ipv6 route show route table inet6.0 Display IPv6 routing table
sh bgp ipv6 summary / show bgp ipv6 unicast show bgp summary Displays IPv6 BGP neighbors
show tcp brief show system connection Shows established TCP connections from/to router (BGP, SSH, Telnet,…)
show ip traffic show system statistic Shows infos about IP related traffic (BGP, EIGRP, PIM, ARP, ICMP)
show isis topology show isis spf brief Shows the resulting IS-IS topology table after spf calculation
show logging show log messages Shows infos about loghost (IOS only) and local buffered log file content
show processes cpu show system process Displays CPU utilization
show route-map show policy Shows all configured route-maps (JunOS also shows Prefix-Lists,…)
show route-map mapname show policy name mapname Shows content of route-map mapname
show running-config show configuration Displays the actual running-configuration
show users show system users Shows logged in users
show tech-support request support info Displays a lot of information. Often needed for TAC request.
show version show version Information about running software release (IOS also shows hardware infos)
terminal length 0 set cli screen-length 0 Continous output to terminal without more-breaks
terminal monitor monitor start messages Start logging to terminal (when connected remotely)
terminal no monitor monitor stop Stop logging to terminal (when connected remotely)
write erase / erase startup-config load factory-default Resets to factory defaults. IOS requires reload, JunOS needs a “commit”

Source

Subversion control (SVN)

Subversion is a free/open source version control system (VCS). That is, Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older versions of your data or examine the history of how your data changed.

It is mostly used in web development (web project).

Installation on Ubuntu:
command line tool: Subversion
Installation:
sudo apt-get install subversion
Checking version:
svn –version
Uninstall:
sudo apt-get remove subversion

Read more: http://askubuntu.com/questions/258151/how-to-install-subversion-client-in-ubuntu

GUI tool: Installing RabbitVCS
sudo add-apt-repository ppa:rabbitvcs/ppa

deb http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu **DISTRIBUTION** main

sudo apt-get update

sudo apt-get install «packages»
…where packages are
rabbitvcs-nautilus3 for the Nautilus 3.x extension (use this for Ubuntu 11.10, Oneiric Ocelot)

rabbitvcs-nautilus for the Nautilus 2.x extension
rabbitvcs-thunar for the Thunar extensions
rabbitvcs-gedit for the GEdit extension
rabbitvcs-cli for the command line launchers

Read more: http://wiki.rabbitvcs.org/wiki/install/ubuntu