RSS

23. May 2009

0 Comments

Creating aliases in bash

Are you tired off typing out full commands? if so aliases can save you time. They allow you to shorten long commands down into one word. To add a alias edit ~/.bashrc
nano ~/.bashrc

Then come to the bottom of that file and add your aliases like this:
alias rm = "rm -i"
alias lightyrestart = "/etc/init.d/lighttpd restart"
alias server_name="ssh [...]

Continue reading...

8. May 2009

0 Comments

Setting up a DNS Server for your LAN Network

This tutorial will show you how to configure bind9 on debian to be a dns server for your LAN network.

Install bind9 and some DNS utilities
apt-get install bind9 dnsutils

Set your systems hostname
echo "server.home.local" > /etc/hostname
then edit /etc/hosts so it looks like this
127.0.0.1 localhost.localdomain localhost
192.168.1.2 [...]

Continue reading...

6. May 2009

0 Comments

Linux Basic Commands

Starting and Stopping
poweroff will shutdown the system
reboot will restart the system

Mounting and unmounting
fdisk -l gives a list of all drives
mount /dev/hdd /mnt would mount the hard drive in /mnt
umount /dev/hdd would unmount the hard drive

Moving, copying, deleting & viewing files
ls will output all the files in the current directory
rm filename will remove the file
rm -r [...]

Continue reading...

3. May 2009

0 Comments

Chroot Sftp

Create a Chrooted group
addgroup chrooted

Open up /etc/ssh/sshd_config and add the following to the end of it
Subsystem sftp internal-sftp
Match group chrooted
ChrootDirectory /home/%u
X11Forwarding no
ForceCommand internal-sftp

Restart SSHD
/etc/init.d/ssh restart

Then make users chrooted by adding them to the chrooted group
adduser user chrooted

Now when the user sftps the server they will only see the contents of there home folder

Continue reading...

2. May 2009

0 Comments

Making a Network Diagram

Lovely Charts is a free web-base program that will allow you to easily create flow charts, site maps, network diagrams, and other visualizations with a simple drag-and-drop interface.
When finished making your diagram you can pick to export it as a jpg or png image.
Here is a sample of my network:

Continue reading...
Page 10 of 12« First...«89101112»