2008年4月28日星期一

解決文件名mp3標簽和文本文件內容的亂碼問題解決文件名mp3標簽和文本文件內容的亂碼問題

從windows轉移到ubuntu的用戶,常常會發現自己在windows在創建/下載/保存的文件經常性出現亂碼問題(kubuntu出現問題 的可能性更高一些)。而使用預設播放器打開以往的音樂文件(mp3等)時,出現亂碼的機會更是接近100%。出現這個問題是因為文件或是文件標簽編碼並不 是系統預設的UTF8,而windows系統預設使用的是GBK。只要將文件編碼做一下轉換就解決亂碼的問題。

這些問題的解決方案在ubuntu使用技巧中已被收錄。

  • 需要用到的工具
 sudo apt-get install convmv iconv python-mutagen

要轉換文件編碼請先進入要轉換文件的目錄

  • 轉換文件名由GBK為UTF8
 convmv -r -f cp936 -t utf8 --notest --nosmart *
  • 轉換文件內容由GBK到UTF8
 iconv -f gbk -t utf8 $i > newfile
  • 轉換 mp3 標簽編碼
 find . -iname “*.mp3” -execdir mid3iconv -e GBK {} \;

註意:保證自己對需轉換文件有寫許可權

Audio-convert-mod: 3 步搞定 Linux 下的音频转换

如果你需要在 Linux 下进行音频格式转换,那么 Audio-convert-mod 是一个值得一用的工具。Audio-convert-mod 简单易用,转换音频格式文件只需三步即可搞定。另外,使用 Audio-convert-mod 可执行批量转换。目前,Audio-convert-mod 支持 MP3、OGG、FLAC、WAV、AAC/MP4/M4A、MAC/Monkey’s Audio/APE、MPC (Musepack)、WV (wavpack) 等音频格式的编码和解码。

Audio-convert-mod 的当前版本为 3.45.2,提供有源码包和 RPM 包。安装 Audio-convert-mod 需要 gawk 和 file。此外,为了获得上述音频格式的编码/解码支持,需要安装一些常用的编码/解码器,比如:lame 用于 MP3 转换、vorbis-tools 用于 OGG 转换、flac 用于 FLAC 转换、mac 用于 APE 转换等等。

在启动 Audio-convert-mod 后,通过点击 File → Show Features 菜单可以查看 Audio-convert-mod 所支持的音频格式是否可用。如果显示为绿色则表示支持;若为红色则表示不支持,需要安装相应的编码/解码器。

audio-convert-mod-features

Audio-convert-mod 使用过程

下面让我们来看一下 Audio-convert-mod 的基本使用步骤:

1、选择文件

audio-convert-mod

如上图所示,点击 Add 按钮来选择要转换的音频文件,或者点击 Add directory 来选择一个包含多个音频文件的目录。如果列表中包含不想转换的音频文件,随时可以点击 Remove 按钮来移除它。

2、转换设置

audio-convert-mod

在第二步,需要选择输出的音频格式及其比特率。另外,也可根据实际情况设置其他选项,如针对源文件、目标文件存在、元数据、输出文件夹设置相应选项。

3、开始转换

audio-convert-mod

当转换设置完成后,点击 Next 即开始音频格式的转换过程。

一些缺憾

我感觉 Audio-convert-mod 还存在一些缺憾,比如在转换 APE 时无法利用 CUE 文件执行分割操作,不过,我们可以使用 shntool 这个命令行工具来完成;另外,不能将转换设置保存为预置文件 (虽然有个保存为默认值的选项,但还是不够方便和灵活),因而也就无法作多次的重复调用。

2008年4月25日星期五

老婆,我冲动之下说出了那两个字,一说出来我就后悔了,我从来就没有想过和你分手,我不敢想象没有你,我的生活还有什么意义。
我会努力,很努力,让我们有个家,我们自己白头偕老的家。
生日快乐
写于四月26日1:47!

2008年4月23日星期三

List of Security Tools Available in Ubuntu

The Ubuntu repositories contain several useful tools for maintaining a secure network and network administration.This security tools include network scanning,attack detection,Virus Detection etc.

1) Wireshark - network traffic analyzer

