Categories
Uncategorized

Deleting temp files in all profiles

REM @echo off
set HDRIVE=C:
set HPATH=\Documents and Settings\
%HDRIVE%
cd %HPATH%
REM – This line sets up the loop for the script
for /d %%i in (*) do call :ifthen %%i
goto end
REM – Remove Temp and Temporary Internet Files folder.
:ifthen
del /f/s/q “%HDRIVE%%HPATH%%1\Local Settings\temp
del /f/s/q “%HDRIVE%%HPATH%%1\Local Settings\Temporary Internet Files
del /f/s/q “%HDRIVE%%HPATH%%1\Local Settings\History
del /f/s/q “%HDRIVE%%HPATH%%1\Cookies
del /f/s/q “%HDRIVE%%HPATH%%1\Desktop\Word*.*
del /f/s/q “%HDRIVE%%HPATH%%1\Desktop\outlook*.*
del /f/s/q “%HDRIVE%%HPATH%%1\Desktop\Power*.*
del /f/s/q “%HDRIVE%%HPATH%%1\Desktop\Excel*.*
del /f/s/q “%HDRIVE%%HPATH%%1\Desktop\Access*.*
del /f/s/q “%HDRIVE%%HPATH%%1\Desktop\Common\micro*.*

goto :EOF
:end

Categories
Uncategorized

Backing up Windows XP files using rsync and Deltacopy

My backup is based on this article,

http://justinsomnia.org/2007/02/how-to-regularly-backup-windows-xp-to-ubuntu-using-rsync/

Rsync on Windows XP did not work as outlined in that article, so I installed Deltacopy and setup rsync on ubuntu.

First step install rsync on Ubuntu, I am using Ubuntu 10.10.
1) Install rsync, sudo apt-get install rsync

2) Edit the rsync fonfiguration,
sudo nano /etc/rsyncd.conf

3a) Add the following. Note, when you run deltacopy client on Windows what’s on brackets will be your Virtual Directory Window.
Replace username by your Ubuntu username.

       [weeklybackup]
           path = /home/username/backup
           comment = Backup
           uid = username
           gid = username
           read only = false
           auth users = username
           secrets file = /etc/rsyncd.secrets

3b) Very important: create the “backup” directory otherwise deltacopy will give you error messages, something about error 5.
mkdir backup

4) sudo chmod 644 /etc/rsyncd.conf

5) Create the secrets file
sudo nano /etc/rsyncd.secrets
and enter your ubuntu username and password in the form of username:password. Save the file (ctl-x) and exit, don’t add anything else except your username:password

5a) Back in the terminal window type,
sudo chmod 600 /etc/rsyncd.secrets

6) Change RSYNC_ENABLE=false to true by editing the /etc/default/rsync
sudo nano /etc/default/rsync

7) Now Reboot or restart rsync, to restart rsync type
sudo /etc/init.d/rsync restart


Now setup Deltacopy on your Windows computer. I am using Windows XP

8 ) Install DeltaCopy
Download and Install DeltaCopy.

http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp

After the installation DeltaCopy server console will come up. Skip it. Go back to the Start menu and open DeltaCopy client.

Create a new profile as shown in the DeltaCopy site. My profile setup is as follows.

As shown I used an IP address instead of the hostname and I am using weeklybackup as my virtual directory.  weeklybackup is what I specified in step 3 above.

Click Add Profile to go back to the main menu.

Now add the folders  that you want to backup.

You can also schedule a backup. Note: if you schedule a backup you need to have a password on your Windows computer.

At first my backup was not working, if that’s the case enter your ubuntu username/password in the authentication tab.

Mine looks like the following.

That’s it you should now have a working automated backup.

Categories
Uncategorized

Ghostcast 11.5

This is my solution to loading an image from a Ghostcast Server. I used a memory stick as my boot disk. My initial configuration worked OK for the Eurocom computer, but I needed to add extra drivers for a dell C521 computer. In the process I got the following errors.

“error 7906 unable to open protman”
“error 41 unable to bind”

Below is the final configuration for autoexec.bat and Config.sys

— The rtl folder contains the protocol.ini for a Eurocom Uno L390T

— The c521 folder contains the protocol.ini for a Dell Dimension C521.

— the  \net folder contains the NDIS drivers for the Eurocom and Dimension.

— Replace sessionamehere with the right session name.

autoexec.bat

@echo off
prompt $p$g
path=c:\ghost;c:\net;c:\net\rtl
:menu
cls
echo 1.Eurocom
echo 2.Dell
set /p choice=?:

:Eurocom
netbind.com
MOUSE.COM
echo Loading…
GHOST.EXE  -auto -clone,mode=restore,src=@mcSESSIONNAMEHERE,dst=2 -sure -rb

————————————————————————————————————

Config.sys

[menu]
menuitem=Eurocom, Image Eurocom computers
menuitem=Dell, Image Dimension C521

[Eurocom]
DEVICE=net\protman.dos /I:\net\rtl
DEVICE=net\dis_pkt.dos
DEVICE=net\rtend.dos

[Dell]
DEVICE=net\protman.dos /I:\net\c521
DEVICE=net\dis_pkt.dos
DEVICE=net\b44.dos

Categories
Uncategorized

Fog svr 0.29 setup

Change eth0 to static ip.

sudo gedit /etc/network/interfaces

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.104
netmask 255.255.255.0
gateway 192.168.0.1

Now do,

sudo gedit /etc/resolv.conf

nameserver 192.168.0.1
domain your.domain.xx
search your.domain.xx

Save and exit

sudo /etc/init.d/networking restart

Follow instructions to install FOG

http://www.fogproject.org/wiki/index.php?title=Ubuntu_10.04

Summary of my fog setup

Here are the settings FOG will use:
Distro: Ubuntu
Installation Type: Normal Server
Server IP Address: 192.168.0.104
DHCP router Address: 192.168.0.1
DHCP DNS Address: 192.168.0.1
Interface: eth0
Using FOG DHCP: 1
Internationalization: 0
—————————-

If Mysql has a password update fog config here,

/var/www/fog/commons/config.php

——————–

Add additional utils to the pxe boot menu.

Part of my tools include: Dell Diagnostics, Gparted, DBAN, etc.

Gparted has instructions for adding it to a tftp server. http://gparted.sourceforge.net/livepxe.php

sudo gedit /tftp/pxelinux.cfg/default

added the following:

LABEL DellDiagnostics
kernel dell/memdisk
append initrd=dell/delldiag
MENU LABEL Dell Diagnostics
TEXT HELP
Dell Diagnostics, Oct 6 2009
ENDTEXT
\n
LABEL Gparted
kernel gparted/vmlinuz
append initrd=gparted/initrd.img boot=live union=aufs noswap noprompt vga=788 fetch=http://192.168.0.104/filesystem.squashfs
MENU LABEL Gparted ver 0.5.2-9
TEXT HELP
Format HD, June 9 2010
ENDTEXT
\n

LABEL Wipe HD using DBAN
TEXT HELP
DBAN 2.2.6-Beta, June 9-2010
ENDTEXT
kernel utils/dban.bzi
append nuke=”dwipe –autonuke –method quick” silent
\n