ubuntu 11.xx 에서 이클립스를 실행하면 아래처럼 스크롤바가 안뜨는 문제가 있습니다.



우분투 11 버전부터 사용되는 unity 쉘 때문인거 같은데요.
다음과 같이하면 버그 수정될때까지 임시로 사용할 수 있습니다.

script 파일을 만들고 아래 내용을 씁니다.
출처: http://technomagus.wordpress.com/linux/window-managers/ubuntu-11-04-and-disappearing-scrollbars/

#!/bin/bash

export UBUNTU_MENUPROXY=0
export LIBOVERLAY_SCROLLBAR=0

/usr/bin/eclipse


* ps *
참고로 /usr/bin/eclipse 파일은 script file 이므로 해당 파일 상단에 export 부분만 적어 넣어도 됩니다.
그러면 따로 스크립트 파일을 만들 필요도없고 직접 실행 하면됩니다.

sudo gedit /usr/bin/eclipse


저장후 해당 스크립트 파일을 실행하시면됩니다.
아래 그림처럼 스크롤바가 생깁니다.

 
저작자 표시 비영리 동일 조건 변경 허락
Posted by 파이델
설치후 이것 저것 설정하기 귀찮아서 9.10 때 만들어둔 것 인데.
이번에 미루고 미루던 10.04 bata1 을 설치했습니다. 그래서 이것도 10.04 bata1 맞게 업데이트 해봤습니다.

201/10/22 - ubuntu 11.10 으로 다시 업데이트

아래 index1.sh, index2.sh 스크립트를 실행 권한으로 만든후 "$ bash index1.sh" 실행합니다.


* 중요한점은 루트권한으로 실행하지 말것 (루트권한이 필요한 스크립트가 따로 나누어져있고 실행시 알아서 물어봅니다)
* 실행 완료후엔 로그아웃 한번 해줄것

저에게 필요한 부분 외에는 주석 처리 해두었으니 사용자 구미에 맞게 주석 해제 후 사용하시면 됩니다.
주석 해제는 맨앞에 #  을 지워주시면 됩니다. 단, 문단의 첫 줄은 설명이니 지우시면 안되고 2번째 줄 부터가 명령어...

-- index1.sh

#!/bin/bash

## 루트권환이 필요한 스크립트 ##
sudo bash install2.sh


## 루트권환이 필요없는스크립트 ##

#시스템 버튼 (최소화, 최대화, 닫기) 오른쪽으로 바꾸기
#gconftool-2 --type string --set /apps/metacity/general/button_layout "menu:minimize,maximize,close"

#터미널 색상 변경 
#10.04 에선 Ambiance 변경되고 이게 기본 설정이지만 Default 도 입력해둠
#11.10 에서 다시 Default 로 변경됨
gconftool-2 --type bool --set /apps/gnome-terminal/profiles/Default/use_theme_colors false
gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/background_color "#000000000000"
gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/foreground_color "#AAAAAAAAAAAA"
gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/background_type "transparent"
gconftool-2 --type float --set /apps/gnome-terminal/profiles/Default/background_darkness 0.8

#터미널 단축키 alt+F3
gconftool-2 --type string --set /apps/metacity/global_keybindings/run_command_terminal "<Alt>F3"

#스크린샷 도구 단축키 추가 ctrl+Print (유니티에서 적용 안됨, 좀더 연구 필요)
#gconftool-2 --set-schema  "/schemas/apps/metacity/global_keybindings/run_command_9" --owner "metacity"
#gconftool-2 --set-schema  "/schemas/apps/metacity/keybinding_commands/command_9" --owner "metacity"
#gconftool-2 --type string --set /apps/metacity/keybinding_commands/command_9 "gnome-screenshot --interactive"
#gconftool-2 --type string --set /apps/metacity/global_keybindings/run_command_9 "<Control>Print"


######################################
#아래는 gnome 전용
######################################

#스크린샷 도구 단축키 추가 ctrl+win+S (<=10.04)
#gconftool-2 --type string --set /desktop/gnome/keybindings/custom1/action "gnome-screenshot --interactive"
#gconftool-2 --type string --set /desktop/gnome/keybindings/custom1/binding "<Control><Mod4>S"
#gconftool-2 --type string --set /desktop/gnome/keybindings/custom1/name "Gnome Screenshot Tool"

#메뉴나 단추에 아이콘 사용 (<=10.04)
#gconftool-2 --type bool --set /desktop/gnome/interface/menus_have_icons true
#gconftool-2 --type bool --set /desktop/gnome/interface/buttons_have_icons true

#바탕화면 마운트된 드라이브 감추기 (<=10.04)
#gconftool-2 --type bool --set /apps/nautilus/desktop/volumes_visible false

#노틸러스 파일 속성창 권한설정 탭 확장 (<=10.04)
#gconftool-2 --type bool --set /apps/nautilus/preferences/show_advanced_permissions true

#터미널 가변폭 폰트 설정 (10.04 에선 Default 가 Ambiance 변경)
#gconftool-2 --type bool --set /apps/gnome-terminal/profiles/Ambiance/use_system_font false
#gconftool-2 --type string --set /apps/gnome-terminal/profiles/Ambiance/font "DejaVu Sans Mono 10"
#gconftool-2 --type bool --set /apps/gnome-terminal/profiles/Default/use_system_font false
#gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/font "DejaVu Sans Mono 10"

#시스템 모니터 단축키 추가 ctrl+win+del (<=10.04)
#gconftool-2 --type string --set /desktop/gnome/keybindings/custom0/action "gnome-system-monitor"
#gconftool-2 --type string --set /desktop/gnome/keybindings/custom0/binding "<Control><Mod4>Delete"
#gconftool-2 --type string --set /desktop/gnome/keybindings/custom0/name "Gnome System Monitor"

#Gedit 한글깨짐 해결 (<=9.10)
#gconftool-2 --type list --list-type=string --set /apps/gedit-2/preferences/encodings/auto_detected "[UHC,UTF-8,CURRENT,JOHAB,ISO-8859-15,UTF-16]"



-- index2.sh

#!/bin/bash

#관리자 모드로 실행
if [ "$(/usr/bin/whoami)" != "root" ]; then
echo "error"
exit 1
fi

###### 제거할 프로그램들 ######

#기본 게임들 제거
apt-get -y purge gnome-games-common
apt-get -y purge aisleriot
apt-get -y purge gbrainy

##########################


###### 설치할 프로그램들 ######

#템플릿 파일 설치
case $LANG in
    ko* )
