How can I install MongoDB on a different drive?

If you install MongoDB using apt-get, the executable files and libraries will be installed to your OS drive. By default, the packaged version of MongoDB stores its data in /var/lib/mongodb which, unless you've put part or all of your /var directory on your larger drive, will also be on your OS drive.

If you want to install absolutely all the MongoDB files on your other drive, you would need to download the unpackaged binary distribution from the MongoDB website and install manually. However, I would advise against this; the binaries won't take up much space and installing the package is easier.

Instead, you can install the package and then change the location used to store the data. See How to change the location that MongoDB uses to store its data? for how to do this.


How do I install 13.04 alongside windows on an Intel Raid 5?

I would seriously counsel against using this so-called 'fake-raid'/'host-raid', i.e. RAID implemented in the regular chipsets on a motherboard. Linux support has always been a bit spotty. Some get it to work, while for others it only leads to pain and suffering.

I recently installed Ubuntu 12.04 server on a fake-raid system, actually this was because I noticed that the installer seemed to support it, so I wondered if the tide had turned. Soon after, however, I ran into trouble with this setup so I reinstalled on the 'bare' drives and used Linux' own software RAID. The problems were gone and the machine has been fully functional ever since.

The problem with 'fake-raid' (which, by the way is also the search term you want to use when Googling this issue), is that it (kernel-) support is very much dependent on manufacturer support. In general I give Intel lots of credit for their Linux hardware support, but it seems like this area is still in need of some attention.
Linux' own software-RAID is vendor-independent and consequently well tested.
Moreover, in terms of performance real hardware RAID is usually superior, so that's what enterprise users use (and because of support contracts etc. it is also much better supported by kernel drivers).


How to tell if sound is playing before I unmute

Install and run pavucontrol. This is a graphical mixer for pulseaudio, and displays which devices sound is playing on, among other things.


Wifi adapter not found and i dont have ethernet port

The solution is to install a wireless driver. Connect your laptop to the internet using e.g. a phone by a USB cable, then tun in a terminal:
sudo apt update
sudo apt install git dkms
git clone https://github.com/lwfinger/rtw88.git
sudo dkms add ./rtw88
sudo dkms install rtlwifi-new/0.6

Then reboot and disable Secure Boot in BIOS.


How to Access Web Server From Inside/Outside Network

You need to learn how to configure DNS. This is a good start: https://help.ubuntu.com/10.04/serverguide/dns-configuration.html . Note that the DNS server is normally a server different to the server you just configured.

Usually when you purchase a domain one of the setting is "Name server". Sometimes you can point that to your own name server (not recommended), sometimes you are forced to use a certain name server. Whatever the case you need to tell that nameserver what is the IP address of your new web server.


The most common other two used with Ubuntu are KDE and XFCE. Both are available as pre-packaged distributions known as Kubuntu and Xubuntu and both have live CD's available if you just want to try them out. (Of course you are free to download and install them to your existing Ubuntu install if you don't want to start from scratch).

If you are looking for something that is closer to windows 7 or OS x then KDE might be worth a look. In my opinion it has a better looking interface than Gnome. It does have it's quirks though and doesn't really have any more of a focus on "usability" than gnome does.

XFCE focuses on simplicity and productivity.

There are many others. You can find a partial list and some points of comparison on the wikipedia comparison of X-Window System desktop environments


Use external monitor automatically, when started in Docking Station

There are some tools to automate it like RandR, disper,  displex or this one http://gnomefiles.org/content/show.php/Laptop+external+display+hotplugging?content=138742


I was able to solve it. First I had to download all the packages on the link I mentionded Ubuntu Secure Proposed team

I did it using the following commands:

sudo wget https://launchpad.net/~ubuntu-security-proposed/+archive/ubuntu/ppa/+build/5935007/+files/openjdk-7-jre_7u55-2.4.7-1ubuntu1~0.12.04.2_amd64.deb
sudo wget https://launchpad.net/~ubuntu-security-proposed/+archive/ubuntu/ppa/+build/5935007/+files/openjdk-7-jre-zero_7u55-2.4.7-1ubuntu1~0.12.04.2_amd64.deb
sudo wget https://launchpad.net/~ubuntu-security-proposed/+archive/ubuntu/ppa/+build/5935007/+files/openjdk-7-jre-headless_7u55-2.4.7-1ubuntu1~0.12.04.2_amd64.deb
sudo wget https://launchpad.net/~ubuntu-security-proposed/+archive/ubuntu/ppa/+build/5935007/+files/openjdk-7-jdk_7u55-2.4.7-1ubuntu1~0.12.04.2_amd64.deb

Then I tried to install all of then manually on this order:

sudo dpkg -i openjdk-7-jre-zero_7u55-2.4.7-1ubuntu1~0.12.04.2_amd64.deb
sudo dpkg -i openjdk-7-jre-headless_7u55-2.4.7-1ubuntu1~0.12.04.2_amd64.deb
sudo dpkg -i openjdk-7-jre_7u55-2.4.7-1ubuntu1~0.12.04.2_amd64.deb
sudo dpkg -i openjdk-7-jdk_7u55-2.4.7-1ubuntu1~0.12.04.2_amd64.deb

All of above commands will result in dependencies errors, I just ignore then all and run the following command:

sudo apt-get -f install

Everything got installed and it is working fine. It seems that the apt-get -f install command try to solve previous dependencies errors by itself installing all needed dependencies (not sure though, as I'm not an specialist).

If someone think that this is not the right procedure, please let me know.


LXD 2.0 - lxd.migration to snap hang waiting for lxd process to start - /var/lib/lxd directory gone

The discussion forum for LXD (and LXC 1.0) is
https://discuss.linuxcontainers.org/


The passphrase you enter on boot is to decrypt the LVM encryption done with LUKS, which is useful if your physical drive is stolen (e.g. your laptop is lifted). That encryption protects your system, but does nothing to protect individual users once the machine is booted and the passphrase has cleared.

If you had passwordless login for any user account, then after boot there would be nothing stopping anyone from accessing and/or modifying your files (and if you have sudo priviledges, this is particularly undesirable). This is very bad if you have a laptop (you're at a coffeeshop and it gets stolen or you lose it at the airport, already booted but maybe suspended, the finder/taker has free reign on your file system).

Basically, I'm saying what you want to do is a bad idea, from a security perspective. The easiest way to do it, I would guess, would be to simply remove your user passwords, and as far as I can see any other solution would amount to doing just that.

You may find this post useful for some clarification on LVM encryption.


This is not a Linux thing, it's a bash thing. Bash is just one of many shells. Bash is the "Bourne again shell" and was released as a replacement of the original Bourne Shell, sh.

POSIX is a set of standards defining how POSIX-compliant systems should work. The POSIX shell standard can be found here. Bash has many features not present in sh and is not actually a POSIX compliant shell.

This is why the --posix option is provided. As explained in man bash (emphasis mine):

  If bash is invoked with the name sh, it  tries  to  mimic  the
  startup    behavior  of  historical  versions  of sh as closely as
  possible, while    conforming to the POSIX standard as well.  When
  invoked as an  interactive  login  shell, or a non-interactive
  shell with the --login option, it first attempts to read and
  execute commands from /etc/profile and ~/.profile, in that
  order. The --noprofile  option may be used to inhibit this
  behavior.  When invoked as an interactive shell with the name
  sh, bash  looks for the variable ENV, expands its value if it is
  defined, and uses the expanded value as the name of a file to read
  and execute. Since a shell invoked as sh does not attempt to read
  and execute commands from any other startup files, the --rcfile
  option has  no effect.   A  non-interactive  shell  invoked  with
  the name sh does not    attempt to read any other startup files.
  When  invoked  as  sh,  bash    enters posix mode after the startup
  files are read.

  When  bash  is  started in posix mode, as with the --posix command
  line    option, it follows the POSIX standard for startup files.  In
  this mode, interactive  shells  expand  the ENV variable and
  commands are read and executed from the file whose name is  the
  expanded  value. No other startup files are read.

This means that if you run sh, or bash --posix, to start an interactive shell, your ~/.bahsrc file is ignored and, instead, the file saved as $ENV (if any) is read. To illustrate, I have added echo "read .bashrc" to my ~/.bashrc:

$ bash
read .bashrc  ## message was printed, ~/.bashrc was read
$ sh
sh-4.3$       ## no message printed, ~/.bashrc was not read

If I now set $ENV:

$ export ENV="~/.bashrc"
$ sh
read .bashrc

IMPORTANT NOTE: Ubuntu has chosen to make /bin/sh a synlink to /bin/dash. Dash is yet another shell and is actually a POSIX-compliant one. This means that in order to observe the behavior I described above, you need to use a different sh1. On Ubuntu, you need to create a file called sh that is a symlink to /bin/bash:

$ ln -s /bin/bash ~/sh

You now have a file called sh in your home directory. Use that to demonstrate the differences I explained above:

$ ls -l ~/sh
lrwxrwxrwx 1 terdon terdon 9 May  2 14:03 /home/terdon/sh -> /bin/bash
$ ~/sh
read .bashrc

1 Actually, the behavior will look as though it's the same, ~/.bashrc will be ignored, but that's just because dash is not bash and has no business reading the bash-specific ~/.bashrc anyway. However, dash also ignores $ENV so you need to use the link to /bin/bash to see that.


Is there a way to get a list of my favourite programs so I don't have to 'store' them in in my vertical dock??

You could simply create a  launcher, that had a right click QuickList Menu, that would display and launch all your favourite programs.

You can find examples of the .desktop entries you will need to make and a general idea  here What Custom Launchers and Unity Quicklists are available?


From LXDE Lxsession:

  Each line in ~/.config/lxsession/LXDE/autostart represents a command to be executed. If a line starts with @, and the command following it crashes, the command is automatically re-executed.


How to start several applications with one command to open in a specific workspace?

Start several applications with one command

Write a shell script:

#! /bin/bash
atom &
terminator &
firefox

Save it as e. g. “myscript”, do chmod a+x myscript and create a shortcut to your start menu (depends on what you're using, just search the web for instructions how to do that).

Open an application in a specific workspace

This is a little bit tricky. Assuming you're using GNOME Shell, try these instructions to bind a .desktop file to a specific workspace. If it works you can define which applications should start where.

Edit: wmctrl is able to send a program to a specific workspace, e. g.

wmctrl -r :ACTIVE: -t 3 # sends the currently active window to workspace 3

You can combine it like

( firefox && wmctrl -r firefox -t 3 ) &
( atom && wmctrl -r atom -t 2 ) &
…


Why is my card Unity blacklisted with all the requirements fulfilled?

FX cards seem to be blacklisted:

  // jaytaoko: Balcklist the Geforce FX cards
  if (results->renderer != NULL) {
    char* str = strstr (results->renderer, "GeForce FX");
    if (str != NULL) {
      results->flags |= FLAG_BLACKLISTED;
    }
  }

Here's the reason why: https://bugs.launchpad.net/unity/+bug/772207


x11vnc Headless on Ubuntu is very slow until monitor connected

Disable Composite tweaks
via Start->Window Manager Tweaks->Compositor-> Disable

Disable vsync,
xfconf-query -c xfwm4 -p /general/vblank_mode -s off

Reference - https://github.com/LibVNC/x11vnc/issues/102


Bluetooth stopped working after power outage

Could you try reinstalling the drivers? Maybe a failed update removed them during the session (but they were loading from RAM or cache).


New to Ubuntu and the Terminal. Looking for Terminal Tutorials. Suggestions?

Firstly, Google is your best friend. You can find almost anything to help you with the terminal, but just to start you off there are websites that offer free E-Books for learning the Linux Terminal(more accurately, to learn the command line, BASH). You can sign up here and here to get free books to learn.

If you prefer videos, I watched Bucky's Videos, they are pretty good for beginners.

Remember, the terminal is your best friend in Linux. And if you don't know? Just Google it!


Need help updating Ubuntu with apt-offline

I'm would recommend you this post:
http://cartaslinux.wordpress.com/2012/09/08/apt-offline/

It works very well for me with those steps.


Is there a program capable of producing a nifty visual representation of file and directory ages?

To my knowledge there is not such nifty software yet. Instead, you can install smartctl which gives useful info about the disk wearing, though in plain old text.


How can I make the menu items flash, like on MacOS, when clicked in Compiz

You cannot do this via the window manager (compiz) really. It could be done in a widget theme engine (I am not sure if it is possible with only CSS in a theme at this point). The window manager doesn't have any knowledge about the internal contents of the window (menu), so it wouldn't know which section of the window to blink. In a theme, you can override the drawing of each individual menu item in the menu, though.

A theme engine would require writing C code. If it's possible with just CSS in a GTK+ theme, it could be done that way, however. Note that this would only really work in applications using the GTK+ tool kit, too, not in all applications (though for applications which have their main menus show up in the titlebar or top panel, it should work there, just not for app-internal menus in all those cases).


How to navigate to directory which file system object has just been moved to?

How about defining a custom bash function to do the job :

move () { mv -- "$1" "$2"; cd -- "$_"; }

put this move function at the end of your ~/.bashrc file.

Run the function as move somefile somepath
$1 is the first argument to the function (somefile)
$2 is the second argument (somepath)
$_ expands to the last argument of the previous command ($2 in this case)

Example :

/foo$ move () { mv -- "$1" "$2"; cd -- "$_"; }

/foo$ ls -1
bar
spam1
spam2

/foo$ move spam* bar/

/foo/bar$

As you can see the desired files have been moved and the directory is also changed accordingly.


Nginx failing to redirect to docker container

Thanks Thomas for pushing towards irc channel, guys there gave me a correct hint. The problem was with

location ~ ^/(.*)/ {

It was enough to simplify it to

location ~ / {

Now it works!


Adobe Digital Editions ADE 4.5.4 + wine doesn't work

According to the Wine Application Database Version 4.5 works well with the development version 2.5 of wine. Instruction on how to obtain and install this version is available here.

In a nutshell, the steps are as follows:

Preparation:

If you have previously installed a Wine package from another repository, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts.

Your system will require Multiarch support

Add the repository:

wget https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

Update packages and install:

sudo apt-get update && sudo apt-get install --install-recommends winehq-devel

You will notice some differences between the distro packages and the winehq builds. For more on this see the details.

According to winehq Ubuntu Multiarch support is still incomplete, so there may be further hoops to jump through that I am unable to test at present. The most current information I could find on this topic can be found here

Sources:

https://appdb.winehq.org/objectManager.php?sClass=version&iId=33276

https://wiki.winehq.org/Ubuntu

dpkg: How to remove a package and all other packages depend on it?

https://askubuntu.com/a/736651/225694

https://wiki.ubuntu.com/MultiarchSpec


Problem with Intel 7260 wireless adapter on 5 GHz on Ubuntu 14.04

After some research I found a solution.

These new Intel adapters support high mobility and scan for networks frequently.

Ubuntu 14.04 has an outdated wireless-regdb package version 2013.02.13-1ubuntu1. For many countries it does not allow to use 5GHz channels.

When the adapter tries to scan, it is disconnected for a short time from AP or transmission stops because of this conflict.

This can be checked by iw reg get command. The command will output the allowed frequencies and the country code.

If you do not see the frequencies allowed in your country, you can update the wireless-regdb package to the latest one built for Ubuntu 16.04.

Run this in terminal:

wget http://mirrors.kernel.org/ubuntu/pool/main/w/wireless-regdb/wireless-regdb_2015.07.20-1ubuntu1_all.deb
sudo dpkg -i wireless-regdb*.deb

If your country code has been properly updated in this package, the problem should be solved after a reboot.

I reported this issue to launchpad.

You can vote that this issue affects you, if this is the case.

Now my 7260 adapter works very well.


My CGI module was not enabled.

I went to the terminal and typed a2enmod which then gave me a choice of modules to enable. I entered cgi, it enabled it. Then I ran service apache2 restart and that solved my problem.


Fixed: https://bugs.launchpad.net/ubuntu/+source/indicator-datetime/+bug/793450 - thanks to aibara-iduas for the link.


Integrating source-compiled package into ubuntu

I think to get the best performance, you'll want to also rebuild the applications with icc, and I'm not entirely sure that using a library built with icc and an application built with gcc will actually work.

But to answer the question as asked, there are basically two ways:

Rebuild a libgsl0ldbl package, using icc, with a different version suffix (or a different name but Provides: libgsl0ldbl), and install that, then install the packages which should no longer want the Ubuntu libgsl0.
Force installation of the application packages despite not having libgs0ldbl installed.  One crude way to accomplish this is dpkg --force-deps octave-gsl*deb on the deb file.


gimp source build error g_module_build_path

All you have to do is make sure that it gets linked with the right libraries. The real bug is in the pgkconfig file for gtk2. So all you have to do is open it as root and add -lgobject-2.0 to the list of libraries. Then rerun configure, make clean and then make all and it will work perfectly.


How to see the indicators only for apps in current workspace?

As it turns out, the solution to a different problem I was having (workspace names in the taskbar) ended up solving this as well. The solution is to use metacity instead of compiz. When I do that I only see the applications for each workspace in their respective workspaces (or viewports...).


I have the same problem, but mine displays ~*[[3.  In order to prevent this, I press ESC multiple times from the moment the system is booted (after pressing the power button).  This stops the ~*[[3's from appearing.

Sometimes if you press the ESC while the machine is booting, it will take you into the BIOS or similar settings.  If this happens to you, just press ESC as soon as Ubuntu starts to load.


Nvidia geforce 610m driver download and installation

Your 610M is an Intel/Nvidia hybrid card, and it is not officially supported by Nvidia. See this link here for installing the drivers: Switchable laptop graphics issues on Ubuntu 12.04?


As I understand the USB cable shall be connected as well according to the documentation


How do I place a application list icon in the launcher?

I used Cardapio and applied a launcher for it. Works good and solved my problem.

From the Cardapio Launchpad page:

Installation in Ubuntu

Cardapio can easily be installed in Ubuntu versions 10.04 (Lucid Lynx) and up. Simply follow the steps below:

1) Run these commands in a terminal:

sudo add-apt-repository ppa:cardapio-team/cardapio-ppa && sudo
apt-get update

2) Now pick one or more of these, depending on how you want to use Cardapio:

sudo apt-get install cardapio-gnomepanel  (to install the
Gnome-Panel applet)
sudo apt-get install cardapio-docky      (to    install the
Docky applet)
sudo apt-get install cardapio-awn           (to install the AWN
applet)
sudo apt-get install    cardapio-gnomeshell  (to install the
Gnome-Shell applet)
sudo    apt-get install cardapio            (to use it in
stand-alone    mode only)

3) Done!

If you want to use as a Unity Launcher item as depicted in the screenshot above, then

install the stand-alone version as instructed above
run this command in a terminal: cardapio hidden
then use the following instructions from this Webupd8 article:

So download the Cardapio launcher from HERE, extract it and place the file under ~/.local/share/applications/ (important: if you don't place it here, it will disappear once you restart your computer). ".local" is a hidden folder in your home directory so press CTRL + H to see it. Then drag the file to the Unity Launcher.

Frequently Asked questions can be found at Cardapio FAQs page.


How to use kexec on Ubuntu Bionic with GRUB-EFI

Datei oder Verzeichnis nicht gefunden

In English this means: "File or directory not found"

Looking at loader.conf — Configuration file for sd-boot it says:

  sd-boot(7) will read /loader/loader.conf and any files with the
  ".conf" extension under /loader/loader.conf.d/ on the EFI system
  partition (ESP).

Although I don't have time to test kexec tonight, you should be able to fix the error with the command:

sudo mkdir -p /boot/efi/loader/loader.conf.d/

No entry suitable as default, refusing to guess

The initial error message said no file or directory. I was hoping creating a directory would make it happy. Here is a default loader.conf file:

# Example kexec-loader configuration file
# Read the documentation for more information.
#

# Number of seconds to wait before booting the default menu entry.
#
# timeout 5

# Explicitly enable/disable GRUB autodetection. Autodetection will be enabled
# by default, but only if no boot targets are specified in this file.
#
# grub-autodetect on
# grub-autodetect off

# Force GRUB path. Setting this will disable autodetection.
#
# grub-path (hda1)/boot/grub

# Map GRUB disks/partitions
# This overrides any mappings in device.map
#
# grub-map hd0 sda
# grub-map hd1,a hda8

# Example boot target
#
# title Generic Linux System
# root hda1
# kernel /boot/vmlinuz
# cmdline root=/dev/hda1 ro
# initrd /boot/initrd.gz


Hide certain users from login screen greeter (Ubuntu 19.10)

Even though Its a duplicate of How do I hide a particular user from the login screen?

I have just tried it whether its working or not in Ubuntu 19.10 Fresh Install

It worked..

sudo -H nautilus /var/lib/AccountsService/users/

I have a, b, c, & d user accounts while bullet is my own account (Admin)

I would like to hide user a & c

so open file a and c and make SystemAccount field to true.

[User]
Icon=/var/lib/AccountsService/icons/a
SystemAccount=true

then logout and login

the same way I have hidden the Admin User also


Unable to change gnome-terminal tab title any standard way

Thanks @wjandrea you were right on with your first comment, and darn close with your second one. So it may be useful to others to know that other than the 3 techniques mentioned in my question, there may be a PS1 sneakily set in your .bashrc. Indeed:

An env|grep PS1 will never show PS1; instead use echo $PS1 or declare -p PS1 similarly for PROMPT_COMMAND.
Once I used correct query, I found that PS1 was set with an esc sequence 0, which sets title on tab.
Then I looked in my .bashrc and sure enough the bit of code discussed in Ward's answer was there; the block

case "$TERM" in
  xterm*...

prepends the magical arcane esc 0 sequence that sets title, thus preventing any of the other techniques from working!
Uncommenting it allowed me to use the tt and ntt commands I mention in my older question.


In order to connect to an EC2 instance you'll have to configure a public IP and make sure you add a matching routing table rule.

There are 2 ways of getting a public IP:

Adding a randomly selected IP during the instance set up (just tick the required V on the third screen).
Adding an Elastic IP from the Elastic IP section on the left (this method does not require a new machine, you can attach this IP to your machine with no hassle).

Now you'll need to configure the routing table.

First go to the VPC section, click the Internet Gateway link and add a new gateway attached to your VPC.

Now click the Routing Tables link and add a routing table rule to forward the traffic to 0.0.0.0/0 to this igw (the list will pop up and this will probably be the only option).

Good luck,
Yaron.


Please just run this from the terminal if its not there for some reason:

sudo apt install wget

Or:

sudo apt-get install wget


The problem is that you try to compile Wordnet with Tcl 8.6.

Tcl 8.5 deprecated interp->result and Tcl 8.6 removed it.

The directive

#define USE_INTERP_RESULT

should solve that, but you should add that in an header file (.h) before you #include <tcl.h>, not in a .c file.


Wifi hardware not working and not found on Acer Aspire One D255

Try this:->

Is your Wired Ethernet detected by the new install?
if yes > Then go to system settings > software sources > additional drivers
scan for additional wifi driver install and restart system

Refer: Detailed description for installing additional drivers


SSH user1@ip_address: Permission denied (publickey)

Step 1: Open sshd_config file

sudo nano /etc/ssh/sshd_config

Step 2: Change the following lines

PermitRootLogin prohibit-password to PermitRootLogin yes
PasswordAuthentication no to PasswordAuthentication yes

Step 3:restart ssh service:

sudo service ssh restart


What is the best way to run own server side programs on ubuntu server

Whatever method you prefer but it sometimes depends on what that software you made is used for.

Though I would not use crontab (ie. crontab -e) but /etc/crontab if you want to go that way. You can specify a user in that file but it can also be used normally (ie. edits to /etc/crontab are in effect immediately) and you can also use things like @reboot. It is a very common method to use so if you like that go for it.

You could also create a service (with options start, stop, restart as apache or mysql have). Using forever is an option. Another example upstart script with node.js.


How to install google chrome browser on Ubuntu

Google chrome is not available in Ubuntu official software repositories, you can install chromium instead of Google chrome.

to install chromium run:

sudo apt install chromium-browser

And to install Google chrome, you should download its deb installer from here. which you already did.

then to install it run:

sudo dpkg -i google-chrome-stable_current_amd64.deb

If you encounter to any errors related to dependencies; run:

sudo apt install google-chrome-stable_current_amd64.deb


Ubuntu server terminal doesn't resize screen in VirtualBox

The auto-resize feature is for the X Window System.

From VirtualBox Manual - 4.2.2.2. Graphics and mouse integration:

  In Linux and Solaris guests, VirtualBox graphics and mouse integration goes through the X Window System. ...After installing the Guest Additions into a fresh installation of a supported Linux distribution..., the guest's graphics mode will change to fit the size of the VirtualBox window on the host when it is resized.

Your best option is probably to SSH into the machine (using PuTTY). In that case, here's a few questions to see next:

How to SSH to a VirtualBox guest externally through a host?
In VirtualBox, how do I set up host-only virtual machines that can access the Internet?
Which type of VirtualBox networking should I use?


Error Message in Arista Transcoder, how to install ffdeinterlace plugin?

Source: arista

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg gstreamer0.10-ffmpeg

and then restart arista.


unable to install pihole giving error unable to initialize frontend: Dialog

I would recommend to install both dialog boxes packages, which are mentioned in install script:

sudo apt-get install dialog whiptail

and then retry piHole installation.


Ubuntu 17.10 freezing on suspend and won't shutdown

Sounds like this issue. You might want to add to the comments there.


You should be able to remove the erroneous repository using apt-add-repository --remove

So

sudo apt-add-repository --remove https://dl.winehq.prg/wine-builds/ubuntu/


Is it possible to install a 64-bit version of wine to run Photoshop CS5 x64?

You will need to build wine64 for your system (I'm unsure of a packaged version of it). Take a look at this link for info on building it.

http://wiki.winehq.org/Wine64


Can't get hibernate to work on Ubuntu 18.04

there is a package that you can use easily to hibernate,
open the terminal and write    sudo apt install hibernate    , it will ask you some questions and then you can hibernate using sudo hibernate


Inlcuding subtitle when converting MTS to MKV

You can stream copy with -codec copy. This avoids the decoding and encoding step for the specified stream, so it does only demuxing and muxing which is useful if you want to change the output container format or manipulate or add container-level metadata. Performing a stream copy is faster than re-encoding and will not cause any quality loss.

Note that default behavior only chooses one stream type per input, so including -map 0 will include all streams for the first input. If you only have one stream type for the input, such as in the question above, then -map 0 is superfluous, but it does not hurt to leave it. See the documentation on stream selection and -map option for more info.

Example:

$ ffmpeg -i input.MTS -codec copy -map 0 output.mkv

Example using a bash for loop if you want to encode all videos in a directory:

$ mkdir outputdir
$ for f in *.MTS; do ffmpeg -i "$f" -codec copy -map 0 outputdir/"${f%.MTS}.mkv"; done


How do I change the mouse acceleration curve?

That depends on what mouse profile you're using.

This blog describes a new mouse acceleration method added to Debian Squeeze (should also be in Maverick since Squeeze used xorg-server 1.7.7 and Maverick used 1.9.0). You can read the developer documentation here.

If you look at the source, you can derive the curve based on which Profile you're using. In the patch for AccelerationProfile, you can see the function SetAccelerationProfile which selects your profile. If you look at each of those profiles, you can see how the function is defined.

So to tweak it, you modify whatever inputs your selected profile takes. Presumably these are set in xorg.conf (which, fyi, doesn't exist by default).

To really customize it, you can write your own function and compile your own xorg-server : D


How to add .patch file code to usb_modeswitch and add support for 3G USB modem?

It seems that the solution will be as following:

# 1. change directory to /tmp
cd /tmp

# 2. create "patch"-file
cat <<EOF > 2001\:a805
# D-Link DWR-510

TargetVendor=0x2001
TargetProduct=0x7e12

MessageContent="5553424308407086000000000000061b000000020000000000000000000000"
EOF

# 3. copy existing rules-archive to /tmp
cp /usr/share/usb_modeswitch/configPack.tar.gz /tmp

# 4. unpack it
gunzip configPack.tar.gz

# 5. remove existing rule from archive
tar --delete --verbose --file configPack.tar 2001\:a805

# 6. add new rule file
tar --update --verbose --file configPack.tar 2001\:a805

# 7. pack archive
gzip configPack.tar

# 8. copy updated archive to its normal location
sudo cp configPack.tar.gz /usr/share/usb_modeswitch/configPack.tar.gz

Hope this helps.

You can always revert /usr/share/usb_modeswitch/configPack.tar.gz archive to version from repository with

sudo apt-get install --reinstall usb-modeswitch-data


Kubuntu 14.04 - Network Manager shows only 3 VPN Op

This was resolved by placing he mouse over the corner of the GUI box that appears when clicking on the network manager.  Only the corner in KDE apparently allows resizing, not at the bottom. Scrolling also still appears not to work, which is maybe not an optimal design.  However, this problem is avoided by using the corner of the network manager window to resize it to see remaining OVPN options.


If the line between the two computers is a "dry line" as in no dial tone. You can use the following product: https://www.blackbox.com/en-us/store/Detail.aspx/Industrial-Ethernet-Extender---10-100-1-Port/LB320A

Which is called VDSL and can extend several miles at fairly good speeds, over normal single pair phone lines.


Assigning keyboard shortcuts to KDE Dolphin service menus

By my knowledge

It is not possible to start a KDE Service Menu (context menu) with a keyboard shortcut. This is based on:

The Dolphin is using KDE Framework 5 KIO FileItemActions: https://api.kde.org/frameworks/kio/html/classKFileItemActions.html :

  Detailed Description

  This class creates and handles the actions for a
  url (or urls) in a popupmenu.

  This includes:

  "open with " actions, but also
  builtin services like mount/unmount for old-style device desktop files
  user-defined actions for a .desktop file, defined in the file itself (see the desktop entry
  standard)
  servicemenus actions, defined in .desktop files and selected
  based on the mimetype of the url

Dolphin source files:

dolphincontextmenu.cpp -> https://cgit.kde.org/dolphin.git/tree/src/dolphincontextmenu.cpp
dolphincontextmenu.h -> https://cgit.kde.org/dolphin.git/tree/src/dolphincontextmenu.h

Quote:

/**
 * @brief Represents the context menu which appears when doing a right
 *        click on an item or the viewport of the file manager.
 *

Sort of workaround with the Dolphin button shortcuts

The KDE Forums has a topic 'Play All Media Button for Dolphin': https://forum.kde.org/viewtopic.php?f=223&t=140139 . It shows how to patch the Dolphin sources to add extra buttons to the Dolphin toolbar. The Dolphin buttons can have the keyboard shortcut.

Wishes/patches

You could file a wish at the https://bugs.kde.org .

Patches and the review requests can be added to the KDE's instance of Phabricator: https://phabricator.kde.org/ .


I'm unable to create a new FOLDER on my new drive

After partitioning your new drive, you have to mount the newly formatted partition to be able to use it. Mounting is normally done at system boot time, and it uses a file /etc/fstab to know what/where to mount disk partitions.

Take a look at your current /etc/fstab like so:

In terminal...

sudo cat /etc/fstab

You can edit this file to add the proper mounts for /dev/sdb1:

In terminal...

sudo blkid # to determine the UUID of /dev/sdb1

sudo cp /etc/fstab /etc/fstab.bck # to make a backup of this file

sudo pico /etc/fstab # edit the file

using the UUID that you found earlier... for an ext4 partition... add lines similar to this...

# mount for /dev/sdb1
UUID=enter_the_found_UUID_here /media/your_username/your_volume_name ext4 errors=remount-ro 0 1

control+o # to save edits

return # to confirm filename to save to

control+x # to exit the editor

sudo mount -a # to mount the drive


ubuntu 18.04 does not recognize my wifi on HP stream 11

I also switched an HP Stream 11 from Windows 10 to Ubuntu 18.04 (and later upgraded it to 18.10),
While the wifi part I didn't have a problem (and I believe you found some help in the comments), the issue with the touchpad right click got me frustrated as well.
The thing is that in Ubuntu 18.04 the defaults for the touchpad is to use finger clicks to define the mouse click, i.e. one finger click is a regular left click and a two finger click is a right click (and a three finger click is a middle button click), once I got used to it I left it by the default as I find it much easier to use than to be limited by the bottom part of my touchpad.
Try installing the gnome-tweaks and configuring your desired behavior.


I will answer my own questions since this turned out to be a very basic thing and this may help Linux noobs like myself. Since I am completely illiterate when it comes to Linux I thought that a Hard Disk can be shared between platforms such as Linux and Windows, using NTFS, which as I have seen can happen, but since I formatted my Sata drive using windows, Ubuntu was only able to see the space I had allocated for it in the installation. The solution would be to format it into ext3/4 and then the drive can be fully accessible by Ubuntu. If anyone wants to have a shared drive between both platforms here are some good discussions about this topic:

What's the best way to share files between Linux and Windows 7... (SuperUser)

File system compatible with all OSes (Unix & Linux)

In short Ubuntu is suppose to be ok with NTFS although I have no idea how stable it would be cross-platfoming, but the drive should be formatted from within Ubuntu. That was my conclusion after some researching, I hope I am not providing wrong information.


Kernel Headers not found error on installing NVIDIA cuda drivers on Ubuntu 16.04 LTS

I used what Ron says and I cleaned kernel headers, and then I just added the one that requires Nvidia next to the current one:
remove kernels

Remove all existing nvidia packages:

sudo apt-get remove nvidia* && sudo apt autoremove

I installed some packages to compile the kernel (4.4.0):

sudo apt-get install dkms build-essential linux-headers-generic

Now block and disable the driver of the new Nouveau kernel:

sudo nano /etc/modprobe.d/blacklist.conf

Insert the following lines at the end of the blacklist.conf:

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

I disabled the kernel nouveau:

echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf

Build the new kernel

sudo update-initramfs -u

Finally reboot

I have the ubuntu: 16.04.6
with kernel 4.15.0-46-generic

sudo sh cuda_9.0.176_384.81_linux.run --override
sudo service lightdm start
sudo reboot

I also had problems with the login, it worked for me:

sudo ubuntu-drivers autoinstall
sudo reboot

add them to the end of .bashrc file:

sudo nano .bashrc

export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

it worked.


Why apt update sources fail sometimes when clock not synced?

If you look at the file located at http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease you will see it is a PGP signed message. If you check the signature it is dated 15 May 2021  4:10:29 UTC.
Part of signature verification includes checking that the signature is currently valid, ie that the current time as indicated by the computer clock is not before the signature was created nor after it expires.


openvpn error outines:SSL_CTX_use_certificate:ca md too weak

Is there some differences between Ubuntu 16 and 19 regarding VPN certificates?

Ubuntu 19  has increased the requirements for accepted certificates in general, not only for VPN. Make sure that you have for an RSA certificate at least a key size of 2048 and that at least SHA-2 is used for the signature.


How can I control the volume of the line-in input + normal output at the same time?

I came up with a solution to be able to control the volume of both your "Master" and "Line" using only your keyboard's "Media Keys".

First step is to disable your default volume controls by going into System → Preferences → Keyboard Shortcuts, clicking the "Shortcuts" tab and setting Volume Up & Volume Down to "Disabled" on the "Sound and Media" page.

Secondly, you will need to assign your "Volume Keys" to custom commands on the "Custom Shortcuts" page. To do that, click on the "+" at the bottom to add a shortcut. Name the first command Volume Up and have it execute a scripts: ./path-to-scripts/VolumeUp.sh. Repeat this process for a second command and have it execute your VolumeDown.sh script instead. Next, click on the command where it says "Disabled" and assign your key to it (repeat for both).

Finally, create your 2 scripts referred by the custom shortcuts and copy paste the following into them:

VolumeUp.sh:

#!/bin/bash
amixer -c0 -sq <<-EOF
set Master 10%+
set Line 10%+
EOF

VolumeDown.sh:

#!/bin/bash
amixer -c0 -sq <<-EOF
set Master 10%-
set Line 10%-
EOF

Don't forget to set your scripts as "Allow executing file as program" in the file properties or chmod it to allow execution. You might also need to read up on amixer to know how much to modify the volume by (10% is just used as default).

If you open gnome-alsamixer, you should now see both "Master" and "Line" go up and down as you press your "Volume Keys". Only downside is the key, must be pressed and can't be held down to change the volume.


Dell Vostro 3468 needs maxx audio pro driver

As per this post, the Maxxaudio LE drivers are for Linux, not the Maxxaudio Pro, which are for Windows, and will not work in Linux.  The Maxxaudio drivers provide a marked improvement of sound quality per that same post.

The LE drivers have been discontinued. The link to the publisher is broken, a search at the publisher's website revealed nothing, and a search at the Dell site for your model revealed no drivers available.


Unable to boot Ubuntu no matter what (post install)

Just in case anyone else was experiencing this issue. I'm here to help you out.

The laptop I have is an ASUS Vivobook, it has 16gb of Intel Optane Memory (effectively an SSD). The issue ended up being a weird non-detection of the primary storage (in my case, a 1tb HDD).

When I initially bought the laptop, it must have come preinstalled with software that connects the Intel Optane memory and the HDD, so, the HDD was not actually formatted and available as a partition.

Ubuntu (at the moment) cannot properly install onto Intel Optane Memory. I feel absolutely blessed that I am the first to make this announcement.

The fix (for anyone in the future):

Hopefully you see this before you get to clean installing Ubuntu.

Make sure you format your primary storage HDD/SDD and install Ubuntu (or Linux in general, I assume) on to that, and do not install it onto your Intel Optane Memory. This will fix, literally every single problem.

If you're already at the command line, and have tried to install Ubuntu over Windows 10 already, the way I fixed it was by reinstalling Windows 10, formatting my HDD and then reinstalling linux.

I'm sure there is a way to format your HDD in the Ubuntu terminal or by going through to 'Try Ubuntu' however, as I am new to the software, I decided to go the safe route.

Regards,

Joseph

Edit: During the installation process I personally created the partitions to ensure proper installation on the HDD. After that, it was just a matter of hype after rebooting into Linux


Recently upgraded from 12.04 to 12.10 and now sceen keeps flikering on and off

There is a high probability for this being a driver-related issue.

If you are using the proprietary driver try to upgrade or if this does not help uninstall it.

If you are not, try installing the proprietary driver using:

jockey-gtk


Shortcut to Windows Drive Breaks After Reboot

Try changing that line from:

UUID=[UUID here] ntfs auto 0 0

to:

UUID=[UUID here] /media/userx/OS ntfs defaults 0 0

Plus, make sure the directory is actually there with:

sudo mkdir /media/userx/OS && sudo chown -R $USER /media/userx/OS

(You'll have to change all these directory names to the correct ones).


Does oem-config create a user not in sudo group?

Short answer

Sometimes. Typically it will create one of these, but not both:

a traditional root user
a non-root user that has sudo permissions

Long answer

The oem-config command is a symbolic link to ubiquity, Ubuntu's standard installer. Ubiquity runs the script user-setup-ask-oem to determine how user accounts should be configured, and then the script user-setup-apply to actually create them.

The configuration script begins by asking whether a root user should be created:

If you answer yes, you have the option to also create a non-root user.
If you answer no, you are forced to create a non-root user.

Later on, the account creation script checks to see if you have decided to create a root user:

If you have, a root user is created with traditional, implicit administrative privileges. If you have also opted to create a non-root user, that user is created without sudo permissions.
If you've decided not to create a root user, the non-root user is created with sudo permissions.

This behavior can be complicated by preeseed configurations.


How to copy only files (.wrk) from multiple directories and subfolders

Use find:

cd /path/to/MIDI
find {1..21} -type f -name "*.wrk" -exec cp -i {} ./MIDI/WRK/ \;

it only search within 1 to 21 directories and all of their sub dirs for any files with ".wrk" suffix, then it moves all of them to "WRK".

using -i we make sure nothing will get over written,


systemd service fails on boot but success on shell

put ExecStartPre=/bin/sleep 10 solved problem

I don't know why exactly maybe order of service execution problem


How can I have the battery life permanently displayed in the top bar?

You can install this gnome-shell extension to achieve this : https://extensions.gnome.org/extension/817/battery-status/

Once installed, go to your gnome extension settings page (https://extensions.gnome.org/local/), and click on the settings icon of the newly installed "Battery Status" extension. You will have many options to customize the display, including showing the remaining time instead of the percentage.

Hope it helps !


Lenovo Legion 5 15IMH05H brightness control problem

One method to control screen brightness that was not covered in the articles you linked to is through xrandr. Give this a try.

Open Terminal
Find the name of your display with: `xrandr | grep " connected" | cut -f1 -d " "
Now set the brightness like this: xrandr --output {display} --brightness 0.7

On my Lenovo ThinkPad, this is what I get:
$ xrandr | grep " connected" | cut -f1 -d " "
eDP-1

Then to set the brightness to 70%:
$ xrandr --output eDP-1 --brightness 0.7

Hope this helps.


Run multiple instances of gnome-system-monitor

yes you can do it. Open two terminal windows or terminal tabs then type there as gnome-system-monitor in two windows/tabs & remember change one user to root in your terminal and keep the user in other terminal as usual. so that you can have two system monitors opened.


I used the following:

gnome-session --session=gnome-fallback

http://c-nergy.be/blog/?p=3518


I have Ubuntu 19.10 installed on an SSD on a Thinkpad T430. Can I just pop it out and put it in my new T470,

Yes. With 1 comment: remove all 3rd party drivers.

The 2 important 3rd party components are the display driver and the NIC driver. If the display in both is the same you can keep the display driver but it is better to re-install it. Same for the NIC: if the NIC is the same or in the same chipset range it is likely to work.

  or do I need to do a complete new install on a separate drive for the T470? In general, are hard drives with only Ubuntu on them interchangeable to and from heterogeneous machines?

No an yes. Linux/Ubuntu recreates the devices on every boot so it will notice the changes and adjust accordingly.


Cannot find or change some keyboard shortcuts in Ubuntu 20.04

You can try gsettings list-recursively.
That should list your application settings, same as seen in dconf.
Maybe try grep a pattern like the key combination grep '<Alt><Control>s'.
The key order is not that consistent and you might need try some more variant or less strict pattern like grep '>s'.
I don't have Ctrl+Alt+S on my machine but here is a similar example when grep for '>u' on my machine.
gsettings list-recursively | grep '>u'
org.freedesktop.ibus.panel.emoji unicode-hotkey ['<Control><Shift>u']

Then I can check this path org.freedesktop.ibus.panel.emoji in dconf-edidor.


The touchpad stops working after a while. How to fix it?

I have the same Model Probook 440 G6. And i have the same bug in WINDOWS.
A colegue of me has this too. So this might be a firmware bug.


I installed some of removed tools, then switched to lightdm. Then I chosed KDE in login options. And switched back to KDM. It helps. But I think some of this steps was unnecessary


Eclipses: no consoles to display at this time

Console is for Standard streams. It's not a terminal. The terminal in Eclipse is provided by TM Terminal which became a part of Eclipse CDT Project. It is more likely to be preinstalled in the installation. If it isn't, you can install it from the marketplace.

To open a terminal in Eclipse, you either take the long road or shorter road.

Long Road:

Go to Window→Show View→Other. Search for Terminal which is probably under Terminal section instead of General. Select Terminal and press Open.

You'll see Termial view at the bottom or on left depending on preferences. Click on the left most blue Open a new Terminal icon on the left side of the view panel.

Shorter Road

Press Ctrl+Shift+Alt+T and select Local Terminal.

If you want to open a terminal in the directory of some project or package, click on the project/package before hitting the key combinations.
Alternatively, right click on any project/package and click on Show in→Terminal.


Without knowing more about your security needs on this system in question, the 'default' ruleset of "Deny incoming connections from Outside" and "Allow Outgoing Connections" from the firewall's perspective is usually a 'safe' practice.

You should be 'good to go' from most threats and risks, the only concern is if you also want to filter outbound traffic, but that would be better handled by some other type of application than just your firewall directly.  Short story, though, the defaults should be good for the basic needs case.

However, if you have any servers on your system that need to be web facing you'll need to add rules.  The tricky part is that as you don't define your restrictions, it's impossible to really provide a 'good' answer or not about whether or not the defaults are sufficient.


How can one make Firefox ignore my GTK theme entirely?

Permanent solution:

You can specify a light GTK theme to use for rendering webpages in about:config. This is great because your system theme will still apply for menus etc. but the webpages will be rendered as they are with light themes.

Navigate to about:config in your Firefox browser
Right click and select new->string
Enter widget.content.gtk-theme-override as the name
Enter a light GTK theme that you have installed on your system for the value. e.g. Arc
Restart firefox.

Source: https://www.reddit.com/r/firefox/comments/6rbvvw/photon_rectangular_tabs_have_landed_in_nightly/dl4318f/

See also https://bugzilla.mozilla.org/show_bug.cgi?id=1283086


Can't change keyboard layout in some Qt programs

It looks like it's a bug in Qt's event handling system for changing keynoard layout: bugzilla link.

  Gatis Paeglis added a comment - 03/Dec/13 1:47 PM
  This is not a bug in Qt as suggested by a developer in https://mail.gnome.org/archives/desktop-devel-list/2013-September/msg00046.html
  The same resource suggests that the cause of the issue is that Qt doesn't listen for XkbNewKeyboardNotify events - this is wrong. XkbNewKeyboardNotify has nothing to do with keyboard layout changes. XkbNewKeyboardNotify event is fired when the actual hardware gets connected or disconnected, not when the keyboard layout changes.
  The actual issue is in Xlib as suggested in https://bugs.freedesktop.org/show_bug.cgi?id=23202 and in https://bugreports.qt-project.org/browse/QTBUG-30911.
  We can hope that one day xcb platform plugin won't need dependencies to Xlib anymore, which will allows us to use xcb event loop directly. This should also solve the "keyboard layout detection" issue.
  Here is the discussion about Xlib dependency in xcb plugin http://lists.qt-project.org/pipermail/development/2013-July/011965.html

As it's said, it affects only GTK based desktop enviroments, so you may want to swich to KDE. You can do it this way:

sudo apt-get install kubuntu-desktop


You should be able to open any of the default Ubuntu text terminals by pressing:

Ctrl+Alt+FX

where X in function key FX can be any number on your keyboard (for example, F4 or F5)

Have in mind, that function key F7 is reserved for the graphical terminal (where your FGLRX driver has crashed), thus you should use a different terminal.

Basically what you want is reconfigure xorg.conf (Xorg display server configuration file). You can do this by simply typing:

sudo rm /etc/X11/xorg.conf

After removing/reconfiguring the xorg.conf file, start the Xorg server with this command:

sudo startx


No sound from applications after Ubuntu LTS 18.04 wakes up

I have stumbled on a solution -- though perhaps not the best solution -- to this problem.

I installed the program 'pavucontrol':  sudo apt-get install pavucontrol.

In the program's Configuration tab I observed two Profiles.  The first was "Digital Stereo (HDMI 3) Output (unplugged)".  The second was "Built-in Audio."

I turned the first configuration to Off.  The second configuration was set to Analog Stereo Duplex.

The pavucontrol Output Devices tab now reports on "Built-in Audio Analog Stereo.  I am now getting expected audio in Firefox, Chromium and Rhythmbox.  This restored performance has survived a reboot.

The one place where I am not getting my previous performance is in Activities/Settings/Sound/Test Speakers, where I am getting no sound out of either FrontLeft or FrontRight.

I have a hypothesis as to what happened.  Four days ago I was giving a presentation where my laptop was connected to a data projector via an HDMI cable.  At the end of the presentation I shutdown my laptop but did not take the HDMI cable out until after the machine was off.

Could that have "reset" the sound configuration to "expect" HTMI as "default"?


How to set root proxy settings via command line?

I don't know if this can help you but I use tsocks for socks proxies like Tor

Install the latest version of tor and tsocks sudo apt-get install tor tsocks

Edit the tsocks configuration file sudo gedit /etc/tsocks.conf so the last few lines should be :

server = 127.0.0.1
# Server type defaults to 4 so we need to specify it as 5 for this one
server_type = 5
# The port defaults to 1080 but I've stated it here for clarity
server_port = 9050

and execute any command with tor proxy tsocks sudo apt-get update for example .


Install Lubuntu 18.10 on a 4GB Virtual Machine

Brute force installation from even mini.iso may fail because of not enough disk space during installation (as it needs it for both packages downloading into /var/cache/apt/archives and their extracting to root filesystem).

But you can get small viable system by proceeding with the following procedure:

Install SSH server on the host

sudo apt-get install ssh

Create folder on the host for storing deb-archives inside home directory of your user (let's call him host-user)

mkdir -p ~/Public/debs

Download minimal Network Boot mini.iso
Configure VM to use bridged adapter networking

and determine host IP with any method you like (from ifconfig or something).
Let's assume it is 192.168.13.37.
Boot VM from mini.iso
Proceed with minimal installation (make whole disk a single partition for rootfs, and do not select huge components on the taskel package selection) and reboot VM on finish
Install SSHfs client into guest

sudo apt-get install sshfs

Mount /var/cache/apt/archives from outside the VM with SSHFS from host to guest

sudo sshfs host-user@192.168.13.37:/home/host-user/Public/debs /var/cache/apt/archives -o nonempty

Note: change host-user to real username on host and 192.168.13.37 to the IP of the host.
Then install the Lubuntu flavor as usual by APT but without recommended parts (to save disk space)

sudo apt-get install lubuntu-desktop --no-install-recommends

Reboot and enjoy.

As the result you will get 1 Gb free and pretty small but usable system. Install Firefox and other stuff by hand.

Notes:
1. Consider to use LTS version of the Ubuntu instead of 9-month regular version.
2. You can install almost any flavor by this method.


You are already using a video driver. If you didn't have a video driver working you wouldn't see anything on your monitor. What your screenshot is showing us is that you have another piece of hardware that ubuntu doesn't recognize the vendor but as I can understand from your screenshot the (unrecognized) device is working with its proprietary driver, which is recommended the most of times.


You can use few ways to restore your grub.
Most simple way is loading your Ubuntu Live CD with
no acpi no apic no lapic no raid no modeset options
( F6 on boot screen and select all for exclusion Free Software Only ),
choose Try Ubuntu, and:

Tune Network connection and connect Internet.
Run terminal.
Run:

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

In your Guest session will be installed Boot Repair program.

How to use it and more information about restoring boot you can read here:
Ubuntu Documentation > Community Documentation > Boot-Repair

More complicated way:
Grub Rescue commands


Where can I find package 'libpng12.so.0'?

It seems VMware actually ships libpng12.so.0 with the client. You can link to it with this command:

sudo ln -s /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0 /usr/lib/x86_64-linux-gnu/libpng12.so.0


How to create a shortcut to start, minimize and bring programs to the foreground

I received the answer to my question from a user on another forum.

#!/bin/bash

chromefocus=$(xdotool getwindowfocus getwindowname | grep -c "Google Chrome")

if [ "$chromefocus" -gt "0" ]; then
        xdotool windowminimize $(xdotool getactivewindow)
    else
        wmctrl -xa "google-chrome.Google-chrome" || /usr/bin/google-chrome
fi


netstat command on WSL doesn't give any messages

/proc/net/tcp is not implemented for WSL, hence accessing these networking proc interfaces does not work. The netstat or ss commands access these and, since they are not implemented, they do not work in WSL on Ubuntu.


You have to fix your DNS resolver configuration, e.g the DNS server your own server is using to convert hostnames to IP addresses. This should not affect websites running on your VPS. Do not change DNS server your domains are using - that would break your websites.

You could either use your provider's DNS server (ask the settings from them, or check out their documentation), or for example Google's public DNS resolvers.

For instructions on how to change your DNS server, check out for example this question on askubuntu.com


What is the maximum length of a file path in Ubuntu?

The max filename length is 255 bytes. Found in the wiki page for ext4.

And a maximum path of 4096 characters. Found in this Unix&Linux SE Question.

Although, I did find this wiki article that does not specify a max file path in ext4.


How to update only specific part of repository?

The solution is to ignore configuration made by apt-file .

I searched files owned by apt-file and found that a configuration file for apt is located at /etc/apt/apt.conf.d/50apt-file.conf . I read the contents and there was this text in comment:

## This file is provided by apt-file(1) to download Contents
## files, which is used by apt-file for searching.

So, I commented whole configuration like this:

## This file is provided by apt-file(1) to download Contents
## files, which is used by apt-file for searching.
/*
Acquire::IndexTargets {
    deb::Contents-deb  {
...
# descriptive header.
apt-file::Parser::Check-For-Description-Header "false";
*/

Then I ran apt update and apt is now no longer downloading repository for apt-file . Whenever I need to use apt-file , I just uncomment those line in /etc/apt/apt.conf.d/50apt-file.conf file.


Update information outdated. Apt-get update shows no errors. No automatic updates

Every 8th day you are getting that Red warning triangle:
Possible reason for that is you might have set Update Manager to check for updates Weekly. Though it will not update automatically (Your Auto-Updates are off), it will definitely check and notify you if any updates are available.
Though your system shows up-to-date status and still you are getting the red triangle might be because you might have installed an application using a ppa repository will is no longer supported or broken. You may disable that ppa repository and the problem will be resolved.
If above thing doesn't work try running following commands:

sudo apt-get update    --Running fine for you
sudo apt-get upgrade
sudo apt-get dist-upgrade


How to either install Ubuntu correctly without affecting Win 8 or remove it safely?

Under EFI, boot loaders are stored as ordinary files and registered with the firmware. This is more flexible than the BIOS approach, but it creates the possibility of mis-matches between what's on the hard disk and what's registered with the firmware. You can usually do the registration in Linux with the efibootmgr utility. Your Boot Repair output shows that GRUB is not properly registered (lines 934-945 and 983-994). This suggests that efibootmgr might not be working on your computer; however, it can't hurt to try using it manually:

Boot to Linux using your workaround method.
Open a Terminal window.
Type sudo efibootmgr -c -p 2 -l "\EFI\ubuntu\grubx64.efi" -L "GRUB (Ubuntu)". Be very careful in typing that command. Note details like the use of quotes and backslashes. (If you want to eventually re-enable Secure Boot, substitute shimx64.efi for grubx64.efi in this command.)
Type sudo efibootmgr -v to check your entry. Verify that the filename is entered correctly.
Reboot. Ideally, GRUB should appear as the default boot program.

If GRUB does not appear, then use your workaround method to boot to Linux and type sudo efibootmgr -v again. If the entry for GRUB is present, then scrutinize it again for typos, and check the BootOrder line to see if it's listed as the first entry. You might need to re-type the command to correct a typo or use the -o option to efibootmgr to adjust the boot order.

If the GRUB entry has disappeared, you might try using bcdedit in Windows to fix the problem:

Boot to Windows using your workaround method.
Open an Administrator Command Prompt window.
Type bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi.
Reboot. With any luck, GRUB will appear.

This method sometimes works when efibootmgr fails, so it's worth trying.

If that fails, too, try running Boot Repair again, but this time, click the Advanced options button and select the option to back up/rename the Windows boot loader and put GRUB in its place. (I don't recall the exact wording of this option.) This implements an ugly hack that installs GRUB in place of the Windows boot loader and moves the Windows boot loader to a new location. This workaround can easily cause future problems, but it (or something similar done manually) is the only way to get some systems working. In fact, some HPs are known to require this solution, so you may well need to use it. Alternatively, you could return your computer to the store and buy one without a broken firmware. If you do this, be sure you tell HP why you did so; it's only returns (and the costs they impose on manufacturers) that will communicate to them that they should stop selling junk.


how to download setup of any software for ubuntu 13.10 on window xp

Ubuntu is a Debian and so uses Debian Installation packages ending with .deb extension. So Any well packaged deb will do it. But Downloading outside System repository poses danger security wise. So unless you know what you are doing, don't install anything, and unless you trust the source don't install their packages.

That being said here are sites you can get debs and are safe (to best of my knowledge)
http://packages.ubuntu.com/


Kubuntu 14.04. Could not write file. Disk full

If you're talking about copying something to /lib/firmware/ there are a few things you need to check:

You're doing it as the right user. It's drwxr-xr-x 74 root root so only root can write in there. That means you'll want to run something like:

sudo cp /path/to/firmware.file /lib/firmware/

This would be the most common issue but I get a "Access denied" error instead of disk full.
Is /lib/firmware/ on a weird partition that is full? Here's mine:

$ df /lib/firmware/
Filesystem                    1K-blocks     Used Available Use% Mounted on
/dev/sda1 115256744 97007904  12371040  89% /

Are you in readonly mode? Check the mount options:

$ mount | grep "on $(df /lib/firmware | awk 'NR==2 {print $6}') "
/dev/sda1 on / type ext4 (rw,noatime,nodiratime,discard,errors=remount-ro)


Maple is not free software, see UbuntuScience for alternatives.

This guide will take you through the steps of installing Maple9.5 or Maple10 in Ubuntu. We will install Maple and create symlinks to the executables.

This may also help troubleshooting installation of maple 16 under ubuntu 12.10.

Installation

First, create a directory in /opt for Maple. If you are installing Maple 10, you probably want to call this /opt/maple10 instead. If you do, remember to use the appropriate path for the rest of the commands in this guide.

sudo mkdir -p /opt/maple9.5

Now, put your Maple 9.5 or Maple 10 cd into your cdrom. It should then be mounted to /media/cdrom. Maple includes a nice installer script for us that we can run:

sudo sh /media/cdrom/installMapleLinuxSU

We have to run the installer through sh since cdrom's are mounted noexec by default.

Follow the instructions in the Maple installer and choose /opt/maple9.5 as the install directory.

Symbolic Links

Now so that we can just type maple to start Maple or xmaple to start the graphical version, we need to create symbolic links somewhere in your $PATH. We will be using /usr/local/bin which is reserved for local installations:

sudo mkdir -p /usr/local/bin
sudo ln -s /opt/maple9.5/bin/{x,}maple /usr/local/bin

source here together with troubleshooting in case anything goes wrong.


Where can I buy the Ubuntu phone to start developing apps?

The dev preview is coming out on the 21st February. Be patient young Padawan. See:

https://wiki.ubuntu.com/TouchInstallProcess

This will be a flashable install to overwrite Android on a Galaxy Nexus and Nexus 4. If you don't have one of those, I suggest you grab one.

Canonical will also be offering to flash phones at the Mobile World Congress later in the month. If you're scared of flashing your own hardware, this might be a good opportunity for you. (See the link above).

If you just want to get going writing apps, you can play around with the SDK already. That's available from here:

http://developer.ubuntu.com/get-started/gomobile/

Note that this is a technical preview. It's liable that the API will change and that might mean you need to do more work down the line.


Can I delete the installation folder of an .tar.gz archive?

When you have run:

sudo make install

the necessary files are copied in relevant places in the system directories. It may put things in /usr/local, may be in /opt, may be got distributed throughout other relevant directories in the system. I have come across no package that keeps and runs from that directory. There should be a README (or similar) file that should give a clear view of what will be done.

So you can remove the source directory safely, but there could be a uninstall file that does exact opposite of install i.e. it will remove all files copied so check if you have that. If present, better keep that.

As we are at it, you should use checkinstall instead of make install as checkinstall makes a .deb file out of the relevant files to be copied and you can manage it afterwards just by using any package manager e.g. apt-get, aptitude or from lower level by using dpkg. You can install checkinstall by:

sudo apt-get install checkinstall

Then check man checkinstall.


Calibre. does it possible to use network samba share for library storage folder

As it is noted here, it is not intended, even discouraged, to store your Calibre-Library on a network share and access it from different versions across different devices.

However, with some tweaking, it seems to be possible to get at least Samba shares working when mounted with CIFS. First, ensure that you have the right permissions to the share by specifying the uid option and setting it to 1000 (as was noted in the comment below your post). Then, it looks like also the nobrl option needs to be included as proposed here. (If someone got some insight on this and why this needs to be done, an explanation would be appreciated, I'm just a dumb little end user.)
Your final mount-command should look like this:

mount -t cifs -o username=your_username,password=your_password,uid=1000,nobrl //your_server_name/your_sharename /path/to/your/mountpoint

I can confirm that this works for me with Calibre Version 3.46.0 on Ubuntu 19.10 x86_64.


Is it safe to install an additional memory card while running server?

No, you should close the service, and shut down the server, then unplug the power.

Not only does it require shutdown, but a memory test run is highly recommended.   Hold [shift] on startup, then in the menu, choose "Test memory".

Please also consult your motherboard manual for the optimum slot to use to put that memory module into, and use anti-static precautions when handling the memory and installing it.


Ubuntu 16.04 Triple Monitor on Lenovo W530

Using  https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1556459 and few frustrating hours, here is my solution:
1- Disable PRIME in BIOS
2- Select Discrete Graphics in BIOS
3- Update /etc/default/grub to include
 GRUB_CMDLINE_LINUX_DEFAULT="thinkpad-acpi.brightness_enable=1 acpi_backlight=vendor"
4- update-grub
5- apt-get remove --purge "nvidia*"
6-Add https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers PPA
7- apt update && apt -y upgrade
8- Select Nouveau as display driver, under Software & Updates, Additional Drivers tab

After reboot, I am able to use LVDS, VGA and DVI. The only snag is that contrast cannot be controlled via keyboard, due to Step 3, above. As a work around, I do:
echo x | sudo tee /sys/class/backlight/nv_backlight/brightness, where x is between 0 to cat /sys/class/backlight/nv_backlight/max_brightness.
So far, it has been a very good experience, with glxgear showing 60 fps and fan running quieter.
Cheers,


Big videos like that can choke video cards if they don't have native codec support.
Best bet is to check your video card drivers are up to date, in the past I've had trouble getting drivers for ATI cards. Yours is old enough that ubuntu should have them in the restricted hardware thingy.


Cheese unable to find video camera on 18.04.4 desktop

sudo cheese from terminal worked for me.


Saved IPv4 static config file location, on Ubuntu Desktop 17.10?

If you set the static IP in Network Manager, which I recommend if it is running and installed on your system, the information will be found in /etc/NetworkManager/system-connections/Wired\ connection\ 1.

A redacted sample might look something like:

[ipv4]
address1=192.168.0.120/24,192.168.0.1
dns=8.8.8.8;8.8.4.4;
dns-search=
ignore-auto-dns=true
may-fail=false
method=manual

[ipv6]
addr-gen-mode=stable-privacy
dns=2001:4860:4860::8888;2001:4860:4860::8844;
dns-search=
ignore-auto-dns=true
ip6-privacy=0
method=auto


What does "the repository  does not have a release file" mean?

This is happening because there is no release for the version of Ubuntu that you are running. The simplest way to resolve this would be to remove the outdated repositories from the updates, at least temporarily.
To do this:

Open your "Software & Updates" application

Go to the "Other Software" tab

Remove the repositories that do not have a release:

Freshlight
Grub Customizer
Super Boot Manager
UGet

Press [Close]

The system will update the repositories that it reads and then you should be good to go. If, in the future, there are updates to these repositories to make them compatible with your version of Ubuntu, simply check the boxes and update again.
Hope this answers your question.


Installing required packages for Soundwire Server gives weird and horrible output

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

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


How to fix a downloads directory in UBUNTU 18.04?

I used information coming from others and read other's answers on how to use bluman-services. In the transfer page there was a window opening for selections about receiving "incoming files". When I clicked on it, selected "downloads", then: apply. This resulted in disappearance of the message saying that a downloads directory does not exist, but the downloads folder did not work as it did not receive incoming files. The solution came from Mchid suggestion to use the following command in Terminal:
mkdir downloads
keep it and reboot


To show the Grub 2 menu at boot time it is only the right hand shift key that works


The only thing I've found (that I haven't yet tried), is setting up a virtual machine that runs windows 10.  And through that, you know, use the official XBox app.

Wish there were a native way, though.


First, change your .ignore file to this:

project1/*
project2/*

Second, change your -x switch to -x@.ignore.


Which settings daemon for numlock and repeat delay on Ubuntu 20.04?

Using unity-settings-daemon instead of the GNOME settings daemons, solves the issue. It is not part of the default installation, so I can’t be sure it will always be available in the future.


Disabling WiFi while airodump-ng is running crashes the session

Maybe i didn't understand your question correctly, but you can't connect to wireless networks while your interface is in monitor mode.

Now if this wasn't the question then i'll point out a few more things to make it work as expected:

Before running airodump-ng you should also kill any netowrking processes determined by

sudo airmon-ng check

Now if you want to end whatever you were doing, you stop the monitor mode

sudo airmon-ng stop mon0

And start netowrking services

sudo service networking start
sudo service network-manager start


You can add items to the first section of the System menu using Alacarte (System -> Preferences -> Main Menu).

The menu items below that are  hard-coded  in the gnome-panel source code, so other than editing the source code, there is no way to add more menu items to the second section of the System menu.

However, you can "replace" any of the three menu items by creating a .desktop file in ~/.local/share/applications with a specific filename.

Help and Support = yelp.desktop
About GNOME  =  gnome-about.desktop
About Ubuntu = ubuntu-about.desktop

For example, lets say that instead of an About Ubuntu item in the System menu you want an Ubuntu Tweak item, simply copy the ubuntu-tweak.desktop file to ~/.local/share/applications/, renaming it to ubuntu-about.desktop:

cp /usr/share/applications/ubuntu-tweak.desktop ~/.local/share/applications/ubuntu-about.desktop

If you want to have the About Ubuntu menu item again, simply delete ubuntu-about.desktop:

rm ~/.local/share/applications/ubuntu-about.desktop


how to upgrade ubuntu12.04 to ubuntu 13.04

You need to first upgrade 12.04 to 12.10. Then you can upgrade it using sudo do-release-upgrade -d or you can try this https://help.ubuntu.com/community/RaringUpgrades. This might also help you can-i-skip-over-releases-when-upgrading.


How do I use the latest GCC on Ubuntu? (Ubuntu 18.04; gcc 8.1)

The package name is gcc-8, not gcc-8.1, so try:

sudo apt-get install gcc-8 g++-8

As others mentioned, make sure you've added the toolchain test PPA:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update


Phpmyadmin not found, when running laravel application

Apache will not follow symbolic links by default you need to enable them.
<Directory /var/www/html/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>


Test that I have correctly added someone's public key to authorized_keys

TROUBLESHOOTING

On your remote server, run the following:

ls -la ~/.ssh | grep "authorized_keys"

You should see output similar to the following:

-rw-------  1 example.com example.com 398 Jul 15 10:32 authorized_keys

Note that the directory needs to include the file called authorized_keys with -rw------- (600) permissions.

Finally, run this command to check the permissions on your .ssh directory:

$ ls -ld ~/.ssh
drwx------   2 example.com example.com     3 Jul 15 10:32 .ssh

You should have a folder called .ssh with drwx------ (700) permissions.

If for either of these tests, you get blank output, or a message similar to the following:

ls: /root/.ssh: No such file or directory

Please repeat Steps 1 and 4-5 above.

Found this here


What is the equivalent of blue screen of death in linux?

Its called a kernel panic. Linux usually doesn't get kernel panic because it is very good at handling hardware (What led you to ask this question). In some cases Linux might get kernel panics if you have malfunctioning hardware. In such cases your system will cease to work, producing an error similar to below:


When I mount my RAID5, there is constant activity; how can I figure out what it is?

Using iotop I determined that it was a process called ext4lazyinit, which is a process that initializes a newly-created ext4 filesystem "lazily", i.e., after the filesystem is created and ready for use. The constant activity on these disks has since stopped (it took a few hours).


How do I get a list of all of the available dbus properties?

Have you tried using the d-feet tool?

sudo apt-get install d-feet

Try that and see if you make progress.


20.04 "No network interfaces detected" when installing Focal as KVM guest

It seems like a defective daily.

With this URL I had no problem:

http://www.cdimage.ubuntu.com/ubuntu-server/daily/current/


I don't know if this works on 17.10 but on 18.04 I had the same issue. It seems to be because of changes on logind cleaning up processes (preventing any user session process persisting). Apparently KillUserProcesses=no is the default in 18.04 (according to the comments in /etc/systemd/logind.conf) so instead I added my user to the KillExcludeUsers list:

KillExcludeUsers=root YOUR_USERNAME

Next I ran the command:

sudo loginctl enable-linger YOUR_USERNAME

and finally rebooted. After that my screen session would persist after a detach.


Apt failure on wine installation, how to restore the consistent state of my system?

As usual, in such cases the real cause is the first error, namely:

dpkg: error processing package libopenal1:i386 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration

So, the wine package requires the libopenal1:i386 package to work, but this is in a "very bad inconsistent state". The following error messages are only dependency problems - wine can't be installed because also libopenal1 can't be installed, but wine would require it.

It is probably not your first try to install wine, this state happens only if multiple install/uninstall/upgrade tries failed and also the automatical correction mechanisms failed.

You shouldn't imagine what microsoft is doing with his .msi files. A deb package has only these components:

A tar.xz archive
Some package metadata (this is what is shown for a dpkg --info something.deb or with an apt-cache show something)
Install/uninstall scripts, these are typically 10-20 lines long shellscripts which are being called on package installation/uninstallation/upgrade. They are in /var/lib/dpkg/info, and their name is <packagename>.preinst, <packagename>.postinst, <packagename>.prerm and <packagename>.postrm.

If the package install/uninstall scripts give an error, your package goes into an inconsistent state. How deeply inconsistent, it depends on the circumstances. The important thing to know: it is not like some mysterious windows system failure requiring a reinstall. It is a simple error message in a simple installscript and you can easily fix it.

You can check your system for packages in inconsistent state with the command dpkg -C. As in Unixes it is usual, empty answer means that everything happened correctly and you have no bad package.

Most problems can be automatically fixed by an apt-get -f install. This command tries its best to take your system into a consistent state again. It is particularly useful if you are doing some "harder" things, like switching from a 32-bit system to a 64-bit one or vice versa without a reboot, or you are switching between distros, also without a reboot.

In your case, being this "very bad inconsistent state" the worst, an apt-get -f install probably won't work, but you can give him a try. If it doesn't work, your next task should be to fix this libopenal1:i386. It is some 3d-acceleration or direct hardware access library for the x11, I don't know exactly what it is exactly doing, but it isn't even important. What is important: it is coming into your system with the wine, so only wine needs it. Wine is using it probably to emulate graphically accelerated, 32-bit windows programs. So you can safely play with its removal/reinstall.

After apt-get -f install failed, your next step should be to exterminate this libopenal1:i386 from your system. The "strongest" thing you can do it is a dpkg --force-depends --purge libopenal1:i386. Probably also this won't work, because the error message clearly shows that the package requires a reinstall.

So, you have to reinstall libopenal1:i386 first. In /var/cache/apt/archives, you have your package files, it should contain a file matching libopenal1*i386.deb. If it doesn't, then you can use apt-get download libopenal1:i386 to download it, directory from the ubuntu package repositories.

A dpkg -i libopenal1*i386.deb will try to install this file again. If it goes, you have luck, an apt-get -f install will fix your system and install your wine correctly. If not, then you have to debug the install scripts.

Extend the question, what happened and I will extend the answer, on this point, what to do.


How to re-add accidentally removed hard drive in RAID5

You might need to just do an --add and not a --re-add. if you read the man page about --re-add it talks about re-adding the device if the event count is close to the rest of the devices. you can use --examine to find this out.

$ mdadm --examine /dev/sd[a-z]1 | egrep 'Event|/dev/sd'
mdadm: No md superblock detected on /dev/sda1.
/dev/sdb1:
         Events : 992655
/dev/sdd1:
         Events : 992655
/dev/sde1:
         Events : 992655
/dev/sdf1:
         Events : 992655
/dev/sdg1:
         Events : 158
/dev/sdh1:
         Events : 992655
/dev/sdj1:
         Events : 992655

as you can see my /dev/sdh1 device has not been in the array for some time and --re-add will not work and you will have to do an --add and for a recovery of the array.

you can use mdadm --detail /dev/md126 to watch what is happening, might not be bad idea to run this before you do anything, after all this is your data!

$ mdadm --detail /dev/md126
/dev/md126:
        Version : 1.2
  Creation Time : Tue Jun 24 05:17:47 2014
     Raid Level : raid6
     Array Size : 14650158080 (13971.48 GiB 15001.76 GB)
  Used Dev Size : 2930031616 (2794.30 GiB 3000.35 GB)
   Raid Devices : 7
  Total Devices : 7
    Persistence : Superblock is persistent

    Update Time : Thu Nov  6 05:47:56 2014
          State : clean, degraded, recovering
 Active Devices : 6
Working Devices : 7
 Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 512K

 Rebuild Status : 0% complete

           Name : omegacentauri:0  (local to host omegacentauri)
           UUID : 9fdcacc0:14f7ef3c:a6931b47:bfb8b4a1
         Events : 992656

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8       49        1      active sync   /dev/sdd1
       2       8       65        2      active sync   /dev/sde1
       3       8       81        3      active sync   /dev/sdf1
       4       8       97        4      active sync   /dev/sdg1
       5       8      145        5      active sync   /dev/sdj1
       7       8      113        6      spare rebuilding   /dev/sdh1

or you can use this too:

$ cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md126 : active raid6 sdh1[7] sdg1[4] sdj1[5] sdf1[3] sdd1[1] sde1[2] sdb1[0]
      14650158080 blocks super 1.2 level 6, 512k chunk, algorithm 2 [7/6] [UUUUUU_]
      [>....................]  recovery =  0.9% (26657536/2930031616) finish=1162.5min speed=41624K/sec

md127 : active (auto-read-only) raid1 sdi[1] sdc[0]
      1465007360 blocks super 1.2 [2/2] [UU]

I am not responsible for any of your lost data.


How to permanently fix errors with ntfs volume to be mounted in RW mode. Need ntfsfix everytime after Windows boot

Finally I understood that the reason was in Windows, not in Ubuntu. I thought that the windows hibernation affects only the system partition, however it affects ALL the ntfs partition viewed by Windows.
So the solution is to turn-off the hibernation in Windows:
powercfg -h off
After this command in Windows, the ubuntu will mount all ntfs partition in rw mode. So, this is the solution not just for sindows system partition, but for all ntfs partitions "touched/viewed" by windows with active hibernation.
Thanks to @Serafim-Dahl for his helping comments
PS. The similar solution for windows system partition is here: Unable to mount Windows (NTFS) filesystem due to hibernation


I think the guy missed something while installing, because Kevin there is Unity menu defaultly on Ubuntu 12.10 or any new Ubuntu, i think there is something wrong with you copy or better if you made a print screen for us to see what is the real problem .


Xubuntu 16.04.1 won't wake up correctly after opening lid

Try upgrading your kernel. Seemed to do the trick for me.

Second answer here: With Ubuntu 16.04 laptop doesn't suspend when lid is closed


Script that generates a file with random content

dd if=/dev/random of=~/student/john.bin bs=1024 count=12000
 or
dd if=/dev/urandom of~/student/john.bin bs=1024 count=12000

Where bs is the size of each random input you want (1024 = 1Kb), and count is how many of those blocks you want.

ie.
bs=1024, count=12000: 12MB
bs=512, count=24000: 12MB
bs=256, count=48000: 12MB
etc.


Getting rid of current traces of MySQL so that I can re-install afresh

I somehow go this worked out.
apt list --installed  | grep -i mysql
sudo apt remove <package name>
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt --fix-broken install


Try this command instead.

sudo apt-get install --install-recommends linux-generic-lts-utopic xserver-xorg-lts-utopic libqt5gui5 libgles1-mesa-lts-utopic libgles2-mesa-lts-utopic libgl1-mesa-glx-lts-utopic libgl1-mesa-glx-lts-utopic:i386 libglapi-mesa-lts-utopic:i386 libegl1-mesa-drivers-lts-utopic


'Just found the solution !

I had used gdebi to install the three packages (iscan core, data and plugin). But, it is necessary to install EACH package one after the other as described here : http://download.ebz.epson.net/faq/linux/faq_ls_00002.html

Regards,


Nvidia doesn't support too much for free OS like Ubuntu, you have to go to Nvidia site and find out your appropriate driver from there. When its downloaded, then follow below step. Might be help full for you.

Make the run file executable: chmod +x /path/of/file.run
Go to cli mode: ctrl+alt+f1 or f2)
Stop your graphic service: service gdm/lightdm stop
Run your *.run file: ./path/of/file.run
Follow simple steps.
Now start your graphic service or restart your system: service gdm/lightdm start
Run this command to check which graphic card your system use: /usr/lib/nux/unity_support_test -p


Error while installing MegaSync on Ubuntu 20.04

You have to use apt / apt-get instead of dpkg. They will install dependencies for package:

sudo apt install ./megasync-xUbuntu_20.04_amd64.deb


Touschscreen acting like mouse - Ubuntu 16.04 on Dell XPS 13

I also have an XPS 13, and here is my experience. Depending on the app, the touchscreen will work as a "touchscreen" or as a "mouse." For instance, in Google Chrome, my touchscreen acts as intended by default. In LibreOffice (Microsoft Word equivalent), it acts as a mouse and just highlights things without scrolling. In Firefox, the touchscreen also acts like a mouse by default. However, by installing this addon (after installing make sure to enable it in the addon's preferences menu), I was able to get touch support working i.e. scrolling by using my finger.

Therefore, I'm going to end by saying that this is a problem that varies from app to app and will depend on how an app is optimized for the touchscreen. If there is a specific app you want touch support for, I suggest googling something like "'app name' touchscreen linux" and seeing what comes up.

Best of luck!


How to recover after deleting Ubuntu partition?

Your computer is fine. I can't give you the details with the information you have provided but it looks like you simply deleted the partition that held your Ubuntu install. The simplest thing to do would be to reinstall Ubuntu.

If you have indeed deleted the partition that held Ubuntu, reinstalling is the only thing you can do apart from restoring from backups and that wouldn't be very easy either. Your Windows install should not have been affected and you should be able to recover everything once you reinstall.


How to install Ubuntu after installing Windows?

You need to create four partitions:

N) fs, size, mountpoint

1) ext2, 512 MB, /boot

2) ext4, at least 10 GB, /

3) ext4, at least 5 GB, /home

4) swap, 2x available RAM, none

Then when installing from disk, it will ask you to erase windows or install alongside. Make sure you choose "Something Else".

Then, make the partitions as described above. Remember to select the ext2 partition for bootloader installation.

After installing, use a program (in windows) such as EasyBCD and create an entry in the windows bootloader to point to the ext2 partition which, if you followed my instructions correctly, should be where GRUB is installed.

Next time you boot, you should be able to select which OS you want to boot into. I am using this setup and dual booting windows 8.1 and xubuntu 15.04 on my laptop.

Hope this helps!!!


As an alternative, if you have 8GB of RAM or more then you can just download windows 10 from MS for free and run it in virtualbox. You can integrate it so well Vegas will just be another window on your Ubuntu desktop. Use samba to share the relevant folders with your Windows VM, and share the C:\ drive in the VM with Ubuntu, and you can do anything you need to in the Windows directories right from bash and nautilus.


How to do firmware updates/upgrades to a Blackberry

Firmware updates cannot be applied to BlackBerry devices from Ubuntu, so the answer to your first question is 'No, it cannot be done'.

RIM, makers of the BlackBerry, have decided to support Windows and Mac only.  They also just lost $125 million in three months, a CTO, and a co-CEO, so maybe they are looking for new ideas. Try a feature request via their contact page.

Sometimes updates can be applied to mobile handsets at the wireless carriers' stores.

The answer to the second part of your question is also 'No'. You didn't miss any other projects that support flashing BlackBerry firmware updates from Ubuntu.


You can place JDK 1.4 in a programs folder in your home directory, something like this for example:

/home/vico/programs/jdk1.4.x_xx

Then, you can add it to your path variable like this, so that bash and netbeans find this version of java first:

export PATH="/home/vico/programs/jdk1.4.x_xx/bin:$PATH"

If you are in the habit of doing this frequently, you can add the PATH modifier to your ~/.profile file.

Of course, you can explicitly tell netbeans what version of java to use by editing this line in your etc/netbeans.conf file:

#netbeans_jdkhome="/path/to/your/jdk"

And similarly, the -vm option in eclipse.ini for the Eclipse IDE:

-vm
/path/to/your/java_executable

EDIT

tar.gz isn't available on Oracle site for the ancient version you are trying to install (1.4.x_xx). Firstly, make the j2sdk-1_4_2_04-linux-ia64-rpm.bin file executable by doing this:

chmod u+x j2sdk-1_4_2_04-linux-ia64-rpm.bin

Then first try running the executable without root like this:

./j2sdk-1_4_2_04-linux-ia64-rpm.bin

Hopefully, it should allow you a local installation in your ~/ (home directory). If it fails, however, then try sudo:

sudo ./j2sdk-1_4_2_04-linux-ia64-rpm.bin

Refer to this SO link for more details.


openvpn stopped workng (for me) after upgrade from Kubuntu 14.04 to 18.04

I added the following lines to the client.ovpn file after the line that says "client"

script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

and everything now works. I got this solution from this answer:

https://askubuntu.com/a/987538 by @AlexOnLinux


What I did, I check on ubuntu if the versions of g++, gcc and g are the same or not.

I guess it is better if you have all the three of same version.

# first check the versions:
gcc --version
g++ --version
gfortran --version

# If versions are different, then install:
sudo apt-get update
apt-get install gcc-4.9 g++-4.9 gfortran-4.9

For me this resolved all the issues which I was facing while installing "TTR" package in R using RStudio on Ubuntu.


xml2 installed but not found during compilation

In the Ubuntu packaging system, the libXXX packages often only contain the runtime libraries necessary for running applications that dynamically link the library.

In order to get the libraries and header files necessary for compiling and building, there is usually a separate libXXX-dev package (-dev indicating that the packages are for development). You can check what development packages are available for a particular library using the apt-cache search engine e.g.

apt-cache search devel | grep libxml2

In your case, you are probably missing the libxml2-dev package.


Most newer computers can start up from a USB stick. You should see a welcome screen prompting you to choose your language and giving you the option to either install Ubuntu or try it from the USB.

If your computer does not automatically do this, you might need to change the device from which the computer starts up to the USB. You can usually do this by watching for a message appearing before Windows starts. You should be invited to change the boot device. Once you’ve selected that option, follow the instructions on screen.

Tip: You might be able to press ‘F12’ or ‘Escape’ while your computer is starting up to change your boot device order.

Depending on your computer and how your USB key was formatted, you should see an entry for ‘removable drive’ or ‘USB media’. Move this to the top of the list to force the computer to start from USB rather than the hard disk. Save your changes and continue.

If you select "Try" you can work in Live environment and it neither installs Ubuntu nor affects Windows previously installed (if any).

Then shutdown normally the OS which turns the PC off, remove the flash drive and when you boot it again it will work with your Windows like nothing happened.


Looks like a glitch/bug. Since you mentioned that you can open the trash, and empty it from there, that might be your best option for now.
Also, since you said you are using Ubuntu 20.10, I just want to say that (especially for a new user) I would recommend staying away from using short-term intermediate releases, and only use LTS releases. This is because the latter has a MUCH longer support term (normal releases are only supported for 9 months, while LTS releases are supported for 2 YEARS), more COMMUNITY support (since they have WAY more users), and are more stable than normal releases. A bonus with LTS releases, is that you only have to worry about releases upgrades once every 2 - 5 years, whereas with normal releases, you need to upgrade them every 6 - 9 months (at least, if you want to continue receiving bug fixes and, most importantly, security updates).


how to manage opened windows between multiple monitors like I did in windows 10?

I personally use Xubuntu which uses a light weight XFCE desktop environment. It supports adding as many panels/taskbar as you wish.
I'll try adding a screen shot when I get to my PC.


Resizing/Removing Ubuntu partition from within Ubuntu in a dual boot setting

If you still have your install media this is very easy, but backup any data you cannot afford to lose first:

In your normal Ubuntu environment open GParted and identify your partitions. You should have a root partition, marked by a / and you may have a /home partition as well. Also you may have a small esp/EFI partition. These partitions will have a key symbol indicating they are mounted.
Boot your install media but go down the Try Ubuntu route to get into a live environment
Open GParted and identify your partitions again. If you don’t want Windows you can happily delete any NTFS partitions. In particular don’t touch the small esp/EFI partition. The small Microsoft reserved partition can also be deleted. Apply any changes you have made
Using GParted resize and if necessary move your Linux partition(s) to use up the unallocated space. I prefer to apply changes one by one.

That should be it! If you are unsure about anything update your question and add the output of lsblk to your question.
Good Luck


How do I *temporarily* change the *console* keymap to dvorak?

The command you're looking for is loadkeys. Use sudo loadkeys dvorak to switch temporarily, and sudo loadkeys us (or whatever your qwerty keymap is) to get back.

You can use one of these methods to make it so sudo loadkeys doesn't actually require your password from you (I suggest method 2.)