'ubuntu'에 해당되는 글 10건

Disk full at /boot of Ubuntu system after several months system update as follow

It is really inconvenient to maintain this issue.  Is Ubuntu default boot directory size 200MiB? Anyway, the following commands could remove unused linux-image at /boot


# uname -r
3.2.0-40-generic
# dpkg --list 'linux-image*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name             Version          Description
+++-================-================-================================================
un  linux-image      <none>           (no description available)
un  linux-image-3.0  <none>           (no description available)
ii  linux-image-3.2. 3.2.0-23.36      Linux kernel image for version 3.2.0 on 64 bit x
rc  linux-image-3.2. 3.2.0-24.39      Linux kernel image for version 3.2.0 on 64 bit x
rc  linux-image-3.2. 3.2.0-27.43      Linux kernel image for version 3.2.0 on 64 bit x
rc  linux-image-3.2. 3.2.0-29.46      Linux kernel image for version 3.2.0 on 64 bit x
rc  linux-image-3.2. 3.2.0-30.48      Linux kernel image for version 3.2.0 on 64 bit x
rc  linux-image-3.2. 3.2.0-31.50      Linux kernel image for version 3.2.0 on 64 bit x
rc  linux-image-3.2. 3.2.0-32.51      Linux kernel image for version 3.2.0 on 64 bit x
ii  linux-image-3.2. 3.2.0-33.52      Linux kernel image for version 3.2.0 on 64 bit x
ii  linux-image-3.2. 3.2.0-34.53      Linux kernel image for version 3.2.0 on 64 bit x
ii  linux-image-3.2. 3.2.0-35.55      Linux kernel image for version 3.2.0 on 64 bit x
ii  linux-image-3.2. 3.2.0-36.57      Linux kernel image for version 3.2.0 on 64 bit x
ii  linux-image-3.2. 3.2.0-37.58      Linux kernel image for version 3.2.0 on 64 bit x
ii  linux-image-3.2. 3.2.0-38.61      Linux kernel image for version 3.2.0 on 64 bit x
ii  linux-image-3.2. 3.2.0-39.62      Linux kernel image for version 3.2.0 on 64 bit x
ii  linux-image-3.2. 3.2.0-40.64      Linux kernel image for version 3.2.0 on 64 bit x
ii  linux-image-3.2. 3.2.0-41.66      Linux kernel image for version 3.2.0 on 64 bit x
in  linux-image-3.2. <none>           (no description available)un  linux-image-serv <none>           (no description available)

root@halla:/home/jhlee# ls /boot/
abi-3.2.0-23-generic     config-3.2.0-36-generic      initrd.img-3.2.0-39-generic  System.map-3.2.0-40-generic
abi-3.2.0-33-generic     config-3.2.0-37-generic      initrd.img-3.2.0-40-generic  System.map-3.2.0-41-generic
abi-3.2.0-34-generic     config-3.2.0-38-generic      initrd.img-3.2.0-41-generic  vmlinuz-3.2.0-33-generic
abi-3.2.0-35-generic     config-3.2.0-39-generic      lost+found                   vmlinuz-3.2.0-34-generic
abi-3.2.0-36-generic     config-3.2.0-40-generic      memtest86+.bin               vmlinuz-3.2.0-35-generic
abi-3.2.0-37-generic     config-3.2.0-41-generic      memtest86+_multiboot.bin     vmlinuz-3.2.0-36-generic
abi-3.2.0-38-generic     grub                         System.map-3.2.0-23-generic  vmlinuz-3.2.0-37-generic
abi-3.2.0-39-generic     initrd.img-3.2.0-23-generic  System.map-3.2.0-33-generic  vmlinuz-3.2.0-38-generic
abi-3.2.0-40-generic     initrd.img-3.2.0-33-generic  System.map-3.2.0-34-generic  vmlinuz-3.2.0-39-generic
abi-3.2.0-41-generic     initrd.img-3.2.0-34-generic  System.map-3.2.0-35-generic  vmlinuz-3.2.0-40-generic
config-3.2.0-23-generic  initrd.img-3.2.0-35-generic  System.map-3.2.0-36-generic  vmlinuz-3.2.0-41-generic
config-3.2.0-33-generic  initrd.img-3.2.0-36-generic  System.map-3.2.0-37-generic
config-3.2.0-34-generic  initrd.img-3.2.0-37-generic  System.map-3.2.0-38-generic
config-3.2.0-35-generic  initrd.img-3.2.0-38-generic  System.map-3.2.0-39-generic


