linux poison RSS
linux poison Email
0

iScanner - Detect and Remove Malicious code from your webpages

iScanner is free open source tool lets you detect and remove malicious codes and web pages viruses from your Linux/Unix server easily and automatically.

This tool is programmed by iSecur1ty using Ruby programming language and it's released under the terms of GNU Affero General Public License 3.0.

iScanner Features:
  * Detect malicious codes in web pages. This include hidden iframe tags, javascript, vbscript, activex objects and PHP codes .
  * Extensive log shows the infected files and the malicious code.
  * Send email reports.
  * Ability to clean the infected web pages automatically.
  * Easy backup and restore system for the infected files.
  * Simple and editable signature based database.
  * Ability to update the database and the program easily from dedicated server.
  * Very flexible options and easy to use.
  * Fast scanner with good performance.

Installation:
Download iScanner - here
Extract the package to some other directory - tar -zxvf iscanner.tar.gz

You don't have to install iScanner on your machine to be able to use it. The program is portable and doesn't require any external libraries, you just need to have Ruby installed on your machine then you can copy iScanner's folder to '/etc' or any other directory and use it directly from there.

Using iScanner:
-f :Use this option to select the folder you want to be scanned.
# iscanner -f /home/user
 
-m :With this option you can tell iScanner to send a copy of the infected log to selected email address:
# iscanner -f /home/user -m email@example.com
-c :This option will remove the malicious code from the infected files with out deleting the infected files. Before using this option make sure to check the infected log to know what iScanner will remove from each infected file.
# iscanner -c infected.log
There are many more useful option, please check the iScanner help.
You can add iScanner to the cron jobs to make it scan you server every 24 hours and send the infected log to your email address.

Secure your stored computer files with dependable spyware protection and a firewall protected Apple operating system.


Read more
0

Uget - A complete Download Manager for Linux / Windows

Uget is a download manager that uses GTK+2 and libcurl. It allows you to classify downloads, and allows you to import downloads from HTML files. Every category has an independent configuration that can be inherited by each download in that category.

Uget has many features like :
  * Free (as in freedom , also free of charge) and Open Source.
  * Simple , easy-to-use and lightweight.
  * Support resume download , so if your connection lost you don’t need to start from first.
  * Classify downloads , and every category has independent configuration and queue.
  * Queue download.
  * Integrate with Firefox through Flash-got plug-in.
  * Monitoring clipboard.
  * Import downloads from HTML file.
  * Batch download , you can download many files has same arrange , like file_1 file_2 …. file_20, you don’t need to add all links , just one link and changeable character.
  * Can be used from command line.

Installation:
DEB package for Debian-based distributions (Debain, Ubuntu, etc) - here
RPM package for RPM-based distributions (RedHat, Fedora, etc) - here
EXE for Windows XP / Vista / Win 7 , without GTK+ , you have to download GTK+ for windows

Read more
0

Mencoder - Movie Encoder for Linux

Mencoder is a simple movie encoder, designed to encode MPlayer-playable movies (AVI/ASF/OGG/DVD/VCD/VOB/MPG/MOV/VIV/FLI/RM/NUV/NET) to other MPlayer-playable formats. It can encode with various codecs, like DivX4 (1 or 2 passes), libavcodec, PCM/MP3/VBRMP3 audio. It also has stream copying and video resizing abilities.

Since it uses the same code as MPlayer, it also features the same huge number of highly-configurable video and audio filters to transform the video and audio stream.

In order to convert the videos all you have to do is open a console and issued the proper commands. For easy tasks this is the better way, because it's faster and you can just copy/paste the bash lines through different console sessions and have Mencoder multitask all of your videos to be converted. 

If you have some more complicated tasks to do (extracting subtitles, cropping video frame, deinterlace, change endpoints) i suggest that you do it with a visual tool, like Avidemux.

