레이블이 ubuntu인 게시물을 표시합니다. 모든 게시물 표시
레이블이 ubuntu인 게시물을 표시합니다. 모든 게시물 표시

3/25/2013

adobe reader font fix

ref: http://ubuntuforums.org/showthread.php?t=1006831



  1. #1
    MrFSL's Avatar
    MrFSL is offlineDipped in Ubuntu
    Join Date
    Mar 2006
    Location
    Somewhere outside Ubuntu
    Beans
    602

    [SOLVED] Adobe Reader Font Fixed



32bit Hardy Install

I searched the forum and could not find an answer to this problem so I am posting it here. Hopefully it helps some people.

I use the adobe reader 8.1.3 package for pdf files:
Located Here

I have noticed that often I get errors saying that a certain font cannot be displayed. This happens frequently with Microsoft fonts like Arial,Bold or Arial,Narrow. In the reader these fonts come out as little black dots instead.

I simply could not find a fix here nor on the Adobe forums. After some hacking though I have a solution:

First install the msttcorefonts package (if you haven't already)
Code:
sudo apt-get install msttcorefonts
Next edit the the reader's startup file:
Code:
sudo gedit /opt/Adobe/Reader8/bin/acroread
And uncomment these two lines:
Code:
ACRO_ENABLE_FONT_CONFIG=1
export ACRO_ENABLE_FONT_CONFIG
Now reader acts as should be expected.

12/13/2012

AR8161 on-board lan to work (ASUS P8H77-V board)


sudo apt-get install linux-headers-generic build-essential
wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.5/compat-wireless-3.5.1-1-snpc.tar.bz2
tar -xf compat-wireless-3.5.1-1-snpc.tar.bz2
cd compat-wireless-3.5.1-1-snpc
./scripts/driver-select alx
make
sudo make install
sudo modprobe alx


http://ubuntuforums.org/showthread.php?t=2050126&highlight=p8h77-v

10/08/2012

Edit mime type

Install file type editor ( command name : assogiate )

(some file types are unable to edit.)

or

cd [path]
 where, path = /usr/local/share/mime  or ~/.local/share/mime or /usr/share/mime
cd packages
gedit [file_type_you_want]

sudo update-mime-database [path]

** Don't forget BACKUP !


5/11/2012

Increasing the sheet name tab size for libreoffice calc in ubuntu 12.04


In libreoffice calc, the font size (or horizontal height) for the sheet name tab is related to the scrollbar slider width.

Open "/usr/share/thmemes/[a theme used, e.g. Ambiance]/gtk-2.0/gtkrc"

find "GtkScrollbar::slider-width = xx", where xx is a number.

then, change the number xx to a larger value.

Logout and login, or, (this is better) change theme to other one and then return to current theme using ubuntu tweak.


5/09/2012

ubuntu ssh server setting


* ssh 서버 설치 및 설정


http://wiki.kldp.org/wiki.php/DocbookSgml/SSH-KLDP


1. 설치


    $ sudo apt-get install ssh


2. 포트 변경


    $ sudo vim /etc/ssh/sshd_config


    # port 22 에서 '#' 를 제거하고 원하는 포트로 변경


    IF >>  X-window 사용하고 싶을 경우, 
        
        /etc/ssh/ssh_config
        위의 파일의 다음내용을 변경한다
       
        # ForwardX11 no -> ForwardX11 yes 로 설정변경)


3. 데몬 재시작


    $ sudo /etc/init.d/ssh restart


4. 서버 작동 확인


    $ netstat -ntl




ref: http://towanouta.tistory.com/71

5/06/2012

ubuntu 11.10 add my program to "open with other program" menu

$ cat ~/.local/share/applications/myProgram.desktop

[Desktop Entry]
Name=whatever
GenericName=whatever
Comment="whatever comment"
Exec=exeFilePath %f
Terminal=false
Type=Application
StartupNotify=true
MimeType=text/x-mimeType;
Icon=icon-name


1/20/2012

terminal timer command

$ sleep 60; gmessage -bg RED -geometry 800x600 -center "Time is up." & echo "Time is up." | festival --tts

sleep 60 -> 60sec waiting.
gmessage -> display messagebox
echo "something" | festival --tts  -> Text to speech

1/19/2012

Enabling systray in Ubuntu 11.10 Unity

1.


$ gsettings get com.canonical.Unity.Panel systray-whitelist


['JavaEmbeddedFrame', 'Wine', 'scp-dbus-service', 'Update-notifier']


$ gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Wine', 'scp-dbus-service', 'Update-notifier', 'DaumCloud']"


-> then re-login


2.


install dconf-tools


$ dconf-editor
-> desktop > unity > panel > enable the notification area


dconf-editor


1/17/2012

Ubuntu 11.10 unity sucks!



This unity interface is ... sucks !

Flexibility has gone... customizing become more difficult....

Linux mint or debian.. I'm considering..

12/14/2011

Ubuntu desktop cube rotating by human physical motion.


Not so complicated as it appears.


Two distance measuring sensors detect motion and send signals to the AVR board behind the monitor.

Then, the AVR board analyze whether the object is moving to right or left, and send analyzed result to PC (ubuntu) through USB serial port.

On ubuntu, python program daemon read the serial data, and rotate desktop cube.




It was my first AVR playing.
Very funny.

2/18/2011

samba IP allow setting

samba IP allow setting

$ sudo vi /etc/samba/smb.conf

in [global] section, add this line

hosts allow = 192.168.0.11 192.168.0.12


$ sudo service smbd restart

12/03/2010

set mysql charset to utf8 in ubuntu 10.04

1. MySQL setting

Edit my.cnf with this command :
$ sudo vi /etc/mysql/my.cnf

in [client] section, add this :

default-character-set = utf8

and, in [mysqld] section, add these :

default-character-set=utf8
default-collation=utf8_general_ci
init_connect=set collation_connection=utf8_general_ci
init_connect=set names utf8
character-set-server=utf8
collation-server=utf8_general_ci
character-set-client-handshake = TRUE

The restart mysqld

$ sudo /etc/init.d/mysql restart



Confirm :

mysql> show variables like 'char%'
-> ;
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)

