Q: I had to re-IP a server, as transferring to a new carrier. Followed the DA instructions to convert to new server IP. No errors were noted. When gone into admin found that the old IPs where still in DA and cannot delete them. Also the new server IP was not in the “IP Manager”. All the rest of the IPs were placed into the manager with the Old IPs still visible tried again to delete without success. Tried to re-install new server IP came up message that the old IPs were the server IP and that it would not be installed. Any solutions to this problem? Advice would be appreciated.
R: If they’re out of the admin section, they’d probably still be in Reseller ip.list files.
Just remove them from the /usr/local/directadmin/data/users/*/user_ip.list file.
Where * are all of your resellers and admins.
How do I make wget work with Squid under UNIX or Linux operating systems?
You need to define the shell variables as follows:
HTTP_PROXY={YOUR-PROXY-Server-IP-HERE}:{YOUR-PROXY-SERVER-Port-Here}
FTP_PROXY={YOUR-PROXY-Server-IP-HERE}:{YOUR-PROXY-SERVER-Port-Here}
Read the rest of this entry
As a system admin, I need to use additional hard drives for to provide more storage space or to separate system data from user data. This procedure, adding physical block devices to virtualized guests, describes how to add a hard drive on the host to a virtualized guest using VMWare software running Linux as guest.
It is possible to add or remove a SCSI device explicitly, or to re-scan an entire SCSI bus without rebooting a running Linux VM guest. This how to is tested under Vmware Server and Vmware Workstation v6.0 (but should work with older version too). All instructions are tested on RHEL, Fedora, CentOS and Ubuntu Linux guest / hosts operating systems.
Read the rest of this entry
Filed under:
Centos, Linux, vps
Usually, you do not need to setup an email server under Linux desktop operating system. Most GUI email clients (such as Thunderbird) supports Gmail POP3 and IMAP configurations. But, how do you send mail via the standard or /usr/bin/mail user agents or a shell script? Programs such as sendmail / postfix / exim can be configured as a gmail smarthost but they are largely overkill for this use.
You can use gmail as a smart host to send all messages from your Linux / UNIX desktop systems. You need to use a simple program called ssmtp. It accepts a mail stream on standard input with recipients specified on the command line and synchronously forwards the message to the mail transfer agent of a mailhub for the mailhub MTA to process. Failed messages are placed in dead.letter in the sender’s home directory.
Read the rest of this entry
We talked about some of the benefits of setting up an email server in Linux and how you can use python to send email. Now we are going to look at how you can send email from Perl.
The Code
use Net::SMTP::TLS;
my $mailer = new Net::SMTP::TLS(
‘smtp.gmail.com’,
Hello => ‘smtp.gmail.com’,
Port => 587,
User => ‘username’,
Password=> ‘password’);
$mailer->mail(‘from@domain.com’);
$mailer->to(‘to@domain.com’);
$mailer->data;
$mailer->datasend(“Sent from perl!”);
$mailer->dataend;
$mailer->quit;