Among the file types mencoder can handle are MPEG/VOB, AVI, ASF/WMA/WMV, RM, QT/MOV/MP4, Ogg/OGM, MKV, VIVO, FLI, and FLV, basically, the command structure is:
[mencoder] + [input file name] + [audio options] + [video options] + [output file name]
Here's a simple command that converts an MPG file to AVI format:
mencoder file.mpg -o file.avi -ovc lavc -oac lavc
Suppose you have a folder full of small video files of different types and would like to merge them into one big movie for easy watching. First, rename them so that they're in the order you want them to appear in the final video, then use:
mencoder * -o output.avi
To convert a video file to run on a device running iPodLinux, use:
mencoder -ovc raw -ofps 15 -oac pcm -vf scale=176:-2,expand=176:132,format=bgr16 input.file -o output.avi
Convert 3gp movies to avi:
mencoder mymovie.3gp -ovc lavc -lavcopts vcodec=msmpeg4v2 -oac mp3lame -lameopts vbr=3 -o mymovie.avi''
Read more
4

Lubuntu - Ubuntu with LXDE desktop

The Lubuntu project started in March 2009, with the purpose of creating a lighter and less resource demanding alternative to the Xubuntu operating system, using the LXDE desktop environment. The ultimate goal of this project is to join the ranks of Kubuntu and Xubuntu, and become an officially supported derivative of Ubuntu.

The developers claim that, while Xubuntu is often represented as a lightweight distro, it actually fails on running on older hardware, so they are targeting Linux their distribution at older legacy computers and devices with less than 256 MB of RAM.

While this project hasn't received too much attention until now, the LXDE project received an invitation to become a self-maintained component of Ubuntu back in February 2009, straight from the Ubuntu founder, Mark Shuttleworth.

Under the management of Mario Behling, the project received a project logo and an official Ubuntu wiki page, that includes a list of desired applications, packages and components.

Read more
1

Arista - Multimedia Transcoder for GNOME

Arista is an easy-to-use multimedia transcoder for the GNOME desktop. It focuses on the goal of transcoding media, namely the devices you wish to play the media on. It is designed for use by people who are not familiar with audio and video encoding and want an easy way to get multimedia to their devices. It supports input from DVD and V4L devices as well as regular files.

Arista Features:
  * Presets for iPod, computer, DVD player, PSP, Playstation 3, and more
  * Live preview to see encoded quality
  * Automatically discover available DVD media and Video 4 Linux (v4l) devices
  * Rip straight from DVD media easily (requires libdvdcss)
  * Rip straight from v4l devices
  * Simple terminal client for scripting
  * Automatic preset updating

Arista Requirement:
Arista is written in Python and requires the bindings for GTK+ 2.16 or newer, GStreamer, GConf, GObject, Cairo, and DBus. If you are an Ubuntu user this means you need to be using at least Ubuntu 9.04 (Jaunty). The GStreamer plugins required depend on the presets available, but at this time you should have gst-plugins-good, gst-plugins-bad, gst-plugins-ugly, and gst-ffmpeg. If you are on Ubuntu don't forget to install the multi-verse packages.

Installing Arista:
OpenSuSe user can install Arista using "1-click" installer - here
Ubuntu user can install Arista using command: sudo apt-get install arista

Read more
3

Klavaro - Typing Tutor on Linux

Klavaro is FREE and offers you an easy way to learn to type quickly and correctly on a keyboard. Every finger has its place on the keyboard with associated keys to press. Starting with only a few keys to remember you will advance through different training levels while additional keys are introduced. As a result you will be able to type quickly and accurately. This is because you no longer need to search for the keys on the keyboard and because you will definitely be using more than just two fingers.

Klavaro indicates the keys you need to press and the finger you need to use for that key on the screen. You don't have to look down on the keyboard to search for the key. You will therefore get used to looking at the screen only and hence learn touch typing much faster.

Klavaro Features:
  * Internationalization
  * Ready to use keyboard layouts
  * Basic course
  * Adaptability exercises
  * Velocity exercises
  * Fluidness exercises
  * Progress charts
  * Clean graphical interface

Installation:
OpenSuSe user can install Klavaro using "1-click" installer - here
Ubuntu user can install using command: sudo apt-get install klavaro

After successful installation you can open up the Klavaro using command: Klavaro and here is the first screen that you will see ...



Read more
1

How To allow access to AIM, Yahoo, Gtalk and MSN Messenger through Squid Proxy

To proxy and to allow AIM, MSN, Yahoo and GTalk  Instant Messenger traffic via with Squid, change/add the following line in the Squid configuration file.

