Re: learn

2013-08-01 Thread Виталий Туровец
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/

This should help a lot for sure :)


2013/8/1 Teymur.Rahimzade teymur.rahimz...@gmail.com

 Hi.

 Please help me to learn freebsd unix.



 Many thanks.





 ___
 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




-- 




~~~
WBR,
Vitaliy Turovets
NOC Lead @TV-Net ISP
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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: vBSDcon Website Update

2013-07-22 Thread Виталий Туровец
The site seems down from here (AS58054).


2013/7/22 Rick Miller vmil...@hostileadmin.com

 Hi all,

 For those interested in vBSDcon, a BSD-related conference scheduled
 for October 2013 in the Washington DC area, the web site has been
 updated to include a detailed schedule and speaker line-up including
 descriptions of their presentations.  Registrations will begin in the
 coming month.  Please feel free to check it out at
 http://www.vbsdcon.com/.

 --
 Take care
 Rick Miller
 ___
 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




-- 




~~~
WBR,
Vitaliy Turovets
NOC Lead @TV-Net ISP
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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: vlan routing

2013-03-09 Thread Виталий Туровец
2013/3/10  d...@safeport.com:
 I am trying set this up. First I munged the IP addresses. Not to worry if I
 hit yours. I did the following commands:

ifconfig vlan0 create
ifconfig vlan0 vlan 95 vlandev fxp0
ifconfig vlan0 inet 134.217.128.117 netmask 255.255.255.0
ifconfig fxp0 add 134.217.128.117 netmask 255.255.255.0
route add -inet 134.217.128.117 134.217.128.1

 ifconfig shows:

 fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
 options=8VLAN_MTU
 ether 00:d0:b7:56:cf:ab
 inet 45.22.17.3 netmask 0xfc00 broadcast 45.22.19.255
 inet 45.22.17.17 netmask 0x broadcast 45.22.17.17
 inet 134.217.128.117 netmask 0xff00 broadcast 134.217.128.255
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 bge0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
 options=9bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM
 ether 00:09:5b:60:e4:1f
 media: Ethernet autoselect (none)
 status: no carrier
 vlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
 ether 00:d0:b7:56:cf:ab
 inet 134.217.128.117 netmask 0xff00 broadcast 134.217.128.255
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 vlan: 95 parent interface: fxp0

 Needless to say it does not work. The switch is programmed correctly (I am
 told). My questions are (1) it seems like the option got applied to the
 wrong interface; (2) what did I miss??

 I also tried booting the system with IP of 134.217.128.117 but I did not get
 the rc.conf macros correctly. I do know I can not route through the switch
 without going the vlan commands.

 _
 Douglas Denault
 http://www.safeport.com
 d...@safeport.com
 Voice: 301-217-9220
   Fax: 301-217-9277
 ___
 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

I guess you shouldn't put the same IP address on two interfaces (vlan
and fxp0), you need to decide wherther you need tagged or untagged
vlan frames there and, depending on this decision put the IP address
on VLAN interface (tagged variant) or fxp0 (untagged one).

If i understand your task correctly, then this line is faulty from
your configuration:
ifconfig fxp0 add 134.217.128.117 netmask 255.255.255.0
You don't need it.

route add -inet 134.217.128.117 134.217.128.1
This is smth absoulutely wrong:)

Basically, if you only need a vlan interface that could be used for
routing, you need these commands only:

ifconfig vlan95 create
ifconfig vlan95 inet 134.217.128.117/24 vlan 95 vlandev fxp0

and in /etc/rc.conf you should put such strings:

cloned_interfaces=vlan95
ifconfig_vlan95=inet 134.217.128.117/24 vlan 95 vlandev fxp0

for the interface to be created on reboot.
Hope this helps.

--



~~~
WBR,
Vitaliy Turovets
NOC Lead @TV-Net ISP
NOC Lead @Service Outsourcing company
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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: My beer has never been so good

2012-11-09 Thread Виталий Туровец
2012/11/9 David Demelier demelier.da...@gmail.com:
 Hello folks,

 Just wanted to say that a FreeBSD powered beer is better !

 http://markand.malikania.fr/pics/freebsd-bottle-opener.jpg

 Cheers :)

 --
 David Demelier
 ___
 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


Hey!
How do i order myselsf one?
-- 




~~~
WBR,
Vitaliy Turovets
NOC Lead @TV-Net ISP
NOC Lead @Service Outsourcing company
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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: Access packets directly from NIC

2012-10-31 Thread Виталий Туровец
2012/10/31 Jack Mc Lauren jack.mclau...@yahoo.com:
 Hello FreeBSD users !

 How can i access and check packets directly from NIC ?

 Regards,
 Jack
 ___
 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

I believe that easiest way is using tcpdump.
Also you should specify what you mean by 'accessing packets': is it
the need to view raw packet data, or what? :)

-- 




~~~
WBR,
Vitaliy Turovets
NOC Lead @TV-Net ISP
NOC Lead @Service Outsourcing company
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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: Test

2012-10-18 Thread Виталий Туровец
2012/10/18 Paul Wootton paul-free...@fletchermoorland.co.uk:
 Just a test message
 ___
 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

Your test seems to be succesful :)

-- 




~~~
WBR,
Vitaliy Turovets
NOC Lead @TV-Net ISP
NOC Lead @Service Outsourcing company
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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 does freebsd supports ipx?

2012-10-12 Thread Виталий Туровец
2012/10/12 YC Wang wangyc0...@gmail.com:
 Hi,all:

 I read from wikipedia that freebsd supports ipx. But when I tried
 to set ipx address on em0,it showed the following message:

 freebsd-yc# ifconfig em0 ipx (netnum.nodenum)
 ifconfig: socket(family 23,SOCK_DGRAM: Protocol not supported

 And as I furher trussed the ifconfig process, I found this was
 probably caused by the failure of the socket syscall:

 freebsd-yc# truss ifconfig em0 ipx netnum.nodenum
 ..
 socket(PF_IPX,SOCK_DGRAM,0)  ERR#43 'Protocol not 
 supported'
 ..


 In contrast however, when calling socket(PF_IPX,SOCK_DGRAM,0) on
 Linux, it will automatically load the ipx kernel module and the socket
 syscall returns successfully. But I don't find any ipx module in
 /boot/kernel/ on freebsd.

So I wonder how does freebsd supports ipx? Is there any other work
 I should do for this purpose?

And if this isn't the most appropriate list for this question,
 please let me know.

   Thanks
   YC Wang
 ___
 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

I suppose you should add options IPX line to your kernel
configuration file and rebuild/reinstall the kernel.


-- 




~~~
WBR,
Vitaliy Turovets
NOC Lead @TV-Net ISP
NOC Lead @Service Outsourcing company
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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: http://localhost/phpmyadmin

2012-10-12 Thread Виталий Туровец
2012/10/12 alexandors titonis alextot...@gmail.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


Cool for you :)
BTW, try not use phpmyadmin, it's kinda security hole :)

-- 




~~~
WBR,
Vitaliy Turovets
NOC Lead @TV-Net ISP
NOC Lead @Service Outsourcing company
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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: nginx log empty

2012-10-05 Thread Виталий Туровец
2012/10/5 Cos Chan roset...@gmail.com:
 On Thu, Oct 4, 2012 at 5:21 PM, Виталий Туровец core...@corebug.net wrote:
 What helped me in simillar situation is rebuilding nginx without unnecessary
 modules.

 Could you share the configurations? I have removed some modules but
 still same issue.

 04.10.2012 17:47 пользователь Cos roset...@gmail.com написал:



 Dear All

 My system is FreeBSD 9 with latest version nginx.

 Here is my conf file content:

 #user  www;
  worker_processes  1;

 #error_log/var/log/nginx/error.log;

 #pidlogs/nginx.pid;


 events {
  worker_connections  1024;
  }

 The problem is I can not see anything from /var/log/nginx-error.log,
 all error logs outputed to screen directly.

 I have tried uncomment above user and error_log options to specify
 error_log directory or user account. But same issue..

 Please suggest.

 --
 with kind regards
 ___
 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



 --
 with kind regards

