本文简述在Ubuntu下利用playonlinux安装Office2003,及安装完成后如何关联.doc文件到Word程序。Step 1. 设置playonlinux安装源sudo su -c "echo "deb http://playonlinux.botux.net/ hardy main #PlayOnLinux" >> /etc/apt/sources.list"
sudo apt-get update
sudo apt-get install playonlinux -yStep 2. 下载Office2003的安装镜像文件,打开playonlinux,按照提示安装Office。Step 3. 建立关联脚本,使用Word默认打开.doc文件。mkdir ~/bin #要确认你的PATH环境变量里面有~/binvi ~/bin/winword.sh #建立Office2003文件关联脚本将下面的代码拷入vi,存盘退出。然后设置.doc文件的默认打开的程序为winword.sh即可。#!/bin/sh
if [ "$1" != "" ]; then
filename=`echo z:$1 | sed "s/\//\\/g"`
env WINEPREFIX="/home/`whoami`/.PlayOnLinux/wineprefix/Office2003/" wine "C:Program FilesMicrosoft OfficeOFFICE11WINWORD.EXE" "$filename"&
else
/usr/share/playonlinux/playonlinux --run "Word 2003"&
fi Linux比Windows更强,但是怎么管理呢?Ubuntu 8.04没有正确关机引起挂ntfs分区盘出错解决相关资讯 wine Ubuntu教程
- 说说 Wine + QQ 轻聊版 7.7 的安装 (12/01/2015 08:15:38)
- 如何在 64 位 Ubuntu 15.10 中编译 (10/27/2015 15:31:18)
- Wine 1.7.51 发布 (09/06/2015 20:42:04)
| - Wine 1.8-rc1 发布下载 (11/21/2015 21:28:26)
- Wine 1.7.52 发布下载,更多 (10/03/2015 12:35:05)
- Wine 1.7.50 发布下载,初步实现 (08/22/2015 07:59:28)
|
本文评论 查看全部评论 (0)