Re: version/revision control software for things mostly not source

2010-04-18 Thread Ivan Rambius Ivanov
Hello,

On Sun, Apr 18, 2010 at 11:34 PM, Dan Naumov dan.nau...@gmail.com wrote:
 I've looked at SVN and it looks reasonably easy to grok, but reading
 the Version Control with Subversion book... it seems there is no
 actual way to truly erase/delete/destoy/purge a part of an existing
 repository? This sounds rather weird and annoying. What if I decide
 that project XYZ is beyond redemption and abandon it, I delete the
 working copy of it, but all history is still in there, gigabytes upon
 gigabytes of data. With no way to remove it, it sounds like a really
 big limitation.

You can filter data out of a repository using svnadmin dump command.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problems with Xorg after portupgrade

2009-04-19 Thread Ivan Rambius Ivanov
Hello Manolis,

On Sun, Apr 19, 2009 at 6:02 PM, Manolis Kiagias son...@otenet.gr wrote:
 Warren Block wrote:
 On Sun, 19 Apr 2009, Manolis Kiagias wrote:

 Browsing your xorg.conf, you forgot to add the keyword Option in front
 of AllowEmptyInput. And actually this should also go the ServerFlags
 section.
I corrected this error but the screen is still blank and black.


 A ServerFlags section is optional; those entries can also go in the
 ServerLayout section.  That simplifies xorg.conf a little.
I also followed this advice - still no luck.


 -Warren Block * Rapid City, South Dakota USA

 Good to know, thanks. The Xorg upgrade was bumpy for me too - too many
 changes at once.


I even tried with Manolis's xorg.conf - same results.

I use startx as a non-root user and I invoke startkde from .xinitrc,
but kde does not appear. The screen just blinks once or twice. I also
tried to enable xdm from /etc/ttys - same result.

Indeed, I think the xorg.conf is OK and no errors appear in the log,
but still I can not get it running.

Regards
Ivan


-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Problems with Xorg after portupgrade

2009-04-18 Thread Ivan Rambius Ivanov
Hello,

This week upgraded my Acer TravelMate 4060 laptop from FreeBSD 7.0 to
FreeBSD 7.1 and also csup'ed my ports and portupgraded them and I am
not able to start X correctly. When I invoke startx, it tries to start
it and then the screen goes blank and black, nothing is seen on it and
I am no able to kill X using ctrl-alt-backspace or swtich to another
terminal and I have to cold reboot my machine.

uname -r shows 7.1-RELEASE-p4

The version of xorg metaport is 7.4_1, the version of xorg-server is 1.6.0,1.

After I did the portupgrade I rebooted my machine and the KDE display
manager failed to appear, so I disabled it from /etc/ttys for easier
debugging. After I logged in to a shell, I called startx and the
screen went blank and black. After I rebooted the machine I invoked

X -configure

as root and run

X -config /root/xorg.conf.new

and again the same problem. I then tried to make ctrl-alt-backspace
work and I added the following section at the end of
/root/xorg.conf.new

Section ServerFlags
Option DontZap off
EndSection

and called X -config /root/xorg.conf.new again - same results and
still could not kill ther server. I followed /usr/ports/UPDATING,
entry from 20090123 and disabled moused and added

Option AllowEmptyInput off

in the ServerLayout section. Again X refuses to start appropriately.

I would be very grateful if you help me in resolving this issue.

I am attaching my xorg.conf file and the logs from /var/log/Xorg.0.log
and I will happily provide more information if needed.

Thank you very much in advance.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com


xorg.conf.new
Description: Binary data


Xorg.0.log
Description: Binary data
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: Compiling everything myself?

2009-03-16 Thread Ivan Rambius Ivanov
Hello

On Tue, Mar 17, 2009 at 3:11 AM, Daniel annonymejens+...@runbox.no wrote:
 Hi list

 This may be a basic question, but a question non the less.

 I have been using Debian for some years and have gotten tired by system 
 freezes, having a slow system, and having a package system that requires that 
 I install every skin of KDE to get KDE up and running.

 I hope FreeBSD will be better! :-)

 What I want to know is the following: Do I get the option of fetching sources 
 and running through a guided compilation; or do I get binaries (like Debian) 
 only?

You can get the system's sources using csup or cvsup, please check the
handbook at [1]. The system consist of the kernel and the world. You
can rebuild the kernel and the world following [2].

For applications such as KDE you can use the ports tree or install the
as packages. These options are described at [3].

Regards
Rambius

P.S. I do not understand what you mean with getting binaries like
Debian only. As far as I remember in (but I may be wrong) Debian
using its package management system you can build pretty much
everything and it treats even the linux kernel as a package. This is
different in FreeBSD - you do not install the kernel as a package or
port.

