DevHeads.net

Postings by Peng Yu

Light-weight job dispatch on multiple machines

Hi, I'd like a command line job dispatch tool to dispatch jobs (each
job is independent from each other and may have different input
parameters) on multiple linux machines.

I am not looking for complex tools like sun grid engine or torque.
Rather, I am looking for something with very little configuration (for
example, the minumal configure is just the machine names and how many
jobs each machine can run in parallel).

Do anybody know if such a light weighted tool available? Thanks.

How to clean up /boot?

Hi, I got the following error when I try to clean up /boot. Then I try
to run `apt-get -f install`. Then, it ends up with the /boot full
problem.

gcc -m32 error with files not found

Hi, I got the following error when I try to run gcc -m32.

How the command "at" works?

Hi, I want to understand how `at` schedules jobs. Does anybody know
how it works? Thanks.

How to show the commands submitted by `at`?

Hi, atq only shows that there are job submitted. But how to show the
actual commands being submitted?

What does ubuntu do after loading ~/.bashrc?

Hi, Sometime, when I try to `ssh -v` to an ubuntu, it becomes
unreponsive after loading ~/.bashrc (I know this because I put some
print statement at the end of ~/.bashrc). Does anybody know how to
figure out how to print out any debug message from the progresses
envoked after ~/.bashrc is loaded?

Where is the manpage of M_PI?

Hi, Mac OS X has the manpage for M_PI. Is it available in Ubuntu?

How to specific the name for the receipt when using the program 'mail'?

Hi,

The following command can send an email to somebody. But there is no
name associated with the recipient.

echo 'Message body' | mail -s 'Email subject' <a href="mailto: ... at example dot com"> ... at example dot com</a>

Something like the following does not work.

echo 'Message body' | mail -s 'Email subject' 'First Last< ... at example dot com>'

Does anybody know how to specific the name of the recipient? Thanks.

How to allow each user on an Ubuntu server use his/her google email and password to send the email via google smtp?

Hi,

I see the following post.

How To Relay Postfix mails via smtp.gmail.com on Ubuntu 14.04.1
<a href="https://community.runabove.com/kb/en/instances/how-to-relay-postfix-mails-via-smtp.gmail.com-on-ubuntu-14.04.html" title="https://community.runabove.com/kb/en/instances/how-to-relay-postfix-mails-via-smtp.gmail.com-on-ubuntu-14.04.html">https://community.runabove.com/kb/en/instances/how-to-relay-postfix-mail...</a>

But the problem is that all users on the same ubuntu server will be
able to use the same google account to send emails. Is there a way to
configure postfix so that each Ubuntu user will use his/her own google
account to send emails? Thanks.

How to setup the same user/passwd and group on multiple ubuntu machines?

Hi,

I have a number of ubuntu machines on a network. I want to have a
simple way so that each machine has the same user/passwd and group. I
don't want to set user/passwd and group repeatedly on each machine, as
this is not manageable when the number of machines increase.

LDAP seems to be relevant. But I can't find a complete easy-to-follow
recipe for user/passwd and group setup purpose. Could anybody point me
some good resource? Thanks.

How to check whether blas/lapack/atlas is built with g77 or gfortran?

Hi,

<a href="http://docs.scipy.org/doc/numpy/user/install.html#fortran-abi-mismatch" title="http://docs.scipy.org/doc/numpy/user/install.html#fortran-abi-mismatch">http://docs.scipy.org/doc/numpy/user/install.html#fortran-abi-mismatch</a>

The above URL says the following " In particular, if your
blas/lapack/atlas is built with g77, you must use g77 when building
numpy and scipy; on the contrary, if your atlas is built with
gfortran, you must build numpy/scipy with gfortran. "

But I'm not sure how to figure out whether g77 or gfortran is used to
compile blas/lapack/atlas on ubuntu. Could anybody let me know?
Thanks.

How to run old linux code (32bit) on current ubuntu system?

Hi,

I have some legacy binary code. Is there a way to run it on a current
64bit ubuntu system?

~$ file y
y: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.0.0, not
stripped
~$ ./y
-bash: ./y: No such file or directory

How to check what file are installed by libboost-all-dev?

Hi,

I see the following files. But should there be more files installed
(e.g., header files). How to show all files installed by
libboost-all-dev? Thanks.

~$ dpkg -L libboost-all-dev
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libboost-all-dev
/usr/share/doc/libboost-all-dev/copyright
/usr/share/doc/libboost-all-dev/changelog.gz

Where is libtinfo.so.5?

Hi,

libtinfo.so.5 is available on Ubuntu 11.10, but it is not available on
Ubuntu 10.04.4 LTS. Does anybody know which package has libtinfo.so.5
on 10.04?

More updated package systems that are are independent of ubuntu versions

Hi,

macports on mac seem to be fairly updated, and the latest version
available does not depend on which version of the OS is. But many
packages on ubuntu are outdated. Even the lastest release of ubuntu
may not have the most updated packages, and many updated packages
available in a later version ubuntu is not available to an older
version ubuntu. I'm wondering if there is something similar to
macports on ubuntu that can give me consistent updated packages across
different version of ubuntu OS. Thanks!

Update package without updating the OS

Hi,

coreutils doesn't have realpath on ubuntu 11.04. Without updating the
OS to the lastest version or compiling coreutils from the latest
release, it is there a simpler way to update coreutils? Thanks!

Prompt for incomplete command

Hi,

I used to remember if I type an incomplete command, I should see an
useful output such as which package I should install or what other
commands may be relevant to the incomplete command.

~$ hg
The program 'hg' is currently not installed. You can install it by typing:
sudo apt-get install mercurial

But now I get the following error. It seems that there is some problem
with the python packages. But I don't think that I have changed
anything relevant in my system.

How to request adding a package?

Hi,

I remember that I didn't this before. But I can find the link any
more. Could anybody point me how to submit a question for packaging a
new software?

multiple downloads with scp

Hi,

scp seems to only allow single thread download when I want scp a
directory of files. Is there way to download multiple files
simultanously with scp? Or is there some similar tool that allow
simultaneous download?

Get the proper suffix depending on the file type.

Hi,

The command 'file' print human readable file format. But I need to get
the correct suffixes for some files with incorrect suffixes. I could
parse the output of 'file' and then map to the correct suffixes. But
I'm wondering if there is any more automatic way of doing so? Thanks!

Command to tell whether it ubuntu and mac

Hi,

I want to make a script work for both mac and ubuntu. Is there a
command that I can tell me whether I'm on an ubuntu or on a mac?

Drupal with HTML5 game

Hi,

I see that HTML5 game is getting more popular. <a href="http://html5games.com/" title="http://html5games.com/">http://html5games.com/</a>

If I want to create a multiple player game, and each player can have
their own account and profile. Can I use drupal to do so? And could
anybody point me what I should learn in drupal to work with HTML5 game
so that I can understand how the whole process is? (I'm new to drupal.
So please excuse me if my question is very naive.) Thanks!

Drupal pdf document

Hi,

I'm not able to find pdf version of drupal document on drupal document
page. Does anybody know if there is one? Thanks!

How to estimate how many people-year is need to build a website and how many people is needed to maintain a website?

Hi,

I'm wondering whether is an easy way to estimate how many people-years
are needed to build a website and how many people are needed maintain
a website. Some website has a staff webpage showing all the supporting
staffs, which make it easy to estimate. But such a webpage is not
available, is there a way to estimate based on the content or some
other characteristics of website for an estimate?

Where is gdialog's manpage?

Hi,

I'm not able to locate gdialog's manpage on my Ubuntu . Does anybody
know where it is?

~$ man gdialog
No manual entry for gdialog
See 'man 7 undocumented' for help when manual pages are not available.
~$ cat /etc/issue
Ubuntu 11.10 \n \l

~$ which gdialog
/usr/bin/gdialog

Save passwords in a local file system

Hi,

I have a number of usernames and passwords current saved a plain text
file. I remember that that there are some password management tools to
encrypt the user/pass info. I don't call what the tool is. Would you
please let me know what tools are available for saving usernames and
passwords?

How http://eterna.cmu.edu is designed? (with drupal)

Hi,

I remember that some error page on the following webpage reveals that
it is built on drupal (I can't find the URL anymore). If my memory is
correct, I'm wondering what part is handled by drupal how the other
parts are built on drupal. I understand the managing of user profiles
and let users leave comments, etc., are offered by drupal. But what
about the flash for drawing the RNA structures. How the user interface
is made so that users can play the game by clicking the buttons on the
flash?

<a href="http://eterna.cmu.edu" title="http://eterna.cmu.edu">http://eterna.cmu.edu</a>

"Enable Wireless" is gray on ubuntu 11.10 (Dell Vostro 1520)

Hi,

I installed ubuntu 11.10 on Dell Vostro 1520. When I click on the up
and down arrows on the top bar, I see "Enable Wireless" menu item is
gray. Is it because the wireless network card is not properly
recognized by ubuntu? Does anybody know how to fix the problem?

How to install the same package on multiple ubuntu machine?

Hi,

I have a number of ubuntu machines with the same version of OS. I want
install some package on all of them. Login to each of them and run the
installation command (could be apt-get or traditional
configure->make->make install) is time consuming. Is there some tool
that can help me automate this process? Thanks!

Why crontab -e doesn't use the correct editor?

Hi,

~$ echo $EDITOR

~$ echo $VISUAL

~$ ll /usr/bin/editor
lrwxrwxrwx 1 root root 24 2010-05-14 17:23 /usr/bin/editor ->
/etc/alternatives/editor
pengy@pengy-desktop:~$ readlink -f -e /usr/bin/editor
/usr/bin/vim.gnome

I have the above environment. But when I call run "crontab -e". nano
is invoked. I think that vim.genome should be called. I'm wondering
why the correct one is not called?