Remotely Enable Remote Desktop

I work in a lab environment, so most of the windows XP machines i enable remote desktop for easy access. All new machines have remote desktop enabled via group policy.

The GP is located here; (link were appropriate in AD structure)

Computer Configuration, Administrative Templates, Windows Components, Terminal Services, — > Allows users to connect remotely using Terminal Services setting. Enable this.

If you don’t have a domain or don’t have group policy implemented you can still enable remote desktop via the reg command in XP. Here is an example;

Reg Add “\\machinename\hklm\system\currentcontrolset\control\Terminal Server” /v fDenyTSConnections /t REG_DWORD /d 0 /f

Note that this requires admin access to the machine, so you would probably have to authenticate against it first…

net use \\machine /user:domain\user

And last but not least if the firewall is enabled you will also need to add an exception to allow RDP through. Or in my case just disable the firewall completely.

Linux – mapping to a windows share (SMB)

As per below. First you will need to install samba client.

In Fedora / Centos …

yum -y samba-client

then use the mount command to mount the share to a directory… 

mount -t cifs -n //192.168.9.70/software /mnt/sharename -o username=guest,password=

It will be similar in other distros. Remember to create the /mnt/sharename directory before trying to mount any share to the directory. Directories are created like so;

mkdir /mnt/sharename

Cisco – Switch Reference

Setting up a trunk between switches

Enable Switch to enable mode
Configure Terminal Enter global configuration mode

Interface FastEthernet0/1 Entering interface configuration for port 0/1. This is where you pick the port you want to trunk.

Switchport mode trunk Set port to trunking mode.

Switchport trunk encapsulation dot1q Set trunk type to 802.1q. If your switch only supports either ISL or 802.1q, this command does not exist because there is nothing to specify. This command only works when you can choose between the two.

Switchport trunk allow vlan 10-15,20 Allow only VLANs 10 through 15 and VLAN 20. It is important that you restrict the VLANs to only the ones you need for security best practices.

Exit Exit interface

Exit Exit global configuration

copy run start – save changes to nvram

Setting a switch up as a vtp client…. (VLAN client — cannot modify VLAN information)

vlan database enter vlan database

vtp client set switch vtp to client mode

vtp domain domain-name set switch to this domain – server switch will propergate vlan information across

possible to also set a password

Reset switch to factory defaults….

write erase

reload

Ensure you select NO to “do you wish to save changes”

How to make changes to multiple ports at same time;

interface range FastEthernet 0 – 23 (works on newer IOS)

Else its good ole notepad and terminal – rem that Ctrl-C (as it is sent to the session) does not work in terminial, you have to right cilck and copy. Though its easier to start a capture straight after you type show running-config, modify in notpad and paste back into config terminal.