[1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html
[2] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
[3] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Free Pascal

2009-03-12 Thread Ivan Rambius Ivanov
Hello,

On Thu, Mar 12, 2009 at 6:19 AM, Ian Fitzgerald i...@ozemail.com.au wrote:
 Ivan Rambius Ivanov wrote:

 Hello,

 On Fri, Mar 6, 2009 at 12:46 AM, Ian Fitzgerald i...@ozemail.com.au
 wrote:


 Ivan Rambius Ivanov wrote:
 cd /usr/ports/lang/fpc
 pkg_add -r fpc


 You should do

 # cd /usr/ports/lang/fpc
 # make install

 Please read Chapter 4 of the hadbook at [1] for more information on
 how to use FreeBSD ports.

 Regards
 Rambius

 [1]
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html



 Hi. Thanks for your help. make install demands a distribution, and without
 broadband at present, I used what I could get. Unfortunately the downloaded
 tarball was 2.2.2, and the make file was set up for 2.2.0, and complained. I
 don't know whether simply changing the references in the makefile to 2.2.2
 is a fix or complication, so I may have to wait for the broadband to cut in
 (new plan).

If you are not connected to internet all the time you can use

# make fetch

or

# make fetch-recursive

for the port you want to install. fetch will download the distfiles
for the port and fetch-recursive will download the distfiles for the
port and its dependencies. Then you can disconnect and proceed with
'make install'

Regards
Rambius

P.S. Please remember to put freebsd-questions@freebsd.org in CC and
not only me.

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: kindle2

2009-03-12 Thread Ivan Rambius Ivanov
Hello,

On Fri, Mar 13, 2009 at 4:11 AM, Pat Lackie lack...@cs.com wrote:
 Do you allow reformatting the hand book into kindle2

Please check the copyright notice of the FreeBSD Handbook at [1].

Regards
Rambius

[1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/LEGALNOTICE.html

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How do I determine the FreeBSD world revision/version?

2009-03-06 Thread Ivan Rambius Ivanov
Hello,

On Fri, Mar 6, 2009 at 3:12 PM, Ian Bonnycastle ibo...@gmail.com wrote:
 If I have a
 particular FreeBSD system, and know its a modified kernel, how can I tell
 what base was originally on it?
Actually, why would you want to know this and how do you define base?

I have a laptop on which I installed years ago FreeBSD 5.5. Then I
upgraded the sources using cvsup to 6.0 and rebuilt it, than again to
6.1, 6.2 and up to 7.1. So what is the base in this case?

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Ports Options

2009-02-20 Thread Ivan Rambius Ivanov
Hello,

On Fri, Feb 20, 2009 at 4:24 PM, Pieter Donche pieter.don...@ua.ac.be wrote:
 At the first install of a package via the ports collection (cd
 /usr/ports/../..; make install clean), if the package provides configuration
 options, you can check these on a menu screen,
 or accept all the defaults.

 If later on, you want to know what the set of the options were when you
 installed a port, how to find that out? I tried
 # cd /usr/ports/categoryname/portname
 # make
 hoping to see the menu again, but it doesn't show any menu, but says:
 ===  Found saved configuration for portname-version

 Where is that saved configuration kept ??
 How to get a menu displayed again so you can see and check the options
 you want?

make config will show you the menu with the port's options again.
make showconfig will show you the previously saved configuration.
make rmconfig will delete the saved configuration.

Please refer to [1] for more information on how to use ports.

Regards
Rambius

[1] http://www.freebsd.org/doc/en/books/handbook/ports-using.html

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to generate password hashes for vipw and chpass

2008-10-06 Thread Ivan Rambius Ivanov
Hello Adam,

On Mon, Oct 6, 2008 at 8:40 AM, Adam Zaleski [EMAIL PROTECTED] wrote:
 Ivan Rambius Ivanov pisze:

 # /sbin/md5 -s newpassword
 and then I passed the output to chpass. I tried to use the new
 password for the next login but it failed - so I believe this is
 wrong.
 Can you please show me how to generate the password hashes?

 You can add new account with one command like this:

 echo user_password |pw user add new_user -h0

 Also if you only want to generate valid password hash
 you can use 'openssl passwd -1 new_password'
Thank you, this is the command I was looking for.

Regards
Ivan

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How to generate password hashes for vipw and chpass

2008-10-05 Thread Ivan Rambius Ivanov
Hello,

According to man pages of chpass(1) and vipw(1)  I can create and
modify users by supplying a user database entry in passwd(5) format.
The only problem I face is that I do not know how to generate the
password hashes for the password field.

Following section 14.4
[http://www.freebsd.org/doc/en/books/handbook/crypt.html] from the
handbook I found out that my system is using md5 to encrypt the
passwords. I tried to use /sbin/md5 to generate the hash:

# /sbin/md5 -s newpassword

and then I passed the output to chpass. I tried to use the new
password for the next login but it failed - so I believe this is
wrong.

Can you please show me how to generate the password hashes?

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Forwarding all mail to a local user

2008-08-31 Thread Ivan Rambius Ivanov
Hello list,

I have the following questions. How can I forward all mail sent to
anyone@localhost to a [EMAIL PROTECTED], where rambius is my own
user account in my FreeBSD system and anyone can be anything
including a user name that does not exist on the local machine?

The reason I want this is the following: I am researching a CMS system
called e107. When users register in it with their email addresses they
are sent an activation email in which they have to click in order to
activate their accounts in e107. Right now I have e107 installed on my
laptop and I am registering some user accounts for testing purposes. I
do not want to create a local system account (with adduser) for each
different user - I just want the activation message sent to the email
address anything@localhost to be forwarded to [EMAIL PROTECTED] so
that I can rd iead from my mailbox and activate the test users.

I have default sendmail installation as provided by the base system
with no modifications of my own. This is my first time  dealing with
sendmail and I will be grateful to any advice and hints. Thank you in
advance.

Regards
Rambius

P.S. I am using 7.0-RELEASE-p3 FreeBSD if this matters.

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Forwarding all mail to a local user

2008-08-31 Thread Ivan Rambius Ivanov
Hello Jeffrey,

On Mon, Sep 1, 2008 at 4:24 AM, Jeffrey Goldberg [EMAIL PROTECTED] wrote:

 You should edit

  /etc/mail/virtusertable

 to include a line like

  @localhost  [EMAIL PROTECTED]

 There is a sample virtusertable you can look at.

 After you have edited the virtusertable file, you should run

  make maps

 in that directory.

I followed your advice but I still cannot forward the local email to
my account.  The full contents of my /etc/mail/virtusertable is:

# cat /etc/mail/virtusertable
# $FreeBSD: src/etc/mail/virtusertable.sample,v 1.3 2000/11/02
23:32:31 dirk Exp $
#
# Map one or all usernames at a source hostname to a specific (or the same)
# username at another target hostname.  Remember to add the source hostname
# to /etc/mail/local-host-names so that sendmail will accept mail for the
# source hostname.
#
@localhost [EMAIL PROTECTED]

I run make maps and I tested if my account can receive email:

$ echo Test email 1 | mail -s Test Email 1 [EMAIL PROTECTED]

I successfully got this email in my mbox. Next I tried to send an
email to an non-existing user:

$ echo Test email 1 | mail -s Test Email 1 [EMAIL PROTECTED]

I got an error saying /home/rambius/dead.letter... Saved message in
/home/rambius/dead.letter and did not receive the email in my
mailbox. Maybe emails to nonexisting users cannot be forwarded at all?

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Formatting dates to a specific pattern

2008-08-30 Thread Ivan Rambius Ivanov
Hello,

I need to format the current date (as returned by date(1) ) to the
pattern m-d-, where m is the month in one or digits, d is the day
in one or two digits, and  is the year in four digits. The problem
for me is the day and the month, for example August should be 8, and
not 08, and 5th of September should be 9-5-2008 and not 09-05-2008. I
read the man page of date(1) but date(1) seems to always put leading
zeros.

I appreciate any help on how to format the date the way I want.

In case you wonder why I need such a format: I am using a hosting
company to run a web site. They are backing up my files in a .tar.gz
archive and I can download it. The name of the backup archive contains
the date formatted as I explained. I want to write a daily cron job
script that will download the backup for me.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Formatting dates to a specific pattern

2008-08-30 Thread Ivan Rambius Ivanov
Hello,

Thank you for all of your responses.

I received earlier a private answer from another member of list. He
told me to use  the '-' sign after '%' in the date pattern of date(1)
command:

$ date +%-m%-d%Y

This one seems to not include leading zeros and I reworked it to

$ date +%-m-%-d-%Y

to fit my needs :)


Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Networking issues

2008-06-09 Thread Ivan Rambius Ivanov
Hello,

On Sun, Jun 8, 2008 at 10:19 PM, Andrew Falanga [EMAIL PROTECTED] wrote:
 Hello,

 I have, for some time, been able to ssh into my father's FreeBSD machine in
 the Road Runner network in Central New York.  Last night, I tried so that I
 could fix a problem for him and ssh timed out.  No problem I thought, his
 modem has a different IP than the one I have in my /etc/hosts file, but this
 turned to not be the case.
This may be off-topic, but...

I am using cable internet Time Warner/Road Runner/Earthlink in New
York. However, I have a wireless router behind the cable modem and the
router is registered with dyndns.org.  When I registered with them, I
chose a dns name from them for the router and every time my IP changes
the router sends a request and their database is updated with the new
IP - this is roughly how they work. So I can access machines in my
home network usind a DNS name instead of an IP address. You and your
dad may find this setup useful.

Regards
Rambius

Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SVN Advice

2008-05-20 Thread Ivan Rambius Ivanov
Hello Montag,

On Mon, May 19, 2008 at 7:05 AM,  [EMAIL PROTECTED] wrote:
 Hello all,

 I'm seeking to set up an SVN repository on my home machine.  I've come
 across the following two guides:

 http://www.bsdguides.org/guides/freebsd/misc/subversion.php

 http://www.onlamp.com/pub/a/bsd/2007/09/27/subversion-for-bsd-with-all-the-bells-and-whistles.html
For a quick start on Subversion you can see Dru Lavigne's articles
Setting up a Secure Subversion Server [1] and Accessing Secure
Subversion Servers [2]. They discuss how to use Subversion over ssh,
that is svn+ssh:// scheme. I myself prefer subversion over http(s) and
I have written a tutorial here [3] and more concretely here.


 The second one is certainly overkill for what I need (I just want to use
 it to manage my personal projects, since I work remotely a lot).  I'd
 definitely like a password protected web interface though.
You have two options then.

-) use subversion over http(s) and you can access your repository both
with a svn client and from a browser.
-) use whatever access scheme you want and install viewvc [5].

 My issue is
 the following.  In both guides (and in all the other ones I've come
 across) Apache is compiled with options that I did not select when I
 installed Apache a while ago.  I'd rather not have to redo everything I've
 set up with my web server.  Is there any way I get include those modules
 (namely WITH_BERKELEYDB) without having to recompile?
