simple examples of how to

Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Monday, November 7, 2011

[Eclipse] If you encounter this error message

Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 15.0.0.v201110251216-213216 (com.android.ide.eclipse.adt.feature.group 15.0.0.v201110251216-213216) Missing requirement: Android Development Tools 15.0.0.v201110251216-213216 (com.android.ide.eclipse.adt.feature.group 15.0.0.v201110251216-213216) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found

While installing android adt plugin, you probably missing a library with ssl.
So just try this.

$ sudo apt-get install openssl libssl-dev

[Ubuntu] How to setup network interface

You can modify the interface script which is /etc/network/interfaces

In case you want to set static IP, example

$ cat /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 203.237.53.112
netmask 255.255.255.0
gateway 203.237.53.254


in command line, it has the same effect of
$ sudo ifconfig eth0 203.237.53.112/24
$ sudo route add default gw 203.237.53.254

In case you want to set DHCP

$ cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp


in command line, it has the same effect as follows
$ sudo dhclient eth0


Thursday, October 20, 2011

[Linux Kernel] What is the main function in Linux kernel ?

In x86 architecture, Linux booting starts with reading MBR (master boot record) into main memory.
The instructions in MBR look up an active partition table and executes a boot loader such as GRUB, LILO, etc.
After users select one of OS, the boot loader loads the selected OS and calls start_kernel() function in "init/main.c" in the Linux kernel source tree.
The terms after the OS name in GRUB (such as ro root=/dev/hda1) are passed to start_kernel() function similar to argc and argv[] in c programs.
That is argv_init variable.