Installing Skype 32 bit on Slackware64

May 1st, 2010 Alex Posted in linux, slackware Comments Off

You first need to upgrade your gcc and glibc packages to their multi-lib versions and then install the 32 bits libraries (along with your 64bits libraries that are already installed). Detailed instructions at: http://connie.slackware.com/~alien/multilib/.

AddThis Social Bookmark Button

How-To Change The Default Sound Card in Slackware Linux

April 20th, 2009 Alex Posted in linux, slackware Comments Off

How-To Change The Default Sound Card in Slackware Linux

My case: I have an on-board sound card that I use for everything except for Skype, where I use my Logitech ClearChat Wireless USB Headset. It is easy in Skype to select a different sound device. So I needed to set my on-board sound card as the default output for everything else.

If they both use a different kernel module you can easily make sure the right one is the default card.

Find out what module is being used for your soundcards:

cat /proc/asound/modules

On my computer this gave

0 snd_usb_audio
1 snd_intel8x0

Sound card 0 is the default one (snd_usb_audio in this case). This is the module’s name.

You can’t assign card 0 because whichever card get’s loaded first get # 0. So, you have to assign # 1 to the one you don’t want as the default card. This can be done by adding one simple line to /etc/modprobe.d/sound (create it if it doesn’t exist):

options name_of_offending_module index=1

So, in my case this would be

options snd_usb_audio index=1

Reboot and try

via HOWTO make one soundcard default.

AddThis Social Bookmark Button

Backup Your Security Camery System Captured Images to a Remote Server

January 9th, 2009 Alex Posted in linux, security, slackware Comments Off

Safer Security Camera System with Motion

Now that you have your motion activated security camera system, you could make if safer by uploading the captured images automatically to a remote server just in case something happens to your computer. I’m using Slackware Linux but the setup should be very similar on other distributions.

  1. Create an executable batch file containing the following (pico ~/batch_file):

    rsync -avz /usr/local/apache2/htdocs/cam1 destinationserver.com:~/

  2. Edit /etc/motion.conf and add/uncomment the following line

    on_event_end /home/user/batch_file

  3. Edit ~/.ssh/config (create the .ssh folder if it doesn’t exist) and add the following lines to it:


    Host destinationserver.com
    HostName destinationserver.com
    IdentityFile ~/.ssh/id_dsa
    User your_user_name

  4. Install and setup keychain so that ssh doesn't ask for your pass-phrase every time it tries to connect. Take a look at this keychain/ssh-agent tutorial

You can use a webcam like the one listed below, which features infrared lights for improved night vision (and it is USB so don't need any special hardware for composite input).

infrared security cameraInfrared Night Vision Security Camera

AddThis Social Bookmark Button

Active Perl’s Package Manager: ppm

August 6th, 2008 Alex Posted in perl, programming, slackware Comments Off

It allows you to get Perl pre-compiled packages. You can avoid installing a C compiler which is needed for some packages (KinoSearch for example).

http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/

Alternate packages repositories:
http://cpan.uwinnipeg.ca/PPMPackages/10xx/

AddThis Social Bookmark Button

Compile MythTV 0.21 Slackbuild for Slackware 12.1

July 27th, 2008 Alex Posted in linux, slackware, video Comments Off

with the latest ffmpeg installed, I add to temporarily move the following directories in my home directory for the MythTV compilation to go smoothly:
/usr/include/libavcodec/
/usr/include/libavformat/
/usr/include/libavutil/

AddThis Social Bookmark Button

Upgrade to Slackware 12.1

May 15th, 2008 Alex Posted in linux, slackware Comments Off

The instruction in UPGRADE.TXT worked fine but I also needed to reconfigure the NVIDIA
Video driver to have OpenGL subsystem working fine.

AddThis Social Bookmark Button

Move Rails Project From Windows to Slackware Linux

October 5th, 2006 Alex Posted in linux, slackware, windows Comments Off

So you want to move your Rails project from Windows to Slackware and your are using MySQL database?
Then you can fallow these step-by-step instructions.

Table of contents

  1. Backups
  2. Packages you’ll need
  3. Install Ruby
  4. Install Rubygems
  5. Install Rails
  6. Install MySQL gem
  7. Import your Database schema
  8. Edit config files
  1. BackupsFrom Windows, use mysqldump to create a backup of your database schema and data:
    c:mysqldump -u root -p Database_name > DB_backup.sql

    or to backup all database without the data

    c:mysqldump -u root -p --all-database --no-date > DB_backup.sql

    Next, copy your project directory and you database backup (DB_backup.sql) to a CD
    (or you can mount your windows partition from linux if they are on the same computer)

  2. Packages you’ll need
  3. Install Ruby
    ~$ sudo installpkg ruby-1.8.2-i686-1.tgz
  4. Install Ruby gems
    ~$ tar zxvf rubygems-0.8.10.tgz
    ~$ cd gems-0.8.10
    ~$ sudo ruby setup.rb
  5. Install Rails
    ~$ sudo gem install rails

    or to install latest beta:

    ~$ sudo gem install rails --source http://gems.rubyonrails.com
  6. Install Mysql gem (the first — are meant to be there)
    ~$ sudo gem install mysql --with-mysql-include=/usr/include/mysql 
    --with-mysql-lib=/usr/lib/mysql
  7. Import your Database schema
    ~$ mysqldump -u root --password='Yourpassword'
    mysql> create database database_name;
    mysql> exit
    ~$ mysqldump -u root --password='Yourpassword' 
    database_name > DB_backup.sql
  8. Edit files
    ~$ edit ~/yourproject/public/dispatch.*

    and change the first line to:

    #!/usr/bin/ruby

    (or wherever ruby binary is)

You should be all set.

AddThis Social Bookmark Button