Remote access to Ubuntu desktop from Windows laptop

Use Teamviewer
To install TeamViewer on your Ubuntu system, follow these steps:

Download the TeamViewer DEB package from https://www.teamviewer.com/en/download/linux/.
If uncertain, pick the 64-bit package.

2.Open the teamviewer_15.x.yyyy_amd64.deb file with a double click.
The TeamViewer installation package will open in the Ubuntu Software Center.

Click on the Install button.
The Authenticate dialog box will open.

Enter the administrative password.

Click on the Authenticate button.

TeamViewer will be installed.
The status within the Ubuntu Software Center changes to Installed.


How to copy files with certain permissions to directory

Even if you correct your command substitution, as Melebius wrote, none of the commands will run, because none of them is correct.
You can use the following find command to achieve what you want:
find ~ -type f -perm 600 -exec cp {} $dirA \;

Note that the above command will recursively search your home directory for files with  600 permissions. If you want to restrict your search to files in the home directory only, you can add the -maxdepth 1 parameter before -type f.


You can purchase cloud support plans from Canonical which include support for Juju itself as well as select charms.  Inquire here:

http://www.ubuntu.com/management/contact-us


Link to (shortcut) is broken after reboot

This problem is occured because the link which you have created is on the drive which do not mount automatically on startup so first you need to change the mount options for that particular drive which you simply can do by just simply searching the 'Disk' and change the mount options turn off the User Session Default option.


How to install php http_chunked_decode on Ubuntu 16.04?

Try apt-get install php-pecl-http php-pecl-http-dev


search in subdirectories for all html files containing the tag

From the terminal, use the find command to find all the files ending in .html and use the grep command to filter the results to show only the names of files that contain the <abbr> string:

cd /path-to-dir ## change directories to the root directory that you are searching from
find . -name "*.html" -exec grep -l '<abbr>' {} +

The find command searches for files in a directory hierarchy recursively by default.

Or combine the two commands into a single command:

find /path-to-dir -name "*.html" -exec grep -l '<abbr>' {} +


How to remap caps lock to esc in Ubuntu 17.10 and terminator?

You could try the Gnome-tweak-tool, assuming you're running on gnome, if you're on unity, there is a unity-tweak-tool. Both can be installed using apt:

sudo apt-get update

&&

sudo apt-get install gnome-tweak-tool

OR

sudo apt-get install unity-tweak-tool

in the gnome tweak tool under 'Keyboard & Mouse' there is an option called 'Additional Layout' options, in here you can change capslock key behavior, mapping it to esc, as well as just about anything you want.

Here is a picture as to what it might look like


How do I add categories, shutdown and reboot icons to GNOME shell overview on Ubuntu 18.04?

Application categories

You can't without editing the source code. Early incarnations of Gnome Shell had such categories, but the feature was dropped.

You may functionally get close to this functionality by organizing your applications in application folders. The "official" way to do this is pretty hidden, and involves the use of "Software".

Go to the "Installed" tab.
Click the checkmark sign in the top bar, left of the "hamburger" menu.
Select the applications you want to move in a Category.
When done, click "Add to folder".
An "Application folder" dialog appears. You can either add to an existing folder, or create a new one.

An "unofficial" but likely more powerful way to work with application folders can be achieved installing the Gnome Shell extension Appfolders Management extension.

Power management buttons (Shut down, Log off...)

Icons are by default present in more recent Ubuntu versions. If they are not yet present in Ubuntu 18.04, then you can create your own by creating corresponding .desktop files in the folder ~/.local/share/applications. Copying and pasting following code in a terminal will do that automatically for you:

/bin/cat <<EOM >~/.local/share/applications/shutdown.desktop
[Desktop Entry]
Name=Shutdown
Comment=Shutdown system
Exec=gnome-session-quit --power-off
Terminal=false
Type=Application
Icon=system-shutdown
Categories=GTK;Utility;
Keywords=Shut Down;Power Off;
StartupNotify=true
EOM

/bin/cat <<EOM > ~/.local/share/applications/reboot.desktop
[Desktop Entry]
Name=Reboot
Comment=Reboot system
Exec=gnome-session-quit --reboot
Terminal=false
Type=Application
Icon=system-reboot
Categories=GTK;Utility;
Keywords=Start again;Restart;
StartupNotify=true
EOM

/bin/cat <<EOM >~/.local/share/applications/logout.desktop
[Desktop Entry]
Name=Logout
Comment=Log out of system
Exec=gnome-session-quit --logout
Terminal=false
Type=Application
Icon=system-logout
Categories=GTK;Utility;
Keywords=Log out;Sign off;
StartupNotify=true
EOM

/bin/cat <<EOM >~/.local/share/applications/suspend.desktop
[Desktop Entry]
Name=Suspend
Comment=Suspend system
Exec=systemctl suspend -i
Terminal=false
Type=Application
Icon=system-suspend
Categories=GTK;Utility;
Keywords=Sleep;
StartupNotify=true
EOM


HTTPS connection failure when trying to open AWS console

This solution works for me:
Edit the file /etc/resolv.conf so that is has this additional line:
nameserver 8.8.8.8

Save the changes.
Now, clear cookies in your browser.
If it does not work restart your system and repeat the steps again.


How to stop text editor selecting paragraph instead of to the end of the line when I hit shift-end?

I ended up coming across the answer as it applies to Scite. Super easy.
Add to your user options file:
wrap.aware.home.end.keys=1
Now when I click shift-end, it selects to the end of the line rather than the end of the paragraph (and of course if you set the above parameter to 0 it does the opposite).


It looks like you're using the open-source driver (radeon) instead of the proprietary one (fglrx), which would account for the lack of performance.

Unfortunately, it also looks like you have a Radeon 4500 series graphics card, which ATI/AMD no longer supports with the current version of Xorg. This is probably why the proprietary driver isn't available.

See this answer: https://askubuntu.com/a/203698/164093. You may be able to install fglrx-legacy if you're running 12.10 or lower.


What is the minimum number of nodes for an Ubuntu Cloud?

Each time juju deploy is called it starts a new machine. Also, juju bootstrap reserves a machine to start up zookeeper.

So it looks like that example needs about 9 nodes.

Since you don't have 10 machines, you could do the simple example here.


Have you heard of Macrium Reflect ? I think it can perform something like automatically (Scheduled) create a system image to a NAS (File Server).

I have experience in making two PCs completely identical with Macrium Reflect. But your case is a far more advanced one.


Guake terminal has space left at the top

You can solve the problem by making gravity go upwards. No, seriously ;)

You need to do a simple change to the file /usr/share/guake/guake.glade. Open that file with your favorite text editor and look for the line that says

<property name="gravity">static</property>

Change that line, so that it says

<property name="gravity">north</property>

Save the file, restart Guake and the gap should be gone.


Can I install to a raw logical volume, or must I partition the space first?

It's a best practice to use partitions, even if it's one and it spans the entire disk. There are tools out there that use that detail as part of their interrogation heuristics. I've also seen udev behave funny sometimes with partitionless drives. There's really no drawback to using partitions, no speed hit, nothing negative. It doesn't affect LVM at all as it's reading the disk and searching for metadata.

So you can swim upstream... or you can create a single partition. If you're that determined to make this work then I suggest that you get acquainted with the installer sources.


The Files application is a file manager, not an application launcher. If you open the Applications view of the dash in Unity, or click any icons on the Launcher on the left of the screen, a single click will open the application.

You really shouldn't use the Files application as a means for launching applications generally.


error in Version string 'v1.4': version number does not start with digit;

'v1.4' is not a valid version number for a .deb package. Previous versions of dpkg just ignored that but now it's an error. See https://answers.launchpad.net/launchpad/+question/147533

Contact the package developer and ask nicely to correct the version number.


I had the same issue on Ubuntu 20.04 when downloading Terminator from Ubuntu Software.
Installing Terminator from terminal with apt install terminator resolved this issue.


Check How to control fan speed? @GrizzLy

Install lm-sensors and fancontrol packages

Configure lm-sensors
In terminal type sudo sensors-detect and answer YES to all YES/no questions.
At the end of sensors-detect, a list of modules that needs to be loaded will displayed. Type "yes" to have sensors-detect insert those modules into /etc/modules, or edit /etc/modules yourself.
run sudo /etc/init.d/module-init-tools restart This will read the changes you made to /etc/modules in step 3, and insert the new modules into the kernel.
Configure fancontrol
In terminal type sudo pwmconfig . This script will stop each fan for 5 seconds to find out which fans can be controlled by which PWM handle. After script loops trought all fans, you can configure which fan corresponds to which temperature.
In my case i set interval to 2 seconds.
Run fancontrol
sudo fancontrol and leave it open in console,

In my case for CPU i used

  Settings for hwmon0/device/pwm2:
    Depends on hwmon0/device/temp2_input
    Controls hwmon0/device/fan2_input
    MINTEMP=40
    MAXTEMP=60
    MINSTART=150
    MINSTOP=0
    MINPWM=0
    MAXPWM=255


Is there a "Places" menu for Ubuntu Unity?

I tried several existing ones, but could not find a working Places indicator. The ones I found were outdated, ppa's were no longer maintained.

Modular Places menu

So, below a freshly written one: Places & Files indicator for Ubuntu.

 2

The ppa version is a modular one; you can choose what to show in the menu:

[]

In the full version:

...or the smallest, only showing recently used:

Installing from ppa

sudo add-apt-repository ppa:vlijm/placesfiles
sudo apt-get update
sudo apt-get install placesfiles

A simplified version to show a places menu, bookmarks and recently used files

Description & (initial) code

The script

#!/usr/bin/env python3
import signal
import gi
gi.require_version('Gtk', '3.0')
gi.require_version('AppIndicator3', '0.1')
from gi.repository import Gtk, AppIndicator3, GObject
import time
from threading import Thread
import os
import subprocess

