LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do i install samba, terminal says segmentation faulty tree (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-install-samba-terminal-says-segmentation-faulty-tree-740290/)

grizzyfizzy 07-15-2009 12:13 PM

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.

dpeterson3 07-15-2009 12:37 PM

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.

grizzyfizzy 07-15-2009 12:45 PM

I tried to do it that way but it didnt seem to work. It still had a problem. Even under su.

weibullguy 07-15-2009 12:51 PM

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.

grizzyfizzy 07-15-2009 12:53 PM

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?

grizzyfizzy 07-15-2009 01:03 PM

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

dpeterson3 07-15-2009 02:23 PM

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.

grizzyfizzy 07-15-2009 02:54 PM

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.

dpeterson3 07-15-2009 03:09 PM

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.

grizzyfizzy 07-15-2009 03:24 PM

The first time it showed all of the files and unfortunately now it shows a blank file. I do not know what happened.

dpeterson3 07-15-2009 03:36 PM

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.

grizzyfizzy 07-15-2009 04:27 PM

Okay I will give it a try

grizzyfizzy 07-15-2009 05:03 PM

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

grizzyfizzy 07-16-2009 11:29 AM

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.

dpeterson3 07-16-2009 12:47 PM

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.


All times are GMT -5. The time now is 08:59 AM.