Choose style:

Author Topic: Deep Freeze alternative  (Read 7134 times)

0 Members and 1 Guest are viewing this topic.

Offline lswarte

  • Trusted User
  • Member
  • *****
  • Posts: 176
  • Karma: 200
  • Once a noob, always a noob.
    • View Profile
    • Facebook
  • Peppermint version(s): Peppermint 9
Deep Freeze alternative
« on: October 01, 2014, 11:07:26 am »
To prevent users from changing all kinds of settings on a public PC I am searching for a Deep Freeze like alternative for Peppermint 5.

After some searching on Google I came up with Ofris and Lethe. For some reason Ofris wouldn't install, and with Lethe  .... I just don't understand really how it works and how to install it.

Is there anybody out there who can help me?

Thank you in advance.

Laurens Swarte
the Netherlands.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25708
  • Karma: 2821
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Deep Freeze alternative
« Reply #1 on: October 02, 2014, 12:14:30 pm »
Why not try Lethe:-
(I suggest you try it in a VM first)

Sourceforge page:
http://sourceforge.net/projects/lethe/

Instructions for installing in Ubuntu 14.04 (which Peppermint 5 is based on):
http://community.spiceworks.com/how_to/show/90188-install-lethe-on-ubuntu-14-04-lts

Watch this from about 1:50
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline lswarte

  • Trusted User
  • Member
  • *****
  • Posts: 176
  • Karma: 200
  • Once a noob, always a noob.
    • View Profile
    • Facebook
  • Peppermint version(s): Peppermint 9
Re: Deep Freeze alternative
« Reply #2 on: October 14, 2014, 03:42:17 pm »
First: please forgive me for my belated response. I was unable to test the suggestions above any sooner, due to personal circumstances.

Both suggestions mentioned above did not work. Worst of all, the computer refuses to install any program anymore  :o. But .. no problem, I tried it, and it is only a matter of minutes to install Peppermint again ...

Trying to remove lethe doesn't work as well ... I always get the same funny Spanish, Dutch and English messages in return:

Code: [Select]
Removing lethe (0.34) ...
Eliminando archivos de configuracion
rm: kan ‘/etc/lethe’ niet verwijderen: Bestand of map bestaat niet
dpkg: error processing package lethe (--remove):
 subproces installed post-removal script gaf een foutwaarde 1 terug
Fouten gevonden tijdens behandelen van:
 lethe
E: Sub-process /usr/bin/dpkg returned an error code (1)

I will try to translate it:
Code: [Select]
rm: kan ‘/etc/lethe’ niet verwijderen: Bestand of map bestaat niet
rm: cannot remove ‘/etc/lethe’ : file or folder does not exist.
and
Code: [Select]
subproces installed post-removal script gaf een foutwaarde 1 terug
subproces installed post-removal script gave an error 1 in return
and
Code: [Select]
Fouten gevonden tijdens behandelen van:
 lethe
Mistakes were found while handling:
 lethe

Do you know of any simple way to get this fixed?

Thank you in advance!

Laurens Swarte
the Netherlands

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25708
  • Karma: 2821
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Deep Freeze alternative
« Reply #3 on: October 14, 2014, 06:10:55 pm »
run:
Code: [Select]
sudo updatedb
then post the output from:
Code: [Select]
locate lethe
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline lswarte

  • Trusted User
  • Member
  • *****
  • Posts: 176
  • Karma: 200
  • Once a noob, always a noob.
    • View Profile
    • Facebook
  • Peppermint version(s): Peppermint 9
Re: Deep Freeze alternative
« Reply #4 on: October 18, 2014, 04:54:48 pm »
Herewith, again a little delayed, the output from:

Code: [Select]
locate lethe

The output is:
Code: [Select]
administrator@huiswerk-Presario-CQ60 ~ $ locate lethe
/home/administrator/Downloads/lethe_0.34_all.deb
/var/lib/dpkg/info/lethe.conffiles
/var/lib/dpkg/info/lethe.list
/var/lib/dpkg/info/lethe.md5sums
/var/lib/dpkg/info/lethe.postinst
/var/lib/dpkg/info/lethe.postrm

