Thursday, August 23, 2012

Linux General questions.

 

1. To which operating system is GNU/Linux compatible?

a. Windows

b. Unix

c. it\'s a system on it\'s own

d. don\'t know

 

2. What is the origin of GNU/Linux?

a. 1984 by Richard Stallman

b. 1987 by Andrew Tannenbaum

c. 1991 by Linus Torvalds

d. don\'t know

 

3. What has Linus Torvalds developed?

a. he developed the whole system

b. he developed the kernel of the system

c. he is only the coordinator

d. don\'t know

 

4. What is the mascott of Linux?

a. a penguin

b. a gnu

c. a window

d. don\'t know

 

5. On what kind of mashines is GNU/Linux running?

a. on mainframes

b. on PCs

c. on a lot of different machines

d. don\'t know

 

6. Does the system have a graphical user environments?

a. No, there is only the text-console

b. yes, the environment is called KDE

c. yes, there are a lot of environments

d. don\'t know

 

7. In which programming language is most of GNU/Linux written?

a. Pascal

b. C

c. C++

d. C#

e. LISP

f. don\'t know

 

8. Which of these programming languages do not exist for GNU/Linux?

a. Fortran, Lisp, Pascal, Modula-2, ADA

b. Java, JavaScript

c. Visual Basic, Visual C, Visual Java

d. don\'t know

 

9. Which kernel was created in the GNU project?

a. BSD

b. HURD

c. Linux

d. don\'t know

 

10. The Linux kernel was invented by

a. Linus Pauling

b. Linus Torvalds

c. Linus Thorwalds

d. Linus Van Pelt

 

11. Which of the following is not a Linux distro?

a. Debian

b. Yellow Devil

c. Yellow Dog

d. Devil-Linux

 

12. What is a Linux ISO?

a. An Independent System Organizer for compiling Linux apps

b. A particular isolated section of Linux code

c. A downloadable file containing a CD-ROM disc image of Linux

d. An Incredibly Stupid Operator of Linux

 

13. What animal represents Linux?

a. Bob the Mandrake

b. Tux the Penguin

c. George the Wombat

d. Bill the evil bat of greed

 

14. What is GNU/Linux?

a. The official name of the complete Linux OS according to Richard Stallman

b. A combination of a free software kernel with Linux apps

c. A fancy way of identifying new distros

d. A distro of Linux meant for wildebeests

 

15. Which of the following is not a Linux GUI?

a. Xfree86

b. KDE

c. Motif

d. Gnome

 

Linux Firefox X11: Turn On 3D View Button

Mozilla Firefox version 11.x+ has support for 3D view. It is a WebGL based website visualization tool that highlights page structure. You can see relationship between your code and the page output by stacking elements as they are nested in the DOM and lets you see elements that are hidden or off the page. You can zoom in and out, rotate and pan the view to see the page from any angle that is helpful to you. In this blog post I will explain how to enable 3D view on X11. Please note that the 3D view is not for your daily browsing needs. It is useful for finding out bugs such as nesting issues or even XSS vulnerabilities. Personally, I use 3D view as a tool to understand divs, spans, and other elements on the page.

Requirements

You need to 3d accelerator graphics card such as NVIDIA, ATI/AMD and Intel cards with WebGL support - a JavaScript API for rendering interactive 3D graphics and 2D graphics. However, not all cards are supported.

How do I enable 3D view under X11?

You need to turn on inspector.
Right-click page > Select inspect element (Q)

Fig.01: Turning on the 3D view

You will see bar at the bottom with a "3D View" button as follows:

Fig.02: 3D view button at the bottom

How do I rotate and view pages in 3D?

  1. You can use mouse wheel to zoom in/out.
  2. Mouse button to select element.
  3. Hold mouse button move left / right / up / down.

Keyboard functions

  1. Zoom in/out : + / -
  2. Rotate left/right : a / d
  3. Rotate up/down : w / s
  4. Pan left/right : /
  5. Pan up/down : /
  6. Reset zoom level : 0
  7. Focus on selected node : f
  8. Reset view : r
  9. Hide current node : x

Sample outputs:

Fig.03: 3D view in action (click to enlarge)

 

YUM ....Server side configuration:

YUM Configuration

Server side configuration:

Step 1:

Install createrepo.rpm from the DVD for creating repository.

#rpm -ivh createrepo.rpm (Install the dependencies first, if any [eg:deltarpm, python-deltarpm])

#rpm -ivh vsftpd.rpm (for FTP server)

 

Step 2:

Copy all rpms form the DVD and past over the hard disk share them up in NFS.

#createrepo /path-to-rpms

eg:#createrepo /var/ftp/pub

It will take several minutes that depends upon the number of rpms that you have copied from the DVD specified and the configuration of yourmachine.

 

Step 3: 

#service vsftpd restart

Touch the following file with the contents specified.

#vim /etc/yum.repos.d/somename.repo

[base]

name=friendly name

baseurl=ftp://192.168.0.254/pub/  (Give the ipaddress of the YUM server) 

enabled=1

gpgcheck=0

 

Step 4: 

Use the yum server in the same machine because server is the first client of the same service most of the times the following command is used for install gcc compiler

#yum install gcc

 

Client side configuration:

Touch the following file with the contents specified.

#vim /etc/yum.repos.d/somename.repo

[base]

name=friendly name

baseurl=ftp://192.168.0.254/pub/  (Give the ipaddress of the YUM server) 

enabled=1

gpgcheck=0

 

#yum install gcc (just for an example)