Ubuntu:Edgy ja/TipsAndTricks

From

Contents

TipsAndTricks

How to enable lame for FFMPEG (needed to encode FLV with sound)

KINO FLVs silent? You need to recompile FFMPEG with LAME enabled. FFMPEG can be installed via apt-get as a package, but is not able encode MP3, which is the audio stream in FLV video (like Google & YouTube).

sudo apt-get install lame gcc
  • Download and extract FFMPEG source to current working directory
sudo apt-get source ffmpeg
sudo tar fvxz ffmpeg_[complete with actual filename]
  • Compile FFMPEG from source
cd ffmpeg-[complete with actual directory name]
sudo ./configure --enable-mp3lame
sudo make
sudo make install

If an application you are using employs FFMPEG to encode FLV, it should now work properly. You can also call FFMPEG directly from the command line. The extension/suffix of the outfile tells FFMPEG which audio or video format to encode to.

ffmpeg [-i infile] [outfile]

How to enable smooth fonts

gedit ~/.fonts.conf
  • Paste in this text:
<?xml version=”1.0” ?>
<!DOCTYPE fontconfig SYSTEM “fonts.dtd”>
<fontconfig>
<match target=”font”>
<edit name=”autohint” mode=”assign”>
<bool>true</bool>
</edit>
</match>
</fontconfig>
  • You’ll have to log out and back in to see the difference.

コンピュータを再起動せずに、GNOMEを再起動するには

'Ctrl + Alt + Backspace'を同時に押してください。

もしくは

sudo /etc/init.d/gdm restart

GNOME起動時にNum Lockをオンにするには

sudo apt-get install numlockx
sudo cp /etc/X11/gdm/Init/Default /etc/X11/gdm/Init/Default_backup
gksudo gedit /etc/X11/gdm/Init/Default
  • 以下の行を探してください。
...
exit 0
  • その直前に以下を追記してください。
if [ -x /usr/bin/numlockx ]; then
 /usr/bin/numlockx on
fi

Caps LockキーをもうひとつのControlキーとして再割り当てするには

gksudo gedit /etc/console-tools/remap
コンソールでは
  • 以下の箇所:
#s/keycode  58 = Caps_Lock/keycode  58 = Control/;

s/keycode  58 = Caps_Lock/keycode  58 = Control/;

に変更します。

  • 作業を保存します。
sudo /etc/init.d/console-screen.sh
  • 試しに使ってみます。
In X Windows
gksudo gedit ~/.Xmodmap
  • Add this:
keycode 66 = Control_L
clear Lock
add Control = Control_L


  • Now, apply the changes.
xmodmap ~/.Xmodmap
  • To apply them on startup
    • If ~/.xinitrc does not exist,
cp /etc/X11/xinit/xinitrc ~/.xinitrc
  • In all cases
gedit ~/.xinitrc
  • Make the first line this:
xmodmap ~/.Xmodmap
  • Restart X (Ctrl - Alt - Backspace)
  • Log In, a dialog should pop up, add .Xmodmap to the left side with the add button, and Save.

GNOMEにログインしたときにプログラムを起動するには

自動起動するプラグラムのタブ -> 追加/編集/削除

Ubuntuマシンを高速化するには

  • この投稿を読んでください。

How to switch to Console mode in GNOME

Press 'Ctrl + Alt + F1' (F2 - F6)
  • To switch between consoles in Console mode
Press 'Alt + F1' (F2 - F6)
  • To switch back to GNOME mode
Press 'Alt + F7'

GNOMEでCtrl+Alt+BackspaceでXが再起動するのを無効にするには

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
gksudo gedit /etc/X11/xorg.conf
  • 以下をファイルの最後に追加してください。
Section "ServerFlags"
	Option		"DontZap"		"yes"
EndSection

GNOMEでCtrl+Alt+DelでSystem Monitorが開くのを有効にするには

gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_9 "<Control><Alt>Delete"
gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_9 "gnome-system-monitor"

GNOMEデスクトップを更新するには

killall nautilus

GNOMEパネルをリフレッシュするには

killall gnome-panel


Geditで自動保存を有効にして、かつsome_file~といったファイルが生成されないようにするには

/ -> apps -> gedit-2 -> preferences -> editor -> save -> create_backup_copy (印を外す)
/ -> apps -> gedit-2 -> preferences -> editor -> save -> auto_save (印をつける)

