record my way to ubuntu

Saturday, January 20, 2007

Install PSPVC

下载PSPVChttp://pspvc.sourceforge.net/
解压缩
tar -xvf pspvc-install-0.2.1.tar



下列包必须先安装好。
-libgtk2.0dev
-libfaac-dev
-libxvidcore4-dev
-nasm
-build-essential

然后开始安装
cd /pspvc-install-0.2.1
sudo sh install


安装完后,输入命令pspvc开始运行程序。

Monday, January 01, 2007

Samba and Swat

Samba and Swat
Oddly enough, I think SWAT was never in the planes for Ubuntu.

I have no problem in setting things up manually, and scrubbing a few conf files till perfection... but I've realized it's a commom problem for most people.

Of course I've been through the usual steps, such as sudo apt-get samba samba-common smbfs smbclient swat

But for you to get swat to work, you will need to install a dependency beforehand apt-get install xinetd .

Then, sudo vi /etc/inetd.conf and uncomment the line:

## swat stream tcp nowait.400 root /usr/sbin/tcpd \ /usr/sbin/swat


Then make an entry for Swat under xinetd with sudo vi /etc/xinetd.d/swat

And it should look like this:

# description: SAMBA SWAT
service swat
{
disable = no
socket_type = stream
protocol = tcp
#should use a more limited user here
user = root
wait = no
server = /usr/sbin/swat
}


Then, sudo dpkg-reconfigure xinetd to restart with the new configuration.

Now the netstat -lt should echo something similar to this:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:5666 *:* LISTEN
tcp 0 0 localhost:1026 *:* LISTEN
tcp 0 0 localhost:1027 *:* LISTEN
tcp 0 0 *:swat *:* LISTEN
tcp 0 0 localhost:mysql *:* LISTEN
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:10000 *:* LISTEN
tcp 0 0 *:1040 *:* LISTEN
tcp 0 0 *:munin *:* LISTEN
tcp 0 0 localhost:ipp *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 *:microsoft-ds *:* LISTEN
tcp6 0 0 *:2080 *:* LISTEN
tcp6 0 0 *:www *:* LISTEN
tcp6 0 0 *:ssh *:* LISTEN


Which indicates the swat service is running and listening to the correct 901 tcp port.

Remember to open the TCP port for the firewall if you are using any.

My iptables -L -v looks like that:

Chain INPUT (policy ACCEPT 1607 packets, 168K bytes)
pkts bytes target prot opt in out source destination
18688 3148K ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
0 0 ACCEPT tcp -- eth0 any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- eth0 any anywhere anywhere tcp dpt:www
0 0 ACCEPT tcp -- eth0 any anywhere anywhere tcp dpt:microsoft-ds
18 3450 ACCEPT udp -- eth0 any anywhere anywhere udp dpts:netbios-ns:netbios-ssn
11 528 ACCEPT tcp -- eth0 any localnet/24 anywhere tcp dpt:swat
0 0 ACCEPT tcp -- eth0 any anywhere anywhere tcp dpt: x11
291 39656 ACCEPT udp -- eth0 any localnet/24 anywhere
0 0 ACCEPT icmp -- eth0 any localnet/24 anywhere
94 6728 ACCEPT all -- lo any anywhere anywhere
0 0 DROP all -- any any anywhere anywhere

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 2317K packets, 2125M bytes)
pkts bytes target prot opt in out source destination



You might be able to access http://<yourserver>:901/

What's UUID?

注释:UUID

每个硬盘驱动器都有一个独特的标志,叫做 UUID。要解决设备名称的变动问题,devlabel 允许你使用用户定义的设备名称来关联这些 UUID。一个符号链接会被创建来连接用户定义的设备名称和实际的设备名称。如果实际的设备名称改变了,这个符号链接会被更新,并根据驱动器的 UUID 来指向同一驱动器。因此,IDE 和 SCSI 贮存设备都可以使用它们的用户定义的名称被引用。

Devlabel 还允许你自动挂载热插入的设备,如可移硬盘和数码照相机的内存卡之类的 USB 设备。如果被配置成自动挂载,设备被插入后,它就会使用用户定义的设备名称被挂载。

那如何才能知道UUID呢?
ls -l /dev/disk/by-uuid


Linux联盟收集整理

Followers