Download Source Code in ArchLinux

Install abs and base-devel

	$ pacman -S abs base-devel

As root, edit /etc/abs.conf to include your desired repositories:

	REPOS=(core extra community multilib !testing !community-testing !multilib-testing
	!staging !community-staging !gnome-unstable !kde-unstable)

As root, run “abs” to download the Arch Build System(ABS) tree.
Find out which package the command belongs to, then use pacman -Ss to get the more detailed information, for example:

	[root@XXXyyy abs]# pacman -Qo audacious
	/usr/bin/audacious is owned by audacious 3.4.1-1
	[root@XXXyyy abs]# pacman -Ss audacious
	extra/audacious 3.4.1-1 [installed]
	    Lightweight, advanced audio player focused on audio quality
	extra/audacious-plugins 3.4.1-2 [installed]
	    Plugins for Audacious

Copy the description file from /var/abs/extra/ to your own place, then make the package :

	cp -r audacious* /media/x/code/

Then build the package, and also you can get the source files.

	makepkg	

Things To be done(3)

There are following things to be done in recent days:

  • Mp3 Player Effect.
  • Algorithm in C.
  • STM based example to Arduino in pure C.
  • Music Emotions.
  • PSP Like Player Effects.
  • 101 BASIC Games.
  • Pacman Games in C/Python, or other languages.
  • Bombing NJ Games.
  • Recording of the MP3 Shield.
  • SwitchOver in Awesome environments.
  • Lyrics player in Python.
  • Sweater icon in Weather and Atomosphere application.
  • RaspberryPI and enc28j60.
  • Cloud Statistics for PogoPlug data.
  • Generate a HardDisk usage report and draw pictures.

Automatically download all of the full-circle magazine

Following is a little script which could help you download all of the PDF version of the full-circle magazines:

#!/bin/bash
i=0
for i in {0..78}
do
	#echo $i
	i=`expr $i + 1`
	#http://dl.fullcirclemagazine.org/issue46_en.pdf
	url=`echo "http://dl.fullcirclemagazine.org/issue"$i"_en.pdf"`
	echo $url
	wget $url
done

If we change the url to CN version, then we can download all of the chinese version PDF:

#!/bin/bash
i=0
for i in {0..47}
do
	#echo $i
	i=`expr $i + 1`
	#http://dl.fullcirclemagazine.org/issue47_zh-CN.pdf
	url=`echo "http://dl.fullcirclemagazine.org/issue"$i"_zh-CN.pdf"`
	echo $url
	wget $url
done

Bricked? Actually not.

Yesterday I install wicd, a tool for automatically configure the wired and wireless network, but unfortuately it didn’t act proper, then made my pogoplug into a brick-like equipment, I can only log into the terminal for less than 15 seconds, then I will lose the ssh connection. How to de-brick this equipment?
###Solution A In the 15 seconds living terminal, quickly input following command, this will remove the wicd and use the previous configuration of the network.

	$ yes | apt-get remove wicd &

You should wait for a long time, better longer than 5 mins, next time when you reboot into the system, it will recover to previous configuration. ###Solution B Use serial port.
In this solution you will need a USB-TTL line to connect to pogoplug’s serial port. Use serial port connection will not consider the network configuration. In the serial terminal, simply remove the installed wicd package is OK. ###Solution C Change the configuration of startup application.
Navigate yourself to /etc/rc3.d/, you will see several links in this folder, change the S30wicd to K30wicd.
S mean service, while K means we disable this. The names of these links all start as either K or S, followed by a number. If the name of the link starts with an S, then that indicates the service will be started when you go into that run level. If the name of the link starts with a K, the service will be killed (if running).
Reboot and then we will fall back to previous IP address again.

Things to be done(2)

Following things got to be done in recent days:

  • Try different distribution and found the difference and package differences between them(edubuntu, opensuse, fedora, etc).
  • Django/mezzanine, and other python based web development framework.
  • Write your own django based or mezzenine based blog/CMS.
  • __Repair my own computer, and run some cloud on it. __
  • __Pogoplug own kernel image compilation. __
  • RaspberryPI own distribution developement.
  • __Download all of the Full Circle using my own script, use it for practicing programming skills. __