Naultilusですべての隠しファイルやフォルダを表示するには

  • #全体に共通する注意事項を読んでください。
  • 場所 -> ホームフォルダ
  • 一時的にNaultilusで隠しファイルやフォルダをすべて表示するには
'Ctrl + H'を押してください。
  • 常にNaultilusで隠しファイルやフォルダをすべて表示するには
編集メニュー -> 設定


表示タブ -> デフォルト表示 -> 隠しファイルとバックアップファイルを表示する (印をつける)

rootユーザとしてNautilusでファイル/フォルダをブラウズするには

gksudo gedit /usr/share/applications/Nautilus-root.desktop
  • 新しいファイルに以下を入力してください。
[Desktop Entry]
Name=File Browser (Root)
Comment=Browse the filesystem with the file manager
Exec=gksudo "nautilus --browser %U"
Icon=file-manager
Terminal=false
Type=Application
Categories=Application;System;
  • 編集したファイルを保存してください。
  • #GNOMEパネルをリフレッシュするにはを読んでください。
  • rootユーザとしてNautilusでファイル/フォルダをブラウズするには
    • アプリケーション-> システムツール -> File Browser (Root)

a "View in Terminal" Menu for Nautilus をインストールするには

sudo apt-get install nautilus-open-terminal
  • Nautilus -> Right-click on folder or background -> Open in Terminal

ファイル形式を開くデフォルトプログラムを変更するには

開き方タブ -> 追加"…で開く"プログラムを選択してください。"追加"をクリックしてください。 "…で開く"プログラムを選択する(印をつける)。

デフォルトのメールプログラムをMozilla Thunderbirdに変更するには

メール・リーダタブ -> デフォルトのメール・リーダ -> コマンド: mozilla-thunderbird %s

右クリックで、ファイルをrootとして開くには

gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ root
  • 開いたファイルに以下の行を入力してください。
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
	gksudo "gnome-open $uri" &
done
  • 編集したファイルを保存してください。
chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root


ファイルを右クリックする -> スクリプト -> Open as root

ターミナルモードで、ビープ音を無効にするには

編集メニュー -> 現在のプロファイル...


全般タブ -> 全般 -> 端末ベルを鳴らす (印を外す)

Mozilla Firefoxでmssプロトコルを扱うには

  • #全体に共通する注意事項を読んでください。
  • [[#マルチメディアプレイヤ(VLC)とMozilla Firefox用のプラグインをインストールするに

は]]を読んでください。

  • firefoxを起動してください。
  • urlとして、about:configと入力してください。

次にメインウィンドウ内のどこかで右クリックしてください。オプションを選択するための小さなボックスが現れます。"new"を選択し、次に"string"を選択してください。そして出てきたテキストフィールドに以下をコピーしてください。

network.protocol-handler.app.mms

その次のテキストフィールドに以下をコピーしてください。

/usr/bin/X11/vlc

さて、再び同じことをしますが、今度は"string"でなく"boolean"を選択してください。コピーする行は:

network.protocol-handler.external.mms

そして以下を設定してください。

true

Mozilla Firefoxでrtsp (realmedia)プロトコルを扱うには

  • firefoxを起動してください。
  • urlとして、about:configと入力してください。

次にメインウィンドウ内のどこかで右クリックしてください。オプションを選択するための小さなボックスが現れます。"new"を選択し、次に"string"を選択してください。そして出てきたテキストフィールドに以下をコピーしてください。

network.protocol-handler.app.rtsp

次のテキストフィールドには以下をコピーしてください。

/usr/bin/X11/realplay

さて、再び同じことをしますが、今度は"string"でなく"boolean"を選択してください。コピーする行は:

network.protocol-handler.external.rtsp

そして以下を設定してください。

true

How to load Web site faster in Mozilla Firefox

Address Bar -> about:config


Filter: ->
network.dns.disableIPv6 -> true
network.http.pipelining -> true
network.http.pipelining.maxrequests -> 8
network.http.proxy.pipelining -> true
  • Restart Mozilla Firefox

Mozilla Firefoxでリンク参照機能のビープ音を無効にするには

アドレスバー -> about:config


Filter: -> accessibility.typeaheadfind.enablesound -> false
  • Mozilla Firefoxを再起動してください。

How to apt-get the easy way (Synaptic)

  • #全体に共通する注意事項 を読んでください。
  • Step By Step Synaptic Package Manager Tutorials with Screenshots
  • System -> Administration -> Synaptic Package Manager
  • To enable the extra Universe and Multiverse repositories
    1. Settings -> Repositories
    2. In the Installation Media tab, click Add. There are three separate repositories; Dapper Drake, Security Updates and Updates. Select each repository and check Officially supported, Restricted copyright, Community maintained (Universe) and Non-free (Multiverse). Ensure you click OK between each repository to save your changes
    3. You should now see those three repositories under Channels. Make sure Officially supported, Restricted copyright, Community maintained (Universe) and Non-free (Multiverse) appears under each repository
  • To add backports and PLF (new versions of many applications. Unsupported. May contain illegal packages. Use at own risk.)
    1. Settings -> Repositories
    2. Click on Add and then Custom
    3. Paste the following four lines into the box and click Add Repository, one line at a time:
deb http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse


deb http://medibuntu.sos-sts.com/repo/ edgy free
deb http://medibuntu.sos-sts.com/repo/ edgy non-free
deb-src http://medibuntu.sos-sts.com/repo/ edgy free
deb-src http://medibuntu.sos-sts.com/repo/ edgy non-free
  • To refresh the list of known packages (equivalent to apt-get update)
Edit Menu -> Reload Package Information
  • To install all possible upgrades (equivalent to apt-get upgrade)
Edit Menu -> Mark All Upgrades... -> Default Upgrade
Edit Menu -> Apply Marked Changes
  • To search for a package (equivalent to apt-cache search package_name)
Edit Menu -> Search... Specify the package name
  • To install the selected package (equivalent to apt-get install package_name)
Select "package_name"
Package Menu -> Mark for Installation
Edit Menu -> Apply Marked Changes
  • To remove installed package (equivalent to apt-get remove package_name)
Select "package_name"
Package Menu -> Mark for Removal
Edit Menu -> Apply Marked Changes

拡張リポジトリにはどんなパッケージがありますか?

.debファイルをインストール/アンインストールするには

sudo dpkg -i package_file.deb
  • .debファイルをアンインストールするには
sudo dpkg -r package_name

How to find out which version of a package I have installed

dpkg -l packagename

.rpmファイルを.debファイルに変換するには

sudo alien package_file.rpm

How to compile .deb files from source

  • #全体に共通する注意事項 を読んでください。
  • #拡張リポジトリを追加するには を読んでください。
  • There are various programs available to help automate the process of create .deb files from source. For more information, see the links at the end of this section. A basic well tested method is described here.
  • Install the necessary software to build the source (build-essential may be all that is necessary, though there may be other dependencies) and checkinstall (which creates deb files).
sudo apt-get install checkinstall build-essential
  • In the directory where you have extracted the source, after you have run ./configure and make you can create a .deb file and install it with either of the following commands. The second -D option creates a .deb file in the directory that you can share with others or install without needing the source.
sudo checkinstall

or

sudo checkinstall -D
  • For more info go to CheckInstall home page and the Installing software on Ubuntu page. Autodeb uses a modified version of AutoApt to complete the entire process above including extraction from the .tar.gz file, however it is still in an early stage of development.

ディレクトリ内のすべてのファイルの名前を一度に変更するには

wget -c http://easylinux.info/uploads/mvb_1.6.tgz
sudo tar zxvf mvb_1.6.tgz -C /usr/share/
sudo chown -R root:root /usr/share/mvb_1.6/
sudo ln -fs /usr/share/mvb_1.6/mvb /usr/bin/mvb
  • ディレクトリ内の全ファイルの名前を一度に変更するには
mvb NEW_NAME

ディレクトリ内のすべての画像ファイルを一度に操作するには

sudo apt-get install imagemagick
wget -c http://easylinux.info/uploads/bbips.0.3.2.sh
sudo cp bbips.0.3.2.sh /usr/bin/bbips
sudo chmod 755 /usr/bin/bbips
  • ディレクトリ内のすべての画像ファイルを操作するには
bbips

システムワイドの環境変数を設定するには

sudo cp -p /etc/profile /etc/profile_backup
gksudo gedit /etc/profile
  • システムワイドの環境変数をファイルの最後に追加してください。
  • 編集したファイルを保存してください。

manの出力をファイルに保存するには

man command | col -b > file.txt

起動時のGRUBメニューを隠すには

sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
gksudo gedit /boot/grub/menu.lst
  • 以下の行を探してください。
...
#hiddenmenu
...
  • 以下と置き換えてください。
hiddenmenu
  • 編集したファイルを保存してください。

起動時のGRUBメニューの待ち時間を変更するには

sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
gksudo gedit /boot/grub/menu.lst
  • 以下の行を探してください。
...
timeout     3
...
  • 以下と置き換えてください。
timeout     秒数
  • 編集したファイルを保存してください。

GRUBメニューのデフォルトオペレーティングシステムを変更するには

sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
gksudo gedit /boot/grub/menu.lst
  • 以下の行を探してください。
...
default     0
...
  • 以下と置き換えてください。
default     X(番目の項目)
  • 編集したファイルを保存してください。

How to display Splash Image for GRUB menu on boot-up

e.g. Assumed that hd0,1 is the location of Ubuntu boot partition
wget -c http://easylinux.info/uploads/ubuntu.xpm.gz
chmod 644 ubuntu.xpm.gz
sudo mkdir /boot/grub/images
sudo cp ubuntu.xpm.gz /boot/grub/images/
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
gksudo gedit /boot/grub/menu.lst
  • Find this section
# menu.lst - See: grub(8), info grub, update-grub(8)
#      grub-install(8), grub-floppy(8),
#      grub-md5-crypt, /usr/share/doc/grub
#      and /usr/share/doc/grub-doc/.
...
  • Add the following line below it
splashimage (hd0,1)/boot/grub/images/ubuntu.xpm.gz
NOTE: If you have seperate boot partition use this line: splashimage (hd0,1)/grub/images/ubuntu.xpm.gz
  • Save the edited file

How to convert Wallpaper to Splash Image for GRUB menu

e.g. Assumed that wallpaper.png is the Wallpaper to be converted to Splash Image
splashimage.xpm.gz is the Splash Image for GRUB menu
ImageMagick is installed
convert -resize 640x480 -colors 14 wallpaper.png splashimage.xpm && gzip splashimage.xpm

GRUBメニューにひとつのカーネルしか表示しないようにするには

sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup-date +%F
gksudo gedit /boot/grub/menu.lst
  • 以下の行を探してください。
...
# howmany=all
...
  • 以下と置き換えてください。
# howmany=1

1ならば最新のカーネルを保持し、2ならば最新の2つを、というぐあいになります。#文字を消さないでください。メニューの更新は今後システムがカーネルを更新するたびに行われます。カーネル更新前ではありません。

  • 編集したファイルを保存してください。

How to force GDM to system beep when login screen ready

  • #全体に共通する注意事項 を読んでください。
  • This is useful on computers where headphones are usually plugged in, allowing them to utilize the speakers for this attention-getting task.
echo foo >> ~/foo.wav
  • System -> Administration -> Login Window -> Accessibility

Now make sure the "Login Screen Ready" check mark is checked. Click on the folder icon and navigate to your home folder and select "foo.wav".

rm foo.wav

The drop down menu should now say "(None)"

起動時に立ち上がるサービスを一時的にスキップするには

'Ctrl + C'を押してください。

起動時に立ち上がるサービスを常に無効/有効化するには

シャットダウンの際に/tmp/フォルダ内を消去するには

sudo cp /etc/init.d/sysklogd /etc/init.d/sysklogd_backup
gksudo gedit /etc/init.d/sysklogd
  • このセクションを見つけてください。
...
 stop)
  log_begin_msg "Stopping system log daemon..."
  start-stop-daemon --stop --quiet --oknodo --exec $binpath --pidfile $pidfile
  log_end_msg $?