Wireshark is a network traffic analyzer, or “sniffer”, for Unix and Unix-like operating systems. A sniffer is a tool used to capture packets off the wire. Wireshark decodes numerous protocols (too many to list).This package provides wireshark (the GTK+ version)

Install Wireshark in Ubuntu

sudo aptitude install wireshark

2) Nessus - Remote network security auditor

The Nessus® vulnerability scanner, is the world-leader in active scanners, featuring high speed discovery, configuration auditing, asset profiling, sensitive data discovery and vulnerability analysis of your security posture. Nessus scanners can be distributed throughout an entire enterprise, inside DMZs, and across physically separate networks.

Install nessus in ubuntu

sudo aptitude install nessus

3) Nmap - The Network Mapper

Nmap (”Network Mapper”) is a free and open source (license) utility for network exploration or security auditing. Many systems and network administrators also find it useful for tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime. Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services (application name and version) those hosts are offering, what operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics. It was designed to rapidly scan large networks, but works fine against single hosts. Nmap runs on all major computer operating systems, and both console and graphical versions are available.

Install nmap ubuntu

sudo aptitude install nmap

If you want nmap frontend install the following package

sudo aptitude install zenmap

4) Etherape - graphical network monitor modeled after etherman

EtherApe is a graphical network monitor for Unix modeled after etherman. Featuring link layer, ip and TCP modes, it displays network activity graphically. Hosts and links change in size with traffic. Color coded protocols display.It supports Ethernet, FDDI, Token Ring, ISDN, PPP and SLIP devices. It can filter traffic to be shown, and can read traffic from a file as well as live from the network.

Install Etherape in ubuntu

sudo aptitude install etherape

5) Kismet - Wireless 802.11b monitoring tool

Kismet is an 802.11 layer2 wireless network detector, sniffer, and intrusion detection system. Kismet will work with any wireless card which supports raw monitoring (rfmon) mode, and can sniff 802.11b, 802.11a, and 802.11g traffic.

Kismet identifies networks by passively collecting packets and detecting standard named networks, detecting (and given time, decloaking) hidden networks, and infering the presence of nonbeaconing networks via data traffic.

Install Kismet in ubuntu

sudo aptitude install kismet

6) Chkrootkit - Checks for signs of rootkits on the local system

chkrootkit identifies whether the target computer is infected with a rootkit. Some of the rootkits that chkrootkit identifies are:

1. lrk3, lrk4, lrk5, lrk6 (and some variants);
2. Solaris rootkit;
3. FreeBSD rootkit;
4. t0rn (including latest variant);
5. Ambient’s Rootkit for Linux (ARK);
6. Ramen Worm;
7. rh[67]-shaper;
8. RSHA;
9. Romanian rootkit;
10. RK17;
11. Lion Worm;
12. Adore Worm.

Please note that this is not a definitive test, it does not ensure that the target has not been cracked. In addition to running chkrootkit, one should perform more specific tests.

Install chkrootkit in ubuntu

sudo aptitude install chkrootkit

7) Rkhunter - rootkit, backdoor, sniffer and exploit scanner

Rootkit Hunter scans systems for known and unknown rootkits, backdoors, sniffers and exploits.

It checks for:

- MD5 hash changes;
- files commonly created by rootkits;
- executables with anomalous file permissions;
- suspicious strings in kernel modules;
- hidden files in system directories;

and can optionally scan within files. Using rkhunter alone does not guarantee that a system is not compromised. Running additional tests, such as chkrootkit, is recommended.

Install rkhunter in ubuntu

sudo aptitude install rkhunter

8) tiger - Report system security vulnerabilities

TIGER, or the ‘tiger’ scripts, is a set of Bourne shell scripts, C programs and data files which are used to perform a security audit of UNIX systems. TIGER has one primary goal: report ways ‘root’ can be compromised.Debian’s TIGER incorporates new checks primarily oriented towards Debian distribution including: md5sums checks of installed files, location of files not belonging to packages, check of security advisories and analysis of local listening processes.

Install tiger in ubuntu

sudo aptitude install tiger

9) GnuPG - GNU privacy guard

