Archives For November 30, 1999

Want to delete files or folders from your file browser bypassing trash? Well, this tutorial will show you how to add ‘Delete’ (Permanently) option to your context menu in Ubuntu Nautilus or Elementary OS Pantheon.

 

For Ubuntu Nautilus File Browser:

1. Open your file browser.

2. Go to menu: Edit -> Preferences

3. Under behavior tab, check the box where it says “Include a Delete command that bypasses Trash”

Ubuntu Delete files bypassing Trash

Once done, you’ll find an option “Delete” in context menu:

For Elementary OS Luna:

Thanks to Trisailing, he left a comment in another post with below steps:

1. Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run command to create and edit the config file:

sudo scratch-text-editor /usr/share/contractor/Delete.contract

2. Copy and paste below lines into empty file:

[Contractor Entry]
Name=Delete permanetly
Icon=pantheon-files
Description=Delete files, skip trash
MimeType=application;audio;chemical;image;message;model;multipart;text;video;x-conference;x-epoc;x-world
Exec=rm -r
Gettext-Domain=pantheon-files

Add inode to the value list of MimeType will allow to delete folders. But (Thanks to @Trisailing) if you click Delete permanently on a blank space it will delete all files and folders in the current directory. Use it at your own risk!

3. Save the file. Log out and back in.

This tutorial is going to show you how to install the cross-platform open-source messaging service Telegram in Ubuntu 14.04, Ubuntu 13.10 and Linux Mint 16 via PPA.

Telegram uses your phone number as your user ID that allows to send messages, photos, videos and files of any type (doc, zip, mp3, etc) to people who are in your phone contacts and have Telegram. Unlike WhatsApp, Telegram is cloud-based and heavily encrypted.

Telegram only provides official applications for Android and iOS. It has an open API so here comes the UNOFFICIAL web application webogram and below will show you how to install this app with Unity integration.

Disclaimer: This is an alpha version of the Telegram UNOFFICIAL web application. It may have undetected security issues, and there is definitely a load of bugs to fix, features to add and so on. So if you want 200% secure and fully functional communication, don’t use this yet! You can always find Telegram official mobile applications here: https://telegram.org

Implemented functionality list:

  • Sign in by phone number + SMS code, or phone call
  • View list of existings chats (up-posting) with infinite scrolling
  • View messages history for each chat/group (bottom-posting) with infinite scrolling
  • View brief profile info
  • View/edit group info
  • View/edit members list
  • View media in messages: photo, video
  • Download documents from messages
  • Emoji display in all browsers (Chrome, non-OSX ones)
  • Emoji keyboard
  • Send plain-text messages to user or group
  • Send files (photos or documents) via attach icon or drag’n’drop
  • Desktop notifications
  • Create new group
  • Edit group participants
  • Settings
  • Edit profile/userpic
  • Contacts
  • Edit, delete, forward messsages

Unsupported at the moment:

  • Registration
  • Contacts add/edit
  • Secret chats
  • Search messages
  • a lot more…

Install the unofficial Telegram app:

Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the commands below one by one:

sudo add-apt-repository ppa:costales/unity-webapps-telegram

sudo apt-get update

sudo apt-get install unity-webapps-telegram

webogram on github.

Install Google Talk Plugin in Ubuntu 14.04

Last updated: May 1, 2014

Google Talk is browser plugin that allows you to make a voice and video chat with your friends via your webcam and microphone connected to the computer.

With the plugin installed, just log in to your GMail account with Firefox or Chrome browser, select a contact, you will be able to see that you can have a video chat (you get the option for video chat if they have a camera, or the video chat icon is grayed).

Install Google Talk Plugin:

Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the command below to add the Google Talk repository:

sudo sh -c 'echo "deb http://dl.google.com/linux/talkplugin/deb/ stable main" >> /etc/apt/sources.list.d/google-talkplugin.list'

Then get the key:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

Finally update your system and install the plugin:

sudo apt-get update

sudo apt-get install google-talkplugin

Once installed, Firefox users can verify that if the Google Talk plugin is installed by going to Tools->Addons->Plugins. Chrome users go to chrome://plugins/

This simple and brief tutorial will show you how to install the old Gnome’s Users and Groups management tool in Ubuntu 14.04 Trusty Tahr.

Ubuntu Unity does not have a graphical tool for managing users and groups out of the box. However, Ubuntu Software Center provides a package with a fully integrated set of Gnome System Tools, including Users and Groups.

Open Ubuntu Software Center, search for and install the package “gnome-system-tools” (without quotes):

Once installed, open “Users and Groups” from Unity Dash:

Enjoy!

Want to customize your on screen notification bubbles?