With kind regards,

Laurens Swarte
the Netherlands

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25708
  • Karma: 2821
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Deep Freeze alternative
« Reply #5 on: October 20, 2014, 08:41:32 am »
well it appears to have uninstalled properly (though it may not have installed properly in the first place).

Can you explain the problem with installing software ?

What happens if you try to install something from he command line ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline lswarte

  • Trusted User
  • Member
  • *****
  • Posts: 176
  • Karma: 200
  • Once a noob, always a noob.
    • View Profile
    • Facebook
  • Peppermint version(s): Peppermint 9
Re: Deep Freeze alternative
« Reply #6 on: October 26, 2014, 04:43:32 am »
If I try to install something from the command line I receive the message that besides installing, for example, VLC Lethe will be removed.

Than the message appears that Lethe cannot be removed and VLC is not installed. It is the same message as I displayed earlier. (October 14).

Besides not being able ti install from the command line, it also doesn't work from the software center, and updates are not being installed as well ...  :-\

Well, you advised me to try out Lethe with a VM ... now I know why ...  ;)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25708
  • Karma: 2821
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Deep Freeze alternative
« Reply #7 on: October 26, 2014, 08:27:11 am »
What happens if you run:
Code: [Select]
sudo apt-get install lethe
if that appears to work, then try running:
Code: [Select]
sudo apt-get remove --purge lethe

If it says "no installation candidate", follow on below

Download the lethe DEB again from here:
https://master-dl.sourceforge.net/project/lethe/lethe/0.3x/lethe_0.34_all.deb
put it on your desktop, then run these commands in sequence:
Code: [Select]
cd ~/Desktop
then
Code: [Select]
sudo dpkg -i lethe_0.34_all.deb
then
Code: [Select]
sudo cp -v /etc/lethe/09_lethe /etc/grub.d/09_lethe
then
Code: [Select]
sudo apt-get install lethe
then
Code: [Select]
sudo apt-get remove --purge lethe
now test if you can install something like leafpad:
Code: [Select]
sudo apt-get install leafpad
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline lswarte

  • Trusted User
  • Member
  • *****
  • Posts: 176
  • Karma: 200
  • Once a noob, always a noob.
    • View Profile
    • Facebook
  • Peppermint version(s): Peppermint 9
Re: Deep Freeze alternative
« Reply #8 on: October 27, 2014, 06:07:02 pm »
It didn't work ... so I made a fresh install of Peppermint and started all over.

Immediately after

Code: [Select]
sudo dpkg -i lethe_0.34_all.deb

I am receiving the following message:

Code: [Select]
Selecting previously unselected package lethe.
(Database inlezen ... 164847 files and directories currently installed.)
Preparing to unpack lethe_0.34_all.deb ...
Unpacking lethe (0.34) ...
Instellen van lethe (0.34) ...
Grub-instellingenbestand aan het maken...
Waarschuwing: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
/etc/grub.d/09_lethe: 22: .: Can't open /usr/lib/grub/update-grub_lib
dpkg: error processing package lethe (--install):
 subproces installed post-installation script gaf een foutwaarde 2 terug
Fouten gevonden tijdens behandelen van:
 lethe

So I tried:

Code: [Select]
sudo apt-get remove --purge lethe

And I get:

Code: [Select]
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd       
De status informatie wordt gelezen... Klaar
Het volgende pakket is automatisch geïnstalleerd en is niet langer nodig:
  firefox-locale-nl
Use 'apt-get autoremove' to remove it.
De volgende pakketten zullen VERWIJDERD worden:
  lethe*