GnuPG is GNU’s tool for secure communication and data storage. It can be used to encrypt data and to create digital signatures. It includes an advanced key management facility and is compliant with the proposed OpenPGP Internet standard as described in RFC2440.GnuPG does not use any patented algorithms so it cannot be compatible with PGP2 because it uses IDEA (which is patented worldwide).

Install gnupg in Ubuntu

sudo aptitude install gnupg

If you want gnupg GUI tool use this

Seahorse - A Gnome front end for GnuPG

Seahorse is a GNOME application for managing encryption keys. It also integrates with nautilus, gedit and other places for encryption operations.

Install seahorse in ubuntu

sudo aptitude install seahorse

10) Nemesis - TCP/IP Packet Injection Suite

Nemesis is a command-line network packet crafting and injection utility for UNIX-like and Windows systems. Nemesis, is well suited for testing Network Intrusion Detection Systems, firewalls, IP stacks and a variety of other tasks. As a command-line driven utility, Nemesis is perfect for automation and scripting.

Nemesis can natively craft and inject ARP, DNS, ETHERNET, ICMP, IGMP, IP, OSPF, RIP, TCP and UDP packets. Using the IP and the Ethernet injection modes, almost any custom packet can be crafted and injected.

Install nemesis in ubuntu

sudo aptitude install nemesis

11) Tcpdump - A powerful tool for network monitoring and data acquisition

This program allows you to dump the traffic on a network. tcpdump is able to examine IPv4, ICMPv4, IPv6, ICMPv6, UDP, TCP, SNMP, AFS BGP, RIP, PIM, DVMRP, IGMP, SMB, OSPF, NFS and many other packet types.
It can be used to print out the headers of packets on a network interface, filter packets that match a certain expression. You can use this tool to track down network problems, to detect “ping attacks” or to monitor network activities.

Install tcpdump in ubuntu

sudo aptitude install tcpdump

12) OpenSSH - secure shell server

This is the portable version of OpenSSH, a free implementation of the Secure Shell protocol as specified by the IETF secsh working group.Ssh (Secure Shell) is a program for logging into a remote machine and for executing commands on a remote machine. It provides secure encrypted communications between two untrusted hosts over an insecure network. X11 connections and arbitrary TCP/IP ports can also be forwarded over the secure channel. It is intended as a replacement for rlogin, rsh and rcp, and can be used to provide applications with a secure communication channel.This package provides the sshd server.
In some countries it may be illegal to use any encryption at all without a special permit.

Install Openssh server in ubuntu

sudo aptitude install openssh-server

13) Denyhosts - an utility to help sys admins thwart ssh hackers

DenyHosts is a program that automatically blocks ssh brute-force attacks by adding entries to /etc/hosts.deny. It will also inform Linux administrators about offending hosts, attacked users and suspicious logins.Syncronization with a central server is possible too.
Differently from other software that do same work, denyhosts doesn’t need support for packet filtering or any other kind of firewall in your kernel

Install Denyhosts server in ubuntu

sudo aptitude install denyhosts

14) Snort - Flexible Network Intrusion Detection System

Snort is a libpcap-based packet sniffer/logger which can be used as a lightweight network intrusion detection system. It features rules based logging and can perform content searching/matching in addition to being used to detect a variety of other attacks and probes, such as buffer overflows, stealth port scans, CGI attacks, SMB probes, and much more. Snort has a real-time alerting capability, with alerts being sent to syslog, a separate “alert” file, or even to a Windows computer via Samba.
This package provides the plain-vanilla snort distribution and does not provide database (available in snort-pgsql and snort-mysql) support.

Install snort in ubuntu

sudo aptitude install snort

15) Firestarter - gtk program for managing and observing your firewall

Firestarter is a complete firewall tool for Linux machines. It features an easy to use firewall wizard to quickly create a firewall. Using the program you can then open and close ports with a few clicks, or stealth your machine giving access only to a select few. The real-time hit monitor shows attackers probing your machine.

Install firestarter in ubuntu

sudo aptitude install firestarter

16) clamav - anti-virus utility for Unix - command-line interface

Clam AntiVirus is an anti-virus toolkit for Unix. The main purpose of this software is the integration with mail servers (attachment scanning). The package provides a flexible and scalable multi-threaded daemon in the clamav-daemon package, a command-line scanner in the clamav package, and a tool for automatic updating via the Internet in the clamav-freshclam package. The programs are based on libclamav3, which can be used by other software.