This one works fine:

nginx -V
nginx version: nginx/1.2.3
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I
/usr/local/include' --with-ld-opt='-L /usr/local/lib'
--conf-path=/usr/local/etc/nginx/nginx.conf
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
--error-log-path=/var/log/nginx-error.log --user=www --group=www
--with-debug --with-ipv6
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-scgi-temp-path=/var/tmp/nginx/scgi_temp
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp
--http-log-path=/var/log/nginx-access.log
--with-http_gzip_static_module --with-http_stub_status_module
--with-pcre

It was built with such options from port:
DEBUG,DEBUGLOG,IPV6,HTTP,HTTP_CACHE,HTTP_GZIP_STATIC,HTTP_REWRITE,HTTP_STATUS

Also i use CLANG as default compiler in my system, this is from /etc/make.conf:
WITHOUT_X11=YES
WITHOUT_GUI=YES
CC=clang
CXX=clang++
CPP=clang-cpp

I recommend you using clang as well, cause 1. it runs faster, 2.the
code it produces runs faster.
Hope this helps.
-- 




~~~
WBR,
Vitaliy Turovets
NOC Lead @TV-Net ISP
NOC Lead @Service Outsourcing company
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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: nginx log empty

2012-10-04 Thread Виталий Туровец
What helped me in simillar situation is rebuilding nginx without
unnecessary modules.
04.10.2012 17:47 пользователь Cos roset...@gmail.com написал:

 Dear All

 My system is FreeBSD 9 with latest version nginx.

 Here is my conf file content:

 #user  www;
  worker_processes  1;

 #error_log/var/log/nginx/error.log;

 #pidlogs/nginx.pid;


 events {
  worker_connections  1024;
  }

 The problem is I can not see anything from /var/log/nginx-error.log,
 all error logs outputed to screen directly.

 I have tried uncomment above user and error_log options to specify
 error_log directory or user account. But same issue..

 Please suggest.

 --
 with kind regards
 ___
 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
___
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

2012-09-08 Thread Виталий Туровец
2012/9/8 иван кузнецов kia00...@rambler.ru:



 i was download 135g distfiles from russian mirror on usb hdd, and i have no
 room on laptop for this files.how to setup apps from it,how to build pbi
 files? i was read some articles but i cant.





 иван кузнецов.



 ___
 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

Well, basically, you can mount your usb HDD as distfiles directory
under /usr/ports.
That would be something like
mount -t YOUR_USB_HDD_FILE_SYSTEM /dev/YOUR_USB_HDD /usr/ports/distfiles.
Also note that not only distfiles are required, your ports tree must
be in sync with distfiles directory (same versions, names and
sizes/checksumms).
Cheers.


-- 




~~~
WBR,
Vitaliy Turovets
Systems Administrator
Corebug.Net
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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

2012-09-08 Thread Виталий Туровец
2012/9/9 Waitman Gobble gobble...@gmail.com:
 On Sat, Sep 8, 2012 at 12:00 PM, Polytropon free...@edvax.de wrote:

 On Sat, 8 Sep 2012 19:08:25 +0400, иван кузнецов wrote:
 
 
  i was download 135g distfiles from russian mirror on usb hdd,
  and i have no room on laptop for this files.how to setup apps
  from it,how to build pbi files? i was read some articles but i
  cant.

 I assume it's better to ask PBI-related questions in PC-BSD's
 web forum as those are not exactly native FreeBSD things.


 --
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 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




 I'm not sure how building PBI files is going to help with your 135G of
 files from Russia that won't seem to fit on your drive, however there is
 some pbi software in ports for you to check out..

 ports-mgmt/pbi-manager
 sysutils/pbimaker
 x11-fm/pbi-thumbnailer
 sysutils/easypbi


 I've experimented a bit with the software on FreeBSD 10.0-CURRENT and
 PC-BSD 9 machine - but I'm not an authority on the subject ;-) ... pbi
 could prove to be a good way to test out stuff that needs newer glib, gtk,
 etc, to avoid royally dorking up your system, like for example GIMP
 development sources from cvs, as an alternative to building in a jail and
 running the display through an X 'remote' connection.


 Here's a wiki page i found to be a good reference.

 http://wiki.pcbsd.org/index.php/PBI_Module_Builder_Guide

 Waitman Gobble
 San Jose California
 ___
 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

