I had Matlab R2007a installed on my computer, running Ubuntu 8.04 Beta. But matlab can't display the toolbar, nor can the Matlab editor show up correctly. A solution can be found at: http://www.mathworks.fr/matlabcentral/newsreader/view_thread/152223
If you are running Matlab on Linux, and with Compiz installed. You should add up one line in bash before running Matlab.
$ export AWT_TOOLKIT=MToolkit ; matlab
4/13/2008
5/02/2007
Install Scim Pinyin Input for Chinese under Ubuntu 7.04 English Desktop environment
1. install Scim Pinyin using System/Administration/Synaptic Package Manager
Type Scim to search, select Scim Pinyin to install
Type Scim to search, select Scim Pinyin to install
2. Set up Scim to run automatically when your desktop starts
Create a file called 75custom-scim_init in /etc/X11/Xsession.d
From terminal,
sudo gedit etc/X11/Xsession.d/75custom-scim_init
Paste the following and save
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export XIM_PROGRAM="scim -d"
Note: the above instruction is for Ubuntu Gnome desktop, for other desktop, see:
http://www.scim-im.org/wiki/documentation/installation_and_configuration/ubuntu_kubuntu
<I found the solution here: http://www.thanhsiang.org/faqing/node/50>
4/26/2007
NS-2.27+LEACH on Ubuntu 7.04 installation guide
Step 1: Download NS-2.27 allinone package, extract it
tar zxvf ns-allinone-2.27.tar.gz
Step 2: You need to apply a patch to ns-2.27 to make it works with gcc4.1. You can get the patch here
To apply the patch, type patch -p0 <ns-2.27-gcc410.patch in bash
Step 3 : Download LEACH code, extract it under ~ns-2.27/ directory.
tar zxvf mit.tar.gz
Step 4: Add the following line in ~ns2.27/mac/wireless-phy.cc, line 59, that is, after the line #define max(a,b) (((a)<(b))?(b):(a))
#define min(a,b) (((a)>(b))?(b):(a))
Step 5 : Install the LEACH code by following instructions below:
Step 5.1: Edit the Makefile as follows:
Add DMIT_uAMPS to the DEFINE list
Add -I./mit/rca -I./mit/uAMPS to the INCLUDE list
Add the following just prior to the line gaf/gaf.o \
mit/rca/energy.o mit/rca/rcagent.o \
mit/rca/rca-ll.o mit/rca/resource.o \
mac/mac-sensor-timers.o mac/mac-sensor.o mit/uAMPS/bsagent.o \
Step 5.2 : Add the environmental variables to /etc/profile
export RCA_LIBRARY=$NS_HOME/ns-2.27/mit/rca
export uAMPS_LIBRARY=$NS_HOME/ns-2.27/mit/uAMPS
Step 5.3: source /etc/profile and clean up previous build
source /etc/profile
make clean
Step 5.4: Rebuild ns2, redirecting output
nohup make 2>error.log >make.log &
Step 6: Test default wireless demo and LEACH
./test
Step 7: Validate the full installation, redirect the output
nohup ./validate-full 2> validate.error >validate.log &
DONE, Enjoy!
tar zxvf ns-allinone-2.27.tar.gz
Step 2: You need to apply a patch to ns-2.27 to make it works with gcc4.1. You can get the patch here
To apply the patch, type patch -p0 <ns-2.27-gcc410.patch in bash
Step 3 : Download LEACH code, extract it under ~ns-2.27/ directory.
tar zxvf mit.tar.gz
Step 4: Add the following line in ~ns2.27/mac/wireless-phy.cc, line 59, that is, after the line #define max(a,b) (((a)<(b))?(b):(a))
#define min(a,b) (((a)>(b))?(b):(a))
Step 5 : Install the LEACH code by following instructions below:
Step 5.1: Edit the Makefile as follows:
Add DMIT_uAMPS to the DEFINE list
Add -I./mit/rca -I./mit/uAMPS to the INCLUDE list
Add the following just prior to the line gaf/gaf.o \
mit/rca/energy.o mit/rca/rcagent.o \
mit/rca/rca-ll.o mit/rca/resource.o \
mac/mac-sensor-timers.o mac/mac-sensor.o mit/uAMPS/bsagent.o \
Step 5.2 : Add the environmental variables to /etc/profile
export RCA_LIBRARY=$NS_HOME/ns-2.27/mit/rca
export uAMPS_LIBRARY=$NS_HOME/ns-2.27/mit/uAMPS
Step 5.3: source /etc/profile and clean up previous build
source /etc/profile
make clean
Step 5.4: Rebuild ns2, redirecting output
nohup make 2>error.log >make.log &
Step 6: Test default wireless demo and LEACH
./test
Step 7: Validate the full installation, redirect the output
nohup ./validate-full 2> validate.error >validate.log &
DONE, Enjoy!
3/03/2007
Adding new partition in /etc/fstab with UUID
If you want to add a new partition in /etc/fstab under file system you no longer have /dev/xxx but an UUID (Unique unit ID).
To find out the UUID of your partition just use the following command:
sudo vol_id -u
for example, if you want to find the UUID of /dev/sda6, using the command:
The rest is then as in the past.
I found the solution here: http://ralph.n3rds.net/index.php?/archives/175-Adding-a-new-partition-in-fstab-with-UUID.html
To find out the UUID of your partition just use the following command:
sudo vol_id -u
<device>for example, if you want to find the UUID of /dev/sda6, using the command:
sudo vol_id -u /dev/sda6The rest is then as in the past.
I found the solution here: http://ralph.n3rds.net/index.php?/archives/175-Adding-a-new-partition-in-fstab-with-UUID.html
订阅:
博文 (Atom)
