How to install Mondo on Debian Wheezy 7.4

It’s been almost eight months since the Mondo on Debian Wheezy 7.1 post.

Today let’s take a look at installing Mondo on Debian 7.4 Wheezy.

At this point, I have ran this on three different machines it’s working with no flaws.

What is Mondo Rescue?

Mondo Rescue is free disaster recovery software. It supports Linux (i386, x86-64, IA-64) and FreeBSD (i386). It’s packaged for multiple distributions (Red Hat, RHEL, Fedora, CentOS, OpenSuSE, SLES, Mandriva, Debian, Ubuntu,and Gentoo).

It also supports tapes, disks, USB devices, network and CD/DVD as backup media, multiple filesystems, LVM, software and hardware RAID. Restoration may be done from a physical media including OBDR tape support, or CD/DVD/USB media, or from the network through PXE.

First the test machine is a white box desktop tower with a Intel(R) Celeron(TM) with a 1400MHz cpu, 256MiB of memory and a BIOS from 2002! This machine has ran with three different versions of Debian and still works great.

This will be setup using Debian 7.4 netinstall cd. My netinstall CD has the non-free firmware for working on laptops. As a habbit, I use the expert mode in text mode.

Run through the Debian install process. For testing purposes, this will be a base install only. The test name will be debian, no domain and root and one user setup and nothing else.

When it comes time to load packages, unselect the desktop and select SSH server.

When the CD ejects, go ahead and reboot. After the reboot, I log in to make sure the system is ready and because I used the static IP option in the install, I ping out to a couple of places on the internet to check to make sure everything is working.
Make a note of the ip address.

At this point I log out and switch to my regular Debian desktop machine and use the terminal to ssh into the test box.

The command is:

ssh IPADDRESS

(this will log me in as the root user.) You may use your regular user account in which case you would use:

ssh USER@IPADDRESS

If you use your regular user account to log in, you will need to use SU or SUDO to issue commands using root access.

NOTE In Debian you will have to apt-get install sudo.

After login via ssh, A little housekeeping. First I add a cls alias to my bashrc file.

nano .bashrc

at the bottom of the list I add:

alias cls=clear

control x then y to save.

Now you can log out of SSH and back in for the alias to work or you can issue the command:

. .bashrc

(that’s dot space dot bashrc)

Now instead of typing clear to ‘clear’ the terminal screen, I can type cls for a shortcut.

Now I will add to my sources.list.

nano /etc/apt/sources.list

At the bottom add:

### Debian Mondo 7
deb ftp://ftp.mondorescue.org//debian 7 contrib
deb-src ftp://ftp.mondorescue.org//debian 7 contrib

Now before running

apt-get update

Let’s add the mondo key:

wget ftp://ftp.mondorescue.org/debian/7/mondorescue.pubkey

To add the key

apt-key add mondorescue.pubkey

To list your keys

apt-key list

The location of the keys

/etc/apt/trusted.gpg

Just a note that my sources include non free ftp and src locations.

:!: Don’t forget to:

apt-get update

If you want to check to see what packages are needed before you start, you can run:

apt-cache depends afio
apt-cache depends mindi-busybox
apt-cache depends mindi
apt-cache depends mondo

Now we will move to installing the main packages.

I get the packages from the Mondo website for afio, mindi-busybox, mindi and mondo.

These packages are no longer in Wheezy, testing or Sid.

:!: Make sure to install in this order!

Now let’s install:

apt-get install afio

Now mindi-busybox

apt-get install mindi-busybox

So far so good.

Next up is mindi

apt-get install mindi

Now mondo

apt-get install mondo

If you run into any errors, you can run:

apt-get install -f

with nothing after the -f (-f= fix) to correct missing packages.

Once these are completed, run mindi first by typing:

mindi

You can follow along and when it asks you if want it to create a ‘iso’, you can say yes (y). It will also ask if you want a USB version.

When it has completed the process:

cd /var/cache/mindi

and run:
cmd:

ls

and there should be a mindi.iso file there.
You may want to remove it to keep your mondo iso small. if so type:
cmd:

rm mindi.iso

Before you delete it, it’s a good idea to burn a copy and take a look at it.

Now we move to run mondoarchive, run the command:

mondoarchive

follow along and make sure to change the cd size if needed.
Once mondo finishes, the file is in:
cmd:

cd /var/cache/mondo

Last step is to burn the iso image to cd/dvd using wodim. But first let’s make sure the iso images are there. At the command line type:

cd /var/cache/mondo

and type:

ls

to see your image.

Now type the following command to find your burner:

wodim --devices

Now you can type:

wodim -v -eject speed=4

and the drive name and the image.iso like this:

wodim -v -eject speed=4 dev='/dev/scd0' PACKAGE.ISO

Once completed, you can reboot to see if the mondorestore starts.

There you have it. Mondo on Debian Wheezy 7.4!

:?: If you have any questions about this guide, post them!

Additional notes:

:!: Make sure to run your backup iso to check to make sure it runs correctly.

Additional links:

OVERVIEW-MONDORESCUE
LabMondoRescue.pdf
How to install mondo on debian squeeze

Posted in debian, Howto, Linux | Tagged , , , , , , , , , , , , , , , , | Leave a comment

How to install Mondo on Debian Wheezy 7.1

It’s been almost two years since the Mondo on Squeeze post.

Today let’s take a look at installing Mondo on Debian 7.1 Wheezy.

At this point, this is still in a testing stage but it appears to work.

What is Mondo Rescue?

Mondo Rescue is free disaster recovery software. It supports Linux (i386, x86-64, IA-64) and FreeBSD (i386). It’s packaged for multiple distributions (Red Hat, RHEL, Fedora, CentOS, OpenSuSE, SLES, Mandriva, Debian, Ubuntu,[2] Gentoo).

It also supports tapes, disks, USB devices, network and CD/DVD as backup media, multiple filesystems, LVM, software and hardware RAID. Restoration may be done from a physical media including OBDR tape support, or CD/DVD/USB media, or from the network through PXE.

First the test machine is a Dell Optiplex GX-260 SDT CPU 2.00 with 2 Gig of memory and 40 Gig hardrive.

This will be setup using Debian 7.1 netinstall cd. My netinstall CD has the non-free firmware for working on laptops. As a habbit, I use the expert mode in text mode.

Run through the Debian install process. For testing purposes, this will be a base install only. The test name will be debian, no domain and root and one user setup and nothing else.

When it comes time to load packages, unselect the desktop and select SSH server.

When the CD ejects, go ahead and reboot. After the reboot, I log in to make sure the system is ready and because I used the DHCP option I run the ifconfig to get the IP address.

The command is:

ifconfig -a

Make a note of the ip address.

At this point I log out and switch to my regular Debian desktop machine and use the terminal to ssh into the test box.

The command is:

ssh IPADDRESS

(this will log me in as the root user.) You may use your regular user account in which case you would use:

ssh USER@IPADDRESS

If you use your regular user account log in, you will need to use SU or SUDO to issue commands using the root access.

NOTE In Debian you will have to apt-get install sudo.

After login in via ssh, A little housekeeping. First I add a cls alias to my bashrc file.

nano .bashrc

at the bottom of the list I add:

alias cls=clear

control x then y to save.

Now you can log out for the alias to work or you can issue the command:

. .bashrc

(that’s dot space dot bashrc)

Now instead of typing clear to ‘clear’ the terminal screen, I can type cls for a shortcut.

Now I will add to my sources.list.

nano /etc/apt/sources.list

At the bottom add:

### Mondo 6.0
deb ftp://ftp.mondorescue.org//debian 6.0 contrib
deb-src ftp://ftp.mondorescue.org//debian 6.0 contrib

Now run:

apt-get update

My sources include non free ftp and src locations.

Now we will move to installing packages

I use the packages from squeeze for afio, mindi-busybox, mindi and mondo.

These packages are no longer in Wheezy, testing or Sid.

Now let’s install:

apt-get install -y afio

Next up is mindi-busybox

apt-get install -y mindi-busybox

So far so good.

Next up is mindi

apt-get install -y mindi

Now mondo

apt-get install -y mondo

If you run into any errors, you can run:

apt-get install -f

with nothing after the -f (-f= fix) to correct missing packages.

Now you need to go back into your sources and make changes:

nano /etc/apt/sources.list

You can take out the mondo 6.0 sources and replace with:

### mondo 7.1
deb ftp://ftp.mondorescue.org/test/debian 7.1 contrib
deb-src ftp://ftp.mondorescue.org/test/debian 7.1 contrib

Then run:

apt-get update

Now we need to update mindi and mondo:

apt-get install -y --force-yes mindi

and

apt-get install -y --force-yes mondo

Once these are completed, run mindi by typing:

mindi

You can follow along and when it asks you if want it to create a ‘iso’, you can say yes (y). It will also ask if you want a USB.

When it has completed the process:
cmd:

cd /var/cache/mindi

and run:
cmd:

ls

and there should be a mindi.iso file there.
You may want to remove it to keep your mondo iso small. if so type:
cmd:

rm mindi.iso

Now we move to mondo:
cmd:

mondoarchive

follow along and make sure to change the cd size if needed.
Once mondo finishes, the file is in:
cmd:

cd /var/cache/mondo

Last step is to burn the iso image to cd/dvd using wodim. But first let’s make sure the iso images are there. At the command line type:

cd /var/cache/mondo

and type:

ls

to see your image.

Now type the following command to find your burner:

wodim --devices

Now you can type:

wodim -v -eject speed=4

and the drive name and the image.iso like this:

wodim -v -eject speed=4 dev='/dev/scd0' PACKAGE.ISO

Once completed, you can reboot to see if the mondorestore starts.

There you have it. Mondo on Debian Wheezy!

:?: If you have any questions about this guide, post them!

Additional notes:

:!: Here are the packages after you finish this how to:
afio 2.5-1
mindi-busybox 1.18.5-3
mindi 2.1.620130628101458-0
mondo 3.0.420130624040329-0

Have set this up on two different test machines so far and working on the third. So far so good!

First test machine worked well and later I added the Mate Desktop and more goodies. Backup was smooth.

Second test machine is a Aopen server (headless) running apache, DHCP server and DNS server with good results.

Additional links:

OVERVIEW-MONDORESCUE
LabMondoRescue.pdf
How to install mondo on debian squeeze

Posted in debian, Howto, Linux | Tagged , , , , , , , , , , , , | Leave a comment

win 7

http://www.sevenforums.com/tutorials/29965-administrative-tools-restore-shortcuts.html

http://forums.comodo.com/install-setup-configuration-help-cis/cis-5-is-not-install-on-windows-server-2003-t82089.0.html;prev_next=next

https://www-secure.symantec.com/norton-support/jsp/help-solutions.jsp?docid=kb20080710133834EN_EndUserProfile_en_us&product=home&pvid=f-home&version=1&lg=en&ct=us

http://www.piriform.com/ccleaner

 

 

 

Posted in Uncategorized | Leave a comment

Microsoft dragging its feet on Linux Secure Boot fix

Linux Foundation’s workaround held up by roadblocks

Posted in News | Tagged , , , | Leave a comment

GNOME Shell to support a “classic” mode

GNOME developer Matthias Clasen has announced that, with the upcoming demise of “fallback mode,” the project will support a set of official GNOME Shell extensions to provide a more “classic” experience.

Story

Posted in debian, Linux | Tagged , , , | Leave a comment

Shutter Screenshot Tool

No matter what your purpose is, when it comes to taking screenshots, Shutter is the only option. It is incredibly feature-rich and very fast – unless you enable the timer mode, of course. You can capture certain areas, individual windows, the entire desktop or even menus and tooltips.

Shutter isn’t limited to just capture either, once the shot is taken, it can be transferred directly into the editor where you can add shapes or text, censor private information or crop some more if you got it wrong the first time. From there, you can even upload directly to a number of image hosts without leaving Shutter.

 

Story

Shutter website

 

PS Use apt-get to install :cool:

Posted in debian, Linux | Tagged , | Leave a comment

Fix Your Numlock Key So That It Stays On In Debian Squeeze

Do you ever get tired of having to set the numloc key in Debian Squeeze after starting your machine or after a reboot?

Well here is a quick fix for that.

It’s called numlocx. Now there are two parts, one for the console (terminal) and one for the desktop (DE).

First bring your machine up to date by issuing the command:

apt-get update

Followed by:

apt-get upgrade

Once that is done now you can download console-ttols by:

apt-get install -y console-tools

Now you can edit the file:

nano -w /etc/console-tools/config

now you need to look for:

#LEDS=+num

Uncomment this line so that it looks like this:

LEDS=+num

control x,y to save

And then you can reboot your machine. Watch the numloc key and see what it does! 8-)

Even if you turn numloc off on the keyboard, this will set it on at command boot.

Now for the second part which is for desktop(DE). Issue the following command:

apt-get install -y numlocx

Now turn on numlocx:

numlocx on

Ea DE user has to turn numlocx on.

Hope this helps and happy computing! :D

Posted in debian, Howto, Linux | Tagged , , , , | Leave a comment

Debian Fast Boot

Make grub boot faster.

:!: WARNING Always make backups!
:!: YOU HAVE BEEN WARNED 8-)

From a console type:

nano -w  /etc/default/grub

Use the control w function to “find”:

GRUB_TIMEOUT=5

change to 1. Now Control X, Y to save.

Then run:

update-grub

Now you can reboot and see what it does! :D

Posted in Commands, debian, Howto, Linux | Tagged , | Leave a comment

Fast install of Debian

Here is a quick way to install a Debian base install with no desktop. You must have the full Cd set or at least the first CD of the set. CD or DVD will work.

no network connection
set IP address for static IP
set the subnet, and  gateway
set the DNS
run through prompts
No NTP No mirrors NO NOTHING
tasksel base only and SSH
See how many packages it installs
On Lenny it was about 75
remove CD
reboot

This will make it install faster. You can go back and install from there.

Posted in debian, Howto, Linux | Tagged , , | 1 Comment

Display file information with stat Command

The stat command is really useful to gather information from file, directory and file system.
The basic usage of stat is:

stat /etc/passwd

~# stat /etc/passwd
File: `/etc/passwd’
Size: 1504            Blocks: 8          IO Block: 4096   regular file
Device: 301h/769d       Inode: 1828781     Links: 1
Access: (0644/-rw-r–r–)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-11-04 13:34:43.000000000 -0400
Modify: 2011-09-14 02:26:33.000000000 -0400
Change: 2011-09-14 02:26:33.000000000 -0400

So, without options you can have the following information

File : Size in Bytes
Blocks : Number of blocks used
IO Block : Size in bytes of every block.
Device : The identifier number of your storage device (harddrive, etc.)
Inode : The inode number that the file or directory is linked to.
Access/Modify and change Times : Note that the timestamps also include which time zone that accesses or modifications took place in. in this example -0400

Options

The following are some of the flags and arguments that can be used for the stat command:

-f, –filesystem  display filesystem status instead of file status
-c  –format=FORMAT  use the specified FORMAT instead of the default
-L, –dereference  follow links
-Z, –context print the security context

File system status

stat -f /

File: “/”
ID: 64d0ef29968c53b0 Namelen: 255     Type: ext2/ext3
Block size: 4096       Fundamental block size: 4096
Blocks: Total: 4012826    Free: 3440842    Available: 3275692
Inodes: Total: 3701376    Free: 3668155

As you can see the output is a bit different with the -f flag you get information on the Type of FS and on the status of the blocks and of inodes (total/free). The -f can be used also with a file in that case the information will be the one of the FS that contains it (i.g. stat -f /etc/passwd

Output Format

With the -c options you can control which information display in the output of the command stat.
For example to print the permissions of all files in letters and octal you can use:

stat -c '%A %a %n' *

The result would look this:
-rw-r–r– 644 adduser.conf
-rw-r–r– 644 adjtime
-rw-r–r– 644 aliases
drwxr-xr-x 755 alternatives
drwxr-xr-x 755 apache2
drwxr-xr-x 755 apt
-rw-r—– 640 at.deny
-rw-r–r– 644 bash.bashrc
-rw-r–r– 644 bash_completion
drwxr-xr-x 755 bash_completion.d
-rw-r–r– 644 bindresvport.blackli
….

Take a look at the –help output:

stat --help

Here’s the result:
Usage: stat [OPTION] FILE…
Display file or file system status.

-L, –dereference     follow links
-f, –file-system     display file system status instead of file status
-c  –format=FORMAT   use the specified FORMAT instead of the default;
output a newline after each use of FORMAT
–printf=FORMAT   like –format, but interpret backslash escapes,
and do not output a mandatory trailing newline.
If you want a newline, include \n in FORMAT.
-t, –terse           print the information in terse form
–help     display this help and exit
–version  output version information and exit

The valid format sequences for files (without –file-system):

%a   Access rights in octal
%A   Access rights in human readable form
%b   Number of blocks allocated (see %B)
%B   The size in bytes of each block reported by %b
%C   SELinux security context string
%d   Device number in decimal
%D   Device number in hex
%f   Raw mode in hex
%F   File type
%g   Group ID of owner
%G   Group name of owner
%h   Number of hard links
%i   Inode number
%n   File name
%N   Quoted file name with dereference if symbolic link
%o   I/O block size
%s   Total size, in bytes
%t   Major device type in hex
%T   Minor device type in hex
%u   User ID of owner
%U   User name of owner
%x   Time of last access
%X   Time of last access as seconds since Epoch
%y   Time of last modification
%Y   Time of last modification as seconds since Epoch
%z   Time of last change
%Z   Time of last change as seconds since Epoch

Valid format sequences for file systems:

%a   Free blocks available to non-superuser
%b   Total data blocks in file system
%c   Total file nodes in file system
%d   Free file nodes in file system
%f   Free blocks in file system
%C   SELinux security context string
%i   File System ID in hex
%l   Maximum length of filenames
%n   File name
%s   Block size (for faster transfers)
%S   Fundamental block size (for block counts)
%t   Type in hex
%T   Type in human readable form

NOTE: your shell may have its own version of stat, which usually supersedes
the version described here.  Please refer to your shell’s documentation
for details about the options it supports.

Report bugs to <bug-coreutils@gnu.org>.

And don’t forget about the man pages!

man stat |less
Posted in Centos, Commands, debian, Linux | Tagged , , , , , , , | 5 Comments