Go to Post However I did tell my wife I wanted to lose 20lbs of ugly fat quickly. She told me to cut off my head. Go figure. - Ed Coleman [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-10-2007, 12:21
et1337's Avatar
et1337 et1337 is offline
et1337
AKA: Evan Todd
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Columbus OH
Posts: 42
et1337 is a glorious beacon of lightet1337 is a glorious beacon of lightet1337 is a glorious beacon of lightet1337 is a glorious beacon of lightet1337 is a glorious beacon of light
Arrow MCC18 Installer Script

I'm working on a sort of cross-platform development server, like a software repository and compiler service bundled together to work with a thin client.

Anyway, I just got MCC18 working on my Ubuntu installation, and it was too painful to be worth it.

So I'm wondering if it's possible to make some scripts/installers for Linux that can automagically install MCC18. Meaning, the user pops in the MPLAB CD, the script finds the MCC18 folder, copies the files over to /opt/mcc18, fixes p18cxxx.h (per this post) and maybe offers an option to install WINE.

Is this feasible? I am by no means an experienced Linux user, so I wouldn't know where to start.
__________________
There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order.
et1337
  #2   Spotlight this post!  
Unread 18-10-2007, 13:00
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: MCC18 Installer Script

You could write a bash script.

http://www.panix.com/~elflord/unix/bash-tute.html
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
www.google.com
  #3   Spotlight this post!  
Unread 18-10-2007, 14:39
et1337's Avatar
et1337 et1337 is offline
et1337
AKA: Evan Todd
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Columbus OH
Posts: 42
et1337 is a glorious beacon of lightet1337 is a glorious beacon of lightet1337 is a glorious beacon of lightet1337 is a glorious beacon of lightet1337 is a glorious beacon of light
Re: MCC18 Installer Script

How would I get it to install WINE or XAMPP? Also, how would I make it read from the CD drive?
__________________
There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order.
et1337
  #4   Spotlight this post!  
Unread 18-10-2007, 15:27
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: MCC18 Installer Script

Quote:
Originally Posted by ETodd View Post
How would I get it to install WINE or XAMPP? Also, how would I make it read from the CD drive?
The cdrom drive gets mounted at "/cdrom" in ubuntu. So you can copy files with something like this

Code:
sudo cp -r /cdrom/(mcc18 folder) /opt/mcc18
I believe opt requires root access to write to, so you will need to use the sudo command.

You can use apt to download and install wine and apache. Google apt commands.
  #5   Spotlight this post!  
Unread 18-10-2007, 15:38
et1337's Avatar
et1337 et1337 is offline
et1337
AKA: Evan Todd
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Columbus OH
Posts: 42
et1337 is a glorious beacon of lightet1337 is a glorious beacon of lightet1337 is a glorious beacon of lightet1337 is a glorious beacon of lightet1337 is a glorious beacon of light
Re: MCC18 Installer Script

Right, I've used apt plenty of times. So I can just put a "sudo apt-get" call in the script and it will install? Sweet.

Sorry, I've never written a linux script, obviously.
__________________
There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order.
et1337
  #6   Spotlight this post!  
Unread 18-10-2007, 15:46
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: MCC18 Installer Script

Quote:
Originally Posted by ETodd View Post
Right, I've used apt plenty of times. So I can just put a "sudo apt-get" call in the script and it will install? Sweet.
I've never actually tried it before, but when the shell runs a script it will run all of the commands as if you had typed them in, so it should work fine. Let us know when you finish this.. it will be a great tool for those of us who develop on Linux.
  #7   Spotlight this post!  
Unread 21-10-2007, 01:27
sciguy125 sciguy125 is offline
Electrical Engineer
AKA: Phil Baltar
FRC #1351
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Sunnyvale, CA
Posts: 519
sciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond repute
Send a message via AIM to sciguy125 Send a message via MSN to sciguy125 Send a message via Yahoo to sciguy125
Re: MCC18 Installer Script

Quote:
Originally Posted by ETodd View Post
Anyway, I just got MCC18 working on my Ubuntu installation, and it was too painful to be worth it.
I don't know what your procedure was, but I didn't have any problems on Fedora. I just copied C:\MCC18 from a windows installation. WINE was already installed and the compiler it just worked. I'm using piklab for my own projects though. I haven't tried it with the robot code.
__________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MCC18 C compiler 60 day grace window Japper Programming 4 21-02-2007 07:24
Variadic functions with mcc18 schroedinbug Programming 4 19-02-2007 00:51
Known Bug With mcc18 and Wine 0.9.22 ScottWalls Programming 1 05-11-2006 15:03
Using MCC18 in a custom program EHaskins Programming 15 25-04-2006 23:35
Napster Installer Wanted MattK Chit-Chat 2 12-11-2002 20:43


All times are GMT -5. The time now is 06:45.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi