DebianThis forum is for the discussion of Debian Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'll see if it works on grml/hag, as they are debian unstable...
What did you do j1alu to remaster yours?
which live did you use?
ok, i hope it will work for you (for me its an either it work or it doesn`t. on sid as host its an disaster, on lenny all is nice and easy).
i use lh_config to create a standard-x11 system, unpack it as described in the link
and add the wm`s (fluxbox and e17) and apps and all later. I`m not sure if i did it with an existing distribution yet (i dont think so, but it should work).
But i sure allready did it with unstable.
(if you run into trouble with live-helper im not sure if i may be of big help. as said i`m happy if i get it running. the wiki for live-helper aint bad. at how-to-section of forums.debian is a thread and theres the live-helper mailing-list; but its never easy finding info if one runs into trouble).
btw: i never heard of hag, downloaded it yesterday, and it really is great. good hint.
ok, good luck
ps: i dont think the syntax to open xnest is ok in the link, if you wanna use xnest i may give you the right way to open it.
im in the library, so a bit spare on time.
i`ll check tonight or tomorrow if i may unsquash hag and let you know
(but it will need a bit of time).
in the link is a way to open X from within chroot with xnest, but i think it dosna work. I`ll edit this post and add the way to do it.
i`ll have a look at the link you gave
edit: that should work, or: thats the way i do it:
as root from the host
Xnest -ac :2 &
chroot into the unsquashed fs:
(or startfluxbox or...)
edit: mh, bad news i couldnt unpack it:
ROOT# mount -t squashfs -o loop iso/live/Hag.squashfs temp
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
(never heard that before, but i understand now).
Though i gotta slax-cd around, could you tell me a fast and easy way to install hag?
(as the squashfs-lzma-tools seem to be on it too). else i`ll try to adapt the how-to install on usb.
i had a short look at the clamav-script, though i dont know bash-scripting (just started of with python, but still beginner). The steps of the script seems very similar to the how-to i know.
im tired now and will try later, the easiest way for me would be installing hag (or slax) in virtualbox, move the hag.iso over there and unsquash(-lzma) it from there.
as i understand it worked for you? that would be cool.
fast and easy grml/hag on either fat32/syslinux usb or ext2/3 grub usb
You got hag iso; so just xtract or mount/copy that baby to a folder
open a term and become root
mount -o loop Hag-0.1-20.iso mount
cp -a mount/* newusb
Now, hag is in "newusb" folder....
go into that folder and move it's contents to usb....
If using a grub ext2 or ext3 usb, it's already got a menu.lst in /boot/grub
but missing stage1, etc
so, copy grub files from your system
cp -a /usr/lib/grub/i386-pc/* /mount-point/of/usb/boot/grub
that will copy files to usb
if using fat32 syslinux
change isolinux folder name to syslinux, there is a syslinux.cfg in /boot/isolinux
here's my syslinux.cfg
# use this to control the bootup via a serial port
# SERIAL 0 9600
# ONTIMEOUT chain.32 hd0 0
MENU BACKGROUND /boot/isolinux/blackcat.png
# LABEL menu
# MENU HIDE
# KERNEL menu.c32
MENU TITLE grml - Boot Menu
MENU LABEL Back
# the default:
MENU LABEL grml - Standard Bootup
APPEND apm=power-off vga=791 quiet tz=US/Eastern noautoconfig initrd=/boot/grmlmedium/initrd.gz boot=live nomce persist startx=fluxbox persistent toram=grml-mediumz2.squashfs nolvm noswraid swap noprompt noeject
note that I already had a syslinux folder from pmagic, so I just left the isolinux folder as is, didn't change it's name
make 2 partitions on usb, one for booting and one for persistence
sdb1 ext2 or ext3 bootable with grub labeled GRML
sdb2 ext2 labeled "live-rw"
GRML/Hag by default have eth0, etc disabled at boot, whats worse, even with persistent, when you shutdown it erases the file in /etc/resolv.conf/run/interface/*
so that at boot, no net!!?
Getin ready to go in deep, and start fresh and get it up to about 300mb
I just added isomaster and set rox to open text files with sudo gedit and open iso's with sudo isomaster
does that "free" output mean I'm only using 80mb? ram
well: i ran into some issues:
a) after chrooting into the unpacked iso i had no net connection, so i couldnt install further apps or update/upgrade
(gotta check the link you gave above and try it again)
b) im doing it from hag-live cd (in the mounted hd-partition). i dunno with which command to pack it again (as i guess its gotta be a squahfs-lzma again ?)
c) xnest did work fine
might be doing it from slax is the better option.
i`ll install it later, thanks for the how-to, but with fast and easy i had a shorter way in mind: say typing "install" when it boots and thats it :-)
you gotta edit copy your existing resolv.conf into /etc/resolv.conf and edit /etc/network
iface lo inet loopback
iface eth0 inet dhcp
here's my /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
copy ypour /etc/resolv.conf and overwrite hag's
here's my /etc/resolv.conf/run/interfaces
it puts a file there for me named eth0
and it says
I just did apt-get update/install/upgrade from terminal
you gotta edit stuff in /etc/default/dhcp-server /etc/default/ifplugd
here's my dhcp-server
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts
# This is a POSIX shell fragment
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
this is empty as is
# This file may be changed either manually or by running dpkg-reconfigure.
# N.B.: dpkg-reconfigure deletes everything from this file except for
# the assignments to variables INTERFACES, HOTPLUG_INTERFACES, ARGS and
# SUSPEND_ACTION. When run it uses the current values of those variables
# as their default values, thus preserving the administrator's changes.
# This file is sourced by both the init script /etc/init.d/ifplugd and
# the udev script /lib/udev/ifplugd.agent to give default values.
# The init script starts ifplugd for all interfaces listed in
# INTERFACES, and the udev script starts ifplugd for all interfaces
# listed in HOTPLUG_INTERFACES. The special value all starts one
# ifplugd for all interfaces being present.
ARGS="-q -f -u0 -d10 -w -I"
I just added eth0 eth1
What I don't understand is how grml deletes my resolv.conf/run/interfaces/eth0 file at reboot, even in persistent?
I'm using grml-medium-2009rc2 testing version, I believe Hag is based on 2008 or early 2009 grml?