Re: latest kernel version

2015-06-08 Thread Mahmood Naderan
Whoever has the latest SL-7.x, please let me know the default kernel version.
 Regards,
Mahmood 


 On Saturday, June 6, 2015 11:14 AM, Mahmood Naderan nt_mahm...@yahoo.com 
wrote:
   

 Hi,What is the latest kernel version in 7 series? Regards,
Mahmood

  

latest kernel version

2015-06-06 Thread Mahmood Naderan
Hi,What is the latest kernel version in 7 series? Regards,
Mahmood

perf command in SL

2015-06-05 Thread Mahmood Naderan
Hi,
According tot he wikipedia entry for perf, it should be available in kernels 
 2.6.31
Currently, the installed kernel on my SL-6.3 is  SL-6.3 
2.6.32-279.5.1.el6.x86_64. However, there is no package for perf or 
linux-tools.
Do you have any idea?
 Regards,
Mahmood

Re: TFTP boot

2014-07-28 Thread Mahmood Naderan
Thanks. It seems that DNSmsq is better than DHCP configuration.

 
Regards,
Mahmood 


On Monday, July 28, 2014 12:25 PM, Bill Maidment b...@maidment.com.au wrote:
 





That should be:

       hardware ethernet 08:00:2b:4c:a3:82;


-Original message-
 From:Patrick Mahan ma...@mahan.org
 Sent: Monday 28th July 2014 15:00
 To: Mahmood Naderan nt_mahm...@yahoo.com
 Cc: scientific-linux-users@fnal.gov
 Subject: Re: TFTP boot
 
 
 
 On Jul 27, 2014, at 1:01 PM, Mahmood Naderan nt_mahm...@yahoo.com 
 mailto:nt_mahm...@yahoo.com wrote:
 
 Hello,
 
 I want to setup a diskless node and it should boot from a server. The guide 
 in http://wiki.centos.org/HowTos/PXE/PXE_Setup 
 http://wiki.centos.org/HowTos/PXE/PXE_Setup explains DHCP setup. However I 
 want to assign static IP to the node. As a result, I have to add the node's 
 MAC address somewhere in the server's configuration file.
 
 Where should I do that?
 
 Try googling static dhcp lease linux.
 
 For example on a RH/CentOS/Fedora platform acting as your DHCP server, in 
 /etc/dhcpd.conf:
 
 #
 
 # assign a static lease to our printer
 
 #
 
 host lj4100 {
 
         hardware 08:00:2b:4c:a3:82;
 
         fixed-address 192.168.1.125;
 
 }
 
 Patrick
 
 Coming to you from deep inside Fortress Mahan
 
 

Re: initrd.img vmlinuz

2014-07-28 Thread Mahmood Naderan

 In any case, that's a CentOS repository, not Scientific Linux. In any
 case, look at the reference distribution at
 http://ftp1.scientificlinux.org/linux/scientific/6.3/x86_64/os/Packages/

Excuse me, I don't see such packages in the link

 
Regards,
Mahmood 


On , Mahmood Naderan nt_mahm...@yahoo.com wrote:
 


I need them for PXE boot. I prefer to have the same versions on nodes.

 
Regards,
Mahmood 


On Monday, July 28, 2014 3:56 PM, Nico Kadel-Garcia nka...@gmail.com wrote:
 


On Sun, Jul 27, 2014 at 5:36 PM, Mahmood Naderan nt_mahm...@yahoo.com wrote:

 Hello,
 Where can I download the initrd.img and vmlinuz files for SL-6.3?
 Those files are only available for SL-6.5

 http://mirror.de.leaseweb.net/centos/

Why would you *want* them? You'll miss out on all the patches since SL 6.3?!

In any case, that's a CentOS repository, not Scientific Linux. In any
case, look at the reference distribution at
http://ftp1.scientificlinux.org/linux/scientific/6.3/x86_64/os/Packages/

Re: initrd.img vmlinuz

2014-07-28 Thread Mahmood Naderan
Thank you very much

 
Regards,
Mahmood 


On Monday, July 28, 2014 7:07 PM, Jan A. Stillings 
stilli...@physik.uni-bonn.de wrote:
 


Hi,

  you can find them here:

http://ftp1.scientificlinux.org/linux/scientific/6.3/x86_64/os/images/pxeboot/

Regards,

  Jan.


On 28.07.2014, at 16:09, Mahmood Naderan wrote:

 
  In any case, that's a CentOS repository, not Scientific Linux. In any
  case, look at the reference distribution at
  http://ftp1.scientificlinux.org/linux/scientific/6.3/x86_64/os/Packages/
 
 Excuse me, I don't see such packages in the link
  
 Regards,
 Mahmood
 
 
 On , Mahmood Naderan nt_mahm...@yahoo.com wrote:
 
 
 I need them for PXE boot. I prefer to have the same versions on nodes.
  
 Regards,
 Mahmood
 
 
 On Monday, July 28, 2014 3:56 PM, Nico Kadel-Garcia nka...@gmail.com wrote:
 
 
 On Sun, Jul 27, 2014 at 5:36 PM, Mahmood Naderan nt_mahm...@yahoo.com wrote:
 
  Hello,
  Where can I download the initrd.img and vmlinuz files for SL-6.3?
  Those files are only available for SL-6.5
 
  http://mirror.de.leaseweb.net/centos/
 
 
 Why would you *want* them? You'll miss out on all the patches since SL 6.3?!
 
 In any case, that's a CentOS repository, not Scientific Linux. In any
 case, look at the reference distribution at
 http://ftp1.scientificlinux.org/linux/scientific/6.3/x86_64/os/Packages/
 
 
 
 
 

Re: changing primary group

2014-07-09 Thread Mahmood Naderan
Jon is correct that the home folder is accessed by only the user (700). So the 
subsequent folders are not visible to others.
Thanks.

 
Regards,
Mahmood 


On Wednesday, July 9, 2014 3:16 AM, Brandon Vincent brandon.vinc...@asu.edu 
wrote:
 


On Tue, 2014-07-08 at 03:04 -0700, Mahmood N wrote:

 Hi
 I changed the primary group of my user name to another on in order to
 access some folders of that user. However I can not access them. Why?
 
 
 [root@N100 mahmood]# groups mahmood
 mahmood : devs mahmood
 [root@N100 mahmood]# groups devs
 plotfi : devs
 
 
 [mahmood@N100 ~]$ ls /home/devs/tools
 ls: cannot access /home/devs/tools: Permission denied
 
 
  
 Regards,
 Mahmood

Mahmood,

Can you try logging out and logging back in?

Brandon Vincent

Re: Add a remote disk to LVM

2014-05-07 Thread Mahmood Naderan
No it is not shared via NFS (do we have to first share it?)
Problem is, there is no free slot for disks in our machine (say N1). However 
another node (say N2 which is running scientific linux independently) has free 
slots. So I added the physical disks to N2. the disk has been formatted and it 
has a mount point on N2.

Now I want to add N2:/dev/sdb to N1:/dev/tigerfiler1/tigervolume
Can you please guide step by step?

 
Regards,
Mahmood
On Wednesday, May 7, 2014 10:00 AM, John Lauro john.la...@covenanteyes.com 
wrote:
 
What type of remote disk?   NFS?

A more common case would be to move some directories to /arch and use sym links.
You could create a loopback diskfile somewhere on /arch and add that to LVM.  
It's going to make bootup messy, so you wouldn't want any volumes on it that 
are required for bootup (especially / or /usr or /sbin, and probably not /var) 
...



From: Mahmood Naderan nt_mahm...@yahoo.com
To: scientific-linux-users@fnal.gov
Sent: Wednesday, May 7, 2014 1:12:41 AM
Subject: Add a remote disk to LVM





Hello,
Is it possible to add a network
 drive to existing LVM? I have created a group and have added three 
local drives. Now I want to add a remote disk from another node. The 
remote node has an additional hard drive and is mounted to /arch (remote
 node)

Is that possible? How? All examples I see are trying to add extra local drives 
and not remote drives.

Here are some info

# vgdisplay
  --- Volume group ---
  VG Name   tigerfiler1
  System ID
 
 Format    lvm2
  Metadata Areas    3
  Metadata Sequence No  2
  VG Access read/write
  VG Status resizable
  MAX LV    0
  Cur LV    1
  Open LV   1
  Max
 PV    0
  Cur PV    3
  Act PV    3
  VG Size   2.73 TiB
  PE Size   4.00 MiB
  Total PE  715401
  Alloc PE / Size   715401 / 2.73 TiB
  Free  PE / Size   0 / 0
  VG
 UUID   8Ef8Vj-bDc7-H4ia-D3X4-cDpY-kE9Z-njc8lj



pvdisplay
  --- Physical volume ---
  PV Name   /dev/sdb
  VG Name   tigerfiler1
  PV Size   931.51 GiB / not usable 1.71 MiB
  Allocatable   yes (but full)
  PE Size   4.00 MiB
 
 Total PE  238467
  Free PE   0
  Allocated PE  238467
  PV UUID   FmC77z-9UaR-FhYa-ONHZ-EazF-5Hm2-8zmUuj

  --- Physical volume ---
  PV Name   /dev/sdc
  VG Name   tigerfiler1
  PV Size   931.51 GiB / not usable 1.71 MiB
  Allocatable   yes (but full)
  PE Size   4.00 MiB
  Total PE  238467
  Free PE   0
  Allocated PE  238467
  PV UUID   1jBQUn-gkkD-37I3-R3nL-KeHA-Hn2A-4zgNcR

  --- Physical volume ---
  PV Name   /dev/sdd
  VG Name   tigerfiler1
  PV Size   931.51 GiB / not usable 1.71 MiB
  Allocatable   yes (but full)
  PE Size   4.00 MiB
  Total PE  238467
  Free PE   0
  Allocated PE  238467
  PV
 UUID   mxi8jW-O868-iPse-IfY7-ag3m-R3vZ-gS3Jdx

 


 
 
Regards,
Mahmood

Re: Add a remote disk to LVM

2014-05-07 Thread Mahmood Naderan
Hmmm, yes, it is possible, using iSCSI.
OK I will try that. Thanks


 
Regards,
Mahmood



