LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-02-2018, 12:53 PM   #16
fatemeh.mohammadi276
LQ Newbie
 
Registered: Mar 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by RandomTroll View Post
You download the kernel package(s) from its host then install it(them). I don't see a forum for Scientific Linux on this site; perhaps its own fora have better support.
I have a file with name linux-4.15.7.tar.xz but i don't know how to install it. Through this installation instruction https://www.tecmint.com/install-upgr...comment-973723 I need network for installing it . but I can not connect to network . So how should i install this package ?
 
Old 03-02-2018, 01:22 PM   #17
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,279

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
In RHEL 6.9 and clones, you are running a version 2.6 kernel, and that lacks the mwifiex driver that you need. RHEL 6 is an 8 year old OS. You can't just drop in a version 4.15 kernel. You need a major upgrade to the whole system.

RHEL 7.3 (kernel version 3.10) does contain the needed driver. (No, I don't like RHEL 7 either -- Gnome 3, systemd, etc., etc.)
 
Old 03-02-2018, 01:26 PM   #18
fatemeh.mohammadi276
LQ Newbie
 
Registered: Mar 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
In RHEL 6.9 and clones, you are running a version 2.6 kernel, and that lacks the mwifiex driver that you need. RHEL 6 is an 8 year old OS. You can't just drop in a version 4.15 kernel. You need a major upgrade to the whole system.

RHEL 7.3 (kernel version 3.10) does contain the needed driver. (No, I don't like RHEL 7 either -- Gnome 3, systemd, etc., etc.)
I installed redhat 7 before and it work correctly with network but for installing my project i need redhat6 so i have to install it .
 
Old 03-02-2018, 01:42 PM   #19
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,273

Rep: Reputation: 216Reputation: 216Reputation: 216
Quote:
Originally Posted by fatemeh.mohammadi276 View Post
for installing my project i need redhat6
I can't make sense of needing RedHat6 for any purpose: are you sure?
 
Old 03-02-2018, 01:49 PM   #20
fatemeh.mohammadi276
LQ Newbie
 
Registered: Mar 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RandomTroll View Post
I can't make sense of needing RedHat6 for any purpose: are you sure?
yes, In fact i should install these packages

Quote:
yum update

-----> http://linux.web.cern.ch/linux/devtoolset/
1- wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devt
2- yum install devtoolset-2

-----> http://ftp.scientificlinux.org/linux...ctions/x86_64/

1- wget -c yum-conf-softwarecollections-2.0-1.el6.noarch.rpm
2- rpm -Uvh yum-conf-softwarecollections-2.0-1.el6.noarch.rpm
3- yum install python27
and i can not find them in SL7 , actually i did not search a lot but i think it is more easier to download these packages from SL6.9

according this site : http://linux.web.cern.ch/linux/devtoolset/ i think it is impossible to install devtoolset in SL7

Last edited by fatemeh.mohammadi276; 03-02-2018 at 01:56 PM.
 
Old 03-02-2018, 02:10 PM   #21
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,828

Rep: Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783
Quote:
Originally Posted by fatemeh.mohammadi276 View Post
yes, In fact i should install these packages
Code:
yum update
-----> http://linux.web.cern.ch/linux/devtoolset/
1- wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devt
2- yum install devtoolset-2
-----> http://ftp.scientificlinux.org/linux...ctions/x86_64/
1- wget -c yum-conf-softwarecollections-2.0-1.el6.noarch.rpm	
2- rpm -Uvh yum-conf-softwarecollections-2.0-1.el6.noarch.rpm
3- yum install python27
and i can not find them in SL7 , actually i did not search a lot but i think it is more easier to download these packages from SL6.9 according this site : http://linux.web.cern.ch/linux/devtoolset/ i think it is impossible to install devtoolset in SL7
There are numerous things wrong here:
  • The link you posted is three years out of date, with a message at the top of the page, saying there is a newer version.
  • Following that link it says CLEARLY "Note: All these versions are only available to license holders at CERN." (bolded for emphasis). ARE you a license holder?? Because if you click the "Red Hat Enterprise Linux versions 5, 6 and 7" link, it takes you to....
  • ....here: http://linux.web.cern.ch/linux/rhel/ Where it clearly states you have to PURCHASE this. Have you??
  • As you were asked...what are you trying to install/do that 'needs' this?
  • CentOS/RHEL/SL are **NOT** good choices for a laptop. They were designed for SERVERS, which don't have things like wifi, bluetooth, sound, etc...the 'consumer' devices. Servers typically don't even have SCREENS these days, so using RHEL/CentOS/SL on a laptop will get you spotty hardware support, with the distinct possibility that the hardware WILL NOT WORK AT ALL with that distro.
 
Old 03-02-2018, 02:22 PM   #22
fatemeh.mohammadi276
LQ Newbie
 
Registered: Mar 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
There are numerous things wrong here:
  • The link you posted is three years out of date, with a message at the top of the page, saying there is a newer version.
  • Following that link it says CLEARLY "Note: All these versions are only available to license holders at CERN." (bolded for emphasis). ARE you a license holder?? Because if you click the "Red Hat Enterprise Linux versions 5, 6 and 7" link, it takes you to....
  • ....here: http://linux.web.cern.ch/linux/rhel/ Where it clearly states you have to PURCHASE this. Have you??
  • As you were asked...what are you trying to install/do that 'needs' this?
  • CentOS/RHEL/SL are **NOT** good choices for a laptop. They were designed for SERVERS, which don't have things like wifi, bluetooth, sound, etc...the 'consumer' devices. Servers typically don't even have SCREENS these days, so using RHEL/CentOS/SL on a laptop will get you spotty hardware support, with the distinct possibility that the hardware WILL NOT WORK AT ALL with that distro.
Actually i'm not working for cern but i am working in a labratory that have some licence for these tools but downloading devtoolset and SL7 don't need any licence .

Yes as you said they are not good for laptop but for running some project immediatly after programming I need running them in my laptop.
 
Old 03-02-2018, 03:56 PM   #23
fatemeh.mohammadi276
LQ Newbie
 
Registered: Mar 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by RandomTroll View Post
I can't make sense of needing RedHat6 for any purpose: are you sure?
Actually i decide not to install SL6 in my surfacebook because i think they are really incompatible . I really appreciate you and thanks a lot for your time and help. It was so useful for me .

Last edited by fatemeh.mohammadi276; 03-02-2018 at 04:01 PM.
 
Old 03-02-2018, 04:03 PM   #24
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,828

Rep: Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783
Quote:
Originally Posted by fatemeh.mohammadi276 View Post
Actually i'm not working for cern but i am working in a labratory that have some licence for these tools but downloading devtoolset and SL7 don't need any licence.
Really?? Sorry, no...did you read their site??? Developer tools 3.1 DOES need it. The older versions are not supported/used any longer.
Quote:
Yes as you said they are not good for laptop but for running some project immediatly after programming I need running them in my laptop.
No, sorry you don't. Again, you're not answering the question...WHY DO YOU NEED this version/distro of Linux???? What can you not run on another distro? Most of what's listed here, in their latest software collection for CentOS:
http://linux.web.cern.ch/linux/cento...lections.shtml
http://linux.web.cern.ch/linux/cento...l#devtoolset-7

...is available. And you can probably install that CentOS package on a different distro, and would probably be able to use CentOS 7 MUCH easier than SL. But if all you're after is programming...ANY distro works. All of them have the full suite of compilers, debuggers, utilities, etc. Eclipse is supported as well. Again, you aren't making life easy for yourself by doing this for no real reason.
 
Old 03-02-2018, 04:14 PM   #25
fatemeh.mohammadi276
LQ Newbie
 
Registered: Mar 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Really?? Sorry, no...did you read their site??? Developer tools 3.1 DOES need it. The older versions are not supported/used any longer.

No, sorry you don't. Again, you're not answering the question...WHY DO YOU NEED this version/distro of Linux???? What can you not run on another distro? Most of what's listed here, in their latest software collection for CentOS:
http://linux.web.cern.ch/linux/cento...lections.shtml
http://linux.web.cern.ch/linux/cento...l#devtoolset-7

...is available. And you can probably install that CentOS package on a different distro, and would probably be able to use CentOS 7 MUCH easier than SL. But if all you're after is programming...ANY distro works. All of them have the full suite of compilers, debuggers, utilities, etc. Eclipse is supported as well. Again, you aren't making life easy for yourself by doing this for no real reason.
As I remembered for previous successful installation it didn't need any licence for devtoolset in sl6
I need SL not CentOS and our projects have some modules that just run in SL. Our work is different from cern we just have some common tools .
 
Old 03-02-2018, 04:18 PM   #26
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,828

Rep: Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783
Quote:
Originally Posted by fatemeh.mohammadi276 View Post
As I remembered for previous successful installation it didn't need any licence for devtoolset in sl6
If you say so
Quote:
I need SL not CentOS and our projects have some modules that just run in SL. Our work is different from cern we just have some common tools .
Sorry, no...this doesn't make sense. Makes even LESS sense when you say you're a programmer...but can't get your own code to work on a slightly different system.

Good luck.
 
Old 03-02-2018, 10:05 PM   #27
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2
Posts: 387

Rep: Reputation: 81
I skipped over alot of that last discussion ...

If you need the mwifiex module to support device in the kernel, then the following is applicable.

To check if the module is loaded.
> grep mwi /proc/modules
- an empty line after this means that grep did not find the module name in the modules list.

To check if the kernel you have is configured with mwifiex.
This assumes that your kernel config is kept in /boot, like Slackware does.
> grep -i wmi /boot/config
- lines like the following will appear
#CONFIG_TULIP_MWI is not set
CONFIG_WMIFIEX=m
CONFIG_WMIFIEX_SDIO=m
CONFIG_WMIFIEX_PCIE=m
CONFIG_WMIFIEX_PCIE=m
which tells you the config for your kernel

is not set : means it is not configured in that kernel
=m : means it is configured as a module
=y : means that it is built into the kernel, and will not show up as a module

If you need this module, and it is not built-in and not a module, then you can
build yourself a custom kernel. You then get to select which modules and features
are included in the kernel. I always run a custom kernel with the hard drive support
and other hardware built-in. Anything that I might use intermittantly I configure as
a kernel module, like internet drivers, and WiFi.

Another possibility is the huge kernel. I run Slackware, where you can choose the
generic kernel, which works for many people. It has the most common modules enabled.
Or you can choose the huge kernel, that has raid and almost every module possible.
It usually is only missing the modules that have conflicts with others, or are too experimental.

In my custom kernel, I seem to have this driver as a module, so either it is needed
for my Tenda dongle, or support for it got included by accident.

Last edited by selfprogrammed; 03-02-2018 at 10:07 PM.
 
Old 03-02-2018, 10:17 PM   #28
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2
Posts: 387

Rep: Reputation: 81
To find the module reliably (even if you have multiple configurations).
> find /lib/modules -name mwi*
- this will list all modules that start with mwi

- there is a directory
/lib/modules/4.4.xx-kernel/drivers/net/wireless/mwifiex
- the main driver
mwifiex.ko
- If this is a USB dongle, you probably also need
mwifiex_usb.ko
- If this is a PCI card, you probably also need
mwifiex_pcie.ko
- and this one looks like some other alternative
mwifiex_sdio.ko
 
Old 03-02-2018, 10:54 PM   #29
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2
Posts: 387

Rep: Reputation: 81
I go to the public library to download stuff to a memory stick.

You can use one of the Slackware kernels.

If you have to, get Slackware, as it has simpler precompiled packages, and they can be manipulated.
That allows you to just copy files off the DVD (or CD, I buy the 6 CD set).
You can download the kernels from the Slackware support online ( www.slackware.com or https://mirror.math.princeton.edu/pu...kware/patches/ ) as tar files.
I do not remember any weird configuration for any of the kernel in the Slackware distro, so it should
drop into another distro. Had RedHat in the very first CD I got (around 1996, I think), but I settled
on using Slackware because I could configure it.

I you have grub or lilo, then install a new kernel as a second kernel.
I would install the new kernel into something like /boot-4.4.88.
The modules would go into /lib/modules/4.4.88-smp
Unpacking the tar files will have the correct directory names.
If you extract the tar file to a temp directory then you can see the directory structure, and can identify what it is going to install and where.
You can pick out the parts you need.
Then setup grub (or lilo) with a new entry that boots that kernel image.
If it works out, only then do you erase the old kernel.

Trying to get a more capable RedHat kernel might be interesting, but is not within my experience.

Unfortunately it is not easy to just add modules to the modules directory.
The kernel modules you need are in /lib/modules/4.4.xx-kernel/drivers/net/wireless/wmifiex.
Copying that directory is not a great problem. But there are several files under /lib/modules/4.4.xx-kernel
that have all the entry point names (alias, etc), and all those need to be updated too.
The kernel source tools ( Makefile modules_install )
knows how to build those files, and that is the only way I know to make them.

That is essentially the same as building a custom kernel.
If you decide to build a custom kernel, it will take you a couple of days just to learn how to do it.
It still takes me most of a day to go through all the kernel choices and decide which ones I need, and what
hardware I have to support. Miss one and you will have something else that stops working. However, the config for kernel building has some good support, so it is easy to modify the previous build to add a missing module.
After the config setup, the actual compilation of a new kernel will take around an hour or two, depending on how many modules you select and processor speed. But after that you will have a kernel that supports the hardware you have, along with any special features you might want, and all the stuff you don't need (like RAID, and 50% of the other modules at least) not present. That may make it worth it.

Your current /boot directory should have a copy of the current kernel config.
You can use that as the intial config for a custom build and then just add the mwifiex module. That would save alot of config time.
The "Make config" tool has several methods for starting from an existing config file.

Start with
> cd /usr/src/linux
> make help

To start from the existing config then.
> cd /usr/src/linux
> cp -p /boot/config .config
> make oldconfig

Note that the config file name within /usr/src/linux is hidden as ".config". There is a dot before the name, and the file will not show up in normal file listings.
If you want a visible file, then copy it, or save it to an explicit config name within the Make config tool.
Make sure that if you save it to an explicit name, then you probably want to load that explicit name next time.
The compilation itself always uses the .config file, and does not give any chance to select any explicitly named config file.

Make sure you have a rescue CD, just in case, before you start any kernel manipulations.

If you do not have grub or lilo, you can still save your current kernel and /lib/modules by renaming them first.
Then you can use the rescue CD to move them back again, if the new kernel does not work out.
Just extract the tar file into a temp directory first, so you can look at where it is going to put files, and so
you can first save what it is about to overwrite.

Last edited by selfprogrammed; 03-03-2018 at 08:43 PM.
 
Old 03-03-2018, 08:56 AM   #30
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,279

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
If you really want to try updating the kernel, you can get a kernel-lt-4.4 (long-term support) or a kernel-ml-4.14 (latest & greatest) RPM built for RHEL 6 from the elrepo repository. To use that repository, first import the public key
Code:
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
and then the yum setup
Code:
rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
Further information at http://elrepo.org/tiki/tiki-index.php .

One disadvantage of using those kernels is that security patches might not be as timely as what Red Hat provides for the official kernels.

Last edited by rknichols; 03-03-2018 at 08:58 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Learn how to detect network equipment with Scientific Linux 7.1 and Python LXer Syndicated Linux News 0 09-10-2015 05:20 PM
Network communication issue with lotsa interfaces (Scientific Linux 6) watkinb Linux - Networking 13 01-22-2014 09:02 AM
Installed Scientific Linux 6.2 on a VM using KVM - no network access dralexpe Linux - Virtualization and Cloud 5 09-28-2012 09:09 PM
problem of network card with scientific linux wardani Red Hat 10 06-14-2011 11:05 AM
[SOLVED] How to configure network(internet) in scientific linux ? biplabbijay Linux - Newbie 7 04-06-2010 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration