CS-Reloaded Banner
Welcome, Guest. Please Login or Register.
Download CSR Remake Map Pack!
Get more packs here

Home Help Search Login Register

CSReloaded Forums  |  General Category  |  Help & Troubleshooting (Moderator: Guardian_Tenshi)  |  Topic: Unix Class tells you good things...
Pages: [1] Reply Notify of replies
   Author  Topic: Unix Class tells you good things...  (Read 164 times)
Guardian_Tenshi
Global Moderator
*****
Karma: +53/-26

Offline

Gender: Male
Posts: 1114

276733708 276733708 clanguardian2003 Ol+Grimmy
View Profile WWW E-Mail
Unix Class tells you good things...
« on: January 14, 2004, 02:56:39 PM »
Reply with quote

so we were talking about some unix stuff today in my C++ class, (because they make us use the UNIX C++ compiler now, a very new switch mind you), and my professor mentioned something about modifying your .login file to set default permissions...did we ever look into that for my laptop porter??  Also, though my UNIX class will be teaching me Vi, my C++ class recommends Pico for people who don't know how to use Vi left...will I have to try and install Pico also??...sorry, just trying to get thoughts down before I leave the lab and forget.

Tenshi
Logged

Porter
[Wumpa]
Board Admin
*****
Karma: +176/--88

Offline

Gender: Male
Posts: 3910

Wumpa+Porter
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #1 on: January 14, 2004, 04:37:27 PM »
Reply with quote

pico is the like the bastard child of emacs. Probably better because it's a lot less "robust" ('robust' meaning fat and useless). I personally wish vi would go die-- I mean, talk about bad UI design!... but that's the way it goes. You're either an emacs person or a vi person.

Anyway, your .login won't change any permissions for files that have already been created Tenshi, and what's more, it won't affect anything you do as the Super User, since that account has it's own .login file with appropriately strict permissions of it's own.

Also, if you use tcsh, like I do, you'll probably want to edit your .cshrc file and not your .login.
Logged

[Wumpa] Porter
  --Silent, professional, lethal... sometimes.
Terraji
Admin Team
CSR Connoisseur
*****
Karma: +35/-15

Offline

Gender: Male
Posts: 789

terraji@hotmail.com
View Profile E-Mail
Re:Unix Class tells you good things...
« Reply #2 on: January 14, 2004, 04:42:16 PM »
Reply with quote

While on the topic of  C++ in unix, I have a small, trivial problem that one of you could probably help me with. I need to know how to get parameters inside the program that were passed in from the command line when the program was executed.
Example:

unix-prompt> myprogram parameter1 parameter2
where can i access parameter 1 and 2 inside the program?

I never learned this because I am in Software Eng. and taking a third year Computer Science course that has Computer Science prerequisites which arent in the course stream for Software Eng. I did C++ in windows way back in first year and have since moved on to alot of Java and assembler. Comp Sci has an introductory unix course that covers all this which, for some messed up engineering department bulsh*t reason, I never got the luxury of taking.

(somehow they can justify making us take Thermodynamics courses, but not somthething helpful)

Any help would be greatly apprecieated and thank you for listening to my acedemic woes

Terraji
Logged
Guardian_Tenshi
Global Moderator
*****
Karma: +53/-26

Offline

Gender: Male
Posts: 1114

276733708 276733708 clanguardian2003 Ol+Grimmy
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #3 on: January 14, 2004, 06:10:44 PM »
Reply with quote

Quote from: Porter on January 14, 2004, 04:37:27 PM
pico is the like the bastard child of emacs. Probably better because it's a lot less "robust" ('robust' meaning fat and useless). I personally wish vi would go die-- I mean, talk about bad UI design!... but that's the way it goes. You're either an emacs person or a vi person.

Anyway, your .login won't change any permissions for files that have already been created Tenshi, and what's more, it won't affect anything you do as the Super User, since that account has it's own .login file with appropriately strict permissions of it's own.

Also, if you use tcsh, like I do, you'll probably want to edit your .cshrc file and not your .login.

my question though, is could that have been some of the previous permission problems we've had??  I'm sorry, but we haven't gotten as far as what tsch is, and .cshrc is either, like I said, I think some of this is just a basic intro, because the class that was talking about this today was C++, not my actual Unix class (not yet anyway).  Anyway, more Unix to come tomorrow...

