Home » Distros » Debian

Run Photoshop with Ubuntu (or any other Linux)

Adobe Photoshop (or simply Photoshop), is a graphics editor developed and published by Adobe Systems. Currently it’s market leader for commercial bitmap and image manipulation, and is the flagship product of Adobe Systems. Unfortunately it’s available for M$ Windows and Apple OS X users only. Thanks to heaven (and Wine’s developers of course) there is Wine allowing to execute M$ Windows applications (from simple executables to M$ Office and Adobe Photoshop) in Linux. The following instructions will help you to run Photoshop with you favorite … Read more

Home » Distros » Debian

Clean up your Ubuntu with deborphan

If you want to clean up your Ubuntu or Debian machine and delete unnecessary (orphaned) deb packages you can use utility deborphan. It finds packages that have no packages depending on them. The default operation is to search only within the libs and oldlibs sections to hunt down unused libraries. Install deborphan with command sudo apt-get install deborphan and then let’s proceed with cleaning up. To delete unnecessary libraries just execute: sudo deborphan | xargs sudo apt-get -y remove –purge To delete unnecessary data packages … Read more

Home » Distros » Debian

Network Traffic Generator: hping

hping3 is a network tool able to send custom TCP/IP packets and to display target replies like ping program does with ICMP replies. hping3 handles fragmentation, arbitrary packets body and size and can be used in order to transfer files encapsulated under supported protocols. Using hping3 you are able to perform at least the following stuff: Test firewall rules Advanced port scanning Test net performance using different protocols, packet size, TOS (type of service) and fragmentation. Path MTU discovery Transferring files between even really fascist … Read more

Home » Distros » Debian

Get changelog information from RPM and DEB package

Here is a nice Linux tip: to get change information of some RPM package it’s enough to execute the following command rpm -q –changelog package for example rpm -q –changelog openssh will output something like: * Fri Mar 03 2006 Tomas Mraz <[email protected]> – 4.3p2-4 – allow access if audit is not compiled in kernel (#183243)</[email protected]> * Sat Feb 25 2006 Tomas Mraz <[email protected]> – 4.3p2-3 – enable the subprocess in chroot to send messages to system log – sshd should prevent login if audit … Read more

Home » Distros » Debian

Web server oneliner with bash

It’s amazing but it’s possible to write little web server on bash shell script. Here is it’s source code: :;while [ $? -eq 0 ];do nc -vlp 8080 -c'(r=read;e=echo;$r a b c;z=$r;while [ ${#z} -gt 2 ];do $r z;done;f=`$e $b|sed ‘s/[^a-z0-9_.-]//gi’`;h=”HTTP/1.0″;o=”$h 200 OK\r\n”;c=”Content”;if [ -z $f ];then($e $o;ls|(while $r n;do if [ -f “$n” ]; then $e “`ls -gh $n`”;fi;done););elif [ -f $f ];then $e “$o$c-Type: `file -ib $f`\n$c-Length: `stat -c%s $f`”;$e;cat $f;else $e -e “$h 404 Not Found\n\n404\n”;fi)’;done You can download it here. Just … Read more

Home » Distros » Debian

How to create custom linux ISO image?

It’s rather trivial task to make some changes into already burned installation or live CD. It may be performed to add some files to this CD or edit files on it. In any case it’s impossible to loop mount .iso file and then save it as iso9660 filesystem is read-only. So, just mount your CD or iso image to some directory by commands: sudo mkdir /mnt/image sudo mount /dev/cdrom /mnt/image or sudo mount /path/to/your.iso /mnt/image -o loop then copy it’s contents to some directory: mkdir … Read more