Install Japanese Ubuntu 10.10
I used Japanese Ubuntu installation CD-ROM instead of the English one. With the English version CD-ROM, the installation stopped when I selected Japanese keyboard. Furthermore, I need Japanese environment applications such as Anthy, IBUS, to be installed by default.
However, under the home directory, directories with Japanese name are created. I changed these directories' name using Nautilus (Windows' Explorer-like application) by pressing F2 (just like in Windows). I left the デスクトップ directory name as it is. Lastly, confirm that the new directory names are correctly updated in ~/.config/user-dirs.dirs.
Customizing Japanese Keyboard Layout
First thing to do, swap Ctrl and CapsLock key. See below page:
http://nbp.jugglershu.net/2010/08/ubuntu.html
http://ubuntuforums.org/showthread.php?t=328269
https://forums.ubuntulinux.jp/viewtopic.php?id=4432
Next, remap 無変換 (Muhenkan) and 全候補変換 (Zen-kouho-henkan) to Control_L and Control_R, respectively.
Refer to below pages. Here, we need to use "xev" to check the keycode of 無変換 (Muhenkan) and 全候補変換 (Zen-kouho-henkan).
http://nbp.jugglershu.net/2010/08/ubuntu.html
My final .Xmodmap is available in Setting Files subpage.
Windows-key (<Super>) Global Keyboard Shortcuts
Bind combinations using Windows-key to launch applications. Below described method is for METACITY (GNOME2 default window-manager) only. (Make sure that システム > 設定 > 外観の設定 > 視覚効果 is set to 効果なし)
Refer to http://www.debian-administration.org/article/611/Creating_global_keyboard_shortcuts_in_GNOME.
For nautilus, there is a method to launch it without using the above method:
FYI:
In Unity, the launcher is bound to Super-key. So, we must first bind the launcher to Super+l (small L) for example, to freed the Super key. Then bind Super+E to nautilus for example.
See this to unbind launcher from Super key: http://askubuntu.com/questions/34145/can-i-define-keyboard-shortcuts-using-the-super-key
Emacs key-binding in GNOME
Set the gtk-key-theme to activate Emacs keybinding in GNOME as in below page:
https://wiki.ubuntulinux.jp/UbuntuTips/Desktop/GnomeEmacsKeyTheme
A detailed explanation for Firefox is available below:
http://kb.mozillazine.org/Emacs_Keybindings_(Firefox)
So, basically, do:
If something strange happen (such as, the value of the field cannot be edited), then:
Also, change the Anthy trigger from Control-Space to Control-o:
VPN Softwares
Use the bundled VPN and remote-desktop-client. For the VPN setting, in the "Advanced" option, activate all the "Security and Compression". And as remote-desktop-client, use the "ターミナルサーバークライアント" (add to panel), then set "RDPv5" as the protocol.
To connect to L2TP VPN server:
http://bailey.st/blog/2011/07/14/connecting-to-a-l2tpipsec-vpn-from-ubuntu-desktop/
Application Software Installation
Basically, use synaptics-package-manager. By using this, the installed software will be added to the repository (check アプリケーション→Ubuntuソフトウェアセンター OR システム→システム管理→アップデートマネージャ press 設定 then 他のソフトウェア to check that the installed software is really added to the repository), and automatically updated when a new version is available.
Btw, below is the command used to update and upgrade:
% sudo apt-get update && sudo apt-get upgrade
To check the version of package installed (by apt-get install) in Ubuntu:
dpkg -l | grep libboost
dpkg -l libboost-all-dev
Also refer to below site:
「アップデートマネージャ」は現在使用してるプログラムの修正アップデートだけではなく、 リボジトリ を追加することで新しいアプリケーションのインストールを支援する機能も持っています。
Required Softwares
May need to install softwares introduced in "9-things-i-did-after-installing-brand-new-Ubuntu-10" and "12-things-i-did-after-installing-new-Ubuntu-11".
Make a Better Nautilus Install nautilus-open-terminal (must reboot then) for bash-here (use Synaptic).
Install nautilus-elementary (use below link).
http://www.techdrivein.com/2010/10/nautilus-elementary-in-ubuntu-maverick.html
http://www.techdrivein.com/2010/05/what-is-nautilus-elementary-and-how-to.html
Some features of nautilus-elementary:
Install Gloobus preview as file previewer:
http://www.techdrivein.com/2010/08/gloobus-preview-nautilus-elementary.html
You can just browse through your folders by initiating Gloobus Preview with a simple space bar click and then easily go to the next folder/file using arrow keys. Be careful, don't use GTK theme for Gloobus preview. Do not change the default setting of Gloobus preview.
In case that terminal "bash-here" can not be opened from Nautilus, or double-clicking a file does not launch the appropriate application, we may need to do killall nautilus.
To toggle from Breadcrumb to location bar, press Ctrl+L. To go back from location bar to Breadcrumb, press Esc.
Bash
Set bash to be case-insensitive during file-name-completion by adding "set completion-ignore-case on" to /etc/inputrc. Also "set bell-style visible" in /etc/inputrc.
Set appropriate aliases for cp, rm also. My dot.bashrc is available in Setting Files subpage.
See also http://www.cygwin.com/cygwin-ug-net/setup-files.html
Emacs23
My .emacs is available in Setting Files subpage. Using this .emacs, it is possible to use Emacs as an Integrated Development Environment as shown in below screenshot. Notice the "auto-complete" of instance variable in action.
Need to copy ~/src/elisp to /usr/share/emacs23/site-lisp.
Install also:
$ sudo apt-get install emacs-goodies-el
And, below is a list of some important keybinding when using Emacs as IDE:
Eclipse Helios
Installed plugin
1. Install eclipse color-theme plugin: http://www.eclipsecolorthemes.org/
If you are on Eclipse 3.6 (Helios, but NOT the classic package), the easiest way to install the plugin is from the Eclipse Marketplace. Go to Help→Eclipse Marketplace..., then search for Eclipse Color Theme and install it.
After the installation, go to Window→Preferences→General→Appereance→Color Theme to change the color theme.
(If Eclipse Marketplace is not installed, then install Eclipse Market place client from Help -> Install new software)
2. Mylyn plugin (seems to be installed by default)
3. emacs+ plugin
Modified some binding as in below screenshot. Unbind C-x and undo (Ctrl-Shift--), Ctrl-h, C-c, C-y, C-v.
4. glance plugin (dont know how to install). Use this plugin to highlight ALL incremental search result. Similar to incremental find in Notepad++. Refer to http://did2memo.net/2012/11/06/eclipse-iterative-search-plugin-glance/
http://stackoverflow.com/questions/9920080/eclipse-does-not-highlight-matching-variables
5. google plugin for eclipse
6. Checkstyle for eclipse (http://eclipse-cs.sourceforge.net/). See also http://eclipse-cs.sourceforge.net/getting_started.html.
7. Findbugs for eclipse (http://findbugs.cs.umd.edu/eclipse/). See also http://findbugs.sourceforge.net/manual/eclipse.html, http://findbugs.sourceforge.net/manual/filter.html, http://andrei.gmxhome.de/findbugs/index.html
How to create a new workspace (working directory) with your own preferences
1. Obtain JavaWorkspacePrefences.epf (Or, export ALL preferences of a workspace to a file).
2. File → Switch Workspace → Select a new directory as a new workspace container.
3. Import the above preferences.
http://www.eclipsezone.com/eclipse/forums/t61566.html
http://eclipse.dzone.com/news/create-new-eclipse-workspace-w
Source code style
http://stackoverflow.com/questions/407929/how-do-i-change-eclipse-to-use-spaces-instead-of-tabs
For the Java editor:
Window->Preferences->Java->Code Style->Formatter->Edit->Indentation = "Spaces Only" (Must create a new editable profile)
However, for the default text editor:
Window->Preferences->General->Editors->Text Editors->Insert spaces for tabs
Tips and references
To give name to a workspace:
Window -> Preferences -> General -> Workspace name (show in window title)
Eclipse tutorial (refer to below tutorial for a good way to generate new package, new class etc):
http://www.vogella.de/articles/Eclipse/article.html
http://eclipse.dzone.com/news/effective-eclipse-dont-write-c
Learn about Eclipse's workspace:
http://www.myeclipseide.jp/blog/2008/12/eclipse.html
http://www.myeclipseide.jp/blog/2008/12/eclipse-2.html
Key binding:
http://www.eclipsewiki.net/eclipse/?Emacs%C9%F7%A5%AD%A1%BC%A5%D0%A5%A4%A5%F3%A5%C9
http://www.eclipsewiki.net/eclipse/?%A5%B7%A5%E7%A1%BC%A5%C8%A5%AB%A5%C3%A5%C8%A5%AD%A1%BC
(Window → Preferences → General → Startup and Shutdown → Workspaces: Prompt for workspace on startup)
(Window → Preferences → General → Startup and Shutdown → Workspaces: Remove Recent workspaces)
(Show line number)
To move workspace, export preferences from the old workspace directory, switch to new workspace, then import the old workspace preferences to the new workspace. Then copy the project one by one as in here: http://www.eclipsezone.com/eclipse/forums/t61566.html
(Be careful with per project setting. It is possible to control compiler version for each project.)
Mark occurences (change color):
http://www.limy.org/program/eclipse/menu.html
http://www.eclipse.org/forums/index.php?t=tree&th=73099&#page_top
Troubleshooting when Content-assist (auto completion) not working etc. (eclipse -clean):
http://www.eclipsezone.com/eclipse/forums/t61566.html
http://blog.tremend.ro/2006/10/19/eclipse-java-autocompletion-not-working/
QUICK FIX: Create a new workspace on the new desired location and import the projects from the old workspace. Do not forget to check the “Copy projects into workspace” checkbox so that the projects get copied to the new workspace directory. From this point on autocomplete should be back on its feet.
http://eclipse.dzone.com/news/create-new-eclipse-workspace-w
So the short answer is: If you want to create a new eclipse workspace and preserve all your settings,
simply copy the .metadata/.plugins/org.eclipse.core.runtime/.settings directory into your new workspace directory.
Eclipse CDT
See below for using custom makefile with CDT
http://stackoverflow.com/questions/1867990/using-custom-makefile-with-eclipse-cdt
Still have an issue with C-r-c, C-r-u for block comment / uncomment in the CDT source text editor.
Backup command
mirrordir was mentioned as one of backup command, but since it seems buggy, it is not included in Ubuntu repository anymore:
http://ubuntica.com/easily-back-up-your-data-with-mirrordir.html
http://www.cyberciti.biz/tips/howto-duplicate-directory-using-mirrordir-command.html
So, use rsync as the backup command. The command rsync can be executed as below. Then we can check the difference between the source and the destination directory using diff -r (behaves similar to whichdiff.pl).
Created below scripts:
Automatic backup with crontab
Every 30 minutes, rsync some directories to Dropbox folder. So the crontab is doing backup to Dropbox.
http://d.hatena.ne.jp/satake7/20080615/p1
$ crontab -l
*/30 * * * * /home/user/src/script/ubhome2dropbox.sh > /dev/null 2>&1
$ crontab -e
$ tail -f /var/log/syslog
Misc
File extension and application association (拡張子の関連付け)
Select the file, right click, then open property. Choose "Open with" tab, then select the desired application. Then from now on, that application will be used to open the corresponding file extension.
https://forums.ubuntulinux.jp/viewtopic.php?pid=416
How to add application to panel or menu?
Right click the "Application" then select "Edit menu". Add the desired application.
http://ubuntuforums.org/showthread.php?t=87126
http://unix.stackexchange.com/questions/10819/how-to-execute-a-shell-command-from-a-starter
Misc command
WINDOWS Xkeymacs
How to enable Meta-key http://d.hatena.ne.jp/ayokoyama/20060302/p2
Microsoft Visual Studio (VS) and Eclipse shortcut key
How to clear master boot record (in case Ubunto dual boot loader is corrupted)
1. Disable administrator password:
Start | Run | Regedit
Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Setup\RecoveryConsole
Set the DWORD SecurityLevel value to 1
http://www.computing.net/answers/windows-xp/admin-password-in-recovery-console/156682.html
2. Use XP CD to go to Recovery console
3. type fixmbr
File sharing above seems to timeout often. So, I used ssh instead:
http://www.basicconfig.com/linux/linux_scp_command_example
Refer to below page:
http://ubun2.wiki.fc2.com/wiki/MyMio%E3%82%92%E4%BD%BF%E3%81%86
Problem:
Need to use IP address in the LPD instead of the default default name.
Solution:
Reconfigure the avahi by setting AVAHI_DAEMON_DETECT_LOCAL to 0 in the file /etc/default/avahi-daemon.
Then reboot to see whether the avahi-daemon is executing.
After avahi-daemon is working, add the printer and choose the one with dns-sd.
https://forums.ubuntulinux.jp/viewtopic.php?pid=44632
Don't upgrade to this. Wait for 11.10.
http://www.techdrivein.com/2011/05/ubuntu-1104-natty-narwhal-reviewed-this.html
http://www.techdrivein.com/2011/04/12-things-i-did-after-installing-new.html
/etc/lightdm/lightdm.conf
in order to use ubuntu-2d in auto-login. Change user-session=ubuntu
to user-session=ubuntu-2d
Install to RAID0 HDD
Encountered issue during grub (dual boot loader) installation. So, follow the instruction in below page to adopt chain loader:
http://taka8aru.blogspot.jp/2011/05/windowslinux-ubuntu-1104-grub2.html
In my case, the root partition of the Ubuntu is /dev/mapper/isw_bddbjghicc_Volume0p6, so in the menu.lst, use "root (hd0,5)", 5 = 6-1.
Read also:
Set brightness in NVIDIA
Method shown here (http://askubuntu.com/questions/76081/brightness-not-working-after-installing-nvidia-driver) does not work. But, do not have to install NVIDIA driver. The command nvidia-settings is available.
To set the brightness when starting X, do below:
If NVIDIA driver need to be updated (may need to update NVIDIA driver each time there is a kernel update), see below:
Update:
Installed NVIDIA current driver as in http://techhamlet.com/2012/11/install-nvidia-drivers-in-ubuntu-12-10/.
Issue: .xinitrc is NOT executed <= Executed, but start up application overwrite it!!!
Update2:
In Dash (Super-key), if "startup" is entered, then normally "Startup applications" will appear as a candidate. However, in Japanese environment we need to input "自動起動".
Anyway, "startup application" can be executed with gnome-session-properties.
What application listed in startup can be check in ~/.config/autostart/. Be careful, sometime nvidia-settings put its own entry in ~/.config/autostart.
Update3:
No audio problem
Audio OK, but is NOT output through monitor's speaker. So, need to connect headphone or speaker to the analog-audio-out.
Xmodmap to assign HENKAN/MUHENKAN as control
Guide on applications and settings
Btw, MyUnity is not available for 12.10.
Windows opacity/transparency
WebGL in Linux+Chrome+Nvidia
"Edit with emacs" in Chrome text area
See here: http://blog.kechako.com/entry/2011/12/02/105752
Additional applications / issues
JavaScript
OS upgrade
Upgrade from 12.10 to 13.10:
Use boot DVD and install. Put boot loader at the same partition with the ubuntu installed partition.
Initial setting
Disable bluetooth: http://linuxg.net/how-to-disable-bluetooth-at-startup-5-practical-methods/
Add below line to /etc/rc.local, before exit 0:
/etc/init.d/bluetooth stop
Key setting: launch "Home Folder" (Nautilus) with Super+E
Nautilus does not create double pane with F3 anymore...
http://askubuntu.com/questions/285588/is-there-a-way-to-restore-nautilus-split-screen-f3-feature (Not working)
http://www.webupd8.org/2013/04/get-nautilus-34-features-back-in-ubuntu.html
Hide ubuntu one icon from panel:
gksudo gedit /etc/xdg/autostart/ubuntuone-launch.desktop
change "NoDisplay=true" to NoDisplay=false
If not working, then just remove /etc/xdg/autostart/ubuntuone-launch.desktop
Nautilus open terminal here.
DONT USE gnome-tweak-tool or dconf-editor anymore. Just use unity-tweak-tool.
Xmodmap is strange + Xmodmap now Swap and set muhenkan
http://d.hatena.ne.jp/taczge/20131219/1387434104
http://home.hiroshima-u.ac.jp/tkura/linux/xmodmap.html
xmodmap $HOME/.Xmodmap 2> /dev/null
So, in the application startup (自動起動), add:
sh -c '/usr/bin/xmodmap /home/username/.Xmodmap'
Also, swap Ctrl, caps-lock does not work anymore (when set in dconf-editor).
So, .Xmodmap must also swap Ctrl, caps-lock! (use xev to check the key)
Finally:
http://qiita.com/ysaito8015@github/items/0fd4ec3076293bc372d4
clear Control
keycode 102 = Control_L
add Control = Control_L
keycode 100 = Control_R
add Control = Control_R
keycode 37 = Caps_Lock NoSymbol Caps_Lock
keycode 66 = Control_L NoSymbol Control_L
clear Lock
add Control = Control_L
That is, Muhenkan, henkan to control and swap caps lock to control all 3 are handled in .Xmodmap.
Use fcitx + mozc instead of ibus + mozc
Xmodmap is reset when using japanese input system ibus + mozc:
https://forums.ubuntulinux.jp/viewtopic.php?pid=101413
So, use fcitx + mozc instead of ibus + mozc.
http://gihyo.jp/admin/serial/01/ubuntu-recipe/0297
Modify the Japanese input toggle from Ctrl+Space to Ctrl+O. But, cannot toggle with Ctrl+O. Good thing is, Ctrl+Space is released, so can be used in Emacs24 for mark region start.
"Things to do" series
http://www.webupd8.org/2013/10/8-things-to-do-after-installing-ubuntu.html
http://www.omgubuntu.co.uk/2013/10/10-things-installing-ubuntu-13-10
http://www.techdrivein.com/2013/10/15-things-i-did-after-installing-ubuntu1310-saucy-salamander.html
http://itsfoss.com/things-to-do-after-installing-ubuntu-13-10/
http://www.noobslab.com/2013/10/tweaksthings-to-do-after-install-of.html
http://www.unixmen.com/top-things-installing-ubuntu-13-10/
Nvidia driver + nvidia-settings in 13.10
http://news.softpedia.com/news/How-to-Install-the-Latest-NVIDIA-331-20-Drivers-in-Ubuntu-13-10-399182.shtml (Failed)
So, try just to reinstall the nvidia driver as below:
http://askubuntu.com/questions/362690/drivers-for-ubuntu-13-10
Procedure:
However, this failed also.
So, reinstall Ubuntu 13.10, and then "Use enable additional driver" in "Software & update" only.
Set notebook PC monitor default brightness
http://askubuntu.com/questions/76081/brightness-not-working-after-installing-nvidia-driver (Not working)
So, tried adding below line to ~/.xinitrc:
nvidia-settings --load-config-only & . /etc/X11/xinit/xinitrc
However, this failed also. The culprit is that "nvidia-settings -l", the -l option, does NOT change the brightness. The "nvidia-settings" correctly change the brightness.
So, in the startup-application (Lens -> 自動起動), change:
sh -c '/usr/bin/nvidia-settings --load-config-only'
to:
sh -c '/usr/bin/nvidia-settings'
Git + Rabbitvcs
https://sites.google.com/site/ivansetiawantky/programming-misc#TOC-Git
http://askubuntu.com/questions/227554/best-gui-client-for-git
http://wiki.rabbitvcs.org/wiki/install/ubuntu
Install also:
Emacs24 upgrade
Farewell Emacs23. Welcome Emacs24. The .emacs is updated.
Java installation
OpenJDK
sudo apt-get install icedtea-7-plugin openjdk-7-jre
sudo apt-get install openjdk-7-jdk
Oracle Java
http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
java -version
javac -version
Go back to OpenJDK, OpenJRE:
sudo apt-get remove oracle-java7-installer
To set the default JDK
sudo update-java-alternatives -s java-7-oracle
OR
sudo update-alternatives --config java (Then select the option)
update-java-alternatives -l (To confirm available java JDK alternatives.)
Eclipse upgrade (ubuntu eclipse android)
http://www.kkaneko.com/rinkou/js/eclipseadt.html
In the jre and jdk installation, don't forget JAVA_HOME setting and mkdir .swt.
Install the ADK as instructed below. But, do not use the bundled eclipse. Use the eclipse installed above.
http://www.kkaneko.com/rinkou/js/adsk.html
Eclipse menu in ubuntu 13.10 is cut/corrupted
Modify /usr/share/applications/eclipse.desktop (if exist) or .local/share/applications/eclipse.desktop:
Exec=env UBUNTU_MENUPROXY= /usr/local/eclipse/eclipse
Maybe source .local/share/applications/eclipse.desktop
To find the eclipse.desktop file:
sudo find / -name eclipse.desktop
https://www.unixmen.com/setup-linux-containers-using-lxc-on-ubuntu-15-04/
sudo apt-get update
, upgrade, dist-upgradesudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo systemctl status docker
whoami
: usernamesudo gpasswd -a username docker
cat /etc/group | grep docker
sudo chmod 666 /var/run/docker.sock
docker ps
with username is OK now.