I recently install the ubuntu 11.10. I spent some time to get used to the unity interface.
But the unity shell is lack of widgets and therefore I decided to install the plasma-desktop to my ubuntu. :P
1. install the package by the following command:
apt-get install plasma-desktop plasma-scriptengine-python
2. create launcher to start the plasma desktop:
type gnome-desktop-item-edit ~/Desktop --create-new
and it will popup a dialog box.
select "application" in the type field,
filled "plasma-desktop" or whatever u like in the name field,
filled "plasma-desktop" in the command field,
and press ok.
P.S u can also create a launcher to stop the plasma by filled the command field with killall plasma-desktop.
3. Let plasma looks better in unity
a. System Settings > Application Appearance > Widget Style > GTK+
b. System Settings > Workspace Appearance > Desktop theme > Get new theme
c. Search for ‘Ambiance’
d. install it and use it.
e. remove the bottom panel if u don't like it.
4. Use the nautilus as default folder manager
control center(system setting) > file associations > inode > directory [ then add: "nautilus --no-desktop" ]
or you can just install dolphin if u don't like the nautilus.
That's it enjoy!!
reference website:
http://www.omgubuntu.co.uk/2011/05/how-to-run-kde-plasma-widgets-in-ubuntu-unity/
https://bbs.archlinux.org/viewtopic.php?id=48046
This blog is all about computer science, especially the information security. Leave a comment to let me know how to let this blogger get better
Article
Nov 28, 2011
Nov 12, 2011
setting linux as a gateway
Introduction:
Since my school project need to set up an ethernet environment. I need to create an internal network under virtualbox. The first step is to setup the gateway inside a virtualbox. After google for a while, I finally setting up my linux as a gateway.
Environment :
linux distribution: alpine linux 2.3
kernel version: 3.0
virtualbox network adapter setting:
1. host-only network=> eth0 for internal network.
2. bridged network => eth1 for internet.
the connection state is like the following figure:
<figure>
<<internet>>----------<<alpine linux>>------------<<internal>>
eth1 pppoe eth0 NAT
The reason why I use alpine linux instead of other distribution is that it is tiny but contains the utilities that to set up my environment.
alpine linux download link:
http://alpinelinux.org/
alpine linux installation guide:
http://wiki.alpinelinux.org/wiki/Installation
Content:
I'll write down all the steps that I configure the internet.
include:
1. package requirement
2. configure the network interface
3. setting up the iptables
4. enable packet forwarding
1.package requirement:
rp-pppoe => pppoe client side program
iptables => firewall
ppp => ppp deamon
that's all.
2.configure the network interface
2.1. the internal network:
configure the /etc/network/interface
add the following line to the file.
auto eth0 iface eth0 inet static address 192.168.56.254 netmask 255.255.255.0 network 192.168.56.0 broadcast 192.168.6.255the address, netmask, network and broadcast can be changed according to you network setting.
2.2.pppoe configuration:
type
pppoe-setting => to start pppoe configuration.
After setting up type
pppoe-connect => connect to the internet via pppoe.
You can check the result by typing:
ifconfig | less
3.setting up the iptables:
type the following command to set the iptables rules:
iptables -A FORWARD -o eth1 -i eth0 -s 192.168.56.0/24 -m conntrack --ctstate NEW -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE
4.enable packet forwarding:
type
echo 1 > /proc/sys/net/ipv4/ip_forward
type
cat /proc/sys/net/ipv4/ip_forward => check the result.
reference website:
http://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management#Packages_and_Repositories
http://www.linuxfromscratch.org/blfs/view/6.2.0/connect/other.html
http://tldp.org/HOWTO/DSL-HOWTO/configure.html
http://www.brennan.id.au/05-Broadband_Connectivity.html
https://help.ubuntu.com/community/Internet/ConnectionSharing
Subscribe to:
Posts (Atom)
Labels
- android (5)
- assembly language (9)
- internet (1)
- linux (5)
- MicroMike (13)
- OS (10)
- recent news (1)
- shell code (6)
- Slackware (2)
- thoughts (1)
- ubuntu (6)
- wargame (1)