I: This guide didn’t aswered my question. What can i do ?
R: You can send an email to us and we will answer your question.
I: Where is located the password config file for PPTP tuneling ?
R: The password can be found in /etc/ppp/chap-secrets
I: How can I create a new user, delete one or change it’s password ?
R: Use the commands useradd and passwd:
useradd username
userdel username
passwd username
I: Is there a browser in text mode in TFM ?
R: Yes, use Elinks with the following commands:
lynks
links
elinks
I: How can I test an email account and send throught it’s server using telnet ?
R: Use the following commands, considering you want to send from mail server called mailer.com:
dig MX mailer.com (to find the Mail Exchanger IP ) telnet mailer.com 25 hello tfm.ro mail from: admin@nosuchdomain.ro rcpt to: mailtoverify@domain.com data blah blah . quit
I: How can I see what processes are eating too much CPU time or RAM ?
R: Use “top” command.
I: How to find how much free space I got on every mounted device ?
R: Use “df -aH ” command.
I: How to find how fast my hard drives are ?
R: Use the following command:
hdparm -tT /dev/hda3 (where hda3 is the drive/partition you want to benchmark You will get a result like this:
/dev/hda3:
Timing buffer-cache reads: 128 MB in 1.08 seconds =118.52 MB/sec
Timing buffered disk reads: 64 MB in 1.61 seconds = 39.75 MB/sec
I: How can i monitor the trafic on a specific interface ?
R: Use “iptraf” or “netrate” command.
I: Where is my site hosted by default ?
R: By default it’s in /var/www
I: Where from can i manage my ftp accounts via web ?
R: You can use TFM pureftpd admin, located in www.domain.com/tfm_adm/login.php
I: How to see what hard drives i got inside my server ?
R: Use “fdisk -l”.
I: How to see how much space a directory uses ?
R: Use “du -s”
I: How to stop all processes named “*http” ?
R: Use “killall http”
I: How to setup Vacation mode for a specified mail account ?
R: Use Qmailadmin (usually found in http://www.yourwebsite.com/cgi-bin/qmailadmin) and Edit mail account, then check Vacation and set the Vacation message.
I: How to forward an email that’s in Vacation mode ?
R: After using Qmailadmin and setting up Vacation mode, go into /var/vpopmail/domains/yourdomain.com/username and you will see a file called .qmail. Edit it and add as a second line the path to the email account maildir you want to be forwarded (for example /var/vpopmail/domains/yourdomain.com/office/Maildir/
I: How to set a task to be executed hourly/daily/weekly/monthly ?
R: In /etc directory, you will find:
/cron.daily
/cron.hourly
/cron.monthly
/cron.weekly
Create in there an executable file containing the command you want to be executed daily. For example:
#!/bin/sh /usr/bin/php update.php
I: How to find where a file is located ?
R: Use “whereis” command. For example “whereis top”
I: Serverul meu trebuie sa suporte un numar foarte mare de conexiuni. Ce setari trebuie sa fac ?
R: Setarile recomandate pentru un numar foarte mare de conexiuni sint:
echo 83886080 > /proc/sys/net/core/wmem_max echo 83886080 > /proc/sys/net/core/wmem_default echo 335544320 > /proc/sys/net/core/rmem_max echo 335544320 > /proc/sys/net/core/rmem_default echo 65536 > /proc/sys/fs/file-max echo 65536 > /proc/sys/net/ipv4/tcp_max_tw_buckets echo 65536 > /proc/sys/net/ipv4/tcp_max_syn_backlog echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse echo 15 > /proc/sys/net/ipv4/tcp_fin_timeout echo 0 > /proc/sys/net/ipv4/tcp_syncookies echo 100000 > /proc/sys/net/core/netdev_max_backlog
am incercat sa il instale dar am un hdd de 160gb si nu il vede hdd e pe ide WD