Ubuntu technical problems and solutions reference, a modern cookbook.
Monthly Archives: December 2011
December 12, 2011Posted by on
Since Unity uses the Wall plugin, some may want the good old cube with it’s amazing desktop rotation capability back. Here are a few steps on how to achieve this.
1. Install Compiz Config Settings Manager
sudo apt-get install compizconfig-settings-manager
2. Open Compiz Config Settings Manager and go to PREFERENCES
3. Select Plugin List Tab
4. Disable Automatic Plugin Sorting and accept the warning that will appear after trying to disable it.
5. From the Disable Plugins List, Enable the following plugins: cube, rotate
6. From the Enable Plugins List, Disable the following plugins: wall
7. Go back from the Preferences to the Main Compiz Menu and select General Options
8. Go to Desktop Size tab and change the Horizontal and Vertical Virtual Size to 4
That’s it. No need to restart or log-out.
Thanks to Luis Alvarado for his answer/solution
December 2, 2011Posted by on
I have already written in the past a post regarding how to create a custom unity launcher.
Yesterday, I’ve come across an issue. I’ve downloaded Pentaho’s Data Integration tool Kettle, and the executable is a shell script. Meaning that it needs to be called from a terminal in order to run. Now, even though I’ve added the shell script into a Unity Launcher, the software didn’t start after pressing the icon in the dash.
So, I figured out that I need to create another shell script which calls the gnome-terminal and passes the call to the kettle shell script.
In order to achieve this, I used expect (install)
So, I’ve created a script called call_tool.sh:
#!/usr/bin/expect -f # Get a Bash shell spawn -noecho bash # Wait for a prompt expect "$ " # Send the dir to kettle and then send the command for spoon. send "cd /path to script\n" send "./spoon.sh\n" # Hand over control to the user interact
The \n character is needed for the enter.
After that I’ve made the script executable:
sudo chmod +x call_tool.sh
Then pointed my Unity launcher to call_tool.sh, and that’s it. It works.