1. Add "Open as Root/Administrator" option in Nautilus.
sudo add-apt-repository ppa:noobslab/apps
sudo apt-get update
sudo apt-get install open-as-administrator


After installation this command to restart Nautilus :

nautilus -q 


2. Charge an IPad or IPhone in Ubuntu via USB with IPad Charge 


sudo add-apt-repository ppa:heathbar/ipad-charge
sudo apt-get update
sudo apt-get install libusb-1.0-0 ipad-charge

if not working


ipad-charge
블로그 이미지

mind10

,

이것 역시..


인터넷 뒤져 보니



ctrl+alt+F1-4 로 빠져나가서


unity --reset이렇게 해보라는데..

 no display variable set 어쩌고 뜨면서 되지를 않았다.


이미 예전에 커널 업데이트 이후 커서 이외에 화면 출력이 안되서


제조사 제공 그래픽 드라이버를 다시 설치하니 잘됐는데.


혹시나 해서 이번에도 마찬가지로 해봄..



다시 잘 된다....;;;


그래서 이상해서


뭘 업데이트 했는지 보니 


커널은 ~/usr/src/에 들어 있다..



역시나 커널이 업데이트 되어 있었다...

블로그 이미지

mind10

,

일단 TeXworks에서 일본어나 한자가 전부 깨져 보일경우. 


encoding 설정을 Shift_JIS로 바꿔서 다시 열어본다.


그런다음 일반적으로 


일본어 처리 방법으로는 여러가지가 있으나


일반적으로 


! LaTeX Error : This file needs format 'pLaTeX2e'but this is 'LaTeX2e'.


이런 오류 메시지가 나올 경우 다음과 같이 설정한다.


Preference-Typesetting-Processing Tool 에서


추가를 누르고.


Name : pLaTeX

Program : ptex2pdf

Arguments : -l

-ot

$synctexoption -guess-input-enc -kanji=utf8

$fullname



이렇게 해주면 된다.

블로그 이미지

mind10

,

Preference 에서


Audio - Output modules 의


Audio Output module 설정을 Alsa Audio Output 으로 바꿔준다.


Pulseaudio Audio ouutput의 버그로 보인다.

블로그 이미지

mind10

,

Sublime Text 2는 Ubuntu 에서 상당히 유용한 텍스트 에디터이다.


다양한 언어 스크립트를 지원할 뿐만아니라 비쥬얼 스튜디오 등의 에디터로서 손색이 없다.


설치

Ubuntu에서는 아주 쉽게 설치가 가능하다. 보통은 홈페이지에서 다운 받아서 설치를 해야 하지만 우분투는 레포지터리를 추가함으로 간단히 설치할 수 있다.

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
블로그 이미지

mind10

,
일단 다음 사이트에서 최신 버전을 다운받는다. 


압축 파일을 풀어보면 여러가지 파일이 나오는데,

그중 Script 폴더와 Styles 폴더에 있는  js, css파일을 전부 티스토리 

HTML/CSS 편집 -> 파일업로드에 업로드한다.

그럼 그 파일들은 images/ 폴더 아래에 저장된다.

HTML/CSS 편집에서 <head> </head> tag 사이에 css, js를 다음과 같이 추가한다.



 
 
 
 

 
 
 
 
 


 





 
 
 

티스토리에서 실제 Syntax Highlight 를 집어넣기 위해서는

다음과 같이 사용한다.



Code1
Code2
Code3

위의 방법은 사용자가 계속 syntax highlight가 업데이트 될때마다 업로드 시켜줘야 한다.

그래서 최신 파일을 호출하기 위해서 개발자 사이트에 직접 연결하는 방법이 있다.


먼저 Skin.html의 head안에 다음과 같이 삽입.



 































만약 Theme를 변경하고 싶으면 위의 소스중 마지막 줄의 shThemeDefault.css를 다른 것을 바꿔준다..


NameFile
DefaultshThemeDefault.css
DjangoshThemeDjango.css
EclipseshThemeEclipse.css
EmacsshThemeEmacs.css
Fade To GreyshThemeFadeToGrey.css
MidnightshThemeMidnight.css
RDarkshThemeRDark.css


그리고, skim.html의 body 의 마지막, </body></html> 앞에 다음의 코드를 삽입한다.

 

언어에 따른 브러쉬 종류는 다음과 같다.

Brush nameBrush aliasesFile name
ActionScript3as3, actionscript3shBrushAS3.js
Bash/shellbash, shellshBrushBash.js
ColdFusioncf, coldfusionshBrushColdFusion.js
C#c-sharp, csharpshBrushCSharp.js
C++cpp, cshBrushCpp.js
CSScssshBrushCss.js
Delphidelphi, pas, pascalshBrushDelphi.js
Diffdiff, patchshBrushDiff.js
Erlangerl, erlangshBrushErlang.js
GroovygroovyshBrushGroovy.js
JavaScriptjs, jscript, javascriptshBrushJScript.js
JavajavashBrushJava.js
JavaFXjfx, javafxshBrushJavaFX.js
Perlperl, plshBrushPerl.js
PHPphpshBrushPhp.js
Plain Textplain, textshBrushPlain.js
PowerShellps, powershellshBrushPowerShell.js
Pythonpy, pythonshBrushPython.js
Rubyrails, ror, rubyshBrushRuby.js
ScalascalashBrushScala.js
SQLsqlshBrushSql.js
Visual Basicvb, vbnetshBrushVb.js
XMLxml, xhtml, xslt, html, xhtml



블로그 이미지

mind10

,

우분투는 커널이나 X Window 중요 라이브러리 업데이트시, 그래픽 드라이버도 재설치가 되어야 한다.


자체 패키지에 포함된 그래픽 드라이버를 설치했을 경우, dkms를 이용하여 자동으로 그래픽 드라이버를 재설치 해주나,


제조사에서 제공하는 그래픽 드라이버를 설치했을 경우, 수동으로 터미널모드로 들어가서 그래픽 드라이버를 재설치 해주어야 한다.


만약 검은 화면만 출력되고, 마우스 커서만 보이는 경우,


Ctrl+Alt+F4 를 눌러서 터미널 모드로 들어가 


로그인 한후, 


다운 받은 제조사 배포 드라이버를 재설치 해준다.


AMD의 경우,


$ sudo sh amd-XXXXX.sh





출처 : http://wiki.cchtml.com/index.php/Ubuntu_Saucy_Installation_Guide



제조사 드라이버를 설치시 .run으로 설치하지 말고 .deb패키지로 바꿔서 설치해주는것이 좋다.

.run은 우분투/데비안 파일시스템과 호환이 떨어진다.

만약 이전에 제조사 드라이버를 설치 한 경우, 제거 한 후 진행한다.

Removing Catalyst/fglrx

The uninstall script in the first command will only exist if you downloaded the drivers and installed them directly (rather than building packages as this guide does). Skip the first command if it does not exist.

sudo sh /usr/share/ati/fglrx-uninstall.sh
sudo apt-get remove --purge fglrx*

If you plan on using open-source drivers, you will need to reinstall some packages because Catalyst overwrites or diverts some key 3D libraries with proprietary versions. For more information on this issue, see this Ubuntu wiki page

sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sudo rm -f /etc/ati

If you receive

$ E: Internal Error, No file name for libgl1-mesa-dri

Change the third command above to:

sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core

Before you start

If you have previously attempted installing Catalyst, remove any leftover files by following the Removing the Driver section. Make sure universe andmultiverse are enabled in your repository sources (System -> Administration -> Software Sources). or Applications->Ubuntu Software Center->Edit->Software sources->Other software: check canonical partners.

Install the prerequisite packages:

sudo apt-get install cdbs dh-make dkms execstack dh-modaliases linux-headers-generic libqtgui4

If you are using the x86_64 architecture (64 bit):

sudo apt-get install lib32gcc1

[edit]Installing Catalyst Manually (from AMD/ATI's site) STABLE

[edit]Download the latest Catalyst package

This package contains both the 32-bit and 64-bit driver.

mkdir catalyst14-4 && cd catalyst14-4
wget --referer='http://support.amd.com/en-us/download/desktop?os=Linux+x86' http://www2.ati.com/drivers/linux/amd-catalyst-14-4-linux-x86-x86-64.zip
unzip amd-catalyst-14-4-linux-x86-x86-64.zip
chmod +x fglrx-14.10.1006/amd-driver-installer-14.10.1006-x86.x86_64.run

[edit]Install additional dependencies

sudo apt-get install -y xserver-xorg-dev

[edit]Create and install .deb packages

sudo ./fglrx-14.10.1006/amd-driver-installer-14.10.1006-x86.x86_64.run --buildpkg Ubuntu/saucy
sudo dpkg -i fglrx*.deb

If building .deb packages fails you can try an Alternative Manual Installation which does NOT create deb packages and might cause some trouble when trying to uninstall.

[edit]Installing Catalyst Manually (from AMD/ATI's site) BETA/EXPERIMENTAL

[edit]Download the latest Catalyst package

This package contains both the 32-bit and 64-bit driver.

mkdir catalyst-14.3beta1.0 && cd catalyst-14.3beta1.0
wget --referer='http://support.amd.com/en-us/download/desktop?os=Linux+x86' http://www2.ati.com/drivers/beta/Linux_AMD_Catalyst_14.3_Beta_V1.0_B22_March12_2014.zip
unzip Linux_AMD_Catalyst_14.3_Beta_V1.0_B22_March12_2014.zip
cd fglrx-13.35.1005

[edit]Create and install .deb packages

sudo ./amd-driver-installer-13.35.1005-x86.x86_64.run --buildpkg Ubuntu/saucy
sudo dpkg -i fglrx*.deb

If building .deb packages fails, there is also an Alternative Manual Installation

[edit]In case of failure

Remember these steps before you reboot your computer.

If the X server fails to start, switch to a new TTY using ctrl+alt+F2. Log in, and attempt to start the X server.

sudo startx

If it fails to start, you will likely see a stacktrace, and immediately above it will be something along the lines of "Could not stat /usr/lib64/fglrx/switchlibGL" which means that you failed to copy the executables properly. Ctrl+c, and immediately copy the switchlibGL and switchlibglx executables to the fglrx folder in /usr/lib64/ or /usr/lib32/.

If all else fails, revert your xorg.conf and reboot.

sudo cp /etc/X11/xorg.conf.orig /etc/X11/xorg.conf

This should return your original display.

[edit]Generate a new /etc/X11/xorg.conf file

Unfortunately, there is no sure way to generate the ATI version of the Xorg.conf file. It is entirely dependent on your configuration. The following subsections will attempt to address possible (and tested) variations for their respective configurations.

[edit]Generic Config

This will work for most people:

sudo amdconfig --initial -f

[edit]Minimal Config

A very basic /etc/X11/xorg.conf file might be what you need if you have a new card that's not fully supported by amdconfig. Here follows the entirety of a minimal xorg.conf file for the Radeon HD 6870:

Section "Device"
 Identifier "ATI radeon 6870"
 Driver "fglrx"
EndSection

[edit]X2/Dual GPU Cards

If you have an X2 card (e.g. 5970), use... !!Do not use for two separate cards in crossfire!!

sudo amdconfig --initial -f --adapter=all

[edit]Dual/Multi Monitors

If you have a dual monitor display (also known as "Big Desktop"), use:

sudo amdconfig --initial -f
sudo amdconfig --set-pcs-str="DDX,EnableRandR12,FALSE"

This was confirmed in http://phoronix.com/forums/showthread.php?t=18553. Be advised that you may need to manually set the correct refresh rate for your second monitor through catalyst.

[edit]Force use of the new xorg.conf (if necessary)

Some people find that changes to xorg.conf don't get used by the driver. To force the ATI driver to adopt changes made to xorg.conf, use the following command:

sudo amdconfig --input=/etc/X11/xorg.conf --tls=1

[edit]Test your installation

NOTE: if you don't reboot first, fglrxinfo gives an error message. Reboot the computer and type

fglrxinfo

into the terminal. If the vendor string contains ATI, you have installed the driver successfully. Using fglrxinfo on a system with Catalyst 12-3 and a RadeonHD 4550 returns:

display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 4550 (This line may be different depending on what graphics card you are using.)
OpenGL version string: 3.3.11566 Compatibility Profile Context (This line may be different depending on what graphics card and 
Catalyst version you are using.)

Now, try:

fgl_glxgears

If you experience issues or a hang, you may need to disable fast TLS.

sudo amdconfig --tls=0

[edit]Just in case

Write down or remember this series of Alt+PrntScr key combinations, just in case your screen should go black and Ctrl+Alt+F1 and Ctrl+Alt+Backspace doesn't work.

Alt+PrntScr+r, Alt+PrntScr+s, Alt+PrntScr+e, Alt+PrntScr+i, Alt+PrntScr+n, Alt+PrntScr+u, Alt+PrntScr+b

These key-presses will reboot the system safely. To remember the key-presses, remember this nonsensical phrase: "Raising Skinny Elephants Is Never Utterly Boring".

An alternative would be to hold down Ctrl+Alt+SysRq (SysRq is usually the same key as PrintScreen) and type very slowly R E I S U B. A way to remember this is by inverting the word: "BUSIER" or remembering a phrase: "Restart Even If System Utterly Broken". This would also safely shutdown the system.

[edit]Hardware Video Decode Acceleration (EXPERIMENTAL)

[edit]Using XBMC player (XvBA)

XBMC has added support for accelerating video using XvBA/libxvba directly, but the support is currently not in the xbmc package in Ubuntu's repositories. To install the XvBA-enabled version of xbmc:

sudo apt-add-repository ppa:wsnipex/xbmc-xvba
sudo apt-get update
sudo apt-get install xbmc

NOTE: deprecated as of october 2013. Moved to ppa:wsnipex/xbmc-fernetmenta-master

[edit]Using the xvba-va driver (VA-API)

NOTE: The VA-API wrapper for XvBA has been dead code for a while now. It will probably give you some acceleration of HD formats, but using the previously mentioned xbmc PPA is a better solution.

This is confirmed to work for newer RadeonHD GPU's (those with UVD2). If you have a RadeonHD 4000-series or newer, you have UVD2. To see the complete list: http://en.wikipedia.org/wiki/Unified_Video_Decoder#UVD_enabled_GPUs

sudo apt-get install xvba-va-driver

A good player the utilizes va-api is VLC. You can enable va-api in Tools -> Preferences -> Input and Codecs. Check the box named "Use GPU accelerated decoding" and then restart VLC.

[edit]Test the xvba-va driver (VA-API)

The tool "vainfo" allows you to test the proper functioning of the xvba-va driver.

sudo apt-get install libva-glx1 libva-x11-1 vainfo
vainfo

vainfo should return something like the following (and no errors):

     libva: libva version 0.32.0
     Xlib:  extension "XFree86-DRI" missing on display ":0.0".
     libva: va_getDriverName() returns 0
     libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
     libva: va_openDriver() returns 0
     vainfo: VA API version: 0.32
     vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8
     vainfo: Supported profile and entrypoints
     VAProfileH264High               :	VAEntrypointVLD
     VAProfileVC1Advanced            :	VAEntrypointVLD

If vainfo returns an error, you may need to create a symlink:

sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/x86_64-linux-gnu/dri/fglrx_drv_video.so  #for 64-bit
sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so /usr/lib/dri/fglrx_drv_video.so  #for 32-bit

[edit]Other

There is possibility to enable > H.264 Level 5.1 decoding in the driver which "has been in the driver for some time but not enabled by default". This only applies for pre-12.11 beta releases of the drivers. Since 12.11 beta the setting is enabled by default [1]

sudo amdconfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1

or

sudo service lightdm stop
sudo cp -p  /etc/ati/amdpcsdb  /etc/ati/amdpcsdb.bak
sudo sed -i '/UvdEnabled=V1/ a HWUVD_H264Level51Support=V1' /etc/ati/amdpcsdb
sudo reboot

[edit]Updating Catalyst/fglrx

DO NOT try to install a new version over an old one. Follow the 'Removing Catalyst/fglrx' section below to remove your existing driver, and then you can start at 'Downloading the latest Catalyst' to install the new one.


블로그 이미지

mind10

,

보통 원하는 패키지만 설치해도 되나..


sudo apt-get install texlive-full

sudo apt-get install ko.tex-base ko.tex-extra ko.tex-extra-hlfont


블로그 이미지

mind10

,

크롬 등 브라우져 쓸때마다

잘가는 홈페이지가 있을 경우..

계속 쓰다보면 다른 홈페이지들은 잘 열리는데..

특정 잘가는 홈페이지가 느리게 열린다던가..

잘 연결이 안되는 경우가 있습니다..

제가 그런데요..-_-;;

dns캐시를 리셋해주면 대부분 해결이 됩니다..

 

크롬의 경우


 

일루 들어가서 clear host cache한번 눌러주면 리셋됩니다.

그러면 아마 90프로는 잘연결될걸로 보이네요..

 

일반적인 경우는 cmd에서 


C:\>ipconfig /flushdns 

C:\>ipconfig /release

C:\>ipconfig /renew

C:\>exit


'유용한 팁' 카테고리의 다른 글

윈도우에서 Wifi 와 Ethernet 우선순위 설정  (0) 2015.11.04
Syntax Highlight 넣기  (0) 2014.05.15
구글 검색 Tip  (0) 2013.03.01
티스토리에 배경 음악 달기..  (0) 2013.02.26
블로그 이미지

mind10

,

한글 설정이 이제는 아주 잘되는데,


파일 경로에 한글명이 있는 경우..


인코딩 설정을 Korea으로 해줄경우 아주 잘된다.


그 밑에 대체 인코딩을 써넣을수가 있는데..이곳을 비워놓는게 좋다.


만약 거기에 다른 인코더를 써넣으면 


플레이어를 껐다 켰을때 플레이리스트의 음악파일 경로에 한글이 섞여 있을경우


제대로 읽어오지 못해 경로 에러가 발생한다.

블로그 이미지

mind10

,

rename 's/\s/_/' * <---------- 우분투에서...


또는


rename " " "_" *  <----------  페도라에서...


-----------------------------------------------------------

       For example, to rename all files matching "*.bak" to strip the extension, you might say

               rename 's/\.bak$//' *.bak

       To translate uppercase names to lower, you'd use

               rename 'y/A-Z/a-z/' *




출처 : http://www.ylabs.co.kr/index.php?document_srl=6341&mid=board_centos

블로그 이미지

mind10

,

1.언어 변환이 안될시.


$locale 


사용하여 현재 언어 관련 설정들을 살펴본다.

LC_ALL은 LC_*로 표현되는 것들을 대표하는것으로,
이 값을 바꾸면 LC_* 전체가 바뀝니다.

그러나, 이것은 로케일의 표현법입니다.
LC_CTYPE은 문자셋과 대소문자변환을, LC_NUMERIC은 숫자표시형식,
LC_TIME은 시간표시형식, LC_MONETARY은 통화표시형식, LC_MESSAGES는 도움말등 메시지 표시방식,
LC_COLLATE는 문자비교순서입니다.
그외에도 주소,전화번호,종이형식등 많은 환경 변수가 있습니다.

실제로 화면에 보여질 언어를 바꿀때는
LANG과 LANGUAGE 환경변수를 사용합니다.
LANG은 사용할 로케일을 말하는 것이고,
LANGUAGE는 ":"으로 구분한 언어목록입니다.

LANG=ko_KR.utf8
LANGUAGE="ko_KR:ko:en_GB:en"

이러한 변수들은 gcc라이브러리에서 참조하게 되어 있으며,
이들 라이브러리를 사용하는 프로그램들에 적용됩니다.

그러나, 윗 분 말씀처럼 로케일정의 선행되어야 합니다.
이것도 또한 gcc라이브러리에서 참조합니다.

** 로케일 정의 **
/var/lib/locales/supported.d/ko파일에는 한국어로 사용가능한 인코딩종류

다음파일들은 로케일및 문자셋 정의 파일입니다.
/usr/share/i18n/locales/ko_KR
/usr/share/i18n/charmaps/EUC-KR.gz
/usr/share/i18n/charmaps/UTF-8.g

2. 탐색기에서 한글 파일 정렬이 안될시에.
위의 파일들을 사용하여, 로케일 정의를 만들때에는 다음과 같이 하시면 됩니다.

sudo localedef -f EUC-KR -ci ko_KR /usr/lib/locale/ko_KR.EUC-KR 
sudo localedef -f UTF-8 -ci ko_KR /usr/lib/locale/ko_KR.UTF-8

이후 sudo dpkg-reconfigure locales
명령을 주시면 됩니다.


영어우분투 상에서 한글입력을 가능하게 한 후 사용하다가
탐색기에서 파일명 정렬이 영어는 잘 되는데 한글이 엉망이어서 문제를 찾다가 
다음의 해결책을 발견.

터미널을 연 후 sudo gedit /etc/environment 엔터

열어보면 다음과 같이 한줄이 있는데
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

그 밑에 아래의 한줄을 추가한 후 저장하고 재부팅
LC_COLLATE="ko_KR.UTF-8"



3. 한글 설정

  apt-get install language-pack-ko language-pack-gnome-ko-base

  locale-gen ko_KR.UTF-8

  dpkg-reconfigure locales

  update-locale LANG=ko_KR.UTF-8

  reboot

  locale (확인)

블로그 이미지

mind10

,

Show username on panel

Ubuntu 2014. 4. 24. 14:33

1. Active


Terminal Command : 

$ gsettings set com.canonical.indicator.session show-real-name-on-panel true


2. Deactive


 $ gsettings set com.canonical.indicator.session show-real-name-on-panel false



블로그 이미지

mind10

,

1. Active


Terminal Command :

$ gsettings set com.canonical.desktop.interface scrollbar-mode normal


2. get back overlay bars


Terminal Command :

 $ gsettings reset com.canonical.desktop.interface scrollbar-mode



'Ubuntu' 카테고리의 다른 글

우분투 언어 관련 팁들  (0) 2014.05.02
Show username on panel  (0) 2014.04.24
SMI SRT convert on Ubuntu  (0) 2014.04.24
Ubuntu 설치후 해야 할 것들 ( 12.10 - 14.04)  (0) 2014.04.23
Synergy autostart before login  (0) 2014.04.22
블로그 이미지

mind10

,

SMI SRT convert on Ubuntu

Ubuntu 2014. 4. 24. 03:08

1. libsubtitles-perl 설치

$ sudo apt-get install libsubtitles-perl


2. SMI to SRT

$ subs -c srt filename.smi -o filename.srt


3. SRT to SMI

$ subs -c smi filename.srt -o filename.smi



블로그 이미지

mind10

,