# Allow AIM protocols
acl AIM_ports port 5190 9898 6667
acl AIM_domains dstdomain .oscar.aol.com .blue.aol.com .freenode.net
acl AIM_domains dstdomain .messaging.aol.com .aim.com
acl AIM_hosts dstdomain login.oscar.aol.com login.glogin.messaging.aol.com toc.oscar.aol.com irc.freenode.net
acl AIM_nets dst 64.12.0.0/255.255.0.0
acl AIM_methods method CONNECT
http_access allow AIM_methods AIM_ports AIM_nets
http_access allow AIM_methods AIM_ports AIM_hosts
http_access allow AIM_methods AIM_ports AIM_domains

# Allow Yahoo Messenger
acl YIM_ports port 5050
acl YIM_domains dstdomain .yahoo.com .yahoo.co.jp
acl YIM_hosts dstdomain scs.msg.yahoo.com cs.yahoo.co.jp
acl YIM_methods method CONNECT
http_access allow YIM_methods YIM_ports YIM_hosts
http_access allow YIM_methods YIM_ports YIM_domains

# Allow GTalk
acl GTALK_ports port 5222 5050
acl GTALK_domains dstdomain .google.com
acl GTALK_hosts dstdomain talk.google.com
acl GTALK_methods method CONNECT
http_access allow GTALK_methods GTALK_ports GTALK_hosts
http_access allow GTALK_methods GTALK_ports GTALK_domains

# Allow MSN
acl MSN_ports port 1863 443 1503
acl MSN_domains dstdomain .microsoft.com .hotmail.com .live.com .msft.net .msn.com .passport.com
acl MSN_hosts dstdomain messenger.hotmail.com
acl MSN_nets dst 207.46.111.0/255.255.255.0
acl MSN_methods method CONNECT
http_access allow MSN_methods MSN_ports MSN_hosts
Read more
4

How To Convert CHM Files To PDF In Linux

Microsoft Compiled HTML Help is a proprietary format for online help files, developed by Microsoft. It was first introduced with the release of Windows 98, and is still supported and distributed through Windows XP and Vista platforms. Most often the format is used to create help files for software products. Besides, CHM format is increasingly being used for creation of electronic books (e-books).

NOTE: Some CHM files may be opened using a Web browser, while others can only be opened with a CHM editor or CHM viewing program.

