A terminal based markdown editor that supports shortcuts

The program emacs has a Markdown plugin that you can read about here: http://jblevins.org/projects/markdown-mode/

However, emacs has a very VERY steep learning curve as to how to use it. That page documents the shortcuts that are available, but you'll have to find other resources to find out what exactly they mean


Ubuntu 14.04 Unknown Display, nvidia graphics

Please check to make sure your monitor is plugged in fully, I noticed my monitor VGA cord was loose, I tightened it, and now it can detect the monitor.

If that's not the case, then you can add it through command line with instruction below.

I've yet to find a proper solution but I have a pattern that seems to work for me.

In terminal enter the following:

  cvt 1920 1080

This command will give you the calculated parameters of your screen.
Copy everything after the pound sign and paste it into the next line

  xrandr --newmode "Copied Line from above"

My personal calculations:

  xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

This command will add the new mode to your list of options

Type xrandr -q to list your screen outputs and look for your connected screen eg. VGA1, HDMI1 or DP1

Finally add the mode to the problem monitor.

  xrandr --addmode VGA1 1920x1080_60.00


Either something else is using the package manager (do you have any GUI's such as the software center open? You need to close those!), or you did not run an apt command as sudo. eg.

sudo apt-get upgrade

If you did run the apt command as sudo and there are no other applications using the package manager, try rebooting or logging off & on again.

If you still get this error, you can manually remove the lock, but this is not advised:

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock


Setup to try OpenStack on a single machine

Considering that you are using Oracle Virtual box and that Openstack guide recommends 64 bit install, pretty much narrows your choices.

Lets see 1 by 1 :

No VM : I am not sure here how would you achieve installation of 3
different nodes since you only have 1 physical server. Also it does
not seem to be reccommended setup.
Single VM : Same issue as above.
Multiple VMS inside 1 VM: Would be a neat solution, but oracle
virtual box has limitation with this and you would restricted to 32 bit installation should you choose nested visualization. Refer to the this ticket here.
I got lot of info from this thread .

So I guess that leaves 1 choice - Install multiple VMs on your host server. I had to simulate multiple network elements and my host machine was a laptop. I got away by using DSL VMs. Now DSL definitely would not be option for running open stack but you may be you want to use Lubuntu if you are short on juice on your host server.


How can I find the directory to clang-format

It is clang-format-diff (without .py extension) in clang-format installed path.
In my case
/usr/bin/clang-format-diff-6.0 (I am using 6.0)


What will be a smoother transition into GNOME for Ubuntu 18.04-- Ubuntu GNOME or Vanilla Ubuntu?

They're both merging into one package-set by the sounds of it... So whatever you're most comfortable with now would be my answer.

Even were that not the case, switching desktop environments isn't hard. Certainly nothing that would stop me using what I considered to be the best choice for the next few months.

From the Ubuntu Gnome blog post on this:

  Next year, if you are using either Ubuntu 16.04 LTS or Ubuntu GNOME 16.04 LTS, you will be prompted to upgrade to Ubuntu 18.04 LTS. For normal release users, this upgrade should happen with the release of 17.10.


Will 12.04 get LibreOffice 3.6 and later?

There will be minor and stable updates from the same series, that is 3.5.X for precise, but no update on the next major as it introduces a lot of new features. One man's feature are another man's regression (simply because behaviour changed).

So if you want a new major you need to try the PPA:

Is there a PPA with the latest version of LibreOffice?

See also:

State and Overview of LibreOffice Ubuntu Packages


Ubuntu not starting post cuda installation

The problem is that Nvidia driver cannot be correctly used by X Server. Uninstall everything like nvidia-*, it may help you solve the problem without reinstall the system, but I strongly suggest you to reinstall it if you are not an expert at Linux (I am not, so I have reinstalled several times my laptop in order to work with Cuda)

I have recently installed Cuda on my MSI GS60 (HD4600 + GTX860M + Ubuntu 14.04), I think my solution should work for you.

If you want to install Cuda while keeping Intel for display, my solution is for you. PS: it is not really my solution, but the solution on the official documentation, with more details:

Make sure you have a iXXX (i915 in my case) for Intel
Block nouveau device if you have
Download the runfile and set the correct access policy
Reboot into runlevel 3 (while choosing the system to boot, edit the
boot info (tap E usually), replace "quiet splash" with "text",
continue)
Run the runfile with "--no-opengl-libs"
Reboot normally

I hope it will help you.


How can one have a little music track listing that can drop down from an indicator applet?

Perhaps use Rhythmbox Music Player (downloadable from the Ubuntu Software Centre) instead which should give you what you require.

After installing Rhythmbox, it is always present so you either open it or simply control it from the systembar at the top of the screen using the speaker icon dropdown by left clicking the speaker icon which allows you control of the player.


Grub not showing after upgrading to 14.04 dual boot win8

If your system is on UEFI then:

Step1: Switch on windows.

Step2: Open terminal as Administrator.

Step3: Type the command below.

  bcdedit /set {bootmgr} Path \EFI\ubuntu\grubx64.efi


Gnome 2.28 in Ubuntu 18.04 has a new on-screen keyboard:
https://help.gnome.org/misc/release-notes/3.28/

The release notes say that "the new keyboard automatically activates when a text area is selected", but for me (on Cosmic, in Wayland session) it only triggers automatically when I touch the search boxes in the Gnome Activities and Application menu, nowhere else.

In these two places where it works it triggers even if it is not enabled in the Accessibility settings. It would be perfect if it worked for "a text area" as the release notes say (which I interpreted as "every").

You can install "onboard" as a workaround, though I don't know about Budgie. (Edit: I tried onboard as a workaround on Cosmic 18.10 before I knew what was going on (see further edits below) and it was a complete unusable mess. I didn't try caribou)

Edit: To attempt an answer to your Question 3, IF the new onscreen keyboard works for you, either because you can swipe up from the bottom of the screen, which activates the keyboard only if you use Gnome in a Wayland session, or you somehow you can manually activate it in an X session (which seems tricky, see edit below), it is great. I have not tried alternative key maps, but the new onscreen keyboard seems fully integrated into the Gnome keyboard settings, and I suppose you can choose alternative keyboards like Greek as if you attached an external hardware keyboard.

Edit:
Please see my attempt at an explanation in my new comment in an older Launchpad bug report (though some is not yet cleared up fully and I may have made mistakes due to confusion):
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1760399/comments/10

The report also has links to additional new bug reports


Ubuntu 13.04 unable to set keyboard layout

It seems you have a corrupted configuration file. I'd start by reinstalling the gnome control center, that may fix the problem automatically

sudo apt-get install --reinstall gnome-control-center

If that doesn't work try also to reinstall the desktop schemas

sudo apt-get install --reinstall gsettings-desktop-schemas


How do I change my resolution to 1600*900 for a wide screen monitor?

Try following:

Click the top right icon, choose Displays...

Change Resolution.

Done?


Is 64 bit ubuntu (120.04.1 LTS) running on VirtualBox hosted by Windows 8 safe?

You can totally do that and it is quite safe, although 512Mb is a bit on the low side. Or, actually, a lot on the low side :) On a 4Gb host machine I would give Ubuntu at least 2Gb - that is, if you want GUI, gedit and everything. If you only want shell access then 512Mb or even less would be fine.

Also, a 32-bit guest would perform better in such low-RAM situation.


grub is removed when uninstalling/installing operating systems

You could always mend your grub with Boot Repair. This is a really useful guide for those who need it or for if your grub vanishes due to loading another OS.


USB-C to HDMI and Ethernet adaptors - how to evaluate before purchase - Dell XPS 13

I found this question in my search for advice on upgrading to a dual-monitor dock, and thought I'd share what I learned.

According to this article from 2016, "Alt Mode" uses USB to send HDMI or DisplayPort protocols, but the USB standards body does not write a standard for Display Alternate Mode and there are multiple companies that define their own versions. So, according to the article, products using "Alt Mode" can be pretty hit or miss on whether they will work with your particular rig. This reflects my own 2019 experience with HDMI Alt Mode docks on my Miix 510 with Ubuntu 18. Some just work, some do not, and in general the manufacturers don't provide drivers to help. My old single HDMI dock used Alt Mode, but I have yet to find a dual display version that works for me.

DisplayLink, on the other hand, is an individual company that certifies products using their standard, and distributes updated drivers to work with those products on multiple OSes, including Ubuntu (linked above). For my money that makes it a safer bet. This week on Amazon I'm seeing dual-4k and single 5k docks that use DisplayLink, and the latest drivers on DisplayLink's website were released last week for Ubuntu 19.

So, this question is still relevant. Hope that helps somebody.


Transfer data from Windows Vista via Ethernet to Ubuntu 12.04

Make sure that both computers are connected to the same network. On your Windows machine open command line (cmd) and type ipconfig /all. Check your IP address.
On your Ubuntu machine click the network icon on top right corner and click connection information. Make sure that the only difference in the IP addresses is the last number of the four (meaning they're on the same network)

Once you confirmed that they are on the same network, on your windows machine, share the folder with everyone. There are various ways to do this. In Explorer, right-click the folder select sharing and add "everyone" to the list of those how can read this folder. BTW, you may also enable writing but it is a security risk.

Once you've done this, on your Ubuntu computer open Nautilus, Browse the network, find your Windows computer and copy your files.


How can I know whether a desktop environment is installed on Ubuntu through command line?

They are stored in /usr/share/xsessions.

Run this command:

$ ls -l /usr/share/xsessions

Example of output when at least one desktop environment is installed:

franck@server:~$ ls -l /usr/share/xsessions
total 16
-rw-r--r-- 1 root root 4294 Mar 21  2014 xfce.desktop
-rw-r--r-- 1 root root 5607 Jul 15  2014 xubuntu.desktop

Example of output when no desktop environment is installed:

franck@server:~$ ls -l /usr/share/xsessions
ls: cannot access '/usr/share/xsessions': No such file or directory


Set default language to English (US) in 12.04

OK, I ended up doing this a different way.

First I googled around for the file where this setting is stored:

sudo nano /etc/default/locale

Then there were a bunch of '_CA' below that I changed to '_US' like so and everything worked.

LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"

And then USA #1.


It depends upon whether you want to develop an application with GTK+ 2 or GTK+ 3. All newer applications should be developed with GTK+ 3 because GTK+ 2 has reached its end of life. Nevertheless, there may be legitimate reasons for developing an application with GTK+ 2, such as backward compatibility with older distributions.

I'm not sure if you are aware of the fact, that both versions of Glade that you've mentioned above are already packaged for Ubuntu 12.10. You can install Glade 3.14 using the terminal with the command

sudo apt-get install glade

and Glade 3.8 with the command

sudo apt-get install glade-gtk2

There is actually no need to manually download and compile Glade, unless you want to develop Glade itself.


You'll need to create an entry in the fstab configuration file. The fstab configuration file contains instructions to automatically mount filesystems at startup. You can include network shares, usb sticks and internal hdd in this file.

Look here for a full howto:

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

It's worth noting that your usb stick will probably be a fat32 formatted device if you haven't formatted it yourself to a different file system.


How to 'Expo' One Big Wall with Dual Monitors

Let's have some fun here.... I just read on some sites, and I just got some fix. I didn't try it yet because have no testing box.

You need to install a package from the new PPA (which are you going to insert it into your ubuntu).

sudo add-apt-repository ppa:disper-dev/ppa

sudo add-apt-repository ppa:nmellegard/disper-indicator-ppa

sudo apt-get update

sudo apt-get install disper disper-indicator

After the installation completed successfully, run this command from the terminal

disper -e

It will detect the resolution automatically and extend the desktop, without cloning them. I hope this guide will help you. But if this way is not working, you might try the second one....

The second directly use the system that already pre-installed in the machine called xrandr. You might want to use the graphical one, called grandr

sudo apt-get install grandr

For me, grandr is very useful to set the custom resolution for the each of the monitor. And then, to activate the extended view, you can use this command line. Insert it into your terminal and it will work like a charm....

xrandr --output VGA1 --auto --right-of LVDS1

Assume that your are using the LVDS display (from the laptop) and the VGA display from the connected Monitor. How to know my monitor? Easy, by using the xrandr -q directly from your terminal. This my output :

If the terminal shows VGA1 and VGA2, just replace my command line above. And of course, feel free to examine with the command line given. Maybe it is fun (I guess)

Psst : I've already tried this with Ubuntu with the LXDE and XFCE environment for the second opinion. For the first one, I didn't try yet because I have no nVidia-powered box to test on. Enjoy.

Erm.... for the KDE users, don't worry because you can set the extended diplay directly from the System Setting.


Add a file with the .conf extension to /etc/ld.so.conf.d/  that contains the paths to the libraries and then run ldconfig.  Be sure to set the permissions and ownership of the file to match the other files in the directory.

This is a system wide solution as opposed to the user specific solution of modifying .bashrc.

On my system I made nvidia.conf in /etc/ld.so.conf.d/.  The file contains the lines:

/usr/local/cuda-5.0/lib64
/usr/local/cuda-5.0/lib

If you create the file as sudo then your permissions should be good to go, but my nvidia.conf is owner/group root and rw-r--r-- (or 644).


How to fix this trivial thing I hate but cannot describe briefly?

The issue you describe is know for many years and reported here. When the dialog is open, and the user changes the directory in the folder list, the keyboard focus has changed to that folder list, but the name field still stays highlighted as if it would still be selected.
That keyboard focus changes in this case, is expected. Otherwise, you would not be able to navigate that part of the dialog with the keyboard. What is not right is that the name stays highlighted.
There is a keyboard accelerator to return focus to the name field. Thus, hit Alt+n to quickly return to the name field. Hopefully, the misleading highlight issue will be solved, perhaps in GTK4?


sudo /usr/share/doc/libdvdread4/install-css.* worked for me.

With the s on the end (as in Danial Jose's answer), it wouldn't work. I replaced the s with an asterix (*) and it worked; if you have the same problem, this may fix it for you. (Tested 3 different videos in Arista, a flv, an mp4 and an webm and they all work now.)


Error: couldn't find RGB GLX visual or fbconfig ubuntu 12.04

To solve my problem I had to enter the following commands:

sudo apt-get remove --purge xserver-xorg

sudo apt-get install xserver-xorg

sudo dpkg-reconfigure xserver-xorg

And then: sudo reboot

But I think that if you on pure text mode, you don't need to reboot your computer, but you would have to do sudo /etc/init.d/gdm stop before you type the commands I mentioned above and, after typing then, you will have to use sudo /etc/init.d/gdm start to start the graphic interface again.


I am not entirely sure, but I believe that integrated (mobo/cpu) graphics is automatically disabled if you use external GPU.

Thus, if you have no GPU plugged in, you can use motherboard ports (assuming you have integrated graphics). And if you plug in a GPU, you should use its ports instead, but not both at once!


Is it possible to install CUDA when using Ubuntu on a bootable USB?

Full Install vs Persistent install
With a Full install of Ubuntu to USB you can run any program that you can run on an internal drive.
Comparison between Persistent and Full install USB
Advantages of a persistent install:

You can use the persistent pendrive to install Ubuntu to another computer.

A persistent install takes up less space on the pendrive.

You can reset the pendrive by overwriting the old casper-rw file with a new one.

The install to pendrive takes less time.

Advantages of a Full install:

You can update and upgrade.

If you have problems or wish to modify, the solution is the same as with an internal install, (You can ask for help in these forums).

No ugly startup / install screen.

Better security, you can use full encryption

You can use proprietary drivers.

Hibernation works.

A persistent install is limited to a 4GB casper-rw and a 4GB home-rw persistence file, to get more persistence requires persistence partitions. Once casper-rw is full, the drive will not boot.

More efficient usage of disk space. Does not require reserved space for persistence.

Faster boot, no automatic disk checking or Try Ubuntu/Install Ubuntu screen.

You can do anything, run any program, use any driver, etc, that you can do on internal drive.

Note that once booted, both methods run at about the same speed. If the computer has lots of RAM Ubuntu should run mainly in RAM and there will not be a bi difference between running off internal HDD and USB3 flash drive.
Full Install Method
Three methods for creating a Full install USB: How to Create a Full Install of Ubuntu 20.04 to USB Device Step by Step


Ubuntu 15.10 | Unity Freezes After Escaping Full-Screen Video

Unity was crashing for me when switching from full screen Kodi. I didn't have the flashplugin installed. Instead I fixed the issue by installing and running CompizConfig Settings Manager and disabling Effects->Fading Windows.


Whoops Installed 18.04 LTS on second drive in Win10 PC and now PC goes to GRUB rescue on boot

You should always be able to boot into Windows via the EFI menu (some function key at power-up to select the boot device/OS).

Look at bugs https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1173457 and https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1366546
It looks like your UEFI grub bootloaders are on the first hard disk, and the rest of grub's files on the root filesystem on the second disk.  The second disk's EFI partition (you did put one on didn't you?) will be missing everything.  To fix the second disk so it boots, just copy everything from the first disk's EFI to the second disk's EFI.  The grub.cfg generated in EFI/ubuntu/grub.cfg will link to the root filesystem on the same disk now, and it will boot when the device is selected. Putting the second disk earlier in BIOS/UEFI Settings boot order will allow it to boot in preference to the internal disk when attached.

When not attached, you want the first disk to boot Windows, so put Windows first in the boot order (or delete the ubuntu entry).  From Ubuntu, the program efibootmgr can rearrange /delete the boot EFI entries, I suppose Windows has a similar function, but you might also do this through the BIOS/UEFI settings (when no second disk is attached).


.mo files are commonly compiled files for the translation of an application, there are no  settings stored.

If you are looking for the settings of the xfce4-power-manager you should find it here:

$HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml

But its better to use the GUI ( run in a terminal xfce4-power-manager-settings) to change the settings.


I have previously done a presentation with VLC and a WiiMote.

VLC can display JPEG and PNG images as well. To pause after an item (especially images) add "vlc://pause:9999" below it in the playlist editor.

Information about getting a WiiMote to work can be found here:
https://help.ubuntu.com/community/CWiiD
It's a bit tedious, but not as hard as it may look.

The main draw of this approach is that VLC itself does not have any layout features, so that would have to be done in GIMP, Draw or similar.
In any case: good luck!


Wubi installation on a Whole-Disk-encrypted system?

If you are able to decrypt it on boot prior to loading Wubi then yes, otherwise, no.

E.g. Safeboot can do this but ymmv.  As always, backup your files regularly.


Durr. My xmodmap file lost a directive to set the mod1 modifier:

add mod1 = Alt_L Alt_R

Adding that back in made it work. I don't know how it got lost.


Graphical glitch causes workspace switcher screen to be too large on my account

Open CompizConfig Setting Manager (ccsm)
Desktop → Expo → Appearance
Increase Y Offset


In file start.sh you can have mistake is:
The first file you must add command is: #!/bin/bash. I think after you change it works


How to get a direct link to .deb file of a package

There's a relative path to the .deb file in the output of apt-cache show:

$ apt-cache show texmaker | grep ^Filename
Filename: pool/universe/t/texmaker/texmaker_4.4.1-1_amd64.deb

apt-cache policy shows the repository of a package:

carvalho@S6-STI-N04:~ $ apt-cache policy texmaker
texmaker:
  Installed: (none)
  Candidate: 4.4.1-1
  Version table:
     4.4.1-1 0
        500 http://archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages

You only have to join the repository base URL (http://archive.ubuntu.com/ubuntu/, last line in apt-cache policy output) with the relative path to the file:

http://archive.ubuntu.com/ubuntu/pool/universe/t/texmaker/texmaker_4.4.1-1_amd64.deb

Of course, you must repeat that for the package you want to install and all of its dependencies.


Have a look here https://wiki.ubuntu.com/Touch/Porting#Screen_Pixel_Ratio
There is no a particular formula, and varies between phone/tablet


Depending on your Python version:

sudo apt-get install python3-construct

or

sudo apt-get install python-construct

Or using pip

sudo pip install construct


Can't control screen brightness - ACPI Error - Lenovo Legion Y540

I noticed that you haven't tried to enable the backlight in xorg.conf.
See the 'enable brightness control' tip in the archwiki.
I have switchable graphics but I set the bios to discrete graphics because of my windows dual boot. So I too had to find another solution.
$ uname -a
Linux fifi 5.3.0-42-generic #34-Ubuntu SMP Fri Feb 28 05:49:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

$ less /etc/X11/xorg.conf
Section "Device"
        Identifier "Nvidia Card"
        Driver "nvidia"
        VendorName "NVIDIA Corporation"
        BoardName "GeForce GTX 1650"
    Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection

$ ls /sys/class/backlight/nvidia_0/
power/  actual_brightness  bl_power  brightness  device@  max_brightness  subsystem@  type  uevent


Secure boot ON/OFF while installing ubuntu 16.04 alongside windows 10

you should check it. it let the kernel modules to load. ubuntu 16.04 come with the secure boot enabled because of EFI_SECURE_BOOT_SIG_ENFORCE in linux kernel 4.4.0-20 and later. you can later disable the secure boot when ever you want. Don't worry disabling the secure boot will not harm your windows. i have dual booted my system giving the key.
you may later face some problems after installing the ubuntu 16.04. you may refer nvidi-361 login loop ubuntu 16.04 lts


using backintime with a microSD drive or a RAVPower portable SSD

Turned out to be in /media/richb201/backintime which unfortunately is what I named the microSD. Thanks for your help. I got it working.


Is it possible to blend the new Natty app bar with Ubuntu classic?

You can put 'gnome-panel' at start up applications.


Finally I have figured out the problem and here is what I did :

Step 1 : Uninstall Google Chrome

Type the following in your terminal

sudo apt-get remove google-chrome-stable

Step 2 : Remove all chrome links

This was necessary because in my system, because Google Chrome icons were still present in spite of removing Chrome after Step 1.

sudo su
cd .local/share/applications
ls -l

I found that google-chrome-stable.desktop is still present here so I removed it by typing

rm -f -r google-chrome-stable.desktop

Step 3 : Reinstall Google Chrome

Download the latest google-chrome-stable_current_amd64.deb file (from here),
and install it using Ubuntu Software Center.

Step 4 : Post Installation settings (Most Important)

Navigate to /usr/share/applications directory using GUI, then drag and drop the Google Chrome icon into the docky.

Thats it...
Now you can launch Google Chrome from docky with just a single icon.


I want to reset Chat option (upper right corner of the screen)

you need to press F4 for a new account then a window will appear on the left will be a list of account and at the bottom a + - sign.  simply press the + to add an account and - to remove an account.  there is no need to reinstall ubuntu just because you have the wrong info in a chat account.


What video editing software should I use to make screencast videos with external audio?

You probably missed it, but recordMyDesktop does have the option to capture audio from your input device.

Once you launch recordMyDesktop, you should see a window similar to the following one:

You just need to check the box next to 'Sound Quality'. Then it will capture the audio from your microphone along with capturing the desktop.

In order convert the file format to something YouTube friendly you may use OpenShot which provides some templates for YouTube friendly output (refer to this answer).


Can not type most letters on my keyboard into Electron apps

I finally found a solution.
I noticed that the Screen Reader was enabled (but I didn't enable it). I disabled the Screen Reader in Accessibility settings, and everything works now.


Is it possible to get GIMP 2.10.4 work on Ubuntu 16.04?

It's possible that the glib/GTK+ libs in 16.04 are too old for Gimp 2.10.x, so snaps; where libraries (& other dependencies) are contained within [the snap] are possibly the easiest option.

2.10.0 is available as a snap (https://snapcraft.io/gimp), which will auto-update to a later snap if/when later releases are 'snapped'.

--

Joey Sneddon showed Gimp 2.10.4 is available via Flathub

article: https://www.omgubuntu.co.uk/2018/07/gimp-2-10-4-released-with-faster-start-times-auto-straighten-tool

GIMP on Flathub : https://flathub.org/apps/details/org.gimp.GIMP

Also from Joey Sneddon's article, the unofficial GIMP AppImage or Otto Kesselgulasch's GIMP PPA can provide later versions (2.10.3 & 2.10.2)

2.10.3 unofficial GIMP AppImage https://github.com/aferrero2707/gimp-appimage

2.10.2 Otto Kesselggulasch's GIMP PPA: https://launchpad.net/~otto-kesselgulasch/+archive/ubuntu/gimp


Series of task to be done after a single stroke in Easystroke gesture recognition

DISCLAIMER: I'm not sure if this will work, and I am can't test it now, but try it.

Install xte: sudo apt-get install xautomation

In easy-stroke make sure "Type" is set to "Command", then in the "Details" field put:

cryptkeeper && gnome-terminal && xte 'keydown Control_L' 'keydown C' 'keyup Control_L' 'keyup C' 'key Up' 'key Return'

In the end, it should look something like this


How to integrate juju-gui into openstack horizon dashboard?

Thanks for your interest in Juju in Horizon! We demonstrated this to gauge interest and the Horizon plugin relies on code that was not completed to production grade. If you're interested please send an email to the address at the end of the presentation and folks at Canonical will get back with you and know that there's more interest for this idea.


How to stop Mod4-P from switching the display?

Disregard my other answer, it's incorrect.

There are laptops out there that have a physical button for video output switching hardcoded to send Win+p.  This is why Ubuntu now interpets Win+p as a video output switching key.

This is hardcoded in gnome-settings-daemon and can be disabled in gconf by setting

/apps/gnome_settings_daemon/plugins/xrandr/active

to false.  This workaround probably has a nasty side effect of breaking your real video switch key, if you have one.

P.S. This feature is added via an Ubuntu-specific debian/45_support_new_video_key.patch, but upstream gnome-settings daemon will do the same thing in a different gnome-settings-daemon plugin (media-keys).  It is therefore likely that this gconf workaround will stop working in Natty.

P.P.S. There's an open bug claiming that stealing Win+p this way is not nice for people who have sane hardware and want to use it for something else.


Static IP for Ubuntu 13.10 Server (VirtualBox)

I suggest you select an address outside the range used by the DHCP server in the router rather than copy over the same address. Also, you must specify DNS nameservers:

auto lo
iface lo inet loopback

auto eth0
#iface eth0 inet dhcp

iface eth0 inet static
address 192.168.43.200
netmask 255.255.255.0
gateway 192.168.43.1
dns-nameservers 8.8.8.8 192.168.43.1


Application as desktop background in Ubuntu

I think this answer can be the beginning of an answer for you :)

If I understand correctly, you basically want ot create a live wallpaper

Here are a few live wallpapers you might like.
Isearched quickly, but couldn't find any ressource to create your own though.


How can I tell, how well my graphics card performs on Ubuntu?

Benchmark your GPU
1. Mesa Utils
Install the following package:
sudo apt-get install mesa-utils

And then start a benchmark test from the commandline
glxgears

With a modern GPU you should achieve frame rates (FPS = Frames per second) of more than 5.000. The is limited to the refresh rate and resolution of the monitor!
Invoking glxgears with vblank_mode=0 tells the graphic card to ignore the refresh rate of your monitor and just try to reach the maximux fps it's capable off.
vblank_mode=0 glxgears

2. Open GL
Run the OpenGL benchmark test with
sudo apt-get install glmark2

and run the test with
glmark2 --fullscreen --show-all-options

The score is adapted for modern and fast GPUs. Note that the fps score depends on the resolution you set during the test!
Afterwards the result can be compared on e.g. this benchmark page.
3. Benchmark Unigine
A 3rd party benchmark tool is Valley. The free basic edition is nice to test your hardware. There are different scenarios you can choose. I recommend the valley benchmark test. Download it and change the execute permission using
chmod +x Unigine_Valley-1.0.run

and run the installation (no root permission necessary)
./Unigine_Valley-1.0.run

Start the benchmark engine with
cd ./Unigine_Valley-1.0 && ./valley &

Don't forget to click on the benchmark widget on the top left corner.
Youtube Problems
The most common problem with youtube videos is the lack of a fast internet connection.


graphic bug in unity, messy background for dash and launcher

I cannot give an explanation for the degrading of the dash and Launcher image but as for the Dash being a little bit see-through I say that it is supposed to be like that. See, this link to Mark Shuttleworth's blog for August this year.

Notice the heading Visual Refinements. Note this quote:

  Rather than a flat darkening, we’re introducing a wash based on the desktop colour. The dash thus adjusts to your preferred palette based on your wallpaper.

If you are experiencing something different to this, then the problem might be to do with the graphic card driver or even the graphic card itself.

Regards.


Had the same problems on my university In public networks you sometimes need certificates for that Network (You've been asked for a CA on connection and ignored it).
This certificates should be provided by your school.


Get the MAC address of a connected, unlabeled, unconfigured, unconfigurable ethernet device?

Running plain tshark or tcpdump produces messy output, because all the traffic originating from your machine gets logged too.

Try

tcpdump -i eth0 -lenq 'ether src not <your_mac>'

-e captures the ethernet frame too
-l flushes stdout buffer immediately.
-n don't resolve hostnames
-q be more quiet.
replace <your_mac> by the MAC address of your local interface as found with e.g ip addr show.
obviously replace eth0 with the correct interface. If you're on Windows, use tshark -D to list all interfaces.
(Edit) On Linux you may use tcpdump instead of installing tshark which needs installation of the whole wireshark package. tcpdump should be pre-installed on Ubuntu (it's in the meta-package ubuntu-standard).

Alternative: If you want source MAC addresses as output only, do (inspired and shamelessly adapted by OPs comment below)

ETH=eth0;MAC=$(cat /sys/class/net/$ETH/address); tcpdump -lenq -i $ETH "ether src not $MAC" | awk '{print $2}'

Best to start the capture without a link and then plug the cable in.

I don't think there is a way around sniffing traffic. The reason ARP fails, is that the device has no IP address and won't answer to ARP requests.

Another possible solution would be to connect the device to a managed switch and read out the MAC address table, but I feel that's not an option for you.

In any case, to be detectable the device needs to send out some sort of Ethernet traffic. If you're lucky it sends a DHCP/Bootp discover which you can sniff.

(Edit) Why does the host not hold a MAC table like a switch does? Well, it doesn't need to, because it is not a switch. Unlike a switch the decision which interface puts out an Ethernet frame is made beforehand according to the routing table. The IP packet is wrapped in an appropriate frame after ARP lookup.

Sure, you can turn your machine into a proper L2 switch. You may create a bridge between multiple physical interfaces. I fiddled around with this a bit, and as it turns out you can get a nice MAC table that way!

Install bridge-utils from the repository.
Create a new Ethernet bridge in /etc/network/interfaces

auto br0
iface br0 inet static # dhcp goes as well
 address ...
 network ...
 bridge_ports eth0
 up /sbin/brctl setageing br0 300
 up /sbin/brctl stp br0 0

This defines a "bridge" (there's really no bridge - just one interface) without spanning-tree stp br0 off. Addresses will age out after 300s. Set this to your liking but not to low.
Bring the bridge up ifup br0
Check if it's up brctl show and view the MAC table

brctl showmacs br0

Profit (?)


; character ;when ;I ;press ;the ;spacebar

Try booting a live USB or live CD of another Ubuntu version to see if the problem persists.

Chances are, though, that it is a faulty hardware problem.


How to tell which packages are available to install using apt-get?

Several options here.

apt-cache, which will search in descriptions too, by default:

# keywords or regular expressions
apt-cache search keyword1 keyword2

# same, but limits to name of package
apt-cache search --names-only packagename

# shows versions available from each repo
apt-cache policy packagename

aptitude:

aptitude search packagename

aptitude has known issues using Multiarch currently, but searching should work though. LP bug #831768
dpkg:

dpkg -l | grep keyword # inefficient because of useless use of grep

dpkg -l pattern-of-packagename

Online: packages.ubuntu.com


desktop cube not in compiz config settings

Some of these plugins have been disabled because the two Compiz developers do not have the time to maintain those plugins.

Rotate/cube you can install into 12.10 with ...

sudo apt-get install compiz-plugins compizconfig-settings-manager


Why is checkinstall no longer being maintained?

You really should ask the creator but I can make an educated guess: It is considered a security hazard. And not just a small one.
Martin F. Krafft author of "Debian system" (-> Amazon):

Checkinstall is limited in what it can do. To be precise, the packages it creates can only install files, and checkinstall does not care where it installs them. You can overwrite files in /home directories with checkinstall, among other things. The generated packages can not modify files. If the installation routine modifies existing files, they will be part of the generated package in their entirety.
A horror scenario occurs when an installation routine adds a user by modification of /etc/passwd, which is subsequently included in the package. Installation of the package causes /etc/passwd to be completely replaced, and the deinstallation of the package removes the file, breaking the system in half.
The generated packages also fail to register their configuration files with dpkg, therefore paving the way for upgrades that overwrite local configuration file changes.
In light of these problems, it is probably a good idea to avoid but for the rarest cases.


The way to go depends of how you did installed your system:

If you installed /home in a separated partition

If this is the case you are lucky, just download the latest stable versions of Ubuntu (could be either 12.04 LTS or 13.04), create your LiveCD/USB (in the downloads page it offers enough information about how to create those), then boot with it. Now stop! From here on you should be very aware of what you are doing.

When you start the Live system, check if your data it's still in the partition that was your /home. If it's still there, verify it's filesystem name using fdisk -l in a terminal. It should be /dev/sdXZ, being X a letter (a, b, c...) and Z a number (1, 2, 3, 4...).
Now unmount the partition, clicking in the eject symbol.
Start the installer and follow the process until it asks you for how to partitioning the disks. Select Something else.
Here create your system partitions, 1 swap, 1 ext4 for the / file system, etc. taking in account that you won't delete any partition.
Before hitting "Continue", the name of your partition that was /home, look for it, should be something like /dev/sda5 (you got the name in step 1!), select it and click Change....
In the mount point write /home, and verify that Format is unchecked.
Do a last check, then hit Install now, and wait, you will have your system back and can install again all the software.

If you didn't installed /home in a separated partition (or just don't care about your data)

Follow the above guide until the step 3. Instead of "Something else" just install Ubuntu using all the available disk.


Questions about bootable USB stick (Ubuntu) on Windows

That's extremely easy if you use the following set-up:

Use your existing bootable USB stick to install Ubuntu on an SLC USB stick (USB 3.0 preferred if your hardware supports it) Just a normal install, treating the USB stick as an SSD.

Why? The SLCs are twice as expensive as the MLCs but they are 4 times faster and last 8* longer!  So they really are small SSDs on a stick!
Reboot from the USB and optimize the system and treat the USB stick as a small SSD, so:

In your /etc/sysctl.conf add:

# Fabby: change the "swappiness" to 10 to prevent swapping as much as possible
# to not wear out the USB stick as the Ubuntu default is optimized for a server.
# 10 to balance with vfs_cache_pressure
vm.swappiness = 10

# Fabby: Lower vfs_cache_pressure to 75%
# (once cached, probably not immediately needed any more)
#
# This percentage value controls the tendency of the kernel to reclaim
# the memory which is used for caching of directory and inode objects.
#
# At the default value of vfs_cache_pressure=100 the kernel will attempt to
# reclaim dentries and inodes at a "fair" rate with respect to pagecache and
# swapcache reclaim.  Decreasing vfs_cache_pressure causes the kernel to prefer
# to retain dentry and inode caches.
vm.vfs_cache_pressure = 75

# Fabby: Good to improve sequential reads (stop stuttering in movie play)
# Can also be implemented per disk using udev rules
vm.max-readahead=2048
vm.min-readahead=1024

In your /etc/fstab add the bold paramaters to your boot USB line. (It'll probably be sdc or sdd. The below is an example, use UID if possible)

/dev/sdc / ext4 defaults,noatime,discard,errors=remount-ro 0 1

Done!  :-)

For the record: I have a 16GB USB 2.0 SLC stick just like this (more then enough for my use-case and not too expensive and it's about 5 years old now and still running!)


I have resolved this myself by simply using Wine for the Windows version. Thank you all for your help though.


How to disable ctrl+alt+l shortcut on Ubuntu 18.04?

I had the same problem, and managed to fix it through dconf editor. Just did a search for "screensaver", and found the following property with ctrl + alt + l as a shortcut: /org/cinnamon/desktop/keybindings/media-keys/screensaver. Removed the shortcut, and tried reloading Gnome, without effect. After a reboot it worked though, maybe a relogin would do the trick as well.


That description, specifically reproducible freezes for opening a graphical app (assuming it doesn't plain take away all available memory) looks very like graphics driver choking up on GPU lockups or something similar. To be sure you can look at journalctl.

If it's the case, try installing latest mesa, and latest kernel, and see if that helps.


Gnome Nautilus - USB automount not working

Below are two links that might help if you haven't already tried these.

https://answers.launchpad.net/ubuntu/+source/nautilus/+question/153678
http://ubuntuforums.org/showthread.php?t=1478368&page=3

Hope these help. The second link solved my problem, but then my USB drives were showing up in Nautilus.


How to Install Ubuntu 12.04 with Pendrivelinux?

Download the iso which you want from here
Download the universal usb installer.Insert your pendrive and start the application
Follow the instructions on screen.See this for more info.
Keep the flash drive inserted & reboot
Make sure that the bios is set to give first preference to flash drives rather than hard drive
Click on Try ubuntu from flash drive . Once you log into 12.04 it will give you an option to install it(But wait not so fast!!!!)
During installation you will be given a set of options one of them is Partitioning. Refer to this. this will help you partitioning your system
then start the install
Follow onscreen instructions
After install is over dont forget to update


using sort command while strings in first column repeats

There are two things you need to do.

First, sort -k 1 starts at key 1, but by default stops at the end of the line: to sort only on key 1, you need -k 1,1

Second, by default GNU sort performs a final "last resort" sort on the whole line - to suppress that, you need to add the --stable option.

So

$ sort --stable -k 1,1 data
ALIC 5.55 2.65 3.45
ALIC 2.56 2.78 3.99
ALIC 1.00 1.00 1.00
ALIC 0.95 1.00 1.00
AMC4 3.55 3.66 4.88
AMC4 3.00 3.67 4.78
AMC4 0.50 1.00 1.00
AMC4 0.01 1.00 1.00


Set default group for user when they create new files?

If you want all new files in a particular directory to be owned by a particular group, just apply the setgid bit on it:

chgrp www-data /some/dir
chmod g+s /some/dir

If you have an existing tree of directories that you want to apply this behaviour to, you can do so with find:

find /some/dir -type d -exec chgrp www-data {} +
find /some/dir -type d -exec chmod g+s {} +

(if the directories are already owned by the relevant group, then you can omit the first command in both of these examples).


How to install Xubuntu alongside Ubuntu Mate

Obtain an image for Xubuntu
Verify the hash is correct
Apply the image to a media that you can boot from (Optical or
    Flash)
Boot from the live media - Choose Try Xubuntu
Select Install Xubuntu
When prompted, do as Zanna suggested in her comment and Choose the "Install Alongside" option.

Note: This approach will work with any flavor of Ubuntu - Simply substitute the flavour of your choice for Xubuntu.

Another option would be to add the XFCE dekstop environment to your current installation and choose desktop environments at login rather than dual-boot.


Triple monitors on hybrid video system GeForce+Intel

on my workstation i have a similar configuration, core-i7 (internal graphics) and external gtx. All Three outputs (2xgtx, 1xintel) seem to only work since 3.8-kernel, which comes with Ubuntu 13.04.
you should try the mainline-kernel from

  http://kernel.ubuntu.com/~kernel-ppa/mainline/

looking for other seetings then optimus in BIOS could also be worth a try.


Is there a way to force Perl to always use the latest version?

You can use the pragma when running perl like this:

perl -Mv5.14 my_script.pl

To use all features of the actual perl installed, this should work:

perl -M"feature ':all'" my_script.pl


"Unable to install Wine as download failed" in Ubuntu Software

It may be because the version in the Ubuntu Software Center is not suitable for your device or something else so I'm telling an alternative way you can install WINE on your system. Run the following commands:

sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
For 18.04 sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'

For 19.04 sudo apt-add-repository 'deb
https://dl.winehq.org/wine-builds/ubuntu/ disco main'

For 19.10 sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main'
sudo apt update
sudo apt install --install-recommends winehq-stable

Comment if you are facing any issues.


Synclient: monitor changes to the touchpad state with 1.7.1

It appears that the debugging facilities have been entirely removed from the synaptics package due to changes in the Xorg architecture. There are now separate tools you can use for debugging, such as xinput and evtest. xinput only works while X is running, and evtest only works when it's not (by talking directly to the device in /dev/input/)

Find your device id using:

xinput list

Then:

xinput -test ID


Why can I not install the latest version of gscan2pdf?

I was able to use gscan2pdf > 1.0 on Ubuntu 11.04 and without problem I use on current Ubuntu 12.04 from Jeffrey Ratcliffe PPA: https://launchpad.net/~jeffreyratcliffe/+archive/ppa


giving write permission to a user inside a protected area

Add the users you want this to be able to do to the same group. You can create a specific group for this task and then add each user to that group:
groupadd newgroup
usermod -a -G newgroup $USER

Create the directory you want in /usr/local/bin/, put your files in there and set it to that group, make it all executable:
sudo mkdir /usr/local/bin/newdirectory
sudo chgrp -R new

group directory
sudo chmod 770 /usr/local/bin/newdirecory/*
and the users in that group can execute the files. And if you ever get a new user add it to the group.
In case you want to package your toolset and provide a tar you can also opt for /opt/ (that directory is used to install third party software supplied through tar files).
Please leave /usr/bin as it is:

/usr/bin is the location for the OS supplied executables that are used by common users.  Ie, not typically core operating system required files, or root user accessed files, but can be.
/usr/local/bin is the location for all add-on executables that you add to the system to be used as common system files by all users but, are not official files supported by the OS.

The Filesystem Hierarchy Standard is used as a general method to put files in directories on Linux.


Somehow your package system got screwed. Apparently the file /etc/init.d/mysql has been lost in the progress. Add a dummy in order to aid the package system over the loss:

$ sudo -i
# cat > /etc/init.d/mysql << EOF
> #!/bin/true
> EOF
# chmod 755 /etc/init.d/mysql

... and then remove all mysql packages ...

# apt-get remove --purge mysql-server-5.5 mysql-server

That should also remove the dummy script. If not, delete it manually. After that you should be able to install mysql as normal again.


If you need to fix this as soon as possible, you might want to skip to the end ("Treat it as a Unity/Compiz problem."). But, as explained there, I recommend performing the other troubleshooting steps and possible solutions first.

Check if the correct kernel is running.

Check that you're actually running the latest version of the kernel by running the command:

uname -r

That will give you the version you are running now. If it's wrong, make sure the correct version is being selected in the GRUB menu (by shutting down and rebooting, and selecting it manually). If it's not available, make sure it's really installed.

You can use apt-cache policy X to check if X is installed and what versions of X are available.

You can list installed packages related to the linux kernel with:

dpkg -l | grep linux-

Working around the problem, until it is solved (so you can fix it):

To run commands and use the machine while working on fixing this problem, you can work around the problem by installing the gnome-session-fallback  package and selecting GNOME Classic or GNOME Classic (no effects) on the login screen.

If the current UI problem prevents you from installing that graphically or in a Terminal window, then you can switch to a virtual console to install it. To do that, press Ctrl+Alt+F1. Then log in and install it the same way you would in a Terminal window, by running:

sudo apt-get update && sudo apt-get install gnome-session-fallback

Alt+F7 brings you back to the GUI.

If your Ubuntu system is configured to log you in automatically, and you cannot access the Log Off option from the session indicator (which is part of the top panel), then you can log out by opening a Terminal window (Ctrl+Alt+T) and running the command:

gnome-session-quit --logout

If you can open a graphical Terminal window, then from the virtual console you can try running sudo restart lightdm, but that will probably just start a new automatic login for you. Therefore, it may be necessary (in the virtual console) to run cat /etc/lightdm/lightdm/conf to verify that automatic login is configured through lightdm.conf (it will look like this), then temporarily disable it by renaming the file so it is not used:

mv /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.old

Then running sudo restart lightdm should give you a login screen.

Check your video drivers.

Assuming you're running the latest version of the kernel, make sure you're running the right video drivers. If you installed your video drivers through Additional Drivers (or didn't manually install video drivers, or don't remember doing so), go there. In a GNOME Classic session, you should be able to find Additional Drivers in Applications > Preferences.

Or you can run Additional Drivers manually:

In Ubuntu 12.04 and earlier, run the command gksu jockey-gtk from a GUI Terminal window (Ctrl+Alt+F2), or from the Run... text box (Alt+F2).
In Ubuntu 12.10 and later, open Software Sources (gksu software-properties-gtk) and go to the Additional Drivers tab.

(In both cases, I only recommend running the command with gksu in your particular situation, in case the window management problems you're experiencing get in the way of authenticating with PolicyKit. Ordinarily, you can just run jockey-gtk or software-properties-gtk, then when you want to make a change that requires administrative power, you're automatically prompted for your password. PolicyKit spawns an ordinary window for authentication, whereas running gksu manually should produce a full-screen, foreground dialog box that displays reasonably correctly even when the window manager is not working properly.)

If you installed your video drivers in some other way, you may need to do it again, to reinstall them.

This may have the effect of reinstalling them, or of reconfiguring them so they work again.

Treat it as a Unity/Compiz problem.

If none of the above helps--and there's a substantial likelihood that it will not--then the problem is mostly likely in Compiz, and you can fix it with the solutions given for this related problem:

Unity doesn't load, no Launcher, no Dash appears

I understand that problem is different from what you're experiencing, in that you are able to get windows to appear (they just don't have their borders, which include their title bars). However, Compiz is what provides those borders and title bars, as well as what provides Unity with the ability to show its user interface elements. (Unity is a Nux plugin, so it uses Compiz to display everything, not just discrete window borders.)

If you like, you might try this first. But I recommend doing the above troubleshooting first, because if you skip to this, you might fix the symptom while leaving the underlying cause unaddressed. (For example, if your video drivers are not working properly, that can cause problems with Compiz, but might cause future performance or stability problems even after this specific Compiz-related problem is solved.)


Boot device not found after partitioning with AOMEI partition assistant on a dual boot system

Can you open Nautilus? If so, can you see the Windows 10 drives on the "Other Locations" tab? If you can see those drives, be sure to backup all your important data from those drives before you try something risky.

Also, if you have a Windows 10 boot disk, try the 'Repair' option and see if that helps.

VERY UNLIKELY, but make sure you are booting Windows 10 and NOT Ubuntu.  You might be trying to boot Ubuntu and be met with 'Boot Device Not Found' as the Ubuntu partition is formatted.


There's two excellent answers to hibernation questions with a bit more detail here:
Little Ancient Forest Kami's answer to : Ubuntu 18.04 can't resume after hibernate
Zanna's answer to : How can I hibernate on Ubuntu 16.04?
I don't normally use Hibernate but was attempting to use it recently whilst chasing down a bug and realised that in order to work on 18.04 you need to add a line to /etc/default/grub to tell it where to resume from.
On 16.04 it wasn't necessary for me to add the 'resume=' parameter to grub, so I think the change has happened relatively recently.
You're probably best to use the UUID (Universally Unique Identifier) and can use the 'Disks' program to find out the UUID of your swap partition and just copy and paste it from there.
Use sudo nano /etc/default/grub to add to the line
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

so that it has the extra kernel parameter resume=UUID=theUUIDofyourswappartition in between the quotes.
Yours will be different, but in my case the line is:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=549816d3-0ed8-44fa-a7e4-968db519a141"

(exit nano using Ctrl+x, press y to make the changes and enter to accept the filename)
You need to run sudo update-grub to make your changes effective, but when you next reboot you should be able to hibernate without problems.
As far as I'm aware, the functionality of hibernate is to resume to where you left off, so is not designed to go to the login screen and ask for your password.
I don't know if you can change it so that it will ask for your password, but it might be worth asking a separate question to see if someone else knows what to do.

Swapfile
If you have a swapfile instead of a separate swap partition then you also need to add the extra resume_offset= parameter.
The Arch Linux Wiki has a great section on this but basically your swap file should be on the main partition that you have Ubuntu installed on.
In order to find out the offset to put in resume_offset= you can open a terminal and type
sudo filefrag -v /swapfile

you'll get something that looks like this:
ext:     logical_offset:        physical_offset: length:   expected: flags:
   0:        0..   32767:      34816..     67583:  32768:
   1:    32768..   63487:      67584..     98303:  30720:
   2:    63488..   96255:     100352..    133119:  32768:      98304:
   3:    96256..  126975:     133120..    163839:  30720:
etc...

and you want the first number, in the first line that's under physical_offset (in this case 34816)
So just as an example, using the UUID and physical offset of my machine with a Swapfile, I've changed the GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" line to be
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=09e601cd-5bac-491a-9115-fda1b2eb4664 resume_offset=34816"

Don't forget to run sudo update-grub and reboot, but after that hibernate should work correctly.


freezing means you cant do anything in the desktop even a mouse pointer movement.
this link may help you in such cases.


How to upload sqlite3 database to webserver?

From your other question I see that you use tuptime.

To keep the DB synchronized you would need to copy it to your webserver every time it is locally updated. This assumes that your local computer is the only process that updates the DB and no other computer synchronizes with the webserver. You can store the DB under a different name on the webserver for each local computer if you need that.

The DB gets updated during startup and shutdown and regularly by a cronjob or a systemd timer. You need to amend all these jobs so that the file is copied to the webserver after every update.

For the shutdown event this might be a bit tricky because the network might already be down when the tuptime update process is triggered so you cannot copy the file to the server any more.

Once the file is copied to the webserver you can (and need to) write a web application that reads the content of the DB, prefereably with parameters set by the web user, and then display the results in a table or something.

The file can be copied with e.g. scp, i.e.:

scp /var/lib/tuptime/tuptime.db user@webserver:/var/lib/tuptime/tuptime-$HOSTNAME.db

To make this run unattended you need to append your local public ssh key (usually ~/.ssh/id_rsa.pub) to the ~user/.ssh/authorized_keys file on the webserver.

Given the above points you can see that it is not as simple as issuing one single command.


HP Pavilion DV4 Ubuntu 18.04 airplane mode enabled WIFI and Bluetooth not working

After a long read and research, I discovered the issue is with acpi=off as a kernel boot parameter.

Edit your kernel boot parameter with:

sudo nano /etc/default/grub

Look for the line with GRUB_CMDLINE_LINUX_DEFAULT="quite splash acpi=off"
<--parameters may defer based on your system - ->

Within the " " (quotes), replace acpi=off or any other acpi parameters with acpi_osi=!.
e.g.:
GRUB_CMDLINE_LINUX_DEFAULT="quite splash acpi_osi=!"

Press Ctrl+O to Save and Confirm Change

Press Ctrl+X to return to terminal

Update grub with :

sudo update-grub

Reboot your machine.

Everything should be working fine. :)


Well, I managed to solve my problem:

before upgrading, I just deleted the files which the updater couldn't backup.

/boot/System.map-4.18.0-17-generic
/boot/vmlinuz-4.18.0-17-generic

even though it didn't feel right to delete files from the boot folder.
But anyways; it worked.


Remove evolution-calendar-factory from startup

If you want to remove evolution-data-server, it will remove these at least (tested in 16.04)
The following packages will be REMOVED:
  evolution-data-server gdm3 gnome-contacts gnome-shell libfolks-eds25
0 upgraded, 0 newly installed, 5 to remove and 378 not upgraded.
After this operation, 15.8 MB disk space will be freed.

So, the better treatment is a bit nasty, but it works!
Nasty Hack!
Rename Evolution binary folder, so that it won't be found! What works for me is these
sudo mv /usr/lib/evolution-data-server /usr/lib/evolution-data-server-disabled
sudo mv /usr/lib/evolution /usr/lib/evolution-disabled

That's it! Now, I can at least use the system.
Notes: If you disable evolution this way, you won't be able to use calender syncs or other fancy (useless for me) stuff.

Less dirty hack (update)
Looks like more and more people are unsatisfied with evolution lately. But in my current setup, I don't rename the folder. Instead I just remove the executable bit and it works.
For disabling calendar process, I used
sudo chmod -x /usr/lib/evolution/evolution-calendar-factory

The good thing with this method is other evolution service can still work (they start and runs)
Repeat the same process for evolution-source-registry and evolution-addressbook-factory if you want to shut them up too!


stress is a command line tool that forces an amount of CPU, memor or disk stress on the system. This is done to report errors and give developers an idea of how their system could scale. With that in mind and knowing this is NOT a benchmark tool, the correct stress level depends on your hardware.

On your case -c 2 & -m 2 is enough for the CPU you are using. I normally don't like stressing the hard drive with the -d option since it takes away life from it (Leech king style). you could however add the -i option for the I/O and lower the -t paremeter to 10 to 20 seconds.


Delete a list of directories stored in a file

start with

xargs -I{} echo rm -fr /home/directory/{} </home/list/list.txt

which just echo's the command to do, and if ok remove the echo.


Smart way to turn wifi on/off with netplan if ethernet is available or not?

The tool for triggering additional actions on a network change if using networkd is networkd-dispatcher.


How to change a drive's permissions if it's owned by root?

however that involves logging out

It doesn't necessarily involve a logout. You can create a nested terminal session as the root user that you create (or any other user, for that).

su - username

Will log you in as username. In fact, to login as root, you don't need to specify the username:

su -

Hope that helps.


Teamviewer - Cannot install libc6:i386 error

Are you on Ubuntu 64 bits or 32 bits ?
Have you downloaded Teamviewer 64 bits or 32 bits ?

In my case, when I was under Ubuntu 14.04 64 bits, I remember that I had  to use TeamViewer 32 bit for making it working.


Strange window focus behavior with Ubuntu 15.10 and Gnome

I believe I have a similar issue with Unity on Ubuntu 15.10. I found that running the unity-tweak-tool and setting auto raise to on and focus mode to "mouse" gets me the behavior I want. I suspect you can skip the auto raise if you don't like it, but the focus set at "click" is what seems to be causing the issue for me and "mouse" works as I'd expect.


Ubuntu-2d is not used anymore. Here how to do that using xfce  session.

first Install xrdp:

sudo apt-get install xrdp

Install XFCE4 or any other supported:

sudo apt-get install xfce4

Edit our .xsession file in your home:

echo xfce4-session >~/.xsession

Edit  startwm.sh file:

sudo gedit /etc/xrdp/startwm.sh

In the wm_start() Add the line startxfce4 just directly under:

 if [ -r /etc/default/locale ]; then
    . /etc/default/locale
    export LANG LANGUAGE
  fi

so the function looks like:

wm_start()
{
  if [ -r /etc/default/locale ]; then
    . /etc/default/locale
    export LANG LANGUAGE
  fi

startxfce4

  # debian
  if [ -r /etc/X11/Xsession ]; then
    . /etc/X11/Xsession
    exit 0
  fi
.....

}

Now save and exit then restart xrdp.

sudo service xrdp restart

Now you can connect normally to your Ubuntu using xfce for remote sessions.


In that case i would try to unload all memory by removing the battery and power supply for some time.
Sometimes a bad programmed ACPI is producing such bad results. You have to make sure, that the PC is "forgetting" everything.


Use Brasero Disc Burner:

Or via the terminal, run the following command.

sudo apt-get install brasero

To copy a disc to an ISO image, click on Disc copy, then choose Image File as the destination.


VirtualBox VM w/ Ubuntu 14.04 LTS Resolution Problems (already installed virtualbox-guest-dkms)

Try to get the virtualbox-guest-additions-iso then mount and install it on the guest OS using the option provided on Virtualbox.


I'm not sure if this will do much but they talk about doing upgrade by using command prompt but to version 12.04. Here is a link, and I will look for few more links that might be useful.

Here, first source and also second source.

I hope this will help you.


The same thing happened to me after installing virtual box. Somehow virtual box installation process sometimes uninstalls unity - the default launcher on ubuntu . To fix it, press Ctrl + Alt + F1 to enter the tty command shell and enter your username and password to login. Then type:

sudo apt-get install unity

Then type

sudo reboot

to restart your commander. Probably everything should work fine when you restart.


I accidentally deleted boot option while trying to change boot order?

To install ubuntu download the latest version.  You should choose the 64 bit version for computers of today.  I don't know if they still make 32-bit computers.  If you have one it would be pretty old, probably more than 15 years old.

You might consider the LTS version which is supported for 5 years.  Currently the latest LTS is version 14.04.  The other versions that are not LTS are supported for 1 year.

Burn the downloaded ISO file and boot to it.  Follow the prompts for installation.  If you have data on the drive that you want to preserve (such as a Windows installation), use the option to do something else.  Pick a partition that isn't your Windows partition and install to that partition.

Once installed, the install process will provide the grub boot manager which will discover all your other Linux and Windows installed on that drive as well as any other drives that are attached to the computer and provide a boot menu to select which OS you want to load at boot.  It will default with a 10 second timeout to the latest Ubuntu installation.

Ensuring an installation partition

If you don't have a partition available for your fresh Ubuntu install you can create one.  When you boot to the DVD, choose the option to try Ubuntu.  Run gparted  (the partition editor) to create a new partition.  This application also has an option to change the size (shrink) a partition to make space for a new partition.

Make sure you have sufficient space to create a new partition for your Ubuntu installation.  Then click on the open (on the desktop) to install Ubuntu.  Select the newly created partition for your install drive.


assert failed in Install Ubuntu Touch for tablet Nexus 7(32G)

By manually installing I assume you used recoverymode? That is the correct file for your device. I recommend you check the md5 sum or try re-downloading it. the image would not be in the current directory if it would not install because it would not have passed automated testing.


How to zip contents recursively under the directory foo/*.*?

It is because you tell it to do that ;-)

I would do something like this:

cd /tmp && zip -r /tmp/bar.zip ./foo/* >/dev/null 2>&1


I got the same question, and I tried the jq thing above but it did not work for me.
Then I found that just purge/reinstall snapd package can fix this issue in my testing.

$ sudo apt purge snapd
$ sudo apt install snapd


i3lock, display same image in a configuration dual monitor?

In order to use a single monitor instead of the center of both, you need to set up SDL_VIDEO_FULLSCREEN_HEAD.  Depending on how you're loading i3, you can do this by specifying in ~/.xinitrc \ .xsessionrc, or for i3lock when it is run by i3:

export SDL_VIDEO_FULLSCREEN_HEAD=0  # First monitor

0 is the number of the monitor, starting with zero.  For a dual monitor setup, you can choose between 0 and 1.  Typically, 0 will be the monitor you see BIOS POST and the initial Linux console.

i3lock only

The most simple way to achieve this would be to set this variable for i3lock, so by editing your ~/.config/i3/config:

...
exec --no-startup-id i3lock ...

...
exec --no-startup-id SDL_VIDEO_FULLSCREEN_HEAD=0 i3lock ...

All programs in i3

To do this for all applications for your user within i3, you would add this line to ~/.xinitrc \ .xsessionrc itself.

Once this variable is defined when your window manager starts, full screen applications will all display on this one screen, and not split over both.  You may be able to test this in a single terminal by exporting the variable and launching i3lock, but you must make the change as described earlier and restart i3 for it to work for everything properly.

One issue you may find is that ~/.xinitrc \ .xsessionrc are not being brought in by i3.  One recommendation is to instead add these configurations to ~/.profile:

if [ "$0" = "/usr/sbin/lightdm-session" -a "$DESKTOP_SESSION" = "i3" ]; then
    # Do stuff
fi

Personally, I have abandoned both GDM and LightDM and instead login to the console/tty, and startx, similar to the above suggestion, using Xsession configured with i3 as the default, which causes proper initialization of ~/.xinitrc:

#
# ~/.bash_profile
#
[ -e ~/.profile ] && source ~/.profile
[ -e ~/.bashrc ] && source ~/.bashrc

if [ $XDG_VTNR -le 2 ] && [ $TERM != "screen-256color"  ]; then
    startx /etc/X11/Xsession -- :1 -nolisten tcp
fi

Desktop Background/Wallpaper

To set up a wallpaper, which is likely different than i3lock, you can use feh.  feh will set up both monitors the same (by default):

feh --bg-center /path/to/desktop.png --image-bg '#f1fa8c'

Or, in your ~/.config/i3/config:

exec_always --no-startup-id sleep 5 ; feh --bg-center /path/to/desktop.png --image-bg '#f1fa8c'

Alternatively, you can set up xscreensaver, which handles dual screen monitors great, by displaying the screen saver on both, and putting the login prompt in the center of a single monitor.


You can input the symbols

on the bottom right by using right alt
on the top right by using right alt along with shift.


If you have errors (you have above 18 million in the screenshot) your RAM is bad. Your RAM is likely to be good when the first pass finished without errors e.g. there is nothing red on the screen except the plus sign of the Memtest logo.


Ubuntu wont make it to login screen after switching to gdm

Are you trying to use the Gnome Desktop Environment? If not you might just try switching back from gdm to lightdm and see if it at the very least gets your system back to a usable state.


Yes, it is very much possible.

Just download the latest Ubuntu Image and create a Live DVD.

Now, boot from your DVD and select the Try Ubuntu Option.

You can find more details in the Ubuntu site.


How to install the (latest version of) Nemo in Ubuntu 18.04 without cinnamon dependencies?

Doug provided a PPA for install the Nemo in Ubuntu 18.04 (only) without cinnamon dependencies (see his comment).
For newer Ubuntu versions: A unity session using Nemo in 20.04 can be set up to work reasonably well, especially if you use a modified nemo.desktop in the launcher (see Doug's comment).
He recommends to purge the installed nemo files before installing the new version. I did the following:
sudo apt purge cinnamon-desktop-data cinnamon-l10n gist hddtemp hwdata inxi libcinnamon-desktop4 libnemo-extension1 libxapp1 mesa-utils nemo nemo-data nemo-fileroller ruby-json xapps-common

Then added the PPA:
sudo add-apt-repository ppa:mc3man/bionic-noprop
sudo apt-get update

Then install Nemo:
sudo apt-get install nemo nemo-fileroller

To make Nemo the default file manager:
xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search

To handle the desktop just disable nautilus:
gsettings set org.gnome.desktop.background show-desktop-icons false

Reboot or log out
Thank you, Doug, for this great option.


accidentally use lvm during installation of 13.10

I did exactly the same thing. I recovered my data by installing and using TestDisk. Instructions on how to use it are here:
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

But there really should be a warning next to the LVM checkbox at install!


It is planned to get Compiz 0.9.4 and Unity work together for Alpha 1 (which is a month away), so I'm pretty sure we will be able to test Unity at least via a PPA by then.


apt-get install -y mono-complete goes into sleep for hrs on ubuntu 15.10

Have you tried to see if there are any broken dependancies ? Type the following command

sudo apt-get update && sudo apt-get upgrade

sudo apt-get install -f

then

sudo apt-get install mono-complete

Alternatively, if you are still experiencing the issue, try using the aptitude or dpkg package installation methods.

Last, but, lengthy, option is that you can download the package manually from the source file of mono-complete or by using apt-get install -d mono-complete.

This will download the .deb file under /var/cache/apt/archives along with the other required debian packages which you can install by using

`sudo dpkg -i package-name`

But please note that the installation might error out if you don't install the required dependencies in the system first.


how to modify fstab for windows ntfs drive, and removing RAID

No: you either specify the device name (/dev/sdb1) or the UUID.  You can't specify both.  And don't add the locale column either -- fstab is a fixed-format file that requires exactly six whitespace-separated fields on each line.

I think it ought to be sufficient to replace linux_raid_member with auto on both lines:

/dev/sdb1 /media/sdb1/ auto defaults 0 0
/dev/sdc1 /media/sdc1/ auto defaults 0 0

Also, make sure /media/sdb1 and /media/sdc1 directories exist, then try mounting with

sudo mount -a

If it works, it should work on next boot.


You may try to install gevent using the following command

sudo apt-get install python-gevent python-gevent-websocket

It will install python-gevent and python-gevent-websocket packages with dependencies python-gevent-dbg and documentation python-gevent-doc.


Global shortcut to switch to instance of application without selecting window

The Super+0/ ... /9 combination actually triggers the action set for mouse click on application icons in Ubuntu dock. In your case it's set to 'window previews' and so the key combination shows window previews.

If you set another action for mouse click you would see a different behaviour. For example, if you run the following command in Terminal it would just raise the window closest to the foreground as you wish:

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'skip'

(Note that as mentioned above it would also change the behaviour on mouse click on application icons.)

As mentioned by @vanadium in comments below, another alternative is to use the cycle-windows option. This option also raises the first window on click (or pressing the hotkey), but if you repeat the click (or the hotkey), other windows of the same app are consecutively raised. To set this option, run

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'cycle-windows'


How to fix "Disk drive for /boot/efi is not ready or not present"?

My suspicion is that your firmware upgrade changed the rules for whether the computer tries to boot in BIOS mode vs. EFI mode, and that your installation was such that the computer has now switched from EFI mode to BIOS mode. I'm not 100% positive of this, though; more information is required. Please post back with the output of the following commands:

sudo parted /dev/sda print
ls /sys/firmware/efi
grep efi /etc/fstab
blkid /dev/sda1

The combination of those commands' output will probably tell me what I need to know to give you a better solution. Please be sure to format them as code by indenting every line by four characters; that will help keep them legible.


Video playback works only as root using a Nvidia card

Removing nvidia proprietary drivers and using nouveau. Also I had to purge all packages of nvidia proprietary drivers otherwise I was getting wrong resolution on the display.


Ubuntu 17.10 disable background application blurring effects

This is not an issue with Ubuntu 17.10, instead is related to the theme "United-Ubuntu" you're using. Change the the to default or any other theme, which doesn't have this feature or bug.

For example, you can use default "Ambiance" theme.

Here is a screenshot of my current Minwaita-OSX theme. You can see that there is no blurring


So at that point I just had to press ctrl + x, I didn't know that, but an user pointed out this guide for me and that was it.

Thank you.


All gamepads/joysticks (5 or so) I have tried so far did work. For configuration install qjoypad or jstest-gtk. Qjoypad worked better if I remember correctly.


There is in fact a driver, for 12.04 and 13.04 and 13.10 and 14.04:

First, we wanna install a PPA:

12.04 and older until 10.04:
sudo apt-add-repository ppa:ubuntu-x-swat/x-updates

12.10 and up:
sudo apt-add-repository ppa:xorg-edgers/ppa

Now, update!:

sudo apt-get upgrade

And your little drivers:

sudo apt-get install nvidia-current nvidia-settings

Source

And the list of supported graphics cards (see in the Source) (warning: wall of text coming) is:

GeForce 600 series:
GTX 690, GTX 680, GTX 670, GTX 660 Ti, GTX 660, GTX 650, GT 645, GT 640, GT 630, GT 620, GT 610, 605
GeForce 600M series:
GTX 680M, GTX 675MX, GTX 675M, GTX 670MX, GTX 670M, GTX 660M, GT 650M, GT 645M, GT 640M LE, GT 640M, GT 635M, GT 630M, GT 620M, G610M
GeForce 500 series:
GTX 590, GTX 580, GTX 570, GTX 560 Ti, GTX 560 SE, GTX 560, GTX 555, GTX 550 Ti, GT 545, GT 530, GT 520, 510
GeForce 500M series:
GTX 580M, GTX 570M, GTX 560M, GT 555M, GT 550M, GT 540M, GT 525M, GT 520MX, GT 520M
GeForce 400 series:
GTX 480, GTX 470, GTX 465, GTX 460 v2, GTX 460 SE v2, GTX 460 SE, GTX 460, GTS 450, GT 440, GT 430, GT 420, GT 415, 405
GeForce 400M series:
GTX 485M, GTX 480M, GTX 470M, GTX 460M, GT 445M, GT 435M, GT 425M, GT 420M, GT 415M, 410M
GeForce 300 series:
GT 340, GT 330, GT 320, 315, 310
GeForce 300M series:
GTS 360M, GTS 350M, GT 335M, GT 330M, GT 325M, GT 320M, 320M, 315M, 310M, 305M
GeForce 200 series:
GTX 295, GTX 285, GTX 280, GTX 275, GTX 260, GTS 250, GTS 240, GT 240, GT 230, GT 220, G210, 210, 205
GeForce 200M series:
GTX 285M, GTX 280M, GTX 260M, GTS 260M, GTS 250M, GT 240M, GT 230M, GT 220M, G210M
GeForce 100 series:
GT 140, GT 130, GT 120, G 100
GeForce 100M series:
GTS 160M, GTS 150M, GT 130M, GT 120M, G 110M, G 105M, G 103M, G 102M
GeForce 9 series:
9800 GX2, 9800 GTX+, 9800 GTX/GTX+, 9800 GT, 9650 S, 9600 GT, 9600 GSO 512, 9600 GSO, 9600 GS, 9500 GT, 9500 GS, 9400 GT, 9400, 9300 SE, 9300 GS, 9300 GE, 9300 / nForce 730i, 9300, 9200, 9100
GeForce 9M series:
9800M GTX, 9800M GTS, 9800M GT, 9800M GS, 9700M GTS, 9700M GT, 9650M GT, 9650M GS, 9600M GT, 9600M GS, 9500M GS, 9500M G, 9400M G, 9400M, 9300M GS, 9300M G, 9200M GS, 9100M G
GeForce 8 series:
8800 Ultra, 8800 GTX, 8800 GTS 512, 8800 GTS, 8800 GT, 8800 GS, 8600 GTS, 8600 GS, 8500 GT, 8400 SE, 8400 GS, 8400, 8300 GS, 8300, 8200, 8100 / nForce 720a
GeForce 8M series:
8800M GTX, 8800M GTS, 8700M GT, 8600M GT, 8600M GS, 8400M GT, 8400M GS, 8400M G, 8200M G
GeForce 7 series:
7950 GX2, 7950 GT, 7900 GTX, 7900 GT/GTO, 7900 GS, 7800 SLI, 7800 GTX, 7800 GT, 7800 GS, 7650 GS, 7600 LE, 7600 GT, 7600 GS, 7500 LE, 7350 LE, 7300 SE / 7200 GS, 7300 LE, 7300 GT, 7300 GS, 7150M /NVIDIA nForce 630M, 7150 / NVIDIA nForce 630i, 7100 GS, 7100 / NVIDIA nForce 630i, 7050 PV / NVIDIA nForce 630a, 7050 / NVIDIA nForce 630i, 7050 / nForce 620i, 7025 / NVIDIA nForce 630a, 7000M /NVIDIA nForce 610M
GeForce Go 7 series:
Go 7950 GTX, Go 7900 GS, Go 7800 GTX, Go 7800, Go 7700, Go 7600 GT, Go 7600, Go 7400, Go 7300, Go 7200
GeForce 6 series:
6800 XT, 6800 XE, 6800 Ultra, 6800 LE, 6800 GT, 6800 GS, 6800, 6700 XL, 6610 XL, 6600 VE, 6600 LE, 6600 GT, 6600, 6500, 6250, 6200 TurboCache, 6200SE TurboCache, 6200 LE, 6200 A-LE, 6200, 6150SE nForce 430, 6150 LE, 6150, 6100 nForce 420, 6100 nForce 405, 6100 nForce 400, 6100
NVS Series:
NVS 510, NVS 310, NVS 300
Quadro series:
K5000, 7000, 6000, 600, 5000, 410, 4000, 400, 2000D, 2000
Quadro FX series:
FX Go1400, FX 5800, FX 580, FX 570, FX 5600, FX 560, FX 5500, FX 550, FX 540, FX 4800, FX 4700 X2, FX 4600, FX 4500 X2, FX 4500, FX 4000, FX 380 LP, FX 3800, FX 380, FX 370 Low Profile, FX 3700, FX 370, FX 3500, FX 350, FX 3450/4000 SDI, FX 3400/4400, FX 1800, FX 1700, FX 1500, FX 1400, CX
Quadro Notebook series:
K5000M, K4000M, K3000M, K2000M, K1000M, 5010M, 5000M, 4000M, 3000M, 2000M, 1000M
Quadro FX Notebook series:
FX 880M, FX 770M, FX 570M, FX 560M, FX 540M, FX 380M, FX 3800M, FX 370M, FX 3700M, FX 360M, FX 3600M, FX 350M, FX 2800M, FX 2700M, FX 2500M, FX 1800M, FX 1700M, FX 1600M, FX 1500M
Quadro NVS series:
NVS 450, NVS 440, NVS 420, NVS 295, NVS 290, NVS 285, NVS 210S / 6150LE
Quadro NVS Notebook series:
NVS 5400M, NVS 5200M, NVS 510M, NVS 4200M, NVS 320M, NVS 160M, NVS 150M, NVS 140M, NVS 135M, NVS 130M, NVS 120M, NVS 110M
Quadro Plex series:
Model IV, Model II, D Series, 7000
Quadro G-Sync series:
G-Sync II
Quadro SDI series:
Quadro SDI
ION series:
ION LE, ION
C-Class Processors:
Tesla C870, Tesla C2075, Tesla C2070, Tesla C2050, Tesla C1060, T10 Processor
M-Class Processors:
Tesla M2090, Tesla M2075, Tesla M2070-Q, Tesla M2070, Tesla M2050, Tesla M1060
X-Class Processors:
Tesla X2090
K-Series Processors:
Tesla K10


How do I deal with the "input signal out of range" problem while installing Ubuntu?

I figured it out finally by installing the ubuntu with the video card on my motherboard (In other word, connect your screen to any video card that could at least allow you to install the system first, then switch back after you've set up). Once you have installed the system, go downloading the right version of NVIDIA driver, then you can install the driver and switch back to GTX1070 while you reboot. Hope that helps.


With an Ubuntu live USB, does the flash stick get written to?

https://help.ubuntu.com/community/LiveCD/Persistence

From the first line, it seems that the Live CD/USB is read only unless you add persistent file storage. That link should show you how to do so.


Using Gparted to Completely Clear A Drive

If you want to have a really blank disk just do

dd if=/dev/zero of=$YOUR_DEV bs=1M

Under normal conditions this is not necessary but it may be necessary to swipe out the beginning and the end of the disk, because there may be data of a secondary GPT at the end of the disk.

So what I do to clean a disk is:

YOUR_DEV=/dev/sdX
dd if=/dev/zero of=$YOUR_DEV bs=512 count=100
dd if=/dev/zero of=$YOUR_DEV bs=512 seek=$(( $(blockdev --getsz $YOUR_DEV) - 100 )) count=100

Now, no OS installer of my knowledge finds any old partitions nor any old installed OS and will setup the disk right correct to the BIOS- and OS-settings (MBR or GPT).


Is there any difference between apache2 and httpd?

httpd is the same as apache2. It depends on the OS you use. For example in RHEL 6.2 it is called httpd and in Ubuntu it is called apache2.


left-over grub/ubuntu after partition removal in windows 10

In the BIOS Setup, boot from USB had to be added. This is done by restarting the machine with the USB installed, pressing F12 (at least on the Dell I have) to get into the boot menu, and then going into the BIOS Setup to add the boot from USB as an option


cannot start nemo if udisks2 is disabled

As stated in the comments above, the solution for my problem was to disable the automatic mounting my nemo itself. Therefore open nemo, go to "Edit -> Preferences -> Behavior" and disable the option "Automatically mount revmovable media when inserted and on startup". Then external disks are not mounted anymore automatically; and there is no need to disable the udisks2 service to prevent this automatic mounting.


How to remap CapsLock to Ctrl in Xubuntu 12.04?

Add the setxkbmap option in XKBOPTIONS in /etc/default/keyboard. That file is also  when you run sudo dpkg-reconfigure keyboard-configuration, however running that command does not interactively let you choose to swap Caps Lock and Ctrl, so you will need to edit the file by hand.


Wifi Default Gateway changes automatically after a few seconds

I had the same (or very similar) problem. After lots of search, it turned out to be a DHCP daemon running on the same system. You can check if the output of ps -ef | grep -i dhcp mentions just /sbin/dhclient (that's ok) or also /sbin/dhcpcd (that shouldn't be running). If so, you can stop it with sudo systemctl status dhcpcd and disable it with sudo systemctl disable dhcpcd.
As for how/why was the daemon running, in my case it was most likely due to an old pi-hole installation that wasn't completely uninstalled.


How to play full screen video on second monitor?

If you use Totem (the default video player) or possibly others you can set the video window to be "Always on top". Right click on the title bar and select it:

I have not actually tried this in Unity, however as noted in my comment, this is a compiz thing, and I am using compiz with gnome-panel which does exactly the same thing.

Also note this might not work in all players if they open a new window when going fullscreen. I think VLC does that so may not work. I'm not sure about mplayer.


Which font is needed to display a specific Unicode character?

The website you have visited chose a font for that text to be rendered in, or accepted your browser's defaults. Your browser displays it in the selected font. It doesn't pick and choose to find fonts that have that character listed.

You need to choose a font that has Kannada symbols and display your text in that. This might require instructing your browser not to honor websites' font choices.

Unfortunately, I'm not sure what fonts are available that cover Kannada.


Can't run Anaconda installer on Linux terminal

Run the installer bash Anaconda2-2.4.0 -Linux-x86_64.sh

Make sure you are using the correct version. There is a 32-bit version and a 64-bit version.

Welcome to Anaconda3 2.4.0 (by Continuum Analytics, Inc.)

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>

Press Enter
Read the license (or not) and press Q

Do you approve the license terms? [yes|no]
[no] >>>

Type yes to accept the license and press Enter

Anaconda3 will now be installed into this location:
/home/aboettger/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/home/aboettger/anaconda3] >>>

Press Enter again to start the installation


Will turning of swap on a system with slow HDD enhance performance?

You can play with your machine's swappiness setting and configure a lower value like 10 instead of the default 60. See How do I configure swappiness? for how to change it.

The swappiness determines the balance between avoiding swap and preferring to keep free memory for caches and stuff. Lower values mean less/later swap usage.

I would not completely disable swap though, because if you then run out of memory, even just a tiny bit and very briefly, the OOM-Killer (Out Of Memory) will kick in and start randomly terminating processes until enough RAM is available again. You normally want at least a little buffer there. Doesn't have to be 8GB, maybe just 2GB, but nothing isn't the best option usually.


Apache2 silently does not start with mod_ssl enabled after upgrade to 10.04

If you have an encrypted server certificate, its possible that this is your problem:

https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/582963


"Cannot connect to the Docker daemon" problem in Docker Ubuntu Container

Inside you Ubuntu:xenial container perform the following. [assuming you will be using the root user inside the container]

apt-get update

apt-get install apt-transport-https ca-certificates

apt-key adv \
               --keyserver hkp://ha.pool.sks-keyservers.net:80 \
               --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

echo "<REPO>" | sudo tee /etc/apt/sources.list.d/docker.list

In place of  repo add the deb https://apt.dockerproject.org/repo ubuntu-xenial main

apt-get update

apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual

apt-get install docker-engine

The above steps should install docker inside your container.

Please refer to this link


are installed applications for all users or only for the account who installed them?

Programs installed from the Software Center should be installed globally(system wide) and will be available to all users.  Each user will have their own file in their account to save there preferences and data except any user logged in as a guest as their data is deleted on logging out.

I would think that most(if not all) programs that need root privileges to install would also be usable by any user.

.sh and .bin files that install without root will only be available by the user that installed it unless the folder that it is installed in is made available to all users via the sharing options via the mouse right click or the command line chmod.  This is because progrmas that install without root only install into the home directory of the user that installed them.

To answer the part of your question about Wine, if it is installed via the Software Center or apt-get is will be available to all users.  This is true even if you download a current deb file from winehq.org.  If yo download the tar file from the sourceforge.net/ page it will (likely) only be installed locally and only available to one user.


Reboot always redirects to initramfs shell

The initramfs shell is a very low level system, basically a ramdisk with very low level kernel functions, it is NOT loading your drives so whatever ls shows you is not indicative of what is on your hardrives

You need to tell linux what driver to use for your RAID controller in order to install properly, RAID contollers are very unstandardized with often no overlap in functionality or drivers between manufacturers, just picking randomly is not an optimum strategy because it will probably break something.

A quick google search tells me you will most likely need to select the MegaRAID driver from the list for this card (it supports all Dell PERC 4 cards). You will need to reinstall.


This is because Google Chrome isn't there in official repository of Ubuntu. To install Chrome, download the file from chrome.google.com and to install it,

GUI: Right click on downloaded file and open with software centre and then click on install.

CLI: Open terminal in the directory and use sudo dpkg -i filename where filename is the name of .deb file downloaded.


Clone from GitHub.com “Temporary failure in name resolution” error

To check resolution on ubuntu, run:
$ sudo resolvectl query github.com
github.com: 140.82.114.3                       -- link: wlp2s0

-- Information acquired via protocol DNS in 1.3ms.
-- Data is authenticated: no

To update it (for example, to google's dns server), take the link name from the previous command (or check ifconfig) and then substitute it for mine, wlp2s0, in the following command:
$ sudo resolvectl dns wlp2s0 8.8.8.8


Can I take text which is in a csv and make it the name of the csv file

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

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

The script:

#!/bin/bash

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

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

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

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

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

Script Summary

Variables and commands of the script:

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


After upgrade from 15.04 to 15.10, login takes very long

I found the solution - empty trash. I checked the trash and saw that it has millions of files and takes 44G disk space. I empty my trash, and problem has gone. So the real problem why ubuntu took so long to login was full trash of small files and it took some time to check them.


Installing Ubuntu on my new Laptop for Dual Boot alongside Win 10

No you don't need to disable secure boot. Just make sure to boot your Ubuntu installation media in EFI mode. Then set mount points for the root, home and swap.

Keep /dev/sda for the bootloader installation as it is. Ubuntu installer (grub btw) is smart enough to detect your EFI, and non-Linux partitions.

Your swap space is too large though.


Computer crashed aconnect now lists Timidity service that isn't active on port 128:0

I was able to fix this by uninstalling Timidity and Freepats.


Disabling Network-Manager-Gnome wireless scanning when connected

killall -STOP NetworkManager

works for me in ubuntu 10.04


Bumblebee installation problems for Nvidia GTX 970M

I had the same problem. It seems you have to replace all hyphens with underscores in KernelDriver=nvidia-346-updates in /etc/bumblebee/bumblebee.conf. So it should be KernelDriver=nvidia_346_updates


Need help installing FinchTv from a package

On 14.04 (64 bits) it works out of the box, nothing to build really.

Just extract the following archive, open a terminal and type ./finchtv


ubuntu dual boot on mac goes to black screen

I figured it out, its not a long term patch but it gets you there. It has something to do with the graphic card in the Mac desktop and the linux trying to run differently. So I installed kali-linux-2.0-amd64.iso as a dual boot. After reboot choose kali, in the boot menu. Then hole E key down, it comes to a blue kali screen. Mid way down there is a line that says "linux ..." (its long) go to the end of that line and enter nomodeset press ctrl x and it should boot with the log in screen appearing. Thank you guys for your help and hints!


Here a basic example:

#!/usr/bin/env python

from gi.repository import Gtk, Vte
from gi.repository import GLib
import os

terminal     = Vte.Terminal()
terminal.spawn_sync(
    Vte.PtyFlags.DEFAULT,
    os.environ['HOME'],
    ["/bin/sh"],
    [],
    GLib.SpawnFlags.DO_NOT_REAP_CHILD,
    None,
    None,
    )

win = Gtk.Window()
win.connect('delete-event', Gtk.main_quit)
win.add(terminal)
win.show_all()

Gtk.main()


Same for me, but here is what I usually do:

Download Blender (2.69x64) from blender.org (in my case blender-2.69-linux-glibc211-x86_64).
Create a directory in my Home called Programs.
Untar the downloaded file there.
Run Blender from the ~Home/Programs/blender-2.69-linux-glibc211-x86_64/,
and the GPU option in user preferences is there.
You can always create a menu entry for it if you want.
I haven't tested it yet, but most likely overwriting the installed version files in /usr/bin/Blender-whatever-it-is should do it-do that at your own risk though. And I can't say if Yafaray and the ffmpeg libraries will work with this method.


First Time Installing Ubuntu Server. Need Some Help

The answer is "...access tty console (by pressing Ctrl+Alt +F*, where F* is any F1 - F6 key)..." (Ubuntu 14.10 booting problems - no login screen)

I suggest they should mention that here: Install Ubuntu Server Tutorial https://tutorials.ubuntu.com/tutorial/tutorial-install-ubuntu-server#11 or Ubuntu Server Guide https://help.ubuntu.com/lts/serverguide/

Maybe I missed it lol?


See https://gitlab.com/gitlab-org/omnibus-gitlab/issues/628,
the issue still seems ongoing.

EDIT: Doing apt-get clean and then apt-get upgrade --fix-missing worked for me.


Cannot install anything with software centre or apt-get

First update all the repositories by running,

sudo apt-get update

Then try to install any packages via apt-get or sc. In a newly installed system, you have to update the repositories before trying to install packages or otherwise it shows the error unable to locate package. And also check for the package name is being correct.


How can I move the Dash button from the Unity launcher to the top panel?

This is currently not possible in Unity without modifying Unity's source and recompiling it.

How to start contributing to Unity?
How do I build Unity from source?


showing full space as free spcae while installing ubuntu 14.04 !please help!

Try gparted (it's installed on the ubuntu install disk, you can just launch it from the dash).

If gparted sees your windows partition, just create your additional partition there and apply.

If it doesn't, you will have to fix it from the windows "administrative tools" (make sure the partitions are fine there, no exotic windows specific stuff).

If you can't fix your partitions neither using gparted, nor with the windows partitioning tool, then backup your data, make sure you have a windows installation media, and repartition your disk using gparted, then install windows in a partition and linux in the other.