Sorry for offtopic, but for Ivan to know three things:
1) building software (and/or packaging it using PBI/tbz) is WAY more
complicated then just downloading distfiles from some mirror.
2) PC-BSD is BASED on but not EQUAL to FreeBSD and has it's own
mailing lists which can easily be found here -
http://lists.pcbsd.org/mailman/listinfo . Please do not think i'm
trying to be rude or get rid of new member, but sometimes one needs to
know the better way to find necessary information.
3) PC-BSD is based on FreeBSD since this deep knowledge of it
basically (i suppose) should begin with FreeBSD's Handbook which
carefully explains what ports are and how to use them. This page is a
good start (it's in Russian ;) )
-http://www.freebsd.org/doc/ru_RU.KOI8-R/books/handbook/ . Ports
specific information can be easily found here -
http://www.freebsd.org/doc/ru_RU.KOI8-R/books/handbook/ports.html

Cheers!


-- 




~~~
WBR,
Vitaliy Turovets
Systems Administrator
Corebug.Net
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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


Force disk with old GPT label to be recognized as MBR one

2012-08-30 Thread Виталий Туровец
Hello there, people!
I have a FreeBSD box with 9.1-RC3 i386 and an interesting HDD.
It was patitioned with GPT and zfs some (long) time ago. After that
the hdd has been completely repartitioned with MBR scheme and one
single freebsd (165) partition and one slice there. It worked fine in
7.2, but now i have to get the data from that slice and when i connect
the hdd to 9.1 box, it finds old corrupt GPT label (i suppose, it's
backup GPT header somewhere in the end of actual disk) and does not
recognize the MBR scheme there.
It sees no freebsd partitions (and one exists there, for sure :) ). So
my question is: how do i force the system to ignore old corrupt GPT
header on this hdd, or how do i remove the header, or is there any
workaround possible?
This is what gpart says about this disk:
[11:54][border][~] # gpart show ada1
=34  1250263661  ada1  GPT  (596G) [CORRUPT]
  34 256 1  freebsd-boot  (128k)
 290   838860800 2  freebsd-zfs  (400G)
   838861090   411402605- free -  (196G)

And this is what fdisk says:
[11:54][border][~] # fdisk ada1
*** Working on device /dev/ada1 ***
parameters extracted from in-core disklabel are:
cylinders=1240341 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1240341 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 1250258562 (610477 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 14/ sector 63
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED

So fdisk sees everything fine.
Thank you a lot guys!

-- 




~~~
WBR,
Vitaliy Turovets
Systems Administrator
Corebug.Net
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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: Force disk with old GPT label to be recognized as MBR one

2012-08-30 Thread Виталий Туровец
2012/8/30 Michael Sierchio ku...@tenebras.com:
 On Thu, Aug 30, 2012 at 1:54 AM, Виталий Туровец core...@corebug.net wrote:

 So
 my question is: how do i force the system to ignore old corrupt GPT
 header on this hdd, or how do i remove the header, or is there any
 workaround possible?

 dd if=/dev/zero of=/dev/ada1 bs=64k

Well, i thought that my need to get files from hdd is  easy enough to
understand from my original message:)

-- 




~~~
WBR,
Vitaliy Turovets
Systems Administrator
Corebug.Net
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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: Force disk with old GPT label to be recognized as MBR one

2012-08-30 Thread Виталий Туровец
2012/8/30 Warren Block wbl...@wonkity.com:
 On Thu, 30 Aug 2012, ??? ??? wrote:

 Hello there, people!
 I have a FreeBSD box with 9.1-RC3 i386 and an interesting HDD.
 It was patitioned with GPT and zfs some (long) time ago. After that
 the hdd has been completely repartitioned with MBR scheme and one
 single freebsd (165) partition and one slice there. It worked fine in
 7.2, but now i have to get the data from that slice and when i connect
 the hdd to 9.1 box, it finds old corrupt GPT label (i suppose, it's
 backup GPT header somewhere in the end of actual disk) and does not
 recognize the MBR scheme there.


 In case it has not been said: make a full backup of everything on that disk
 first using dd.

 Erasing the last 34 blocks or 17048 bytes of the disk will erase the backup
 GPT.  It may be enough to erase just the very last block.

   # diskinfo -v /dev/ada1
   /dev/ada1
 512 # sectorsize
 256060514304# mediasize in bytes (238G)
 500118192   # mediasize in sectors

   # : Not tested, could be off by one!
   # dd if=/dev/zero of=/dev/ada1 bs=512 seek=500118191

 Force a retaste with 'true  /dev/ada1', then see what gpart shows.  If the
 drive is still seen as GPT, adjust the seek to begin at (mediasize in
 sectors) - 34.

Thank you a lot! It worked like a charm!

-- 




~~~
WBR,
Vitaliy Turovets
Systems Administrator
Corebug.Net
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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: FreeBSD on SSD

2012-07-28 Thread Виталий Туровец
2012/7/28 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl:
 HDD Memory : 750 GB
 SSD Memory : 8 GB


 I wish to install FreeBSD on it, but I wanted to ask this beforehand :

 Would it would be possible to install it on the 8 GB SSD sector ?


 no idea how seagate momentus XT work.
 AFAIK it tries to automatically move often used things to flash. so
 install normally.




 Would it work, and how would FreeBSD generally handle the SSD share of the
 memory ?

 Thank you, V.
 ___
 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

 ___
 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

I have exactly the same drive in my laptop, Seagate Momentus XT 750GB,
with dualboot FreeBSD/Window$ installed on it using MBR and BSD
slices. The installation of FreeBSD was exactly the same as anywhere
else :) As it was said here, Momentus' Adaptive Memory technology uses
SSD as read cache, that's all. The OS doesn't even guess that these
8GBs of SSD are present somewhere :)


-- 




~~~
WBR,
Vitaliy Turovets
Systems Administrator
Corebug.Net
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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 donate code

2012-07-19 Thread Виталий Туровец
2012/7/19 Patrick Lamaiziere patf...@davenulle.org:
 Le Wed, 18 Jul 2012 12:53:00 +0300,
 Виталий Туровец core...@corebug.net a écrit :

 Hello,

  The general advice is mail the patch to -hackers for review. If you
  don't get a reply or if people like it, submit a PR so it doesn't
  get lost. Be aware that the latency for some patches could be
  longer than you expect. :(

 I already realize that :(

 The secret is to not expect anything :)

  FWIW unified diff format patches are much preferred. (diff -u)

 Okay, i'll rewrite this code under -current OS build and mail the
 unified diff patch to -hackers list.

 I remember vaguely a thread on hacker@ about ifconfig and
 netmask, you may want to check it :

 http://unix.derkeiler.com/Mailing-Lists/FreeBSD/hackers/2011-04/msg00078.html

 (IPV4 non-CIDR netmasks are valid).


The thread you mentioned was about dotted decimal notation and i'm
trying to add !CIDR! notation e.g. 1.1.1.1/32 :)

-- 




~~~
WBR,
Vitaliy Turovets
Systems Administrator
Corebug.Net
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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 donate code

2012-07-18 Thread Виталий Туровец
2012/7/18 Eitan Adler li...@eitanadler.com:
 On 17 July 2012 02:16, Виталий Туровец core...@corebug.net wrote:
 Hello, colleagues!
 How would one propose some code to current branch?
 I've made a little change to ifconfig ( a switch to display IPv4
 network masks in CIDR format instead of HEX) and want to suggest this
 change to FreeBSD project.
 Also i've created a PR with my patch describing what is done and for
 what (http://www.freebsd.org/cgi/query-pr.cgi?pr=169072cat=), but
 maybe there's some other way to somehow push this code for review by
 FreeBSD developers?
 Thank you a lot and sorry for noobish question :)

 The general advice is mail the patch to -hackers for review. If you
 don't get a reply or if people like it, submit a PR so it doesn't get
 lost. Be aware that the latency for some patches could be longer than
 you expect. :(

I already realize that :(

 FWIW unified diff format patches are much preferred. (diff -u)

Okay, i'll rewrite this code under -current OS build and mail the
unified diff patch to -hackers list.
Thank you all people!


 --
 Eitan Adler



-- 




~~~
WBR,
Vitaliy Turovets
Systems Administrator
Corebug.Net
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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


How to donate code

2012-07-17 Thread Виталий Туровец
Hello, colleagues!
How would one propose some code to current branch?
I've made a little change to ifconfig ( a switch to display IPv4
network masks in CIDR format instead of HEX) and want to suggest this
change to FreeBSD project.
Also i've created a PR with my patch describing what is done and for
what (http://www.freebsd.org/cgi/query-pr.cgi?pr=169072cat=), but
maybe there's some other way to somehow push this code for review by
FreeBSD developers?
Thank you a lot and sorry for noobish question :)

-- 




~~~
WBR,
Vitaliy Turovets
Systems Administrator
Corebug.Net
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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: enable modeline in vim

2012-07-16 Thread Виталий Туровец
2012/7/16 Victor Sudakov v...@mpeks.tomsk.su:
 Colleagues,

 Do you know how to enable modelines in vim running from root? Even if
 I put set modeline in /root/.vimrc, the output of :set modeline?
 still shows nomodeline. At the same time, set modeline in ~/.vimrc
 works for all other accounts except root.

 Someone has protected the root account so tightly that I cannot even
 shoot myself in the leg. Do you know how I could override this
 protection?

 --
 Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
 sip:suda...@sibptus.tomsk.ru
 ___
 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
In my vimrc i have next:
set modeline
set modelines=3

And it works, no matter from root or normal user. Hope this helps.


-- 




~~~
WBR,
Vitaliy Turovets
Systems Administrator
Corebug.Net
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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: OT

2012-07-12 Thread Виталий Туровец
2012/7/12 Hasse Hansson ha...@thorshammare.org:
 Hello all
 Needed an extra box today for some experimental use, and serarched my 
 storeroom.
 Found an old Compaq and fired it up. All I changed was the networksettings, 
 and there it was.
 IPv6 connectivity and all. Amasing, last serving 2003.
 Those were the days.

 Last login: Sun Dec 28 22:43:46 2003 from thor.swedehost.
 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
 The Regents of the University of California.  All rights reserved.

 FreeBSD 4.9-RELEASE (LOKE) #0: Sun Dec 28 17:16:47 CET 2003

 $ uname -a
 FreeBSD loke.thorshammare.org 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Sun Dec 28 
 17:16:47 CET 2003 r...@loke.swedehost.com:/usr/obj/usr/src/sys/LOKE  i386

Huh, cool indeed!
Two month ago i've been called to help with a small FreeBSD-based
gateway which stopped working after electrical troubles (it was a
rainy day before hehe).
After i came to the place, the only thing i had to do with a box is
just change the dead NIC.
The OS there is FreeBSD 5.3-RELEASE, and the box was setup and
forgotten just in two or three days after release.
It hasn't been touched by anyone since then :)
For me this really proves how stable my favourite OS is :)

 Regards
 Hasse


 ___
 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



-- 




~~~
WBR,
Vitaliy Turovets
Systems Administrator
Corebug.Net
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv
___
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