LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2008, 06:00 PM   #1
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
software for normaluser only


hi,
this probably has come up before but my searaches haven't worked.
I've got a normaluser account on a shared machine which I ssh into. No root access nor access to the superuser at all. The machine is missing some of my favourite tools such as mc. Can I arrange a local installation of it for myself only?

I have a bin directory in my home, where I put various scripts, and I'm sure I could put other executables there, such as mc. But then again, what about the dependencies and the libraries? I would need to have local versions of them as well.

Any advice on this? Cheers!
 
Old 02-04-2008, 06:15 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Quote:
Originally Posted by stabu View Post
hi,
this probably has come up before but my searaches haven't worked.
I've got a normaluser account on a shared machine which I ssh into. No root access nor access to the superuser at all. The machine is missing some of my favourite tools such as mc. Can I arrange a local installation of it for myself only?

I have a bin directory in my home, where I put various scripts, and I'm sure I could put other executables there, such as mc. But then again, what about the dependencies and the libraries? I would need to have local versions of them as well.

Any advice on this? Cheers!
If you can simply copy an executable into your homedir,run it, and it works, you're all set. You may want to add ~/bin into your path so you don't have to type in the full path to the executable.

If you copy the exec file & it won't just run, then you'll probably have to recompile from source... in which case, you can specify the install directory at configure time, i.e.

./configure --prefix=/home/briank/local

... and then when you "make install" it will put all the libs and such you need into ~/local. Of course, if you need to compile against any libs, then you'll need those libs installed on the machine somewhere - this is where it gets difficult, as some libs will be already installed (in /usr/lib for example), and some won't - those you'll need to compile & link against by sending flags to the compiler.
 
Old 02-04-2008, 06:33 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
You would need the binary, library and any other files that the command would need. What is the distro on the remote machine? If you install locally a package for that distro, it may already have the libraries and dependencies needed.

For example, suppose the server is running FC6. You could download the rpm for midnight commander from rpm.pbone.net and use "unrpm" on your own machine or that one to extract locally the files in the package. This won't run the installation scripts however, which you couldn't anyway because they would need write access to system directories. Another way of doing this would be with "rpm2cpio <package-name>; cpio -idv <cpiopackagename>".

Most packages will install files to /usr/bin, /usr/lib/ (or /usr/lib64/) & /etc. You could have your local versions, such as $HOME/usr/bin; $HOME/usr/lib/ & $HOME/etc.

For $HOME/bin/ and $HOME/lib/ make sure your $HOME/.bash_profile contains:
PATH=$PATH:$HOME/bin/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export PATH LD_LIBRARY_PATH

A config file in /etc/ may create a problem. Read up on the command's options. It may have a command option to use a different config file or it may use a local hidden config file instead if found. Such as a $HOME/.vimrc file for the vim text editor. Another option is to create an alias the uses a local config file instead of the default.

Good Luck!
 
Old 02-05-2008, 04:46 AM   #4
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438

Original Poster
Blog Entries: 5

Rep: Reputation: 32
Hi,

Many thanks for your considered answers. It confirms my idea that this could be easy or difficult depending on the type of package and its dependencies. As I said, I have scripts in $HOME/bin that is already very much part of my $PATH. I hadn't thought about mirroring the LFS structure in $HOME though, that's a good idea, and then specifying the options when compiling.

Manual compiing seem to be the way to go here, errs on the side of caution , so to speak, and of course it gives you the necessary control, whereby you can specify everything.

Thanks for the advice on rpm, it's actually a debian machine ... and though it would be nice to have options for apt-get installing stuff this way, as I mention, somehow, it seems more prudent to download the source and hand-compile.

Thanks for the advice, much appreciated. Cheers!

Last edited by stabu; 02-05-2008 at 04:48 AM.
 
  


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
New backup software fills huge open source software gap! gacott Linux - News 0 12-26-2007 02:57 PM
LXer: Free software group challenges educational software patent LXer Syndicated Linux News 0 01-26-2007 08:21 AM
LXer: Aplix and MontaVista Software to Develop Software for Mobile Linux LXer Syndicated Linux News 0 12-06-2006 03:03 PM
LXer: Software reuse and DSO -- breaking the rules of embedded software development LXer Syndicated Linux News 0 04-20-2006 02:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:22 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
Open Source Consulting | Domain Registration