blog.up-link.ro
24Mar/100

Apache HTTP Server + PHP 5 + MySQL Installation in FreeBSD

1. Install Apache HTTP Server
Go to apache22 port:
# cd /usr/ports/www/apache22
and type:
# make config

Now you can choose the options from the menu.
# make install clean

To enable apache on boot, add the following line to /etc/rc.conf
apache22_enable="YES"

To start apache http server, type
# /usr/local/etc/rc.d/apache22 start

2. Install PHP 5
Go to php port:
# cd /usr/ports/lang/php5
and type:

Print This Post Print This Post
18Mar/100

Quotes of the month: The Funniest and Geekiest Quotes [ March ]

"There are 10 types of people in the world: those who understand binary, and those who don't."

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."

"A couple, two software engineers, just had a baby. The husband asked his wife, is it 'boy' || 'girl'? To which his wife replied, true"

"I would love to change the world, but they won’t give me the source code."

"My software never has bugs. It just develops random features."

"Passwords are like underwear. You shouldn’t leave them out where people can see them. You should change them regularly. And you shouldn’t loan them out to strangers."

"You know it’s love when you memorize her IP number to skip DNS overhead."

"Hacking is like sex. You get in, you get out, and hope that you didn’t leave something that can be traced back to you."

"No, we don’t solve math problems during our free time… we make them!"

"I don’t love numbers… but they love me."

Print This Post Print This Post
16Mar/100

Blazing fast password recovery with new ATI cards

ElcomSoft accelerates the recovery of Wi-Fi passwords and password-protected iPhone and iPod backups by using ATI video cards. The support of ATI Radeon 5000 series video accelerators allows ElcomSoft to perform password recovery up to 20 times faster compared to Intel top of the line quad-core CPUs, and up to two times faster compared to enterprise-level NVIDIA Tesla solutions.

ATI Radeon 5000

ATI Radeon 5000

The support of massively parallel computing available in the newest ATI video accelerators such as ATI Radeon HD5970 allows ElcomSoft to achieve password recovery speeds exceeding of high-end CPUs and competing NVIDIA boards, including NVIDIA Tesla systems.

Print This Post Print This Post
15Mar/100

How To extract a single file from an archive

To extract a single file from an archive, do the following:
# tar zxf archfile.tgz –include=”filetoextract”

You can use patterns as well:
# tar zxf archfile.tgz –include=”filetoextract*”

‘filetoextract’ should contain the full path.

To check file’s full path, do the following:

# tar tf archfile.tgz

Print This Post Print This Post
4Mar/100

Researchers Find Way To Zap RSA Algorithm

Three University of Michigan computer scientists say they have found a way to exploit a weakness in RSA security technology used to protect everything from media players to smartphones and e-commerce servers. Read more via networkworld.com.

source.

Print This Post Print This Post
4Mar/100

N. Korea develops own OS

North Korea's self-developed software operating system named the "Red Star" was brought to light for the first time by a Russian satellite broadcaster yesterday.

North Korea's top IT experts began developing the Red Star in 2006, but its composition and operation mechanisms were unknown until the internet version of the Russia Today-TV featured the system, citing the blog of a Russian student who goes to the Kim Il-sung University in Pyongyan.

read more via koreaherald.co.kr.

Print This Post Print This Post
3Mar/100

MySQL Server Installation in FreeBSD using ports

This guide describes how to install MySQL, a very popular relational database, in FreeBSD.

Please make sure the ports collection is up to date. If not, run the following command:
# portsnap fetch update

Then navigate to the ports folder for MySQL:
# cd /usr/ports/databases/mysql51-server
and run:
# make install clean
This command will download required files from the internet and will install MySQL server.

Once the install is finished, we install the database
# mysql_install_db --user=mysql
and we set up the directory permissions
# chown -R mysql /var/db/mysql/
# chgrp -R mysql /var/db/mysql/

Make sure MySQL server start automatically whenever FreeBSD comes up after reboot.
FreeBSD provide this facility via system configuration information. This file lists which services should be started up at system initial boot time.
The file contains the global system configuration information referenced by the start up scripts and is stored in /etc/rc.conf.

Configure FreeBSD to start MySQL at start up
Open /etc/rc.conf file using a text editor ( I use vi but you can use your preferred editor )
# vi /etc/rc.conf
and append following line which will enable MySQL server automatically after each reboot:
mysql_enable="YES"
Save file and exit to shell prompt.

Starting MySQL server
To Start MySQL server under FreeBSD type following command (use script):
# /usr/local/etc/rc.d/mysql-server.sh start

Note: This will work only if you have mysql_enable="YES" in rc.conf. If you don't, use the following command:
# /usr/local/etc/rc.d/mysql-server.sh forcestart

MySQL Password
By default, MySQL super user account has no password. So it’s important to assign the administrator account password. To change the root password, enter the following command:
mysqladmin -u root password newpass

Replace newpass with your own desired password.

Optionally, copy either my-huge.cnf, my-large.cnf, my-medim.cnf or my-small.cnf  (depending on the usage and utilization of your MySQL server) as my.cnf to /etc/ or /var/db/mysql which will enable you to tweak and change the configuration of server-specific MySQL server options by editing the file.

Print This Post Print This Post
15Feb/100

How To Improve the Speed of Firefox 3 in Linux

We all know Firefox is a memory hog. To speed things up, do the following:

Open Firefox and type about:config in the address bar.
Click the “I’ll be careful, I promise“ button
Use the search bar above to look for network.http.pipelining and double click on it to set it’s value to True.
Create a new boolean value named network.http.pipelining.firstrequest and set it to True.
Find network.http.pipelining.maxrequests and change its value to 8.
Look for network.http.proxy.pipelining and set it to True.
Create two new integers named nglayout.initialpaint.delay and content.notify.interval, set them to 0.
Restart your browser.

Enjoy!

Print This Post Print This Post
12Feb/100

10 Linux Tips and Tricks

Here you will find a collection of usefull tips and tricks for Linux-based Operating Systems.

1. How to remove a file with a dash as first character?

If you accidentally created a file with a "-" in the beginning then you want to remove it, you have to do :

# rm ./-filename

or

# rm -- -filename

2. How to set-up nice welcome messages?

It's not actually a tip, it's just a nice thing that will make every login more cooler.
Go to http://www.fi

Print This Post Print This Post
12Feb/100

How To Recover the root Password in FreeBSD

The password cannot be recovered. The following procedure will allow you to change the root password.

Do the following:

- when the following boot message appears

Hit [ENTER] to boot immediately, or any other key for command prompt.
Booting [kernel] in 10 seconds...

hit a key, just pick one EXCEPT the ENTER key. You'll get a prompt like:

disk1s1a:>

- type the following commands:

disk1s1a:>unload all
disk1s1a:>load kernel
disk1s1a:>boot -s

The boot process will now start, just wait until it asks you for a shell. Just hit
ENTER and 'sh' will be used as shell.

If you type 'mount' you will see that only your root partition ( / ) is mounted, you will have to mount  'usr' partition as well.

#mount /dev/ad0s1f /usr

Now you have to mount root partition as read-write enabled. Use the following command:

#mount -u /

The root partition should now be mounted read-write. Now you can use 'passwd' program to
change the root password.

#passwd

That's all, reboot the system and login with the new password.

Print This Post Print This Post