顯示具有 Ubuntu 標籤的文章。 顯示所有文章
顯示具有 Ubuntu 標籤的文章。 顯示所有文章

2012年10月24日 星期三

kill gnome-settings-daemon


How do I kill gnome-settings-daemon?


http://askubuntu.com/questions/93578/how-do-i-kill-gnome-settings-daemon
http://askubuntu.com/a/93582

sudo -e /etc/xdg/autostart/gnome-settings-daemon.desktop
Change X-GNOME-AutoRestart=true to X-GNOME-AutoRestart=false

[Solved] gnome-settings-daemon running at 100% CPU 
http://forum.pinguyos.com/Thread-Solved-gnome-settings-daemon-running-at-100-CPU

for my Ubuntu 12.04, now upgrading to 12.10...

2012年4月10日 星期二

2012年2月1日 星期三

Build Environment of Android


Android - Initializing a Build Environment
http://source.android.com/source/initializing.html

One thing to point out: Ubuntu 11.10 did not have lib32readline5-dev. (due to license)
Need to use libreadline-gplv2-dev instead.

Reference: launchpad.net - 11.10 can not apt-get install lib32readline5-dev

2012年1月4日 星期三

use Ubuntu Jaunty and Android ADB

# adb kill -server
# sudo adb start -server
# adb devices


Ubuntu Jaunty and Android ADB

android developers - Setting up a Device for Development

# vi /etc/udev/rules.d/51-android.rules.

For Gusty/Hardy, edit the file to read:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

Android Developers Forum - Ubuntu Jaunty and adb not playing well together

pts.blog - How to fix the adb no permissions error on Ubuntu Lucid

Yi Yu - Fix “???????????? no permissions” with adb and your Android phone

2011年11月25日 星期五

Eclipse on Ubuntu(64bit)


Eclipse - no Java (JRE) / (JDK) … no virtual machine

Stack Overflow answer:
You can:
reference that exact JRE path in your eclipse.ini.
copying any JRE of your in your /jre directory
In both cases, no PATH to update.

eclipse.ini VM setup in Linux: reference

Eclipse cannot find adb

Stack Overflow answer
Problem was that the executables were made for 32-bit architecture and i was running amd64. Easily solved, just had to install the ia32-libs package.
Linux下无法使用adb,PacketTracer等软件的问题(转载)

Connect to your Samba server from Linux

Connect to your Samba server from Linux

The graphical method

Using the command line

Samba is a very powerful tool that not only can share files with Windows machines, but with Linux machines as well.

2009年4月30日 星期四

Install Ubuntu inside Windows

Some may ask why you need to install the new one, wasn't the old version worked fine? I must confess that I just want to try the latest version: Ubuntu 9.04.

The original 7.10 version had no good support on ATI graphic cards and I installed a open source driver fglrx.

After online updates to 8.04 and 8.10, the old driver could not work well. It ran in only Ubuntu low-graphic mode. At that time I thought it may be okay to continue and I kept on updating to 9.04.

However, after rebooting to finish updating, I couldn't even see the login menu.

Since I have driver problem, CD-ROM problem, I need to install by some other method. My computer had dual OS and I can use this advantage.

First I fixed the MBR to boot from Windows XP only. Later I delete the Ubuntu partition and formatted as NTFS drive.

Login to Windows and put the Ubuntu 9.04 CD to the external CD-ROM. Select Install inside Windows in the Ubuntu CD menu and set essential parameters. After the data all copied to your disk, you can reboot the system. Now the Windows Boot Manager will be shown and you can choose Ubuntu to finish the installation.

If you want to uninstall the Ubuntu, you can remove it from Windows Add/Remove Programs. It it easy, isn't it.

Reference from:
永遠的真田幸村: 超簡單!Windows下用wubi安裝Linux (Ubuntu 8.04 Hardy Heron)
OSWikiHK (Open Source Wiki Hong Kong, 香港開源維基): 使用 Wubi 在 Windows 安裝 Ubuntu/Kubuntu/Xubuntu 9.04 (Jaunty Jackalope)
重灌狂人: Wubi 免分割硬碟、3個步驟「無痛安裝」Ubuntu作業系統(v8.04.1最新版)