As far as I remember you do not need berkleydb option. Subversion
supports two backends for its repositories - BDB and FSFS. FSFS is a
file format developed by Subversion and when you create the repository
it is used by default. For a comparison between the two formats see
[6]. So you may compile Subversion with Berkley DB - you should
provide WITHOUT_BDB option or similar when you install the Subversion
port.

 Also, any advice relating to setting up Subversion on FreeBSD in general.
Well, the Subversion Book contains everything you need to set it up
and use it. And the link below should help you as well.

Regards
Rambius

[1] http://www.onlamp.com/pub/a/bsd/2005/05/12/FreeBSD_Basics.html
[2] http://www.onlamp.com/pub/a/bsd/2005/08/11/FreeBSD_Basics.html
[3] http://vania.sourceforge.net/svnnotes-en/
[4] http://vania.sourceforge.net/svnnotes-en/node10.html
[5] http://www.viewvc.org/
[6] 
http://svnbook.red-bean.com/en/1.4/svn.reposadmin.planning.html#svn.reposadmin.basics.backends
-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Which jdk port should I use?

2008-03-05 Thread Ivan Rambius Ivanov
Hello,

On Thu, Mar 6, 2008 at 5:05 AM, Steven Friedrich [EMAIL PROTECTED] wrote:
 I have two installed:
  diablo-jdk-1.5.0.07.01_9
  jdk-1.5.0.14p8,1

  I looked at the freebsd java pages, but I still don't know...
It seems that you have diablo jdk and sun jdk installed on your machine.

Diablo JDK is available from the FreeBSD Foundation; Sun JDK is
available, of course from Sun.

From the point of view of the end user or even the Java programmer
there is no differences - both jdk's offer the same public APIs,
compilers, runtime environments, etc.

The Java packages available from the FreeBSD Foundation are based on
the same codebase as any other 1.5 JDK or JRE from Sun. And the Java
binary packages from FreeBSD Foundation are certified. See
http://freebsdfoundation.org/press/20060405-PRrelease.shtml.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portupgrade

2008-03-03 Thread Ivan Rambius Ivanov
Hello,