Well, there’s an enhanced version of Notify-OSD available in Launchpad that enables you to:

 
 
 

  • change notification location
  • close bubble on click
  • change color, width, height or other options of bubble
  • add timeout
  • Stops the bubble from fading out when the mouse pointer hovers over it
  • Used Dash background color for bubble background color

To install the Notify-OSD with additional features:

Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run:

sudo add-apt-repository ppa:leolik/leolik

sudo apt-get update

sudo apt-get install notify-osd

Then restart the daemon to apply the changes:

pkill notify-osd

To install a graphical tool to configure Notify-OSD:

sudo add-apt-repository ppa:nilarimogard/webupd8

sudo apt-get update

sudo apt-get install notifyosdconfig

UPDATE 2015-8: For Ubuntu 15.04, you may install Notify-OSD graphical configuration tool via:

sudo add-apt-repository ppa:gsn/grabbelkiste

sudo apt-get update

sudo apt-get install notifyosdconfig

Launch “NotifyOSD Configuration” from Unity Dash and now you’re able to configure your notification bubbles:

To change the bubble location, run:

gsettings set com.canonical.notify-osd gravity NUMBER

Where the NUMBER can be:

1 – top-right corner
2 – middle-right
3 – bottom-right corner
4 – bottom-left corner
5 – middle-left
6 – top-left corner

Enjoy!

Indicator Network is a stupid traffic monitor applet for Ubuntu Unity, inspired by the old netspeed GNOME applet.

It displays the total current network traffic on system tray area on panel and you can check out the current download & upload speed from its drop-down menu.

The indicator will be put left of all your other indicators. If this is undesirable, the ordering index can be changed in gsettings:/apps/indicators/netspeed (use dconf-editor, available in Software Center).

To install this indicator applet:

Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, choose one method from below and run the commands one by one:

1. Compile from source (github.com):

sudo apt-get install build-essential libgtop2-dev libgtk-3-dev libappindicator3-dev git-core

git clone git://github.com/mgedmin/indicator-netspeed.git

cd indicator-netspeed

make

sudo make install

Once installed, start the applet via:

indicator-netspeed &

You need to manually add this applet into Startup Applications (open it from Unity Dash).

2. Install from PPA (webupd8.org):

Webupd8 Team has made this into PPA, available for Ubuntu 14.04, Ubuntu 13.10, Ubuntu 12.10, Ubuntu 12.04. Add the PPA and install the applet via below commands:

sudo add-apt-repository ppa:nilarimogard/webupd8

sudo apt-get update

sudo apt-get install indicator-netspeed

Once installed, netspeed indicator automatically starts at next login.

This simple and brief tutorial is going to show you how to change the Hostname / Computer name in Ubuntu 14.04 Trusty Tahr.

The default name was set when you were installing Ubuntu. You can easily change it to whatever you want in both Desktop & Server by editing the hosts and hostname files. Below is how:

1. Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the below command:

hostname NEW_NAME_HERE

This will change the hostname until next reboot. The change won’t be visible immediately in your current terminal. Start a new terminal to see the new hostname.

2. To change the name permanently, run command to edit the host files:

sudo gedit /etc/hostname /etc/hosts

For Ubuntu server without a GUI, run sudo vi /etc/hostname and sudo vi /etc/hosts and edit them one by one.

In both files, change the name to what you want and save them.

change Computer name ubuntu

Finally, restart your computer to apply the changes.

Want to change the color of your folders in Nautilus file browser to get a better visual layout? Well, there’s a small extension for Nautilus can do the job in Ubuntu 14.04 Trusty, Ubuntu 13.10 Saucy and Ubuntu 12.04 Precise.

See my file browser:

So far, the tool support following colors: Blue, Light Blue, Pink, Black, Yellow, Violet, Orange (Ubuntu’s default), Green, Gray, Red. Also there’s an option to reset to default.

To install this simple tool, Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the commands below one by one:

sudo add-apt-repository ppa:costales/folder-color

sudo apt-get update

sudo apt-get install folder-color

Don’t like Ubuntu PPA? Download & install the .deb package from launchpad page.

Once installed, restart Nautilus via:

nautilus -q

Finally you’re able to change a folder color in its context menu:

Webpage: https://launchpad.net/folder-color

Already installed LEMP or LAMP on your Ubuntu server? Well, now it’s time to install wordpress CMS and get your site running!

As you may know, wordPress is a popular blogging tool and a content management system (CMS) based on PHP and MySQL. It’s free and open-source. In the steps below the lines that the user needs to enter or customize will be in red in this tutorial!

1. Setup Mysql Database for WordPress

For LEMP (Ubuntu, Nginx, Mysql, Php) without phpmyadmin installed:

Database name: wordpress_db; user name: ubuntuhandbook; password: 12345678; Change them in the code below.

Step 1 – Run command in Ubuntu Server to log into MySQL Shell with MySQL root password:

mysql -u root -p

