Author Topic: connecting a Nspire to a Linux comp?  (Read 11512 times)

0 Members and 1 Guest are viewing this topic.

Offline Smitty

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 18
  • Rating: +0/-0
    • View Profile
connecting a Nspire to a Linux comp?
« on: September 24, 2010, 05:45:29 pm »
Yeah, so I kind of don't have Windows. Mostly because it sucks. So, since this is a site full of programmers, I'll bet somebody else here has Linux. So, does anybody know how to connect the Nspire to Linux? I'm running Ubuntu 10.04, if that matters. I found this thing called Tilp, but I couldn't get it to do anything. Maybe I'm just using it wrong.

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: connecting a Nspire to a Linux comp?
« Reply #1 on: September 24, 2010, 05:48:08 pm »
TILP2 from SVN works with Nspires, although it may require root privileges and/or an edit to some file to allow your user to access USB.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: connecting a Nspire to a Linux comp?
« Reply #2 on: September 24, 2010, 05:51:55 pm »
sudo tilp should do it. It'll be kinda glitchy though, because the ubuntu repo only has 1.13.

I'm in your boat btw. I use Mint 9 (based on Ubuntu 10.04) so I do pretty much the same stuff as you. Plus, running from a terminal lets you see what your connection is doing better, since it prints it all out while it runs. Don't worry, you'll still use the gui :P.

No need to mess with anything super deep in your case, since you're not using a public computer you'll probably have root access.

If you don't want to open a terminal every time, you can make a launcher:

Name: TiLP
Description: Whatever you want
Command (important one :P): gksu tilp

Edit: The reason you need root access, I'm not sure. I just know it works, and it doesn't give me any viruses. The file browser will always start in the root's home though. That's a little annoying, but liveable. just don't try to use OSes above 1.6 unless you upgrade to the latest TiLP version. OS installs will work, but file transfers won't in 1.13, since TI switched to a new method. 84+ stuff works though, just make sure it's detected as an 84+, not an nspire.

Hope that helps.
« Last Edit: September 24, 2010, 05:58:04 pm by willrandship »

Offline Smitty

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 18
  • Rating: +0/-0
    • View Profile
Re: connecting a Nspire to a Linux comp?
« Reply #3 on: September 24, 2010, 06:07:11 pm »
Thanks guys, I'll try that. Still waiting for my 84+ keypad, so no 84+ stuff yet. But at least I'll be prepared now. Now I just gotta download some games, and maybe Mirage OS or something...
edit: alright, bad news. it's a new calc, so it came with OS 2.0.0.1188(why does TI have such a long OS numver?) But you said newer OSes work with a new TiLP, right? So, where do I get that?
« Last Edit: September 24, 2010, 06:18:51 pm by Smitty »

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: connecting a Nspire to a Linux comp?
« Reply #4 on: September 24, 2010, 06:08:29 pm »
You probably want to try DCS for the Nspire, as I believe Mirage OS crashes (does BrandonW's patch work in newer OS versions?)


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: connecting a Nspire to a Linux comp?
« Reply #5 on: September 24, 2010, 06:09:35 pm »
* DJ Omnimaga misses the days (which ended not so long ago) where the TI-Nspire came with the 84+ keypad

Also when you get the keypad, to get Mirage to work on the Nspire you need a patch. Otherwise you should probably use Doors CS (if you dislike the mouse inteface you can just run your programs from the PRGM menu anyway), which is fully Nspire-compatible.

Welcome here by the way :)

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: connecting a Nspire to a Linux comp?
« Reply #6 on: September 24, 2010, 06:13:21 pm »
Yeah, I like the Homerun hooks. The mouse would be fine for me, except for that it's kind of slow. The shortcut keys were a lifesaver :P

