Ads 468x60px

Showing posts with label Useful Ubuntu Links. Show all posts
Showing posts with label Useful Ubuntu Links. Show all posts

Wednesday, 18 November 2015

Ubuntu Tutorials: The Synaptic Package Manager

This tutorial is based on Ubuntu version 14.04 & 14.10, and even though this may work for you if you do not have one of those versions installed, it is not guaranteed. 

To read the article that goes along with this video you can click the link below, from there you can copy and paste the terminal commands if they are mentioned in the video above. 

The Synaptic Package Manager Article:

Type the following in your terminal:

sudo apt-get install synaptic

Sunday, 30 March 2014

Ubuntu: Unity Hints Tweaks and Tips

Ubuntu: Unity Hints Tweaks and Tips

Hey everyone I thought i should start putting more effort into this site so fortunately for all those who are regular visitors, I will now have regular weekly updates on our fav o/s. The bellow commands are compliments  of  wiki.indie-it . 

Autorun Media - Disable: How To

By default items such as optical media will autorun when placed in a drive, to disable this behaviour open 'dconf-editor' and locate the following key:
Tick the box for 'autorun-never'

DConf-Editor - Install: How To

The dconf-editor is an essential tool for configuring Ubuntu, however it does not come installed by default.

sudo apt-get install dconf-tools
After installation run from the launcher:
dconf editor

Desktop Switcher - Remove Icon: How To

This works for those who only require one workspace, if you want multiple workspaces but no icon this is not the fix for you.
Install compiz:

sudo apt-get install compizconfig-settings-manager
In the Unity Launcher search for compiz and launch the manager application.
Under 'Category' click 'General' then 'General Options' click the 'Desktop Size' tab, then move all the available sliders to '1'.
Logging out then in should remove the icon from the launcher, if not reboot.
Cribbed here.

Global Menu - Disable: How To

There are things you should do however before disabling the Global Menu Support (GMS). Most programmes will revert to individual menus however there are exceptions and if these are not sorted before you remove GMS you will be left without the buttons to close/minimise/maximise:
Firefox: You need to disable the add-on/extension for Global Menu Support before remove un-installing the items above.
Linux Terminal:~$

sudo apt-get remove appmenu-gtk3 appmenu-gtk appmenu-qt 
sudo reboot

Global Menu - LibreOffice - Enable: How To

While LibreOffice is Ubuntu's default office suite does not come with Global Menu support for Unity out of the box. To enable support open the Software Centre and search for:
Highlight the result and click 'Install'.

Lock Screen: How To


Login Sound: How To Disable

Go to the system icon in the top right hand corner of the screen (the icon to the left of your username), click on it and then click on 'Startup Applications'
In the 'Startup Applications Preferences' window under 'Additional startup programs' locate 'GNOME login sound' and untick the checkbox.
12.04 - Login sound has now been removed by default.

Multiple Instances Of A Programme - View All Instances: How To

Open the Unity Launcher
Click once on the programme you want to see all instances of
Click once more, all the instance of the programme should now tile on the screen while all the other programmes minimise

NFS Automounted Home LightDM Broken Login: How To Fix


sudo apt-get install gdm
Choose gdm instead of lightdm, then reboot. If it does not ask you first time (or if you want to change it back to lightdm), run

sudo dpkg-reconfigure lightdm

Quicklists: An Overview

It is possible in Unity to edit the information seen when you right click on a launcher icon.
You can add whichever folder shortcuts to the launcher just ensure you follow the same formatting, i.e.
[Writer Shortcut Group]
Exec=libreoffice -writer %U
The entries at the end of the line 'X-Ayatana-Desktop-Shortcuts=' can be edited to show the shortcuts in whatever order you require; i.e. alphabetically.
The '[.... Shortcut Group]' entries do not have to match the order shown in the 'X-Ayatana-Desktop-Shortcuts=' line.
After editing Quick Lists you will need to log out/restart after your final edit before the tweak will become live.

Quicklists: Google Chrome

Linux Termainal:~$

sudo cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications
gedit ~/.local/share/applications/google-chrome.desktop
Add the following code to the end of the file:
[NewWindow Shortcut Group]
Name=Open New Window

[Incognito Shortcut Group]
Name=Incognito Mode
Exec=google-chrome --incognito
Save and close the file. Restart Unity
Linux Termainal:~$

unity --replace

Quicklists: Home Folder

Copy 'Home Folder' launcher file to your home directory:

mkdir ~/.local/share/applications
cp /usr/share/applications/nautilus-home.desktop ~/.local/share/applications
Open the file for editing in gedit:

gedit ~/.local/share/applications/nautilus-home.desktop
In the existing text find and delete the following line:
At the bottom of the existing text add the following, then close and save:
[Videos Shortcut Group]
Exec=nautilus Videos

[Documents Shortcut Group]
Exec=nautilus Documents

[Music Shortcut Group]
Exec=nautilus Music

[Pictures Shortcut Group]
Exec=nautilus Pictures

[Downloads Shortcut Group]
Exec=nautilus Downloads
Log out and log in again to see the changes.
You can add whichever folder shortcuts to the launcher just ensure you follow the same formatting.
NOTE: The items at the end of the line 'X-Ayatana-Desktop-Shortcuts=' can be edited to show the shortcuts in whatever order you require; i.e. alphabetically. The '[.... Shortcut Group]' do not have to match the order shown in the 'X-Ayatana-Desktop-Shortcuts=' line.

Quicklists: LibreOffice

Copy 'LibreOffice' launcher file to your home directory:
cp /usr/share/applications/libreoffice-startcenter.desktop ~/.local/share/applications
Open the file in gedit:
gedit ~/.local/share/applications/libreoffice-startcenter.desktop
Lastly add the following to the file:

[Writer Shortcut Group]
Exec=libreoffice -writer %U

[Impress Shortcut Group]
Exec=libreoffice -impress %U

[Calc Shortcut Group]
Exec=libreoffice -calc %U

[Math Shortcut Group]
Exec=libreoffice -math %U

[Draw Shortcut Group]
Exec=libreoffice -draw %U

Quicklists: Mozilla Firefox

Copy the 'Firefox' launcher to your home directory:
cp /usr/share/applications/firefox.desktop ~/.local/share/applications
Open the copied file in gedit:
gedit ~/.local/share/applications/firefox.desktop
Locate and edit the following line:
Change it to read:
Add the following to the bottom of the document:
[SafeMode Shortcut Group]
Name=Open Firefox in safe mode
Exec=firefox -safe-mode

[ProfileManager Shortcut Group]
Name=Firefox Profile Manager
Exec=firefox -ProfileManager
To add a link to open a particular URL:
[MakeTechEasier Shortcut Group]
Name=Launch Indie IT
Exec=firefox ""

Quicklists: Mozilla Thunderbird

Copy the 'Thunderbird' launcher to your home directory:
cp /usr/share/applications/thunderbird.desktop ~/.local/share/applications/thunderbird.desktop
Open the copied file in gedit:
gedit ~/.local/share/applications/thunderbird.desktop
Locate and edit the following line:
Change it to read:
Add the following to the bottom of the document:
[Compose Shortcut Group]
Exec=thunderbird -compose

[AddressBook Shortcut Group]
Name=Address Book
Exec=thunderbird -addressbook

[ProfileManager Shortcut Group]
Name=Profile Manager
Exec=thunderbird -ProfileManager

Reset - Unity: How To

Been tweaking Unity and it has all gone horribly wrong, try the following:
Linux Terminal:~$
dconf reset -f /org/compiz/
unity --reset

Reset - Unity Launcher Icons: How To

Likewise for the Unity Launcher Icons is they have gone squiffy:
Linux Terminal:~$

