LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-15-2009, 12:13 PM   #1
grizzyfizzy
Member
 
Registered: Jul 2009
Posts: 35

Rep: Reputation: 15
Question How do i install samba, terminal says segmentation faulty tree


I recently installed ubuntu 9.04 on a computer and need to figure out how to connect it to the domain. I have tried a few programs such as samba and Open Live or something like that and cant seem to figure it out. Whenever I try to install samba it doesnt seem to install correctly. Am I looking for an icon on the desktop or what. I am used to windows not linux. Also I tried with Open Live but at 93% it had an error with Post installation. Then I tried to find it on my computer but nothing. Even if you cant answer all of the question any information is welcome.
 
Old 07-15-2009, 12:37 PM   #2
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 164

Rep: Reputation: 16
Are you using the package manager to install samba? Not sure on Ubuntu (I am a Debian user. Ubuntu is Debian based), but on my system it is under System emnu -> administration -> Synaptic Package amanger. Unlike windows, Linux has a nice package manager. You let it deal with installing most programs. When you install your base OS, it has only what it needs to run. Many other pieces of software that other programs need may not be installed. The package manager will install them for you. Alternately, you can use the command line.
Open a terminal as the root user (Applications->Accessories->Root terminal and enter your root password when asked) type
Code:
apt-get install samba
Apt is the command line package manager. Type that and just sit back and watch.

Hope this helps. I had a lot of trouble with the same thing when I made the switch.
 
Old 07-15-2009, 12:45 PM   #3
grizzyfizzy
Member
 
Registered: Jul 2009
Posts: 35

Original Poster
Rep: Reputation: 15
I tried to do it that way but it didnt seem to work. It still had a problem. Even under su.
 
Old 07-15-2009, 12:51 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
You're not going to have an icon that executes some application named samba. Samba is a service that runs in the background and provides file and print services to all manner of SMB/CIFS clients, including the numerous versions of Windoze. Once you have Samba properly installed (using your package manager as discussed by dpeterson3) and configured, Samba shares (including directories you choose to share on your Windoze machine) will be accessible via a command line client or your favorite GUI file browser (Nautilus on an Ubuntu machine).

Feel free to refer to the Samba documentation to help you get your configuration set up correctly.

If you're having problems installing Samba, you'll need to provide more information for someone to help you. See the link in #4 in my signature below to help you provide the information needed.
 
Old 07-15-2009, 12:53 PM   #5
grizzyfizzy
Member
 
Registered: Jul 2009
Posts: 35

Original Poster
Rep: Reputation: 15
I am sorry. I am new to ubuntu and therefore almost know nothing. So I guess my next question is whether or not to use Samba. Which program would you refer?
 
Old 07-15-2009, 01:03 PM   #6
grizzyfizzy
Member
 
Registered: Jul 2009
Posts: 35

Original Poster
Rep: Reputation: 15
I tried to follow the instructions in the howto4.txt but it still didnt seem to work for me. It says to put in
$ cd samba4/source
$ ./configure
$ make
and after the first command it says bash: no such file or directory
 
Old 07-15-2009, 02:23 PM   #7
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 164

Rep: Reputation: 16
You mentioned you needed to join a domain. Can you download files from the internet to that machine? If not, there is your problem. If your connection is fine, post your sources.list file. It controls where the manager gets packages from.
Code:
gedit /etc/apt/sources.list
When I switched to linux, my sources were not set up correctly so my package manager couldn't work. Here is a site on setting up your sources.
https://help.ubuntu.com/community/Repositories/Ubuntu

You shouldn't have to use the make command if you install from the package manager.
 
Old 07-15-2009, 02:54 PM   #8
grizzyfizzy
Member
 
Registered: Jul 2009
Posts: 35

Original Poster
Rep: Reputation: 15
I installed gedit which is the program that it requested that I install after I typed in the command that you gave me. it then pulled up a page with a bunch of information that makes no sense to my windows mind. It mainly talks about how Jaunty is restricted and to see the site for details. Any info on this? My terminal is also working again. I rebooted the system and it works. Thank you.

