Chit chat


Schools want to reduce math and science classes for alleged lack of interest. I think it is an instructor issue instead.

Working on some stuff for an or two.

If you think the command line is too hard, then try these.

What do you really own?
Using the Arduino and ethernet for a web interface to control audio inputs and outputs via 4066 ic’s.
Have a little fun with your home web server. Imagine you are a fancy restaurant.



Use the Arduino + ethernet when your server is down for a temporary site to let your users know what is going on.pertinent code:

client.println(“<center>”);client.println(“<h1>Your server name<h1>”);
client.println(“<br />”);client.println(“<h2>Bear with us as the server is under reconstruction!</h2>”);
client.println(“<img src=’‘ height=500 width=500 />”);


Just had to try this.


We have a boat load of negatives that should be in picture files.

The form: (not actual size).


Just a simple batch file to collect information about your computer.  A bit dated and there are probably some commands that should have been included, but a good list of commands you can use to find out about your linux box. You have to install some of the commands for them to work. You do not have to use all the commands like I did, but it will be interesting to see what is in the file generated. Great for documentation about the system. Good list to have for insurance purposes.

usage: sudo ./ filename

$ sudo ./ My_desktop_computer_info

echo "================================="
cat /etc/hostname
echo "getting stats"
# file="system.txt"
echo " " &gt; $file
echo "=====================================" &gt;&gt; $file
echo&nbsp; get computername &gt;&gt; $file
cat /etc/hostname &gt;&gt; $file
echo "=====================================" &gt;&gt; $file
echo&nbsp; get current ip connections &gt;&gt; $file
sudo ifconfig &gt;&gt; $file
echo "-------------------------------------" &gt;&gt; $file
echo&nbsp; get linux version &gt;&gt; $file
lsb_release -a &gt;&gt; $file
echo "-------------------------------------" &gt;&gt; $file
echo&nbsp; get memory specs &gt;&gt; $file
free &gt;&gt; $file
echo "-------------------------------------" &gt;&gt; $file
echo&nbsp; get file storage statistics &gt;&gt; $file
df -h &gt;&gt; $file
echo "-------------------------------------" &gt;&gt; $file
echo&nbsp; get mounted file system list &gt;&gt; $file
cat /etc/fstab &gt;&gt; $file
echo "-------------------------------------" &gt;&gt; $file
echo&nbsp; get pci specs &gt;&gt; $file
sudo lspci &gt;&gt; $file
echo "-------------------------------------" &gt;&gt; $file
echo&nbsp; get loaded modules &gt;&gt; $file
sudo lsmod &gt;&gt; $file
echo "-------------------------------------" &gt;&gt; $file
echo&nbsp; get current usb attachments. &gt;&gt; $file
sudo lsusb &gt;&gt; $file
echo "-------------------------------------" &gt;&gt; $file
echo get repos &gt;&gt; $file
cat /etc/apt/sources.list &gt;&gt; $file
# echo "-------------------------------------" &gt;&gt; $file
# echo&nbsp; get installed software &gt;&gt; $file
# sudo dpkg --get-selections &gt;&gt; $file
# echo "-------------------------------------" &gt;&gt; $file
# echo&nbsp; get hardware info &gt;&gt; $file
# sudo lshw &gt;&gt; $file
# echo "-------------------------------------" &gt;&gt; $file
# echo&nbsp; get scsi devices &gt;&gt; $file
# sudo lsscsi &gt;&gt; $file
echo "-------------------------------------" &gt;&gt; $file
echo&nbsp; display /etc/issue &gt;&gt; $file
cat /etc/issue &gt;&gt; $file
# echo "-------------------------------------" &gt;&gt; $file
# echo&nbsp; get boot up info &gt;&gt; $file
# dmesg &gt;&gt; $file
echo "-------------------------------------" &gt;&gt; $file
echo&nbsp; get users &gt;&gt; $file
cat /etc/passwd &gt;&gt; $file
echo "-------------------------------------" &gt;&gt; $file
echo&nbsp; get current users on system &gt;&gt; $file
who &gt;&gt; $file
# echo "-------------------------------------" &gt;&gt; $file
# echo&nbsp; get system messages &gt;&gt; $file
# cat /var/log/messages &gt;&gt; $file
# echo "-------------------------------------" &gt;&gt; $file
# echo&nbsp; get rootkit checker log &gt;&gt; $file
# cat /var/log/rkhunter.log &gt;&gt; $file
# echo "-------------------------------------" &gt;&gt; $file
# echo&nbsp; get syslog &gt;&gt; $file
# cat /var/log/syslog &gt;&gt; $file
echo "-------------------------------------" &gt;&gt; $file
echo&nbsp; get scheduled events &gt;&gt; $file
cat /etc/anacrontab &gt;&gt; $file
cat /etc/crontab &gt;&gt; $file


