Is it safe to use the Linux Mint repository in Ubuntu?

If at all possible you should use the PPA for Ubuntu. The ppa is going to be more compatible.

If you need you can try to use the Mint repositories, but mixing and matching repositories can be problematic. If you do so, use pinning and install the minimal number of packages from Mint.

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


To execute a script upon reboot:

Put your script in /etc/rc0.d
Make it executable: sudo chmod +x K99_script
Notes:

The scripts in this directory are executed in alphabetical order.
The name of your script must begin with K99 to run at the right time.


To stop and disable the dovecot service run

sudo systemctl stop dovecot
sudo systemctl disable dovecot

There is no need to remove the scripts manually.

To remove dovecot

sudo apt-get purge dovecot-core
sudo apt-get autoremove dovecot-core


Ubuntu 12.10 with video and audio out of sync

In VLC you can use j and k keys to control Audio Delay.


Use your Tab  key to select the OK option.


Ubuntu doesn't use yum - that utility is for RPMs and Red-Hat based distros.

Ubuntu is based off of Debian which uses .deb packages.  You need to use apt or apt-get to install things.

With regards to NFS utils, you can install them with apt install nfs-utils.


How can I search available PPA packages and get a list sorted by version number?

No, the Launchpad site does not offer this feature.

However, if you enabled the PPAs on your system, you can get a list of a package foo ordered by version number:

apt-cache policy foo


Mistakenly renamed LVM volume group, now Ubuntu won't start, drops to busybox

Instead of vgrename tkr3Cj-xxx ubuntu--vg-root, run this command:

vgrename tkr3Cj-xxx ubuntu-vg

With that, Ubuntu booted and mounted the encrypted disk flawlessly.

It seems that the -root part and the doubling of the - happen somewhere in the process.


Can't see Backup Settings (deja-dup) on System settings

Deja-dup preferences should be available from the command line by running:

deja-dup-preferences

Also this question goes into how to add an item to the system settings. You can use

 locate "deja-dup-preferences.desktop"

to see if you have a .desktop file lying around to modify for this.

Or you could just put the following into a new file at "/usr/share/applications/deja-dup-preferences.desktop"

[Desktop Entry]
Version=1.0
X-Ubuntu-Gettext-Domain=deja-dup

Name=Backups
Comment=Change your backup settings

Icon=deja-dup
TryExec=deja-dup-preferences
Exec=deja-dup-preferences

StartupNotify=true

Type=Application
Categories=Settings;Utility;Archiving;GNOME;GTK;X-GNOME-SystemSettings;

NotShowIn=Unity;

# Translators: Add whatever keywords you want in your language, separated by semicolons
# These keywords are used when searching for applications in dashes, etc.
Keywords=déjà;deja;dup;

X-AppInstall-Ignore=true

Actions=BackUpNow;

[Desktop Action BackUpNow]
Name=Back Up
Exec=deja-dup --backup

That should give you back the system settings icon after a new login I think.


You need some kind of network connection between the two devices for ssh to work.

You can ssh to a computer on a local network with:

ssh user@computername.local

I know this works for devices connected to the same router. I'd presume it's the same situation if you connected the two computers with a cat5/ethernet cable.


Ubuntu 15.04 doesn't start with nvidia driver

I found the solution here.
I also reinstalled ubuntu but I think that wasn't the solution.


You can run sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.4 /usr/lib/x86_64-linux-gnu/libtiff.so.3 (Replace x86-64-linux-gnu with i386-linux-gnu if you are on i386), but note that the program may not run due to different library symbols.

The last update seems to have been in 2011, which implies that the software isn't under active development, and the fact that the source code doesn't seem to be available online complicates issues. If you can get the source code, you can compile it locally and make sure it runs correctly.


Your pattern would work if you would use the bash keyword, [[, instead of the [ (test) builtin and remove the quotes from the glob pattern:

[[ $arch == arm* ]] && echo 'This is ARM Architecture'

You can also use the Regular expression matching using the [[ keyword and =~ operator:

[[ $arch =~ ^arm ]] && echo 'This is ARM Architecture'

^arm checks whether the variable $arch contains arm at the start (Regex token ^ matches the start of a line).

Also, for 32 bit architectures, uname -i should show i386 or i686 or i486, not x86_32.

On a different note, you should use elif construct rather that using if three times, it was designed for tasks like this. So your full script can be rewritten as:

arch=$(uname -i)
if [[ $arch == x86_64* ]]; then
    echo "X64 Architecture"
elif [[ $arch == i*86 ]]; then
    echo "X32 Architecture"
elif  [[ $arch == arm* ]]; then
    echo "ARM Architecture"
fi


Download the ubuntu ISO here.
Download rufus here.
Open rufus and select your USB drive.
Select the options like on the picture

Click on the CD icon next to "Create a bootable disk using"
Navigate to the ISO that you downloaded previously.
Click start and wait until it's complete.
Reboot your PC and boot from USB.
Follow the installation steps and choose install ubuntu alongside windows boot loader.

Wait until finished and enjoy your Dualboot!


Getting attempt to read or write outside of disk "hd0" after install

Figured out my issue.

Machine was not set to UEFI but was in BIOS.

Changed setting and all is working now.


The pepperflashplugin-nonfree package is broken, at least for the moment, and you can as well remove it again. This is what I suggest:

Enable the Canonical Partner repository.
Remove pepperflashplugin-nonfree:

sudo apt purge pepperflashplugin-nonfree

Install adobe-flashplugin:

sudo apt install adobe-flashplugin

Restart Chromium.

This will install both the plugin (PPAPI) for Chromium and the plugin (NPAPI) for Firefox.


I know it's a little late, but if you go to the Ubuntu Software Center and search for the Gnome Shell Common package (gnome-shell-common) it will install all of the common files required here.

Please note: as the source file for the user-themes extension is provided and modified by a party outside of the included source repositories for the gnome-shell installation, compatibility cannot be guaranteed.


I have never run into limitations on size or time, and as long as your script isn't hampering the system in some way-there is no limitation.

I have a script that backs up all my servers to a network location, it runs for 19 hours. as far as sizes? scripts are only text files, how big could it get? bash scripting a great because of its few limitations, enjoy!

hope this answers your question!

thanks
jm


Touchpad randomly clicks on Dell Latitudes

Not sure how relevant it is but I found this:

Touchpad on specific Latitude laptops is erratic or freezing when AC adapter or LAN cable is connected

I have a couple of Dell's and I've found that downloading Windows drivers and installing them can sometimes cure the ills in my Linux / Ubuntu too.

You can check out this Debian laptop review: Installing Debian On Dell Latitude E6530 (wheezy)

  touch signal is erratic when multi-touch is used (i.e. 2-finger
  scroll, 3-finger zoom, 3-finger right-click, etc.).

  Experience across the web shows many issues with Latitude TrackPad -
  i.e. primarily touch/gesture related (see: Launchpad #1228471 and
  Launchpad #606238 - would've used Debian Bug record but getting
  Internal Server Error on search). Solution of adding Sid/unstable
  repository for latest (1.7.3-1+b1 according to reportbug)
  xserver-xorg-input-synaptics package, essentially results in a
  dist-upgrade due to dependencies. Given closed nature of firmware,
  unlikely to be resolved in package until hardware closer to obsolete,
  or not at all.


In Docker, how to prevent apt-based Dockerfiles to stop working in the future with newer versions of programs?

Recently I discovered that Debian made snapshots of their repositories so any Debian distribution is able to connect, update with those sources, and download specific versions of binaries from any past date.

I guess this should also work with Debian-based containers (which is my case), so I will post this as temporary response, at least until I test if this really works, (or someone post a better solution, of course).

Thanks anyway.


Purple and black screen and no logo before login screen

With new version 18.04.4 the lenovo logo appear and after that ubuntu logo before logging in. The boot time is faster than previous version almost 10 seconds.


How can I install and set up Selenium WebDriver on Ubuntu 16.04?

The below info were taken from: Python - Getting Started With Selenium WebDriver on Ubuntu/Debian

WebDriver (part of Selenium 2) is a library for automating browsers, and can be used from a variety of language bindings. It allows you to programmatically drive a browser and interact with web elements. It is most often used for test automation, but can be adapted to a variety of web scraping or automation tasks.

To use the WebDriver API in Python, you must first install the Selenium Python bindings. This will give you access to your browser from Python code. The easiest way to install the bindings is via pip.

On Ubuntu/Debian systems, this will install pip (and dependencies) and then install the Selenium Python bindings from PyPI:

$ sudo apt-get install python-pip
$ sudo pip install selenium

After the installation, the following code should work:

#!/usr/bin/env python

from selenium import webdriver

browser = webdriver.Firefox()
browser.get('http://www.ubuntu.com/')

This should open a Firefox browser sessions and navigate to http://www.ubuntu.com/

Here is a simple functional test in Python, using Selenium WebDriver and the unittest framework:

#!/usr/bin/env python

import unittest
from selenium import webdriver

class TestUbuntuHomepage(unittest.TestCase):

    def setUp(self):
        self.browser = webdriver.Firefox()

    def testTitle(self):
        self.browser.get('http://www.ubuntu.com/')
        self.assertIn('Ubuntu', self.browser.title)

    def tearDown(self):
        self.browser.quit()

if __name__ == '__main__':
    unittest.main(verbosity=2)

Output:

testTitle (__main__.TestUbuntuHomepage) ... ok

----------------------------------------------------------------------
Ran 1 test in 5.931s

OK


Ubuntu 16.04 Ethernet resume after suspend/cold boot

In powertop, under Tunables, look for "Runtime PM for PCI Device Intel Corporation Ethernet Connection I219-LM"; if it is enabled (Good), toggle it to switch the feature off (reported as Bad).
In my case, it immediately brought the ethernet back online.


unable to filter out xscreensaver at ccsm opacity plugin?


Install gparted

sudo apt-get install gparted

Open it and in the right corner select volume you want. Be careful! /dev/sda is most likely your hard drive. Use the drop-down arrow to switch to the USB drive. If you have more than one USB drive mounted, be sure you are choosing the correct one. Additional devices will be /dev/sdb, /dev/sdc, and so on.

Right click on the USB flash partition and you'll see format option. If it is grayed out, you need to unmount the USB drive first.


How to boot Ubuntu without a monitor plugged in?

What I have found as workaround, but when I plug a screen there is no more image

Install dummy monitor

sudo apt-get install xserver-xorg-video-dummy

Backup xorg.conf

sudo  mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak

Create a new xorg.conf

sudo gedit /etc/X11/xorg.conf

with

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

Section "Monitor"
    Identifier  "Configured Monitor"
    HorizSync 31.5-48.5
    VertRefresh 50-70
EndSection

Section "Screen"
    Identifier  "Default Screen"
    Monitor     "Configured Monitor"
    Device      "Configured Video Device"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1152x864"
    EndSubSection
EndSection


How do I open an existing LXD container?

For anybody interested, the missing piece of the puzzle was that I had to re-use the existing lxd database, lxd.db.

So the steps for me to use my pre-existing LXD containers on a fresh install are:-

Install LXD

sudo apt-get install lxd

Delete the containers and images directories

sudo rm -rf /var/lib/lxd/containers
sudo rm -rf /var/lib/lxd/images

Create symbolic links to my pre-existing containers and images directories.

sudo ln -s /media/sda10/lxd/containers /var/lib/lxd/containers
sudo ln -s /media/sda10/lxd/images /var/lib/lxd/images

Mount my original install partition and copy the lxd.db file from my original install onto my new install

sudo cp /mnt/var/lib/lxd/lxd.db /var/lib/lxd/lxd.db

My containers now show up when I list them and run as expected.

NOTE : I have multiple installations on multiple partitions, and I leap frog between new versions of Ubuntu as they become available, and don't erase an older version until I am happy. It's really easy to do and has just become second nature.

I know that's not common practice, but it has (again) saved my bacon on this occasion. For those who don't do this, making a backup of the lxd.db file would be advised.

EDIT : Further reading at https://insights.ubuntu.com/2016/04/13/lxd-2-0-remote-hosts-and-container-migration-612/ shows that it is also very easy to use a remote LXD host and simply move conatiners between hosts.

This isn't the solution for me, in this particular instance, but it is a very good read showing a very easy way to migrate containers.


Can you install softwares on a wubi-installed ubuntu? 12.04 LTS

Wubi 64bit installs are supposed to have multiarch support, but it's missing (when not installing from the ISO). To fix:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install ia32-libs


I have a Moto G 2nd Gen, on Android 6.0.

In the phone : Apps > Settings > More (from wireless & networks section) >Tethering & mobile hotspot > USB tethering.(there is an on/off toggle)

Once activated the phone will show "USB tethering active" in the pull down.

On Ubuntu, (I am using lubuntu 16.04) click the network icon. You should see a wired connection option (or an additional wired connection option number 2) appear.Click on its name - and you will be connected.


Does Ubuntu allow me to get a synced login screen on boot that can be used by multiple computers?

Yes, an Ubuntu client can join a Windows domain. You can use Likewise open for that, for instance. I haven't done so myself, so my knowledge about it is limited. But now you have something concrete to look for anyway.


How to add one column to the another file

paste is pretty handy here but it'll punish you if the number of values is unequal:

$ paste -d' ' myFile{1,2}
1 10 10
2 20 11
3 30 12
4 40 13
5 50 14
6 60 15
 16

If you wanted to arbitrarily limit the lines used in the second file to the first, you can, it's just going to be a bit slower and use more RAM (not that it matters on such a small data set).

$ paste -d' ' myFile1 <(head -n$(cat myFile1 | wc -l) myFile2)
1 10 10
2 20 11
3 30 12
4 40 13
5 50 14
6 60 15


Your repo is missing the openssl source code. Simply do

git submodule update --init --recursive


Problems playing MP4 and MP3 files in 12.04 64bit

You are probably effected by the gstreamer bug. I had similar problems with 12.04 despite the same files being playable in previous versions.I followed this fix and got my mp4/mp3 back

https://askubuntu.com/a/143374/71679


One Volume Did Not Go DST with the rest of the system

Most file systems record time stamps as UTC, and tools convert to the time zone active in the current process (so you can just use TZ=UTC ls -l and get a listing with UTC time stamps).
The FAT based file systems are an exception: these use local time, and convert to UTC when reading, and the time stamp is then converted back to local time for display.
The conversion in the file system layer is a simple offset, while the conversion for display uses the historic time zone information, so a file modified last week will have the DST offset applied to it in the file system layer (because it is active now), and no DST offset applied in the display layer (because it wasn't active at the time).
You can mount FAT based file systems with the tz=UTC option to disable the offset in the file system layer, or time_offset= to specify the number of minutes to adjust, but the file system layer in the kernel does not have the same complex conversion functions that exist for applications.


There is a solution for you in this question, or this even older question

The basic suggestion of both is to use Ubuntu Tweak or Synaptic package manager to help with limiting the number of old kernels in the system.


Is it possible to save flash Videos from a website using Midori browser?

You can save videos with youtube-dl. It's a command line downloader. You can view the link below it describes the ways to install and use it. It supports many many websites and very lightweight.Click here to see the tutorial


What is the extention of output files of gcc operation?

Unlike windows, Linux does not depend upon extension of a file to determine what type of file it is. Instead, it will check first few bytes of the file and determine what type of  file it is.

Hence the output file given by gcc requires no extension. You may add whatever extension you want(by changing -o output_name to say -o output_name.abcd), but it is not going to mke any difference.

You can have a look at the output of the command

file ./filename

for example

:~$ file output_file
output_file: ELF 32-bit LSB  executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=9bc9fabf05a3d2e58c7780c48cd873cb2955b2ec, not stripped
:~$


Why does Virtualbox' virtual disk not grow automatically?

We have no idea why Windows in your case can not handle the dynamically allocated virtual disk. It may be worth to check the filesystem integrity or perform a defragmentation from your Windows guest OS.

Nevertheless we can easily increase the size of a dynamically growing virtual drive reported to the guest OS by issueing the following command run in a terminal:

VBoxManage modifyhd <uuid/name> --resize <newsize in MB>

Replace  with the uuid or the filename (full path needed) of your virtual drive. These can be listed with the following command:

VBoxManage list hdds

Note that obviously we can not change the virtual drive size if we had taken snapshots or saved the machine's state instead of power off. Before we change the virtual drive's size we therefore need to delete all snapshots, or work on a clone to makes sure we do not loose a snapshot's content. Shrinking a dynamically growing disk is not possible.

After having resized the virtual drive we will then have to adapt the partition table of the guest to altered drive's size.

In Windows 7 go to Computer Management -> Disk Management to view new unallocated space (shown after resizing with adding 10 GB to the drive):

Right click on this unallocated partition to select "Extend Volume..." to increase the partition size. You may also do this with booting an Ubuntu live .iso on this virtual machine to resize partitions using gparted.

More details here: Virtual Box User Manual

See also: How do I increase the hard disk size of the virtual machine?

To physically shrink/compact a dynamically growing disk see: How do I shrink a dynamically growing VDI disk from VirtualBox?


The best Firefox-clone would be a new separate instance of Firefox running with a separate profile. That could be launched from a separate shortcut/launcher or from within Firefox (see the addon at the end).

Firefox allows the creation of separate profiles, they are easy to setup and you may use as many sets of addons and configurations as you wish.

To start the profile manager, open the terminal and type
firefox -ProfileManager -no-remote

Then the profile manager comes up, click on create profile, and then name your profile, for example set1. You can also point another location for the profile folder. By default, the profile folder is located at /home/user/.mozilla/firefox/ and is named with a string of 8 random characters, followed by the name you gave it. You have to do Ctrl + H while in the home directory, to be able to see .mozilla folder.

Instead of rebuilding an existing profile you have already built on Windows, you may go to the profile folder of your Windows Firefox, copy all contents and then paste them on your recently created profile folder in Ubuntu's Firefox. As detailed here, on Windows, the default location of Firefox profile folder is **%APPDATA%\Mozilla\Firefox\Profiles**

Then again, start profile manager, select your profile and you will be using it just the same.

Repeat the process for every profile you wish to create.

Now to be able to start each profile from a single shortcut and use more than one profile simultaneously, as detailed in this question, create a new text file on your desktop, name it set1.desktop.

Copy this to the text file

[Desktop Entry]
Type=Application
Name=Firefox set1
Comment=My primary profile
Exec=firefox -Profile /home/user/.mozilla/firefox/xxxxxxxx.set1 -no-remote
Path=/home/user
Icon=/my/icon/location
Terminal=false
StartupNotify=false

Replace user and set1 with your username and profile name, respectively, and place the 8 random characters attributed to this profile.

Note that you can set up a customized icon for this profile, this is helpful for diferentiation purposes, just point its location on the Icon line, for example /home/user/images/firefoxicon.png

After that, save the changes, right click on the text file, make sure its name has the .desktop and on the permissions tab, allow it to run as an application.

Now you have a shortcut to start this Firefox profile. When launched, you can right click on this icon in the Unity launcher and lock it there, so it is always accessible. You may move the shortcut somewhere else in your home folder too, it doesn't have to be on the desktop.

Repeat the previous steps for each profile you have created before, and then, with just a double-click, you will have one or more Firefox profiles started.

It will require some work to set up, depending on how many profiles you wish, but after that, it really is almost like you had several Firefox instances installed.

The source of this answer is this one given by Mik to a separate question: How to create shortcuts to different Firefox profiles.

To switch profiles within Firefox with one click, see this addon.


How to uninstall both packaged and manually installed versions of PHP?

Packaged PHP installations can be removed fairly easily by removing the php5* packages. To be thorough, we'll target any packages that start php:

sudo apt-get remove '^php'

To uninstall something you installed from source, you would traditionally cd back into the directory you built it from and run sudo make uninstall but  in this case it seems that PHP doesn't ship a removal target for make.

That makes removing it incredibly hard. You can either manually find all the files it installed, or you can (maybe) build a real package from the existing compiled version you have, install that over the existing files and then remove it.

sudo apt-get install checkinstall
sudo -i
cd php-5.3.29
checkinstall

Accept all the defaults. By the end of it, it should have built and installed a php package (check the package name as checkinstall tells you) and then you can remove it with:

sudo apt-get remove php  # or whatever the actual package was called

If checkinstall doesn't work (it doesn't always), you're left hunting for files. Stalking through the Makefile and commands like locate php might help but with something as vast as PHP, it's going to be a long process. If you need a quick recovery, a reinstall (or backup restore, because you have those, right?) might be a better option.

As for verification, I'd just try running php5 in a command line. whereis php5 might be illuminating too. If they're returning results, you probably have more work to do.


I really don't know much about pam and its path variables

But If you think adding the path is the cause then just go to recovery mode and and remove the PATH which you added recently..If that is the cause then after changing it your ubuntu should behave properly...

Hope this helps!


Uninstalled Xubuntu desktop - now no login screen?

After getting blank screen type: ctrl +alt +f1.
Now edit your /etc/X11/default-display-manager file using by
typing: sudo vi /etc/X11/default-display-manager.
It will open file in vi editor.
Replace everything (if it contains something) with
/usr/sbin/lightdm
Press escape button and type :wq! to save change and exit.
Now restart your computer.

It should solve your problem.


How do I switch which display is primary?

First list all displays with:

xrandr --prop

Display names will look like DVI-1, HDMI-0, VGA-1 and so on. Find the display you want to make primary and run the following command:

xrandr --output DVI-1 --primary

Where DVI-1 is the display you chose.


When I've seen messages like "Depends: r-base-core (>= 3.4.4-1xenial0)" it has meant that the required package r-base-core exists, but it is down-level (version less than 3.4.4-1) so it can't be used. Check in your package manager and see what version of those packages are available. You won't be able to install r-base unless all the dependencies can be met. An option may be to download the source and compile it yourself, but that could mean you need a bunch of development packages, so you'd need to work through that. I've just looked on my Ubuntu 18.04 laptop and r is at 3.4.4-1 according to my Synaptic package manager. Ubuntu 18.10 has version 3.5.1-1. You could try upgrading Ubuntu. I upgraded from 16.04 to 18.04 a while back and it was trouble free. If you try that, make sure to have a good backup first. I don't know about going from 16.04 to 18.10.


Firefox window always starting maximized

Well blow me down with a feather!  To answer my own question, and help others, I have just come across https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1730410, including :

  Almost all applications (Firefox, Nautilus, Google Chrome, PyCharm,
  Skype, Calendar and other) opens in maximized size if it window size
  was larger than some value (more than about 80% of display width and
  height) when application was closed.

and

  This is indeed a mutter "feature". Use 'gsettings set org.gnome.mutter
  auto-maximize false' to turn it off.

No wonder it seems intermittent: if I close my window when it's 79% size it restores but if it's 81% it maximizes!  Who dreams up such unintuitive behaviour?!

I confirm that making the FF window smaller before closing solves the issue.  For my part I have run the suggested gsettings command to change the GNOME setting and now I can close from any size and it restores to that size as desired.


DNS for single website not resolving - 'Name or service not known'

It seems the system keeps the old local domain from the VPN connection in the file /run/resolvconf/resolv.conf without deleting it after leaving.
I solved it by editing it manually:
sudo gedit /run/resolvconf/resolv.conf,
after the "search" command remove the now external local network.


Cannot change background color in Ubuntu 13.04

It's a confirmed bug. See the bugreport in Launchpad: Unable to set solid colors and gradients as desktop background in gnome-control-center


How to get Unetbootin to recognize mounted USB drive?

It's possible, as beeju has suggested, that you just need to manually mount the drive. However, you are correct--usually, Ubuntu will automatically mount a drive when it is attached or powered on.

There are two common situations where the problem you've described occurs:

Technically, drives are not mounted. Volumes (i.e., partitions) are mounted. If there is no partition on the drive, Ubuntu cannot mount it (neither automatically nor otherwise). If there is, but it's damaged or (this is much less likely) of a type Ubuntu doesn't recognize, it will also not be mounted.
Unetbootin requires that the partition to which you write the contents of an .iso image be formatted FAT16 or FAT32. (And you should use FAT32 unless your image is tiny and you know you need to use FAT16.) Furthermore, it should be the first partition on the disk, and unless you really know what you're doing and know you need to do something differently, it should be the only partition on the disk and it should take up all the available space. Furthermore (though you don't usually have to do anything to make this the case), it should be a primary (not a logical) partition and the disk's partition table should be of type MSDOS.

If you have valuable data on your disk, then you shouldn't be writing an .iso image to it anyway, because that would destroy the data. Otherwise, you can safely address either or both of the above problems by creating a new partition table on the disk, and then creating a single partition, taking up all the available space, of type FAT32.

One easy way to do this is with the GParted Partition Editor, which is provided by the gparted package. You can install that package in the Software Center. Then run GParted. Select the drive in the drop-down menu at the upper-right corner of the GParted window. Make sure you've selected the correct drive--it would be bad to perform these data-destroying operations on the wrong disk!

Do Edit > Create Partition Table and accept the defaults. Then create a FAT32 partition, also with everything the default. This will make it a primary partition and as big as possible.

Then apply your changes by clicking the green check-mark. You can now mount the drive (or take it out and put it back in, and it should mount automatically). When GParted finishes, close out of it. Then you can write an .iso image to it with Unetbootin.

Alternatively, you might consider using a different method to write the .iso image to the drive, which would let you skip over formatting and mounting the drive.

You can use Startup Disk Creator for this purpose, as described in the official installation instructions.

You can also use dd from the command-line. See dd(1). If you have an .iso image called ubuntu-12.04-desktop-i386.iso and located in your Downloads folder, and if you would write its contents to /dev/sdb1 in Unetbootin, then the corresponding dd command is:

cd ~/Downloads
sudo dd if=ubuntu-12.04-desktop-i386.iso of=/dev/sdb

It's very important that you tell it to output to /dev/sdb (or whatever drive you want it on), not /dev/sdb1 (i.e., not the first partition on the drive).


How can I get Rhythmbox to stop ignoring a deleted podcast episode?

This does seem a quirk in Rhythmbox's behaviour.  Deleting the episode actually marks the entry as hidden and it seems you need to edit the database manually to unhide.  Try this;

Close Rhythmbox
Open ~/.local/share/rhythmbox/rhythmdb.xml in a text editor
Find the <entry> by searching for the episode title/URL etc.
Delete the line <hidden>1</hidden> in the entry
Change the line <status>100</status> in the entry (downloaded) to <status>103</status> (not downloaded)
Save the file and start Rhythmbox

You can also delete the entire <entry>...</entry> block and update the feed and it will reappear.


EPSON imagescan v3 doesn't recognize my scanner through WiFi

I don't know if you figured this out already, but I think you have the syntax wrong. The first line should be:
myscanner.udi    = esci:networkscan://192.168.1.123
You have the prefixes backwards. I don't think you need the port number unless it was changed.


blender export gltf crash on 20.10, but working on 20.04

Okay I found a workaround for this. It seems like the snap and official Blender builds have a Python mismatch and that's what's causing Blender to crash when running or loading certain addons.
This PPA seems to have a fairly complete Blender 2.90 build that works with Ubuntu 20.10. I've tested with MeshMachine, RetopoFlow, and BoxCutter.
Make sure to install the python3-numpy package, as quite a few addons depend on it.


Why is Ubuntu 15.10 drastically slower than Windows 10?

Those 2 operating system are impossible to compare. They are fundamentally different.

To compare: my Ubuntu has an SSD for the main parts of Ubuntu (/), a re-install is done in under 20 minutes. Booting takes less than 10 seconds (13-ish if there is a filesystem check). I have no problems with speed. Beta versions of Ubuntu tend to be difficult to use on my system (even though my system is no longer that new I always have a bit of problems with hardware).

What you can do is check on the Ubuntu side...

the boot process with bootchart. It is native to Ubuntu that uses systemd. Main issues for boot to take longer than needed are not correctly configured hardware. Main issue with those would be your wireless: if the wireless connection errors out it will retry several times and then move on.
the running system. Commands useful are "top","htop","powertop".  All of these show memory usage and things related to it. Check if something is hogging your system.

  I was told that Linux is more efficient than Windows and should run faster.

To me it is but that comment has problems.

"Efficient" is a matter of knowing what to do when you want something done. That is something that takes time to get to learn. "Faster". Yes in my opinion it is. At work my older notebook boots a lot quicker with Ubuntu (14.04) than my newer desktop does using Windows 7.


Wifi adapter not found Ubuntu 18.04 tried rtlwifi-new, rtl8723de and bcmwl-kernel-source

You have an Intel AX200 device.

It is now supported natively by Linux kernel.

To get it working you need to install the correct kernel and update linux-firmware.

Connect to the internet and run in a terminal:

sudo apt update
sudo apt install linux-generic-hwe-18.04
sudo apt install linux-firmware

Reboot and Wi-Fi should work.


is there any ubuntu-program that you can use as mp3-player-firmware?

I had a look around and from what I could see there isn't a whole lot of custom firmware being created for Philips GoGear products, let alone an Ubuntu/Linux variant of that.

Typically, the custom firmware developers target devices they view as mainstream since then they, too, can also receive support developing various modules to get it all running butter smooth.  The real unfortunate part is that you basically need to be doing your planning prior to the purchase phase if you're looking to put something custom on the device. :/

RockBox seems to have some custom firmware for a couple Philips MP3 players, so I'm not sure how far the jump would be for them to port one of their varients, but it may be worthwhile to query them if you're set on getting some new firmware on your device.  http://www.rockbox.org/


Can't install lamp-server^ after upgrading from 13.04 to 13.10

Make a backup of /etc/apache2, then try:

sudo apt-get purge apache2

Then try installing lamp-server^ again.


Go to system settings >> keyboard and make sure that repeat and speed are set correctly.


How to install Ubuntu Software Center on Ubuntu Gnome 17.04?

"software-center": The new package name is gnome-software http://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=software&searchon=names

The old software-center http://old-releases.ubuntu.com/ubuntu/pool/main/s/software-center/ ... The source packages, version software-center_1.0.2.tar.gz ... to     software-center_13.10.orig.tar.gz ( Patches for the latest version : software-center_13.10-0ubuntu4.1.debian.tar.gz )


Eclipse can't find Java after upgrade to 14.04

Install the JDK from here:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

worked for me.


unable to install ubuntu 12.04 on windows 7

Please install as boot, First try ubuntu. If it works properly you can install it. If no, may be your hard has not a good partition. you have to format all and change it to 3part only while installing.


Xubuntu 17.10: keyboard shortcut for either tiling window or moving display

you can move a window to another display with super+shift+arrow depending on how you configured your displays. If the other display is on the right, you would use super+shift+right to get the active window there


Sharing my home folders with other users on the same PC

You can't share an encrypted folder, that's why it is encrypted.

But you can try to do this, as a workaround:

cd ~
sudo mv Music /usr/share/
ln -s /usr/share/Music Music
chmod a+rw /usr/share/Music

It'll move your music folder to /usr/share/, create a Symlink into your home folder, and allow other users to read/write that folder.

But to be honest, I don't believe it is a good idea to do this.
You may have problems if you need to backup your data and forget that your files are not at the home folder.


How to change screen resolution for Nvidia card

Short answer to "short" question:

Remove the ATI card physically from the computer and reinstall.

There is also a "Long" answer that involves:

Completely removing both drivers from the system
reboot into nosetmode
install the nVidia drivers
reboot into normal mode


How do I get my wireless to automatically start after reboot

I do not know about that wireless device in special, but I do know something about modules

Concerning the modules, the commands you posted seem a bit confusing, as they first remove the module "b43" and then load it again:

sudo modprobe -r b43 ssb
#this removes (-r) the modules "b43" and "ssb" if they are already loaded (see *man modprobe*)

sudo modprobe b43
#this loads the module "b43"

To load a module at boot time, add the module-name to the end of the file /etc/modules (you can edit the file executing sudo gedit /etc/modules, for more info see man modules and man modprobe)

To explicitly prevent loading a module at boot time, you can blacklist it, by adding the module-name to the end of the file /etc/modprobe.d/blacklist.conf

So maybe in your case, it could be enough to add "ssb" into /etc/modprobe.d/blacklist.conf

Try it out and share with us :)


How to force ubuntu touch to be in landscape on Nexus 7

Unfortunately not a very helpful answer, but:

if you want to change it simply by doing some configuration edits it won't be possible. Quite a bit is yet hard coded and therefore it is clearly not yet the right time to start on this level.

Quite a bit of work has to be done till there is a universal configuration to change the individual behaviour like roation or side-stage.

I would say keep listening the different channels, like irc, mailinglist or the wiki and you will see when it will be possible.


avconv convert .mts using libx264 2 pass

I use this script that do what you want.

I hope that you are aviable to remove or to adapt some things

  #
  # Conversor de vídeos a mp4 (x264) con ffmpeg

  # cargarme los log que puedan existir
  rm *.log -f
  rm *.mbtree -f

  for ARCHIVO in *.MTS ;
  do

  avconv -y -i $ARCHIVO -s hd720 -deinterlace -b 2M -bt 4M -vcodec libx264 -pass 1 -flags +loop -me_method dia -g 250 -qcomp 0.6 -qmin 10 -qmax 51 -an /home/jcecilio/BK_MULTIMEDIA/COPIAS_HD/$ARCHIVO.mp4

  avconv -y -i $ARCHIVO -s hd720 -deinterlace -b 2M -bt 4M -vcodec libx264 -pass 2 -flags +loop -me_method umh -g 250 -qcomp 0.6 -qmin 10 -qmax 51 -acodec libvo_aacenc -ac 2 -ab 128k /home/jcecilio/BK_MULTIMEDIA/COPIAS_HD/$ARCHIVO.mp4

  done


Difference Between Filesize and Size on DIsk

The smallest amount of space which can be allocated on disk is called a "sector" - historically it's been 512 bytes, but newer hard disks have larger sectors of 4096 bytes (though I'm not sure if "logical sectors" are 4096 bytes too or they're still 512 bytes).

So if you have a file just 1 byte in size, it will still occupy 512 bytes on disk.

Most files are far larger than a few bytes, so the difference is usually just a few percent. I'm not sure if you have hundreds of millions of tiny files in your Downloads folder, but that would explain this behavior.


Incorrect rendering/display of Devanagari fonts in browsers: Chrome, Firefox etc

This is an issue with the default fonts used by the browsers
See How do I enable writing in Indian languages? if you have not enabled Indian language yet. This answer is for problems specific to Indian language font rendering in the browser.
For some reason Indian fonts are not rendered correctly in the browsers in Ubuntu. Changing the default fonts used by the browsers solves it. The instructions below are for Chrome. The same can be done for Firefox.
Steps:
First: Open the Chrome settings and scroll down to Appearance.
Second: Click on Customize fonts

Third: Change the Standard Font to a font that fully supports Indian languages. Here I have chosen Lohit Devanagari but you can choose another one.

The proof of the pudding...

is in eating!
Hope this helps


How to Assign an I.P. address to a Virtualbox Appliance?

Configure your virtual machine adapter as Bridged Adapter.

Boot into your Ubuntu VM and run following command to get your IP address.

hostname -I

Now you can use ssh to access your server with that IP address or open-up website from your browser if you're running any web server.

If you want to add local network to your server aswell, then add Network Adapter 2 as Internal Network

Edit /etc/network/interfaces and add static adapter as eth1

auto eth1
    iface eth1 inet static
    address 192.168.0.1
    netmask 255.255.255.0
    gateway 192.168.0.0

When this is done, bring your adapter up.

ifup eth1


It seems the problem is the lightdm interface.

I followed this article and installed gdm then booted into Ubuntu successfully : http://www.webupd8.org/2013/01/ubuntu-lightdm-black-screen-when-using.html

sudo apt-get install gdm

Then I switched the default interface to gdm instead of lightdm when it asked. After that the problem was avoided.

Then I tried to reinstall lightdm:

sudo apt-get install --reinstall lightdm
sudo dpkg-configure lightdm

Then I reboot the PC and it works fine and I can log in successfully with lightdm


g++ cant find cstdlib (fatal error: cstdlib: No such file or directory)

You have mis-spelled the include name in your program.  You have csdtlib and it should be cstdlib - the t and d are reversed.


How can I apply exceptions to window decoration on compiz?

An oldie but goody that still works to deal with window decorations is devilspie

how to
Install devilspie:
sudo apt-get install devilspie

Then create a new folder in your home folder:
mkdir ~/.devilspie

Create a new file in this folder called terminal.ds and paste the following:
(if
    (is (application_name) "Terminal")
    (begin
       (undecorate)
       (geometry "1024x300+4+450")
    ) )

The key part here is (undecorate) to remove the window decoration for the terminal application.
(geometry) is used to control the location and size of the application, in this case 1024 in length, 300 pixels high and placed in the position 4 x 450
When testing, edit the file, then run devilspie to see the changes enacted.
When you are happy, just put nohup devilspie & as a startup application to run on login.
Obviously you'll lose the titlebar if you intend to use locally integrated menus.  If you stick with global menus then this works very well.
More information about devilspie can be found here.
finally
Dont forget that you are still able to move the terminal window around the screen - just use the shortcut key Alt+F7 to enable the window move capability and drag the mouse point around to position the terminal.

Just in-case you are not already aware of the option - to set the transparency of the terminal, use edit - profile preferences and select the Transparent Background option


So there's two forms of notification, one for Byobu's screen backend, and the other for Byobu's tmux backend.

The screen backend uses GNU Screen's syntax, as described in its manpage, while the tmux backend uses Tmux's syntax, as described in its manpage.

For screen, when I want to create a new keybinding, I usually open up a new terminal window outside of Byobu, and type:

$ cat >/dev/null

And then type some key combination, for instance Ctrl-Shift-F7, and you should see on the screen:

^[[18;6~

That's the key code that you would need to put into your ~/.byobu/keybindings.screen.

You'll use the bindkey command, and you'll want to bind that to one or more commands, as described in the screen manpage.

For tmux, the syntax is way easier!  Here, you can just use "S" for Shift, "C" for Ctrl, "M" for Alt, etc.  Once again, it's described pretty thoroughly in the tmux manpage.


How to make Synaptic the default to install .deb files?

... And I would like to make synaptic package manager as the default to open .deb installation files. ...

Synaptic can not be used as the default program for DEB files, just like you want to.

But you can try gdebi.

sudo apt-get install gdebi

Now you can set gdebi as the default application for DEB-files.


Is it possible to install Unity 6.x.x on 12.04?

This Works:

Open Terminal, then type

sudo add-apt-repository ppa:benkai/precise-unity-backport

sudo apt-get update

sudo apt-get remove unity-lens-applications

sudo apt-get install unity

wget http://ppa.launchpad.net/benkai/precise-unity-backport/ubuntu/pool/main/u/unity-lens-applications/unity-lens-applications_6.4.0-0ubuntu2_i386.deb

sudo dpkg -i unity-lens-applications_6.4.0-0ubuntu2_i386.deb

From:
https://launchpad.net/~benkai/+archive/precise-unity-backport


With ffmpeg you can split file using the following command:
ffmpeg -i ORIGINALFILE.mp4 -acodec copy -vcodec copy -ss START -t LENGTH OUTFILE.mp4

where START is starting positing in seconds or in format hh:mm:ss
LENGTH is the chunk length in seconds or in format hh:mm:ss
So you will need to run this command few times depending on how long your video. If let's say your video is 31 minutes long and you want so split into 15 min chunks here is how you run it:
ffmpeg -i ORIGINALFILE.mp4 -acodec copy -vcodec copy -ss 0 -t 00:15:00 OUTFILE-1.mp4
ffmpeg -i ORIGINALFILE.mp4 -acodec copy -vcodec copy -ss 00:15:00 -t 00:15:00 OUTFILE-2.mp4
ffmpeg -i ORIGINALFILE.mp4 -acodec copy -vcodec copy -ss 00:30:00 -t 00:15:00 OUTFILE-3.mp4

There is a python script that you can use that does this automatically(i.e. takes video file, chunk size in seconds and generates individual playable video files): https://github.com/c0decracker/video-splitter


Is there a single app that allows for quick searching, viewing, and editing of text files?

How about the gedit file search plugin?

Found it here: http://live.gnome.org/Gedit/Plugins

Gedit File Search: Search for a string in all files in a directory and its subdirectories.

Project Page: http://oliver.github.com/gedit-file-search/.
A gedit 3 version is available on a separate branch: see https://github.com/oliver/gedit-file-search/issues/13 and https://github.com/adam-yorba/gedit-file-search/tree/gedit-3

You already use gedit and now have no need for grep and nautilus ;)


Why use DHCP?

It's the standard way of running a network. Any computer that you bring into your network will run as soon as it connects to it (either wire or wireless). Your computer will also automatically connect to most networks.

You should use DHCP as the default way to configure a network, unless you have some specific needs. Even in a medium or big size network, most of the machines are given their settings by DHCP, usually only a handful of machines have static IPs: servers, routers, printers (in my office), etc...

  Who provides that service? Is it my ISP, a local program or a local hardware (like my router)?

In a normal small office or home network it is the router who takes care of DHCP.

  Also, what configuration files will be edited as a result of using
  DHCP?

As it is the default configuration of Ubuntu, usually you don't need to do any configuration or change anything.

AFAIK, the only file that is changed automatically while you are using DHCP is /etc/resolv.conf (it list yours dns servers), all the rest of the configuration is keep in memory.

The wikippedia entry has lots of extra info.


Java Not Recognized As Default Application

I've patched together a way to do it, but it's not the recommended way of creating a .desktop entry (there's has to be a better way of doing it).

1) Open Gedit from the Terminal with root privileges usind gksu gedit

2) Open a .desktop file from /usr/share/applications and copy it into a new file.

3) Edit the name, comments, and image to your liking.

4) Change the command to java -jar %u DO NOT FORGET THE %u

5) Save

