Thursday, 30 June 2011

Fedo 14 help for package install etc

# SuPHP configuration for PHP5 
 
AddType application/x-httpd-php5 .php5 .php .html 
 
# End of autogenerated PHP configuration. 
 
To configure php,mysql,apache
 
yum install httpd
yum install ruby
yum install php php-pear
yum install php-mysql

All configuration for Apache is contained in the httpd.conf file,
which is located at /etc/httpd/conf.d/httpd.conf. We advise you
to make a backup of this file into your home directory by issuing the following commands:

cp /etc/httpd/conf/httpd.conf ~/httpd.conf.backup

How-To install Skype on Fedora Linux 14 x86_64

  • Install dependencies by running:
    yum install -y qt-x11.i686 libXScrnSaver.i686 alsa-plugins-pulseaudio.i686 libXv.i686
  • Install Skype by running:
    yum install --nogpgcheck -y skype-2.1.0.81-fc10.i586.rpm

    or download skype version and then

    beesu gedit /etc/yum.repos.d/skype.repo

    [skype]
    name=Skype Repository
    baseurl=http://download.skype.com/linux/repos/fedora/updates/i586
    enable=1
    gpgcheck=0
    gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc
    skype_fedora_1

    uninstall skype

    rm /usr/bin/skype
    rm /usr/share/applications/skype.desktop
    rm /usr/share/pixmaps/skype.png
    rm -rf /opt/skype-1.2.0.18



    Alternatively you can install the Skype repository. Open a terminal and type:

    su -c 'gedit /etc/yum.repos.d/skype.repo'
    In that file copy the following lines:

    [skype]
    name=Skype Repository
    baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
    enabled=1
    gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc
    gpgcheck=0

    Now you can easily install/update skype by typing:

    su -c 'yum install skype'
    su -c 'yum update skype'


    VLC install
    su -
    rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
    yum install vlc
     
To add the google repository edit the file.
gedit /etc/yum.repos.d/google.repo
for 32 bit OS Version
[google]
name=Google - i386ff
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
for 64-bit OS Version
[google64]
name=Google - x86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Install Google Chrome Stable Version on Fedora 14

Just type this line on the root terminal
yum install google-chrome-stable
 
Mysqli configuration in fedora 14
 
su - 
~: yum install php-mysqli
~: service mysqld start
To update mysql root password 
~: mysql -u root -p
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD('new-password') WHERE user='root';
mysql> FLUSH PRIVILEGES;

> mysql -u root -p
Enter password:
mysql> create database demo;
mysql> GRANT ALL PRIVILEGES ON mytest.* TO 'guest'@'localhost' IDENTIFIED BY 'guest' WITH GRANT OPTION;
 

Flash player in Fedora

http://fedoraproject.org/wiki/Flash

the --disablerepo option.

su -c 'yum install nspluginwrapper.{x86_64,i686} alsa-plugins-pulseaudio.i686 --disablerepo=adobe-linux-i386'
su -c 'yum install flash-plugin'
You may see messages indicating that some of these packages are already installed. This is not a problem. (In particular, a default graphical install of 64-bit Fedora already includes nspluginwrapper.x86_64.)
To 'wrap' the plugin, run the following command:
su -c 'mozilla-plugin-config -i' In /usr/lib64/mozilla/plugins-wrapped, you should see a wrapped version of the flash plugin.

Installing the plugin on Chrome

Follow all of the instructions above. Then:
- create a Chrome plugin folder:
su -c 'mkdir /opt/google/chrome/plugins'
- on 32-bit, create a symbolic link that tells Chrome how to find the 32-bit plugin:
su -c 'ln -s /usr/lib/mozilla/plugins/libflashplayer.so /opt/google/chrome/plugins/libflashplayer.so'
- on 64-bit, create a symbolic link that tells Chrome how to find the 64-bit plugin:
- run Mozilla Firefox once so that it creates /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so
su -c 'ln -s /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so /opt/google/chrome/plugins/nswrapper_32_64.libflashplayer.so'

