The Following 4 Users Say Thank You to ivgalvez For This Useful Post: | ||
|
2012-03-06
, 22:23
|
Posts: 268 |
Thanked: 1,053 times |
Joined on May 2010
@ The Netherlands
|
#242
|
I have again lost my history. Now there is no garbage in files but I couldn't trigger any command pressing CTRL+R.
I have checked that file .ash_history is empty. There is also a file .ash_history.1918.new that is empty and a ash_history.3055.new with only 100 very old commands.
trap 'NAME=`date +%Y%m%d_%H%M%S`_bak && \ cp /home/user/.ash_history /home/user/hist_bak/$NAME' 0
The Following 2 Users Say Thank You to iDont For This Useful Post: | ||
|
2012-03-06
, 22:44
|
Posts: 268 |
Thanked: 1,053 times |
Joined on May 2010
@ The Netherlands
|
#243
|
|
2012-03-06
, 23:03
|
Posts: 38 |
Thanked: 18 times |
Joined on Apr 2010
|
#244
|
|
2012-03-07
, 08:37
|
Posts: 268 |
Thanked: 1,053 times |
Joined on May 2010
@ The Netherlands
|
#245
|
Hi,
Got a problem with creating user and group, at least, the postinstall script from the icecast2 deb had!
Can't install this app and busybox power report a prob in user and group creation, any ideas?
adduser --system --disabled-password --disabled-login \ --home /usr/share/icecast2 --no-create-home --group icecast
apt-get install adduser
|
2012-03-07
, 09:25
|
Posts: 1,397 |
Thanked: 2,126 times |
Joined on Nov 2009
@ Dublin, Ireland
|
#246
|
Hmm, that's real unfortunate news to hear.
When you close ash, it'll append all of its new history to .ash_history, completely re-load .ash_history (other instances of ash might have written to it, and re-loading trims it to MAX_HISTORY), write the trimmed history out to .ash_history.$PID.new, and rename .ash_history.$PID.new to .ash_history.
The used code for this is pretty solid (look for save_history() in libbb/lineedit.c), and I don't see any direct cause as to why you lost your history . The only clue we have is that rename() somehow failed, since you still got .ash_history.XXXX.new files. It's rather odd though that you experienced this twice - the only other report is from Mentalist Traceur, but he mentioned that the device was unstable.
You could add something like the following to your ~/.profile file. This will backup your old history to /home/user/hist_bak/ when you close ash. It won't solve the issue you're experiencing, but at least you won't lose all of your history. I'm sorry I can't be of more help.
Code:trap 'NAME=`date +%Y%m%d_%H%M%S`_bak && \ cp /home/user/.ash_history /home/user/hist_bak/$NAME' 0
|
2012-03-08
, 22:45
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#247
|
the only other report is from Mentalist Traceur, but he mentioned that the device was unstable.
|
2012-03-09
, 08:04
|
Posts: 38 |
Thanked: 18 times |
Joined on Apr 2010
|
#248
|
Thanks for reporting.
The line that causes this error in the postinst script is:
However, Maemo isn't shipped with adduser at all! Busybox-power does provide an adduser applet, but it takes different arguments than the postinst tries to use.Code:adduser --system --disabled-password --disabled-login \ --home /usr/share/icecast2 --no-create-home --group icecast
The solution is rather simple though. Execute:
and icecast2 will install flawlessly . The postrm script also uses utilities from the adduser package (namely: deluser and groupdel), so you shouldn't uninstall the package right after installing icecast2. It seems like the package maintainer simply forgot to add a dependency on adduser to icecast2.Code:apt-get install adduser
The Following User Says Thank You to deed For This Useful Post: | ||
|
2012-03-19
, 09:27
|
Posts: 268 |
Thanked: 1,053 times |
Joined on May 2010
@ The Netherlands
|
#250
|
Happened again, this time after using preenv from the command line. Could it be related?
The Following User Says Thank You to iDont For This Useful Post: | ||
I have checked that file .ash_history is empty. There is also a file .ash_history.1918.new that is empty and a ash_history.3055.new with only 100 very old commands.