I leave notes here that I find particularly worth remembering myself.
-
USB stick with Ubuntu Live system doesn't boot - why?
Glad it helped!Quote:THANK YOU! THANK YOU1 I'd been beating my head against the monitor and trying *every* version of creating an Ubuntu boot usb drive. You were *absolutely* right that the "small print": needs to be set up as an installable drive is totally useless without some of idea of *how* one makes an installable drive. I followed your steps here and it worked like a charm.
Posted 11-21-2012 at 04:54 AM by bittner
-
USB stick with Ubuntu Live system doesn't boot - why?
THANK YOU! THANK YOU1 I'd been beating my head against the monitor and trying *every* version of creating an Ubuntu boot usb drive. You were *absolutely* right that the "small print": needs to be set up as an installable drive is totally useless without some of idea of *how* one makes an installable drive. I followed your steps here and it worked like a charm.Posted 11-20-2012 at 08:03 AM by drkitty
-
USB stick with Ubuntu Live system doesn't boot - why?
Was that a question? Is there anything I can help you with? Have you tried step-by-step what I described above?Quote:I just formatted removable disk as fat32 boot from Ubuntu live. Reboot to physicaly remove thumb drive and return to 'Try' option before you insert disk into usb or slot to mount file system or ubuntu will ask to boot from serial drive2. From System Administration choose Create Boot Disk, format and set rw space to allow room for updates. First attempt gave disk full error.Posted 04-16-2012 at 07:21 AM by bittner
-
USB stick with Ubuntu Live system doesn't boot - why?
I just formatted removable disk as fat32 boot from Ubuntu live. Reboot to physicaly remove thumb drive and return to 'Try' option before you insert disk into usb or slot to mount file system or ubuntu will ask to boot from serial drive2. From System Administration choose Create Boot Disk, format and set rw space to allow room for updates. First attempt gave disk full error.Posted 01-21-2011 at 02:39 PM by grizlbr
-
Shortest command to calculate the sum of a column of output
Calculate using Bash when bc is not installed
A much better alternative to bc than using a lengthy for loop is using Bash's calculation capability directly. Interestingly, I've figured out, there are two ways of assigning a value to a variable this way:- (( A=1+1 ))
- A=$(( 1+1 ))
orCode:((SUM=$(dpkg-deb -c mypackage.deb | sed -e 's/.*root\s*//' -e 's/\s*2010-.*$//' | xargs | tr ' ' +)))
Code:SUM=$(($(dpkg-deb -c mypackage.deb | sed -e 's/.*root\s*//' -e 's/\s*2010-.*$//' | xargs | tr ' ' +)))
Posted 08-25-2010 at 03:12 AM by bittner
-
Howto build your own Debian repository
"generate" silently fails sometimes (workaround)
Sometimes, for some reason I have not yet fully figured out apt-ftparchive generate puts old (probably cached) data into the Packages file. You only note this problem when, e.g., the .deb file size has changed and the old size doesn't match the new size anymore. In this special case apt-get will then complain:
You can work around this issue using the packages command:Code:E: Failed to fetch http://.... Size mismatch
Of course, if your mirror hosts several components and architectures you have to loop over all of them to generate separate Packages files.Code:$ cd /home/bittner/Development/debian/mirror $ apt-ftparchive -c personal-archive.conf packages \ pool/personal/main > dists/personal/main/binary-i386/Packages $ apt-ftparchive -c personal-archive.conf release \ dists/personal > dists/personal/Release
Posted 08-06-2010 at 08:22 AM by bittner
-
Shortest command to calculate the sum of a column of output
Usually, bc should be installed on your Debian system. If you don't have it you could simply use a for loop that's built into bash:
Or probably easier to read:Code:SUM=0; for i in $(dpkg-deb -c mypackage.deb | sed -e 's/.*root\s*//' -e 's/\s*2010-.*$//' | xargs | tr ' ' +); do SUM=$(($SUM+$i)); done; echo $SUM
You will notice that this takes a while, because the for loop is slow. Here, stripping out the 0-value lines may make sense...Code:NUMBERS=$(dpkg-deb -c mypackage.deb | sed -e 's/.*root\s*//' -e 's/\s*2010-.*$//' | xargs | tr ' ' +) SUM=0; for i in $NUMBERS; do SUM=$(($SUM + $i)); done echo $SUM

Posted 06-02-2010 at 06:57 AM by bittner





