20100104

Remote compilation from home

You may have wished to know if there is a feature like old fashion MS-DOS TSR (Terminate and Stay Resident) in Linux. There

are some times that you would like to connect to a server remotely via a shell shuch as PuTTY or other SSH clients and

perform a long and time consuming operation. You possibly have noticed that if the connectivity with the server is lost even

for a short time, your connection is lost and the processes you had started under that shell would be killed automatically.

Consider the following scenario:
You want to connect from your home to a remote Linux server at your office and compile a large program. You will want to

disconnect from Internet and turn off your personal after executing the command and then check the results tomorrow morning

in the office. This is what you should do:

1) Connect to your remote server
2) Execute the following command in the shell:

[root@LPCFAKOOR ali]# screen

3) Then execute your desired command
[root@LPCFAKOOR ali]# make &

4) Then detach from the screen session by pressing CTRL+A and then CTRL+D, you will see the detached message
[root@LPCFAKOOR ali]#
[detached]

5) You may now disconnect and go to sleep and preserve the operation you were performing!

Note: It is possible to achieve similar behavior with "kill -HUP" and "disown -h"

20090902

Dell modem on 64 bit Linux

This post describes how to finally install a working driver for your Dell INSPIRON 6400 E1505 system in Fedora Core 10:

first a bit of lucky output:

[root@LPCFAKOOR ali]# hsfconfig --info
Conexant HSF softmodem driver, version 7.80.02.04x86_64full

If you need license keys, assistance or more information, please go to:
http://www.linuxant.com/

When reporting a problem for the first time, please send
us the file generated by "hsfconfig --dumpdiag".

Note: kernel module snd-via82xx-modem overridden by hsfmc97via
Note: kernel module snd-intel8x0m overridden by hsfmc97ich hsfmc97sis
Note: kernel module snd-atiixp-modem overridden by hsfmc97ati

Current parameters: ("hsfconfig --info")

Config for modem unit 0: /dev/ttySHSF0
Device instance: 0-HDA-14f12bfa:14f100c3-1
HW revision : SSD=31 LSD=0x11
HW profile name: hsfhda
Registration ID: A6A5-1281-E12B
License owner : unknown
License key : FREE
License status : FREE (max 14.4kbps data only)
Current region : USA (T.35 code: 00B5)

The /dev/modem alias (symlink) points to ttySHSF0

To enable full 56K modem and FAX functionality, enter your license information
with "hsfconfig --license".

License owner and key data must EXACTLY match the information respectively
provided to and by Linuxant. Otherwise, license status will remain "FREE"!


then a bit of info:
[ali@LPCFAKOOR ~]$ uname -a
Linux LPCFAKOOR.localdomain 2.6.27.5-117.fc10.x86_64 #1 SMP Tue Nov 18 11:58:53 EST 2008 x86_64 x86_64 x86_64 GNU/Linux



Well, so you want to install the modem driver for your Dell Inspiron 6400 E1505 laptop which is now running 64 bit edition of fedora core 10? Hopefully I should say that it is possible now!

First I ask you some questions? Is ALSA only an audio driver for Linux? Does it have anything to do with the modem driver? Did you now that the softmodem on your laptop is sharing the hardware with your onboard sound card? Do you know what i386,i586,i686 and EMT64 extensions mean?

Now a bit of info from scanning result of my modem (you will later in this post see how to scan your modem):
--------------------------  System information ----------------------------
CPU=x86_64,
Linux version 2.6.27.5-117.fc10.x86_64 (mockbuild@x86-1.fedora.phx.redhat.com) (gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC) ) #1 SMP Tue Nov 18 11:58:53 EST 2008
scanModem update of: 2009_08_15

There are no blacklisted modem drivers in /etc/modprobe* files
Potentially useful modem drivers now loaded are:
snd_hda_intel

For candidate card in slot 00:1b.0, firmware information and bootup diagnostics are:
PCI slot PCI ID SubsystemID Name
---------- --------- --------- --------------
00:1b.0 8086:27d8 1028:01bd Audio device: Intel Corporation 82801G


Modem interrupt assignment and sharing:
21: 166 15339 IO-APIC-fasteoi uhci_hcd:usb3, HDA Intel

