Wednesday, June 16, 2010

how to crontab FlexLM autostart server (Cadence license server start at reboot)

This was done in Mandriva:

#> cd /var/spool/cron
#> mkdir reboot
#> vi /etc/crontab

# edit the crontab as folow:
02 4 * * * root nice -n 19 run-parts --report /etc/cron.daily
etc. ... other 2 lines like the above
# here add this line
@reboot root nice -n 19 run-parts --report /var/spool/cron/reboot

# exit the vi

in directory /var/spool/cron/reboot create a executable script that start the Cadence server (don't forget, chmod a+x your_script)

Example: of "cadsrv" file placed in /var/spool/cron/reboot
#> cat cadsrv

#!/bin/tcsh

cd /flexlm/
./lmgrd -c cadence.dat -l lic.log
# end of the script

as root:
service crond start
chkconfig crond on

NOTE: now after reboot the Cadence license server should start automaticaly

Uff, my administrator life become more confortable, thank you :)

Monday, June 14, 2010

FlexLM Server -> Failed to open the TCP port number in the license

The problem was that /etc/hosts should have this line:

127.0.0.1 localhost

:) Enjoy

tcsh commands how to ...

Original source from here

cmd &
Execute cmd in background.

cmd1 ; cmd2
Command sequence; execute multiple cmds on the same line.

(cmd1 ; cmd2)
Subshell; treat cmd1 and cmd2 as a command group.

cmd1 | cmd2
Pipe; use output from cmd1 as input to cmd2.

cmd1 `cmd2`
Command substitution; run cmd2 first and use its output as arguments to cmd1.

cmd1 || cmd2
OR; execute either cmd1 or (if cmd1 fails) cmd2.

cmd1 && cmd2
AND; execute cmd1 and then (if cmd1 succeeds) cmd2.

===========================================

cmd > file Send output of cmd to file (overwrite).

cmd >! file
Same as preceding, even if noclobber is set.

cmd >> file Send output of cmd to file (append).

cmd>>! file
Same as preceding, even if noclobber is set.

cmd < file Take input for cmd from file. cmd << text Read standard input up to a line identical to text (text can be stored in a shell variable). Input usually is typed on the screen or in the shell program. Commands that typically use this syntax include cat, echo, ex, and sed. If text is enclosed in quotes, standard input will not undergo variable substitution, command substitution, etc.

===========================================

cmd >& file
Send both standard output and standard error to file.

cmd >&! file
Same as preceding, even if noclobber is set.

cmd >>& file
Append standard output and standard error to end of file.

cmd >>&! file
Same as preceding, even if noclobber is set.

cmd1 |& cmd2
Pipe standard error together with standard output.

(cmd> f1) >& f2
Send standard output to file f1 and standard error to file f2.

cmd | tee files
Send output of cmd to standard output (usually the screen) and to files. (See the example in Chapter 3, "Linux Commands" under tee.)

Saturday, June 12, 2010

How to enable Skype sound OpenSuse 11.2

ENVRIONMENT: ALSA 1.0.9 or later
Skype 1.1.0.13 or later
Linux kernel 2.6.x (SUSE Linux 9.1 or later)

PROBLEM: Skype blocks my sound system on SUSE, why?

SOLUTION: Skype, the free VOIP software uses OSS (Open Sound System), which it reserves the whole sound system for itself. There are many work arounds for this. You can use ALSA directly, or through wrappers such as aRts. Here I will show how to do it with ALSA (Advanced Linux Sound Architecture).

First, you need to copy and paste the script provided below and add it to your /etc/asound.conf file.

After that, when you want to start the software, type aoss skype at a command prompt to start the software.

That's how easy, happy skyping!

EXAMPLE: Contents of the /etc/asound.conf script:

pcm.asymed {
type asym
playback.pcm "dmix"
capture.pcm "dsnoop"
}
pcm.!default {
type plug
slave.pcm "asymed"
}
pcm.!dmix {
type dmix
ipc_key 1024
ipc_key_add_uid yes
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 4096
rate 48000
}
bindings {
0 0
1 1
}
}
pcm.!dsnoop {
type dsnoop
ipc_key 5778293
ipc_key_add_uid yes
slave {
pcm "hw:0,0"
period_time 0
period_size 128
buffer_size 2048
format S16_LE
rate 48000
}
}

Tuesday, June 8, 2010

user file directory hdd stat to log file

====

du -k /home-nis/userName/* | sort -nr | cut -f2 | xargs -d '\n' du -sh > v.log

Output sample from the v.log (saved output to file) -> ...

#> cat v.log

3.9G /home-nis/vitalie/Documents
3.1G /home-nis/vitalie/Documents/Microsoft.Student.With.Encarta.Premium.2009-XiSO
2.6G /home-nis/vitalie/downloads
299M /home-nis/vitalie/workspace
205M /home-nis/vitalie/workspace/VDRC_NEXT

etc ...

Thank you

:)

----------------------
Suse - name meaning, origin

from this site

The girl's name Suse \s(u)-se\ is a variant of Susan (Hebrew), and the meaning of Suse is "lily".

The baby name Suse sounds like Suze, Susy, Susie, Susi and Susee. Other similar baby names are Sue, Ase, Gus, Sile, Dusa, Lise, Lyse, Lusa, Luise, Luce, Rise, Rose, Sade, Sage, Sasa, Sine, Sula, Skie, Sukie, Sukey, Suky, Sukee, Suri, Suzy, Suzie, Suzi, Suzee and Suzu.

:)
----------------------
Debian :)


from this site

The name Debian comes from the names of its founder, Ian Murdock, and his wife, Debra. The word "Debian" is thus pronounced as the corresponding syllables of these names are in American English: /deb' ē ən/.

----------------------
Mandriva, mandrake ...?

from this site

#

1. A southern European plant (Mandragora officinarum) having greenish-yellow flowers and a branched root. This plant was once believed to have magical powers because its root resembles the human body.
2. The root of this plant, which contains the poisonous alkaloid hyoscyamine. Also called mandragora.

----------------------

etc. ... :) and so on ...

(how to if) sudo: command not found

man sudo have "-s" option (run command)

Respond:
mem@nano:~> sudo xm list
sudo: xm: command not found

with "-s" option ->
mem@nano:~> sudo -s xm list
Name ID Mem VCPUs State Time(s)
CentOs4.8x86_64 7 1024 4 -b---- 915.4
Domain-0 0 7044 4 r----- 4674.8

Wednesday, June 2, 2010

Fedora 13 ssh with NIS users login problem (solved)

Hi

Installed the Fedora 13, configured the NFS and NIS client.
When trying to login got this message:

"Could not chdir to home directory /home-nis/userName: Permission denied"

Solution:

Need to disable the SeLinux from Fedora. To do so in terminal run this as root ->

lnx#> echo 0 > /selinux/enforce

P.S.: you should permanently disable selinux ->
lnx#> vi /etc/selinux/config

and change this line

SELINUX=enforcing

with:

SELINUX=disabled


See ya on the next topic ;)