Transparent menus in Ubuntu 12.04

There is a way to do this using the CompizConfig Settings Manager (CCSM).

You can install CCSM by looking for it in the Ubuntu Software Center or by entering in a terminal:

sudo apt-get install compizconfig-settings-manager 

Once installed, start it up and go into the options for the Opacity, Brightness and Saturation plugin. Click the checkbox to the left of it to enable the plugin first, then add a new rule under the Window specific settings section of the Opacity tab. The “Windows” textbox should contain:

Tooltip|Menu|PopupMenu|DropdownMenu 

…and the “Window values” slider should be set to 90 (recommended). This value can be tweaked to your taste (set mine to 80).

Greetz, M.

Visitor Score
[Total: 0 Average: 0]

Install FreeNX server on Ubuntu 12.04

Installing FreeNX server on Ubuntu 12.04 needs a little tweaking.

1- Add the repository :

sudo add-apt-repository ppa:freenx-team

2- Install FreeNX server

sudo apt-get update && sudo apt-get install freenx

3- Next, as noted in the community documentation for installing FreeNX – download the missing nxsetup script, untar it, then copy it to /usr/lib/nx (the command below is one entire line that runs 3 commands and ends with /usr/lib/nx)

wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz && tar xvf nxsetup.tar.gz && sudo cp nxsetup /usr/lib/nx

4- Run the NX server setup script

sudo /usr/lib/nx/nxsetup –install

5- Configure the FreeNX server to configure clients to use ubuntu-2d session

echo -e “\n#Use unity 2d for client sessions\nCOMMAND_START_GNOME=’gnome-session –session=ubuntu-2d'”|sudo tee -a /etc/nxserver/node.conf

6- Restart the NX server

sudo /etc/init.d/freenx-server restart

That’s all. Now access the installed FreeNX server with the FreeNX client (from a OS of your choice).

Greetz, M.

Visitor Score
[Total: 0 Average: 0]

Hide Users List from Login Screen Ubuntu

To hide the user list from the login screen perform following steps (as root user or with sudo)

1) First of all Please take backup of original file, execute following command :-

cp -p /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.orig

2) Open /etc/lightdm/lightdm.conf, Execute Following command :-

vi /etc/lightdm/lightdm.conf

3) Add following line to [SeatDefaults] Selection:-

greeter-hide-users=true

For Example your /etc/lightdm/lightdm.conf should look like below :-
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
greeter-hide-users=true

Now Save and Exit from file. ( ESC and :wq! )

4) Finally reboot Ubuntu , You will not able to see any user on Login screen/Window

I hope this will helps you all.

greetz, M.
Visitor Score
[Total: 0 Average: 0]

Get rid of internal system error popups in Ubuntu

Apport is a debugging tool that automatically generates crash reports. In the final Ubuntu 12.04 release, Apport seems to be enabled by default (unlike in the previous Ubuntu versions) and at least on my system, I keep getting “Sorry, Ubuntu 12.04 has experienced an internal error” popups, which can’t be reported, a few times a day (Apport bug already reported).

To get rid of these annoying Apport popups, you can disable Apport, especially since most of the time there are no visible errors / crashes anyway. Sure, this won’t solve the actual errors, but at least you won’t get those frequent Apport “internal system error” dialogs anymore.
To disable Apport, you need to edit “/etc/default/apport” with a text editor such as Gedit (as root):
gksu gedit /etc/default/apport

and change “enabled” from “1” to “0”, then save the file.

After completing the steps above, Apport won’t be started at boot anymore, but let’s stop the running Apport process too, so you don’t have to wait until you restart your computer:

sudo service apport stop
You can always re-enable it later on if you want, by changing “enabled” from “0” back to “1”, or you can enable Apport temporarily, using the following command:
sudo service apport start force_start=1

greetz,
M.
Visitor Score
[Total: 0 Average: 0]

Epson V300 scanner on Ubuntu 12.04

Installing the Epson V300 scanner on Linux is easy !

First, make sure you have installed all the ” Sane”  packages, including ” Sane-utils” .

Next, download the drivers from the Epson website.

There are three packages to download :

  1. iscan-data
  2. iscan
  3. esci-interpreter

Don’t forget to pick the right ones (for Ubuntu use the .deb files, i386 or x64 depending on your system).

Install the packages in the same order (iscan-data, iscan and esci-interpreter).

Switch on the scanner and start “iscan”.

