Thursday, June 24, 2010, 11:36 PM - Unix/Linux
Squid Proxy WARNING! Your cache is running out of filedescriptors error and solution
Set max_filedesc under Ubuntu / Debian Linux
First, stop squid proxy server, enter:
# /etc/init.d/squid stop
OR
$ sudo /etc/init.d/squid stop
Open /etc/default/squid to set max. number of filedescriptors to use. You can increase this on a busy
cache to a maximum of (currently) 4096 filedescriptors. Default is 1024.
$ sudo vi /etc/default/squid
OR
# vi /etc/default/squid
Now set SQUID_MAXFD:
SQUID_MAXFD=4096
Save and close the file. Start the squid proxy server:
$ sudo /etc/init.d/squid start
Verify that it is working with new limits:
# squidclient mgr:info | grep 'file descri'
add comment
| permalink
| 



( 3 / 140 )




( 3 / 140 )
Monday, April 19, 2010, 08:07 PM - Unix/Linux
Ubuntu is one of the few Linux distributions out there that will not enable the root account.If you want to do something with root permission on the console you have to type sudo before the command.
sudo” means superuser do. “sudo” will prompt for “Password:”. Please specify user password
As you have noticed during the Ubuntu installation there was no question about the root password, as you might have been used to see during other Linux distribution installation process.Because of this your root accout is inactive.
If you want to enable root account (which is not recommended) enter the following command.
$sudo passwd root
This will prompt for a new root password and once you confirm it, you can start using the root account to login.
If you want to disable root account in ubuntu you need to lock the root account by using the following command
$sudo passwd -l root
If you want to work on a root console you’d better use the following command
$sudo -i
Monday, April 19, 2010, 08:04 PM - Unix/Linux
If you forgot you password for your ubuntu system you can recover using the following steps
1. Turn your computer on.
2. Press ESC at the grub prompt.
3. Press e for edit.
4. Highlight the line that begins kernel ………, press e
5. Go to the very end of the line, add rw init=/bin/bash
6. press enter, then press b to boot your system.
7. Your system will boot up to a passwordless root shell.
Wednesday, March 24, 2010, 07:20 PM - Routine, Windows
1. Create batch file called something, example is postgresqlBackup.bat. The file must be located in PostgresqlBack directory not the bin folder.
@echo off
for /f "tokens=1-4 delims=/ " %%i in ("%date%") do (
set dow=%%i
set month=%%j
set day=%%k
set year=%%l
)
set datestr=%month%_%day%_%year%
echo datestr is %datestr%
set BACKUP_FILE=<NameOfTheFile>_%datestr%.backup
echo backup file name is %BACKUP_FILE%
SET PGPASSWORD=<PassWord>
echo on
bin\pg_dump -i -h <HostName> -p 5432 -U <UserName> -F c -b -v -f %BACKUP_FILE% <DATABASENAME>
2. Change <NameOfTheFile> to something. One idea is use the name of the database. (make sure there are no spaces after the word BACKUP_FILE any spaces will cause this setting not to work.) Setting is the first part of the file name then followed by the date the file was created with the extension .backup
3. Change the <PassWord > setting above to the correct password for the backup users. (make sure there is no spaces after the word PGPASSWORD any spaces will cause this setting not to work. Description of pgPassword
4. Change <HostName> either to ip address or dns name of the server hosting Postgresql.
Change <UserName> to backup user make sure this users has access to database for backup purposes
5. Change <DATABASENAME> to the database name being backed up.
Save the File
6. Create Task for the MS Task Scheduler
Once you have chosen the security context the Task in going to run in, it is advised to change the directory security where the backup is run and the files are stored, as a high level user name and password are stored in plain text.
Thursday, March 4, 2010, 04:26 AM - Routine
-- Manny Pacquiao live fights channel --
Possible sopcast channel: sop://broker.sopcast.com:3912/24267
-- How to install sopcast player --
Just like in two of his most recent fights, the sopcast player has proved to be the most reliable source of live streaming boxing fights and other sports events that are highly anticipated by millions, that’s why we chose the sopcast player as our source again!
1. Install the SopPlayer software, download it from here
2. Install the software, and then launch it.
3. Login as anonymous
4. Enter this sop://broker.sopcast.com:3912/24267 and click on the right arrow[3. We will update this post every now and then to find more links and sources, please stay updated by visiting frequently.]
5. That’s it, and you’ll be having Manny Pacquiao facing Ricky Hatton LIVE!
Next






