4 posts tagged “linux”
This is the best way to install Debian. Netboot from USB w/ local approx proxy. It probably works for Ubuntu, also,
with little tweaking. Note, you can cut and paste the important parts of this post into the CLI (Command Line Interface).#-----------------------start copy-----------------------------
#1. Insert the USB stick, but do not mount it, yet. That will
#come soon enough...
#2. Get the sid install files (even if you install etch):
wget ftp.us.debian.org:/debian/dists/sid/main/installer-i386/\
current/images/netboot/debian-installer/i386/linux
wget ftp.us.debian.org:/debian/dists/sid/main/installer-i386/\
current/images/netboot/debian-installer/i386/initrd.gz
wget ftp.us.debian.org:/debian/dists/sid/main/installer-i386/\
current/images/netboot/mini.iso
#3. Insure these packages are installed on your machine:
apt-get install mbr syslinux mtools -y
#4. Apply the following commands, replaceing sdb with the propper dev
#name of your device. (You can always tail syslog or dmesg for a hint...)
install-mbr /dev/sdb
syslinux /dev/sdb1
mount /dev/sdb1 /media/usb
cp linux initrd.gz mini.iso /media/usb
echo -e "default linux\nappend priority=low vga=normal "\
"initrd=initrd.gz ramdisk_size=12000 root=/dev/ram rw"\
> /media/usb/syslinux.cfg
umount /dev/sdb1
#------------------------------end copy----------------------------------------------
OK!! You are done prepping the flash drive.
Stick it in the target machine, boot form the flash device (usually a USB setting, I think Dell's let you hit F12 for a menu). Install as normal...\ Very easy, trust me.
If your have an approx server up and running, you can speed subsequent installs by following these steps:
1. When the initial boot: prompt comes up, type expert.
2. On the mirror selection page, go to the very top... the choice is "select your own", "custom", or msome such. Select it.
3. Type the IP of your approx server, followed by the colon and the approx port (eg. "192.168.100.3:9999").
SB
More than one Debian box? (Should work for Ubuntu, also.) Upgrade and install faster with approx. From the package, itself:
Approx is an HTTP-based Debian archive server. It fetches packages from remote repositories on demand, and caches them for local use.
Approx saves time and network bandwidth if you need to install or upgrade Debian software for a number of machines on a local network. Each package is downloaded from a remote site only once, regardless of how many local clients install it. The approx cache typically requires a few gigabytes of disk space.
Approx also simplifies the administration of client machines: repository locations need only be changed in approx's configuration file, not in every client's /etc/apt/sources.list file.
Setting it up is easy:
1. As root, type the following on the command line: apt-get install approx. Or use synaptic, or aptitude, or whatever apt interface you are most familiar with.
2. Edit /etc/approx/approx.conf. Mine is as follows:
interval 120
max_wait 10
#debug true # log debug info to /var/log/syslog
debian http://http.us.debian.org/debian
security http://security.debian.org/debian-security
non-us http://debian.teleglobe.net/non-US
wine http://wine.sourceforge.net/apt
java ftp://ftp.tux.org/java/debian
beryl http://debian.beryl-project.org
3. Edit /etc/apt/sources.list. Mine follows. Note that I have--in my /etc/hosts file--set deb-proxy to the ip address of the approx machine. In this specific case, 127.0.0.1. Don't forget the port (9999)!
#stable
#deb http://deb-proxy:9999/debian stable main non-free contrib
#deb-src http://deb-proxy:9999/debian etch main non-free contrib
#deb http://deb-proxy:9999/security stable/updates main non-free contrib
# deb-src http://deb-proxy:9999/security etch/updates main contrib non-free
# etch
deb http://deb-proxy:9999/debian etch main non-free contrib
#deb-src http://deb-proxy:9999/debian etch main non-free contrib
deb http://deb-proxy:9999/security etch/updates main non-free contrib
# deb-src http://deb-proxy:9999/security etch/updates main contrib non-free
# wine
#deb http://deb-proxy:9999/wine binary/
#java
#deb http://deb-proxy:9999/java etch non-free
#sid
deb http://deb-proxy:9999/debian sid main non-free contrib
#experimental
deb http://deb-proxy:9999/debian experimental main non-free contrib
#beryl
deb http://deb-proxy:9999/beryl etch main
4. Restart the approx server: /etc/init.d/approx restart.
5. From the client machine, apt-get update. At first, things won't look like they work, but be patient... The proxy will continue to get the files, even if apt times you out... Just run apt-get again. If things really aren't working, enable the debug option on the server, and tail syslog.
This makes upgrading multiple machines a breeze and multiple installs fairly fly, after the first one!
SB
Building a custom kernel is fairly easy, but there are some gotchas.
When you configure your kernel, make sure you get the following options as built ins, NOT
as loadable modules!
For the most part, the options as the source came from kernel.org work for me, and should for you.CONFIG_BLK_DEV_RAM=y (Device Drivers, Block Devices)
CONFIG_BLK_DEV_INITRD=y
CONFIG_ROMFS_FS=y (Filesystems)
I preferred the gnome configuration method:
After the config:
make gconf
make-kpkg clean
fakeroot make-kpkg --append-to-version=-<arch> --initrd --revision=<your version info here> linux-image
Noting that --append-to-version takes -<arch> as its arg; so I add =-686. Your version info is basically whatever you want. Use your last name and a version number, as so:
fakeroot make-kpkg --append-to-version=-686 --initrd --revision=myname.1.0 linux-image
Have fun, and remember "Don't be afraid to try compiling the kernel. It's fun and profitable."