How to use a T420 with two external displays?

Lenovo's own support forums suggest that you need the dock for this:

  It worked, I have experienced it with my own eyes. 2560x1600 on both 30 inch monitors using one Displayport on the mini series 3 docking station and one Displayport on the side of the laptop.

Though I can't guarantee this all works with Ubuntu but at the same time, I can't see why it wouldn't. The dock appears to short-out the built-in screen.


No wifi adapter found Ubuntu 18.04 Dell Studio 1537

How to solve the "Wireless Adapter not Found' problem.

Step 1: Identify your exact wireless device.

Many computers are sold with various wireless devices installed. Not every Lenovo T440p, as an example, has the same exact device. Some were sold With Intels, some with Atheros and so forth. To determine what exact device your computer has, let's ask it! Please open a terminal with Ctrl+Alt+t and run:

lspci -nnk | grep 0280 -A3

Also run:

rfkill list all

The first command will tell us the exact identity of your installed wireless device. The second will tell us if the wireless switch or key combination is set to disable the otherwise working wireless.

Here is an example of the output from the first command:

Network controller [0280]: Realtek semiconductor co., Ltd. RTL 8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
        Subsystem Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter [103c:831a]

The crucial bit of information is the pci.id here: 10ec:c821.

When you find yours, next run:

uname -r

That command will tell you the kernel version you are running. We need to know that because the method to install a driver varies by kernel version. In other words, the method used in kernel 3.xx is different from 4.xx which is, in turn, different from 5.xx.

Step 2: Using these two data points, search Ask Ubuntu for the pci.id; 10ec:c821 in my example. Almost no matter what device you find that you have, someone else has it, too, and we've answered with a method to install the driver. Try to find an answer that involves your same kernel version or Ubuntu version (16.04 LTS, 18.04 LTS, 19.10, etc.).

Finally, if you get stuck, tell us your details in an edit to your question and we'll be happy to help.


Malware Bruteforce Attack on software RAID server

There's no reason to think that the removal of one (RAID) block device will affect another. You can safely remove the system volume and keep the one with /home on it.

It's possible that the new Ubuntu installation won't pick up the old RAID configuration by itself in which case you need to do that manually after installation.


Can I swap out Nvidia cards without having to reconfigure the drivers?

Normally this works, except in this case you will need newer drivers than what is in Ubuntu for the GTX 1060, which was released after Ubuntu 14.04.

First, update your Nvidia drivers to the latest version:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nvidia-370

Then reboot.
After you've installed nvidia-370 you can safely just power the machine off and swap out the card.


How to use QQ and WeChat on Ubuntu 16.04 LTS?

WeChat

Franz

You could use Franz and configure your WeChat account there.

It supports:

Slack
Messenger (Facebook)
WhatsApp
Telegram
Skype
WeChat
Hipchat
ChatWork
Flowdock
Hangouts
GroupMe
Rocket.chat
Mattermost
Grape
Gitter
TweetDeck
DingTalk
Steam Chat
Discord
MySMS

so far with 3.0.0 and is available for Windows, Linux and OSX.

QQ

I don't know what QQ is - so can't comment on this.


How To Hide A Drive In The Navigation Tree When Mounting To Your Home Folder

I submitted a bug report: https://bugs.launchpad.net/ubuntu-gnome/+bug/1501547

The best work around was to create a simlink from the folder in your root directory to your home folder. The following instructions are helpful for making simlinks: https://unix.stackexchange.com/questions/84175/create-a-symbolic-link-relative-to-the-current-directory


I removed zend_extension=xdebug.so from /etc/php5/mods-available/xdebug.ini and now I am able to access pages again while still useing xdebug?!

I didn't find any other file where xdebug would be included in any php.ini, so I am a little bit confused. Maybe someone else has a more complete answer.


Wanted: Drive Activity Light panel item for Lubuntu 14+

I have a proposal to use keyboard indicators instead. You can find Disk-Indicator program on GitHub: https://github.com/MeanEYE/Disk-Indicator .
Download ZIP archive, unzip it somewhere. It needs to be compiled.
Its Makefile has a glitch though - it treats warnings as errors, so it won't compile right away. But if you edit the 4th string of the Makefile:

COMPILE_FLAGS=-Wall -pedantic -Werror -D _DEFAULT_SOURCE

and remove -Werror option from it, then it will compile properly. After editing it run make in the folder where this Makefile is located.

config.sample file contains the settings: which LED should be used (Scroll Lock is the default), which events to track and which drive should be used. Make a copy of this file and edit this copy as needed. For example, I copied it into .config and here's my setting:

led=x|scroll event=both device=sda

Small help file can be found on GitHub page or in the file README.md.
Now run the program:

./disk_indicator -c .config

If you insist on using the panel indicator or you have no LEDs on the keyboard, you can combine this program with an Indicator for Lock Keys which can be found here: https://launchpad.net/~tsbarnes/+archive/ubuntu/indicator-keylock . It places keyboard indicators on the panel and reacts to this Disk-Indicator program nicely. But it has a side effect - notifications on status change, which are annoying. These notifications can be suppressed - indicator developer provided the method. There's a hidden option to disable them:

gsettings set apps.indicators.keylock notifications false

Also system notifications can be disabled completely, as described here: How to disable system tray notifications in 14.04?
Indicator for Lock Keys is invisible by default, you should press Caps, and it will appear in the tray. Check the setting to show it always and switch to Scroll Lock tracking (both settings can be found in its Preferences).
Icon in the tray may seem not very bright. It is located in /usr/share/icons/hicolor/22x22/status/scroll-lock-on.png and can be edited easily with Gimp.


Unable to boot past BIOS after reinstalling Ubuntu 16.04

It depends on the mode u installed your ubuntu in your laptop. If u installed it in UEFI mode and Your system default boot mode is UEFI then ubuntu will boot else it won't.Similar is the case with LEGACY mode if u installed it in legacy it won't boot in UEFI mode.U can go into the BIOS menu (search the key on Google.generally it is F11 F12 F10 or F2) and check the BOOT options. Whichever mode it is already set (UEFI OR LEGACY) change it (if legacy then uefi and v.v).now save and exit BIOS menu.If u really installed Ubuntu properly then It will boot.


Ubuntu Software Center's only review option showing "No Network Connection"

Running watch -n 1 netstat -tp at the same time as the software center reveals it's loading that stuff from https://reviews.ubuntu.com. If you have a look at that in a browser does it reveal something that's wrong with the connection?


Why doesn't this script output to a text file when run from cron?

You are using the system crontab which has a slightly different format; specifically, the date-time fields must be followed by a user field which tells cron who to run the command that follows as.

So the syntax in this case should be something like:

* * * * * username /home/username/Sample.sh > /home/username/Sample.txt


I just discovered that MAAS uses either Etherwake or Wakeonlan to boot the nodes, if using power type wake-on-lan.

Those are not installed by default, and are not dependencies of MAAS.

Just install Etherwake or Wakeonlan from the standard Ubuntu repo

apt-get install etherwake

or

apt-get install wakeonlan

Then, when you manually add a node using MAAS, use wake-on-lan power type with your MAC address, and as soon as you save the node, the party begins!

I found the information in the following file, take a look:

/etc/maas/templates/power/ether_wake.template


I can't see my cursor after Partial Upgrade

I don't know if you already got a solution, but the same problem happened for me and I was told to use:
gsettings set org.gnome.settings-daemon.plugins.cursor active false

It will restore it, but you need to do it in each account.

Hopefully you already solved this!


Gloobus-preview won' t play any video and audio (ubuntu 12.04 on mbp)

SOLVED! I just had to let movie player download codecs to support video and audio formats when trying to open those videos with movie player.
or via terminal run this command

sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-gnonlin gstreamer0.10-sdl gstreamer0.10-plugins-bad-multiverse gstreamer0.10-schroedinger gstreamer0.10-plugins-ugly totem-plugins-extra


How do I connect to vsftpd server via ssh connection

I ended up using SFTP in CX File Explorer instead... It's a bit slow, but this is not a problem since I'm doing most downloading when on the local network (via normal FTP connection).


How to view the last user that accessed a folder in the terminal?

You can use auditd. To install it, run the following command from terminal:

sudo apt-get install auditd

How do I set a watch on a folder for auditing?

sudo auditctl -w /path/to/folder -p rwx -k password-file

The above command monitoring /path/to/folder for anyone that may perform a write, read or execute operation on that folder.

How do I find out who changed or accessed a folder?

Use ausearch command as follows:

sudo ausearch -f /path/to/folder -i | less

More about: Linux audit files to see who made changes to a file.


On a fresh installation of Ubuntu 10.10 I am able to cd /etc/init.d which is where init.d resides:

marco@img32:~$ cd /etc/init.d
marco@img32:/etc/init.d$

You'll need to make sure you are going in to the /etc directory if you are going to make any changes to init.d contents as init.d is a folder and not a file. There are various other folders named etc so ensure you are in the /etc directory.


Changed password - now can't login to my account (full disk encyption + encrypted home folder)

For completeness' sake, I post the solution we found during our conversation in the comments section as an answer:

First of all, you are probably able to boot into your Linux system, you may just not be able to log in graphically, since graphical login usually tries to read/write in your home directory. You can still try to log in using a virtual console (Ctrl + Alt + F1) and work from there.

Using a Live CD instead should also work. You can mount your encrypted system partition from the Live CD, too. For example, you can run gnome-disk-utility on your Live CD and decrypt+mount your system partition from there graphically.

Also, watch out that the instructions in the linked tutorial assume that you are logged in as the user whose home you want to rescue. If you are logged in as another user (e.g. root), then replace the command

ecryptfs-rewrap-passphrase ~/.ecryptfs/wrapped-passphrase

by something like

ecryptfs-rewrap-passphrase /home/[the-user-you-whose-home-you-want-to-rewrap]/.ecryptfs/wrapped-passphrase

or (on a Live CD) by something like

ecryptfs-rewrap-passphrase /[wherever-you-temporarily-mounted-the-home-partition]/[the-user-you-whose-home-you-want-to-rewrap]/.ecryptfs/wrapped-passphrase


unattended-upgrades only works for applications you've installed using the package manager and that have a package repository associated with them. Basically, how upgrades/updates in general work is that there is a comparison mechanism that the updater watches for. When that comparison comes up with different values for the installed application versus what's in the repository, a update sequence is triggered (either it will update automatically, or will prompt the user to update, depending on the setup and what the changes are).

When you recompile an application, using either of the methods you've mentioned (Stan's method is, in fact, also recompiling, it's just using dpkg instead of make, you break your install away from the repository.

This is reflected in Stan's post by:

  Аfter you upgrade to a new version nginx, this recompiled package will be overwritten. You will have to do this process again.

Therefore, your best bet will be to use a cron job and custom script to manage the automatic updating for Nginx. The good news is, though, that you should be able to automate the whole process if you're willing to put in the effort to write and test the appropriate script. Once you get it installed the first time, the script shouldn't have to worry about dependencies, just pull the new source and rebuild with the options you want.


Suggestions to Purchase a System76 Ubuntu Pre-Installed Laptop

If you want opinions , I can say on behalf of all System76 users that They are working awesome even after years.

If you want to see those users opinions here we go their google plus post which filled with opinions.

https://plus.google.com/104919222657565747428/posts/XRmZ8y5pvmY


Seems that the Photo-Lens only works with Shotwell.


How do install a Adobe flash player in Ubuntu 13.10 for Chromium

Try running

sudo apt-get update

after enabling the restricted repository but before running

sudo apt-get install ubuntu-restricted-extras


Where can  I check for development progress and report bugs for GNOME classic panels?

It's actually called Gnome Panel. You can report bugs for it by pressing Alt+F2 and entering ubuntu-bug gnome-panel.

It also has a project on Launchpad: https://launchpad.net/gnome-panel


Are there plans to remove the mouse cursor in uTouch?

See this question: https://stackoverflow.com/questions/660613/how-do-you-hide-the-mouse-pointer-under-linux-x11

It looks like there are no plans to do anything about this issue, if you would like it to have some attention, please report it as a bug: https://help.ubuntu.com/community/ReportingBugs


Unable to remove write protection from pen drive

Try this answer by Angel Genchev: USB turn write protection off

  To turn off disk device`s write protect, we use the low level system
  utility hdparm like this:

sudo hdparm -r0 /dev/sdb

  where we asume that /dev/sdb is the Physical disk device we're working
  on. If the device has partitions that are mounted as read-only, you
  should re-mount 'em as read-write in order to write data to them.

  Hope that helps.

You should run sudo hdparm -r0 /dev/sdb rather than sudo hdparm -r0 /dev/sdb1. So run your command but without the 1 at the end. You specify the device itself as a whole and not the partition number.


Dell G3 having issue while booting with Ubuntu

Just found an answer for this.

First of all, I didn't need Rufus tool for bootable, StsratUp disk worked fine.

I created a partition of EFI file system (Praimary) 150 MB and other 5 partitions with something else option as required, mentioned below:

/boot(Praimary), Swap(Praimary), /home(Logical), /opt(Logical), / (Praimary)

And installed the Ubuntu, it worked.when

If you have 2 HDD or SSD then you need to select the disk for boot loader while installing.

All issue was that Dell systems don't provide the boot option when installing Ubuntu without EFI file system and it goes to Testing Mode.

Thanks to @Fabby:)


Is there a way to disable kernel updates?

Go to System → Administration → Synaptic Package Manager.

Highlight the installed kernel and choose Package → Lock Version on the menu bar.

If for some reason you still get prompted for update you can use

sudo aptitude hold <the installed kernel package>

to the same effect.

dpkg --set-selections serves the same purpose, too.


Kernel 2.6.38-10 and 2.6.38-11 unable to boot in AHCI mode

Just for the records:

I've flashed the mainboard with the latest and greatest BIOS (F4 beta) and now the boot problem has gone.


brl-cad won't start - no version information available

You'll either need to edit the FONTBACK define in include/dm.h to specify a font you have enabled, or you'll need to enable one of the two fonts specified. Ubuntu apparently does not enable the old fixed pcf fonts, but it's supposedly easy:  http://marklodato.github.io/2014/02/23/fixed-fonts.html

You can similarly install the adobe fonts via gsfonts-x11 or package, and it should work.  Related: https://root-forum.cern.ch/t/couldnt-find-font-adobe-helvetica-medium-r-10-iso8859-1/21619/2


How to stop windows from moving past the edge of a workspace?

This is currently a defect in Unity/Compiz. The best you can do is to enable edge stickiness. In ccsm (not installed by default because it's unstable as all get out), go to Window Management and enable "Snapping windows".

Make sure all 4 check boxes are checked and set resistance to 60 and attraction to 20.

This should help you keep your windows on a workstation.

However this is one of those taste things. Some people want things to span like this, others hate it. I personally am in the hate it group. I hope I am wrong, and that someone has a magic answer, but this is the best I have been able to find.

Just to make it clear, this won't stop the behavior, but it will make it a bit easier to manage.


Scanner is listed under lsusb command, but not detected by scanning programs

This is linux. Where there is a will, there is a way.
ok, do you know what the device is in /dev/? figure that out first.
Since your device shows up in lsusb, then it is almost certainly in dmesg.
Unplug your scanner.

sudo dmesg --clear

plug in your scanner

$dmesg

you should see the device name in dmesg. /dev/scanner I have no idea what it will be. Post back with dmesg if you need help figuring it out.

optional step: you can see if the device is listed:

$scanimage -L

Next, you will try to scan using the command line program scanimage and the device name:

$scanimage -d /dev/scanner

or

$scanimage -d /dev/scanner --quick-format Letter --resolution=600

if it kinda works but you want to do something else, try reading $scanimage --help or man scanimage

Try that and post back errors you may encounter.


KVM / QEMU / VMM : local host not connected

Step 1 : Install all packages that are needed.
sudo apt-get install qemu virt-manager

If they already are installed, you get notified.
Step 2 : Add yourself to the libvirt(d) group.
sudo usermod -G libvirt -a <username>

(this is valid for newer KVM / Ubuntu versions)
sudo usermod -G libvirtd -a <username>

(this is valid for older KVM / Ubuntu versions)
Replace <username> with your user name.
Step 3 : Reboot your host operating system.
sudo reboot

Now everything should work as expected.
In case you still get the same error again -
open virt-manager with root privileges :
sudo apt-get install gksu

gksudo virt-manager

Close virt-manager and restart the host.
sudo reboot

Finally it should work with user privileges !


Can jitsu deploy multiple service units like juju's "add-unit" command?

I'm not sure about jitsu deploy-to supporting this feature, but you don't need to deploy the ceph-osd charm with the ceph charm in this way.

The ceph charm supports OSD functionality so can be deployed standalone; you can add extra storage capacity later if need be by using the ceph-osd charm.


How to fetch build packages from other apt repositories in snapcraft

You can do this now by writing a very simple custom plugin (based on the 'nil' plugin).  Just put a sources.list file (containing the repos you want to install from) in your project's top-level directory, and put the following code in parts/plugins/your_plugin.py

import snapcraft
import os

class YourPlugin(snapcraft.BasePlugin):
    @classmethod
    def schema(cls):
        return {
            '$schema': 'http://json-schema.org/draft-04/schema#',
            'type': 'object',
            'additionalProperties': False,
            'properties': {},
        }

    def enable_cross_compilation(self):
        pass

    @property
    def PLUGIN_STAGE_SOURCES(self):
        return open('sources.list', 'r').read()

After that, you may need to worry about gpg keys for the sources.  You can just add those to your system's apt keys.

$sudo apt-key add <file with repo's gpg key>

Depending on which repos you are trying to use in your snap, you may need to specify some special options for apt.  You can do this with a custom apt.conf file.  My apt.conf looks like this.

Acquire::ForceHash "sha1";
Acquire::CompressionTypes::Order { "bz2", "gz"; };
Acquire::Languages { "none"; };

You can make snapcraft use this file when it calls apt internally by setting an ENV variable.

$export APT_CONFIG=<path to custom apt.conf file>

Finally, edit your snapcraft.yaml to use your new plugin.

parts:
  custom-part:
    plugin: your_plugin
    stage-packages:
      - <package from custom repo>

Now, you can run "snapcraft snap", and it should install packages from the repositories listed in your custom sources.list file instead of the system's.


How can I share a wifi signal with other machines on my wired network?

In Ubuntu desktop, you will see a conical icon near the top right corner. Click on it, you will see the "Enable Wireless" option. Once you click on this option, the system will detect the various WiFi connections that you can connect. Click on the connection name to connect to it.

It may happen that you may not have the necessary drivers for the wireless network interface card. In which case you will have to install the driver before attempting to connect to a WiFi network.

You may wish to instead Create a Wireless Ad-Hoc Network in Ubuntu.


How to make a device have read/write permissins when pluged?

If you are a member of the dialout group you can access serial devices, including ttySx, ttyUSBx, and ttyACMx devices, without changing permissions.

$ sudo adduser myusername dialout

Alternatively, you could create a udev rule to set the permissions as the device is attached.  See https://askubuntu.com/a/112573/471836


I solved it by loading the usb-storage module again

$> modprobe usb-storage

Then unplugging and re-plugging the USB drive.


My mistake was using " instead of '. As far as I understand using " causes the shell to interpret the string when running the ssh command on the local machine. I'm not sure what was being passed to the remote machines, possible the result of the command. ' will cause the shell to pass the string unaltered.

ssh -n -o StrictHostKeyChecking=no -i ... user@host 'sudo rngd -r /dev/urandom -o /dev/random -t 10'

works. In the end I decided to use haveged instead:

ssh -n -o StrictHostKeyChecking=no -i ... user@host 'sudo apt-get install haveged'

Is all that needs to be done. It will install haveged, start it and add an entry to cause it to start on boot.


Why does my network connections history tell me I have had a wired connection?

It's nothing, its just some updated drivers  testing the devices and ports. A connection log can be created if there is only upsignal . Its nothing to worry about.


How do I list all the relation variables and debug them interactively?

A way to interactively debug your charm is to use debug-hooks ( https://jujucharms.com/docs/stable/developer-debugging ):

For example:

juju deploy wordpress

( Let's say that the above command deploys wordpress/0 )

juju debug-hooks wordpress/0

That will open a tmux session where the hooks can be run manually.  It also sets up the environment so relation-* can be run ( relation-get, relation-list, etc. )

Try running relation-get ... it should give you all of the available variables for that particular charm/relation.

NOTE: You actually have to cause a hook to fire once you start the juju debug-hooks. So, add/modify a relationship at this point. (I typically just remove-relationship and then add it right back.) This will create additional hook-specific windows within tmux that DO have JUJU_ setting context and will respond to relation-get relation-set commands.


Where are the Rust (aka rust-lang) packages for Ubuntu?

On ubuntu 16.04 you can use official apt package without install any other ppa repository.

sudo apt install rustc

... and don't forget cargo

sudo apt install cargo

... but the versions are not really updated: (August 2016) rustc 1.7.0 and cargo 0.8.0. Unfortunally cargo is not compatible with IDEA rust plugin... I used the script pointed in Rust Documentation.


Will adding wireless firmware have an effect on the other OS?

In this context "firmware" refers to code essential for the running of the device that is loaded by the device's driver when it's initialised.  It isn't actually stored permanently on the device.

This is often referred to as "microcode" (cleverly abbreviated to "µcode") instead of firmware because it's small enough that it can be loaded onto the device each time it's powered up.

The "firmware" or microcode you load on one OS shouldn't affect the operation of that device on another because booting the other OS will load microcode from its own driver.

Obviously there are some devices which have a permanently flashed "firmware" on it, like complex self-sufficient devices such as routers, smartphones, NAS devices etc, but in those cases the firmware is pre-loaded onto the device already, rather than loaded on at boot via a device driver in the OS.  Such firmware can be "updated" by obtaining a special firmware update and installing it in the way recommended by the manufacturer but it then replaces the permanent firmware that was already on the device.

A Wifi adapter, such as a PCI/PCIe/USB based one, is almost certainly not storing any permanent configuration settings or firmware on the actual device and all code will be loaded by a driver on the PC each time the device is initialized.

  During boot up, a message briefly appears saying that firmware files b43/ucode5.fw and b43-open/ucode5.fw not found. Go to http://wireless.kernel.org/en/users/drivers/b43#devicefirmware and download the correct firmware for this driver version, carefully read all instructions on the website.

This might not actually be the best way to install the firmware. This is a general Linux-based message that isn't tailored specifically to Ubuntu.  Ubuntu actually provides some easy-to-install firmware packages for common devices that you can simply install with apt-get, and may be a more robust alternative to downloading the raw firmware files from upstream.

In this case you may be able to install the b43 firmware with the Ubuntu command:

sudo apt-get install firmware-b43-installer

Should this command not work for you there is some more information about that model of wifi adapter in this question.

The reason it's not installed by default but needs to be installed this way is almost certainly due to licensing restrictions; the microcode part of the driver is not open source and probably has a license that restricts it being distributed with Ubuntu - but the user (you) are allowed to download and install it yourself.


Install a Package from another Distribution

Seems like I need to upgrade to Ubuntu 19.04 (Disco) or Ubuntu 19.10 (Eoan).

I found instruction on how to upgrade my Windows 10 installation at:

How to Upgrade Ubuntu 18.04 to 19.10 on Windows 10 Linux subsystem
by Sarbasish Basu, Oct 19, 2019

That worked and I was successfully able to install and run minimap2 from the disco distribution.


The directory you're looking for is /usr/share/fonts/opentype. If it's not there, you can just create it. Copy your OTF files there; this will install the font for all users. Then, recreate the fonts cache with the command sudo fc-cache -f -v.

You can also install fonts per user at ~/.fonts/. It makes no difference whether they're in any sub-folders or what type they are. Mine, as an example, are organised by foundry.

Alternatively, you can just double click them, this will open them with the Font Viewer, which let's you install them with one click:


Have you tried log in in the other user and see the dependecies of gnome on synaptic?

I found this:

gnome site

Maybe if you log in in the other user and satisfy the dependencies of the gnome desktop(what you have deleted/unistalled) it will go to back status.

Another option could be delete all the things called gnome in synpatic, and try reinstall gnome via console or synpatic package manager.

sudo apt install ubuntu-gnome-desktop

that is the code for install via console

I hope you could get some help of this, and sorry for my english, in not very good :)


CDs and DVDs won't play or burn in Ubuntu 12.10

Sounds like you have a problem with your DVD player, newegg has cheap dvd players or burners and you can even get a blu-ray burner for $60 now


Firefox crashes when opening file . Upgraded from 14.04.4 to 16.04 lubuntu (on top of ubuntu)

I have to answer my own qustion because of users which will confront the same issue. I solved this situation on following way.

Firstlly it is not firefox specific but system wide.
I tried with  glib-compile-schemas and  seting XDG_DATA_DIRS to /usr/share/glib-2.0/schemas but without success. But  creating a ~/.local/share/glib-2.0/schemas directory, copying all schema files in here, and exporting XDG_DATA_DIRS=~/.local/share/glib-2.0/schemas did the job for me. Now I have all applications like evince and other working open file dialog box without crashing the app.


This worked for me:

Get The Sound Working In Skype With Ubuntu 13.10 ~ Web Upd8: Ubuntu / Linux blog

With the addition that in the Systems Settings => Sound => Effects  I had to turn the volume on Alert down to about 20% to stop a loud "buzzing" (feedback?) effect - even when there was  no alert(!).

Now to figure out how to get the video working in Skype ;-)


How can I upload to Google Music via a proxy?

I have found the most reliable solution for this conundrum so far. Its to use a VPN. I recently subscribed to one and it doesn't require me to go through the proxy anymore. That covers my needs.

It even goes further to eliminate the proxy requirement for any app in my system. This way all those that behave crazy even with proxies can now behave!


Maybe you could try running the script with the command-line browser 'links'

links -no-g http://your.sript.here

Or you could try a stand-alone JavaScript shell to interpret your code without opening a browser.
These Webpages might help you:

https://developer.mozilla.org/en/SpiderMonkey

https://developer.mozilla.org/en/JavaScript/Shells


How can I change the default audio device from command line?

You can control PulseAudio thoroughly through the command line using pacmd and pactl commands. For options see man pages or the wiki at PulseAudio:

pacmd list-sinks (or pactl list short sinks) for name or index number of possible sinks

pacmd set-default-sink "SINKNAME" to set the default output sink

pacmd set-default-source "SOURCENAME" to set the default input

pacmd set-sink-volume index volume

pacmd set-source-volume index volume for volume control (65536 = 100 %, 0 = mute; or a bit more intuitive 0x10000 = 100 %, 0x7500 = 75 %, 0x0 = 0 %)

and many many more CLI options.

Note: Changing the output sink through the command line interface can only take effect if stream target device reading is disabled. This can be done by editing the corresponding line in /etc/pulse/default.pa to:

load-module module-stream-restore restore_device=false

Restart PulseAudio for changes to take effect:

pulseaudio -k

For a more elaborate tutorial on how to do this, and for instructions on how to change the sink during playback see this answer.


Openvpn start at boot fails because service needs root password

The Surfshark config file located in /etc/openvpn had the original .ovpn file extension. After changing it to a .conf extension as suggested in the maketecheasier.com article, the VPN is now activated at boot time.


How can I start a script in a minimised Gnome Terminal?

Gnome-Terminal has no option to start minimised.

The following is more a workaround to do this:

First wmctrl is needed, but not the version from the repositories because this version doesn't have an option tho minimize windows. (If you have already installed wmctrl you have to remove it).

Download the version from github https://github.com/geekless/wmctrl/archive/master.zip and install it (follow the INSTALL file -> ./configure then sudo make install). If you get error: X11/Xmu/WinUtil.h you have also to install sudo apt-get install libxmu-dev and then try again.

Then you can run from commandline this for example:

gnome-terminal -x sh -c "ls; bash" & disown && sleep 3 &&  wmctrl -i -Y  $(wmctrl -l | awk -F' ' 'END{print $1}')

Explanation:

gnome-terminal -x sh -c "ls; bash" & disown run gnome-terminal in background and execute a command (in this case ls)
sleep 3 wait until the gnome-terminal window appears (you can experiment with this value, 3 seconds could be to short or to long, depends on your hardware)
wmctrl -i -Y  -i ->  Interpret  window  arguments as a numeric value, -Y -> Iconify (minimize) the window
$(wmctrl -l | awk -F' ' 'END{print $1}') or $(wmctrl -l | tail -1 | cut -d' ' -f1) get the window id of the last opened window (should be the window id of gnome-terminal in this case)

To simplify it you can add a function to your $HOME/.bashrc file:

gterm-min() {
    gnome-terminal -x sh -c "$1; bash" & disown
    sleep 3
    wmctrl -i -Y  $(wmctrl -l | awk -F' ' 'END{print $1}')
}

then you could use it like this:

gterm-min "ls -la"


If you login using unity and go to

/home/user/.local/share/gnome-shell/extensions

Or

/usr/share/gnome-shell/extensions

And just delete the extension folder that is causing the problem


Installation stuck at checking disks 20%

Filesystem Check

At about 20% through the file check, Boot starts checking the file filesystem.squashfs, which takes up about 90% of the ISO and contains most of the OS files. This may take awhile. You can either give it time or remove filesystem checking See: Disable Ubuntu 20.04 disk checkup every boot?

If you press the ESC key you should see what is happening behind the splash screen.

If the persistence file/partition is full it may not proceed beyond this point until all files in casper-rw are deleted.


14:04 How to install Windows 10 IoT Core in Ubuntu?

So, I did something similar, while I can't tell you exactly how to do it I'll tell you the basic way. And this may be complicated and far from ideal. Don't hate me for it, but worst case, this will definitely work, it's just very long winded.

So first get the windows 8.1 iso of mircosofts website (it's free), look up a generic key for it. And install it onto virtual box. You'll have to install virtual box extentions and allow usb access into the guest system. And put the SD card in an SD to USB converter. From then pull out your windows 10 ioT installer in windows and set it to install onto your SD card. Sit back and wait.


Are you trying to install the webcam on Ubuntu?

Have you tried plugging it in and just trying to use it?

Ubuntu contains lots of drivers out of the box. For most hardware you don't need to get things from the manufacturer's disks or website.

Try using an application like cheese to see if the camera works.


Page borders gone in evince after 14.04 upgrade

Change the theme from "Ambiance" to "Adwaita" solved the problem for me.  But you have to like this new theme.


How to fix a GRUB Boot-loader that does not recognize a partition without a fresh install?

I'd recommend you to use "boot-repair" which is a graphical program that lets you repair most grub-related issues such as yours.

Check out this guide on how to install it and use it to fix your bootloader.
Although this guide is for ubuntu, Mint is based and completely compatible with ubuntu, so you are safe to follow that guide.

https://help.ubuntu.com/community/Boot-Repair#A2nd_option_:_install_Boot-Repair_in_Ubuntu

make sure to select your drive and your mint partition as your drive/boot partition


Program requires a folder data to execute

Software Developer has resolved the issues! See https://github.com/samadritakarmakar/GATE_calculator/issues/1


Is it possible to see old notifications?

You have to install something beforehand:

sudo add-apt-repository ppa:jconti/recent-notifications
sudo apt-get update
sudo apt-get install indicator-notifications


No write permission on a mounted NTFS drive

Here is the proper link to this issue...
How to make the mounted ntfs partition read-write enabled
In my case it was the fast startup feature of the Windows that was causing this issue.
Only thing which I was not able to figure out was it happened unexpectedly since things were working fine and without any change in windows it stoped working, it shouldn't have worked in the very beginning too.
Anyways problem is resolved now.
Thanks @Koen for your comment.


What are the advantages and disadvantages of using 15.10 over 14.04?

LTS is long term support - as you say it has 5 years of updates and will have reached 14.04.5 by the time it is end of life.

However, because the developers are focusing on stability and reliability (especially for business users who rely on their networks working), they don't add masses of features. Early on their is a feature freeze and they make sure there are no bugs.

This means that Ubuntu 14.04 is less cutting edge - both because it was released in April 2014, 1.5 years ago, and because it was never intended to be chock full of features.

Ubuntu 15.10 on the other hand has had new features added to it, including the following:

  Unity polish and fixes
  Steam controller support
  New scrollbars Linux
  Kernel 4.2 Updated apps, including LibreOffice 5
  Ubuntu Make update
  Python 3.5 Support

But this will only be supported for the next 9 months. Why? In 6 months there will be another release - 16.04 (an LTS release, incidentally), which you will be able to update to.

Updating every 6 months is a hassle - but that's the price you pay for latest features.

So which is better depends on what you need. If you want the latest features - and don't mind 6 monthly updates then go for the latest release.

If you want to know that you will have a system that works and is secure for the next 5 years then go for 14.04 (what I have)

If you are planning to update to 16.04 when it's released, you may as well get 15.10. But from there it's your choice to update to 16.10 if you want the latest features, or stay at 16.04 for stability and support.

Also note that here on Ask Ubuntu, we only offer answers to Ubuntu version that are currently supported - another reason to stay with a version that is current. If you are worried you won't want to update that frequently, it's better to get an LTS release - then there is no danger of it not being updated.


Is Ubuntu Server 13.10 suitable for running a web server on older hardware?

Potentially.  With only 1GB of RAM given it's going to have a graphical interface, using a web browser (which are quite memory-heavy nowadays), the experience may be lackluster.

I would suggest using a lightweight desktop environment instead of Ubuntu's default Unity, such as Xfce or LXDE.  You can install one of these from the command line on Ubuntu Server using sudo apt-get install xubuntu-desktop or sudo apt-get install lubuntu-desktop.  That way, your desktop/web browsing experience leaves as much RAM as possible aside for the web server to use.


What information can be extracted from this system crash trace

It seems the problem was in the PAE. I was using soekris 4801 box, which has a geode processor without PAE extension, but the default kernel installed uses PAE extension, leading to kernel panics when i started using wifi.

The problem was solved by installing and using the generic kernel via the package linux-image-generic. ALternatively, one can recompile and install the kernel from source without PAE enabled.


Can I rename Liferea feeds imported from Google?

No this is actually not possible. Liferea will always restore the name from Google Reader.


Need help with Wifi , trying ndiswrapper

I've tried the github version with gcc 4.9.2

git clone https://github.com/Schwartz/ndiswrapper-patched-3.14.git
cd ndiswrapper-patched-3.14
make

Output

make -C utils
make[1]: Entering directory '/home/aboettger/tmp/ndiswrapper-patched-3.14/utils'
gcc -g -Wall -I../driver  -o loadndisdriver loadndisdriver.c
make[1]: Leaving directory '/home/aboettger/tmp/ndiswrapper-patched-3.14/utils'
make -C driver
make[1]: Entering directory '/home/aboettger/tmp/ndiswrapper-patched-3.14/driver'
make -C /usr/src/linux-headers-3.19.0-30-generic M=/home/aboettger/tmp/ndiswrapper-patched-3.14/driver
make[2]: Entering directory '/usr/src/linux-headers-3.19.0-30-generic'
  LD      /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/built-in.o
  MKEXPORT /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/crt_exports.h
  MKEXPORT /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/hal_exports.h
  MKEXPORT /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/ndis_exports.h
  MKEXPORT /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/ntoskernel_exports.h
  MKEXPORT /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/ntoskernel_io_exports.h
  MKEXPORT /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/rtl_exports.h
  MKEXPORT /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/usb_exports.h
  MKSTUBS /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/win2lin_stubs.h
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/crt.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/hal.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/iw_ndis.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/loader.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/ndis.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/ntoskernel.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/ntoskernel_io.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/pe_linker.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/pnp.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/proc.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/rtl.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/wrapmem.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/wrapndis.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/wrapper.o
  CC [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/usb.o
  AS [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/win2lin_stubs.o
  AS [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/lin2win.o
  LD [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/ndiswrapper.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/ndiswrapper.mod.o
  LD [M]  /home/aboettger/tmp/ndiswrapper-patched-3.14/driver/ndiswrapper.ko
make[2]: Leaving directory '/usr/src/linux-headers-3.19.0-30-generic'
make[1]: Leaving directory '/home/aboettger/tmp/ndiswrapper-patched-3.14/driver


Cannot install PHP7.2-dev on Ubuntu 18 due to unmet dependencies

The advice from user535733 in the comments is very vague and actually not 100% possible in this case since it would mean un-installing libpcre3. Doing that would remove a ton of your packages.

The key to this was in this question where the user was unable to install libpcre3-dev (which is one of the dependencies you are having trouble installing).

I am going to assume that since you have a later version of libpcre3-dev than intended, you must have had the third party (ondrej) ppa previously.

So what you need to do is not uninstall the non-Ubuntu packages, but downgrade the php7.2-dev dependencies.

In my case, doing the following fixed the issue after removing the third party PPA:

sudo apt install libpcre3=2:8.39-9 libpcre3-dev=2:8.39-9
sudo apt install libssl1.1=1.1.0g-2ubuntu4.1 libssl-dev=1.1.0g-2ubuntu4.1

Why does this need to happen?

You likely had PHP 7.2.7 from the ondrej repos but now have 7.2.5 from the official repos. However, libpcre3 and libssl are probably still on later versions from the other repo.

So those commands should fix the issue for you and you should be able to successfully install php7.2-dev.


"Install" option is not appearing in ubuntu software center in ubuntu 13.04

I think you are in the following case, please correct me if I am wrong:

For most programs you do see a “Install” button. Try for instance for The Gimp or for VLC.

For some particular programs, you cannot install it right away. This is probably the case for Flash or for Oracle Java, for instance. This is because you have to activate the partners' repositories.

To do this, please click on “Use this source”, then “Install should appear”. Maybe you have to relaunch the Software Center. Another method is to launch a program called “Software & Updates”. There, go to the “Other Software” tab and check both “Independent” and “Canonical Partners”.

I hope it works!


sudo: unable to stat /etc/sudoers.d/README: No such file or directory

This is what it should be:

ls -l /etc/sudoers.d/
total 4
-r--r----- 1 root root 958 feb 10 20:20 README

so to restore permissions do a:

sudo chown root:root /etc/sudoers.d/README
sudo chmod 440 /etc/sudoers.d/README

From comments: the level above seems wrong so do this 1st:

ls -ltr /etc | grep sudoers.d
drwxr-xr-x  2 root root       4096 mrt 20 08:32 sudoers.d

so to restore permissions do a:

sudo chown root:root /etc/sudoers.d
sudo chmod 755 /etc/sudoers.d


pyqt Snap builds successful, fails to run

There are currently two bugs related to snaps which block this, both are in the works to be fixed though:

https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1576411
https://bugs.launchpad.net/ubuntu/+source/snapcraft/+bug/1576282

Can you check the contents of your snap and see if there are any encodings modules shipped?


I need drivers for nvidia geforce gtx 745. Card doesn't work correctly

Yesterday, I found a solution.

My steps:

Open terminal CTRL+ALT+T
Go to Downloads (or Pobrane if you are from Poland) directory and download installation script using below commands:

$ cd ~/Downloads

$ wget http://us.download.nvidia.com/XFree86/Linux-x86_64/346.35/NVIDIA-Linux-x86_64-346.35.run

Remove installed nvidia drivers

$ sudo apt-get purge nvidia*;

Reboot
After rebooting, switch to console mode using CTRL+ALT+F1, and login
Stop graphic session using (I use lightdm) one of this:

$ sudo service lightdm stop ## For the default LightDM

$ sudo service gdm stop ## For the Gnome GDM

$ sudo service mdm stop ## For the Linux Mint default MDM

Give executable rights and run installation script

$ chmod +x ~/Downloads/NVIDIA-Linux-*.run && sudo sh ~/Downloads/NVIDIA-Linux-*.run

After that, reboot your os.

If this steps don't work for you, uninstall nvidia driver using command:

sudo sh ~/Downloads/NVIDIA-Linux-*.run --uninstall

I use this tips.

After reboot works for me, and detects my two monitors.

Good luck!


max fan speed rpm is not correct on dell alienware m14xr2, how to fix it?

upgrade to kernel 5.3 fix my problem not more system shutdown due to high temps, i update using

http://ubuntuhandbook.org/index.php/2017/02/ukuu-install-latest-kernels-ubuntu-linux-mint/

the problem is a bug in kernel pstate and thermald are not working so cant reduce the cpu performance under high temps


My Ubuntu VM keeps wanting to reinstall Ubuntu!

You have to disable the CD/DVD option in virtual box settings or changing the boot-order to hard-disk as the first option will make you to boot into your installed Ubuntu OS.

On your virtualbox right-click on the Ubuntu virtual machine and select the Settings option.
Go to system tab and change the boot-order like in the below screenshot.And finally select OK option.

Now start your virtual machine.It will surely boot your installed Ubuntu OS.


How to install this kernel module to use IpTables in Ubuntu 19.04?

Based on that bug report on Launchpad :

Do this following command :

sudo modprobe nf_conntrack_ipv4

you can verify that nf_conntrack_ipv4 mod is loaded by doing this command :

lsmod | grep nf_conntrack_ipv4


I have two partitions on Windows 10 (C & D), but I want to install Ubuntu 16.04 on Drive C & delete Windows 10 but keep all files in Drive D

The best thing to do first is to backup your files on an external hard drive. This is the best way to be sure that nothing will happened to your files during the process.

Easy way:
If you backup all your files on an external hard drive, the easiest way would be to "replace Windows by Ubuntu"

Hard way to keep both partitions:
For your configuration, you will need to go thought the manual partition manager (on "something else" if my guess is right as of what do you see).
Then, on your primary partition (the one which will have the same size as your Windows "C" drive (linux do not recognize drives as "C" or "D")), right click and select "format". Choose "ext4" as the file system and "/" as the mount point.
Choose "/dev/sda" as your grub point.
Then validate.


Unable to Dual boot Ubuntu 15.10 with windows 10

The best solution is to use a boot repair cd.

http://sourceforge.net/projects/boot-repair-cd/?source=recommended

Make a bootable usb and boot the pendrive and click on repair(recommended).
It should work fine.


Is there a standard procedure I should follow to troubleshoot this?

You start by looking at log files.

Hit super and start typing log file viewer. Logs ending on a dot and a digit are older logs. Most of these logs are specific to certain events (like boot.log only is useful when dealing with starting and stopping your system). syslog is a log file that shows system errors so is always a good start.
Then there is .xsession-errors in you home directory. Messages related to your GDM sessions are stored in this file. grep error ~/.xsession-errors will show lines that contain an error. There might be something useful in here. If you find anything useful/related to your problem search for it on askubuntu.com or google (most of the errors you find will have happend to others).

If it is random it might be related to your graphics card crashing your X server. Check that you have installed the recommended driver version and not the newest or an experimental driver. If this is the case it is best to check launchpad for bugs and if it is a new problem file a bug against this.


I got this working by using Ubuntu boot repair from a live CD. This fixed grub, and I was able to then boot ubuntu from my SSD using nomodeset.


My Aquaris E4.5 doesn't connect via USB after OTA-10

Now I fixed the problem: you have to use gmtp on the laptop


After command:

sudo gem install rb-readline

I was still getting an error.

I added to the Gemfile

gem "rb-readline"

And it worked.


Dell XPS13 9350 broadcom wireless still does not work after upgrading to kernel 4.4

Kernel 4.4 has the driver,

e3c92cb brcmfmac: Add support for the BCM4350 PCIE device.

but you also need the firmware file. You need /lib/firmware/brcm/brcmfmac4350-pcie.bin. One place to get the firmware is here.


kubuntu move encrypted home dir to new SSD (keep encryption)

In order to keep your encryption, you simply need to ensure that all of the data that was previously in /home is copied over to your new /home.  That includes /home/$USERNAME as well as /home/.ecryptfs.

You don't need to encrypt your new formatted SSD.


Libreoffice now get error when asked to open

Maybe try to reset your profile.

Close LibreOffice and run:

mv /home/jeff/.config/libreoffice/ /home/jeff/.config/libreoffice.bak

...and try again.


well i found a fix, if anyone is having the same issue with newer hardware and sound

follow the information in these links:

https://www.pantz.org/hardware/motherboard/intel_skylake_with_an_asus_z170-ar_and_ubuntu_linux_14.04.html

https://wiki.ubuntu.com/Audio/UpgradingAlsa/DKMS


Can't install ubuntu on surface pro since keyboard/touch doesn't work

I found that bluetooth keyboards worked fine and were my saving grace when I was installing ubuntu on my surface 2, so it may be your specific keyboard that is causing issues. Maybe try a different bluetooth keyboard?

I was using a generically branded Adapt ADK-100 keyboard.

Alternatively, you can try turning on the on screen keyboard. To do this, you'll need to boot into live mode, start the OSK from the accessibility settings, and then launch the install.

If you're using the microsoft surface keyboard, then it's not bluetooth, it uses their special side connector, and needs a kernel patch to get it to work (or did, the last few updates I've done haven't required a manual kernel rebuild, so we may now be ok).

The patch in question:

http://ubuntuforums.org/showthread.php?t=2183946&page=2&p=12844865#post12844865

To build and install this kernel patch, follow these instructions:

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

ignore the fakeroot debian/rules editconfigs line, and at that point instead go and modify the files as per the ubuntu forums code block, then continue with the process.


How to write a shell script that runs commands in separate terminals?

You can do it just by calling three instances of your terminal emulator and telling them to stay open with exec bash

Example:

#!/bin/bash
mate-terminal -x bash -c 'uname -r; exec bash'
mate-terminal -x bash -c 'uname -m; exec bash'
mate-terminal -x bash -c 'uname -s; exec bash'

The first terminal pops up with 4.4.0-42-generic second one with x86_64, third one with Linux...

If you're using vanilla Ubuntu, then replace mate-terminal with gnome-terminal or whatever app you use. Replace uname -[rms] with your commands. You may find you need to use -e and not -x for gnome-terminal.

Help from this answer posted by Chaos


I've not configured 4 displays with a single card but some of the things you will need to have would be:

Native nvidia driver.  Preferably the latest which is 290.10
You will need to enable TwinView and you can see the options here: http://us.download.nvidia.com/XFree86/Linux-x86_64/290.10/README/index.html

Normally for Twinview you would set up Metamode for 2 displays, but general I don't see any reason why you wouldn't be able to do the same for 4.

Once Twinview is set up if you are running 2 pair of displays you would also need to enable Xinerama in /etc/X11/xorg.conf

Option Xinerama "on"


I have solved my problem by forcing a full composition pipeline

using this command to test it

nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"

and I made the changes permanent by adding this command to Session and Startup

nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"

Solution was found in this wiki

Worked Well for my GTX260 running Xubuntu 14.04 :D


This tool was discontinued

More info here

Please refrain from using a discontinued tool because there won't be any bug fixes provided in case you face an issue

Also as it is mentioned in the post, linux already includes necessary drivers, so you should not face any problems without proprietary ones


Automating SSH login gives unresponsive remote-shell, dropping back to client-terminal (without errors)

I had a problem similar to this. The issue was that my remote .bashrc file had some lines to do nothing if not running interactively.


How do I remove the gap around maximized Emacs frame on KDE?

This is more of a workaround than a fix. As proposed by Bastian Beischer in this thread you can change how the window obeys the changes in geometry.
As some names of menu entries have changed, here is an updated version:

Right click on the title bar.
Select More Actions → Special Window Settings
In the Size & Positions-Tab activate Obey Geometry Restrictions
Set the value in the drop-down list to Force and keep the radio button next to it on No

This solved the problem for me. It worked for all instances of Emacs on my machine and did so persistently after restart.
It also works on Ubuntu 16.04 with Plasma 5.5.5 and Emacs 25.2.
Edit:
I tried to figure out what the difference between Special Window Settings and Special Application Settings is. This answer over on SE Unix&Linux suggests this change would only apply for the specific window, but I could not reproduce this. For me it changes for all windows.


ubuntu 16.04 won't shutdown : Reached target Shutdown[ok] also ubuntu 14.04 won't shut down : killing all procces [fail]

Maybe the swap is still active when reaching "Target shutdown";
My solution was to force swap deactivation before reboot :

 swapoff -a
 swapoff /dev/md6

after that, the reboot went fine for me without any pause.


How to make screen resolution permanent ubuntu 16.04 LTS

To automate your script, put the following in a script and give it x-bits (chmod +x file)

#!/bin/bash
Display=$(xrandr | grep VGA)
ModeSet=$(echo "$Display" | grep '1368x768')

if [[ "$ModeSet" != "" ]]
then
  echo "Mode already set:  $Display" | cut -d'(' -f1
else
  xrandr --newmode "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync
  xrandr --addmode ${Display%%\ *} 1368x768_60.00
  xrandr --output  ${Display%%\ *} --mode "1368x768_60.00"
  echo -e "Mode set: \c"
  xrandr | grep VGA | cut -d'(' -f1
fi


Unity doesn't load - only desktop wallpaper in 16.04

Boot up normally. When you see the desktop background, press ctrl + alt + f1

You should then be at the terminal. Login.

Then run these commands:

rm -r ~/.config
rm -r ~/.compiz
rm ~/.Xauthority
sudo reboot

If that doesn't work, try:

dconf reset -f /org/compiz/
setsid unity
sudo reboot

If it still doesn't work, try the answer from here: Unity doesn't load, no Launcher, no Dash appears


Ubuntu 14.04.4-How to avoid automount of devices

man (1) mount

Edit /etc/fstab and add the option "noauto" to the 4th column, something like that:

/dev/sda1      /foo/bar    ext4  rw,user,noauto  0 1

That's all there is. ;)


How to install Win7 with dual boot in my ubuntu 12.04

You will need to

backup the $HOME directory and everything beneath it to an external  device
verify the backup is good, install Win7, completely erasing Ubuntu in the process
Once Win7 is installed, then reinstall Ubuntu
Import your data from the external backup and change the ownership so you can use it

Why? Because Windows will stomp all over Ubuntu when you install it.


How To Disable the "Window not responding" Dialog

This is a known issue. See "Program" is not responding when debugging in gdb.

Judging from the other bug report <something> is not responding window is constantly showing when debugging a program, which appears to be related, the problem seems to be fixed in gnome-shell version 3.28.4.

Run apt-cache policy gnome-shell to know your installed version.

If you are using an old version, try to upgrade your Ubuntu18 by running:

sudo apt update
sudo apt dist-upgrade

However, this issue remains opened for gdb debugging.

As an alternative, delay "Window not responding" Dialog could be a good solution. How to increase waiting time for non responding programs? relates to this, but I couldn't find details on how to do it.


How can I fix it so my system doesn't crash whenever i go to "System Settings > Details"?

It is a bug https://bugs.launchpad.net/gnome-control-center/+bug/1179659. There is a patch posted, but hopefully the fix will be pushed to Raring.


How can I install Skype in ubuntu 17.04?

I have Ubuntu 17.04 and I just downloaded Skype and it worked.
These are the steps I took.

Part 1-Download

Go to https://www.skype.com/en/get-skype/ .
Wait for the options to populate, they should be the following.

Get Skype for Linux DEB
Get Skype for Linux RPM
Get Skype for Windows
Get Skype for Mac

Select Get Skype for Linux DEB. (Note: DEB refers to package type not distro. Ubuntu uses DEB packages.)
Download from the popup window.

Part 2- Install

Open Terminal
Go to directory of the package, or cd Downloads/
Type sudo dpkg -i skypeforlinux-64.deb
Type your password. Program should begin to install.

Part 3-Test/ Open Skype

Click Ubuntu search icon and type Skype.
Click Skype icon and you should be all set.


Any SATA hard drive should do just fine. Even laptop SATA hard drives are compatible with desktop PCs.

One thing you need to make sure is that if you have a SATA III compatible motherboard, don't waste your money on SATA II hard drives. Same principle goes for SATA II and SATA I.


Updating PHP to the latest version in Ubuntu 10.04 server edition

Because LTS versions are more focused on stability, PHP is not always updated to the latest source available on http://php.net. The idea is, if no new features are introduced, there are less chances of creating (security) bugs. However, if a security issue has been discovered, patches are applied.

The latest PHP version as of now in 10.04 Lucid is 5.3.2-1ubuntu4.14, where 11.10 Oneiric is 5.3.6-13ubuntu3.6. FYI, that is not a LTS version.

If you have no experience with building packages in this way, I suggest you not to compile your own packages because the Ubuntu packagers certainly know better the stuff than you.

For the configure options used, you can explore the debian/rules file which can be found in the source tree from apt-get source php5.


It's not quite the same topic, but some people make long lists of aliases for the most used DOS commands because they, for example, often type dir in a Linux shell:

alias dir=ls


apt-get installation, path directory and running dependency programs

To find out where the libraries are installed, you could try dpkg -L samtools and the same for bowtie


Is it risky to install KDE on Ubuntu alongside Unity and Gnome?

I think it should work. You can try installing a package and if it doesn't work, you can remove the packages installed. Take a look at your APT log after you have installed it. All packages that were installed along with KDE will show up as one entry. To show it, just type this at the command line:

cat /var/log/apt/history.log

If your desktop is broken, press Ctrl+Alt+F1 to login. You can then remove the installed packages with:

sudo apt-get remove package1 package2 ...

Remember, even if your desktop is broken you can still fix it from the command line. The trick is knowing how to undo things.


SSH Public Key - No supported authentication methods available (server sent public key)

Problem solved:

Looks like there was a problem with my public key file. PuttyGen will create a public key file that looks like:

---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20121022"
AAAAB3NzaC1yc2EAAAABJQAAAIEAhGF6GIuMY8FJ1+CNApnSY1N2YSlkYz72Yvwu
a6N1nFpBklz1+dsIMg4rcTLcF34M/tW5Yz+NUDAw2AEbxQ32FPgw7sAOIXktkYOH
tr7mmimiTjkoSCrJh1kqalPSpi8rglT/Bp67Ql2SZwvUFfMzHISryR0EZC4rXP/u
vObrJe8=
---- END SSH2 PUBLIC KEY ----

However, this will not work, so what you need to do is to open the key in PuttyGen, and then copy it from there (this results in the key being in the right format and in 1 line):

ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAhGF6GIuMY8FJ1+CNApnSY1N2YSlkYz72Yvwua6N1nFpBklz1+dsIMg4rcTLcF34M/tW5Yz+NUDAw2AEbxQ32FPgw7sAOIXktkYOHtr7mmimiTjkoSCrJh1kqalPSpi8rglT/Bp67Ql2SZwvUFfMzHISryR0EZC4rXP/uvObrJe8= rsa-key-20121022

Paste this into authorized_keys then it should work.


Failure to forward DNS requests with dnsmasq to a jump server

From man ssh:

-L local_socket:remote_socket
         Specifies that connections to the given TCP port or Unix socket
         on the local (client) host are to be forwarded to the given host
         and port, or Unix socket, on the remote side.

DNS commonly uses UDP, not TCP. Whilst TCP can be used, and dnsmasq has limited support for this, it's not given that your remote DNS server supports (or are configured) for this.


How to mount btrfs subvolume, it isn't working / mounting

Looks like bug - I've stumbled across a similiar problem: https://unix.stackexchange.com/q/190698/34801

Mounting with subvolid= works.

This should work:

/dev/mapper/fs--1--vg-root /srv            btrfs   defaults,compress=zlib,subvolid=260 0       2


Exactly for this was the rsyslog daemon written. It comes preinstalled with Ubuntu, but it needs some customization to do what you want. It can read from log files and merge them, collect log messages from other systems over the network, and route them to whatever you want. It is very, very powerful. Getting started with it is, however, shockingly simple, as Jacob says.

Follow the configuration examples from the website and have fun.


Alsamixer outputs only in mono (0M or M0) : How to get stereo output?

The solution turns out to be toggling individual output channels. You can mute left and right channels independently by using , (or <) and . (or >) respectively.


MySQL error: The partition with /var/lib/mysql is too full!

I finally fixed it by running sudo /etc/init.d/mysql start. I just had to insert sudo in front of the command.


How do I update an Intel motherboard BIOS using Ubuntu without a keyboard?

Well, I took my time just for the fun of it to check all NUC Bios and Driver updates. It just so happen they use the same motherboard and offer the same BIOS Updates.

You can see the webpage where they all send me HERE

Since you do not have a keyboard, the option to press F7 when the system boots to read a pen drive and the Bios file in it is out of the question. This way only works when you boot the computer, after pressing the corresponding key it will read any pen drive you have inserted and look in the root folder of the pen drive for a BIOS file format for Intel.

Your only way is to Burn a CD with the BIOS update and boot from it. I will be assuming the computer tries to boot from a CD/DVD or a Flash Drive before going for the Hard drive. If this is not the case and it boots directly to your hard drive then you really need to get a keyboard since you are out of options.

You will need to get the GKPPT10H.86A.0036.BI.ZIP but for future reference, try to get either the file that ends in .ISO, .BIO or the one that ends in .ZIP. If you had the ISO file you just burn it to a CD/DVD and boot from it. In this particular case there is no ISO option.

The ZIP one, you decompress but here is the problem, the files need to be stored in a bootable CD/DVD or USB Flash drive in order to run (Again, assuming the BIOS reads this devices before the HDD). So you would need Windows to make it bootable as stated by the Intel Bios Update Instructions for this motherboard. After making it bootable you can proceed to copy the files to it and then later boot from it. The whole update process will be automatic.

Now that we have seen 2 options which depend slightly on having a keyboard or having the system boot into other devices before going to the HDD, we can now fall into the Bios Recovery option.

The Bios Recovery option found in the Bios Updates is just in case your BIOS fails to update but it is also used to update your Bios to that specific version, in this case, it will be updated to the latest. More information HERE

The part that you need to know is:

Download the file that ends with .BIO. In this case it is the GK0036.BIO
Copy the BIO file to a CD/DVD (Either External or Internal CD/DVD unit).
While leaving the CD/DVD connected to the PC, boot the computer. If the computer goes to the CD/DVD first, before the HDD, the Intel motherboard will see the BIO file and update the BIOS.
If you happen to have a system that boots directly to the HDD then follow the instructions here to remove the jumper and make it boot first from other devices.

By default, this motherboard will first read any other device before going for the HDD. So if you have not yet changed anything in the boot process in the BIOS, you don't need to worry.


Which logfile(s) log(s) errors reading a cd?

Open a terminal and run:

tail -f /var/log/syslog

Leave the terminal open and drop the CD in the tray, let it read and eject. You should see the messages and the error(s) in the terminal. Get out of tail with Ctrl+C.


How to get the hierarchical menus with "launchers" for all applications in Ubuntu 20

You can gain an Applications Memu functionality by installing a Gnome Extension.  The Applications Menu extension might be just the extension you are looking for.

Make sure the Gnome Shell Integration browser add-on is installed:

$ apt search chrome-gnome-shell
Sorting... Done
Full Text Search... Done
chrome-gnome-shell/focal,focal,now 10.1-5 all [installed,automatic]
  GNOME Shell extensions integration for web browsers

If not installed install with:

sudo apt install chrome-gnome-shell

Other extensions can be found on the Gnome Extensions web site.

From my experience the fewer Extensions to meet your needs the better.


How do I upload videos using the Ubuntu One apps?

The Ubuntu One apps for both Android and iOS both allow the upload of videos. However, there is not yet the option to automatically upload videos as there currently is with photos.

For Android:
If you wish to upload a video you can easily do it manually:

Open the Ubuntu One app and press the add button

Select Add video and navigate to the video file that you wish to
upload.


Ubuntu 10.04.4 - time length and support

Well, I guess Ubuntu Advantage would be a good place to start if you are willing to pay for services. What you're really asking for is a snapshot of all the repos, which is no different than mirroring, which you can do yourself for free.

It's not as if the images are destroyed, it's just security updates cease after a while, at which point you would have to scramble and perhaps confine it to a VM with only the bare necessities open to the world, even then, that's a massive headache.

Everyone's apps grow roots, you'd be better off to begin the effort now to port whatever it is you're dependent on forward, perhaps even package it. Good luck.


Is mirroring of Ubuntu 16.04/16.10 system disk possible? If not, why?

Yeah, there's no problem at all with mirroring the Ubuntu install disk.

Some quick google-fu brings up an Arch Wiki article with rather explicit instructions for how to set up RAID 1. However, the caveat being these instructions are written for Arch, but the procedure is still generally the same.

Furthermore, instructions written specifically for Ubuntu (14.04 in this case) are also available on this very site! The procedure using mdadm is really the same no matter what guide you follow.


plymouth should be stopping on its own when the boot is finished.. on a GUI that is when kdm/xdm/gdm/lxdm start. On servers, that is when runlevel 2 is finished (ls /etc/rc2.d). If it is not stopped, this is likely a bug in the bootup, and should be reported with

apport-bug plymouth

Additional Resources:

How do I report a bug?


Is it possible to use empathy 2.32 on gnome 2.30?

I just tried to build empathy from Maverick for Lucid, but it's not possible due to unmet build dependencies. The easiest other solution that I can think of is just to install the Maverick package using apt, and making use of pinning to keep the impact on your system to the minimum. This will require you to upgrade GTK+ and some other system components, but it's not so bad and works just fine for me. YMMV though, I'm not responsible if you break your system.

Here's how I just did it.

Open up /etc/apt/sources.list, and add Maverick sources at the bottom:

deb http://archive.ubuntu.com/ubuntu maverick main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu maverick main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu maverick-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu maverick-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu maverick-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu maverick-security main restricted universe multiverse

(or use your preferred mirror). Don't do anything with apt yet. Next we'll open up the apt pinning file /etc/apt/preferences and tell apt not to install packages from Maverick (see man apt_preferences for more):

Package: *
Pin: release a=maverick
Pin-Priority: 1

Now run aptitude update to get the package indexes from these new sources you just added. Next call aptitude install empathy/maverick-updates to instruct aptitude to explicitly pull the package from Maverick instead of Lucid (the default). aptitude will tell you it wants to upgrade to a number of packages from Maverick:

Upgrade the following packages:
gconf2 [2.28.1-0ubuntu1 (lucid, now) -> 2.31.91-0ubuntu3.1 (maverick-updates)]
gnome-icon-theme [2.28.0-1ubuntu1 (lucid, now) -> 2.31.0-0ubuntu1 (maverick)]
libdbus-glib-1-2 [0.84-1 (lucid, now) -> 0.88-2 (maverick)]
libdbusmenu-glib1 [0.2.9-0ubuntu3.1 (lucid-updates, now) -> 0.3.16-0ubuntu1 (maverick)]
libgail18 [2.20.1-0ubuntu2 (lucid-updates, now) -> 2.22.0-0ubuntu1 (maverick)]
libglib2.0-0 [2.24.1-0ubuntu1 (lucid-updates, now) -> 2.26.0-0ubuntu1 (maverick)]
libgtk2.0-0 [2.20.1-0ubuntu2 (lucid-updates, now) -> 2.22.0-0ubuntu1 (maverick)]
libgtk2.0-bin [2.20.1-0ubuntu2 (lucid-updates, now) -> 2.22.0-0ubuntu1 (maverick)]
libnotify1 [0.4.5-1ubuntu4 (lucid-updates, now) -> 0.5.0-2ubuntu1 (maverick)]
librsvg2-2 [2.26.3-0ubuntu1 (lucid-updates, now) -> 2.32.0-0ubuntu1 (maverick)]
librsvg2-common [2.26.3-0ubuntu1 (lucid-updates, now) -> 2.32.0-0ubuntu1 (maverick)]
libsqlite3-0 [3.6.22-1 (lucid, now) -> 3.7.2-1 (maverick)]
libtelepathy-glib0 [0.10.1-1ubuntu2 (lucid, now) -> 0.12.0-0ubuntu1 (maverick)]
nautilus-sendto-empathy [2.30.3-0ubuntu1 (lucid-updates, now) -> 2.32.1-0ubuntu1 (maverick-updates)]

Agree to this if you don't think it's too bad (like I said, worked for me), and you'll end up with a newer Empathy.

Good luck!


Can you help me mount a new home directory or similar?

you can easily in simple method, just create another VDI hdd in your virtual machine and attach it to your machine, then boot your ubuntu, once you login you can see the icon of an external hdd on your unity launcher.

click it and thus it's mounted now so you can easily copy or move whatever you want to it.

This tricky method as you are using external hdd on your machine.

If you want to make this persistent you have to add it  to the /etc/fstab.

 UUID=/your-new-hdd-UUID /mounting-point FileSystem-used    defaults    0   0


How to increase phpmyadmin upload file size

To increase MySQL phpmyadmin import file size in Ubuntu 16.04 or newer, follow these steps. In the newest Ubuntu version you can have either PHP 5 or PHP 7.

Step - 1: open php.ini of the appropriate PHP version(s).

For PHP v5.0

sudo -H gedit /etc/php5/apache2/php.ini

For PHP v7.0

sudo -H gedit /etc/php/7.0/apache2/php.ini

For PHP v7.1

sudo -H gedit /etc/php/7.1/apache2/php.ini

For PHP v7.2

sudo -H gedit /etc/php/7.2/apache2/php.ini

For PHP v7.3

sudo -H gedit /etc/php/7.3/apache2/php.ini

Step - 2: Now need to increase below parameters in the php.ini file.

memory_limit = 1500M

post_max_size = 1500M

upload_max_filesize = 1500M

Please Note : post_max_size should be larger than upload_max_size

Step - 3: Now you need to restart your apache server to effect changes.

sudo service apache2 restart


Activate Yaru on Ubuntu 18.10 after upgrade?

sudo apt-get --reinstall install ubuntu-session
sudo apt-get --reinstall install yaru-*

Then use Appearance tab in Gnome Tweaks to set Applications, Cursor, Icons, Sound to "Yaru" (note there's also Yaru-dark available for Applications if it suits you)


How can I create an icon on the launcher to disable keyboard + rotate the screen?

Script + launcher to rotate the screen and toggle Keyboard, in one step

The script below will both

rotate (toggle) your screen (either left or right)
disable (toggle) the keyboard you defined to be disabled

The script

#!/usr/bin/env python3
import subprocess

# --- set the name of the screen, and the rotate direction and the id of your keyboard below
screen = "DVI-I-1"
rotate = "left"
disable = ["9", "14"]
# ---

matchline = [
    l.split() for l in subprocess.check_output(["xrandr"]).decode("utf-8").splitlines()\
    if l.startswith(screen)
    ][0]
s = matchline[
    matchline.index([s for s in matchline if s.count("+") == 2][0])+1
    ]

newset = ["normal", "1"] if s == rotate else [rotate, "0"]
subprocess.call(["xrandr", "--output", screen, "--rotate", newset[0]])
for item in disable:
    subprocess.call(["xinput", "set-prop", item, "Device Enabled", newset[1]])

How to use

Copy the script into an empty file, save it as rotate.py
Copy the launcher below into an empty file, save it as rotate.desktop

[Desktop Entry]
Exec=python3 /path/to/rotate.py
Icon=preferences-desktop-keyboard
Name=Rotate & Disable Keyboard
Type=Application

In the line Exec=, replace the /path/to/rotate.py by the real path to the rotate.py script. Make the .desktop file executable. It will show an icon like:

Now you have to find out two things:

a. the name of your screen (the one you want to rotate): Run in a terminhal:

xrandr

Look for a line with "connected" in it. The first string is the screen name, looking like the example in the script. (could also be VGA-1 or something like that)

b. The id of your keyboard, the one to be disabled. Run in a terminal the command:

xinput -list

as described in this answer.
Enter the found items in the head of the script:

# --- set the name of the screen, and the rotate direction and the id of your keyboard below
screen = "DVI-I-1"
rotate = "left"
disable = ["9"]
# ---

Now you're done, either use the .desktop file directly from your desktop or move it to ~/.local/share/applications and drag it to the launcher from Dash.

If you do the latter, note that after rotating the screen, the icon will be unresponsive for appr. 7 seconds.

Have fun!


Format of IPv6 addresses in the netstat output

Because of "ss" is still buggy in some systems, I prefer netstat too.

The solution for the problem is the option -W(Ubuntu) or -T (Opensuse).


According to this video this seems to work.

I'd create a bootable USB stick and try it out.


Keyboard not responding after login. Ubuntu 18.04 LTS

I was having the same problem and my keyboard is working now-- someone suggested in another post that turning on the screen keyboard, turning on caps lock and then turning it back off would fix it and I think that's what did it.


The easiest way is to install the package ubuntu-restricted-extras by clicking the button below:

This will install a bunch of useful stuff, because it is a meta-package, like Flash, MP3 capability, mscorefonts etc.

Connect to the internet. Open the software center and search for ubuntu-restricted-extras and install it.

You will have to accept some licences for non-free stuff.


Actually Netem can do better then 1ms if you increase the Hz config of your kernel (per default it is usually at 1000 which explains the 1ms). To figure out how to increase, just search the Internet for "Change linux kernel timer".


Not able to use wifi after installing ubuntu on bootable external hard disk

It's most likely that you didn't install proprietary drivers in the initial install.
just get a hold of your ubuntu.iso and mount it like this,
sudo mkdir /media/cdrom
cd ~
sudo mount -o loop [path-to]ubuntu.iso /media/cdrom

The above code will mount your iso as loopback cd-rom device...
now,
open software & updates and look for the install from cd-rom and then install your wireless drivers from there.
good luck


Is it possble to install .pkg.dmg in Ubuntu

No, this software is for a Mac OS system only, and will not be usable in Ubuntu.


how to access windows partitions from linux terminal?

They are normally mounted on /media/USERNAME/MountName
For example, I have a windows drive which has the label "xtreme". This partition is mounted on /media/cyrex/xtreme where cyrex is my username.
If you are in the Unity Desktop you should see something like in the Unity launcher:

It looks like a hard drive, if you click on it, it will automatically mount the partition on /media/USERNAME. In my case, as I mentioned above, when I clicked on it, it mounted on the folder /media/USERNAME/xtreme (As mentioned before).
Now, if you want to mount that sda2 somewhere else, for example in /mnt, you can simply type in the terminal:
mount /dev/sda2 /mnt
Note that the 2 in sda2 means it is the second partition on that drive, which might mean it is the D: in your windows system (It depends on the other the hard drive was partitioned in the first place).
So if you have a C: and D: drives, assuming both are sda1 and sda2 and you want to mount them in /media/rami/ then you would:

Create a folder for each (So you know which one is which)
mkdir /media/rami/cdrive
mkdir /media/rami/ddrive

Mount each one to the already created folders
mount /dev/sda1/ /media/rami/cdrive
mount /dev/sda2/ /media/rami/ddrive

note that there are many other ways of doing it, like setting the partitions to mount automatically via /etc/fstab.


I just found the solution. There is a hardware wireless switch in front of my laptop, which was switched off accidentally.

I hope this will be useful for others with similar problem. Thanks for all the helping!


Are Mirror Servers Other Than Default Safe To Use For Updates?

Yes, it is generally safe.

Apt has the packages signed, and verifies those signatures.

Ubuntu is based off Debian, who designed the package system. If you want to read more about their package signing, you can do so at https://wiki.debian.org/SecureApt.

I suppose a mirror could not tell you about updates when they are released, but you would likely notice that you were getting no updates after a while.


How to remove graphical noise at ThinkPad boot splash?

Ah, figured it out myselfs.
For some hardware, it's necessary to set some kernel parameters, in order for the boot process to work correctly.

In this case, nomodeset.
It's called a corrupted splash screen.

To fix it, open /etc/default/grub, and add nomodeset to GRUB_CMDLINE_LINUX_DEFAULT:

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
GRUB_CMDLINE_LINUX=""

and then, run:

sudo update-grub

If nomodeset creates bootup problems, alternatively just remove splash from GRUB_CMDLINE_LINUX_DEFAULT.


How to quickly search recently opened text files in gedit?

Open the Open file picker (dialog box).
Select the "Recent" folder.
There is a search feature on that "Open file picker", which filters the recent files.
...and if the "Recent" folder is not showing for any applications:
gsettings set org.gnome.desktop.privacy remember-recent-files true


Well, after a long time I was able to find the cause of the problem and the solution for it. The issue was caused by middle mouse button emulation (clicking left and right buttons at the same time). The solution was to disable this using the following command:
 gsettings set org.mate.peripherals-mouse middle-button-enabled false


Setting "$PATH" environment for Unix "which" command

The path is incorrect. /home/david/Bin/red/RED-III.52-Tools-Files is the source of the RED ESP program that is looking for GAMESS.

Instead, add the PATH=$PATH:/home/david/Bin/gamess to your bashrc. The path that was added to your bashrc file was essentially telling the program where to find itself.


How do I erase all data on ubuntu 14.04?

Your options are really discussed here:
https://help.ubuntu.com/community/Installation

You could do network, you could repartition your disk and install to the new disk from your current installation, the mininal install is only 40Mb if you have something which could hold that much.


Can't play encrypted DVD on internal DVD-drive, but OK with USB-DVD-drive

Well I found myself the answer by launching VLC from the terminal, that gave me:

main input error: ES_OUT_RESET_PCR called

Googling it, I found this: How to play DVDs after installing the recommended libraries?

I had to change the region code (though I never actually changed it...) to "2" (Europe) by installing regionset:

sudo apt-get install regionset

then

regionset /dev/sr0

Confirming I want to change the region code for this DVD-drive, and setting it to "2".

I guess that doesn't explain what the problem was due to, but anyway, it's working now :)


How to get server MOTD on non-server install

Posting this as an answer since Stefano Palazzo thought it would be a good idea.

The dynamic MOTD is part of the 'landscape-common' package. So just install it using:

sudo apt-get install landscape-common


Remove non-existent Windows loader from GRUB

As far as I know, Windows 7 boot process uses not only MBR, but also VBR (volume boot record), which is contained on the first 512 bytes of the partition.

So I would try to zero all sda1, e.g.

dd if=/dev/zero of=/dev/sda1 bs=1M

And run update-grub again.


JDK issue, terminal won't recognize commands (javac, javah ect) when JDK is installed.

in ~/.bashrc add something like

export PATH=$PATH:/home/username/jdk1.8.0_31/bin

and logoff/logon (or simpler

. .bashrc

Sometimes it's usefull too to set JAVA_HOME to /home/username/jdk1.8.0_31/ path


PCManFM bookmarks not being respected by other applications

I've managed to find a workaround. Looks like there's an issue with GTK 3.0 and PCManFM.

Rename /home/username/.config/gtk-3.0/bookmarks to bookmarks.old
Make a symlink:

ln -s /home/username/.gtk-bookmarks /home/username/.config/gtk-3.0/bookmarks

If the symlink does not survive a reboot, try the symlink with a period before the file name:

ln -s /home/username/.gtk-bookmarks /home/username/.config/gtk-3.0/.bookmarks

Kind of odd though that the symlink did not survive without the period:

You can find more info at the bug report:
https://bugs.launchpad.net/ubuntu/+source/pcmanfm/+bug/1208681


Please get a temporary wired ethernet connect, open a terminal and do:

sudo apt-get remove --purge bcmwl-kernel-source
sudo apt-get install linux-firmware-nonfree

Detach the ethernet, reboot and tell us if it's working.


thunderbird cant connect to e-mail-provider

Ok , here's what you need to do...

enable IMAP
below steps are only for gmail ...
go to mail.google.com
sign in with your id
click on settings on the top right corner and then select Forwarding and Pop/Imap tab
Enable IMAP
then again open ThunderBird
enter your credentials
wait for a few minutes
give acess to thunderbird and you are done....


Try

sudo apt-get --purge remove libreoffice-core

and then

sudo apt-get install libreoffice


Can I share docker overlay2 between two host systems?

It is possible, to share the same folders between to distribution.
In case of the docker daemon, the /var/lib/docker folder can by moved to a different location by modifying the /etc/docker/daemon.json configuration file.
The same is possible for snapd.
However, the versions of dockerd and snapd must be identical!. If the version of the dockerd or snapd is different, the "older" version will fail.


NEVER EVER use your password, stored in a .desktop file. It is terribly unsafe.

Furthermore, you cannot run complicated commands in a .desktop file just like that, but that is another subject.

What to do

You have a few options:

Add gddccontrol to the sudoers file, as explained e.g. here. This can be done if you are sure the application cannot be used to do maliceous things.

Then use

Exec=sudo gddccontrol

in the Exec=-line
Another option is to replace the Exec= line by:

Exec=gksu gddccontrol

In this case, once you click the icon, you will be prompted to enter your password via gui.
You possibly need to install gksu:

sudo apt-get install gksu


Check that you have this line in /etc/hosts:

127.0.0.1       localhost

If it is not there, add it.


External drive keeps getting mounted under /media/ even though I have it in fstab under /mnt

If you are using Ubuntu desktop then it comes with an application which automount usb by itself, anyway if you want more info about it please check https://help.ubuntu.com/community/Mount/USB
As the link states you can change behavior in dconf-editor.


Some general points:

Gnome3 (Ubuntu 11.10 and later - Unity is based on Gnome) uses dconf to store its settings. See the "Lockdown" section in the dconf System Administrator Guide for how to lock settings so that the users can't change them.

Use dconf-editor (package dconf-tools) to see what options are there.
For Gnome2 (up to Ubuntu 11.04) there's the Desktop Administrators' Guide to GNOME Lockdown and Preconfiguration.

In Gnome3 most of the configuration option described there aren't used any more, but as some programs (like Compiz) still use Gnome2's GConf the "Enabling Lockdown" section may still be relevant.

Use gconf-editor to see what options are stored in GConf.
Have a look at PolicyKit and AppArmor for some more general way of to to grant and revoke privileges to/from users and programs

To disable USB storage devices blacklisting the usb_storage kernel module should do the trick, see the modprobe.conf manpage for how to do that.


Natty broke my system! I think I know how to fix it but

Most desktop environments load the .desktop files in ~/config/autostart. I try moving all of those files to another folder and seeing if the desktop environments load. If not, then I'm not sure what else is shared between all the DE's that would make then crash the whole system.


I'm using this driver on Mint 17.3 with a Radeon HD 7450, so I don't think it's the device but rather the version of Ubuntu and AMD not updating their workspace often enough.

fglrxinfo:

  display: :0  screen: 0 OpenGL vendor string: Advanced Micro Devices,
  Inc. OpenGL renderer string: AMD Radeon HD 7400 Series OpenGL version
  string: 4.5.13416 Compatibility Profile Context 15.302

That said, kernel support only seems to go as far as around 4.2, and anything higher requires patching


Have you checked the man page for tar?

Here is the part that I extracted from man page of tar for bz2:

-j, --bzip2
          filter the archive through bzip2

Remove -z from your options and (optionally) add -j to extract your tar archive correctly:

tar -xvjf enginsxt.tar.bz2


Replacing the OpenJDK with the Oracle JDK

Follow these instructions to add the source to your repositories.

In a terminal run:

sudo apt-get update
sudo apt-get install update-sun-jre
sudo update-alternatives --config firefox-javaplugin.so and select the one that's in /opt (This enables Sun Java in Firefox)

With this package you don't have to worry about constantly checking for updates. The maintainer takes good care to keep it current for you. It also adds all the update-alternatives links for you, so it's a lot less work than the above comment on your question.


Shortcut to send telnet session to background conflicts with Cisco terminal shortcut: Ctrl+Z.How do I change that?

You can change the suspend char using stty. In your case, for example, you can disable the "suspend" ability with

stty susp undef

or change it to for example ctrl-E with

stty susp '^E'

and you can check it:

[romano:~/Downloads/mps] % sleep 1000
^E
[1]  + 2681 suspended  sleep 1000
1z [romano:~/Downloads/mps] 20 % fg
[1]  + 2681 continued  sleep 1000
^Z

stty -a gives you all the special chars:

[romano:~/Downloads/mps] % stty -a
speed 38400 baud; rows 24; columns 114; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?; swtch = M-^?; start = ^Q;
stop = ^S; susp = ^E; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc ixany imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

... although after re-reading the question you will probably greatly benefit from a terminal multiplexer, as @Shaun suggested.  My personal favorite is the good old screen, which has a lot of tutorial around, even in the written form which I prefer to videos...


postgresql install on lubuntu 14.04 -i386

You may install PostgreSQL 9.4 with the following command:

sudo apt-get install postgresql-9.4


Ubuntu grepping strings with missing spaces

grep takes '.' as 'any character'. So

grep "t..........t@test.com"

will do that. (Nice to solve crossword puzzle :-)


How to hide all instances of the Desktop?

No, you can not. Just ignore the entry. You can lock the Desktop folder in your home folder to get an error every time you try to save something there. But I am not sure what problems it can bring later.

chmod a-w ~/Desktop


No Sound with Headphones but Sound with Stereo

I posted the same question on Launchpad. Here was the answer I received from Mark Rijckenberg:

  Please run the following command in a Terminal session:

gksudo gedit /etc/modprobe.d/alsa-base.conf

  Using the gedit editor, add this line in the
  /etc/modprobe.d/alsa-base.conf file:

options snd-hda-intel model=dell-m6-dmic

  Save the change, close gedit and reboot to test.

The first headphone jack now works. The second one has the same problem as before. I'm happy and hope that this might help someone else.


need to check if my ubuntu 14.10 has been hacked

It is a very vague question because Ubuntu Security is pretty good out of the box, and if I would have hacked your computer, you would not be able to actually check that you were hacked as I would have installed a rootkit, and the only way to get me out of your computer would be by restoring a back-up since before you were hacked…

The best way not to get hacked is to prevent it.

Turn off all hardware you don't need in the BIOS (this includes: microphones & speakers as they have been shown in the past to be used as communication channels once the PC was hacked, printer ports, USB ports, WiFi, etc)
Don't install Ubuntu in an Internet café, but at a secure Internet behind a NAT router.
Install RKHunter just after installing from DVD
Black-list all hardware you don't need and that cannot be disabled in the BIOS
Secure your system
Always install all updates
Don't let anyone physically touch your computer
Use encrypted communications
Install as little software as needed (and uninstall software you don't use any more)
Don't install software known to track you (flash, silverlight)
Use Firefox with the noscript and modify headers plugins
Disable all cookies. Only allow cookies per site and only for the session.
Make system back-ups so you can roll back to previous versions
Use full disk encryption
Only use the Ubuntu official repositories as Linux isn't invulnerable
…

and then you'll get rid of 99.9999% of hackers.

Fair warning: I didn't do all of the above (just some) but I use the most important security rule of all: Use common sense!


How to use printers in dual-boot environment?

You cannot.
The only way to use a printer connected to a Windows machine would be via Samba. As you have Ubuntu and Windows on the same box (hence the term dual-boot), you cannot have both OS's running at the same time.
Thinking out loud: you could run Windows, install a VM product (VMware, VirtualBox) and create an Ubuntu VM.
That way you can have both OS's running at the same time and you can create the situation as mentioned above.


Can I move the GNOME top bar (and status icons) to the side?

Yes, there is! Since its October update, the Dash to Panel GNOME Shell Extension supports vertical panel orientation.

To install it: first make sure that you have chrome-gnome-shell installed:

sudo apt install chrome-gnome-shell

You also need the GNOME Shell integration browser extension installed. You can install it for Firefox or for Chrome, depending on your choice of web browser.

Additionally, install Tweaks to access the extension's options (and a bunch of other useful GNOME settings):

sudo apt install gnome-tweaks

Now, you can visit the Dash to Panel GNOME Shell Extension webpage, toggle the switch on the right-hand side of the page to ON and click Install on the pop-up.

Then, press Alt+F2, input r and press Enter to restart GNOME Shell to make the extension take effect.
To enable the vertical panel: open Tweaks → Extensions → click the cog icon next to Dash to Panel → set Panel screen position to Left or Right.


I have the same problem with the installation of flashplugin-installer in Ubuntu 12.04.  I have fixed this bug by:

Adding the correct proxy in  /etc/environment  and /etc/wgetrc
Adding the following  line in /etc/sudoers:

Defaults env_keep="http_proxy"

By installing the following:

sudo  apt-get install policykit-1
sudo apt-get install ttf-mscorefonts-installer
sudo apt-get --reinstall install flashplugin-installer

And now the problem is solved.


Evolution doesn't work with university wireless network

I assume all other networking stuff works. My best guess is that your university blocks certain ports or protocols. I don't really see a reason as to why email should be blocked, but I may as an administrator do this to prevent users from using insecure (unencripted) connections to read their mail. Try using a different port. Often mail providers have an encrypted port, and an unencrypted one.

Greetings, Niklas


According to your description your chrooted environment has no information about valid nameservers (DNS). You can copy the file /etc/resolv.conf into the etc directory of your chroot environment. You could also edit the file /mnt/etc/resolv.conf (or if you are inside the chroot in /etc/resolv.conf) and add the line

nameserver 8.8.8.8

This uses a nameserver from Google.

When your system has valid information about DNS servers it will work again as expected.


I think your sound card is an Intel. if yes try the solution here.
Original Solution

Go to Realtek official site, accept the disclaimer, then download the audio driver for linux/unix. You need to select version 3 for Kernel 3 or later.

Setup necessary tools to compile this driver.
sudo apt-get install build-essential gcc make

Extract the downloaded file, run sudo ./install file from a terminal after going to the extracted folder to compile the driver.

Read the Readme.txt file for more information.

I had a problem with Sound settings in Ubuntu 12.04. It fixed now

Solution 2:
I have just found another solution:
(It worked for me with Only S/PDIF profile, Sound from both headphone and speaker and not being able to switch profile)
Install alsa-hda-dkms using these commands
 sudo apt-add-repository ppa:ubuntu-audio-dev/alsa-daily
 sudo apt-get update
 sudo apt-get install alsa-hda-dkms

Reboot, And See the result!