This package contains the command line interface. Features:

- built-in support for various archive formats, including Zip, RAR, Tar,
Gzip, Bzip2, OLE2, Cabinet, CHM, BinHex, SIS and others;
- built-in support for almost all mail file formats;
- built-in support for ELF executables and Portable Executable files
compressed with UPX, FSG, Petite, NsPack, wwpack32, MEW, Upack and
obfuscated with SUE, Y0da Cryptor and others;
- built-in support for popular document formats including Microsoft
Office and Mac Office files, HTML, RTF and PDF.

For scanning to work, a virus database is needed. There are two options for getting it:

- clamav-freshclam: updates the database from Internet. This is
recommended with Internet access.
- clamav-data: for users without Internet access. The package is
not updated once installed. The clamav-getfiles package allows
creating custom packages from an Internet-connected computer.

Install Clamav in ubuntu

sudo aptitude install clamav

17) Ettercap - Multipurpose sniffer/interceptor/logger for switched LAN

Ettercap supports active and passive dissection of many protocols (even ciphered ones) and includes many feature for network and host analysis.Data injection in an established connection and filtering (substitute or drop a packet) on the fly is also possible, keeping the connection synchronized.

Many sniffing modes were implemented to give you a powerful and complete sniffing suite. It’s possible to sniff in four modes: IP Based, MAC Based, ARP Based (full-duplex) and PublicARP Based (half-duplex).
It has the ability to check whether you are in a switched LAN or not, and to use OS fingerprints (active or passive) to let you know the geometry of the LAN.

Install ettercap in ubuntu

sudo aptitude install ettercap

If you want to install ettercap GUI install following package

sudo aptitude install ettercap-gtk

18) Netcat - TCP/IP swiss army knife

A simple Unix utility which reads and writes data across network connections using TCP or UDP protocol. It is designed to be a reliable “back-end” tool that can be used directly or easily driven by other programs and scripts. At the same time it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities.

Install netcat in ubuntu

sudo aptitude install netcat

19) MTR - mtr combines the functionality of the ‘traceroute’ and ‘ping’ programs in a single network diagnostic tool.

As mtr starts, it investigates the network connection between the host mtr runs on and a user-specified destination host. After it determines the address of each network hop between the machines, it sends a sequence ICMP ECHO requests to each one to determine the quality of the link to each machine. As it does this, it prints running statistics about each machine.

Install mtr in ubuntu

Download .deb package from here

dpkg -i mtr_0.39-1.deb

20) Hping3 - Active Network Smashing Tool

hping3 is a network tool able to send custom ICMP/UDP/TCP packets and to display target replies like ping does with ICMP replies. It handles fragmentation and arbitrary packet body and size, and can be used to transfer files under supported protocols. Using hping3, you can test firewall rules, perform (spoofed) port scanning, test network performance using different protocols, do path MTU discovery, perform traceroute-like actions under different protocols, fingerprint remote operating systems, audit TCP/IP stacks, etc. hping3 is scriptable using the TCL language.

Install hping3 in ubuntu

sudo aptitude install hping3

21) ngrep - grep for network traffic

ngrep strives to provide most of GNU grep’s common features, applying them to the network layer. ngrep is a pcap-aware tool that will allow you to specify extended regular expressions to match against data payloads of packets. It currently recognizes TCP, UDP and ICMP across Ethernet, PPP, SLIP and null interfaces, and understands bpf filter logic in the same fashion as more common packet sniffing tools, such as tcpdump and snoop.

Install ngrep in ubuntu

sudo aptitude install ngrep

22) john - active password cracking tool

john, mostly known as John the Ripper, is a tool designed to help systems administrators to find weak (easy to guess or crack through brute force) passwords, and even automatically mail users warning them about it, if it is desired.
It can also be used with different cyphertext formats, including Unix’s DES and MD5, Kerberos AFS passwords, Windows’ LM hashes, BSDI’s extended DES, and OpenBSD’s Blowfish.

Install john in ubuntu

sudo aptitude install john

23) tcptrace - Tool for analyzing tcpdump output

