Archive for March, 2009

The fastest way to disable PC speaker in Ubuntu

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

There are several ways to disable usually noisy PC speaker in Ubuntu Linux (this is what beeps every time you wish to keep silent). The fastest one is just to unload its kernel module/driver:

sudo modprobe -r pcspkr

Add the the line “blacklist pcspkr” to /etc/modprobe.d/blacklist to turn off the speaker forever :)

Mount remote filesystem via ssh protocol using sshfs and fuse [Fedora/RedHat/Debian/Ubuntu way]

sshfs

Imagine the following situation: you have to compile some Linux/Unix application or kernel module that requires kernel source present at your hard drive, say, in /usr/src/kernels/kernel-2.6.21-i386/ or elsewhere. But there is not enough disk space to copy these sources or install kernel-devel or linux-source packages (in Fedora/RedHat or Ubuntu/Debian distros respectively)… Sounds familiar? Believe me, sometimes it happens :)

As a solution you can mount the directory of some remote PC that contains needed kernel source. It can be done via several protocols like smb, ftp etc. In this article we will mount remote directory using ssh protocol that is one the most popular for remote and secure access to Linux boxes over the network.

Below are the steps which should be taken to get the ball rolling. We need two packages: sshfs and fuse-utils.

ssh1. Install necessary packages:

a. Ubuntu/Debian:

sudo aptitude install fuse-utils sshfs

b. Fedora/Centos/RedHat:

yum install fuse-sshfs fuse fuse-libs

c. Other Linux: download and compile sshfs/fuse from sources

2. Check that kernel module fuse is loaded:

lsmod | grep fuse

There should be the line containing “fuse” in the output (of not try modprobe fuse).

3. Mount remote filesystem using something like this (two commands):

mkdir -p /mnt/sshfs/
sshfs remote-user@remote-machine:/some/directory /mnt/sshfs

where remote-user is the username allowed to login remote-machine via ssh protocol. It will ask you to type the password so just type it and press return :)

4. That’s it. Good luck!

Distribution of the week: BackTrack — Network Security Suite

BackTrack is Live distribution for penetration and security tests. This is how its developers describe it. But there are plenty of tools, utilities, programs behind this brief description. Let’s dig into.

BackTrack logo

This distribution started from the merge of two ones: WHAX (or Whoppix) and Auditor Security Collection (the swiss army knife for security assessments). The latest stable version (BackTrack 3) contains more than 300 tools (including such monsters as wireshark, nmap, hping and others) which will be appreciated by every security professional. All tools are categorized into:

1. Information gathering
2. Network Mapping
3. Vulnerability Identification
4. Penetration
5. Privilage Escalation
6. Maintaining Access
7. Covering Tracks
8. Radio Network Analysis (Wi-Fi and Bluetooth)
9. VoIP and Telephony Analysis
10. Digital Forensics
11. Reverse Engineering

The full list of tools with descriptions you can find at official BackTrack wiki, screenshots and documentation are here.

Download Now: CD Image, USB Image. More?




Friendly Sites:Who is behind Linux Screw?
Aspiring Sysadmin | GeekyBits³ | Bash Cures Cancer | TOTMS
Linux Operating System | Small Linux Deployments | My SysAd Blog
The Danesh Project | ZEPY | Linux config Wiki | Planet Sysadmin
The Sys Admin | {buhay sysad} | a non-geek's linux notes
Linux HOWTOs, Tutorials & Projects with Adam Palmer | LinuxAlt.Com
My name is Artem Nosulchik (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››