On Mon, Mar 3, 2008 at 1:55 PM,  [EMAIL PROTECTED] wrote:
 Is there a way to get the portupgrade to just accept all of the defaults
  for the configurations of the individual ports.  I tried # env BATCH=yes,
  but it still just goes on hanging on the port configuration menus.  It
  seems as though these time out (though I'm not sure).
Try with

portupgarde -y

or

portupgarde --yes

Regards
Rambius


-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How to backup the users

2008-01-27 Thread Ivan Rambius Ivanov
Hello,

I am running a small FreeBSD server and I have a a couple of users
ssh'ing to it. I want to wipe the server out and reinstall FreeBSD on
it, but I want to preserve the users' credentials. Can you please
advise me how to back them up?

Thank you in advance.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to backup the users

2008-01-27 Thread Ivan Rambius Ivanov
On Jan 27, 2008 6:58 PM, Bill Moran [EMAIL PROTECTED] wrote:
 Manolis Kiagias [EMAIL PROTECTED] wrote:
 
  Wojciech Puchar wrote:
   Hello,
  
   I am running a small FreeBSD server and I have a a couple of users
   ssh'ing to it. I want to wipe the server out and reinstall FreeBSD on
   it, but I want to preserve the users' credentials. Can you please
   advise me how to back them up?
  
   /home/*
   /etc/master.passwd
   /var/cron/tabs/*
   /var/mail/*
  
   possibly other files.
  
  
   but format+reinstall is when you have windows, with unix there is no
   need to.
  
  
  You might as well save the whole /etc, you will probably need other conf
  files and surely you would like to have /etc/passwd and /etc/group
  In fact, I would also backup the whole /usr/local/etc to get all the
  configuration settings for my services and so on.

 A good, general rule of thumb for backing up a system is:
 /etc
 /usr/local/etc
 /home
 /var

 /var is the wildcard here ... /etc and /usr/local/etc are generally very
 small.  /home can be huge, but if it is, it's probably because there is
 a lot of important data there.

 But /var can be large with a lot of stuff that you may not want to back
 up.  Do you need /var/log, for example?

 Frankly, if you have enough space to back up, I recommend you back up the
 entire system and restore selectively.  Do you have, for example, a
 database in /usr/local/pgsql?  If you're asking this question, you're
 probably better off safe than sorry.
I do not have any databases servers on the machine. In fact, it hosts
only a cvs repository and a web server and I have already backed them
up. I was only unsure how to proceed with the users backup.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Slightly OT: Invoking a shell command from a Makeile

2008-01-27 Thread Ivan Rambius Ivanov
Hello,

I am developing a FreeBSD port and I would like to invoke a shell
command from it and assign its output to a variable. The command in
question is

# make -f /usr/ports/lang/fpc/Makefile -V PORTVERSION

and I have verified that it works on the command line.

I try to use it in my port's Makefile in the following way:

FPCVERSION= `make -f /usr/ports/lang/fpc/Makefile -V PORTVERSION`

but it fails with the following error

Syntax error: EOF in backquote substitution

I also tried

FPCVERSION= `make -f /usr/ports/lang/fpc/Makefile -V PORTVERSION`

but it fails on the same error. Can you please advise me how to call
this command?

Thank you in advance.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Slightly OT: Invoking a shell command from a Makeile

2008-01-27 Thread Ivan Rambius Ivanov
Hello Alphons,

On Jan 28, 2008 1:07 AM, Alphons Fonz van Werven
[EMAIL PROTECTED] wrote:
 Ivan Rambius Ivanov wrote:

  I am developing a FreeBSD port and I would like to invoke a shell
  command from it and assign its output to a variable.

 If you're using GNU make (called gmake on BSD systems), you can do
 VAR := $(shell command)
 or, as a concrete example,
 CFILES := $(shell ls *.c)
 Not that I recommend using that example, it just goes to illustrate.

 If you're using BSD make, I wouldn't know though. I'm just not familiar
 with that. And if you wish to do it in a portable way such that it works
 with BSD make, GNU make or whatever, then all I can say is good luck...
I do use BSD make and not GNU make, but your examples gave me a hint
what I should search on google and I found the exact syntax:

FPCVERSION!=make -f ${PORTSDIR}/lang/fpc/Makefile -V PORTVERSION

The assignment is done by the bang equals sign != and I found it
explained here http://www.khmere.com/freebsd_book/html/ch01.html

Thank you for your quick response.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Slightly OT: Invoking a shell command from a Makeile

2008-01-27 Thread Ivan Rambius Ivanov
Hello Georgious,

On Jan 28, 2008 2:59 AM, Giorgos Keramidas [EMAIL PROTECTED] wrote:
 On 2008-01-28 00:48, Ivan Rambius Ivanov [EMAIL PROTECTED] wrote:
  Hello,
 
  I am developing a FreeBSD port and I would like to invoke a shell
  command from it and assign its output to a variable. The command in
  question is
 
  # make -f /usr/ports/lang/fpc/Makefile -V PORTVERSION
 
  and I have verified that it works on the command line.
 
  I try to use it in my port's Makefile in the following way:
 
  FPCVERSION= `make -f /usr/ports/lang/fpc/Makefile -V 
  PORTVERSION`
 
  but it fails with the following error
 
  Syntax error: EOF in backquote substitution

 Try the BSD-specific syntax which uses bang-equal assignment to grab the
 output of a shell command and assign it to a make variable:

 FPCVERSION!= shell cmd here

 i.e. something like:

 FPCVERSION!= make -f ${PORTSDIR}/lang/fpc/Makefile -V PORTVERSION
Yes, I found this out after some searching in google.

 I'm curious though.  Why do you have to find the value of the
 {PORTVERSION} from a Ports makefile?

 Perhaps there is already a `standard' feature of the Ports which can do
 something similar.  Have you asked around in freebsd-ports?
The port I am developing builds and installs a software called nbc
[1], [2]. It is written in Pascal and uses the freepascal compiler [3]
coming from lang/fpc port and some other pascal libraries called units
coming from devel/fpc-fcl-base. These units are installed into
/usr/local/lib/fpc/portversion_of_fpc, where portversion of_fpc is
the version of the freepascal compiler as defined in PORTVERSION
variable in fpc's Makefile. Currently it is 2.2.0. I do not want to
hardcode that number in nbc port's Makefile - I want to extract it on
the fly from fpc port's Makefile, this is why I am doing this trick.

Regards
Rambius

[1] http://bricxcc.sourceforge.net/nbc/
[2] http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/116274
[3] http://www.freepascal.org/

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /usr/local/rc.d/apache22 start doesn't start Apache

2007-12-14 Thread Ivan Rambius Ivanov
Hello Yuri,

On Dec 14, 2007 5:03 PM, Yuri [EMAIL PROTECTED] wrote:
 I installed Apache port.
 But when I run /usr/local/etc/rc.d/apache22 start nothing happens.
 'ps ax | grep httpd' returns nothing.
 So server wasn't started.

 Why nothing is printed and server not started with the first command?
 What is the right way to start the server?

I think you should add the line

apache2_enable=YES

in your /etc/rc.conf. The starting script /usr/local/etc/rc.d/apache22
checks if the rcvar in rc.conf is set to YES and if so it starts the
server. You can see the exact name of the rc variable by executing

/usr/local/etc/rc.d/apache22 rcvar.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to make a patch

2007-10-16 Thread Ivan Rambius Ivanov
Hello,

First, do you have the latest ports tree? If not, it maybe a good idea
to update your ports tree and verify that the bug is still there.
Second, since it concerns the ports be sure to checkThe FreeBSD
Porters Handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ and
especially Testing Your Port chapter:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/testing.html

On 10/16/07, Aryeh M. Friedman [EMAIL PROTECTED] wrote:
 I found and fixed a bug in one of the ports how do I make a patch file
 (I only changed one line in one file)
I would copy the original unmodified file to a backup copy, fix the
file and then diff the modified file and the backup copy.

 and who do I send it to?
You should submit a Problem Report as described here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-submitting.html
Every port has its maintainer and they are specified in the port's Makefile.

Regards
Rambius

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]



-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: a beginner

2007-10-12 Thread Ivan Rambius Ivanov
Hello,

On 10/12/07, Connie Webb [EMAIL PROTECTED] wrote:
 Please help as I don't know where to begin.
It is not clear from your email what do you want to do and what you
have done up to know. If you do not have FreeBSD already installed you
can start from Installing FreeBSD chapter in the handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install.html.
I had to repeat the installation two or three times because I was not
satisfied with my partition layout or with the initial packages I had
installed and just because I wanted to play with it and get
comfortable.

If you have FreeBSD already installed then proceed with the next
chapters of the handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: BSD Live?

2007-10-11 Thread Ivan Rambius Ivanov
Hello,

On 10/11/07, Timothy Klaver [EMAIL PROTECTED] wrote:
 Is there any BSD version that provides a LiveCD
Yes, it is called Freesbie: http://www.freesbie.org/

Regards
Rabius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Tomcat

2007-09-28 Thread Ivan Rambius Ivanov
Hello,

On 9/28/07, John Nielsen [EMAIL PROTECTED] wrote:

 This is not correct. The Java packages available from the FreeBSD
 Foundation are based on the same codebase as any other 1.5 JDK or JRE
 from Sun.
Thank you for correcting me. I was not (fully) aware of this fact.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Tomcat

2007-09-28 Thread Ivan Rambius Ivanov
Hello

On 9/28/07, Yance Kowara [EMAIL PROTECTED] wrote:

 Would you mind explaining the difference between
 sun-jdk and diablo jdk?

From the point of view of the end user or even the Java programmer
there is no differences - both jdk's offer the same public APIs,
compilers, runtime environments, etc. The differences are in the
internal implementaions.

Sun JDK is developed by Sun Microsystem. They officially offer binary
downloads for Windows, Solaris and Linux, as well the source code (for
their JDK). A FreeBSD port for Sun JDK does exists, but it is not made
by Sun. Take a look at that page: http://www.freebsd.org/java/

Diablo JDK (I think) is another implementation of JDK - see
http://freebsdfoundation.org/downloads/java.shtml.

Regards
Ivan

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Tomcat

2007-09-27 Thread Ivan Rambius Ivanov
Hello,

On 9/28/07, Byung-Hee HWANG [EMAIL PROTECTED] wrote:
 In this case I think you are better to use Linux than to use FreeBSD
 because still it's difficult to operate Java stuff on FreeBSD. So I
 recommend that you should move to Linux.
Actually nowadays it is easy to use java and tomcat on freebsd.

First one has to install a JDK. I myself prefer diablo-jdk. Go to
/usr/ports/java/diablo-jdk15, type

make install

and follow the instructions. Due to java licenses you have to manually
fetch some files from internet and put them in /usr/ports/distfiles.

If you are required to use sun jdk, you can install it from
java/jdk15. Note that it will need an existing jdk to bootstrap. By
default it uses linux-sun-jdk and I had problems with it in the past.
In this case I used diablo-jdk and sun jdk15 installed correctly. From
my experinece, however, I can tell that tomcat runs fine with
diablo-jdk.

Next go to /usr/ports/www/tomcat55/ and install it and you have java and tomcat.

 I/You/He/She/We love FreeBSD,
 though;;
Oh yes, we loves FreeBSD, don't we, my precious?

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: anyone have a favorite laptop?

2007-09-24 Thread Ivan Rambius Ivanov
Hello,

I am using Acer TravelMate 4060 and I am very satisfied. The wireless
card works very well and I had no problems with the video card.

Regards
Rambius
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: http://www.freebsd.org site unreachable

2007-09-14 Thread Ivan Rambius Ivanov
In Sofia, Bulgaria as well.

Regards
Rambius

On 9/14/07, Pablo Mora [EMAIL PROTECTED] wrote:
 On 9/14/07, Caio Figueiredo Abecia [EMAIL PROTECTED] wrote:
  The website isn't working here too. (Brazil)
 

 In Chile neither

 --
 
 PGP KeyID: 0xC730A079
 Key fingerprint = F626 3C47 02F5 E43C 6620  8A1B E7A8 533B C730 A079
 gpg --keyserver pgp.mit.edu --recv-keys C730A079

 
   ASCII Ribbon Campaign
   Against HTML e-mail  Microsoft Attachments
 FreeBSD Since 4.x  unixbsd.blogspot.com maintainer
 
 ... ¿Dónde están aquéllos tres que en Babilonia prefirieron ser
 quemados a ceder?, ¿Dónde está aquél Daniel que me adoraba?, ¿Dónde
 está la santidad de aquél José?, ¿Dónde está ese niño que mató al
 Gigante?, ¿Dónde están los sucesores de Josué?, ¿Dónde están esas
 mujeres entregadas como Ester? ...
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]



-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring OpenLDAP on FreeBSD 6.2 Release, Problems.

2007-08-23 Thread Ivan \Rambius\ Ivanov
Hello,

On 8/23/07, David Robillard [EMAIL PROTECTED] wrote:
  Sorry, I am pretty new with LDAP too :) I have no documentation beside
  the one I found from Googling around.

 Hi Olivier,

 There are a few good books about LDAP out there, but most of them are
 quite old unfortunately. Anyhow, I found that reading LDAP System
 Administration by Gerald Carter from O'Reilly was a good help in
 understanding LDAP, deploying OpenLDAP and configuring applications to
 fetch data from the LDAP directory (i.e. sendmail, replace NIS, PAM,
 FTP, Apache, DNS, etc). Get more info at
 http://www.oreilly.com/catalog/ldapsa/index.html

I really recommend this book. Its initial chapters helped me get
openldap up and running just for a couple of hours.

Since I am also interested in programming and scripting with ldap I
also found helpful Deploying OpenLDAP by Tom Jackiewicz
http://www.amazon.com/gp/product/1590594134/105-1483603-1926857. It
contains a chapter discussing the LDAP APIs for a couple of languages.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: jdk15

2007-06-29 Thread Ivan \Rambius\ Ivanov

Hello

On 6/29/07, kalin mintchev [EMAIL PROTECTED] wrote:

  What I did was to install the native freebsd jdk,
 that is diablo-jdk (port java/diablo-jdk) and then I installed
 java/jdk-15 port.

 i'll try that. thanks... will report how it went...

didn't do much. it installed very quickly

I do not know how you installed diablo-jdk it but it definitely takes
time when installed from ports. First it asks you to download the
sources for diablo-jdk from
http://www.freebsdfoundation.org/downloads/java.shtml. Due to
licensing issues you have to manually download it to
/usr/ports/distfiles after you accept the license agreement and rerun
'make install' for diablo-jdk port.

I myself have been using diablo-jdk on my developement laptop and it
is fully-operational JDK. If you require some JDK, diablo-jdk will do
fine. If you require specifically Sun JDK, there are more steps.


but after i run the make in the
jdk15 port again i got the same errors.

I was able to roughly recall my memories on how I installed sun-jdk.
First, I started java/jdk-15 port (sun jdk) and it asked me to
manually download to /usr/ports/distfiles java sources from sun's
site. After I fetched them and rerun the installation for java/jdk-15,
it installed some of its dependencies and failed at installing
java/linux-sun-jdk-15, again asking me to fetch some file from sun's
site. This time the file was the java precompiled binaries for linux
and after I fetched it, the installation process for java/jdk-15 was
able to start the installation for java/linux-sun-jdk-15. I did not
monitor the process closely from now  on but it failed again. Then I
simply installed java/diablo-jdk-15 and it went fine. Then I returned
to java/jdk-15, cleaned the port, repeated the installation and it
succeeded.



not really sure about those arguments calls/methods

If you can, please paste them here. I am curious about them.




 --
 Tangra Mega Rock: http://www.radiotangra.com

wasn't tangra a rock band in the 80's?!

Yes, it was. Then there as a Bulagrian radio with the same name, which
now an Internet radio and broadcats at the address above.

Regards
Ivan

--
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: jdk15

2007-06-29 Thread Ivan \Rambius\ Ivanov

On 6/29/07, kalin mintchev [EMAIL PROTECTED] wrote:


yea...  i did all that stuff for both ports too. all the downloads, etc.
i've been using freebsd as main os on my laptops for 5 years now - have
never used windows. and java has historically been a pain in the ass to
set up on freebsd.

Well, except the problems with linux-sun-jdk, i found diablo-jdk easy
to install.


right now i just wanted it to use it for openoffice. the thing is after i
did diablo there is a java vm installed

So you installed diablo-jdk successfully, right?


but the openoffice i got on this
install using the pkg_add is complaining about it. the setup script
crashes and hangs. of course there is a large log on it but i also have a
day job...

I installed openoffice from ports as well, it compiled for 12 hours :)
If you have diablo-jdk just try to install it from ports as well. I
myself prefer ports to packages.


one thing i did forget about is to clean the jdk15 port. stupid. anyway
it's doing it now again
how long did it take to build on your machine?

I do not remember :)





 not really sure about those arguments calls/methods
 If you can, please paste them here. I am curious about them.

if it happens again i'll send you the whole output...


 wasn't tangra a rock band in the 80's?!
 Yes, it was. Then there as a Bulagrian radio with the same name, which
 now an Internet radio and broadcats at the address above.

yea...  i saw that. interesting. is the radio out of bulgaria?

Yes, it is, I am listening to it from US.

Regards
Ivan

--
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Unable to login using KDE

2007-04-26 Thread Ivan \Rambius\ Ivanov

Hello,

I am debugging a (seemingly) KDE-related problem on a FreeBSD laptop.
The version of FreeBSD is 6.1-RELEASE-p10 #0. I am starting in in
debug mode. It is using kdm as a login screen. The corresponding line
in /etc/ttys is

ttyv8 /usr/local/bin/kdm -nodaemon xterm on secure

The problem is: when I type the username and password and try to login
it returns me to the login screen again. I am 100% sure that I use
correct passwords since I changed them for a couple of accounts. I am
able to login from the text terminals.

There are two suspicious messages when the machine is booted. The first one is:

Information: reading old kdmrc /usr/local/share/config/kdm/kdmrc (from
kde = 2.2.x)
Information: old kdmrc is from kde = 3.1 (config version 2.3)

The second one is:

kdm_config[543]: Host some gibberish text not found

and it is repeated four times with a different gibberish text.

I googled for these errors but found nothing.

I would be very grateful for any advice or pointers.

Regards
Rambius

--
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hi ;

2007-03-14 Thread Ivan \Rambius\ Ivanov

Hello,

On 3/14/07, Christian Walther [EMAIL PROTECTED] wrote:

On 14/03/07, Halil Guven [EMAIL PROTECTED] wrote:
 Dear Sırs

 I want to open in FreeBSD program 21,443,11905,11907,12341 15501 ports.How
 can i do these.

 Please inform me and thanks in advance of your help.

 Wait of your kind replay.

Pardon me - but what are you trying to do?
Sounds to me as if you're trying to install some applications from ports.


In my opinion, the original requestor wants to open the corresponding
TCP ports :)

With so little information, I assume that either the network
applications listening to those ports are not running or the ports are
blocks by a firewall.

Regards
Ivan

--
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: odule php5_module is already loaded, skipping ?

2007-03-04 Thread Ivan \Rambius\ Ivanov

Hello,


On 3/5/07, Abdullah Ibn Hamad Al-Marri [EMAIL PROTECTED] wrote:

Hello Guys,

I have apache 2.2.4 and PHP 5.2.1 installed this what I get when I
restart the apache.

# apachectl restart
[Mon Mar 05 03:29:45 2007] [warn] module php5_module is already loaded, skipping

Obviously there are two LoadModule directives for php5_module in your
httpd.conf file. Remove one of them and the message will disappear.

Regards
Rambius

--
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Restoring FreeBSD grub loader

2006-10-01 Thread Ivan \Rambius\ Ivanov

Hello,

Thank you for your response.

On 10/1/06, backyard [EMAIL PROTECTED] wrote:



--- Ivan \Rambius\ Ivanov
[EMAIL PROTECTED] wrote:

 Hello,

 I installed FreeBSD 6.1 on one machine with grub
 boot loader. In the
 beginning there was only one entry in grub - namely
 FreeBSD. Later, I
 had to install Windows XP on the machine and of
 course, it destroyed
 grub and now I cannot boot FreeBSD.

 I tried with booting from the FreeBSD installation
 disk choosing Fixit
 option, but I could not use successfully
 grub-install command.

 My question is: how can I restore the FreeBSD grub
 loader? Could you
 please give me any hints or advance. Thank you very
 much in advance.

 Regards
 Ivan

 --

I would suggest you make a grub booting floppy disk
then you can escape to command mode once the disk
loades and install grub with

root (hd0,0,a)   # or wherever it is
setup (hd0   # again wherever it is

assuming you have already placed the grub bootfiles on
your hard drive and configured menu.lst you should be
all set. I have only encountered one computer this
method failed.

In fact, I am using a laptop that does not have a floppy drive, so I
could not use booting floppy disks.



you could alternatively flip the kernel tunable that
allows raw writes to the boot sectors of the disks. I
don't recall what it is but I think the grub docs talk
about it in the man or info pages.

I'm supprised XP messed it up, 2000 seemed to respect
existing bootloaders...

I fixed the problem in the following way: I have another FreeBSD
laptop, so I copied its boot sector using the command

# dd if=/dev/ad0s1a of=/mnt/bootsect.bsd bs=512 count=1

Then I used bootsect.bsd to to boot in FreeBSD via the NT loader (I
found this link useful:
http://www.unixguide.net/freebsd/faq/09.10.shtml). After I boot to
FreeBSD I installed the grub loader.

Regards
Ivan

--
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Restoring FreeBSD grub loader

2006-09-30 Thread Ivan \Rambius\ Ivanov

Hello,

I installed FreeBSD 6.1 on one machine with grub boot loader. In the
beginning there was only one entry in grub - namely FreeBSD. Later, I
had to install Windows XP on the machine and of course, it destroyed
grub and now I cannot boot FreeBSD.

I tried with booting from the FreeBSD installation disk choosing Fixit
option, but I could not use successfully grub-install command.

My question is: how can I restore the FreeBSD grub loader? Could you
please give me any hints or advance. Thank you very much in advance.

Regards
Ivan

--
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: KDE and libflashplayer - help?

2006-09-27 Thread Ivan \Rambius\ Ivanov

Hello,

On 9/26/06, Oliver Iberien [EMAIL PROTECTED] wrote:

I've followed the instructions at
http://freebsd.kde.org/howtos/konqueror-flash.php.  libmap.conf contains:

[/usr/X11R6/lib/linux-flashplugin7/libflashplayer.so]
libpthread.so.0 libpthread.so.2
libdl.so.2  pluginwrapper/flash7.so
libz.so.1   libz.so.3
libm.so.6   libm.so.4
libc.so.6   pluginwrapper/flash7.so

And (having looked through this list's archives)

ln -s /usr/X11R6/lib/linux-flashplugin7/flashplayer.xpt 
/usr/X11R6/lib/firefox/plugins/flashplayer.xpt

But konqueror doesn't see a plugin either in
the /usr/X11R6/lib/linux-flashplugin7/
or /usr/local/lib/npapi/linux-flashplugin/ folders. Firefox does nothing. And
there I am stuck. What am I doing wrong?


I also tried the same steps and had the same problem: konqueror does
not find the flash plugin.

Regards
Ivan

--
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How to load iwi firmware at boot time

2006-09-26 Thread Ivan \Rambius\ Ivanov

Hello,

I have an Acer TravelMate 4060 laptop with FreeBSD 6.1 running on it.
I have Intel(R) PRO/Wireless 2200BG wireless network card which I use
successfully. I have the following iwi related entries in rc.conf:

## Intel Wireless Adapter settings
iwi_enable=YES
iwi_interfaces=iwi0
iwi_mode=bss
ifconfig_iwi0=ssid  DHCP

This used to bring up my iwi0 interface at boot time and I had a
working internet connection after the machine had booted.

However, this morning I did make world (attaching cvsup files for
the kernel and ports for completeness). The iwi firmware was not
loaded at boot time and the following messages are given:

$ dmesg | grep iwi
iwi0: Intel(R) PRO/Wireless 2200BG mem 0xb0101000-0xb0101fff irq 17
at device 4.0 on pci6
iwi0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xb0101000
iwi0: bpf attached
iwi0: Ethernet address: 00:13:ce:0c:45:a1
iwi0: bpf attached
iwi0: bpf attached
iwi0: [MPSAFE]
iwi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
iwi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps
24Mbps 36Mbps 48Mbps 54Mbps
iwi0: Please load firmware

I have to manually load the firmrare invoking the following commands as root:
# iwicontrol -i iwi0 -d /boot/firmware -m bss
# ifconfig iwi0 up

Could you please advise me how I can load automatically the firmware
during boot time?

Regards
Ivan

P.S. Here is the output of uname -a:
FreeBSD . 6.1-RELEASE-p7 FreeBSD 6.1-RELEASE-p7 #0: Tue Sep 26
13:13:00 EEST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
i386

--
Tangra Mega Rock: http://www.radiotangra.com


cvsupfile
Description: Binary data


portsupfile
Description: Binary data
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: How to load iwi firmware at boot time

2006-09-26 Thread Ivan \Rambius\ Ivanov

Hello,

On 9/26/06, Ivan Rambius Ivanov [EMAIL PROTECTED] wrote:

Hello,

I have an Acer TravelMate 4060 laptop with FreeBSD 6.1 running on it.
I have Intel(R) PRO/Wireless 2200BG wireless network card which I use
successfully. I have the following iwi related entries in rc.conf:

## Intel Wireless Adapter settings
iwi_enable=YES
iwi_interfaces=iwi0
iwi_mode=bss
ifconfig_iwi0=ssid  DHCP

This used to bring up my iwi0 interface at boot time and I had a
working internet connection after the machine had booted.

However, this morning I did make world (attaching cvsup files for
the kernel and ports for completeness). The iwi firmware was not
loaded at boot time and the following messages are given:

$ dmesg | grep iwi
iwi0: Intel(R) PRO/Wireless 2200BG mem 0xb0101000-0xb0101fff irq 17
at device 4.0 on pci6
iwi0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xb0101000
iwi0: bpf attached
iwi0: Ethernet address: 00:13:ce:0c:45:a1
iwi0: bpf attached
iwi0: bpf attached
iwi0: [MPSAFE]
iwi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
iwi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps
24Mbps 36Mbps 48Mbps 54Mbps
iwi0: Please load firmware

I have to manually load the firmrare invoking the following commands as root:
# iwicontrol -i iwi0 -d /boot/firmware -m bss
# ifconfig iwi0 up

Could you please advise me how I can load automatically the firmware
during boot time?

Regards
Ivan

P.S. Here is the output of uname -a:
FreeBSD . 6.1-RELEASE-p7 FreeBSD 6.1-RELEASE-p7 #0: Tue Sep 26
13:13:00 EEST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
i386


I was able to fix it.

I created an executable script located at /etc/start_if.iwi0. It
contains the following line:

iwicontrol -i iwi0 -d /boot/firmware -m bss

This script is executed at boot time and it loads the firmware.

Thank you for the nice docs althought scattered in the Web.

Regards
Ivan

--
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problems with X mouse pointer

2006-09-24 Thread Ivan \Rambius\ Ivanov

Hello,

After an year of successful using of FreeBSD, a friend of mine asked
me to install it on her laptop. The laptop is Pestigio Visconte 120
with Intel 855 chipset.

I installed FreeBSD 6.1 and run X with only one problem. The mouse
pointer in X is not a normal arrow, but a white big square. I can use
the mouse - the pointer, although a square, responds to moves and
clicks. I googled and I found some threads about redglass and
whiteglass themes and I have them in /usr/X11R6/lib/X11/icons. Could
you please help me in adjusting the pointer in the X environment?

I also enabled the mouse in the text terminals and it works fine - the
pointer is an arrow.

I am attaching /etc/X11/xorg.conf and /etc/rc.conf (with network
information masked) for completeness and uname -a gives:
FreeBSD . 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7
04:42:56 UTC 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP  i386

Thank you very much for your help in advance.

Regards
Ivan

--
Tangra Mega Rock: http://www.radiotangra.com


xorg.conf
Description: Binary data


rc.conf
Description: Binary data
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Problems with X mouse pointer

2006-09-24 Thread Ivan \Rambius\ Ivanov

On 9/24/06, Ivan Rambius Ivanov [EMAIL PROTECTED] wrote:

Hello,

After an year of successful using of FreeBSD, a friend of mine asked
me to install it on her laptop. The laptop is Pestigio Visconte 120
with Intel 855 chipset.

I installed FreeBSD 6.1 and run X with only one problem. The mouse
pointer in X is not a normal arrow, but a white big square. I can use
the mouse - the pointer, although a square, responds to moves and
clicks. I googled and I found some threads about redglass and
whiteglass themes and I have them in /usr/X11R6/lib/X11/icons. Could
you please help me in adjusting the pointer in the X environment?

I also enabled the mouse in the text terminals and it works fine - the
pointer is an arrow.

I am attaching /etc/X11/xorg.conf and /etc/rc.conf (with network
information masked) for completeness and uname -a gives:
FreeBSD . 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7
04:42:56 UTC 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP  i386

Thank you very much for your help in advance.

Regards
Ivan



Hello,

I found the solution by accident.

I enabled the following option

Option SWcursor True

in Section Device in xorg.conf, then I restarted X and the mouse
pointer was fine.

Regards
Ivan

--
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Calling setxkbmap when starting X

2006-09-17 Thread Ivan \Rambius\ Ivanov

Hello,

Thank you for your response.


I think what you're looking for is xinit(1).  My own:

$ cat ~/.xinitrc
#!/bin/sh
xmodmap .xmodmaprc
xsetroot -solid dimgray
xgamma -gamma 0.8
exec /usr/X11R6/bin/gnome-session


I forgot to explain that I do not start X manually with startx
command. It is started on boot time by adding the following line in
/etc/ttys:

ttyv8   /usr/local/bin/kdm -nodaemon  xterm   on  secure

I think that in this case ~/.xinitrc is not called.


Note also you can also define keyboard settings in rc.conf:

$ grep keymap /etc/rc.conf
keymap=us.iso.kbd.custom

My own custom keymap is a quick hack to swap the Caps_Lock key with
Escape for non-X uses (something that only vi users would appreciate).

Alternatively, KDE, like Gnome, etc. most likely offers a mechanism to
execute scripts at startup, but I'd advise against that approach.

I googled a little bit about localizing FreeBSD and found that one can
configure it in  xorg.conf. In my case I add the following setting in
the Keyboard section:

   Option  XkbLayoutus,bg
   Option  XkbOptions   grp:alt_shift_toggle
   Option  XkbVariant   ,phonetic

Regards
Ivan

--
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Calling setxkbmap when starting X

2006-09-16 Thread Ivan \Rambius\ Ivanov

Hello,

I am from Bulgaria and I use Bulgarian language on my FreeBSD machine.
I use the following command

$ setxkbmap -model pc105 -layout us,bg -variant ,phonetic -option
grp:alt_shift_toggle

to enable both Bulgarian and English. However, I call this command
every time I log in KDE. Is it possible to invoke it automatically
when X is started?

Thank you in advance for your answers.

Regards
Ivan

--
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD 6.1 laptop with wireless internet

2006-05-22 Thread Ivan \Rambius\ Ivanov

Dear Colleagues,

I have a laptop with FreeBSD 6.1 on it and it is working fine. I
recently received a card for wireless internet; it is in fact a
Verizon Wireless PC5740 card and I am wondering if I can set it up on
my FreeBSD laptop.

I googled about it and I found [1] mentioning about some configuration
in the kernel. I also checked the wireless network section in the
Handbook, but I did not make any progress. Could you give me some
hints and advice about this?

Thank you in advance for your help.

Regards
Rambius

P.S. I verified that the card is really working on a Windows laptop.

[1] 
http://lists.freebsd.org/pipermail/freebsd-questions/2005-February/077555.html

--
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Setting up Sound Blaster Pro card

2006-01-26 Thread Ivan \Rambius\ Ivanov
Dear Colleagues,

I am trying to set up my sound card and I am finding some difficulties.

First, here is the description of the hardware. I use Acer TravelMate
4060 laptop with 512 MB RAM with Intel Chipset 915GM. The Audio
Section taken directly from the laptop's user guide is:
Audio system with two built-in speakers
Built-in microphone
Sound Blaster Pro and MS Sound compatible.

Second, the FreeBSD version is
$ uname -a
FreeBSD petya.myhome.westell.com 6.0-RELEASE FreeBSD 6.0-RELEASE #0:
Fri Jan 27 03:08:18 EET 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CUSTOM20060127 
i386

The only difference of my custom kernel and the generic one is that I added
device atapicam
to configure my CD burner.

Next, here are my attempts of configuring the sound card. I read [1] 
and I checked /usr/src/sys/conf/NOTES to find some clues which driver
should be loaded. I also googled about Sound Blaster Pro + FreeBSD
and found [2] and I concluded that I have to use snd_sbc, snd_sb8 and
possibly snd_sb16. I added the following three lines to
/boot/loader.conf
snd_sbc_load=YES
snd_sb8_load=YES
snd_sb16_load=YES

I then rebooted my machine and when it started I ran dmesg:
$ dmesg | grep sound
Preloaded elf module /boot/kernel/sound.ko at 0xc0ab82d8.
$ dmesg | grep snd
Preloaded elf module /boot/kernel/snd_sb16.ko at 0xc0ab8228.
Preloaded elf module /boot/kernel/snd_sbc.ko at 0xc0ab8384.
Preloaded elf module /boot/kernel/snd_sb8.ko at 0xc0ab8430.

kldstat shows
Id Refs AddressSize Name
 1   13 0xc040 632618   kernel
 21 0xc0a33000 4fc0 snd_sb16.ko
 34 0xc0a38000 1d408sound.ko
 43 0xc0a56000 4934 snd_sbc.ko
 51 0xc0a5b000 49ec snd_sb8.ko
 6   16 0xc0a6 568dcacpi.ko
 71 0xc1e7a000 2000 blank_saver.ko
 81 0xc1e9 15000linux.ko

I also started pciconv -lv and the relevant section about audio is:
[EMAIL PROTECTED]:27:0:class=0x040300 card=0x008f1025 chip=0x26688086
rev=0x04 hdr=0x00
vendor   = 'Intel Corporation'
device   = '82801FB/FR/FW/FRW Intel High DefiNition Audio Controller'
class= multimedia

This makes me think that no driver is attached to the sound card.

cat /dev/sndstat shows
FreeBSD Audio Driver (newpcm)
Installed devices:


Also when I enter kde, it says that device /dev/dsp cannot be found
and when I try to play an mp3 file with xmms, it shows a dialog titled
Cannot open video.

I also tried with no success to build a custom kernel with by adding
device sound
device snd_sb8
device snd_sb16


Could you please help in finding the right configuration? If you need
more information I will be happy to provide it.

Thank you very much in advance

Regards
Ivan

[1]http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sound-setup.html
[2]http://lists.freebsd.org/pipermail/freebsd-mobile/2005-February/005866.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: rpm equivalent to 'pkg_add -r'?

2006-01-16 Thread Ivan \Rambius\ Ivanov
Hello,

 baring this, is there a better tool to use then rpm?
I am a newbie in freebsd with ambitions to become a master :) and up
to now I have installed tons of software using freebsd ports
collection and freebsd packages and I found them better than rpm.
Anyway, FreeBSD can run rpm as well (if rpm is installed of course :)
).

On 1/17/06, Marc G. Fournier [EMAIL PROTECTED] wrote:

 As the subject asks, is there an equivalent?  I'm trying to install
 linux apache2 on a FreeBSD box, and would like have rpm do as much as
 possible as far as getting the dependencies and downloading them ...
Well, when I installed my FreeBSD on my laptop, I was questioned
whether I would like to run a Web Server and I answered yes, so I had
apache2 installed.

You can compile and install httpd from ports collection with the
following command (as root):
cd /usr/ports/apache20
make install clean

Or you can install from a prebuilt binary package with the command
pkg_add -r apache2.

Regards
Rambius
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]