Tcptrace is a tool for analyzing and reporting on tcpdump (or other libpcap) dump files. It can summarize the data or generate graph data for use with the gnuplot tool from the gnuplot package. Graph data can be created for throughput, RTT, time sequences, segment size, and cwin.

Install tcptrace in ubuntu

sudo aptitude install tcptrace

24) netdude - NETwork DUmp data Displayer and Editor for tcpdump trace files

It is a GUI-based tool that allows you to make detailed changes to packets in tcpdump trace files, in particular, it can currently do the following:

* Set the value of any field in IP, TCP and UDP packet headers.
* Copy, move and delete packets in the trace file.
* Fragment and reassemble IP packets.
* Netdude constantly communicates with a tcpdump process to update
the familiar tcpdump output that corresponds to the trace. This
also means that any changes made to your local version of tcpdump
are reflected in Netdude.
* Plugin architecture: people can easily add plugins for specific
tasks. The code comes with a plugin for checksum correction in IP,
TCP and UDP, and a dummy plugin.
* Through the plugin mechanism, Netdude provides a good facility for
writing tcpdump trace file filters.

Install netdude in ubuntu

sudo aptitude install netdude

25) tcpreplay - Tool to replay saved tcpdump files at arbitrary speeds

Tcpreplay is aimed at testing the performance of a NIDS by replaying real background network traffic in which to hide attacks. Tcpreplay allows you to control the speed at which the traffic is replayed, and can replay arbitrary tcpdump traces. Unlike programmatically-generated artificial traffic which doesn’t exercise the application/protocol inspection that a NIDS performs, and doesn’t reproduce the real-world anomalies that appear on production networks (asymmetric routes, traffic bursts/lulls, fragmentation, retransmissions, etc.), tcpreplay allows for exact replication of real traffic seen on real networks.

Install tcpreplay in ubuntu

sudo aptitude install tcpreplay

26) Dsniff - Various tools to sniff network traffic for cleartext insecurities

This package contains several tools to listen to and create network traffic:

* arpspoof - Send out unrequested (and possibly forged) arp replies.
* dnsspoof - forge replies to arbitrary DNS address / pointer queries
on the Local Area Network.
* dsniff - password sniffer for several protocols.
* filesnarf - saves selected files sniffed from NFS traffic.
* macof - flood the local network with random MAC addresses.
* mailsnarf - sniffs mail on the LAN and stores it in mbox format.
* msgsnarf - record selected messages from different Instant Messengers.
* sshmitm - SSH monkey-in-the-middle. proxies and sniffs SSH traffic.
* sshow - SSH traffic analyser.
* tcpkill - kills specified in-progress TCP connections.
* tcpnice - slow down specified TCP connections via “active”
traffic shaping.
* urlsnarf - output selected URLs sniffed from HTTP traffic in CLF.
* webmitm - HTTP / HTTPS monkey-in-the-middle. transparently proxies.
* webspy - sends URLs sniffed from a client to your local browser
(requires libx11-6 installed).

Install dsniff ubuntu

sudo aptitude install dsniff

27) scapy - Packet generator/sniffer and network scanner/discovery

Scapy is a powerful interactive packet manipulation tool, packet generator, network scanner, network discovery, packet sniffer, etc. It can for the moment replace hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump, tethereal, p0f, ….
In scapy you define a set of packets, then it sends them, receives answers, matches requests with answers and returns a list of packet couples (request, answer) and a list of unmatched packets. This has the big advantage over tools like nmap or hping that an answer is not reduced to (open/closed/filtered), but is the whole packet.

Install scapy in ubuntu

sudo aptitude install scapy

28) Ntop - display network usage in top-like format

ntop is a Network Top program. It displays a summary of network usage by machines on your network in a format reminiscent of the unix top utility.It can also be run in web mode, which allows the display to be browsed with a web browser.

Install ntop in ubuntu

sudo aptitude install ntop

29) NBTscan - A program for scanning networks for NetBIOS name information

NBTscan is a program for scanning IP networks for NetBIOS name information. It sends NetBIOS status query to each address in supplied range and lists received information in human readable form. For each responded host it lists IP address, NetBIOS computer name, logged-in user name and MAC address (such as Ethernet).

