Code Sample |
# cfdisk |
Code Sample |
# mke2fs -jv /dev/hda2 # mkswap /dev/hda1 |
Code Sample |
# mkdir /mnt/theSystem # mount /dev/hda2 /mnt/theSystem # swapon /dev/hda1 |
Code Sample |
# mkdir /mnt/usbdisk # mount /dev/sda1 /mnt/usbdisk -o ro |
Code Sample |
# cd /mnt/theSystem # grub-install --no-floppy --root-directory=. /dev/hda2 |
Code Sample |
# mkdir /mnt/falseCD # mount /mnt/usbdisk/dsl-3.2.iso /mnt/falseCD -o loop |
Code Sample |
# cp -vr /mnt/falseCD/* /mnt/theSystem |
Code Sample |
# mv /mnt/theSystem/boot/isolinux/* /mnt/theSystem # mv /mnt/theSystem/isolinux.cfg /mnt/theSystem/syslinux.cfg |
Code Sample |
color yellow/black yellow/brown default 0 timeout 5 title Awakening that Toshiba 310CDS with DSL root (hd0,1) kernel /linux24 root=/dev/hda2 ro host=pc-tsba-310cds lang=fr noeject frugal initrd /minirt24.gz |
Code Sample |
# umount /mnt/falseCD # umount /mnt/usbdisk # umount /mnt/theSystem |
Quote |
Welcome to the Fold (Filter) |
Code Sample |
# modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0 |
Code Sample |
# mount /dev/scd0 /mnt/cdrom |
Code Sample |
# cp /usr/share/fluxbox/styles/envane /home/dsl/.fluxbox/styles/myStyle |
Code Sample |
session.screen0.strftimeFormat: %d/%m/%y %H:%M |
Code Sample |
xset m 3/4 1 |
Code Sample |
fluxter.position: -1-1 fluxter.desktop.width: 20 fluxter.desktop.height: 20 |
Code Sample |
battery : ${execi 10 ~/.torsmo_battery} |
Code Sample |
#!/bin/sh /usr/bin/acpi -V | awk '/Battery/ {split($0, x, "1: "); split(x[2], y, ", "); printf "%s, ", y[2]; if (y[1] ~ /unknown/) { printf "fully ready to rock\n"} else printf "%s\n", y[1]; if (y[3]) printf "%s - ", y[3]; exit;}' /usr/bin/acpi -V | awk '/AC Adapter/ {split($0, x, "1: "); printf "A/C : %s\n", x[2]; exit;}' /usr/bin/acpi -V | awk '/Thermal/ {split($0, x, "1: "); split(x[2], y, ", "); printf "motherboard : %s, %s", y[2], y[1]; exit;}' |
Code Sample |
echo -n "${BLUE}Dynamicaly creating S98 initscript in rc5.d directory... ${GREEN}" echo "#!/bin/sh" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "# myOwn - Dynamicaly Generated Script" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "# Created from knoppix.sh script himself invoked by S00knoppix-autoconfig" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "#" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "# Script utility is to symlink ramdisk system files to my harddisk saved files" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "# Here are my 7 files" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "# .torsmorc : Torsmo Config" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "ln -sf /cdrom/mySavedFiles/.torsmorc /home/dsl/.torsmorc" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "# .torsmo_battery : Torsmo Battery Checker script" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "ln -sf /cdrom/mySavedFiles/.torsmo_battery /home/dsl/.torsmo_battery" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "# .xinitrc : launched when xserver starts" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "ln -sf /cdrom/mySavedFiles/.xinitrc /home/dsl/.xinitrc" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "# .fluxbox/init : fluxbox init config" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "ln -sf /cdrom/mySavedFiles/.fluxbox/init /home/dsl/.fluxbox/init" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "# .fluxbox/fluxter.bb : fluxter config (fluxter is the workspaces pager)" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "ln -sf /cdrom/mySavedFiles/.fluxbox/fluxter.bb /home/dsl/.fluxbox/fluxter.bb" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "# my style!" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "ln -sf /cdrom/mySavedFiles/.fluxbox/styles/myStyle /home/dsl/.fluxbox/styles/myStyle" >> /etc/rc5.d/S98dynamicallyCreated.sh /etc/rc5.d/S98dynamicallyCreated.sh echo "# .xtdesktop/xtdeskrc : xtdesktop main configuration file (xtdesktop brings icons on the desktop)" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "ln -sf /cdrom/mySavedFiles/.xtdesktop/xtdeskrc /home/dsl/.xtdesktop/xtdeskrc" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "# Set my style as the default fluxbox style" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "ln -sf /home/dsl/.fluxbox/styles/myStyle /usr/share/fluxbox/styles/default" >> echo "# Here it loads the module for sound support" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0 &> /dev/null" >> /etc/rc5.d/S98dynamicallyCreated.sh echo "Done." |
Quote |
Navigating to /proc/acpi/battery I see the cause of the problem : the directory is named MBAT! I'm not sure, but I imagine it's because the bios/computer is old. So Torsmo default variables won't be able to see it unless I change the source code, recompile it, remaster the distro... |
Quote |
All desktop icons are grouped on the top of the screen. Should I modify it? Of course! I would like them to cover more height of the screen, and less width (yes, say it, as on the Windows desktop...). Moreover, I could change icon sizes and text color. Here in fluxbox, icons are brought by xtdesktop. The config file is /home/dsl/.xtdesktop/xtdeskrc in which you will be able to change everything, even the font. |
Quote |
Because the bootlocal.sh script is in /opt which is readonly, and we like all the system to be readonly, don't we? I do. |
Quote |
Okay, now let's mount a CD. During the boot, the kernel said the CD-ROM drive is hdc so I try to mount it but with no result! Looking around on the net teaches me that it's not hdc, but scd0. This is not debian, so maybe knoppix? Or is it DSL? I don't know, and don't really need to know more... So here it is to mount my CD : # mount /dev/scd0 /mnt/cdrom Forgetting the last parameter is possible due to... a magical thing in DSL? |
Code Sample |
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0 /dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0 |