English HowTos
When U install VirtualBox and need to connect to your Guest box with an IP in the same range that you using not the range that VirtuaBox (Which using DHCP and you Host box acts like the DHCP Server for the guest boxes different range and the actual IP of the guest box is the same of your host box ip).
If you have the same problem so this is the how to you looking for :D.
Let's Start First you have to install VirtualBox :p if u did not install it it's simple.
Now let's go the real work :o :)
Step 1
You need to install "bridge tools" and "User-mode Linux (utility programs)"
sudo apt-get install uml-utilities bridge-utils
Step 2
Create a TAP Interface
and username is your username (eg. in my case it's bahaa)
so i should type
Step 3
Create the Bridge
as br0 is the bridge interface name (you can name it as u like)
Step 4
You need to set your network interface in promisc mode "this means it's shared with all interfaces connected to it" in our case will be the bridge interface br0
Step 5
Now we will link our real interface eth0 to the bridge interface br0
Step 6
Assign an IP to the br0. If you are using DHCP
Or, if you assign an IP yourself
Step 7
Link TAP to bridge br0
Step 8
Activate TAP interface
Step 9
Add the default gateway to your bridge interface
Where 192.168.0.1 is your gateway ip (eg. router ip in most cases).
Step 10
Change the permission of /dev/net/tun
Step 11
At the VirtualBox startup panel, choose “Host Interface” and add “tap1″ to “Interface Name”.
Step 12
At the guest (after boot up the guest OS), change the IP of the guest OS to the same subnet of your host.
this is example for
/etc/network/interfaces
iface eth0 inet static
address 192.168.0.101
netmask 255.255.255.0
gateway 192.168.0.1
network 192.168.0.0
dns-nameservers 208.67.222.222 208.67.220.220
Step 13
Now, you can connect to the guest OS by its IP in VirtualBox.
When you reboot your guest OS, you need to repeat the Step 2 to 10 to Again. Or, you can create a executable script to make your job easy.
Have fun :D
BTW I'm using this way and it works with me in Ubuntu 9.04.
Hi guys,
Today We will learn how to mount iso images in Linux via the loop device...
Steps to mount:
1) You must log in as a root user, if not root user then switch to root user using following command:
$ su -
2) Create the directory aka mount point:
mkdir -p /mnt/disk
3) Use mount command as follows (assumes that your ISO file name is disk1.iso):
mount -o loop disk1.iso /mnt/disk
4) Change directory to list it:
cd /mnt/disk ls -l
Steps to unmount:
Just on step :p
umount /mnt/disk
TO get a light system monitor on your desktop like in Debian Follow this steps.
1. Install Conky
sudo apt-get install conky
2. Configure Conky
Now you have some options.
cd
nano .conkyrc
copy this configuration and paste it in the file
For Desktops:
background yes
font Zekton:size=7
xftfont Zekton:size=7
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 220 5
maximum_width 220
default_color d7d7d7
default_shade_color black
default_outline_color black
alignment top_right
gap_x 2
gap_y 20
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer no
TEXT
${font Zekton:style=Bold:pixelsize=42}${alignc}${time %H:%M:%S}${font Zekton:size=7}
SYSTEM ${hr 1 }
Hostname: $alignr$nodename
Kernel: $alignr$kernel
Uptime: $alignr$uptime
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg
CPU ${alignc} ${freq}MHz / ${acpitemp}C ${alignr}(${cpu cpu1}%)
${cpubar 4 cpu1}
${cpugraph}
RAM ${alignr}$mem / $memmax ($memperc%)
${membar 4}
SWAP ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}
Highest CPU $alignr CPU% MEM%
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}
Highest MEM $alignr CPU% MEM%
${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}
FILESYSTEM ${hr 1}${color}
Root: ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
Extern: ${alignr}${fs_free /media/EXTERN} / ${fs_size /media/EXTERN}
${fs_bar 4 /media/EXTERN}
disk: ${alignr}${fs_free /media/disk} / ${fs_size /media/disk}
${fs_bar 4 /media/disk}
disk-1: ${alignr}${fs_free /media/disk-1} / ${fs_size /media/disk-1}
${fs_bar 4 /media/disk-1}
NETWORK ${hr 1}${color}
Down ${downspeed eth1} k/s ${alignr}Up ${upspeed eth1} k/s
${downspeedgraph eth1 25,107} ${alignr}${upspeedgraph eth1 25,107}
Total ${totaldown eth1} ${alignr}Total ${totalup eth1}
${color}Inbound Connection ${alignr} Local Service/Port$color
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
${color}Outbound Connection ${alignr} Remote Service/Port$color
${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
For Laptops:
background yes
font Zekton:size=7
xftfont Zekton:size=7
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 220 5
maximum_width 220
default_color d7d7d7
default_shade_color black
default_outline_color black
alignment top_right
gap_x 10
gap_y 40
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer no
TEXT
$nodename - $sysname $machine
$kernel
uptime $uptime
freq ${freq}MHz
load $loadavg
${time %a %b %d %Y} ${alignr}
cpu0 ${cpu cpu0}% ${cpubar cpu0}
${cpugraph cpu0}
mem $mem / $memmax $alignr $memperc%
$membar
swap $swap / $swapmax $alignr $swapperc%
$swapbar
/ ${fs_used /} / ${fs_size /}$alignr${fs_free_perc /}%
${fs_bar /}
diskIO ${diskio}${diskiograph}
ip ${execi 600 ruby -e "require 'net/http';Net::HTTP.get_print URI.parse('http://briancarper.net/cgi-bin/ip.cgi')"}
local ip ${addr eth0}
eth0 down ${downspeed eth0} k/s
${downspeedgraph eth0}
eth0 up ${upspeed eth0} k/s
${upspeedgraph eth0}
total up ${totalup eth0}${alignr}total down ${totaldown ethO}
eth1 down ${downspeed eth1} k/s
${downspeedgraph eth1}
eth1 up ${upspeed eth1} k/s
${upspeedgraph eth1}
total up ${totalup eth1}${alignr}total down ${totaldown eth1}
${color #888888}Port(s)${alignr}#Conns
$color Inbnd: ${tcp_portmon 1 32767 count} Outbnd: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
${color #999999}Inbnd Conn ${alignr} Loc Serv/Prt$color
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
${color #999999}Outbound Connection ${alignr} Remote Service/Port$color
${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
${color #999999}Top Processes:
${color #999999}Name PID CPU% MEM%
$color ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
$color ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
$color ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #999999}Mem usage
$color ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
$color ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
$color ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
3. Start Conky
To start conky, just run conky in a terminal. But if you want your conky to be displayed in the right upper corner of your screen.
conky -a top_right
you'll find more options in man conky
4. Make Conky start on start up
In your upper panel go to system > preferences > sessions. Select 'new', name it 'conky' and insert the command with the options you like. For me it was the one above. Press ok, enable it and your done.
That's all!
Hi Guys,
The objective is to have a gnome terminal running as the desktop background, right above the actual background image.
It should look something like this:
or
Ok, lets get started...
1) Download devilspie
sudo apt-get install devilspie
2) Create a configuration file
mkdir ~/.devilspie nano ~/.devilspie/DesktopConsole.ds
3) Paste the following configuration (press Ctrl^X to save and exit):
(if
(matches (window_name) "DesktopConsole")
(begin
(set_workspace 4)
(below)
(undecorate)
(skip_pager)
(skip_tasklist)
(wintype "utility")
(geometry "+50+50")
(geometry "924x668")
)
)
Notes:
- i use workspace 4 but you can use whatever you like.
- you should at least adjust the geometry lines to match your screen.
4) Create a new gnome-terminal profile named "DesktopConsole"
- in the "General" tab, untick "show menubar by default..."
- in the "Scrolling" tab, select "Scrollbar is" -> Disabled.
- in the "Effects" tab, set "Transparent background" and shade to "None" (or to whatever you prefer)
5) Add devilspie and gnome-terminal to the Startup Programs in your session:
in System->preferences->sessions, "Startup Programs" tab, add the 2 programs:
devilspie gnome-terminal --window-with-profile=DesktopConsole
6) Logout, Login
Note:
check to see that devilspie is running *before* the gnome-terminal command.
Hi guys,
Today I'll explain how to use alaa's jquery_bidi in mediawiki
First: you have to get jquery and jquery_bidi
Second: you will put the js files on the style directory
Third and Last: Edit the style itself.
First: get the javascript files
dont forget to rename the jquery-1.2.6.js --> jquery.js
and from jquery_bidi get only this file --> jquery.bidi.js
Second: Put the files on the style directory
the default style directory is
put the two files there
Third: edit the style
edit this file
add the following lines before body in the head of the html
<script type="text/javascript" src="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/jquery.js"></script>
<script type="text/javascript" src="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/jquery.bidi.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("address, blockcode, blockquote, h1, h2, h3, h4, h5, h6, p, pre, li, dt, dd, ul, ol, dl").filter(":not([dir])").bidi();
});
</script>
that's all
have a nice wiki :)