As for Terraji, the C++ code that you are asking about I believe is referred to as I/O Redirection.  All of the NIU C++ Part 1 notes are online, and the section that is directly related to I/O redirection can be accessed here: http://www.seasite.niu.edu/cs240/CPP_Notes/Notes6.htm

If you have other questions, or just want to look through more C++ notes, the course web page is here:
http://www.seasite.niu.edu/cs240/

I'll prewarn you that they are using a windows based emulator that essentially emulates a unix based compiler.  I believe that is also free, and downloadable via their website, however, everything there should either be directly copied to your application or slightly altered to work.  Either way, I hope this is helpful.

Tenshi
Logged

slightcrazed
-TWB-
Admin Team
CSR Connoisseur
*****
Karma: +65/-7

Offline

Gender: Male
Posts: 983


View Profile
Re:Unix Class tells you good things...
« Reply #4 on: January 14, 2004, 07:00:33 PM »
Reply with quote

Quote from: Terraji on January 14, 2004, 04:42:16 PM
While on the topic of  C++ in unix, I have a small, trivial problem that one of you could probably help me with. I need to know how to get parameters inside the program that were passed in from the command line when the program was executed.
Example:

unix-prompt> myprogram parameter1 parameter2
where can i access parameter 1 and 2 inside the program?

I never learned this because I am in Software Eng. and taking a third year Computer Science course that has Computer Science prerequisites which arent in the course stream for Software Eng. I did C++ in windows way back in first year and have since moved on to alot of Java and assembler. Comp Sci has an introductory unix course that covers all this which, for some messed up engineering department bulsh*t reason, I never got the luxury of taking.

(somehow they can justify making us take Thermodynamics courses, but not somthething helpful)

Any help would be greatly apprecieated and thank you for listening to my acedemic woes

Terraji

Tenshi is right, you need to redirect the paramaters (which will be part of stdin) and just use a simple case statement to process whatever options were given. Of course you'll need control code in there as well, but it is fairly simple to implement. I use something similar all the time when writing bash scripts.

slight
Logged

I once beat Drizzt Do'Urden at thumb wrestling.
Terraji
Admin Team
CSR Connoisseur
*****
Karma: +35/-15

Offline

Gender: Male
Posts: 789

terraji@hotmail.com
View Profile E-Mail
Re:Unix Class tells you good things...
« Reply #5 on: January 14, 2004, 07:18:57 PM »
Reply with quote

Thanks alot doods! I think that will be helpful.
The bad news is that it looks like I am going to have to stay late tomorrow in the Labs of The Damned to get my assignment done.
Logged
Porter
[Wumpa]
Board Admin
*****
Karma: +176/--88

Offline

Gender: Male
Posts: 3910

Wumpa+Porter
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #6 on: January 15, 2004, 08:19:34 AM »
Reply with quote

Shouldn't the argv[] and argc variables be all you need?
Logged

[Wumpa] Porter
  --Silent, professional, lethal... sometimes.
Porter
[Wumpa]
Board Admin
*****
Karma: +176/--88

Offline

Gender: Male
Posts: 3910

Wumpa+Porter
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #7 on: January 15, 2004, 08:22:39 AM »
Reply with quote

Oh good, I was afraid they were teaching you some totally proprietary compiler, but it looks like Quincy is actually a GUI frontend / IDE for GCC. While not as good as simply learning how to use GCC and Makefiles, I suppose it's better than learning MS .NET or Visual Studio. Especially if you don't have a unix lab to work with and are stuck with Windows boxes.
Logged

[Wumpa] Porter
  --Silent, professional, lethal... sometimes.
Porter
[Wumpa]
Board Admin
*****
Karma: +176/--88

Offline

Gender: Male
Posts: 3910

Wumpa+Porter
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #8 on: January 15, 2004, 08:51:22 AM »
Reply with quote

I read that "How to use Quincy" introduction, and naturally I have some comments.

1. They still have you using floppies?!?!
2. Okay, DOS windows to display program output. I forgot Windows sucks that bad.
3. Saving your files to two separate locations. Yes, it is a good idea, no the second location should not be a floppy.
4. Three letters: C V S. It's never too early to teach best practices.
5. Those shortcut keys remind me of DOS Turbo C++ from high school. Ctrl-F9 to compile and run.
Logged