To install Statusnet, you need to go download the latest version. Once completing that, you can transfer the file to the server. (of course, you can download the file direct to the server.) We do everything from the command line to the server when we can.

$ scp statusnet-1.1.1.tar.gz  oeorgan1:~/.

statusnet-1.1.1.tar.gz                        100% 8869KB   4.3MB/s   00:02

Now to go to the server to do the install.

eddie@oelt02:~$ ssh oeorgan1

Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-41-generic i686)

* Documentation:

New release ‘14.04.1 LTS’ available.
Run ‘do-release-upgrade’ to upgrade to it.

Last login: Sat Aug 16 10:34:43 2014 from oelt02.local

Is it there?

$ ls statusnet-1.1.1.tar.gz

Make a directory to work in .

$ makedir statusnet
$ cd statusnet

Expand the archive

/statusnet$  tar zxvf ~/statusnet-1.1.1.tar.gz


/statusnet$ cd statusnet-1.1.1/
/statusnet/statusnet-1.1.1$ ls
actions               doc-src          install.php            plugins
apple-touch-icon.png  EVENTS.txt       js                     PLUGINS.txt
avatar                extlib           lib                    README
background            favicon.ico      lighttpd.conf.example  scripts
classes               file             local                  tests
CONFIGURE             htaccess.sample  locale                 theme
COPYING               index.php        mail-src               UPGRADE
db                    INSTALL          Makefile

Get the instructions to follow

/statusnet/statusnet-1.1.1$ Vim README

Move the extracted directory to the web directory area.

$ sudo mv statusnet-1.1.1/ /var/www/sn
$ sudo apt-get install php5-curl
$ sudo service apache2 restart

Set ownership

chgrp www-data /var/www/sn/
$ sudo chown -R www-data:www-data sn

Set file permissions

$ sudo chmod a+w /var/www/sn/

$ sudo  chmod a+w /var/www/statusnet/avatar
$ sudo  chmod a+w /var/www/statusnet/background
$ sudo  chmod a+w /var/www/statusnet/file
$ sudo chmod -R 755 sn

Via command line set up mysql
Create a database to hold your microblog data. Something like this
should work:

mysqladmin -u “username” –password=”password” create statusnet

Note that StatusNet must have its own database; you can’t share the
database with another program. You can name it whatever you want,

(If you don’t have shell access to your server, you may need to use
a tool like PHPAdmin to create a database. Check your hosting
service’s documentation for how to create a new MySQL database.)

Create a new database account that StatusNet will use to access the
database. If you have shell access, this will probably work from the
MySQL shell:

GRANT ALL on statusnet.*
TO ‘statusnetuser’@’localhost’
IDENTIFIED BY ‘statusnetpassword’;or use phpmyadmin

or use phpmyadmin (requires superuser power)

Be sure to reload privileges before exiting.

Go to the web site and then install setup

Follow instructions:

Log in as an admin and setup the site. Would not hurt to set up a pointer on the menu to the site from your main page.

Have fun!


Sheldon’s favorite: pasta and weenies.

SUNP0020 SUNP0022

Good day.