6) Right click .jar file in nautilus, select properties>open with>show all applications, and select the new entry, select either add or set as default.


Snap app(s) NOT "integrated" into operating system

They should be integrated. They certainly are here on my Ubuntu 16.04 system. Sometimes Unity needs a nudge to get it to refresh desktop files that have been installed. This command may do that for you.

sudo update-desktop-database

Alternatively, logout and log back in again.


Bash (the default shell of Ubuntu) doesn't have this ability.  It uses GNU readline, and likely would be a serious effort to implement it.

But, there are mechanisms to use different shells.  Two common ones that are talked about a lot are:

oh-my-zsh - "Your terminal never felt this good before.
fish - "A command line shell for the 90s"

See the respective sites for up to date setup instructions.  But in general the shells are not that hard to configure.  Fish, for instance is:

sudo apt install fish
chsh -s /usr/bin/fish
# logout/login

Then, if you want to switch back

chsh -s /bin/bash
# logout/login

oh-my-zsh isn't as easy, but it's the same idea.


What do you mean with "not able to boot", is it a black screen or something else?

Had this problem with my macbook and I figured that you will need to enter the outb codes in the grub config when booting.


Bash script error in my computer but NOT on some others

Add #!/bin/bash to the top of your script, as the first line.

  Note: This is called a shebang. More information about it may be found here.

