LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 07-10-2006, 02:37 PM   #1
cf13
LQ Newbie
 
Registered: Apr 2006
Posts: 20

Rep: Reputation: 0
debian translation needed & lots of questions


Hi!
I have to reinstall again freebsd, because I didn`t add myself to wheel group (well you can say I`m very newbie in the linux distros Iīve tried, I just add to every group I could see, actually not knowing what I was doing )
Anyway I started touching conf files like /etc/passwd and the system has become inestable.

So before I give it another try, I have to know if the problems I was getting were because of my mistakes or not.

First of all, I donīt think Iīm going to install from source, I have a pretty old machine, pentium 3 128 ram, and Iīm still on dialup so, is it necessary to install the ports tree in the installation?

Iīve tried portupgrade -PP with firefox but nothing happens, what is the difference with pkg_add?

And about pkg_add, without the -r options, still gets dependencies?
Iīve read in the openbsd documentation that they have -u option for upgrade an existing package, how to do it with freebsd, first uninstall it, or just download it normally (Iīve tried with firefox myself, but my connection get lost, and by the way pkg_add doesnīt support resume, does it? apt-get does it, right? and what about the -i options in openbsd?

Bein on dialup I would like to backup downloaded packages, I donīt try my self but Iīve read that in debian can be done by copying the files on /var/cache/apt/archives and then run apt-get update and upgrade, how to do something similar?
Actually I donīt know where pkg_add stores the packages, I look in /var/db/pkg but I donīt see any file.tgz or similar

Also where is the pkg_add conf file to change PACKAGESITE?, Iīve tried with export,setenv (with this one worked out, but when trying to dowload again, still use the default site).
when I added another user for me(in wheel group this time ) I chose bash, but I donīt see any ~.bashrc.

I also would like to do apt-get update and then upgrade like in debian, I know about freebsd-update, this needs the ports? how to get security updates?

Well, sorry for being so long guys , but just after the installation freebsd seems pretty fast to me, kde was lighter than in debian sarge, being this one an older version, so I really want to learn and use freebsd!

thanks
 
Old 07-10-2006, 03:29 PM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Quote:
Originally Posted by cf13
I have to reinstall again freebsd, because I didn`t add myself to wheel group (well you can say I`m very newbie in the linux distros Iīve tried, I just add to every group I could see, actually not knowing what I was doing )
Anyway I started touching conf files like /etc/passwd and the system has become inestable.
You shouldn't need to reinstall because you forgot to put yourself in the wheel group (unless you only have remote access but then you can't do the installation anyway). I can't even count the number of times I've forgotten. You just log in as root, edit /etc/group , and add yourself to the end of the correct line.

Typically, I only feel the need to add myself to the wheel and operator groups. The first one you know about, and the second lets you shutdown without becoming root or using sudo.

Don't edit /etc/passwd. Use "vipw" or read the man page for master.passwd really, really carefully and edit that (remembering to follow the steps to update the databases). Seriously, just use vipw (set EDITOR to something if you can't use vi).

Quote:
First of all, I donīt think Iīm going to install from source, I have a pretty old machine, pentium 3 128 ram, and Iīm still on dialup so, is it necessary to install the ports tree in the installation?
It's not necessary. Just don't install it.

Quote:
Iīve tried portupgrade -PP with firefox but nothing happens, what is the difference with pkg_add?
I think "portupgrade -PP www/firefox" would have worked better -- but I dont' know your specific command. And if firefox is not installed... remember the -N flag.

Quote:
And about pkg_add, without the -r options, still gets dependencies?
Yes, of course it still gets them. And if you're not getting what you want, set PKG_PATH to ftp://ftp.freebsd.org/pub/whatever... and then use "pkg_add ${PKG_PATH}/fullname-of-file-4.22.1.tgz" to force it to grab exactly what you want.

Quote:
Iīve read in the openbsd documentation that they have -u option for upgrade an existing package, how to do it with freebsd, first uninstall it, or just download it normally (Iīve tried with firefox myself, but my connection get lost, and by the way pkg_add doesnīt support resume, does it? apt-get does it, right? and what about the -i options in openbsd?
Just use portupgrade, there is no upgrade option of pkg_add. And I have no idea what -i does in OpenBSD nor how apt-get behaves. You lost me at the end... was that even a question?

Quote:
Bein on dialup I would like to backup downloaded packages, I donīt try my self but Iīve read that in debian can be done by copying the files on /var/cache/apt/archives and then run apt-get update and upgrade, how to do something similar?
Actually I donīt know where pkg_add stores the packages, I look in /var/db/pkg but I donīt see any file.tgz or similar
The tarballs are in /var/tmp when you use -Kr. The "-K" tells the program to keep them after installation. If you ever forget... just use "pkg_create -b pkg-name" to make a brand new tarball from the package installed on your system.

Quote:
Also where is the pkg_add conf file to change PACKAGESITE?, Iīve tried with export,setenv (with this one worked out, but when trying to dowload again, still use the default site).
when I added another user for me(in wheel group this time ) I chose bash, but I donīt see any ~.bashrc.
Add it in your startup scripts (create an empty .bashrc if you need one) and remember to export it. If you continue to have problems start a new thread with a detailed explanation of the issues you're having and the steps you've tried to solve them. This one is too long as it is and is too generic to approach this topic. Also... search the forums, I know this has been answered, in some fashion, before (by myself no less).

Quote:
I also would like to do apt-get update and then upgrade like in debian, I know about freebsd-update, this needs the ports? how to get security updates?
pkg_add -r freebsd-update

Nope you don't need ports. Apt-get doesn't exist on FreeBSD.

Last edited by frob23; 07-10-2006 at 03:31 PM.
 
Old 07-10-2006, 04:46 PM   #3
cf13
LQ Newbie
 
Registered: Apr 2006
Posts: 20

Original Poster
Rep: Reputation: 0
thanks frob, for answering so fast!

Quote:
Don't edit /etc/passwd. Use "vipw" or read the man page for master.passwd really, really carefully and edit that (remembering to follow the steps to update the databases). Seriously, just use vipw (set EDITOR to something if you can't use vi).
Yeah, thatīs what I think it cause the disaster.