[Wumpa] Porter
  --Silent, professional, lethal... sometimes.
slightcrazed
-TWB-
Admin Team
CSR Connoisseur
*****
Karma: +65/-7

Offline

Gender: Male
Posts: 983


View Profile
Re:Unix Class tells you good things...
« Reply #9 on: January 15, 2004, 10:52:40 AM »
Reply with quote

Quote from: Porter on January 15, 2004, 08:51:22 AM
4. Three letters: C V S. It's never too early to teach best practices.

Here, here!

slight
Logged

I once beat Drizzt Do'Urden at thumb wrestling.
Guardian_Tenshi
Global Moderator
*****
Karma: +53/-26

Offline

Gender: Male
Posts: 1114

276733708 276733708 clanguardian2003 Ol+Grimmy
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #10 on: January 15, 2004, 06:31:31 PM »
Reply with quote

yes, Quincy if i understand is a version of GNU++ or something??  Yeah, it's not perfect, but we are being decently educated.  Unix is still jumping around a bit, as she has to get us logged in to a unix system and try to teach us the basics in the same step.  I did ask her about Vi, Pico, and Emacs...what the differences are, and why she decided to use Vi as opposed to the others.  This is her explination, not my opinion ok Porter??  Vi is good because it allows us to use regular expressions, as well as copy and paste from outside applications.  Emacs is good because it allows compilation of certain things within the editor.  The only thing nice about Pico is it is easy to use and is "menu driven".  Anyway...she also very briefly mentioned altering your ~/.cshrc to alter what happens in your "start-up file". 

I'd be interested to hear your opinion(s) on the mailx, pine, and mutt though 

As a slightly cooler note, did you know Ken Thompson originally designed Unix because he needed a faster video gaming platform?  Wrote the whole thing in Assembler, because of the languages speed, and was then later persuaded by Dennis Ritchie to put C in there...Today's UNIX is actually a combination of Assembler and C...I thought it was cool...guess i'm a dork like that.

Also, is it possible to explain how i can SSH into mp.cs.niu.edu from laptop easily??  I assume it isn't that difficult...anyway, this is the first really mega cool class i've taken in a long time    Ah yes, my biggest concern is the school's computers are SunOS system V thingy, and not BSD...does that matter?

Tenshi
« Last Edit: January 15, 2004, 07:00:47 PM by Guardian_Tenshi » Logged

Porter
[Wumpa]
Board Admin
*****
Karma: +176/--88

Offline

Gender: Male
Posts: 3910

Wumpa+Porter
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #11 on: January 15, 2004, 10:05:06 PM »
Reply with quote

Quote from: Guardian_Tenshi on January 15, 2004, 06:31:31 PM
yes, Quincy if i understand is a version of GNU++ or something??

GNU stands for GNU is Not Unix. You can visit their website at http://www.gnu.org  GCC on the other hand, is the GNU Compiler Collection, if I'm not mistaken, and is the standard in the *nix world. It's home is here: http://gcc.gnu.org/ Knowing gcc is about as important in *nix Computer Science as knowing how to log in to *nix machine. For the most part though, the complexity of gcc is abstracted away in Makefiles, which automate the process of building software on your given *nix platform. They are also very important to know if you will be writing software for *nix.

Quote:
Vi is good because it allows us to use regular expressions, as well as copy and paste from outside applications.  Emacs is good because it allows compilation of certain things within the editor.  The only thing nice about Pico is it is easy to use and is "menu driven".

