Linux

linux news, linux rewievs, linux programs, kde

While i was trying to configure postfix, i learnt to sending e-mail in ssh. There are some script to do this and i choose sendEmail to install

sendemail type:

sudo apt-get intstall sendemail

then you can type

sendemail -f {from} -t (emailto}

sendEmail -f ADDRESS [options]

Required:
-f ADDRESS                from (sender) email address
* At least one recipient required via -t, -cc, or -bcc
* Message body required via -m, STDIN, or -o message-file=FILE

Common:
-t ADDRESS [ADDR ...]     to email address(es)
-u SUBJECT                message subject
-m MESSAGE                message body
-s SERVER[:PORT]          smtp mail relay, default is localhost:25

Optional:
-a   FILE [FILE ...]      file attachment(s)
-cc  ADDRESS [ADDR ...]   cc  email address(es)
-bcc ADDRESS [ADDR ...]   bcc email address(es)
-xu  USERNAME             username for SMTP authentication
-xp  PASSWORD             password for SMTP authentication

Paranormal:
-b BINDADDR[:PORT]        local host bind address
-l LOGFILE                log to the specified file
-v                        verbosity, use multiple times for greater effect
-q                        be quiet (i.e. no STDOUT output)
-o NAME=VALUE             advanced options, for details try: –help misc
-o message-file=FILE         -o message-format=raw
-o message-header=HEADER     -o message-charset=CHARSET
-o reply-to=ADDRESS          -o timeout=SECONDS
-o username=USERNAME         -o password=PASSWORD
-o tls=<auto|yes|no>         -o fqdn=FQDN

Help:
–help                    the helpful overview you’re reading now
–help addressing         explain addressing and related options
–help message            explain message body input and related options
–help networking         explain -s, -b, etc
–help output             explain logging and other output options
–help misc               explain -o options, TLS, SMTP auth, and more

After that type your email and press ctrl+d:

Mar 04 21:44:24 power sendEmail[24236]: Message input complete.
Mar 04 21:44:25 power sendEmail[24236]: Email was sent successfully!

Second Way

install mailx with:

sudo apt-get install mailx

to send email

mailx to@me.com

Subject: Write subject press enter

type here body press ctrl+d

CC: blank

Related posts

Tags: , , ,

Vim is the best text editor, i have ever used.  I’m using vim while coding with pyton,html and css.

How to install vim

sudo apt-get install vim vim-common vim-gnome

Usage and some features

You can open a file with using: vi open_me.txt

  1. Command mode: letters or sequence of letters interactively command vi. Commands are case sensitive. The ESC key can end a command.
  2. Insert mode: Text is inserted. The ESC key ends insert mode and returns you to command mode. One can enter insert mode with the “i” (insert), “a” (insert after), “A” (insert at end of line), “o” (open new line after current line) or “O” (Open line above current line) commands.
  3. Command line mode: One enters this mode by typing “:” which puts the command line entry at the foot of the screen.

there are some usefull commands, i took the image from “Learning the vi and Vim Editors” books. You can look over if  you want.

Related posts

Tags: , , , ,

command:

sudo apt-get install php5-gd

Don’t forget to restart apache

service apache2 restart

Related posts

Tags: , ,

Ubuntu 9.10 has released, it has some new faetures, i shared a few of them. For more

Store, sync and share


Integrated “Ubuntu One” technology gives you 2 GB of online storage for free. Easily share files between your own and your friends’ computers. Upgrade at low cost for more storage if you need it.

Software Center

Instant access to thousands of free and open-source applications

Categories include: Education, Games, Sound and Video, Graphics, Programming and Office.

Simply select the applications you want to use and the Software Center will add them to your computer

No CDs, no licenses, no hassle.

Download Ubuntu 9.10

Related posts

Tags: , ,

Dns Cache with dnsmasq

To make a faster browsing , you can use dns cache.

To understand why you should use dns cache, you should learn how dns works.

With the each client request, dns try to find ip address for domain. Forexample for each you type www.google.com, your browser try to find google.com ips again. Dns cache is hold this ip in local, so you can access faster.

I’m using dnsmasq , to install in ubuntu.

“sudo apt-get install dnsmasq”

to configure (i’m using static ip, if you are using a dynamic ip more configuration might have to be done. )

open /etc/dhcp3/dhclient.conf

“vi /etc/dhcp3/dhclient.conf”

change

#prepend domain-name-servers 127.0.0.1;

with

prepend domain-name-servers 127.0.0.1;

Example:

dig ebay.com

; <<>> DiG 9.5.1-P2 <<>> ebay.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45431
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;ebay.com.            IN    A

