Once again Maddox gets it right.
That is all.
If your Ubuntu System has set to use DHCP, you will want to change it to a static IP address here’s how to do it.
Edit /etc/network/interfaces with your favourite editor
sudo vi /etc/network/interfaces
If you are using DHCP for your primary network card which is usually eth0, you will see the following lines
auto eth0
iface eth0 inet dhcp
As you can see, it’s using DHCP right now. We are going to change dhcp to static, and add all the required networking information like you see below
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
Restart the neworking service using the following command
sudo /etc/init.d/networking restart
USE=”php apache2 mysql truetype gd vhosts”
emerge -av wordpress
webapp-config -I -d wordpress wordpress 3.2.1
Create a database, replacing databasename with the name that you wish to choose and create a user for the database, replacing username with the name that you intend to use. Same with password.
% mysql -u root -p Password: > CREATE DATABASE databasename; > GRANT ALL PRIVILEGES ON databasename.* TO username@localhost IDENTIFIED by ‘password’; > FLUSH PRIVILEGES; > exit > Ok, bye!
Edit your wordpress configuration file and verify your settings below
% vi /var/www/localhost/htdocs/wordpress/wp-config.php
...
// ** MySQL settings ** //
define('DB_NAME', 'wordpress'); // The name of the database
define('DB_USER', 'username'); // Your MySQL username
define('DB_PASSWORD', 'password'); // ...and password
define('DB_HOST', 'localhost');
...
% vi /etc/apache2/httpd.conf
Comment out the following line:
LoadModule unique_id_module modules/mod_unique_id.so
Add the following to the end:
ServerName localhost % vi /etc/conf.d/apache2
Add the “-D PHP5″ to the options passed in APACHE2_OPTS
Start apache2
% /etc/init.d/apache2 start
Point your browser to http://localhost/wordpress
Have fun!
Customers of Sympatico’s high-speed Internet service receive instructions on
how to set up their email; however, these settings are aimed at people using
Outlook, Windows Mail or some other crap that nobody cares about. What I
needed were instructions on how to configure my local SMTP server, Postfix,
with Sympatico. Of course, that information is not available.
This post details how I figured out the settings required to make sympatico
happy.
You need a version of Postfix built with TLS and SASL support enabled. If
your Linux distribution doesn’t come with it pre-built than get one that does,
Gentoo is a good start.
On my Gentoo system I simply did:
# emerge -av postfix sasl
I’m assuming that your Postfix configuration directory is /etc/postfix.
Adjust appropriately to accommodate your system. To use SASL we need
a password file containing our user name and password for the server we
are connecting to.
Per Sympatico’s instructions the server is smtphm.sympatico.ca.
# cd /etc/postfix # mkdir sasl && cd sasl # echo "[smtphm.sympatico.ca] USERNAME@symaptico.ca:PASSWORD" > passwd # postmap hash:passwd
The above creates the password file and the hash-based database file that
Postfix uses. Of course replace USERNAME with your Symaptico user name,
and PASSWORD with your password (the email password, not the b1 password
to access the Internet.)
Make sure in your main.cf you have configured your relayhost as:
relayhost = [smtphm.sympatico.ca]
Finally, add the following lines to your main.cf file:
# Enable TLS/SASL for the smtphm.sympatico.ca server smtp_use_tls = yes smtp_tls_note_starttls_offer = yes tls_random_source = dev:/dev/urandom smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd smtp_sasl_security_options =
Restart Postfix and send a test message. If all went well you should see the
successful sending of the message in the Postfix log file.
Good luck and let me know if it worked for you.
To get this running, I followed the documents @ the bottom of this post.
Here’s the condensed version assuming you’re on Gentoo.
# emerge ssmtp (USE="ipv6 -mailwrapper -md5sum ssl") # cd /etc/ssmtp
In /etc/ssmtp/ssmtp.conf, set the following:
root=youraccount@gmail.com mailhub=smtp.gmail.com:587 rewriteDomain= hostname=youraccount@gmail.com UseSTARTTLS=YES AuthUser=youraccount AuthPass=yourpasword FromLineOverride=YES
In /etc/ssmtp/revaliases:
root:youraccount@gmail.com:smtp.gmail.com:587 mainuser:youraccount@gmail.com:smtp.gmail.com:587
Test with:
# echo test | mail -s "testing ssmtp" user@domain.tld
Check the remote account (youraccount@gmail.com) to make sure the mail arrived.
Resources and troubleshooting:
http://forums.gentoo.org/viewtopic-p-3011748.html
http://forums.gentoo.org/viewtopic-t-412468.html
Gentoo: Quicker install
Boot with SystemRescueCD, this is missing a few steps like the stage and portage
download and untar stuff. I may add it at some point but I probably won’t.
net-setup eth0
passwd
fdisk /dev/sda
# create partitions
mkdir /mnt/gentoo
swapon /dev/sda2
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
# copy stage3* and portage* into / and /usr
mount -t proc /proc /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
env-update
emerge sys-kernel/gentoo-sources
cd /usr/src/linux
make menuconfig
make dep && make clean bzImage modules modules_install
cp /usr/src/linux/arch/i386/boot/bzImage /boot
emerge reiserfsprogs vim zsh zsh-completion screen /
syslog-ng vixie-cron grub perl apache php
# configure grub
etc-update
exit
cd /
umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
reboot
File: /etc/make.conf:
# CFLAGS & CHOST
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
# Mirrors
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
# USE Flags
USE="nptl nptlonly -ipv6 -fortran -cups unicode svg hal dbus -kde -qt3
-qt4 -arts -eds -esd gnome gstreamer gtk firefox X consolekit
mysql libwww php syslog cairo apache2 cgi curl ctype xml pdo
mysqli gd pango"
# Options
ACCEPT_KEYWORDS="x86"
FEATURES="ccache parallel-fetch"
EMERGE_DEFAULT_OPTS="--ask --verbose"
MAKEOPTS="-j3" # 3 for 2 cpu's
VIDEO_CARDS="nv" # Replace this with your video card
Category: Session
Connection type: SSH
Category: Window
Lines of scrollback: 2000
Category: Window > Appearance
Font: Consolas, 10-point
Font quality: ClearType or AntiAlias
Gap between text and window edge: 3
Category: Window > Translation
Character set: UTF-8
Handling of line drawing characters: Unicode
Category: Window > Selection
Paste to clipboard in RTF as well as plain text: enabled
Category: Window > Colours
ANSI Blue: Red:74 Green:74 Blue:255
ANSI Blue Bold: Red:140: Green:140 Blue:255
Category: Connection
Seconds between keepalives (0 to turn off): 25
Category: Connection > SSH > X11
Enable X11 forwarding: enabled
By default Quick Launch is disabled in Windows 7. This will show you how to enable or
disable Quick Launch on the taskbar in Windows 7 as a toolbar with small or large icons.
Quick Launch is used to open a program quickly from a shortcut on the taskbar. In this
case in a toolbar.
The Quick Launch folder is located at this hidden system folder location:
C:Users(user-name)AppDataRoamingMicrosoftInternet ExplorerQuick Launch
If you have the issue of where the pinned Quick Launch disappears on you after logging
off and on or restarting the computer, then a workaround for this issue is to create a new
folder, copy the shortcuts in the Quick Lauch folder above into the new folder, then pin the
new folder to the taskbar instead just like the Quick Launch folder here.
mysql -u adminusername -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 5340 to server version: 3.23.54
Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
mysql> CREATE DATABASE databasename;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname"
-> IDENTIFIED BY "password";
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)
mysql> EXIT
Bye
Recent Comments