xmame模拟器安装及手柄

Jan 29, 2009 01:28:44 PM

在新力德里搜索xmame安装相关程序。

对于手柄,一般识别为 /dev/input/js0

在终端: sudo gedit /etc/xmame/xmamerc   打开配置文件

rompath 设置自己的rom所在的位置,一定设置,因为xmame并不在当前目录里找rom文件。

 

### xmame running parameters ###
#
# Default xmame package configuration
# Last Updated for: 0.88
# This file is used by all xmame binaries

### Data files/directories ###
rompath                 /home/sandy/rom/
samplepath              /usr/share/games/xmame/samples
artwork_directory       /usr/share/games/xmame/artwork
cheat_file              /usr/share/games/xmame/cheat.dat
hiscore_file            /usr/share/games/xmame/hiscore.dat
history_file            /usr/share/games/xmame/history.dat
mameinfo_file           /usr/share/games/xmame/mameinfo.dat

### System-wide Configuration directories ###
inipath                 /etc/xmame/ini
ctrlr_directory         /etc/xmame/ctrlr

### User resources ###
cfg_directory           $HOME/.xmame/cfg
nvram_directory         $HOME/.xmame/nvram
memcard_directory       $HOME/.xmame/memcard
input_directory         $HOME/.xmame/inp
hiscore_directory       $HOME/.xmame/hi
state_directory         $HOME/.xmame/sta
snapshot_directory      $HOME/.xmame/snap
diff_directory          $HOME/.xmame/diff

### MAME Related ###
defaultgame             pacman
language                english
fuzzycmp                1
cheat                   0
skip_disclaimer         0
skip_gameinfo           0
bios                    default

### For target specific options
# use the target specific file.
#
# X11: xmame-x11rc
# SDL: xmame-SDLrc
# SVGA: xmame-svgalibrc
#用于控制手柄,有手柄把下面3行注释去掉,就可以用手柄了,假设你的手柄是/dev/input/js0了
jt 1
jdev /dev/input/js0
usbpspad 1

比如我有拳皇

 xmame -jt 1 -jdev /dev/input/js0 kof97pls.zip

 

1. 左 alt + home 变为为全屏
2.启动程序的时候使用参数.
-ws 参数是游戏窗口是默认宽度的倍数, -hs 是高度倍数,
比如
xmame -ws 2 -hs 2 kod.zip             //屏幕变为2倍
3.
Ctrl+PageUP把窗口变大。

游戏中会遇到需要按OK键的情况,可以直接按一下O,然后桉一下K就可以了.

默认情况下按数字键5是投币,按1 是开始。

TAB键可以弹出设置界面

之后就可以用手柄操作了。

 

uNetBootin
http://unetbootin.sourceforge.net/
可以傻瓜生成u盘安装盘
除了ubuntu还有包括几乎所有目前流行的linux发行版本
插上U盘 一键就搞定
连下载ISO都是自动的

安装方法

 sudo apt-get install ufw 

使用方法

1 启用

 sudo ufw enable
 sudo ufw default deny 

作用:开启了防火墙并随系统启动同时关闭所有外部对本机的访问(本机访问外部正常)。

2 关闭

 sudo ufw disable 

2 查看防火墙状态

 sudo ufw status 

3 开启/禁用相应端口或服务举例

 sudo ufw allow 80 允许外部访问80端口
 sudo ufw delete allow 80 禁止外部访问80 端口
 sudo ufw allow from 192.168.1.1 允许此IP访问所有的本机端口
 sudo ufw deny smtp 禁止外部访问smtp服务
 sudo ufw delete allow smtp 删除上面建立的某条规则

推荐设置

 sudo apt-get install ufw
 sudo ufw enable
 sudo ufw default deny 

飞鸽的端口打开

飞鸽的下载:http://code.google.com/p/qipmsg/

sudo ufw allow 2425/tcp
sudo ufw allow 2425/udp

Lazybuntu 懶人包

Nov 01, 2008 12:21:57 AM

Lazybuntu 懶人包是用來調整 Ubuntu 的軟體,自動從網路下載多媒體編碼器、 安裝更好用的燒錄軟體、字典、廣播收聽軟體、BBS 連線程式等,讓 Ubuntu 更容易使用。

使用说明

http://lazybuntu.openfoundry.org/usage.html

下载

http://of.openfoundry.org/projects/852/download

Ati显卡驱动手动安装

Oct 31, 2008 10:49:13 PM

1. Install necessary build tools.

$ sudo apt-get update
$ sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++5 dkms linux-headers-$(uname -r)

2. Download the latest Catalyst package.

ati.amd.com/support/driver.HTML

Select your driver.

Mine is:Linux x86--Radeon--3xxx series

a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-8-10-x86.x86_64.run

3. Create .deb packages.

$ sh ati-driver-installer-8-10-x86.x86_64.run --buildpkg Ubuntu/hardy

4. Add driver to kernel module blacklist.

The ATI driver must be added to the kernel module blacklist so that the new ATI driver will be used. If it is not blacklisted, the official Ubuntu repository version of the ATI driver will be loaded instead.

$ sudo gedit /etc/default/linux-restricted-modules-common

Add "fglrx" to the line "DISABLED_MODULES"

DISABLED_MODULES="fglrx"

5. Install .debs.

$ sudo dpkg -i xorg-driver-fglrx_8.542-0ubuntu1_i386.deb fglrx-kernel-source_8.542-0ubuntu1_i386.deb fglrx-amdcccle_8.542-0ubuntu1_i386.deb

6.Finishing the Install: Configuration

If you've used fglrx previously, you will not need to do this.

Now you'll have to edit your xorg.conf

sudo gedit /etc/X11/xorg.conf

