LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How save apt-get update or install in Damn Small Embedded? (http://www.linuxquestions.org/questions/linux-software-2/how-save-apt-get-update-or-install-in-damn-small-embedded-786448/)

CrazyGangster 02-02-2010 10:40 AM

How save apt-get update or install in Damn Small Embedded?
 
Hello Everyone

My problem is about persistence. I run dsl-vhd.bat.
How I can save sudo apt-get update and sudo apt-get install mypackage changes?
I don't know what is missing.

Thanks

colorpurple21859 02-03-2010 01:28 PM

on a fugal install of DSL the only two directories that changes get saved in are /opt and the home directory all other changes are lost at shutdown, unless you do modification,s according to the howto instructions. Anything you want to startup at boot have to add to /opt/bootlocal.sh.

jefro 02-03-2010 09:24 PM

Might look at making a casper rw and add it to boot options. http://www.pendrivelinux.com/casper-...-from-windows/

CrazyGangster 02-04-2010 07:28 AM

Thanks for the feedback

Quote:

Originally Posted by jefro (Post 3851649)
Might look at making a casper rw and add it to boot options.

I not boot Damn Small form USB. I’m running DSL in Windows 2000.
I already created a persistent file from qemu-img.exe named harddisk (like DSL-embedded manual say’s).
I still have to create a caster-rw file?
________________________________________________________________

Quote:

Originally Posted by colorpurple21859 (Post 3851089)
the only two directories that changes get saved in are /opt and the home directory all other changes are lost at shutdown, unless you do modification,s according to the howto instructions.

You mean HowTo Instructions about Persistence? http://www.damnsmalllinux.org/wiki/i...hp/Persistence

Lets see:
dsl@box:~$sudo su
dsl@box:~$mkdir /mnt/hdb/opt
dsl@box:~$cp -a /ramdisk/opt/ /mnt/hdb/opt
dsl@box:~$mkdir /mnt/hdb/home
dsl@box:~$cp -a /ramdisk/home/dsl /mnt/hdb/home

all done, except… dsl home=hdb opt=hdb
What boot loader? Here I can change my boot options?
I have to do this everytime I install new packages?

Quote:

Originally Posted by colorpurple21859 (Post 3851089)
Anything you want to startup at boot have to add to /opt/bootlocal.sh.

I want to install GCC (sudo apt-get install gcc). How I kown what I have to add to bootlocal.sh to startup gcc?

Another idea I have is disable the /ramdisk, this solves my problem?
Here is my DSL. http://dl.dropbox.com/u/3059486/dsl-...ded%20diogo.7z
Maybe can help. Unpack, and run dsl-vhd.bat.

Thanks ppl.

colorpurple21859 02-04-2010 08:53 PM

try adding the path of gcc to your filetool.lst. I think it will be in /usr/lib/ or copy the gcc directory to /opt and make a link in /usr/bin for the new location in /opt and put a line in /opt/bootlocal.sh to make the link on each bootup, there are probably some configuration files in /etc that will have to be added to the filetool.lst also. but not sure. If I understand it right the filetool.lst is where files are listed that you want to stay persistent.

CrazyGangster 02-05-2010 04:02 PM

Hello again colorpurple

I’m not sure if I do everything right. I add to .filetool.lst the following:

home/dsl
usr/lib
opt
bin

and for bootlocal.sh:

usr/lib/gcc-2.95 (boot: No such file or directory) – I don’t know why. I see the file after boot
mnt/hdb/mydsl/gcc-2.95.dsl (boot: Permission Denied)

CrazyGangster 02-15-2010 10:17 AM

Ok people

After weeks of exhaustive search I finally found the answer ->http://www.damnsmalllinux.org/f/topic-3-9-16695-0.html

I hadn't tested it yet but I think it works.

I will also try “sudo dpkg-i /mnt/hdb/your_pkg_folder/*.deb” in /opt/bootlocal.sh to install all my .deb packages without specify the package name each boot.

Important Note: You have to copy your .deb package from /var/cache/apt/archives/ to /mnt/hdb/... or to other persistent volume.


All times are GMT -5. The time now is 06:37 PM.