Tuesday, December 9, 2008

system management

http://wiki.systemimager.org/index.php/Quick_Start_HOWTO

Monday, November 10, 2008

dpkg restore.

Just seen this.

add a sources.list update will be really useful.


# "Have a second computer that you want to migrate your Debian-based system to, but don't want to go through the trouble of finding every package you had installed? To save your package, list:

* dpkg --get-selections > selections.txt

# To restore:

* dpkg --set-selections < selections.txt
* dselect update
* apt-get dselect-upgrade," he said.

Friday, November 7, 2008

Upgrading to Intrepid with update-manager and apt-cacher

Intrepid
update-manager has has a bug which doesn't recognize the apt.conf


Here is a work around

sudo -s
cp /etc/apt/sources.list /etc/apt/sources.list.backup
insert=`sed -e "s/^A.* \"//; s/\";$// ; s,/$,," /etc/apt/apt.conf`
sed -i -e "s,http:/,$insert," /etc/apt/sources.list
cat /etc/apt/sources.list
mv /etc/apt/apt.conf /etc/apt/apt.conf.proxy
update-manager -d -c
cp /etc/apt/sources.list.backup /etc/apt/sources.list
mv /etc/apt/apt.conf.proxy /etc/apt/apt.conf


this script copies the proxy info from the /etc/apt/apt.conf file
then hard codes it into the /etc/apt/sources.list
does the deed the reverts back to the previous state

Tuesday, September 23, 2008

Intrepid Client install

Client Ubuntu Intrepid




ldap clients

sudo apt-get install libnss-ldap libpam-ldap nscd



LDAP server Uniform Resource Identifier: ldap://192.168.1.8/
Distinguished name of the search base: dc=XXXXXX,dc=XXXXXX,dc=homeip,dc=net
LDAP version to use: 3
Make local root Database admin: yes
Does the LDAP database require login? no
LDAP account for root: cn=admin,dc=XXXXXXX,dc=XXXXXXX,dc=homeip,dc=net
LDAP root account password: XXXXXXXX


sudo cp /etc/nsswitch.conf /etc/nsswitch.conf.backup
sudo apt-get install auth-client-config
sudo auth-client-config -a -p lac_ldap


Test
sudo /etc/init.d/nscd restart

getent passwd


#### If test fails you must restore the /etc/nsswitch.conf
### sudo cp /etc/nsswitch.conf.backup /etc/nsswitch.conf
## or you you could end up with an unloginable machine.


File Server


NFS client


sudo mkdir /home/staff
sudo mkdir /home/students

MYSERVER="zeus"; echo "$MYSERVER:/home/staff /home/staff nfs udp,defaults 0 0
$MYSERVER:/home/students /home/students nfs udp,defaults 0 0" | sudo tee -a /etc/fstab

sudo apt-get -y install nfs-common
sudo mount -a

Vnc Server

Package management

#medibuntu

sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list

#cinelerra

sudo wget http://repository.akirad.net/dists/hardy.list -O /etc/apt/sources.list.d/akirad.list

wget -q http://repository.akirad.net/dists/akirad.key -O- | sudo apt-key add -


sudo sed -i -e "3i10.0.0.8 debian ********.homeip.net" /etc/hosts


sudo echo "start"

echo "
sudo apt-get update ; sudo apt-get install medibuntu-keyring
sudo apt-get update

sudo aptitude -y install ubuntu-restricted-extras
//sudo aptitude -y install msttcorefonts googleearth-4.3 googleearth-4.3-data

sudo aptitude -y install flashplugin-nonfree vlc ffmpeg mplayer mencoder gstreamer0.10-ffmpeg gstreamer0.10-pitfdll gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg libxine1-ffmpeg libdvdread3 libdvdcss2 gnome-do acroread acroread-plugins mozilla-acroread youtube-dl libflashsupport w32codecs x11vnc openoffice.org-ogltrans openoffice.org-java-common" > /tmp/packages.sh
chmod +x /tmp/packages.sh
sudo /tmp/packages.sh
rm /tmp/packages.sh


#adds terminal to right click
#apt-get install nautilus-open-terminal

script queue



firefox

Setup lockdown


