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.
- Comprehensive Analysis of Linux system management command w
- Summary of Linux shortcut keys
- Linux compression command 1) tar
- Summary all Linux compression and decompression commands
- Detailed introduction to Linux software package dependency