Archive for October, 2006|Monthly archive page
Linux – Write Access to USB Thumb Drive
Make sure that your USB thumb drive is formatted in FAT or FAT32. Write support for NTFS is still on experimental stage since M$ refuses to release specification of NTFS.
Thanks to ubuntuforums for this information.
Linux – Ext FS in Windows
By default, windows cannot read Linux volumes. What if you need to restore some of the files on a linux box and you only have Windows on your area? There are free software where you can have full access to Linux volumes (ext2 and ext3). You may try downloading Ext2 IFS for Windows or Explore2fs.
Thanks to ubuntuforums.
MySQL – Moving Out
Evaluating system is a very tough work. Now, from the test web server, I need to move the system to a much higher model of machine. I need to copy Web Pages, and Database. For example, I need to move WordPress to new machine. I use the following guide:
Make sure that you can connect to new Linux machine especially in MySQL, I use the article posted on cyberciti.biz about How do I enable remote access to MySQL server.
Next sted is to copy the database to new machine. I use the article from mysql about Copy MySQL Database to other Machine.
After the database, copy the webpage using the rsync command. I use the article from Ubuntu dapper’s ubuntuguide.org website about How to copy files/folders from local machine into remote Ubuntu machine (rsync).
Lastly, you need to modify database settings so you may able to connect to your MySQL database.
Linux Commands
Here are some common linux commands that I use to install and manage may Linux machine:
Assigning root password – sudo passwd root
Checking partition size – sudo df -h
Checking folder size – sudo du – hs <folderpath> / sudo du -chks (summary)
Change File and Folder permission – sudo chmod 777 /var/www/smf -R
Copy File – sudo cp -R <source> <destination>
Remove File – sudo rm <file>
Create Directory – sudo mkdir <directoryname>
Copy file to remote machine – rsync -v -u -a -r –delete –rsh=ssh /var/www/ root@remotehost:/var/www/
Others will be posted on this page regularly…
Linux Services
Here are the common installation guide in installing Linux services especially in Ubuntu Dapper Drake 6.06:
SSH Daemon
sudo apt-get install ssh openssh-server
Apache
sudo apt-get install apache2
PHP5
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart
MySQL
sudo apt-get install mysql-server
sudo vi /etc/mysql/my.cnf ==>> allow mysql to be available all over the internet
comment out #bind-address = 127.0.0.1
mysqladmin -u root password your-new-password
sudo /etc/init.d/mysql restart
Enabling MySQL to be access remotely
sudo vi /etc/mysql/my.cnf
uncomment #bind-address = 127.0.0.1
sudo /etc/init.d/mysql restart
create user – sudo mysqlmanager –passwd
Install MySQL for Apache HTTP Server
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin
vi /etc/php5/apache2/php.ini
uncomment ;extension=mysql.so
save and restart apache – sudo /etc/init.d/apache2 restart
Gallery
sudo apt-get install gallery (do not restart apache)
sudo apt-get install imagemagick
sudo apt-get install jhead
sudo apt-get install libjpeg-progs
Samba
sudo apt-get install samba smbfs
sudo smbpasswd – a system_username
sudo vi /etc/samba/smbusers (new file)
insert system_username = “network username”
Share with read/write permission
sudo mkdir /home/mponteres/mponteres_share
sudo chmod 777 /home/mponteres/mponteres_share
sudo vi /etc/samba/smb.conf
replace
;security = user
with
security = user
username map = /etc/samba/smbusers
[Group]
comment = Group Folder
path = /home/group
public = yes
writable = yes
valid users = system_username1 system_username2
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup
sudo testparm
sudo /etc/init.d/samba restart
URL Source: http://ubuntuguide.org/wiki/Dapper
WordPress Support – PHPMailer
By default, WordPress uses PHP mail function to send emails for Forget password module (see details on the link). I have seen alternative way of handling mail related notification on wordpress, they call it wpPHPMailer. There are simple instruction on how to activate this feature by simply visiting this link.
Enjoy blogging…
WordPress Support – Slow Login
I just noticed one time that I want to post new item on my wordpress blog site, it takes me 1 minutes and 30 seconds before loging-in to my site. Luckily I found a solution from wordpress support that I need to remove some lines on the index.php of wp-admin folder.
It’s the RSS feeds it tries to pull in. Edit the index.php file in wp-admin, and change all the three lines that start:$rss = @fetch_rss(…
To be:
$rss = “”;
Kudos to WordPress Support especially to brianthewise!
Ubuntu Matters
Nice reference for Ubuntu starters.
- Ubuntu – http://ubuntu.com
- Ubuntu Forums – http://ubuntuforums.org
- Ubuntu Dapper http://ubuntuguide.org/wiki/Dapper
- Ubuntu Linux Resources – http://www.psychocats.net/ubuntu/index
- Enabling Extra Repositories – http://www.psychocats.net/ubuntu/sources
- Installing Ubuntu: A comparison of Ubuntu 6.06 and Windows XP – http://rhosgobel.blogspot.com/2006/06/installing-ubuntu-comparison-of-ubuntu.html
Open Source Softwares
Piracy is not the answer, use open source softwares. Here are the most commonly used softwares:
| Software | Alternative | URL |
|---|---|---|
| MS Office | OpenOffice | http://openoffice.org |
| Adobe Photoshop | The Gimp | http://www.gimp.org |
| Adobe Acrobat | PDF Creator | http://www.pdfforge.org/products/pdfcreator |
| MS Outlook | Mozilla Thunderbird | http://www.mozilla.com/thunderbird |
| MS SQL | MySQL | http://www.mysql.com |
| MS Windows | Ubuntu (Linux) | http://ubuntu.com |
| AutoCAD | Archimedes | http://sourceforge.net/projects/arquimedes |
Others can be browse on Wikipedia .
Leave a Comment
Leave a Comment
Leave a Comment