Eclipse Error: selection does not contain main method

This Eclipse problem in Linux environment has been solved. The original Eclipse I installed does not have JDK, and I installed it through Eclipse plugin management. So, the previous project folder I created won’t work unless recreate a “java project.” In java project folder, the layout is created by eclipse automatically. And then, everything is just working flawlessly!

How to Fix Mozilla Firefox color compatibility with GUI theme interference

Almost all of gnome dark themes influence the Mozilla Firefox’s accessibility, such as black menu bar with dark fonts, white search field with white font. It can be fix by a good web design approach, but not many web designers can be so considerate. Besides, it’s always better to fix problem permanently.

To customize the firefox for accessibility purpose, u would have to create a css file “userChrome.css” in your home folder “~/.mozilla/firefox/*.default/chrome/”

In the folder, there are 2 sample userContent.css files for reference. My own userChrome.css is like:

menubar, menubutton, menulist, menu, menuitem {
font-family: Matrix !important;
font-size: 3mm !important;
color: #666666!important;
}
menupopup > *{
color: #000000 !important;
}

At least it works for me.

How to installing Solaris 10 using VMware


I just found a book - “Unix in a Nutshell.” I will write a review after I read it.
It requires Solaris 10 to be installed.
Solaris is another operating system that probably has a better support for Sun OS/2 and JAVA.
As we all know, JAVA is a very slow programming language relative to C or Fortran. However, it’s simplicity and garbage collection features make it a great tool for programmers.
OSU’s web server is using Solaris 5 OS. That’s another reason for me to know more about Solaris.
Alright, here is an tutorial for install Solaris.
My installation process is little different from the tutorial…Somehow I enabled the GUI installation, but it also works… ^ ^

My Thinkpad T61p

Thinkpad T61p 算是目前最新的 Thinkpad 系列, 不过不再是 IBM 了, 而是 Lenovo.
配置如下:

Intel® Core™ 2 Duo processor T8300 (2.4GHz 800MHz 3MBL2)
Genuine Windows XP Professional
(我用Linux, Lenovo不提供XP的光盘,很不爽。)
15.4 WSXGA+ TFT
Display Panel
NVIDIA Quadro FX 570M (256MB Open GL)
4 GB PC2-5300 DDR2 SDRAM 667MHz SODIMM Memory (2 DIMM)
UltraNav (TrackPoint and TouchPad)
100GB Hard Disk Drive, 7200rpm
CD-RW/DVD-ROM Combo 24X/24X/24X/8X Max, Ultrabay Slim
PC Card Slot & Express Card Slot
Intel Wireless WiFI Link 4965AGN
9 cell Li-Ion Battery (不知道怎么回事他们不再出售 9 cell 的了,现在只有 6 cell)

Compiz Fusion


Compiz Fusion Official Website
Compiz Fusion Wiki
Guide to install extra plugins

It works flawlessly. If there is no Emerald Theme Manager come with the package, DON’T MISS OUT! Search google and get one!
Here are some my desktop screenshots with Compiz-Fusion & Emerald theme installed:

Conky

Conky is a desktop system monitor application. Eh… I installed it, and it works great… however, I found out that I don’t actually need it… Whatever, for the sake of its existence, here is the tutorial from CraigWatson.

Installing & Configuring Conky

To get conky up and running, just type into a terminal:

Code:
sudo yum install conky

Then create your .conkyrc file and paste in the contents (you can either use mine as a starting point or some of these:

Code:
gedit ~/.conkyrc

After that, you need to create a script to load Conky after any running window managers (e.g. Compiz) so that it integrates nicely:

Code:
nano ~/.conkyscript.sh

Either copy/paste or type this:

Code:
#!/bin/bash sleep 10 && conky;

Then make it executable and add it to your GNOME session:

Code:
chmod a+x ~/.conkyscript.sh

System –> Preferences –> Personal –> Sessions –> Add
Name: Conky
Command: ~/.conkyscript.sh
(you may need to put the full path to the script - e.g. /home/user/.conkyscript.sh)

This is a sample .conkyrc file which I modified base on CraigWatson’s original file:

Code:
# .conkyrc - Edited from various examples across the ‘net # Used by Craig Watson [ www.cwatson.org ] on Fedora 8 # — Window Layout & Options — # own_window yes own_window_colour brown own_window_transparent yes own_window_type override own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes use_spacer left use_xft yes alignment top_right gap_x 10 gap_y 40 # — Colours, Sizes, Fonts & Margins — # update_interval 2.0 maximum_width 360 stippled_borders 3 border_margin 9 border_width 10 default_color grey # — Text — # draw_outline no draw_borders no font Monospace:size=8:weight=bold uppercase no draw_shades yes TEXT ${color #9900FF}SYSTEM INFO ${hr 2}$color # ${color white}${time %A},${time %e} ${time %B} ${time %G} ${alignr} ${time %H:%M:%S} ${color white}Machine$color $nodename ${alignr}${color white}Uptime$color $uptime ${color white}Kernel$color $kernel ${alignr}${color white}Arch$color $machine ${color #9900FF}CPU ${hr 2}$color ${font Arial:bold:size=8}${color #666666}${execi 99999 cat /proc/cpuinfo | grep “model name” -m1 | cut -d”:” -f2 | cut -d” ” -f2- | sed ’s#Processor ##’}$font$color ${color white}Freq:$color ${execi 20 sensors |grep “Core0 Temp” | cut -d” ” -f4}$font$color$alignr${freq_g 2}GHz ${color #c0ff3e}${execi 20 sensors |grep “Core1 Temp” | cut -d” ” -f4} $color${alignr}${color white}Processes:$color $running_processes/ $processes ${cpugraph cpu1 25,120 000000 ff6600 } ${cpugraph cpu2 25,120 000000 cc0033} ${color #ff6600}${cpubar cpu1 3,120} ${color #cc0033}${cpubar cpu2 3,120}$color ${color #9900FF}TOP 5 PROCESSES ${hr 2}$color ${color #666666}NAME PID CPU MEM ${color #CC00CC}1. ${top name 1}${top pid 1} ${top cpu 1} ${top mem 1}$color 2. ${top name 2}${top pid 2} ${top cpu 2} ${top mem 2} 3. ${top name 3}${top pid 3} ${top cpu 3} ${top mem 3} 4. ${top name 4}${top pid 4} ${top cpu 4} ${top mem 4} 5. ${top name 5}${top pid 5} ${top cpu 5} ${top mem 5} ${color #9900FF}MEMORY & SWAP ${hr 2}$color ${color white}RAM$color $memperc% ${membar 6}$color ${color white}Swap$color $swapperc% ${swapbar 6}$color ${color #9900FF}DRIVES - FREE SPACE ${hr 2}$color ${color #666666}$color${fs_free_perc /}% $alignr ${fs_free /}/ ${fs_size /} ${fs_bar 3 /}$color ${color #9900FF}ETHERNET (${addr eth0}) ${hr 2}$color ${color #666666}Down:$color ${downspeed wlan0}KB/s ${alignr} ${color #666666}Up:$color ${upspeed wlan0}KB/s ${downspeedgraph wlan0 25,120 000000 00ff00} ${alignr}${upspeedgraph wlan0 25,120 000000 ff0000}$color

This is my screenshot for conky:

VMware Server

VMware Server is an application that let you create many virtual machines on your own machine. It is highly effective and extremely useful for server and academic purpose. I use it for messing around the operating systems which is too dangerous to test out on my computer.

Here is a link to the tutorial of “How To Install VMware Server.”
The usage of this application is quite straight forward.

VLC Player

With VLC Player and Realplayer installed on your linux, pretty much any format of video/audio can be played on your computer.

Install VLC Player on Fedora (Tutorial)

Install VLC Skin by following Jonny’s guide:
1. Go to VLC skin website and download the skin your like: http://www.videolan.org/vlc/skins.php
2. Copy your new skin/skins to your /usr/share/vlc/skins2/ directory by doing following:
- login use “su” and type password
- type (WMP11.vlt is the skin’s name):
cp /home/yourname/WMP11.vlt /usr/share/vlc/skins2/
3. The next part is easy once you know what you are doing. Click on the menu Settings>Preferences>Interface>Main Interfaces
Now in the ‘Interface module’ box scroll down and click ‘Skinnable Interface’. Hit the save button and restart VLC.
4. A new interface will appear. Now right click on the bottom right hand corner of the new interface/skin and a menu will appear. Scroll down and choose ’select skin’ and click on your choice of skin.
5. When you have decided on a new default skin, go to >Preferences>Interface>Main Interfaces>Skins
and tick the advance options box, and the skin you are currently using will now be listed. In my case
/usr/share/vlc/skins2/WMP11.vlt is the skin i’m using. Hit the save button and restart VLC. Note there is an option to reset your default skin if you have any problems. That’s it!

Fedora 9 Test Result

Fedora 9 just released it’s official version. The improvements are KDE 4, GNOME 2.2, Firefox 3, flexible installation partitioner, and some better interface & security features. I have tested it myself, and here are some problem I have encountered:

1. NVIDIA driver couldn’t install or find a place to install its required kernel.

2. Freeze… The screen freezes after establishing a connection to internet.

3. Updating software no respond - GUI of package upgrading software literally useless… but “yum update” works.

I tried both update from F8 to F9, and a fresh installation. Although both methods worked, none of them gave me a satisfied result. So, I reinstalled F8 and probably will stick to it until the problems are fixed in Fedora 9.

Actually, it’s probably a good idea that to upgrade os from F8 to F9 when they release F10…

Sun VirtualBox

I have used both VirtualBox and VMware Player. Well, VirtualBox definitely faster and more stable than vmware so far… The only problem right not is VirtualBox does not support FreeBSD and its related operating systems (Maybe there is a solution, but I just can’t find it…). Anyway, VirtualBox is GPL, so it’s great.

You can obtain VirtualBox here: http://www.virtualbox.org/wiki/Downloads

Public Folder If you want to create a public folder between host and guest machine, you have to install Guest Additions on your guest machine use VBoxGuestAdditions.iso. (location folder in F8: /usr/share/virtualbox/VBoxGuestAdditions.iso) The guide is quiet well documented, I’m not gonna talk about how to establish a network with public folder.

USB Device Another issue is USB device in guest machine doesn’t work. The specific solution for this problem in F8 can be found in this article “USB Fix for VirtualBox on Fedora 8 Host.” The simplified procedure:

  1. create a group named “usb” and add yourself to it.
  2. check /etc/group, there should be a line “usb:x:503:username” (503 is group number). If not, add one line as such. Group number is unique for each group.
  3. Add the following line to /etc/fstab:

none /sys/bus/usb/drivers usbfs devgid=503,devmode=664 0 0

503 is the group number.

I currently have Windows XP pro and Solaris run on my host machine. They are great!

  • Calendar

    • November 2008
      M T W T F S S
      « Jul    
       12
      3456789
      10111213141516
      17181920212223
      24252627282930
  • Search