Tuesday, December 15, 2009

getting USB support of Virtualbox : second

1. add yourself to the vboxusers group:
# 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

edit /boot/grub/menu.list

or

use GUI application, Startup-Manager which you can install using synaptic manager.

However, for GRUB2
the above doesn't work.

How do I boot two operating systems, Ubuntu9.10 and MacOSX, using GRUB2?

Tuesday, November 17, 2009

Problems with Eclipse buttons in Ubuntu 9.10

export GDK_NATIVE_WINDOWS=true

org.eclipse.swt.SWTError: XPCOM error -2147467262

if you get this problem
org.eclipse.swt.SWTError: XPCOM error -2147467262

edit the file of eclipse.ini

add the following
-Dorg.eclipse.swt.browser.XULRunnerPath=/dev/null
or
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner

http://ohioloco.ubuntuforums.org/showthread.php?t=1273380

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



Friday, July 17, 2009

How can I make my blog load faster?

http://www.google.com/support/blogger/bin/answer.py?answer=42394

How can I make my blog load faster?


The speed at which your blog loads is critical to attracting more readers to your blog. If your blog takes a long time to load, many readers may leave your blog before they have the chance to read it. Here are a few tips and tricks that will help your blog load faster and attract more users:


Posts

Your blog's load time can be affected by the number of posts you display on your main page. You can easily edit the number of posts displayed of the main page from the Settings | Formatting tab. You can then select the number of posts you want to display on the main page. We recommend displaying 10 or fewer posts on the main page.


Third Party JavaScript and Links

For optimal blog load speed, we recommend using Google/Blogger widgets, JavaScipt and links. However, if you need to use third party JavaScipt and links, your blog will load much faster if you put all JavaScript at the bottom of your blog. If you have third party JavaScript and links in your sidebar, put them in at the bottom of the sidebar.


Images and Media

The more images, videos and other multi-media you have on your blog the longer it will take to load. However, images and other multimedia are important to attracting users to your blog, so it is important to optimize the load speed of your images and media. Here are a few tips to increase the load speed of your media:

  • Decrease the size of your images or use thumbnails that link to the full-size image.
  • If you use third party images, consider uploading them to Picasa Web Albums via the Blogger post editor.
  • If you have a large number of images to display, you can upload all your images (from a vacation or event) to a Picasa Web Album and link to the album in your post or sidebar.


Other suggestions


  • If you've added any custom CSS to your blog, make sure you put it at the top of the page.
  • The most important content of your blog that catches readers attention should load the quickest. To help you identify which items are taking the longest to load you can use Stopwatch. To use Stopwatch, enter your blog's URL into the text box and click "Start StopWatch". Stopwatch will then open your blog in a frame and will record the time it takes for everything on your blog to load, including images, videos, widgets, etc. Take note of the items that take the longest to load and modify them appropriately using our suggestions.



Monday, July 13, 2009

opera turbo

Opera Turbo is a server-side optimization and compression technology that speeds up data transfer and reduces the amount of data that needs to be downloaded in order to view the page by up to 80%.

but the quality of image loaded gets low.


Sunday, July 12, 2009

Google recently stopped development on Notebook

Google recently stopped development on Notebook, which means it's no longer open to sign-ups by new users or being improved.

Don't worry if you're already a Google Notebook user! You can still access all your notebooks and data from this page (http://www.google.com/notebook/), as always. Just log in with the username you usually use with Notebook.

If you're visiting Notebook for the first time, you can explore the many other Google products that are still supported. For example, if you're trying to jot down some quick notes or create a document that you can share with others, check out Google Docs. You can also try Google Bookmarks - it lets you remember web pages that you liked and access them easily.

For information on why Notebook is no longer being worked on, as well as other tools that offer Notebook-like features, take a look at the announcement on the Google Notebook Blog. Thanks for visiting!

Wednesday, July 8, 2009

EICAR test

X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

빈 텍스트 파일을 생성해서 위와 같이 작성한 후 저장한다.

안티바이러스 프로그램이 위의 파일을 바이러스 감염 파일로 감지할 것이다.

그렇지 못하면 안티바이러스 프로그램은 문제가 있다.

http://en.wikipedia.org/wiki/Eicar_test_file

Tuesday, June 23, 2009

Cron

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

# mount -t smbfs //server /mountpoint -o user=userid,password=userpasswd,iocharset=utf8

or

# smbmount //server /mountpoint -o credentials=filename,iocharset=utf8

스트림 동영상 깨짐 - ATI 비디오카드

Windows Media Video Acceleration 기능을 해제하면 된다.

[Catalyst Control Center] - [Video] - [All Setting] 메뉴에서 Windows Media Settings 항목의 'Windows Media Video Acceleration' 의 체크를 해제

Friday, June 12, 2009

svn 사용자 패스워드 설정

# htpasswd [options] passwordfile username

Thursday, March 26, 2009

5.1 channel

reference
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

1. apt-get install vsftpd

2. vi /etc/vsftpd.conf

modify anonymous_enable=YES
to
anonymous_enable=NO

uncomment
#local_enable=YES

3. /etc/init.d/vsftpd restart

Wednesday, February 25, 2009

error C2061: syntax error : identifier 'THIS_FILE'

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

의 밑에 있는 헤더파일을

이 문장들 위에서 인클루드 한다

헤더파일이 꼬이는 경우

missing storage-class or type specifiers

라는 에러 메시지를 출력한다.

서로가 서로를 인클루드 할 때 발생한다.

필요로 하는 클래스를 전방위 선언한다.

그리고 구현 파일에서 해당 헤더 파일을 인클루드 한다.

Monday, January 19, 2009

Dual Monitor-Portrait and Landscape

두 개의 모니터를 하나의 데스크탑으로 사용하기 위해서는
TwinView를 이용하면 된다. 이는 비디오카드 드라이버에서 제공한다.
그리고 하나의 모니터만 회전시킬 수 있다.

Option "RandRRotatation" "true"

하지만 이는 두 개의 모니터가 모두 회전된다.

TwinView가 아닌 Seperate X screen으로 설정하면 하나의 모니터만 회전 할 수 있지만
두 개의 모니터가 독립된 작업 영역을 가진다.

Xinerama 를 이용한다.

Option "Rotate" "CW"

시계방향으로만 회전한다.
반시계방향은 "CCW" 로 설정한다.
하지만 Xinerama를 이용하면 Compiz 기능을 사용할 수 없다.
그리고 "Rotate" 를 사용하면 디스플레이 속도가 느려진다고 한다.
Compiz 기능을 유지하며, "RandRRotation"을 사용하여 속도 저하 없이
하나의 모니터만 회전할 수 있다면 정말 좋을 것이다.