0 pakketten opgewaardeerd, 0 pakketten nieuw geïnstalleerd, 1 te verwijderen en 2 niet opgewaardeerd.
1 pakketten niet volledig geïnstalleerd of verwijderd.
Door deze operatie zal er 94,2 kB schijfruimte vrijkomen.
Wilt u doorgaan? [J/n] j
(Database inlezen ... 164855 files and directories currently installed.)
Removing lethe (0.34) ...
Eliminando archivos de configuracion
‘/etc/lethe/09_lethe’ is verwijderd
‘/etc/lethe/lethe.conf’ is verwijderd
map ‘/etc/lethe’ is verwijderd
Eliminando archivos de initramfs
‘/etc/initramfs-tools/scripts/__lethe’ is verwijderd
‘/etc/initramfs-tools/scripts/local-bottom/lethe’ is verwijderd
Eliminando configuraciones de grub
‘/etc/grub.d/09_lethe’ is verwijderd
Grub-instellingenbestand aan het maken...
Waarschuwing: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Linux-image gevonden: /boot/vmlinuz-3.13.0-38-generic
Initrd-image gevonden: /boot/initrd.img-3.13.0-38-generic
Linux-image gevonden: /boot/vmlinuz-3.13.0-29-generic
Initrd-image gevonden: /boot/initrd.img-3.13.0-29-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
voltooid

Regenerando la imagen initramfs... Esto puede tomar unos minutos.
update-initramfs: Generating /boot/initrd.img-3.13.0-38-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-29-generic
Purging configuration files for lethe (0.34) ...
Eliminando archivos de configuracion
rm: kan ‘/etc/lethe’ niet verwijderen: Bestand of map bestaat niet
dpkg: error processing package lethe (--purge):
 subproces installed post-removal script gaf een foutwaarde 1 terug
Fouten gevonden tijdens behandelen van:
 lethe
E: Sub-process /usr/bin/dpkg returned an error code (1)

Which is the same message as I got during the previous install....and I am stuck with the same troubles. I tried to install VLC (moments before I installed Totem from the command line without any troubles, that was before the lethe expiriment...) and now, at the end of all the lines flashing in front of me I get:

Code: [Select]
Fouten gevonden tijdens behandelen van: [i]Errors occured during the installtion of [/i]
 lethe
E: Sub-process /usr/bin/dpkg returned an error code (1)

But now VLC did install ... 

With kind regards,