Quote:
Just use portupgrade, there is no upgrade option of pkg_add. And I have no idea what -i does in OpenBSD nor how apt-get behaves. You lost me at the end... was that even a question?
-i shows the different versions available for a package, so you can choose from.
Searching more about portupgrade, I read that is a way to combine packages and ports, but I donīt going to use ports, so definitely forgotten.

Quote:
The tarballs are in /var/tmp when you use -Kr. The "-K" tells the program to keep them after installation. If you ever forget... just use "pkg_create -b pkg-name" to make a brand new tarball from the package installed on your system.
what a great info!!!! I almost get crazy searching for how to do backups, that info itīs not in the handbook, well, at least I didnīt see it.
Do you know any other manual with more in depth info, specially about pkg tools?

Quote:
Add it in your startup scripts (create an empty .bashrc if you need one) and remember to export it.
Actually I did it, but didnīt work, I edited the file directly, not with export (I donīt know if itīs the same) and I was afraid to touch the startup scripts.

Quote:
If you continue to have problems start a new thread with a detailed explanation of the issues you're having and the steps you've tried to solve them. This one is too long as it is and is too generic to approach this topic.
yes, I know I have to a lot, but Iīve been testing linux distros searching for one to be confortable with,get the global picture and then study the inner working.

I never thought of a *BSD, only a few months ago I never hear about them, and look where I am now!

thanks a lot
ruth
 
Old 07-10-2006, 06:49 PM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Quote:
Originally Posted by cf13
what a great info!!!! I almost get crazy searching for how to do backups, that info itīs not in the handbook, well, at least I didnīt see it.
Do you know any other manual with more in depth info, specially about pkg tools?
To be honest, I'm not sure. I've been using the system for a long time and more than once I've read the full manpages for the pkg utilities. The manpages are usually the best and most indepth resource. You'll also find a large selection of articles and books in /usr/share/doc/en/ (or whatever language you prefer). For a full mess of information, make sure you are at least familiar with the handbook (which you've mentioned), the faq, and new-users. The last one might be a little low level (since it's aimed at really new users and you're familiar with *nix) but it's short and a couple things it touches on may be new.

As for the ports and pkg system... it is probably worth a book of its own. There's the porters handbook but that's not really helpful if you're not writing your own. The man pages and sometimes even the .mk files (for ports not pkg_) are the only real way to get an indepth understanding.

Quote:
Actually I did it, but didnīt work, I edited the file directly, not with export (I donīt know if itīs the same) and I was afraid to touch the startup scripts.
Well, yeah... I meant the user scripts... startup was a slip of the fingers. export should be in the file... not what you edit it with. Something like:
Code:
PACKAGESITE=whatever ;export PACKAGESITE
in ~/.bashrc -- You need to open a new shell after this. Why it would not be showing up after that... I don't know. Further testing would be needed.


Quote:
I never thought of a *BSD, only a few months ago I never hear about them, and look where I am now!
Many years ago, I stumbled onto *BSD and gave it a shot. I remember doing a lot of reading at first but it gets better. Eventually you'll find that you're stuck with a system which runs perfectly... and you have nothing to do but actual work... not play around. And you'll get very comfortable finding the information you need. I didn't know (off the top of my head) where the tarballs would be or how to make sure they weren't deleted. But a couple seconds gave me this:
Code:
     -K      Keep any downloaded package in PKGDIR if it is defined or in cur-
             rent directory by default.
Oh, and also note: on my system... PKGDIR is defined so I think I said /var/tmp (which isn't even what mine is but that's because I knew you wouldn't have /usr/ports/packages/All) but since you won't have it defined... it will be in the same directory you are in when you type the command.
 
  


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
Kernel errors when accessing sound - translation needed! BroX Slackware 2 06-19-2006 04:33 AM
debian & HighPoint RocketRaid 454 howto needed RolusBogus Linux - Newbie 1 07-15-2005 11:33 PM
Wine Error Translation needed kak Linux - Software 2 12-21-2004 08:18 PM
mailserver with lots of features needed WiWa Linux - Software 4 04-26-2004 03:00 PM
Kernel Compiling Questions & HOWTO for Debian unstable gamehack Debian 3 01-04-2004 02:28 PM


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