Give your script the correct permissions.

chmod a+x <script_name>

Run your script again.

./<script_name>


Can i run ubuntu 12.04 using live cd if I still have ubuntu 11.10 installed on my Pc?

Yes, you can. When using the live cd it won't touch your current install.


Stop nautilus getting focus/stacking order when I drag and drop files/folders into applications

As of now, you cannot do this with Ubuntu or any other system based on X11. (On MS Windows it only works for the file manager. On MacOS it works for everything, modulo bugs.) Making it possible requires changes to toolkits and window managers which, in the past, developers have been unwilling to make; it's not a failure of X11. Perhaps with the new graphics systems, like Wayland and Mir, it will be possible.


18.04 lock screen stopped working - screen freezes

You can track the bug here. Dash to Dock Gnome extension is causing it.

Upgrading packages helped for me.

Also known temporary workarounds:

Ctrl+Alt+F1 after locking to repaint screen.
Win+L twice to hide screen content (the dock will still be visible, though)
after logging back Alt+F2, type r, enter. To reset Gnome and fix broken dock.


Wireless driver on cd not working for ubuntu distribution, but in windows it works fine

Your device uses the driver 8188eu. It is certainly possible, although quite difficult, to download the driver, the build tools required to compile the driver and all their dependencies on another computer, transfer them on a USB or CD and install them on the Ubuntu 12.04 computer. You will need this file: https://github.com/lwfinger/rtl8188eu/archive/master.zip

