Getting the ICO files.
1. Use find to create a list of ICO files for the tar to use.
2. Use the list with the tar command and create the archive.
$ find . -name "*.ico" -print > ICOFiles.txt
$ tar -c -v -T ICOFiles.txt -f ICONs.tar
Friday, November 13, 2009
When Linux Locks Up
The following are some key combinations to get around a locked up Linux system:
This was gleaned from the following link: http://ubuntuforums.org/showthread.php?t=221174
- Shutdown X11: Ctrl-Alt-Backspace
- Switch from X11 to text login: Ctrl-Alt-F1, F2, F3 (don't do with a dual monitor setup in XP, you will lose one of your monitors :-()
- Ctrl-Alt-Del and wait 30 seconds for init to shutdown your computer
- If this fails use SAK(?). While holding down Alt-PrintScreen (SysRq key Combo) press the following keys
- 'S' to sync drives
- 'U' to unmount drives
- 'B' to reboot
- If all this fail, then take your life in yours hands and hit the power switch :-(
This was gleaned from the following link: http://ubuntuforums.org/showthread.php?t=221174
Wednesday, November 11, 2009
Pulling PNGs from ICO files.
I created the following two Borne scripts for doing this. This first only pulls the images with a palette of 24 or 32 bits. The second pulls them all.
#!/bin/sh
# Run this in to top level of the directory set of the ICOs
# you want to extract.echo Creating folders to hold the PNGs pulled from the ICO files.
# Only PNGs with a color pallete of 24 or greater will be extracted.
echo Creating folders to hold the PNGs pulled from the ICO files.
find . -depth -name "*.ico" -exec mkdir {}.dir \;
echo Pulling the PNGs from the ICO files.
find . -depth -name "*.ico" -exec icotool -p 0 -o {}.dir -x '{}' \;
#!/bin/sh
# Run this in to top level of the directory set of the ICOs
# you want to extract.
echo Creating folders to hold the PNGs pulled from the ICO files.
find . -depth -name "*.ico" -exec mkdir {}.dir \;
echo Pulling the PNGs from the ICO files.
find . -depth -name "*.ico" -exec icotool -o {}.dir -x '{}' \;
The site for the icotool is here: http://www.nongnu.org/icoutils/
There is no longer a doc folder for icotool. Everything has been moved to the man page. I learned this reading through the release notes here: http://www.nongnu.org/icoutils/NEWS
The site for creating the shell is here: http://steve-parker.org/sh/variables1.shtml
This is a discussion on using the icotool: http://ubuntuforums.org/showthread.php?t=322702
This is a discussion of the ICO file format: http://en.wikipedia.org/wiki/ICO_%28file_format%29
This is also a discussion of the MAC icon files: http://en.wikipedia.org/wiki/Apple_Icon_Image
This is a list of packages used with or on icons: http://en.wikipedia.org/wiki/List_of_icon_software
This is a nice discussion of the find command: http://linux.about.com/od/commands/l/blcmdl1_find.htm
#!/bin/sh
# Run this in to top level of the directory set of the ICOs
# you want to extract.echo Creating folders to hold the PNGs pulled from the ICO files.
# Only PNGs with a color pallete of 24 or greater will be extracted.
echo Creating folders to hold the PNGs pulled from the ICO files.
find . -depth -name "*.ico" -exec mkdir {}.dir \;
echo Pulling the PNGs from the ICO files.
find . -depth -name "*.ico" -exec icotool -p 0 -o {}.dir -x '{}' \;
#!/bin/sh
# Run this in to top level of the directory set of the ICOs
# you want to extract.
echo Creating folders to hold the PNGs pulled from the ICO files.
find . -depth -name "*.ico" -exec mkdir {}.dir \;
echo Pulling the PNGs from the ICO files.
find . -depth -name "*.ico" -exec icotool -o {}.dir -x '{}' \;
The site for the icotool is here: http://www.nongnu.org/icoutils/
There is no longer a doc folder for icotool. Everything has been moved to the man page. I learned this reading through the release notes here: http://www.nongnu.org/icoutils/NEWS
The site for creating the shell is here: http://steve-parker.org/sh/variables1.shtml
This is a discussion on using the icotool: http://ubuntuforums.org/showthread.php?t=322702
This is a discussion of the ICO file format: http://en.wikipedia.org/wiki/ICO_%28file_format%29
This is also a discussion of the MAC icon files: http://en.wikipedia.org/wiki/Apple_Icon_Image
This is a list of packages used with or on icons: http://en.wikipedia.org/wiki/List_of_icon_software
This is a nice discussion of the find command: http://linux.about.com/od/commands/l/blcmdl1_find.htm
Tuesday, November 10, 2009
Bastille Linux
Bastille Linux
Site Page: http://bastille-linux.sourceforge.net/
An open source program used to make informed discussions to harden a linux, Mac or unix system. Covers most basic Linux distributions like Debian (Ubuntu), Redhat, Gentoo, SuSE, Mendriva, and TuboLinux. Implemented as a interactive hardening script
Wikipedia page: http://en.wikipedia.org/wiki/Bastille_Unix
Ubuntu page: https://help.ubuntu.com/community/BastilleLinux
Site Page: http://bastille-linux.sourceforge.net/
An open source program used to make informed discussions to harden a linux, Mac or unix system. Covers most basic Linux distributions like Debian (Ubuntu), Redhat, Gentoo, SuSE, Mendriva, and TuboLinux. Implemented as a interactive hardening script
Wikipedia page: http://en.wikipedia.org/wiki/Bastille_Unix
Ubuntu page: https://help.ubuntu.com/community/BastilleLinux
Thursday, October 29, 2009
'Could not download the upgrades' Fix
I got the message trying to update from Ubuntu 9.04 to Ubuntu 9.10.
The fix is to download the install CD from Ubuntu 9.10 Download. Install the ISO to a CD.
From the System -> Administration -> Software Sources select the go to the Third-Party Software tab and select the Add CD-ROM button.
With the CD now in the selection list the missing packages will be found.
These are the packages I was missing:
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/python2.6/libpython2.6_2.6.4-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/python2.6/python2.6_2.6.4-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/python2.6/python2.6-minimal_2.6.4-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/f/fuse/fuse-utils_2.7.4-1.1ubuntu4.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/f/fuse/libfuse2_2.7.4-1.1ubuntu4.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/empathy/libempathy-common_2.28.1.1-0ubuntu1_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/empathy/libempathy30_2.28.1.1-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/x/xsplash/ubuntu-xsplash-artwork_0.8.5-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/x/xsplash/xsplash_0.8.5-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.4.0-3ubuntu5.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/samba/libsmbclient_3.4.0-3ubuntu5.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/samba/smbclient_3.4.0-3ubuntu5.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/samba/samba-common_3.4.0-3ubuntu5.1_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/samba/samba-common-bin_3.4.0-3ubuntu5.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/u/update-manager/update-manager_0.126.7_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/u/update-manager/update-manager-core_0.126.7_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/b/binutils/binutils_2.20-0ubuntu2_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/b/binutils/binutils-static_2.20-0ubuntu2_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/empathy/libempathy-gtk-common_2.28.1.1-0ubuntu1_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/empathy/libempathy-gtk28_2.28.1.1-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/empathy/empathy-doc_2.28.1.1-0ubuntu1_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/empathy/empathy_2.28.1.1-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/a/antlr/libantlr-java_2.7.7-11ubuntu2_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/grub2/grub-common_1.97~beta4-1ubuntu4_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/n/nvidia-common/nvidia-common_0.2.15.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/t/totem/totem-plugins_2.28.2-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/t/totem/totem-gstreamer_2.28.2-0ubuntu1_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/t/totem/totem-mozilla_2.28.2-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/t/totem/totem-common_2.28.2-0ubuntu1_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/t/totem/totem_2.28.2-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
The fix is to download the install CD from Ubuntu 9.10 Download. Install the ISO to a CD.
From the System -> Administration -> Software Sources select the go to the Third-Party Software tab and select the Add CD-ROM button.
With the CD now in the selection list the missing packages will be found.
These are the packages I was missing:
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/python2.6/libpython2.6_2.6.4-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/python2.6/python2.6_2.6.4-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/python2.6/python2.6-minimal_2.6.4-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/f/fuse/fuse-utils_2.7.4-1.1ubuntu4.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/f/fuse/libfuse2_2.7.4-1.1ubuntu4.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/empathy/libempathy-common_2.28.1.1-0ubuntu1_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/empathy/libempathy30_2.28.1.1-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/x/xsplash/ubuntu-xsplash-artwork_0.8.5-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/x/xsplash/xsplash_0.8.5-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.4.0-3ubuntu5.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/samba/libsmbclient_3.4.0-3ubuntu5.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/samba/smbclient_3.4.0-3ubuntu5.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/samba/samba-common_3.4.0-3ubuntu5.1_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/samba/samba-common-bin_3.4.0-3ubuntu5.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/u/update-manager/update-manager_0.126.7_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/u/update-manager/update-manager-core_0.126.7_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/b/binutils/binutils_2.20-0ubuntu2_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/b/binutils/binutils-static_2.20-0ubuntu2_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/empathy/libempathy-gtk-common_2.28.1.1-0ubuntu1_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/empathy/libempathy-gtk28_2.28.1.1-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/empathy/empathy-doc_2.28.1.1-0ubuntu1_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/e/empathy/empathy_2.28.1.1-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/a/antlr/libantlr-java_2.7.7-11ubuntu2_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/grub2/grub-common_1.97~beta4-1ubuntu4_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/n/nvidia-common/nvidia-common_0.2.15.1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/t/totem/totem-plugins_2.28.2-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/t/totem/totem-gstreamer_2.28.2-0ubuntu1_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/t/totem/totem-mozilla_2.28.2-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/t/totem/totem-common_2.28.2-0ubuntu1_all.deb 404 Not Found [IP: 130.239.18.137 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/t/totem/totem_2.28.2-0ubuntu1_i386.deb 404 Not Found [IP: 130.239.18.137 80]
'What do you do with a drunken Linux'
My Ubuntu 9.04 system is locked up. I was running the Update Manager with another copy of Synaptic open. I am also running Synergy.
The focus in in the error dialog. However, I have no mouse and no response from the keyboard.
I have waited about 10 minutes. Looks like it is time to force a shutdown.
Steve's help:
Found X11 user with who command. Search ps for tty7 and than kill the user. That got be back to the X11 login.
Ctrl-Alt-1 through Ctrl-Alt-6 send me to the command line. Ctrl-Alt-7 send me to X11. Also Alt-7 will work.
The focus in in the error dialog. However, I have no mouse and no response from the keyboard.
I have waited about 10 minutes. Looks like it is time to force a shutdown.
Steve's help:
Found X11 user with who command. Search ps for tty7 and than kill the user. That got be back to the X11 login.
Ctrl-Alt-1 through Ctrl-Alt-6 send me to the command line. Ctrl-Alt-7 send me to X11. Also Alt-7 will work.
Swap Size and Hibernation
I had never considered this before. Hibernation requires that the swap partition size be at least as large as the system's physical size. Found this little tidbit of information in the release notes for Ubuntu 9.10. This is more important on my portables.
Subscribe to:
Posts (Atom)