unity --reset-icons &disown

Root User - Set Password & Allow Login Via LightDM: How To

Unlike many other Linux distributions Ubuntu does not by default come with a Root (super user) account.
Linux Terminal:~$

sudo -i
passwd root
Follow the prompts to add the password for root.
Linux Terminal:~$

sudo nano /etc/lightdm/lightdm.conf
Add the line:
greeter-show-manual-login = true
Save changes (CTRL+o) press enter, then exit (CTRL+x)
Close the terminal and restart system
The above information gratefully gleaned from here.

Software Sources: How To Add

Software Sources can be accessed via the launcher, the Ubuntu Software Centre or of course via the terminal.

Scrollbars - Revert To Classic Style: How To

Open Synaptic and search for:
Uninstall the above.

Startup Applications - Show Hidden: How To

Linux Terminal:~$

sudo sed -i "s/NoDisplay=true/NoDisplay=false/g" /etc/xdg/autostart/*.desktop

Synaptic Package Manager

By default Synaptic Package Manager is not installed, in a terminal:

sudo apt-get install synaptic

HOWTO USB Drives - Disable Automounting

By default any external USB drive when plugged in will be automatically mounted, to disable this behaviour run 'dconf-editor' locate the following key:

Saturday, 19 October 2013

Software Scripts

Software Scripts

Ubuntu Software Scripts are simple to use for automating the the installation of software addons and plugins. I use a number of the scripts below to configure addons for Gimp that open up a whole new world of functionality within Gimp.

Also check out the LibreOffice scripts to make sure you get the full range of functionality from your office software. If you know of some scripts I have overlooked please contact me with links to your favorite scripts.

Easy Ubuntu scripts (Collection)

Collection Of Gimp Scripts

Tried and true Nginx init script.

Groovy Uno Office Scripts

TuxLite scripts

Sunday, 18 August 2013

Install ubuntu 13.4 in virtual box!

Install ubuntu 13.4 in virtual box! 

Have you ever wanted to try Ubuntu but didn't have a spare computer to run it on? This tutorial will show you how a virtual machine like VirtualBox will let you play with other operating systems without having to change what’s on your computer right now. The tutorial will cover how to install VirtualBox and set up your first virtual machine, show you how to get Ubuntu and prepare for installation, and walk you through an installation of Ubuntu.


Saturday, 17 August 2013

Post Install script example

Scripts add versatility and power to an already strong program. Downloading and installing them is an easy process. This process can also be applied to brushes, plugins, and gradients with some minor variations.
The easiest way is to gather all the commands you need and put them in a text file and make the text file executable.
Start out with implementing the  command line and do this:
touch post_install_script
sudo 775 post_install_script
gedit post_install_script
And you start putting in commands you want to be executed.
Installing packages that are in Ubuntu Software Center.
Start with enabling all repositories and refreshing the software list because the LiveCD is outdated:
sudo sed 's/# deb/deb/' -i /etc/apt/sources.list
sudo apt-get update
Look up inside USC what already is there and check the package name. Examples with VLC and smplayer:
sudo apt-get install vlc
sudo apt-get install smplayer
In the same way of adding software like this you can also remove packages with:
sudo apt-get remove {package_name}
(just be careful to check dependencies first)
PPA for installing nautilus elementary:
sudo add-apt-repository ppa:am-monkeyd/nautilus-elementary-ppa sudo apt-get update && sudo apt-get upgrade
Those are either in USC or have a PPA so you can add these with either one of the 2. For instance I like theequinox themes and I can add them like this:
sudo add-apt-repository ppa:tiheum/equinox
sudo apt-get update && sudo apt-get install gtk2-engines-equinox
or the Faenza icon sets:
sudo add-apt-repository ppa:tiheum/equinox
sudo apt-get update && sudo apt-get install faenza-icon-theme
So you gather all the installation instructions that you want to add and put them in your script each on a new line. You can speed things up by removing duplicate entries: sudo apt-get upgrade does not need to be done with every PPA: you can do that after adding all the PPAs but(!) before you install the software from the PPA.
Theoretically you can have 1 of these script files for all Ubuntu installations but you might need to tweak them for every system.
This is my newest attempt to creating a post install script:
enter image description here
What does this do?
  1. update sources list
  2. remove all directories in my home and create them again in /discworld2/ After that I recreate my home directory directories using symlinks. This way I am able to format my home and keep my files (they are not only on another partition but even on another disc);
  3. install software I want;
  4. set power management the way I want it.
  5. add ppa's I want
After installing I just execute my post_install file and it will run for a long time but it will take care of everything I want (well I will be adding more and more things over time so it will get longer).

Saturday, 17 July 2010

The Ultimate Ubuntu XBOX 360 Multimedia Sharing Guide

NOTE: Since the Fuppes UPNP project has gotten its act together I consider that project a superior solution to ushare. I have some basic instructions for compiling SVN fuppes at the end of this thread as currently there is no fuppes package available in the Ubuntu repos. Possibly when my 360 comes back from repair I will consider updating the guide unless someone does it before me.

So your using Ubuntu and you want to share multimedia from your machine to your 360. This is indeed possible! Some of you may ask, there is a number of existing guides about this, so whats different about this one? Well, this guide uses free software and it uses free software that is not encumbered with bugs.

At the heart of the matter is that we need whats called a upnp media server to serve the media requests. Microsoft in typical fashion did not adhere to upnp standards when producing the 360's sharing. So that means right off the bat, upnp media servers will not work. Thankfully though, some upnp media servers have been modified to run in a special xbox 360 mode. The bad news is that these select servers are either not free or not robust.

The community has reached a point where the single robust upnp server that is free, and importantly is not deprecated, does not have the special xbox 360 mode. Servers like 360 media serve and Fruppes are not actively being developed. The Fruppes community is talking about merging with MediaTomb but getting 360 mode into MediaTomb is going to take time. Ushare is still being developed but it contains a number of ugly bugs that makes the experience frustrating. There is a payware upnp media server but in our hearts, we know that using non free software really isnt right.

Thanks to forum member NeToU he has taken the Ushare source code and patched it to resolve these ugly bugs. So we will be using his patched Ushare version.

Were going to need to download his source code, configure it, compile it and install it. This is not as hard as it sounds and provided you can follow these instructions carefully you will do fine.


1. Download The Source

Goto and download the source code.

2. Extract The Source

I keep my source in a directory tree under home / src though you may use a different approach. Open up a terminal by selecting the Ubuntu icon, Accessories and then Terminal. Now carefully copy and paste the following, one line at a time, hit enter in the terminal and do the next line.

cd ~
mkdir src
Now move your archive to the src directory depending on where you downloaded the source too. For example, if it is in your home directory use:

mv ~/ushare-11a-netou.tar.bz2 ~/src/
Lets extract the source now:

cd ~/src
tar -xjf ushare-11a-netou.tar.bz2
3. Compile the program

First lets get the dependencies out of the way. If your not sure if you already have these there is no harm in doing it as existing installs will not be installed again. So lets get the tools to be able to build software:

sudo apt-get install build-essential
Now lets deal with getting the software Ushare depends on:

cd ushare-1.1a-NeToU
sudo apt-get build-dep ushare
Once that is done, we can compile Ushare now:

./configure --prefix=/ --bindir=/usr/bin --mandir=/usr/share/man
sudo make install
sudo make clean
4. Configure Ushare:

Ushare like most Linux apps has a conf file. It is critical that you enable the special xbox 360 upnp mode and that you correctly put in the path of the multimedia that you want to share. To edit you conf file, use the following command:

gksudo gedit /etc/ushare.conf
Or use nano in the CLI:

sudo nano -w /etc/ushare.conf
Edit the file to your liking, with the important settings explained below:

USHARE_NAME=          Put the name you want your share to be called e.g. MyMedia
USHARE_PORT=          Define the port number you want to use e.g. 49200
USHARE_DIR=           Configure the share locations e.g. /mnt/hda1,/mnt/hdb1/videos/share/
USHARE_ENABLE_WEB=    Use yes to enable the web interface
USHARE_ENABLE_TELNET= I turn this off with no, preferring to use the web interface
USHARE_ENABLE_XBOX=   This must be yes for 360 sharing to work
Note that Ushare does not handle spaces in the share directories.

5. Controlling the Ushare daemon

To start Ushare:

sudo /etc/init.d/ushare start

And to stop Ushare:

sudo /etc/init.d/ushare stop
6. Getting Ushare to automatically start on user login:

Some of the existing guides that use not so robust Upnp servers, also recommend unnecessarily complex ways to get Ushare to autostart. For example by hacking up sudo to run Ushare as a session item for the user. This approach is not only messy, but it also creates the problem where if that user logs out and then later logs in again without rebooting you now have multiple Ushare sessions going.

Let's get Ushare to auto start using Ubuntu's default runlevel settings:

sudo update-rc.d ushare defaults
7. Managing Ushare via the web interface

You can manage Ushare via the web interface at:

For example on my machine, its

8. Wait, I have the firewall on!

If your using Ubuntu's UFW, you can easily add a rule to cope with this. Lets say your 360 uses a static IP address of and your machine is Use the following command to provide a small hole in your firewall for this:

sudo ufw allow proto tcp from to port 49200
You can easily check what UFW is doing with:

sudo ufw status

FAQ #1 Why Cant I Transcode?

You can easily! However the best way is to do this outside of a upnp server. Why? The elegant way to do it otherwise is coding a media centre extender. However Microsoft's 360 media centre does not support MPEG4-ASP (divx, xvid) among other things - yes it is behind the "dumber" sharing interface without the media centre. This complicates coding a media centre add on.

There is robust and verstile Linux apps you can use to easily transcode media. I consider the best to be mencoder which can quickly convert many different media formats into mpeg2. You could even batch script it to convert directories of your media overnight.

FAQ #2 I Want to Uninstall

cd ~/src/ushare-1.1a-NeToU/
sudo make uninstall
sudo update-rc.d -f ushare remove

Subscribe to the Ubuntu Dan newsletter


Enhanced by Zemanta

Saturday, 8 May 2010

How to Install Chromium (Google chrome) in Ubuntu using deb package

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web. The Chromium codebase is the basis for Google’s Chrome browser.
First you can use this tutorial to install chromium in Ubuntu using PPAs and after that you can try any one of the following methods.

First you need to download .deb package from here using the following command
Now you have cxchromium_0.9.0-1_i386.deb package install this package using the following command
sudo dpkg -i cxchromium_0.9.0-1_i386.deb
Using Ubuntu PPA
First you need edit /etc/apt/sources.list file
gksudo gedit /etc/apt/sources.list
Add the following two lines for Ubuntu 9.04 (Jaunty) Users
deb jaunty main
deb-src jaunty main
For ubuntu 9.10 (Karmic) Users add the following two lines
deb karmic main
deb-src karmic main
For ubuntu 10.04 (Lucid) Users add the following two lines
deb lucid main
deb-src lucid main
save and exit the file
Now add the GPG key using the following command
sudo apt-key adv --recv-keys --keyserver 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5
or For karmic users use the following command
sudo add-apt-key ppa:chromium-daily/ppa
Update source list
sudo apt-get update
Install chromium browser using the following command
sudo apt-get install chromium-browser
This will complete the installation
If you want to open chromium go to Applications->CrossOver Chromium->Chromium

Need extra help understanding Ubuntu? Let the team at Ubuntu Dan give you the edge and purchase a one on one support block.Click here for personal support

Recent Posts

Blogger Templates