June 12, 2010 at 2:41 pm
· Filed under Linux
There are times when you need need to send E-Mail from your Linux server. The reason that I had to set up E-Mail was because I had a php script that E-Mailed me once some one filled out their information on the website. The easiest way to get your server sending mail is using GMail to send the mail. This tutorial will describe how to set it up on Ubuntu / Debian.
sudo aptitude install postfix libsasl2 ca-certificate libsasl2-modules
You want to add the fowling lines to your /etc/postfix/main.cf
relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/gmail_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
You need to edit /etc/postfix/gmail_passwd and add the fowling information below, edit it to fit your needs.
[smtp.gmail.com]:587 UserMame@gmail.com:PassWord
Next you need to turn the gmai_passwd file into something that postfix can understand, you can use the command below to accomplish that.
sudo chmod 400 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
Now you can restart postfix but it will complain about not being able to authenticate the certificate. In order to fix the problem we will use the ca-certificate package we installed earlier to tell it where it can validate the certificate.
cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a /etc/postfix/cacert.pem
Now restart postfix for the final time.
/etc/init.d/postfix
Permalink
June 2, 2009 at 6:17 am
· Filed under Linux, Unix
Here we see that we have a back slash created by mistake.
user:/var/www/core# ls -l
total 56
-rw-r–r– 1 root root 213 2009-06-01 07:14 \
-rw-r–r– 1 user user 378 2009-05-21 09:14 ads.php
We try to delete it but it is not possible because the back slash is a special charter.
user:/var/www/core# rm \
>
So we have to go and list out the inode numbers. Those are the inode numbers in the first collum.
user:/var/www/core# ls -li
total 56
458132 -rw-r–r– 1 root root 213 2009-06-01 07:14 \
457759 -rw-r–r– 1 user user 378 2009-05-21 09:14 ads.php
So now we use find to delete the inode number which in turn deletes the file.
user:/var/www/core# find . -inum 458132 -exec rm -i {} \;
rm: remove regular file `./\\’? y
user:/var/www/core# ls -l
total 52
-rw-r–r– 1 user user 378 2009-05-21 09:14 ads.php
Permalink
January 7, 2009 at 8:51 pm
· Filed under Linux
When you go and ask the smiley commission paid sales agent what operating systems they support you are just setting your self for the line “no we only support Windows”. Let me start by explaining that all your phone is doing when it is connecting from your phone, what ever weird prosperity connector you have to your phone to the usb on your computer on. Even if you have to be one of the special few that has enough money to spend on a pcmcia EV-DO card. They use ppp through the USB interface standard. The reason that the companies who deployed these deices decided to use two of most widely known, understood and devolved on no matter what OS you are using, is because it was easy. It is as simple as that, the two standards where arlready out there and devoped so why not use them. That same reason the ppp and USB are used is the very reason that even though the silly sales person tells you that it is not supported does not mean that it will not work great.
Apple – I just wanted to start off with apple for the very fact that with OSX there is not additional software that needs to be installed. It is the easiest out of the operating systems out there to set you pone up to the internet. I wish I could include some screen shots but the only time I did use OSX for any sort of extended time was the company that I worked for let me take home one for their laptops. It was really a beautiful thing, it also easily integrated with the built in blue tooth where it could just leave my phone in my pocket while I rode on the train to and from work and the computer could dial the internet completely wirelessly.
Then there is Windows the only operating systems that is supported by Any of the cariers. One of the benefits that Verizon does offer when using Windows is that they offer a program the not only makes it very easy to connect to the Verizon Wireless ISP but they make it possible to download compressed data.
I have to admit that Verizon Wireles is the one that I am most fimilar with, I have done research into some of the competitors.
Some of the other competitors to verizon are Sprint which also uses the cdma standard. But under the Sprint TOS (Term of Service) states they are not allowed to connect a computer to their phone. They are only suppose to use their phone to connect to the internet using the browser that is installed directly on their phone. Now you are saying tht a http request is a http request, and how is Sprint supose to tell the difference. Well the second that you start using any internet application Sprint knows that does not run on your phone such as IRC. They would be within their rights to cut of your service, and or charge you for your internet usage.
Then there is Cingular / At & T which is happy to let you your phone service to connect to the internet but just be ready to pay through the roof on per kb charges. Yes you heard that correctly Cingular charges per the kb unless you buy the unlimited plan which is in my opinion just too expensive.
Then there is the third cellular carier in the US Nextel which uses iDen. I am not fimilar with how well nextel works with their data plans.
You are already paying through the roof for you cell phone. Why not get the most of it that is possible.
This is neat little trick that I have been using for a couple of year
Dial up codes
Verizon
Number to dial: #777
Username: phonenumber@vzw3g.com
Password: vzw
Sprint
Number to dial: #777
Username: username@sprint.com (vision login)
Password: Vision Password
Permalink