วันอาทิตย์ที่ 15 มิถุนายน พ.ศ. 2557

LXF182 April 2014

Update from linux mag Apirl 2014.

ReactOS is a free open source OS, but not a Linux or Unix ased. It has been designed to be binary compatible with Windows, letting you run Win app natively.
http://www.reactos.org/


Robolinux
Debian based linux. for people who are new to linux + high level of security. It come with vm for windows xp and 7.
http://www.robolinux.org/


Quirky
A puppy linux come with small size sutable for resurrectin your old PCs.


NAS4Free
A FreeBSD based system that turn your PC to NAS.It come with web interface that easy to manage.
http://www.nas4free.org/

Protecting your privacy (Beat the NSA)
Browsing the web :
* delete cookie
* opt out ad tracking network (networkadvertising.org/choices)
* delete LSO (flash cookie)
* switch to SSL

Cover the track
* use VPN
* use Tor, JonDo
* AdBlock

Email & chat.
* PGP : email client with PGP plugin
* Mailvelope plugin for Web mail service
* cryptoCat plugin for IM

Hardware
* Encrypt drive
* TrueCrypt
* Switch distro such as tails.


Secure Android
* andriod app ask set of permission before installing it.
* use Xposed, XPrivacy to control specific permission
* remove EXIF infor from picutre before sharing or uploading to google drive, dropbox.
* use EncFS on desktop if you use google drive or Dropbox. Store encrypted folder in the cloud instead. This will make all your data on those service encrypted.

Communicate securely
* Phony add-on : customise the use-agent.
* use self-destructing cookies add-on.
* CleanQuit add-on : remove all previos session doloadhistory and site preferences.
* Orweb browser : browse web anonymously, Orbot plugin Tor for andriod.
* Andriod Privacy Guard (APG) : sign and encrypt email with K-9 email app.
* ChatSecure : encrypt IM. use OTR protocol. can be  use to chat securely over facebook or google talk on OTR comptible client like Pidgin.
* TextSecure : encrypted SMS app.
* ReadPhone, SlientPhone : encrypt VOIP.
* OSTN (open source telephony network) standard for end-to-end communication. Such as CSipSimple Acrobits, PrivateGSM, Jitsi.

Secure your device.
* enable lock screen password
*  LockScreen Policy app. Disable all widget on lock screen.
* Screen Locker : lock screen before handing the phone to someone else.
* Privacy Master Free fake a crash to prevent app from launching.
* Encrypt device.



Dr Brown
* i-nex tool : hardware and system info in one place.

Linux Kernel
* what does it do?
* kernel architecture : modular design. can be load or unload.

LXF Hotpick
* devcoin :cryptocurrency
* Octave : computation programming language (like Matlab)
* Brackets : free HTML editor from Adobe


Tutorial 
Pipelight plugin : silverlight for streaming work around
Gentoo : install it
Calibre : Build and ebook sever
Deluge : setup a torrent server (use with Raspberry Pi)

Code Academy
PHP : custom website scraping
OCaml : get started

วันศุกร์ที่ 30 พฤษภาคม พ.ศ. 2557

วันศุกร์ที่ 28 มีนาคม พ.ศ. 2557

วันจันทร์ที่ 3 มีนาคม พ.ศ. 2557

continuing svnsync from svn hotcopy

svnsync can be a time-consuming process if your revision is big. In this case, I will show how to continue the svnsync from hotcopy


1. Backup current by hotcopy
- svnadmin hotcopy /svn/repos/repos1/ /tmp/repos1

2. Copy data(/tmp/repos1) to new svn server directory /svn/repos/ (svn repository root) 

3. (optional) Upgrade SVN version property in case new SVN sever is  newer than old SVN server
- svnadmin upgrade

4. Initial SVN property for start svnysnc 
- svn propset --revprop -r0 svn:sync-last-merged-rev revno svn://hostname/reposname/
- svn propset --revprop -r0 svn:sync-from-uuid uuid svn://hostname/reposname/
- svn propset --revprop -r0 svn:sync-from-url svn://oldhost/reposname/ svn://hostname/reposname/

5. Sync data from old repos to new repos
- svnsync --non-interactive sync svn://hostname/reposname/

svnadmin dump, svnadmin load

svnadmin dump, svnadmin load
This sub-command can be use for back up and restore svn repository


Dump repository from SVN server
1. Dump SVN database from SVN server
- svnadmin dump /svn/repos/repos1/ | gzip -9 > /tmp/repos1.dump.gz

2. Copy file repos1.dump.gz for back up 

Restore from dumped repository
3. get svn server installed

4. Import SVN data from dump file with this command
- zcat repos1.dump.gz | svnadmin load /svn/repos/newrepos/

Mirroring svn


Mirror SVN server (and replace master server)

1. Install Mirror SVN server

2. Allow svnsync command permission 
- echo '#!/bin/sh' > /svn/repos/repos1/hooks/pre-revprop-change
- chmod +x /svn/repos/repos1/hooks/pre-revprop-change

3. Initial svnsync configure
- svnsync init svn://mirror/repos1/ svn://original/repos1/

 4. Start sync svn data
- svnsync --non-interactive sync svn://mirror

5. Setup schedule to resync svn
- crontab -e 
*/30 * * * * svnsync --non-interactive sync svn://mirror > /dev/null

- /etc/init.d/cron reload


In case you need mirror replace the master
- svnadmin setuuid /svn/repos/repos1/ uuid

replace   uuid from  /svn/repos/repos1/db/uuid 

svn/subversion server installation

Here are a short note for setting subversion server.

1. Install SVN server (subversion)
- apt-get install subversion

2. Create svnuser account
- useradd -m -s /bin/bash svnuser 

3. Create subversion working directory
- mkdir -p /svn/repos/
- chown svnuser.svnuser -R /svn/
- cd /svn/repos/

4. Change user access to svnuser
- su svnuser

5. Create svm repository
- svnadmin create repos1

6. Config repository password
- vi /svn/repos/repos1/conf/svnserve.conf

#####
anon-access = none
auth-access = write
password-db = passwd
#####

repository password file
- vi /svn/repos/repos1conf/passwd
#username and password example
user1 = pass1
- chmod 600 /home/ddsvn/wwwsvn/conf/passwd


7. Start SVN service
#login to svnuser account
- su svnuser
- svnserver -d -r /svn/repos/

8. Set svn start up on boot with user svnuser
- vi /etc/rc.local

#####
su svnuser -c "svnserve -d -r /svn/repos“
#####