Archive for the ‘Unix’ Category

News: Free UNIX derivative DragonFly 2.0 released

Saturday, August 9th, 2008

heise online said:

Version 2.0 of the FreeBSD spin-off, DragonFly BSD, is available for immediate download. The eighth major release of the project contains a new filesystem along with better hardware support, bug fixes and new software.One of the highlights of the new version is the Hammer file system, which can handle snapshots and includes features like undo and rollback. Hammer also removes the need to run fsck after a crash.Developers have worked hard with improvements in the drivers for network and WiFi cards. There are also improvements to the Bluetooth stack, and the FreeBSD driver for the Omnikey CardMan 4040 smartcard reader is now integrated into DragonFly BSD.The system is available on an installable live CD that lets users first test compatibility with their hardware. DragonFly BSD can then be installed on a hard drive using either a command line installer or a still experimental browser-based installer. The project provides detailed installation instructions in the read-me file.

DragonFly BSD started in June 2003 when it split off from the FreeBSD project. Matthew Dillon of the FreeBSD team who started DragonFly, callied it the “logical continuation” of the 4.x FreeBSD series. As a spin-off of FreeBSD, DragonFly BSD is one of the free UNIX derivatives based on the free 4.4BSDLite2 release. Some of the best known representatives of these BSD systems are OpenBSD, FreeBSD, and NetBSD. (jk/c’t)

Fine Control of FreeBSD port

Saturday, August 2nd, 2008

MASTER_SITES controls where the port fetches its source from. By setting MASTER_SITE to the site of a known good source code tarball, you can control where the port downloads from. For example, if you use the command make MASTER_SITE=ftp://ftp2.freebsd.org/pub/FreeBSD/distfiles, then fetch will attempt to pull the distfile directly from that site.

If you want to pull the distfile directly from a FreeBSD repository, you can specify MASTER_SITE_FREEBSD=YES. The distfile probably exists there. Most FreeBSD mirrors are already heavily loaded, so please avoid this.

Probably the most useful option for maintainers of large FreeBSD networks is MASTER_SITE_OVERRIDE. The network administrator can build a central repository of important distfiles on a local server. The site listed in MASTER_SITE_OVERRIDE is checked for distfiles before any remote sites are contacted. This saves on exterior bandwidth and makes fetching distfiles more reliable.

For more details go here.

MySql first time installation

Saturday, August 2nd, 2008

This is what you have to do after your mysql binary installed on your FreeBSD or Linux machine.

freebsd02# mysql_install_db –user=mysql

WARNING: The host ‘freebsd02.acskl.com’ could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables…
OK
Filling help tables…
OKTo start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/local/bin/mysqladmin -u root password ‘new-password’
/usr/local/bin/mysqladmin -u root -h freebsd02.acskl.com password ‘new-password’

See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr/local ; /usr/local/bin/mysqld_safe &You can test the MySQL daemon with mysql-test-run.pl

For FreeBSD, do not forget to add the following to your /etc/rc.conf :

mysql_enable=”YES”

cd mysql-test ; perl mysql-test-run.plPlease report any problems with the /usr/local/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com

Howto setup FreeBSD behind a http proxy

Friday, August 1st, 2008

If you are installing some package using FreeBSD port, it is going to download the package from the internet using fetch. If you machine is behind a proxy, you have to set the environment for HTTP_PROXY :

setenv HTTP_PROXY http://your_proxy_server:port

or add the line to your .cshrc

If the proxy need authentication, add HTTP_PROXY_AUTH :

setenv HTTP_PROXY_AUTH ‘basic:*:<username>:<password>’

then reboot your machine.

How to send email with attachment using unix command line

Tuesday, July 29th, 2008

You need a third party package called mpack. Then, at the command line:

mpack -s ‘the subject’ -c application/octet-stream filename_to_attach  destination@domain.com

Software Blogs - BlogCatalog Blog Directory Technology Technology blogs