Greetz, M.

Visitor Score
[Total: 0 Average: 0]

HowTo : Samba logrotate fails with errors

On my new Ubuntu 12.04 box logrotate fails on the Samba logfiles log.smbd and log.nmbd.

The issue is the command that is run after log rotation. The ” reload”  parameter is not understood since the init.d scripts are replaced by services.

Simply change the commands to run after rotation.

For log.smbd rotation, change it to : service smbd restart

For log.nmbd rotation, change it to : service nmbd restart

Uning Webmin makes these changes even easier.

Greetz, M.

Visitor Score
[Total: 0 Average: 0]

HowTo : Freshclam logrotate fails with error

On my new Ubuntu 12.04 box Freshclam logrotate failed with errors :

ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: /var/log/clamav/freshclam.log is locked by another process

To fix this I changed the default commands that are run before (default : none) and after rotation.

Commands to run before rotation

/etc/init.d/clamav-freshclam stop

Commands to run after rotation

replace : /etc/init.d/clamav-freshclam reload-log > /dev/null

with : /etc/init.d/clamav-freshclam start

Using Webmin makes these changes even easier …

Greetz, M.

Visitor Score
[Total: 0 Average: 0]

HowTo : Install Roundcube Webmail on Ubuntu 12.04

I tried to install and configure Roundcube from the Ubuntu repositories, but that failed. So I decided to install Roundcube from scratch. Here’s a small HowTo :

Step 1 : Creating A MySQL Database & User

Open the terminal and run this command to log in to MySQL server (use the MySQL password you have entered during the installation of the LAMP Server):

mysql -u root -p

Create a database for Roundcube Webmail Ex: roundcubedb

create database roundcubedb;

Create MySQL user for access Roundcube Webmail (example: usercube)

create user usercube;

Now Give user: usercube a password

set password for ‘usercube’ = password(‘usercube’);

set privileges usercube to access database roundcubedb using this command:

grant all privileges on roundcubedb.* to ‘usercube’ identified by ‘usercube’;

Now, Exit from MySQL server,by typing command:

exit

Step 2: Installing Roundcube Webmail

In this case Roundcube Webmail will be installed in the directory /var/www/webmail. Download and extract archieve Roundcube Webmail to directory /var/www/webmail

cd /tmp && wget -O roundcubemail-0.7.1.tar.gz http://goo.gl/zGnGZ
sudo tar -xzvf roundcubemail-0.7.1.tar.gz -C /var/www
sudo mv /var/www/roundcubemail-0.7.1/ /var/www/webmail

change ownership directory /var/www/webmail/temp and /var/www/webmail/logs to user and group www-data ( www-data is user and group web server)

sudo chown -R www-data.www-data /var/www/webmail/temp
sudo chown -R www-data.www-data /var/www/webmail/logs

Import database RoundCube to mysql server, login to mysql server then typing these command

mysql -u root -p roundcubedb < /var/www/webmail/SQL/mysql.initial.sql

To start the installation of Roundcube, open chrome or firefox browser, on address bar type :

http://localhost/webmail/installer/

In Ubuntu 12.04 I had to change my /etc/php5/apache2/php.ini file because of an error I got on the installer webpage of Roundcube.
In /etc/php5/apache2/php.ini change the line :
mbstring.func_overload = 7
to
mbstring.func_overload = 0

Enter your own configuration you want to use (SMTP & IMAP settings, etc.). Then scroll down and fill your MySQL database details you have already created.

Download file main.inc.php & db.inc.php and copy to directory /var/www/webmail/config

sudo cp main.inc.php db.inc.php /var/www/webmail/config

Installation Roundcube Webmail complete, remove the directory /var/www/webmail/installer:

sudo rm -rf /var/www/webmail/installer

Roundcube Webmail ready to use, Access Roundcube Webmail via browser (http://localhost/webmail/).

Greetz, M.

Visitor Score
[Total: 0 Average: 0]

Convert FLAC to MP3 CBR in Linux

Instead of converting the files one by one using FFMPEG, use this command to convert all FLAC files in a folder to MP3 (320 CBR) and keep the original files :

“for f in *.flac; do ffmpeg -i “$f” -acodec libmp3lame -ab 320k “${f%.flac}.mp3″; done”

Just remove the double quotes at the start and end of the line.

Greetz, M.

Visitor Score
[Total: 0 Average: 0]