Posts tagged ubuntu
ubuntu linux 下安装迅雷(crossover-pro-7.1.0.sh+Thunder.cxarchiv)及关联firefox
十 30th
在以下位置可公开查看您的文档: http://docs.google.com/View?id=ddqsjgzx_802978×6nc3
同时强烈推荐大家使用aMule 反吸血电驴 http://forum.ubuntu.org.cn/viewtopic.php?f=95&t=233117
————————————————————————————————————————————-
貌似linux版本的xl已经开发,没发布,xl用来收钱? viewtopic.php?f=101&t=235006
============================================================================
写给刚刚使用ubuntu还不习惯没有迅雷的同学。
一般的下载使用Firefox 的downthemall插件就OK
本贴介绍 linux下安装迅雷+firefox的FlashGot插件+VBS脚本等=firefox支持迅雷5下载
============================================================================
crossover(wine)安装迅雷 install-crossover-pro-7.1.0.sh+Thunder.cxarchive
这个版本的迅雷支持BT和EMule
支持关联一起用crossover安装的IE,个人感觉比WINE安装的IE稳定。
不要使用sudo apt-get install crossover-pro 安装源里的30天试用版本
软件比较大,无法上传
下载
install-crossover-pro-7.1.0.sh
文件大小:24.98MB
http://www.brsbox.com/filebox/down/fc/32c4ae25219a136f01e0c0f37b38669b
和
Thunder.cxarchive
文件大小:48.3MB
http://www.brsbox.com/filebox/down/fc/77a072686d7cc6a1dccb80f18f6c3960
安装
install-crossover-pro-7.1.0.sh
安装方法
$ chmod +x install-crossover-pro-7.1.0.sh
$ ./install-crossover-pro-7.1.0.sh
就OK了
首先要确保机器上有crossover,
然后在configuration里选Manage Bottles点击restore archive 找到下载的Thunder.cxarchive安装就OK
在ubuntu Linux 下通过 Firefox 网页直接播放 PPStream
十 19th
http://kan.pps.tv/ 网页在线播放,效果如下

影院模式

