Version 17 (modified by mitty, 13 years ago) (diff) |
---|
Ubuntu tips
- Ubuntuの日本語環境 | Ubuntu Japanese Team
- 起動オプションの設定方法 - Ubuntu Japanese Wiki
- Ubuntu/自動アップデートさせる - TOBY SOFT wiki
- Automatic Updates
- PinningHowto - Community Ubuntu Documentation
- (Linux) Ubuntuで不要なサービスをsysv-rc-initで無効化する (r271-635)
インストール時に全体的に参考になるサイト
hardy backports
- sudo vi /etc/apt/sources.list.d/backports.list
# hardy deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe
check update with cron
cron-apt
- 設定が煩雑
- confが長い
- 複雑なことをするには向いている
- デフォルトでは、パッケージの自動ダウンロードを行うが、対象がdist-upgradeになっていて良くない
apticron
- cron-aptに比べて設定項目はかなり少ない
- メール本文が冗長
解法
- 以下のようなスクリプトを作成してcron.daily対応 => source:/trunk/TipAndDoc/cron.daily/apt-cron
#!/bin/sh set -e /usr/bin/aptitude update > /dev/null 2>&1 if [ `/usr/bin/aptitude -s -y safe-upgrade | /bin/grep -c ^0` -eq 0 ]; then /usr/bin/aptitude -s -y safe-upgrade | /bin/grep '^[ T0-9]' fi
- 以下のようなメールが来る
/etc/cron.hourly/apt-cron: The following packages have been kept back: linux-image-server linux-server ntfs-3g The following packages will be upgraded: cron ntp ntpdate 3 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
poweroff with power button
- install package => acpid
- 必要に応じて /etc/acpi/events/powerbtn を編集
event=button[ /]power action=/etc/acpi/powerbtn.sh
Wubi
- #25
- NTFS上に仮想ディスクを作り、UbuntuとWindowsをデュアルブート出来るようにするツール
- https://wiki.ubuntulinux.jp/UbuntuTips/Install/WubiGuide
- 「Windowsを「休止状態」->再起動->Ubuntu」は不可
- 「休止状態」にあることをWindows側のbootloaderが検知して、問答無用で休止状態から復旧するためと思われる
search header files
- Location of header file - Ubuntu Forums
One very nice tool for finding a package for certain file is apt-file
- $ sudo aptitude install -R apt-file
apt-file curl{a} libapt-pkg-perl{a} libconfig-file-perl{a} libcurl3{a} liblist-moreutils-perl{a}
- $ sudo apt-file update
Downloading complete file http://jp.archive.ubuntu.com/ubuntu/dists/lucid/Contents-i386.gz (snip)
- $ apt-file search ncurses.h
doc-linux-ja-html: /usr/share/doc/HOWTO/ja-html/LFS-BOOK/appendixa/ncurses.html doc-linux-ja-html: /usr/share/doc/HOWTO/ja-html/LFS-BOOK/chapter05/ncurses.html doc-linux-ja-html: /usr/share/doc/HOWTO/ja-html/LFS-BOOK/chapter06/ncurses.html libncurses5-dev: /usr/include/ncurses.h libncursesw5-dev: /usr/include/ncursesw/ncurses.h
- $ sudo aptitude install -R apt-file
11.04 Natty Narwhal
tty7
- install from https://help.ubuntu.com/community/Installation/MinimalCD
- no login prompt
- Ctrl+Alt+F1~F6でtty7以外に移れば良い
- Bug #695658 in grub2 (Ubuntu): “grub2 configuration has vt.handoff=7 even when X11 is not installed”
The following line in /etc/grub.d/10_linux is present in Natty but not Maverick:
GRUB_CMDLINE_EXTRA="$GRUB_CMDLINE_EXTRA vt.handoff=7"
And then these were the steps I took, to confirm my analysis of the bug:
- (1) Edit /etc/grub.d/10_linux (e.g. "sudo nano -w /etc/grub.d/10_linux") and comment out the line containing "vt.handoff", or change the number from 7 to some lower number. (I tried it both ways; they both worked.)
- (2) Run "sudo update-grub" to apply the new configuration.
- (3) Reboot. A usable virtual terminal with a login prompt comes up automatically.
- Bug #761830 in grub2 (Ubuntu): “grub2 still hands off to blank tty7 on non-Server command-line-only systems”
- https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/761830/comments/16
After reading this bug I've commented out the "for word in $GRUB_CMDLINE_LINUX_DEFAULT; do" clause in /etc/grub.d/10_linux, and also changed GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub to "noplymouth" instead of "quiet splash", and now my boot is working great and I get the expected login prompt.
- https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/761830/comments/16
Attachments (1)
- 11.04-no_login_prompt.png (39.4 KB) - added by mitty 13 years ago.
Download all attachments as: .zip