hints

Linux sound FAQ

Sound

Sound on linux: tips and tricks, software, hardware, drivers.

Stop all music programs and remove ~/.xine

ALSA drivers can use the muting facilities that most soundcards have. If you loaded the sound drivers and everything is fine but you get nothing but silence, then you probably forgot to unmute your card. You need amixer or alsamixer for this, both from the ALSA-util package.

amixer pcm 100 unmute
amixer set -c 1 Master 70 unmute
amixer set -c 1 PCM 70 unmute
amixer set -c 1 CD 70 unmute

should do for most applications. Please note that for the older amixer command you need to leave out the set in the command line.

How to uninstall CPanel

WARNING! This is for advanced users of the shell, this is NOT a howto or tutorial. The thing is, I googled how to uninstall cpanel and for once in my life I came up empty.. And certainly the cpanel official sites themselves don't provide any instructions other than to say "Dont uninstall it, reinstall your entire operating system without it.".. they sure don't seem confident that they know exactly what their code is doing. At this point this is more of a series of notes than a guide. Ok now go have some fun!

Why Uninstall?

Why? Because I have always built my servers, php installations, perl installs, ruby, iptables, everything from source. I read the INSTALL/README docs, I read the man pages, and I read the info pages as well. I google for configuration advice, I google for tips, and I don't need a web-based perl script messing my stuff up!

The main problems I had with cpanel, which really is a great bit of software for millions of website developers, is that it was incredibly sneaky! I used it for about 6 months and spent that entire time trying to figure out what the heck it was doing. A couple issues that I really disliked, it takes over your bind install, it takes over your apache install, it takes over your php install. And although it does let you configure some things (very few) for custom configurations and the like, I just don't need any of that. By removing the darn thing I am saving GIGS of space on my server, tons of bandwidth, and most importantly to me I am saving CPU and processing time along with RAM and IO speed.Read more

Story URL: 

Directly download Youtube videos

To anyone who will post this on their own website please link to this page. Thanks!

Plain quality. Read more

Story URL: 

SoHo - Alias of loopback interface

We will need a non-127.0.0.1 alias address on the loopback interface for port forwarding. Here is shell script for this task /etc/rc.d/init.d/lo1network

  1. #! /bin/bash
  2. #
  3. # lo1network       Bring up interface lo:1
  4. #
  5. # chkconfig: 2345 11 89
  6. # description: Activates special loopback interface for nat
  7. #
  8. ### BEGIN INIT INFO
  9. # Provides: $lo1network
  10. ### END INIT INFO
  11.  
  12. . /etc/init.d/functions
  13.  
  14. LO1IFACE="lo:1"
  15. LO1ADDRESS="172.16.111.1"
  16. LO1NETMASK="255.255.255.0"
  17.  
  18. test -r /etc/sysconfig/lo1network && . /etc/sysconfig/lo1network
  19.  
  20. /sbin/ifconfig $LO1IFACE $LO1ADDRESS netmask $LO1NETMASK
  21.  
  22. exit 0

Make it run on system bootRead more

SoHo - Ubuntu prerequisites

Dynamic /etc/hosts

The problem with Ubuntu is that it modifies /etc/hosts on-the-fly.

The solution is to use DNS.

$ cat /etc/resolv.conf
nameserver 172.16.162.57
domain ourdom.com
search ourdom.com

Install NTP:

apt-get install ntp

Configure NTP in /etc/ntp.conf:

server ntp.ourdom.com

Network setup

[collapse collapsed = Script for initial Ubuntu network setup]Read more

Recover data from a dead hard drive using dd_rescue

Like dd, dd_rescue does copy data from one file or block device to another.dd_rescue is a tool to help you to save data from crashed partition. It tries to read and if it fails, it will go on with the next sectors where tools like dd will fail. If the copying process is interrupted by the user it is possible to continue at any position later. It can copy backwards.Read more

Integrate GDM and OpenVPN

On server:

use pass auth

--auth-user-pass-verify pam-ldap-plugin

On client:

--auth-user-pass /dev/null
--auth-retry nointeract
--management 127.0.0.1 13579 /etc/ldap.secret
--management-query-passwords

then add in pam.d/auth a program that will connect to client vpn via management interfaceRead more

Syndicate content