Statusnet - Start Your Own Hosted Microblogging Twitter Like Social Network on Debian GNU / Linux

Total Page:16

File Type:pdf, Size:1020Kb

Statusnet - Start Your Own Hosted Microblogging Twitter Like Social Network on Debian GNU / Linux Walking in Light with Christ - Faith, Computing, Diary Articles & tips and tricks on GNU/Linux, FreeBSD, Windows, mobile phone articles, religious related texts http://www.pc-freak.net/blog StatusNet - Start your own hosted microblogging twitter like social network on Debian GNU / Linux Author : admin I like experimenting with free and open source projects providing social networking capabilities like twitter and facebook. Historically I have run my own social network with Elgg - Open Source Social Network Engine. I had a very positive impression from Elgg as a social engine as, there are plenty of plugins and one can use Elgg to run free alternative to very basic equivalent of facebook, problem with Elgg I had however is if is not all the time monitored it quickly fills up with spam and besides that I found it to be still buggy and not easy to update. The other social network free software I heard of isBuddyPress which I recently installed with Multisite (MuSite) enabled. Since BuddyPress is Wordpress based and it supports all the nice wordpress plugins, my impression is social networking based on wordpress behaves much more stable and since there is Akismet for Wordpress, the amount of spammer registrations is much lower than with Elgg. Recently I started blogging much more actively and I realized everyday I learn and read too much interesting articles and I don't log them anywhere and thought I need a way besides twitter to keep flashy notes of what I'm doing reading, learning in a short notes. I don't want to use Twitter on purpose, because I don't want to improve twitter's site SEO with adding my own stuff on their website but I want to keep my notes on my own local hosted server. As I didn't wanted to loose time with Complexity of Elgg anymore and wanted to try to something new and I know the open source microblogging social network (Twitter Equivalent) - identi.ca runs StatusNet 1 / 6 Walking in Light with Christ - Faith, Computing, Diary Articles & tips and tricks on GNU/Linux, FreeBSD, Windows, mobile phone articles, religious related texts http://www.pc-freak.net/blog - Free and Open Source Social software. StatusNet is well known under the motto of "Decentralized Twitter" I took the time to grab it and install it to my home brew machine pc-freak.net. If you haven't seen StatusNet so far - you can check out demo of my installation here - registration is not freely opened because, i don't want spammers to break in, however if you want to give a try drop me a mail or comment below and I will open access for you .. There is no native statusnet package for Debian Linux (as I'm running Debian) so to install it, I've grabbed statusnet. To install StatusNet, everything was pretty straight forward and literally following instructionsf rom INSTALL file, i.e.: # status.example.com maps to /var/www/status/ cd /var/www/status/ wget http://status.net/statusnet-0.9.6.tar.gz tar -xzf statusnet-0.9.6.tar.gz --strip-components=1 rm statusnet-0.9.6.tar.gz cd .. chgrp www-data status/ chmod g+w status/ cd status/ chmod a+w avatar/ background/ file/ mysqladmin -u "root" -p "sql-root-password" create statusnet mysql -u root -p 2 / 6 Walking in Light with Christ - Faith, Computing, Diary Articles & tips and tricks on GNU/Linux, FreeBSD, Windows, mobile phone articles, religious related texts http://www.pc-freak.net/blog GRANT ALL on statusnet.* TO 'statusnetuser'@'localhost' IDENTIFIED BY 'statusnet-secret- password'; To Change default behaviour of URls to be more SEO friendly and not to show .php in URL (e.g. add so called fancy URLs - described in INSTALL): cp htaccess.sample .htaccess Then had to configure a VirtualHost under a subdomain http://statusnet.yourdomain.com/install.php or you can alternatively install and access it in browser via http://your-domain.com/status/install.php An important note to open here is you have to set the URLs via which status.net will be accessed further before proceeding with the install, if you will be using HTTPS here is time to configure it and test it before proceeding with install ... Just be warned that if you don't set the URLs properly now and try to modify them further you will get a lot of issues hard to solve which will cost you a lot of time and nervee .. If you want to enable twitter bridging in Statusnet you will need to get Twitter consumer and secret keys, to get that you have to create new application on https://dev.twitter.com/apps afterwards you will be taken to a page containing Consumer Key & Consumer Secret string. StatusNet installation will auto generate config.php, you can further edit it manually with text editor. Content of my current statusnet config.php is here. Most important options to change are: $config['daemon']['user'] = 'www-data'; $config['daemon']['group'] = 'www-data'; www-data is user with which Apache is running by default on Debian Linux. $config['site']['profile'] = 'private'; By default Status.Net will be set to run as private - e.g. it will be fitted for priv. use - messages posted will not publicly be visible. Here the possible options to choose between are: $config['site']['profile'] = 'private'; $config['site']['profile'] = 'community'; $config['site']['profile'] = 'singleuser'; $config['site']['profile'] = 'public'; singleuser is pretty self explanatory, setting public option will open registration for any user on the internet - probably your network will quickly be filled with spam - so beware with this option. community will make statusnet publicly visible but, registration will only possible via use creation / invitation to join the network from admin. vi /var/www/status/config.php 3 / 6 Walking in Light with Christ - Faith, Computing, Diary Articles & tips and tricks on GNU/Linux, FreeBSD, Windows, mobile phone articles, religious related texts http://www.pc-freak.net/blog $config['site']['fancy'] = true; Then to enable twitter to statusnet bridge add to config.php vi /var/www/status/config.php addPlugin('TwitterBridge'); $config['twitter']['enabled'] = true; $config['twitterimport']['enabled'] = true; $config['avatar']['path'] = '/avatar'; $config['twitter']['consumer_key'] = 'XXXXXXXX'; $config['twitter']['consumer_secret'] = 'XXXXXXXX'; # disable sharing location by default $config['location']['sharedefault'] = 'false'; Notice, I decided to disable statusnet sharedefault folder, because i don't have a lot of free space to provide to users. If you want to let users be allowed to share files (you the space for that), you might want to set a maximum quote of uploaded files (to prevent your webserver from being DoSed - for example by too many huge uploads), here is some reasonable settings: $config['attachments']['file_quota'] = 7000000; $config['attachments']['thumb_width'] = 400; $config['attachments']['thumb_height'] = 300; If you want to get the best out of performance of your new statusnet microblogging service, after each modification of config.php be sure to run: php scripts/checkschema.php Running checkschema.php is also useful, to check whether adding new plugins to check whether plugin will not throw an error. Here is some extra useful config.php plugins to enable: addPlugin('Gravatar', array()); #addPlugin('Textile'); addPlugin('InfiniteScroll'); addPlugin('Realtime'); addPlugin('Blog'); addPlugin('SiteNoticeInSidebar'); 4 / 6 Walking in Light with Christ - Faith, Computing, Diary Articles & tips and tricks on GNU/Linux, FreeBSD, Windows, mobile phone articles, religious related texts http://www.pc-freak.net/blog addPlugin('WikiHashtags'); addPlugin('SubMirror'); addPlugin('LinkPreview'); addPlugin('Blacklist'); If you expect to have quickly growing base of users it is recommended to also check out whether your MySQL is tuned with mysqltuner and optimize it for performance Another useful think you would like to do is to increased the number of Statusnet avatars in the 'following' - 'followers' - 'groups' sections on my profile page by editing lib/groupminilist.php and lib/profileminilist.php line 36 in both files. To get the full list of possible variables that can be set in config.php run in terminal: php scripts/setconfig.php -a If you happen to encounter some oddities and issues with StatusNet after installation, this is most likely to some PHP hardering on compile time or some PHP.ini functions disabled for security or some missing component to install which is described as a prerequirement in statusnet INSTALL file to debug the issues enable statusnet logging by adding in config.php $config['site']['logdebug'] = true; $config['site']['logfile'] = '/var/log/statusnet.log'; By default logs produced will be quite verbose and there will be plenty of information you will probably not need and will lead to a lot of "noise", to get around this, there is the LogFilter Plugin for some reasonable logging use in config.php: addPlugin('LogFilter', array( 'priority' => array(LOG_ERR => true, LOG_INFO => true, LOG_DEBUG => false), 'regex' => array('/About to push/i' => false, '/twitter/i' => false, '/Successfully handled item/i' => false) )); If you want tokeep log of statusnet it is a good idea to rorate logs periodically to keep them from growing too big, to do this create in /etc/logrotate.d new files /etc/logrotate.d/statusnet with following content: 5 / 6 Walking in Light with Christ - Faith, Computing, Diary Articles & tips and tricks on GNU/Linux, FreeBSD, Windows, mobile phone articles, religious related texts http://www.pc-freak.net/blog /var/log/statusnet/*.log { daily missingok rotate 7 compress delaycompress notifempty create 770
Recommended publications
  • Elgg Social Networking
    Elgg Social Networking Create and manage your own social network site using this free open-source tool Mayank Sharma BIRMINGHAM - MUMBAI Elgg Social Networking Copyright © 2008 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, Packt Publishing, nor its dealers or distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: March 2008 Production Reference: 1190308 Published by Packt Publishing Ltd. 32 Lincoln Road Olton Birmingham, B27 6PA, UK. ISBN 978-1-847192-80-6 www.packtpub.com Cover Image by Vinayak Chittar ([email protected]) [ FM-2 ] Credits Author Project Manager Mayank Sharma Patricia Weir Reviewer Project Coordinator Diego Ramirez Patricia Weir Senior Acquisition Editor Indexer David Barnes Monica Ajmera Development Editor Proofreader Rashmi Phadnis Nina Hasso Technical Editor Production Coordinator Ajay Shanker Aparna Bhagat Editorial Team Leader Cover Designer Mithil Kulkarni Aparna Bhagat [ FM-3 ] About the Author Mayank Sharma is a contributing editor at SourceForge, Inc's Linux.com.
    [Show full text]
  • Weaving the Dark Web: Legitimacy on Freenet, Tor, and I2P (Information
    The Information Society Series Laura DeNardis and Michael Zimmer, Series Editors Interfaces on Trial 2.0, Jonathan Band and Masanobu Katoh Opening Standards: The Global Politics of Interoperability, Laura DeNardis, editor The Reputation Society: How Online Opinions Are Reshaping the Offline World, Hassan Masum and Mark Tovey, editors The Digital Rights Movement: The Role of Technology in Subverting Digital Copyright, Hector Postigo Technologies of Choice? ICTs, Development, and the Capabilities Approach, Dorothea Kleine Pirate Politics: The New Information Policy Contests, Patrick Burkart After Access: The Mobile Internet and Inclusion in the Developing World, Jonathan Donner The World Made Meme: Public Conversations and Participatory Media, Ryan Milner The End of Ownership: Personal Property in the Digital Economy, Aaron Perzanowski and Jason Schultz Digital Countercultures and the Struggle for Community, Jessica Lingel Protecting Children Online? Cyberbullying Policies of Social Media Companies, Tijana Milosevic Authors, Users, and Pirates: Copyright Law and Subjectivity, James Meese Weaving the Dark Web: Legitimacy on Freenet, Tor, and I2P, Robert W. Gehl Weaving the Dark Web Legitimacy on Freenet, Tor, and I2P Robert W. Gehl The MIT Press Cambridge, Massachusetts London, England © 2018 Robert W. Gehl All rights reserved. No part of this book may be reproduced in any form by any electronic or mechanical means (including photocopying, recording, or information storage and retrieval) without permission in writing from the publisher. This book was set in ITC Stone Serif Std by Toppan Best-set Premedia Limited. Printed and bound in the United States of America. Library of Congress Cataloging-in-Publication Data is available. ISBN: 978-0-262-03826-3 eISBN 9780262347570 ePub Version 1.0 I wrote parts of this while looking around for my father, who died while I wrote this book.
    [Show full text]
  • A New Model of Web-Based Application to Social Networking Management Systems
    UNIVERSITY OF BEIRA INTERIOR Engineering A New Model of Web-based Application to Social Networking Management Systems Diogo João Pinto Ribeiro Dissertation Submitted in Partial Fulfillment of the Requirement for the Degree of Master of Science in Computer Science and Engineering (2nd Cycle Studies) Supervised by Prof. Dr. Joel José Puga Coelho Rodrigues Covilhã, October 2014 ii To my beloved family, especially to my parents and my grandparents. iii iv Acknowledgements This dissertation marks the end of another academic stage in my life. A dissertation for obtain- ing the degree of Master of Science represents a long and demanding path. The support of very particular persons has encouraged me to continue my work, day after day. I would like to thank all persons who directly or indirectly contributed to my work throughout the last year. I would like to start by thanking to my mother and my father, to whom I am mostly grateful, to doing everything to provide me the best and for helping me to achieve my goals in different areas, but particularly on academic life. I also would like to thank my sister Márcia, for her im- measurable friendship and support, and my uncles and grandparents, for always demonstrating their love, their support and will to live. I am also grateful to my friends for their strength over the past few months and to encourage me to continue. Foremost, I would like to express my gratitude to Patrícia, who always knew where and how to be present in the most important moments of my life. Her support, patience and help during difficult times, was crucial for me to finish this stage in my life.
    [Show full text]
  • Raising Open and User-Friendly Transparency- Enabling Technologies for Public Administrations
    Raising Open and User-friendly Transparency- Enabling Technologies for Public Administrations Project number 645860 H2020-INSO-2014 D4.1 Alpha version Of SPOD ( F i n a l , v e r s i o n 1 . 0 , 1 / 31/ 2 0 1 6 ) Document produced by Organisation: Università di Salerno Author / email: Vittorio Scarano, [email protected] Main contributions by: Delfina Malandrino, Gennaro Cordasco, Ilaria Manno, Giuseppina Palmieri, Carmine Spagnuolo, Luca Vicidomini, Donato Pirozzi, Renato De Donato, Luigi Serra, Andrea Petta Subject: Alpha version of SPOD Due date: 31 January 2016 Dissemination level: Public (PU) Reviewed and approved by Date Name Organization 21-01-2016 Albert Meijer Utrech University (UU) 22-01-2016 Adegboyega Ojo National University of Ireland, Galway (NUIG) Revision History Version Date Authors Status Description of Changes 0.1 02-12-2015 G.Palmieri Draft A first organization 0.2 07-01-2016 V.Scarano Draft Reorganization 0.3 08-01-2016 G.Palmieri Draft Architecture section added, Subdivision of the work 0.4 14-01-2016 V.Scarano, Draft Added all the sections independently developed: G.Palmieri, state of the art, architectural design, system D.Pirozzi, design, testing, privacy (missing the non A.Petta, functional reqs, the spod design, the L.Serra, bibliography) C.Spagnuolo, I.Manno, D.Malandrino R.De Donato 0.5 14-01-2016 V.Scarano, Draft Non-functional reqs, bibliography, SPOD design, G.Palmieri, change in order of sections of Requirements and R.De Donato, Design Principles, SPOD-TET interactions L. Vicidomini, D.Pirozzi 0.6 15-01-2016 V.Scarano, Alpha Cleaned all the comments from the 0.5 G.Palmieri www.routetopa.eu 2 / 105 0.7 25-01-2016 G.Palmieri Draft Unisa review, Addressed all reviewers comments from UU and NUIG.
    [Show full text]
  • Integrating Learning Management and Social Networking Systems Integrare I Learning Management System Con I Social Network
    integrating learning management and social networking systems Integrare i Learning Management System con i social network Terry Anderson* and Jon Dron Athabasca University, Canada, [email protected]*, [email protected] *corresponding author How To ciTe Anderson, T., & Dron, J. (2017). Integrating learning management and social networking systems. Italian Journal of Educational Technology, 25(3), 5-19. doi: 10.17471/2499-4324/950 ABSTRACT Learning Management Systems (LMS) have become ubiquitous tools in support of both classroom and distance education programming. They bring significant advantages that digitize and automate many of the functions and pedagogical activities of traditional campus teaching. At the same time social networks have become ubiquitous tools for communication, entertainment and informal learning by both students and teachers. In this article we examine the characteristics, strengths and limitations of both toolsets and the ways in which innovative distance educators are attempting to merge the best qualities of each. We conclude with a case study of one such integration from Athabasca University in Canada. keywordS Learning Management Systems (LMS), Social networks, Online education, Distance education. SOMMARIO I Learning Management System (LMS) sono diventati strumenti ormai ubiquitari di supporto alla didattica sia in classe che nell’educazione a distanza. Apportano vantaggi significativi nel digitalizzare e automatizzare molte delle funzioni e delle attività pedagogiche nell’ambito dell’insegnamento universitario tradizionale. Allo stesso tempo, anche i social network sono diventati strumenti capillarmente diffusi per la comunicazione, l’intrattenimento e l’apprendimento informale sia tra gli studenti che tra gli insegnanti. In questo articolo esaminiamo le caratteristiche, i punti di forza e le limitazioni di entrambi i servizi e i modi in cui insegnanti a distanza innovatori stanno cercando di unire le qualità migliori di ciascuno.
    [Show full text]
  • Guide OS 2013 EN.Pdf
    “Open source Guide The best of open source” Page 2 PREAMBLE SMILE Smile is a company of engineers specialising in the implementation of open source solutions and the integration of open source based systems. Smile is a member of APRIL, the association for the promotion and defence of open source software, PLOSS, a network of open source software companies in the Ile-de-France region, and CNLL, the French open source software council. FR Smile has a staff of over 700 throughout the world, more than 550 of whom are in France (as . at December 2012), making it the largest integrator of open source solutions in France and Europe. Since approximately 2000, Smile has been actively monitoring technological developments, SMILE which has enabled it to discover the most promising open source products, to qualify and . assess them so as to offer its clients the most successful, robust and sustainable products. This approach has led to a range of white papers covering various fields of application: content management (2004), portals (2005), business intelligence (2006), PHP frameworks (2007), virtualisation (2007), electronic document management (2008), ERPs (2008), open WWW source VPNs (2009), firewalls and flow controls (2009), message oriented middleware (2009), e-commerce and corporate social networks (2010), the Guide to Open Source and NoSQL (2011) and, more recently, mobile and open source census and compliance tools (2012). Each of these works presents a selection of the best open source solutions for the domain in question, their respective qualities as well as operational feedback. As open source solutions continue to acquire new domains, Smile will be there to help its clients benefit from these in a risk-free way.
    [Show full text]
  • Elgg.1.8.Social.Networking.Feb.2012.Pdf
    Elgg 1.8 Social Networking Create, customize, and deploy your very own social networking site with Elgg Cash Costello wnload from Wow! eBook <www.wowebook.com> o D BIRMINGHAM - MUMBAI Elgg 1.8 Social Networking Copyright © 2012 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: March 2008 Second edition: February 2012 Production Reference: 2130212 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-84951-130-8 www.packtpub.com Cover Image by Jose ([email protected]) Credits Author Technical Editor Cash Costello Llewellyn F. Rozario Author of 1st Edition Project Coordinator Mayank Sharma Vishal Bodwani Reviewers Proofreader Valentin Crettaz Aaron Nash Kevin Jardine Danny Lieberman Indexer Hemangini Bari Marcus Povey Brett Profitt Production Coordinator Liran Tal Arvindkumar Gupta Evan Winslow Cover Work Acquisition Editor Arvindkumar Gupta David Barnes Lead Technical Editor Meeta Rajani Foreword I am delighted that Cash Costello undertook the task of writing this book.
    [Show full text]
  • A Study of a Elgg Framework for Social Networking Application Development 1
    International Journal of Software Engineering and Its Applications Vol.12, No.2 (2018), pp.57-66 http://dx.doi.org/10.21742/ijseia.2018.12.2.05 A Study of a Elgg Framework for Social Networking Application Development 1 Sabah Mohammed1, Byeongho Kang2 and Ronnie Caytiles3* 1Lakehead University, Canada 2University of Tasmania, Australia 3Department of Multimedia, Hannam University, Korea *[email protected] Abstract Nowadays, online socialization has become a regular activity for most people around the world. People don’t need to meet with their friends, colleagues, families, and co- workers physically every time in order to communicate with each other. The social networking media has gained an increasing popularity that has changed every person’s way of dealing with their personal social behaviors. This paper deals with the study of Elgg social networking framework for the development of a social networking application. The Elgg is an open source software development framework that can allow individuals, organization, and enterprises to share files, blogging and microblogging, and communicate through groups and networks. A case study of architecture of a social networking site will be provided in order to show the features of Elgg social networking framework. Keywords: Elgg social networking framework, software development, social networking 1. Introduction The rapid growth of the Internet has brought the online era of socialization to the people. Social networking applications and websites (e.g., Twitter, Facebook, Instagram, LinkedIn,
    [Show full text]