Install nbtscan in ubuntu

sudo aptitude install nbtscan

30) tripwire - file and directory integrity checker

Tripwire is a tool that aids system administrators and users in monitoring a designated set of files for any changes. Used with system files on a regular (e.g., daily) basis, Tripwire can notify system administrators of corrupted or tampered files, so damage control measures can be taken in a timely manner.

Install tripwire ubuntu

sudo aptitude install tripwire

Tags: , , , , , , , ,

Related Articles:

If you want to be notified the next time we write something please subscribe to our RSS feed.Thanks for Visiting!

2008年4月22日星期二

Howto Connect to Windows VPN server (PPTP) with Ubuntu 7.10 (Gutsy Gibbon)

Posted by admin on April 22nd, 2008 EMail This Post

This tutorial will explain how to Connect to Windows VPN server (PPTP) with Ubuntu Gutsy.Ubuntu makes it simple to connect to a Microsoft Windows VPN server at your workplace with NetworkManager and the pptp plugin.

Install PPTP Using the following command

sudo aptitude install network-manager-pptp

killall nm-applet

sudo /etc/init.d/dbus restart

nm-applet --sm-disable &

The above command do the following

install network-manager-pptp

restart NetworkManager daemon

restart nm-applet and begin configuring

If you are using kubuntu you need to install the following extra package

sudo aptitude install gnome-network-manager

Configure VPN

After restarting NetworkManager and nm-applet, a single click on the nm-applet should reveal a new option, VPN Connections.

Follow the menu, and select Configure VPN then Add a new connection.

Click Forward to begin the configuration. Go ahead and name your connection, then enter the IP address or DNS hostname of the VPN gateway under the Connection tab.

Next, move to the Authentication tab and activate Refuse CHAP.

At this point, the basic configuration is complete. I like to add one more step, however, to ensure that not all of my traffic is routed over the VPN. This can be detrimental for performance. If you’d rather limit your VPN traffic to a specific subnet, go ahead and execute the following:

Under the Routing tab, disable Peer DNS through tunnel (if desired) and enable the option to only use VPN connection for these addresses and enter your network subnet. If the machines on your network use addresses like 192.168.100.X, use something like the following

That’s it You’re done. To connect to the VPN, click the NetworkManager applet, and follow the menus to your newly configured connection. Enter your username, password, and domain, and you should be connected to your VPN server.

2008年4月20日星期日

推荐一个firefox插件,dictCN(不是dict.cn)

不需划词,鼠标悬停即可翻译。
要翻译网页超连接上的单词时方便了许多

地址:https://addons.mozilla.org/zh-CN/firefox/addon/2082



2.png
描述:

文件大小: 51.55 KB
看过的: 文件被下载或查看 73 次

2.png

HTTP请求提交器 1.0

用途:
1 侦测当前浏览器行为
2 验证网站的正确性
3 多次提交请求,用于人工投票、注册、刷屏
运行说明:
运行本程序,设置浏览器的代理为127.0.0.1 8080,在浏览器中提交一次
然后会在程序发现地址,勾选,多次提交即可。





可执行文件: http://www.optool.cn/sites/default/files/AutoPost.jar
源码: http://www.optool.cn/sites/default/files/AutoPost.zip

用imagemagick 批量压缩照片的脚本

用DC拍出来的很多照片尺寸都很大,有时候我们需要缩小一下,最近google了一圈,发现了一些有用的命令,写了一个小脚本,用来参考

我使用的工具是强大的imagemagick
如果你没有安装的话可以通过新利得安装,
#sudo apt-get install imagemagick
需要用到的命令就是convert
我写的脚本用到了两个参数,resize和font


resize是用来缩小图片的,
用法就是
-resize 图片大小
例如
-resize 50%x50%
这个参数就是把原图的长和宽都缩小50%

我用的是缩小图片尺寸来压缩图片的大小,当然你也可以通过改变图片质量来达到压缩的目的。

顾名思义,改变图片质量的参数就是-quality
-quality 70
这个参数就是说明要把图片的质量压缩到70%(基本上看不出和原图的区别)