In order to compile the driver, you will need linux-headers matching your running kernel; find out with:

uname -r

For instance, if you find that you have 3.11.0-18-generic, then you need linux-headers-3.11.0-18-generic. Find and download the headers and all their dependencies here: http://packages.ubuntu.com/ Search for linux-headers matching your kernel version. Be sure to note and download all the package dependencies.

You also need to search for and download build-essential and all its dependencies. In some cases, the dependencies may already be installed; check:

sudo dpkg -s <some_package>

In some cases, the dependencies have their own dependencies that also need to be downloaded.

Once everything is on the USB or CD, copy them to the desktop of the Ubuntu machine. Open a terminal and install them with:

cd ~/Desktop
sudo dpkg -i *.deb

If any package fails because a dependency is missing, download it and copy it over and try again. Once everything is installed, right-click the file master.zip and select 'Extract Here.' It will decompress into a folder named rtl8188eu-master. Compile the driver:

cd ~/Desktop/rtl8188eu-master
make
sudo make install
sudo modprobe 8188eu

You will have compiled the driver for your currently running kernel only. We need just one more step in order to be able to recompile when a later kernel version is installed. Once you are connected:

sudo apt-get install linux-headers-generic

When Update Manager installs a later kernel, after reboot, recompile:

cd ~/Desktop/rtl8188eu-master
make clean
make
sudo make install
sudo modprobe 8188eu

Or, you could trade this device for a fully supported plug and play USB.


Can you run an Android Studio emulator inside hyper v Ubuntu?

Installing a virtual device requires too much of your system resources and VT-x or SVM need the system to be able to have a minimum virtual memory; if that isn't present then the error will occur.
Android Studio needs to have at least  6GB of RAM and the emulator needs at least 2GB RAM to run smoothly (depending on the OS that you use - its API 28 "Android Q" requires 2GB). This is not including the virtual memory. the point is you can't (under normal circumstances) run an Android emulator inside another emulator as it requires excess resources.
You can still run it in Windows or Linux if you are not using a virtual device inside another virtual device.


Add the command to mount the share at the end of ~/.bash_profile. This will execute the command when you login.


Can't change brightness on a Acer Aspire v5-171

This is just how you add the line to the grub configuration:

Open /etc/default/grub by running this in terminal:

sudo nano /etc/default/grub

Add the line in inside the quotes, it may look something like this:

GRUB_CMDLINE_LINUX="acpi_osi=Linux acpi_backlight=vendor pcie_aspm=force"

Save with +O, and exit with Ctrl+X.

Then update the configuration with:

sudo update-grub

or with

grub-mkconfig -o /boot/grub/grub.cfg

Then reboot.

For editing other stuff in /etc/default/grub, there is a manual page here


How to access the Keyboard Layout Options in 13.10+

That's what GNOME developers decided. Instead, you can access equivalent setting menu in gnome-tweak-tool.

Try install gnome-tweak-tool in official repository and go to typing section.


How to install ownCloud 8.0.0 in Ubuntu 14.04?

Installing php5-mysql solved my problem

apt-get install php5-mysql
service apache2 restart


How can I pass filenames with spaces as arguments?

Don't parse ls.  Just use:

python script.py /path/to/*.jpg

This performs shell globbing which replaces /path/to/*.jpg by the proper list.


Ubuntu 12.04 installation on Acer Ultrabook

Go into your bios and turn off Fast boot or Secure boot, and try again. If that doesn't work you might want to consider installing Ubuntu onto a usb and booting from that.

  http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

Extra: After that you might run into a problem that i had on my Acer Aspire M5 Ultrabook, after I made the usb and started up the installer the installation wouldn't recognize Windows 7. I got around that by installing Ubuntu to the 20GB ssd and then going through the installation again. Finally it recognized my other operating system and installed it (ie. Your 20gb free partition). after that I formated the ssd and set it up for cashing again in windows 7 using device manager.


How to recover data from formatted swap?

What was the original format of the 32 GB partition?

You need to download and use testdisk from Ubuntu; you can do it with sudo apt-get install testdisk. DO NOT use data recovery tools from or even start Windows -- it is more likely to write to a FAT32 or NTFS drive, erasing any traces of your previous data.


Sometimes computer resumes from suspend by any USB device or by openning lid

Only one successful solution is unbinding USB controller before suspend. See answer 1 at How to set S3/S4 state for devices on suspend
It did not operate on LUbuntu 18.04 for me. But it successfully works on LUbuntu 20.04. In addition, it solves the problem with USB Ethernet controller, which could not restore the connection after resuming. There is only one minus - resuming needs approx. 4-5 s. for re-initializing USB (two USB hubs with a lot of periphery).


You can add the Vboxmanage command to your ~/.bash_logout file and it will execute upon the logoff event.


Ubuntu package for gnome system admin guide?

The download is here on the same site. That will get you a gzipped tar of the entire html page.

Alternatively, load the entire html page in your browser and save it. If you want to save it as PDF, simply select the tab the page is open in, go to your browser's menu and click print > print to file and choose pdf as the filetype and a location to save it in. If this is unsuccessful install cups-pdf, restart your browser, load the gnome page in link 2, and open the browser menu, click print > PDF and choose your options. (By default cups-pdf will create a folder called pdf in your home folder.


What causes "Failed to fetch ... File has unexpected size. Mirror sync progress?" error?

Take a look at the official list of Ubuntu mirrors.

See the ones in red? Those are not up to date.  They will get up to date, eventually, by syncing with the master repository.  When that's underway, file sizes won't match the master file size, and errors like this will occur.

Solution: Use another mirror.  How do I change my update server in Ubuntu 18.04? shows how.


Can't Boot Windows (Gives "Repair Windows" Option)

Easiest to run Boot-Repair but with multiple drives do not run the auto repair as that will install grub to every drive. You can uncheck auto repair, check update MBR and in advanced options choose which system to install a boot loader to which drive.

Some with mulitple drives install Windows to one drive, but because BIOS was set for another drive the (hidden) 100MB Windows boot partition is on another drive than main install.

Boot-Info report from Boot-Repair will show all the details if you cannot fix it.  But if Windows is missing boot Files you need Windows repairs.

Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:

https://help.ubuntu.com/community/Boot-Repair


All fonts on Xubuntu are now boxes. Everything is illegible. Help

Assuming that you now have reset /usr/share/fonts to its original state, you may want to try these steps:

Remove the ~/.cache/fontconfig folder.
Run the command sudo fc-cache -fr

(it will take a while to complete)
Reboot.


mounting windows share on ubuntu machine

the man page of mount.cifs shows
mount.cifs {service} {mount-point} [-o options]

service: using //server/share syntax
(the share part is missing in your mount command)
I assume /my_mount_folder = /HPC-Archive ?

options are allowed to precede the other parameters


Joining and authenticated by Windiws Active Directory in Ubuntu 14.04 client

now called PBIS Open 8.0.1

the same "LikeWise" . u can download it form here  and the same installation and GUI.

http://download1.beyondtrust.com/Technical-Support/Downloads/PowerBroker-Identity-Services-Open-Edition/?Pass=True&elq=1b2b5c66eaa3407fa00dfd5b7673ebcc&elqCampaignId=


I was looking for the same thing! Maybe you can try AutoHotKey, though you might have to learn it a bit before using it.
Remapping a Joystick


Workspaces reduced to 1 after activating Compiz

Open ccsm and go to General Options > Desktop Size and you will find the option for Horizontal Virtual Size there.

Increase this value to > 1.


Update .htaccess file to restrict some pages

I do not know if .htaccess or mod_rewrite is the best tool for this task.

You can do several things. Since you are using php, try putting the following code in index.php in each of your sub-directories ( javascript/index.php )

<?php header( 'Location: /' ) ; ?>


How can I perform an offline upgrade using Ubiquity on the installation disc?

I posted a bug report about this in Launchpad. I got the following answer from Dmitrijs Ledkovs (xnox):

  It is correct, we do not support offline upgrades via ubiquity/desktop
  CDs. And even for servers, it is not recommended to use new server CD
  to do offline upgrade.

  The support upgrade methods are with internet connectivity or a local
  mirror / package pool. One can for-example use tools like aptoncd to
  snapshot all installed packages, download them on a machine that has
  internet connectivity, bring them to the offline machine and upgrade
  it.

  The reason behind this move, is enourmous amount of support cases of
  broken and partial upgrades since newer installation media will be
  missing manual additionally installed packages; packages that have now
  transitioned to new names; packages that have been removed from the
  default installation. Thus default install media for next release
  simply doesn't contain everything one will reasonably need to upgrade,
  hence the internet connectivity requirement.

So here the answer: even when using the Ubuntu installation disc, one cannot upgrade the a newer version of Ubuntu without Internet connection. Ubiquity needs to have an Internet connection in order to make the upgrade option selectable.

I understand the reasoning behind that. The installation disc cannot have all the repositories' packages. If a user has installed additionnal softwares after he installed Ubuntu -- and he certainly has --, then without an Internet connection, Ubiquity would fail to upgrade every packages, update dependancies, resolve missing dependancies, etc.

I'm a bit disappointed, though, as because if this limitation a user who wants/have to proceed with an offline upgrade will need to grab another media. He can't just use the same installation disc/USB key he usually lend his friends for them to install; he will need to grad extra packages.

I'm not familiar with APTonCD. I'll look deeper into this avenue later.


If you are booted into rescue mode and have a shell launched in your root volume, there are a couple things you can try to reclaim enough space to at least boot.

Try cleaning old dependencies with apt

You can try running apt autoremove. This will clean out any unneeded dependencies.

Try removing unneeded packages

This may be especially useful if you are running Ubuntu with a desktop interface, because it may have come with a lot of packages you won't be using. For instance, the firefox browser or openoffice. This entirely depends on what you are running though. To list currently installed packages, use dpkg --list. This will be a long list, so if you suspect something is present that you want to remove try running dpkg --list | grep package_name. If something can be removed, then uninstall with apt remove package_name.

Some other thoughts: You might be able to remove/zip some log files. Also, check your home directory for anything that can be removed.


How to change CPU scaling driver to intel_pstate

GENERAL ANSWER:

Open terminal and type:
sudo gedit /etc/default/grub
Then find line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
And change it to:
GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=enable quiet splash"
Save file and run following command:
sudo update-grub
Restart system and check is it enabled by:
sys/devices/system/cpu/cpu*/cpufreq/scaling_driver