# apt-get remove linux-image-3.2.0-34-generic
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  linux-image-3.2.0-34-generic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 149 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 337077 files and directories currently installed.)
Removing linux-image-3.2.0-34-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-34-generic /boot/vmlinuz-3.2.0-34-generic
update-initramfs: Deleting /boot/initrd.img-3.2.0-34-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-34-generic /boot/vmlinuz-3.2.0-34-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-41-generic
Found initrd image: /boot/initrd.img-3.2.0-41-generic
Found linux image: /boot/vmlinuz-3.2.0-40-generic
Found initrd image: /boot/initrd.img-3.2.0-40-generic
Found linux image: /boot/vmlinuz-3.2.0-39-generic
Found initrd image: /boot/initrd.img-3.2.0-39-generic
Found linux image: /boot/vmlinuz-3.2.0-38-generic
Found initrd image: /boot/initrd.img-3.2.0-38-generic
Found linux image: /boot/vmlinuz-3.2.0-37-generic
Found initrd image: /boot/initrd.img-3.2.0-37-generic
Found linux image: /boot/vmlinuz-3.2.0-36-generic
Found initrd image: /boot/initrd.img-3.2.0-36-generic
Found linux image: /boot/vmlinuz-3.2.0-35-generic
Found initrd image: /boot/initrd.img-3.2.0-35-generic
Found memtest86+ image: /memtest86+.bin
done


저작자 표시 비영리 변경 금지
신고
블로그 이미지

citadel

memory, life, and logs

  • check the current kernel 
    [] uname -a
    Linux coffee 2.6.32-27-generic #49-Ubuntu SMP ...
  • [] cd boot
  • [] ls vmlinuz-*
    vmlinuz-2.6.32-26-generic
  • [] apt-get remove linux-image-2.6.32-26-generic
I didn't try to run apt-get autoremove,  but I don't know it works or not
저작자 표시 비영리 변경 금지
신고

'Computer > linux' 카테고리의 다른 글

Linus says: “C++ is a horrible language”  (0) 2011.02.16
Clean up old kernel in grub list (Ubuntu)  (0) 2011.01.28
Using parted, add a new 2TiB HDD  (0) 2011.01.26
ssh connection without typing password  (0) 2011.01.19
블로그 이미지

citadel

memory, life, and logs

Compilation

To compile the sources of gsview-4.9, gtk-config is necessary.

apt-get install libgtk1.2-dev
wget -c http://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/gsv49src.zip

  unzip -aa gsv49src.zip
  unzip -o gsv49src.zip "gsview-4.9/binary/*"
  cd gsview-4.9
  cp srcunx/unx.mak Makefile
  make

cd gsview-4.9/bin/
gsview*  gvxct.htm  gvxde.htm  gvxen.htm  gvxes.htm  gvxfr.htm  gvxgr.htm  gvxit.htm  gvxnl.htm  gvxru.htm  gvxse.htm  gvxsk.htm

check your gs version
~$ gs -version
GPL Ghostscript 8.61 (2007-11-21)
Copyright (C) 2007 Artifex Software, Inc.  All rights reserved

Options -> Advanced Configure.. ->

Ghostscript Version -> 861
Ghostscript Shared Object : libgs.so.8

-> OK

Options -> Save Settings Now

The more detailed configuration will be found in the old posts.

2007/08/24 - [computer/linux] - gsview on ubuntu linux (6.10)
2008/01/01 - [computer/linux] - Gtk-WARNING **: Unable to locate loadable module in module_path


Installation

make install

more



Modification

emacs /usr/local/bin/gsview-help &

#!/bin/sh
# This script runs the GSview help
# $1 is the help file name
# $2 is the topic name

if [ -z "$1" ]
then
  echo "Usage: $0 URL [TAG]"
  echo "  URL: The URL to open"
  echo "  TAG: The anchor at that url"
  exit 1
fi

if [ -z "$2" ]
then
  TAG=''
else
  TAG="#$2"
fi

if mozilla -remote openFile\(file://$1$TAG\) ; then
    exit 0
else
    mozilla file://$1$TAG
fi
exit 0

you should change mozilla to firefox .
신고
블로그 이미지

citadel

memory, life, and logs

티스토리 툴바