Sunday, February 17, 2013
Install JDK on Ubuntu
http://forum.falinux.com/zbxe/index.php?document_srl=574845&mid=lecture_tip
Wednesday, September 28, 2011
Tuesday, December 15, 2009
getting USB support of Virtualbox : second
# gpasswd -a YOURUSERNAME vboxusers
or using GUI
menu > System > Administration > User and Group
2. Find the devgid for 'vboxusers'
# grep vboxusers /etc/group
vboxusers:x:125:username
3. edit /etc/fstab
none /proc/bus/usb usbfs devgid=125,devmode=664 0 0
http://www.samlesher.com/ubuntu/virtualbox-with-usb-support-on-ubuntu
Wednesday, November 18, 2009
GRUB & multi-booting
However, for GRUB2
the above doesn't work.
How do I boot two operating systems, Ubuntu9.10 and MacOSX, using GRUB2?
Sunday, July 19, 2009
Adobe Flash 10 Astro on Ubuntu 64 bit
http://ubuntuforums.org/showthread.php?t=1081964
1) Remove previous existing versions of flash player
apt-get remove --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash
apt-get remove --purge swfdec-mozilla libflashsupport nspluginwrapper iceape-flashplugin
apt-get remove --purge iceweasel-flashplugin mozilla-flashplugin firefox-flashplugin
apt-get remove --purge xulrunner-flashplugin midbrowser-flashplugin xulrunner-addons-flashplugin
rm -f /usr/lib/mozilla/plugins/npwrapper.libflashplayer.so
rm -f /usr/lib/iceweasel/plugins/npwrapper.libflashplayer.so
rm -f /usr/lib/firefox/plugins/npwrapper.libflashplayer.so
rm -f /var/lib/flashplugin-nonfree/npwrapper.libflashplayer.so
rm -f ~/.mozilla/plugins/npwrapper.libflashplayer.so
rm -f /usr/lib/firefox-addons/plugins/npwrapper.libflashplayer.so
rm -f ~/.mozilla/plugins/*flash*
rm -f /usr/lib/firefox/plugins/*flash*
rm -f /usr/lib/firefox-addons/plugins/*flash*
rm -f /usr/lib/mozilla/plugins/*flash*
2) Download the 64 bit Flash Plugin (Alpha) from its website
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.42.34.linux-x86_64.so.tar.gz
http://labs.adobe.com/downloads/flashplayer10.html
4) copy it in its folder
cp libflashplayer.so /usr/lib/mozilla/plugins
5) Restart Firefox, open youtube and be sure the plugin works
If you're using the Opera browser:
Do this only if, after having done point 4 and 5, you can't experience flash in Opera
4) Maybe Opera isn't searching into the Mozilla Plugins folder, then let's put the Flash plugin in its folder. The steps are the same as above, the only difference is step 4
cp libflashplayer.so /usr/lib/opera/plugins
5) Reboot Opera
Thursday, July 9, 2009
Tuesday, June 23, 2009
Cron
특정 작업은 crontab 파일에 정의된다.
minute (0-59), hour (0-23, 0 = midnight), day (1-31), month (1-12), weekday (0-6, 0 = Sunday), command
crontab 파일의 각 필드는 위와 같이 구성된다.
crontab 사용법은 아래와 같다.
usage: crontab [-u user] file
crontab [-u user] { -e | -l | -r }
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)
-i (prompt before deleting user's crontab)
/etc 디렉토리에 보면 시스템 상에 이미 정의되어 있는 crontab 파일을 볼 수 있으며
/etc/cron.{hourly | daily | weekly | monthly} 이름의 디렉토리가 존재한다.
https://help.ubuntu.com/community/CronHowto
Wednesday, June 17, 2009
Mounting the Samba filesystem
or
# smbmount //server /mountpoint -o credentials=filename,iocharset=utf8
Thursday, March 26, 2009
5.1 channel
http://www.cse.ohio-state.edu/~bondhugu/surround-pulse.shtml
http://nemonein.egloos.com/4164489
1. vi /etc/pulse/daemon.conf
uncomment default-sample-channels line
and
default-sample-channels = [the number of channels]
(6 for 5.1 ch, 8 for 7.1 ch)
2. alsamixer -c 0
control the volumes and save
alsactl store
3. restart
Tuesday, March 24, 2009
vsftp
2. vi /etc/vsftpd.conf
modify anonymous_enable=YES
to
anonymous_enable=NO
uncomment
#local_enable=YES
3. /etc/init.d/vsftpd restart
Tuesday, November 25, 2008
install Realtek RTL8168 driver
r8168 드라이버를 설치하고자 한다면 r8169를 지우고
realtek 홈페이지에서 다운로드 받은 r8168을 설치해야 한다.
설치방법은 다운로드 받은 파일을 압축해제 한 후, readme 파일에서 볼 수 있다.
설치 방법은 아래와 같다.
1. 우선 r8169 모듈을 삭제한다.
$ lsmod | grep r8169
$ rmmod r8169
하지만 리부팅한 후, 확인하면 지워지지 않는 경우가 있다.
이 경우, readme 파일에서는 /etc/modprobe.conf 의 'alias eth0 r8169' 부분을 삭제하라고 되어 있는데, 우분투에는 modprobe.conf 파일이 없다.
우분투에는 이에 해당하는 파일들이 /etc/modprobe.d/ 디렉토리 아래에 있다.
$ cd /etc/modprobe.d
$ vi blacklist-network
blacklist r8169
$ update-initramfs -u #to make the change permanent
$ reboot
$ lsmod | grep r8169
로 확인하면 r8169 모듈이 로딩되지 않았음을 확인 할 수 있다.
2. r8168 설치
역시나 readme 파일을 참조한다.
$ make clean modules
$ make install
$ depmod -a
$ insmod ./src/r8168.ko (or r8168.o in linux kernel 2.4.x)
$ lsmod | grep r8168
Wednesday, November 12, 2008
Tuesday, November 11, 2008
VirtualBox 공유폴더
Guest OS : Windows XP
1. VirtualBox 에서 공유폴더 설정
2. Guest OS 에서 네트워크 드라이브 연결
\\VBOXSRV\[공유폴더이름]
to configure host networking of Virtualbox
$ apt-get install bridge-utils
2. back up the current interfaces file
$ cp /etc/network/interfaces /etc/network/interfaces.backup
3. edit /etc/network/interfaces
for static ip address,
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
bridge_ports eth0 vbox0 vbox1
# The loopback network interface
auto lo
for dynamic address,
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports eth0 vbox0
# The loopback network interface
auto lo
iface lo inet loopback
3. restart networking
$ /etc/init.d/networking restart
4. declare virtual interfaces
$ vi /etc/vbox/interfaces
# Each line should be of the format :# [interface name] [user name] [bridge]
vbox0[user name] br0
vbox1[user name] br0
...
for VirtualBox OSE
$ /etc/init.d/virtualbox-ose restart
for pre-compiled proprietary version
$ /etc/init.d/vboxnet restart
5. set permission on /dev/net/tun
$ chown root:vboxusers /dev/net/tun
$ chmod g+rw /dev/net/tun
6. This file is created with the default permissions every time the system
restarts, edit the file /etc/udev/rules.d/20-names.rules to make the new permissions permanent
KERNEL=="tun", NAME="net/%k"
to
KERNEL=="tun", NAME="net/%k", GROUP="vboxusers", MODE="0660"
getting USB support of Virtualbox
#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb
2. under Hardy Heron,
vi /etc/udev/rules.d/40-basic-permissions.rules
# USB devices (usbfs replacement)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664", GROUP="vboxusers"
SUBSYSTEM=="usb_device", MODE="0664", GROUP="vboxusers"
3. restart the udev device or reboot
/etc/init.d/udev restart
4. if the above doesn't enable usb, try this
cat /etc/group | grep vboxusers
vboxusers:x:125:[userid]
vi /etc/fstab
## usbfs is the USB group in fstab file:
none /proc/bus/usb usbfs devgid=125,devmode=664 0 0reboot or try doing,
/etc/init.d/mountkernfs.sh
Sunday, November 9, 2008
Upgrade from Ubuntu Hardy Heron to Intrepid Ibex
업데이트 관리자에서 자동으로 업그레이드 메시지가 나타났다.
하지만 Hardy Heron에서 Intrepid Ibex로 업그레이드 메시지는
나타나지 않는다. 이유는 Hardy Heron이 LTS(Long Term Support)이기 때문이다.
System/Administration/Software Sources 메뉴를 선택하면
default로 Long term support releases only로 설정되어 있음을 볼 수 있다.
Intrepid Ibex로 업그레이드를 원하면 "Normal releases"로 설정하고,
Update Manager를 실행한다.
Friday, November 7, 2008
Synergy-마우스 키보드 공유
여러 컴퓨터 간에 마우스와 키보드를 Seamless하게 공유할 수 있다.
리눅스와 윈도우 간에 Synergy를 이용하면 한글키를 이용한
한영전화의 문제가 있다.
이 문제는 윈도우의 키보드 타입을 변경함으로써 해결된다.
키보드타입 1에서 3으로 전환을 해야 한다.
1. 레지스터 편집기를 이용하여 레지스터를 편집한다.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters
LayerDriver KOR : kbd101a.dll -> kbd101c.dll
OverrideKeyboardSubtype : 3 -> 5
2. 편집 후, 재부팅한다.
Wednesday, November 5, 2008
HP Linux Imaging and Printing
http://hplipopensource.com/hplip-web/gethplip.htm
2. install instruction
http://hplipopensource.com/hplip-web/install/install/index.html
sh hplip-2.8.10.run
Monday, November 3, 2008
install jdk6
sun-java6-jdk 을 선택하면 sun-java6-jre 은 자동으로 선택된다.
5. 여러 버전의 sdk가 설치 되었다면
$ update-alternatives --config java(c)
을 이용하여 선택할 수 있다.
* ubuntu_amd64 에서 32bit JDK는 ia32-sun-java6-bin 패키지를 이용하여 설치할 수 있다.
install nateon
리눅스 네이트온 개발 프로젝트
http://kldp.net/projects/nateon/
kdelibs4c2a, libarts1c2a, libqt3-mt
https://launchpad.net/ubuntu/ 에서 의존성 패키지를 다운로드 받는다.