Friday, 26 October 2007

2007 Pavarana Group Pictur 01




Tuesday, 23 October 2007

iPcop Backup and Restore

Follow the last blog that I managed to give the root password to the new ipcop installation. The problem that I still have is how to restore my setting in to the new box.

I have tried many times and may possibilities but ipcop always shows error message say something decrypting error (I don't know what it meant but I know I don't like it). I try my way, here what I did:

Restore ipcop setting that backup from another.
I set this machine ip to 192.168.1.254, I call it box #1

Backup
1. login ipcop#1 by web base
2. mount usb
3. Backup ipcop#1 setting to usb-key

4. Log in ipcop #1 by ssh -p 222 root@192.168.1.254
5. Copy ipcop #1:/var/ipcop/backup to usb-key which is mounted at /home/http/html/backup/
**scp or rsync didn't work for me if they work would be easier.

6. unmount usb-key and stick it in to ipcop#2

Retore

1. login ipcop#2 (192.168.1.252) by web base
2. mount usb-key

3. Log in ipcop #2: by ssh -p 222 root@192.168.1.252
4. Install all add-on exactly as it is in the ipcop#1
5. cp 'backup/*' from usb-key to /var/ipcop/backup/
6. unmount usb-key

Now I see the list of backup from the ipcop#1 on this machine

7. from web base click restore from internal drive or fro usb-key not quiet sure but it works.
Happy me again.

iPcop root password

The monastery need some kind of machine that keep history of internet usages, and firewall for security purpose. Robert from Hungary had set up Debain into a 600 mhz/ pII with everything code by his hand for us. He is the best in Linux I ever work with. The machine works fine but very slow and difficult for me to add new user in. It is also crash very often because the machine cannot handle the the traffic. Finally I have to stop using it.

It took me almost a year to set up the similar box with my very little knowledge. I have cried for help with no success. Last year, Nuno, a Portuguese young friend, help me to try ipcop, pfsense, m0n0wall they worked perfectly find with firewall, only ipcop that offer proxy server but it was very slow to run so I give up that project. Nuno came again during last Winter Retreat and offered to do again but I already lost interest so we didn't.

Last July Nuno came and I asked him to focus on this project again and... it succeeds...Thank for ipcop, advance proxy and Nuno. But the only problem we have was that our machine unable reboot with out pressing and hold the power button, it is impractical for our net work.

The new machine, slower one, has come from PS to replace the one that Nuno helped to set up. The problem I faced was how to save all data that I have spent many days to put in such as MAC address and ip numbers for dhcp server.

Another problem is that when I installed ipcop sometime it didn't give me a chance to put a root password, that was a serious problem for me. I have searched google and found a forum somewhere I cannot remember, I've tried to look through history to find out who post this solution but haven't found, sorry about that. Here is what I did follow his advice.


Change root password when you cannot login root account

1. Press 'a' at GRUB prompt
2. There will be a long command line, Press space bar to make some space then type 'linux single'
3. Type 'passwd'
4. Change or create the new passwod
5. Reboot

Done

Happy Me

It might sounds funny if you find this solution on a monk blog. The true to be told is: I have installed iPcop on this machine for 6 times, the first time it was succeed but I couldn't manage to restore so I decide to reinstall one more time and it stuck on -no way to create root password- wich means that I cannot do anything with this new installation.

After the 3th times of installation, I started to feel upset and irritate. I usaully stop and do something else but this time I want to see how I feel and how my feeling last. So I keep doing it for 3 more times. The feeling of upseting about "I cannot get what I want" especialy I used to get it before was so strong.

In the middle of that bad feeling, the word 'linux single' pop up in my mind but I don't know how to do it so google has come to play it part.

When I knew how to do and done it I was absolutely fogot the 3 hours bad feeling, the feeling of success was coming to fill my heart. The story doesn't end here because the main purpose of doing this is to backup and restore ipcop.