It is currently Sat Dec 21, 2024 5:48 pm

News News of FreeBSD specific

Site map of FreeBSD specific » Forum : FreeBSD specific

FreeBSD specific actions
Forum rules
All information is given AS IS

How to re-install OpenSSH on FreeBSD with CP from the ports

In case you need to perform re-installation of OpenSSH on the server with OS FreeBSD and cPanel you may do it by installing it from the ports. Just do the following:
Code: Select all
ln -s /etc/rc.d/ /usr/etc/rc.d
cd /usr/ports/security/openssh-portable
make PREFIX=/usr ETCSSH=/etc/ssh install


To trace the work of the SSH daemon you may run in console of the server:

Code: Select all
/usr/sbin/sshd -ddd -p 65535

After that you will need to connect to the server using port ...
Read more : How to re-install OpenSSH on FreeBSD with CP from the ports | Views : 4067 | Replies : 0


Cloning/duplicating system using dump/restore (FreeBSD case)

For this example /dev/ad0 is the hard drive where the live system is running.

The target is an USB flash stick /dev/da0.

The following is the sequence of commands used:

Collect live file system sizes and save
Code: Select all
df -h > liveFSsizes

cat liveFSsizes

Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 496M 169M 287M 37% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s1d 1.5G 26M 1.4G 2% /var
/dev/ad0s1e 496M 10K 456M 0% /tmp
/dev/ad0s1f ...
Read more : Cloning/duplicating system using dump/restore (FreeBSD case) | Views : 6173 | Replies : 0


FreeDBS - check port dependencies (raw)

If you intend to check whether all library dependencies are satisfied or not, you might be interested in the pkg_libchk utility from sysutils/bsdadminscripts.

If you mean "which port depends on which ports", either run pkg_info -rR <portglob> for an installed port, or run make build-depends-list && make run-depends-list in a port directory under /usr/ports.

Finally: if you wonder which dependencies you still need to install for a port, run make missing in a port directory ...
Read more : FreeDBS - check port dependencies (raw) | Views : 3053 | Replies : 0


FreeBSD nextboot (alternate kernel and boot flags)

nextboot -- specify an alternate kernel and boot flags for the next reboot

SYNOPSIS

nextboot -k kernel
nextboot -D

DESCRIPTION

The nextboot utility allows specifying an alternate kernel and/or boot
flags for the next time the machine is booted. Once the loader(8) loads
in the new kernel information, it is deleted so in case the new kernel
hangs the machine, once it is rebooted, the machine will automatically
revert to its previous ...
Read more : FreeBSD nextboot (alternate kernel and boot flags) | Views : 3046 | Replies : 0


FreeBSD local r00t zeroday

http://seclists.org/fulldisclosure/2009/Nov/371


** FreeBSD local r00t 0day
Discovered & Exploited by Nikolaos Rangos also known as Kingcope.
Nov 2009 "BiG TiME"

"Go fetch your FreeBSD r00tkitz" // http://www.youtube.com/watch?v=dDnhthI27Fg

There is an unbelievable simple local r00t bug in recent FreeBSD versions.
I audited FreeBSD for local r00t bugs a long time *sigh*. Now it pays out.

The bug resides in the Run-Time Link-Editor (rtld).
Normally ...
Read more : FreeBSD local r00t zeroday | Views : 2969 | Replies : 0


FreeBSD + cPanel fonts location

IF under the "Bandwidth" section in the cPanel user-interface (http://cpanel_server.com:2082/frontend/ ... width.html) you can not see the details of the months and days (only blank fields), most likely the issue connected with improper GD/Fonts work.

The real reason is "incorrect" (from cPanel point of view) fonts location. Following symbolic link resolves it:
Code: Select all
ln -s /usr/local/lib/X11/fonts/URW /usr/share/fonts
Read more : FreeBSD + cPanel fonts location | Views : 2521 | Replies : 0


Shared object "libperl.so" not found, required by "exim"

On FreeBSD server with cPanel control panel Exim restart lead us to the following errors:
Code: Select all
root# /scripts/restartsrv_exim
info [restartsrv_exim] BSD::Resource not available.  Resource Limits not adjusted
/libexec/ld-elf.so.1: Shared object "libperl.so" not found, required by "exim"
/libexec/ld-elf.so.1: Shared object "libperl.so" not found, required by "exim"
root#


This error may be caused by recent cpanel upgrade (upcp) and other 'perl-involved' maintenance on the server. First part of error message can be fixed by installing CPAN modules manually: ...
Read more : Shared object "libperl.so" not found, required by "exim" | Views : 7129 | Replies : 0




FreeBSD memory stats (perl script)

FreeBSD RAM memory

freebsd-memory -- List Total System Memory Usage
#!/usr/bin/perl
##
## freebsd-memory -- List Total System Memory Usage
## Copyright (c) 2003-2004 Ralf S. Engelschall <[email protected]>
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions
## are met:
## 1. Redistributions of source code must retain the above copyright
## notice, this list of conditions and the following disclaimer.
## ...
Read more : FreeBSD memory stats (perl script) | Views : 12676 | Replies : 1


Front Page Extentions on FreeBSD server

Common error message:
Cannot find package compat-gcc-32 ...
Cannot find package glibc-devel.i386 ...
Cannot find package compat-glibc ...
Cannot find package libgcc.i386 ...
Cannot find package glibc-devel ...
Cannot find package libgcc ...

Official documentation (http://www.cpanel.net/support/docs/ea/ea3/faq_frontpage.html) says:

FrontPage is supported for all versions of Apache available through EasyApache 3 and all operating systems supported by cPanel. For Apache 2.0 and 2.2, the fpexe FrontPage binary is replaced with a copy of /scripts/fp-auth which collects the ...
Read more : Front Page Extentions on FreeBSD server | Views : 2989 | Replies : 0


 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22

cron