Linux don`t have built-in support for handling CHM files, but it's very simple to convert a CHM file to a PDF file in Linux.

Installing chm2pdf :
debian/ubuntu: sudo apt-get install libchm-bin
fedora/redhat: sudo yum -y install chmlib
OpenSuse: use "1-click" installer to install chm2pdf - here

In order to convert a CHM file to it’s PDF equivalent, all you need to do is issue this simple command:

chm2pdf (--book / --webpage) [options] input_filename [output_filename]

Either '--book' or '--webpage' MUST be given! Only one of the two options can be present, not both!
chm2pdf supports most command line htmldoc options. For a full summary usage, type chm2pdf --help at the command line.

After the execution of above command you will see a pdf file in the same directory which is the PDF equivalent of the CHM file you just converted.
Read more
1

How To add support for latest version of FireFox in Selenium RC

Following are the steps to patch selenium-server.jar to make it work with any latest version of Firefox (example - FireFox 3.6)

Copy selenium-server.jar file to a directory where you can modify it's contents
cp selenium-server.jar /modified/
cd /modified
Unzip the selenium-server.jar files
unzip selenium-server.jar
We need to patch five instances of a file called ‘install.rdf’. These files can be found at the following locations in the extracted ‘selenium-server.jar’ archive:

/customProfileDirCUSTFF/extensions/{538F0036-F358-4f84-A764-89FB437166B4}/install.rdf
/customProfileDirCUSTFF/extensions/readystate@openqa.org/install.rdf
/customProfileDirCUSTFFCHROME/extensions/{503A0CD4-EDC8-489b-853B-19E0BAA8F0A4}/install.rdf
/customProfileDirCUSTFFCHROME/extensions/{538F0036-F358-4f84-A764-89FB437166B4}/install.rdf
/customProfileDirCUSTFFCHROME/extensions/readystate@openqa.org/install.rdf

In each of these files you will see
<em:maxVersion>3.5.*</em:maxVersion>
Change them to
<em:maxVersion>3.6.*</em:maxVersion>
After patching all the above file, zip the folder and rename it to .jar
zip -r selenium-server *
mv selenium-server.zip selenium-server.jar
Now include this modified jar into your project and your selenium server should now able to run your application on FireFox 3.6.
Read more
28

How to Monitor Process on Linux using pidstat

The pidstat command is used for monitoring individual tasks currently being managed by the Linux kernel. It writes to standard output activities for every task selected with option -p or for every task managed by the Linux kernel if option -p ALL has been used. Not selecting any tasks is equivalent to specifying -p ALL but only active tasks (tasks with non-zero statistics values) will appear in the report.
The pidstat command can also be used for monitoring the child processes of selected tasks. Read about option -T below.

The interval parameter specifies the amount of time in seconds between each report. A value of 0 (or no parameters at all) indicates that tasks statistics are to be reported for the time since system startup (boot). The count parameter can be specified in conjunction with the interval parameter if this one is not set to zero. The value of count determines the number of reports generated at interval seconds apart. If the interval parameter is specified without the count parameter, the pidstat command generates reports continuously.


# pidstat -p 2842 2
Linux 2.6.31.5-0.1-desktop (poison)     03/01/10        _i686_  (2 CPU)

12:21:50          PID    %usr %system  %guest    %CPU   CPU  Command
12:21:52         2842    0.00    0.50      0.00        0.50       1        chrome
12:21:54         2842    0.50    0.00      0.00        0.50       0        chrome
12:21:56         2842    0.00    0.00      0.00        0.00       0        chrome
12:21:58         2842    0.50    0.50      0.00        1.00       0        chrome

If you are looking to see how much I/O a specific process is responsible for, you can run pidstat with the “-d” option:

# pidstat -d -p 2842 2
Linux 2.6.31.5-0.1-desktop (poison)     03/01/10        _i686_  (2 CPU)

12:22:38          PID   kB_rd/s   kB_wr/s kB_ccwr/s  Command
12:22:38         2842     58.00      0.00      0.00  chrome
12:22:40         2842    672.00     22.00      0.00  chrome
12:22:42         2842      0.00      0.00      0.00  chrome
12:22:44         2842      2.00     22.00      0.00  chrome
12:22:46         2842     12.00    122.00      8.00  chrome

And finally, to view paging activity per process, you can run pidstat with the “-r” option (and optionally the “-t” flag if you want to see thread activity):

# pidstat -r -t -p 2842 2
Linux 2.6.31.5-0.1-desktop (poison)     03/01/10        _i686_  (2 CPU)

12:24:03         TGID       TID  minflt/s  majflt/s     VSZ    RSS   %MEM  Command
12:24:05         2842         -      0.00      0.00  311916  60376   6.32      chrome
12:24:05            -      2842      0.00      0.00  311916  60376   6.32      |__chrome
12:24:05            -      2850      0.00      0.00  311916  60376   6.32      |__chrome
12:24:05            -      2851      0.00      0.00  311916  60376   6.32      |__chrome
12:24:05            -      2855      0.00      0.00  311916  60376   6.32      |__chrome
12:24:05            -      2856      0.00      0.00  311916  60376   6.32      |__chrome
12:24:05            -      2857      0.00      0.00  311916  60376   6.32      |__chrome

Read more
1

Links/Online Guides/Forums for top Linux Distro's


Here is a huge list of Links/Online Guides/Forums for Linux, These are mainly Official Links which you can find on the respective site
==========================================
General Linux Guides/Links
  1. The Linux Documentation Project : – The Linux Documentation Project
  2. How-To : – Index of /pub/Linux/docs/HOWTO/other-formats/html
  3. Easy Linux : – Main Page -
  4. HowtoForge : – HowtoForge – Linux Howtos and Tutorials | Howtos about Linux and Open Source
  5. Distro Watch : – DistroWatch.com: Put the fun back into computing. Use Linux, BSD.
  6. ELG : – EasyLinuxGuide
  7. MJM Wired : – mjm wired :: Resources
  8. LinuxQuestions.org : – LinuxQuestions.org
  9. Filesystem Standard : – http://www.pathname.com/fhs/pub/fhs-2.3.html
  10. Linux Reality : – Linux Reality
==========================================
Canonical – Ubuntu
  1. Ubuntu Guide :- Ubuntu:Feisty -
  2. Ubuntu Official Guide :- https://help.ubuntu.com/6.10/ubuntu/…e/C/index.html
  3. Wikipedia : https://wiki.ubuntu.com/
  4. Ubuntu Linux Resources :- Ubuntu Linux Resources
  5. Forum :- Ubuntu Forums
  6. Blog :- Ubuntu Blog | UbuntuOS
  7. Mailing Lists :- https://lists.ubuntu.com/mailman/listinfo/
  8. Community :- Ubuntu Community | Ubuntu
  9. Home Page : – Ubuntu Home Page | Ubuntu
==========================================
Canonical – Kubuntu Linux
  1. Kbuntu Guide : Feisty – Kubuntuguide
  2. Kbuntu Documentation : Kubuntu – Documentation
  3. Wikipedia : http://wiki.kubuntu.org/Kubuntu
  4. Forum : Ubuntu Forums
  5. Blog : Kubuntu Breezy – Absolute beginners
  6. How to : https://wiki.kubuntu.org/HelpingKubuntu
  7. Home Page : Kubuntu – The KDE Desktop
==========================================
Canonical Edubuntu Linux
  1. Edubuntu Guide : doc.ubuntu.com/edubuntu/handbook/C/
  2. Edubuntu Documents : Documentation | edubuntu
  3. Wikipedia : http://wiki.edubuntu.org/EdubuntuWiki
  4. How To : UsingEdubuntu | edubuntu
  5. Forum : Ubuntu Forums
  6. FAQ : Frequently Asked Questions | edubuntu
  7. Home Page : Edubuntu Home Page | edubuntu
==========================================
Novell – SUSE Linux
  1. Suse Guide : OS Guide: Suse 9
  2. Suse Wiki : Main Page – SUSE Wiki
  3. Official Guide : Novell Documentation
  4. Forums : SUSE Forums (Powered by Invision Power Board)
  5. SUSE FAQ : Unofficial SUSEFAQ – Unofficial SuSE FAQ
  6. Mailing Lists :- Linux: Linux Operating System—SUSE Linux Enterprise
  7. Home Page : – openSUSE.org
==========================================
 Redhat : Fedora Linux
  1. Fedora Guide : Fedora FC6 -
  2. Fedora Frog : – Fedora frog -
  3. Stanton’s Notes : Fedora Core 5 Installation Notes
  4. MJM Wired’s Notes :Personal Fedora Core 6 Installation Guide
  5. Official Guides : Fedora Project, sponsored by Red Hat
  6. Forum : FedoraForum.org – Fedora Core Support Forum & Community
  7. Fedora Solved : Welcome to FedoraSolved.Org — Fedora Solved
  8. Fedora FAO : FAQ – Fedora Project Wiki
  9. Fedora Wiki : FedoraMain – Fedora Project Wiki
  10. Mailing Lists :- redhat.com Mailing Lists
  11. Home Page : – Fedora Project
==========================================
 Mandriva Linux
  1. Mandriva Guide : – Mandriva -
  2. Easy Linux Wiki : – Mandriva -
  3. Official Documents :- Documentation – Mandriva Linux
  4. Forums : – Index – Mandriva Club Forum
  5. Blog : – Mandriva Blog
  6. Home Page: – Welcome / Home – Mandriva Linux
  7. Support : – Support – Mandriva Linux
  8. Mailing Lists :- Mandriva Linux Mailing-lists – Mandriva Linux
==========================================
 Gentoo Linux
  1. Official Handbook : – Gentoo Linux Documentation — Gentoo Handbook
  2. Gentoo Wiki : – Main Page – Gentoo Linux Wiki
  3. Simple Guide : – Idiot guide to Gentoo Setup
  4. Development Guide : – Gentoo Development Guide: Master Index
  5. Portage : – Gentoo-Portage – News
  6. Fresh Ebuilds : – Gentoo Online Package Database
  7. Forums : – Gentoo Forums :: Index
  8. Blog : – A Blog Of Gentoo and other stuff
  9. Mailing Lists :- Gentoo Linux — Gentoo Mailing Lists
  10. Home Page : – Gentoo Linux — Gentoo Linux News
==========================================
Linspire / Freespire
  1. Linspire Guide : – http://linspireguide.com/
  2. Forums : – Linspire.com Community Forum Archive :: Index
  3. Blog : – LinspireBlog
  4. Wikipedia : Linspire – Wikipedia, the free encyclopedia
  5. Home Page : Linspire – The World’s Easiest Desktop Linux
==========================================
 Xandros Linux
  1. Official Guide : – Home Linux Operating Systems – Xandros
  2. Xandros Wiki : – http://www.archlug.org/kwiki/XandrosKwikis
  3. Forums : – forums.xandros.com :: Index
  4. Support : – Xandros Support
  5. FAQ : – Xandros Support
  6. How To : – Home Linux Operating Systems – Xandros
  7. Home Page : – Linux Desktop and Server Operating Systems
==========================================
 Knoppix Linux
  1. Knoppix Official Wiki : – Main Page – Knoppix Documentation Wiki
  2. Forums : – Knoppix Forum
  3. FAQ : – Knoppix FAQ – Knoppix Documentation Wiki
  4. Mailing List :- Mailing List – Knoppix Documentation Wiki
  5. About : – KNOPPIX – Live Linux Filesystem On CD
  6. Home Page : – Knoppix Linux
==========================================
 Debian GNU/Linux
  1. Debian Linux : – Debian Linux Tutorial – Beginners Guide To Linux Servers and Networking Installation and Set Up with Instructions On How To Configure A Home Server
  2. Users Manual : – Debian — DDP Users’ Manuals
  3. Debian Guide : – Dwarf’s Guide to Debian GNU/Linux
  4. Debian Guide : – GNU/Linux Desktop Survival Guide
  5. Wikipedia : – FrontPage – Debian Wiki
  6. Administration Resources : – Debian GNU/Linux System Administration Resources
  7. Debian FAQ : – The Debian GNU/Linux FAQ
  8. Debian Help : – debianHELP | Militantly FREE software support.
  9. Debian Forums : – Debian User Forums :: Index
  10. Mailing Lists :- Debian — Mailing Lists
  11. Home Page : – Debian — The Universal Operating System
  12. Support : – Debian — Support
==========================================
 Slackware Linux
  1. Slackbook : – The Revised Slackware Book Project
  2. How-To : – LinuxPackages: Howto
  3. Forum : – LinuxPackages :: Index
  4. Handbook : – Slackware Handbook | The Slackware Handbook
  5. Basics : – Slackware Linux Basics
  6. Help Forum : – Slackware Help Forum — Slackers helping slackers. :: Index
  7. FAQ : – The Slackware Linux Project: Frequently Asked Questions
  8. Mailing Lists :- The Slackware Linux Project: Mailing List Info
  9. Home Page : – The Slackware Linux Project
  10. Advisor : – The Slackware Linux Project: Slackware Security Advisories
  11. Help Install : – The Slackware Linux Project: Installation Help
==========================================
 Linux Mint
==========================================
 Saboyon Linux
==========================================
Read more
1

How to Restart a Unresponsive Linux System with Reisub

It may sometime happen that our Linux system hangs completely and the only option available is to shut down the system via the power button.

The power button to reboot could cause a problem if your hard drive is still being written to, and usually causes more problems than it solves. The Linux kernel includes a secret method of restarting your PC

 * Hold down the Alt and SysRq (Print Screen) keys.
 * While holding those down, type the following in order: REISUB
Alt + PrintScreen + r + s + e + i + u + b
 * With above key combination your frozen Linux system will go for a reboot.

Here is what the individual keys do in that sequence
R:Switch the keyboard from raw mode to XLATE mode
E:Send the SIGTERM signal to all processes except init
 I:Send the SIGKILL signal to all processes except init
S:Sync all mounted filesystems
U:Remount all mounted filesystems in read-only mode
B:Immediately reboot the system, without unmounting partitions or syncing
Read more
0

How To Setup Squid Proxy Server to use outgoing IP address

SQUID is a powerful and fast object cache server. It proxies FTP and WWW sessions making it relatively safe. Squid would be very hard to use to actually compromise the system and runs as a non root user (typically 'nobody'), so generally it's not much to worry about. Your main worry with Squid should be improper configuration. For example, if Squid is hooked up to your internal network (as is usually the case), and the internet (again, very common), it could actually be used to reach internal hosts (even if they are using non-routed IP addresses). Hence proper configuration of Squid is very important.

The simplest way to make sure this doesn't happen is to use Squid's internal configuration and only bind it to the internal interface(s), not letting the outside world attempt to use it as a proxy to get at your internal LAN. In addition to this, firewalling it is a good idea. Fortunately Squid has very good ACL's (Access Control Lists) built into the squid.conf file, allowing you to lock down access by names, IP’s, networks, time of day, actual day. Remember however that the more complicated an ACL is, the slower Squid will be to respond to requests.

Example where requests from 10.0.0.0/24 will be forwarded with source address 10.1.0.1,

10.0.2.0/24 forwarded with source address 10.1.0.2 and the rest will be forwarded with source address 10.1.0.3.

acl abc src 10.0.0.0/24
acl xyz 10.0.2.0/24


tcp_outgoing_address 10.1.0.1 abc
tcp_outgoing_address 10.1.0.2 xyz
tcp_outgoing_address 10.1.0.3

This will prevent anyone from using Squid to probe your internal network.
Read more
2

How to view the contents of an initrd image

Linux uses the initrd or initial ram-disk during the boot process. Linux kernel is very modular as you know. While the kernel main file contains only the most needed stuff, rest of the kernel, drivers included, reside in separate files – the kernel modules.

It would be impossible to create a single kernel binary image that would suit all the hardware configurations out there. Instead, kernel supports the initrd. initrd is a virtual file-system that contains drivers (kernel modules) needed to boot the system. For instance, very often a SCSI controllers drivers reside inside of the initrd. Kernel needs a SCSI controller driver to boot the operating system, but it does not include it, nor it can read it from hard-disk (you’d need a driver for the hard-disk, right?). And this is when the initrd becomes very handy.

To extract the content of initrd file, use the following command:

gunzip < initrd-2.6.31.5-0.1-desktop | cpio -i --make-directories

Read more
3

Sharing Directory Content over HTTP using python "SimpleHTTPServer"

Hosting a web server and sharing the content among the users using Python is very simple. Any default installation of Python includes a module called SimpleHTTPServer. We can make use of this module to start python and host a web server on any port as we wish. Practically speaking this is very useful to share files inside your local network, implementing this tiny but hugely useful HTTP server is very simple, its just a single line command.

This serves files from the current directory and any of its subdirectories.  It assumes that all files are plain text files unless they have the extension ".html" in which case it assumes they are HTML files, The GET and HEAD requests are identical except that the HEAD request omits the actual contents of the file.

If you want to serve files from the current directory, just give following command on the shell prompt and open a browser at http://localhost:8080.
$ python -m SimpleHTTPServer 8080
If you have a cgi script located in /cgi-bin/myscript.py, you can test it by giving
$ python -m CGIHTTPServer
and going at http://localhost:8080/myscript.py

Notice that this will work for non-Python CGI scripts too!

The advantage of using CGIHTTPServer is that you will get the logs and the error messages in a shell window and not in a log file. This is of invaluable help during debugging.

The server ignores drive letters and relative path names (such as ‘..’). However, it does not implement any other access control mechanisms, so be careful how you use it.
Read more
0

Installing KDE 4.4 on openSuSe

On 9th February KDE announced the availability of the KDE Software Compilation 4.4, "Caikaku", bringing an innovative collection of applications to Free Software users. Major new technologies have been introduced, including social networking and online collaboration features, a new netbook-oriented interface and infrastructural innovations such as the KAuth authentication framework. According to KDE's bug-tracking system, 7293 bugs have been fixed and 1433 new feature requests were implemented.



KDE 4.4 Installation on openSuSe:
The KDE:KDE4:Factory:Desktop Build Service project offers currently KDE 4.x packages as they are under development for openSUSE 11.3. These are releases from the KDE project with openSUSE patches. They should be mostly usable, but have bugs

Click on one of these One Click Install files to install the required packages and optionally register the repository for future. If you get a message that dependencies cannot be resolved, follow the KDE/Upgrade instructions instead.

KDE 4.4 for openSUSE 11.2
KDE 4.4 for openSUSE 11.1
KDE 4.4 for openSUSE 11.0

Here are some screen-shot of my desktop running openSuSe 11.2 with KDE 4.4


Read more
Related Posts with Thumbnails