Search
Monday, March 25, 2013
Tuesday, March 5, 2013
Install Ubuntu 12.04 LTS on HP Envy preloaded Win 8
Objective : Install Freedom Fone (Ubuntu 12.04 LTS based) to HP Envy preloaded with Win 8.
Create empty partition in existing Windows 8
- Disable UEFI in BIOS, enable legacy boot
- Run
compmgmt.msc
. Select something like 'device' or 'partition' - Shrink existing partition
- Create empty partition
Install Ubuntu
- Run Disk Utility
- Make sure the install target partition has label like Create New Partition
- Run system from liveDVD / live USB, not directly install
- Run Install to Hardisk. This icon already appears on desktop
- Restart computer
Troubleshooting
DNS does not work
Can't
Solution #2 : Configure name server lookup
ubuntuforums.org or tldp.orgUnavailable wireless card
Fixed from http://ubuntuforums.org/showthread.php?t=2035902&page=2. Download from http://linuxwireless.org/en/users/Download#Directly_downloading_the_tarball, then
Booting from Ubuntu
- Press escape immediately after turning computer on
- Press F9 for Booting Options
- Select something boot from hardisk
- Select Ubuntu :D
Finish
Sunday, February 12, 2012
Development Setup on Fedora 16
Install Apache Web Server
yum groupinstall "Web Server"
Apache Configuration
Install graphical interface for Apache configurationyum install system-config-httpdSystem configuration tool then need to be ran as root :
/usr/bin/system-config-httpdor you can configure Apache server manualy :
vim /etc/httpd/conf/httpd.conf vim /etc/httpd/conf.d/README
source : http://hacktux.com/fedora/apache
Troubleshooting
On Fedora you can run the following command which should give you the full error message :/usr/sbin/httpd -tThe -t flag runs a syntax check on the configuration files so if there are any syntax errors there then this should help.
Fedora 16 installation on Dell Inspiron N5030
Objective : troubleshoot all hardware & configurations problems occured when installting Fedora 16 on Dell Inspiron N5030 laptop.
Environment : Fedora 16 64 bit on Dell Inspiron N5030
solution : Find wireless network card specification & download driver.
source : http://developify.wordpress.com/2011/08/12/activate-broadcom-sta-wireless-driver-in-fedora-14
http://rpmfusion.org/Configuration
install broadcom-wl and the appropriate kmods all at the same time in a single yum or rpm command.
solution : change Keyboard layout based on prefered layout.
System>Preferences>Keyboard>Layouts, "Add", "Choose a Layout" select "By Language" tab, Language: "English (US)".
Environment : Fedora 16 64 bit on Dell Inspiron N5030
Wireless Network
problem : wireless connection is not detectedsolution : Find wireless network card specification & download driver.
Install Repository
Enable repository access using command line for Fedora 15 & 16 :su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'
source : http://developify.wordpress.com/2011/08/12/activate-broadcom-sta-wireless-driver-in-fedora-14
http://rpmfusion.org/Configuration
install broadcom-wl and the appropriate kmods all at the same time in a single yum or rpm command.
Activate Broadcom STA wireless driver
Touchpad Setting
problem : tap on touchpad as mouse click is not workingKeyboard Layout
problem : wrong keyboard layout, displayed characters not exactly matched the clicked keys.solution : change Keyboard layout based on prefered layout.
System>Preferences>Keyboard>Layouts, "Add", "Choose a Layout" select "By Language" tab, Language: "English (US)".
Sunday, January 22, 2012
Problem with MySQL - socket error
Problem : cant connect to mysql.
Error message : "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'"
Failed Attemps :
1. restart mysql service
2.
solution :
source : http://bikramkawan.com.np/error-2002-hy000-cant-connect-to-local-mysql-server-through-socket-varrunmysqldmysqld-sock-2/
Error message : "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'"
Failed Attemps :
1. restart mysql service
2.
sudo mkdir /var/run/mysqld/
//Create the file by “touching” it.
sudo touch /var/run/mysqld/mysqld.sock
//Set the ownership of the mysqld.sock file and folder to mysql.
sudo chown -R mysql /var/run/mysqld/
source : http://anthologyoi.com/computers/cant-connect-to-local-mysql-server-through-socketerror.html //Create the file by “touching” it.
sudo touch /var/run/mysqld/mysqld.sock
//Set the ownership of the mysqld.sock file and folder to mysql.
sudo chown -R mysql /var/run/mysqld/
solution :
source : http://bikramkawan.com.np/error-2002-hy000-cant-connect-to-local-mysql-server-through-socket-varrunmysqldmysqld-sock-2/
Monday, January 16, 2012
SSH on Ubuntu
Location : ASEAN Foundation
Objective : set up SSH server on 192.1681.8, so it can be accessed from 10.0.0.126.
iptables configuration
file : /etc/ssh/ssh_config
Solution : use port 2222, not 22
Objective : set up SSH server on 192.1681.8, so it can be accessed from 10.0.0.126.
Process
check :iptables configuration
file : /etc/ssh/ssh_config
Solution : use port 2222, not 22
#ssh localhost -p 2222
additional
Log in as root in ubuntu :# sudo passwd
Thursday, December 15, 2011
Saturday, December 3, 2011
httpd SELinux Policy documentation
SELinux policies, especially for httpd service, is still a delicate thing for me :(
Found a good site explaining the 8 policies in FedoraProject.
We will discuss the SELinux policies someday :D
Found a good site explaining the 8 policies in FedoraProject.
We will discuss the SELinux policies someday :D
Monday, October 24, 2011
Apache PHP deployment in Ubuntu
Environment : Linux Ubuntu 11.04 Natty Narwhal
The alternative example, php.ini-production, is in the same directory.
source : http://serverfault.com/questions/178270/where-is-php-ini-development-on-ubuntu-lamp
mod_rewrite is a part of Apache server that can rewrite requested urls on the fly.
To enable mod_rewrite in Ubuntu, you just need to write this command in terminal
Next thing is Apache needs to be restarted
source : http://mahmudahsan.wordpress.com/2008/07/06/ubuntu-enable-mod_rewrite-in-apache-server/
If you get any errors, you may need to enable the 'universe' repository, explained here:
https://help.ubuntu.com/community/Repositories/Ubuntu
source : http://php.net/manual/en/mcrypt.setup.php
Error message appear :
Answer :
As per the other answers there is a package management app holding the lock. When unsure do not manually remove the lock, first run:
This will kill any processes opening the file before removing it.
source : http://askubuntu.com/questions/15433/fixing-could-not-get-lock-var-lib-dpkg-lock
PEAR is PHP’s equivalent of Perl’s CPAN. It offers hundreds of ready-to-use code modules that can make projects go much more quickly than having to hand code everything. However, it never seems like PEAR is easy to get running.
Installing the Needed Software
In Ubuntu, installing the following packages will quickly get you started with PEAR: php5-cli, php5-dev, and php-pear.
Make sure that you read the next section about problems with using PEAR to install PEAR packages if you are running 9.10, Karmic Kaola.
Here’s an example of how to quickly install those packages from the terminal.
source : http://chrisjean.com/2009/11/02/use-php-pear-with-ubuntu/
XSL support in php5 is deactivated by default. Go to Synaptic Package Manager and search for php5-xsl. Mark the package for installation, apply the changes and once it’s finished, don’t forget to restart the server!
More XSL stories later on… time to experiment :)
source : http://soledadpenades.com/2006/12/09/xsl-with-php-in-ubuntu/
php.ini-s packaged : development and production
php.ini-development and php.ini-production, which come with the PHP 5.3 package, are really just examples of recommended settings. You should review the settings and make sure that they apply to your use and copy them to the regular php.ini file location. On my Ubuntu 10.04.1 LTS (lucid) server, here’s where I find mine:# locate php.ini-development /usr/share/doc/php5-common/examples/php.ini-development
The alternative example, php.ini-production, is in the same directory.
source : http://serverfault.com/questions/178270/where-is-php-ini-development-on-ubuntu-lamp
Enable mod_rewrite
what is mod_rewrite?mod_rewrite is a part of Apache server that can rewrite requested urls on the fly.
To enable mod_rewrite in Ubuntu, you just need to write this command in terminal
sudo a2enmod rewrite
Next thing is Apache needs to be restarted
sudo service apache2 restart
source : http://mahmudahsan.wordpress.com/2008/07/06/ubuntu-enable-mod_rewrite-in-apache-server/
Install - enable mcrypt
Also on Ubuntu, make sure you actually have php5-mcrypt installed. You can install it with:sudo apt-get install php5-mcrypt
If you get any errors, you may need to enable the 'universe' repository, explained here:
https://help.ubuntu.com/community/Repositories/Ubuntu
source : http://php.net/manual/en/mcrypt.setup.php
Unable to lock the administration directory
After execute command :sudo apt-get install php5-mcrypt
Error message appear :
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Answer :
As per the other answers there is a package management app holding the lock. When unsure do not manually remove the lock, first run:
sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock
This will kill any processes opening the file before removing it.
source : http://askubuntu.com/questions/15433/fixing-could-not-get-lock-var-lib-dpkg-lock
Install PEAR
PEAR is PHP’s equivalent of Perl’s CPAN. It offers hundreds of ready-to-use code modules that can make projects go much more quickly than having to hand code everything. However, it never seems like PEAR is easy to get running.
Installing the Needed Software
In Ubuntu, installing the following packages will quickly get you started with PEAR: php5-cli, php5-dev, and php-pear.
Make sure that you read the next section about problems with using PEAR to install PEAR packages if you are running 9.10, Karmic Kaola.
Here’s an example of how to quickly install those packages from the terminal.
$ sudo apt-get install php5-cli php5-dev php-pear Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: autoconf autoconf2.13 automake automake1.4 autotools-dev libltdl-dev libssl-dev libtool m4 php5-common shtool zlib1g-dev Suggested packages: autobook autoconf-archive gnu-standards autoconf-doc gettext libtool-doc automaken gfortran fortran95-compiler gcj php5-suhosin The following NEW packages will be installed: autoconf autoconf2.13 automake automake1.4 autotools-dev libltdl-dev libssl-dev libtool m4 php-pear php5-cli php5-common php5-dev shtool zlib1g-dev 0 upgraded, 15 newly installed, 0 to remove and 5 not upgraded. Need to get 0B/8,690kB of archives. After this operation, 27.7MB of additional disk space will be used. Do you want to continue [Y/n]? y Selecting previously deselected package m4. (Reading database ... 127272 files and directories currently installed.) Unpacking m4 (from .../archives/m4_1.4.13-2_i386.deb) ... ...
source : http://chrisjean.com/2009/11/02/use-php-pear-with-ubuntu/
XSL with PHP in Ubuntu
XSL support in php5 is deactivated by default. Go to Synaptic Package Manager and search for php5-xsl. Mark the package for installation, apply the changes and once it’s finished, don’t forget to restart the server!
sudo /usr/sbin/apache2 -k restart
More XSL stories later on… time to experiment :)
source : http://soledadpenades.com/2006/12/09/xsl-with-php-in-ubuntu/
Monday, July 11, 2011
Friday, July 8, 2011
Ubuntu 11.04 - 01. Installations
Create Live USB
Install to Hardisk
sources :
http://www.howtogeek.com/howto/ubuntu/installing-php5-and-apache-on-ubuntu/
Install to Hardisk
sources :
http://www.howtogeek.com/howto/ubuntu/installing-php5-and-apache-on-ubuntu/
Ubuntu 11.04 - 03. Virtual Servers on Apache
Edit file host
Open /etc/host . Since file hosts is owned by root-like user, we need to use sudo.
# sudo hosts
Activate virtual host configuration in apache
To configure apache webserver VirtualHost in Ubuntu server is different from other linux OS like fedora/redhat/centos. In Ubuntu apache2 have separated the virtual host into sites-available and sited-enabled directory.
source : http://www.wowtutorial.org/tutorial/24.html
Edit virtual host conf
restart apache
test
Subscribe to:
Posts (Atom)