Pure-FTPd+MySQL+WebUI installation

apt-get install mysql-server phpmyadmin pure-ftpd-mysql

cd /etc/pure-ftpd/conf
echo no > PAMAuthentication
echo no > UnixAuthentication
rm PureDB
echo ,21 > Bind
echo 4500 4600 > PassivePortRange
echo yes > ChrootEveryone
echo yes > ProhibitDotFilesRead
echo yes > ProhibitDotFilesWrite
echo yes > NoChmod
echo yes > BrokenClientsCompatibility
echo 4 > MaxClientsPerIP
echo 20 > MaxClientsNumber
echo yes > CustomerProof
echo yes > DontResolve
echo yes > IPV4Only
echo 90 > MaxDiskUsage
echo 1000 > MinUID
echo yes > NoAnonymous
echo yes > CreateHomeDir

groupadd -g 2001 ftpgroup
useradd -u 2001 -s /bin/false -d /bin/null -c "pureftpd user" -g ftpgroup ftpuser

/etc/pure-ftpd/db/mysql.conf:
MYSQLSocket /var/run/mysqld/mysqld.sock
#MYSQLServer localhost
#MYSQLPort 3306
MYSQLUser pureftpd
MYSQLPassword pureftpdpass
MYSQLDatabase pureftpd
#MYSQLCrypt md5, cleartext, crypt() or password() - md5 is VERY RECOMMENDABLE uppon cleartext
MYSQLCrypt md5
MYSQLGetPW SELECT Password FROM ftpd WHERE User="\L" AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetUID SELECT Uid FROM ftpd WHERE User="\L" AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetGID SELECT Gid FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetDir SELECT Dir FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetBandwidthUL SELECT ULBandwidth FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetBandwidthDL SELECT DLBandwidth FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetQTASZ SELECT QuotaSize FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetQTAFS SELECT QuotaFiles FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")

mkdir -p /media/storage/ftp
chown root:ftpgroup /media/storage/ftp

untar webui in /var/www

chown www-data /var/www/ftp -R

browse to ftp/install.php

root@server:~# mysql -u root -p
Enter password:

mysql> GRANT ALL PRIVILEGES ON pureftpd.* TO 'pureftpd'@'localhost' IDENTIFIED BY 'pureftpdpass';

service pure-ftpd-mysql restart

source1 source2 source3 source4

By WladyX on 17 May, 2012 | Mysql, Ubuntu | A comment?

Mail Log Analyzer – MailGraph

[1] Install maillog analyzer, MailGraph. Web Server is also required to installed.

root@mail05:~#
aptitude -y install mailgraph rrdtool

root@mail05:~#
mkdir /var/www/mailgraph

root@mail05:~#
cp -p /usr/lib/cgi-bin/mailgraph.cgi /var/www/mailgraph

root@mail05:~#
vi /etc/apache2/conf.d/mailgraph.conf

# create new
Options ExecCGI

Order deny,allow

Deny from all

Allow from 127.0.0.1 10.0.0.0/24
# IP address you allow

 

root@mail05:~#
/etc/init.d/apache2 restart

* Restarting web server apache2
… waiting …done.
root@mail05:~#
sysv-rc-conf mailgraph on

 

source

By WladyX on 14 May, 2012 | Mail, Ubuntu | A comment?

archlinux passwordless su

/etc/pam.d/su:

auth sufficient pam_wheel.so trust use_uid

source

By WladyX on | Arch | A comment?

PostfixAmavisNew

By WladyX on 9 May, 2012 | Mail, Ubuntu | A comment?

Vmware converter “GrubInstaller::InstallGrub: /usr/lib/vmware-converter/installGrub.sh failed

I got it to work on debian 6.0 but it was a little different

I had an lvm configuration

I mounted /
I mounted my /boot
chroot /mnt (if arent already)
-dpkg-reconfigure grub-pc
-dpkg-reconfigure linux-image-2.6.32-5-686 (whatever your latest is)
-update-grub
-grub-intall /dev/sda (wherever the boot loader is)

source

By WladyX on | VMware | A comment?

Vmware converter linux no volume groups

problem:

* Mounting /dev/VolGroup00/LogVol00 on /sysroot
mount: mounting /dev/VolGroup00/LogVol00 on /sysroot failed: No such file or directory
mount: mounting /dev on /sysroot/dev failed: No such file or directory
* Switching / to /sysroot
switch_root: bad newroot /sysroot
Kernel panic – not syncing: Attempted to kill init!

solution:
In the Converter wizard, on Data to copy page, switch to Advanced view, select Destination, in the table with target virtual disks select the one where the root partition resides and click the “To Basic” button below the table. This will trigger the old 4.3 behavior where LVM was not preserved and / will be stored in a basic volume. The destination VM will boot, however your root folder will be no longer in a LVM volume. If it is OK for you this is the easiest way.

 

source

By WladyX on 8 May, 2012 | VMware | A comment?

EICAR & GTUBE

EICAR: X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* — antivirus
GTUBE: XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X — antispam
eicar gtube

By WladyX on 4 May, 2012 | Mail, Security | A comment?

TV-Maxe SopCast Player

sudo add-apt-repository ppa:venerix/blug
sudo apt-get update
sudo apt-get install tv-maxe

source

By WladyX on 2 May, 2012 | General, PPA, Ubuntu | A comment?

Logical Volume Manager (LVM) Commands for AIX

By WladyX on 27 April, 2012 | AIX | A comment?

AIX view model/firmware/etc

lsattr -El sys0

By WladyX on 23 April, 2012 | AIX | A comment?

AIX
Android
Apache
APC
Apple
Arch
Centos
Compiz