Laurens Swarte
the Netherlands


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25708
  • Karma: 2821
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Deep Freeze alternative
« Reply #9 on: October 27, 2014, 08:57:51 pm »
OK, I've figured it out :) .. first we're going to get rid of lethe (it's too broken) then we'll use fsprotect (I'm *fairly sure lethe is just a modified version of fsprotect anyway) which is in the default repositories.

Before installing fsprotect, let's make sure lethe is properly removed .. open a terminal and run:
Code: [Select]
sudo apt-get remove --purge lethe
then
Code: [Select]
sudo update-grub
check your system reboots OK.

OK, now let's install fsprotect and aufs-tools:
Code: [Select]
sudo apt-get install aufs-tools fsprotect

Now run:
Code: [Select]
sudo gedit /etc/default/grub
find the line that reads:-

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and change it to read:-

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash fsprotect=auto apparmor=0"

(that's a ZERO at the end, not a capital O)
SAVE the file and exit gedit.

Back in the terminal run:
Code: [Select]
sudo update-grub
Now REBOOT.

Once rebooted, test it by creating a file on your desktop .. and installing leafpad .. then rebooting to check they're gone after the reboot.



If you ever need to boot "unfrozen", you'll have to hold Shift key at bootup to access the GRUB menu .. highlight the top option, and hit the E key .. then manually remove the options fsprotect=auto apparmor=0 then hit Ctrl+X to continue booting.



If you have separate /home and/or /boot partitions .. they'll need to be added to the
/etc/default/fsprotect
file to be mounted "frozen"

If you have separate partitions (other than /) that also need freezing, and you can't figure it out .. just ask.



If you really want to go nuts and password protect the GRUB menu so this cannot be bypassed  by someone with the right knowledge .. see here:
https://help.ubuntu.com/community/Grub2/Passwords

Obviously password protecting GRUB will not stop a user with a LiveCD/LiveUSB bypassing it .. the only way to do that would be to disable USB booting in the BIOS and not to have optical and floppy drives .. then password protect the BIOS.
« Last Edit: October 27, 2014, 09:50:24 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline lswarte

  • Trusted User
  • Member
  • *****
  • Posts: 176
  • Karma: 200
  • Once a noob, always a noob.
    • View Profile
    • Facebook
  • Peppermint version(s): Peppermint 9
Re: Deep Freeze alternative
« Reply #10 on: April 05, 2015, 09:06:31 am »
I forgot all about this subject .... I found your latest reply and thought to try it out.

It works!

There is just one "problem": after rebooting the GRUB menu shows, and it stays there until you hit "Enter".

Is there a way to hide it, or to let it automatically start Peppermint after a few seconds?

Thank you in advance.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25708
  • Karma: 2821
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Deep Freeze alternative
« Reply #11 on: April 05, 2015, 05:14:41 pm »
What's the contents of your
Code: [Select]
gedit /etc/default/grub
and
Code: [Select]
gedit /boot/grub/grub.cfg
files.

Please remember to enclose them in spoiler tags.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline lswarte

  • Trusted User
  • Member
  • *****
  • Posts: 176
  • Karma: 200
  • Once a noob, always a noob.
    • View Profile
    • Facebook
  • Peppermint version(s): Peppermint 9
Re: Deep Freeze alternative
« Reply #12 on: April 06, 2015, 03:22:47 am »
I am not sure what you mean by "spoiler tags", so please forgive me if I did it wrong. I assume you mean the "Insert Code" tag, so that is what I will use.

Hence, the output for

Code: [Select]
gedit /etc/default/grub

is

Spoiler (click here to view / hide)
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash fsprotect=auto apparmor=0"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
[close]

And the output for

Code: [Select]
gedit /boot/grub/grub.cfg

is

Spoiler (click here to view / hide)
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  d5062d49-e3a2-4285-89b9-9360b689a285
else
  search --no-floppy --fs-uuid --set=root d5062d49-e3a2-4285-89b9-9360b689a285
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=nl_NL
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=hidden
    set timeout=0
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 0 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
   set gfxpayload="${1}"
   if [ "${1}" = "keep" ]; then
      set vt_handoff=vt.handoff=7
   else
      set vt_handoff=
   fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Peppermint GNU/Linux' --class peppermint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d5062d49-e3a2-4285-89b9-9360b689a285' {
   recordfail
   load_video
   gfxmode $linux_gfx_mode
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  d5062d49-e3a2-4285-89b9-9360b689a285
   else
     search --no-floppy --fs-uuid --set=root d5062d49-e3a2-4285-89b9-9360b689a285
   fi
   linux   /boot/vmlinuz-3.13.0-38-generic root=UUID=d5062d49-e3a2-4285-89b9-9360b689a285 ro  quiet splash fsprotect=auto apparmor=0 $vt_handoff
   initrd   /boot/initrd.img-3.13.0-38-generic
}
submenu 'Geavanceerde opties voor Peppermint GNU/Linux' $menuentry_id_option 'gnulinux-advanced-d5062d49-e3a2-4285-89b9-9360b689a285' {
   menuentry 'Peppermint GNU/Linux, met Linux 3.13.0-38-generic' --class peppermint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-38-generic-advanced-d5062d49-e3a2-4285-89b9-9360b689a285' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  d5062d49-e3a2-4285-89b9-9360b689a285
      else
        search --no-floppy --fs-uuid --set=root d5062d49-e3a2-4285-89b9-9360b689a285
      fi
      echo   'Laden van Linux 3.13.0-38-generic...'
      linux   /boot/vmlinuz-3.13.0-38-generic root=UUID=d5062d49-e3a2-4285-89b9-9360b689a285 ro  quiet splash fsprotect=auto apparmor=0 $vt_handoff
      echo   'Laden van initiële ramdisk...'
      initrd   /boot/initrd.img-3.13.0-38-generic
   }
   menuentry 'Peppermint GNU/Linux, with Linux 3.13.0-38-generic (recovery mode)' --class peppermint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-38-generic-recovery-d5062d49-e3a2-4285-89b9-9360b689a285' {
      recordfail
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  d5062d49-e3a2-4285-89b9-9360b689a285
      else
        search --no-floppy --fs-uuid --set=root d5062d49-e3a2-4285-89b9-9360b689a285
      fi
      echo   'Laden van Linux 3.13.0-38-generic...'
      linux   /boot/vmlinuz-3.13.0-38-generic root=UUID=d5062d49-e3a2-4285-89b9-9360b689a285 ro recovery nomodeset
      echo   'Laden van initiële ramdisk...'
      initrd   /boot/initrd.img-3.13.0-38-generic
   }
   menuentry 'Peppermint GNU/Linux, met Linux 3.13.0-29-generic' --class peppermint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-29-generic-advanced-d5062d49-e3a2-4285-89b9-9360b689a285' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  d5062d49-e3a2-4285-89b9-9360b689a285
      else
        search --no-floppy --fs-uuid --set=root d5062d49-e3a2-4285-89b9-9360b689a285
      fi
      echo   'Laden van Linux 3.13.0-29-generic...'
      linux   /boot/vmlinuz-3.13.0-29-generic root=UUID=d5062d49-e3a2-4285-89b9-9360b689a285 ro  quiet splash fsprotect=auto apparmor=0 $vt_handoff
      echo   'Laden van initiële ramdisk...'
      initrd   /boot/initrd.img-3.13.0-29-generic
   }
   menuentry 'Peppermint GNU/Linux, with Linux 3.13.0-29-generic (recovery mode)' --class peppermint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-29-generic-recovery-d5062d49-e3a2-4285-89b9-9360b689a285' {
      recordfail
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  d5062d49-e3a2-4285-89b9-9360b689a285
      else
        search --no-floppy --fs-uuid --set=root d5062d49-e3a2-4285-89b9-9360b689a285
      fi
      echo   'Laden van Linux 3.13.0-29-generic...'
      linux   /boot/vmlinuz-3.13.0-29-generic root=UUID=d5062d49-e3a2-4285-89b9-9360b689a285 ro recovery nomodeset
      echo   'Laden van initiële ramdisk...'
      initrd   /boot/initrd.img-3.13.0-29-generic
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  d5062d49-e3a2-4285-89b9-9360b689a285
   else
     search --no-floppy --fs-uuid --set=root d5062d49-e3a2-4285-89b9-9360b689a285
   fi
   knetbsd   /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  d5062d49-e3a2-4285-89b9-9360b689a285
   else
     search --no-floppy --fs-uuid --set=root d5062d49-e3a2-4285-89b9-9360b689a285
   fi
   linux16   /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
[close]

Thank you in advance, and with kind regards,
« Last Edit: April 06, 2015, 08:31:48 pm by PCNetSpec »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25708
  • Karma: 2821
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Deep Freeze alternative
« Reply #13 on: April 06, 2015, 08:29:22 pm »
What happens if you run

Code: [Select]
sudo gedit /etc/default/grub
and change
GRUB_HIDDEN_TIMEOUT=0
to
GRUB_HIDDEN_TIMEOUT=3
SAVE the file and exit gedit

Then run:
Code: [Select]
sudo update-grub
then reboot to test.



BTW, the "Spoiler" tags operates the same as the "Insert Code" button .. but it's the button marked [Sp] .. just above the last smiley in the editor
« Last Edit: April 06, 2015, 08:35:27 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline lswarte

  • Trusted User
  • Member
  • *****
  • Posts: 176
  • Karma: 200
  • Once a noob, always a noob.
    • View Profile
    • Facebook
  • Peppermint version(s): Peppermint 9
Re: Deep Freeze alternative
« Reply #14 on: April 07, 2015, 06:49:44 am »
Thank you for informing me about the "spoiler" tags. It saves a lot of digital paper ...  ;)

Upon entering

Code: [Select]
sudo update-grub

I get the following message:
Code: [Select]
/usr/sbin/grub-probe: fout: kan canoniek pad van 'none' niet achterhalen.

I even do not understand it in Dutch. It means something like "can not find canonical path of 'none'".

Upon rebooting nothing has changed: GRUB is still there.

Thank you in advance for your reply.


« Last Edit: April 07, 2015, 06:51:46 am by lswarte »