Saturday, March 21, 2009

Saturday, March 14, 2009

Some linux stuff

httpd.conf
/etc/apache2/httpd.conf

crontab usage

crontab [-u user] file
crontab [-u user] { -e | -l | -r }
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)
-i (prompt before deleting user's crontab)


visudo

List of who can run what
/etc/sudoers

Lock file for visudo
/etc/sudoers.tmp

Sunday, March 1, 2009

HTML - How to display Turkish characters?


LATIN SMALL LETTER C WITH CEDILLA = ç ==> ç

LATIN CAPITAL LETTER C WITH CEDILLA = Ç ==> Ç

LATIN SMALL LETTER G WITH BREVE = ğ ==> ğ

LATIN CAPITAL LETTER G WITH BREVE = Ğ ==> Ğ

LATIN SMALL LETTER I DOTLESS = ı ==> ı

LATIN CAPITAL LETTER I WITH DOT ABOVE = İ ==> İ

LATIN SMALL LETTER O WITH DIARESIS= ö ==> ö

LATIN CAPITAL LETTER O WITH DIARESIS = Ö ==> Ö

LATIN SMALL LETTER S WITH CEDILLA = ş ==> ş

LATIN CAPITAL LETTER S WITH CEDILLA = Ş ==> Ş

LATIN SMALL LETTER U WITH DIARESIS= ü ==> ü

LATIN CAPITAL LETTER U WITH DIARESIS = Ü ==> Ü

Monday, February 2, 2009

Adding FTP users outside of Plesk


To add a chrooted FTP user outside of Plesk properly, you need to:

* Create the user with the home directory as the root of what they can access
* Give the user a password
* Make their primary group psacln
* Add them to the psaserv group as well

# useradd username -d /var/www/html/website/slideshow/
# echo "password" | passwd username --stdin
Changing password for user username.
passwd: all authentication tokens updated successfully.
# usermod -g psacln username
# usermod -G psaserv username
# lftp username:password@localhost
lftp username@localhost:/> cd ..
lftp username@localhost:/>
http://rackerhacker.com/2007/04/27/adding-chrooted-ftp-users-outside-of-plesk/

Saturday, January 17, 2009

Make split .rar files Ubuntu Linux

To compress file(s) to split rar archive know which directory you want to compress, I used /home as an example

rar a -m5 -v5M -R myarchive /home/


Let me break the above command down

rar - starts the program
a - tells program to add files to the archive
-m5 - determine the compression level (0-store (fast)...3-default...5-maximum(slow))
-v5M - determine the size of each file in split archive, in this example you get files with size 5MB (if you wanted files of 512kB size you would write -v512k)
myarchive - name of the archive you are creating
/home/ - is folder of the files you wish to add to the archive

More details;