Last Update:2009-08-23

 Tips of debian lenny:It is various Tips memo set up after debian lenny is installed.

 I do not assume the responsibility about the trouble that occurs as a result of executing
 it based on this content at all. Please execute it in the self-responsibility.

install /Installation of debian lenny
(1)Selection of Japanese
(2)Selection of 106keys
(3)Setting of network.(dhcp)
	host name:deb55
	domain name:none
(4)HDD 251.0GB(Maxtor 6B250R0)
(5)Making of Partition.
	/:353.7MB
	/home:240.8GB
	/usr:5GB
	/var:3GB
	/tmp:403MB
	/swap:1.4GB
(6)Setting of root password.
(7)Setting of user ID and Password.
(8)Setting of APT.
	Japan:ftp.jp.debian.org
	proxy:none
(9)Selection of application.
	desktop+standard system+laptop
(10)Installation of GRUB and PC restart.
2009-07-20 / Article number:000_jul_2009 --> goto top
tips_001 / Sudo is set.
[/etc/sudoers](not include --start-- and --end--)
--start--
	# /etc/sudoers
	#
	# This file MUST be edited with the 'visudo' command as root.
	#
	# See the man page for details on how to write a sudoers file.
	#
	Defaults	env_reset
	# Host alias specification
	# User alias specification
	User_Alias SYSOP=[userid]
	# Cmnd alias specification
	# User privilege specification
	root	ALL=(ALL) ALL
	SYSOP	ALL=(ALL) ALL
	# Uncomment to allow members of group sudo to not need a password
	# (Note that later entries override this, so you might need to move
	# it further down)
	# %sudo ALL=NOPASSWD: ALL
--end--
2009-07-20 / Article number:001_jul_2009 --> goto top
Tips_002 / The network is changed from dhcp to static.
[/etc/network/interfaces](not include --start-- and --end--)
--start--
	# This file describes the network interfaces available on your system
	# and how to activate them. For more information, see interfaces(5).
	# The loopback network interface
	auto lo
	iface lo inet loopback
	# The primary network interface
	allow-hotplug eth0
	iface eth0 inet static
		address 192.168.0.55
		netmask 255.255.255.0
		network 192.168.0.0
		broadcast 192.168.0.255
		gateway 192.168.0.1
--end--
$ sudo /etc/init.d/network restart
2009-07-20 / Article number:002_jul_2009 --> goto top
Tips_003 / Change in keyboard layout.
layout:Generic and Japanese 106keys
delete usa
additional Japan
2009-07-20 / Article number:003_jul_2009 --> goto top
Tips_004 / Brother DCP-535CN Wireless Printer(LPR+CUPS)
(1)download LPR and CUPS Wrapper drivers
	http://solutions.brother.co.jp/support/os/linux/cups_printer/install_08a.html
	dcp535cnlpr-1.1.2-2.i386.deb
	dcp535cncupswrapper-1.1.2-2.i386.deb
(2)install LPR
	$ cd /var/spool
	$ sudo mkdir lpd
	$ cd lpd
	$ mkdir dcp535cn
	$ sudo dpkg -i --force-all --force-architecture (file name)
(3)it edits /etc/printcap
	$ sudo vi /etc/printcap (not include --start-- and --end--)
	--start--
		DPC535CN:\
		:mx=0:\
		:sd=/var/spool/lpd/dcp535cn:\
		:sh:\
		:rm=192.168.0.202\
		:rp=lp\
		:if=/usr/local/Brother/Printer/dcp535cn/lpd/filterdcp535cn:
	--end--
	$ sudo ln -s /etc/init.d/cups /etc/init.d/lpd
	$ sudo /etc/init.d/lpd restart
	Restarting Common Unix Printing System: cupsd.
(4)install CUPS Wrapper Driver
	$ sudo dpkg -i --force-all --force-architecture (file name)
	dcp535cncupswrapper(1.1.2-2)
	Stopping Common Unix Printing System: cupsd.
	Restarting Common Unix Printing System: cupsd.
(5)set printer socket for wireless network
	(system)->(system control)->(print)
	doubleclick printer icon
	select Brother DCP-535CN 192.168.0.202:9100
	socket://192.168.0.202:9100
(6)test print
	http://localhost:631/
	(printer control)->(test print page)
2009-07-20 / Article number:004_jul_2009 --> goto top
Tips_005 / Installation of flash plug-in.(non free)
(1)/etc/apt/sources.list
	deb http://www.backports.org/debian lenny-backports main contrib non-free
	deb-src http://www.backports.org/debian lenny-backports main contrib non-free
(2)get and set keyring
	deb55:~# gpg --keyserver wwwkeys.eu.pgp.net --recv-keys EA8E8B2116BA136C
	deb55:~# gpg --fingerprint EA8E8B2116BA136C
	pub   1024D/16BA136C 2005-08-21
	fingerprint = 2703 4F81 A2EB 2840 A438  6C09 EA8E 8B21 16BA 136C
	uid                  Backports.org Archive Key 
	sub   2048g/5B82CECE 2005-08-21
	deb55:~# gpg --armor --export EA8E8B2116BA136C | apt-key add -
	OK
	deb55:~# exit
(3)Update sources
	jmon@deb55:~$ sudo apt-get update
(4)install flashplugin-nonfree
	jmon@deb55:~$ sudo apt-get install flashplugin-nonfree
	2009-06-30 23:07:40 (5.52 MB/s) - `./install_flash_player_10_linux.tar.gz'
2009-07-20 / Article number:005_jul_2009 --> goto top
Tips_006 / Installation of Opera WebBrowser.
	$ su -
	# gpg --keyserver subkeys.pgp.net --recv-keys 033431536A423791
	# gpg --armor --export 6A423791 | apt-key add -
	OK
	# exit
	$ sudo apt-get install opera

	$ sudo vi /usr/share/opera/ini/font.ini
	34line
		family:kochi*=japanese good try-first
		---> family:VL*=japanese good try-first
	open opera
	set url address "opera:config"
	User Prefs -> check off "Enable Core X Fonts"
	off opera and start opera
2009-07-20 / Article number:006_jul_2009 --> goto top
Tips_007 / Change in method of Japanese Kanji uim-anthy(standard) to scim-anthy(option).
	# apt-get install scim scim-anthy
		user logoff and logon
		Japanese Kanji control [Ctrl + Space key]
		add dictionary function
	# apt-get install kasumi
		set [hankaku/kanji key control]
		set [SCIM input method]dialogbox[start/end]box
		add to「Control+space,Zenkaku_Hankaku」
		It becomes possible. used [hankaku/kanji]key control.
2009-07-20 / Article number:007_jul_2009 --> goto top
Tips_008 / Installation of SUN JAVA
Java execution environment (JRE) of GNU named java-gcj is default and
 exists in Debian.The installation of SUN JAVA is needed to install
 Jalbum of the album making software.
(1)mod. /etc/apt/sources.list
  deb http://ftp.jp.debian.org/debian/ lenny main
  ---> dep http://ftp.jp.debian.org/debian/ lenny main non-free
  $ sudo apt-get update
(2)download JAVA Document
  http://java.sun.com/javase/ja/6/download.html
  rename jdk-6u10-docs.zip to jdk-6u12-docs.zip and copy to /tmp/
(3)install java6
  $ sudo apt-get install sun-java6-jdk sun-java6-demo \
  > sun-java6-source sun-java6-doc sun-java6-plugin \
  > sun-java6-fonts
(4)Setting of environment variable.
  edit /etc/profile
  The following additions.(not include ---)
  ---
  # for Java
  export JAVA_HOME="/usr/lib/jvm/java-6-sun"
  export CLASSPATH=".:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar"
  ---
  $ source /etc/profile
(5)Confirming the operation of java.
  $ java -version
  java version "1.6.0_12"
  Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
  Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)
  If the version number is 1.6.0, it is OK.
  Because JRE was not changeable if it is a display of gij (GNU libgcj),
  it switches by the following methods. 
  $ sudo update-alternatives --set java /usr/lib/jvm/java-6-sun/jre/bin/java
2009-07-20 / Article number:008_jul_2009 --> goto top
Tips_009 / Installation of Jalbum.
Jalbum is downloaded from following url. 
http://jalbum.net/software/download/current
	$ ./Jalbuminstall.bin
2009-07-20 / Article number:009_jul_2009 --> goto top
Tops_010 / Installation of nimbus theme.
 $ sudo apt-get install fakeroot dpkg-dev devscripts debhelper \
 libgtk2.0-dev icon-naming-utils intltool
 $ wget -c http://dlc.sun.com/osol/jds/downloads/extras/nimbus-0.0.8.tar.bz2
 $ wget -c \
 http://zap.tartarus.org/~ds/debian/dists/sid/main/source/nimbus_0.0.6-1.diff.gz
 $ tar xf nimbus-0.0.8.tar.bz2
 $ cd nimbus-0.0.8
 $ zcat ../nimbus_0.0.6-1.diff.gz | patch -p1
 $ chmod +x debian/rules
 $ debchange -v 0.0.8-1
 $ sudo apt-get install icon-naming-utils
 $ sudo apt-get build-dep
 $ fakeroot dpkg-buildpackage -us -uc -d
 $ sudo dpkg -i gtk2-engines-nimbus_0.0.6-1_i386.deb \
 nimbus-icon-theme_0.0.6-1_all.deb
 and Finally go to System->Preferences->Theme and select ‘Nimbus’.
-- Thank you. Masaki Katakai's Weblog --
2009-08-02 / Article number:010_jul_2009 --> goto top