How can I change the icon of an application in the Unity launcher? I'm trying to change the icon of a specific application (Pidgin) in my Ubuntu 11.10 Unity launcher. I have tried searching in the options and in the Compiz settings but could locate no option for changing individual icons.

I can change the theme but that's not what I want.

I am willing to edit configuration files to get this change. It doesn't have to be a UI solution.

For Ubuntu 11.10

The first thing you would need to do is take a .png icon file that you would like to use and copy it to the respective ~/.local/share/icons/hicolor/ directory. This will contain the following directories (which are the dimensions of the icons) : 16x16/apps/ 32x32/apps/ 48x48/apps/

I downloaded a free 16x16 free icon sampler and picked a 16x16 icon called Alien.png

I took the Alien.png file and copied it to ~/.local/share/icons/hicolor/16x16/apps, When you copy yours, you can do that through either the GUI or terminal.

From there you would need do the following in a terminal (you may need sudo to copy this over):

cp /usr/share/applications/pidgin.desktop ~/.local/share/applications/

Next edit the pidgin.desktop file:

vi ~/.local/share/applications/pidgin.desktop

Look for the line that says:

Icon=pidgin

This will need to change to the new icon name without the .png prefix...

Icon=Alien

Save your changes... Then logout and log back in.

Please let me know if this helps or if you need more assistance.

In 13.04 I installed Nemo to get rid of nautilus-for-armless-toy.

I wanted the icon folder-house in the launcher.

I opened ~/.local/share/applications/nemo.desktop with gedit to have a look, and found a line

icon=folder

(no path, no extension ???)

I tried searching in /usr/share/ for the usual default icon of nautilus which appeared to be called folder_home.png or .svg, I couldn't decide which. There were a bunch a files with the same name in various folders, so in the end I just changed the line to

icon=folder_home

and after logging out and back in the icon was changed.


Ubuntu 12.04 - not able to hibernate [error creating hibernate image] In the process of hibernation my laptop running Ubuntu 12.04 returns to the login screen after trying to hibernate.

When I look into the syslog I could see an error with the following message:

kernel: [34519.069373] PM: Not enough free memory
kernel: [34519.069374] PM: Error -12 creating hibernation image

Any help would be greatly appreciated.

Thanks.

I'm not sure this can help you, but hibernation requires your swap partition to be at least 1.5 times your physical RAM. If not, there is not enough place in it to store the contents of your ram.
If this is the case, you can try to make place by shrinking one or more of the partitions on your HD and move your partitions as needed in order to let you add the free space to your swap.

To do all these things you can use GParted from the live cd, perhaps you can even install it on your current system (but you will not be able to move mounted partitions, so it is best to work from a live session).

Many people recommend having a swap partition equal to twice the RAM size. For example, if the RAM size is 8GB, then the swap space size should equal 16GB.


Downloads killing internet on my home network I am currently having a problem with my wireless. Whenever I try to download anything it kills the internet for every other application(tabs within the same browser, browsers on other computers on the same network) except the process doing the download. This occurs with everything from downloading updates to iso's. I am not using a torrent. It happens when downloading upgrades, browser downloads, or anything else. This problem does not occur when I use Windows 7 on the same computer and it stops killing the internet for other computers if I turn the download/Ubuntu off.

I am using an ASUS G74SX laptop running Ubuntu 12.10 with Gnome 3.6. My wireless card is an Intel Corporation Centrino Wireless-N + WiMAX 6150 (rev 67)

Thanks!

I don't know if this may be the cause/issue, but when I was using my brother's network, my laptop used to shut down his internet/network because of it automatically using 'Jumbo Frames'. The solution for me was to manually set my 'MTU' size. This can be easily done in the command line with:

sudo ifconfig eth0 mtu 1492

where you replace eth0 with the adapter, if you are using wireless you probably want to swap eth0 with wlan0.
Or you can do it in your network manager seen here (change automatic to something like 1492, I believe jumbo frames are 9000):

Unless you have some form of bandwidth allocation manager on your router, that will happen every time. This will happen with every operating system. As long as your wireless card can handle equal to or greater than the amount of bandwidth as your router, your computer will try to snatch it all up.

If you're doing an HTTP download, I'd suggest getting the FireFox addon "DownThemAll" you're able to manage all of your downloads and allocate amounts of bandwidth to each of your active downloads, much like peer-to-peer sharing software.

There are also other things that can cause slow internet speeds such as: VOIP Phones (Vontage, Comcast, etc...), watching videos On Demand (Comcast, or something similar), and having your wireless router on the same channel as a nearby wireless network.

Another thing: It doesn't matter how your downloading things from the internet, the limit will always be the same, no matter how it's divided up. Say your bandwidth maxes out at 1mb/s, this could be 333.33kb/s updates, 333.33kb/s downloading ISOs, and 333.33kb/s watching YouTube videos.


Gnome Terminal tabs ugly and oversized Both gnome terminal and terminator (which I am using on my laptop these days) can be customised to look very pretty. By using full screen and keeping desktop clutter down to a minimum it's possible to get a good-sized area to work in, even on my little EeePC.

However, there is one element that I don't seem to be able to control. Gnome's tabs are massively oversized and ugly at best. They don't fit into the theme at all which looks silly, but for me the biggest problem is the screen real estate that is wasted. On a small laptop screen in particular, it's a real problem.

Is there a way to change these tabs? I realize it's possible to put them up the side of the window, but then they take up even more space!

If this isn't possible with theme-ing or gnome configuration, are there any terminal programs like terminator that can handle the tabs themselves? (Ideally in a more elegant fashion!)

As pointed out by JanC, terminator uses the default gtk theme on your system. It is true that the problem can be solved by putting close_button_on_tab = False in your ~/.config/terminator/config
Also, you could change the gtk theme. Or, you could define a special gtk setting specially for terminator. To do that, add the following lines to your gtkrc file:

style "notebook" = "default"
{
    xthickness = 0
    ythickness = 0
}

widget_class "terminator*.GtkNotebook"       style "notebook"
class "terminator*.GtkNotebook"              style "notebook"

Observe that you are modifying the standard Gtk widget called "GtkNotebook". This is whats responsible for tabs. If you want this to work in every application (not just terminator) then use instead:

widget_class "*GtkNotebook"       style "notebook"
class "*GtkNotebook"              style "notebook"

This will then affect all applications. To change the color of the text in the tab, use:

style "notebook_maybelabel" = "default"
{
   fg[NORMAL]        = "#0000AA"
   text[NORMAL]        = "#0000AA"
}

widget_class "terminator*.GtkNotebook*"       style "notebook_maybelabel"
class "terminator*.GtkNotebook*"              style "notebook_maybelabel"

I am not a Gtk expert, and this advice may contain errors.

Try screen.

Create different "tabs" with Ctrl-a c and switch between them with Ctrl-a Ctrl-a (to toggle to the  window  displayed  previously) or directly with Ctrl-a <number of tab> (to switch to window number "number of tab").

Ctrl-a " presents a list of all windows for selection.

For more information take a look at man screen.


Is there a recommended PPA for Ghostscript 9 on 10.04? Recently we keep receiving PDFs that hang Ghostscript at 100% CPU when printed. Since at the office we are still on Lucid, I tried printing those same PDFs from a Precise VM as a test, and they work nicely.
Sadly we can't migrate right now to Precise, so I was thinking of upgrading just Ghostscript (Lucid has 8.71 while Precise 9.x), is there a PPA I could use?

Well after more than 5 years, I'd say such a PPA doesn't exist.

http://www.ghostscript.com/download/gsdnld.html

Download and install from source.


How do I remove an alias? I want to remove gs alias from my PC. When I type gs it will open GhostScript. But I checked everywhere in the home directory .alias  .bash_aliases .bashrc

I also overwrite the gs with my custom alias.

I can't remove it. And I also type alias in terminal, in the list I couldn't find it.

Please I want to remove it...

The command to remove an alias is unalias so....

 unalias gs

Manual:

NAME

  unalias - remove alias definitions

SYNOPSIS

unalias alias-name...

unalias -a

DESCRIPTION

  The  unalias  utility  shall  remove the definition for each alias name
         specified. See Alias Substitution . The aliases shall be  removed  from
         the   current   shell   execution   environment;  see  Shell  Execution
         Environment .

  -a   Removes All aliases

TL;DR: The command to remove a shell alias is unalias. See the unalias manual. Run:
unalias gs

But if your gs command is not an alias (most likely), it will not help. The response will be something like:

bash: unalias: gs: not found

To find the type of the command trouble you're in, use type built-in shell command:
type gs

On my system it says it is an executable:

gs is /usr/bin/gs

Compare that with a common alias ll:
alias ll='ls -l'
type ll

