LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2010, 09:40 AM   #1
CrazyGangster
LQ Newbie
 
Registered: Feb 2010
Posts: 5

Rep: Reputation: 0
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

Last edited by CrazyGangster; 02-03-2010 at 10:01 AM.
 
Old 02-03-2010, 12:28 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
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.

Last edited by colorpurple21859; 02-03-2010 at 12:30 PM.
 
Old 02-03-2010, 08:24 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Might look at making a casper rw and add it to boot options. http://www.pendrivelinux.com/casper-...-from-windows/
 
Old 02-04-2010, 06:28 AM   #4
CrazyGangster
LQ Newbie
 
Registered: Feb 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the feedback

Quote:
Originally Posted by jefro View Post
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 View Post
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 View Post
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.

Last edited by CrazyGangster; 02-04-2010 at 06:59 AM.
 
Old 02-04-2010, 07:53 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
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.
 
Old 02-05-2010, 03:02 PM   #6
CrazyGangster
LQ Newbie
 
Registered: Feb 2010
Posts: 5

Original Poster
Rep: Reputation: 0
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)

Last edited by CrazyGangster; 02-05-2010 at 03:03 PM.
 
Old 02-15-2010, 09:17 AM   #7
CrazyGangster
LQ Newbie
 
Registered: Feb 2010
Posts: 5

Original Poster
Rep: Reputation: 0
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.

Last edited by CrazyGangster; 03-03-2010 at 10:45 AM. Reason: additional info
 
  


Reply

Tags
apt, damnsmalllinux, dsl, embedded, gcc, linux, make



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt aptitude commands not working - how to install packages w/ damn small linux? lenou Linux - Newbie 3 01-23-2010 09:00 AM
damn small linux embedded and cinelerra 1dude1 Linux - Software 0 02-18-2009 11:06 AM
I cant figure out how to save my stuff in Damn Small Linux Lord Hakk Linux - Software 1 06-01-2008 01:53 AM
Xampps on Damn Small Linux Embedded - not possible paulsiu DamnSmallLinux 6 12-06-2007 08:22 AM
damn small linux embedded question meatbleacher Linux - Newbie 0 12-10-2004 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration