LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-11-2003, 10:45 AM   #46
andy18
Member
 
Registered: Oct 2002
Location: Malaysia
Posts: 106

Rep: Reputation: 15

Hi,

alias net-pf-1 off worked !

but problem now is that I am not able to ssh to the box from my terminal.There is no error shown and the application that I used for SSH ( putty ) just closed ( within 1 seconds ) after I hit the Open connection button.

The ssh services is started and I have tried restart the service as well....
 
Old 09-11-2003, 01:02 PM   #47
Electboy
Member
 
Registered: May 2003
Location: VietNam
Distribution: RedHat 9.0
Posts: 79

Rep: Reputation: 15
Your steps are right but it require have much knowledge about kernel configuration (not for newbie). I did as i said when i didnt know much about kernel configuration, ofcourse i successed.
 
Old 09-11-2003, 11:02 PM   #48
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 60
so is the port being blocked, are you connected through a router, that isn't setup to forward the port, and trying to access your box from an outside source.....are you sure its not a windows problem, or a putty problem for that matter....

oh and glad that other problem working out for ya
 
Old 09-16-2003, 02:23 PM   #49
marin_linuxer
LQ Newbie
 
Registered: Aug 2003
Location: San Rafael, CA U.S.A.
Distribution: Arch Linux (archlinux.org)
Posts: 8

Rep: Reputation: 1
Kernel Meta-Patches and such

Hi there.

Just wondered if anyone could comment on the various kernel meta-patches available, i.e.: Alan Cox, Con Kolivas, etc.. They claim to add performance and features not available in the stock/vanilla kernels.

For the purposes of creating primarily a Workstation/Desktop system:

1. Would you recommend using them?

2. Can the Alan Cox patches and the Con Kolivas patches be used together/at the same time?

3. What additional patches or customizations do you recommend?

Thanx.
 
Old 09-16-2003, 02:59 PM   #50
rberry88
Member
 
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558

Rep: Reputation: 30
Can someone tell me how I do this in SuSE 8.2??

..And create the new one:
/sbin/mkinitrd /boot/initrd-x.x.x.img x.x.x
(Note: )
The last set of x.x.x is the eqivalent to your new kernel version and it looks to /lib/modules for that version.


It keeps giving me the error: can't create temp directory

rberry88
 
Old 09-21-2003, 06:33 PM   #51
andy18
Member
 
Registered: Oct 2002
Location: Malaysia
Posts: 106

Rep: Reputation: 15
Quote:
Originally posted by Electboy
I had the same problem as yours. So i had to reinstall RH.
Then,
save a file ".config" in /usr/src/linux-x.x.x to other place
make mrproper
copy .config to /usr/src/linux-x.x.x (n your new kernel)
make menuconfig (if u want to change some thing in configuration, but note that u have to know much about kernel configuration)
I am trying another kernel compilation now...I am trying with the compilation using my old kernel config.My current kernel is version 2.4.20-20.8 but I was not able to get the .config file in /2.4.20-20.8 . However, there is a configs directory in the /2.4.20-20.8 , is this the one and inside there are lots of config such as kernel-2.4.20-athlon.config , kernel-2.4.20-i386.config , kernel-2.4.20-i586.config ...etc

please guide ...thanks
 
Old 09-21-2003, 07:29 PM   #52
andy18
Member
 
Registered: Oct 2002
Location: Malaysia
Posts: 106

Rep: Reputation: 15
ok I have used the "make oldconfig" to compile my kernel and the process seems to be fine all the while ..

Doesn't that using the "make oldconfig" will automatically compile the kernel using my old kernel configuration?coz I am getting lots of failed error message while the new kernel boot...the eth0 seems not be able to detected as well..strange...
 
Old 09-21-2003, 08:43 PM   #53
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 60
maybe you did it wrong, but thought you did it right
did you by chance type make mrproper after doing make oldconfig? if so then that means it killed any existing config files, which in turn means you won't be using your oldconfig..
 
Old 09-22-2003, 04:10 AM   #54
Electboy
Member
 
Registered: May 2003
Location: VietNam
Distribution: RedHat 9.0
Posts: 79

Rep: Reputation: 15
there is only one file : /usr/src/linux-x.x.x/.config
 
Old 09-22-2003, 08:40 AM   #55
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 60
there sure is.
 
Old 09-22-2003, 09:30 AM   #56
andy18
Member
 
Registered: Oct 2002
Location: Malaysia
Posts: 106

Rep: Reputation: 15
Quote:
Originally posted by DrOzz
maybe you did it wrong, but thought you did it right
did you by chance type make mrproper after doing make oldconfig? if so then that means it killed any existing config files, which in turn means you won't be using your oldconfig..
nope..I test it by reformat the whole PC ( just for kernel compiling for gaining experience ) and did a fresh install of the RH 8.0 .I upgraded the kernel to 2.4.2-20.8 ( since RH 8.0 came only at 2.4.2.18.8 ).Then I downloaded the kernel source from the redhat website and installed it but was not able to get the .config file inside the /2.4.2-20.8 directory ...

I have not execute the above command during the whole process of compilation.

thanks,
 
Old 09-22-2003, 12:23 PM   #57
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 60
well if you ended up downloading the kernel source for the 2.4.2-20.8 kernel and extracted it to its proper location, then you will not have a .config file there...you'll have to copy the .config file from your old kernel to your new kernel and then issue make oldconfig.....or is this what you done?
 
Old 09-22-2003, 12:48 PM   #58
Electboy
Member
 
Registered: May 2003
Location: VietNam
Distribution: RedHat 9.0
Posts: 79

Rep: Reputation: 15
yeah, i have to recompile your current kernel first
 
Old 09-22-2003, 01:17 PM   #59
andy18
Member
 
Registered: Oct 2002
Location: Malaysia
Posts: 106

Rep: Reputation: 15
Quote:
Originally posted by DrOzz
well if you ended up downloading the kernel source for the 2.4.2-20.8 kernel and extracted it to its proper location, then you will not have a .config file there...you'll have to copy the .config file from your old kernel to your new kernel and then issue make oldconfig.....or is this what you done?
I am still a little confuse...I will have to have the kernel source to get the .config file and the .config file should be located in /usr/src/linux-2.4.2-18.8 or (20.8) ,right?During the RH installation, I have not choose to install the kernel source and as a result, there is no /linux-2.4.2-18.8 in the /usr/src directory after the installtion.After I have install the kernel source, then the directory /linux-2.4.2-18.8 appear in /usr/src ...but I was not able to get the .config file listed in the /usr/src/linux-2.4.2-18.8 ( 20.8 ) directory...

I tried to do a locate .config in command prompt and no result return.

Drozz, can you please summarize the steps to compile the kernel if I wish to use back my old kernel config ( until the make oldconfig command ) , thanks !
 
Old 09-22-2003, 03:16 PM   #60
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 60
ok this is what your going to do....
now it doesn't matter if your in text mode or graphical mode, you will go into the /usr/src/linux directory for the kernel that you want to use the oldconfig of...now when your in that folder type:
make oldconfig
you will let it do its thing, and it shouldn't take any more than a minute...when it is done you will notice that within the directory there is going to be a file called :
.config
you will copy this file to a safe location until your ready to re-use for it doesn't get removed...in a sense a percautionary backup...
when your ready to start compile you will type ::
cp -p /location/of/oldconfig /usr/src/linux-2.4.20/.config
note:: linux-2.4.20 may not be the actual directory name, so you'll have to fix that to the proper directory name...
then you can move on to the make dep and make clean steps..

so in the end, when you copy the .config file to the new kernel source directory and then you run make config or whichever config tool you use, the make config will read the .config file that you placed, and you can add some additional stuff, or take some stuff you didn't want in the old config....

now with one last suggestion, i recommend after you make oldconfig that you back it up like i said and then run make mrproper, when that is done, then copy the .config file into the source directory, and then run make config, make xconfig, or make menuconfig, whichever you do run...and then go from there....

i know i jumped back and forth with my explanation there, but i think you will understand what i am saying if you read it carefully.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm interested in compiling a 2.6.x kernel, is this is a decent guide? Erik_the_Red Linux - Newbie 7 08-14-2005 07:03 AM
Kernel compiling guide for newbies... DaOne Slackware 127 04-17-2005 05:20 AM
Acid Guide to compiling Kernel 2.6.10 on Slack 10.1 acidjuice Slackware 54 03-11-2005 06:16 PM
Quick newbie guide to rebuild kernel in FC3 borgware Fedora 0 12-29-2004 02:38 PM
: Kernel compiling guide for newbies Question Anibal Slackware 6 08-01-2003 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:14 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
Open Source Consulting | Domain Registration