Topics
Top Posts
Blog Stats
- 225,721 hits
Anything about Ubuntu, Centos, openSuSe and Fedora
Previously, Ubuntu tweak, myUnity and other Unity tweaking tools can provide configuration to modify current whitelist for Unity’s system tray or systray. But with recent upgrade (as usual), it was suddenly gone and nowhere to be found.
But at last, there’s a workaround (again..pfff) for this, here’s how:
1. Add this PPA and update+upgrade your Ubuntu 13.04 system.
sudo add-apt-repository ppa:timekiller/unity-systrayfix sudo apt-get update sudo apt-get upgrade
2. Afterwards, restart Unity, press ALT+F2 (run application), then type in unity, press ENTER key.
3. You must have dconf-editor to modify configuration, if not yet installed, do this:
sudo apt-get install dconf-tools
4. Open dconf-editor and navigate to com > canonical > unity > panel and the “systray-whitelist” should be displayed there so you can enable some apps to be able to use the systray. From the default setting, change it to ‘all’ (yes with the single quote “‘“character)
5. Then configure Pidgin, from Tools > Preferences. Set the Show System Tray Icon to “always“
6. Done.
Still using Ubuntu 12.04, and one of the problem we’ve encountered is it requires normal user to authenticated the designated admin user’s password when connecting to wireless network, which in my opinion doesn’t make sense. How can a normal user access internet over wifi if they aren’t allowed to do so?
Check what google search has to offer, I finally found a fix for this. Adding policykit rules for wifi users.
Create or modify a file etc/polkit-1/localauthority/50-local.d/52-wifi-management.pkla
$> sudo gedit etc/polkit-1/localauthority/50-local.d/52-wifi-management.pkla
and then enter the following
[Wifi management] Identity=unix-group:netdev Action=org.freedesktop.NetworkManager.* ResultAny=no ResultInactive=no ResultActive=yes
and save on exit.
Add the user to the netdev group
$> sudo usermod -a -G ftp jerry
Restart the system and standard user should now be able to connect to wifi..
Done.
I stumble upon this link which is quite useful in converting/ripping VCD to MPEG (or you can also have it as XVID)
http://www.binarytides.com/ubuntu-convert-vcd-dat-file-to-mpeg/
For most corporate network, social network are not allowed, and since facebook is one of the most popular social network site, it continuously add new IP address frequently. So blocking IP known to you alone is not enough. Here’s a better way to block IP owned by facebook (Only if you wish to block it in your network)
#> /usr/bin/whois -h whois.radb.net '!gAS32934' | head -n -1 | tail -n -1 | /usr/bin/xargs --max-args=1 | /usr/bin/xargs -I {} --max-args=1 /sbin/iptables -t mangle -I POSTROUTING -d {} -j DROP
There are few other guide in getting your current WAN IP on Linux console or fetching it within a shell script. But this one works for me.
1. To get the current WAN IP:
$> echo "$(wget http://automation.whatismyip.com/n09230945.asp -O - -o /dev/null)"
2. For LAN IP address/es:
$> ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'
I don’t know but I encountered this problem using Ubuntu 12.04 as KVM host, even though I already added the guest VM in the /etc/libvirt/qemu/autostart as symlink but during the host boot sequence it is still not automatically started (the guest machine).
Here’s a quickfix that works for me:
1. Modify the /etc/init/libvirt-bin.conf and look for the line with:
start on runlevel [2345]
2. Replace that with:
start on (runlevel [2345] and net-device-up IFACE=br0)
3. Done.
Please note that use your current bridge network device, in my example it is br0.
Wish to hide the nm-applet when decide to use conventional ifup instead of network-manager? Here’s how:
1. Install Gconf-Editor:
$> sudo apt-get install gconf-editor
2. Run gconf-editor and go to: Apps –> nm-applet
3. Uncheck the setting called show-applet
4. Done.
On the current version of Ubuntu (12.04), you might notice that the current /etc/resolv.conf file always record a nameserver 127.0.0.1 which then resolv dns via dnsmasq, but most of the time after test few things, I found it more problematic. It always disregard my local DNS server, and goes directly to the DNS of my ISP.
If you’re having the same problem like mine, here’s a quickfix:
1. Modify the configuration /etc/NetworkManager/NetworkManager.conf
$> sudo gedit /etc/NetworkManager/NetworkManager.conf
2. Comment the line that contain “dns=dnsmasq“
[main] ... #dns-masq
3. Then restart the network-manager
$> sudo service network-manager restart
4. Done
Here’s a good article from http://blog.allanglesit.com/, I myself tried it my in test server and it’s working great, though I’m still new with OpenVSwitch.
The article has been released for Ubuntu 12.04 system. I also found out that the KVM version currently available in Ubuntu 12.04 has better performance compare to 10.04, which I think is a good sign when planning to deploy KVM host for your VMs.
The actual URL: http://blog.allanglesit.com/2012/03/linux-kvm-ubuntu-12-04-with-openvswitch/
Done.