basic DSL with SSHForum: USB booting Topic: basic DSL with SSH started by: doc.maizo Posted by doc.maizo on April 16 2007,08:42
Hi everibody!I need to build an USB installation to be booted on a geexbox machine to do file configuration via SSH: - SSH daemon should be run at startup; - a password for SSH access must be set; - I need only a file editor (nano), so windows manager isn't necessary; Anyone can help? Posted by ^thehatsrule^ on April 16 2007,13:00
boot with: dsl ssh secureBack up /etc/shadow using the backup tool If you don't want X, you can remove startx from the startup scripts. Note: you can probably edit your boot options in syslinux.cfg Posted by doc.maizo on April 16 2007,13:29
Login with the options you suggested is ok but, as a DSL newbie, I cannot understand how to use backuop tools! I boot from usb, open DSLpanel and click on "Backup/restore" button, and then? if I enter /etc/shadow I get a "invalid path" error. Thx for your help! Posted by ^thehatsrule^ on April 16 2007,15:57
See the Local Startup Documentation (the first popup in dillo, or online in the wiki)
Posted by doc.maizo on April 16 2007,16:26
I red it, but I can't understand Do I have to add /etc/shadow to .filetool.lst? And when backup tool ask for bkp path, how can I tell him to backup to the pendrive? Posted by doc.maizo on April 17 2007,09:03
up: anyone can help?
Posted by ^thehatsrule^ on April 17 2007,18:29
USB partitions are typically in the form of sdXx. For example: sda2 A way to see which one in DSL would be to run ls /mnt/sd* There's plenty of threads on this already should you need any more info. Posted by doc.maizo on April 18 2007,07:45
I did it! This is the step-by-step procedure: 1. boot with:
2. from terminal, mount the USB drive as rw:
Note: since DSL is developed as a livecd, boot device is mounted in /cdrom, so also USB drive (usually /dev/sda1); 3. with an editor, open /opt/bootlocal.sh:
and add /etc/init.d/ssh start to it; 4. with an editor, open /home/dsl/.filetool.lst:
and add /etc/shadow to it; 5. run Backup/Restore (from DSL Control Panel or with right click, System, Backup/Restore) and choose sda1 (without /dev/!) as backup device. Thanks to ^thehatsrule^ and to te guys at < Debianizzati.org >. |