--- Bootup diagnostics for card in PCI slot 00:1b.0 ----
PCI: 0000:00:1b.0 reg 10 64bit mmio: [efffc000, efffffff]
pci 0000:00:1b.0: PME# supported from D0 D3hot D3cold
pci 0000:00:1b.0: PME# disabled
pci 0000:00:1b.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
HDA Intel 0000:00:1b.0: setting latency timer to 64



Kernel command line: ro root=UUID=11da7133-af70-482e-958d-accf2f7b2888 rhgb quiet pci=routeirq
PCI: Routing PCI interrupts for all devices because "pci=routeirq" specified
PCI: 0000:00:1b.0 reg 10 64bit mmio: [efffc000, efffffff]
pci 0000:00:1b.0: PME# supported from D0 D3hot D3cold
pci 0000:00:1b.0: PME# disabled
pci 0000:00:1b.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
HDA Intel 0000:00:1b.0: setting latency timer to 64
===== Advanced Linux Sound Architecture (ALSA) diagnostics =====
The ALSA packages provide audio support and also drivers for some modems.
ALSA diagnostics are written during bootup to /proc/asound/ folders.

The ALSA verion is 1.0.17
The modem cards detected by "aplay -l" are: None


The /proc/asound/pcm file reports:
-----------------------
00-01: STAC92xx Digital : STAC92xx Digital : playback 1
00-00: STAC92xx Analog : STAC92xx Analog : playback 1 : capture 1

about /proc/asound/cards:
------------------------
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xefffc000 irq 21

PCI slot 00:1b.0 has a High Definition Audio Card
The drivers are in the kernel modules tree at:
/lib/modules/2.6.27.5-117.fc10.x86_64/kernel/sound/pci/hda/snd-hda-intel.ko
The modem codec file for the HDA card is: /proc/asound/card0/codec#1
--------------------------------------------------------
Codec: Conexant ID 2bfa
Address: 1
Vendor Id: 0x14f12bfa
Subsystem Id: 0x14f100c3
Revision Id: 0x90000
Modem Function Group: 0x2

The audio card hosts a softmodem chip: 0x14f12bfa

14f1 is the Conexant Vendor ID, and 0x14f12bfa a softmodem chipset.
Get a hsfmodem package through http://www.linuxant.com


So you have got the point!, No need to answer the questions above :-), just see another piece of information


[root@LPCFAKOOR ~]# lspci -vvv
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
Subsystem: Dell Device 01bd
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- <64ns,>




and now the list of modules loaded:
[root@LPCFAKOOR ~]# lsmod
Module Size Used by
hsfhda 138264 1
hsfusbcd2 84272 0
hsfmc97sis 88480 0
hsfmc97ati 86944 0
hsfmc97ali 94888 0
hsfmc97via 89256 0
hsfmc97ich 92064 0
hsfpcibasic3 135600 0
hsfpcibasic2 84640 0
hsfsoar 115320 7 hsfusbcd2,hsfmc97sis,hsfmc97ati,hsfmc97ali,hsfmc97via,hsfmc97ich,hsfpcibasic2
hsfserial 32164 9 hsfhda,hsfusbcd2,hsfmc97sis,hsfmc97ati,hsfmc97ali,hsfmc97via,hsfmc97ich,hsfpcibasic3,hsfpcibasic2
hsfengine 1602616 10 hsfhda,hsfusbcd2,hsfmc97sis,hsfmc97ati,hsfmc97ali,hsfmc97via,hsfmc97ich,hsfpcibasic3,hsfpcibasic2,hsfserial
hsfosspec 117808 14 hsfhda,hsfusbcd2,hsfmc97sis,hsfmc97ati,hsfmc97ali,hsfmc97via,hsfmc97ich,hsfpcibasic3,hsfpcibasic2,hsfserial,hsfengine




These are the steps I made to install my modem driver:
1) Read and memorize the steps below! and then reboot your!
2) after rebooting in the grub bootloader menu press 'e' to enter the edit mode
3) edit the kernel command line and append pci=routeirq to the end of boot parameters
4) press 'b' for boot
5) Your system is ready to begin the installation.



