Categories

Our Sponsors

Setting up CYGWIN SSH

This article is assuming that you have installed CYGWIN on your Winders environment already.

I had troubles getting SSHD to run on the system and as with SSH it ended up being dumb file and/or directory permissions.

Make sure you have an /etc/password file.
#  mkpasswd   -cl   >   /etc/passwd
Make sure you have an /etc/group file.
# mkgroup [...]

Notepad++ Keyboard Shortcuts

Notepad++ has become my favorite editor when coding PHP or XML. It just has so many useful little features. You can have all of the documents you need opened in one window and separated with tabs. You can have a 2nd workspace hidden within the same window, which is great when you [...]

Open Source Alternatives

There is a ton of software a new business sometimes feels that they must purchase right when they are starting off a new business.

There Word, Excel, and Powerpoint from Micro$soft that are usually very expensive.

There is also money management software, project planning software, and graphic software.

Well there is a solution for small businesses that are [...]

Sync Web Servers Script

Here is a script I wrote to keep 2 or more web sites in sync.  The data files can be anything under the data tree.
The database is MySQL.

The script works by pulling the latest data and database backup from the production server.  The script can be placed in a cron.
The DR server user should be [...]

Funny Unix commands

Handy command for those users that are most annoying.

# fuser -uck /you

Find all the processes running under the mount point /you and kill them all ungracefully.

About as much fun to read as

# sort -n ass | uniq -c

Unix can tell you all.

Login and type /bin/csh then type the following questions.

% “How would you rate [...]

Helpful Unix commands

A thread dedicated to those useful Unix commands we all know and love.  Ya right.

I need a really tricky find command the other day so I came up with the following.  I wanted to save the command some where as it really shows the power of find

Find all files that are not in the [...]

Pass a Shell variable to a SED command

I just helped a friend out with placing a shell variable into a sed command and thought it would be prudent to document it.

This set of commands was to be used to change directory names inside a samba share, hense the directory names of \ and the unix escape needed making a bunch of \\ [...]

Overcoming the dreaded SCP/SFTP message errors

If you have ever used scp or sftp you may have encountered the dreaded ( ”Received message too long” or “Bad packet length” ”) errors.

This is typically due to something being echo’d or sent back to your login attempt.

Usually, it’s something you have in your .profile or .bashrc login files.

Just add the following to the [...]

Procedure to swap ZFS pools Solaris

Procedure to add a new ZFS pool to a system, copy the data from an old pool, switch the mounts and remove the old pool.

Sorry there isn’t much in the way of comments or coloring.  It was just copied from the terminal window.  The procedure below does create the ZFS filesystem, clone it, move it, [...]

Find processes and what network ports they use on Solaris 10

Show all of the processes and any open ports that they may be using.

for pid in `ps -aeo pid | grep -v PID`; do
sudo pfiles ${pid} | egrep “^${pid}:|sockname:”
done

Once you know the PID’s of the processes you can determine all of the atributes of the applications using pargs, instead of ps. In Solaris 10 the [...]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes