Archive for April, 2008

Mount your Flickr account as regular Linux drive

Welcome to Linux Screw! If you're new here, you may want to subscribe our RSS feed.

flickr logoFlickr is an extremely popular image/video hosting website, web services suite and an online community platform. It was one of the earliest Web 2.0 applications. In addition to being a popular Web site for users to share personal photographs, the service is widely used by bloggers as a photo repository. It hosts more than two billion images.

Now it is possible to mount your Flickr account on Linux PC as a virtual filesystem, allowing you to browse through your photos as if they were on a locally connected drive.  It can be now easily done with Flickrfs:

Once mounted, it retrieves information about your photos hosted on your flickr account, and shows them as files. You can now easily copy photos from your local machine to this mount, and it will automatically upload them to your flickr account. Similary, you can copy the files from your mount to your local machine, and it will download your images from flickr.

All the files in the mount have a meta file attached to them, which provides access to title, description, tags, and license information. Modifying any of these fields and saving the meta file, will update them on the server as well.

You are lucky if you chose Ubuntu as detailed step-by-step installation guide is available at author’s site for Ubuntu users. Of course you are welcome to use it under other Linux distributions e.g. Slackware ;)

Share This

Install Ubuntu as Windows XP/Vista Application (with Wubi)

wubi logoToday it is possible to install Ubuntu Linux 8.04 (Hardy Heron) under Windows XP or Vista without necessity to create separate partition for it. The tool that allows to do it is called Wubi. Actually it is Ubuntu installer for Windows helping you ro install and uninstall Ubuntu with few clicks. Here is nice brief article on how to set it up under Vista:

Wubi adds an entry to the Windows boot menu which allows you to run Linux. Ubuntu is installed within a file in the Windows file system (c:\wubi\disks\system.virtual.disk), as opposed to being installed within its own partition. This file is seen by Linux as a real hard disk.

Sweeet! :)

Share This

OpenBSD: Secure Mail Server with Postfix, MySQL, ClamAV, SpamAssassin, Amavis-new

openbsd logoFew days ago I started configuring corporate mail server that should be deployed on OpenBSD and comprise the following features:

  1. Easy to configure and powerful MTA (Postfix)
  2. Virtual domains and user accounts (this information is stored in MySQL database)
  3. Antispam and antivirus checking for all accounts (spamassassin and clamav via amavis-new)
  4. Secure access to mailboxes through POP3, IMAP and HTTP (squirellmail)
  5. Secure SMTP server
  6. Extremal Stability and Security

Actually OpenBSD 4.2 was chosen because of it’s "security by default". Thankfully Daniele Mazzocchio from friendly site www.kernel-panic.it wrote an excellent article about how to build such mail server on this operating system:

Offering a reliable and secure email service is probably one of the top priorities of most system administrators; therefore, in the next chapters, we will build a full-featured mail server, based on open-source software and focusing on security. Read more…

The only thing that is not covered by it is mail content filtering with maildrop and vacation messages that users often ask to set while they are out. Working on it! :)

Share This

ptunnel: send/receive TCP traffic via ICMP reliably

Yes, it can be useful sometimes. For example, you have access to Wi-Fi network but you're not allowed to access Internet via TCP/UDP as these protocols are blocked. At the same time ICMP is opened and you can ping everything alive in Internet. So, to check your email just have ptunnel installed and work around the restrictions set by the Wi-Fi network sysadmin easily.

Ptunnel is an application that allows you to reliably tunnel TCP connections to a remote host using ICMP echo request and reply packets, commonly known as ping requests and replies. It is not a feature-rich tool by any means, but it does what it advertises. So here is what it can do:

  • Tunnel TCP using ICMP echo request and reply packets
  • Connections are reliable (lost packets are resent as necessary)
  • Handles multiple connections
  • Acceptable bandwidth (150 kb/s downstream and about 50 kb/s upstream are the currently measured maximas for one tunnel)
  • Authentication, to prevent just anyone from using your proxy

1. Install ptunnel in Ubuntu or Debian
apt-get install ptunnel

2. Start ptunnel proxy:

ptunnel -p proxy_address -lp listen_port -da destination_address -dp dest_port [-c network_device] [-v verbosity] [-u] [-x password] [-f file]