class Indicator():
    def __init__(self):

        currpath = os.path.dirname(os.path.realpath(__file__))
        self.home = os.environ["HOME"]
        self.bmark_file = os.path.join(self.home, ".config/gtk-3.0/bookmarks")
        self.def_file = os.path.join(self.home, ".config/user-dirs.dirs")
        self.recdata = os.path.join(self.home, ".local/share/recently-used.xbel")
        self.n = 10
        self.app = 'places'
        iconpath = os.path.join(currpath, "dir_icon.png")
        self.indicator = AppIndicator3.Indicator.new(
            self.app, iconpath,
            AppIndicator3.IndicatorCategory.OTHER)
        self.indicator.set_status(AppIndicator3.IndicatorStatus.ACTIVE)
        self.indicator.set_label("Places", self.app)
        self.indicator.set_menu(self.create_menu())
        # the thread:
        self.update = Thread(target=self.check_recent)
        self.update.setDaemon(True)
        self.update.start()

    def create_menu(self):
        # creates the (initial) menu
        self.menu = Gtk.Menu()
        # separator
        initial = Gtk.MenuItem("Fetching list...")
        menu_sep = Gtk.SeparatorMenuItem()
        self.menu.append(initial)
        self.menu.append(menu_sep)
        # item_quit.show()
        self.menu.show_all()
        return self.menu

    def open_directory(self, *args):
        index = self.menu.get_children().index(self.menu.get_active())
        selection = self.menu_items2[index-2]
        self.execute(["xdg-open", selection])

    def open_file(self, *args):
        index = self.submenu.get_children().index(self.submenu.get_active())
        selection = self.submenu2[index]
        self.execute(["xdg-open", selection])

    def go_special(self, button, target):
        self.execute(["xdg-open", target])

    def connect(self, button):
        self.execute("nautilus-connect-server")

    def set_new(self):
        # update the list, appearing in the menu
        for i in self.menu.get_children():
            self.menu.remove(i)
        home_mention = Gtk.MenuItem("⌂ Home")
        home_mention.connect("activate", self.go_special, self.home)
        self.menu.append(home_mention)
        # separator
        menu_sep1 = Gtk.SeparatorMenuItem()
        self.menu.append(menu_sep1)
        for app in self.menu_items2:
            sub = Gtk.MenuItem("⏍ "+app.split("/")[-1])
            self.menu.append(sub)
            sub.connect('activate', self.open_directory)
        # separator
        menu_sep2 = Gtk.SeparatorMenuItem()
        self.menu.append(menu_sep2)
        # network
        network = "network:///"
        network_mention = Gtk.MenuItem("⇄ Network")
        network_mention.connect("activate", self.go_special, network)
        self.menu.append(network_mention)
        connect_mention = Gtk.MenuItem("⮁ Connect to server")
        connect_mention.connect("activate", self.connect)
        self.menu.append(connect_mention)
        # separator
        menu_sep3 = Gtk.SeparatorMenuItem()
        self.menu.append(menu_sep3)
        # computer
        computer = "computer:///"
        computer_mention = Gtk.MenuItem("⛁ Computer")
        computer_mention.connect("activate", self.go_special, computer)
        self.menu.append(computer_mention)
        recent_mention = Gtk.MenuItem("⁕ Recent files")
        self.menu.append(recent_mention)

        self.submenu = Gtk.Menu()
        for f in self.submenu2:
            recent = Gtk.MenuItem(f)
            recent.connect("activate", self.open_file)
            self.submenu.append(recent)
        recent_mention.set_submenu(self.submenu)
        # separator
        menu_sep6 = Gtk.SeparatorMenuItem()
        self.menu.append(menu_sep6)
        # quit
        item_quit = Gtk.MenuItem('Quit')
        item_quit.connect('activate', self.stop)
        self.menu.append(item_quit)
        self.menu.show_all()

    def run_about(self, *args):
        self.execute("/opt/upfront/code/runabout")

    def check_recent(self):
        self.menu_items1 = []; self.submenu1 = []
        while True:
            time.sleep(4)
            self.menu_items2 = self.get_bookmarks()
            self.submenu2 = self.get_files()

            if any([self.menu_items2 != self.menu_items1,
                self.submenu2 != self.submenu1]):
                GObject.idle_add(
                    self.set_new,
                    priority=GObject.PRIORITY_DEFAULT
                    )
            self.menu_items1 = self.menu_items2
            self.submenu1 = self.submenu2

    def stop(self, source):
        Gtk.main_quit()

    def get_bookmarks(self):
        loc_bookmarks = [
            l.replace("file://", "") for l in open(self.bmark_file).read().splitlines()\
            if l.startswith("file://")
            ]
        netw_bookmarks = [
            l for l in open(self.bmark_file).read().splitlines()\
            if l.startswith("smb://")
            ]
        defaults = [
            os.path.join(self.home, l.replace('"', "").split("$HOME/")[-1]) for l in \
            open(self.def_file).read().splitlines() if all\
            (["$HOME/" in l, l.startswith("XDG")])
            ]
        return [self.replace_sc(m.split(" ")[0]).rstrip("/") for m in list(
            set(loc_bookmarks+defaults+netw_bookmarks))]

    def replace_sc(self, path):
        for c in [("%23", "#"), ("%5D", "]"), ("%5E", "^"),
                  ("file://", ""), ("%20", " ")]:
            path = path.replace(c[0], c[1])
        return path

    def execute(self, command):
        subprocess.Popen(command)

    def get_files(self):
        # create the list of recently used files
        used = [l for l in open(self.recdata) if all([
                    '<bookmark href="file://' in l, not "/tmp" in l, "." in l])]
        relevant = [l.split('="') for l in set(used)]
        relevant = [[it[1][7:-7], it[-2][:-10]] for it in relevant]
        relevant.sort(key=lambda x: x[1])
        return [item[0].replace("%20", " ") for item in relevant[::-1][:self.n]]

Indicator()
GObject.threads_init()
signal.signal(signal.SIGINT, signal.SIG_DFL)
Gtk.main()

How to use (if not installed from ppa)

Copy the script into an empty file, save it as places_indicator.py
Save the icon (right-click > save as) exactly named:

dir_icon.png

..in one and the same directory as the script.
Test- run the script by the command:

python3 /path/to/places_indicator.py

If all works fine, add it to Startup Applications: Dash > Startup Applications > Add. Add the command:

/bin/bash -c "sleep 10 && python3 /path/to/places_indicator.py

About the indicator

The indicator shows:

The home directory
All directories (local bookmarks and smb) in

~/.config/gtk-3.0/bookmarks
~/.config/user-dirs.dirs

Network
Connect to network
Computer
Recently used files (lats 10 as it is, could be easily changed)

Changing/added/removed bookmarks are updated dynamically


Cannot boot from USB disk with "not a COM32R image" error

I recently had this problem and I solved it this way:

hit "TAB": the installer will show a list of possible images
type the correct image name (watch caps!)
hit enter


Configure error when installing Arduino IDE

I've downloaded the 1.5.4 version and extracted the tar file.

The tar file contains a binary file already, which means that you don't have to install it, you'll only need to type ./arduino to run that version(if you are in the extracted folder).

If you want to start the application from anywhere in the terminal you can create a soft link for the application from the Downloads folder.

From my understanding you don't want the latest version at all so purge that: sudo apt-get purge arduino
Create a soft link for the application, in this case I'll create it to the /bin folder. Use the full path to your Downloads folder, example: sudo ln -s /home/yourusername/Downloads/arduino-1.5.4/arduino /bin/arduino
Now type arduino in your terminal and it should start the application.

Hope this works for you, if not, leave a comment and I'll try to help you further.


samba server not accesible from ubuntu 14 but possible from android

I had the same problem but with a bit of reading I managed to come up with a solution. I'm not well versed in this kind of thing so I don't know if this is the best solution but I find that if you change the line under [global] from

security=user

to

security = share

that solved the problem for me. I didn't actually have a "security" setting in my smb.conf so I just had to write the line in the [global] section myself (for anybody else who doesn't have the "security"line).


Span Wallpaper Across Displays in Lockscreen

At this time this is not possible due to bug #1291359.

This issue is still present up to Ubuntu 16.04.

The most common thing to do at this moment is to show the default login screen/color.

You can do this by installing dconf Editor.
Open a terminal with Ctrl+Alt+T and type:

sudo apt install dconf-editor

or click dconf Editor  to auto-open Software Center and click Install to install it.

Now we must grant LightDM permissions to access dconf Editor.

Gain root access, type your password (no visual feedback),and Enter.
sudo -i
Allow user to create a connection to the X server for lightdm
xhost +SI:localuser:lightdm
Switch to user lightdm
su lightdm -s /bin/bash
Start dconf Editor
dconf-editor

On dconf Editor, navigate to com > canonical > unity-greeter in the left pane.

Disable (untick) the value for 'draw-user-backgrounds' on the right pane.
While at it, you may want to disable 'draw-grid' (it disables the dotted grid layer).

Reboot to confirm changes.

sudo reboot

Note: from now on LightDM has permission to access the X server, so every time you open dconf Editor, LightDM already has access.
To revoke this access, issue the command xhost -SI:localuser:lightdm as root.


Depending on the version of VirtualBox, the Virtual Disk Image files may be stored in the hidden folder ~/.VirtualBox, more specifically ~/.VirtualBox/HardDisks.

When you say you are 'unable to find' the files, did you try:

$ find ~ -name '*.vdi'

(assuming you used the default Virtual Disk Image type of file (i.e. '.vdi'))


According to the Free Software Foundation's definition

  Freedom to distribute means you are free to redistribute copies,
  either with or without modifications, either gratis or charging a fee
  for distribution, to anyone anywhere. Being free to do these
  things means (among other things) that you do not have to ask or pay
  for permission to do so.

but

  Sometimes government export control regulations and trade sanctions
  can constrain your freedom to distribute copies of programs
  internationally.

Canonical is a UK company so subject to UK export law. Fortunately, UK export restrictions exclude 'information that is freely and legally available on public website[s]'

Here's an extract from the UK government page on Export of Technology

  What does ‘in the public domain’ mean?

  In the public domain means the information is made available without
  any restrictions, other than copyright, being placed on further
  dissemination. For instance, information you place on your website
  that anyone can download or that you publish in a sales brochure would
  be ‘in the public domain’.

This means the exporter doesn't need a license, but more widely, software defined as 'in the public domain' isn't subject to any export restrictions. (I found the same definition and exclusion in documents on restrictions relating to military technology)

Since anyone can download and use Ubuntu, it is 'in the public domain' as defined by the export restrictions

Canonical have a LoCo team in Iran, a Persian translation team (thanks Gunnar for pointing out) and an official Ubuntu.ir site (and one of the main sections is Download Ubuntu)

Here's my favourite quote from the Export of Technology legal page:

  Do I require an export licence for information which is in my head?

  No.

Long live free software ;)


Resolution problems on 14.04- will not install guest additions

1. Go to the 'Launcher'.
 2. Hit the disk icon.
 3. Hit 'run software' in the top-right corner
 4. Wait for the software to finish downloading via terminal
 5. Reboot and hit 'Run full screen' from the  bottom
 6. You're done!


How to test a USB device created using Startup Disk Creator without restarting?

VMware and VirtualBox don't directly support booting a Virtual machine from a Physical USB Drive.  Only Qemu supports booting from a Physical USB Drive.

VirtualBox (with the use of vboxmanage.exe tool)can Boot your USB Drive.  See here

QEMU is a generic and open source machine emulator and virtualizer.

If you want to to that under Windows then use MobaLiveCD


Acces to directory whose owner is 1023 - add 1023 to www-data (?)

Try adding the group 1023 instead of a user:

$ sudo addgroup 1023 --force-badname


click the top left ubuntu icon, search for "power" and click on "Power Management" and check the settings at the bottom: "Put display to sleep when inactive for: " see this setting is checked to "never". If it is, then that's why your monitor won't sleep :) if not, then this is probably beyond me I'm afraid :(


Where does Google Chrome put .desktop files?

Chrome creates two .desktop files, one on the desktop (in ~/Desktop) and another in ~/.local/share/applications. The latter is shown in the Dash. To find it, run

grep -ri "whatsapp" ~/.local/share/applications

E.g. mine was called chrome-hnpfjngllnobngcgfapefoaidbinmjnm-Default.desktop. I was able to edit the Icon field and have it take effect in the Dash.


I wish to make a donation and get an invoice

Neither Ubuntu or Canonical are registered charities. And I'm not sure you can say an optional donation is a necessary business expense.

I'm not an accountant though...

Use their contact page to talk to somebody at Canonical.


is there any log showing when a server was installed?

Have a look at the files in /var/log/installer/*.

Those were generated during the initial system installation. Their contents should give you all kinds of interesting information, but to find out the installation date, it should be enough to even just look at the file creation/modification timestamp.


Update 2020-06-24: problem is solved on server-side. No additional manual actions required.

This is aviationweather.gov server side issue, which now is in the works.
The Ubuntu MATE community also knows about the issue, the pull request is prepared.
Please wait for resolution.
Note: all current Ubuntu MATE versions are affected. And not only MATE, as the aviationweather.gov is used by some other Ubuntu projects.

For those who do not want to wait there are two possible solutions.

Patch the MATE Weather library on binary level with single command below:

64 bit
sudo sed -i 's|https://www.aviationweather.gov/adds/dataserver_current/httpparam|https://www.aviationweather.gov/adds/dataserver1_3/httpparam\x0\x0\x0\x0\x0|' $(readlink -f /usr/lib/x86_64-linux-gnu/libmateweather.so.1)

32 bit
sudo sed -i 's|https://www.aviationweather.gov/adds/dataserver_current/httpparam|https://www.aviationweather.gov/adds/dataserver1_3/httpparam\x0\x0\x0\x0\x0|' $(readlink -f /usr/lib/i386-linux-gnu/libmateweather.so.1)

Note: to revert the patch one can reinstall the corresponding package with sudo apt-get install --reinstall libmateweather1.

Use My Weather Indicator applet from Atareo PPA by one of the following methods:

by adding PPA
sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install my-weather-indicator

by downloading package manually:
cd ~/Downloads
wget https://launchpad.net/~atareao/+archive/ubuntu/atareao/+files/my-weather-indicator_0.9.4-0extras19.10.09_all.deb
sudo apt-get install ./my-weather-indicator_0.9.4-0extras19.10.09_all.deb

and then find the application in the Applications → Accessories → My-Weather-Indicator and set settings for it.
Optionally you can add it to autostart by placing the corresponding desktop-file in the correct directory:
mkdir -p ~/.config/autostart
cat << EOF > ~/.config/autostart/my-weather-indicator.desktop
[Desktop Entry]
Type=Application
Exec=/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
Hidden=false
X-MATE-Autostart-enabled=true
Name=My Weather Indicator
EOF


Formatting a file to use it with fortune in the terminal

Here's one way:

awk '{$1 = $1 " : "; print; print "%"}' filename

On second thought, that will compress up any sequences of whitespace into a single space. Use this instead:

sed 's/[[:blank:]]\+/ : /; a %' filename


nautilus crash when merging/overwriting files

This is, in all probability, a legitimate bug. You should file a bug report here.

Nautilus, should it crash, will write a file called "nautilus-debug-log.txt" to your home directory. If it isn't there, you can use this:

kill -SIGUSR1 `pidof nautilus`

to force nautilus to write it (note: this doesn't kill nautilus). This file contains very helpful information to be included in your bug report. Also, you should include all the steps (in detail) to reproduce the problem.

Read the Bug Reporting Tutorial if you're reporting a bug for the first time.


Finally i found a solution. The laptop cooling pad was causing the problem. I was searching the problem by trying each one of my external devices,(USBs, HDDs, Mouse, Cooling-Pad, etc.). Now i have only the mouse on my laptop, i removed the pad and it just works the way it's supposed to.
 Thanks everyone.


Maybe PHP is generating errors and it isn't displaying them. Apparently, this is the default behaviour.

Try checking the log for errors:
tail /var/log/apache2/error.log

Change php.ini to make the errors appear in your browser
1- Open the file /etc/php5/apache2/php.ini (or whatever is your php.ini) in your favorite text editor

2- Search for display_errors

3- Set it to On

4- Restart apache

Next time your try to run a php script it will output the errors.

It can also be a problem with error_reporting. Placing error_reporting(E_ALL); in the beggining of your script will make sure (if display_errors = On) that all kinds of errors will get displayed.


Installing crossvc is giving broken packages error

libqt3-mt is old Qt3 deprecated lib in favor of Qt4. It is available only in Lucid and Precise repositories:

http://packages.ubuntu.com/search?keywords=libqt3-mt

Download Precise package from (choose a mirror):

http://packages.ubuntu.com/precise/libqt3-mt

Example, 64bit:

wget http://de.archive.ubuntu.com/ubuntu/pool/main/q/qt-x11-free/libqt3-mt_3.3.8-b-8ubuntu3_amd64.deb

32Bit:

wget http://de.archive.ubuntu.com/ubuntu/pool/main/q/qt-x11-free/libqt3-mt_3.3.8-b-8ubuntu3_i386.deb

Install it, 64bit::

sudo dpkg -i libqt3-mt_3.3.8-b-8ubuntu3_amd64.deb

32bit:

sudo dpkg -i libqt3-mt_3.3.8-b-8ubuntu3_i386.deb

Try with crossvc again. It should work as I have tested it in my Ubuntu 14.04.

Still missing some dependencies, Search using http://packages.ubuntu.com/:

If that package is built for your release, you follow instruction in How do I resolve unmet dependencies?
Else, download closest release build & install it same as above.


Mouse Pointer is blinking and some time disappear

Disable the "Unknown Display" in Display settings.


How to upgrade PHP7.2 to PHP7.4 in Ubuntu in windows10(Linux Subsystem)

After two days' research. I upgrade my php version from 7.2 to 7.4.
As the following step:

Update the version of ubuntu in windows10(Linux subsystem).
Add line [deb http://hu.archive.ubuntu.com/ubuntu/ bionic-updates main restricted] to file:[/etc/apt/sources.list]

$ sudo apt update && sudo apt dist-upgrade

$ sudo apt-get install software-properties-common

$ sudo add-apt-repository ppa:ondrej/php

$  sudo apt-get install php7.4
$ php -v

Install php 7.4 modules (extensions)
$ sudo apt-get install libapache2-mod-php7.4 php7.4-fpm libapache2-mod-fcgid php7.4-curl php7.4-dev php7.4-gd php7.4-mbstring php7.4-zip php7.4-mysql php7.4-xml
$ sudo a2enmod php7.4
$ service apache2 restart


Asus E200H, keyboard does not work for entering encryption password

i faced the same problem and have looked this up, the only way is updating ir reflashing thd bios using the official tool given from the support site of the computers brand


try these commands:

sudo update-alternatives --set java /usr/lib/jvm/java-8-oracle/jre/bin/java

sudo update-alternatives --set javac /usr/lib/jvm/java-8-oracle/bin/javac

else try this link


Ubuntu 18.04.1 LTS don't install Conky Manager

Let's start with analysis of this PPA problem. You are going to install conky-manager package, so you know exact name and target Ubuntu version.
In such case you should use special PPA search page on launchpad.net - https://launchpad.net/ubuntu/+ppas with the corresponding search query "conky-manager". This page will return search results. You should click all these links one-after-one and select Published in: Bionic filter. You can choose any PPA which you trust more.
Other way is to use Y PPA Manager.

I ended with this one (ppa:mark-pcnetspec/conky-manager-pm9) as it has realpath package in PPA:

sudo add-apt-repository ppa:mark-pcnetspec/conky-manager-pm9
sudo apt-get install conky-manager

After installation you will get Conky Manager 2.4 running on your Ubuntu 18.04 LTS:

Note: packages from two other PPAs (ppa:marius.quabeck/nerdzoom and ppa:tomtomtom/conky-manager) are really depends on realpath package (as were noted by @OrganicMarble), but do not include it.


C/C++ option not available in NetBeans11 on Ubuntu 19.04

Add the Update Center labeled "NetBeans 8.2 Plugin Portal" . It appears that C++ is not in the latest distribution yet, so I had add the legacy Update Center.

After adding this update center, I was able to locate and install the C++ plugin using the method shown here, and then create a C++ HelloWorld program in NetBeans 11 on Ubuntu 19.04


A good idea might be to download the alternate installation package, if you are sure you want to install, and not just try it out.

When you download that ISO image, there is a way to check the ISO before burning, using the md5sum.  Once you know the ISO is valid, you can check the burned CD to make sure it is also correct.

For the official Ubuntu instructions to install, and to troubleshoot installation problems, you can read this guide.  There is a section on troubleshooting that explains how to check the CDs, etc.


How can I ensure that a disk image shared by someone is safe to use?

Fact is, unless you create the image yourself, you can not be sure if the image is compromised. It is safer to use the official Ubuntu image and make an normal install of it and the needed tools/applications for mining, since you're talking about money here. Or would you trust your bank account credentials another person you not know?

There are several possibilities here to achieve what you want:

Create an image yourself based on the official image with the applications needed included.

https://help.ubuntu.com/community/LiveCDCustomization

A probably easier approach is, if you only have one machine to install it onto is doing a normal install and then install the needed tools for mining.

https://help.ubuntu.com/lts/installation-guide/index.html

If you really considering downloading this image and using it, you should at least do a very deep research on the person and the image, look for replies from others on the image, do a deep background check on the person himself etc.


check that VLC use Pulseaudio :
in Vlc preferences , "Audio" tab, select "Pulseaudio" as output module .
("vlc-plugin-pulse" must be installed.)
Pulseaudio must be ok and running: if you can set volume with standard sound setting, it is ok  .


Would a better videocard make Ubuntu UI faster (specifically using gvim)?

From what you say the problem seems to be that window composition is making your system slow at high resolutions.

Do a quick test, run Unity2D instead of Unity3D and check how sluggish it is.

If it is then probably your system also should get an upgrade (RAM, a faster hard-disk or if possible a faster CPU).

If the its not sluggish anymore then a new graphics card would definitely help.


How to install Gnome Flashback DE on Ubuntu

Just install GNOME Flashback session and use it.

There is no need to uninstall Unity. For example GNOME Flashback in Ubuntu use unity-settings-deamon, so trying uninstall whole Unity might uninstall Flashback session too.


Graphics invert colors on HDMI monitor after waking from suspend

Add:

Option         "ColorSpace" "RGB"

in the Section "Screen" from the file etc/X11/xorg.conf

Disable DPMS if this occur after suspend.

xset -dpms  <----- only disble it !

If the file xorg.conf does not exist:

sudo gedit  /etc/modprobe.d/radeon.conf
Option "ColorSpace" "RGB"


Boot into a root shell:
How do I boot into a root shell?

Then change the password for you user

sudo passwd <username>


System doesn't boot upon upgrade to 15.10

Have you tried pressing CTRL+ALT+F2 at this point?

Also try booting in Recovery Mode and if still possible trying booting from the old 15.04 kernel, as I had two options for each kernerl after I upgraded.

It may be possible to 're-install' Ubuntu 15.10 using the LiveCD to fix any broken packages from the upgrade without losing your files and programs, but I don't think this is possible for a 15.10 > 15.04. (Correct me if i'm wrong though).


How to start ubuntu-software in english on a german system without changing the langage settings?

Due to a bug in software-center/ubuntu-software (since 2009) it's necessary to get the apt cache in english once in order to be able to start the software in english using the LANGUAGE variable as usual as pointed out by user Rinzwind:

sudo env LANGUAGE=en apt-get update && sudo env LANGUAGE=en ubuntu-software

starts the software in english.


no upper right icons with Ubuntu 12.10 and lightdm

Icon is there its just off screen. You need to adjust the overscan on your video driver. If you have installed the ATI driver there is the ATI Catalyst program that allows you to do that.

You can logout, just move your cursor beyond the screen and the menu will pop down when you press the mouse.


Problem accessing samba share / permission denied

By design /media/$USER ( /media/drwade in this case ) will allow only one user to get past it and that is drwade. You are forcing the user to be "nobody". nobody != drwade so access is denied. Change your force user in the [Anonymous2] share definition to drwade:

force user = drwade


configure: error: vpx_codec.h not found while installing php-gd bundled extension

The file vpx_codec.h belongs to a package called libvpx-dev

To fix the error, install it by running sudo apt-get install libvpx-dev command.
And then run ./configure command with the same command arguments then you'll see following result:

checking for vpx_codec_destroy in -lvpx... yes


How to block messages from being printed in active ttys?

As roadmr noticed me, a workaround is already mentioned in the page I linked in my question, among the comments :

Comment #8, by Neal McBurnett (nealmcb)  :

  2 WORKAROUNDS: I can at least get it to shut up by doing "sudo rmmod ums_realtek"

  If I subsequently do a "sudo modprobe ums_realtek" the messages start
  showing up again every 52 seconds.

  If I actually try use the sdb device (which is the SD card in my dell
  mini 1012 netbook) by inserting an SD card, the card seems to work
  fine - it automatically reloads the module and mounts the card.

  And, in addition, inserting a card also makes the messages go away,
  even after the card is removed, and even though ums_realtek remains
  loaded.

Comment #75 by Krzysztof Kosinski (tweenk) :

  For a permanent workaround, create the file
  /etc/modprobe.d/ums-realtek.conf with the following content:

options ums_realtek ss_en=0

  or execute this command:

sudo sh -c 'echo "options ums_realtek ss_en=0" > /etc/modprobe.d/ums-realtek.conf'


Here's what I did to set this up. It works like charm now. I decided to post this as an answer so that any one with a similar situation have it:

Created a EXT4 and SWAP partition with a partition manager. Boot sector got corrupted, so be careful here.
Migrated Wubi to a real partition. Performance is remarkably better. More info here: http://ubuntuforums.org/showthread.php?t=1519354
Moved all files files from the NTFS partition, except for the ones I was willing to protect. Used TrueCrypt from Windows to encrypt the entire non system NTFS partition. http://www.truecrypt.org/docs/?s=tutorial

Now I have my files secured both on Windows and Linux, and I am able to mount them on both ends whenever I have to.


Ubuntu 20.04 Desktop glitch [Small green box over the screen]

To temporarily fix it pressalt+f2 then r.

To actually fix the issue, run these commands in the terminal.

sudo apt remove --purge xorg xserver-xorg gnome-session ubuntu-desktop-minimal ubuntu-desktop gdm3 xwayland
sudo autoremove --purge
sudo apt install gnome-session ubuntu-desktop-minimal
reboot

Read this for more information.


I had a similar problem. It was solved by removing the USB webcam. Try unplugging your webcam. It's been months so I can't remember the exact details but it turned out that the kernel upgrade broke support for the webcam I was using. Trying to use that webcam caused problems with the entire USB subsystem.


how to remove the black screen ubuntu after login

Login into tty1 (ctrl+alt+F1) and make some free space and also remove .xsession from home directory if it is there.

Get back to login UI using ctrl+alt+F7 and check again.


Installing Eclipse IDEs for Java and C/C++

Your first question

No, you can't download the C/C++ libraries from within eclipse, like Pydev.

Your second question

Install Eclipse JEE and Eclipse C/C++ in separate folders in /opt eg:

/opt/eclipse-cpp
/opt/eclipse-jee

Create two different desktop files in ~/.local/share/applications

~/.local/share/applications/eclipse_cpp.desktop

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Eclipse C++
Comment=Eclipse Integrated Development Environment
Icon=eclipse
Exec=/opt/eclipse-cpp/eclipse
StartupNotify=true
StartupWMClass=Eclipse-CPP

~/.local/share/applications/eclipse_jee.desktop

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Eclipse JEE
Comment=Eclipse Integrated Development Environment
Icon=eclipse
Exec=/opt/eclipse-jee/eclipse
StartupNotify=true
StartupWMClass=Eclipse-Java

During the first start of both Eclipse distributions, select a different workspace folder for each of them, eg

workspace-cpp
workspace-jee

Alternatively you can change the workspace folder in Eclipse itself via File > Switch Workspace

Now you can use both distributions in parallel.


Ubuntu doesn't recognize my Printer anymore

Try:

sudo apt-get install cups-daemon

which starts a printing server that takes care of printing for us.

I started getting this after installing libcups2, I think it uninstalled the above package.

A symptom of this is that the sudo service cups start should fail as the package is not present.


trackpoint: cannot move mouse pointer a short distance

See TrackPoint hard to control after Debian update and the linked Debian bug #682413 "USB TrackPoint keyboards unusable since synaptics-usb was included". It appears a patch to the 3.2 kernel changed the behaviour of the Synaptics USB driver so that it now reports raw values instead of normalised values. The fix patches from Andrew Deason mentioned in that bug report have not been applied upstream (see tip:drivers/input/mouse/synaptics_usb.c). If these patches do fix the issue for you, then please chase the issue up  on the linux-input mailing list so that it gets fixed upstream. You could also contact the author of Synaptics-usb.


Whenever I connect my bluetooth headphones or earphones I hear buzzing noises.What should I do?

I found the answer here in this link: Fixing Bluetooth in Ubuntu, Pop!_OS 18.04 under "Bluetooth headset playing in profile HSP/HFP (Low quality) instead of A2DP (High Fidelity Playback)".
My headphones are working perfectly on Ubuntu now. I realized that the error was because I didn't have the audio.conf file in /etc/bluetooth.


The router gets your hostname from the dhcp request. If the interface is set to static it never makes this request.

A way of getting static ip address and use dhcp requests at the same time is to

set a static ip address for the machine on the router and
use dhcp for your interface

    auto wlan0
    iface wlan0 inet dhcp
      wpa-scan_ssid 0
      hostname myhostname


How to download and install a single package with all it's dependencies?

To see a list of a packages dependencies and to also see if the dependencies are already installed, use the application apt-rdepends

sudo apt-get apt-rdepends

To list dependencies and status of all dependencies as well use 'apt-rdepends -p' like this:

apt-rdepends -p packagename

example:

apt-rdepends -p sl

The output will show the dependencies for the package "sl", the dependencies of the depnedencies, the dependencies of the dependencies dependencies etc.

The output will also show if these are installed or not installed on the computer (status).

Another option, try to get all of the installation packages installed on the box with no internet so that you can just build the packages from source. The source code ususally has the package dependencies that get compiled along with the package. What is not included is the build dependencies you need to compile the code. It's pretty straightforward; most of the time, the build compile and or make installation instructions are described in the "README" , the readme.md (markdown), or the "INSTALL" file. If automake, run ./autogen.sh first, then run ./configure, make, make install.

You can build from source with

sudo apt-get build-dep packagename
sudo apt-get source packagename

Replace "packagename" with the actual package name, of course.

This will first install the build-dependencies needed to compile and install the package (you can take note of what these are) and then, will download the source archives. You must have the "source code" repositories enabled in your /etc/apt/sources.list file (uncomment all "deb-src" entries) or in the ubuntu-software-center to download the source code.

Source code can also be downloaded from the projects website or better yet cloned from "github"

Also, if you have python installed, you can install python packages downloaded from pypi.python.org/

For example, to download and install "youtube-dl" you can download the source code from https://pypi.python.org/packages/source/y/youtube_dl/youtube_dl-2014.08.10.tar.gz#md5=d5d259bf8a2ec1b7bf3b744c173308d9 unzip the package in your home directory ( ~/ ) and to install, you would run these commands:

cd youtube_dl-2014.08.10
python setup.py install

if you get an error you may need to use sudo python setup.py install instead. Although it would be silly to try and download youtube videos with no internet. :)


Yes. According to their site, Ubuntu with a GUI only requires 5GB of Hard Disk storage, although any other programs you may install will be above and beyond this total.


Why is SQLite compiled with the OMIT_LOOKASIDE option in Ubuntu 18.04?

The lookaside option apparently is disabled in upstream debian package because it lead to crashes in libsqlite-3 as per bug #615061. The referenced bug report is also mentioned in the changelog of the 3.22.0-1 package version (sorry for the image of text, currently working in VM without clipboard supoprt):


How to recover deleted usr/share/gnome-shell/theme/gnome-shell.css file in gnome 3.4?

The easiest thing would be to reinstall the package that file belongs to:

sudo apt-get install --reinstall gnome-shell-common


Kernel Panic when attempting to boot Ubuntu 15.04 CD on older computer

I solved the problem myself. Changing the memory solved my issue.


No auto-move of applications between workspaces

This is related to bug#776435 in launchpad:

https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/776435

There is no fix at this time. Please bug the bug fixers to fix it.


Is it possible to show the device ID in nautilus properties?

i'm not sure how to show this info in nautilus, but you can also use System Monitor as mounted filesystem are shown in the last tab.


Lifted from the community wiki:

Insert your Ubuntu CD, reboot your computer and set it to boot from CD in the BIOS and boot into a live session. You can also use a LiveUSB if you have created one in the past.
Install and run Boot-Repair.

sudo add-apt-repository ppa:yannubuntu/boot-repair
 sudo apt-get update
 sudo apt-get install -y boot-repair && boot-repair

Click "Recommended Repair".
Now reboot your system. The usual GRUB boot menu should appear.

Alternatively download the boot-repair-disk.iso, make a bootable cd or usb key from this and boot it to perform the repair

boot repair disk


How to get the newest version of a package installed via apt-get?

The official Ubuntu repositories are maintained by a group of human beings. Because they need time to check each application for updates and pack them for distribution, they tend to be generally behind the curve. Stability is slightly less important.

To get bleeding-edge versions, you can build them from source or download the package from their site (if they offer one, I see Okular doesn't), but there is a way that you can use apt for certain programs. Launchpad allows users to create their own apt repositories that packages can be downloaded from. Packages downloaded from these are likely to update much faster than the Canonical archives because the developer will update it themselves when they make it.

Unfortunately, although Okular is on Launchpad, it doesn't have this. https://launchpad.net/okular

You might be able to convince them to make one, but otherwise I think activating the pre-released packages, as Radu proposed, is your best option.


htaccess redirection from one page to subdomain

This is done by Virtual Hosts, see for instance: How To Set Up Apache Virtual Hosts on Ubuntu 14.04 LTS


You have to edit the ~/.bashrc file!

Open with e.g. nano

/bin/nano ~/.bashrc

and go to the last lines.

You have to delete the backslash \ before $PATH and $MANPATH, as Gunnar said in his comment. The correct lines have to be read as

export PATH="$PATH:/usr/local/bin"
export MANPATH="$MANPATH:/usr/local/share/man"
export SSUALIGNDIR="/usr/local/share/ssu-align-0.1.1"

Save the file, and source the bashrc with

source ~/.bashrc


Yes,

the boot splash is handled by Plymouth, any Plymouth theme should work.

To install a Plymouth theme, you can do this:

sudo update-alternatives --install /lib/plymouth/themes/default.plymouth default.plymouth /lib/plymouth/themes/mytheme/mytheme.plymouth 100
sudo update-alternatives --config default.plymouth
sudo update-initramfs -u


When kwin was modified to use OpenGL ES, some effects had to be rewritten.  A couple of them ended up being dropped because nobody felt like porting them.

Here's an article from Martin Gräßlin's blog; in the comments he states that he is not planning on reimplementing the snow effect.  Sorry.


How do I assign a string as a keyboard shortcut?

I found the answer - autokey. This lets you set up shortcuts that can be triggered either by a hot key, or simply typing an abbreviation. I've already added automatic replacement for the common mispellings I make, like replacing "hte" with "the".

You can install autokey with with synaptic package manager, for either KDE or GNOME. For Ubuntu 14.04 and newer, the package is autokey-gtk.

I'm a long time Ubuntu user, and I'm kicking myself for missing out on this awesome little app until now.


How do i find all the truecrypt encrypted container files through terminal?

find -name '*.tc' will show you all the files that have the .tc extension but as with anything, extensions are only there for our benefit and it's possible (even likely if you're being secretive) that a TrueCrypt container won't have an extension (or it might have another).

There is a project called TCHunt which semi-exhasively checks that it's not another sort of file (and looks for random data patterns). It should compile and give you an opportunity to do a full scan... But it's probably going to take a while to run and it's almost certainly going to flag files that aren't containers.

It's a bit of a pain to build because it needs so many dependencies but it can be done:

sudo apt-get install git build-essential libboost-{filesystem,system,date-time,thread}-dev libxinerama-dev libfltk1.3-dev
git clone https://github.com/stephenjudge/TCHunt.git
cd TCHunt
g++ -Os  `fltk-config --cxxflags` TCHunt.cpp `fltk-config --ldstaticflags` -lboost_system -lboost_filesystem -otchunt

And then you can run ./tchunt — tell it where to search and it should run off and look for files it things are containers.


From what is presumably your top output:
xbrlapi

  Access software for a blind person using a braille display - xbrlapi

That seems to be the cause.


how do I execute sh file in Ubuntu 13.04?

if it is an executable, just right click and click execute, run depending on your interface.

if not

    chmod a+x /path/to/file.sh

then try the same.

you can just type it in terminal too.

    /path/to/file.sh


Your file system permissions need to allow access as well (system > samba). For NTFS, the permissions are determined by the way you mount it.  Try:

sudo umount /desired/path
sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/desired/path /mnt/desired/path

From the mount man page: "By default, the files are owned by root and not readable by somebody else."  You could also try ntfs3g: http://manpages.ubuntu.com/manpages/oneiric/man8/ntfs-3g.8.html#contenttoc, but the best option might be to modify your fstab using the permissions option:

sudo umount /desired/path
sudo blkid
sudo gedit /etc/fstab

The blkid command is to find the partition UUID.  Edit the entry in fstab like this:

    # change the "UUID" to your partition UUID
    UUID=12102C02102CEB83 /media/windows ntfs-3g auto,users,permissions 0 0

Lastly, make a mount point and mount the external hard drive:

sudo mkdir /media/windows
mount /media/windows

The "auto" option will automatically mount the partition when you boot, and the "users" option will allow users to mount and umount.  If it were not an NTFS drive, you could try this from terminal:

sudo chmod -R 775 /desired/path

Credits: How do I use 'chmod' on an NTFS (or FAT32) partition?


Please change the permissions to 0770 so that the directory

With the inputs you provided,  you have to change your mount options in /etc/fstab.

quiet,defaults,permissions,locale=en_US.utf8

Don't use the umask option; it seems that the mount.ntfs-3g manpage is false where it claims that mask will apply to newer files. All the ".mask" options apply also to already existing files.

With umask=0 all your files get rwxrwxrwx rights.


Installing Multiple Postgresql instances

According to  manpage,

  psql, pg_archivecleanup, and pg_isready, pg_wrapper will always use the binary from the newest PostgreSQL version installed, as these are downwards compatible.

Hence when you run either psql --cluster 9.5/main --version or psql --cluster 9.6/main --version both give me the same answer


Ubuntu keeps looping back to login screen

Bring the grub menu up as you boot (usually with shift or esc if it doesn't come automatically) and go to Advanced Options for Ubuntu. Then, choose:

dpkg     Repair Broken packages

or choose

root     Drop to root shell prompt

and execute the commands:

sudo apt-get update
sudo apt-get install -f
sudo apt-get upgrade


Install Linux Mint Cinnamon's polished Ctrl+R/"reverse-i-search" on Ubuntu?

In Zsh you can get something similar with Zsh Navigation Tools;

Once installed, hitting CTRL+R will bring up this GUI:

Typing a partial command will shrink the list:

Hitting ↑ and ↓ will allow to skim through the shrinked list and select a command:

Hittin ENTER will write the selected command to the prompt:

You can install Zsh Navigation Tools by running this command (it will backup your current ~/.zshrc to ~/.zshrc.bak if present):

cp ~/.zshrc ~/.zshrc.bak; sh -c "$(curl -fsSL https://raw.githubusercontent.com/psprint/zsh-navigation-tools/master/doc/install.sh)"

Zsh Navigation Tools will be installed at ~/.config/znt/zsh-navigation-tools and its configuration files will be installed at ~/.config/znt.


What could cause "normal" Ubuntu not to work but Ubuntu-2d to work? 11.10

I want to point out for the sake of other users that the answer is more likely resetting Unity, as @brunopereira81 mentions below.  So please, try that before tearing your hair out.

However, in my case, the answer was a need to downgrade the version of xorg and xserver-xorg.  Once I did that, I had access to 3d again.  (The answer to this question shows more of the background of how I went from a working installation to a broken one, and half-way back again)  It ultimately stemmed from the xorg-edgers bug reported elsewhere.

Specifically, I had to reinstall xorg and xserver-xorg and ubuntu-desktop.  After following a lot of recommendations on resetting compiz, dpkg-conf, etc, I found a couple key items:

For me at least, sudo apt-get remove xorg xserver-xorg ubuntu-desktop was insufficient, as this did not remove dependencies, even with autoclean and autoremove run after.
Rather, I had to use synaptic to do "complete remove" for each of these items.
After complete removal, it finally also removed all the dependencies, and they were now the correct, rolled-back versions.
Reinstalling ubuntu-desktop adds them back.  There were about 5 items under xserver-xorg and xorg where it said it refused to install because another dependency was required.  The solution to this was just to write down the name of the thing it would install, and select that before selecting the refusing item, which then allowed itself to be selected.  It seemed strange to me this wasn't happening automatically, but there were only about 5 such cases, so it wasn't bad.

This series of operations fixed my 3d problems.  (However, I am still having issues with libglib2 that will likely require a similar set of tracking down removals and installations.)


You already have them and you're already using them

Well-packaged Python applications are being compiled to .pyc files in a script run after installation of the files has taken place. This is needed according to the packaging guidelines to be able to adopt to the Python installation you're using at that moment. Do remember that .pyc files are very specific to your system (Python version and dependencies).

All .pyo and .pyc files are therefore specifically excluded in packages and tagged as errors by Lintian:

  Compiled python source files must not be included in the package. These files should be removed from the package and created at package installation time in the postinst.

  Refer to Debian Python Policy section 2.6 (Modules Byte-Compilation) for details.

  Severity: serious, Certainty: certain

In the case of python-numpy this post-install byte-compilation is handled by the debhelper hook of pycentral. After installation it looks like this:

ls -l /usr/lib/python2.7/dist-packages/numpy
lrwxrwxrwx  1 root root     47 Mar 20  2012 add_newdocs.py -> ../../../../share/pyshared/numpy/add_newdocs.py
-rw-r--r--  1 root root 251912 Aug  6 22:06 add_newdocs.pyc

Some more background information

The reason for why these .pyc/.pyo files aren't compiled at runtime during the first application startup as you expected is the following.

The Python files are installed in a system-wide directory, available for all users on the system. Whenever a user starts the application, the Python interpreter can read the .py files, but it can't write to the directories (e.g. /usr/lib/python2.7/dist-packages/). This is part of general security in all Linux systems; users shouldn't write to /usr, only with root rights this should be possible. For this reason, the APT hooks will compile the Python files for you at installation time; firstly to minimize the package size, secondly to be able to retrigger the hooks once something changes on your system regarding Python, because it's required to recompile when they get incompatible during upgrades for example.

This won't, however, affect regular user-owned python files being compiled at runtime.


You can use Ubuntu Touch Emulator in Ubuntu.

Installation:

sudo apt-get install ubuntu-emulator

Instance creation:

ARM instance

sudo ubuntu-emulator create UbuntuTouch

x86 instance

sudo ubuntu-emulator create --arch=i386 UbuntuTouch

Ubuntu Touch launch:

ubuntu-emulator run UbuntuTouch

Source : Ubuntu Wiki (see here for more informations)


Ubuntu 18.10 Cannot install wine-staging

I just fixed the exact same problem. I had the complete same output as you. I followed Vic's answer. It failed but not because his answer was inadequate but because I had multiple sources for wine in my
/etc/apt/sources.list.d/additional-repositories.list. Before you do the nuclear option check to see if your additional sources list might have conflicting wine repos. If you do, remove them all and then do Vic's answer to add the correct repo|key and install what you need.


/etc/network/interfaces.bak is showing different interface then ifconfig

/etc/network/interfaces.bak is a backup file where someone has saved an old config.

It is not used by the system. You can safely delete it, if it confuses you.


For C++, you can install g++:

sudo apt-get install g++

For C, you can install gcc:

sudo apt-get install gcc

If you need an IDE you can install NetBeans:

sudo apt-get install netbeans


Every time having to install any package or dist-upgrade, I get dependency error!

Most likely this is an error with the package lists.

Try running:

apt-get update

Followed by

apt-get -f install

And

apt-get upgrade

If this doesn't fix the issue, please post the output of these commands and the contents of the file: /etc/apt/sources.list


Problems installing Rstudio. The program won't start although it is installed

Rstudio can't start because it needs the libgstreamer library.  You have to install it :

sudo apt-get install libgstreamer0.10-0

and related plug-ins:

sudo apt-get install libgstreamer-plugins-base0.10-dev


You just install something else ( like 10.04 ) in its place.  Tell the installer to take over the whole disk and 12.04 will be gone.


Here are instructions to install from a bootable USB stick:
http://www.ubuntu.com/download/help/create-a-usb-stick-on-windows


How do I make the Right Alt+Shift switch languages in Ubuntu Linux?

Many keyboard layouts use Right Alt (aka AltGr) by default for accessing 3rd and 4th level symbols. Hence, in order to make the Right Alt+Shift shortcut work for switching input languages, you need to explicitly select some other 3rd level key.
You may want to edit /etc/default/keyboard and consider this line to achieve what you want:
XKBOPTIONS="lv3:ralt_alt,lv3:lalt_switch,grp:alt_shift_toggle"

(You need root access to edit /etc/default/keyboard. This is one way to do it:
gedit admin:///etc/default/keyboard

Then save and reboot.)
That combo turns Left Alt into the 3rd level key while Right Alt+Shift works for switching languages.
(copied from this SE answer)


CodeBlocks in Ubuntu 18.04 doesn't show any result in Console after Build and Run. What should I do?

Your C++ program is not running in Code::Blocks because you do not have a C++ compiler (a version of G++) installed, or if it is installed you have not configured the C++ compiler in the Code::Blocks compiler settings. The C++ compiler is not configured for any version of g++ in Ubuntu 18.04 by default, so it has to be configured in the Code::Blocks compiler settings.

Install the latest version of the g++ compiler for C++.

sudo apt install g++-8 xterm

Optionally install the latest version of gcc too (recommended).

sudo apt install gcc-8-base # recommended version

Start Code::Blocks.
Select Settings -> Compiler -> Global compiler settings (large blue gear icon in the left pane) -> Toolchain executables tab.
Select the Program Files tab. It has already been selected in the below screenshot.
Click the .. button(s) which are marked by the mouse cursor in the below screenshot. Navigate to /usr/bin. The C compiler should be either gcc or optionally gcc-8, the C++ compiler should be g++-8 and the Linker for dynamic libs should be g++-8.
Click the     OK     button to close the Compiler settings window.


How can I automatically set my status to Busy when Empathy starts?

After some searching, I found an app that communicates with Empathy via dbus. I pulled some code from that and created a script that will set your status.

Setting it up is pretty easy:

Download the script here (github page).

It requires some python libraries that are in the repos (and might be installed by default):

sudo apt-get install python-dbus python-notify

Then to set it to start on login, run Startup Applications, click Add, and fill in the fields like this:

Name:  Custom -- Start Empathy Busy
Command:  /usr/bin/python /path/to/empathy_set_status.py dnd
Comment:  Start empathy and set status to busy (do no disturb).

The command field includes what status to set. If you don't want busy (dnd), then you can use one of these values: available, dnd, away, xa, hidden, offline.

Now when you log in, the script it should run empathy, wait a bit, and then set your status. You should see a notification when it tries to set your status.

I don't check that the status is set correctly, so I just have a wait time to hope that empathy will be ready to let us change the status. Adjust your time if it's not working. Increase the value of EMPATHY_STARTUP_SECONDS until it works when you login. If you need to enter a password to unlock your keychain for your IM login, the delay will have to be long enough for Empathy to start up, for you to enter your password, and for Empathy to log into your accounts.


I think ffmpeg would do it.  This has the advantage of not decompressing and recompressing your file, so it should be quick. Use the -c copy argument to achieve this.

ffmpeg -i input.mp4 -ss 00:02:30 -t 00:10:00 -c copy output.mp4

To explain the above command...

ffmpeg is the application
-i input.mp4 is your input file
-ss 00:02:30 starting point (HH:MM:SS)
-t 00:10:00 duration of clip (ten minutes long)
-c copy copy audio and video without re-encoding
output.mp4 output file

See this link for more.

Additionally, a comment in the GitHub page (mentioned in the link above) suggests placing  -ss 00:02:30 before -i input.mp4 to speed up things. You can test both routes using time. Compare

time ffmpeg -i input.mp4 -ss 00:02:30 -t 00:10:00 -c copy output.mp4

and

time ffmpeg -ss 00:02:30 -i input.mp4 -t 00:10:00 -c copy output.mp4


Ok first: The reason why it didn't appear in the applications is that it hasn't been installed ... see the line of your output where it says

"The following packages will be REMOVED:
  unity-editor "

As explained in Installing Unity3d on Ubuntu 16.04 dpkg does not handle dependencies. If possible try gdebi or some dpendecie resolving installer.

If apt-get install -f does not work maybe try a newer version of Unity?

5.1 is kind of old

use e.g. https://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/   (at the bottom of the page)

The following steps worked fine for me on a new clean Ubuntu 17.04. install

1. Get the .deb file

https://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/   (newest version is found at the total bottom of the page)

2. Install gdebi

sudo apt-get install gdebi
 3. Install unity using gdebi

sudo gdebi unity-editor_amd64-5.5.3xf1Linux.deb

gdebi should now resolve the dependecies and show you which packages will be installed.

-> type 'y' + ENTER to install

"Unpacking unity-editor ()" can take a couple of minutes to finish so just be patient.

4. start Unity3d

Since most Desktops (I don't know which you are using) have a search function just search for "Unity". It should appear like here

5. LogIn

After the splash appears

You will be asked to LogIn with you account data or to create one.

And respond the following question with I aggree ;)

6. fix License-Error

It might happen (for me it did) that there is an Licence-Error coming up.
 Here click on "Re-Activate" on the right

And .. you will be asked once again to agrree

After this you have to choose your License Type (For example personal ;) )

And (though we said personal) responde the following (e.g. like this)

 (Please be honest with this because developers of software also have to live from something ;) )

After finishing this step you should see this screen

7. Use Unity

Create a new Project according to your needs and open it up.

DONE :) You now should be able to use Unity on Ubuntu.


How to send SMS on the Skype for Linux 8.10.0.4?

Well, I guess the answer is - if you want to send SMS, do NOT use Skype for Linux (or Android); if you're lucky enough to get on Skype for Web, there is a possibility there:

There is the little "Via Skype" button there, if you click it, you have the option of "Send SMS".


How to arrange every n rows into columns using awk

I'm not sure about awk but it can be done simply using split and paste.

Let us assume a file named data contains our rows. First to split it into 3 lines chunks:

$ split -l 3 data output-

Then to put these chunks together:

$ paste -d ' ' output-*

a 2 d 6 g 10
b 3 e 8 h 11
c 4 f 9 i 12

And remember to remove output- files.


Dual Boot- installing windows in efi mode using gpt partition

A. Back up everything first. Everything. Really.

B. The gdisk app  allows you to change from MBR to GPT.

C. Don't expect to be able to install Win10 without having it stomp all over your Linux install. Be prepared to reinstall Ubuntu.


problem in accessing NTFS drive: "The disk contains an unclean file system"

You can run in Windows chkdsk /f

or

Install ntfs-3g with sudo apt-get install ntfs-3g.
Then run the ntfsfix command on your NTFS partition.

  ntfsfix v2.0.0 (libntfs 10:0:0)

  Usage: ntfsfix [options] device

Attempt to fix an NTFS partition.

-h, --help             Display this help
-V, --version          Display version information

  For example: ntfsfix /dev/hda6

  Developers' email address:
  linux-ntfs-dev@lists.sf.net Linux NTFS
  homepage: http://www.linux-ntfs.org

=======================================

You can use a program called ntfsprogs.  If its not installed, you can install it by, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install ntfsprogs

Once installed, you need to find out you NTFS drive name, just do sudo fdisk -l, to find that out, once you know the name, then

sudo ntfsfix /dev/sdXX

Make sure that you replace the XX with your drive's name.

Note: Whenever you're dealing with partition, make sure that you have a complete backup just to be on the safe side.

===================================

sudo apt-get install testdisk

Then run it:

sudo testdisk

and follow the instructions. You must search for partitions and then write the changes.

Thanks to answerers here:

Fix corrupt NTFS partition without Windows
Repair NTFS without Windows?


Best Ubuntu release for AMD Athlon 64 + 3000 1.8 GHz?

You can try Ubuntu 12.04 that has support until 2017.

http://releases.ubuntu.com/12.04/


How can I stop server after a particular uptime?

Here is a simple bash script to do this job (save this to a file with .sh extension):

#!/bin/bash

reboot=$((750*3600))
uptime=$(awk -F. '{print $1}' /proc/uptime)

if [ $uptime -ge $reboot ]; then
  shutdown -h
fi

Let me explain:

reboot=$((750*3600))

We get the representation of 750 hours in seconds

uptime=$(awk -F. '{print $1}' /proc/uptime)

This is the system uptime in seconds

After you saved the file give it executable permissions:

chmod +x name-of-your-file.sh

You can set a cron job to execute this script every hour:

sudo crontab -e

Then paste this:

0 * * * *  /path/to/your/script.sh


Without any actual confirmation, it's likely that redis is actually just what we call a metapackage - a package that does nothing but pull in another package as its dependency (or dependencies).

In this case, since redis installs redis-server, and redis-server actually contains the redis server bits, we can make the assumption that redis is just a metapackage that pulls in redis-server.

They're not identical per se, but they ultimately install the 'same thing' by pulling in the redis-server dependency when installing redis.


Transmission BT stops downloading, "Error: Protocol error"

Check the permissions on the save directory. Make sure transmission can write there.


The command is running since you're seeing it in syslog. I imagine you don't have a hashbang at the top of your shell script, are using bash syntax while running the job in sh, or are using a non-fully-qualified path (using just echo instead of /bin/echo). There's this answer to that problem:
https://unix.stackexchange.com/questions/94456/how-to-change-cron-shell-sh-to-bash


Contact book software for marketing purposes

Just a few suggestions:

KAddressBook
Osmo
Rubrica


Ubuntu Software Center is only showing installed apps

click on Upper icon[softwares] it will show all applications in your repositories. Check is your /etc/apt/sources.list  ok? Then update

sudo apt-get update

Or you can generate sources.list from here for you distribution

http://repogen.simplylinux.ch/


Fresh Install of Ubuntu, After Windows 10

Download and install UnetBootin and then try burning it to USB. Some of the USB burners don't support USB Drivers while booting that might've caused the problem.
Hope this helps!


Remove note about bash that appears when opening the terminal

There's probably an alias on your .bashrc or .bash_profile calling that file, so it tries to load it everytime you get a new prompt.

Try editing them with one of these commands:

gedit $HOME/.bashrc
gedit $HOME/.bash_profile
gedit $HOME/.profile

Look for any line loading 'thisroot.sh' and comment it (write a # character at the begining of those lines). If you see after saving and opening a terminal that all works well, you can go ahead and directly deleting those lines.

Also, the way the script is being called sounds wrong, shouldn't it be /home/YOURUSERNAMEHERE/bin/thisroot.sh?


How do I actually disable F11-fullscreen on Lubuntu 13.04?

I think just deleting the lines for F11 may not serve the purpose.

You need to replace the contents after action name= to nothing.

So, change action name="ToggleFullscreen" to action name="", save the file, and then run openbox --reconfigure in a terminal. There should be no error message if your lubuntu-rc.xml is in good condition! There's no need to reboot. Now, F11 should have no effect as far as Openbox is concerned.

I don't know about your other programs which also want to use F11 for something else. For example, both Firefox and Google Chrome will still use F11 to toggle full screen. On the other hand, F11 in LibreOffice will now function to open the "Style and Formatting" panel.


Dual boot between ubuntu 18.04 and windows 7 boots straight into ubuntu

With grub customizer, add a new entry, name it windows, and set the type to windows chainloader. After you finish adding it, hit save, and reboot. Spam escape while booting to get the grub menu to appear and check to see if it boots. If this is what you already tried, then I'm sorry for waisting your time.
Edit: people have suggested solutions for this situation at the link following Add Windows 7 to boot menu


How can I copy a file to a new location, creating the directory as well

With --parents you can recreate the directories from the source to the destination. For example:

cp --parents ~/Downloads/test.txt ~/Desktop/

Will create the subdirectories ~/Desktop/home/desgua/Downloads and then copy test.txt into it; and

cp --parents Downloads/test.txt ~/Desktop/

will create ~/Desktop/Downloads.


I had a similar problem until I changed the username in the documentation to what is specific to mine - bitnami. Username for some Ubuntu intallations are ec2-user, admin, root, etc. You need to confirm from your documentation.

Once you confirm the username, type this command at the prompt to re-adjust that setting in Postfix mail settings:

sudo dpkg-reconfigure postfix

Then continue configuration from that point of the documentation. I hope that helps.


Chrome or Chromium icon doesn't show in the launcher

Try this:

apt-get remove google-chrome-stable (or whatever version you're running)
cd ~/.config
rm -rf google-chrome/

then logout and login, and launch chromium. It should appear in the launcher now. That's what worked for me :)


The processor of the PS2, called the "Emotion Engine", is a processor from the MIPS family. Since Ubuntu Linux only supports i386, AMD64, and ARM platforms, you cannot install it on the PS2. You need to look for a distribution that supports the MIPS platform.


Install pyqt4 . Unable to locate package

First try this:

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

Then this:

sudo add-apt-repository main
sudo add-apt-repository universe
sudo add-apt-repository restricted
sudo add-apt-repository multiverse

Then before you try installing the package again, I suggest looking into your sources list:

nano /etc/apt/sources.list

Go online and look at what Ubuntu default source list is supposed to look like and compare it to yours. If everything is fine, then go on and install the package. If you still get an error, reply back.


Persistent device naming for Windows 7-partition in Ubuntu

All you need to do is modify your /etc/fstab file giving the windows partition a fixed mount point.

This is an example: /dev/sda2  /media/Windows  ntfs    uid=1000,gid=1000,dmask=027,fmask=137   0   0

Practically, this line says mount the /dev/sda2 partition to /media/Windows and sets partition permissions.

Every time you turn your computer on the Windows partition will automount on /media/Windows.


Uninstall Ubuntu 12.04, Install Windows 7 (legal copy)

Just don't do it.

Just learn how to use Ubuntu and you will love it. If you had used Ubuntu all your life and you addicently bought a Windows laptop, you would have been struggling with Windows too. Again: Learn how to use Ubuntu and you will love it.

But if you don't want to learn how to use Ubuntu, you could consider installing Kubuntu. Kubuntu is a version of Ubuntu that works more like Windows. It is very easy to install. Just download it, burn it to a DVD as described here, and start up from it. Then just follow the instructions. The installation is really straightforward.

Just a few of the reasons you'll love Ubuntu/Kubuntu:

Almost no viruses
Windows is very expensive, Ubuntu is free
You will get free updates, forever. If you use Windows, Microsoft will force you to pay (Most of the time more than €100!) for an upgrade in a bunch of years.
Ubuntu is known to be faster

But here is how to install Windows alongside Ubuntu:

Pretty large amount of steps, but it's not really difficult!

Burn a DVD with Ubuntu or Kubuntu.
Start from the CD/DVD. If it is an Ubuntu DVD, click the Ubuntu icon in the topleft corner and search for GParted. Then click GParted. If it is a Kubuntu DVD, click the blue icon in the downleft corner, click Applications, and search for Partition. Then click the partition manager. You will see something like this in Ubuntu:

And something like this in Kubuntu:

At the top, you can see your partitions. Select the biggest partition.
Click Partition > Resize/Move
At "New size", lower the number with the amount of MB's you want to reserve for Windows.
Click Resize/Move, click the green checkmark, click Apply. Wait. Click OK.
Shut down your computer. The DVD will automatically be ejected. When asked, remove the DVD, close the tray, and press Enter.
Start from the Windows 7 installation disk.
Choose "Install now". Then choose "Custom (advanced)". Then choose "Disk 0 Unallocated space". Then choose Next.
Wait until installation is finshed. Your computer will start from Windows. When Windows is installed (and has performed some post-installation operations), turn off your computer.
Boot from the Ubuntu or Kubuntu DVD again. Select Try Ubuntu. Connect to Wi-Fi.
Now we, unfortunately, have to use the terminal. Press Ctrl + alt + T. The terminal will appear. Type in these commands:

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

sudo apt-get install -y boot-repair && (boot-repair &)
With Ubuntu, click the Ubuntu icon in the top-left corner and search for Boot Repair. With Kubuntu, click the blue icon in the down-left corner and search for Boot Repair. Click Boot Repair. You should now see something like this:

Click Recommended repair and wait until it's finished.
Shut down your computer. The DVD will automatically be ejected. When asked, remove the DVD, close the tray, and press Enter.
DONE!!! Every time you turn on your PC, you can choose between Ubuntu and Windows 7 using the arrow keys. Just use the arrow keys to select Ubuntu or Windows and press Enter. If you do nothing for 10 seconds, it will automatically start Ubuntu.


Can a Mumble Server be hosted on a Ubuntu desktop?

You should definitely be able to run a Mumble server on Ubuntu Desktop, although you may need to account for not having a static IP depending on your setup.

Try using the official Murmur Guide to set up the server. Also make sure you open the appropriate port for both UDP and TCP (default 64738) in your firewall if you have one.


Install hangs on reboot, Virtualbox 4.2.16, Ubuntu 12.04 Guest on Windows 7 Host

You can safely do an "unclean shutdown" (either close the window and choose "Power off the machine", or click the "Machine" menu and then "Close"), because the filesystems are unmounted. When a filesystem is unmounted, you're sure that there's nothing left to be written.


As for the first question, why /etc/fstab is not configured, I'm citing this ubuntuforums-thread:

  /lib/init/fstab contains the filesystems that are always mounted on
  boot, like root / and the virtual filesystems. But you can still use
  /etc/fstab to override the entries from /lib/init/fstab or add your
  own ones.

So you can find the things that are mounted on boot in /lib/init/fstab and can override them in /etc/fstab. As Ubuntu now uses systemd, I'm wondering why it is still called /lib/init/fstab. (Searching for files called fstab, I have only the /etc/fstab and the /lib/init/fstab on my system that uses systemd)


"permisson denied" when I install JDK on Ubuntu


Update manager seems to have moved off screen and is lost from visibilty

This sounds like bug 877444.  If you want to track progress on the problem, I suggest you subscribe to that bug report.

You can work around the problem in two ways:

Right click on the update manager icon in the launcher and pick the Install All Available Updates menu item if you just want to install updates.
Rick click on the update manager icon in the launcher and choose Quit.  Then start the program again manually.  It should now be visible again.


The vboxdrv kernel module is not loaded for kernel 5.0.5

This is normal behavior for any new kernel release and existing kernel objects / modules will not work until they are updated and made compatible with the kernel you are running.


Proxychain with static IP untill tor reload

I believe you are looking for the option MaxCircuitDirtiness set it for number of seconds. By default it is set to 10 minutes (600). One hour is 3600, 4 hours would be 14400, and so on.

Add this option in your torrc file. There is usually a max to the number so if you are manually editing torrc with nano or vim, you may need to play with  the number if your initial ideal setting is too large.

Otherwise just edit the torrc file through the tor control panel and you should be notified of any syntax error or whatever.

To toggle a new IP, see my answer here:

Change IP address which is given by Tor using the terminal

Sources:

www.torproject.org

How to prevent TOR Vidalia from changing my IP?

As for the list of IPs, I am assuming you are referring to a list of exit nodes. You can limit the exit nodes using the ExitNodes option in your torrc file.

www.torproject.org


Laptop screen only works when connected to external monitor

I had a similar problem with a Toshiba. Somehow the DM got confused as to which was the internal display, so when the external was disconnected it would turn of the internal display.

The fix was to delete the monitor configuration file (monitors.xml). Turn off the computer. Then start with the external disconnected and let the DM recreate it's config file.

the exact location varies depending on desktop, but try /home/(user)/.conf/
replace (user) with your user name.


Script for checking internet connection and password request

Replace service with the full path to service binary i.e. /usr/sbin/service:

#!/bin/bash
if ! [ "$(ping -c 1 google.com)" ]; then
    /usr/sbin/service network-manager restart
fi

Also put this in root's crontab as restarting network-manager requires root privilege, alternately you can grant yourself password-less sudo access for this command only, then you can use sudo /usr/sbin/service network-manager restart.


Dual boot with Ubuntu and Windows issue?

Basically, the best solution would be to clean reinstall Ubuntu ...
but there are still a couple of solutions that are worth trying

see this post : How to change ubuntu install from legacy to uefi

I have tried & method 1 did work for me on a HP laptop, Win10 1903 + Ubuntu 18.04

  Method 1: Disable the Compatibility Support Module (CSM; aka "legacy mode" or "BIOS mode" support) in your firmware. Boot the Ubuntu
  installer in its "try before installing" mode. Double-check that
  you've booted in EFI mode by looking for a directory called
  /sys/firmware/efi. If it's present, you've booted in EFI mode and can
  continue; but if it's absent, you've booted in BIOS mode and should
  review your firmware settings and how you created the boot medium.
  Download and run the Boot Repair program, as described here. Tell Boot
  Repair to repair your installation. Reboot. With any luck, GRUB will
  appear and give you the option of booting either Windows or Ubuntu. In
  some rare cases, the system may boot straight to Ubuntu in EFI mode
  and you'll need to tweak GRUB to get Windows to appear in the GRUB
  menu.

PS : rule #1 make a backup, rule #2 make a f*** backup, rule #3 ... check your backup is up-to-date and valid ;)

Nath


I just had the same problem. I have managed to fix it in a very simple way. Going to Software and Updates > More drivers, you can select the driver you previously installed, in my case NVIDIA driver metapackage from nvidia-driver-460 (privative, tested).
see screenshot (spanish version)

It seems that Ubuntu can change your default graphics card driver.


Install Nvidia GeForce 610M in Ubuntu 12.04LTS on ASUS K55VD

The documentation is provided on the Ubuntu wiki here.

Basic steps:

sudo apt-get update

Then

sudo apt-get install  nvidia-kernel-common nvidia-current nvidia-settings

Finally change the driver on the Xorg.conf

Section "Device"
Identifier "Configured Video Device"
Driver  "nvidia"
EndSection


/usr/share/lightdm/lightdm.conf.d/*.conf
/etc/lightdm/lightdm.conf.d/*.conf
/etc/lightdm/lightdm.conf

From here :)

https://wiki.ubuntu.com/LightDM


Some of my Fn keys no longer work after may 8th updates

well i just tried (on a whim) removing ppa:ubuntu-x-swat/x-updates and that seems to have worked

seems somehow the nvidia drivers jack up fn keys on some rigs


Why is Debian's chromium-driver package renamed to chromium-chromedriver on Ubuntu?

It's not just renamed - they're different packages completely in functionality and how they work.
In Debian, chromium-driver doesn't have a dependency on Snaps.  Debian packages the Chromium driver directly.  As such, it has a sync blacklist in place so it doesn't show up in Ubuntu's repos during autosyncs.
Concurrently, however, Ubuntu has moved the Chromium Browser package to 'snaps' - because of the way source packages and binary names and such are, we have to have a different name for it to avoid conflicts.  While I do not have specifics on how chromium-chromedriver got its name that way, I can state that it serves a completely different binary package purpose - it's a transitional package that simply installs the Chromium snap which has the chromium driver / Selenium available in it, and is wholly dependent on snapd and the Snaps infrastructure to function and to be set up on your system to function.
Treat them as completely different, independent packages, since we no longer ship Selenium and such directly and instead do it via snaps here in Ubuntu.


OK, I found some helpful information in this thread. In particular, doing

sudo dmraid -rE

was helpful, though I had to manually patch /etc/fstab after that, reasonably enough. Still not sure that I've covered everything though, and I'd be happy to have an explanation of what dmraid does. Magic incantations to "make it all better" are OK, but I'd rather understand what I'm doing, at least in broad terms!


Some computers are picky about UEFI booting from the internal drive.
My Toshiba Satellite (C55-B) required a system recovery partition first and the EFI partition second. Some Systems require the EFI partition to be fist. Some just take the first FAT partition as the EFI partition.

Look at the partitioning scheme on the HDD that came out of the Acer to see if maybe this is the issue.

Second possible issue is does the Acer use AHCI?


Can my Dell Inspiron 3443 laptop run ubuntu 16.04?

Test it by booting a live OS from USB

If your machine can run 14.04, I suspect it can run 16.04 as well, but don't take my word for it. Create a bootable Ubuntu 16.04 (or any other version you want to try) USB stick, and see if it will boot! You can create this kind of USB from Windows or Ubuntu. Once you have Ubuntu on your USB, you can take it for a test drive on computer as a live OS without destroying or changing the existing operating system that you currently have installed on your machine.


How do I use basic linux commands to delete all files except one?

You can use the shell glob abc?* to match abc followed by at least one character

rm abc?*

e.g.

$ ls abc*
abc  abc1  abc2
$ ls abc?*
abc1  abc2

so

$ rm abc?*
$ ls abc*
abc


Network traffic to github.com is incredibly slow lately

You covered all the normal things I could think of. Here is what I would try next:
Test for Network issues:
Run
wget -O /dev/null --report-speed=bits https://github.com

on a few computers in the lab and change out the url for the project you are testing.
If that doesn't yield anything, maybe try:
ping -c3 github.com

And note if the route is different.
Test for Git issues:
Run the following with your normal git commands:
GIT_CURL_VERBOSE=1 GIT_TRACE=1

Beyond that, can you re-image this machine?


12.04-server update failure after full /boot, apt not working, unmet dependencies to non exiting linux-image kernel

I had a very similar problem to you. I ended using dpkg to remove both linux-server and linux-image-server

I tried to download the older versions but they were not in the normal apt-get repositories as they had been replaced by newer versions already.

Once I did that, I was able to reinstall the correct versions via apt-get


How to get total network usage in terminal since pc opened

The more obvious route is to use Grep to extract only the values.
# RX bytes
ifconfig wlp0s20f3 | grep -o '[0-9.]* MiB' | head -n1
# TX bytes
ifconfig wlp0s20f3 | grep -o '[0-9.]* MiB' | tail -n1

A more elegant alternative is to fetch the values (in bytes) from the /sys/class/net/wlp0s20f3/statistics/ directory.
cat /sys/class/net/wlp0s20f3/statistics/rx_bytes
cat /sys/class/net/wlp0s20f3/statistics/tx_bytes


How to set CPU scaling limits System-wide

Use the values supplied with cpufreq-set

cpufreq-set -d 2.00 GHz

Note :

This is not working for me but it is what the man page says


Is there a keyboard shortcut for minimizing all windows except the active one?

It is possible to achieve this with a python script. The script requires python-wnck and python-gtk to be installed in order to work, although I think these are installed by default anyway.

Copy and paste this into a text editor and save in a sensible place (eg. as minimise.py in your home folder):

#!/usr/bin/env python
import wnck
import gtk

screen = wnck.screen_get_default()

while gtk.events_pending():
    gtk.main_iteration()

windows = screen.get_windows()
active = screen.get_active_window()

for w in windows:
    if not w == active:
        w.minimize()

You can then set up the keyboard shortcut by opening Keyboard Shortcuts.

Click on Add to create a new shortcut.

Use the command bash -c 'python ~/minimise.py' (this is assuming you saved it as minimise.py in your home folder).

You can then assign your preferred keyboard combination to this action.

The script will minimise all non-active windows. I don't think this is very useful for your use case because you will want to have all of the Gimp windows open. You can use a slightly different script to minimise all windows that aren't from the current application instead:

#!/usr/bin/env python
import wnck
import gtk

screen = wnck.screen_get_default()

while gtk.events_pending():
    gtk.main_iteration()

windows = screen.get_windows()
active_app = screen.get_active_window().get_application()

for w in windows:
    if not w.get_application() == active_app:
        w.minimize()


Are there any advantages of having Ubuntu on usb?

The one obvious advantage of having an ubuntu installation on a portable usb-device is that is is .... portable.

Most other issues might come out as disadvantages - speed might be 1 example.

I agree with @MadMike that the question is somehow not perfect for the AskUbuntu-format .... would be better to discuss such questions in a forum or chat.


Thunar custom action to open terminal as root


I have the same problem on a dell vostro 7590 9th gen. The current kernel modifications are quite annoying and mess many people drivers.


How to add space to Exec path in a Thumbnailer description?

For the record, you can also synchronize other folders in your home directory with Ubuntu One, rather than simply copying all the files you want synchronized into ~/Ubuntu One.

Also, you can use quotes in the Exec line (not sure about TryExec). So Exec="/home/allfox/Ubuntu One/fun_goods/thumbnailer/gnome_thumbnailer_with_mplayer" %u %o %s should work. You can try using the quotes in TryExec as well. If the quotes don't work there, you can also probably just remove the TryExec line, and it should work.

Also of note, is that Ubuntu One does not preserve permissions bits, so the executable bit on the script may have been lost, and thus the script would fail to execute as a result.


Replacing gksudo with pkexec: editor doesn't start in current folder

As mentioned in comments, gksu was "orphaned" in 16.04 but you can still install it with:

sudo apt install gksu

That said I made a wrapper script for pkexec a long time ago that might be of some interest:

#!/bin/bash

# Usage: gsu gedit file1
#  -OR-  gsu natuilus /dirname

COMMAND="$1" # extract gedit or nautilus
ABSOLUTE_NAME=$(realpath "$2")

pkexec "$COMMAND" "$ABSOLUTE_NAME"

#log-file "$ABSOLUTE_NAME" ~/bin/log-gsu-"$COMMAND"

I named the wrapper gsu as a short form of gksu. The log-file script is a separate project which I commented out in the script for this answer.

You need to setup gedit and nautilus policy kits before you can use this script as the comments reference. In your case you would need to setup a policy kit for leafpad.

Hope this helps!


Java 11 to 8: update-alternatives: error: no alternatives for mozilla-javaplugin.so

You can select the default Java Version by running the following command:

sudo update-alternatives --config java

Then select the Java Installation you want to use per default by typing the selection number. You can check the default Java Version by running java -version. It should print something similar to the following:

openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

Hope that helps.


How can I move Amazon search results into a dedicated shopping lens and out of the home lens?

Mark Tully has created a shopping lens independent of Canonical's unity-lens-shopping.

Search results in the independent lens are still Canonical/Amazon affiliated links and purchases made will help fund Ubuntu.  To install the independent shopping lens simply run the following two commands in the terminal (Ctrl+Alt+T).

sudo add-apt-repository ppa:markjtully/ppa
sudo apt-get update && sudo apt-get install unity-lens-shopping-alternate

Remove shopping results from the home lens with the terminal command below.  This will uninstall Canonical's default shopping lens.

sudo apt-get remove unity-lens-shopping

Found on omgubuntu


Both are the same, just different point releases.   The point releases and dates are: 12.04.1 (23 August 2012), 12.04.2 (14 February 2013), 12.04.3 (22 August 2013) and 12.04.4 (24 January 2014).

Now that being said, you can download and install Xubuntu.  I just installed it on a Celeron with 1GB RAM, and I love it.  Its quick, and snappy.

Hope that helps you.


the easiest way is to install grub customizer
by
sudo apt install grub-customizer

it will allow you to
change

background of grub such as a color or a image
it will allow to change color of the text in grub
and more


Yes, Ubuntu server can be turned into an Ubuntu desktop by removing server related packages and installing ubuntu-desktop metapackage.

Check these questions for a How-to on the topic

Switching from Server to Desktop
How can I switch from server kernel to desktop kernel?


Turns out I had an entry in my fstab for a partition that didn't exist (the one that I altered). If anyone else is having this issue, get a liveUSB and boot from it, find the partition that Ubuntu is installed on, do "sudo gedit (insert path to partition here)/etc/fstab" and remove any entries that list UUIDs unable to be found in the Disks application.


My new settings I have recently found and used.
zeus@buster-raspi:~$ cat .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

snip ....

# New history settings  https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows

export HISTCONTROL=ignoreboth:erasedups  # no duplicate entries edited to ignore the blank line start too
export HISTSIZE=100000                   # big big history
export HISTFILESIZE=100000               # big big history
shopt -s histappend                      # append to history, don't overwrite it

# Save and reload the history after each command finishes
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"