Briefly introduces how to install Twitter on Linux

Source: Internet
Author: User

Twitter is popular now. If you are a Linux and Twitter enthusiast, have you tried to install Twitter on Linux? Share my practices. We assume that the Microblog is an open-source Twitter clone-Laconica. It is currently used in identi. ca and is a tested Microblog server software.

Installation steps:

◆ Step 1: Get the code:

There are two ways to get the code of laconica:

1. Use darcs (an open source code management software)

Sudo apt-get install darcsdarcs get -- partial http://laconi.ca/darcs/

2. Download The tar.gz file directly from the main page of laconica.

Here I use the second method

Create a laconica directory in the Home directory, download the file to this directory, and decompress it:
Cd $ HOME
Mkdir laconica
Cd laconica
Wget http://laconi.ca/laconica-0.6.3.tar.gz
Tar xzvf laconica-0.6.3.tar.gz

◆ Step 2: Install and run the required software:

Laconica is written in PHP and Mysql databases. It requires a Web server to run it!

Sudo apt-get install mysql-server apache2

Sudo apt-get install libapache2-mod-php5 php5-cgi php5-cli php-pear php5-gd php5-mysql

◆ Step 3: Create a Mysql database

To create a Mysql database, start with the root user of mysql:

Mysql-u root-p

Enter the password:

# Create a database:

Create database laconica;

# Create a database user (username: laconica, password: secret ):

Grant all privileges on laconica. * to laconica @ localhost identified by 'secret' with grant option;

# Exit

Quit;

Use the SQL statement that comes with laconica to create a data table, enter the directory of laconica after decompression, in ($ HOME/laconica/laconica-0.6.3), the command line input:

Mysql-uroot-p laconica <db/laconica. SQL

Enter the root password. No prompt is displayed. It should be successful!

◆ Step 4: adjust some settings:

Copy the instance configuration file:

Cp config. php. example config. php

Open the config. php configuration. Currently, there are four lines:

$ Config ['SITE'] ['name'] = 'afin'; $ config ['SITE'] ['server'] = 'cafbad. com '; $ config ['SITE'] ['path'] = 'lastica ';

$ Config ['db'] ['database'] = 'mysql: // laconica: PASSWORD @ localhost/laconica ';

Where:

The first line is to configure the name of your Microblog (Weibo ).

Second line, domain name

Line 3: Configure sub-Directories

The third line is to configure the Mysql database address. laconica is the user name, where PASSWORD is the Mysql Database PASSWORD (the previous step of installation, our PASSWORD is secret), and localhost is the Mysql server address: mysql on the local machine (of course, the Mysql server can also be on another machine)

For example, if you want to create a Twitter server name in the LAN, the name is "small test" and the server is 192.168.1.102, you can configure it as follows:

$ Config ['SITE'] ['name'] = 'small test'; $ config ['SITE'] ['server'] = '2017. 168.1.102 '; $ config ['SITE'] ['path'] = 'taotao ';

$ Config ['db'] ['database'] = 'mysql: // laconica: PASSWORD @ localhost/laconica '; Step 5: publish it to the server and simply copy it to apache: sudo cp-r laconica-0.6.3/var/wwwcd/var/wwwsudo mv laconica-0.6.3 taotao can now be accessed using "http: // 192.168.1.102/taotao. Of course, you must first register a user. In addition, if the speed is slow, it is the reason for Mysql. in/etc/mysql/my. inf [mysqld], add the skip-name-resolve line. Laconica currently supports synchronous transmission to Twitter. How can I install Twitter on Linux.


  1. Comprehensive Analysis of Linux system management command w
  2. Summary of Linux shortcut keys
  3. Linux compression command 1) tar
  4. Summary all Linux compression and decompression commands
  5. Detailed introduction to Linux software package dependency

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.