Automated Ftp script.

This will find all files inside the /root/remote/ and rename it to .done
and uploads them one by one.
#!/bin/bash
ls /root/remote/*.txt > /root/remote/files
cd /root/remote
for i in `ls *.txt`;do mv “$i” “`basename $i .txt`.done”; done
for f in *.done; do
ftp  -inv test.com<<ENDFTP
user username password
cd test
lcd /root/remote
put $f
bye
ENDFTP
done

Read On »

IPFW on BSD

FreeBSD Firewall Configuration
FreeBSD makes it very easy to set up a rule-based packet filtering firewall. You can protect just one host, or an entire network. You can easily add Network Address Translation too, so that you can connect up your whole internal network via only one IP address from the outside.
There are three parts to this.

First, you have to make a few changes to your kernel. This isn’t as hard as it sounds. Su to root, cd /usr/src/sys/i386/conf, and …

Read On »

Amanda Installation on sparc from Source.

SETUP OF AMANDA ON LINUX (x86) AND SOLARIS (SPARC, X86) MACHINES
1. Short description what I have and what I want to achieve:
We have 12 machines:
* 1 Ultra Sparc 1, OS – Solaris 2.5.1
* 1 Sparc 20, OS – Solaris 2.5.1
* 10 PCs : 3 of them x86 Solaris 2.6, rest of them Linux RedHat 6.1
Server is running RedHat 6.1 and it is not backed up (–without-client in ./configure you will see below) rest of machines are just clients. We run …

Read On »

USE of skill

Task: How to halt/stop user called linu
Type the skill command as follows:
# skill -STOP -u linu
You muse be root to stop other users.
Task: How to resume already halted user called linu
Send CONT single to user didi, type the following command:
# skill -CONT -u linu
Task: How to kill and logout user called linu
You can send KILL single, type the following command:
# skill -KILL -u linu
Task: Kill and logout all users
The ultimate command to kill and logout all users, type the following …

Read On »

 Page 1 of 4  1  2  3  4 »