Step 2 – Create database, here I named it wordpress_db:

CREATE DATABASE wordpress_db;

Step 3 – Create a new user named ubuntuhandbook:

CREATE USER ubuntuhandbook@localhost;

Step 4 – Set a password for this user:

SET PASSWORD FOR ubuntuhandbook@localhost= PASSWORD("12345678");

Step 5 – Grant all privileges to the new user:

GRANT ALL PRIVILEGES ON wordpress_db.* TO ubuntuhandbook@localhost IDENTIFIED BY '12345678';

Step 6 – Refresh MySQL:

FLUSH PRIVILEGES;

Exit MySQL shell:

exit

For LAMP (Apache2, Mysql, Php, Ubuntu Linux):

If you’ve installed LEMP and want to use PhpMyadmin to manage database, click the link in the top of this tutorial.

1. Install Phpmyadmin:

sudo apt-get install phpmyadmin

Choose apache2 webserver during the installing process and say NO to “Configure database for phpmyadmin with dbconfig-common?”

Once installed, run commands below to get it working:

sudo sh -c 'echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf' && sudo service apache2 restart

Now, go to http://UBUNTUSERVERIP/phpmyadmin/ in your client’s browser and type in root and the password you set when MySQL was installed to login.

phpmyadmin login

2. Follow the below steps to create database and user with same name.

Step 1 – Click on Users then click Add User.
Step 2 – Type in your desired User name (wordpress is a good one) and ensure Use text field is selected. Ensure Host is set to Local from the drop down list and the text box will change to localhost and enter a Password and then confirm it in the Re-type box. Ensure the Password Use text field is also selected.
Step 3 – Check the box that says Create database with same name and grant all priviliges.
Step 4 – Click on Go.

phpmyadmin create user and database

2. Download & Config WordPress:

Download the latest wordpress from its official website:

cd && wget http://wordpress.org/latest.tar.gz

Decompress the package:

tar -xzvf latest.tar.gz 

Go to the result folder and create the configuration file by copying the sample file:

cd wordpress/ && cp wp-config-sample.php wp-config.php

Edit the wordpress configuration file via vi editor:

vi wp-config.php

Find the section that contains the field below and substitute in the correct name for your database, username, and password:

// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘DATABASE_NAME_HERE‘);

/** MySQL database username */
define(‘DB_USER’, ‘USER_NAME_HERE‘);

/** MySQL database password */
define(‘DB_PASSWORD’, ‘PASSWORD_HERE‘);

Press i to start editing, and Esc to end editing. Finally press Shift+: followed by wq and Enter to save and exit the file.

3. Copy Files and Set Ownership:

Now move WordPress files to webserver root directory:

For LAMP:

cd && sudo rsync -avP wordpress/ /var/www/

For LNMP:

cd && sudo rsync -avP wordpress/ /usr/share/nginx/html/

Set ownership of the root directory:

cd /var/www/  ###For nginx: cd /usr/share/nginx/html/

sudo chown www-data:www-data * -R 

sudo usermod -a -G www-data www-data

4. Install WordPress:

Finally in your client’s web browser go to http://UBUNTUSERVERIP/wp-admin/install.php and install your wordpress site:

installing wordpress

Once done, if you still get “It Works!” Apache page. Run command below to edit dir.conf:

sudo vi /etc/apache2/mods-enabled/dir.conf

You will see a line of index files (index.html, index.php, index.cgi, etc) under the DirectoryIndex setting. Add index.php as the first item in the list.

After that, restart Apache server by:

sudo service apache2 restart

Now you can access your new website:

wordpress site

Adobe Reader was available in Canonical Partners repository then dropped since Ubuntu 13.10 Saucy. This tutorial will show you how to install Adobe PDF Reader in Ubuntu 14.04 LTS from the official package.

UPDATE 2024: This tutorial is outdated! For all current Ubuntu releases, see this one instead!

Tutorial Objectives:

  • Install Adobe Reader in Ubuntu 14.04
  • Enjoy!

To get started:

1. Download the DEB package:

Adobe Reader 9.5.5 enu

2. Install Gdebi to handle the DEB package. Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, paste the command below and run:

sudo apt-get install gdebi

3. Now install the package via Gdebi. It’ll also install the dependencies.

cd ~/Downloads && sudo gdebi AdbeRdr9.5.5-1_i386linux_enu.deb

4. If Adobe Reader is still missing libraries after installation. Run the command below to install them:

sudo apt-get install libgtk2.0-0:i386 libnss3-1d:i386 libnspr4-0d:i386 lib32nss-mdns* libxml2:i386 libxslt1.1:i386 libstdc++6:i386

That’s it. Enjoy!

(Optional) To remove Adobe Reader:

sudo apt-get remove acroread; sudo apt-get autoremove