1) goto www.linuxant.net
2) download the installer script (cnxtinstall.run) & run
3) It will open a browser, press enough next, it will successfully download & install the alsa driver, but will fail compiling the softmodem generic driver
4) quit the browser & installer script
5) download the generic rpm package with source for the EMT64 extension 64 bit systems
6) Install the rpm (rpm -iv hsfmodemhsfmodem-7.80.02.04x86_64full-1.x86_64.rpm)


now part of dmesg output after installation:
HDA Intel 0000:00:1b.0: PCI INT A disabled
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
HDA Intel 0000:00:1b.0: setting latency timer to 64
patch_cxthsfmodem: Conexant HSF modem detected but driver not present
input: HDA Intel Mic at Ext Right Jack as /devices/pci0000:00/0000:00:1b.0/input/input13
input: HDA Intel HP Out at Ext Right Jack as /devices/pci0000:00/0000:00:1b.0/input/input14
HDA Intel 0000:00:1b.0: PCI INT A disabled
hsfengine: module license 'see LICENSE file distributed with driver' taints kernel.
usbcore: registered new interface driver hsfusbcd2
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
HDA Intel 0000:00:1b.0: setting latency timer to 64
ttySHSF0 at MMIO 0x0 (irq = 1) is a Conexant HSF softmodem (HDA-14f12bfa:14f100c3-1)
input: HDA Intel Mic at Ext Right Jack as /devices/pci0000:00/0000:00:1b.0/input/input15
input: HDA Intel HP Out at Ext Right Jack as /devices/pci0000:00/0000:00:1b.0/input/input16
usbcore: deregistering interface driver hsfusbcd2
HDA Intel 0000:00:1b.0: PCI INT A disabled
usbcore: registered new interface driver hsfusbcd2
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
HDA Intel 0000:00:1b.0: setting latency timer to 64
ttySHSF0 at MMIO 0x0 (irq = 1) is a Conexant HSF softmodem (HDA-14f12bfa:14f100c3-1)
input: HDA Intel Mic at Ext Right Jack as /devices/pci0000:00/0000:00:1b.0/input/input17
input: HDA Intel HP Out at Ext Right Jack as /devices/pci0000:00/0000:00:1b.0/input/input18
usbcore: deregistering interface driver hsfusbcd2
HDA Intel 0000:00:1b.0: PCI INT A disabled
usbcore: registered new interface driver hsfusbcd2
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
HDA Intel 0000:00:1b.0: setting latency timer to 64
ttySHSF0 at MMIO 0x0 (irq = 1) is a Conexant HSF softmodem (HDA-14f12bfa:14f100c3-1)


20090321

DVD xVid DivX playback VLC in Linux x86_64 like k-lite Codec Pack

If you used to use VLC and k-lite codec pack under windows now you can have the same functionality under linux :-)


yum install vlc
rpm -ivh http://rpm.livna.org/livna-release.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna
yum install libdvdcss

Adobe Flash X86_64 plugin


yum install nspluginwrapper.{i386,x86_64} alsa-plugins-pulseaudio.i386
yum install flash-plugin


After installation of the 32-bit plugins you should wrap them to be usable by 64-bit firefox or simply use the 32-bit version on your 64-bit OS. The default behavior is installing the plugins for the 32-bit

mozilla-plugin-config -i


Then you can verify your installation using:

about:plugins






Important Note: There are two versions of firefox available, one 32-bit and one 64-bit. To run the 32-bit or 64-bit versions respectively use
:
/usr/lib64/firefox-/firefox
/usr/bin/firefox

See More at http://www.mjmwired.net/resources/mjm-fedora-f10.html#flash

Installing downloaded RPMs with YUM

To install the downloaded RPMs with yum and simultaneously check for the dependencies in the available repositories:


yum localinstall

20090320

Resuming interrupted YUM Installation / Update

If for some reason, such as system hang up, the system is rebooted , you can then resume the update/install transaction with :


yum-complete-transaction

20090318

Turning off PC Speaker BEEP in midnight

Removing the driver (as root):

modprobe -r pcspkr
Blacklisting the driver:
vi /etc/modprobe.d/blacklist
blacklist pcspkr #Add this line to the file
Set beep length to zero in the shell:
vi /etc/profile #or vi $HOME/.bash_profile
setterm -blength 0