Thursday, November 4, 2010
apt-cacher error
Apt-cacher proxy, Translation index files and apt-get update errors
http://martin.ind-web.com/2009/08/04/apt-cacher-proxy-translation-index-files-and-apt-get-update-errors/
Err http://mirror.files.bigpond.com intrepid/universe Translation-en_AU
Error reading from server - read (104 Connection reset by peer)
To avoid this problem, you can run apt-get update and pass the LANG variable to it:
sudo LANG=C apt-get update
Tuesday, September 21, 2010
VUE
sudo echo "activate sudo"
echo "[Desktop Entry]
Encoding=UTF-8
Name=VUE
Categories=Office
Exec=java -jar /opt/vue/bin/VUE.jar
Icon=/opt/vue/icons/vue.gif
StartupNotify=false
Terminal=false
Type=Application
Comment=Visual Understanding Environment Application
StartupWMClass=tufts-vue-VUE" | sudo tee /usr/share/applications/vue.desktop
chmod 755 /usr/share/applications/vue.desktop
mkdir -p /opt/vue/icons
sudo wget https://vue-forums.uit.tufts.edu/upload/2009/4/29/f92d5b86b10c3225beb8148f9721ecc2_36249.gif__thumb -O /opt/vue/icons/vue.gif
https://vue-forums.uit.tufts.edu/posts/list/720.page
echo "[Desktop Entry]
Encoding=UTF-8
Name=VUE
Categories=Office
Exec=java -jar /opt/vue/bin/VUE.jar
Icon=/opt/vue/icons/vue.gif
StartupNotify=false
Terminal=false
Type=Application
Comment=Visual Understanding Environment Application
StartupWMClass=tufts-vue-VUE" | sudo tee /usr/share/applications/vue.desktop
chmod 755 /usr/share/applications/vue.desktop
mkdir -p /opt/vue/icons
sudo wget https://vue-forums.uit.tufts.edu/upload/2009/4/29/f92d5b86b10c3225beb8148f9721ecc2_36249.gif__thumb -O /opt/vue/icons/vue.gif
https://vue-forums.uit.tufts.edu/posts/list/720.page
Wednesday, March 24, 2010
Shutter - screencapture
# Repos and key
sudo add-apt-repository ppa:shutter/ppa
# Install
sudo aptitude update && sudo aptitude install shutter
sudo add-apt-repository ppa:shutter/ppa
# Install
sudo aptitude update && sudo aptitude install shutter
Tuesday, March 16, 2010
qavimator on Karmic 32-64bit
sudo apt-get install subversion qt4-qmake libqt4-dev freeglut3-dev
svn co https://qavimator.svn.sourceforge.net/svnroot/qavimator qavimator
cd qavimator/
qmake
make
sudo make install
qavimator
works well.
Tip use gtk-RecordMyDesktop to record animation.
svn co https://qavimator.svn.sourceforge.net/svnroot/qavimator qavimator
cd qavimator/
qmake
make
sudo make install
qavimator
works well.
Tip use gtk-RecordMyDesktop to record animation.
Friday, March 12, 2010
bdb_equality_candidates: (memberUid) not indexed
bdb_equality_candidates: (memberUid) not indexed
For Precise 12.04
sudo /etc/init.d/slapd stop
#Open the right OpenLDAP config file with an editor:
sudo nano /etc/ldap/slapd.d/cn\=config/olcDatabase\=\{1\}hdb.ldif
#Add new lines (after the one with olcDbIndex: objectClass eq in it) for the missing indexes. Eg.:
olcDbIndex: cn eq
olcDbIndex: gidNumber eq
olcDbIndex: memberUid eq
olcDbIndex: uid eq
olcDbIndex: uidNumber eq
olcDbIndex: uniqueMember eq
#Run the OpenLDAP indexer for your configuration:
sudo slapindex -F /etc/ldap/slapd.d/
#will get an permission error so
#Fix file permissions in your OpenLDAP database:
sudo chown -R openldap:openldap /var/lib/ldap
#Start the LDAP server:
sudo /etc/init.d/slapd start
For Karmic
from http://ilostmynotes.blogspot.com/2009/08/eliminating-openldap-uid-not-indexed.html
For Hardy
from https://help.ubuntu.com/community/OpenLDAP-SambaPDC-OrgInfo-Posix
/etc/ldap/slapd.conf in the database definitions section (ie. after the first database directive).
Following this, stop the LDAP server, run slapindex, and restart the LDAP server.
For Precise 12.04
sudo /etc/init.d/slapd stop
#Open the right OpenLDAP config file with an editor:
sudo nano /etc/ldap/slapd.d/cn\=config/olcDatabase\=\{1\}hdb.ldif
#Add new lines (after the one with olcDbIndex: objectClass eq in it) for the missing indexes. Eg.:
olcDbIndex: cn eq
olcDbIndex: gidNumber eq
olcDbIndex: memberUid eq
olcDbIndex: uid eq
olcDbIndex: uidNumber eq
olcDbIndex: uniqueMember eq
#Run the OpenLDAP indexer for your configuration:
sudo slapindex -F /etc/ldap/slapd.d/
#will get an permission error so
#Fix file permissions in your OpenLDAP database:
sudo chown -R openldap:openldap /var/lib/ldap
#Start the LDAP server:
sudo /etc/init.d/slapd start
For Karmic
from http://ilostmynotes.blogspot.com/2009/08/eliminating-openldap-uid-not-indexed.html
echo "dn: olcDatabase={1}hdb,cn=config
changetype: modify
replace: olcDbIndex
olcDbIndex: uid,uidNumber,gidNumber,memberUid,uniqueMember,objectClass,cn eq" > indexchanges.ldif
sudo ldapmodify -f indexchanges.ldif -D cn=admin,cn=config -x -y /etc/ldap.secret
sudo /etc/init.d/slapd stop
sudo su -s /bin/bash -c slapindex openldap
sudo /etc/init.d/slapd start
For Hardy
from https://help.ubuntu.com/community/OpenLDAP-SambaPDC-OrgInfo-Posix
/etc/ldap/slapd.conf in the database definitions section (ie. after the first database directive).
# Indices to maintain for this database
index objectClass eq,pres
index ou,cn,sn,mail,givenname eq,pres,sub
index uidNumber,gidNumber,memberUid eq,pres
index loginShell eq,pres
# I also added this line to stop warning in syslog ..
index uniqueMember eq,pres
## required to support pdb_getsampwnam
index uid pres,sub,eq
Following this, stop the LDAP server, run slapindex, and restart the LDAP server.
sudo /etc/init.d/slapd stop
sudo slapindex
# WARNING!
# Runnig as root!
# There's a fair chance slapd will fail to start.
# Check file permissions!
# Correct the ownership of the index files ..
sudo chown openldap:openldap /var/lib/ldap/*
sudo /etc/init.d/slapd start
openshot, simple scan and audio caputre
#openshot
sudo add-apt-repository ppa:openshot.developers
sudo apt-get update
sudo apt-get install openshot
# simple-scan
sudo add-apt-repository ppa:robert-ancell/simple-scan
sudo apt-get update
sudo apt-get install simple-scan
to capture audio direct from soundcard playback
arecord -f cd -t wav out.wav
could get this to work
arecord -f cd -t raw | lame -x - out.mp3
sudo add-apt-repository ppa:openshot.developers
sudo apt-get update
sudo apt-get install openshot
# simple-scan
sudo add-apt-repository ppa:robert-ancell/simple-scan
sudo apt-get update
sudo apt-get install simple-scan
to capture audio direct from soundcard playback
arecord -f cd -t wav out.wav
could get this to work
arecord -f cd -t raw | lame -x - out.mp3
Tuesday, October 20, 2009
Ubuntu NIS server for OS X 10.4
I'm having problems with ldap and 10.4 so I'm using NIS
UBUNTU (8.04) server
#NFS
echo "portmap mountd nfsd statd lockd rquotad : 192.168.1.0/255.255.255.0" | tee -a /etc/hosts.allow
#LDAP
echo "ldap : 192.168.1.0/255.255.255.0" | tee -a /etc/hosts.allow
#www
echo "www : ALL" | tee -a /etc/hosts.allow
NIS Deny
echo "nis : ALL" | tee -a /etc/hosts.deny
NIS
sudo apt-get install portmap nis
sed -i -e "s/^NISSERVER=false/NISSERVER=true/" /etc/default/nis
#sed -i -e "s/^NISCLIENT=true/NISCLIENT=false/" /etc/default/nis
echo "ypserv ypbind : 192.168.1.0/255.255.255.0" | tee -a /etc/hosts.allow
# /etc/default/portmap
echo "ypserver 192.168.1.8" | tee -a /etc/yp.conf
sed -i -e "s/=1000/=1002/" /var/yp/Makefile # change MINUID & MINGID
sed -i -e "s/^0.0.0.0/255.255.255.0/" /etc/ypserv.securenets
sed -i -e "s/0.0.0.0$/192.168.1.0/" /etc/ypserv.securenets
# for OSX support sudo shadow2passwd.sh
sudo /usr/lib/yp/ypinit -m # XXXXXX.XXXXXXX.net
sudo /etc/init.d/portmap restart
sudo /etc/init.d/nis restart
ypcat passwd
UBUNTU (8.04) server
#NFS
echo "portmap mountd nfsd statd lockd rquotad : 192.168.1.0/255.255.255.0" | tee -a /etc/hosts.allow
#LDAP
echo "ldap : 192.168.1.0/255.255.255.0" | tee -a /etc/hosts.allow
#www
echo "www : ALL" | tee -a /etc/hosts.allow
NIS Deny
echo "nis : ALL" | tee -a /etc/hosts.deny
NIS
sudo apt-get install portmap nis
sed -i -e "s/^NISSERVER=false/NISSERVER=true/" /etc/default/nis
#sed -i -e "s/^NISCLIENT=true/NISCLIENT=false/" /etc/default/nis
echo "ypserv ypbind : 192.168.1.0/255.255.255.0" | tee -a /etc/hosts.allow
# /etc/default/portmap
echo "ypserver 192.168.1.8" | tee -a /etc/yp.conf
sed -i -e "s/=1000/=1002/" /var/yp/Makefile # change MINUID & MINGID
sed -i -e "s/^0.0.0.0/255.255.255.0/" /etc/ypserv.securenets
sed -i -e "s/0.0.0.0$/192.168.1.0/" /etc/ypserv.securenets
# for OSX support sudo shadow2passwd.sh
sudo /usr/lib/yp/ypinit -m # XXXXXX.XXXXXXX.net
sudo /etc/init.d/portmap restart
sudo /etc/init.d/nis restart
ypcat passwd
Subscribe to:
Posts (Atom)