WD 3T usb 3 external failed mount at boot time

You can try this:

Create a new file like quirks.conf in /etc/modprobe.d/ with the following content:

options usb-storage quirks=<VID>:<PID>:u

The format is quirks=<VID>:<PID>:u

Where <VID> is the VendorId

And <PID> is the ProductId of your quirky usb device, which may be found via lsusb.

The 'u' flag disables uas for the device.


From what i understand it's a rookie question, so here's how you do it:

Open Terminal CTRL+ALT+T

> sudo su                           #elevate to root
> fdisk -l                          #list all disks and partitions, find the one your files are on.
> mkdir /mnt/my_files               # make a new mount point
> mount /dev/sdb2 /mnt/my_files     # mount your partition eg: sdb2
> cd /mnt/my_files                  # change location to mount point


The pernicious USB-stick stall problem. Is it fixed in 14.04?

There is a bug report, which was closed as INVALID.
The patch to fix this (at least, that's what I think it does from a quick scan of the mailing list discussion) was originally submitted in November. However, it has only entered the linux-next tree today. And from what I understand of the linux-next tree, code merged in to it are aimed at the next release. So, no, the bug hasn't been fixed yet, but will be (hopefully soon).


Can I install software on a bootable usb key?

In "Startup Disk Creator", there is an option called "Persistence". If you select that and create the bootable USB drive, all your software, settings, and documents will remain permanent, like an installed Ubuntu system.


Bind9 performance issues with Docker containers

So I completed my investigation and found a satisfactory answer for the behavior that we were observing in our environment. When I noticed DNS queries on the secondary DNS server, I assumed the primary DNS server to be having performance issues. And I kept digging with this assumption and kept on trying to improve perfomance or find problems with primary server.

But after my digging I have found that the way systemd-resolved works is, it would switch the DNS servers as soon as there is a delay/hiccup on the "current" server. And then it would stick with the newer server until there is a hiccup and then rotate back to original server again. This traffic being UDP and with this high number of requests and clients, there are many chances of dropped packets and servers keep getting rotated. This does not seem to be causing much performance issue and actually end up spreading load across multiple servers. So I am leaving it at that.

Though there is a heated discussion regarding this behavior in systemd github: https://github.com/systemd/systemd/issues/5755

Also during my digging while trying to get better performance for my BIND servers I came across some resources that might be handy:

https://gist.github.com/voluntas/bc54c60aaa7ad6856e6f6a928b79ab6c
https://community.akamai.com/customers/s/article/DNS-at-1-000-000-tps-and-Beyond?language=en_US


Simply type the Esc or the Super (Windows key) , this should close the app-page.


You need to install these build-dependencies for R-package:

sudo apt-get install r-base-dev

And then install R-packages to your home folder (that is ~/R/x86_64-pc-linux-gnu-library). You do not need to run RStudio as root.


Always try to simplify your problem: first turn off everything that could cause problems (like security or notification)

Then in your remmina client, change the RDP protocol to the VNC protocol and try again.

After that works, turn on the notification, then the security...

;-)


Problems with opening/saving attachment in e-mail as .docx file

If you do a search on the internet this issue is incredibly common and there is no definitive fix. The best solution I have found is as stated to change the filename and then the extension to .docx or whatever extension the original file was. The problem is NOT exclusive to Google Chrome.


NORMAL label in top right of some applications

Disable this setting, and it's gone. Think a reboot is required as well.


Big mistake caused - "Error: no such partition"

I am only repeating what has been hinted at in the comments.  There is only one answer.  Repeat the installation.  Legacy for both is fine.  Your old installation is gone forever.

Usually during an install grub or part of it gets stored in the boot partition.  That points to the grub on your Ubuntu Install.  Since that is now gone it goes to the dreaded rescue mode!


Why can't I rename a file from 'NAME' to 'name'?

Your USB flash drive is probably formatted using a FAT filesystem. This family of filesystems is case insensitive in terms of filename uniqueness.

See also Wikipedia: Case sensitivity on this:

  Old Windows filesystems (VFAT, FAT32) are not case-sensitive (there cannot be a readme.txt and a Readme.txt in the same directory) but are case-preserving, i.e. remembering the case of the letters.

This means you'll have to reformat the drive to another filesystem in case you need two files with the same name except for the casing.

However, I think you can change the name of the file in two-steps:

mv RELEASE RELEASE-temp
mv RELEASE-temp release


shell script to check if a process is up

See man pgrep. since I don't have ArcaDirect, but do have NetworkManager

(0)$ pgrep NetworkManager
1400
(0)$ pgrep ArcaDirect
(1)$

This is what I typed at the terminal

(0)$ pgrep NetworkManager
4011
(0)$ pgrep ArcaDirect
(1)$ if  $(pgrep NetworkManager >/dev/null)  ; then
  echo "Running"
  else
  echo "Restart needed"
  fi
Running
(0)$ if  $(pgrep ArcaDirect >/dev/null)  ; then echo "Running"; else echo     "Restart needed"; fi
Restart needed
(0)$


Is anyone been able to use the Chase Banking Website using Ubuntu?

Did you try suing Chase?  There might be a way to do that.  You could ask on leagal stack exchange.


delete files with particular character length and a extension in a directory using some command in terminal window

Remove all files in the current directory that ends with '.c' and is exactly 6 characters long?

rm ????.c

EDIT: or with absolute path:

rm /Folder1/Folder2/.../FolderN/??????.c

where folders are path To Your dir. For example:

rm /home/MyUserDir/Files/??????.c


Will installing Ubuntu from a CD delete my files?

It depends...!

During the installation of Ubuntu you'll be represented with maximum of three options to choose from.

1. Installing alongside Windows

If you already have Windows installed then you can install it alongside Windows, Your Windows installation will be safe and you'll be able to run booth operating systems.

2. Replace Windows with Ubuntu

In this case you'll lose every thing on your windows partition and won't be able to boot into Windows any more.

3. Something else

This option will let you choose any partition on your drives and that partition will be formatted. You can also create a new partition.

For complete guide on how to install Ubuntu visit:

Graphical Install - Community Ubuntu Documentation


How do I install Ubuntu 13 without risking damage to windows 8?

If you do a default grub install, as far as I know it will overwrite the default MBR (master boot record) on that drive. There are other alternatives, and there is a way to restore the windows bootloader in the MBR but remember, if you install os-prober you will still have windows 8 in that list of options to boot to. Even if you removed ubuntu you could use GRUB to boot to windows.

Kind of a funny things to think about but it works. Plus you'll like Ubuntu better anyway so why would you want to remove it?


How to put availabe disk space into filename?

Let's start out with the df command, using the -h option to give use the size in human readable format (gigabytes in this case)

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       226G  2.4G  213G   2% /
udev            1.7G  4.0K  1.7G   1% /dev
tmpfs           691M  324K  690M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            1.7G     0  1.7G   0% /run/shm

Now let's use grep to narrow the output of that command down to only the partition we care about - sda1

$ df -h | grep 'sda1'
/dev/sda1       226G  2.4G  213G   2% /

Looks good. Let's continue narrowing it down to only the 'Available' column, using awk

$ df -h | grep 'sda1' | awk '{print $4}'
213G

That will work. Now we'll wrap our command in backticks, so the output is returned to the shell. Then we'll use the touch command to create an empty file using the output from the command we've built, along with the string '.available'

$ touch `df -h | grep 'sda1' | awk '{print $4}'`.available
$ ls
213G.available

There you go!


How to convert Filezilla PPK to openssh sftp compatible key

Thanks to the comment from Spas Spasov (@pa4080) I did get it going.

This is what I did.

matthewh@xen:~/.ssh$ puttygen
The program 'puttygen' is currently not installed. You can install it by typing:
sudo apt install putty-tools

matthewh@xen:~/.ssh$ sudo apt install putty-tools
...

Finally I needed to read the man page to use puttygen to convert the ppk.

The command to perform the conversion was:

puttygen keyfilename.ppk -O private-openssh -o keyfilename.pem

Then I was able to use the key for ssh/sftp and sshfs.


Most of the time it happens if your screen has a touch option and it’s broken. Use

xinput

to find out the input device ID of your touch screen or touch pad and

xinput disable [ID]

to disable it.


Installing Ubuntu 13.04 on external HDD safer than dual boot with windows 8 on samsung NP780z5e

UEFI BIOS has many MANY problems with Ubuntu and all Linux OSs for that matter. Touch tablets and touch PCs are not really recommended BUT! it is possible depending on your brand.  I have a MSI board, so it worksish. Windows 8 got corrupted and grub won't work. This is however a problem with Ubuntu detecting RAID 0 on 2 hard drives on AHCI mode. Since you have a laptop externals are clunky to luge unless it's one of those fancy WD Passports (Looks awesome!). I think that booting to External will bypass UEFI or Grub. Tho this is not tested, installing with a Live CD and an External may work (I will test that later in theory it should). Make sure your external gets power (USBs may work only when in OS first then you can restart your computer). You can boot to USB (Live CD), install with "Something Else" and make sure you have the external selected. Partition with EXT4 (500GB recommended) and install. After install test with a one time boot to your external. If it loads then YAY! If your external is a eSATA then it will be easier, like SO MUCH EASIER. USB externals may work, which I was explaining the guide for. So I will easy it up

eSATA:

Install Live CD on a 2GB+ Flash Drive or a blank CD.
Boot to your USB after making sure that your eSATA is readable by your BIOS
Install with the option "Something else"
Go to the top right drop box thing and select your drive
Install!!!
When done you want to make sure that it boots to Ubuntu. To do that a One-Time Boot may be the best instead of full on BIOS (Later Windows 8 will be tested, so One Boot is key for ease)
Once tested if boots, restart your PC into Windows to test for corruption (it could happen so BACK YOUR DOCUMENTS!)
Have fun!!!

USB Externals like my USB 3.0 WD Backup might have a extra step:

Format clean before installing on it. Make sure it's free space.
USB 3.0 IS NEEDED FOR SPEED! I can't stress this enough, 2.0 sucks on a OS boot. So you get 50% to 90% less speed on 2.0. So invest on an 3.0!

This is my theory and will be tested fully by tomorrow. So at your own risk!!! Theorys can be wrong so, your fault if you mess it up. I'm not paying for anything including lost wages. Sorry making sure I'm don't get screwed! HAVE FUN!

Thanks,
Matthew


Complete these tasks...

select "Ubuntu" environment at the login screen cogwheel
upgrade the BIOS to 313/314 https://www.asus.com/ph/Laptops/ASUS-Vivobook-X556UQ/HelpDesk_BIOS/
run memtest from a Ubuntu Live DVD/USB (complete 4/4 passes, if you have the time)
disable the discrete video card, as it's broken (disable the driver, or in the BIOS)
disable wayland, like so...

You may have a problem with an older computer, with an older GPU. Try this...

boot to recovery mode
choose root access

type:

sudo mount -o remount,rw /      # to remount the disk r/w

sudo pico /etc/gdm3/custom.conf # edit this file

change:

#WaylandEnable=false

to:

WaylandEnable=false

Then reboot.

Update #1:

We booted to a Ubuntu Live 18.10 USB, and no problems were seen.

Update #2:

Before upgrading to 18.10, to see if that fixes the problem with the desktop, we should do a fsck first to check your file system, then you can use Software Updater to do the upgrade. Of course... having a good backup never hurts... just in case something goes wrong :-)

For 18.04 or newer...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
type reboot

Update #3:

To eliminate the possibility of bad blocks on your HDD causing your problem, we'll test to find any bad blocks.

First, start the Disks app, select your HDD, then go to the "hamburger" icon, and select SMART Data & Tests. Review the data, pay attention to items that include the word "sector". Then run the tests.

Also, lets check syslog for disk errors... grep -i sda /var/log/syslog*. Copy/paste that output into imgur.com (or paste.ubuntu.com) if they're lengthy.

Note: It's always a good idea to have backup of your important Ubuntu files.

So do this to test for bad blocks... (this may take a while)...

Boot to a Ubuntu Live DVD/USB.

Open terminal...

Use the fdisk method from Update #2 to figure out /dev/sdaX.

sudo e2fsck -fcky /dev/sdaX # read-only test

or

sudo e2fsck -fccky /dev/sdaX # non-destructive read/write test (recommended)

The -k is important, because it saves the previous bad block table, and adds any new bad blocks to that table. Without -k, you loose all of the prior bad block information.

The -fccky parameter...

   -f     Force checking even if the file system seems clean.

   -c     This option causes e2fsck to use badblocks(8) program  to  do  a
          read-only  scan  of  the device in order to find any bad blocks.
          If any bad blocks are found, they are added  to  the  bad  block
          inode  to  prevent them from being allocated to a file or direc‐
          tory.  If this option is specified twice,  then  the  bad  block
          scan will be done using a non-destructive read-write test.

   -k     When combined with the -c option, any existing bad blocks in the
          bad blocks list are preserved, and any new bad blocks  found  by
          running  badblocks(8)  will  be added to the existing bad blocks
          list.

   -y     Assume  an answer of `yes' to all questions; allows e2fsck to be
          used non-interactively.  This option may not be specified at the
          same time as the -n or -p options.

Update #4:

During/after the bad block scan, the drive died. Will require replacement.


Teams for Linux snap application will not start

I posted the issue on the GitHub page. I was advised to try install the deb package instead. Installing from the deb package from the GitHub downloads page worked, and I got Teams for Linux running (at least for now).


Is it possible to use .desktop files to open local pdf files on specific pages with a browser?

Use url?
I need to look it up, but I seem to remember Type Link is deprecated in a .desktop file. Anyway, it won't work here as you found out. Encoding is deprecated for sure, but that isn't the issue. Furthermore, xdg-open won't work; it will open your default application for pdf files.
Then what to use?
Create a .desktop file, calling your preferred browser with the pdf file + page as argument. In your example:
[Desktop Entry]
Type=Application
Name=Open pdf on page 45
Exec=firefox 'file:///home/myhomefolder/mypdf.pdf#page=45'
Icon=application-pdf

Then make it executable and double-click. If you are using another browser, you need to change the Exec= -line to reflect that.


How can I allow a client to log into a Samba share with a username and password?

The users with access to the samba shares don't have to be logged in.  However you have to have the user accounts for all the users to be real accounts on the server.

First create the users on the server that you want to have access:

$ sudo adduser myUser1
$ sudo adduser myUser2

Then create and assign passwords for the samba users:

$ sudo smbpasswd -a myUser1
$ sudo smbpasswd -a myUser2

Your /etc/samba/smb.conf file looks ok.  I would create a common area for the shares and link the common area to my personal space.  But that's a matter of preference.

The samba user doesn't have to exist on the client machine.  Just mount the samba share to the client's machine using the credential created with the smbpasswd -a command.


Asus N580vd with Ubuntu 16.04 freezes when I shut down it

The problem was solved finally!

I used these instructions: Switch Between Intel and Nvidia Graphics Card on Ubuntu.

First you need to install the driver that is suitable for your system. It will be recommended by asking in Ubuntu terminal. Then you choose the graphic card you want; for me, Nvidia.

Run

sudo ubuntu-drivers devices

and see which driver shows up as recommended, then install the recommended driver using sudo apt install <package-name>

After that, you can check Software & Updates > Additional Drivers and make sure the new driver is being used.


Is there a way to change the log-in sound

Make an .ogg file and put it in /usr/share/sounds/ubuntu/stereo/

Go into Start-up applications and change the login sound id to the one you want:

/usr/bin/canberra-gtk-play -–id=”desktop-login” -–description=”GNOME Login”


How do you install Windows XP on a computer that has Ubuntu and Windows 7 installed?

If there is no need for a native installation oft Windows XP I'd advice you to use kvm-qemu or hyper-v running XP as a guest OS instead oft wasting a partition for XP. The benefit oft this approach is the that you can keep you XP as as large as really needed and you need not to struggle with bootloaders etc.

Please note that hyper-v must be downloaded from MS and Windows 7 isn't supporting all its features thus it was introduced with windows 8.


How well does a Samsung qx411 (sandy bridge/optimus?) work with Ubuntu?

I'm running qx411 while writing this, and ever thing is working great.
Some Quick Notes:

Wifi good
Mouse pad Better++
The mouse pad set up personally is way better in Ubuntu then Windows.  In Windows you are required to move your finger to the left side of the mouse pad to left click, and the right side of the mouse pad to right click.  Then you have to use this glitchy 2 finger scroll in windows that is annoying and jumpy.
 In Ubuntu click with one finger is single click, and click with two is right click.  The scroll is situated conveniently to the right, out of the way but still accessible.
Sound good
Graphics
The graphics work fine.  There are a couple options for drivers, but the default are working fine.

Just get a live cd or usb and test everything out.
It won't mess with your Operating System, unless you run the install.
Download & Install


My text is being automatically highlighted

It's simply a syntax highlighting feature; it's triggered e.g. by the use of Perl's match, quoting, substitution and transliteration operators; in fact you'll notice that it happens only when typing m, q, s or y; it's probably there to highlight the fact that the operator has a syntax error.

So the only way to disable it would be to disable syntax highlighting altoghether.


Verisons of iwlwifi and firmware for my wireless card?

Although you say you are running 14.04, your 3.16.0-xx kernel corresponds to Ubuntu 14.10.

The driver iwlwifi is somewhat unique in that the pci.id, for instance 8086:4239, tells the driver the exact device and calls the appropriate firmware for the device in question.

I suspect the version: In tree means that the version is what was included in the related kernel, in your case, 3.16.

Here is where the firmware is available: https://wireless.wiki.kernel.org/en/users/Drivers/iwlwifi Your card loads 8.83.5.1 which corresponds to the firmware for an Intel 5100, 5300 or 5350. If you found an earlier or later firmware file and placed it in /lib/firmware, the driver is still going to call and use the same firmware it is written to use.

As you see, the firmware for your device is available in three versions; the 5.4.A.11 extracts to iwlwifi-5000-1.ucode; 8.24.2.12 to 5000-2 and 8.83.51.1 to 5000-5. While it is perfectly possible to download and extract these and place them where the driver expects to find them, namely /lib/firmware, the driver iwlwifi included in kernel version 3.16 is going to call and use only the appropriate firmware file: iwlwifi-5000-5.ucode.

As for the differences, I am unable to locate any change log. I assume each succeeding firmware version incorporates improvements and/or bug fixes.

As for the drivers, the usual way to get a later driver is to compile backports: https://www.kernel.org/pub/linux/kernel/projects/backports/stable/ Or, if you are brave: https://www.kernel.org/pub/linux/kernel/projects/backports/2015/03/13/

If, for example, you wanted to compile the iwlwifi driver corresponding to the later 3.18.1 kernel, download this to your desktop, right-click it and select 'Extract Here': https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.18.1/backports-3.18.1-1.tar.xz  Then, in a terminal:

sudo apt-get update
sudo apt-get install linux-headers-generic build-essential
cd ~/Desktop/backports-3.18.1
make defconfig-iwlwifi
make
sudo make install

Reboot and check the version with modinfo. It should read:

  version:        backported from Linux (v3.18.1-0-g39ca484) using
  backports v3.18.1-1-0-g5e9ec4c

Each time a later linux-image is installed, recompile and reboot.

I suspect, given your symptoms, that the difficulty is unrelated to iwlwifi and its firmware. You might check the log, specifically /var/log/syslog, at the time the drops occur.


Bash: get current working directory name, but not full path

Yes, there is. You can use pure bash:

echo "${PWD##*/}"

or better, to avoid the case when you could be in -e directory:

printf '%s\n' "${PWD##*/}"

(thanks to @gniourf_gniourf for the second suggestion).

Or you can use basename tool:

basename "$PWD"


Asus k200ma dso1t Ubuntu dual boot compatibility

99% the answer would be "yes" - but not 100% sure.
It's impossible to tell about ALL Asus computers, but really I've never seen a modern laptop being unable to run Ubuntu and Windows in dual boot. (Maybe I'm just lucky ;))

I recommend you to try Xubuntu or Lubuntu, they should run faster than Ubuntu.


No Wi-Fi options on HP 450 g3 i7 with Ubuntu 15.04

I suggest installing Ubuntu 14.04.3.

After you install the system, connect to internet by wire and upgrade the kernel by running:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install linux-generic-lts-wily

Wi-Fi should work after reboot.

Ubuntu 14.04.4 will support this adapter out-of-the-box. It will be released soon. You do not need to deliberately upgrade to it. Just install regular updates.


Unable to enable wireless on Lenovo 3000 V200

I had the same issue it was because of some confusion with the acer_wmi interface

rfkill list
    1: acer-wireless: Wireless LAN
    Soft blocked: yes
    Hard blocked: no
    2: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
    3: hci0: Bluetooth
    Soft blocked: yes
    Hard blocked: no

you can blacklist acer_wmi and your wireless will work fine

rmmod acer-wmi


missing package in update manager foomatic-filters_4.0.16-0ubuntu0.1_amd64.deb

You need to run sudo apt-get update first; the package was recently updated and the old version is no longer available:

http://se.archive.ubuntu.com/ubuntu/pool/main/f/foomatic-filters/foomatic-filters_4.0.16-0ubuntu0.2_amd64.deb


If you want to install from windows, you can go ahead and do so. But you will have to assemble the raid on a live CD and install grub to a valid boot-able partition.
Now, If i remember correctly, the common "fakeraids"(the kind you enable in the bios) have a boot partition for assembly and for windows to use.
So you should be able to select that.
You can also use a separate drive Like a USB

Of course.. I could be wrong.


How to add a GPG key to the apt sources keyring?

This a a one line command to enter in terminal. See
What is a terminal and how do I open and use it?

To use it, you would paste the entire command in the terminal (remember to use https):

wget -qO - https://deb.opera.com/archive.key | sudo apt-key add -

But of course, it is daunting just copying and pasting commands without knowing what they are doing, and having no instructions on how to undo their actions, so here is a basic breakdown of the commands:

wget downloads something from a server. See wget manual for Ubuntu 16.04.
| is a pipline, which takes the output of one command and runs it into the input of another
apt-key add adds a package key

So it basically downloads the key and then adds it in one command.

I tested the command and it should work.

Now to verify that it worked, run this command (from this answer):

apt-key list

This will list the keys added and the key from Opera should be listed on the bottom like this:

pub   1024D/30C18A2B 2012-10-29 [expires: 2014-10-29]
uid                  Opera Software Archive Automatic Signing Key 2013 <packager@opera.com>
sub   4096g/C528FCA9 2012-10-29 [expires: 2014-10-29]

The linked answer also shows that you can remove the key if needed, using:

sudo apt-key del 30C18A2B

with 30C18A2B being the key-id from the list.

After performing that command, and setting up the sources exactly like in your screen-shot, do:

sudo apt-get update
sudo apt-get install opera

(note there are some random warnings, but nothing that affects the install or software center operations)

And for the removal (just in case): What is the correct way to completely remove an application?

So in summary:

Add repository

Add key with apt-key
Install in terminal with apt-get
Search in dash


How do I get my shell script to automatically accept prompts?

Use magic.

If you're low on magic, try passing apt-get some arguments. -y should help you out. It tells apt-get in advance that you're going to say yes to the confirmation prompt.

apt-get install -y docky geany firefox audacity kdenlive openshot shotwell stellarium thunderbird

For a list of what you can and can't do with apt-get, type man apt-get in a terminal and hit Enter. You can do this with any other command too. For example, man sudo, or man nano, or even man chromium-browser.


How can I install Realtek Wifi Driver in Ubuntu 20.04 LTS?

First run sudo apt update
then install using following command
sudo apt install gcc make build-essential git linux-headers-$(uname -r)

For detailed references check here.
To overcome the issue occurring due to install.sh follow this solution.


File-sharing between ubuntu 20.04 machines broken

Apparently, this s a real bug.  The problem goes away when 'Require Password' is turned off in the Control Window under Sharing->File Sharing.
Now, if only I knew how to report bugs!


Lost main directory after fsck file system repairs

To mount your HDD again type:

sudo mkdir /media/data
sudo chown $USER:$USER /media/data
sudo mount /dev/sdd3 /media/data

And you should have everything back in /media/data


GNOME smart hide launcher doesn't work in Ubuntu

I solved it by adding the Dash To Dock extension. I didn't turn it on, and I'm still using the dash (not a dock), but just installing the plugin fixed my problem. I have no idea why.


web interface tool for mysql administration

You can use Squirrel SQL
It's a java based tool and runs on all platform and connect to most of the databases(for which you have a JDBC driver)

You can install it using

http://squirrel-sql.sourceforge.net/


Computer slows after copying a large amount of files

It could be for many reasons, but I think that the most probable ones are that the search daemon is indexing your new files, or that nautilus is creating thumbnails for the media files (this is the most common reason for me).


try to download the ISO of Ubuntu not via HTTP but by using a bittorrent client like transmission and, when the download has finished, burn this ISO.
At least as I have experienced, Bittorrent is a safer way for downloading the ISOs of Ubuntu.


matlab 2012a install on ubuntu 12.04 64 bit cant specify license file

Ok.. Just to get something out of this.. If you find yourself unable to input the key during matlab install then beware that the input field only allow numbers so trying to input text simply doesnt do anything. You might thing the installer is broken... but that is not the case...


I accidently have deleted several files and folders

From your description, it can be assumed that you deleted files from your home directory that contained "tel" in their name or as a word within the file. That could probably mean a lot of files, but indeed, since no system files are affected, your system continues to run normally.
According to the description you provided, you did not delete system files. So there, you can rest assured.
Hidden and visible files in your home folder are personal files. If you had turned "hidden files" on (you do not mention that), then also user configuration files will have been deleted.
Your personal data files are unique to you. The filemanager normally provides a safeguard, where files you delete are moved into a temporary space, the Trash, until you delete them permanently. As you used Shift+Delete, you immediately deleted the files for good. Accordingly, the only secure way to restore all your data is to restore them from your backup copy.
In the absence of that, you can try to recover the deleted files from the hard drive. However, that is not trivial: you may recover the raw data only, loosing file name and file structure. Even if done by a professional service, the outcome may not be quite satisfactory.
Restoring user configuration data can be done from a backup if you had them. Otherwise, loosing these is not that critical (except where you would loose locally stored email in for example thunderbird). If configuration files are lacking, the application will automatically recreate default configuration files.


Installing Nvidia graphics driver ubuntu

You don't have to download the .run file any more. The Nvidia drivers are available in Ubuntu default repositories.

To install it, Execute the following commands.

sudo apt-get update
sudo apt-get install nvidia-361

NOTE : you might want to un-install all the previously installed nvidia drivers before installing these. To do that ,

sudo apt-get remove --purge nvidia*


I do not believe there is an agreed method to this. /etc/machine-id (/var/lib/dbus/machine-id on systems that do not use systemd) is used to create a unique ID per installation. But I do not think you can use that to create your own unique ID. If you do not want to mess with the system you could use that id instead of your institutions asset number.

  or should I just stick it in a text file in some directory on the hard drive?

This is probably the easiest method. For something like this I would suggest a file owned by root with immutable bit set (chattr +i) and name it something like  /etc/machine-id-{institution-name} with the asset number in it.


This seems to be an XY problem. Newer versions of Skype does support starting in the background. Go to Tools > Settings and toggle on "Launch Skype in the background".


How to install OpenBoard on Ubuntu 19.10+?

Thanks to @user1080936 for a hint to this page. Based on that, I managed to find a way to install an older version of OpenBoard on my Ubuntu 19.10:

Download https://github.com/OpenBoard-org/OpenBoard/releases/download/v1.5.4/openboard_ubuntu_16.04_1.5.4_amd64.deb
Add

  deb http://fr.archive.ubuntu.com/ubuntu/ xenial main
  deb http://fr.archive.ubuntu.com/ubuntu/ xenial universe
  deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe

to your repositories (e.g. using sudo synaptic --> Settings --> Repositories
or via Ubuntu settings).
Then sudo apt update and
sudo apt install libavformat-ffmpeg56 libswscale-ffmpeg3 libssl1.0.0 libqt5multimedia5-plugins onboard onboard-common onboard-data (you might be asked by apt to install further packages, watch out for those on the terminal).
Finally, sudo dpkg -i openboard_ubuntu_16.04_1.5.4_amd64.deb.
Open a new terminal and type openboard.

Still hoping they will be able to provide an updated Ubuntu package there.


Mouse buttons stop working after opening application window

Have you been able to solve the Problem definitely?  Or did it just vanish?

Currently I'm experiencing exactly the same Problem: After booting I can start exactly one application and few seconds later the mouse clicks do no longer work.
Mouse movement and (sometimes) scrolling work fine.
Mouse clicks in the dash work, but nowhere else.

And this Situation can be resolved with

CTRL-ALT T

unity --replace

But this is a tedious workaround.

The strange thing is:
I had similar problems already quite often. Such problems occour randomly (presumably after an update) and vanish again a few weeks later (presumably after another update)  but until now I have never been able to track them really down. Besides the obvious, that it has to do with compiz and unity or its predecessors.

I have the hardware in operation since 2011 and I had this situation about once a year, always with the up to date Ubuntu.
At another place it seemed, that is has to do with the ASUS Motherboard. (I have a ASUS M4A87TD/USB3)


You can manage partitions by booting a live (desktop) Ubuntu CD and running gparted.

You will probably need to turn swap off, you can do this from the gparted window or manually.

sudo swapoff

See : http://gparted.sourceforge.net/display-doc.php?name=help-manual

If you have data you do not want to loose, back it up first. Backups are always a good idea and although resizing and moving partitions is relatively safe, there is always a chance for data loss.

There are several backup options, see

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


How can I get Kupfer to respond to keystrokes?

Start kupfer using the kupfer --debug command and try again: that won't make it work but will at least give you a hint on why it doesn't work.

It is likely that some plugin causes an error preventing kupfer from working.

I had this issue with the Empathy plugin and it has bothered me for hours.


How to hide Xfce4-panel in full screen mode?

I wrote it in a shell file rather than directly pasting the command in the Session and startup like this.

#/bin/bash
sleep 10
wmctrl -r "xfce4-panel" -b add,below

and then added it to startup as "/home/user/wmctrl.sh" and it worked.
The sleep 10 waits for 10 sec so that the xfce4-panel is loaded. Some systems may take longer, so the sleep value must be adjusted accordingly.
I suppose that 10 sec would be optimal for most systems since it will not take more than that for xfce4-panel to be loaded after logging in and also, typically no one would play a video and go full screen and adjust volume within 10 sec of system startup.


Copy a file to remote server(very Complicated)

I have always did it like this:

rcp filaname usernameinserver@server:path/in/server

The command will ask you for your password on the server (unless you are using another authentication schema).

Note that your user name in the local computer is not relevant.

rcp/scp are tunneled under ssh, it's probably the most secure way to copy a file. If you want increased security you can try to use key pars instead of passwords. It's more complicated to setup but after it's done you don't need to type your password for each transfer.


How to restore/add previous user account

#1 Back up your data!
#2 Add the user with the exact same username as before.
#3 You should have all your settings and files back.
Alternative for geeks:
#1 Backup Backup Backup your data!
#2 Add this line to then end of /etc/passwd (replace [username] with your username, replace 1700 with your previous userid, and replace 1701 with your previous groupid - if you don't know your userid and groupid, then set both to 1700):
[username]::1700:1701::/home/[username]:/bin/bash

Try logging into the console (CTRL-ALT-F1) as [username] with no password.  Then run passwd and enter a new password.  You should then be able to log in as before.
If you can't find your old userid and groupid, then you'll likely have some file permissions problems, and you'll need to log in as another user and run this command
 sudo chown -R [username]:[username] /home/[username]

to restore permissions.


I can't install Ubuntu from iso but can from magazine cover disks

If it fails to install by a "normal" ISO, you will probably be able to install it from an alternate installer CD. It is text based, but straightforward and, apart from the nice GUI of the "normal" installer, it works the same.

After that you will be able to use Ubuntu as if you installed it by the usual CD.

You can download the aternative installers here (not the network installers, but further down on the page)


You have to run the same command (there's no need to run it as root)

dpkg --get-selections > ~/InstalledPackages.list

Then you can

cat ~/InstalledPackages.list

to see the content.

Now, if you are not sure how's ~ been processed, you can

cd ~
pwd

And that's it.


The instructions are a bit misleading because .bash_profile is only sourced when Bash is started with the --login option (e.g. from the console or ssh). However, .profile is always used, so it makes sense to place environment changes there.

Add the following to ~/.profile:

export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

Open a new terminal window and your PATH variable will be correct to run pyenv.


I had the same problem and fixed it by clicking in the VirtualBox group of my user. You can access it installing gnome-system-tools (it does not come with Ubuntu 12.04 Precise Pangolin), either via the Ubuntu Software Center, Synaptic or by typing in the terminal:

sudo apt-get install gnome-system-tools

Remember that to paste in the terminal you have to use CTRL+SHIFT+V, as opposed to CTRL+V

You will probably have to enter your password to allow the installation and add a Y (as in yes) to finish installing the packages.

Then you head to your Dash home and type users. You will see two applications. The good one is Users and Groups.

You then have to click on Advanced settings for your user and enter your password.

Now you will be shown a window with three tabs. Click on User Privileges.  Find the line that says Use Virtualbox virtualization solution and then OK.

You may be asked to enter your password again. Then click on Close and log-out and log-in again.

When you start VirtualBox you should see a whole bunch of new USB devices.

Good luck!


If you like the command line, you can try sudo apt autoremove to get rid of some of the old kernels.

If you prefer a GUI, you could try Ubuntu Cleaner, a fork of the crud-cleaning portion of the late lamented Ubuntu Tweak application.  From the linked article, you can install it from a ppa by issuing these commands:

sudo add-apt-repository ppa:gerardpuig/ppa

sudo apt-get update && sudo apt-get install ubuntu-cleaner


Scale window contents appropriately to each display

This is very much not not not (yes: 3 "nots" bad) ideal, but it's the best I can come up with, as I have the same problem as you.

Just individually zoom each program depending on which monitor it is running on to get a size that's more reasonable.

Ex: in LibreOffice use the zoom buttons in the bottom right.

In the terminal use Ctrl + Shift + + to zoom in, Ctrl + - to zoom out, and Ctrl + ) to reset the zoom.

In Google Chrome use Ctrl + + to zoom in, Ctrl + - to zoom out, and Ctrl + ) to reset the zoom.

You get the idea.

This is NOT a great solution. It DOES require re-adjusting the zoom each time you drag a window from one monitor to another, and it IS a pain-in-the-butt.

Shame on you Ubuntu! :)


LibreOffice displays the content of .docx files differently

Yeah, if you want MS Office compatibility, there's nothing better than MS Office. :(

However, I can maybe help you fix the rebooting problem, if your machine is up to it: install windows in a virtual machine. That's what I do.

All you need is a relatively modern processor that isn't meant to be for low power netbooks or something (i.e. not Atom, I think), and enough RAM to run both OS at once.

If you have that, then just install Virtual Box, create a new virtual machine using the simple GUI interface, insert your Windows CD, run the new blank VM, and install Windows, in a Window.


Bluetooth headphones are connected but sound output is coming from the speakers

If you're using VLC you need to tell it to change the output - Playback menu > Renderer, then pick.


After downloading, do I have to install it? If so, how?

Ubuntu 10.10 (screenshot) looks very different from Ubuntu 12.04 (screenshot). Restart the computer, and if everything still looks the same after "downloading" 12.04, that means you still need to install it.

If you follow the link recommended by Eric in the comments, it should help you install 12.04 properly.

How do I install Ubuntu?


Implementing SSL using lets encrypt , Nginx and Ubuntu 18.04?

Following up on my comment, it appears that snap is picky about your /var permissions.  It looks like those permissions were modified to be too open so you need to fix them by running the command sudo chmod 0755 /var.


As you can see here http://packages.ubuntu.com/lucid/sysv-rc-conf that package is in the universe repository.
Make sure you have a line in your /etc/apt/sources.list that looks like this:

deb http://en.archive.ubuntu.com/ubuntu/ lucid universe

Then run apt-get update to update your package list.
The package should then be installable.


After synchronizing my iPod nano 6G with banshee or rhythmbox, it appears empty

Apple doesn't like it if users use other software than iTunes to sync their iDevices.

Thus, they use a very specific directory and file naming system, which needs to be used, the iPod will ignore any files not matching the naming criteria.

However, there's a nice synching program called GtkPod, which implements this naming structure. You can install it from the software center or with the following command

sudo apt-get install gtkpod

Now you can start GtkPod and manage your iPod from this software.

Source: My own experience


You'd probably get best value by creating a quicklist entry or two to open a maxed terminal, one of a specific size or what ever valid gnome-terminal option(s) you choose inc. below saved & load

As far as your question you could do that in a fashion by saving to a config file before closing the terminal, (gnome-terminal --save-config=term.txt & then altering the launch command to load from that file, (gnome-terminal --load-config=term.txt) or thru quicklist entry(s)

So as an example for 11.04/11.10, note the geometry command is adjustable. In example am showing most useful quicklist options, what show up is determined by what's on the X-Ayatana-Desktop-Shortcuts= line in order listed or in 12.04 by what's on the Actions= line

Am not suggesting you use all,  just examples of what you can do. If you were to use a load & save options then note that when saving a config ALL open instances are saved

gedit ~/.local.share/applications/gnome-terminal.desktop

[Desktop Entry]
Name=Terminal
Comment=Use the command line
TryExec=gnome-terminal
Exec=gnome-terminal
Icon=utilities-terminal
Type=Application
X-GNOME-DocPath=gnome-terminal/index.html
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-terminal
X-GNOME-Bugzilla-Component=BugBuddyBugs
X-GNOME-Bugzilla-Version=2.32.1
Categories=GNOME;GTK;Utility;TerminalEmulator;
StartupNotify=true
X-Ubuntu-Gettext-Domain=gnome-terminal
X-Ayatana-Desktop-Shortcuts=New;Large;Maxed;Save;Load;

[New Shortcut Group]
Name=New Terminal
Exec=gnome-terminal
TargetEnvironment=Unity

[Large Shortcut Group]
Name=New Large Terminal
Exec=gnome-terminal --geometry=140x34
TargetEnvironment=Unity

[Maxed Shortcut Group]
Name=Maxed Terminal
Exec=gnome-terminal --maximize
TargetEnvironment=Unity

[Save Shortcut Group]
Name=Save Config
Exec=gnome-terminal  --save-config=term.txt
TargetEnvironment=Unity

[Load Shortcut Group]
Name=Load Config
Exec=gnome-terminal  --load-config=term.txt
TargetEnvironment=Unity`

Starting in 12.04 X-Ayatana-Desktop-Shortcuts= is no longer being used, Actions= is the new way. Small example below

Name=Terminal
Comment=Use the command line
TryExec=gnome-terminal
Exec=gnome-terminal
Icon=utilities-terminal
Type=Application
X-GNOME-DocPath=gnome-terminal/index.html
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-terminal
X-GNOME-Bugzilla-Component=BugBuddyBugs
X-GNOME-Bugzilla-Version=3.4.0.1
Categories=GNOME;GTK;Utility;TerminalEmulator;
StartupNotify=true
OnlyShowIn=GNOME;Unity;
Keywords=Run;
Actions=New;Large;Maxed;Save;Load;
X-Ubuntu-Gettext-Domain=gnome-terminal

[Desktop Action New]
Name=New Terminal
Exec=gnome-terminal
OnlyShowIn=Unity

ect.


How to use the latest stable version of org-mode?

This does maybe not apply to 12.04 anymore (I think it does though). The easiest version by now (Using ubuntu 14.04.2) is:

sudo apt-get install emacs24

Then, inside of emacs, use the package manager:

M-x package-list-packages

Search (C-s) "org", there may be a few entries but the one with the date is the newest (as of now 20150413). Mark it for installation with I, install with x.
Restart emacs, done.


gnuPG encrypt and decrypt compress commands

Use this:

gpg --decrypt /tmp/directory.tar.gz.gpg | tar xzvf -


Smartcard reader Vasco DP905 does not work anymore after upgrade to Ubuntu 13.10

Tried the solution provided in "best answer" and I do confirm it works!
(current system: Ubuntu 14.04).

I've also tried the same but starting the pcscd deamon in "normal" mode (daemon running in background) and it works as well.

To summarize, when you need to use your VASCO reader, do the following:

a) unplug it if it was plugged on the computer and all leds are off (green led on means reader working ok!)

b) in a Terminal, run the following command:

sudo service pcscd stop

c) then, run the following one:

sudo service pcscd start

d) (very) quicky after, plug your VASCO reader in an usb slot.

If you see its green led lighting up, it worked.
Plug an eid card and do whatever you need to...


Trouble installing Ubuntu on a secondhand IBM server

I know this is very late, but I had this problem and maybe someone will need it in the future. If you want to use your server like a desktop and you are having problems installing ubuntu with a "Raid" type error, you need to take out all of the hard-drives except one and try installing. This worked perfectly for me.


How to mount an external Hard Drive connected to a netgear router?

To ensure the drive is properly unmounted, can you find the output of the command!

lsof -p <mount_path_HD>

Also, once that is umounted,

Try to see if there is an entry in the disk list with!

sudo fdisk -l

Presuming the external disk as ``172.16.0.172:/mnt/netgear` , mount as follows!

Then try mounting!

sudo mount -t nfs /mnt/netgear /media

before mounting, make sure you have created a folder named media

Then make an entry in fstab as follows!

172.16.0.172:/mnt/netgear /media nfs defaults 1 2

HTH!


Macbook Pro's Broadcom B4322 wifi driver for Ubuntu 16.04

I've just discovered that bcmwl-kernel-source works after having suspended the the system.


How do I make the system-wide proxy settings bypass the proxy for local addresses?

in the configuration window you mentioned there is a tab like "ignored Computers" (In my german ubuntu it is: "Ignorierte Rechner"). There you can setup rules for connections which do not need to be forwarded to the proxy. You could e.g. add:

192.168.*.*

to this list, depending on which room is "local" for you.

edit: I mean this settings page:


This is actually a much more complicated scenario than it would seem at first, due to the annoying tendency that almost all BIOSs have of reordering how they present drives such that the drive you booted from is always the "first" drive, and that is also what some bootloaders (like the Microsoft's) expect (i.e. things won't work correctly if you try to chainload into Windows if it appears that the drive containing Windows is not the "first" as listed by the BIOS). You don't get this problem when booting from CD because CDs are treated separately from hard drives and don't change the order. There is also the fact that there may be more than one internal drive to choose from, so you should be able to select which of them you want to boot from in that case.

To add to this Ubuntu has a change to grub-mkconfig such that the GRUB_TIMEOUT setting in /etc/default/grub is ignored unless another OS is detected (with the idea being that if you don't have another OS, your computer should boot faster by not waiting on the grub menu unless you hold the shift key). The below solution handles all of these problems and I hope has enough comments that it's clear what's being done.

Run gksudo gedit /boot/grub/custom.cfg and copy and paste the following into it :

# Set grub's timeout to 5 secons. By setting it here we are overriding any
# settings for the timeout in /etc/default/grub. This is to be sure that we get
# a five second timeout even if Ubuntu's grub-mkconfig thinks it's the only
# Operating System and disables showing of the menu.
timeout=5

insmod regexp

# Grab just the drive portion of $prefix, to determine what drive we booted
# from.
# The third parameter in the following command is a regular expression which
# says to capture just the "hdX" portion of a prefix like
# "(hd1,msdos5)/boot/grub". Note that the parentheses in the regular expression
# denote what needs to be captured (like in  perl and most other regular
# expression engines), they're not the parentheses that denote a device in grub.
regexp --set=current_drive '(hd.)' "$prefix"

# Loop through all drives (but not partitions)
for drive in *; do

  # If the drive is the same as the one we're booted from just continue on to
  # the next without creating a menu entry for it.
  if [ "$drive" = "(${current_drive})" ]; then
    continue
  fi

  # Make a menu entry with the device name of the drive in the title
  menuentry "Chainload $drive" "$drive" {
    drive="$2"
    root="$drive"

    # Swap the drive currently designated as (hd0) with the drive we want to
    # chainload. Thus the drive we are about to chainload will appear to be the
    # first drive to the bootloader we chainload.
    drivemap -s "(hd0)" "$drive"

    chainloader +1
  }
done

Then just save the file and you're done.

When you boot, if there are other drives available to be chainloaded into you will see menu entries for them (and if there aren't, you won't). The default menu entry will remain unchanged, which means that Ubuntu should boot by default and you will have a 5 second timeout before that happens. Since you're editing /boot/grub/custom.cfg rather than /etc/grub.d/40_custom you don't even need to run update-grub.


put ubuntu live cd of the same version
boot with trial
go to gpart and identify the drive which reserved for ubuntu
go to terminal

commands:-

sudo fdisk -l
sudo mount /dev/sdXY /mnt (where X is a/b and Y is 5,6,or 7)
sudo grub-install --root-directory=/mnt /dev/sdX
sudo reboot
sudo update-grub(while connecting with internet)


Its about the /etc/sudoers.If you simply want have sudo access then add you user to the group sudo via usermod -aG sudo username. This will add the group sudo to the user username (Keep in mind that you need root access to execute usermod). For more information look here.

Your second error message indicates that there is anything wrong with your hostname (Click here for help. And you should not need root access to edit ~/.bashrc.


Is it possible to retrieve SSH keys on an installation where the /home corrupted?

As a general rule of security, if you have lost control of your keys, then you need to make new keys and revoke the old ones.

Think about it this way:  If you lost the keys to your house, would the locksmith try to recover your keys or install a new lock?


Where to find Icon in .desktop file mantioned without path?

The question is almost a dupe of this one, and this one is also useful to read, but for reasons of findability, I will post an answer here.
How to find installed files of your application
for globally installed applications, by default, icons in /usr/share/pixmaps do not need the path, and if you do not use their path in a .desktop file, you must not use their extension as well.
In this case however, that is not the case, as you can see in the output of
dpkg-query -L hydrogen

which shows you where the icon is located.
from man dpkg:
   dpkg-query actions

           ------------------

          -L, --listfiles package-name...
              List files installed to your system from package-name.

Then:
$ dpkg-query -L hydrogen | grep h2-icon

returns:
/usr/share/hydrogen/data/img/gray/h2-icon.svg
/usr/share/icons/hicolor/scalable/apps/h2-icon.svg

Either one of these two is your icon. My guess is that it is the second one :).


Xubuntu 20.10 has No Sound (Dummy Output) unless I reinstall pulseaudio after every reboot

I upgraded from 20.4 to 20.10 and lost my line out built in audio. I reinstalled 5.6.17-050617 and booted from this instead of 5.8.26. Everything now works.


How to exit from magnified screen that moves with the mouse on Kubuntu?

Kubuntu has a section called Desktop Effects. You can access it from System Settings under Desktop Behavior.

In the first section of Desktop Effects, you'll find Zoom. If you activate it, you'll be able to zoom your desktop.

Settings for the zoom feature can be accessed by clicking on the circled icon in the image above.

The default keyboard shortcut for zooming in is Meta+= pressed simultaneously. For zooming out, the default is Meta+- pressed simultaneously. Meta is the Super or Windows key.


tracker-miner-fs crashes on Ubuntu 20.04

Removing the tracker database seems to have done the trick:

rm -r ~/.cache/tracker


Check which locales are supported:

locale -a

Add the locales you want (for example ru):

sudo locale-gen ru_RU
sudo locale-gen ru_RU.UTF-8

Run this update command:

sudo update-locale


AMD graphics card: What drivers should I install

For AMD graphics card, there is a fglrx closed source driver developped by AMD and there is an open source radeon driver developped by the community and AMD but the fact that AMD is helping is new so this driver isn't yet as good as the closed source one.

To install it, follow the instructions here.

The driver you will have to uninstall will be xserver-xorg-video-radeon or xserver-xorg-video-ati


Is there a way to make Openbox behave like the Compiz Grid plugin?

There is PyTile:

  PyTile automatically tiles all windows. It allows tiling of an arbitrary number of windows in up to 9 columns.


How to find "only" IP addresses in a Local Area Network

I would do this using just grep:

$ sudo arp-scan --interface=eth0 --localnet | grep -oP '^[\d.]+'
192.168.0.1
192.168.0.2
192.168.0.3
192.168.0.10
192.168.0.23
192.168.0.72
192.168.27.1
192.168.27.14
192.168.27.30

Explanation:

The -P tells grep to use Perl Compatible Regular Expressions, where \d matches any number. The -o means "print only the matching part of the line". The regular expression I used means match the longest string (that's what the + means)  of consecutive numbers (\d) or dots (.) that are at the beginning of the line (^).


The version in /proc/version is the version of the GCC compiler used to build your linux kernal of your host machine
The gcc -v is the version of the compiler installed in the docker container


How to include configuration from other file in .bashrc and .bash_profile?

I found another command which is source . It is a shell build-in command. It includes commands from another file in the bash script which is being executed. It's takes the file name as a argument and some other arguments like this (from source --help ):

source filename [arguments]

Add this line to .bashrc and .bash_profile file:

source ~/.bash_commons

Now both Gnome Terminal (non-login shell and uses .bashrc ) and TTY console (login shell and uses .bash_profile ) will load commands from the file .bash_commons and aliases and variables will work in both Gnome Terminal and TTY console.


create an alias on network card using netplan on Ubuntu server

From the Netplan Examples page, here is the example showing how to create 2 IPs in different networks on the same interface.

network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
     addresses:
       - 10.100.1.38/24
       - 10.100.1.39/24
     gateway4: 10.100.1.1

You should also be able to use a list notation as follows:

  ethernets:
    enp3s0:
     addresses: [ 10.100.1.38/24, 10.100.1.39/24 ]


How do I make a script add one number to a value each second? (Lua)

Hoping this does the trick for you:

startTime = os.time()
count = 1
while 1 do
        if os.difftime(os.time(), startTime) == 1 then
                print (count)
                count = count + 1
                startTime = os.time()
        end
end

Of course in your case, you might not print the value of the counter but instead pass it as a value to your GUI spinner to indicate loading time.

Also, in the 'while' condition, you may want to replace the test condition to something definitive, instead of the 1 (that will result infinitely). Say you're counting till 100, then the test condition would terminate the loop once the counter reaches 100.


First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. In some cases, auto B and G may also be helpful. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit. Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, I'd set IPv6 to Ignore in Network Manager: http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png  This example is for ethernet, but you want wireless.

If these changes do not help, please try:

sudo -i
echo "options rt2800pci nohwcrypt=Y"  >  /etc/modprobe.d/rt2800pci.conf
modprobe -r rt2800pci && modprobe rt2800pci
exit

If these changes are still not helpful, let's compile the newest version of the driver. Download this package to your desktop: https://www.kernel.org/pub/linux/kernel/projects/backports/2015/11/15/backports-20151115.tar.gz Right-click it and select 'Extract Here.' Now, back to the terminal:

sudo apt-get install linux-headers-generic build-essential
cd ~/Desktop/backports-20151115
make defconfig-wifi
make
sudo make install

Reboot, unload ndiswrapper and tell us if there is any improvement.

sudo modprobe -r ndiswrapper
sudo modprobe rt2800pci

If these changes are helpful, remove ndiswrapper:

sudo apt-get purge ndiswrapper-utils-1.9
sudo apt-get purge ndiswrapper

The native driver rt2800pci may be blacklisted. Please check:

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

If it is, remove the line blacklist rt2800pci, save and close the text editor.

Also, you have compiled the driver for your currently running kernel only. When Update Manager installs a newer linux-image, after the requested reboot, recompile:

cd ~/Desktop/backports-20151115
make clean
make defconfig-wifi
make
sudo make install

Please retain the file and these instructions for that time.


TeXmaker 4.4.1-1 function keys don't work after upgrading (14.10 - 15.04)

I found the solution: Go download and install a newer DEB package from the Texmaker website.

NOTE : Simply trying to overwrite the package using dpkg -i will fail with an error. You first need to uninstall the texmaker-data package (which will also remove texmaker and a few more dependencies):

sudo apt-get remove texmaker-data

Then install the downloaded package ( this is for 15.10, 64-bit ):

sudo dpkg -i texmaker_ubuntu_15.10_4.5_amd64.deb


Before upgrading to Ubuntu 16.04, I had python2.7.5 installed and I assume that during the upgrade, Ubuntu tried to upgrade python from 2.7.5 to 2.7.11 but it failed and so I ended up having the files of python2.7.5 still on the laptop and python2.7.11 partially installed.

I solved my error by doing this:

removed the partially installed python2.7.11 as explained in UPDATE2 of my question
deleted the folder of python2.7.5

sudo rm -rf /usr/lib/python2.7/

reinstalled python2.7 -> python2.7.11 and its dependencies were installed correctly
done! everything works now!


Use n module from npm in order to upgrade node

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

To upgrade to latest version (and not current stable) version, you can use

sudo n latest

To undo:

sudo apt-get install --reinstall nodejs-legacy     # fix /usr/bin/node
sudo n rm 6.0.0     # replace number with version of Node that was installed
sudo npm uninstall -g n


The DCP-J315W driver is not available in Ubuntu 14.04 either for direct USB connection or Wireless.
It is because Brother does not make a ddp file available to Lx users for that printer.
On this page, you will find that printer DCP-315CN is supported. it might differ slightly in terms of functions and features. Just try it.
The driver to be used for it is the MFC-210C driver. I recommend you try to install either the LPR driver (detailed help found here) or the cupswrapper driver (detailed help found here) for deb distros.
Good luck.


New to Linux - Need Suggestions on Hardware that is compatiable

Ubuntu has a certification program see Ubuntu Certified hardware

Ubuntu Desktop certified hardware
Ubuntu Server certified hardware


How to scale and add watermark (overlay) in one command?

Try applying the scaling to the input, like this:

ffmpeg -i video.mp4 -i watermark.png -filter_complex "[0:v]scale=640:360[bg];[bg][1:v]overlay=10:10" -tune psnr -refs 3 -c:v libx265 -preset veryslow -crf 33 videofull.mp4

Check videofull.mp4 details using:

ffprobe -v quiet -print_format json -show_format -show_streams videofull.mp4


Mysql error when running Laravel php migrations

Hi everyone thanks for the advice and help it was because i did not generate the .en file on the server and my password was wrong to so i am happy now


The rectangle proportions are calculated relative to the currently connected screen(s) resolution(s) using xrandr on line 31, but xrandr needs the DISPLAY variable set which may not be the case here. You have two options:

explicitly set the variable, e.g. for the first display:

SR=$(DISPLAY=:0 xrandr --query | …

hardcode the value of $rectangles in line 29, this makes lines 30 to 37 obsolete (comment out or delete them), e.g. for one 1680x1050 screen:

rectangles="rectangle 80,970 380,870"

Further reading:

What is the $DISPLAY environment variable?


where is "killer gegls from outer space" source code

$ wget http://ftp.gnome.org/pub/GNOME/desktop/2.32/2.32.0/sources/gnome-panel-2.32.0.2.tar.bz2
$ tar xf gnome-panel-2.32.0.2.tar.bz2
$ grep -r easter gnome-panel-2.32.0.2
gnome-panel-2.32.0.2/gnome-panel/nothing.cP:/*thy evil easter egg*/


Partitions not showing up in Ubuntu after Wubi installation

When you say you can 'see' 2 partitions, are you looking at mounted drives?? In Ubuntu, try to run Gparted (install from Software Centre if needed) and look at what partitions you can see now.

OK so far. Is that your Music and Documents folder the one you want to be able to read? If so, I think you need to get ntfs-config going. Here are the details to help you:

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

Come back if you need more help. Good luck.


Use syndaemon to disable while typing.  Syntax is syndaemon [-i idle-time] [-d]
So something like syndaemon -i 4 -d  Or, you could disable it completely with this command synclient TouchpadOff=1
Add them to your startup applications


Automatically switch to workspace with active application

You could try this, if you haven't installed compiz settings manager, then do so by running:

sudo apt-get update
sudo apt-get install compizconfig-settings-manager

Once it's installed, click System > Preferences > Compiz Settings Manager

Then go to Focus & Raise Behaviour > General and set Focus Prevention Level to Off

Tested on Ubuntu 16.04.


You should probably select the "system monitor" app, and go to the "processes" tab. There you can find what program is consuming your CPU. (My bet is on Compiz)

NOTE: This does not mean select the program, then click "end process". That can be very dangerous, I know firsthand.


problem installing meld on 12.04 64 bit LTS(1)

You must remove the CDROM source and install it via Internet.

Graphical mode:

Open the software center
Menu "Edit" -> "Software Sources..."
Tab "Other Software"
Uncheck the "cdrom"

Console mode:

Remove the cdrom line: sudo sed -i '/cdrom:/d' /etc/apt/sources.list
Resynchronize the package index files: sudo apt-get update

Try again.


Do I need to keep the ngx_pagespeed source code after compiling it into nginx?

After you compiled and then installed nginx (make install) you shouldn't need the extra directory for the module anymore (assuming this folder you speak of is the source code for the module, and not a folder created by the module when nginx is run).

However, you will likely want to keep the directory around for when you update nginx and recompile in the future (or you can just redone load the page speed module again).


I just followed what you described, accompanied by a few experiments

~$ sudo -s
~# ls -l $HISTFILE
-rw------- 1 g g 44174 Jan  4 16:26 /home/g/.bash_history

~$ sudo -i
~# ls -l $HISTFILE
-rw------- 1 root root 2356 Jan  4 16:23 /root/.bash_history

~$ sudo ls -l $HISTFILE
-rw------- 1 g g 44174 Jan  4 16:26 /home/g/.bash_history

So when we are running standard sudo commands or when we use sudo -s to get a root shell we already are using our own history-file.

Only when we invoke sudo -i to get a proper login shell the original root-history is used.

Now I followed your lead and edited /root/.bashrc to contain

HISTFILE="/root/.bash_history.$SUDO_USER"

as first line.

Repeating above experiments with sudo -s and sudo ls -l $HISTFILE yielded the same results as before (as expected). But sudo -i gave me a shell with no history (and no history-file either).

After executing

~$ sudo -i
~# ls -l .bash_history*
-rw------- 1 root root 2412 Jan  4 17:16 .bash_history
~# echo $HISTFILE
/root/.bash_history.g
~# ls -l $HISTFILE
ls: cannot access '/root/.bash_history.g': No such file or directory

and logging out

~$ sudo -i
~# ls -l .bash_history*
-rw------- 1 root root 2412 Jan  4 17:16 .bash_history
-rw------- 1 root root   52 Jan  4 17:25 .bash_history.g

I get the expected results (including access to "my" history by using the arrow keys.

Keep in mind that the contents of /root/.bashrc are only executed for an interactive, non-login shell (like sudo -s), for a login-shell (like sudo -i) /root/.bashrc is only sourced, and only if /root/.profile contains something like

if [ -f ~/.bashrc ]; then
 . ~/.bashrc
fi


How hard would it be to merge Unity & Gnome-Shell?

Consider that Unity and Gnome Shell (aka Gnome3) share almost the entire operating system stack. The part that is vastly different is the shell part, the visual elements. I'm afraid when it comes to the shells, they are impossible to consolidate.

Gnome Shell is based on JavaScript and the developers are strictly rejecting any code that isn't javascript.
Unity is based in Python, C and Vala, it used to use the same compositor as Gnome Shell, but moved to Compiz because it was too slow.

More likely there will be a feeding of ideas between projects. Each project will get some things right and some things wrong. The project with the better sense of design, humility to accept what users want and ultimately the team with better economics (more developers) will develop faster and better over time.


Would someone plese tell what section this is that I have outlined in red

I am almost sure that is a menu bar:

  A menu bar is a region of a screen or application interface where drop down menus are displayed. The menu bar's purpose is to supply a common housing for window- or application-specific menus which provide access to such functions as opening files, interacting with an application, or displaying help documentation or manuals. Menu bars are typically present in graphical user interfaces that display documents and representations of files in windows and windowing systems but menus can be used as well in command line interface programs like text editors or filemanagers where drop-down menu is activated with shortcut key or combination.

More about: http://en.wikipedia.org/wiki/Menu_bar


Run it as:
docker run --interactive --tty --user $(id -u):$(id -g) containername.

You should have a user already created in dockerfile with same uid/guid.

The already posted link refers to docker daemon which is another matter.


"gnome-session-properties" says it's not installed when it is. How do I solve this?

It seems like bug and  has already been reported.

See bug #1310003 on Launchpad.

You should mark yourself as an affected person by going on this bug-page and appending yourself.


Cannot Open Camera In kdenlive Via IEEE1394

The kdenlive developers have a troubleshooting guide for this.

https://kdenlive.org/user-manual/troubleshooting-and-common-problems/troubleshooting-firewire-capture

In my experience this has usually been a permissions problem rather than a driver or kernel module one.  The guide does mention creating udev scripts but those are well documented.


Ended up using irrecord to get this working. in case anyone else needs the same, here is how I did it:

Kill mythfrontend and mtd as both had grabbed the lirc device

su - root

irrecord --device=/dev/lirc0 Tivo (this may be different depending on your IR devices)

Follow learning directions. Basically, it has you press all the buttons for a second to determine the signal length, then it has you teach the remote buttons. It asks you to name the buttons and press the button on the remote.

When done, you are left with a lirc config file named Tivo. Copy this to the lirc remotes directory just to keep things in the same place.
mkdir /usr/share/lirc/remotes/tivo && cp Tivo /usr/share/lirc/remote/tivo/

You could do this by editing the lircd.conf but I used the Mythbuntu Control Center to do it. Launch Control Center and goto the IR section. Select "Custom" from the dropdown menu and click on the Configuration and select remotes/tivo/Tivo. I tried to use Generate dynamic Button mappings but that didnt work for me so you can leave that unchecked and do it manually.

Click Apply and let it write the changes.

Edit the ~/.lirc/mythtv file to put your mappings in. Basically I used one that I had already had buttons mapped for a Streamzap remote. All i had to do was replace the remote name eachtime it after the "begin" line for the button. Since I named my remote config in step 3, "Tivo" I just did a global search and replace with vi. This is case sensitive and wont work if you dont have it correct. If in question look at the name in the file you generated in the irrecord step. For each button/function i looked at what I named the buttons in the Tivo config file...for example instead of "Menu" for the Menu button on the remote to send the "M" character, I changed it to "Tivo" for the Tivo button on the remote. When pressed it now sends the "M" signal and brings up the menu. Once again this is case sensitive so just refer to you Tivo remote config you made.
I am still adding new buttons and trying to figure out if can fake macros with it...like bringing up the program guide with one button. Also need to do my mplayer lirc as well. So far it works solid. I have attached my config files but I recommend going the irrecord route as there a lot of different Tivo remotes..and you remote sends different signals based on what position the 1/2 switch is in. Also this should work for any remote...not just Tivo


Usually you want a swap partition and not a swap file.

EDIT: looks like the above is no more valid.

That said, you can easily choose the location during the installation process, and you can certainly change it afterwards.

This official Ubuntu documentation on swap should get you started on deciding what to do and how to do it.


Following link already has your answer:
Automatically sleep and wake-up at specific times

Also, you can check more about rtcwake using following:

Press, Ctrl+Alt+T.
Type in, $ man rtcwake


Trying to remap PrtSc key in laptop, no keycode

It turned out the PrtSc key was captured by some print screen application. Disabling it in cinnamon settings solved the problem. This also could work for gnome, too.


Problem solved!
It was just a permission issue. So, I changed the ownership of the keyboard configuration, and it works well now :)


In the normal Ubuntu destktop configuration, dnsmasq is invoked via the NetworkManager, and can be restarted by restarting the network-manager service instead i.e.

$ pstree -sp $(pidof dnsmasq)
init(1)───NetworkManager(7731)───dnsmasq(7743)
$
$ sudo service network-manager restart
network-manager stop/waiting
network-manager start/running, process 7940
$
$ pstree -sp $(pidof dnsmasq)
init(1)───NetworkManager(7940)───dnsmasq(7953)


Start Windows.

Goto start menu:

Type: cmd.
Right-click on it and click on Run as Administrator.

Then, type the following command and reboot:

powercfg.exe -h off

This should solve your issue.


The short answer to your question is No.

The longer answer is:
dpkg --configure -a will likely repair the damage caused by the interruption you forced, so regardless of what you might be thinking you should do that. The upgrade process that you interrupted will not automatically resume or restart. However, repairing the damage as suggested to you by your system greatly increases the chance of success the next time you attempt to update and upgrade your system.


Launching wine program from launcher not working

Just to make an official answer:

Try replacing

Exec=sh c "~/.wine/drive_c/Program\ Files\ \(x86\)/Photoshop/Photoshop.exe"

with

Exec=sh -c "~/.wine/drive_c/Program\ Files\ \(x86\)/Photoshop; wine Photoshop.exe"


With a little modification.

:~$ curl --version | head -n 1 | awk '{ print $2 }'
7.58.0

head -n 1 tells shell to print the first line of output.

awk '{ print $2 }' will print the second column.

You can also tell awk to print the second column of the first line, using NR built-in variable.

:~$ curl --version | awk 'NR==1{print $2}'
7.58.0

NR==1 tells awk to print the first line of the output.

{ print $2 } will print the second column.


Are there any fees that must be payed to Ubuntu as an Source Code Management server?

The short answer: No.
The long answer. Ubuntu (server or desktop edition) itself can be downloaded for free (without costs) and you can use (and modify) it for free (without costs and freedom of speech). Theoretically speaking it could be possible that Ubuntu is going to ask money for Ubuntu, but that is highly unlikely, because I would host the source code in that case and you would be able to download the Ubuntu legally for free (without costs) from my website. This which I From the about page of Ubuntu:

Ubuntu 'main' component licence policy
All application software included in the Ubuntu main component:
Must include source code. The main component has a strict and
non-negotiable requirement that application software included in it
must come with full source code. Must allow modification and
distribution of modified copies under the same licence. Just having
the source code does not convey the same freedom as having the right
to change it. Without the ability to modify software, the Ubuntu
community cannot support software, fix bugs, translate it, or improve
it.

Git is licenced under LGPL2 which contains this section:

Our General Public Licenses are designed to make sure that you have
the freedom to distribute copies of free software (and charge for this
service if you wish); that you receive source code or can get it if
you want it; that you can change the software and use pieces of it in
new free programs; and that you are informed that you can do these
things.

But you can pay for support if you want.


How to use 3D graphics on Asus Eee PC 1215n

This sounds very similar to a problem I just solved on my Asus laptop. It has an integrated Intel graphics card and an Nvidia card in some weird configuration called Optimus where the Intel card runs most of the time because it consumes less power, and then it delegates to the Nvidia card when you run more complex graphics.

Removing the Nvidia driver let the Intel card run properly, and OpenGL now works for me.

During my installation of Ubuntu 11.10, it prompted me to install the Nvidia driver, and I installed it. Most things ran fine, I could watch videos, browse the web, and run drawing or painting programs without problems. However, anything that used OpenGL wouldn't work. I first tried to find out what version of OpenGL I had installed:

sudo apt-get install mesa-utils
glxinfo | grep "OpenGL version"

Glxinfo failed, and I got errors something like this:

Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".

I tried running sudo nvidia-xconfig and got this warning:

VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf. Device section "Default Device" must have a Driver line.

After a bunch of digging, I came across a description of the Optimus configuration. I used lspci to confirm that I did have that configuration:

lspci | grep VGA

It showed that I have two graphics cards:

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: nVidia Corporation Device 0df6 (rev a1)

I then followed the instructions to remove the nVidia driver.

Reboot into recovery mode. It came up with a second menu that included something like "continue with normal boot." That brought up the desktop in a lower resolution than usual, so I assume it was recovery mode.
I launched System Settings, and then Additional Drivers.
I removed the Nvidia driver.
I rebooted, and OpenGL started working.

Some of this is from memory, but I hope it's close enough to help. It sounds like there are some more advanced ways to use the Optimus configuration with Ubuntu, but I'm happy for now. Also interesting is this answer on Optimus configurations.


Unable to resize home and root partition(18.04)

There is no image attached so this is a guess.

You cannot change the size of partitions that are mounted (i.e. in use). This state is indicated by a padlock icon in gparted.

You must boot into a live system (for example, a USB) in order to perform these operations.

Backup your data before performing any partition operations.


ps -aux | grep firefox

shows you output some what like this

myuser     6660  0.0  0.0  20836  3104 pts/1    S+   00:07   0:00 firefox

The first column will show you the user name , second column will show you the proccess id, and the last will show you the process name .

At last your Goal:

kill -9 6660


How to password-protect an individual folder

Have you tried using TrueCrypt? It worked for me. Also this post may be of interest to you:

Password protect files/folders using cli


How to recover from a failed do-release-upgrade on 14.04?

I was able to boot up from the oldest kernel from the advanced menu from grub. Running apt-get install -f to repair then reboot into the new kernel and it all worked just fine.


How to type Greek characters with a breathing and accent

The Greek X11 Compose file offers multiple predefined options for typing characters as those you mention. To enable it, follow these steps:

Open Language Support and select "XIM" as the input method.
Unless your selected display language is Greek, open the ~/.profile config file for editing and add this line:

export XCOMPOSEFILE=/usr/share/X11/locale/el_GR.UTF-8/Compose

Log out and log in again.

Then, to type e.g. ἄ, one option is: AltGr+>+'+α

You can find out other options by studying the /usr/share/X11/locale/el_GR.UTF-8/Compose file.

Edit:

These are the steps with Right Ctrl as the compose key:

Press Right Ctrl
Type > (by holding down Shift when pressing the key)
Type ' (by holding down AltGr when pressing the key)
Press α

Nothing should happen on the screen until you press the α key, and then the ἄ character should show up.


Unable to install mkvtoolnix on Xubuntu 16.04

Don't use the insecure link posted above.
I installed without hassle by following the instructions on the mkvtoolnix downloads website looking in the downloads area and selecting ubuntu.

Simply open a terminal, (cntrl+shift+t or search in dash)
import the gpg key by typing: wget -q -O - https://mkvtoolnix.download/gpg-pub-moritzbunkus.txt | sudo apt-key add -

Run an update: sudo apt-get update
then run sudo apt-get install mkvtoolnix mkvtoolnix-gui

The program can be found in dash afterwards.


dnsmasq giving out IPs in the static range

Old post but I'll give this a go....

This is because all ranges have the same subnet ..

If eth0 was 10.1.1.1 then it would provide addresses within 10.1.1.2 to 10.1.1.254 that came in through that interface.
This is why all new machines get addresses within that lower (red) range.

But if you had a second physical interface (eth1/wlan0 on 10.1.2.1) then all requests coming in through that; would be given addresses within the 10.1.2.x range, if configured that way. This is the only way I know of; of separating traffic easily with firewall rules etc.

Because all ranges have the same subnet; dnsmasq is just assigning IPs that are within its own listening interfaces network . 10.1.1.x

In man dnsmasq about dhcp-ranges
it states
If you have more than one network, you will need to repeat this for each network on which you want to supply DHCP service.. This to me; means another physical interface and naming them by colour is how I distinguish networks, by using different coloured cables. :)

Reading more into the dnsmasq documentation, I think /etc/hosts is used as part of the nameserver and not DHCP assignment as static IP's usually require a machine name or MAC address to function correctly.


The solution to this problem is the same as this answer, to a different question.

You need newer versions of libmlt6 and libmlt++3 than what Ubuntu 14.10 shipped.  15.04 already has the newer packages.

You can work around the problem on your 14.10 system by simply grabbing the newer version from 15.04 and installing them:

cd $(mktemp -d)
wget https://launchpad.net/ubuntu/+archive/primary/+files/libmlt%2B%2B3_0.9.2%2Bgit20141027-1_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libmlt6_0.9.2%2Bgit20141027-1_amd64.deb
sudo dpkg -Oi *deb


I had the same issue, so I wrote the packager.  His new deb file worked for me, but I also had to install dependencies:

Edit: For the deb file, please email Andreas Itzchak Rehberg, you will find his email address on this page -- http://www.monitorix.org/downloads.html

Installation

cd ./Downloads
sudo dpkg -i monitorix_2.5.0-izzy2_all.deb


SNOW (package stegsnow) can do this by appending whitespace to the end of lines.


Why can't I write to my external NTFS hard drive, even though my permissions are set?

I believe you have to remount the partition/disk in read/write mode. I had same problems with one of newly created partitions. Try

sudo mount -o remount,rw /PartitionID /MountPoint

Enter the right PartitionID and MountPoint.


Updating package index is very slow due to large 'Contents' entries

Probably, apt-file was installed at some point and its entry (or "trigger" if i can say) got set in /etc/apt/apt.conf.d/

You could keep apt-file and disable its config in apt, using this command:
  sudo sh /usr/share/doc/apt-file/examples/apt-file-2-update.sh --install

or Manually by commenting the lines in /etc/apt/apt.conf.d/50apt-file.conf by prepending #.
Then you can use apt update & apt-file update separately as needed (Separation of concerns).

Also you may tweak /etc/apt/apt-file.conf to set only needed indexes to be downloaded. Or Purge apt-file if not required any more.

Reference: man apt-file


problem updating 14.04 to latest release

do-release-upgrade -d

-d, --devel-release
          Check if upgrading to the latest devel release is possible

If you want to upgrade to the latest release available for an upgrade from your current system then navigate --> System Settings --> Software & Updates --> Updates and change Ubuntu version notification to any then go back to terminal and type:

do-release-upgrade -c -d

You'll get:

Checking for a new Ubuntu release
New release '14.10' available.
Run 'do-release-upgrade' to upgrade to it.

If you don't have GUI you can just run:

sudo nano /etc/update-manager/release-upgrades

and replace prompt=lts to prompt=normal.


Can get an X Window only on the console or on RDP, but not both at the same time

On Ubuntu, you cannot simultaneously be connected locally and then remotely using the same user account.  If you are logged in locally and try to remote desktop, you will see a black screen and you will be disconnected immediately.  This is an expected behavior and nvidia should not be considered as the issue.
Possible reason explaining why this would work on a raspberry pi would be that you are using a "older" version of xrdp software.... (version 0.6.x) as older version were allowing simultaneous connections.....
Please check version of xRDP on both systems and provide feedback if required
Hope this help
Till next time
See ya


How to I re-activate "history" on firefox?T

https://support.mozilla.org/en-US/kb/refresh-firefox-reset-add-ons-and-settings

This Mozilla Support page may help you. By refreshing Firefox, it will store all settings, personal data, add-ons etc. in a new profile folder. You will not lose anything you've modified to your liking.

On another note, I'd suggest you start using Google Chrome ;-)
Hope this helped.

/edit_2/


Make a grid of images, then rotate and crop it

Well You can pipe things around as BMPs. I think this is as close to lossless as I'm going to get.

montage -mode concatenate $(printf 'rose: %.0s' {1..136}) -resize 100x80 -tile 17x bmp:-\
| convert bmp:- -distort SRT 1.5 -crop 1500x500+100+14 out-rotated.jpg

Though I'll happily take a version that can do this in one command.


"Too many levels of symbolic links" error when using systemd

The automount is done by root user. /home/root/.ssh/known_hosts needs to have target machine id. Otherwise the mount will fail and give these error messages.


"No such file or directory" error while using npm

Taking @gertvdijk hint, I uninstalled NPM using the script:

rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm*

(which can be found here)

Even after performing the above, I got another error:

$ npm install formidable
bash: /usr/local/bin/npm: No such file or directory

So, I ran hash -r in the terminal (as per the instructions found under NPM Won't Run After Upgrade) and voila - it worked. NPM now works!


How to prevent the catastrophic loss of ubuntu lvm drive encryption key?

AFAIK, a PRAM/NVRAM reset should not affect the encryption key. You said you did a "drive repair from within mac OS X," and that action might cause problems, but that goes beyond disk encryption -- if you force a utility that doesn't understand LVM or Linux filesystems to "repair" a Linux filesystem or Linux LVM partition, the result is likely to be data corruption, whether or not encryption is used. Encryption will make data recovery from such an event much harder to do, though.

Ordinarily, I'd expect OS X's utilities to not try to "repair" a Linux filesystem or LVM partition they don't understand. They might do so if your partition type code is wrong, though. Linux partitions should be of type 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (no flag set in recent versions of GParted or parted, type code 8300 in gdisk). There's the related question of hybrid MBRs. IMO, it's best to install Linux without a hybrid MBR on Macs. You can check this detail with gdisk:

$ sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.0

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

This example shows a non-hybrid MBR, as identified by the MBR: protective line; a hybrid MBR will show MBR: hybrid instead. You can convert from hybrid to protective by saving the partition table in parted or GParted or by using the n option on gdisk's experts' menu and then saving the change via w (that is, x -> n -> w).

Be aware, though, that if you're using a hybrid MBR, you may be booting Ubuntu in BIOS/CSM/legacy mode, and removing the hybrid MBR will render the Mac unable to boot in that mode. This will necessitate installing an EFI-mode boot loader. (You can check your Ubuntu boot mode by looking for a directory called /sys/firmware/efi -- if it's present, you've booted in EFI mode; if it's absent, you've booted in BIOS/CSM/legacy mode.) Also, if you're triple-booting with Windows, you must normally have a hybrid MBR. Thus, you should not blindly remove the hybrid MBR, if one is present; instead, you should first assess whether you need it and then delete it only if you don't or if you have a plan to update your boot loader(s) appropriately.

Beyond this, I agree with user68186: You should back up your data to an external disk or other external media. Risks to data loss go far beyond encryption problems and include things like physical loss of your laptop, catastrophic failure of your hard disk or SSD, accidental catastrophic mis-use of dd or other disk utilities, and so on.


Cannot execute any files from separate home partition

As mentioned in steeldriver's comment, the problem is user in the mount options which implies noexec and is overriding the previous exec.  The user probably isn't needed and may be removable, but swapping the order of user and exec should work too.


14.04 crashes after couple hours. Lose control of OS and CPU goes into overdrive

Well i strongly believe that this might be due to memory issue and not with the OS . Please increase memory and check. Also verify whether the download ISO is having any preloaded application like virtual appliance . Where they will bundle application along with OS like a preloaded setup.

try upgrading the libraries

also run sudo apt-get update && sudo apt-get upgrade

try increasing the ram to 4GB and check.

regarding that swap issue

run swapon -a and swapon -s first.
I run GParted to see what was going on with my swap partition.
Then look at fstab and compare it to blkid

the above will help you to get an idea what happened to the swap


Execute command for a specific output of a command

A program segfaulting's exit status is set to 139 by Bash (so this applies at least to programs which didn't define a handler for SIGSEV receiving a SIGSEV while running in Bash: it should fit your usage case):

$ cat foo.c
#include <stdio.h>

int main() {
    char *ptr = NULL;
    *ptr = 'a';
    return 0;
}
$ gcc foo.c -o foo
$ ./foo
Segmentation fault (core dumped)
$ echo $?
139

You could set PROMPT_COMMAND to something like this in ~/.bashrc:

PROMPT_COMMAND='[ $? -eq 139 ] && printf "SIGSEV received\n"'

Changing printf "SIGSEV received\n" to the command you wish to run.

$ PROMPT_COMMAND='[ $? -eq 139 ] && printf "SIGSEV received\n"'
$ printf '\n'

$ ./foo
Segmentation fault (core dumped)
SIGSEV received


After talking with CodeWeavers and reading several buried articles online I determined that I could not upgrade CrossOver with Ubuntu 12.04 without removing the current installer program and replacing it which would have apparently prevented me from using the software center and the update service. If you have 12,04 you'll have to stick with the trial version of CrossOver from the software center until Code Weavers fixes this.


First, Make sure everything's working locally:
 - Open a web browser on the system where you set up subversion
 - According to the tutorial provided, your svn-repository should be available under "/svn", so goto http://localhost/svn and check, if you can see the repository contents or the popup asking to provide username and password
 - If you get some error you probably have done something wrong in your svn installation. In this case, please check again your tutorial (BTW, there's also an ubuntu help page for subversion: https://help.ubuntu.com/community/Subversion)

Second, if your can see your svn contents, you need to figure out the IP address that is given to your system:
 - Open up a terminal an run

ifconfig

- Search for an entry beginning with "eth", e.g. eth0. If your computer has more than one network card, you might find more entries here. I'll come back to that later
 - Look for an entry called "inet addr" and take the numbers that are directly displayed after, e.g. something like 192.168.1.15. That's the IP address of your computer in your school's network.
 - That's already enough for a first try, so open a web browser on another computer and point it to http://[the ip address you just figured out]/svn
For the sample IP address I used above, this would be http://192.168.1.15/svn

Remarks:
 - IP address may change, depending how your schools network is configured. So try to get the fully qualified domain name (FQDN) of your svn server. This should not change. (It's just the same as on the internet, e.g. instead of typing one of google's IP addresses, it's easier to type google.com). To find out your FQDN, type

nslookup the ip address you just figured out

on any computer of your schools network
 - Look for the entry "name =" at the bottom. That's your FQDN! Now enter that name instead of the IP address in your browser
 - If you have more than one network card in your computer, you may find more than one eth entry (e.g. eth0 and eth1). If you can find IP addresses behind the "inet addr" both entries, the easiest way would probably be to try all of them the way I described!
 - If you experiencing difficulties or problems when trying to get the IP address or the FQDN, or if you got your IP but you're not able to connect to the subversion server from another machine, it's also a good idea to talk to a system administrator at your school. I'm sure, they'll be able to help you with that!


How to add bookmark that connects to local server?

what do you mean with "bookmark"? I remember that once in gnome terminal you can add some bookmarks (and now that feature doesn't exist no more, AFAIK) but I don't remember that it was possible export such bookmarks from a computer to another one.

If you're looking for something exportable, maybe you can drop down a little script doing something like

gnome-terminal -e "ssh -X [and whatever you want] user@hostname.domain"

Cheers,

Silvia


How to set the new Suru Dark theme as default theme in Ubuntu Touch?

First of all a security note: Executing the following steps is at your own risk. I tested these steps only once at my BQ Aquaris E4.5 phone with an installed OTA10 update. I don't assume liability for this. Some native apps (like Browser or Dekko) don't support the new theme completely. You can see this in still white backgrounds or inappropriate font colors. But the functionality of these apps is not restricted.

So if you thought about it deeply, we now can start:

You'll need the Terminal app from the Ubuntu store.
Open it and type the line:

nano ./.config/ubuntu-ui-toolkit/theme.ini

After this press enter and change “Ambiance” to “SuruDark” (without the quotes and not with a blank, so not “Suru Dark”) at the end of the “theme=” line. Then press Ctrl-O in the Nano section of the terminal to save it, then enter and finally Ctrl-X.

To test your changes reboot the device. If you're not happy with the Suru Dark theme change “SuruDark” back to “Ambiance” in the similar manner like above.


Transfer file to Windows server from Ubuntu

I used MountWindowsSharesPermanently method to transfer file via rsync automatically.

First I mount a windows share folder (or map network drive) to which i want to transfer file with following method:

sudo mkdir /media/BACKUP
sudo mount -t cifs -o username=domainusername //ip_add/ShareFolder /media/BACKUP

then use rsync to transfer file:

sudo rsync -azp /path/to/source /media/BACKUP/ShareFolder

Create script,make it executable and schedule a cronjob.

Now if you reboot the system, it will be unmounted. So to mount it permanently, do following:

Open terminal & run:

sudo gedit /etc/fstab

Edit:

//ip_add/ShareFolder /media/BACKUP/ cifs credentials=/home/username/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777,sec=ntlm 0 0

Here .smbcredentials is a credential file created in home directory

To create it, run gedit ~/.smbcredentials

Edit:

username=domainusername
password=Password

save & close it.

UPDATE: For Ubuntu 16.04.3, and 18.04, edit vers=1.0

//ip_add/ShareFolder /media/BACKUP/ cifs credentials=/home/username/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777,vers=1.0,sec=ntlm 0 0