...
  • 以下を上記の後に追加してください。
  rm -fr /tmp/* /tmp/.??*
  • 編集したファイルを保存してください。

コンソールモードで、以前の出力を見るためにスクロールアップ/スクロールダウンするには

'Shift + Page Up'を押してください。
  • 以前の出力からスクロールダウンするには
'Shift + Page Down'を押してください。

How to find out which version of Ubuntu I am using

cat /etc/issue


How to set up (automatic) background/wallpaper-changer application for GNOME

cd ~
wget http://members.chello.at/horst.jens/files/wallpaperchanger.py
chmod +x wallpaperchanger.py
~/wallpaperchanger.py
gedit ~/.wallpaperchanger/wallpaperchangerconfig.py
  • Edit all the lines not beginning with an "#" according to your needs. Save the file and close gedit.
  • To create an menu entry for wallpaperchanger:
Click the menuitems: Applications -> Accessoires -> Alacarte Menu Editor -> File -> New Entry:
Name: wallpaperchanger
command: ~/wallpaperchanger.py


  • To change desktop background every time you reboot your computer:
Click the menuitems: System -> Preferences -> Session -> Startup Programs -> Add:
~/wallpaperchanger.py

背景の自動変更を設定するにはどうすればいいですか(KDE)?

  • #全体に共通する注意事項を読んでください。
  • K メニュー -> システム設定 -> デスクトップ -> 背景 へ行ってください。
  • Slide show を選択してください。
  • Setup... を押してください。
  • Add... を押して、デスクトップの背景にしたい画像を追加してください。
  • 'Change picture after'を、希望の画像切り替え間隔に設定してください。
  • 'OK'を押してください。

他の言語用のキーボードレイアウトを追加するには

  • #全体に共通する注意事項を読んでください。
  • システム -> 設定 -> キーボード へ行ってください。
  • レイアウト を選択してください。
  • 追加... を押して、第二のキーボードレイアウトを追加してください。2つのレイアウトの併用は単純なほうで、Xorgでの最大は今のところ4です。
  • レイアウトのオプション を選択してください。
  • オプションのGroup Shift/Lock behaviour を展開してください。
  • キーボードレイアウトの切り替えを可能にするキーコンビネーションを選択してください。デフォルトは両方のAltキーの同時押しです。代用には一般にAlt+Shiftを使います。
  • 閉じる を押してください。

キーボード表示器アプレットを加えるには#キーボード(レイアウト)表示器アプレットを追加するには を参照してください。

How to add keyboard layouts toggle for other languages (Xfce)

  • use *.lst files on /etc/X11/xkb/rules to select 2nd_laguage_code
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,2nd_laguage_code
  • you can add it to a startup file, which will be set to be executed on startup, with the following lines (remember to 'chmod +x' the file):
#!/bin/tcsh
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,il

キーボード(レイアウト)表示器アプレットを追加するには

キーボード表示器アプレットがパネルに現れます。通常の言語は米国ではアメリカ英語でしょう。このアプレットを右クリックしてさらにオプションを設定することも、設定のしかたについて上記を参照することもできます。

特殊文字を入力するには

['"]の記されたキーはこれでデッドキーとなります。単独で押しても何も起こりませんが、直後に文字を押すと、その文字はアクセント記号つきで現れます。

  • ' + a = á
  • ' + e = é
  • 同様に、i-í, o-ó, y-ý, c-ć, z-ź, n-ń, l-ĺ, u-ú, r-ŕ
  • " + a = ä
  • " + e = ë
  • 同様に、y-ÿ, u-ü, i-ï, o-ö

同様に、` と文字で、à, è, ù, ì, òができます。同様に、~ と文字で、ã, ũ, ĩ, õ, ñができます。 'と"自体を入力するには、それぞれRightAlt+'とRightAlt+"を押してください。または、それぞれ'+<space>と"+<space>を押しても構いません。 RightAltを押しながら文字を打つことで利用できる文字は他にもあります。

  • RightAlt+q = ä
  • RightAlt+w = å
  • RightAlt+e = é
  • RightAlt+r = ®
  • RightAlt+t = þ
  • RightAlt+y = ü
  • RightAlt+u = ú
  • RightAlt+i = í
  • RightAlt+o = ó
  • RightAlt+p = ö
  • RightAlt+[ や ] で、それぞれ « や »。
  • RightAlt+a = á
  • RightAlt+s = ß
  • RightAlt+d = ð
  • RightAlt+l = ø
  • RightAlt+; = ¶
  • RightAlt+: = °
  • RightAlt+z = æ
  • RightAlt+c = ©
  • RightAlt+n = ñ
  • RightAlt+m = µ
  • RightAlt+, = ç
  • RightAlt+/ = ¿
  • RightAlt+1 = ¡
  • RightAlt+2 = ²
  • RightAlt+3 = ³
  • RightAlt+4 = ¤
  • RightAlt+5 = €
  • RightAlt+6 = ¼
  • RightAlt+7 = ½
  • RightAlt+8 = ¾
  • RightAlt+9 = ‘
  • RightAlt+0 = ’
  • RightAlt+- = ¥
  • RightAlt+= = ×
  • RightAlt+! = ¹
  • RightAlt+@の後に o = ő (Őも同様)。
  • RightAlt+#の後に a = ā (Āも同様)。同様に、ēĒ、ūŪ、īĪ、ōŌ。
  • RightAlt+$ = £
  • RightAlt+% =
  • RightAlt+^ =
  • RightAlt+& =
  • RightAlt+*の後に a = ą (Ąも同様)。同様に、ęĘ、įĮ。
  • RightAlt+(の後に a = ă (Ăも同様)
  • RightAlt+(の後に g = ğ (Ğも同様)
  • RightAlt+)の後に a = å (Åも同様)
  • RightAlt+_ =
  • RightAlt++ = ÷

特殊文字を入力するためにComposeキーを設定するには

これで、RightWinキー(AltGrの隣)を用いた特殊文字の入力が、このキーボード設定ファイルに従って、可能になります。具体的には、GDK_Multi_keyで始まる行がここで利用可能なものです。Composeキーは実際はGDK_Multi_keyです。 例をいくつか挙げると、

  • RightWin + C + = で €
  • RightWin + = + C で €
  • RightWin + C + O で ©
  • RightWin + O + C で ©
  • RightWin + a + ' で á
  • RightWin + a + " で ä
  • RightWin + a + ` で à
  • RightWin + a + ~ で ã
  • RightWin + a + * で å
  • RightWin + a + ^ で â
  • RightWin + a + > で â
  • RightWin + a + , で ą
  • RightWin + e + - で ē
  • RightWin + S + 1 で ¹
  • RightWin + S + 2 で ²
  • RightWin + S + 3 で ³

Ubuntuのロゴで使われているubuntu-titleフォントをインストールするには

sudo apt-get install ttf-ubuntu-title

これでこのフォントをお好きなアプリケーションで使えます。

NautilusでAdobe Readerをファイルに関連付けるには

これで.pdfファイルをダブルクリックすると、ファイルはAdobe Readerで開かれるようになります。

Adobe Readerから印刷するには

/usr/bin/lp -d FS-1010

pdfファイルの分割や結合をするには

sudo apt-get install pdftk
cd
mkdir bin
cd bin
gedit pdftk_burst
  • pdftk_burstに以下を追加してください。
#!/bin/bash
cd ${1%/*}
/usr/bin/pdftk "$1" burst
rm doc_data.txt
  • pdftk_burstを保存して閉じてください。
gedit pdftk_cat
  • pdftk_catに以下を追加してください。
#!/bin/bash
cd ${1%/*}
outfile="00out.pdf"
if [ -f $outfile ] ; then
    rm -f $outfile
fi
/usr/bin/pdftk *.pdf cat output $outfile
  • pdftk_catを保存して閉じてください。
chmod u+x pdftk_burst pdftk_cat
  • Nautilusを開いて(場所 -> デスクトップ)、.pdfファイルを見つけてください。
  • .pdfファイルを右クリックして、プロパティを選び、開き方タブへ行き、追加をクリックして、コマンドをカスタマイズするをクリックして、参照をクリックして、pdftk_burstを選択してください。pdftk_catにも同様の操作をしてください。

これで.pdfファイルを右クリックした際のオプションが2つ増えます。

  • 別のアプリで開く -> pdftk_burst は、30ページのpdfファイルひとつを30個の1ページのpdfファイルに変換します。
  • 別のアプリで開く -> pdftk_catは、同一ディレクトリにあるすべてのpdfファイルを結合して、00out.pdfというひとつのファイルを作成します。

注意: この方法は何らかの形式で保護されたpdfファイルには通用しません。man pdftkを読んで、さらなるコマンドラインオプションを参照してください。

How to remove jedit when Synaptic package manager fails after install

sudo dpkg --remove --force-depends --force-remove-reinstreq jedit

Now, you can use your Synaptic package manager again.

How to compile a kernel the Ubuntu Way

http://www.howtoforge.com/kernel_compilation_ubuntu

How to add locales to Ubuntu the command line way

cat /usr/share/i18n/SUPPORTED | grep "en\|ru" > /var/lib/locales/supported.d/local This example shows all Russian (ru) and English (en) locales being chosen. Look through /usr/share/i18n/SUPPORTED to find the ones for you, then put them in a list, replacing en\|ru and separating each language with a \| (backslash, bar). If you only want one language, just put it in quotes.

  • Then regenerate all of the locales:

dpkg-reconfigure locales

  • Then set your locale:

update-locale LANG=en_US.UTF-8 In this step, make sure to choose the language and country that you would like your computer to think it is in. Here, I choose en_US, the United States version of English. Once again, look at your /var/lib/locales/supported.d/local or /usr/share/i18n/SUPPORTED for the one right for you. You may also want to research locales, using the Internet.That was easy, now the command

lxterm will open up the Unicode version of xterm or your translated software will display things properly, like vim.