DCS is pretty fancy. By the way, If you're not going to use ndless, I recommend OS 1.6, because if it crashes you don't have to reinstall the OS to get 84+ support back. (you still lose everything though :( ) I Really want a real z80 emu on the nspire, with save states and such.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: connecting a Nspire to a Linux comp?
« Reply #7 on: September 24, 2010, 06:20:46 pm »
Does OS 2.0.x do that too?

Offline Smitty

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 18
  • Rating: +0/-0
    • View Profile
Re: connecting a Nspire to a Linux comp?
« Reply #8 on: September 24, 2010, 06:22:07 pm »
K, so I edited a post because there were no new posts at the time, but now there is and I don't think anyone is reading it. So.
"edit: alright, bad news. it's a new calc, so it came with OS 2.0.0.1188(why does TI have such a long OS numver?) But you said newer OSes work with a new TiLP, right? So, where do I get that?"

Offline Geno

  • LV2 Member (Next: 40)
  • **
  • Posts: 31
  • Rating: +2/-1
    • View Profile
Re: connecting a Nspire to a Linux comp?
« Reply #9 on: September 24, 2010, 06:35:43 pm »
I don't have an nspire, might not be much help.  First off, I think tilp needs to be run as root, it's the only way I've ever gotten it to work.  As for the tilp download, have you checked your package manager?  Mine has tilp-svn, which I assume is the latest.  Not sure where the svn is located if not, maybe someone else can help.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: connecting a Nspire to a Linux comp?
« Reply #10 on: September 24, 2010, 07:34:33 pm »
Eh, you have to build it from source. I never really got the hang of that  ::) maybe you did.

Here's a link at Ticalc.org

If you do build it, think you could package a deb for me? :P

http://www.ticalc.org/archives/files/fileinfo/374/37480.html

Edit: and Geno, the latest TiLP in any Ubuntu repo is 1.13. No source package available. (not really needed though, since Ticalc.org has one)

You don't really need to update unless you're planning on messing with nspire documents.

And DJ, OS 2.0 doesn't let the reset button erase everything. It just reboots the 84+ emu (idiots, TI are)

Edit2: You do know that you can't do anything but math and very poor BASIC on the nspire's os 2.0 and up, right? Ndless only works up to 1.7 right now. (and even that's still technically alpha stage) Only worthwhile stuff until Ndless 2.0 is 84+ stuff anyways.
« Last Edit: September 24, 2010, 07:41:14 pm by willrandship »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: connecting a Nspire to a Linux comp?
« Reply #11 on: September 27, 2010, 03:00:50 pm »
The only distribution which has up-to-date TILP packages, thanks to Jonimus, is Arch. On other distros, you need to compile TILP yourself. I made a helper script for this, which has been reported to work across multiple Linux distro types and versions: http://lpg.ticalc.org/prj_tilp/download/install_tilp.sh
It's linked to from the download page on the TILP website. As I wrote there,
Quote
Be sure to look inside it: you can find information on the packages you need for a successful compilation, and modify the path for the checkout and the $PREFIX where the binaries are installed.
(and get some information about the environment variables you need to modify if you choose to install in $HOME)
At the end of the process, the script also prints a pointer to the information you need to make TILP run as non-root user.

Hope that this helps :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline qazz42

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1130
  • Rating: +30/-12
  • hiiiiiiiii
    • View Profile
Re: connecting a Nspire to a Linux comp?
« Reply #12 on: September 27, 2010, 06:35:04 pm »
* DJ Omnimaga misses the days (which ended not so long ago) where the TI-Nspire came with the 84+ keypad

Also when you get the keypad, to get Mirage to work on the Nspire you need a patch. Otherwise you should probably use Doors CS (if you dislike the mouse inteface you can just run your programs from the PRGM menu anyway), which is fully Nspire-compatible.

Welcome here by the way :)

buuut, older versions of DCS would cause you to brick your nspire if you didnt have the nspire pad..

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: connecting a Nspire to a Linux comp?
« Reply #13 on: September 27, 2010, 07:19:06 pm »
Ouch yeah I remember some topics about it on Cemetech. And that sucks about the reset thing on OS 2.0. In my case, sometimes when a program crashes, it simply freezes during 3 seconds then automatically RAM clears, though. Sometimes all programs are hidden, though, so you need to do a second reset afterward (RAM) to unhide them.

Offline Smitty

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 18
  • Rating: +0/-0
    • View Profile
Re: connecting a Nspire to a Linux comp?
« Reply #14 on: October 23, 2010, 09:44:52 pm »
OK, got my 84+ keypad a few days ago, put some games on it via my brother's computer. I'm having issues with compiling TiLP. It's telling me I need a newer version of ticables installed, even though the one I have is the one it tells me I need to upgrade to. So does anybody have any links to the newest version of the libs? (ticables, ticalcs, tifiles, ticonv)