ANSWER FOR INTEL PROCCESORS BEFORE 2nd GEN:

I am sorry but you can not use intel_pstate on your proccesor. It is only compactiable with proccesors from Sandy Bridge(2nd) generation up. You can only use old CPUfreq with Intel i7 870
EXTRA INFO:
https://www.kernel.org/doc/html/v4.12/admin-guide/pm/intel_pstate.html


Ubuntu 16.04 LTS on Gigabyte BRIX with GTX1050Ti boots into purple/black screen

I had trouble recently trying to install Ubuntu on a similar set-up. When I enabled CSM (legacy BIOS emulation) and went for a not-UEFI install, everything worked as expected. YMMV, but worth a try.


How can I run Repast Simphony 2.0 on Ubuntu 12.04?

I managed to achieve this by following the excellent instructions posted by Meghan Hutchins and Marta Vallejo, as follows:

Create folders called repast-eclipse, repast-libraries and repast-workspace. (In the instructions below, download and unzip any libraries into repast-libraries.)
Install Eclipse and essential Repast plugins following Meghan Hutchins' step-by-step instructions:

Download Eclipse Classic 4.2.2 (Juno) (this very specific version).
"Install" it to repast-eclipse and run it from there. Set repast-workspace to be your workspace.
Install the following plugins:

XML Editors and Tools (from the Juno archives)
Groovy-Eclipse (download the Juno version not the version listed on the Repast website)
(restart Eclipse and confirm)
Repast Simphony 2.0 (from the http://mirror.anl.gov/pub/repastsimphony repository)
(restart Eclipse and confirm)

Install graphics plugins following Marta Vallejo's step-by-step instructions (relevant instructions start at "Apart from all of these plug-ins, we need to install three more components"):

JOGL
Java3D
JAI

If you have created any Repast projects already, refresh them.
Select Window | Preferences | Groovy | DSLD and click "Recompile scripts"

To test everything has been successful, you can import a sample Repast projects from the File menu. They should compile successfully and have visible agents appear when you start the simulation.


VirtualBox screen resolution WITHOUT guest additions

Run

xrandr

You get similar to

Screen 0: minimum 320 x 200, current 800 x 600, maximum 1280 x 1280

VGA connected 800x600+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
       1280x1024      60.0 +   75.0
       1280x960       59.9
       1152x864       75.0     74.8
       1024x768       75.1     70.1     60.0
       832x624        74.6
       800x600        72.2*    75.0     60.3     56.2
       640x480        75.0     72.8     66.7     60.0
       720x400        70.1

    * item is current.

It is list of resolutions you can set.
Now you can change by using

xrandr -s Index

index is number starting from 0 as  the first line.

OR

xrandr -s widthxheight


Lenovo thinkpad thunderbolt 3 dock gen 2 drops connected devices on Ubuntu Linux

I’ve seen the hub_ext_port_status failed (err = -110) message with Asus notebooks connected to docking ports in the past. A remarkable amount of effort, trial, and error later, the issue turned out to be a conflict between the USB 2.0 and 3.0 drivers — the ehci_pci kernel module, specifically.
To resolve the issue you can block the module but, be warned, this will affect how your machine uses USB2.0 devices. If your devices are mostly 3.0, which uses the xhci_pci kernel module, then you should have no serious issues.
So long as you’re good with this, follow these steps to test whether this is the issue or not:

Open Terminal (if it’s not already open)
Remove the ehci_pci kernel module:
rmmod ehci_pci

Test your dock

If everything works well, then you can make this a permanent fix by adding the module to your modprobe.blacklist:

Open Terminal (if it’s not already open)
Edit /blacklist.conf as root:
sudo vi /etc/modprobe.d/blacklist.conf

Add the following line:
modprobe.blacklist=ehci_pci

Save the file
Reboot
Check the module is not loaded with:
sudo lsmod

So long as your Dell is having the same issue I saw with Asus notebooks, this should be all you need.


I just had the same issue with my dad's old gateway laptop trying to install the same thing (Lubuntu 12.10 I'm assuming). Though I remembered 12.04 live booting on it without a hitch, and sure enough I had no problems booting or installing. I suppose installing 12.10 may solve the issue for that version, but I didn't test it.


That are two different things. The repository

deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main

works as you can see in your gist.

The problem is that the mirror ftp.unina.it doesn't exist in the list of the defined mirrors.

Use a different mirror or the main server

sudo sed -i 's/mirror:\/\/mirrors.ubuntu.com\/mirrors.txt/http:\/\/archive.ubuntu.com\/ubuntu/' /etc/apt/sources.list

Remove /etc/apt/sources.list.d/apt_postgresql_org_pub_repos_apt.list,

the content is identical with the content of etc/apt/sources.list.d/2ndquadrant.list

sudo rm /etc/apt/sources.list.d/apt_postgresql_org_pub_repos_apt.list

Update the software sources

sudo apt-get update


Modifying Key- and Mouse-Bindings for GNOME Shell

To change the keyboard bindings, find the keyboard section in the system settings application. Under the shortcuts tab, find the shortcut that's called something like "Go into Overview Mode." Then you can change it to whatever you want.

To disable hot corner, see this question.


nginx start (question about how to cope with linux reference manuals)

This is because the first example is executing the startup script located at /etc/init.d/nginx

In the second example you just typed in a bare name thus it looks for the command following your $PATH variable to find the first reference which will be the actual nginx binary at /usr/sbin/nginx

These are two different things, if you want to execute a file in the current directory and not automatically have bash search the locations in the $PATH variable you should prefix it with ./ like this

./nginx


Is there a way to purchase +100 GB on Ubuntu One?

Ubuntu one Page tells you everithing.

You can buy in 20GB steps. 100GB is no problem.

And yes. You can access with multiple devices and different os's.


This indicates that MySQL is not running or it has not been installed correctly.  You access MySQL with a MySQL client, such as the mysql command.  The MySQL client communicates with the MySQL server over a TCP/IP port, or a Unix socket.

In your case the MySQL client is configured to communicate with the server over a Unix socket located at /var/run/mysqld/mysqld.sock but there is no server listening there.

This could indicate

No MySQL server is installed
Your MySQL server is stopped
Your MySQL server is configured to listen to a socket at a different location, or to a TCP/IP port, but your MySQL client thinks it is listening to a socket at that location.


Is it worth switching to Ubuntu if I already have VirtualBox + Mintty on my Windows?

What does Ubuntu have to offer over these tools I'm currently using on my windows?

Ubuntu has a better security track record than Windows.

Let's say your Windows got hit by a cryptolocker (those tend to ignore anything outside /home since it requires sudo access and with some basic alterations to the default setup it is easy to protect your own content in /home). That will lock down your whole system including your containers that hold Ubuntu. Good luck getting your system up and running again.

If you have Ubuntu with Windows in Virtualbox, only the content of your Virtualbox instance would be locked. Restore the backup of your Windows container and your loss should be a minimum of data.


Resuming from suspend temporarily 'fixes' sound on 14.04, how can I mimic the resume?

If the problem is that pulseaudio stops running for some reason  , copy and run  this command in a terminal:
killall -9 pulseaudio
Pulseaudio will be stopped then automatically relaunched , hopefully sound will be ok.

If not, try:
sudo alsa force-reload
which will restart Alsa audio layer.


You dont need to implement difficult compilation methods to install Libmtp in Ubuntu.

Libmtp is in main Ubuntu Repository and you can install it by following command.

sudo apt-get install libmtp-common libmtp-dbg libmtp-dev libmtp-doc libmtp-runtime libmtp9 dpkg libc6 libusb-1.0-0


Wireless works under Gnome but not under KDE on the same Laptop

Check if you have the plasma-widget-networkmanagement installed, if so, try adding it to the plasma desktop and it should work.

If it don't, then after starting KDE open a terminal and run nm-applet, that's the Network Manager used on Gnome, so if it worked in gnome it should work in KDE. =D


Ubuntu install crashes using Live-USB made in Win7

I found that after doing some checks while in the test Ubuntu that the drive had a number of I/O errors that of course not fixable and means the drive is on its way out. After buying a new drive the install worked fine.

The windows disk check is obviously not very informative.


Wubi is no longer supported unfortunately. The key take away from that Wikipedia article is this:

Wubi (Windows-based Ubuntu Installer) was an official Windows-based free software installer for Ubuntu, from 2008 until 2015,[2] which allowed the installation of Ubuntu to a single file within an existing Windows partition.

Dual-booting is actually really fairly simple these days. Dual booting is, indeed, your only realistic option. Because each situation may be a little different, I won't expand on it at this time - unless you've a specific question. Instead, I'll refer you to this link where you can get more information.

I don't normally like to link to sites and not include any additional information, but that's the official Ubuntu site and is unlikely to change and is likely to be updated as new information is available.

Instead, let me just make sure to do the following - don't skip anything:

Backup your data.
Read the instructions carefully before doing anything.
Read the instructions a second time and ask specific questions if you need help.
Follow the instructions carefully and know what you're doing before you do it.
The reason you want to try Linux is because you want something different. This means learning something new. Do not expect it to be the same and do not expect it to be easy (though it really is, just be patient with yourself).
Be patient with yourself - go slow.
If you make mistakes then don't worry, you backed up your data in Step 1.
Before you even try to restore data, if you do make a mistake, it's probably a small and easy to fix problem.
There's an excellent community online who will help you if you help us to help you and you're willing to put some work into it.

So, my suggestion, burn an ISO to DVD or use unetbootin to make a USB thumbdrive to boot to. If you make a USB drive then make sure you format the disk with FAT32 to ensure that it boots. Give Linux a try in a Live OS situation, be patient, and see if you actually want to make the switch or go through with the dual boot process. There are a lot of choices and one of them might be the right choice for you. This will also be a good indicator of the compatibility of your hardware. While you're booted to the Live USB/DVD disk, you needn't worry about it doing anything to your Windows install. You can learn, use, and even install software. (By default, it will sit in RAM unless you've specifically set aside space with unetbootin to retain persistent data.)

Here is a link to unetbootin and it's self-evident with its use. There's a version for Windows, OS X, and Linux. You'll be wanting the Linux version. You can have it download ISOs for you or you can download the ISO yourself and then have it use the downloaded file to make the disk.


Ubuntu 16.04 LTS crashed - struggling to reboot

Proceed from this step,

Welcome to emergency mode!
...[some suggestions]...
Press Enter for maintenance
(or press Control-D to continue):

Provide your root password here and do :

df -h

And identify the partition which is mounted on /, for example

 Filesystem      Size  Used Avail Use% Mounted on
  /dev/sda1        58G   23G   33G  42% /

Now run the command:

fsck /dev/sda1

Proceed with several options which promt in mode of yes/no. Choose yes or y until this not finish and when finished restart the system. This will recover the read-only problem.


Samba fileshare accessible from certain Windows user

I don't understand this part of your post:

I know how to set password to that share but that's not it.

It's not clear to me how one sets a password to a share.

Anyway, the classic way of doing this is to edit /etc/samba/smb.conf and create a share definition that in its simplest form looks something like this:

[ShareName]
path = /path/to/folder
read only = no
valid users = bob

Then restart smbd: sudo service smbd restart

You would have to:

** Create a local user on the Ubuntu box named: bob

** Then add him to the samba password database: sudo smbpasswd -a bob

Note: If you created the shares from Nautilus ( Files ) you need to go back and unshare it in Nautilus. Nautilus as currently configured does not have the ability to specify only one user for access.


How to know the version of iBus I'm using?

You can run the command ibus version to see which version you are running. I'm still personally trying to figure out how to update it myself

edit: I found a post that breaks down installing the newest version of ibus, link.

Also in case you run into the same error I did when attempting to install it, if you run into the error saying your intltool is too old run:

sudo apt-get install intltool

When you run the make command stated in the above link, you might get a lot of missing packages. For the most part just install them one by one and if need be google to find the source package for some.


You cannot record to a MIDI in Zynaddsubfx, as it is not a sequencer, but only a "simple" synth. You can however, record to a WAV file. If you want a MIDI, you will have to hook up Zynaddsubfx to seq24 or a similar sequencer program, create a song, and save to MIDI from there. You will need to hook up Zynaddsubfx and the sequencer again, to play the song, as playback with other software may result in slightly different instruments being used, and thus a different sound than what you were hoping to record.


opening doc and pdf files in terminal linux

If you don’t run an X server there’s no display on which a graphical program can be displayed. You can use terminal programs, for .pdf there are framebuffer viewers available (though unfortunately not in the official sources):

fbida (fbgs and fbi – image viewer for the linux framebuffer with a wrapper script for viewing ps/pdf files, the whole suite is available as a .tar.gz on the releases page
fbpdf – a small framebuffer pdf, djvu, epub, xps, and cbz viewer
jfbview – PDF and image viewer for the Linux framebuffer

In the case of .doc files I would convert them to plain text, e.g. with any one of

libreoffice --convert-to txt example.doc
unoconv -f txt example.doc
abiword --to=txt example.doc

or docx2txt for .docx files. The resulting plain text file can then be edited using your preferred terminal text editor like nano, emacs or vim.


Is there something wrong with my partitions?

The apt-get autoremove probably cleaned up old kernels sitting on /boot/.  Filling up the /boot/ partition is a common issue with Ubuntu when your partition is smaller.

Boot partition filling up: Is this a bug in Ubuntu?


How can I show images and videos on Ubuntu Server?

The MagickWand API is the recommended interface between the C programming language and the ImageMagick image processing libraries. I installed libgtk-3-dev and tried running your code with it on Ubuntu 16.04 and it also worked.
VLC-Qt is a free library used to connect Qt and libvlc libraries. It contains core classes for main media playback and some GUI classes for faster media player development. The VLC-Qt core library connects to libvlc and controls playback. The entire libvlc library is completely wrapped into C++/Qt.

ImageMagick, libgtk-3-dev, VLC, libvlc packages and Qt packages can be installed from the default Ubuntu repositories.

To install a minimal X window system on Ubuntu Server run the following command:

sudo apt-get install xorg

Next install a window manager:

sudo apt-get install openbox


The lock means it is locked to your user and owned only by root.

In a terminal, run

sudo chown $USER:$USER path/to/icon.png

Swap path/to for the actual icon folder and it will give permission back to you.


Ubuntu 14.04 32bit OS with 4g physical ram and pae still shows 3.2g ram

Part of the memory is allocated to the on-board Video card. You may be able to adjust the amount of memory the card can use, in the system BIOS, but you will never see the full 4GB, as the video card must be allocated some amount. You could theoretically disable on-board video if your BIOS allows it, but then your system would have no video, as it's a laptop.

You do not need to force PAE to on. Ubuntu now only supports PAE for 32-bit Intel systems. So forcepae doesn't actually do anything, but give you some extra messages in the log about it being forced.

Installing the linux-image-server packages was also not necessary. You only seeing 3.2GB vs 4GB, is unrelated.

On my system, with Intel video, I have 32GB of RAM installed, which is  33554432 kilobytes, while free shows I have 31860640 kB total, which is 30.39 GB. Some of that difference is the allocated video memory, and some of that difference is the kernel memory.


Ubuntu 12.04 Internet Connection not working (anymore)

Your PC and your router are on diferent networks. TCP/IP can comunicate machines on the same network.

Change the address in the Ubuntu computer to some address like 192.168.1.x (where x < 254 and x > 0), netmask 255.255.255.0 (or /24) and gateway 192.168.1.254

If the router has a dhcp server activated you can define network address as DHCP in network manager


uninstall software center applications via bash

You can determine which package you have installed with apt list --installed eclipse Note that eclipse has many dependencies and suggested packages so removing eclipse via apt won't necessarily free up the ~300MB of disk space it took up when you installed it.

You might try aptitudeor Synaptic to remove obsolete packages rather than blindly purging or removing packages with pattern matching.

aptitude search ?obsolete will give you a list of obsolete packages currently installed on your system allowing you to carefully pick and choose what to eliminate based on your knowledge of your system.

With the graphical package manager (Synaptic), (installable with the command sudo apt install synaptic) you can find the list of obsolete packages by clicking on the “Status” button and selecting “Installed (local or obsolete)”. You can then go through the list and decide for each package whether you want to keep it or not. Example below:

Source:

https://raphaelhertzog.com/2011/02/07/debian-cleanup-tip-2-get-rid-of-obsolete-packages/


how to install bokken 1.8 or latest in ubuntu 14.04

EDIT: actually bokken tool gpg key of repository is expired that provided by bokken project team . i have tried to use gpg key and repository using documentation

pub   3072D/233280A7 2012-01-17 [expired: 2015-01-16]
uid                  Inguma Team Archive Automatic Signing Key for 2012-2015 (3-year validity) <deb@inguma.eu>

you can try it their documentation here . you can report it as a bug .
if you want to install it then you have to download source code from hereor here
also they put NOTICE:

Important! Debian and Homebrew packages are broken, use manual installation instead

solution :you have to download code and run it as explained in documentation here

EDIT2: before running source code you have to install prerequisite that explained here
i hope this will help better to configure


How to make Xubuntu detect multiple monitor setups correctly?

Go to Settings > Display and check the box that says "Configure new displays when connected".  Now when you plug a new monitor in, it should pop up a dialog box for selecting the display mode.  If this does not work, check to make sure that you are using the best driver for your graphics card. (Settings > Additional Drivers)


Ubuntu drops me a GRUB prompt, no wubildr

reinstall Ubuntu would be the easiest way to go I think.

Check this link:

WindowsDualBoot


With tlp installed (if not sudo apt install tlp)

sudo nano /etc/default/tlp

Find DEVICES_TO_DISABLE_ON_STARTUP, which can be set to

DEVICES_TO_DISABLE_ON_STARTUP="bluetooth"

Now bluetooth will be disabled on each boot. After changing this configuration bluetooth will can be enabled and disabled through menu and panel item.

Also you need to disable Blueman to run at startup, cause this will enable again bluetooth.


What are the disadvantages of continuing to use Ubuntu 14.04 while newer versions are available?

There are no disadvantages of continuing an older but still supported release of Ubuntu, like 14.04. It will be supported until April 2019, so you can go on running it for more than 2 more years without worrying.

Of course the latest official release will experience slightly more love regarding fast package/update maintenance and it may have additional new features, but security updates will always be distributed to all supported releases as fast as possible. It might take minimally longer until hardware enablement packages, new kernels and other updates that mainly introduce new features and no serious bug fixes get backported to older versions, but this should not be a disadvantage.

The advantage of having not the very latest Ubuntu release installed but a slightly older LTS (long term support) version is that all software is much more stable here as it has been tested for longer time.

To conclude, you do not have to upgrade unless you want to. Some non-critical software updates might not be available for your older release, but as long as it's still supported, there's not really a problem.


After installing Ubuntu 16 alongside Ubuntu 14, system not asking to select OS to load

Install Grub Customizer

To do that, Open terminal by pressing Ctrl+alt+T, and enter the following commands one by one

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

After installing it open it and enable the option Show grub menu on startup


After uninstalling ati fglrx drivers ubuntu 11.10 wont boot

After booting to recovery mode select the option 'remount' as suggested in the comment above.
Drop into a root shell with internet acces ('netroot' option) and try executing the following commands to reset your graphics driver configuration to the ubuntu default drivers.

sudo apt-get remove --purge xorg-driver-fglrx fglrx*
sudo apt-get remove --purge fglrx*
sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old
sudo dpkg-reconfigure xserver-xorg

Restart your computer using

sudo reboot

And boot up normally

Or if you have installed the drivers manually from the binary download available on the amd website run these commands:

 sudo sh /usr/share/ati/fglrx-uninstall.sh
 sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old
 sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx libgl1-mesa-dri
 sudo dpkg-reconfigure xserver-xorg
 sudo reboot


Installing adobe acrobat reader firefox plugin ubuntu 12.10

For Ubuntu 12.10 64-bit I did the following to install the Acrobat Reader plugin in for Firefox. (This assumes I have already manually installed Acrobat reader to /opt/Adobe/Reader9).

sudo apt-get install nspluginwrapper
sudo nspluginwrapper -i /opt/Adobe/Reader9/Browser/intellinux/nppdf.so

Now double check with:

nspluginwrapper -l

the output might look something like:

/usr/lib/mozilla/plugins/npwrapper.nppdf.so
  Original plugin: /opt/Adobe/Reader9/Browser/intellinux/nppdf.so
  Plugin viewer: /usr/lib/nspluginwrapper/i386/linux/npviewer
  Wrapper version string: 1.4.4-1
/usr/lib/firefox/plugins/npwrapper.nppdf.so
  Original plugin: /opt/Adobe/Reader9/Browser/intellinux/nppdf.so
  Plugin viewer: /usr/lib/nspluginwrapper/i386/linux/npviewer
  Wrapper version string: 1.4.4-1

Restart Firefox, and double check the plugins:

Firefox >> File >> Open Location >> "about:plugins"

the output should contain:

Adobe Reader 9.5

  File: npwrapper.nppdf.so
  Version:
  The Adobe Reader plugin is used to enable viewing of PDF and FDF files from within
  the browser.
  ...

Hopefully it should be working now.


Systemd mount.nfs fails: Network is unreachable on Ubuntu 16.04

I finally found a workaround:
It seems to be related to the way the DHCP works on Ubuntu, so I disabled the renaming of the Ethernet Interfaces at boot, thus DHCP resolutions was faster.


Local mail is (almost) never checked in gnome-terminal, how can I change that?

The short answer is that virtual terminals don't have control over OS login operations. In terms of populating 'the right things' for bash (most shells) to check for mail, the program that actually does this work is login(1) -which is outside the shell configuration.
There is an elegant answer about how login(1) plays a part in all of this here: bash - Why is MAIL unset in graphical environments? - Unix & Linux Stack Exchange
With that said, I use the following function to display system mail notifications, if system mail exists, based on a maximum interval. You will have to figure out the prompt hook but this should point you in the right direction. Hope this helps:
Should be used with 'login shell' mode on terminals...
# add to your ~/.profile or equivelant
MAIL_CHECK_TIME=0
mypromt()
{
    local pwd='~'
    local MAIL_SECONDS_DIFF=$MAILCHECK

    local MAIL_ELAPSED_SECONDS=$((SECONDS - MAIL_CHECK_TIME))

    [ "$PWD" != "$HOME" ] && pwd=${PWD/#$HOME\//\~\/}

    printf "\033]0;%s@%s:%s\033\\%s" "${USER}" "${HOSTNAME%%.*}" "${pwd}"

    # if [ ! "$SSH_CONNECTION" ]; then
        if [[ "$MAIL_CHECK_TIME" -eq "0" || "$MAIL_ELAPSED_SECONDS" -gt "$MAIL_SECONDS_DIFF" ]]; then
            local MAILX="$(mailx 2>/dev/null &)"
            local COUNT=$(echo "$MAILX" | wc -l)
            local COUNT=$((COUNT-3))
            local MESSAGE_TEXT="message"
            if [ "$COUNT" -gt "0" ]; then
                if [ "$COUNT" -gt "1" ];then
                    MESSAGE_TEXT="messages"
                fi
                printf "You have $COUNT mail $MESSAGE_TEXT.\n \033]0;%s@%s:%s\033\\%s" "${USER}" "${HOSTNAME%%.*}" "${pwd}"
            fi
            MAIL_CHECK_TIME=$SECONDS
        fi
    # fi

    # echo "seconds: $SECONDS"
    # echo "check: $MAIL_CHECK_TIME"
    # echo "elapsed: $MAIL_ELAPSED_SECONDS"
}
# uses mx  linux /etc/profile.d prompt hook
PROMPT_COMMAND="mypromt"


Win7 no longer available after installing 12.04

Try running update-grub in a terminal. It should show something like...

using custom appearance settings
Found linux image: /boot/vmlinuz-3.2.0-24-generic
Found initrd image: /boot/initrd.img-3.2.0-24-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done

Another option to try is to download and install grub-customizer from the software centre and see if it's detected in there.

Here's my GRUB windows 7 config

Maybe... Here's a copy of my Windows 7 Partition GRUB config.

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 165A6AB45A6A9073
        chainloader +1
}
### END /etc/grub.d/30_os-prober ###

Perhapse this will help you know what needs to be in the config file /boot/grub/grub.gfg. of course, yours would be sda2. Also, I'm not sure what the search line represents. The number at the end may not be what is required? Hope this helps.


How do I modify the context menu in Nautilus or another file manager for Ubuntu 20.04.1?

For Ubuntu 20.04 LTS the correct package name is filemanager-actions. Install it with:
sudo apt-get install filemanager-actions

Nautilus support is contained in second package named nautilus-extension-fma. You can install it with:
sudo apt-get install nautilus-extension-fma


Currently native Chromecast support on linux is pretty thin. The only client I am aware of is the official Chrome browser extension. It is possible to stream media from a linux machine, but you need to set it up as a file server and control the Chromcast with an android device. There are instructions here.


First we need to identify the input device ID to change the speed/sensitivity. Open a terminal and run this command:

xinput --list --short

output:

abcd@abcd-abcde:~$ xinput --list --short

Virtual core pointer

↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]

↳ Logitech USB RECEIVER                     id=12   [slave  pointer  (2)]

My pointing devices are a Logitech USB RECEIVER and a Synaptics TouchPad.
To list out device properties:

xinput --list-props "SynPS/2 Synaptics TouchPad"

EDIT:

Another option:
xinput --list-props 11 as 11 is the number that is shown above in its parent property (SynPS/2 Synaptic TouchPad).

Now reduce it's property values to suit your need:

Device Accel Constant Deceleration (267):   2.500000

using this command:

xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Constant Deceleration" 1.5

EDIT:

Another option:
    xinput --set-prop 11 267 1.5 where 11 is the device, just like from above, 267 is the id of the device property (Device Accel Constant Decleration) as you can see when device 11 is being listed all of properties being attached, and finally 1.5 is your desired speed.

You may have to play around with this number a bit to set it exactly as you need.

If you need to set this value automatically every time Ubuntu starts then:

create a .sh file

#!/bin/sh

xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Constant Deceleration" 1.5

change the file to executable :

chmod +x

and Put this in the start-up applications list.

Source : Configuring Mouse Speed manually


Graphics on 4K Sager NP8651 (Clevo P650SE NVIDIA GTX970M + Intel 4600HD) Can't Change Resolution

I finally got the nvidia driver and screen resolution working with the latest nvidia 346.47 driver from the x-edgers PPA.

It is essential to remove nomodeset from the grub configuration file /etc/default/grub. Then run

sudo update-grub
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-346-dev bumblebee-nvidia
sudo shutdown -r 0

Then xrandr will work correctly (and so does the settings GUI for screen resolution).

I am still having problems with "primusrun", however nvidia-settings has an option to select the GPU you want to use so I am not sure if bumblebee is even needed. glxgears will now run at ~2000FPS in 4K!


How do I handle patch rejects after applying patches with uupdate?

I agree with @maco on manually resolving the conflict. Seeing the options you give, you probably need to really understand what uupdate does, which is:

extract the new tarball in the parent directory ;
try to apply the previous diff.gz (unless you're using a v3 (quilt) style) to the new directory.

The patch rejections come from applying this diff.gz to the new directory.

Now to go through your options:

edit the old source package => you shouldn't modify the old source package in order to create the new one ;
edit the new source package and re-run uupdate => there is no point in doing so, because the patch fails to apply to the new source, and you shouldn't modify the original source (except with patches, which are found in the diff.gz) ;
edit the .rej files => the .rej files are here to show you what failed to apply ; editing them won't fix your issue but you should have a look at them to see if the failed changes need to be applied ;
use a diff tool => sure, that can be a good idea, (vim -d is your friend) although the .rej files should already give you an idea of what failed to apply. You can also read the previous diff.gz to have an idea of what files it was modifying.

Generally, most of the uupdate conflicts I've met were due to bad packaging in the previous version of the package, namely a diff.gz which modified the source instead of just adding a debian/ directory. This can be checked easily:

zcat ../yourpackagename_0.7.0-1.diff.gz | diffstat

will give you the list of files modified by the previous patch (adapt the file name to your needs). If you find files that are not in the debian/ directory in this list, then your problem is most certainly there. In this case, check what has been changed:

In most cases, it is an autotools mess when debuild -S was called: one of the autoconf/automake scripts was modified and this modification won't apply anymore. It is usually safe to drop this change in the new version ;
In some other cases, the source code has been patched manually (without using dpatch/simple-patchsys/quilt/whatever else). In this case, check if the patch should still be applied to the new version (read the changelog for example). If it does, then make a clean patch using a proper patch manager. Future packagers will thank you for that :-)


I don't know the user-friendly way of doing this, so I hope you're fine with getting your hands dirty. :-)

Open a terminal.
Type xmodmap -pke and hit Enter.
Scroll up until you find a line that looks as follows:

keycode XX = 3 more stuff more stuff
The important thing is that we have found what keycode relates to your key that emits 3 when pressed (without modifiers such as Shift, Alt, etc. that's what "more stuff" is on that line).
Copy and paste that line to a file in your favorite text editor.
Now, modify it so that the fifth entry after the equals sign is sterling. An example is from my laptop's Swedish keyboard layout (yours will likely differ, so don't be lazy and just copy-paste this, OK?):

keycode  12 = 3 numbersign 3 numbersign sterling threesuperior
Save the file as .Xmodmap in your home directory.
Try it out! Run the following in the terminal: xmodmap ~/.Xmodmap
The program doesn't give output, but changes your key mappings until you log in the next time. Hopefully, it worked.
When you log in the next time, Gnome will hopefully (I run an older version of Ubuntu and Gnome, so I can't test for myself) find the file and ask if you want to run it henceforth. Say yes and forget you ever had to do all this. If it doesn't, add the command from Step 8 as an autostarting command in your Gnome session.
Have a beer and congratulate yourself on a job well done. :-)

For more information about Xmodmap, I would recommend Arch Linux's wiki page about it.