Ubuntu 正體中文站 討論區 - 筆電安裝ATI的Drvier失敗,而且變成low-graphics mode
阿駕零零壹 © 學習筆記: 讓 Ubuntu 8.10 正確辨識 ATi 顯卡
蹲在地上劃圈圈: ubuntu 8.10 -- 更換 GDM 這鬼東西的解析度

Fix Windows MBR

Using MbrFix is the simplest way to fix it.
Download MbrFix then open console.
(Start->Execute->cmd)
Change folder to MbrFix folder.
MbrFix /drive 0 fixmbr

If this method is not working, please check the following reference.

cnet download - MbrFix
CoffeeCat's IT Blog - 在Windows下删除Linux系统的方法(附修复MBR的工具下载)
Age of Engineer - 在Windows XP SP2下修復MBR
daqi's blog - 卸载ubuntu的正确方法

2009年4月28日 星期二

Ubuntu upgrade commands

Here's some common commands to upgrade the Ubuntu system.
# update the package list from the source
sudo apt-get update

# upgrade the installed packages on the system
sudo apt-get upgrade

# install some new packages
sudo apt-get install [package name, one or many]

# remove packages that no longer needed
sudo apt-get autoremove

# upgrade the update manager
sudo aptitude install update-manager-core

# update to latest release
# -c: check if new release distribution available
# -d: check if upgrading is possible
sudo update-manager -d -c

Hong Kong Linux User Group - 升級 Ubuntu/Kubuntu/Edubuntu/Xubuntu

2009年3月2日 星期一

Ubuntu user directory mapping

You can change your own directory mapping if you don't like the default folders.(Maybe it was named by system which you were not satisfied.)

  $ vi ~/.config/user-dirs.dirs
# find the follow
XDG_DESKTOP_DIR="$HOME/Desktop"
#modify the path to your folder
XDG_DESKTOP_DIR="$HOME"


You can change your own directory mapping for the rest of folders in the file. After you modify the file, restart your GNOME session.(Press Ctrl + Alt + Backspace)

Reference:
lzy's 543 - [教學]將 ubuntu 7.10 Gutsy 的桌面資料夾等中文路徑改成英文路徑方法
Nelson - [教學] 將 Ubuntu 7.10 的桌面資料夾等中文路徑改成英文路徑

2009年2月19日 星期四

messenger in ubuntu

Pidgin

aMsn
Written in tcl/tk
aMSN - 替代Windows Live Messenger的開源軟件
  $ sudo apt-get install amsn

emesene
Written in Python and Gtk+, need Ubuntu 8.04 or later.
[推薦]輕巧好用的msn client...emesene...
  $ sudo vi /etc/apt/sources.list
deb http://apt.emesene.org/ ./
deb-src http://apt.emesene.org/ ./
  $ sudo apt-get update
  $ sudo apt-get install emesene

Galaxium
玩物尚誌 - Linux下的超棒MSN Client - Galaxium
designed for the GNOME desktop
  $ sudo vi /etc/apt/sources.list
deb http://ppa.launchpad.net/galaxium/ubuntu hardy main
deb-src http://ppa.launchpad.net/galaxium/ubuntu hardy main
  $ sudo apt-get update
  $ sudo apt-get install galaxium

2009年2月16日 星期一

Ubuntu 8.10 破音問題

灌了Lazybuntu裡頭建議的影音播放軟體後
聲音就沒正常過= = 感覺是設定的問題
上網找了幾個解決方法 目前有效的是第一個!

Ubuntu 8.10下播放MP3音效輸出產生破音的解決[圖文]
如果你在使用Ubuntu8.10的過程中,也有被破音困擾過,那就試試下面介紹的方法。
雙擊通知欄區域的喇叭圖標,試著把PCM調到70%左右,測試啟動音樂,沒破音了吧,就這麼簡單。

Ubuntu audio problem
If you heard a lot of noises playing audios, try to adjust your Sound Setting. Set PCM to about 70% as the figure shown, then try to test again. The noises should be disappeared. This method is useful to me, or you may try the following steps.