添加字体水印
参数就是
-font 字体名称 -fill 字体颜色 -pointsize 字体大小 -draw "text 字体开始坐标 "文字内容""
具体的大家可以查询一下man,解释的非常详细,
最后看看我写出来的简单脚本。

# imagezoom.sh
for img in `ls *.JPG`; do convert -resize 50%x50% convert -font helvetica -fill white -pointsize 36 -draw 'text 10,50 "Pictures By PDAsk.net "' $img Resized-$img; done

这个脚本实现的功能是把目录下面的所有JPG后缀的图片全部按照50%的比例缩小,并且在左上角用helvetica字体印上水印。处理过的图片命名为”Resized-原文件名”

打开gedit 或者leafpad,把脚本内容输入进去,保存为imagezoom.sh,我保存在了桌面上
然后
#chmod +x ~/Desktop/imagezoom.sh

为了方便调用,我就把这个脚本copy到了/bin目录,这样以来我以后在任何一个图片文件夹里面都可以使用这个命令了。

#sudo cp ~/Desktop/imagezoom.sh /bin

untu下类似visio的软件 dia

untu下类似visio的软件 dia

昨天写那个无线的日志的时候,很想画个网络拓扑图,就想起了win下的visio,虽然没怎么用过,但还是给我留下了比较深刻的印象,觉得那种模式还是不错的.
就想,ubuntu下有没有类似的替代品呢?于是搜索了一下,没费什么劲就发现了 dia.
于是 apt-get install dia,装上了,试用了一下,基本的需求都能满足了,而且易用性也不错,还可以导出成 bmp/jpg/png/svg 等很多种格式,还是很强大的.效果图见昨天的日志,再发个界面的截图上来:
dia

2008年4月17日星期四

BOINC:为科学而计算

BOINC使得您可以把计算机的闲置时间捐献给如 SETI@home、Einstein@home、Climateprediction.net、Rosetta@home、World Commnunity Grid 等等许多科研项目。

在将 BOINC 安装到您的计算机上之后,您可以加入任意多个您喜欢的项目。

SecPanel — 管理 SSH 及 SCP 连接

SecPanel — 管理 SSH 及 SCP 连接

SecPanel 是一款图形化的 SSH 及 SCP 连接管理工具。当前,SecPanel 支持 SSH.com 和 OpenSSH,不仅允许你配置、管理 SSH 及 SCP 连接,而且包括密钥处理、SSH Agent 等功能。

SecPanel

2008年4月16日星期三

GNU/Linux 中的教学辅助软件简介

台湾友人发布Ubuntu小学教材,瑞士日内瓦所有学校的电脑将只安装Ubuntu Linux 操作系统,引起了业内对Linux在教学方面的关注,同时也有人提出了质疑.Linux能提供教学方面的解决方案吗?Linux下有教学辅助软件吗?下面 将会在下文为大家进行解答.

我们知道学习有时候也很枯燥,在学习的过程中孩子很容易感到疲倦.为了改善这一现象,恐怕只有让孩子们在游戏的过程中学习才能有效的解决.以下软件开发者在开发的时候就已经把这一系列的问题考虑到了.

为儿童设计的多功能学习启蒙软件:

GCompris — GCompris是一套用于年龄介于2 -10的儿童的学习启蒙软件,该软件是以在游戏中学习的思路开发。这个软件化分不同的类别(如,计算机,数学,游戏),其中有很多不同的任务。在完后这些 任务的过程中会拓宽知识面,这里面的许多些任务都有实际用途,例如在一个杂货店里何如花钱等等。该程度界面友好,有很多卡通的图标,非常适合这一目标年龄 段。虽然这套软件还处于发展阶段,但它目前已经包含约80个练习。


GCompris运行时的界面

Childsplay — Childsplay为专为年纪小的学生设计,该软件能在游戏中引导他们学习数学、英语。大多数游戏是游戏任务是锻炼大脑我的记忆力的。在视听效果方面 Childsplay做得相应不错,充多地调到眼睛和耳朵配合在到学习中,Childsplay在这方面的细化比GCompris做得要优秀一点,但练习 的内容要比GCompris少一点。


Childsplay 运行时的界面

数学类:
kmplot — 此应用程序是一个功能强大的坐标系统(你是可以自由选择:图中的参数和函数,如笛卡尔,极坐标)


