So, how do I save settings and stuff?


Forum: DSL Embedded
Topic: So, how do I save settings and stuff?
started by: Genecks

Posted by Genecks on Feb. 20 2007,03:20
I decided I'm going to use DSL from now on as my linux distro.

I'm using embedded via jumpdrive via windows. I noticed a lot of stuff is saving in /tmp. I want to be able to save the settings to the jumpdrive, and I want to be able to access the jumpdrive.

DSL-embedded is on the jumpdrive, which is read-write; so I don't see any reason why I can't look through the directory's drive. However, I looking through the elmfm thingy, and I didn't figure out how to access the contents of the jumpdrive. It's in fat32, so it should be readable. I can't figure out how to access it, save things to it, and whatnot.

I figure it'd be automatically mounted when I boot from USB via floppy, right?

How do I save settings on the jump drive?
How do I look through the contents of the jump drive?
How do I save things to the jumpdrive?

Posted by roberts on Feb. 20 2007,04:30
Read the readme file included within the zip.
Use a virtual hard drive, smbclient, samba, etc.

Posted by Genecks on Feb. 20 2007,04:45
Ok.

Let's say I save stuff, while being in the emulator and whatnot to this virtual drive. Can I mess with these files when I restart the computer and reboot into DSL?

I think the most basic thing I want to do at the moment is get the rogue desktopstyle, apply it, have it saved, reboot the computer, and boot into DSL on the pendrive with it being there. Of course, qemu makes me wonder about a lot of things.

1) I have that damned broadcom
2) I haven't figured it out in two years
3) I can actually download linux things for the DamnSL with qemu.

I eventually want to see if I can setup my wireless somehow while being in the emulator, and then save the settings.

Posted by ^thehatsrule^ on Feb. 20 2007,17:46
If you save to the virtual harddisk, I believe you can boot with the additional cheatcode "qemu"

1.
2. Post what broadcom model/revision you have, it might shed some light.
3. qemu is a sandbox and uses the host o/s connection

Therefore, due to #3, you can set up your wifi settings, but you will not be able to test it.

Posted by Genecks on Feb. 22 2007,04:41
What exactly is the virtual harddrive? Is that like a partition or something? Perhaps a logical drive on the physical drive? I read the readme yesterday, but I don't quite understand.

Do I need a HDD to install the virtual harddrive; can't I use my USB?

Does it set itself up in RAM? The HDD? The USB? Does the virtual harddrive exist after I shut down the computer?

I really don't want to use the hard drive. I want to boot and save to the USB.

For the record, DSL embedded is on the USB--not on my hard drive. Was I suppose to download embedded to use as a live version? I'm starting to think I was not suppose to download it as a USB-Live OS.

Posted by ^thehatsrule^ on Feb. 22 2007,06:36
virtual hdd = image file on any writeable media.
Posted by fredvej on Feb. 22 2007,16:15
When you run DSL 3.2 embedded using qemu, you can mount a directory on the USB drive and have read/write [EDIT: not write access, read later post] access to it.  Unfortunately, you cannot use the root directory on the USB drive, it must be a subdirectory.

On my USB drive I have made the directory /xtra/ , and under Windows I run qemu/DSL with this bat file :
----------------------------------------
for %%x in (%0) do set BatchPath=%%~dpsx
for %%x in (%BatchPath%) do set BatchPath=%%~dpsx

cd /d %BatchPath%

START qemu\qemu.exe -L qemu/ -no-kqemu -m 128 -localtime -kernel linux24 -initrd minirt24.gz -hda KNOPPIX/knoppix -hdb fat:%BatchPath%xtra -append "quiet noscsi nousb nofirewire atapicd noideraid noacpi acpi=off noapm noagp ide1=noprobe ide2=noprobe nomce frugal lang=dk host=fvedslqemu desktop=jwm noicons %1 %2 %3 %4 %5 %6 %7 %8 %9"
----------------------------------------

The backup.tar.gz is in /xtra/ , my DSL extensions are in /xtra/mydsl/ , and both are found and used during boot.

To run under Linux, use this script :
----------------------------------------
qemu/qemu -L qemu/ -no-kqemu -m 128 -localtime -kernel linux24 -initrd minirt24.gz -hda KNOPPIX/knoppix -hdb fat:xtra -append "quiet noscsi nousb nofirewire atapicd noideraid noacpi acpi=off noapm noagp ide1=noprobe ide2=noprobe nomce frugal lang=dk host=fvedslqemu desktop=jwm noicons $@"
----------------------------------------

When you boot from the USB drive, it is mounted on /cdrom and is writeable.

Posted by Genecks on Feb. 24 2007,09:33
Interesting. So, the scripts you've made are like automatic macros that start up when you boot. They basically setup everything for you, so you don't have to continue doing tedious work.
Posted by fredvej on Feb. 26 2007,18:58
Quote (Genecks @ Feb. 24 2007,10:33)
Interesting. So, the scripts you've made are like automatic macros that start up when you boot. They basically setup everything for you, so you don't have to continue doing tedious work.

No, the scripts _are_ the actual "boot" , they are used for running DSL emulated using qemu on either a Windows or a Linux host.

The commands starting with START qemu\qemu.exe or qemu/qemu must be on a single line in the scripts, they are folded in my posts.

I haven't found a way to attach files to a post, so you'll have to make do with cut'n'paste from the post.

When booting the physical host machine from USB, I use this in syslinux.cfg :

LABEL dsl
KERNEL linux24
APPEND ramdisk_size=100000 init=/etc/init initrd=minirt24.gz nomce noapic qemu frugal lang=dk host=fve3boot BOOT_IMAGE=knoppix desktop=jwm noicons mydsl=sda1/xtra/mydsl

(APPEND is one long line)

The USB must be sda1 at boot, otherwise the mydsl directory wont be found.  I use a different backup.tar.gz for the settings when booting directly from USB, and this one is in the root of the USB drive.

/Freddy

Posted by fredvej on Feb. 28 2007,15:12
OOOOOPS !  I made a mistake : Under Windows the folder on the USB-drive mounted as hdb1 is not writeable from qemu, I just checked.  You will have to share a directory on the host and use the SMBclient in qemu/DSL to connect to the host.

In the DSL program menu choose Net / SMBclient
- Domain : If not in a domain, put a space character in the domain field. A completely empty field won't work ???
- Machine : external IP-address of your Windows host (not the qemu 10.2... address)
- Share : name of the share on the Windows host
- Name : windows user for login
- Password : the windows user's password

The SMBclient starts with local directory in /home/dsl/ .  If you want to copy a file from an explicit given directory in DSL/qemu to the host, you must write where to put it, e.g.
Code Sample
put /mnt/hdb1/backup.tar.gz backup.tar.gz
If you write
Code Sample
put /mnt/hdb1/backup.tar.gz
you'll get "NT_STATUS_ACCESS_DENIED opening remote file \/mnt/hdb1/backup.tar.gz" because samba tries to put the file with complete pathname.

You may have to manipulate the software firewall on the Windows host to allow connection from qemu.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.