Ubuntu音效問題 - U型遊樂園
  $ cd /etc/init.d
  $ sudo gedit soundstartfix
#!/bin/bash
kill $(lsof -t /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*)
sudo modprobe -r snd-hda-intel && sudo modprobe snd-hda-intel model=auto
  $ sudo update-rc.d soundstartfix defaults
  $ sudo chmod +x soundstartfix

2009年2月11日 星期三

Ubuntu記要

鉅亨看世界-視窗大敵Ubuntu
剛讀到這篇新聞~ 其實我用Ubuntu很久了 哈~

Ubuntu Wiki正體中文站
http://www.ubuntu-tw.org/

grub boot menu
/boot/grub/menu.lst

auto mount partitions(drives)
$ sudo vi /etc/fstab
# EXAMPLE:
# your hardware device
# mounting point
# mount type: ext2, ext3, nfs, ntfs, etc.
# mount status: ro, rw, suid, exec, auto, nouser, async, umask
# DUMP: system dump backup, default is 0
# boot check: check drive at boot, default is 0
/dev/sda5 /mnt ntfs utf8,umask=000 0 0

Mounting NTFS Partitions on Ubuntu
ubuntu 下自動掛載XP NTFS分區
ubuntu 8.10下是否可以訪問windows分區

Dual OS
Acer AS6530G vista, ubuntu 雙系統,並保留還原及快速播放功能
Ubuntu 7.10 加 Windows Vista,超華麗雙重開機

2009年2月4日 星期三

WebKit/GTK+ build

1. Get the source
 Download a release
 (WebKitGtk suggests that if you use the release package, don't forget Alp's patch)

2. Check dependencies
 According to Building the GTK+ port
 You should have the following development packages:
  • libicu-dev
  • libxslt-dev
  • libcurl-dev
  • libsqlite3-dev
  • libjpeg62-dev
  • libpng12-dev
  • gperf
  • bison
  • flex version 2.5.33 or later

You will need the following either.
  • autoconf
  • automake

3. Build the Sources
 Run the following commands to configure and build WebKit.
  $ ./autogen.sh --prefix=/usr
  $ make
 You can read WebKitGtk to get more information.

4. Install
 Run the demo browser (not needed, but useful)
  $ ./Programs/GtkLauncher
 Run the following command to install WebKit in the chosen path:
  $ make install


Reference:

2009年1月23日 星期五

setup vnc4server

reference from Ubuntu Forums
HOW TO: setup vnc4server

1. setup XDMCP:
  click System -> Administration -> Login Window
  click Remote tab
  select "Same as Local"
  click "Configure XDMCP"
  remove check from "Honour indirect requests"

2. configure remote greeter:
  $ sudo gedit /etc/gdm/gdm.conf

find the following:
  (1) [xdmcp] section, set enable as true
     Enable=true
  (2) # RemoteGreeter=/usr/lib/gdm/gdmlogin
     enable it(remove the comment)

3. Install required packages:
  $ sudo apt-get install vnc4server xinetd

4. Set the VNC passwd
  $ sudo vncpasswd /root/.vncpasswd

5. Define the VNC service criteria:
  $ sudo gedit /etc/xinetd.d/Xvnc
service Xvnc
{
    type = UNLISTED
    disable = no
    socket_type = stream
    protocol = tcp
    wait = yes
    user = root
    server = /usr/bin/Xvnc
    server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/X11/fonts/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES
    port = 5901
}

Save it!

NOTE: You can change the port number here, it changes what you use to connect to the server. For example, if you chose port 5959, you can connect to your Ubunutu using RealVNC on Windows XP by typing: 192.168.0.101:5959

6. Reinitialize the service with new criteria:
  $ sudo /etc/init.d/xinetd stop
  $ sudo killall Xvnc
  $ sudo /etc/init.d/xinetd start

7. Test the connection:
  $ vncviewer localhost:1

Also reference
Ubuntu 7.10系統配置vnc4server遠程桌面

2009年1月17日 星期六

webkit browser: midori

Midori is a lightweight web browser.
It use Webkit and GTK+2 as its rendering engine, and this project is still in heavy developement. So you may see many bugs.

Here's the steps to run the midori in Ubuntu.