好了,如果大家感兴趣的话,请往下看:
首先,我们需要准备如下软件:
1、可以播放rmvb文件和wmv文件的totem解码器,我想大家大概都有这个。
2、totem-pps,就是那个运行在totem里的pps插件,我想这个是绕不开的。安装方法请参照:http://forum.ubuntu.org.cn/viewtopic.php?f=74&t=223582
3、Firefox下的Greasemonkey插件,这个是用来将客户的js代码嵌入网页的插件,非常神奇。
firefox搜索安装Greasemonkey插件 https://addons.mozilla.org/zh-CN/firefox/addon/748
4、totem-plugin,让Firefox能够使用totem。一般的Ubuntu系统都是默认安装的。
然后,在Greasemonkey里添加这个脚本就可以了:
单击此处直接安装:http://userscripts.org/scripts/source/59991.user.js
最新更新见这里
http://forum.ubuntu.org.cn/viewtopic.php?f=74&t=232435
以下是代码:
// ==UserScript==
// @name PPS for Firefox
// @namespace liu.wanfang@gmail.com
// @description pps for firefox in the totem-pps
// @include http://kan.pps.tv/play/*
// ==/UserScript==function GmOnMouseOver(evt)
{
if(document.getElementById(‘GmShowBig’).value == “影院模式”)
{
document.getElementById(‘GmShowBlack’).style.opacity = “1″;
}
}
function GmOnMouseOut(evt)
{
if(document.getElementById(‘GmShowBig’).value == “影院模式”)
{
document.getElementById(‘GmShowBlack’).style.opacity = “0.1″;
}
}
function GmOnClick(evt)
{
var t = document.getElementById(‘GmShowBlack’);
if(evt.target.value == “影院模式”)
{
evt.target.value = “恢复”
t.style.left = ‘-70px’;
t.style.top = ‘-200px’;
t.style.width = ‘1140px’;
t.style.height = ‘900px’;
t.style.background = ‘rgba(0,0,0,0.6)’;document.getElementById(‘GmShowPlayBorder’).style.left = ‘104px’;
document.getElementById(‘GmShowPlay’).style.width = ‘712px’;document.getElementById(‘GmShowLeft’).style.top = ‘200px’;
document.getElementById(‘onlineSee’).style.display = ‘none’;
}
else
{
evt.target.value = “影院模式”
t.style.left = ‘60px’;
t.style.top = ‘26px’;
t.style.width = ‘650px’;
t.style.height = ‘520px’;
t.style.background = ‘rgba(0,0,0,0.4)’;document.getElementById(‘GmShowPlayBorder’).style.left = ‘180px’;
document.getElementById(‘GmShowPlay’).style.width = ‘500px’;document.getElementById(‘GmShowLeft’).style.top = ‘0px’;
document.getElementById(‘onlineSee’).style.display = ”;
}
}
function GmConOnClick(evt)
{
if(evt.target.value == “隐藏控制”)
{
evt.target.value = “显示控制”
document.getElementById(‘GmShowPlayBorder’).style.height = “424px”;
}
else
{
evt.target.value = “隐藏控制”
document.getElementById(‘GmShowPlayBorder’).style.height = “auto”;
}
}var o = document.getElementById(’showplayer’);
var pps = o.innerHTML.match(/pps:\/\/.*?rmvb|pps:\/\/.*?wmv/);
var s = “<div id=’GmShowBlack’ style=’position:absolute;top:26px;left:60px;-moz-border-radius:40px;width:650px;height:534px;background:rgba(0,0,0,0.4);z-index:1000;opacity:0.1;’>”;
s += “<div id=’GmShowLeft’ style=’position:absolute;left:30px;width:50px;height:442px;z-index:1001;padding:190px 180px 0px 0px;’>”;
s += “<input Id=’GmShowBig’ type=’button’ value=’影院模式’ style=’height:65px;width:65px;background:rgba(0,0,0,0.4);-moz-border-radius:10px;color:#FFFFFF;border:1px outset #000000;margin:10px;’/>”;
s += “<input Id=’GmShowCon’ type=’button’ value=’隐藏控制’ style=’height:65px;width:65px;background:rgba(0,0,0,0.4);-moz-border-radius:10px;color:#FFFFFF;border:1px outset #000000;margin:10px;’/>”;
s += “</div></div>”;
s += “<div id=’GmShowPlayBorder’ style=’position:absolute;top:64px;left:180px;z-index:1001;overflow-y:hidden;height:auto;’>”;
s += “<object id=’GmShowPlay’ data=’”+pps+”‘ type=’application/x-mplayer2′ width=’500′ height=’451′ scr=’”+pps+”‘ ShowControls=’true’ autostart=’true’ ShowTracker=’true’ style=’z-index:1002;’><param name=’playcount’ value=’infinite’></object>”;
s += “</div>”;
o.innerHTML = s;var gsb = document.getElementById(‘GmShowLeft’);
gsb.addEventListener(“mouseover”,GmOnMouseOver,false);
gsb.addEventListener(“mouseout”,GmOnMouseOut,false);document.getElementById(‘GmShowBig’).addEventListener(“click”,GmOnClick,false);
document.getElementById(‘GmShowCon’).addEventListener(“click”,GmConOnClick,false);
Ubuntu下制作,安装USplash开机画面
十 18th
来源:http://www.ningzai.net/2008/06/10/customize-and-install-a-usplash-theme-ubuntu/
下了几个.so的USplash开机画面,不知道怎么装,上网查了一下,找到了,还顺带找到了制作USplash开机画面的方法。
1. 首先需要安装一个需要的包:BOGL。
sudo apt-get install libbogl-dev
2. 准备好一个用来做开机画面的.png,照着下面的步骤build出个.so文件,yourimage都是你自己的或自己想要的文件名(红字部分)。
把图片改名:
cp yourimage.png usplash-artwork.png
从图片搞出个.c,好强悍:
pngtobogl usplash-artwork.png > usplash-artwork.c
编译成.o?
gcc -Os -g -I/usr/include/bogl -fPIC -c usplash-artwork.c -o usplash-artwork.o
继续gcc,搞成.so(才疏学浅,只能乱讲了):
gcc -shared -Wl,-soname,usplash-artwork.so usplash-artwork.o -o yourimage-splash.so
3. 在下面的位置建一个文件夹把刚才得到的或从网上下载的.so文件放进去,如果以前有这个文件夹就不用再新建了:
sudo mkdir -p /usr/local/lib/usplash/
sudo cp yourimage-splash.so /usr/local/lib/usplash/yourimage-splash.so
4. 把splash加进alternatives系统里:
sudo update-alternatives –install /usr/lib/usplash/usplash-artwork.so usplash-artwork.so /usr/local/lib/usplash/yourimage-splash.so 55
5. 重新设置一下:
sudo dpkg-reconfigure linux-image-$(uname -r)
6. 重启看效果……哈哈!如果重启后的开机画面没了,变成一堆字符的话,恭喜,继续往下看。
7. 修改USplash的配置文件:
sudo gedit /etc/usplash.conf
在里面加入下面两行,你的显示器分辨率,如果原来里面有的话就改成你自己的,我的是1280*800:
xres=1280
yres=800
红字换成你自己的分辨率。
8. 根据配置文件里面说的,还要update一下initramfs:
sudo update-initramfs -u
9. OK,重启,出来了。
PS:如果你以后又想换回原来的开机画面,或者你安装了多个开机画面,想从里面选择一个,可以执行下面的命令选择alternatives:
sudo update-alternatives –config usplash-artwork.so
Ubuntu linux IPV6的源
九 15th
以下源支持IPV6,推荐可以使用IPV6的教育网用户使用,如需源代码,将deb替换成deb-src即可
deb http://mirror.switch.ch/ftp/ubuntu/ jaunty main multiverse restricted universe
deb http://mirror.switch.ch/ftp/ubuntu/ jaunty-backports main multiverse restricted universe
deb http://mirror.switch.ch/ftp/ubuntu/ jaunty-proposed main multiverse restricted universe
deb http://mirror.switch.ch/ftp/ubuntu/ jaunty-security main multiverse restricted universe
deb http://mirror.switch.ch/ftp/ubuntu/ jaunty-updates main multiverse restricted universe
deb http://ftp.heanet.ie/mirrors/ubuntu/ jaunty main multiverse restricted universe
deb http://ftp.heanet.ie/mirrors/ubuntu/ jaunty-backports main multiverse restricted universe
deb http://ftp.heanet.ie/mirrors/ubuntu/ jaunty-proposed main multiverse restricted universe
deb http://ftp.heanet.ie/mirrors/ubuntu/ jaunty-security main multiverse restricted universe
deb http://ftp.heanet.ie/mirrors/ubuntu/ jaunty-updates main multiverse restricted universe
deb http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ jaunty main multiverse restricted universe
deb http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ jaunty-backports main multiverse restricted universe
deb http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ jaunty-proposed main multiverse restricted universe
deb http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ jaunty-security main multiverse restricted universe
deb http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ jaunty-updates main multiverse restricted universe
亲测可用,最高速度达到2.5M/s,低到300多K/s。
PPS for Ubuntu linux网页点播关联firefox后实现点击-客户端播放-来看网络电视
八 28th
测试软件:ubuntu9.04+firefox3.5
依赖于与php5 – cli软件包
安装
apt-get install php5-cli
例如解压到桌面
sudo cp -i ppstream /usr/bin
然后根据你的系统下载安装deb文件(官方的安装包和解码器打包好的)
32位
http://mickeywaley-blog.googlecode.com/files/pps.2.6.86-8896.i386.deb
64位
http://mickeywaley-blog.googlecode.com/files/pps.2.6.86-8896.amd64.deb
安装后下载
http://mickeywaley-blog.googlecode.com/files/ppstream.gz
如何实现Ubuntu系统启动时firestarter自动启动(转发)
八 20th
这几天很是很不爽。为了实现在ubuntu下上战网玩星际,尝试了好多方法,安装了cedega等等,结果功亏一篑,在最后上iccup战网时自动退出。百法而无一用,郁闷;尝试安装google earth,结果运行超级缓慢;尝试安装ATI显卡,系统显示异常,xorg.conf还没备份,最后使用CD上的 尝试ubuntu, 进入后,拷贝其xorg.conf,才算恢复好原系统状态。浪费了大量的时间,还没什么效果,遂决定不再继续玩火,老老实实的学习joomla,尝试建网站!
不过还是决定对ubuntu做最后一个改进(近期,:))—-设置防火墙的自启动。 继续阅读 »
Ubuntu 9.10 ( Karmic Koala ) Alpha 4 发布
八 14th
Ubuntu 下一个发行版 UBuntu 9.10 代号 Karmic Koal Alpha 4 如期发布了。在 Ubuntu 9.10 (Karmic Koala) Alpha 4 中,默认的 Firefox 浏览器已经从 3.0 系列升级到了 Firefox 3.5 系列,目前在发布的 Ubuntu 9.10 ( Karmic Koala ) Alpha 4 中是使用的是 Firefox 3.5.2。 继续阅读 »
ubuntu linux 自动网络校时ntpdate的方法
八 14th
安装软件
代码:
sudo apt-get install xview-clients
1、直接连接到校时服务器
代码:
ntpdate stdtime.sinica.edu.tw
注:Server 必须是 Linux,而且要打开 ntpd , time 两个 service
2、更新 BIOS 时间
代码:
clock –w
3、加入计划任务
代码:
crontab -e
#输入以下代码保存
0 0 * * * (/usr/sbin/ntpdate stdtime.sinica.edu.tw ; /sbin/clock -w)
0 0 是时间0:0分自动网络校时
10 8 这样每天8:10自动进行网络校时
UBUNTU 录制 GIF 动画
八 11th
其实,录制 GIF 动画在很多时候都会派上用场。比如说,你需要向某个朋友演示软件的用法。在 Ubuntu 中,有一个录制 GIF 动画的小工具值得一用,它的名字是 byzanz。
安装 byzanz
首先,在终端中执行指令:sudo apt-get install byzanz,这将安装 byzanz 程序。接着,右击 GNOME 面板,在弹出的菜单中选择“Add to Panel”,然后在 Miscellaneous 中选中 Desktop Recorder,最后单击“Add”按钮,这样就将 byzanz 添加到了 GNOME 面板中,以方便下一步的使用。
Ubuntu下安装 apache+php+mysql文本服务器!
五 9th
Ubuntu下安装 apache+php+mysql文本服务器!
ubuntu实在是太牛了,很简单的方法就安装完毕web服务器,只需要按顺序执行以下命令即可:
Once again, here’s my updated simple installation of Apache, PHP and MySQL in Ubuntu 8.04 LTS (Hardy Heron) Server.
1)Install SSH Client and Server (for my remote access)
sudo apt-get install ssh
2)Install Database Server
sudo apt-get install mysql-server-5.0
3)Install Apache HTTP Server
sudo apt-get install apache2
4)Install PHP5 and Apache PHP5 module
sudo apt-get install php5 libapache2-mod-php5
5)Restart Apache
sudo /etc/init.d/apache2 restart
6)Optionally, install phpMyAdmin
sudo apt-get install phpmyadmin
Enjoy!
怎么样?简单吧!除去下载的时间,要不了一分钟就可以完成配置,在 Ubuntu 上还需要 APM 包吗?还是记住以下几个命令和位置就行了。
sudo /etc/init.d/apache2 restart (重启 apache)
sudo gedit /etc/php5/apache2/php.ini (配置 php.ini)
sudo gedit /etc/apache2/apache2.conf (配置 apache2.conf)
/var/www/(主目录位置)
写一个phpinfo.php文件
<?php
phpinfo();
?>
测试用的phpinfo。php的文件放在这个下面