and add the following line to the Device section (if it does not already exist). Include the following lines without [...]:

Section "Device"
        [...]
        Driver    "fglrx"
        [...]
EndSection

Save and exit, then

reboot the PC.

Select the safe mode

Then run

sudo aticonfig --initial -f

in a terminal. If it does not error you should be fine.

 type

fglrxinfo
 

into the terminal. If the vendor string contains ATI, you have installed the driver successfully. Release 8.8 looks like:

display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon X1950 Series
OpenGL version string: 2.1.7873 Release

LXDE轻灵桌面环境

Oct 31, 2008 09:47:11 PM

LXDE = Lightweight X11 Desktop Environment,是個輕量級的X11 LXDE = Lightweight X11 Desktop Environment,是个轻量级的X11
桌面環境,速度快,需要的記憶體和CPU 資源少,適合在netbook、行動上網裝置(MID)或較舊的電腦上使用,桌面环境,速度快,需要的记忆体和CPU资源少,适合在netbook、行动上网装置(MID)或较旧的电脑上使用,

可以裝在可以装在
Ubuntu、Debian 等發行套件裡,支援多個語系,原始碼部分以GPL 部分以LGPL 授權,細節可以在 Ubuntu、Debian等发行套件里,支援多个语系,原始码部分以GPL部分以LGPL授权,细节可以在
http://lxde.org/網站找到。 http://lxde.org/网站找到。

Install lxde in Ubuntu

First you need to edit the /etc/apt/sources.list file add the following lines

sudo gedit /etc/apt/sources.list
 

For Hardy Users

deb http://ppa.launchpad.net/lxde/ubuntu hardy main
deb-src http://ppa.launchpad.net/lxde/ubuntu hardy main

Then

sudo apt-get update
sudo apt-get install lxde LXSession lxrandr

但是此桌面不能自动挂载Ntfs fat等文件系统,需要手动修改fstab,然后mount -a就可以了。

Ubuntu下关闭UTC

Oct 30, 2008 10:12:10 PM

时间不同步,相差了8个小时,就是因为Linux开启了UTC,关闭后就不存在这个问题了。

在Ubuntu下,使用下面的方法:

sudo vim /etc/default/rcS


修改:UTC=yes
为:UTC=no

Clonezilla Live

Oct 28, 2008 02:55:56 AM

大量部署作业系统的时候(不管是微软Windows或是Linux),用 Norton Ghost® 制作成印象挡再复制到每台用户端是现行最常使用的方法。然而适合用来做大量复制的 Symantec Ghost Corporate Edition® 需要不少的费用,而且电脑越多,费用越高。此外,因为它不是自由软体,所以灵活度不高,不能自己客制化修改。若是使用 Norton Ghost® 又必须一台台的做, 颇为旷时费日。
再生龙Clonezilla提供您一个完整的环境,这是一个整合的系统,包含还原程式以及作业系统。搭配网路开机功能,你可以忘了软碟或是光碟...
以国家高速网路与计算中心C教室为例,共有41台机器同时进行还原的动作,还原一个5.6 GBytes的微软Windows XP image到41台客户端电脑,以群播(multicast)的方式处理,只要10分钟左右(若采用unicast的话,约需50分钟)。

一、再生龙特点:

· 自由软体,国网中心所开发。

· 可还原再生多种作业系统,包含Linux (ext2, ext3, reiserfs, xfs, jfs), 微软Windows (fat, ntfs)。这些档案系统只备份有存资料的硬碟空间,因此可以节省备份时间与硬碟空间。其他不支援的档案系统Clonezilla采用全部复制(dd)的方式处理。

· 支援GNU/Linux下的LVM2 (尚未支援LVM1)

· 支援群播(Multicast)。配合PXE网路开机,搭配DRBL的Clonezilla可以使用播(multicast)的方式,适合用来大备份与还原。硬体设备功能足够时(用户端支援Wake on LAN与PXE),可以远端操作,人不需到现场

· 不同于Partimage或是ntfsclone只能处理分割区,Clonezilla包含其他程式的撰写与整合,因此可以备份与复制分割区或是整颗硬碟

· 透过本实验室开发的另外一套自由软体drbl-winroll,可以指定还原后微软Windows的主机名称、工作群组,亦可写入随机的SID。

二、再生龙的安装与使用:

· 免安装的单机版还原系统Clonezilla live(使用CD/USB随身碟开机)的使用请参考Clonezilla live

· 适合大量备份与还原的伺服器版再生龙(Clonezilla server edition)(使用PXE网路开机)详见DRBL

hc.cyc.edu.tw/exe/clonezilla_live/index.html

Ubuntu自动挂载ntfs分区

Oct 26, 2008 11:23:22 PM

安装8.04后发现Ubuntu不能自动挂载本地的ntfs硬盘。

1.傻瓜方法

sudo apt-get install ntfs-config
sudo ntfs-config

2.使用UUID,修改/etc/fstab

sudo apt-get install gparted

安装分区编辑器,查看分区信息

ls -l /dev/disk/by-uuid/

查看分区对应的UUID信息,其中短的就是ntfs格式的了。

sudo gedit /etc/fstab

编辑fstab,添加对应的信息,比如我的

#/dev/sda5
UUID=F2E8742FE873EFE9 /media/work ntfs-3g defaults,locale=zh_CN.UTF-8 0 0
#/dev/sda6
UUID=BC648CFC648CBAA2 /media/game ntfs-3g defaults,locale=zh_CN.UTF-8 0 0
#/dev/sda7
UUID=A4949D33949D0946 /media/film ntfs-3g defaults,locale=zh_CN.UTF-8 0 0

重启就ok了。