- Compile NCBI
- make sure link the actual makefile in
platform/to the root level - make sure the paths in the linked makefile are modified to your environment
- make sure link the actual makefile in
- Compile SLRI
- make sure
$NCBIis set - link
lib/*.mkto root level cd lib && make lib
- make sure
- Compile bzip2
- Compile libiodbc (as ODBC dependency)
- Set environment var
$NCBI,$SLRI,$ODBC, and$BZDIR - Comment out
ValNodeUniqueinseqhound/include/intrez_misc.handseqhound/src/intrez_misc.c cd seqhound && ./makeallsh odbc all
2010-12-23
Notes on Compiling SeqHound
2010-12-17
Secure GRUB
Version 1 (aka 0.98)
Reference cyberciti.biz
Sample config file:
Version 2 (aka 1.98)
Reference ubuntuforums.org
Reference cyberciti.biz
#grub-md5-crypt
Password:
Retype password:
$1$NYoR71$Sgv6pxQ6LG4GXpfihIJyL0# vi /boot/grub/menu.lst(Red Hat/boot/grub/grub.conf)
Edit file and add a password line as follows:password --md5 $1$NYoR71$Sgv6pxQ6LG4GXpfihIJyL0
Sample config file:
default 0
timeout 5
password --md5 $1$NYoR71$Sgv6pxQ6LG4GXpfihIJyL0
title Debian GNU/Linux, kernel 2.6.13.4-cust-en-smp
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda3 ro
savedefault
bootVersion 2 (aka 1.98)
Reference ubuntuforums.org
Linux notes
skill -STOP -u username Pause somebody.skill -KILL -u username Kick out somebody.skill -KILL -v /dev/pts/* Kick all out.last show successful loginslastb show bad loginslastlog show latest logins of all/any users./var/log/btmp bad logins/var/log/wtmp successful logins/var/run/utmp current loginsSet date and time
# date -s "2 OCT 2006 18:00:00"# date --set="2 OCT 2006 18:00:00"# date +%Y%m%d -s "20081128"# date +%T -s "10:13:13"Get hardware info
/sbin/lspci/sbin/lsusblshwroute -nshows the routing table, the gateway will be flagged with a 'G'
If DNS is not properly configured, go to
/etc/resolv.conf, check or add line nameserver x.x.x.xTo pipe wget download content:
wget -q url -O - | cat > abc.txtFor ubuntu 10.10
Edit
/etc/default/grub & run update-grub to set the booting preferences
2010-12-16
Ubuntu Server 10.10 (As desktop use)
Hate OpenOffice? Dislike the integrated IM software? Feel sick about GNOME games? This solution might help to build the desktop from scratch that avoids most unnecessary components.
Installation:
Addition:Development: Remote access: Media: Printing:
Configuration:
Installation:
- Get a ubuntu server iso, and install it the debian way.
- Modify
/etc/apt/sources.listto your satisfaction. - Configure Medibuntu source: https://help.ubuntu.com/community/Medibuntu
Addition:
- Basic:
vim
- Desktop:
xserver-xorggnome-coregdmgnome-themes-selectedhumanity-icon-themegcalctool(the calculator)chromium-browsergnome-screensaverflashplugin-installerlanguage-support-??- *
network-manager - *
network-manager-openconnect(for Cisco AnyConnect VPN) *wine
- Security:
vlock
g++openjdk-6-jreqt4-dev-tools*dia*mysql-server*mysql-admin*python-mysqldb
vinagre(the client)vino(the server)
vlcmozilla-plugin-vlclibdvdcss2ubuntu-restricted-extras
system-config-printer-gnomecups*smbclient(for Windows shared printing)*hplip(HP printer drivers)
Configuration:
- Clear screen when logout:
~/.bash_logout- insert single command
clear
- Disable Ctrl-Alt-Del:
/etc/init/control-alt-delete.conf- comment out the actual command line
- Secure login/out logs:
sudo chmod 640 `sudo find /var -name ?tmp`
- Stop GDM from auto starting:
/etc/init/gdm.conf- comment out all "start on" stuff
- Configure GRUB:
/etc/default/grubupdate-grub
- MySQL
/etc/mysql/my.cnf- to reset root password:
sudo dpkg-reconfigure mysql-server-5.1
2010-11-02
Building CLucene
Note: done on Ubuntu 10.10.
Note 2: if no need for snapshot features, there is a pre-built package in the repo, called
Download CLucene source (tgz).
Install necessary dependency for building:
Make a new folder, and cd into it. Run
Then
If you get an error complaining undeclared
Note 2: if no need for snapshot features, there is a pre-built package in the repo, called
libclucene-dev.Download CLucene source (tgz).
Install necessary dependency for building:
g++zlib1g-devcmake
Make a new folder, and cd into it. Run
cmake <clucene-source-folder>.Then
ccmake <clucene-source-folder> to turn on static library build.If you get an error complaining undeclared
INT_MAX in file src/core/CLucene/search/spans/TermSpans.cpp, insert #include <limits.h> at the beginning of that file.
2010-08-11
Google Sites API
- get XHTML text
((XhtmlTextConstruct) entry.getTextContent().getContent()).getXhtml().getBlob() - get plain text (no xml tags)
entry.getTextContent().getContent().getPlainText(). - update xhtml
XmlBlob newBlob = new XmlBlob();
newBlob.setBlob(updatedXml);
entry.setContent(new XhtmlTextConstruct(newBlob));
entry.update();
System.out.println("Updated " + getEntryId(entry.getId())); - get all entries (possible failure in getting all entries if there is a write action to the server during these code)
List<ContentFeed> feeds = new LinkedList<ContentFeed>();
int startIndex = 1;
while (true) {
q.setStringCustomParameter("start-index",
String.valueOf(startIndex));
ContentFeed contentFeed = client.query(q, ContentFeed.class);
int entrySize = contentFeed.getEntries().size();
if (entrySize > 0) {
feeds.add(contentFeed);
startIndex += entrySize;
System.out.println(getEntryId(contentFeed.getEntries().get(0).getId()));
} else {
break;
}
} - Download a file using browser-accessible URL:
private byte[] getData(String url) {
MediaContent mc = new MediaContent();
mc.setUri(url);
MediaSource msrc;
try {
msrc = client.getMedia(mc);
InputStream in = msrc.getInputStream();
return org.apache.commons.io.IOUtils.toByteArray(in);
} catch (Exception e) {
return null;
}
} - Alternative to download a file using browser-accessible URL:
private byte[] getData(String url) {
try {
ILink link = new com.google.gdata.model.atom.Link("alternate", null, url);
GDataRequest req = client.createLinkQueryRequest(link);
req.execute();
InputStream in = req.getResponseStream();
return org.apache.commons.io.IOUtils.toByteArray(in));
} catch (Exception e) {
return null;
}
} - Retrieve the entry corresponding to a browser-accessible URL(
http://sites.google.com/site/siteName/path/to/the/page):ContentQuery query = new ContentQuery(new URL(buildContentFeedUrl()));
query.setPath("/path/to/the/page");
ContentFeed contentFeed = client.getFeed(query, ContentFeed.class);
for (BaseContentEntry entry : contentFeed.getEntries()) {
// do something with the entry
}
2010-07-23
Fedora 13 on MacBook Pro 5,5
Materials
MacBook Pro 13" (2009)
Fedora 13 i386 DVD (I don't wanna tackle x86_64 problems)
Internet access
Initial install
Install rEFIt on Mac OS X.
Reboot, and install Fedora using the DVD.
Reboot, and synchronzie the partition table in startup rEFIt menu.
Reboot, (I mean REBOOT) and choose the newly installed system.
Repositoies
Install the repo rpm from:
RPM Fusion free
RPM Fusion nonfree
Adobe i386
Configure Google repository according to this page.
Don't forget to
Get things to work
Graphics card
Note: the nvidia proprietary driver will not give you the fancy startup and shutdown animations.
Wireless
MIT VPN
Create a VPN connection in NetworkManager, using Cisco AnyConnect, and point the gateway to
Exchange support
Exchange 2007
Pre 2007
Other apps
Blender
Additional dependencies could be avoided if the python version matches the downloadable version (and currently it does).
Download from http://www.blender.org/download/get-blender, unpack, and it's ready to go.
VirtualBox
Download VirtualBox yum repo file:
Put it in
The default dependency resolver won't get the right PAE kernel source. Fix it:
If you didn't install g++, do it:
Finally:
If output shows the kernel modules are not properly built, recheck the above vbox dependencies, and:
Rerun the above command if you had updated your kernel.
Drop vbox users into
ATTENTION: before you hop in the vm, make sure the host key is accessible... there is NO "right control" in macbook's keyboard.
Results
Sound
Built-in speakers can't make any waves, but plug-in earphones do.
Fn keys
Brightness keys do display something on screen. But if you really want to adjust the brightness, do it in nvidia configuration panel.
No keyboard back-light.
MacBook Pro 13" (2009)
Fedora 13 i386 DVD (I don't wanna tackle x86_64 problems)
Internet access
Initial install
Install rEFIt on Mac OS X.
Reboot, and install Fedora using the DVD.
Reboot, and synchronzie the partition table in startup rEFIt menu.
Reboot, (I mean REBOOT) and choose the newly installed system.
Repositoies
Install the repo rpm from:
RPM Fusion free
RPM Fusion nonfree
Adobe i386
Configure Google repository according to this page.
Don't forget to
sudo yum update!Get things to work
Graphics card
sudo yum install kmod-nvidia-PAENote: the nvidia proprietary driver will not give you the fancy startup and shutdown animations.
Wireless
sudo yum install kmod-wl-PAEMIT VPN
Create a VPN connection in NetworkManager, using Cisco AnyConnect, and point the gateway to
vpn.mit.edu. (Yes, it simply works)Exchange support
Exchange 2007
sudo yum install evolution-mapi (it seems it doesn't work in my case)Pre 2007
sudo yum install evolution-exchangeOther apps
- Utility
sudo yum install flash-pluginsudo yum install alacarte# menu editorsudo yum install diasudo yum install picasasudo yum install unrarsudo yum install pitivi# video convertersudo yum install google-chrome-stable - Network analysis
sudo yum install nmapsudo yum install ettercap-gtksudo yum install wireshark-gnome - Others
sudo yum install xiphos# the Holy Bible
Blender
Additional dependencies could be avoided if the python version matches the downloadable version (and currently it does).
Download from http://www.blender.org/download/get-blender, unpack, and it's ready to go.
VirtualBox
Download VirtualBox yum repo file:
http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo.Put it in
/etc/yum.repo.d/. Then:sudo yum install dkmsThe default dependency resolver won't get the right PAE kernel source. Fix it:
sudo yum install kernel-PAE-sourcesudo yum erase kernel-sourceIf you didn't install g++, do it:
sudo yum install gcc-c++Finally:
sudo yum install VirtualBox-3.2If output shows the kernel modules are not properly built, recheck the above vbox dependencies, and:
sudo /etc/init.d/vboxdrv setupRerun the above command if you had updated your kernel.
Drop vbox users into
vboxusers group.ATTENTION: before you hop in the vm, make sure the host key is accessible... there is NO "right control" in macbook's keyboard.
Results
Sound
Built-in speakers can't make any waves, but plug-in earphones do.
Fn keys
Brightness keys do display something on screen. But if you really want to adjust the brightness, do it in nvidia configuration panel.
No keyboard back-light.
2010-07-22
Google Data API Feed URLs
Google Sites
SiteFeed
https://sites.google.com/feeds/site/<domain-name>/ContentFeed
https://sites.google.com/feeds/content/<domain-name>/<site-name>/<content-id>/Reference
Google Analytics
ManagementFeed
- Accounts:
https://www.google.com/analytics/feeds/datasources/ga/accounts - Web properties:
https://www.google.com/analytics/feeds/datasources/ga/accounts/~all/webproperties - Profiles:
https://www.google.com/analytics/feeds/datasources/ga/accounts/~all/webproperties/~all/profiles
DataFeed
https://www.google.com/analytics/feeds/dataReference
2010-04-19
Debian-testing (squeeze) log (vbox)
Start with expert install mode.
No normal user created during installation.
Remove
Essential:
Packages for basic kernel module compilation:
Packages for mini GNOME:
Use
Use
No normal user created during installation.
Remove
*-trunk-* kernel.Essential:
vimlesssshPackages for basic kernel module compilation:
makeg++linux-headers-`uname -r`Packages for mini GNOME:
xorgUse
aptitude to install metacity, and deselect auto-recommended brasero and python-beagle.gnome-terminalgnome-themesUse
startx to start GNOME.
Subscribe to:
Comments (Atom)