On Wednesday, May 7, 2014 6:38 PM, Lamar Owen lo...@pari.edu wrote:
On 05/07/2014 01:12 AM, Mahmood Naderan wrote:

 Is it possible to add a network drive to existing LVM? I have created 
 a group and have added three local drives. Now I want to add a remote 
 disk from another node. The remote node has an additional hard drive 
 and is mounted to /arch (remote node)

 Is that possible? How? All examples I see are trying to add extra 
 local drives and not remote drives.

Hmmm, yes, it is possible, using iSCSI.

In order to do this correctly you would want the machine, that has the 
additional drives, set up to be an iSCSI target, and then use the iSCSI 
initiator on the first machine to attach to the disks; you can then add 
those iSCSI disks to the volume group.  I would use dedicated Gigabit 
Ethernet NICs and point-to-point connections rather than trying to use 
the existing ethernet ports, too.  Oh, and you wouldn't have it mounted 
on the second machine as such.

No, I can't give you a step-by-step, you'll have to do a bit of research 
and you really really need to read up on and understand what iSCSI 
brings to the party.  I have an IA-64 box (SGI Altix) running CentOS 5.9 
(my own hand-rebuild, bootstrapped up from SL CERN 5.4 IA-64) using an 
EMC Clariion array's LUNs over iSCSI, so I have a bit of experience with 
the initiator portion of the equation, but none at all with the target 
portion, but I know that it does exist.



Re: problem installing SL6.3 from live usb

2014-04-18 Thread Mahmood Naderan
Thanks for the comments. I will try them and let you know

 
Regards,
Mahmood
On Friday, April 18, 2014 5:16 PM, John Lauro john.la...@covenanteyes.com 
wrote:
 
Sounds like you are not using default LVM setup?  It should just work with LVM.

Generally I prefer just using /dev/sda, /dev/sdb, etc... but LVM is generally 
safer when devices change... In this case, stick with the UUID or LVM instead 
of the changeable /dev/sda, etc...


If you don't want to switch to LVM, it is possible to boot in rescue mode and 
manually reinstall grub telling it what the devices will be instead of what 
they are...  been awhile from when I had to do that.  Generally not a 
recommended option for a new install...

I think, another option, make your jetflash the lowest priority.  As long as 
D0/D1 are not bootable (you may have to wipe the start of the drives) it should 
still boot jetflash and the device mappings should then be consistent from the 
bios.




- Original Message -
 From: Orion Poplawski or...@cora.nwra.com
 To: Mahmood Naderan nt_mahm...@yahoo.com, scientific-linux-users@fnal.gov
 Sent: Friday, April 18, 2014 12:59:40 AM
 Subject: Re: problem installing SL6.3 from live usb
 
 On 04/17/2014 04:51 AM, Mahmood Naderan wrote:
  Hi
  Recently I faced  problem installing SL6.3 on a machine. I didn't
  have
  such problem before so your comments are appreciated.
  
  The machine has two physical disks (D0, D1) each has 1TB capacity
  and I
  attach a USB flash (2 GB) which contains a live image of SL6.3. So
  the
  boot priority in the BIOS looks like
       JetFlash
       D0
       D1
  
  Using the installation wizard, I see a layout like this
      /dev/sda     2GB
      /dev/sdb     1TB
           /           900GB
          swap      100GB
      /dev/sdc     1TB
  
  
  The default location for GRUB is then /dev/sda. Problem is, after
  installation I remove the USB flash but it doesn't boot because the
  grub
  had been installed on /dev/sda (which was JetFlash) and now there
  is no
  such device
  
  As another try, in the installation wizard where we can configure
  the
  boot loader, I selected /dev/sdb (where root and swap is
  installed).
  This time when I remove/disconnect the flash, the boot stuck again.
  The
  reason is that, when I disconnect the flash, D0 becomes /dev/sda
  and D1
  becomes /dev/sdb. So again there is no grub!!
  
  Overall there is a loop and I haven't figured out how to resolve it
  
   
  Regards,
  Mahmood
 
 Perhaps:
 - physically swap the disks after install?
 - install to /dev/sdc?
 
 
 --
 Orion Poplawski
 Technical Manager                     303-415-9701 x222
 NWRA/CoRA Division                    FAX: 303-415-9702
 3380 Mitchell Lane                  or...@cora.nwra.com
 Boulder, CO 80301              http://www.cora.nwra.com
 

JvisualVM on SL

2014-03-29 Thread Mahmood Naderan
Hi
There are some questions on the net about jvisualvm on centos-based operating 
systems. However there is no clear answer. It seems that jvisualvm is come with 
Oracle JDK (which can be accessed in Solaris) but right now, only open-jdk is 
available.

Any idea on that?

 
Regards,
Mahmood

JDK location

2014-03-24 Thread Mahmood Naderan
Hi
I have installed 

java-1.7.0-openjdk-devel
java-1.7.0-openjdk-src


however I can not find the root folder of jdk source. Searching all files shows 
many folders and I can not figure-out where it is. Some programs need
$JAVA_HOME. What is the default location?
 
Regards,
Mahmood

Passwordless ssh

2014-03-24 Thread Mahmood Naderan
Hi
From a newly created account on SL 6.5, I ran

1- ssh-keygen -t rsa -P 
2- Accepting all defaults
3- cat ~/.ssh/id_rsa.pub  ~/.ssh/authorized_keys

 
However every time I run ssh localhost, ti asks for password.
However with this configuration, it should be passwordless.
What did I miss?


Regards,
Mahmood

Re: Passwordless ssh

2014-03-24 Thread Mahmood Naderan
Thanks. Running chmod 700 .ssh/authorized_keys fixed that


 
Regards,
Mahmood



On Monday, March 24, 2014 1:53 PM, Eero Volotinen eero.voloti...@iki.fi wrote:
 
Possibly file permissions or selinux context.

Eero




2014-03-24 9:38 GMT+02:00 Mahmood Naderan nt_mahm...@yahoo.com:

Hi
From a newly created account on SL 6.5, I ran


1- ssh-keygen -t rsa -P 
2- Accepting all defaults
3- cat ~/.ssh/id_rsa.pub  ~/.ssh/authorized_keys

 
However every time I run ssh localhost, ti asks for password.
However with this configuration, it should be passwordless.
What did I miss?


Regards,
Mahmood

Re: JDK location

2014-03-24 Thread Mahmood Naderan
OK. Seems that /usr/lib/jvm/java-[version].[arch] is the correct one.
Thanks


 
Regards,
Mahmood



On Monday, March 24, 2014 4:23 PM, Nico Kadel-Garcia nka...@gmail.com wrote:
 
Try rpm -ql java-1.7.0-openjdk-src | less

The default of JAVA_HOME, now, that's different, because you can
reasonably safely install multiple versions of java with multiple
relevant JAVA_HOME directories and pick which set to use. The
defaults wend a twisty path through /usr/bin/java which is symlinked
to /etc/alternatives/java, which is symlinked to
/usr/lib/jvm/jre-[version]/bin/java

If you need to muck with JAVA_HOME to pick alternative versions, use
/usr/lib/jvm/java-[version].[arch]. Otherwise, stop trying to outsmart
it and simply use the /usr/bin/java or /usr/bin/jre symlinks as
needed.




On Mon, Mar 24, 2014 at 3:24 AM, Mahmood Naderan nt_mahm...@yahoo.com wrote:
 Hi
 I have installed

 java-1.7.0-openjdk-devel
 java-1.7.0-openjdk-src

 however I can not find the root folder of jdk source. Searching all files
 shows many folders and I can not figure-out where it is. Some programs need
 $JAVA_HOME. What is the default location?

 Regards,
 Mahmood

Re: kernel source

2014-03-19 Thread Mahmood Naderan
OK I have installed these packages

# rpm -qa | grep kernel*
dracut-kernel-004-336.el6.noarch
kernel-firmware-2.6.32-279.5.1.el6.noarch
kernel-headers-2.6.32-279.22.1.el6.x86_64
kernel-2.6.32-279.5.1.el6.x86_64
kernel-devel-2.6.32-279.5.1.el6.x86_64



However someone at kernel mailing list told me that the installation is 
incomplete because I am looking for sched.c and there is no such file.


 
Regards,
Mahmood



On Wednesday, March 19, 2014 5:52 PM, Prosun Prodhan linuxpro...@gmail.com 
wrote:
 
you can go for kernel-devel. better follow kernel.org.




On Wed, Mar 19, 2014 at 6:40 PM, Mahmood Naderan nt_mahm...@yahoo.com wrote:

Hi
How can I test/install the kernel source in SL6.3? Which package should I 
search? Should I run yum install kernel-headers only? or there are some 
other related packages?

 
Regards,
Mahmood



-- 

Prosun Prodhan
Webel Informatics Ltd.
225F, A.J.C. Bose Rd. Kolkata-700020.
India.
Ph.: 22833568/69, 09339192066(M)
http://webelinformatics.com
http://www.facebook.com/webelinformatics
Registered Linux User # 318610 (LiCo : http://www.linuxcounter.net, formerly 
http://counter.li.org)
[When you say, I wrote a program that crashed Windows, people just stare at 
you blankly and say, Hey, I got those with the system, for free.  - Linus 
Torvalds]

Re: kernel source

2014-03-19 Thread Mahmood Naderan
The goal is to find the sched.c (the linux scheduler source code). It seems 
that the kernel sources are installed from repository however there is no such 
kernel-source or similar things. 

Can some find sched.c on his system?

# rpm -qa | grep kernel
dracut-kernel-004-336.el6.noarch
kernel-firmware-2.6.32-279.5.1.el6.noarch
kernel-headers-2.6.32-279.22.1.el6.x86_64
kernel-2.6.32-279.5.1.el6.x86_64
kernel-devel-2.6.32-279.5.1.el6.x86_64



 
Regards,
Mahmood



On Wednesday, March 19, 2014 6:45 PM, Yogi A. Patel yapa...@gatech.edu wrote:
 
If your goal is to simply install a new kernel, you may want to look at the 
script at the link below.

It is written to download a new kernel from kernel.org, patch it with xenomai, 
configure, and then install it onto SL6.5.

You can go in and comment out the xenomai part if you don't want it.

Note - it requires you have lsb_release installed. You may have to install it 
prior to running the script.

https://github.com/RTXI/rtxi/blob/qt4/scripts/install_rt_kernel.sh


--
Yogi A. Patel
(c): (828) 291-6715
(url): www.yapatel.org | @yapatel525

On Mar 19, 2014, at 9:46, Prosun Prodhan linuxpro...@gmail.com wrote:


ok, you are looking for sched.c. try kernel-source package




On Wed, Mar 19, 2014 at 6:57 PM, Mahmood Naderan nt_mahm...@yahoo.com wrote:

OK I have installed these packages

# rpm -qa | grep kernel*
dracut-kernel-004-336.el6.noarch
kernel-firmware-2.6.32-279.5.1.el6.noarch
kernel-headers-2.6.32-279.22.1.el6.x86_64
kernel-2.6.32-279.5.1.el6.x86_64
kernel-devel-2.6.32-279.5.1.el6.x86_64





However someone at kernel mailing list told me that the installation is 
incomplete because I am looking for sched.c and there is no such file.


 
Regards,
Mahmood



On Wednesday, March 19, 2014 5:52 PM, Prosun Prodhan linuxpro...@gmail.com 
wrote:
 
you can go for kernel-devel. better follow kernel.org.




On Wed, Mar 19, 2014 at 6:40 PM, Mahmood Naderan nt_mahm...@yahoo.com wrote:

Hi
How can I test/install the kernel source in SL6.3? Which package should I 
search? Should I run yum install kernel-headers only? or there are some 
other related packages?

 
Regards,
Mahmood



-- 

Prosun Prodhan
Webel Informatics Ltd.
225F, A.J.C. Bose Rd. Kolkata-700020.
India.
Ph.: 22833568/69, 09339192066(M)
http://webelinformatics.com
http://www.facebook.com/webelinformatics
Registered Linux User # 318610 (LiCo : http://www.linuxcounter.net, formerly 
http://counter.li.org)
[When you say, I wrote a program that crashed Windows, people just stare at 
you blankly and say, Hey, I got those with the system, for free.  - Linus 
Torvalds]




-- 

Prosun Prodhan
Webel Informatics Ltd.
225F, A.J.C. Bose Rd. Kolkata-700020.
India.
Ph.: 22833568/69, 09339192066(M)
http://webelinformatics.com
http://www.facebook.com/webelinformatics
Registered Linux User # 318610 (LiCo : http://www.linuxcounter.net, formerly 
http://counter.li.org)
[When you say, I wrote a program that crashed Windows, people just stare at 
you blankly and say, Hey, I got those with the system, for free.  - Linus 
Torvalds]

Re: Installing Virtualbox 4.3.8 on SL 6.3

2014-02-28 Thread Mahmood Naderan
Anyway... it seems that compiling from source is the best option.
I tried that and didn't see such message.


 
Regards,
Mahmood



On Friday, February 28, 2014 5:03 PM, jdow j...@earthlink.net wrote:
 
Because I know how VirtualBox works. I've used it on other machines before.

And for reasons I can't figure out kvm does not work on a Win7 host. (sarcasm)

{^_^}


On 2014/02/28 05:23, David Sommerseth wrote:
 On 28/02/14 06:13, Mahmood Naderan wrote:
 Hi
 I am trying to install Virtualbox 4.3.8 on my SL6.3. The installation
 seems to be OK

 I know it's non of my business ... but why do you install Virtualbox,
 when SL ships with a quite functional virtualization?

    yum install kvm qemu-kvm python-virtinst libvirt libvirt-python \
                virt-manager libguestfs-tools

 That should basically give you every thing you would need.  Start
 virt-manager (should even be added to the Applications menu).

 A RHEL6 Getting Started guide on virtualization can be found here:
 https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Getting_Started_Guide/

 And another quite good getting started guide, explaining a more
 advanced network setup:

 http://www.cyberciti.biz/faq/kvm-virtualization-in-redhat-centos-scientific-linux-6/


 --
 kind regards,

 David Sommerseth


Installing Virtualbox 4.3.8 on SL 6.3

2014-02-27 Thread Mahmood Naderan
Hi
I am trying to install Virtualbox 4.3.8 on my SL6.3. The installation seems to 
be OK

# rpm -ivh VirtualBox-4.3-4.3.8_92456_el6-1.x86_64.rpm 
warning: VirtualBox-4.3-4.3.8_92456_el6-1.x86_64.rpm: Header V4 DSA/SHA1 
Signature, key ID 98ab5139: NOKEY
Preparing...                ### [100%]
   1:VirtualBox-4.3         ### [100%]

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules [  OK  ]
Recompiling VirtualBox kernel modules [  OK  ]
Starting VirtualBox kernel modules [  OK  ]

However the log file at /var/log contains multiple messages like this


ld -r -m elf_x86_64 -T 
/usr/src/kernels/2.6.32-279.5.1.el6.x86_64/scripts/module-common.lds 
--build-id -o /tmp/vbox.0/vboxnetadp.ko /tmp/vbox.0/vboxnetadp.o 
/tmp/vbox.0/vboxnetadp.mod.o
make KBUILD_VERBOSE=1 
SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C 
/lib/modules/2.6.32-279.5.1.el6.x86_64/build modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (      \
   echo;                        \
   echo   ERROR: Kernel configuration is invalid.;      \
   echo          include/linux/autoconf.h or include/config/auto.conf are 
missing.;   \
   echo          Run 'make oldconfig  make prepare' on kernel src to fix 
it.;   \
   echo;                        \
   /bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*

Actually the autoconf.h file exists in the source path

# find /usr/ -name autoconf.h
/usr/src/kernels/2.6.32-279.5.1.el6.x86_64/include/linux/autoconf.h

So why should I receive such messages



Regards,
Mahmood

Re: Installing Virtualbox 4.3.8 on SL 6.3

2014-02-27 Thread Mahmood Naderan
So is this a good solution

ln -s /usr/src/kernels/2.6.32-279.5.1.el6.x86_64/include/linux/autoconf.h 
/usr/include/linux/autoconf.h


?

 
Regards,
Mahmood



On Friday, February 28, 2014 10:09 AM, jdow j...@earthlink.net wrote:
 
Because it's not in /usr/include/linux/autoconf.h. Somehow you and I need
to learn how to convince the compiler that it should look in the /usr/src
hierarchy to find the includes rather than the standard /usr/include
hierarchy. Frustrating, isn't it?

{^_^}   Joanne


On 2014/02/27 21:13, Mahmood Naderan wrote:
 Hi
 I am trying to install Virtualbox 4.3.8 on my SL6.3. The installation seems 
 to be OK

 |# rpm -ivh VirtualBox-4.3-4.3.8_92456_el6-1.x86_64.rpm
 warning: VirtualBox-4.3-4.3.8_92456_el6-1.x86_64.rpm: Header V4 DSA/SHA1
 Signature, key ID 98ab5139: NOKEY
 Preparing...                ### [100%]
     1:VirtualBox-4.3         ### 
[100%]

 Creating group 'vboxusers'. VM users must be member of that group!

 No precompiled module for this kernel found -- trying to build one. Messages
 emitted during module compilation will be logged to /var/log/vbox-install.log.

 Stopping VirtualBox kernel modules [ OK  ]
 Recompiling VirtualBox kernel modules [  OK  ]
 Starting VirtualBox kernel modules [  OK  ]|

 However the log file at /var/log contains multiple messages like this

     |ld -r -m elf_x86_64 -T
     /usr/src/kernels/2.6.32-279.5.1.el6.x86_64/scripts/module-common.lds
     --build-id -o /tmp/vbox.0/vboxnetadp.ko /tmp/vbox.0/vboxnetadp.o
     /tmp/vbox.0/vboxnetadp.mod.o
     make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0
     CONFIG_MODULE_SIG= -C /lib/modules/2.6.32-279.5.1.el6.x86_64/build modules
     test -e include/linux/autoconf.h -a -e include/config/auto.conf || (      
\
         echo;                        \
         echo   ERROR: Kernel configuration is invalid.;      \
         echo          include/linux/autoconf.h or include/config/auto.conf 
are
     missing.;   \
         echo          Run 'make oldconfig  make prepare' on kernel src to 
fix
     it.;   \
         echo;                        \
         /bin/false)
     mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*|



 Actually the autoconf.h file exists in the source path

 |# find /usr/ -name autoconf.h
 /usr/src/kernels/2.6.32-279.5.1.el6.x86_64/include/linux/autoconf.h

 |So why should I receive such messages


 Regards,
 Mahmood

Re: Still having problem with epel

2014-01-02 Thread Mahmood Naderan
As stated by Zvika, it seems that I have problem with https connections. So 
replacing https with http in epel.repo temporarily fixed the issue.


 
Regards,
Mahmood

Still having problem with epel

2014-01-01 Thread Mahmood Naderan
Hi,
Recently I have faced a problem with epel repository ad asked a question about 
that. That thread was messy so I decided to create a simpler scenario.

I have followed the instructions from 
http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x
 and downloaded the rpm file. However the epel repository doesn't work for me. 
If I remove it, then everything is normal. Please see the commands

# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
--2014-01-02 11:07:27--  
http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Resolving dl.fedoraproject.org... 209.132.181.23, 209.132.181.24, 
209.132.181.25, ...
Connecting to dl.fedoraproject.org|209.132.181.23|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14540 (14K) [application/x-rpm]
Saving to: epel-release-6-8.noarch.rpm

100%[]
 14,540  59.5K/s   in 0.2s

2014-01-02 11:07:33 (59.5 KB/s) - epel-release-6-8.noarch.rpm




# rpm -Uvh epel-release-6-8.noarch.rpm
Preparing...    ### [100%]
   1:epel-release   ### [100%]


# ls -1 /etc/yum.repos.d/epel*
/etc/yum.repos.d/epel.repo
/etc/yum.repos.d/epel-testing.repo


# cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1



# yum makecache
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path 
and try again


# rpm -qa | grep epel
rpm epel-release-6-8.noarch


# rpm -e epel-release-6-8.noarch

# yum makecache
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * sl: ftp2.scientificlinux.org
 * sl-security: ftp2.scientificlinux.org
sl  
   | 3.5 kB 00:00
sl-livecd-extra 
   | 1.4 kB 00:00
sl-security 
   | 3.0 kB 00:00
Metadata Cache Created

 


So, how can I resolve the issue?

Regards,
Mahmood

Cannot retrieve metalink for repository

2013-12-31 Thread Mahmood Naderan
Hi,
Why should I get this error and how can I fix that?


$ yum list python
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path 
and try again



More info:
$ ls -l /etc/yum.repos.d/
total 40
-rw-r--r--. 1 root root  143 Aug  6 14:29 dag
-rw-r--r--. 1 root root  957 Nov  5  2012 epel.repo
-rw-r--r--. 1 root root 1056 Nov  5  2012 epel-testing.repo
-rw-r--r--. 1 root root 1325 Feb 28  2012 rpmfusion-free-rawhide.repo
-rw-r--r--. 1 root root 1202 May 27  2012 rpmfusion-free.repo
-rw-r--r--. 1 root root 1200 Feb 28  2012 rpmfusion-free-updates.repo
-rw-r--r--. 1 root root 1260 May 18  2012 rpmfusion-free-updates-testing.repo
-rw-r--r--. 1 root root  263 Oct  6  2011 sl-livecd-extra.repo
-rw-r--r--. 1 root root 2093 Jul 27  2011 sl-other.repo
-rw-r--r--. 1 root root 1767 Jul 27  2012 sl.repo



$ cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3




 
Regards,
Mahmood

Re: Cannot retrieve metalink for repository

2013-12-31 Thread Mahmood Naderan
Check the information in the epel.repo file.  It's not happy with something in 
there.  


$ cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1



 
Do you see any wrong information there?


Regards,
Mahmood

Re: Cannot retrieve metalink for repository

2013-12-31 Thread Mahmood Naderan
Excuse me I forgot to add another test.

# rpm -e epel-release-6-8.noarch


# yum clean all
Loaded plugins: fastestmirror, refresh-packagekit, security
Cleaning repos: rpmfusion-free rpmfusion-free-updates sl sl-livecd-extra 
sl-security
Cleaning up Everything
Cleaning up list of fastest mirrors


# yum makecache
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
Error: Cannot find a valid baseurl for repo: rpmfusion-free



It seems that something is broken regardless of the repo name.

 
Regards,
Mahmood



On Tuesday, December 31, 2013 10:50 PM, Mahmood Naderan nt_mahm...@yahoo.com 
wrote:
 

Nothing looks wrong to me.  Verify that you can get to the URLs.
It sounds like you have a connectivity issue.
But I am sshing to the node. Here are some other tests

# yum clean all
Loaded plugins: fastestmirror, refresh-packagekit, security
Cleaning repos: epel rpmfusion-free rpmfusion-free-updates sl sl-livecd-extra 
sl-security
Cleaning up Everything
Cleaning up list of fastest mirrors


# ping google.com
PING google.com (173.194.112.104) 56(84) bytes of data.
64 bytes from fra07s30-in-f8.1e100.net (173.194.112.104): icmp_seq=1 ttl=54 
time=91.0 ms
64 bytes from fra07s30-in-f8.1e100.net (173.194.112.104): icmp_seq=2 ttl=54 
time=91.0 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1256ms
rtt min/avg/max/mdev = 91.004/91.034/91.064/0.030 ms



# ping mirrors.fedoraproject.org
PING wildcard.fedoraproject.org (209.132.181.16) 56(84) bytes of data.
64 bytes from wildcard.fedoraproject.org (209.132.181.16): icmp_seq=1 ttl=44 
time=239 ms
^C
--- wildcard.fedoraproject.org ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 956ms
rtt min/avg/max/mdev = 239.455/239.455/239.455/0.000 ms


# yum makecache
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path 
and try again


# yum list installed
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from
 cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path 
and try again


# rpm -qa | grep epel
epel-release-6-8.noarch

# rpm -e epel-release-6-8.noarch

# rpm -ivh epel-release-6-8.noarch.rpm
Preparing...    ### [100%]
   1:epel-release   ### [100%]

# yum makecache
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path 
and try again



Still have problem Any idea?



Regards,
Mahmood

Re: dead link in yum repositories

2013-11-23 Thread Mahmood Naderan
ok thanks.


 
Regards,
Mahmood



On Saturday, November 23, 2013 8:14 PM, Nico Kadel-Garcia nka...@gmail.com 
wrote:
 
Look in the EPEL configuration file for yum, at
/etc/yum.repos.d/epel.repo. This is typically set to use a
mirrorlist, a web link that reports the mirror sites nearest to you.
That upstream link has the broken listing: I'd reach out to the
maintainers of EPEL about the dead mirror site.


On Sat, Nov 23, 2013 at 11:10 AM, Mahmood Naderan nt_mahm...@yahoo.com wrote:
 Hi,
 For many days (I think more than a month), when I run yum search command, I
 get this error

 Loading mirror speeds from cached hostfile
 epel/metalink
 | 5.5 kB     00:00
  * epel: ftp.cuhk.edu.hk
  * sl: ftp.scientificlinux.org
  * sl-security: ftp.scientificlinux.org
 epel
 | 4.2 kB     00:00
 http://ftp.cuhk.edu.hk/pub/linux/fedora-epel/6/x86_64/repodata/repomd.xml:
 [Errno -1] repomd.xml does not match metalink for epel
 Trying other mirror.
 epel
 | 3.9 kB     00:00
 epel/primary_db
 | 5.7 MB     01:35
 sl
 | 3.5 kB     00:00
 sl-livecd-extra
 | 1.4 kB     00:00
 sl-livecd-extra/primary
 |  29 kB     00:00
 sl-livecd-extra
 100/100
 sl-security
 | 3.0 kB     00:00

 If that link is dead, How can i remove that?

 Regards,
 Mahmood

sharing folder with Qemu-KVM

2013-11-14 Thread Mahmood Naderan
Hi,
I have installed Qemu-KVM and libvert from repository on my SL6.3. Then I 
installed a windows xp guest. When I want to add a file system hardware (to 
share a folder between guest and host), I get this error

Not supported for this hypervisor/libvert combination.

 

More info:

$libvirtd --version
libvirtd (libvirt) 0.10.2

Also the virtual machine manger is 0.9.0

Searching the web, I didn't find a clear answer for that. How can I fix that?


Regards,
Mahmood

Re: unable to ssh and resource temporarily unavailable

2013-10-24 Thread Mahmood Naderan
Excuse me, when I change the ulimit, should I restart anything? Or changes are 
applied on the fly?

 
Regards,
Mahmood



On Thursday, October 24, 2013 2:30 AM, Mahmood Naderan nt_mahm...@yahoo.com 
wrote:
 
Check pgrep -u mahmood | wc -l - if it reports number close to or above
1000 (default limit 1024), then it's that.

# pgrep -u mahmood | wc -l
2118


!! That's it


I will change that. Meanwhile, what will happen to the those which are beyond 
the limit? Are they running?

 
Regards,
Mahmood



On Thursday, October 24, 2013 2:26 AM, Vladimir Mosgalin 
mosga...@vm10124.spb.edu wrote:
 
Hi Mahmood Naderan!


On 2013.10.23 at 15:15:16 -0700, Mahmood Naderan wrote next:

 As root, I can not su to my user
 
 [root@tiger ~]# su - mahmood
 su: cannot set user id: Resource temporarily unavailable
 
 
 Which resource is unavailable right now? how can I find that?

Maybe too many processes for that user?
Check
 pgrep -u mahmood | wc -l - if it reports number close to or above
1000 (default limit 1024), then it's that.

You can check limits for current user with ulimit -a and tweak them in
/etc/security/limits.conf and /etc/security/limits.d/* (1024 processes
per user is set in /etc/security/limits.d/90-nproc.conf)

There are also other limits you can exceed, like limits on open files,
or it can be limitation of selinux policies and few other causes -
but error in setuid() is likely process limit.

If it's something else, you should run su under strace (strace -f
would be useful) and examine its output. You can solve (nearly) all
mysteries like this with strace.

-- 

Vladimir

disk usage limit in SL6.3

2013-10-23 Thread Mahmood Naderan
Hi,
How can I set a global disk usage limit on root folder '/'? All I see in the 
manuals is user and group quotas. I just want to set an upper limit that 5% of 
'/' must be empty.


 
Regards,
Mahmood

Re: disk usage limit in SL6.3

2013-10-23 Thread Mahmood Naderan

The filesystem will look like it is 100% full, and report that way to 
the operationg system with df commands, but root will be able to use 
the remaining percentage to keep the system alive until you throw some 
stuff away
 
Exactly.

At starting point with tune2fs, things aren't good!

$ tune2fs -l /dev/sda1 | grep Reserved
tune2fs: Bad magic number in super-block while trying to open /dev/sda1
Couldn't find valid filesystem superblock.

Is that OK? I mean does that mean you have not defined reserve space yet? 



Regards,
Mahmood



On Wednesday, October 23, 2013 2:15 PM, Nico Kadel-Garcia nka...@gmail.com 
wrote:
 
What happens when a process tries to write in that last 5%? do you deny access, 
or only allow root to write there?

If so, I suggest you look into the tune2fs comand. What you seek is basically 
a filesystem limitation, and the -m or --reserved-blocks-percentage. The 
filesystem will look like it is 100% full, and report that way to the 
operationg system with df commands, but root will be able to use the 
remaining percentage to keep the system alive until you throw some stuff away. 
That's what that option is *for*.





On Wed, Oct 23, 2013 at 6:35 AM, Mahmood Naderan nt_mahm...@yahoo.com wrote:

Hi,
How can I set a global disk usage limit on root folder '/'? All I see in the 
manuals is user and group quotas. I just want to set an upper limit that 5% of 
'/' must be empty.



 
Regards,
Mahmood

Re: disk usage limit in SL6.3

2013-10-23 Thread Mahmood Naderan
You are right. At the moment, our debian partition layout was in my mind.
In SL, sda1 is for /boot and sda2 is for '/'. 


It is now ok

# tune2fs -m 5 /dev/sda2
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks percentage to 5% (10929510 blocks)

#  tune2fs -l /dev/sda2 | grep Reserved
Reserved block count: 10929510
Reserved GDT blocks:  203
Reserved blocks uid:  0 (user root)
Reserved blocks gid:  0 (group root)

# df
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/sda2    860641152 378783432 438139680  47% /
tmpfs 32942120   188  32941932   1% /dev/shm
/dev/mapper/tigerfiler1-tigervolume
 2884301016 1177166848 1560620044  43% /data


Thanks.


Regards,
Mahmood



On Wednesday, October 23, 2013 2:45 PM, Nico Kadel-Garcia nka...@gmail.com 
wrote:
 
Is your root tifle system ext2, ext3, or ext4? The tune2fs only works with 
those. And I'm going to be surprised if you have your / filesystem on the 
/dev/sda1 partition, most default setups of Scientific Linux have / on an 
LVM based partition, and /dev/sda1 is set aside for /boot.




On Wed, Oct 23, 2013 at 6:53 AM, Mahmood Naderan nt_mahm...@yahoo.com wrote:


The filesystem will look like it is 100% full, and report that way to 
the operationg system with df commands, but root will be able to use 
the remaining percentage to keep the system alive until you throw some 
stuff away
 
Exactly.

At starting point with tune2fs, things aren't good!

$ tune2fs -l /dev/sda1 | grep Reserved
tune2fs: Bad magic number in super-block while trying to open /dev/sda1
Couldn't find valid filesystem superblock.

Is that OK? I mean does that mean you have not defined reserve space yet? 



Regards,
Mahmood



On Wednesday, October 23, 2013 2:15 PM, Nico Kadel-Garcia nka...@gmail.com 
wrote:
 
What happens when a process tries to write in that last 5%? do you deny 
access, or only allow root to write there?

If so, I suggest you look into the tune2fs comand. What you seek is 
basically a filesystem limitation, and the -m or 
--reserved-blocks-percentage. The filesystem will look like it is 100% full, 
and report that way to the operationg system with df commands, but root will 
be able to use the remaining percentage to keep the system alive until you 
throw some stuff away. That's what that option is *for*.





On Wed, Oct 23, 2013 at 6:35 AM, Mahmood Naderan nt_mahm...@yahoo.com wrote:

Hi,
How can I set a global disk usage limit on root folder '/'? All I see in the 
manuals is user and group quotas. I just want to set an upper limit that 5% 
of '/' must be empty.



 
Regards,
Mahmood




Re: unable to ssh and resource temporarily unavailable

2013-10-23 Thread Mahmood Naderan
Check pgrep -u mahmood | wc -l - if it reports number close to or above
1000 (default limit 1024), then it's that.

# pgrep -u mahmood | wc -l
2118


!! That's it


I will change that. Meanwhile, what will happen to the those which are beyond 
the limit? Are they running?

 
Regards,
Mahmood



On Thursday, October 24, 2013 2:26 AM, Vladimir Mosgalin 
mosga...@vm10124.spb.edu wrote:
 
Hi Mahmood Naderan!


On 2013.10.23 at 15:15:16 -0700, Mahmood Naderan wrote next:

 As root, I can not su to my user
 
 [root@tiger ~]# su - mahmood
 su: cannot set user id: Resource temporarily unavailable
 
 
 Which resource is unavailable right now? how can I find that?

Maybe too many processes for that user?
Check pgrep -u mahmood | wc -l - if it reports number close to or above
1000 (default limit 1024), then it's that.

You can check limits for current user with ulimit -a and tweak them in
/etc/security/limits.conf and /etc/security/limits.d/* (1024 processes
per user is set in /etc/security/limits.d/90-nproc.conf)

There are also other limits you can exceed, like limits on open files,
or it can be limitation of selinux policies and few other causes -
but error in setuid() is likely process limit.

If it's something else, you should run su under strace (strace -f
would be useful) and examine its output. You can solve (nearly) all
mysteries like this with strace.

-- 

Vladimir

Re: unable to ssh and resource temporarily unavailable

2013-10-23 Thread Mahmood Naderan
I set 
fs.file-max = 4096

in sysctl.conf and then ran sysctl -p

Then I ran ulimit -n 4096

At this point I can not login any more and the only thing I have is the current 
root terminal.

$ ssh tiger
mahmood@tiger's password:
Permission denied, please try again.


$ ssh root@tiger
root@tiger's password:
Permission denied, please try again.


In my current root terminal, I can not run some commands

[root@tiger ~]# reboot
/sbin/shutdown: error while loading shared libraries: libnih.so.1: cannot open 
shared object file: Error 23


What happened in the system??

Need help please.

 
Regards,
Mahmood



On Thursday, October 24, 2013 2:33 AM, Mahmood Naderan nt_mahm...@yahoo.com 
wrote:
 
Excuse me, when I change the ulimit, should I restart anything? Or changes are 
applied on the fly?

 
Regards,
Mahmood



On Thursday, October 24, 2013 2:30 AM, Mahmood Naderan nt_mahm...@yahoo.com 
wrote:
 
Check pgrep -u mahmood | wc -l - if it reports number close to or above
1000 (default limit 1024), then it's that.

# pgrep -u mahmood | wc -l
2118


!! That's it


I will change that. Meanwhile, what will happen to the those which are beyond 
the limit? Are they running?

 
Regards,
Mahmood



On Thursday, October 24, 2013 2:26 AM, Vladimir Mosgalin 
mosga...@vm10124.spb.edu wrote:
 
Hi Mahmood Naderan!


On 2013.10.23 at 15:15:16 -0700, Mahmood Naderan wrote next:

 As root, I can not su to my user
 
 [root@tiger ~]# su - mahmood
 su: cannot set user id: Resource temporarily unavailable
 
 
 Which resource is unavailable right now? how can I find that?

Maybe too many processes for that user?
Check
 pgrep -u mahmood | wc -l - if it reports number close to or above
1000 (default limit 1024), then it's that.

You can check limits for current user with ulimit -a and tweak them in
/etc/security/limits.conf and /etc/security/limits.d/* (1024 processes
per user is set in /etc/security/limits.d/90-nproc.conf)

There are also other limits you can exceed, like limits on open files,
or it can be limitation of selinux policies and few other causes -
but error in setuid() is likely process limit.

If it's something else, you should run su under strace (strace -f
would be useful) and examine its output. You can solve (nearly) all
mysteries like this with strace.

-- 

Vladimir

Re: unable to ssh and resource temporarily unavailable

2013-10-23 Thread Mahmood Naderan
OK It turns out that after modifying 


sysctl.conf

There is no need to run ulimit -n 4096

Anyway!

 
Regards,
Mahmood



On Thursday, October 24, 2013 2:50 AM, Mahmood Naderan nt_mahm...@yahoo.com 
wrote:
 
I set 
fs.file-max = 4096

in sysctl.conf and then ran sysctl -p

Then I ran ulimit -n 4096

At this point I can not login any more and the only thing I have is the current 
root terminal.

$ ssh tiger
mahmood@tiger's password:
Permission denied, please try again.


$ ssh root@tiger
root@tiger's password:
Permission denied, please try again.


In my current root terminal, I can not run some commands

[root@tiger ~]# reboot
/sbin/shutdown: error while loading shared libraries: libnih.so.1: cannot open 
shared object file: Error 23


What happened in the system??

Need help please.

 
Regards,
Mahmood



On Thursday, October 24, 2013 2:33 AM, Mahmood Naderan nt_mahm...@yahoo.com 
wrote:
 
Excuse me, when I change the ulimit, should I restart anything? Or changes are 
applied on the fly?

 
Regards,
Mahmood



On Thursday, October 24, 2013 2:30 AM, Mahmood Naderan nt_mahm...@yahoo.com 
wrote:
 
Check pgrep -u mahmood | wc -l - if it reports number close to or above
1000 (default limit 1024), then it's that.

# pgrep -u mahmood | wc -l
2118


!! That's it


I will change that. Meanwhile, what will happen to the those which are beyond 
the limit? Are they running?

 
Regards,
Mahmood



On Thursday, October 24, 2013 2:26 AM, Vladimir Mosgalin 
mosga...@vm10124.spb.edu wrote:
 
Hi Mahmood Naderan!


On 2013.10.23 at 15:15:16 -0700, Mahmood Naderan wrote next:

 As root, I can not su to my user
 
 [root@tiger ~]# su - mahmood
 su: cannot set user id: Resource temporarily unavailable
 
 
 Which resource is unavailable right now? how can I find that?

Maybe too many processes for that user?
Check
 pgrep -u mahmood | wc -l - if it reports number close to or above
1000 (default limit 1024), then it's that.

You can check limits for current user with ulimit -a and tweak them in
/etc/security/limits.conf and /etc/security/limits.d/* (1024 processes
per user is set in /etc/security/limits.d/90-nproc.conf)

There are also other limits you can exceed, like limits on open files,
or it can be limitation of selinux policies and few other causes -
but error in setuid() is likely process limit.

If it's something else, you should run su under strace (strace -f
would be useful) and examine its output. You can solve (nearly) all
mysteries like this with strace.

-- 

Vladimir

How a user can execute a file from anothe user

2013-09-26 Thread Mahmood Naderan
Hi
I want to grant users to access (read/execute) some files and folders inside my 
home directory. Using chmod seems to be insufficient. For example I have made 
an executable file public for all

[mahmood@tiger ~]$ chmod 777 test
[mahmood@tiger ~]$ ls -l test
-rwxrwxrwx. 1 mahmood mahmood 8026 Sep  2 12:18 test



However when another user tries to run, it receives permission error

[anotherone@tiger ~]$ /home/mahmood/test
-bash: /home/mahmood/test: Permission denied


What is the solution.

 
Regards,
Mahmood


Re: How a user can execute a file from anothe user

2013-09-26 Thread Mahmood Naderan
chmod o+x /home/mahmood

Does that imply they can see all my folders?


 And don't call a script test! It could lead to confusion with the
 system command test.
Thanks


Regards,
Mahmood




 From: Mark Whidby mark.whi...@manchester.ac.uk
To: Mahmood Naderan nt_mahm...@yahoo.com 
Cc: scientific-linux-users@fnal.gov scientific-linux-users@fnal.gov 
Sent: Thursday, September 26, 2013 9:48 PM
Subject: Re: How a user can execute a file from anothe user
 

On Thu, 2013-09-26 at 11:06 -0700, Mahmood Naderan wrote:
 Hi
 I want to grant users to access (read/execute) some files and folders
 inside my home directory. Using chmod seems to be insufficient. For
 example I have made an executable file public for all
 
 
 [mahmood@tiger ~]$ chmod 777 test
 [mahmood@tiger ~]$ ls -l test
 -rwxrwxrwx. 1 mahmood mahmood 8026 Sep  2 12:18 test
 
 
 
 
 
 However when another user tries to run, it receives permission error
 
 
 [anotherone@tiger ~]$ /home/mahmood/test
 -bash: /home/mahmood/test: Permission denied

You also need to give them permission to access/use your
home directory:

chmod o+x /home/mahmood

And you have given everybody write access to the script.
You only need to give read and execute permission:

chmod 755 test

And don't call a script test! It could lead to confusion with the
system command test.

Re: How a user can execute a file from anothe user

2013-09-26 Thread Mahmood Naderan
So I have created a groups and add myself and another user to this group

[mahmood@tiger ~]$ groups
mahmood sim

[anotherone@tiger ~]$ groups
anotherone sim


[mahmood@tiger ~]$ ls -l
drwxrws---. 14 mahmood sim   4096 May 17 14:10 sim-3.0.31



I didn't use

     chmod -R 2770 /home/mahmood/test
Because after running that command, I myself was not able to run the program in 
my home directory!

Still when the user want to run the program inside my home he get permission 
error

[mehdi@tiger ~]$ /home/mahmood/sim-3.0.31/scripts/start-sim
-bash: /home/mahmood/sim-3.0.31/scripts/start-sim: Permission denied



Regards,
Mahmood




 From: Earl Ramirez earlarami...@gmail.com
To: Mahmood Naderan nt_mahm...@yahoo.com 
Cc: scientific-linux-users@fnal.gov scientific-linux-users@fnal.gov 
Sent: Thursday, September 26, 2013 10:54 PM
Subject: Re: How a user can execute a file from anothe user
 

On Thu, 2013-09-26 at 12:15 -0700, Mahmood Naderan wrote:
 $ chmod -R 2770 /home/mahmood/test
 
 Excuse me how can I revert back this command?

$ chmod -R 0770

Or depending on what permission you had prior to the change.
 
  
 Regards,
 Mahmood
 
 
 
 
 __
 From: Earl Ramirez earlarami...@gmail.com
 To: Mahmood Naderan nt_mahm...@yahoo.com 
 Cc: scientific-linux-users@fnal.gov
 scientific-linux-users@fnal.gov 
 Sent: Thursday, September 26, 2013 10:24 PM
 Subject: Re: How a user can execute a file from anothe user
 
 
 On Thu, 2013-09-26 at 11:06 -0700, Mahmood Naderan wrote:
  Hi
  I want to grant users to access (read/execute) some files and
 folders
  inside my home directory. Using chmod seems to be insufficient. For
  example I have made an executable file public for all
  
  
  [mahmood@tiger ~]$ chmod 777 test
  [mahmood@tiger ~]$ ls -l test
  -rwxrwxrwx. 1 mahmood mahmood 8026 Sep  2 12:18 test
  
 Are all this taking place on the same system?
 
 You can create a group and put all the users in that group, this way
 they will only have access to that particular directory. Then do the
 following:
 
 $ groupadd pubgrp
 $ chown -R mahmood.pubgrp /home/mahmood/test
 $ chmod -R 2770 /home/mahmood/test
 
  
  
  
  
  However when another user tries to run, it receives permission error
  
  
  [anotherone@tiger ~]$ /home/mahmood/test
  -bash: /home/mahmood/test: Permission denied
  
  
  
  What is the solution.
  
   
  Regards,
  Mahmood
  
 
 -- 
 
 
 Kind Regards
 Earl Ramirez
 GPG Key: http://trinipino.com/PublicKey.asc
 
 

-- 


Kind Regards
Earl Ramirez
GPG Key: http://trinipino.com/PublicKey.asc

work around with gnome system monitor applet

2013-09-05 Thread Mahmood Naderan
Dear all,
Is there anyway to change the network interface in the gnome system monitor 
panel? Currently I have three network interface and I have configured the 
system monitor to show cpu, memory, network and hard disk. But how can I choose 
and change the network interface?

I am referring to the black box in this figure 
(http://images.derstandard.at/2012/01/13/1326258794946.png).

 
Regards,
Mahmood


Problem installing Octave

2013-07-02 Thread Mahmood Naderan
Dear all
I want to install GNU Octave from repository on a SL6.3 machine. However, there 
is a dependency problem and I couldn't figure out the problem.



-- Finished Dependency Resolution
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libumfpack.so.5()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libcxsparse.so.2()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libcamd.so.2()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libamd.so.2()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libcholmod.so.1()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libccolamd.so.2()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libcolamd.so.2()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


I don't want to use the '--skip-broken' since there was a similar option with 
apt (Ubuntu) and I found that this option will make future problems with 
packages.

 
Regards,
Mahmood


Re: Problem installing Octave

2013-07-02 Thread Mahmood Naderan
.el6.x86_64 (epel)
   Requires: libcxsparse.so.2()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libcamd.so.2()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libamd.so.2()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libcholmod.so.1()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libccolamd.so.2()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libcolamd.so.2()(64bit)
 You could try using --skip-broken to work around the problem





 
Regards,
Mahmood




 From: Jeffrey Anderson jdander...@lbl.gov
To: owner-scientific-linux-us...@listserv.fnal.gov 
Cc: scientific-linux-users@fnal.gov scientific-linux-users@fnal.gov 
Sent: Tuesday, July 2, 2013 10:43 PM
Subject: Re: Problem installing Octave
 


Where did you get the octave rpm?

If you install the version from epel, yum should satisfy the dependencies.

Jeff




On Tue, Jul 2, 2013 at 10:59 AM, Andrew Z form...@gmail.com wrote:

Mahmood,
 this is odd, cause i got it installed w/o issues. 
Check those libs's repos. Maybe there is a conflict there?




On Tue, Jul 2, 2013 at 1:30 PM, Mahmood Naderan nt_mahm...@yahoo.com wrote:

Dear all
I want to install GNU Octave from repository on a SL6.3 machine. However, 
there is a dependency problem and I couldn't figure out the problem.




-- Finished Dependency Resolution
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libumfpack.so.5()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libcxsparse.so.2()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libcamd.so.2()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libamd.so.2()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libcholmod.so.1()(64bit)
Error: Package: 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libccolamd.so.2()(64bit)
Error: Package:
 6:octave-3.4.3-1.el6.x86_64 (epel)
   Requires: libcolamd.so.2()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest



I don't want to use the '--skip-broken' since there was a similar option with 
apt (Ubuntu) and I found that this option will make future problems with 
packages.

 
Regards,
Mahmood




-- 
--
Jeffrey Anderson                        | jdander...@lbl.gov
Lawrence Berkeley National Laboratory   |
Office: 50A-5104E                       | Mailstop 50A-5101
Phone: 510 486-4208                     | Fax: 510 486-4204

Re: long time to login as root

2013-06-02 Thread Mahmood Naderan
Do you have any alternate authentication methods defined in /etc/nsswitch.conf

The file loos like:

passwd: files
shadow: files
group:  files

#hosts: db files nisplus nis dns
hosts:  files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:    nisplus [NOTFOUND=return] files
#ethers: nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files

bootparams: nisplus [NOTFOUND=return] files

ethers: files
netmasks:   files
networks:   files
protocols:  files
rpc:    files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus


No it usually means you have a high IO wait or your CPU cores are nearly maxed 
 out.
No there is no io wait at that time. I test it.


 
Regards,
Mahmood




 From: Steven C Timm t...@fnal.gov
To: Paul Robert Marino prmari...@gmail.com; Mahmood Naderan 
nt_mahm...@yahoo.com; scientific-linux-users 
scientific-linux-users@fnal.gov 
Sent: Sunday, June 2, 2013 9:10 PM
Subject: RE: long time to login as root
 


 
Do you have any alternate authentication methods defined in /etc/nsswitch.conf
Such as NIS? That can make things take a while.  It will look at NIS even for 
the root account.
 
Steve
 
From:owner-scientific-linux-us...@listserv.fnal.gov 
[mailto:owner-scientific-linux-us...@listserv.fnal.gov] On Behalf Of Paul 
Robert Marino
Sent: Sunday, June 02, 2013 7:45 AM
To: Mahmood Naderan; scientific-linux-users
Subject: Re: long time to login as root
 
No it usually means you have a high IO wait or your CPU cores are nearly maxed  
out. Note heavy reliance on swap space due to insufficient ram can cause high 
IO wait too.



-- Sent from my HP Pre3
 


 
On Jun 2, 2013 5:26 AM, Mahmood Naderan nt_mahm...@yahoo.com wrote: 
Hi
Whenever I enter the root password after su command, it takes about 13 
seconds!! to see the root prompt.
Is that normal?
 
Regards,
Mahmood

Re: how to enable atrpms

2013-05-07 Thread Mahmood Naderan
Thanks.

 
Regards,
Mahmood




 From: Martin Flemming martin.flemm...@desy.de
To: scientific-linux-users@fnal.gov scientific-linux-users@fnal.gov 
Sent: Tuesday, May 7, 2013 10:19 PM
Subject: Re: how to enable atrpms
 

On Tue, 7 May 2013, Mahmood Naderan wrote:

 Hi
 I want to install a package named chkfontpath and this is available in atrpms 
 repo. I searched a lot to find a way to enable this repository in SL6.3 but 
 still ave not found a
 clear answer.
 
 I will be very thankful if someone help...
  
 Regards,
 Mahmood



yum install atrpms-repo
yum  install chkfontpath --enablerepo=atrpms


cheers,


        Martin

kdevelop on sl6.3

2013-03-18 Thread Mahmood Naderan
Hi
I want to install kdevelop on SL6.3. However it is not available in the default 
repositories plus epel.
What is the correct repository then?

 
Regards,
Mahmood


troubleshooting vnc

2013-03-05 Thread Mahmood Naderan
Hi,
I have installed vncserver on SL6.3 and followed this guide 

http://vjetnamnet.com/how-to-setup-vnc-server-on-centos-6-3/


However when I try to connect from windows, I get 

connection timed out message.

I searched a lot to diagnose vnc server. However I didn't
find a step by step guide. What should I check in order to 

be sure that vnc server is working properly.

 
Regards,
Mahmood



Re: troubleshooting vnc

2013-03-05 Thread Mahmood Naderan



check using netstat -tupln
[root@tiger mahmood]# netstat -tupln | grep vnc
tcp    0  0 0.0.0.0:5901    0.0.0.0:*   
LISTEN  12185/Xvnc
tcp    0  0 0.0.0.0:6001    0.0.0.0:*   
LISTEN  12185/Xvnc
tcp    0  0 :::6001 :::*    
LISTEN  12185/Xvnc



The easiest way to check if that is the problem  is by trying to 
telnet to the appropriate port (ie :0 is 5900 :1 is 5901 ...)  If it 
works from localhost but not from a remote it is iptables or another 
firewall.
[mahmood@tiger ~]$ telnet localhost:5900
telnet: localhost:5900: Name or service not known
localhost:5900: Unknown host
[mahmood@tiger ~]$ telnet localhost:5901
telnet: localhost:5901: Name or service not known
localhost:5901: Unknown host
[mahmood@tiger ~]$ telnet 127.0.0.1:5900
telnet: 127.0.0.1:5900: Name or service not known
127.0.0.1:5900: Unknown host
[mahmood@tiger ~]$ telnet 127.0.0.1:5901
telnet: 127.0.0.1:5901: Name or service not known
127.0.0.1:5901: Unknown host
[mahmood@tiger ~]$



if you've cofirmed the service has started on the target box
[mahmood@tiger ~]$ service vncserver status
Xvnc (pid 12185) is running...


the target box also needs an exception in IPTables for those ports. 
From the output of iptables, are they open or close?


 
Regards,
Mahmood




 From: Jason Bronner jason.bron...@gmail.com
To: Mahmood Naderan nt_mahm...@yahoo.com 
Cc: scientific-linux-users@fnal.gov scientific-linux-users@fnal.gov 
Sent: Tuesday, March 5, 2013 6:43 PM
Subject: Re: troubleshooting vnc
 

if you've cofirmed the service has started on the target box start looking at 
things between the boxes which would cause a timeout. i.e. Ports being 
forwarded in the router to the target box. VNC needs a couple of these, should 
be a full listing on portforward.com for what it uses along with a listing of a 
good number of routers by make/model# with screenshots. the target box also 
needs an exception in IPTables for those ports.  

Re: troubleshooting vnc

2013-03-05 Thread Mahmood Naderan
[mahmood@tiger ~]$ telnet localhost 5900
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[mahmood@tiger ~]$ telnet localhost 5901
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
RFB 003.008


And it is waiting for input. What can be understood?


 
Regards,
Mahmood




 From: David Sommerseth sl+us...@lists.topphemmelig.net
To: Mahmood Naderan nt_mahm...@yahoo.com 
Cc: Jason Bronner jason.bron...@gmail.com; scientific-linux-users@fnal.gov 
scientific-linux-users@fnal.gov; Joseph Areeda newsre...@areeda.com; Eero 
Volotinen eero.voloti...@iki.fi 
Sent: Tuesday, March 5, 2013 8:01 PM
Subject: Re: troubleshooting vnc
 
On 05/03/13 17:27, Mahmood Naderan wrote:
 [mahmood@tiger ~]$ telnet localhost:5900
 telnet: localhost:5900: Name or service not known

Try instead:

[mahmood@tiger ~]$ telnet localhost 5900

(without the ':', just a space)


--
kind regards,

David Sommerseth

Re: troubleshooting vnc

2013-03-05 Thread Mahmood Naderan
What is output of iptables -L -v ?

[root@tiger mahmood]# iptables -L -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target prot opt in out source   destination
  401 21336 ACCEPT tcp  --  any    any anywhere anywhere
    state NEW tcp dpt:http
    7   348 ACCEPT tcp  --  any    any anywhere anywhere
    state NEW tcp dpt:https
   28  1608 ACCEPT tcp  --  any    any anywhere anywhere
    state NEW tcp multiport dports 5901:5903,6001:6003
2699K 2060M ACCEPT all  --  any    any anywhere anywhere
    state RELATED,ESTABLISHED
  105  6896 ACCEPT icmp --  any    any anywhere anywhere
 227K   20M ACCEPT all  --  lo any anywhere anywhere
  342 20304 ACCEPT tcp  --  any    any anywhere anywhere
    state NEW tcp dpt:ssh
 134K   33M REJECT all  --  any    any anywhere anywhere
    reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target prot opt in out source   destination
    0 0 REJECT all  --  any    any anywhere anywhere
    reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT 2881K packets, 1956M bytes)
 pkts bytes target prot opt in out source   destination





you can run the same test from a remote computer, to see if you
get through the firewall on your server running Xvnc
 
Using cmd.exe from windows 7, here is the output
C:\Users\mahmoodtelnet IP
Connecting To IP...Could not open connection to the host, on port 23
: Connect failed





Regards,
Mahmood




 From: Eero Volotinen eero.voloti...@iki.fi
To: Mahmood Naderan nt_mahm...@yahoo.com 
Cc: Jason Bronner jason.bron...@gmail.com; scientific-linux-users@fnal.gov 
scientific-linux-users@fnal.gov; Joseph Areeda newsre...@areeda.com; Eero 
Volotinen eero.voloti...@iki.fi 
Sent: Tuesday, March 5, 2013 8:31 PM
Subject: Re: troubleshooting vnc
 

What is output of iptables -L -v ?

Eero

On Tuesday, March 5, 2013, Mahmood Naderan  wrote:


check using netstat -tupln
[root@tiger mahmood]# netstat -tupln | grep vnc
tcp    0  0 0.0.0.0:5901    0.0.0.0:*   
LISTEN  12185/Xvnc
tcp    0  0 0.0.0.0:6001    0.0.0.0:*   
LISTEN  12185/Xvnc
tcp    0  0 :::6001 :::*    
LISTEN  12185/Xvnc





The easiest way to check if that is the problem  is by trying to 
telnet to the appropriate port (ie :0 is 5900 :1 is 5901 ...)  If it 
works from localhost but not from a remote it is iptables or another 
firewall.
[mahmood@tiger ~]$ telnet localhost:5900
telnet: localhost:5900: Name or service not known
localhost:5900: Unknown host
[mahmood@tiger ~]$ telnet localhost:5901
telnet: localhost:5901: Name or service not known
localhost:5901: Unknown host
[mahmood@tiger ~]$ telnet 127.0.0.1:5900
telnet: 127.0.0.1:5900: Name or service not known
127.0.0.1:5900: Unknown host
[mahmood@tiger ~]$ telnet 127.0.0.1:5901
telnet: 127.0.0.1:5901: Name or service not known
127.0.0.1:5901: Unknown host
[mahmood@tiger ~]$




if you've cofirmed the service has started on the target box
[mahmood@tiger ~]$ service vncserver status
Xvnc (pid 12185) is running...


the target box also needs an exception in IPTables for those ports. 
From the output of iptables, are they open or close?



 
Regards,
Mahmood



if you've cofirmed the service has started on the target box start looking at 
things between the boxes which would cause a timeout. i.e. Ports being 
forwarded in the router to the target box. VNC needs a couple of these, should 
be a full listing on portforward.com for what it uses along with a listing of 
a good number of routers by make/model# with screenshots. the target box also 
needs an exception in IPTables for those ports.  



Re: troubleshooting vnc

2013-03-05 Thread Mahmood Naderan
C:\Users\mahmoodtelnet IP 5900
Connecting To IP...Could not open connection to the host, on port 59
00: Connect failed


But 


C:\Users\mahmoodtelnet IP 5901
RFB 003.008
   status
displa

Connection to host lost.

C:\Users\mahmood

 



I tested that from a linux machine
bash-4.1$ telnet IP 5901
Trying IP...
Connected to IP.
Escape character is '^]'.
RFB 003.008
status
display
Connection closed by foreign host.
bash-4.1$




Regards,
Mahmood




 From: Eero Volotinen eero.voloti...@iki.fi
To: Mahmood Naderan nt_mahm...@yahoo.com 
Cc: scientific-linux-users@fnal.gov 
Sent: Tuesday, March 5, 2013 9:06 PM
Subject: Re: troubleshooting vnc
 
 Using cmd.exe from windows 7, here is the output
 C:\Users\mahmoodtelnet IP
 Connecting To IP...Could not open connection to the host, on port 23
 : Connect failed

correct syntax for telnet is :

telnet ip.address port-number (for ex telnet 192.168.0.2 5901)

--
Eero

Re: troubleshooting vnc

2013-03-05 Thread Mahmood Naderan
Thank you very much for the replies.
In my previous try I didn't enter 5901, so I think by default it uses 5900.
As I posted earlier, 5900 doesn't work. Instead 5901 works.

I don't know why but is it OK.
 
Regards,
Mahmood




 From: David Sommerseth sl+us...@lists.topphemmelig.net
To: Mahmood Naderan nt_mahm...@yahoo.com 
Cc: Eero Volotinen eero.voloti...@iki.fi; scientific-linux-users@fnal.gov 
scientific-linux-users@fnal.gov 
Sent: Tuesday, March 5, 2013 9:40 PM
Subject: Re: troubleshooting vnc
 
On 05/03/13 18:59, Mahmood Naderan wrote:
 C:\Users\mahmoodtelnet IP 5900
 Connecting To IP...Could not open connection to the host, on port 59
 00: Connect failed
 
 
 But
 
 C:\Users\mahmoodtelnet IP 5901
 RFB 003.008
            status
 displa
 
 Connection to host lost.
 

You have no problems now ... just run your favourite VNC client on your
box and connect to   IP:1   or   IP:5901

And it should just work.


--
kind regards,

David Sommerseth

 
 *From:* Eero Volotinen eero.voloti...@iki.fi
 *To:* Mahmood Naderan nt_mahm...@yahoo.com
 *Cc:* scientific-linux-users@fnal.gov
 *Sent:* Tuesday, March 5, 2013 9:06 PM
 *Subject:* Re: troubleshooting vnc
 
 Using cmd.exe from windows 7, here is the output
 C:\Users\mahmoodtelnet IP
 Connecting To IP...Could not open connection to the host, on port 23
 : Connect failed
 
 correct syntax for telnet is :
 
 telnet ip.address port-number (for ex telnet 192.168.0.2 5901)
 
 --
 Eero
 
 

epel repository

2013-02-23 Thread Mahmood Naderan
Hi
I have noticed that sometimes when I run yum install or yum list, it wants 
to update the repository 
[root@localhost trunk]# yum install glibc-static.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * epel: ftp.riken.jp
 * sl: ftp.scientificlinux.org
 * sl-security: ftp.scientificlinux.org

epel/primary_db   21% [===- 
  ] 65.0 kB/s | 1.1 MB 00:10 ETA 


However for some other list and install commands, there is no repository 
update.

What is the reason for that? Maybe because it epel and has not been shipped 
with the default SL.


Regards,
Mahmood


searching for libgcc-4.1

2013-02-19 Thread Mahmood Naderan
Hi
I have manually compiled gcc/g++-4.1 on SL6.3 which has gcc/g++-4.4 by default. 
Problem is, when I run a simple c++ code, I get a crash.


#include fstream
using namespace std;
int main()
{
   ofstream fout (test.txt, fstream::out);
   return 0;
}

[mahmood@localhost ~]$ /opt/gcc-4.1.2-built/bin/g++ -g -ggdb -o test test.cpp 
[mahmood@localhost ~]$ gdb test
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-56.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
...
Reading symbols from /home/mahmood/test...done.
(gdb) r
Starting program: /home/mahmood/test 

Program received signal SIGSEGV, Segmentation fault.
0x0037e26f22d0 in ?? () from /usr/lib64/libstdc++.so.6
Missing
separate debuginfos, use: debuginfo-install 
glibc-2.12-1.80.el6_3.5.x86_64 libgcc-4.4.6-4.el6.x86_64 
libstdc++-4.4.6-4.el6.x86_64
(gdb) bt
#0  0x0037e26f22d0 in ?? () from /usr/lib64/libstdc++.so.6
#1  0x in ?? ()
(gdb) 



From the output, I see that although I used g++-4.1, at runtime the program 
uses libgcc-4.4. Now what I want to do is to install a package like 
libgcc.x86_64 which supports g++-4.1.

I couldn't find  compat-libgcc.x86_64.

Is there anyway to install libgcc-4.1?


Regards,
Mahmood



Re: searching for libgcc-4.1

2013-02-19 Thread Mahmood Naderan
 But why, exactly, do you want to do this?
That is my guess. What do you understand from the gdb output? Do you have a 
recommendation?

Why, exactly, do you need gcc-4.1?
We have a simulator which is old. I can fix the compiler errors under gcc 4.4 
for the code *itself*. However the code uses boost 1.33.1 and this version of 
boost won't compile on gcc4.4. 

Since I am not familiar with the complex structure of boost, at this time I 
have to find a way to *just* run the code.

 
Regards,
Mahmood



- Original Message -
From: Nico Kadel-Garcia nka...@gmail.com
To: Mahmood Naderan nt_mahm...@yahoo.com
Cc: scientific-linux-users@fnal.gov scientific-linux-users@fnal.gov
Sent: Tuesday, February 19, 2013 7:50 PM
Subject: Re: searching for libgcc-4.1

On Tue, Feb 19, 2013 at 10:03 AM, Mahmood Naderan nt_mahm...@yahoo.com wrote:
 Hi
 I have manually compiled gcc/g++-4.1 on SL6.3 which has gcc/g++-4.4 by 
 default. Problem is, when I run a simple c++ code, I get a crash.

I see you put it in /opt/. *Good*, keep it out of the dfault /usr/bin
or /usr/local/bin locations.

 #include fstream
 using namespace std;
 int main()
 {
    ofstream fout (test.txt, fstream::out);
    return 0;
 }

 [mahmood@localhost ~]$ /opt/gcc-4.1.2-built/bin/g++ -g -ggdb -o test test.cpp
 [mahmood@localhost ~]$ gdb test
 GNU gdb (GDB) Red Hat Enterprise Linux (7.2-56.el6)
 Copyright (C) 2010 Free Software Foundation, Inc.
 ...
 Reading symbols from /home/mahmood/test...done.
 (gdb) r
 Starting program: /home/mahmood/test

 Program received signal SIGSEGV, Segmentation fault.
 0x0037e26f22d0 in ?? () from /usr/lib64/libstdc++.so.6
 Missing
 separate debuginfos, use: debuginfo-install
 glibc-2.12-1.80.el6_3.5.x86_64 libgcc-4.4.6-4.el6.x86_64
 libstdc++-4.4.6-4.el6.x86_64
 (gdb) bt
 #0  0x0037e26f22d0 in ?? () from /usr/lib64/libstdc++.so.6
 #1  0x in ?? ()
 (gdb)



 From the output, I see that although I used g++-4.1, at runtime the program 
 uses libgcc-4.4. Now what I want to do is to install a package like 
 libgcc.x86_64 which supports g++-4.1.

Good luck with that, it's a *lot* of work and likely to cause
conflicts with tyour gcc-4.4 components. You can put them in /opt if
you like. But why, exactly, do you want to do this?


 I couldn't find  compat-libgcc.x86_64.

 Is there anyway to install libgcc-4.1?

libgcc and compat-gcc-34 are built from gcc source code, as part of
building up all of gcc.

Why, exactly, do you need gcc-4.1?



Re: searching for libgcc-4.1

2013-02-19 Thread Mahmood Naderan
Yes thank you. Indeed I have to run 

export LD_LIBRARY_PATH=/opt/gcc-4.1.2-built/lib64

That will assure that it will use gcc-4.1 library files rather than
default one which is used by gcc-4.4

 
Regards,
Mahmood



- Original Message -
From: Nico Kadel-Garcia nka...@gmail.com
To: Mahmood Naderan nt_mahm...@yahoo.com
Cc: scientific-linux-users@fnal.gov scientific-linux-users@fnal.gov
Sent: Tuesday, February 19, 2013 10:16 PM
Subject: Re: searching for libgcc-4.1

On Tue, Feb 19, 2013 at 11:26 AM, Mahmood Naderan nt_mahm...@yahoo.com wrote:
 But why, exactly, do you want to do this?
 That is my guess. What do you understand from the gdb output? Do you have a 
 recommendation?

Two. Follow Matthias's advice and try this on SL 5.9, rather than SL
6.3, and avoid having to rebuild gcc. Or look at how you're calling
gcc and your settings for LD_LIBRARY_)PATH, to assure that your
particular applications are calling the gcc libraries from
/opt/gcc-*/lib.

Why, exactly, do you need gcc-4.1?
 We have a simulator which is old. I can fix the compiler errors under gcc 4.4 
 for the code *itself*. However the code uses boost 1.33.1 and this version of 
 boost won't compile on gcc4.4.

 Since I am not familiar with the complex structure of boost, at this time I 
 have to find a way to *just* run the code.


 Regards,
 Mahmood



 - Original Message -
 From: Nico Kadel-Garcia nka...@gmail.com
 To: Mahmood Naderan nt_mahm...@yahoo.com
 Cc: scientific-linux-users@fnal.gov scientific-linux-users@fnal.gov
 Sent: Tuesday, February 19, 2013 7:50 PM
 Subject: Re: searching for libgcc-4.1

 On Tue, Feb 19, 2013 at 10:03 AM, Mahmood Naderan nt_mahm...@yahoo.com 
 wrote:
 Hi
 I have manually compiled gcc/g++-4.1 on SL6.3 which has gcc/g++-4.4 by 
 default. Problem is, when I run a simple c++ code, I get a crash.

 I see you put it in /opt/. *Good*, keep it out of the dfault /usr/bin
 or /usr/local/bin locations.

 #include fstream
 using namespace std;
 int main()
 {
    ofstream fout (test.txt, fstream::out);
    return 0;
 }

 [mahmood@localhost ~]$ /opt/gcc-4.1.2-built/bin/g++ -g -ggdb -o test test.cpp
 [mahmood@localhost ~]$ gdb test
 GNU gdb (GDB) Red Hat Enterprise Linux (7.2-56.el6)
 Copyright (C) 2010 Free Software Foundation, Inc.
 ...
 Reading symbols from /home/mahmood/test...done.
 (gdb) r
 Starting program: /home/mahmood/test

 Program received signal SIGSEGV, Segmentation fault.
 0x0037e26f22d0 in ?? () from /usr/lib64/libstdc++.so.6
 Missing
 separate debuginfos, use: debuginfo-install
 glibc-2.12-1.80.el6_3.5.x86_64 libgcc-4.4.6-4.el6.x86_64
 libstdc++-4.4.6-4.el6.x86_64
 (gdb) bt
 #0  0x0037e26f22d0 in ?? () from /usr/lib64/libstdc++.so.6
 #1  0x in ?? ()
 (gdb)



 From the output, I see that although I used g++-4.1, at runtime the program 
 uses libgcc-4.4. Now what I want to do is to install a package like 
 libgcc.x86_64 which supports g++-4.1.

 Good luck with that, it's a *lot* of work and likely to cause
 conflicts with tyour gcc-4.4 components. You can put them in /opt if
 you like. But why, exactly, do you want to do this?


 I couldn't find  compat-libgcc.x86_64.

 Is there anyway to install libgcc-4.1?

 libgcc and compat-gcc-34 are built from gcc source code, as part of
 building up all of gcc.

 Why, exactly, do you need gcc-4.1?