;; ANSWER SECTION:
ebay.com.        2330    IN    A    66.211.160.88
ebay.com.        2330    IN    A    66.135.205.13
ebay.com.        2330    IN    A    66.135.205.14
ebay.com.        2330    IN    A    66.135.221.10
ebay.com.        2330    IN    A    66.135.221.11
ebay.com.        2330    IN    A    66.211.160.87


;; Query time: 140 msec

;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Sep  5 23:21:51 2009
;; MSG SIZE  rcvd: 122

After dns cache:

dig ebay.com

; <<>> DiG 9.5.1-P2 <<>> ebay.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17990
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;ebay.com.            IN    A

;; ANSWER SECTION:
ebay.com.        2327    IN    A    66.211.160.87
ebay.com.        2327    IN    A    66.135.221.11
ebay.com.        2327    IN    A    66.135.221.10
ebay.com.        2327    IN    A    66.135.205.14
ebay.com.        2327    IN    A    66.135.205.13
ebay.com.        2327    IN    A    66.211.160.88

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Sep  5 23:21:54 2009
;; MSG SIZE  rcvd: 122


Related posts

Tags: , ,

A Simple Djb File

Default:

#domain.tld:
&domain.tld::ns1.nameserver.tld:3600
&domain.tld::ns2.nameserver.tld:3600
+domain.tld:97.107.130.190:3600
+*.domain.tld:97.107.130.190:3600
@domain.tld:97.107.134.172:mail.domain.tld::3600
Zdomain.tld:ns1.nameserver.tld:dns.nameserver.tld:2009081301:3600
‘domain.tld:v=spf1 a mx ip4\07297.107.130.190 -all:360

Simple one:

#egitimpili.com:
&egitimpili.com::ns1.runotech.com:3600
&egitimpili.com::ns2.runotech.com:3600
+egitimpili.com:97.107.130.190:3600
+*.egitimpili.com:97.107.130.190:3600
@egitimpili.com:97.107.134.172:mail.:etimpili.com:3600
Zegitimpili.com:ns1.runotech.com:dns.runotech.com:2009081301:3600
‘egitimpili.com:v=spf1 a mx ip4\07297.107.130.190 -all:3600

For more: http://cr.yp.to/djbdns.html


Related posts

Tags: , , , ,

To learn your linux and kernel version ( release ) you can use /proc/version

Type it in console:

cat /proc/version

Linux version 2.6.18-92.el5
(brewbuilder@ls20-bc2-13.build.redhat.com)
(gcc version 4.1.2 20071124 (Red Hat 4.1.2-41))
#1 SMP Tue Apr 29 13:16:15 EDT 2008

In this output, you get to see the following information:

  1. Exact version of the Linux kernel used in your OS: Linux version 2.6.18-92.el5
  2. Name of the user who compiled your kernel, and also a host name where it happened: brewbuilder@ls20-bc2-13.build.redhat.com
  3. Version of the GCC compiler used for building the kernel: gcc version 4.1.2 20071124
  4. Type of the kernel – SMP here means Symmetric MultiProcessing kernel, the one that supports systems with multiple CPUs or multiple cpu cores
  5. Date and time when the kernel was built: Tue Apr 29 13:16:15 EDT 2008

For more: http://www.unixtutorial.org/2009/04/use-proc-version-to-identify-your-linux-release/

Related posts

Tags: , , , , ,

To convert nrg files to iso files, you should install nrg2iso
sudo apt-get install nrg2iso
Usage:
nrg2iso a.nrg a.iso

Related posts

Tags: , , ,

i am using windows to work with Photoshop, however transfering files is very difficult  without using shared folder.

to add shared folder to your virtualbox, run your virtual os.

31. Click install guest additions from devices

31 2. Click yes to download iso file.

4

3.Click link and download it to your desktop.

5

4. Devices -> Mount CD/DVD-ROM -> CD/DVD-ROM Image

6

5. choise your iso file

76. Go to My computer and install guest additions like installing a program.

8

7. To add shared folders click Shared Folders.. from devices

9

8. Click add an slect your folder , i selected my foder named “Belgelerim”, don’t forget to make your folder permanent

10

9. Go to windows explorer , you can see your shared folder in My Network (or something like that) / VirutalBox Shared Folder /

i hope it helped you…

Related posts

Tags: , ,

Dbus Error Solution

After i installed the kde4 package, pisi gave erro
“org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit.AuthenticationAgent was not provided by any .service files”
to solve you should resinstall policykit

“sudo pisi it PolicyKit-kde –reinstall”
After restart your computer.

Related posts

Tags: ,