[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get: Command not found.



On Tuesday 02 August 2005 02:05, James A. Donald wrote:
> apt-get: Command not found.
>
> I am a newbie to linux.  I recently installed Debian on a computer
> that sits in a closet
>
> So I ssh in.  I got Samba working fine, after tinkering with the
> /etc/samba/smb.conf file to read:
>
> [global]
>         workgroup = workgroup
>         netbios name = linux
>         security = share
> [shareRW]
>         path =  /home/james/Documents/sharedRW
>         read only = No
>         guest ok = Yes
>
> and manually starting the daemons with
> nmbd -D
> smbd -D
>
> All was well
>
> But then I wanted it to automatically start the daemons on reboot, and
> I had no idea how to do that.
>
> So I said to myself, "well, surely Debian knows how to do that", so
> attempted to type
>
> apt-get update
> apt-get install samba smbclient
>
> Only to get the surprising message: apt-get: Command not found.

Clear cut example of running a command for which you have no permissions to 
run.  In a terminal window type "su" hit enter and type in the root password.   
Then type in "apt-get update" followed by "apt-get install X" (X is the 
program you want).  In a gui you can run synaptic, if you run it from a menu 
(i.e. you find it in kde menus somewhere) it will ask you for the root 
password.  If you run synaptic from a term. window, you must be root (or "su 
-c synaptic", which is the same thing, only when the command is done (you 
close synaptic) you are not root, but your regular user.)  As root 
"/etc/init.d/samba start" will start samba services.  If you get errors when 
you run that command post them back here, it would mean that you do NOT have 
samba installed correctly.  I can't help you with the vnc stuff.

HTH
snip

-- 
Damon L. Chesser
damon@damtek.com



Reply to: