Difference between pages "GNOME First Steps" and "Rsync Backup"

(Difference between pages)
 
(Created page with "== Introduction ==This tutorial leads you through the process of backuping and restoring your OS. This process is completed using the <code>rsync</code> tool that is included ...")
 
Line 1: Line 1:
== What is GNOME? ==
+
== Introduction ==This tutorial leads you through the process of backuping and restoring your OS. This process is completed using the <code>rsync</code> tool that is included in SystemRescueCd.== Why SystemRescueCd ==The usage of SystemRescueCD is quite simple: it enables us to backup the contents of our entire OS.== Backing Up ===== Preparation ===By default SystemRescueCd provides a <tt>/mnt/backup</tt> mount point. We will use this. There is no mount point for Funtoo. We have to create one:<console>###i## install -d /mnt/funtoo</console>When you use SystemRescueCd to backup you OS for the first time, you also have to create mount points for additional partitions. In this tutorial we assume that there is a <tt>/boot</tt> and a <tt>/home</tt> partition. Create the directories in <tt>/mnt/funtoo</tt>: <console>###i## install -d /mnt/funtoo/boot###i## install -d /mnt/funtoo/home</console>We also assume that we are backing up a sytem to an external drive. Plug in the USB device and power it on.<console>###i## cat /proc/partitionsmajor minor #blocks  name   8        488386584 sda   8        1     512000 sda1  8        2      32768 sda2  8        3    2097152 sda3  8        4  52428800 sda4  8        5 433314823 sda5   8      16  488386584 sdb  11        0   1048575 sr0  8      48 488386584 sdd   8      49 229032928 sdd1  8      52          1 sdd4   8      53 259352576 sdd5</console>The above command helps you to determine the device name. Lets's suppose that your backup device is <tt>/dev/sdd1</tt>. Mount the device now - along with your Funtoo partitions.<console>###i## mount /dev/sdd1 /mnt/backup###i## mount /dev/sda4 /mnt/funtoo###i## mount /dev/sda5 /mnt/funtoo/home###i## mount /dev/sda1 /mnt/funtoo/boot</console>=== Backup ===Now, we backup our Funtoo partition:<console>###i## rsync -aHA --del --force --stats --progress /mnt/funtoo /mnt/backup</console>=== Snapshot ===Once this command has completed, you can create a snapshot. Create a snapshot folder if there is none:<console>###i## install -d /mnt/backup/snapshot</console>Give your snapshot copy a name that includes the date. Thus, you may keep as many snapshot copies as you want and use one of those copies to restore your system to its state at any given date:<console>###i## cp -al /mnt/backup/funtoo /mnt/backup/snaphot/snap-2K014B26-a</console>{{fancynote| In our example, the name of the snapshot tells us that it was created on February 26th (B26) 2014 and it is the first one (a) made on that date. }}=== Log of backups ===Logging backups is not mandatory but could be useful. Create a log file and add a descriptive yet short record for each of your backup. Here is an example:<pre>Date                File                  Description-----------------    --------------------  ----------------------------------------------------------Feb 26th 2014        snap-2K014B26-a       Backup after system update :                                            - New kernel installed</pre>== Restoring ==First, you have to boot the PC with SystemRescueCd. When you are ready to go, create and format partitions as per [[Funtoo_Linux_Installation#Prepare_Hard_Disk|installation guide]]. For sake of brevity we assume that we are restoring the <tt>/boot</tt>, <tt>/</tt> and <tt>/home</tt> partitions. First, you must create a mount point for Funtoo:<console>###i## install -d /mnt/funtoo</console>=== Mount partitions ===<console>###i## mount /dev/sdd1 /mnt/backup###i## mount /dev/sda4 /mnt/funtoo###i## mount /dev/sda5 /mnt/home###i## mount /dev/sda1 /mntboot</console>{{fancywarning|If <tt>/home</tt> and <tt>/boot</tt> fail to mount, simply create mount points and run mount commands anew.}}=== Restoring from latest backup ===<console>###i## rsync -aHA --del --force --stats --progress /mnt/backup/funtoo/ /mnt/funtoo</console>{{fancyimportant|Note the <tt>/</tt> at the end of <code>/mnt/backup/funtoo/</code>. It is mandatory -- not a typo.}}=== Restoring from a previous backup ===<console>###i## rsync -aHA --del --force --stats --progress /mnt/backup/snapshot/snap-2K014B26-a/ /mnt/funtoo</console>{{fancyimportant|Note the '''<tt>/</tt>''' at the end of <code>/mnt/backup/snapshot/snap-2K014B26-a/</code>. It is mandatory -- not a typo.}}=== Restoring GRUB2 ===Once the system has been restored, GRUB2 must be reinstalled. The example below is for a GRUB/Bios partition schema. This assumes that the Funtoo partitions were created on <tt>/dev/sda</tt>:<console>###i## cd /mnt/funtoo###i## mount -t proc none proc###i## mount -o bind /dev dev###i## mount -o bind /sys sys###i## swapon /dev/sda3###i## cp /etc/resolv.conf etc###i## env -i HOME=/root TERM=$TERM chroot . bash -l###i## grub-install /dev/sda</console>{{fancywarning|If, for any reason, partitions were not created on the same devices -- (let's say they were moved from <tt>/dev/sda</tt> to <tt>/dev/sdb</tt>) -- please amend <code>/etc/boot.conf</code> and <code>/etc/fstab</code> accordingly before running <code>boot-update</code>.}}<console>###i## boot-update</console>You're done. Unmount partitions and reboot.== Credit ==This is an as-is translation by Guy Fontaine (AKA Aramis_qc) of an original French tutorial written by Sylvain Alain (AKA d2_racing). Some parts were reviewed and modified to reflect Funto GNU/Linux instead of Gentoo GNU/Linux. [[Category:HOWTO]]
"GNOME 3 is an easy and elegant way to use your computer. It is designed to put you in control and bring freedom to everybody. GNOME 3 is developed by the GNOME community, a diverse, international group of contributors that is supported by an independent, non-profit foundation." [http://gnome.org GNOME]
+
 
+
== Prerequisites ==
+
 
+
Before installing GNOME, ensure that the [[X Window System]] has been installed.
+
 
+
{{fancywarning|1=
+
Please note that Linux kernel 3.13.* has some serious incompatibility with various graphics drivers. If you like to use <tt>gentoo-sources</tt> or <tt>vanilla-sources</tt>, please use a 3.12.* kernel. This is of particular importance if you plan to run GNOME, and want to use NVIDIA (commercial or nouveau) or ATI (ati-drivers) graphics drivers.}}
+
 
+
== Preparing to emerge ==
+
 
+
To get your system ready to emerge gnome, it is recommended that you first set the gnome profile mix-in. To accomplish this, do the following:
+
<console>
+
##r### ##b## eselect profile list
+
##g##Currently available mix-ins profiles: 
+
  [11]  funtoo/1.0/linux-gnu/mix-ins/audio 
+
  [12]  funtoo/1.0/linux-gnu/mix-ins/console-extras 
+
  [13]  funtoo/1.0/linux-gnu/mix-ins/dvd  
+
   [14]  funtoo/1.0/linux-gnu/mix-ins/gnome  
+
   [15]  funtoo/1.0/linux-gnu/mix-ins/kde  
+
   [16] funtoo/1.0/linux-gnu/mix-ins/mate  
+
   [17] funtoo/1.0/linux-gnu/mix-ins/media 
+
   [18] funtoo/1.0/linux-gnu/mix-ins/print 
+
  [19]  funtoo/1.0/linux-gnu/mix-ins/python3-only
+
  [20]  funtoo/1.0/linux-gnu/mix-ins/rhel5-compat
+
  [21]  funtoo/1.0/linux-gnu/mix-ins/server-db 
+
  [22]  funtoo/1.0/linux-gnu/mix-ins/server-mail
+
  [23]  funtoo/1.0/linux-gnu/mix-ins/server-web
+
  [24]  funtoo/1.0/linux-gnu/mix-ins/X
+
  [25]  funtoo/1.0/linux-gnu/mix-ins/xfce
+
  [26]  funtoo/1.0/linux-gnu/mix-ins/vmware-guest
+
  [27]  funtoo/1.0/linux-gnu/mix-ins/hardened
+
</console>
+
After seeing a list of available profiles, we want to add in the appropriate number for the gnome mix-in. To do this, run the following:
+
<console>
+
##r### ##b##eselect profile add 14
+
</console>
+
 
+
By enabling the gnome mix-in, various USE and other settings will be optimized to provide you with a pain-free GNOME installation experience.
+
 
+
== Emerging ==  
+
You are provided with two packages that will pull in this desktop environment:  
+
* ''gnome'' -- This is the "whole shabang" - pulls in a range of applications made for the gnome desktop environment including a few games, an archive manager, a system monitor, a web browser, a terminal, etc.
+
* ''gnome-light''
+
 
+
To emerge ''gnome-light'' run the following command
+
<console>
+
# ##i## emerge --ask gnome-light
+
</console>
+
 
+
To emerge ''gnome'' run the following command
+
<console>
+
# ##i## emerge --ask gnome
+
</console>
+
 
+
== Initial Startup ==
+
 
+
Typically, you will want to use <tt>gdm</tt>, the GNOME display manager, to log in to GNOME. This will allow you to log in graphically, rather than using the text console.
+
 
+
To enable gdm, edit <tt>/etc/conf.d/xdm</tt> and set <tt>DISPLAYMANAGER</tt> to <tt>gdm</tt> instead of <tt>xdm</tt>. Then, perform the following steps to add <tt>xdm</tt> to the default runlevel, and have it start automatically from now on when your system starts:
+
 
+
<console>
+
# ##i##rc-update add xdm default
+
# ##i##rc
+
</console>
+
 
+
== Automatically Starting Applications at Login ==
+
 
+
When using an old-fashioned <tt>.xinitrc</tt>, starting up applications when X starts is relatively easy. When using GDM, this can still be accomplished, by using the <tt>~/.xprofile</tt> file. Here's my sample <tt>.xprofile</tt> to start <tt>xflux</tt> to dim the screen at night:
+
 
+
<pre>
+
xflux -z 87107
+
</pre>
+
 
+
Remember to add a <tt>&</tt> at the end of any command that doesn't return to the shell prompt after running.
+
 
+
 
+
[[Category:Desktop Environments]]
+
[[Category:First Steps]]
+
[[Category:Official Documentation]]
+

Revision as of 15:28, March 2, 2014

== Introduction ==This tutorial leads you through the process of backuping and restoring your OS. This process is completed using the rsync tool that is included in SystemRescueCd.== Why SystemRescueCd ==The usage of SystemRescueCD is quite simple: it enables us to backup the contents of our entire OS.== Backing Up ===== Preparation ===By default SystemRescueCd provides a /mnt/backup mount point. We will use this. There is no mount point for Funtoo. We have to create one:
# install -d /mnt/funtoo
When you use SystemRescueCd to backup you OS for the first time, you also have to create mount points for additional partitions. In this tutorial we assume that there is a /boot and a /home partition. Create the directories in /mnt/funtoo:
# install -d /mnt/funtoo/boot###i## install -d /mnt/funtoo/home
We also assume that we are backing up a sytem to an external drive. Plug in the USB device and power it on.
# cat /proc/partitionsmajor minor  #blocks  name   8        0  488386584 sda   8        1     512000 sda1   8        2      32768 sda2   8        3    2097152 sda3   8        4   52428800 sda4   8        5  433314823 sda5   8       16  488386584 sdb  11        0    1048575 sr0   8       48  488386584 sdd   8       49  229032928 sdd1   8       52          1 sdd4   8       53  259352576 sdd5
The above command helps you to determine the device name. Lets's suppose that your backup device is /dev/sdd1. Mount the device now - along with your Funtoo partitions.
# mount /dev/sdd1 /mnt/backup###i## mount /dev/sda4 /mnt/funtoo###i## mount /dev/sda5 /mnt/funtoo/home###i## mount /dev/sda1 /mnt/funtoo/boot
=== Backup ===Now, we backup our Funtoo partition:
# rsync -aHA --del --force --stats --progress /mnt/funtoo /mnt/backup
=== Snapshot ===Once this command has completed, you can create a snapshot. Create a snapshot folder if there is none:
# install -d /mnt/backup/snapshot
Give your snapshot copy a name that includes the date. Thus, you may keep as many snapshot copies as you want and use one of those copies to restore your system to its state at any given date:
# cp -al /mnt/backup/funtoo /mnt/backup/snaphot/snap-2K014B26-a

Note

In our example, the name of the snapshot tells us that it was created on February 26th (B26) 2014 and it is the first one (a) made on that date. 
=== Log of backups ===Logging backups is not mandatory but could be useful. Create a log file and add a descriptive yet short record for each of your backup. Here is an example:
Date                 File                  Description-----------------    --------------------  ----------------------------------------------------------Feb 26th 2014        snap-2K014B26-a       Backup after system update :                                             - New kernel installed
== Restoring ==First, you have to boot the PC with SystemRescueCd. When you are ready to go, create and format partitions as per installation guide. For sake of brevity we assume that we are restoring the /boot, / and /home partitions. First, you must create a mount point for Funtoo:
# install -d /mnt/funtoo
=== Mount partitions ===
# mount /dev/sdd1 /mnt/backup###i## mount /dev/sda4 /mnt/funtoo###i## mount /dev/sda5 /mnt/home###i## mount /dev/sda1 /mntboot

Warning

If /home and /boot fail to mount, simply create mount points and run mount commands anew.

=== Restoring from latest backup ===
# rsync -aHA --del --force --stats --progress /mnt/backup/funtoo/ /mnt/funtoo

Important

Note the / at the end of /mnt/backup/funtoo/. It is mandatory -- not a typo.

=== Restoring from a previous backup ===
# rsync -aHA --del --force --stats --progress /mnt/backup/snapshot/snap-2K014B26-a/ /mnt/funtoo

Important

Note the / at the end of /mnt/backup/snapshot/snap-2K014B26-a/. It is mandatory -- not a typo.

=== Restoring GRUB2 ===Once the system has been restored, GRUB2 must be reinstalled. The example below is for a GRUB/Bios partition schema. This assumes that the Funtoo partitions were created on /dev/sda:
# cd /mnt/funtoo###i## mount -t proc none proc###i## mount -o bind /dev dev###i## mount -o bind /sys sys###i## swapon /dev/sda3###i## cp /etc/resolv.conf etc###i## env -i HOME=/root TERM=$TERM chroot . bash -l###i## grub-install /dev/sda

Warning

If, for any reason, partitions were not created on the same devices -- (let's say they were moved from /dev/sda to /dev/sdb) -- please amend /etc/boot.conf and /etc/fstab accordingly before running boot-update.

# boot-update
You're done. Unmount partitions and reboot.== Credit ==This is an as-is translation by Guy Fontaine (AKA Aramis_qc) of an original French tutorial written by Sylvain Alain (AKA d2_racing). Some parts were reviewed and modified to reflect Funto GNU/Linux instead of Gentoo GNU/Linux.