GIT
yum install git


More help: http://fclose.com/b/linux/366/set-up-git-server-through-ssh-connection/

su - # login as root
# install prerequisities
yum install mysql mysql-server php-mysql apache php-xml php-domxml-php4-php5 git
cd /var/www/html # the web server document directory
git clone git://gitorious.org/statusnet/mainline.git statusnet.testing # this takes a while
git checkout testing # checkout the testing branch
find -type d -name .git -exec  rm -rf {} \; # delete git junk (unless you want to update later)
find -type f -name .gitignore -exec  rm -f {} \;
chmod g+w . avatar background file # allow apache to make changes
chown apache . avatar background file
cp htaccess.sample  .htaccess #
vim .htaccess  # change line 10 to /statusnet/
mysqladmin -u (username) -p  create statusnet
mysql -u (username) -p
# Type your mysql root password (different than your Linux
# root password) to enter MySQL database client.
# Then in MySQL, type the following GRANT command:
#GRANT ALL on statusnet.* TO 'statusnetuser'@'localhost' IDENTIFIED BY 'statusnetpassword';
# Press CTRL-D to quit MySQL.
cd ..
ln -s statusnet.testing statusnet # I like a symlink to keep track of versions
vim /etc/httpd/conf/httpd.conf # at the end add the following three lines
#<Directory "/var/www/html/statusnet">
#AllowOverride All
#</Directory>
service httpd restart # restart Apache web serve
# Launch install in web browser.
# Do not install with localhost in URL if you want remote users to access it.
xdg-open http://public-server-name/statusnet/install.php
Installing Ruby has always been rather controversial. There are very few operating systems today that have a clean install and does not ass kick the system’s package manager. Ever since the introduction of RVM Ruby installs on Linux systems got so much easier. Today I reconfigured my workstation at home with Fedora 14, AwesomeWM and Dropbox (for config sharing across all workstations — sweet). RVM is a nice tool, but it shouldn’t be nescecary. Its nothing more than a crude hack to run multiple untested, possibly unstable Ruby versions. It saved lives during the switch to 1.9 and 1.9.2, but its not a long term solution for stable linux systems. But right now we need Ruby 1.9.2, so we will use RVM to fix that up.
On my mobile workstation I run archlinux, because battery matters, on which installing Ruby and Rails is rather painless.

$ pacman -S ruby
$ gem install rails

Done, easy, cheap shot and works like a charm and no need for RVM. Now, on to Fedora!
First we’ll install all packages RVM depends on:

$ yum install git ruby curl bison patch make

And install RVM for the current user only using RVM’s directive:

$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )

Done! Make sure you add the [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" line to the end of your .bashrc. The skeleton /etc/bashrc does not contain any return statements, so no need to fix that. Then do a source ~/.bashrc to make sure your path is updated.
Lets install some dependencies:

# As stated by RVM
$ yum install gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel iconv-devel

# And the rest most Rails apps will eventuall need
$ yum install libxslt-devel sqlite-devel openssh openssl-devel

Easy enough, lets get, compile, install and use Ruby:

$ rvm install 1.9.2
$ rvm use 1.9.2 --default

Lets install rails!

$ gem install rails

Nice! Now you can install other gems, use rake or do ruby stuff as normal :-) Note that if you ever need to rebuild Ruby for it to have proper bindings add the --force parameter to RVM, else it will not be recompiled, even though it says so.

Force Caching With .htaccess Method To Increase Loading Speed Of Your Site


01. Search for a file named .htaccess(hypertext access) in the webroot of your server (FTP) and can be easily edited using any text editor (like Notepad). Open it and add below code in it:

FileETag MTime Size
ExpiresActive on
ExpiresDefault “access plus 86400 seconds”



  


Source base installation of php, mysql and apache in ubuntu/ linux

Compile and Install a LAMP(Linux/Apache/MySQL/PHP) Server from Source In the last post, I described the method to install a LAMP ser...