-
How to change the default SSH port in OSX Server
So you don’t want to have your remote login port (ssh port) on your OSX server setup to port 22. You can easily change the listening port doing the following 2 steps. There is no need to add another service.
First you will need to edit your Lion Services file:sudo nano /etc/services
-
Adjust What the History Command Shows
By default on OS X, the history command (accessed via the terminal) shows the last 500 commands including multiple entries that are the exact same. Just to find an old useful command, you may have to sort through 100’s of ls and cd commands. Wouldn’t it be nice to show only unique commands, and remove the duplicates, or store a larger history? Well you can and it is very simple to set the variables to control what the history command shows on the MAC terminal.
Launch a terminal, by default you should be put into your home directory. To make sure you are in your HOME, just type: Read the rest of this entry » -
Remote Control Windows XP from a MAC
There are other ways to do this but this is the simplest and only requires installing 1 application.
- Download and install the Remote Desktop Connection application for MAC.
- On your XP machine, right click My Computer and select properties.
- Select ‘Allow users to connect remotely to this computer’
- Get the IP address of your XP machine, open a command prompt and type ipconfig)
- Back on your MAC, launch the Remote Desktop Connection program and connect using the IP found in step.
-
Simple Screen Capturing
There are few ways to do screen capture in Mac OS X. These will save the image to your Desktop as a PNG file. If you want to save them to the Clipboard instead, just add + Control in all 3 options.
Option #1 – Capture the whole screen:
- Hold down Apple key ⌘ + Shift + 3 and then release all.
Option #2 – Capture just a portion of your screen:
Read the rest of this entry » -
Using the SCP command
SCP aka secure copy or ssh copy is just about the easiest way to quickly transfer files and folders on X based systems without the need to setup FTP servers and accounts. The scp command we use most often just for single files is:
scp -P port file1 user@server2:~/
This will simply copy file1 to the home directory of the user on server2. Since we use a non standard port, the -P is very important.
Sometimes we want to dump a whole folder with subfolders using scp. This command will scp the folder and subfolders to the home folder of user at server2:
Read the rest of this entry »