* IMPORTANT : Create database with "defalut charset=utf8" option.
user@myserver:/home/user$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 56
Server version: 5.1.41-3ubuntu12.7 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database DBNAME default charset=utf8;

Query OK, 1 row affected (0.00 sec)

mysql> Bye

2. Django settting

in settings.py add this :

LANGUAGE_CODE = 'ko-KR'
./managy.py syncdb should be run.


Then, 한글 입력 is ok in Django application.

11/27/2010

Setting mp3 quality when using rhythmbox to sync iphone or ipod

When I sync music library with iphone in ubuntu, rhythmbox convert almost any type of music file into mp3 file automatically.

However, the default quality set is vbr, and I want the best quality, i.e., 320kbps, not vbr.

Rhythmbox - Edit - Preference - Music - Edit Preferred format
Select MP3.

Change the setting like this :

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc mode=0 vbr=0 bitrate=320 ! id3v2mux



.

11/03/2010

ubuntu nautilus dirs config

$ cat ~/.config/user-dirs.dirs
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/바탕화면"
XDG_DOWNLOAD_DIR="$HOME/다운로드"
XDG_TEMPLATES_DIR="$HOME/서식"
XDG_PUBLICSHARE_DIR="$HOME/공개"
XDG_DOCUMENTS_DIR="$HOME/문서"
XDG_MUSIC_DIR="$HOME/음악"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"

6/29/2010

Extract icon from EXE file in ubuntu

$ wrestool -x -t14 TARGET.EXE -o result.icon
$ convert result.icon result.png


why -t14 ?

wrestool -l TARGET.EXE
-> shows a list of resources included in TARGET.EXE file, where type=14 (type=group_icon) is the icon image we want to extract.

-x option means extract
-o where to place extracted files

6/23/2010

Let google desktop find MS doc, xls, or ppt files

sudo apt-get install wv
sudo apt-get install catdoc


http://desktop.google.com/support/linux/bin/answer.py?hl=en&answer=76816

5/19/2010

scanning port state whether opened, closed or filtered by using nmap

[root@localhost ~]# nmap -sT -p 1-65535 localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2008-02-19 01:47 KST
Interesting ports on xxx.xxx.xxx.xxx:
Not shown: 65531 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
111/tcp open rpcbind
645/tcp open unknown
ref: http://kldp.org/node/91134





Nmap finished: 1 IP address (1 host up) scanned in 2.391 seconds

5/14/2010

changing menu font color in firefox

$ cat ~/.mozilla/firefox/[blahblah~].default/chrome/userChrome.css

menubar, menubutton, menulist, menu, menuitem {
font-family: sans !important;
font-size: 10pt !important;
color: black ! important;
}

$

It is useful when a firefox theme such as OSX theme makes menu font size too small or font color not distinguishable.


Modify the OSX theme -> remove shadow in toolbar and tab

/* ----- DEFAULT PRIMARY TOOLBAR BUTTONS ----- */

.toolbarbutton-text-shadow,
.tab-text-shadow {
color: #f0f0f0;
padding-top: 0px;
opacity: 0;
}

.tab-text-shadow {
padding-top: 0;
font-size: 10pt;
font-weight: normal;
font-family: "sans";
}


/.mozilla/firefox/jwi2ie5q.default/extensions/{00352F14-3F76-4e4d-ACFF-9972D7E4B3B9}/chrome/MacOSX.jar

edit -> browser/browser.css file

Always show nautilus location bar in text format

gconf-editor

/apps/nautilus/preferences/always_use_location_entry

-> check

.

5/13/2010

Virtualbox on Ubuntu 10.04

repo :

deb http://download.virtualbox.org/virtualbox/debian lucid non-free


key :

wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -


install :

sudo apt-get update
sudo apt-get install virtualbox-3.1