Last edited by grizzyfizzy; 07-15-2009 at 02:57 PM.
 
Old 07-15-2009, 03:09 PM   #9
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 164

Rep: Reputation: 16
Sorry about the gedit thing. Most commands translate directly from Debian to Ubuntu, but not all. Post a copy of that file. If it has errors in it, it might have a clue as to why you can't install samba correctly. Just open it with the command above, copy it, and paste it here.
 
Old 07-15-2009, 03:24 PM   #10
grizzyfizzy
Member
 
Registered: Jul 2009
Posts: 35

Original Poster
Rep: Reputation: 15
The first time it showed all of the files and unfortunately now it shows a blank file. I do not know what happened.
 
Old 07-15-2009, 03:36 PM   #11
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 164

Rep: Reputation: 16
Did you run it as root? Shouldn't matter, but to be sure. Secondly, make sure you typed or copyed the command exactly. If not, gedit will create a new file with the new name. If both are correct, type this into a terminal.
Code:
cd /etc/apt
ls
The ls command lists everything in the file. You should see a file called sources.list. If not, something went very, very wrong and it needs to be recreated.
 
Old 07-15-2009, 04:27 PM   #12
grizzyfizzy
Member
 
Registered: Jul 2009
Posts: 35

Original Poster
Rep: Reputation: 15
Okay I will give it a try

Last edited by grizzyfizzy; 07-15-2009 at 05:11 PM.
 
Old 07-15-2009, 05:03 PM   #13
grizzyfizzy
Member
 
Registered: Jul 2009
Posts: 35

Original Poster
Rep: Reputation: 15
It worked this time. Thanks
apt.conf.d sources.list trustdb.gpg trusted.gpg~
secring.gpg sources.list.d trusted.gpg
#deb cdrom:[Xubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main multiverse restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ jaunty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ jaunty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty universe
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb http://security.ubuntu.com/ubuntu jaunty-security universe
deb-src http://security.ubuntu.com/ubuntu jaunty-security universe
deb http://security.ubuntu.com/ubuntu jaunty-security multiverse
deb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse
 
Old 07-16-2009, 11:29 AM   #14
grizzyfizzy
Member
 
Registered: Jul 2009
Posts: 35

Original Poster
Rep: Reputation: 15
I found this yesterday but have no idea what it means. I hope you someone here does. It seems to mean that my version of Ubuntu Jaunty Jackalope is restricted and not a full thing for some reason.
 
Old 07-16-2009, 12:47 PM   #15
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 164

Rep: Reputation: 16
Sorry about the slow reply. I have been dealing with a PSP that doen't want to play nice.

Your sources.list looks fine. The restricted is susposed to be there. Not sure exactly what it means, but I think it is there to make sure you don't get testing or unstable packages. Try this:
Code:
su
apt-get update
apt-get upgrade
apt-get install samba
The second line will update your package lists. That makes sure your system knows where it can go to get packages. The next line will update your system. Then, try installing samba. It may fix your problem.
If that doesn't work try this
Code:
su
aptitude install samba
Aptitude is a more advance package manager. It may be able to solve your problem for you. If it asks you to accept solution, go ahead. It does nothing without permission. If it fails, post the error.
 
  


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
Install linux on ibook G4 with faulty drives. oracle_dfx Linux - Laptop and Netbook 3 01-30-2008 09:44 AM
Samba: tree connect failed: NT_STATUS_BAD_NETWROK_NAME Ryuu Linux - Networking 2 05-01-2007 11:47 AM
How to copy files from an entire directory tree using terminal commands??? lusius188 Linux - General 3 04-10-2006 11:23 AM
How do I remove an etire directory tree from terminal rickh Fedora 1 04-13-2005 08:05 PM
Samba problem..-tree connect failed.. cobrichka Red Hat 2 01-04-2004 12:00 PM

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

All times are GMT -5. The time now is 12:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration