LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-28-2014, 01:05 PM   #1
Vinu Varghese
LQ Newbie
 
Registered: Oct 2014
Posts: 5

Rep: Reputation: Disabled
Editing Linux Source Code


Hey, somebody help me please. I'm a final year engineering student. As a part of my final year main project, I selected Operating System as my option. The topic is 'PRIVEXEC'(private execution) in linux. Its an IEEE proposed paper in 2014 March. Could anyone help me to suggest some ideas like which editor I should use, how to compile it ,and all the details and tips regarding the same !
 
Old 10-28-2014, 01:28 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
For emacs:
(setq c-default-style "linux")

For vi:
http://www.vim.org/scripts/script.php?script_id=4369
 
2 members found this post helpful.
Old 10-28-2014, 01:53 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Could anyone help me to suggest some ideas like which editor I should use, how to compile it ,and all the details and tips regarding the same !
arn't you supposed to be doing your OWN research ?

as to a "editor"
a editor of WHAT

or
an IDE ?

emacs or Vi are good
-- ide's
so is QT-Creator and Eclipse
 
2 members found this post helpful.
Old 10-29-2014, 02:10 AM   #4
Vinu Varghese
LQ Newbie
 
Registered: Oct 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
To John VV

Sir , I've to edit linux source code. I found that its possible in Microsoft Visual Studio using the Kernel editor in it. Is that a good option ? & whats the speciality of emacs comparing with visual studio ?

Thanks.
 
Old 10-29-2014, 02:18 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Microsoft Visual Studio is not a text editor
it is an IDE

as to what is best ?
there are many

what operating system ?
what desktop ?
(one based on GTK ot QT ?)

Eclipse is coded in JAVA
uses the GNU make system

QT-Creator
uses QT and the Qmake system
 
1 members found this post helpful.
Old 10-30-2014, 02:22 AM   #6
Vinu Varghese
LQ Newbie
 
Registered: Oct 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
To John VV

Okay I know that Visual Studio is An IDE. But it has a source code editor too. As I said I'm a beginner here (in linux coding). So would you suggest me a step by step procedure on this. Waiting for your mercy. Thank you
 
Old 10-30-2014, 02:49 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
type emacs into the terminal
if it is installed

or kate -- KDE desktop
or gedit -- Gnome desktop

Last edited by John VV; 10-30-2014 at 02:51 AM.
 
Old 10-30-2014, 03:18 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
I would rather say it is not the right lane to start with. You can choose whatever you want (as editor), that will not influence anything. Just use vi, gedit, nedit or anything you want and go on.
By the way there is no such thing "linux source code", but you may find examples and-or tutorials related to your original question (privexec).
 
Old 10-30-2014, 03:34 AM   #9
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Hi, Vinu.

The Linux source code is located at http://kernel.org If you download that, you will find, literally, all the source code published for the latest Linux Kernel (not all of the software on top of that, but literally the kernel; the part of the system that boots the computer and contains most all of its drivers).

I cannot imagine that this is what you actually want to do, because that's pretty advanced stuff, and you are asking what IDE or editor to use (which is not, I think, an "advanced" question).

If I am reading you wrong, let me know. I don't mean to patronise.

So, what Linux distribution are you using? surely you do not really want to develop for Linux on Windows using Visual Studio??

What you probably want to do is grab a Linux distribution (there are several, you can find an exhaustive list at http://distrowatch.com) and boot into a distribution. Probably you want to install it either on your computer or in a virtual machine.

And then install a few editors; emacs and vim are generally considered the go-to text editors. But there are many others, which have been mentioned previously.

You should also install some IDE's. Qt Creator is good and can do both C and C++ code. Eclipse is supposed to be quite good, as well, and has a good following.

Good luck.
 
Old 10-31-2014, 07:16 AM   #10
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by Vinu Varghese View Post
Hey, somebody help me please. I'm a final year engineering student. As a part of my final year main project, I selected Operating System as my option. The topic is 'PRIVEXEC'(private execution) in linux. Its an IEEE proposed paper in 2014 March. Could anyone help me to suggest some ideas like which editor I should use, how to compile it ,and all the details and tips regarding the same !
OK ... so you're looking to do a project involving PRIVEXEC (Selfish Addendum: Hail! Alma Mater!).

My guess is that you're asking about an editor because you wish to experiment with altering that editor along the lines with the proposition. If this was your intent, you need to review the abstract of that paper:
Quote:
In this paper, we present the design and implementation of PRIVEXEC, a novel operating system service for private execution. PRIVEXEC provides strong, general guarantees of private execution, allowing any application to execute in a mode where storage writes, either to the filesystem or to swap, will not be recoverable by others during or after execution.
My personal take on this is that you would not need to modify and compile the editor, but instead to develop an OS service which would perform the functions proposed in the paper.

As far as an editor goes, people have offered all that I would recommend, my top choice is gnuemacs and a recommendation that you get highly experienced with the GCC tools for building code.
 
1 members found this post helpful.
Old 11-01-2014, 02:32 PM   #11
Vinu Varghese
LQ Newbie
 
Registered: Oct 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
To rtmistler

Sir,
Thankyou for having a glance at the paper PRIVEXEC. As I said I'm a beginner in linux coding. I've been in search of info & guidance to do this. Never got any clue. Or rather I might be failed to understand the posts as I'm a beginner. But I found your reply useful. Could you please guide me to do this. How can I achieve this ? Or what to do ?
 
Old 11-01-2014, 02:55 PM   #12
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
It turns out there is a MSVS Linux environment

http://ubuntuforums.org/archive/inde...t-1986778.html

although it seems a bit like asking for the kosher menu at the Vatican cafeteria.
 
Old 11-01-2014, 08:53 PM   #13
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by Vinu Varghese View Post
Sir,
Thankyou for having a glance at the paper PRIVEXEC. As I said I'm a beginner in linux coding. I've been in search of info & guidance to do this. Never got any clue. Or rather I might be failed to understand the posts as I'm a beginner. But I found your reply useful. Could you please guide me to do this. How can I achieve this ? Or what to do ?
I'd recommend you seek out your advisor, because they can best guide you towards a successful project conclusion where you can both handle the assignment and also do not go too far beyond the main intentions of the project.

It is unclear how far you need to go, what your knowledge level is at present, and therefore whether or not this is a correctly chosen project for you.

Granted, one can go as far as they are capable on any project, but what you're saying here is that you've got this project and it sounds as if you have little or no idea how to even approach it.
 
Old 11-01-2014, 09:47 PM   #14
Vinu Varghese
LQ Newbie
 
Registered: Oct 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
To rtmistler

Okay.
 
  


Reply



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
Editing Maelstrom source code dave247 Linux - Software 12 10-26-2010 09:56 AM
Opening & Editing the Source Code rockershive Linux - Newbie 2 08-04-2007 03:45 AM
Opening & Editing the Source Code rockershive Programming 3 08-04-2007 03:17 AM

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

All times are GMT -5. The time now is 05:41 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