sudo echo "
pref(\"general.config.obscure_value\", 0);
pref(\"general.config.filename\", \"firefox.cfg\"); " | sudo tee -a /etc/firefox-3.0/pref/firefox.js


sudo echo "//
lockPref(\"autoadmin.global_config_url\",\"http://192.168.1.8/autoadmin.js\");
lockPref(\"autoadmin.append_emailaddr\",false); " | sudo tee /usr/lib/firefox-3.0b5/firefox.cfg




Info at http://mit.edu/~firefox/www/maintainers/autoconfig.html

Friday, June 13, 2008

Misc stuff

b43legacy-phy0 ERROR: You must go to http://linuxwireless.org/en/users/Drivers/b43#devicefirmware and download the correct firmware (version 3).
[ 712.362777] b43legacy-phy0 ERROR: Firmware file "b43legacy/ucode2.fw" not found or load failed.

/lib/firmware/2.6.24-19-generic$ sudo apt-get install b43-fwcutter


[ 1526.681767] b43legacy-phy0: Broadcom 4301 WLAN found
[ 1526.703056] b43legacy-phy0 debug: Found PHY: Analog 0, Type 1, Revision 4
[ 1526.703085] b43legacy-phy0 debug: Found Radio: Manuf 0x17F, Version 0x2050, Revision 2
[ 1526.727055] b43legacy-phy0 debug: Radio initialized
[ 1526.730788] phy0: Selected rate control algorithm 'simple'
[ 1526.888895] b43legacy-phy0 debug: Loading firmware version 0x127, patch level 14 (2005-04-18 02:36:27)
[ 1526.991241] b43legacy-phy0 debug: Chip initialized
[ 1526.992031] b43legacy-phy0 debug: 30-bit DMA initialized
[ 1526.994762] b43legacy-phy0 debug: Wireless interface started
[ 1526.998993] b43legacy-phy0: Radio hardware status changed to disabled
[ 1526.999515] b43legacy-phy0 debug: Adding Interface type 2
[ 1527.000422] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1527.013047] b43legacy-phy0 debug: Using software based encryption for mac: ff:ff:ff:ff:ff:ff



FIXED ;-)

Thursday, May 1, 2008

ServerUbuntuHardy

Server



apt-get -y install ssh

apt-get -y install apt-cacher #[ng]


echo "Acquire::http::Proxy \"http://192.168.1.8:3142\";" | sudo tee /etc/apt/apt.conf



nano /etc/apt/sources.list

#sort out /etc/apt/sources.list



sudo apt-get update
sudo apt-get upgrade



ldap server


sudo apt-get install slapd ldap-utils migrationtools

sudo dpkg-reconfigure slapd


Omit OpenLDAP server configuration? ... No
DNS domain name: ... XXXXX.XXXXX.homeip.net
Name of your organization: ... Whatever & Co
Admin Password: XXXXX
Confirm Password: XXXXX
OK
BDB
Do you want your database to be removed when slapd is purged? ... No
Move old database? ... Yes
Allow LDAPv2 Protocol? ... No


Test
ldapsearch -x -b dc=XXXXXX,dc=XXXX,dc=homeip,dc=net




echo "dn: ou=People,dc=XXXXX,dc=XXXXXX,dc=homeip,dc=net
ou: People
objectclass: organizationalUnit

dn: ou=Group,dc=XXXXXX,dc=XXXXXXX,dc=homeip,dc=net
ou: Group
objectclass: organizationalUnit" | tee ~/people_group.ldif


cd /usr/share/migrationtools/


sudo sed -i -e 's/$DEFAULT_MAIL_DOMAIN = "padl.com";/$DEFAULT_MAIL_DOMAIN = "harrow.redballoon.homeip.net";/' /usr/share/perl5/migrate_common.ph
sudo sed -i -e 's/$DEFAULT_BASE = "dc=padl,dc=com";/$DEFAULT_BASE = "dc=XXXXX,dc=XXXXXXX,dc=homeip,dc=net";/' /usr/share/perl5/migrate_common.ph

sudo sed -i -e 's/#$IGNORE_UID_BELOW = 1000;/$IGNORE_UID_BELOW = 1002;/' /usr/share/perl5/migrate_common.ph
sudo sed -i -e 's/#$IGNORE_GID_BELOW = 100;/$IGNORE_GID_BELOW = 20;/' /usr/share/perl5/migrate_common.ph
sudo sed -i -e 's/#$IGNORE_UID_ABOVE = 9999;/$IGNORE_UID_ABOVE = 9999;/' /usr/share/perl5/migrate_common.ph
sudo sed -i -e 's/#$IGNORE_GID_ABOVE = 9999;/$IGNORE_GID_ABOVE = 9999;/' /usr/share/perl5/migrate_common.ph



./migrate_group.pl /etc/group ~/group.ldif
./migrate_passwd.pl /etc/passwd ~/passwd.ldif


echo -n "XXXXXX" | sudo tee /etc/ldap.secret
sudo chmod 600 /etc/ldap.secret


sudo ldapadd -x -W -D "cn=admin,dc=XXXX,dc=XXXX,dc=homeip,dc=net" -y /etc/ldap.secret -f ~/people_group.ldif
sudo ldapadd -x -W -D "cn=admin,dc=XXXX,dc=XXXX,dc=homeip,dc=net" -y /etc/ldap.secret -f ~/group.ldif
sudo ldapadd -x -W -D "cn=admin,dc=XXXX,dc=XXXX,dc=homeip,dc=net" -y /etc/ldap.secret -f ~/passwd.ldif


File Server

NFS server
sudo apt-get -y install nfs-server
sudo mkdir /home/staff
sudo mkdir /home/students
echo "/home/staff 192.168.1.0/255.255.255.0(rw,sync)
/home/students 192.168.1.0/255.255.255.0(rw,sync)" | sudo tee -a /etc/exports
sudo exportfs -av


install apache + php + mysql
(investigate chroot)


proxy + dansguardian
Server

Proxy setup
http://www.branchdistrictlibrary.org/professional/ubuntu_and_dansguardian_page_5.php&ei=lOMeSMveAafa0ASKtoDlBQ&sig2=GOJ6h4ZS8l6R3NRT2hK0Dw&ct=b7

http://www.google.co.uk/bookmarks/url?url=http://ubuntuforums.org/showthread.php%3Fp%3D2213171%23post2213171&ei=lOMeSMveAafa0ASKtoDlBQ&sig2=IsqEEypLsJrXozgzf2b_YA&ct=b


Firefox autoadmin.js


echo '//
lockPref("network.cookie.prefsMigrated", true);
lockPref("network.proxy.backup.ftp", "");
lockPref("network.proxy.backup.ftp_port", 0);
lockPref("network.proxy.backup.gopher", "");
lockPref("network.proxy.backup.gopher_port", 0);
lockPref("network.proxy.backup.socks", "");
lockPref("network.proxy.backup.socks_port", 0);
lockPref("network.proxy.backup.ssl", "");
lockPref("network.proxy.backup.ssl_port", 0);
lockPref("network.proxy.ftp", "192.168.1.8");
lockPref("network.proxy.ftp_port", 8080);
lockPref("network.proxy.gopher", "192.168.1.8");
lockPref("network.proxy.gopher_port", 8080);
lockPref("network.proxy.http", "192.168.1.8");
lockPref("network.proxy.http_port", 8080);
lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, 192.168.1.8");
lockPref("network.proxy.share_proxy_settings", true);
lockPref("network.proxy.socks", "192.168.1.8");
lockPref("network.proxy.socks_port", 8080);
lockPref("network.proxy.ssl", "192.168.1.8");
lockPref("network.proxy.ssl_port", 8080);
lockPref("network.proxy.type", 1);' | sudo tee /var/www/autoadmin.js

ClientUbuntuHardy

Clients


ssh

sudo apt-get install openssh-server


ldap clients

sudo apt-get install libnss-ldap libpam-ldap nscd



LDAP server Uniform Resource Identifier: ldap://192.168.1.8/
Distinguished name of the search base: dc=XXXXXX,dc=XXXXXX,dc=homeip,dc=net
LDAP version to use: 3
Make local root Database admin: yes
Does the LDAP database require login? no
LDAP account for root: cn=admin,dc=XXXXXXX,dc=XXXXXXX,dc=homeip,dc=net
LDAP root account password: XXXXXXXX


sudo cp /etc/nsswitch.conf /etc/nsswitch.conf.backup
sudo apt-get install auth-client-config
sudo auth-client-config -a -p lac_ldap


Test
sudo /etc/init.d/nscd restart

getent passwd


#### If test fails you must restore the /etc/nsswitch.conf
### sudo cp /etc/nsswitch.conf.backup /etc/nsswitch.conf
## or you you could end up with an unloginable machine.


File Server


NFS client

sudo mkdir /home/staff
sudo mkdir /home/students
sudo mkdir /home/films

MYSERVER="zeus"; echo "$MYSERVER:/home/staff /home/staff nfs udp,defaults 0 0
$MYSERVER:/home/students /home/students nfs udp,defaults 0 0
$MYSERVER:/mnt/hda1/films /home/films nfs udp,defaults 0 0" | sudo tee -a /etc/fstab



sudo apt-get -y install nfs-common
sudo mount -a

Vnc Server

Package management

#medibuntu

sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list

#cinelerra

sudo wget http://repository.akirad.net/dists/hardy.list -O /etc/apt/sources.list.d/akirad.list

wget -q http://repository.akirad.net/dists/akirad.key -O- | sudo apt-key add -


sudo echo "start"

echo "
sudo apt-get update && sudo apt-get install medibuntu-keyring
sudo apt-get update


sudo aptitude -y install msttcorefonts googleearth-4.3 googleearth-4.3-data

sudo aptitude -y install flashplugin-nonfree vlc ffmpeg mplayer mencoder gstreamer0.10-ffmpeg gstreamer0.10-pitfdll gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg libxine1-ffmpeg libdvdread3 libdvdcss2 gnome-do acroread acroread-plugins mozilla-acroread youtube-dl libflashsupport w32codecs x11vnc openoffice.org-ogltrans openoffice.org-java-common" > /tmp/packages.sh
chmod +x /tmp/packages.sh
sudo /tmp/packages.sh
rm /tmp/packages.sh


#adds terminal to right click
#apt-get install nautilus-open-terminal

script queue



firefox

Setup lockdown


sudo echo "
pref(\"general.config.obscure_value\", 0);
pref(\"general.config.filename\", \"firefox.cfg\"); " | sudo tee -a /etc/firefox-3.0/pref/firefox.js


sudo echo "//
lockPref(\"autoadmin.global_config_url\",\"http://192.168.1.8/autoadmin.js\");
lockPref(\"autoadmin.append_emailaddr\",false); " | sudo tee /usr/lib/firefox-3.0b5/firefox.cfg




Info at http://mit.edu/~firefox/www/maintainers/autoconfig.html


Java

music

video

graphics

education











Fixes



Firefox

may need fixfox

Audacity

alt+F2 pkill jackd

Cinelerra package is available in 5 variants:

cinelerra (x86 and x86_64 without opengl 2.0 video card)
cinelerra-generic (all x86 and x86_64 with opengl 2.0 video card)
cinelerra-k7 (amd32 without opengl 2.0 video card)
cinelerra-k7gl (amd32 with opengl 2.0 video card)
cinelerra-k8 (amd k8 optimized with opengl 2.0 video card)

- Cinelerra must be set to work with PulseAudio. Open Cinelerra and go to Settings->Preferences->Playback->Audio Driver. Select ESound and set the following parameters:
Server:
Port: 7007

Sunday, April 6, 2008

wiimote whiteboard hardy

Well i'm have problems

whiteboard
Put Wiimote in discoverable mode now (press 1+2)...
Connected!!!
Put Wiimote in discoverable mode now (press 1+2)...
No wiimotes found
Unable to connect to wiimote

(whiteboard:14735): gtkmm-WARNING **: Gtk::Main::init() called twice

(whiteboard:14735): gtkmm-WARNING **: Gtk::Main::init() called twice
Calculating coefficients... Done!
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)

to get this far from vanilla hardy-beta

for SVN i needed, but I still get the same error.
sudo apt-get install subversion build-essential
sudo apt-get install libtool libcwiid1-dev libgtkmm-2.4-dev libglademm-2.4-dev libxtst-dev libcairomm-1.0-dev libsigc++-2.0-dev libgnome2-dev
sudo apt-get install autoconf automake
#sudo apt-get install gettext
sudo apt-get install intltool
sudo apt-get install libbluetooth2-dev
sudo apt-get install checkinstall

latest download is
whiteboard_0.3.2-0ubuntu1_i386.deb

Sunday, February 3, 2008

My first blog

My first blog.

I'm really sorry if you got here as there is p*ss all.