Welcome to LinuxScrew

A site for Linux lovers worldwide. For newbies, system engineers, administrators, and everybody in between. We cover all things Linux, plus various programming languages, including Python, Javascript, and PHP.

View our featured tutorials and projects in the slider below or scroll down to see all recent articles.

How to Convert a USB Printer to Wireless with a Raspberry Pi
How to Use a Raspberry Pi for Digital Signage
The Worst Things You’ll Probably Google As a Programmer on Linux
How to Build a Raspberry Pi Internet Kiosk
Browsing the Internet on a 1989 Macintosh II with a Web Rendering Proxy
previous arrow
next arrow
Slider

Creative Sound Blaster X-Fi Linux driver

Good news for owners of Creative Sound Blaster X-Fi series as manufacturer’s binary Linux drivers are available for free downloading. The driver is compatible with ALSA. Bad news: it’s available only for x86_64 Linux. Here is the list of supported cards: Creative Sound Blaster X-Fi Elite Pro Creative Sound Blaster X-Fi Platinum Creative Sound Blaster X-Fi Fatal1ty Creative Sound Blaster X-Fi XtremeGamer Creative Sound Blaster X-Fi XtremeMusic Driver is available here.

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

Install iTunes 7.2 in Ubuntu and other Linux distros

iTunes is a media player that is available only for Windows and Mac OS X but also can be run in Linux with Wine. Certainly we’re interested in latter operating system :). The following manual shows how to get iTunes 7.2 running in Linux with wine 0.9.45. To install latest version of wine download corresponding binary package for you Linux distribution from here. Packages for Ubuntu Feisty are available here. Install deb package: sudo dpkg -i wine_0.9.45~winehq0~ubuntu~7.04-1_i386.deb Configure by running winecfg command in terminal: In … Read more

Create Linux user with password

Sometimes it’s necessary to create Linux user accounts in batch mode (fully automatic) but often newbies ask how to set password for a new user without entering it manually. Thanks to heaven command useradd can get password as an input parameter, but it should be encrypted. In other words, to create Linux user account with password the following command will be useful: useradd -m -p encryptedPass username I know at least two ways to get password encrypted. The first one is to use perl crypt(); … Read more

Ping range of IP addresses in parallel with fping

fping is a program which uses the Internet Control Message Protocol (ICMP) echo request to determine if a host is up. fping is different from ping in that you can specify any number of hosts on the command line, or specify a file containing the lists of hosts to ping. Instead of trying one host until it timeouts or replies, fping will send out a ping packet and move on to the next host in a round-robin fashion. If a host replies, it is noted … Read more

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

Nokia E-series sync with Evolution via Bluetooth in Ubuntu

nokiaThe Nokia E-series consists of business-oriented smartphones, with emphasis on support for corporate e-mail. Currently Nokia e-series includes: E60, E61, E70, E50, E61i, E65, E90.

This is a howto (provided by Nailor) shows how to sync Nokia E-series phone (Symbian 9.1, Series60 3rd edition) with Gnome Evolution in Ubuntu Edgy Eft (6.10) and Feisty Fawn (7.04). This has been tested with Nokia E50. Information on how to sync Nokia E65 is available here. Kubuntu users may be interested in this.

Read more

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

Find out where Unix/Linux executable binary is located

There are two commands that may help you to find where executable binary is located regardless it’s Unix or Linux system. They are whereis and type. First locates source/binary and manuals sections for specified files and second tells what exactly shell executes when you type a certain command. The next picture shows examples of these commands work.