LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-14-2015, 01:16 AM   #1
Amanda_L
LQ Newbie
 
Registered: Oct 2013
Posts: 21

Rep: Reputation: Disabled
Compiling my own kernel - where to put "config" file?


Hi there

I'm ready to compile my own grsec kernel. I tried setting it up manually but there are a few settings that always fails, so I decided to use these config files:

https://projects.archlinux.org/svnto...es/linux-grsec
https://projects.archlinux.org/svnto...es/linux-grsec
https://projects.archlinux.org/svnto...es/linux-grsec
https://projects.archlinux.org/svnto...es/linux-grsec
https://projects.archlinux.org/svnto...es/linux-grsec

Where do I put these? Could it be where I extracted the kernel and on the kernel/configs folder:

Code:
/usr/src/linux/linux-4.1.7/kernel/configs/
I downloaded 4.1.7 from Kernel.org and grsec current patch:

Code:
wget https://grsecurity.net/test/grsecurity-3.1-4.1.7-201509131604.patch
wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.1.7.tar.xz
I already patched the kernel.

This is my first kernel build. Ever. Apologize for the newbie questions, but I couldn't find the answer. There are a few "config" files but I'm afraid I'll bork my compile if I replace them.

Thanks!

Last edited by Amanda_L; 09-14-2015 at 01:25 AM.
 
Old 09-14-2015, 01:38 AM   #2
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 298

Rep: Reputation: 33
There's a Sticky here in the Debian forum on how to properly do it which should work for any Linux distribution, i think. Have a look at it, i blindly followed it for my Debian.
 
Old 09-14-2015, 01:47 AM   #3
Amanda_L
LQ Newbie
 
Registered: Oct 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mzsade View Post
There's a Sticky here in the Debian forum on how to properly do it which should work for any Linux distribution, i think. Have a look at it, i blindly followed it for my Debian.
for my Debian

Well, hehehehehee

Thanks! I'll have a look at it and see how it goes.

If all goes correctly, should I see the changes done if I issue "make menuconfig"? Or these config files will only be used at compilation time?

EDIT: I copied the "config.x86_64" file into the kernel directory and named it ".config". It's compiling now.

Last edited by Amanda_L; 09-14-2015 at 02:22 AM.
 
Old 09-14-2015, 08:38 AM   #4
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 298

Rep: Reputation: 33
We-ell? How did it go?
 
Old 09-14-2015, 05:29 PM   #5
Amanda_L
LQ Newbie
 
Registered: Oct 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mzsade View Post
We-ell? How did it go?
It did work on Debian, it's really easy to compile a Kernel there. But on Arch I had to do it differently, I had to download a few other files and sources, edit a few of them, and then compile. And it worked, the config files are supposed to be exactly where the article said

Thanks.
 
Old 09-14-2015, 05:40 PM   #6
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 5,152
Blog Entries: 3

Rep: Reputation: 691Reputation: 691Reputation: 691Reputation: 691Reputation: 691Reputation: 691
Quote:
Originally Posted by Amanda_L View Post
It did work on Debian, it's really easy to compile a Kernel there. But on Arch I had to do it differently, I had to download a few other files and sources, edit a few of them, and then compile. And it worked, the config files are supposed to be exactly where the article said
Hi...

Sounds like you got it working. If so, please mark this thread as "SOLVED" by clicking on "Thread Tools" directly above your initial post. Thanks!

Regards...
 
  


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
[SOLVED] "missing kernel .config file" error while compiling linux source code for android preetb123 Linux - Mobile 3 03-19-2011 08:46 AM
Problem with sorting contents in a file - "10" being put up the top onesikgypo Programming 4 08-25-2009 08:19 AM
unable download the file through "put" command for anonymous user roni_atx Linux - General 3 11-20-2008 04:15 AM
problems put linux on pc, "booting the kernel" hangs chuckd2 Linux - Newbie 7 08-17-2007 05:22 PM
Samba- on "put file x" says file does not exist? achtung_linux Linux - Software 3 08-22-2006 02:30 PM


All times are GMT -5. The time now is 10:05 AM.

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