Ivorde Unix/Linux/Database/Web/Mail Forum

View unanswered posts
View active topics
It is currently Sat Feb 04, 2012 11:19 pm


News News of Ivorde Unix/Linux/Database/Web/Mail Forum

Site map of Ivorde Unix/Linux/Database/Web/Mail Forum » Forum : Ivorde Unix/Linux/Database/Web/Mail Forum

Welcome to ivorde.ro forum

 [ Total topics 139 Go to page 1, 2, 3, 4, 5, 6 ... 14

Message
 Post subject: How to search for a specific port in FreeBSD
PostPosted: Mon Oct 17, 2011 3:52 pm 
When you need to check if FreeBSD ports contain a specific software, one needs to either use "find /usr/ports" or make use of the "make" utility.

Searching for bash in FreeBSD ports:
# make -C /usr/ports/ search key=bash | grep -vE "B-deps|R-deps" | less
...
Port: tuntun-0.4.0_3
Path: /usr/ports/security/tuntun
Info: A Gnome applet gui for OpenVPN
Maint: anderson@cnpm.embrapa.br
WWW: http://code.google.com/p/tuntun/

Port: unssh-1.4
Path: /usr/ports/security/unssh
Info: Fast way to delete entries from OpenSSH known_hosts file
Maint: ...

Read more : How to search for a specific port in FreeBSD | Views : 156 | Replies : 0 | Forum : Package and Software Management

Top
 Post subject: How to check which package a specific file belongs to in FreeBSD - "pkg_info -W"
PostPosted: Mon Oct 17, 2011 3:39 pm 
Whenever you need to know what package installed a specific file in FreeBSD, "pkg_info" can be used.

Quote:
-W, --which filename
For the specified filename argument show which package it belongs
to. If the file is not in the current directory, and does not
have an absolute path, then the directories specified in the
environment variable PATH are searched using which(1).



This is how to list files installed by pixman package:
# pkg_info -L ...

Read more : How to check which package a specific file belongs to in FreeBSD - "pkg_info -W" | Views : 157 | Replies : 0 | Forum : Package and Software Management

Top
 Post subject: How to list outdated packages in FreeBSD
PostPosted: Mon Oct 17, 2011 3:35 pm 
After you have updated your ports system and also it's index, you can check which packages have updates using "pkg_version" utility.

Fist, relevant "man pkg_version" info:
Quote:
PKG_VERSION(1) FreeBSD General Commands Manual PKG_VERSION(1)

NAME
pkg_version -- summarize installed versions of packages

SYNOPSIS
pkg_version [ -s string]

pkg_version -t version1 version2
pkg_version -T pkgname pattern

DESCRIPTION
The pkg_version command is used to produce a report of non-base software
packages ...

Read more : How to list outdated packages in FreeBSD | Views : 135 | Replies : 0 | Forum : Package and Software Management

Top
 Post subject: FreeBSD list files installed by a specific software package - "pkg_info -L"
PostPosted: Mon Oct 17, 2011 3:26 pm 
How to list files installed by a specific package in FreeBSD using pkg_info.

Quote:
PKG_INFO(1) FreeBSD General Commands Manual PKG_INFO(1)

NAME
pkg_info -- a utility for displaying information on software packages

SYNOPSIS
pkg_info
-a | pkg-name ...
pkg_info -W filename
pkg_info -O origin
pkg_info
...
-L Show the files within each package. This is different from just
viewing the packing list, since full pathnames for everything are ...

Read more : FreeBSD list files installed by a specific software package - "pkg_info -L" | Views : 145 | Replies : 0 | Forum : Package and Software Management

Top
 Post subject: FeeBSD list installed software packages with pkg_info
PostPosted: Mon Oct 17, 2011 3:22 pm 
FeeBSD list installed packages

How to list installed software packages in FreeBSD.

Quote:
PKG_INFO(1) FreeBSD General Commands Manual PKG_INFO(1)

NAME
pkg_info -- a utility for displaying information on software packages

SYNOPSIS
pkg_info
-a | pkg-name ...
pkg_info -W filename
pkg_info -O origin
pkg_info

DESCRIPTION
The pkg_info command is used to dump out information for packages, either
packed up in files with the pkg_create(1) command or already installed ...

Read more : FeeBSD list installed software packages with pkg_info | Views : 123 | Replies : 0 | Forum : Package and Software Management

Top
 Post subject: FreeBSD to FreeBSD - OSPF over GRE over Ipsec transport mode (racoon) - Part 1
PostPosted: Mon Oct 17, 2011 12:36 am 
PART 1: FreeBSD to FreeBSD - OSPF over GRE over Ipsec (racoon)


How to run OSPF routing protocol between two FreeBSD routers/servers.

Since multicasting is not supported by racoon (ipsec-tools) IPSEC in tunel mode, this ball needs to be played using Ipsec transport mode and GRE tunnels.

A little ipsec background from Ipsec illustrated (http://www.unixwiz.net/techtips/iguide-ipsec.html). Quote:
Quote:
"Transport Mode provides a secure connection between two endpoints as it encapsulates ...

Read more : FreeBSD to FreeBSD - OSPF over GRE over Ipsec transport mode (racoon) - Part 1 | Views : 395 | Replies : 0 | Forum : VPNs

Top
 Post subject: Changing man path when having multiple man files from daemons with the same name
PostPosted: Thu Apr 07, 2011 1:50 pm 
When having multiple man files from multiple daemons with the same name (ie: /usr/share/man/man8/tftpd.8.gz from freebsd stock tftpd daemon and /usr/local/man/man8/tftpd.8.gz from yale-tftpd packet), the man tftpd command will show the content of the default tftpd.8.gz man page (/usr/share/man/man8/tftpd.8.gz).

Code:
# pkg_info -L freebsd*; pkg_info -L yale*
Information for freebsd-tftp-1.0:

Files:
/usr/bin/tftp
/usr/libexec/tftpd
/usr/share/man/man1/tftp.1.gz
/usr/share/man/man8/tftpd.8.gz

Information for yale-tftpd-3.0:

Files:
/usr/local/libexec/tftpd
/usr/local/man/man8/tftpd.8.gz


If you want to see the man page from yale-tftpd (/usr/local/man/man8/tftpd.8.gz), you can change ...

Read more : Changing man path when having multiple man files from daemons with the same name | Views : 519 | Replies : 0 | Forum : BSD Operating Systems

Top
 Post subject: DATA CENTER - Storage & Backup
PostPosted: Fri Mar 18, 2011 11:16 am 
Download the 2/2011 issue of Data Center magazine
We have great pleasure in introducing to you the latest issue of Data Center Magazine for IT leaders (managers, directors and decision makers).
You can download it for free by visiting our website: http://datacentermag.com/category/magazine/
To download the magazine, you need to register on our portal: it's easy and free.

Our March issue is devoted mainly to the Storage & Backup topic ...

Read more : DATA CENTER - Storage & Backup | Views : 380 | Replies : 0 | Forum : Datacenter Magazine

Top
 Post subject: Can't compile ssldump on FreeBSD 6 - compile fails
PostPosted: Thu Mar 17, 2011 6:26 pm 
When compiling ssldump on freebsd, the configure script uses stock bpf.h header file instead of the libpcap one.


===> Building for ssldump-0.9b3_4
cc -O2 -pipe -funroll-loops -fno-strict-aliasing -march=pentium4 -O2 -pipe -funroll-loops -fno-strict-aliasing -march=pentium4 -DHAVE_LIBM=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_SHORT=2 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=4 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_STRDUP=1 -c -o pcap-snoop.o ./base/pcap-snoop.c -DOPENSSL -I./base/ -I./null/ -I./ssl/ -Icommon/include/ -I./null/ -I./ssl/ -I/usr/local/include
In file included from ./base/pcap-snoop.c:52:
/usr/include/net/bpf.h:63: error: redefinition of `struct bpf_program'
/usr/include/net/bpf.h:87: error: redefinition of `struct bpf_version'
/usr/include/net/bpf.h:596: error: ...

Read more : Can't compile ssldump on FreeBSD 6 - compile fails | Views : 425 | Replies : 0 | Forum : Package and Software Management

Top
 Post subject: Fix shell terminal after cat-ing a binary or echoing some encrypted content
PostPosted: Thu Mar 03, 2011 12:58 pm 
Ever had the putty/securecrt/terminal looking like this after cat-ing a binary or echoing encrypted content ?

Code:
[⎼⎺⎺├@├␤⎺⎼ ·]#
[⎼⎺⎺├@├␤⎺⎼ ·]#
[⎼⎺⎺├@├␤⎺⎼ ·]#
[⎼⎺⎺├@├␤⎺⎼ ·]# ␊␌␤⎺ '\17'
\17
[⎼⎺⎺├@├␤⎺⎼ ·]# ␊␌␤⎺ -␊ '\␊(0'


There are many solutions on the web, but not all work all the time. Here's one that worked everytime for me:
Code:
echo -e '\017'

Read more : Fix shell terminal after cat-ing a binary or echoing some encrypted content | Views : 751 | Replies : 0 | Forum : Tutorials for general Unix

Top
 [ Total topics 139 Go to page 1, 2, 3, 4, 5, 6 ... 14


Last 10 active topics


Apache, Nginx, Lighttpd and other web server software

No new posts Apache - Restricting "Server" information in HTTP response header with ServerTokens
View the latest post

Tutorials for general Unix

No new posts Openssl: Commandline base64 string encoding
View the latest post
No new posts bash: -bash: output: cannot overwrite existing file
View the latest post
No new posts bash: Redirecting standard error to a shell variable and standard output to a file
View the latest post

VPNs

No new posts FreeBSD to FreeBSD - OSPF over GRE over Ipsec transport mode (racoon) - Part 2
View the latest post

System administration

No new posts How to check if ssh/http daemon listens on TCP port in FreeBSD using sockstat & lsof & netstat util
View the latest post
No new posts How to check if ssh/http daemon listens on TCP port in Linux using lsof & netstat
View the latest post

Package and Software Management

No new posts How to search for a specific port in FreeBSD
View the latest post
No new posts How to check which package a specific file belongs to in FreeBSD - "pkg_info -W"
View the latest post
No new posts How to list outdated packages in FreeBSD
View the latest post

Login

Username:   Password:   Log me on automatically each visit  

Statistics

Statistics

Total posts 188 | Total topics 681 | Total members 811



News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC + 2 hours [ DST ]

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
DAJ Glass 2 template created by Dustin Baccetti

phpBB SEO