cp ./templates/* ~/서식
    ;;
    en* )
cp ./templates/* ~/Templates
    ;;
esac

#스크립트 파일 설치
cp ./nautilus-scripts/* ~/.gnome2/nautilus-scripts
chmod 755 ~/.gnome2/nautilus-scripts/*
mkdir ~/.gnome2/nautilus-scripts/etc-scripts
cp ./nautilus-scripts/etc-scripts/* ~/.gnome2/nautilus-scripts/etc-scripts
chmod 755 ~/.gnome2/nautilus-scripts/etc-scripts/*
mkdir ~/.gnome2/nautilus-scripts/image-scripts
cp ./nautilus-scripts/image-scripts/* ~/.gnome2/nautilus-scripts/image-scripts
chmod 755 ~/.gnome2/nautilus-scripts/image-scripts/*

#배경 이미지 설치
cp ./background/* /usr/share/backgrounds

#가독성을 위해 무료 폰트 설치
#cp ./addition_fonts/*.ttc /usr/share/fonts/truetype
#cp ./addition_fonts/*.ttf /usr/share/fonts/truetype

#비디오,오디오 코덱
#apt-get -y install gstreamer0.10-ffmpeg
#apt-get -y install gstreamer0.10-fluendo-mp3
#apt-get -y install gstreamer0.10-plugins-ugly
#apt-get -y install gstreamer0.10-plugins-bad

#non-free-codecs (w32codec, w64codec)
#wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list -O /etc/apt/sources.list.d/medibuntu.list
#wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | apt-key add - && apt-get update
#apt-get -y install non-free-codecs

#노틸러스 확장메뉴 (유니티에선 에러남)
#apt-get -y install nautilus-gksu
#apt-get -y install nautilus-open-terminal

#Google Chrome 브라우져 설치
apt-get -y install chromium-browser

#플래쉬 플러그인 설치
apt-get -y install flashplugin-installer

#RabbitVCS
#add-apt-repository ppa:rabbitvcs/ppa
#apt-get -y install rabbitvcs-core rabbitvcs-nautilus

#geany 에디터 설치
apt-get -y install geany
apt-get -y install geany-plugins

#gimp 이미지 에디터 설치
apt-get -y install gimp

#Smplayer 플레이어
#apt-get -y install smplayer

#VLC 플레이어
apt-get -y install vlc

#diff GUI 버전인 파일 비교기
apt-get -y install meld

#eclipse dev 설치
#apt-get -y install eclipse

#devhelp 개발자 도움말 설치
#apt-get -y install devhelp

#g-hex 에디터 설치
apt-get -y install ghex

#comix 만화 뷰어 설치
apt-get -y install comix

#Conky 데스크탑 악세사리 설치
#apt-get -y install conky

#LAMP 웹서버 (중간에 비번 설정 있으니 주의 필요)
#apt-get -y install apache2
#apt-get -y install php5 libapache2-mod-php5
#apt-get -y install mysql-server
#apt-get -y install libapache2-mod-auth-mysql php5-mysql phpmyadmin
#/etc/init.d/apache2 restart

#PDF FoxitReader 설치
#mkdir /usr/share/FoxitReader
#cp -r ./FoxitReader-1.1-release/* /usr/share/FoxitReader
#ln -s /usr/share/FoxitReader/FoxitReader /usr/bin

#Music-applet 설치 (<=10.04)
#apt-get -y install music-applet

##########################


########### 설정 ###########

#백업 드라이브 자동 마운트
#if [ -e "/etc/fstab.backup" ]; then
#cp /etc/fstab.backup /etc/fstab
#else
#cp /etc/fstab /etc/fstab.backup
#fi
#mkdir "/media/STORAGE-1"
#mkdir "/media/STORAGE-2"
#mkdir "/media/STORAGE-3"
#echo "#auto mount storage drive" >> /etc/fstab
#echo "/dev/sdb1        /media/STORAGE-1      ntfs         defaults,uid=1000,gid=1000,umask=000    0         0" >> /etc/fstab
#echo "/dev/sdc1        /media/STORAGE-2      ntfs         defaults,uid=1000,gid=1000,umask=000    0         0" >> /etc/fstab
#echo "/dev/sdd1        /media/STORAGE-3      ntfs         defaults,uid=1000,gid=1000,umask=000    0         0" >> /etc/fstab

#터미널 색상 입히기
if [ ! -e "$HOME/.bashrc.backup" ]; then
mv "$HOME/.bashrc" "$HOME/.bashrc.backup"
fi
while read -ers line ; do
if [ "$line" = "alias ls='ls --color=auto'" ]; then
echo "alias ls='ls -F --color=auto'"
else 
if [ "$line" = "#force_color_prompt=yes" ]; then
echo "force_color_prompt=yes"
else
echo $line
fi
fi
done < "$HOME/.bashrc.backup" > "$HOME/.bashrc"

#로그인 배경 바꾸기 (위에서 #배경 이미지 설치후)
if [ ! -e "/etc/lightdm/unity-greeter.conf.backup" ]; then
mv "/etc/lightdm/unity-greeter.conf" "/etc/lightdm/unity-greeter.conf.backup"
fi
while read -ers line ; do
if [ "$line" = "background=/usr/share/backgrounds/warty-final-ubuntu.png" ]; then
echo "background=/usr/share/backgrounds/logoless-wood.jpg"
else
echo $line
fi
done < "/etc/lightdm/unity-greeter.conf.backup" > "/etc/lightdm/unity-greeter.conf"
rm "/etc/lightdm/unity-greeter.conf.backup"


#배경화면 목록 다시 작성
WALLPAPER_XML="/usr/share/gnome-background-properties/ubuntu-wallpapers.xml"
WALLPAPER_DIR="/usr/share/backgrounds"

rm $WALLPAPER_XML

cat <<EOF > $WALLPAPER_XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
EOF

ls -1 $WALLPAPER_DIR/contest/*.xml 2> /dev/null |
while read image_name; do
   echo "   Adding: `basename "$image_name"`."
   fname=`basename "$image_name"`
   fname="${fname%%\.*}"
   echo "  <wallpaper deleted=\"false\">"        >> $WALLPAPER_XML
   echo "    <name>Contest: $fname</name>"       >> $WALLPAPER_XML
   echo "    <filename>$image_name</filename>"   >> $WALLPAPER_XML
   echo "    <options>zoom</options>"            >> $WALLPAPER_XML
   echo "  </wallpaper>"                         >> $WALLPAPER_XML
done

ls -1 $WALLPAPER_DIR/*.jpg $WALLPAPER_DIR/*.png 2> /dev/null |
while read image_name; do
   echo "   Adding: `basename "$image_name"`."
   fname=`basename "$image_name"`
   fname="${fname%%\.*}"
   echo "  <wallpaper>"                          >> $WALLPAPER_XML
   echo "    <name>$fname</name>"                >> $WALLPAPER_XML
   echo "    <filename>$image_name</filename>"   >> $WALLPAPER_XML
   echo "    <options>zoom</options>"            >> $WALLPAPER_XML
   echo "    <pcolor>#000000</pcolor>"           >> $WALLPAPER_XML
   echo "    <scolor>#000000</scolor>"           >> $WALLPAPER_XML
   echo "    <shade_type>solid</shade_type>"     >> $WALLPAPER_XML
   echo "  </wallpaper>"                         >> $WALLPAPER_XML
done

echo "</wallpapers>"                             >> $WALLPAPER_XML

##########################


######### 문제 해결 #########

#리듬박스 태그 한글깨짐 해결
if [ -e "/etc/profile.backup" ]; then
cp /etc/profile.backup /etc/profile
else
cp /etc/profile /etc/profile.backup
fi
echo -e "\nexport GST_ICY_TAG_ENCODING=cp949" >> /etc/profile

#오픈오피스 메뉴 글꼴 버그 (<=9.10)
#mv /etc/fonts/conf.d/29-language-selector-ko-kr.conf /etc/fonts/conf.d/29-language-selector-ko-kr.conf.backup

#사운드에서 가끔씩 '틱' 소리가 날때 해결 (<=9.10)
#if [ ! -e "/etc/modprobe.d/alsa-base.conf.backup" ]; then
#mv "/etc/modprobe.d/alsa-base.conf" "/etc/modprobe.d/alsa-base.conf.backup"
#fi
#while read -ers line ; do
#if [ "$line" = "options snd-hda-intel power_save=10 power_save_controller=N" ]; then
#echo "#options snd-hda-intel power_save=10 power_save_controller=N"
#else
#echo "$line"
#fi
#done < "/etc/modprobe.d/alsa-base.conf.backup" > "/etc/modprobe.d/alsa-base.conf"

#iwl3945 ("Intel Corporation PRO/Wireless 3945ABG") 버그, 무선 연결 끊김 방지
#루트 권한으로 실행해야해서 직접 수동으로 (sudo -i)
#echo -e "alias wlan0 iwl3945\noptions iwl3945 disable_hw_scan=1" > /etc/modprobe.d/iwl3945

##########################


저작자 표시 비영리 동일 조건 변경 허락
Posted by 파이델