The following example assumes that ptunnel is run as root, both on the proxy and client. To tunnel ssh connections from the client machine via a proxy running on proxy.pingtunnel.com to the computer login.domain.com, the following command line would be used:

ptunnel -p proxy.pingtunnel.com -lp 8000 -da login.domain.com -dp 22

An ssh connection to login.domain.com can now be established as follows:

ssh -p 8000 localhost

P.S. A brief manual on how to use ptunnel can be got here.
P.P.S. If you are sysadmin and have to forbid Internet access to some user in LAN, don't forget to block ICMP! :)

Share This

Tiny perl script for UDP flooding

Sometimes it is necessary to perform UDP flood towards some network device(s) in order to test its behavior in stress… Actually I am sure that every system administrator might use this small perl script for this purpose. Certainly there are many special programs for this but believe me that it is much more easier to do the following:

1. #touch > /tmp/flood.pl
2. #chmod +x /tmp/flood.pl
3. Copy the this code to /tmp/flood.pl:

4. Then /tmp/flood.pl 192.168.0.1 0 0 0, where 192.168.0.1 is IP you would like to flood with huge amount of UDP datagrams.

Thanks to Ivan Pepelnjak from http://ioshints.blogspot.com/.

Share This

Copy files from Windows or Mac to Linux safely

Many systems administrators of LAN and WAN networks, which contain Windows, Mac and Linux hosts, once face the problem on how to securely transmit some data between these systems. It is always possible to use SCP when copying files between two Unix machines but what if you have to move files from Windows PC to Linux server for example? It’s nice to know that there are good guys who created tool for this operation named WinSCP.

winscp logoActually WINSCP is an open source free SFTP client and FTP client for Windows as it’s said on their site. The following features are supported:

  • Graphical user interface
  • Translated into several languages
  • Integration with Windows (drag&drop, URL, shortcut icons)
  • U3 support
  • All common operations with files
  • Support for SFTP and SCP protocols over SSH-1 and SSH-2 and plain old FTP protocol
  • Batch file scripting and command-line interface
  • Directory synchronization in several semi or fully automatic ways
  • Integrated text editor
  • Support for SSH password, keyboard-interactive, public key and Kerberos (GSS) authentication
  • Integrates with Pageant (PuTTY authentication agent) for full support of public key authentication with SSH
  • Windows Explorer-like and Norton Commander-like interfaces
  • Optionally stores session information
  • Optionally supports standalone operation using a configuration file in place of registry entries, suitable for operation from removable media

So, as not every computer runs Linux today yet, you are welcome to use WinSCP meanwhile :)

cyberduckThere are still many real programmers around the world and that’s why here is SFTP, SCP (any many other protocols) browser for MACs named CYBERDUCK. It makes no sense to list all features it supports here, so just visit their site to get surprised :)

P.S. Have a good transfer! ;)

Share This

Nagios installation and configuration in SUSE Linux

nagios logoAs we know Nagios is extremely popular open source network monitoring system. It watches hosts across the local area network (LAN) and/or across the Internet, services that you can specify, alerting you when things go bad. The following step-by-step guide written by Novel people (actually by Rainer Brunold) for sure would help if you plan to deploy Nagios monitoring system with Novel SUSE Linux. At least it helped me :)

I don't want to write here a full documentation about Nagios, I prefer to give you a basic installation guide so you can set it up very easy and play with it yourself. The installation guide will show you how to install Nagios as well as some interesting extensions and how they integrate into each other. During this installation you will make many modifications to the installation that will help to understand how it works, how you can integrate systems and different services. I will also provide some articles about monitoring special services where I describe what they do and what configuration changes are needed. All together should give you a very good overview and documentation on how you can enhance the Nagios installation yourself.

The rest of the article is here. Respect to the author!

Share This



Information Improvisation: Operating system is the backbone for every organization. Having professionals with CISSP certification in organization ensures the life running through its networks. Organizations manage tremendous amounts of traffic due to the use of pc phone and people with 646-058 certifications are ideal for this job. They can also manage online networks which can be hosted on lunarpages, which also provides free email hosting. With the company's logo design every page and a well crafted web template the site can be given a graceful look.