kmplot 运行时的界面

tuxmath — 为小孩们设计的在游戏中学习数的软件,何果运算正确可以阻止小行星走向我们,否则该小行星将摧毁我们的城市。


tuxmath 运行时的界面

化学类:
kalzium — 是一张元素周期表,我们可以通过它查看元素原子量和质量等等信息,并配有与之相关的图片.通过它还可以知该元素是哪个国家的哪位科学家最先发现的。该软件还包含一个模块,根据给定的公式可以计算出化合物的的摩尔质量。


kalzium 运行时的界面

地理学类:
kgeography — 一个KDE下学习地理学的软件,其包含20多种地图
googleearth — 是一个应用为主的软件,但还比它还好的用来查看全球地理的软件吗?当然把它用在教学中也是一个不错的选择。

天文学类:
celestia — celestia是一个用3D方法来模拟外太空的软件,通过它,我们可家中也在太空中自由翱翔.此应用程序具备丰富的数据库,很多天体,都能在其三维环境中看到。

Linux下用于教的软件远不至这些,由于篇幅的因原我在这里就不在一一介绍了。


瑞士日内瓦所有学校的电脑将只安装Ubuntu Linux 操作系统后,势必会有更多开发人员在Linux平台下的从事教育辅助软件的开发工作,与此同时,更多更好的教学辅助软件的出现,也能有效地带动更多的学校 的把计算机的操作系统过度到Linux平台,二者相互促进,使之进入一种良性循环.

2008年4月15日星期二

[转]Linux下的暴力破解软件

在用电脑时,常常会与一些加密的文档打交道,如Zip、Rar甚至PDF文档。

有时我们忘记了文档的密码,就不得不采用“暴力破解”的方法。那么Linux下有没有相关的软件呢?

当然有,本文介绍了三款Linux下的暴力破解软件。

—–

Linux环境以Ubuntu 7.10为例,下述三款软件,均包含在Ubuntu源里,可直接apt-get install来安装。

1、破解Zip文件密码

现在网络上最流行的文档格式当属zip,因而先介绍这款破解Zip文件密码的软件,它是名字是fcrackzip, 基于命令行。

Fcrackzip具备一般破解软件的主要功能,分穷举破解和词典破解。假如你知道密码的字符个数或字符组成,那么用穷举破解最合适。

它还具备测试功能,让你了解本机破解的速度。

举例,假如你知道一个Zip文件由6位的小写字母组成,那么只要运行:

代码:
fcrackzip -c a -p aaaaaa sample.zip


则fcrackzip则会穷举从aaaaaa到zzzzzz的所有可能,很快密码就将破解。

其他使用方法可参考fcrackzip –help

2、破解PDF文档

为了保护私有的文档,对PDF进行加密也越来越多了。通过另外一款软件:pdfcrack,就能对PDF文档进行破解。它同样是一款命令行下的软件,支持对所有已知的PDF版本进行破解。

与fcrackzip类似,pdfcrack具备穷举、词典和基本测试功能。虽然命令行参数不尽相同,但用起来基本类似。

最简单的情况下,你不必指定任何参数,直接“pdfcrack 文件名”即可。

3、破解Windows密码

这个虽然跟破解文档密码无关,但是确实是Linux能做到的:破解Windows NT/2000/XP/Vista的密码!

通过ophcrack这款基于GTK+的图形软件,破解Windows密码将不是什么难的事情,包括对最新的Vista的破解。

更强大的是,使用装载了Ophcrack的LiveCD:Ophcrack LiveCD,你就可以带着光盘,走到哪里,破解到哪里:光盘具备从Windows分区载入加密的SAM的能力,并且不需要安装,用光盘启动即可以开始破解。

你可以从Ophcrack了解详细信息,同样在Ubuntu下可以直接安装。

本文仅描述了Linux系统下比较偏门的几个软件,可以看出,Linux下的软件也很丰富,当然,只是大多数不是图形软件而已。

2008年4月9日星期三

傻孩子

这个傻孩子,头一次主动来找我看着我忙了一个多小时,还是自己先跑了,也不主动去买点东西给我吃,害我加班完后还是自己一个人回家,连晚饭也没吃.你说这孩子傻不