ll is aliased to `ls -l'

See help type for detailed description of the type shell built-in command
You can also check if it is a symbolic link with:
ls -la /usr/bin/gs

On my system it isn't:

-rwxr-xr-x 1 root root 14520 Aug 24 17:03 /usr/bin/gs

Otherwise there would be an arrow like this:

-rwxr-xr-x 1 root root 14520 Aug 24 17:03 /usr/bin/gs -> /some/other/file

As pointed out by others, removing the alias from the current shell session is temporary. For permanent removal, you will need to find where it is defined, such as alias gs=xyz, and remove it there, or add unalias gs to your ~/.profile or ~/.bashrc file.
If it is not an alias, you can locate the package that installed the command and uninstall it. On Debian/Ubuntu for instance:
dpkg -S /usr/bin/gs

ghostscript: /usr/bin/gs

sudo apt-get remove ghostscript


Mouse cursor disappears in Kubuntu 15.04 Recently I installed Kubuntu 15.04 and found that when I'm using Nvidia drivers mouse cursor disappears when I move it to top of the display. It is few pixels "invisible" gap on top. Every other side of display doesn't hide cursor. Running 346.59 version

Edit: found, that it's a bug with Nvidia 346 drivers: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-346/+bug/1440012

I had the same problem before in ubuntu. Try this command:
gsettings set org.gnome.settings-daemon.plugins.cursor active false

and reboot your computer.


Manually setting Xorg options from command-line? Quick question: how do you set xorg options with a command?

For example, I have an Xorg entry as follows:

Section "InputClass"
    Identifier  "Marble Mouse"
    MatchProduct "Logitech USB Trackball"
    ...
    Option "VertScrollDelta" "4"
EndSection

and I'd like to change the value of "VertScrollDelta" without restarting my
computer. Do you know any command-line interface to it? I've looked into xinput,
but the properties of which does not necessary correspond to xorg options.

xinput is your best bet. I cannot confirm this as working as I do not have similar hardware, but try running:

xinput --set-prop --type=int --format=8 "Logitech USB Trackball" "VertScrollDelta" 4

The --format=8 specifies an 8-bit integer value; using 16 or 32 may work if 8 does not.

You can also use the following to try and troubleshoot this on your own:

xinput --list will show you a list of input devices that xinput can work with

xinput --list-props "Logitech USB Trackball" will show you the current properties for your device

try to install and use gsynaptics to reconfigure your device:

  $ sudo apt-get install gsynaptics


Installing required packages for Soundwire Server gives weird and horrible output I was trying to install "SoundWire Server". It requires some additional packages, according to this installation guide

I am on Ubuntu GNOME 16.04.

I have tried to install libportaudio2, but I get an error relating to python-cryptography:

$ sudo apt-get install libportaudio2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libportaudio2 is already the newest version (19+svn20140130-1build1).
0 upgraded, 0 newly installed, 0 to remove and 171 not upgraded.
1 not fully installed or removed.
Need to get 0 B/198 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
 dpkg: error processing package python-cryptography (--configure):
  package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Errors were encountered while processing:
python-cryptography
E: Sub-process /usr/bin/dpkg returned an error code (1)

to fix I have tried using

sudo apt-get install --reinstall python-lockfile

but that produced more errors:

I don't know what to do next. I want to install SoundWire because my audio jack isn't working.

try these commands in order and then reboot and then try to install libportaudio2

sudo apt-get install -f
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade


Can I take text which is in a csv and make it the name of the csv file I really hope I can explain my issue. Your help will be much appreciated.

I have over 1000 csv files which looks exactly the same.
Example

Malian Aero Company,,,,,Aircraft,TZ-DDG,(Seed 1),,,Block-on (Z),18:19,      Landing (Z),,18:14,Date,06/06/16
2016  MALI  WEATHER  MODIFICATION  PROGRAM,,,,,,,,,,Block-off (Z),16:35,        Takeoff (Z),,16:41,Page,1
,Pilot:,Daniel Chacon,,Co-Pilot:,Malik,,Observer: ,,,Total Time,01:44,    Flight  Time    ,,01:33,Type,Seed
,,,,,,,,,,,,,,,,
Time,Cell,Event,LAT,LON,Alt.,Ejectable (Glacio),,BIP (Hygro),,Remarks,,,,,,
(UTC),No.,No.,(VOR),(DME),(Kft),0,Recycle,Burn,Recycle,,,,,,,
17:03,1,,12.55,-9.03,"8,000",,,1,,,,,,,,
17:06,,,12.67,-9.13,"8,000",,,1,,Updraft 500/900 ft/m,,,,,,
17:11,,,12.56,-9.11,"8,000",,,1,,,,,,,,
17:13,,,12.74,-9.07,"8,000",,,1,,,,,,,,
17:35,2,,13.31,-9.07,"9,000",,,1,,,,,,,,
17:39,,,13.53,-9.05,"9,000",,,1,,,,,,,,

The problem is I want the name of the csv file to be the date that the flight took place which is in line 2. In this example, the date is 06/06/16. Therefore, I want the name of the csv file to be 20160606. Note the change in order which probably makes it a bit more confusing.

How can I do this automatically?

This script has two arguments.  One for the directory for your csv files.  The other for the new files corrected.

In case you have more than one flight on the same day, I added the time as part of the filename to ensure there is a unique name for each outfile.

The script:

#!/bin/bash

indir=$HOME/indir
outdir=$HOME/outdir

[[ -d $outdir ]] || (echo "Outdir doesn't exist... Exiting..." ; exit)

process() {
    file=$1
    datetime=$(head -1 $file|awk -F, '{print $NF"/"$(NF-2)}' | sed s#/#:#g)

    IFS=':' read -r -a arr <<< "$datetime"
    newname=$(printf "20${arr[2]}${arr[0]}${arr[1]}-${arr[3]}${arr[4]}.csv\n")
    echo "Name Change: $file -> $newname"
    sed -e '1,7d' < $file > $outdir/$newname
}

for i in "$indir"/*.csv; do
    process "$i"
done

Script Summary

Variables and commands of the script:

indir: The script using the variables indir for the directory of your csv files.
oudir: Create this directory for the new files to be copied.
First line: Verifies the out directory exist before continuing the script.
arr: An array variable for splitting the date and creating the new filename.
sed: A commandline text editor used for deleting the unwanted lines.

You could use cut to select the exact column you need, then you could use date (for instance, in combination with sed) to set the filename.

Put this in a loop to go through all your files and you're done.

To help you on the way:

cut --delim="," -f17 yourfile.csv | head -n1

This will select the date, now it's your turn to transform it.


A few beginner questions Greetings to all here..

I'm a complete Linux virgin, so apologies if anything I'm asking is blatantly obvious.. (I have done a brief search for the issues I'm having)
Please go easy on the terminology.. I've years of Windows to cleanse myself of.

How do I go about deleting files/folders permanently.. I've quite a few GB worth of old Windows files I'd like to remove, but short of moving them to the rubbish bin & then emptying it I can't see any option to permanently delete I've tried rm -r/-f but am told there is no such file or folder.

I have a Nvidia GTX 670 are Linux drivers available & easy enough to install?
I've also been told that the more interesting/useful software is to be found on alternative repo's can someone educate me?

Thanks for listening.

this for the Nvidia driver

sudo apt-add-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-current nvidia-settings

& about the the windows file you can use the disk-manage

gnome-disks

& you can easily remove the windows partition


KVM is required to run this AVD I am on Ubuntu 18.04 LTS and I am trying to set up Android Studio for the first time. When I run my simple "Hello World" app, it gives me a pop-up that says

  KVM is required to run this AVD.
  Unknown Error

  Please file a bug against Android Studio

But when I run simply kvm-ok it outputs:

INFO: /dev/kvm exists
KVM acceleration can be used

Starting with Ubuntu 18.04 and Linux Mint Tara you need to install qemu-kvm

sudo apt install qemu-kvm

Check the ownership of /dev/kvm

ls -al /dev/kvm

Check which users are in the kvm group

grep kvm /etc/group

Output from the above command

kvm:x:some_number:

If there is nothing rightwards of the final :, there are no users in the kvm group.

To add the current user to the kvm group

sudo adduser $USER kvm

which adds the user to the group, and check once again with grep kvm /etc/group.

A restart may be required for the permissions to take effect.

Official answer on StackOverflow

I usually run

sudo chown username -R /dev/kvm

but this is only good for a while. Looking for a better solution.

There is also another command:

sudo adduser username kvm


Installing PHP 5.6 on Xenial (16.04) I need to use php5 (5.6) because I'm working on a Drupal 7 project which doesn't support php7. The problem is I recently updated to ubuntu 16.04 Xenial which seems to no longer support php5.

I tried to install it from this repo, however when It try to install it with apt I always get similar errors.

$ sudo apt-get install php5-cli
Cependant les paquets suivants le remplacent :
  php7.0-cli:i386 php7.0-cli`

Which means it's obsolete. How can I install PHP 5.6 on Xenial?

Remove all the stock php packages

List installed php packages with dpkg -l | grep php| awk '{print $2}' |tr "\n" " " then remove unneeded packages with sudo aptitude purge your_packages_here or if you want to directly remove them all use :

sudo apt-get purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`

Add the PPA

sudo add-apt-repository ppa:ondrej/php

If you get add-apt-repository: command not found run the following command first :

sudo apt-get install software-properties-common

Install your PHP Version

sudo apt-get update
sudo apt-get install php5.6

You can install php5.6 modules too for example

sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml

Verify your version

If you have installed php5.6-cli

sudo php -v

If you don't have php5.6-cli, put this on a .php file

<?php
      //outputs php configuration info
      phpinfo();
?>

You can use XAMPP Linux.You can download any version of xampp linux from the below mentioned official xampp site.

https://www.apachefriends.org/download.html

Enter downloaded file location using terminal.

First give certain permission for the downloaded binary file. (Assume that i downloaded 64 bit binary package.)

sudo chmod a+x xampp-linux-x64-5.6.23-0-installer.run

Then install the xampp

sudo ./xampp-linux-x64-5.6.23-0-installer.run

If you are download 32 bit binary file do below mentioned like this

sudo chmod a+x xampp-linux-5.6.23-0-installer.run
sudo ./xampp-linux-5.6.23-0-installer.run


The correct way to split hard drives with Ubuntu I am using 2 hard drives: 100 Gb SSD (1) and 1Tb SATA (2). 70 Gb of (1) are taken for other purposes.
I have installed Ubuntu on the rest of 30 Gb of (1) and soon faced a problem: all the apps I need are much more than 30 Gb. Also I understood that apt-get is not going to install my programs to the other drives (for example, to (2)).

What is the correct way to solve the problem? I see here two ways:

1) Use some hint to make the second disk visible to apt-get. I am not quite sure, if it is possible. Maybe symlink can work, but I am a bit inexperienced in Ubuntu to think of a good way to do it.

2) Install Ubuntu to larger drive. What I am concerned about is that it is less fast.

To sum up, the question is whether there is a good, true way to make first idea work or reasons why I should abandon it and choose second option.

There are many ways to partition drives for limited space.

Manual partitioning:
Look in the root partition ( / ) and you will find several directories that can be put on separate partitions for the exact problems you are having (as well as for other reasons).

My new ubuntu install (Bionic) currently uses about 6 GB of space.  On my newest laptop, when looking at the output of du I find that /var uses about (at present) 30% of the 6 GB total.
The users home directory tree ( /home ) often uses a considerable amount of space as well. Om my main computer I have 3 TB allocated to /home and am using more than half.

Both /var and /home can be quite volatile in space demands and when the primary installation partition is limited those two can (and probably should) be placed on another partition to distribute space requirements.
In the early days when disk drives were expensive and space was at a premium it was found necessary (for servers) to place /var on its own partition because mail, software cache, files being served, etc would fill up the space and cause a system crash if no space was remaining for the OS partition. Malicious individuals would deliberately shut down ISPs and others if they were not prepared for such an attack.

LVM:
If you are using LVM to manage your disks, changes can be quite painless.
If you are doing it manually some careful planning and partitioning in advance can easily distribute the data to manage disk space as well. Changes without LVM are painful.

Having both drives (or at least the used 30 GB of drive 1 and all of drive 2 ) as part of an LVM will allow seamless usage of the second drive as space demands.

As a side note:
You did not state what you are using the original 70 GB of the ssd for. If I correctly assume that it is a install of another os then it is probably not movable.  If it is purely data then it could easily be relocated.

Good luck!

BTW,
Some things are accessed frequently and speed becomes a factor. Others are read by the system once or very infrequently and for those speed is really immaterial.


Removing linux-image kernel causes linux-image-unsigned package to be installed This is pertaining Ubuntu 18.04 LTS. I tried to save space by removing unneeded Linux kernel, but looks like it will still install other kernel image that is "Unsigned". Why is this?

Here is the log:

root@ubuntu18:~# apt-get remove linux-image-4.18.0-15-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  linux-image-unsigned-4.18.0-15-generic
Suggested packages:
  fdutils linux-hwe-doc-4.18.0 | linux-hwe-source-4.18.0 linux-hwe-tools
The following packages will be REMOVED:
  linux-image-4.18.0-15-generic linux-modules-extra-4.18.0-15-generic
The following NEW packages will be installed:
  linux-image-unsigned-4.18.0-15-generic
0 upgraded, 1 newly installed, 2 to remove and 8 not upgraded.
Need to get 8,219 kB of archives.
After this operation, 168 MB disk space will be freed.
Do you want to continue? [Y/n]

The original Linux kernel version that ships with the distro appears to be version 4.18. The new version that was just installed was 5.0. So I wonder if there is a reason to "preserve" 4.18.

Wirawan

I solved this by just exiting apt and adding the unsigned image to the end of the apt-get remove command.

I just solved this problem right now. Notice that you need to purge linux-headers- linux-image- linux-modules- linux-modules-extra- linux-tools- packages for the kernel all together.


How do I install Falkon browser in Ubuntu GNOME? I have downloaded the source code of Falkon from GitHub repository, but when I try to generate a make using the CMakeLists.txt it throws up some error.

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package):
  Could not find a package configuration file provided by "Qt5QuickWidgets"
  with any of the following names:

    Qt5QuickWidgetsConfig.cmake
    qt5quickwidgets-config.cmake

  Add the installation prefix of "Qt5QuickWidgets" to CMAKE_PREFIX_PATH or
  set "Qt5QuickWidgets_DIR" to a directory containing one of the above files.
  If "Qt5QuickWidgets" provides a separate development package or SDK, be
  sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:46 (find_package)

-- Configuring incomplete, errors occurred!

What should I do to complete the installation?

Falkon is a new and very fast QtWebKit browser. It aims to be a lightweight   web browser available through all major platforms. This project has been  originally started only for educational purposes, but from its start Falkon has grown into a feature-rich browser. Falkon has AdBlock built-in and enabled by default. Falkon also can import bookmarks from Firefox, Chrome, Opera and .html file(s).

To install the native Falkon browser snap package in all currently supported versions of Ubuntu open the terminal and type:

sudo snap install falkon --channel candidate

The candidate version of the Falkon browser snap package is currently 3.0.1, the same as the current version at https://www.falkon.org/.

To launch Falkon from the terminal:

snap run falkon

The falkon snap package will be updated automatically when updates are available.

Support for playing Flash videos in Falkon can be added with the following commands:

sudo apt install adobe-flashplugin
sudo apt install browser-plugin-freshplayer-pepperflash # 16.04 and later

I have had better experience with kde programs running on Lubuntu 18.04. Apper instead of Synaptic, for example.                                         sudo snap install kde-frameworks-5

Let this finish installing, then:

sudo snap install falkon --edge


How do I completely remove the Global menu on Ubuntu 13.10? I want to know how can I remove the Global menu bar completely.  The old tweaks for 12.04 isn't work completely for all apps like the Terminal and Nautilus.

I agree, it is so much easier working with many windows if they have the menu in their window.
I found this command to work.
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides '@a{sv} {"Gtk/ShellShowsAppMenu": <int32 0>}'

That I found on Global menu in Ubuntu 13.10 - Ubuntu Forums

First, install Synaptic package manager, search for global menu and uninstall what you find under 'installed'. Restart Unity and that is it.


Windows Printer via Samba - browse not available Recently installed Kubuntu 12.10 on a Dell XPS system. Overall happy, but I cannot access my Windows printers. Samba is correctly installed and works for browsing and accessing Windows directories on the MSHOME workgroup.

When trying to add my existing (and working) printers to Kubuntu, I select the "Windows Printer via SAMBA" option and the "browse" box on the right is not available (gray). When entering the printer name directly, as soon as I have entered "smb://MSHOME/x", "x" being just about anything, the "next" button at the bottom is available and enables me to select a printer. which of course will not work! (no correct Windows server or printer is selected).

I tried just about all options, including providing proper authentication data but nothing seems to enable the "browse" box to become active.

Sounds to me like a bug in the add printer feature, no?

Note: Entering the exact path to the printer enables to select, enable and print, but it may not be easy in a larger network environment.

Thanks,
-Patrick

got the very same problem here with both kubuntu 12.10 and mint 14 KDE

I found a (quite improvised) way to tweak it by installing system-config-printer-gnome (just go to Muon package manager and search for it) then running "system-config-printer" from the terminal: you'll have network printer browsing just as you have in ubuntu...
after installing it from here you'll find your network printer perfectly installed when checking back to system config>printers

by the way, when you're done with installation you can remove the system-config-printer-gnome package without affecting your new settings (that's because it's just a tool to work on CUPS in a simple graphic way)

hope it could help

Install python-smbc (SMB client) and try again.


Is the meta-release upgrade (do-release-upgrade) secure? I am trying to understand the do-release-upgrade process i.e. the way that Ubuntu prompts me to upgrade to the next spring or autumn Ubuntu release.

After reading the sources for ubuntu-release-upgrader I found the /etc/update-manager/meta-release file on my system.  This file appears use an HTTP URL to point to http://changelogs.ubuntu.com/meta-release where the various Ubuntu releases from Warty 04.10 to Raring 13.04 are listed.  This file lists the releases, their support status, the date of release and has a link to the Release file.

Now the Release file has a corresponding GPG signature and the sha1sum of the Packages file which, in turn, has the sha1sum of the individual DEB binaries that get installed.  The recent releases also have an upgrade script and a corresponding GPG signature for these too.  All sounds good.

My question is about the meta-release file itself.  It is not served over HTTPS and I cannot find a GPG signature for it.  If somebody replaces this file could they somehow cause my machine to upgrade...

...to a signed release that hasn't yet gone through security testing?
...to an old release that is not supported and has unfixed security vulnerabilities?

do-release-upgrade requires admin rights, and if you are on a LTS release, will stay on that and not automatically bump you up a version. If you use non-official sources it brings up a bunch of warning messages.

However, GUI variants on this are, to the end user, no different to UAC on Windows, where anyone not technically minded enough will just click the button or type in the password, ignore warnings and go off to make a cup of tea. So in practice, it's no more or less secure than Windows Update.

In short - I wouldn't trust the upgrade to be secure. In fact, if you are on a LTS and using Ubuntu for mission critical stuff, I'd avoid upgrading a major version until your release is no longer supported - upgrading does break stuff in subtle ways which takes time for you to fix.

Only Admin can cause permanent changes to the files in pc. Guest users can't change these(or any other) files.So no one else than the admin himself/herself can cause update-manager to look for some potentially harmful link.
now, the Admin will not damage his own pc(unless he is out of his mind).And one should never let any third-person to access Admin Rights.So there is practically no risk.
Maybe malicious apps could,but if you use trusted repos,this risk does not prevail.
As @gertvdijk said,user still has to confirm the upgrades
And finally you can always restore the original link.

So in short "somebody" can't change this file.Only the Admin can make changes to files.

  this process could surely be more secure.maybe software updater could encrypt these files and also use a gpg key

Finally Ubuntu weekly newsletter keeps you updated with recent updates/upgrades.you can confirm from it so that you can ensure your pc's security to the best.


Swap: From partition to file, now get "no matching swap device is available" Running Ubuntu 18.04, I changed from a swap partition to a swap file.

swapon -s (summary) and free show the swapfile with the new size.  /etc/fstab was changed, permission on the swapfile changed and the swap partition was deleted. When there are updates (apt-get update and upgrade), I get this error:

Setting up amd64-microcode (3.20180524.1~ubuntu0.18.04.2) ...
update-initramfs: deferring update (trigger activated)
amd64-microcode: microcode will be updated at next boot
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for initramfs-tools (0.130ubuntu3.1) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-29-generic
W: initramfs-tools configuration sets RESUME=UUID=c5a2c6f4-b67c-4d95-bc23-8333ed6c0f11
W: but no matching swap device is available.

The UUID listed there is for the old swap partition. I didn't think a swap file has a UUID, but I am not sure about that.  Everything else seems to work fine. How should I proceed to troubleshoot and fix this?

Step 1:

$ sudo blkid

It will list get UUID of each device or partition on your system. Copy the UUID of swap partition.

Step 2:

$ sudo vim /etc/initramfs-tools/conf.d/resume

Replace the available UUID with paste the UUID which you just copied and save it.

Step 3:

$ sudo update-initramfs -u

Editing /etc/fstab with new UUID of swap worked fine boot time reduced to 10 seconds from 2 mins


Installing Printer Hangs 13.04 : public key is not available: I am trying to install a printer.  I go to System Settings select Printer.  I successfully search for and find my printer by using its IP address.

Once I get to the point it choosing whether I want a driver from gutenprint or local driver I chose gutenprint the first time and although it said it was 'Installing driver gutenprint' asked my password but never completed.  I also hangs when selecting 'local driver'.

I have also noticed the following error when running apt-get update:

Reading package lists... Done
W: GPG error: http://www.openprinting.org lsb3.1 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7A4B44C2D2A2203E

I did try apt-get -f install as suggested in another thread but it made no difference.

Has anyone got any ideas that will stop me from having to re-install ubuntu?

If you have no recollection of adding that source, please verify that your system is not compromised. Is possible that you will need to reinstall the system. For resolving any other case a simple:

sudo sed -i '/openprinting/d' /etc/apt/sources.list
sudo sed -i '/openprinting/d' /etc/apt/sources.list.d/*.list

Then sudo apt-get update should fix the situation.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7A4B44C2D2A2203E

Should work.


Where should I place the .htpasswd file (phpMyAdmin)? I am following this tutorial setting up phpMyAdmin:

https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-12-04

I edit the .htaccess file at /usr/share/phpmyadmin/.htaccess

But I need to point it to a .htpasswd file of my choice.

Can I put it in /usr/share/phpmyadmin so it's next to .htaccess? Or can I put it in /var/www ?

Well, in theory you should be ok with putting your .htpasswd file anywhere in the apache document root since apache default configuration for any file beginning with ".ht" should be this:

<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

However, I tend to avoid that, and usually put my .htpasswd files somwhere in the apache folder, for example:

/etc/apache2/htpass/.htpasswd

or

/etc/apache2/.htpasswd

I don't think there are any official best practices for this, correct me if I am wrong...

It is NOT a good idea to place your .htpasswd file in /var/www.

You can place the .htpasswd pretty much anywhere other than your web folder. I would place it in /etc/phpmyadmin.


Using ssh with wallet on KDE How can I use wallet with ssh keys?

I found many different descriptions, I've got ssh-agent running, I've added a script at Autostart/ssh-add.sh:

#!/bin/bash
export SSH_ASKPASS=/usr/bin/ksshaskpass
/usr/bin/ssh-add  ~/.ssh/id_rsa.2
/usr/bin/ssh-add  ~/.ssh/id_rsa.3

When KDE started for the first time after adding that, I was asked for a password to unlock wallet, and for the password for unlocking the files. I've checked, the passwords are stored in wallet.

However when I run ssh from command line, then I'm still asked for the password for ssh account.

Any ideas what I could check or change?

You can use SSH_ASKPASS to tell ssh what method to use to provide the answer. For example i use keychain for my keys management so I have a script here:

~/.config/autostart-scripts/ssh-add.sh

With:

/usr/bin/keychain --eval --agents ssh --inherit any mykey

Here mykey is the public key. In my case, I find useful to name them.

At next log in, you will have KDE to ask you to unlock the key, and it will be valid for the rest of the session.

This is how I organized connecting to my remote machine with a RSA key:

You may first need to run this -  you can probably skip it as you have a key already - this just creates a key:

 ssh-keygen -t rsa

Answer all the questions it asks -  you can just press Enter, but a password is recommended although I have not tested it with Desktop key wallets.

You then need to export it to the remote machine - you need to specify USERNAME and IP_ADDRESS:

 cat .ssh/id_rsa.pub | ssh USERNAME@IP_ADDRESS 'cat >> .ssh/authorized_keys'
 cat .ssh/id_rsa.pub | ssh USERNAME@IP_ADDRESS 'cat >> .ssh/authorized_keys2'

Then all you should need to do is test it:

 ssh <USERNAME>@<IP_ADDRESS>

You should get no password prompt (unless set), and as it seems to work on a machine with no Desktop Environments installed, it should also work in KDE

N.B.
And as noted in the comments, ssh-copy-id can be used to copy the file.


Ubuntu won't start with "device descriptor read/64, error -32", what does this message mean? I am running Ubuntu 12.04 on my computer. Yesterday I tried to change the splash screen according to the instructions here here.Then I installed gdm.  After that I restarted the computer and the splash screen was changed. I enabled automatic login. Then I restarted again and went into windows 7 and again came back to Ubuntu.
This time Ubuntu was stuck up at a black screen with the following message:

                                    Ubuntu 12.04
                                ....*starting virtualBox kernel modules       [OK]
*stopping cold plug devices       [OK]
                                  [OK]*Stopping log initial device creation
                                  [OK]*Starting configure network device security
                                  [OK]*Starting save udev log and update rules
                                  [OK]*starting configure virtual network devices
                                  [OK]*Stopping configure virtual network devices
                                  [OK]*Stopping save udev log and update rules [OK]

                                      *Starting Network connection manager wicd
    *Starting the winbind daemon winbind                                            [OK]S
aned disabled:edit /etc/default/saned                                               [OK]S
tarting HWActivator *[done]
                               *Starting TiMidity++ALSA midi emulation...          [OK][
23.184121] usb 1-1.5:device descriptor read/64, error -32
[23.359845]usb 1-1.5:device descriptor read/64, error -32

I have reinstalled Ubuntu now, but I just want to know what caused the problem.

[23.359845]usb 1-1.5:device descriptor read/64, error -32

This is a hardware error you see it with some USB device. Is at random as it could get.

  USB has an over-current protection, which gets triggered when power consumption from the port is too high. (Triggering this error)

You can try unplugging all devices and trying again after a minute or two.

Sources:

http://paulphilippov.com/articles/how-to-fix-device-not-accepting-address-error
https://web.archive.org/web/20150802161132/https://forum.manjaro.org/index.php?topic=5423.0

I have installed the XCP-NG server in one laptop and my system was not booting either due to this error: USB 3-1 device descriptor read/64, error 32

I tried a lot of things. Even disconnecting the USB ports.

Until I recalled that I have removed the default SR repository for Xen. So I went to check the /etc/fstab file

[root@xcpserver2 ~]# cat /etc/fstab
LABEL=root-jvgtod    /         ext3     defaults,noatime   1  1
LABEL=swap-jvgtod          swap      swap   defaults   0  0
LABEL=logs-jvgtod    /var/log         ext3     defaults,noatime   0  2
/opt/xensource/packages/iso/XenCenter.iso   /var/xen/xc-install   iso9660   loop,ro   0  0

The default SR repository was trying to get the content of the last line. I tried to comment it and it worked!! :) I concluded that this error it also showing when there is a problem at the /etc/fstab file. I hope it helps!

So, my /etc/fstab file looks like this now and it solved the issue:

[root@xcpserver2 ~]# cat /etc/fstab
LABEL=root-jvgtod    /         ext3     defaults,noatime   1  1
LABEL=swap-jvgtod          swap      swap   defaults   0  0
LABEL=logs-jvgtod    /var/log         ext3     defaults,noatime   0  2
#/opt/xensource/packages/iso/XenCenter.iso   /var/xen/xc-install   iso9660   loop,ro   0  0


Trying to install ncview on Ubuntu 12.04 The package ncview requires X development headers and headers.

On Ubuntu 12.04 I tried the following command sudo apt-get install xorg-dev
and I got the below error message.

This looks like a very long list of packages. Is there something I am missing ?

Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 xorg-dev : Depends: libdmx-dev but it is not going to be installed
            Depends: libfs-dev but it is not going to be installed
            Depends: libx11-dev but it is not going to be installed
            Depends: libxaw7-dev but it is not going to be installed
            Depends: libxcomposite-dev but it is not going to be installed
            Depends: libxcursor-dev but it is not going to be installed
            Depends: libxdamage-dev but it is not going to be installed
            Depends: libxext-dev but it is not going to be installed
            Depends: libxfixes-dev but it is not going to be installed
            Depends: libxfont-dev but it is not going to be installed
            Depends: libxft-dev but it is not going to be installed
            Depends: libxi-dev but it is not going to be installed
            Depends: libxinerama-dev but it is not going to be installed
            Depends: libxkbfile-dev but it is not going to be installed
            Depends: libxmu-dev but it is not going to be installed
            Depends: libxmuu-dev but it is not going to be installed
            Depends: libxpm-dev but it is not going to be installed
            Depends: libxrandr-dev but it is not going to be installed
            Depends: libxrender-dev but it is not going to be installed
            Depends: libxres-dev but it is not going to be installed
            Depends: libxss-dev but it is not going to be installed
            Depends: libxt-dev but it is not going to be installed
            Depends: libxtst-dev but it is not going to be installed
            Depends: libxv-dev but it is not going to be installed
            Depends: libxvmc-dev but it is not going to be installed
            Depends: libxxf86dga-dev but it is not going to be installed
            Depends: libxxf86vm-dev but it is not going to be installed
            Depends: xserver-xorg-dev but it is not going to be installed

Quoted from Ncview on Ubuntu (with a couple formatting and capitalization changes):

  Your hint is fine, but you still have to install some packages first:

sudo apt-get install libxt-dev xaw3dg-dev
sudo apt-get install libnetpbm10-dev # ppm support

  In addition to this is two links are needed:

cd /usr/include/X11 ; ln -s Xaw3d Xaw
cd /usr/lib/        ; ln -s libXaw.so.7 libXaw.so

You should also install xorg-dev:

sudo apt-get install xorg-dev

Continuing with those instructions:

  (This looks inconsistent as we mix Xaw3d header with the Xaw lib, but
  anyway) after that

./configure --x-libraries=/usr/X11R6/lib
make
make install

  does the job!


Can't move files to the trash When I want to move a file to the Trash, Nautilus give me an message saying this:

  You can't move example.file to the trash can. Do you want to remove it immediately?

I can give you this photo but it's in Spanish

I had the same problem and found out that the trash had the wrong owner. So I deleted the trash folder and made a new one.

Steps:

cd ~/.local/share
ls -ld Trash
Now you have to look if it has the right owner.
If the owner is root - delete the folder with: sudo rm -r Trash
mkdir -m 700 Trash

Hope I could help and that it solved your problem, because it did for me.

I have tried all above solutions but they didn't worked for me. Then I just gave all the permissions to Trash folder and it worked. Follow the below steps-
Step 1: Open Terminal.
Step 2: Run the command- cd /home/username/.local/share
Note that you have to replace "username" with your username eg. for me it is-   cd /home/willson/.local/share
Step 3: Give all the permissions to Trash folder using Command-
sudo chmod -R 700 Trash/
Now your deleted files will move to Trash.


Some Steam games won't start up, gameoverlayrenderer.so error I'm using an Intel HD Graphics card.

For the last few days, for an unknown reason, some Steam games won't start up, including Half-Life and Garry's Mod.

Here's the shell output with Half-Life:

Game update: AppID 70 "Half-Life", ProcID 28160, IP 0.0.0.0:0
ERROR: ld.so: object '/home/s0/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/s0/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 28164 != 28163, skipping destruction (fork without exec?)
ERROR: ld.so: object '/home/s0/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/s0/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Generating new string page texture 399: 128x256, total string texture memory is 3,84 MB
Using breakpad crash handler
Setting breakpad minidump AppID = 70
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198056430718 [API loaded yes]
Steam_SetMinidumpSteamID:  Setting Steam ID:  76561198056430718
ERROR: ld.so: object '/home/s0/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
assert_20150621233104_1.dmp[28171]: Uploading dump (out-of-process)
/tmp/dumps/assert_20150621233104_1.dmp
/home/s0/.local/share/Steam/SteamApps/common/Half-Life/hl.sh : line 38 : 28166 Segmentation fault  (core dumped) ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} $@
Game removed: AppID 70 "Half-Life", ProcID 28166

I've tried removing all the Steam Runtime libraries, but nothing changed.

You need the 32 bit libGL drivers (libgl1-mesaa-dri:i386).

You can issue this command via terminal,

sudo apt-get install libgl1-mesa-dri:i386

If you already have it, try reinstalling,

sudo apt-get install --reinstall libgl1-mesa-dri:i386

Restart your computer and try again.

If that doesn't work, check out this: Error loading libGL.so.1


Slow Internet On Ubuntu 16.04 I'm running the newest version of Ubuntu 16.04 LTS on my HP laptop dual-booting along with Windows 10.

On Windows, the Wi-Fi connection works as expected and is relatively fast, but on Ubuntu it's very slow and takes minutes just to load one webpage. What could be causing this? Could it be a driver issue, and if so how do I update it?

Feedback appreciated. Thanks in advance.

Connect to ethernet, and run sudo apt update && sudo apt upgrade && sudo apt dist-upgrade

This command updates your system fully. That way, if there is a fix already in the new kernels (which get updated extremely frequently) you get it.


how to change 'nautilus's default directory path to a specific folder how to change 'nautilus's default directory path to a specific folder when it runs from terminal command? (i. e. :~$ nautilus (It opens default 'Home' folder). Changes made in /usr/share/applications/nautilus-home.desktop and in /usr/share/applications/nautilus.desktop files, still it opens the default home folder. (OS ubuntu 14.04 & 16.04)

If you want to open Desktop

sudo nautilus Desktop

If you want to open root dir

sudo nautilus /

Specification is

sudo nautilus yout_dir


How can I tell, from the command line, whether the machine requires a reboot? When you install certain updates (e.g. a new kernel) in Ubuntu Desktop, you get an indication that a reboot is required (in Lucid, the logout icon turns red).

How can I check, from the command line, whether an Ubuntu server requires a reboot?

I could grep for 'System restart required' in /etc/motd, but I'd like a solution that's more elegant.  Also, I want a solution that works in older releases, e.g. Hardy (8.04 LTS).

You can simply check if the file /var/run/reboot-required exists or not.

For example, any of these would tell you "no such file" or "file not found" if you do not need to reboot, otherwise (if you need to reboot) the file would exist and these commands would show information about the file:

file /var/run/reboot-required
stat /var/run/reboot-required
ls /var/run/reboot-required

In a bash script, you can use:

#!/bin/bash
if [ -f /var/run/reboot-required ]; then
  echo 'reboot required'
fi

Not an answer to the question, but a caveat regarding several of the responses:  /var/run/reboot-required is not a reliable source of whether or not a reboot is actually required.

Simple test:  when a new kernel becomes available, install it, reboot.
After the reboot, run apt autoremove to get rid of some old, no longer required, kernels.  After you've run that, it will state that a reboot is required, which is complete nonsense.


How can I install Ubuntu on Windows 10 laptop with two hard drives on separate drives? I have a brand new Windows 10 laptop that has two drives, a 512 SSD and a 1 TB hard drive. I would like to use the entire 1 TB drive to install Ubuntu on. I am new to Linux (just re-purposed an old Windows laptop to be all Linux two weeks ago and love it, but it is limiting because it is a 32-bit system.) I really need a 64-bit Linux machine for graduate school, but need Windows for work. I am afraid to make a mistake and risk loosing all the Windows installations I need for work. Is there a foolproof (yes I'm a Linux nube) step-by-step process? Thank you.

Please don't do VM and all. Just go for normal dual-boot installation. If someone says, dual-boot is messy, just ignore them!

Refer Dual Boot Windows 10 and Linux Ubuntu on Separate SSD wherein I have answered in great details regarding  installation of dual-boot.

But the answer was given for configuration involving two separate SSDs, but it does not stop you using the same answer for a single SSD scenario as in your case.

You can divide your 512 GB SSD into two, one partition (312 GB) for Windows-10 installation and the other one (200 GB) for Ubuntu 18.04 64-bit AMD. You will be good!

Note-1: you can effectively use your 1 TB hard disk to share between Windows 10 and Ubuntu 18.04

Note-2: you may go for two or three NTFS partitions on 1 TB hard disk and later mount them on Ubuntu 18.04 so that you can use them effectively!

Note-3: @Annabanana, you voiced few concerns but it seems vague.
Please clarify the following:

The laptop has one 512 GB SSD and one 1 TB hard disk.
You have already installed windows-10 on 512 GB SSD.
You are keeping all your programs and data under 512 GB SSD.
Except your unsubstantiated fear of making some mistake and
loosing all  data, you are really interested in dual-booting Ubuntu
18.04 64-bit AMD with Windows 10.
How much of free space is left in 512 GB SSD?
Are you using 1 TB hard disk? In which way?

It is seems that you have already started using 512 GB SSD not only for programs but also for data. If not, you would not be so generous to dedicate entire 1 TB hard for Ubuntu 18.04 installation! You must be a great philanthropist!

I am glad to deal with a Data analyst because I can easily reason with a data analyst.

I want you to be more rational in your decision to allocate entire 1 TB hard disk for Ubuntu 18.04 installation. If so, at some point of time later where will you keep your data? Is it in 512 GB SSD? It is a bad choice! Never keep data in SSD.

I would suggest you to go for partitioning 512 GB SSD into two, and you need to install Ubuntu 18.04 on the second partition because the first partition has a pre-installed windows-10.

You have already thrown some confusing conclusions. You said that you want a 100% all linux system for big data analysis. You sound as if it needs 1 TB hard disk Ubuntu 18.04 installation for such a huge data analysis!

For data analysis, what you really need is a powerful RDBMS software with data warehouse capabilities with enough disk space. That is it! Definitely not a huge Ubuntu 18.04 installation on a 1 TB hard disk!

Let me summarize your computer system configuration needed for a good data analysis:

Change drive letter for 1 TB hard disk. If it is 'D', then assign an
unused drive letter let us say 'G'.

Refer the link to change the drive letter of 1 TB hard disk:
https://www.windowscentral.com/how-assign-permanent-drive-letter-windows-10
Create a partition in your 'C' drive. i.e. you can shrink 'C' drive
and create a new partition with that redundant space by using Disk
Management for a size of 200 GB.

Refer the following link to carve out a new partition from an
existing 'C' drive:
https://www.disk-partition.com/articles/how-to-partition-c-drive-3889.html
Note down the device information of the newly created partition. Is
it /dev/sdb or /dev/sdc?   What is the drive letter of new
partition? is it 'D'?
Restart your computer and log into system. If you are successful,
then this implies that your Windows-10 pre-installation is safe and
sound and working great, after cutting out a new partition!
Install Ubuntu 18.04 on the newly created 200 GB partition.

I have already given answer to create bootable USB stick using
Rufus, you refer
What does it mean to make a bootable LiveUSB?

To install Ubuntu 18.04 refer my answer
Dual Boot Windows 10 and Linux Ubuntu on Separate SSD
Change drive letter for 1 TB hard disk, back to 'D'

Refer
https://www.windowscentral.com/how-assign-permanent-drive-letter-windows-10
Divide your 1 TB hard disk into two or three NTFS partitions and
name/label the partitions sensibly (names/labels should be
contiguous and no gaps)
Mount all the NTFS partitions of 1 TB hard disk on Ubuntu 18.04
which are needed for your data analysis tasks.

If you need my help in setting up mounting and so on, please feel
free to contact me.
You need to install Oracle 18c (Enterpise Edition) for your data
warehouse activities such as mining, drilling and so on.

I have already answered in great details about installation of
Oracle 18c (Enterprise Edition) on Ubuntu 18.04
How to install Oracle 18c (Enterprise Edition) on Ubuntu 18.04?

Good Luck!

A virtual box linux guest is a good option on Windows hosts.   https://www.virtualbox.org/

xUbuntu uses the lighter xfce desktop and you can even have multiple linux enviroments. . . and those enviroment are portable.

You really don't need to do a messy dual boot, but if you do allocating a whole drive is defiantly the best approach.

I find this very effective, you can allocate all the system resources and run in full screen.  Also the VM can be backed up, cloned and migrated even between Windows and linux hosts. When creating virtual disks using LVM is worth the effort too.

Maybe make this your first option not your last one. All your eggs are in one basket when you commit to bare metal.

Windows is still available for compatibility, but equally you could (and probably should) run it in a VM under linux.


ubuntu 14.10 too slow to open VLC player my ubuntu 14.10 is too slow .It takes about a min to open a video in VLC media player.
Even other software are too slow to open. My Laptop is new & has high end specifications.

System Settings > Software & Updates > Additional Drivers Tab
"Using X.Org X server..." must be selected. Select one of the others. A loading bar will be displayed. When it loads you will see a black screen. Then you will see the Ubuntu 14.10 screen. Reset the computer. If it's still slow choose one of the other drivers.


Annoying flickering in 16.04 LTS - Chrome I've upgraded from 4.4.0 to 4.4.8 and then 4.5.2 on Ubuntu 16.04 LTS 64-bit, and it's still happening.

At 4.5.2 it's even more frequent, and mainly in Chrome (haven't tried firefox or opera just yet). Every time I open a new web page. Any way to fix that, or is it a bug?

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
04:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus XTX [Radeon HD 8890M / R9 M275X/M375X] (rev 81)

Cheers.

After some research, I found a solution to this problem. It is working for me now.

I disabled hardware acceleration for my browser from

Settings > Advance Settings > System > uncheck the hardware acceleration

Hope this works on your machine.

I am using google-chrome-stable Version 50.0.2661.94 (64-bit) on Ubuntu 16.04

-----EDIT----

If you encounter scrolling lag and screen tear. Do as suggested by Amos Folarin in the comment below:

Go to: chrome://flags/#smooth-scrolling and Enable it.

Disabling hardware acceleration will degrade your browsers performance for the pages having animations and other processor intensive tasks.

However, if you don't have any GPU installed in your system then the approach of disabling hardware acceleration suggested by sgiri is best for you.

But I have an NVidia GPU installed in my laptop and I am using Ubuntu desktop OS.
So I installed the proprietary binary driver (version 352.63).  It worked for me, hope will work in your Ubuntu system too.


Canon MX 892 printer on USB recognized not working On Ubuntu 12.04, trying to install a Canon PIXMA MX892 printer, connected by USB cable. Ubuntu now recognizes printer (as Canon MX880 series FAX), but printing test page goes nowhere except endless "processing - rendering completed".

Try going on Canon's site and manually installing the correct driver for your printer. It may be that Ubuntu has the wrong driver or none at all (though in the latter case I don't think it would recognize it).


Wifi connected but Internet drops frequently I spent more than 2 weeks searching for a solution to the following problem without success:

On my Ubuntu 18.04, I am connected to a Wifi (named "SmartCampus") but the internet keeps dropping frequently (I don't know exactly the intermittent time interval, but I think it is variable. For a rough estimate: between 5 min to 15).

However, I can confirm the following:

This happens only with this wifi "SmartCampus".
I am also connected to this Wifi using my phone but everything is fine and internet is always available.
In the first days I try to turn off Wifi then reconnect to get internet working but recently I found that I don't need to turn off wifi but only by displaying the list of available wifis As follows

When I do that , the internet works again.

Could you please tell me what is the problem? What can I do to fix this, because that's very annoying.

Here is the result of wireless-info script: wireless-info-report

I appreciate your help

As chili555 said the problem is that there are a great deal of instances of SmartCampus. Only one of them is of any real use to you so you should bind your connection to it using the instructions  here Ubuntu connect drops. Worked for a while then started dropping again

I had faced same problem. You have not mentioned if you are using NetworkManager.service. In my case not only wifi but Ethernet speed was also reducing frequently. The work around that worked for me I am sharing here.

I installed Wicd using sudo apt-get install -y wicd.

After that the problem almost gone. When ever I face reduction in speed I run following:

sudo systemctl stop NetworkManager.service

sudo systemctl start NetworkManager.service

Hope this will help you.


How do I run Nautilus as administrator, and go to the next command line? I'm on Ubuntu 14.04.

Here is what happens when I run "nautilus /". The program runs, and the terminal goes to the next command line. Perfect.(http://postimg.org/image/9cpyfjqvp/)

But here is what happens when I try to run "sudo nautilus /". The program runs, but an error message displays, and the terminal does not go to the next command line. (http://postimg.org/image/3ptli2od1/)

Here is what happens when I try to go to the next command line without closing the program, by using Control+Z. The program freezes solid, and needs to be force-quit. Well that's even worse.(http://postimg.org/image/m6o08w4b9/)

Here is what happens when I then try "sudo nautilus /&". The program literally doesn't even run, then displays an error message, and fails to leave me on a command line.(http://postimg.org/image/pg2ffcset/)

I try Control+C, then "exit", only to find that there are apparently stopped jobs. That's… odd, but I figure it might be worth taking a screenshot of, in case it means something.(http://postimg.org/image/3uxcrqvo5/)

After restarting my computer, "sudo nautilus /&" literally just does nothing. It doesn't even ask me for my password, or give me an error message, or anything.(http://postimg.org/image/cscab8dbl/)

But "sudo nautilus /" apparently still works, with the same problems as before.(http://postimg.org/image/7icu68fcx/)

After exiting the program using the upper left X-button, a bunch of error messages are pumped into the terminal window, but I am fortunately dropped off on a new command line.(http://postimg.org/image/6vdxgpigx/)

Oddly, this time, I can still use "sudo nautilus /".(http://postimg.org/image/re8tlrwe9/)

Exiting the program using Control+C produces zero error messages, however using "exit" afterward reveals another stopped process.(http://postimg.org/image/pyfrxwox3/)

How do I run Nautilus as administrator from the terminal, and go to the next command line?!

gksudo seems appropriate:

gksudo nautilus / &

From the gksudo man page:

   gksu  is a frontend to su and gksudo is a frontend to sudo.  Their pri‐
   mary purpose is to run graphical commands that need  root  without  the
   need to run an X terminal emulator and using su directly.

Note: if gksudo is not available for your release of Ubuntu you can get it with:

sudo apt-get install gksu

Try xdg-su -c "nautilus /" &

I use xdg-su whenever I run into problems opening gui applications with sudo

From xdg-su --help:

xdg-su ? run a GUI program as root after prompting for the root password

Synopsis

xdg-su [-u user] -c command

Not sure if xdg-su comes out of the box with ubuntu. If not, try what Sylvain Pineau suggested, gksudo


Installing VMwarePlayer on Ubuntu 12.04 I get a Error "one or more of your processors does not have the necessary 64 bit extensions to run Vware Virtual Machines" What does this mean?
My sys 32-bit, Ubuntu 12.04 32-bit, VMware 5.0.1 32-bit.
After typing in the consol "gksudo bash ./VMware-Player-5.0.1-894247.i386.bundle  press enter. extracting VMware Installer...done. Then i get the error message.

You should enable virtualization in your BIOS (when you boot your computer press F2 or DEL usually).

This will allow VMWare, or any other virtualization program (Virtualbox, KVM, XEN, ...) to access your processor directly.
Make sure your CPU actually supports virtualization.
I have an atom, and those do not support virtualization for example.
On the other hand I have an AMD bulldozer, and those support virtualization, but by default it's disabled in the bios.

Ahh, i see the problem. You're not running a 64-bit version of Ubuntu. You also don't have a 64-bit chipset, so that's probably why. I would recommend getting a 64-bit capable motherboard and also a 64-bit chipset.

Just a tip: The chipset should be an Intel chipset. And I would also recommend getting a 64-bit CPU as well.

I would recommend using Intel as they've been around for awhile and they know their stuff, and Ubuntu supports Intel most.


Make Command Not Found I am having a problem that doesn't seem to be common based on searching various forums.

I cannot run the Make command.

Message:

The program 'make' is currently not installed. You can install it by typing:
sudo apt-get install make

So do this:

sudo apt-get install make
Reading package lists... Done
Building dependency tree
Reading state information... Done
make is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

But then when I try to run Make I get the same message.  What's up?

Edit: Ubuntu 12.04 64bit Desktop fresh install.

Run this command to install make and all the packages needed to build your code.

sudo apt-get install build-essential

Run command:

sudo apt-get update

to update package lists. After this,

sudo apt-get install make


How to create a local APT repository? I would like to build my own local repository on my LAN, so that machines on the LAN can update and upgrade from it. I want to download the packages and store them on my local server so that I can update, upgrade, install, etc, from it without using the internet.

From the Ubuntu Help wiki:

  There are 4 steps to setting up a simple repository for yourself

  1.Install dpkg-dev
     2.Put the packages in a directory
     3.Create a script that will scan the packages and create a file apt-get update can read
     4. Add a line to your sources.list pointing at your repository

  Install dpkg-dev

  Type in a terminal

sudo apt-get install dpkg-dev

  The Directory

  Create a directory where you will keep your packages. For this
  example, we'll use /usr/local/mydebs.

sudo mkdir -p /usr/local/mydebs

  Now move your packages into the directory you've just created.

  Previously downloaded Packages are generally stored on your system in
  the /var/cache/apt/archives directory. If you have installed
  apt-cacher you will have additional packages stored in its /packages
  directory.

  The Script update-mydebs

  It's a simple three liner:

#! /bin/bash
 cd /usr/local/mydebs
 dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

  Cut and paste the above into gedit, and save it as update-mydebs in
  ~/bin. (the tilde '~' means your home directory. If ~/bin does not
  exist, create it: Ubuntu will put that directory in your PATH. It's a
  good place to put personal scripts). Next, make the script executable:

chmod u+x ~/bin/update-mydebs

How the script works:

  dpkg-scanpackages looks at all the packages in mydebs, and the output is compressed and written to a file (Packages.gz) that apt-get
  update can read (see below for a reference that explains this in
  excruciating detail). /dev/null is an empty file; it is a substitute
  for an override file which holds some additional information about the
  packages, which in this case is not really needed. See deb-override(5)
  if you want to know about it.

  Sources.list

  add the line

deb file:/usr/local/mydebs ./

  to your /etc/apt/sources.list, and you're done.

  CD Option

  You can burn the directory containing the debs to a CD and use that as
  a repository as well (good for sharing between computers). To use the
  CD as a repository, simply run

sudo apt-cdrom add

  Using the Repository

  Whenever you put a new deb in the mydebs directory, run

sudo update-mydebs
sudo apt-get update

  Now your local packages can be manipulated with Synaptic, aptitude and
  the apt commands: apt-get, apt-cache, etc. When you attempt to apt-get
  install, any dependencies will be resolved for you, as long as they
  can be met.

  Badly made packages will probably fail, but you won't have endured
  dpkg hell.

I have done using apt-mirror.

Its good but you need to have more hard drive space as it will be syncing with repos server.


How to switch to a desired layout using a command? I often press alt+F2 or Super+R to quickly run something. I know where to edit keybindings, so I can add an extra-action (a command to execute) to those hotkeys. Action that I want to add is switch-to-english-layout action. Here's my localectl status output, if something else can help you, request it in comments.

   System Locale: LANG=ru_RU.UTF-8
       VC Keymap: n/a
      X11 Layout: us,ru
       X11 Model: pc105
     X11 Variant: ,
     X11 Options: grp:alt_shift_toggle,grp_led:scroll

UPD: I have no ibus installed and I hope it's not neccessary to invoke this buggy piece of crap just to switch the layouts

Since you're using the default XInput instead of ibus or such.

You can run setxkbmap [your layout] from a terminal window or in console mode.

How it works for me is: System Settings->Text Entry. Here you can set any key-combo (default: Super+Space) for switching the next/previous language layout. And it shows the language in the top-right corner, so this one worked for me.


Error while loading shared libraries, but I've installed the libraries I've been trying to get Psychonauts to run on my computer for over a month now. I previously posted here, but even after following those directions I am still stuck. I have successfully installed the missing package that Psychonauts cites when as the reason for not running:

usagiyojimbo@Usagi:~/psychonauts$ sudo apt-get install libstdc++6
Reading package lists... Done
Building dependency tree
Reading state information... Done
libstdc++6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

However, when I try to run the program it still responds exactly the same way. Here is the ls:

usagiyojimbo@Usagi:~/psychonauts$ ls
DisplaySettings.ini  libSDL-1.2.so.0             psychonauts.png
Documents            Psychonauts                 README-linux.txt
icon.bmp             PsychonautsData2.pkg        uninstall-psychonauts.sh
libopenal.so.1       Psychonauts Manual Win.pdf  WorkResource

I have been doing this:

usagiyojimbo@Usagi:~/psychonauts$ ./Psychonauts
./Psychonauts: error while loading shared libraries: libstdc++.so.6: cannot open
shared object file: No such file or directory

What am I doing wrong?

I think Psychonauts is a 32bit application. You will need to install:

sudo apt-get install lib32stdc++6

Try to run

$ strace ./psychonauts

and watch out for open() calls for libstdc++. And then you work from that.


apt-get not working, how can i reset /etc/apt/sources For some reason I cannot install new applications and also not run apt-get update on ubuntu 14 server

When i run apt-get update i get the following:

apt-get update
Err http://gb.archive.ubuntu.com trusty InRelease

Err http://security.ubuntu.com trusty-security InRelease

Err http://gb.archive.ubuntu.com trusty-updates InRelease

Err http://gb.archive.ubuntu.com trusty-backports InRelease

Err http://security.ubuntu.com trusty-security Release.gpg
  Could not resolve 'security.ubuntu.com'
Err http://gb.archive.ubuntu.com trusty Release.gpg
  Could not resolve 'gb.archive.ubuntu.com'
Err http://gb.archive.ubuntu.com trusty-updates Release.gpg
  Could not resolve 'gb.archive.ubuntu.com'
Err http://gb.archive.ubuntu.com trusty-backports Release.gpg
  Could not resolve 'gb.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'gb.archive.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Could not resolve 'gb.archive.ubuntu.com'

W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg  Could not resolve 'gb.archive.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.

I have a net connection as pinging various IPs works.. is there a safe way of resetting the factory default (although i have not modified the list) the /etc/apt/source list?

Thanks,
john

Ensure the nameserver IPs in /etc/resolv.conf file are pinging from your machine.
If not try using a reliable name server like the Google's 8.8.8.8 and 8.8.4.4.
Try putting the nameserver IP found in resolv.conf in your /etc/network/interfaces file as nameserver <IP of the DNS server> and restart the network by running /etc/init.d/networking restart and see if that works.
If none of them works, try changing the order in /etc/nsswitch.conf, line host: put the dns first. hosts:  files dns mdns4_minimal [NOTFOUND=return] mdns4

You can find the discussion on a similar question here.

If you have a firewall such as UFW, you can either add an exception, or temporarily disable the firewall. Sometimes the firewall will block outgoing requests, so no matter what you change about the nameserver config, it won't work unless outgoing traffic is allowed by the firewall or the firewall is disabled.


could not exec dpkg! e: sub-process /usr/bin/dpkg returned an error code (100) - I cant fix it I have tried installing PHPMyAdmin via terminal by using the next command: sudo apt-get install phpmyadmin, the results of the terminal are as shown:

> root@ns382469:~# apt-get install phpmyadmin Leyendo lista de
> paquetes... Hecho Creando árbol de dependencias Leyendo la información
> de estado... Hecho Se instalarán los siguientes paquetes extras:
> dbconfig-common libltdl7 libmcrypt4 php5-mcrypt Paquetes sugeridos:
> libmcrypt-dev mcrypt www-browser Se instalarán los siguientes paquetes
> NUEVOS:   dbconfig-common libltdl7 libmcrypt4 php5-mcrypt phpmyadmin 0
> actualizados, 5 se instalarán, 0 para eliminar y 0 no actualizados.
> Necesito descargar 6.441 kB de archivos. Se utilizarán 17,5 MB de
> espacio de disco adicional después de esta operación. ¿Desea continuar
> [S/n]? S Des:1 http://debian.mirrors.ovh.net/debian/ wheezy/main
> libltdl7 amd64 2.4.2-1.1 [352 kB] Des:2
> http://debian.mirrors.ovh.net/debian/ wheezy/main libmcrypt4 amd64
> 2.5.8-3.1 [83,2 kB] Des:3 http://debian.mirrors.ovh.net/debian/ wheezy/main dbconfig-common all 1.8.47+nmu1 [487 kB] Des:4
> http://security.debian.org/ wheezy/updates/main php5-mcrypt amd64
> 5.4.39-0+deb7u2 [16,1 kB] Des:5 http://debian.mirrors.ovh.net/debian/ wheezy/main phpmyadmin all 4:3.4.11.1-2+deb7u1 [5.503 kB] Descargados
> 6.441 kB en 0seg. (8.520 kB/s) Preconfigurando paquetes ... Could not exec dpkg!

E: Sub-process /usr/bin/dpkg returned an error code (100)

Note: My system is set to Spanish Language.

When I try to install somethink I have this same error when running the sudo apt-get install command.

Edit

After following Geppettvs D'Constanzo advice on permissions on dpkg I receive this in the terminal:

Root@ns382469: ~ * chmod 755/usr/bin/dpkg
chmod: it is not possible to accede to "/usr/bin/dpkg": the file or the directory does not exist

Any help is appreciated.

A quick search on several support places returned many posts talking about dpkg permissions which is solved by providing the proper permissions as mentioned in this site: https://thelowedown.wordpress.com/2010/04/16/debian-apt-get-installs-fail-with-dpkg-error-code-100/

I am going to reproduce the steps over here for your convenience.

  The Advanced Package Tool, or ‘apt’ on Debian-based systems is the
  mainstay for installing, upgrading and removing packages.  Behind the
  various apt tools, the Debian package manager, dpkg, carries out the
  heavy lifting.  You might wish to install new versions of packages
  periodically with the sequence:

apt-get update
apt-get upgrade

  Recently, this and any other upgrade failed on Debian Lenny with:

E: Sub-process /usr/bin/dpkg returned an error code (100)

  A quick look at /usr/bin/dpkg revealed the following!

---------- 1 root root 365324 2010-03-08 15:35 dpkg

  A quick ‘chmod 755 /usr/bin/dpkg’ fixed the problem!  I know I did not
  change the permissions, so it must have been a recent patch.
  Hopefully this gets fixed quickly!

I suggest you to have a look (as mentioned in the page) to dpkg permissions in order to see if this is your case. You can do it by running ls -l /usr/bin/dpkg

It should return something like:

geppettvs@T400:~$ ls -l /usr/bi/dpkg
-rwxr-xr-x 1 root root 261840 jun  9  2014 /usr/bin/dpkg

Please edit your question in order to add the details of this last command and if you see different file permissions, try the solution previously mentioned in order to attempt fixing your error.

If you need further help don't hesitate to drop a comment over here.

Good luck!


How do I start applications automatically on login? How can I make an application automatically start when I have logged in?

20.04 and later

If not yet done by default install gnome-startup-applications
Search and open "Startup Applications"

click add to enter the command including options of your application as you would run it from terminal (you may have to give in the full path if it runs from a non-standard location)

This will add a .desktop file in your ~/.config/autostart

14.04 and later

Open the Dash and search for "Startup Applications"

Now click on Add and give in the command to run the application. This can be found in Main Menu if installed (see below)

Using Main Menu (alacarte) to find the terminal command to run a given program:

Firstly open the program 'Main Menu' (type Menu in the Dash)

Now select the program which you want to add to startup and click on properties .

Now note the command for that program .

Non GUI approach
Advanced users may want to manually put a .desktop file in ~/.config/autostart to run applications after a user login. This may have following content:
[Desktop Entry]
Type=Application
Name=<Name of application as displayed>
Exec=<command to execute>
Icon=<full path to icon>
Comment=<optinal comments>
X-GNOME-Autostart-enabled=true

You may have to give this file execute permission.

Alt+F2, then gnome-help ghelp:user-guide?gosstartsession-2.

Click Run, wait a sec, and then follow the directions.


Prevening svn checkout list to be shown in terminal I wrote a python code and at some point it checks out using svn. I don't want to see the outputs of svn on my terminal screen. I heard that to block this, I should use /dev/bin or something like that, but I don't know how could I do that and what should I do. Is there anyone to help me?

You can redirect the output of svn command to /dev/null using:

svn <command> [options] [args] 2>/dev/null

svn co -q URL in most cases output nothing to stdout


Unison repeat=watch file limit? I'm running Ubuntu 14.04, when trying to sync a directory with unison using the option repeat=watch. The directory contains ~125K files but I'm abutting a limit on the number of files unison can handle. This is the error I receive:

  Fatal error: Server: Filesystem watcher error: cannot add a watcher: system limit reached.
  The watcher can be disabled by setting preference 'watch' to false.

I searched for more information by running unison with debug=all but these are the only lines I can find related to the error.

Any idea as to what system settings need to be changed to get around this limit?

I'm fairly certain that the problem isn't with Unison, but with inotify. When you use the option repeat=watch, Unison calls a helper program unison-fsmonitor which uses inotify to watch the filesystem for changes. It puts a "watch" on each file that you are syncing with Unison.

By default there is an upper limit on the number of watches a single user can evoke. On my machine that upper limit is only 8192. You can increase the number of watches by editing the file

/proc/sys/fs/inotify/max_user_watches

I would be a bit concerned that since you want to watch about 125k files and the default maximum is only about 8k, you might see a dramatic hit in performance if you increase the maximum by that much.

You can add the line watch = false to your unison profile, and it should work, although without the "benefits" of the watcher.


Dropbox desktop app on Ubuntu 14.04 does not sync correctly I've been using Dropbox for my development work (since I have 2 computers), and very recently I've noticed that any code that I write on my Ubuntu 14.04 computer does not sync to my mac. When I open the dropbox web app, it turns out that the new files/changes in existing files haven't synced to dropbox (web) itself.

I mean - all my code is stored in my dropbox folder itself, on both the ubuntu and mac computers. So there's no need to separately copy-paste files to the dropbox folder. The only way the sync finally works is when I restart the ubuntu computer at least twice. After the restart, the sync appears on both dropbox online, as well as the dropbox folder on the mac.

I've been through this question where the problem is that Dropbox doesn't sync at all, but mine is different.

Interestingly, this problem seems to be happening more often on my ubuntu computer ever since Dropbox started popping up the "Dropbox can't monitor the filesystem. Please run ..." notification. I did modify the /etc/sysctl.conf file, but the changes(100000 instead of 8192) seem to be overwritten after every restart. And I'm not even sure these two problems are related.

Can someone please help.

My Dropbox in my Ubuntu station was also unable to synchronize events....

What worked for me is:

uninstall Dropbox
Turn off the fire wall
Install Dropbox
Turn on the fire wall


Seriously, dconf, gconf, gsettings... How do I save my terminal settings? I'm trying to do something relatively simple that most of us have wanted to do at one time or another: Save my gnome-teminal settings.

I'm running 14.04 (desktop obviously). I've realized from my research that dconf, gconf, and gsettings have over the course of the last couple version bumps, been designated to store the settings for different aspects of Gnome/Unity.

If I ask all of the questions I have about these tools. It would spiral out of control, and I don't want to learn the internals of 3 tools (8 if you count gconftool, gconftool-2, gconfd-2, dconf-service, dconf-ibus, and the dconf database as individual tools)

My new goal is consolidate all of the settings into gsettings, as it contains the most existing settings.

Has this been done?

I've determined that I can unregister gconf schemas.

I've determined that gsettings operates on the dconf database with a much friendlier interface (i.e. the finest tab completion anyone could ask for in a command-line tool.)

Would there be any major caveats, aside from the time investment, to moving config from gconf to dconf, and just creating gsettings schemas for those settings... So that I can easily save my gnome-terminal settings, and any other UI preferences I wish to adjust that come up?

[Edit:]

Thanks to the comment by @Rinzwind below, I have decided to ignore gconf and found the settings for gnome-terminal. However it consists of only 2 keys, exec-arg, and exec.

Where can I find a list of all the keys I can add?

This is an old question but clearly still relevant.

Based on this useful post, here is how to backup/restore your GNOME Terminal settings; this can be used for instance when migrating from one computer to another.

* Please be advised * : this will overwrite the default Terminal profile on the new machine!

Make sure you're using the same profile name on both machines by renaming it under "Profiles" in the Preferences dialog and activate it if necessary (click on drop-down menu and select "Set as default")
On the source machine run this little script:

gprofile=$(gsettings get org.gnome.Terminal.ProfilesList default)
gprofile=${gprofile:1:-1}
gschema=org.gnome.Terminal.Legacy.Profile
gpath=/org/gnome/terminal/legacy/profiles:/:${gprofile}/
gsettings list-recursively ${gschema}:${gpath} > /tmp/term_profile.gsettings

Examine the profile backup file (/tmp/term_profile.gsettings) to make sure it looks sensible.  It might be useful to delete any unwanted settings that you don't want to carry across.
Copy the backup file across to the new computer, eg:

scp /tmp/term_profile.gsettings new-host:/tmp

Now run the following little script on the new computer; we'll start with a dry-run to have a chance to spot any unexpected stuff:

gprofile=$(gsettings get org.gnome.Terminal.ProfilesList default)
gprofile=${gprofile:1:-1}
gschema=org.gnome.Terminal.Legacy.Profile
gpath=/org/gnome/terminal/legacy/profiles:/:${gprofile}/
cut -f2- -d' ' /tmp/term_profile.gsettings | while read line; do
   key=$(echo $line | cut -f1 -d' ')
   value=$(echo $line | cut -f2- -d' ')
   echo "$key => $value"
   # commented out for dry-run:
   # gsettings set ${gschema}:${gpath} $key "$value"
done

Assuming the output looks good, repeat the above script but un-comment the gsettings set line.  Your changes (eg: palette change) should apply immediately to your running Terminal.

Tested on 19.10 but should work on some older (and possibly newer) versions too.

Note that this only takes care of the preferences found under "Profile"; assuming the relevant gsettings keys can be discovered, the technique should work to backup/restore them too.

Okay, so I found the file containing the gnome-terminal preferences.

They are located in a (what looks like XML) file at:

/usr/share/gnome-terminal/profile-preferences.ui

Since I haven't been able to figure out how to update this file through any of the settings managers. I went manual. You can save this file, and copy over the default on a fresh install, and never have to click through the GUI again.

Interesting side note, there are also a file in the folder called terminal.xml which appears to contain the menu items, with their associated actions. Additionally there is a file called keybinding-editor.ui which appears to contain the keybindings for the terminal. Definitely going to try to modify some options. Maybe a single row of options under ALT+(some number) so that you don't have to disable menu access to use the bash keyboard shortcuts.

If I end up having the time to add the terminal preferences to dconf/gsettings, I'll follow up with a link to the script.


How to install drivers for NVIDIA GT210? I've spent several hours on making my videocard work after upgrading Ubuntu to 12.04.
Nothing worked.

The latest attempts were:

Installing the 'official' driver (http://us.download.nvidia.com/XFree86/Linux-x86/340.32/NVIDIA-Linux-x86-340.32.run), but then the installation procedure complained about installed nouveau driver. I have tried to remove/uninstall this driver by:

putting nouveau on the modprobe blacklist (see: How do I disable the "Nouveau Kernel Driver"?) and
by deleting the package: apt-get --purge remove xserver-xorg-video-nouveau.
It didn't help; the installation procedure still detected a nouveau driver

I added the xorg-edges PPA:

sudo add-apt-repository ppa:xorg-edgers/ppa

then I installed the nvidia-graphics-drivers-340 (see http://www.ubuntuupdates.org/ppa/xorg-edgers) by this:

    $ sudo apt-get install nvidia-graphics-driver-340
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package nvidia-graphics-driver-340

How can I fix this?

I was having the same problem, and I fixed it by running the following commands in the terminal:

sudo apt-get purge nvidia* ## remove the previously installed proprietary driver
sudo reboot
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-340

That worked for me. Let me know how it goes for you.

12.04 is not the latest version. 15.04 is the latest version and instead of dist-upgrade I suggest a clean install. Backup all your data and clean install 15.04 and your drivers should be working just fine out of the box. If you find any problem then install again nvidia official drivers but it will work with the updated nouveu drivers included in 15.04.


Chrome mistakenly downloads localhost/wordpress pages, but Firefox doesn't I have Wordpress installed at http://localhost/wordpress

When I try and view a page in Chrome, it downloads the PHP file rather than showing the page. When I view in Firefox, everything works fine.

when I create localhost/test.php containing simply <?php echo "hello world" ?> it displays in both browsers.

Any ideas on what might be wrong?

$ dpkg -l | grep apache outputs: apache2, apache2-mpm-prefork, apache2-utils, apache2.2-bin, apache2.2-common, libapache2-mod-php5

This is likely due to a caching issue. Try clearing your browsers cache - then closing Chrome all together (Everything: all tabs and windows). This happens to me when I'm working on servers and make a change to either .htaccess or php module. I'll get the page download then my browser will remember that that.

Lastly restarting your Apache installation can help reset header information.

If you have downloaded the code from server to your local machine. Then it's because of .htaccess file. Clear the cache then rename .htaccess to say htaccess.txt. Then you should see the webpage this time. Now your links might not be working in wordpress. So to correct this go to admin http://localhost/(wordpress-folder-name)/wp-admin . In admin panel on left side bar click on settings>>permalinks then click on "save changes" button at bottom of page. This will create or re-write new .htaccess file. Done everything should work well.


File not marked as executable I'm trying to install a game that has a two-CD installation, and I get this error message:

  The file '/media/FREESPACE_1/Setup.exe' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the executable bit.

Since it's on a CD, it is a read-only file and therefore I cannot change the permissions. Any ideas how to solve this?

You can try starting wine from terminal, giving it the name of your executable as an argument:

cd /media/FREESPACE_1
wine ./Setup.exe

Another option would be to somehow remount the cdrom passing different "mode" parameter to isofs driver - by default mode is 0400, which is "owner read-only", i.e. "r------". You need to change it at least to 0500, i.e. "r-x------". So something along the these lines technically should help - however, I couldn't make it work in my brief testing:

sudo mount /media/FREESPACE_1 -o remount,exec,ro,mode=500

This is going to be a easy fix.

open terminal

 gksudo nautilus ( <<< be careful you will be using nautilus as root)

put in your password

go to your cdrom and right click  on setup.exe

goto permissions make the changes you need (check mark allow to run as executable ) close the property window and double click Setup.exe

Should work if wine and the game plays nice together.

Seeing that it didn't work you can also copy the cd to your hard drive and should be able to change  permissions of the files on your drive.


Why does my laptop overheat and discharge faster in Ubuntu than Windows? I am new to Linux. I have a Dell Inspiron 15 with a 1st generation Intel Core i3 and Ubuntu 12.10.

My laptop gets heated quickly which doesn't happen on Windows. Also the battery is discharged faster than in Windows. Please help.

most probably installing the correct VGA driver can reduce overheating. To install correct VGA driver

you need to do some simple things if your using ubuntu 12.10

first go to software center and type drivers.
in there find additional drivers. and install it.
after installation complete open it. it will search drivers for your VGA card. warning! do not close it. because additional drivers not working properly in 12.10 so once you close you cannot find it anywhere. then you must remove it and re-install it again through software center.
install all available VGA drivers for your machine.
after installation complete it will ask you to restart. you done!.
after restart go to Settings >  Details there you can see your VGA name and type.

This is kernel issue. You can reinstall a kernel of your choice through SW manager in ubuntu. I faced the same problem with ubuntu in my laptop and fixed it by reinstalling the same karnel that RHEL 6.4 uses. Hope the same will work fine for you.


Why does Abiword crash or behave oddly on Xubuntu? After spending hours composing a document on AbiWord it suddenly, for no apparent reason, said it needed to close and I lost all my work. Is this a common AbiWord problem, Linux problem or other?

Also any time I am typing, suddenly my last sentence or multiple paragraphs will be randomly slammed into the middle of my work? What's up with that?

Also would you recommend Mint XFCE over Xubuntu? I have a 100GB hard drive and only 1GB RAM which I assume the stock computer uses some of that, but how much I don't know.

Keep the zoom level at the 100% default, so AbiWord will have not too much graphics rendering to do.
Your problem with inserting the paragraphs in the middle is being caused by the middle button on the mouse which acts as a copy key to copy from the clipboard. If you are careful to not press the middle button of the mouse when scrolling, you should not have this problem.
You have made a good choice of operating system to match your hardware. Linux Mint is heavier than Xubuntu and may give you worse performance, especially when using the web browser, unless you use the lightweight MATE desktop environment.

To set the autosave time interval in AbiWord:

Select Edit -> Preferences -> Documents tab.
Put a check mark in the checkbox next to Auto Save.
In Interval set the number of minutes after which your document will be automatically saved.

Auto Save is enabled by default in AbiWord, and the default Auto Save Interval is preset to 5 minutes. The .bak~ extension is added to the filename when the document is autosaved so that AbiWord does not overwrite the last version of the file you saved deliberately. This should be left as the default (.bak~) unless you have a really good reason to change it.

If the document has not been created in a folder or saved before, AbiWord will autosave the backup document to your Home directory. After the document has been saved the first time, AbiWord will continue to autosave the .bak~ document to the same directory as the original document. The autosaved backup is a hidden file that can be displayed in the file manager by pressing the keyboard combination Ctrl+H.

I would depreciate Abiword. Try LibreOffice instead. sudo apt-get install libre-office It has equivalents of Microsoft Office's Word, Powerpoint, Excel, Database, and Formula Creation, as well as Drawing.