Using regular expressions is another level of complexity in itself, and any advantage vi might give you by providing them is totally lost by a user interface so entirely archaic and f***ed up that you'd have to be autistic to get the most out of it. Nonethless, emacs is more bloated that just about any other peice of unix software I've ever encountered. it's designed to handle "special functions" for just about every programming language out there, plus every kind of scripting language including all the shell scripts. All that "extra bunk" is about as useful as an anvil on a sinking ship. I use emacs because at least the user interface doesn't make you type cryptic commands just to be able to insert a character. pico would probably suit my needs (and probably a lot of other people's) even better in that regard.

Quote:
I'd be interested to hear your opinion(s) on the mailx, pine, and mutt though 

I've used pine, briefly, and the FreeBSD default "mail" program. Your best bet is to set up your .forward file to route all mail coming into your unix box to another email address, and access it from home with a normal GUI client like Outlook Express or OS X's Mail. There's no reason to use a command line mail app anymore.

Quote:
As a slightly cooler note, did you know Ken Thompson originally designed Unix because he needed a faster video gaming platform?  Wrote the whole thing in Assembler, because of the languages speed, and was then later persuaded by Dennis Ritchie to put C in there...Today's UNIX is actually a combination of Assembler and C...I thought it was cool...guess i'm a dork like that.

Did not know that. Are you familiar with SCO Tenshi? Ask your unix professor about it next time you have class. You'll be able to waste an entire class period on it. Every CS major should know what's going with that too. If you haven't already, you might want to check out http://slashdot.org too. News for geeks. Stuff that matters. (TM)

Quote:
Also, is it possible to explain how i can SSH into mp.cs.niu.edu from laptop easily??  I assume it isn't that difficult...

Very easy. First, check out man page for ssh. Then, you'll need to know the host name for the unix box you want to log into. The command generally takes the form:

Code:
ssh username@my.hostname.com

You will get a warning about an RSA fingerprint the first time you connect. SSH is designed to be very secure, and prevent "man in the middle" attacks where somebody else intercepts your request and pretends to be the machine you are trying to get to. That machine asks for your username and password, just like the machine you are SUPPOSED to be connecting to would, and then you would type it in, and the hacker now has the host you were trying to get to, and the credentials you were going to use to connect to it. SSH guards against that by using "keys". The explanation gets a lot more complex from here, but suffice it to say that you don't have to worry about the RSA fingerprint question. Just say yes, and provide your password. You will be logged into the remote machine just as if you were sitting in front of it. When you're done, don't forget to exit to close the ssh session and return to YOUR machine's command line.

Quote:
Ah yes, my biggest concern is the school's computers are SunOS system V thingy, and not BSD...does that matter?

Yes, it does matter, but not as much as it could. Some commands will be different, but it's not nearly as bad as moving from DOS to unix. You'll end up reading a lot of man pages, like one for ps for example , but you should be okay. The biggest problem will be to not make assumptions based on what you know about FreeBSD. We had a Sun Sparc machine running Solaris here at Knox for a while-- it was kinda "weird" to me too, but you'll get the hang of it.
Logged

[Wumpa] Porter
  --Silent, professional, lethal... sometimes.
Terraji
Admin Team
CSR Connoisseur
*****
Karma: +35/-15

Offline

Gender: Male
Posts: 789

terraji@hotmail.com
View Profile E-Mail
Re:Unix Class tells you good things...
« Reply #12 on: January 15, 2004, 10:46:29 PM »
Reply with quote

Quote from: Porter on January 15, 2004, 08:19:34 AM
Shouldn't the argv[] and argc variables be all you need?

yep thats it. thanks for the help guys!
Logged
Ryo-Ohki
[Wumpa]
Board Admin
*****
Karma: +30/-6

Offline

Posts: 187

tokyoicabbit
View Profile E-Mail
Re:Unix Class tells you good things...
« Reply #13 on: January 16, 2004, 09:57:59 AM »
Reply with quote

Tenshi, I think Porters mail suggestion makes the most sense, but aren't you using X windows?  Why not just use Mozilla for mail?  It should do the trick.   
Logged

"how does this work? where do my teeth go?" - a lepord cub trying to eat a turtle
-- panda cam
Guardian_Tenshi
Global Moderator
*****
Karma: +53/-26

Offline

Gender: Male
Posts: 1114

276733708 276733708 clanguardian2003 Ol+Grimmy
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #14 on: January 16, 2004, 11:00:36 AM »
Reply with quote

sorry ryo, you got left in the dark, we are changing gears to Tenshi's new CSCI 330 class, "The Unix System".  Granted some of my questions go back to how I can incorperate it with what I already know, and how it applies to my laptop, but yeah...different deal ryo.  Glad to hear you're still alive though.

Tenshi
Logged

slightcrazed
-TWB-
Admin Team
CSR Connoisseur
*****
Karma: +65/-7

Offline

Gender: Male
Posts: 983


View Profile
Re:Unix Class tells you good things...
« Reply #15 on: January 16, 2004, 11:07:35 AM »
Reply with quote

Quote from: Porter on January 15, 2004, 10:05:06 PM
GNU stands for GNU is Not Unix. You can visit their website at http://www.gnu.org  GCC on the other hand, is the GNU Compiler Collection, if I'm not mistaken, and is the standard in the *nix world. It's home is here: http://gcc.gnu.org/ Knowing gcc is about as important in *nix Computer Science as knowing how to log in to *nix machine. For the most part though, the complexity of gcc is abstracted away in Makefiles, which automate the process of building software on your given *nix platform. They are also very important to know if you will be writing software for *nix.

GCC is the GNU C compiler, but I guess GNU compiler collection is close enough....

Quote from: 'Some guy who thinks vi sucks' on January 15, 2004, 10:05:06 PM
...any advantage vi might give you by providing them is totally lost by a user interface so entirely archaic and f***ed up that you'd have to be autistic to get the most out of it.

Them's fightin words.....

vi (or elVIs, the vi clone that I use) can be very intuitive, once you get to know it. I will say this, learning and becoming comfortable with vi takes a long, long time. Editor comes down to preference, and I think blood has actually been spilled during the vi/emacs war. Take the time to learn each of them, and whichever one is easiest for you to use, go for it.

Quote from: Porter on January 15, 2004, 10:05:06 PM
I've used pine, briefly, and the FreeBSD default "mail" program. Your best bet is to set up your .forward file to route all mail coming into your unix box to another email address, and access it from home with a normal GUI client like Outlook Express or OS X's Mail. There's no reason to use a command line mail app anymore.

Yeah, I agree, command line e-mail is a bit silly, especially given the number of GUI clients out there. If you're stuck with CLI, then you can always forward your mail to a hotmail (yuck) or yahoo mail acount, and then access that acount using links (CLI web browser).

Quote from: Porter on January 15, 2004, 10:05:06 PM
Are you familiar with SCO Tenshi? Ask your unix professor about it next time you have class. You'll be able to waste an entire class period on it. Every CS major should know what's going with that too. If you haven't already, you might want to check out http://slashdot.org too. News for geeks. Stuff that matters. (TM)

Best resource for the whole SCO fiasco is Groklaw. A para-legal Linux fan put the site together and she researches all of the motions and hearings in the case, and she posts the court records and transcripts on her site. Very, very well done. Groklaw has even been mentioned on CNN, newsweek, and forbes.

slight
Logged

I once beat Drizzt Do'Urden at thumb wrestling.
Guardian_Tenshi
Global Moderator
*****
Karma: +53/-26

Offline

Gender: Male
Posts: 1114

276733708 276733708 clanguardian2003 Ol+Grimmy
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #16 on: January 16, 2004, 11:23:15 AM »
Reply with quote

can y'all explain what SCO is a bit more, before i got asking my professor random questions??

Tenshi
Logged

Porter
[Wumpa]
Board Admin
*****
Karma: +176/--88

Offline

Gender: Male
Posts: 3910

Wumpa+Porter
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #17 on: January 16, 2004, 12:28:22 PM »
Reply with quote

Quote from: Guardian_Tenshi on January 16, 2004, 11:23:15 AM
can y'all explain what SCO is a bit more, before i got asking my professor random questions??

A couple years ago, SCO bought the rights to some of the source code that was originally used to build unix. Well, apparently the early EARLY versions of LInux used some of the source code from unix. Since SCO now "owns" the intellectual property that they claim now exists somewhere in every linux distribution, on every computer that's running linux, they started filing copyright infringement lawsuits EVERYWHERE. Even big names like IBM if I'm not mistaken have been pulled into this. SCO even wanted to send invoices to ever single end user of linux... everywhere! (at least last I heard).

Now while they may be legally within their bounds to be doing what their doing, linux has reached such a saturation point that attempting what they are attempting is completely ludicrous. Not to mention that the source code that's in question has been rewritten and obscured so many times that it would be damn near impossible to prove their claim. They've lost as much money in legal fees alone as they stood to gain from SUCCESSFUL lawsuits, and they are quickly continuing that trend.

What most of the community can't understand is why anyone would be foolish enough to pursue such a completely suicidal course.

What do you think slight, did I capture the essence of it?
« Last Edit: January 16, 2004, 12:34:12 PM by Porter » Logged

[Wumpa] Porter
  --Silent, professional, lethal... sometimes.
Porter
[Wumpa]
Board Admin
*****
Karma: +176/--88

Offline

Gender: Male
Posts: 3910

Wumpa+Porter
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #18 on: January 16, 2004, 12:32:11 PM »
Reply with quote

Quote from: slightcrazed on January 16, 2004, 11:07:35 AM
GCC is the GNU C compiler, but I guess GNU compiler collection is close enough....

I beg to differ my friend. I thought it was the GNU C Compiler too, but I went to http://gcc.gnu.org to be sure, and it's right there on their homepage, on the very first line of the site. "GNU Compiler Collection".

Quote:
Take the time to learn each of them, and whichever one is easiest for you to use, go for it.

THAT I can agree on. The only thing that EVER matters is which product will allow you to get your work done the fastest and easiest. Using ANYTHING else is just plain stupid.
Logged

[Wumpa] Porter
  --Silent, professional, lethal... sometimes.
slightcrazed
-TWB-
Admin Team
CSR Connoisseur
*****
Karma: +65/-7

Offline

Gender: Male
Posts: 983


View Profile
Re:Unix Class tells you good things...
« Reply #19 on: January 16, 2004, 01:25:59 PM »
Reply with quote

Quote from: Porter on January 16, 2004, 12:28:22 PM
Quote from: Guardian_Tenshi on January 16, 2004, 11:23:15 AM
can y'all explain what SCO is a bit more, before i got asking my professor random questions??

A couple years ago, SCO bought the rights to some of the source code that was originally used to build unix. Well, apparently the early EARLY versions of LInux used some of the source code from unix. Since SCO now "owns" the intellectual property that they claim now exists somewhere in every linux distribution, on every computer that's running linux, they started filing copyright infringement lawsuits EVERYWHERE. Even big names like IBM if I'm not mistaken have been pulled into this. SCO even wanted to send invoices to ever single end user of linux... everywhere! (at least last I heard).

Now while they may be legally within their bounds to be doing what their doing, linux has reached such a saturation point that attempting what they are attempting is completely ludicrous. Not to mention that the source code that's in question has been rewritten and obscured so many times that it would be damn near impossible to prove their claim. They've lost as much money in legal fees alone as they stood to gain from SUCCESSFUL lawsuits, and they are quickly continuing that trend.

What most of the community can't understand is why anyone would be foolish enough to pursue such a completely suicidal course.

What do you think slight, did I capture the essence of it?

Kind of... the dispute does not stem as much from early versions of Linux as it does from the 2.4.x version of the linux kernel.

In the begining, their was Minix. Minix was a Unix clone used by many college students when learning programming and OS building. Linus Torvalds used what he had learned about minix to build the early versions of Linux. This is where Unix and Linux cut ties, according to Linus. Since then (1992), linux has gone through many variations, and has had code added by thousands of developers. Some of those developers happened to work for IBM. This is where it starts getting fuzzy. IBM and SCO had worked together on a project to combine SCO systemV UNIX and IBM's AIX so as to make them operate with each other better. This 'project' went nowhere, and the contract between IBM and SCO was disolved. Shortly after, according to SCO at least, they began looking at Linux source code and determined that parts of systemV were included in the 2.4.x linux kernel. They believe that this code was 'leaked' into linux through IBM. They in turn sued IBM for 1 billion dollars (now increased to 3 bn), and claimed breach of confidentiality. Since then IBM and RedHat have countersued SCO, and the entire dispute has found it's way to the Utah court system. Strangely enough, SCO has not shown the world the code that it believes it owns. They did show several slides of source code at a trade show about 4 months ago, but the code in question on those slides turned out to be public record (i.e. code that you or I could find in college textbooks or by doing a google search) and most of it was BSD related, and not from systemV. Novell has also stepped in. Novell claims that when they sold systemV to SCO, that they never sold IP rights to the code, and that SCO has no right to sue IBM for appropriating IP that did not belong to SCO in the first place. IBM has filed motion for discovery (in an effort to force SCO to show the code that they believe is in violation) and SCO has delayed, and delayed, and delayed, and filed motions for extensions, and delayed some more. Point being, they don't want to show the code. The possiblity that SCO will win money from IBM has been enough for SCO to find investors, so the longer they stretch this out, the better for them. Personally, I don't believe that there is any such 'infringing code'. Code similarities most certainly exist, but the linux kernel tree is extremly well documented, with every piece of code being labeled with a name, e-mail address, and contact info for the coder who submitted it. You or I could look through the linux kernel archive, all the way back to it's humble beginnings in 1992, and see that all of the code is original, or at the worst, having been taken from public record.

Speaking of 'investors', guess who happens to be on the list? I'd give you a hint, but you won't need one. Yes, it's true, shortly after the lawsuit was filied, Microsoft pumped $150 million into SCO for 'a systemV license'. Now, according to some, Microsoft has been using SCO as a puppet in it's campaign against Linux, and that their purchase of a systemV license was only done as a front to pump money into SCO.

Groklaw is your best bet for keeping up to date on the fiaSCO. I check it every morning, and I would dare to say that I have read about 3/4ths of the motions and briefs filed in their entirety.

slight

Logged

I once beat Drizzt Do'Urden at thumb wrestling.
Guardian_Tenshi
Global Moderator
*****
Karma: +53/-26

Offline

Gender: Male
Posts: 1114

276733708 276733708 clanguardian2003 Ol+Grimmy
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #20 on: January 17, 2004, 01:21:21 AM »
Reply with quote

I brought my laptop home for the weekend, and thought it would be cool to ssh into the schools unix machine.  I was able to log on, but for some reason, that was about all i was able to do.  I thought that I would be using all the commands available to the schools machine when I ssh-ed in... apparently, I had a mistake in logic somewhere.  I tried to look at the one homework file we have "assign1.sp04"  Since she hasn't talked about vi yet, and apparently the campus machines don't have emacs working on them...I used the following command.

"mp%" is our prompt, the mp tells us that on the schools "mp" machine as opposed to the "ux" machine, there isn't really difference, just for their reference i think, and so students know they got into the machine properly.
Code:

mp% pico assign1.sp04
Sorry, I don't know anything about your "cons25" terminal


Okay, so that didn't work...and i thought the system admin was talking to me...but no big deal...let's try vi.

Code:

mp% vi assign1.sp04
cons25: Unknown terminal type
I don't know what kind of terminal you are on - all I have is 'cons25'.
all YOU have!? who is YOU!?? How are you talking to me??  This is so not good to be happening at 1am...I'm very confused.  The worse thing is that it then OPENED the file...and i've never used vi before...  the command :q didn't close the file like you so told me it would...but thankfully, i have a BACKUP COMPUTER on stand-by.  the command is :Q! yes ! included...<<sigh>>  anyway, it was that point, that i got scared and thought i'll finish it later...Porter at least helped me understand all the commands, now i just have to type up what they mean to me...oh yeah...

changing unix subjects...going back that chmod question...did we know that my version of freeBSD has 4 thingys?  as in instead of chmod 666 it should have been chmod 0666  or 0777 I think we messed that up too...but not sure.  Whatever, i think i'm going to sleep now.

The Tenshi-nator
               
Logged

Guardian_Tenshi
Global Moderator
*****
Karma: +53/-26

Offline

Gender: Male
Posts: 1114

276733708 276733708 clanguardian2003 Ol+Grimmy
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #21 on: January 17, 2004, 01:44:00 AM »
Reply with quote

two more notes i forgot..we actually started talking about the C compiler...the command line used to execute it GNU is apparently 'g++' 

Also, can you remind me what the command similar to ps would be that shows me what I need to "kill" to release my IP?  just a thought...could be useful...

Tenshi
Logged

Terraji
Admin Team
CSR Connoisseur
*****
Karma: +35/-15

Offline

Gender: Male
Posts: 789

terraji@hotmail.com
View Profile E-Mail
Re:Unix Class tells you good things...
« Reply #22 on: January 19, 2004, 07:02:16 PM »
Reply with quote

After a couple of loooooong days I am now a C master.
Java and its acessable, well-documented libraries and lack of pointers is for wussies
Logged
Porter
[Wumpa]
Board Admin
*****
Karma: +176/--88

Offline

Gender: Male
Posts: 3910

Wumpa+Porter
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #23 on: January 19, 2004, 07:38:54 PM »
Reply with quote

Quote from: Guardian_Tenshi on January 17, 2004, 01:21:21 AM
Code:

mp% pico assign1.sp04
Sorry, I don't know anything about your "cons25" terminal


Code:

mp% vi assign1.sp04
cons25: Unknown terminal type
I don't know what kind of terminal you are on - all I have is 'cons25'.

This is another issue. The box you're connection to "knows" what your console's capability's are based on an environment variable. Your console type is currently set to "cons25" which is the most very basic type you can get. I have never encountered this issue before, so this is the best lead I can give you to follow.

Quote:
changing unix subjects...going back that chmod question...did we know that my version of freeBSD has 4 thingys?  as in instead of chmod 666 it should have been chmod 0666  or 0777 I think we messed that up too...but not sure.  Whatever, i think i'm going to sleep now.

That extra bit controls some options such as the "sticky bit" and whether a program can "suid". There's some more things for you to research. As far as I know, those bits exist on all *nix distributions, including Mac OS X at least.
« Last Edit: January 19, 2004, 07:43:08 PM by Porter » Logged

[Wumpa] Porter
  --Silent, professional, lethal... sometimes.
Guardian_Tenshi
Global Moderator
*****
Karma: +53/-26

Offline

Gender: Male
Posts: 1114

276733708 276733708 clanguardian2003 Ol+Grimmy
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #24 on: January 22, 2004, 06:41:21 PM »
Reply with quote

Quote from: Porter on January 19, 2004, 07:38:54 PM
Quote from: Guardian_Tenshi on January 17, 2004, 01:21:21 AM
Code:

mp% pico assign1.sp04
Sorry, I don't know anything about your "cons25" terminal


Code:

mp% vi assign1.sp04
cons25: Unknown terminal type
I don't know what kind of terminal you are on - all I have is 'cons25'.

This is another issue. The box you're connection to "knows" what your console's capability's are based on an environment variable. Your console type is currently set to "cons25" which is the most very basic type you can get. I have never encountered this issue before, so this is the best lead I can give you to follow.

Going back to this idea/question, etc...My TA and professor both suggested using 'keylogin', the man pages don't exactly help me much on what this does though, and when I try to use I get the following output/error.

Code:

netname lookup failed -- make sure the system doman name is set.

So I assume that means my computer needs a domain name

i looked into getdomain and setdomain, but i'm not sure that's the right idea either...anyone think they could help shed some light on this before I try something and mess up my comp?

Tenshi
Logged

Porter
[Wumpa]
Board Admin
*****
Karma: +176/--88

Offline

Gender: Male
Posts: 3910

Wumpa+Porter
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #25 on: January 22, 2004, 10:28:18 PM »
Reply with quote

You're going beyond me. One thing you should take note of-- the "sections" in man pages have meanings. Section 1 is user programs, sections 2 and 3 are the standard libraries, which only apply when you're writing code. Section 8 is system utilities. I might not have those dead on, but my point is that if you see something in sections 2 or 3, it's a C function, and not a command line program you can use. That's what getdomain and setdomain sound like to me: getdomain() and setdomain().
Logged

[Wumpa] Porter
  --Silent, professional, lethal... sometimes.
Porter
[Wumpa]
Board Admin
*****
Karma: +176/--88

Offline

Gender: Male
Posts: 3910

Wumpa+Porter
View Profile WWW E-Mail
Re:Unix Class tells you good things...
« Reply #26 on: January 24, 2004, 01:21:40 PM »
Reply with quote

You should read this article Tenshi. It will explain some background things:

http://www.over-yonder.net/~fullermd/rants/bsd4linux/bsd4linux1.php
Logged

[Wumpa] Porter
  --Silent, professional, lethal... sometimes.
Pages: [1] Reply Notify of replies 
CSReloaded Forums  |  General Category  |  Help & Troubleshooting (Moderator: Guardian_Tenshi)  |  Topic: Unix Class tells you good things...
Jump to: 

Powered by PHP CSReloaded Forums | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
Powered by MySQL
:[ Site Design by Ryo, scripts and backends by Porter and Ryo, banner by Supafly! Powered by PHP and MySQL ]:
Page created in 0.241 seconds.