1. Prerequisites

Requirements: GTK+ 2.10, Webkit 1.0, libXML2

  $ sudo apt-get install intltool libwebkit-dev libxml2-dev

NOTE: You may not find the libwebkit-dev package. Please edit the source.list under /etc/apt.
  $ sudo edit /etc/apt/source.list

Add 2 sources below
  deb http://ppa.launchpad.net/stemp/ubuntu gutsy main
  deb-src http://ppa.launchpad.net/stemp/ubuntu gutsy main

Then update the package lists.
  $ sudo apt-get update

2. Get source files

  $ git clone git://git.xfce.org/kalikiana/midori

3. Build and run Midori

  $ cd midori
  $ ./waf configure
  $ ./waf build

Fix the bugs that you may encounter.
To run the browser you can use the following commands.

  $ _build_/default/midori/midori

For more detail you can read INSTALL in the source folder.

--
There are not many Webkit browser for Linux...
Hope Google will release Chrome for Linux asap.

2008年12月19日 星期五

How to compile Firefox scriptable plugin NPRuntime in Ubuntu

How to compile Firefox scriptable plugin "npruntime" in Ubuntu

You will need the Firefox source codes. The source files require more than 200M space. You can download from Mercurial for the latest version or mozilla.org for old versions.

1. Install the Linux Build Prerequisites

Install the Linux Build Prerequisites. The following commands are used for Ubuntu.

  $ sudo apt-get build-dep firefox
  $ sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev

  (The following commands may be optional to your environment)
  $ sudo apt-get install autoconf2.13
  $ sudo apt-get install libdbus-glib-1-dev

For more information, please reference the Linux Build Prerequisites

2. Download the mozilla source code

Download the mozilla source code from Mozilla Source Code (Mercurial) (The latest version)

  $ hg clone http://hg.mozilla.org/mozilla-central/ mozilla
  $ cd mozilla

If you do not want to download the latest version, you can get old versions from mozilla.org(HTTP)

Note: Now the mozilla-central repository in Mercurial is the Firefox 3.1 source code. See Firefox 3.1 for developers for more information.

3. Add path to modules/plugin/sdk/samples/npruntime

Modified the toolkit/toolkit-makefiles.sh, attach the folder path to the npruntime folder in the array MAKEFILES_plugin

  $ vi toolkit/toolkit-makefiles.sh
MAKEFILES_plugin="
  modules/plugin/sdk/samples/npruntime/Makefile
"
  (The path may be different. Please check your source files.)

This will make the ./configure to build the Makefile based on the Makefile.in

4. Using a .mozconfig configuration file.

This configuration file will help us to setup the build options.

Example .mozconfig file to build Firefox, Default Release Configuration
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt
ac_add_options --disable-tests


Note: If you use the upper example .mozconfig file, please make a new folder name "ff-opt" for MOZ_OBJDIR.

  $ mkdir ff-opt

Please read Configuring Build Options for further instructions.

5. Generate the Makefile

You need autoconf to generate ./configure file if not exists. You may need to export AUTOCONF=autoconf2.13 in your environment
  $ autoconf (optional)
  $ ./configure

The Makefile will be generated in the MOZ_OBJDIR folder. If you followed the instructions above, that will be "ff-opt".

Note: Mozilla suggests you should re-configure in the MOZ_OBJDIR folder. See Building with an Objdir for more information.

6. Build the firefox

You can build the plugin before you make the Firefox build. But the Makefile will try to install the built plugin(.so) to MOZ_OBJDIR if you followed the procedure. If you just need the plugin, you can ignore the error and bypass this step.

  $ cd (your source root folder)
  $ make -f client.mk build

That may cost more than 40 minutes, depending on your machine ability.

The executable Firefox can be found in MOZ_OBJDIR/dist/bin

Please read Build and Install for more information.

7. Build npruntime

  $ cd modules/plugin/sdk/samples/npruntime
  (The path may be different. Please check your source files.)
  $ make

The plugin(.so) will be installed automatically. You can now run the Firefox and type "about:plugins" in the Location bar. The available plugins will be listed.


Reference:
mozilla - developer center
Powered By Blogger