A less radical fix

Most computers enable you to enter the firmware setup utility, or at least get a boot manager menu, by hitting a function key (or sometimes Esc, Del, or something else) in the first few seconds after you power on the machine. Unfortunately, there's no standardization in what key does what, so if you don't see a prompt, you may have to just try all the function keys, Esc, and Del until something works. The timing can be tricky, too. I generally start hitting the desired key 2-3 times a second as soon as I power the computer on.

If you get a boot menu, it should have options for launching your USB drive. Pick the option that includes "UEFI" in the description, if there are two entries.

If you get into the firmware setup utility, look for options to disable "fast start," enable USB ports, or something similar. ("Fast start" in the firmware causes it to do little or no initialization of USB devices, among other things, which speeds the boot process but prevents booting from external media.) You may also be able to adjust the boot order to boot from a USB device first, but that device may need to be plugged in for the option to be available.

A more radical fix

If you can't get a boot menu or the setup utility, you could try using a partitioning tool to delete all the partitions on the disk. With no partitions present, the firmware will either enter its own setup utility, which should enable you to adjust the boot order, or boot to whatever external medium has a valid boot loader.

Be sure to get all the partitions, though. The Windows boot loader is stored on the EFI System Partition (ESP), so if you leave it intact, the firmware will think everything's just fine and boot to the Windows boot loader, which will then fail, leaving you in a worse state than you're in now. A few partitioning tools, like OS X's Disk Utility, intentionally hide the ESP from view, so there is a risk of missing it with some tools. I'm pretty sure that the standard Windows tool does show the ESP. If you want to be 100% sure of getting it, you could use my GPT fdisk (gdisk), which is available in Windows form.

You'll be unable to restore the system to a factory default settings if you do this. A compromise might be to delete the ESP but leave everything else intact. This should still enable you to boot an external disk and use it to back up the remaining partitions. (In fact, you could even back up the ESP by recovering it with TestDisk or the like, once you've booted your external medium.)

Of course, the big risk here is that if you try this approach and it doesn't work, you'll have no way to use the computer. If it's new, though, I'd return it to the store at that point because if the firmware doesn't enable you to boot from an external medium when there's no OS on the built-in disk, it's badly broken by design and deserves to be returned.


How to get specific column value for a specific row value in AWK?

Try this,

awk '
    FNR==6 { for (n=1;n<=NF;n++) { if ($n ~ /_GasOut$/) cols[$n]=n; } }
    NR==6 {
        # print header
        printf "Folder Time[s]"
        for (c in cols) {
            printf " "c
        }
        printf "\n"
    }
    $1==200 {
        # extract foldername
        match(FILENAME, /^[^/]*/, folder);
        # print columns
        printf folder[0]" "$1
        for (c in cols) {
            printf " "$cols[c]
        }
        printf "\n"
    }
' */cat.txt | column -t -s' '

Output:

Folder           Time[s]  O2_GasOut  C_GasOut
folderCD         200      0.0056     0.2171
folderFE         200      0.0056     0.2171
folderGK         200      0.0056     0.2171
Original_folder  200      0.0056     0.2171

(I simply put the same file in all folders, that is why X_GasOut is the same for each row)

column command is optional to make a nice output.


gcc/g++ 10 is installed but I can not use it on Ubuntu 20.04.2 LTS

You'll need to use update-alternatives to specify which version of g++ should be used by default. Here's how:

Open Terminal (if it's not already open)
Configure update-alternatives:
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 40
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 60
sudo update-alternatives --config g++

After running the last command, you'll be presented with a menu of g++ versions and you will have the option to choose your default g++ version. The message will look something like this:
Press <enter> to keep the current choice[*], or type selection number:

Type the number from the menu you would like to have as default, then press Enter. If you need to change the default version of g++ again in the future, use the command again.
Note: If you need to change the default version of gcc as well, follow this same procedure, replacing g++ with gcc. Do not forget to change the version numbers as well.
Hope this helps


No address associated with the host server

Check your /etc/resolv.conf

At least one from "nameserver x.x.x.x" ipaddrs should answer to pings.

If none, then try to ping 8.8.8.8

If 8.8.8.8 answers, then add it to resolv.conf:

echo nameserver 8.8.8.8 >> /etc/resolv.conf

If not, then check your internet connection.

Also check your APT sources:

grep -rv '^$' /etc/apt/sources.list* | grep -v ':#'

May be they are invalid and not reachable.


Software works when run manually through the terminal but not as an Upstart service

There was some problems with chdir and upstart some time ago. Generally upstart was doing some weird stuff with the processess that resulted in ./application being executed not from the directory set by chdir iirc.

Try exec /srv/MyApp/appServer without chdir or exec 'cd /srv/MyApp/; ./appServer' (there will be scope difference for working dir here, but that should not matter in your example)


Is there an image of Ubuntu + Gnome3 available?

There is currently no official image with GNOME 3/11.04 available, however GNOME3 is included in 11.10 and later.

How do I install and use the latest version of GNOME?


How is 0.0.0.0:22 under the column local address of netstat command related to ip address?

0.0.0.0 represents all IP addresses on the machine. That means that a service listening on 0.0.0.0 is listening on every IP address on the machine. A machine can have multiple IPs for different adapters, like Ethernet, Wi-Fi, OpenVPN, etc.


1. Clean and simple

I think the cleanest and easiest would be to:

Find out both screen names with the help of xrandr (look for the string "connected")
Open System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

xrandr --output <screen_name1> --auto --same-as <screen_name2>

To a key combination of your choice.

That way you would only have to press the key combination to activate mirrored screens.

2. Without having to look up the screen name

A bit more sophisticated would be to do the same, but let a script find out both screen names:

#!/usr/bin/env python3
import subprocess

output = subprocess.check_output(["/bin/bash", "-c", "xrandr"]).decode("utf-8").split()
connected = [output[i-1] for i in range(len(output)) if output[i] == "connected"]
command = "xrandr --output "+connected[0]+" --auto --same-as "+connected[1]
subprocess.Popen(["/bin/bash", "-c", command])

Save the script as mirror.py, run it by the command:

python3 /path/to/mirror.py

under a key combination, like in the first option.

3.Fully automatically

If you want it all done without any action from your side, run the script below in the background. It checks every 5 seconds if a second monitor is connected and sets it to mirrored if so.

The script

#!/usr/bin/env python3
import subprocess
import time

def screens():
    output = subprocess.check_output(["/bin/bash", "-c", "xrandr"]).decode("utf-8").split()
    return [output[i-1] for i in range(len(output)) if output[i] == "connected"]

todo = True

while True:
    scr = screens()
    if len(scr) == 2 and todo == True:
        command = "xrandr --output "+scr[0]+" --auto --same-as "+scr[1]
        subprocess.Popen(["/bin/bash", "-c", command])
        todo = False
    elif len(scr) == 1 and todo == False:
        todo = True
    time.sleep(5)

How to use

Copy the script into an empty file, save it as mirror_screen.py
Test it by restarting your laptop (screen disconnected)
Run the script by the command:

python3 /path/to/mirror_screen.py

Connect the second monitor to see if it automatically switches to mirrored.
If all works fine, add the command (above) to your startup applications:
Dash > Startup Applications > Add


Move entire installation to blank partition

It seems what you would like is to clone your Ubuntu partition from a partition on one hard drive to a partition on another hard drive, and then delete (or format) the former.

For this you can follow the steps below:

Create a new partition in the free space of the other hard drive (this new partition should exactly equal to or larger that your Ubuntu partition).
Create a live Clonezilla or Parted Magic CD or USB and boot your computer with it.
Start Clonezilla and save your Ubuntu partition.
Make necessary changes to restore your saved Ubuntu partition as par this FAQ.
Reboot your computer with live Clonezilla or Parted Magic, start Clonezilla and restore your Ubuntu partition to the new partition.
You can delete your former Ubuntu partition after making sure that the new Ubuntu partition is up and running.


LPR on a Brother PT-P900 printer "Incompatible tape" with 12mm label

Looks like you have some installing to do. I wasnt able to find the specific LPR command, but it does look like you can access tape size by installing the Brother driver for linux Brother Linux utility/Drivers

Just do a CTRL+F and search tape in the page and you will see how to implement the option.

From the page: "The supported media length for continuous tape is about 100 mm.
Use the paper tool command to add a custom media size longer/shorter than 100mm.
For more information, see "Adding a custom media size for continuous tape (Linux)"."


Stuck for over 2 hours during Ubuntu 18.04 installation

Even if your computer's hard drive had sector errors it normally wouldn't take that long to install Ubuntu. Also your Dell Inspiron is not an old laptop, so its hard drive is probably in good condition.

The screenshot in your question shows that getting updates took 69 minutes. Either don't select the options in the Ubuntu installer to install third-party codecs and download updates while installing, or if you do select these options install Ubuntu at a time of day when your internet connection is fast.


Nautilus Actions Only Show if File in Folder

I was able to solve this with a lot of playing around.

First I found that the standard variables can in fact be passed to the 'Appears if the command outputs "true"' setting on the Environment tab by using zenity to view what this was doing. The one we are interested in here is %f. Also worth noting is that the command must output "true" with no newline to its stdout, rather than simply using a zero return code to mean true.

I then tried inputing the following command:

ls '%f' | grep -q 'Makefile' && echo -n 'true'

Which should work fine but it seems that there must be a SINGLE command in that field, the piping and && won't work.

I ended up creating the following script which I marked as executable and placed in my bin directory

#!/bin/bash
# testexists

ls $1 | grep -q $2 && echo -n 'true'

Then I put the following into the 'Appears if command outputs "true"' field

testexists '%f' 'Makefile'

And everything started working (e.g. my make command only shows up if the folder contains a Makefile).


I just ran into the same problem on Debian 8.7.

TL;DR: copy the compiled library file to a directory on the load path.

The details
I found where to copy it by looking at where the others were loaded from like this:

ldd $(which afp_client)

Which should show lines like this:
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9b601e2000)

The missing library should have been built by the make command so I searched for it in the afpfs-ng directory like so:
find . -name libafpclient.so.0

Which was found here:
./lib/.libs/libafpclient.so.0

So I copied it like this:
cp lib/.libs/libafpclient.so.0 /lib/x86_64-linux-gnu/

There might be a more proper location for this to be copied to, but I'm working on a throw away VM and this made it work, so I didn't worry about it.

Update:
I believe the proper place to put this would be /usr/local/lib/.


how to configure two domains with bind9 arpa

This Assumes that you are pointing to a server(s) that are/is utilizing virtual hosting. (apache virtualhost)

/etc/bind/named.conf.local
zone "domain1.com"{
    type master;
    file "/etc/bind/db.domain1.com";
};

zone "domain2.org"{
    type master;
    file "/etc/bind/db.domain2.org";
};

zone "1.168.192.in-addr.arpa"{
    type master;
    notify no;
    file "/etc/bind/db.192";
};

/etc/bind/db.domain1.com
 ;
 ;   BIND data file for local loopback interface
 ;
$TTL    604800
@   IN  SOA domain1.com. root.domain1.com. (
         101220150  ; Serial
         604800     ; Refresh
          86400     ; Retry
        2419200     ; Expire
         604800 )   ; Negative Cache TTL
;
@   IN  NS  ns0.domain1.com.
@   IN  A   192.168.1.6
ns0 IN  A   192.168.1.6
dev IN  A   192.168.1.5
www IN  A   192.168.2.5
devcwi  IN  A   192.168.1.5
cwi IN  A   192.168.2.5

 /etc/bind/db.domain2.org => keep the all serials the same
;
; BIND data file for local loopback interface
;
$TTL    604800
@   IN  SOA domain2.org. root.domain2.org. (
         101220150      ; Serial
         604800     ; Refresh
          86400     ; Retry
        2419200     ; Expire
         604800 )   ; Negative Cache TTL
;
@   IN  NS  ns0.domain2.org.
@   IN  A   192.168.1.6
ns0 IN  A   192.168.1.6
dev IN  A   192.168.1.5
www IN  A   192.168.2.5

/etc/bind/named.conf.options

options {
    directory "/var/cache/bind";

     forwarders {
        8.8.8.8;
        8.8.4.4;
     };

    dnssec-validation auto;

    auth-nxdomain no;    # conform to RFC1035
    listen-on-v6 { any; };
};
/etc/bind/db.192
; BIND reverse data file for local loopback interface
;
$TTL    604800
@   IN  SOA domain1.com. root.domain1.com. (
         101220150  ; Serial
         604800     ; Refresh
          86400     ; Retry
        2419200     ; Expire
         604800 )   ; Negative Cache TTL
;
@   IN  NS  ns0.domain1.com.
1   IN  PTR ns0.domain1.com.
2   IN  PTR dev.domain1.com.
3   IN  PTR www.domain1.com.
4   IN  PTR devcwi.domain1.com.
5   IN  PTR cwi.domain1.com.

/etc/resolv.conf
domain domain1.com
search domain1.com
nameserver 127.0.0.1


Installing Ubuntu under windows on windows 8

I have used Windows 8 and Ubuntu 12.04 dual booted, and as of my experience there is not that much terrifying accept the fact that sometimes you wont be able to mount your harddisk in Ubuntu.

As of my thought it is due to the kernel session running in hibernate mode in Windows 8 even though the Windows is shut off(one of the reason for Windows 8 fast boot.)

Windows 8 turn off only the user session and keep the kernel session running in hibernate mode. Unlike full hibernation, only the exact system state and memory content is stored on disk using ‘hiberfil.sys’ system file and Windows can easily restore them and reinitialize the drivers at very next time you begin using your PC.


Gnome Control Center bug/forcing return on user screen

I have found a solution ; for those facing the same problem, I post below what worked for me.

I think it was indeed a driver issue for my nvidia graphics card ; the Open Source drivers were no longer in line with the most recent update of Ubuntu 18.04.
In the update manager, tab Additional drivers, I used the nvidia 440 drivers (the most stable normally) and I also activated the updates in anticipation (bionic-proposed) in the Development options tab.

Hopefully this will help someone.


You may find your answer in this github link.

I noticed that you have written acpi_osi=\"Windows 2013\", while the one in the github link has "Windows 2009".
Now, I'm unsure if your problem is pertaining to the lspci or lshw, but it is worth a try to set up the grub options properly.


How to make this start every time I start the computer?

Copy the code into a text editor and save it somewhere as a .sh file (shell script).  Give the file execute permissions (Right click->Properties->Permissions Tab->Allow executing file as program).  Then, open up "Startup applications", add a new entry, click Browse and select the .sh file you created.  Hit save, reboot, and test.

If this doesn't work you can try adding sleep 15 to the file, right after the !/bin/bash line to make it wait 15 seconds after logging in in before running.


Lubuntu 16.04 boot slow (cgroup: new mount options do not match the existing superblock, will be ignored)

I had exactly the same issue, but after I installed a second Linux and configured it to share the swap partition with Ubuntu. Even after I adjusted the /etc/fstab file, Ubuntu would need 2 minutes to show the login screen. The command dmesg displayed the message cgroup: new mount options do not match the existing superblock, will be ignored.

In my fstab I found the following entry: #/dev/mapper/cryptswap1 none swap sw 0 0, and that was a hint that there used to exist a cryptswap partition that I probably set up when I installed Ubuntu (I do not remember now).

However, to get rid of the remains of that partition I did the following:
1. sudo swapoff
2. sudo cryptsetup remove /dev/mapper/cryptswap1 (In my case, this file was already deleted)
3. sudo vim /etc/crypttab   Here, I found an entry that referred to the non-existing cryptswap. I deleted it.
4. sudo /sbin/mkswap /dev/sda4 (In your case, swap is on /dev/sda4)
5. sudo swapon /dev/sda4.
Afterwards, my Ubuntu started normally again. I hope that helps.


Fixed conky pane position regardless of the monitors available

This worked for me after having the same issue like you:
own_window_type = 'desktop',
alignment = 'top_right',
gap_x = 0,
gap_y = 50, ##### for position underneath top bar...


Nvidia 840m Boots to Blank Screen Ubuntu 14.04

OK, I think I have found a solution and it would be good if others with the same problem could test.

Install the Nvidia 340 drivers from the Xorg edgers PPA.
Once the install is complete, do not reboot. Head into Prime and set the profile to Intel graphics.

-Add the following line to your Xorg.conf, under the Nvidia Screen header - Option "UseDisplayDevice" "DFP"

Reboot.
You should now have the drivers installed but be running in Intel graphics mode. This should be checked in Prime.
In order to use the Nvidia, set the profile in Prime and the LOG OUT. Do not reboot.
Important to remember, you should not reboot or shut down the machine when in Nvidia graphics profile. Intel should be reset before each shutdown / reboot.


Execute a command when add a new file in folder

You can use inotifywait.  To apply chmod +x to every file written in directory BASH, keep the following script running:

#!/bin/bash
dir=BASH
inotifywait -m "$dir" -e close_write --format '%w%f' |
    while IFS=' ' read -r fname
    do
        [ -f "$fname" ] && chmod +x "$fname"
    done

If you are curious, you can see all that inotifywait can tell about what is happening in directory bash by running:

inotifywait -m BASH

For more information, see man inotifywait.

To use inotifywait, you may first need to install inotify-tools: run apt-get install inotify-tools.


Screen goes blank after suspending and never wakes up. Fix?

You know, I had similar problem on a previous version of ubuntu.
That time I've heard that energy management applications were difficult to write, so they did not support suspending on all hardware.
You said you installed lots of broken deb files, you'll probably want to reinstall linux, its not difficult.
But as you were sure it was ok, probably the easyest thing for you to do is re-install ubuntu.
Other quick-fix you could try is to disable ACPI on BIOS and put "never suspend" on energy settings.
You could file a bug if you knew you had a bug for it to get fixed on next ubuntu release, but this is unlikely your case. You probably broke something.


JSON can have all sorts of formatting that make it hard to read without properly parsing it. I would farm this out to something like Python. You can still keep it within Bash and using pipes, but that's optional:

$ echo '[1, 2, 3]' | python -c 'import json,sys; print len(json.load(sys.stdin))'
3

This is obviously a very simple example but it's a good starter for doing complex lookups too.


Do you need to keep permissions?
Do you want to continue rather than restart if the copy process is interrupted?

Why not use rsync -a /source/ /destination/ then?


Grub rescue even with no hard drive in the pc

It seems that there's some device in your computer that has a MBR (master boot record) that contains Grub as a boot loader. Maybe a CD-ROM with a live distribution, a floppy disk (if your computer still has a floppy drive), a flash drive or anything down that alley. One way to find out is booting a live distribution like Knoppix and using a tool like hwinfo to browser through your systems hardware.


How to know if a folder is a symbolic link?

To determine whether the folder is a symbolic link you can use either of these methods.

GUI Method:
The folder icon will be different. The icon of the folder would have an arrow.

CLI Method
The output of ls -l will clearly indicate that the folder is a symbolic link and it will also list the folder where it points to.
$ ls -l
total 4
drwxr-xr-x 2 jabard domain users 4096 mai  24 15:56 original
lrwxrwxrwx 1 jabard domain users    8 mai  24 15:56 symbolic -> original

Here symbolic is a symbolic link pointing to original folder.
The starting l in lrwxrwxrwx represents a symbolic link, while d represents folder (directory), and - represents file.


I have a RT2561/RT61 and I finally solved this problem by:

Edit this file as root:

sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Changing wifi.powersave = 3 to wifi.powersave = 2, which will disable powersave (as mentioned before, from github)

And then restart the network manager as root:

sudo systemctl restart NetworkManager

You don't need to reboot. You can now connect to your wifi device

(This answer is a compilation of previous answers, this method should be highlighted as it saved me from buying hardware)


Canon LBP6200d printer does not work after upgrading to Ubuntu 14

Your printer can work under linux but it's not the easiest to configure. There's a nice article regarding compatibility with some specific ubuntu tricks here:

http://www.linux-hardware-guide.com/2013-11-01-canon-i-sensys-lbp6200d-laser-printer-a4-mono-duplex and official ubuntu documentation here

If this doesn't work for you try the open-source foo2cap driver available here

Neither of these specifically mentions 14.04 so please report back with your results.


How do I setup an apt mirror that only gets security updates?

When you set up your mirror, in your sources list /etc/apt/mirror.list only include the security archives

deb http://security.ubuntu.com/ubuntu lucid-security


This looks like a bug LP:869920 we are currently working on.
The synchronization will work correctly when you restart the client completely (e.g. with the following in the terminal):

u1sdtool --quit
u1sdtool --start


So, I finally got this sorted out and it turns out it can also help for other devices like customer displays and generally for any other "serial to usb" devices which do not get automatically mapped to ttyUSBX.

The main problem appears to be that the ftdi_sio driver (Serial to USB driver) does not recognize a specific device automatically although the USB subsystem does (lsusb). Additionally, depending on the distribution, this kernel module might or might be not loaded. So basically our goal is to:

Load the ftdi_sio driver if necessary
Register our product into the ftdi_sio driver

Load the ftdi_sio driver

If it is loaded, the lsmod | grep "ftdi_sio" command should output something like this in a Terminal prompt:

ftdi_sio               53248  0
usbserial              53248  1 ftdi_sio

Otherwise, we have to load it:

Temporary, by issuing the command sudo modprobe ftdi_sio
Permantently, by adding the line ftdi_sio at the end of the /etc/modules (might be different in non-debian distributions!) file and restarting.

Register our product into the ftdi_sio driver

Ok, so the module should be loaded by now. Now, we need to register the product into the driver. Here comes the silly part because some vendors tell you to issue the following command:

modprobe ftdi_sio vendor=05e0 product=1900

Where vendor and product are the values you get from the USB-Subsystem by issuing, for instance, the usb-devices command and preceded by "0x";

But according to this commit this does absolutely nothing from Kernel 3.12 onwards:

  Remove the vendor and product module parameters which were added a
  long time ago when we did not have the dynamic sysfs interface to add
  new device ids (and which isn't limited to a single new vid/pid pair).

  A vid/pid pair can be added dynamically using sysfs, for example:

  echo 0403 1234 >/sys/bus/usb-serial/drivers/ftdi_sio/new_id

  Also fix up the in-code comment that got the sysfs path wrong.

  Signed-off-by: Johan Hovold  Signed-off-by: Greg
  Kroah-Hartman

So, following this information, what you have to do is issue the following command:

echo 05e0 1900 >/sys/bus/usb-serial/drivers/ftdi_sio/new_id

Can't recall right now if a restart is needed after that, but keep that in mind if the device does not work after it inmediately.

Summary

Luckily, I love my job more than my wife. (OMF Quote ;-))


Use bluetooth game controllers in kubuntu

For Wiimote wmgui, wminput and friends are the right way to go. First thing to do would be to use wmgui and try to connect the controller, if it works and all buttons respond, then you can move on to wminput and try to map them to a joystick. wminput already comes with a bunch of example configs, they can be used like:

$ wminput -c /etc/cwiid/wminput/gamepad

or

$ wminput -c gamepad

When you don't give the full patch, wminput will look for configs in ~/.cwiid/wminput/gamepad, so that's where you should store your custom configs.

The manpage of wminput:

$ man wminput

Contains further information.

For the PS3 controller you will need:

QtSixa: http://qtsixa.sourceforge.net/

The Xbox360 controller are not Blutooth, but Microsofts own protocol, so you will need the Microsoft Wireless Receiver USB dongle first. After that they work out of the box with a standard kernel. You can however get some more configuration with:

xboxdrv: http://pingus.seul.org/~grumbel/xboxdrv/

And generally speaking, if you want to make sure that your joystick is setup correctly in Linux you want to play around with evtest and jstest (they are in the evtest and joystick package). They can be used like:

$ evtest /dev/input/event0

and

$ jstest /dev/input/js0

Use different numbers for different devices. The js stuff is only joysticks, so there normally should only be js0, but the event interface contains everything on your computer that will send input events, keyboards, mouse, etc. so there are lots of different event devices and you have to just try them all to find your joystick, it will generally be the last one if plugged in last.


Access disk D after installing Ubuntu on disk C

You friends were wrong when they said dual booting would slow your laptop. Dual booting means using Windows or Linux but not both at the same time.
What you call your D drive is still there. If you open a terminal (Ctrl Alt T or find it in activities) and type lsblk you will get a list of the drives and partitions on your laptop. What is the D drive under Windows is probably sdb1.
If you use the disks application you should also be able to see the 1TB disk. To access it with the files app you need to mount it first. You can mount it with the disks app or with a terminal command. To mount it every time you log on you need to add an entry to your /etc/fstab file. I suggest you research how to do that there are plenty of articles online that tell you how.


Looks like the simple answer is that Debian packages also have an epoch field.

From the policy manual: version fields


Bluetooth (blueman-manager) not working on Ubuntu 20.04.1 LTS

Per the error you have no adapter that Ubuntu can find. If there is a enable/disable switch try switching it and see if the adapter gets detected. If it was a driver issue it would show up, but not work correctly. Until an adapter is detected it will give the same message.
pcie_aspm=      [PCIE] Forcibly enable or disable PCIe Active State Power
                Management.
        off     Disable ASPM.
        force   Enable ASPM even on devices that claim not to support it.
                WARNING: Forcing ASPM on may cause system lockups.


In the terminal, run

sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell


You need a Windows install to run CHKDSK C: /R on the volume. I do not think this can be done with Linux tools alone, correct me if I'm wrong... You can run from CLI or via GUI from the right click context menu (just right click volume C then look for tools.)

The process is non destructive to your data. I assume if you had RAID, you'd know. If after running CHKDSK, problem persists, suspect hardware failure (let's hope not.)

http://en.wikipedia.org/wiki/CHKDSK


I have partially solved this issue by launching ubuntu in safe mode. However it keeps the problem for normal starting.


In previous Gnome Shell versions, Preferences was located in the application menu, i.e., the drop down menu you get when clicking the application name in the top bar. That menuhas been deprecated. Now, application specific options have been moved within the app itself (where they belong, in my opinion). What remains in the top bar menu are window management options.

In Files, the button with tree vertical dots (or three lines as a hamburger in other themes) pulls up the application menu. This is where you now will find Preferences. It is the button immediately to the left of the windows control buttons (max, restore, close) if you have these to the right.


Could I make Automatic Backup Folder For All new files I create or download?

You could in setting you can chosen a automatic backup, and all so of specified folders like document, download and desktop daily, weekly or months, am folders all so  push setting and backup, and then manged backup by you self, and it might work fine this way.


Basically the harder your CPU works, the hotter it gets and the faster the fan spins. Older Ubuntu versions had different techniques for speed of your fan based on the speed of your CPU. With upgrade from Ubuntu 14.04 LTS to  Ubuntu 16.04 LTS, kernel 4.4 was used and Intel changed many things most notably pstate and thermald. Plus (on my Intel i-7 Core at least) turbo boost was finally implemented after a very very long waiting period. These changes also brought with it many challenges.

To see how hot your system is running, use:

$ cat /sys/class/thermal/thermal_zone*/temp

27800
29800
60000

On my system the last temperature is that of the CPU 60 degrees Celsius. The first two temperatures I honestly can't say what they are but I presume ambient temperatures somewhere on the motherboard. Keep in mind this is a laptop.

The fan can not be heard and you have to hold your hand over the exhaust vent to feel the warm air coming out.

When your fan(s) pick up speed you can run the program htop to see what is running and how much CPU% they are eating up. Another program of interest is sensors which shows temperatures and fan speeds. Many people are familiar with these two programs and use them when the need arises.

I use a light weight system monitor called Conky that runs all the time to display CPU%, temperature, available disk space, network usage, etc. Most people don't use Conky but those that do all have different setups. This is what my configuration looks like:

I'm finding under the newest kernel version 4.8.10 the system is running the coolest with the lowest CPU strain. To install this version use:

cd /tmp
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.10/linux-headers-4.8.10-040810_4.8.10-040810.201611210531_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.10/linux-headers-4.8.10-040810-generic_4.8.10-040810.201611210531_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.10/linux-image-4.8.10-040810-generic_4.8.10-040810.201611210531_amd64.deb
sudo dpkg -i *.deb
sudo reboot

NOTE: Manually installing the newest kernel requires extra steps to manually remove it in the future when it is no longer needed. Also note the newest kernel is not supported by Ubuntu and crash reports will be ignored by them. The fact the newest kernel comes from Ubuntu should not give you a false sense of security.


The option ClientAliveInterval does exactly what you want, it basically sends pings in the specified interval (in seconds) and kills the connection if it doesn't receive an answer.

To control how fast it kills the connection, you can use ClientAliveCountMax, which is the maximum number of pings to send without receiving a response before considering the connection dead.


No Bluetooth Found in settings on Ubuntu 16.04, but BT mouse works

Solved the issue:

sudo apt install unity-control-center

For some reason i had previously installed gnome-control-center

Now BT settings are available.


getting intel-rapl: package locked by BIOS when i run dmesg. Is this normal?

From what I understand only a BIOS update can unlock it. Some manufacturers decided that the BIOS should be where this is controlled and not the OS and they don't allow the OS to control it (same with me).


Ubuntu 18.0x not detecting Windows SSD during installation

You've got a single SSD set up in RAID mode, and the Ubuntu installer won't recognize your SSD until you switch your disk setting in the BIOS from RAID to AHCI.

Making that switch comes with some problems though, as Windows will no longer boot.

You don't need to reinstall Windows...

Below, you'll find two different ways to solve this problem.

Make sure to have a backup of your important Windows files!

Choice #1: Looking at this article https://samnicholls.net/2016/01/14/how-to-switch-sata-raid-to-ahci-windows-10-xps-13/ will show you how to make the change without having to reinstall Windows.

Boot to Windows with your current SATA controller configuration
Open Device Manager
Expand Storage Controllers and identify the Intel SATA RAID Controller
View properties of the identified controller
On the Driver tab, click the Update driver… button
Browse my computer…, Let me pick…
Uncheck Show compatible hardware
Select Microsoft as manufacturer
Select Microsoft Storage Spaces Controller as model #
Accept that Windows cannot confirm that this driver is compatible
Save changes, reboot to BIOS and change RAID SATA Controller to AHCI
Save changes and reboot normally, hopefully to Windows

Now you should be able to install Ubuntu in a dual-boot configuration.

Choice #2: See http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/

Right-click the Windows Start Menu. Choose Command Prompt (Admin).
If you don’t see Command Prompt listed, it’s because you have already been updated to a later version of Windows.  If so, use this method instead to get to the Command Prompt:

Click the Start Button and type cmd
Right-click the result and select Run as administrator

Type this command and press ENTER: bcdedit /set {current} safeboot minimal

If this command does not work for you, try bcdedit /set safeboot minimal

Restart the computer and enter BIOS Setup (the key to press varies between systems).
Change the SATA Operation mode to AHCI from either IDE or RAID (again, the language varies).
Save changes and exit Setup and Windows will automatically boot to Safe Mode.
Right-click the Windows Start Menu once more. Choose Command Prompt (Admin)
Type this command and press ENTER: bcdedit /deletevalue {current} safeboot

If you had to try the alternate command above, you will likely need to do so here also: bcdedit /deletevalue safeboot

Reboot once more and Windows will automatically start with AHCI drivers enabled.


Unable to change scroll speed with imwheel in Ubuntu 18.04.3

After multiple restarts and changing the usb port to which I connect the mouse, the scroll speed started being modified by imwheel. The issue is fixed.


Change the encoding of every single .txt file in a folder and its subfolders

You can iterate though the .txt files, change encoding, save the output in .wiki file of the same name using -o option of iconv and if successful remove the relevant .txt file:

shopt -s globstar  ## Enables recursive glob matching
for f in **/*.txt; do
    iconv -f gbk -t utf8 -o "${f%.txt}".wiki "$f" && rm "$f"
done

Caveat:

If the input file is not in given source encoding or already in the target encoding, iconv will return true without doing any operation, hence the .wiki file will not be created and the .txt file will be removed.

To work around this you can save the STDOUT after conversion in a variable and if the variable is not-empty only then save the output in the .wiki file and remove the txt file:

shopt -s globstar  ## Enables recursive glob matching
for f in **/*.txt; do
    out="$(iconv -f gbk -t utf8 "$f")"
    [[ -n $out ]] && echo "$out" >"${f%.txt}".wiki && rm "$f"
done


Can't mount HDD /wrong fs type, bad superblock

After vigorous research on something I really know nothing about, I did find my solution.

After 'googling' pretty much every line that looked like an error in the dmesg, the bad geometry block was my winner.

377.372510] EXT4-fs (sdd): bad geometry: block count 732566646 exceeds size of device (732566381 blocks)

Have a block count that exceeds the size of the device blocks makes sense. However I was very scared when reading that I should use resize2fs to resize it, I took a deep breath, and wallah! I was able to view my files again.

I knew that I only had about 1.5TB of space used on the disk, so just to be safe, I did this:

resize2fs /dev/sdd 2500000M

I was then able to mount the drive without any problems!

That was my solution!


CCSM (short for CompizConfig Settings Manager) lets you configure the settings of Compiz. Unity is a plugin of Compiz whereas gnome-shell is a plugin of mutter. That's why changes made using CCSM doesn't have any effect on gnome-shell.

If you want to customize gnome-shell, you can try gnome-tweak-tool . To install it, search for 'gnome-tweak-tool' in the software center or by running this command in a terminal: sudo apt-get install gnome-tweak-tool

You can also try the gnome-shell extensions that let you customize the various features of gnome-shell. To try out these extensions, visit the official gnome-shell extensions site.


Does the /home folder only contain user directories?

By default /home/ only contains user home directories (and probably a lost+found directory if /home/ is on its own partition).

But as it is just a directory an admin may place other things there by accident or for some purpose.


I found the answer on this similar question: No more updates for Google Chrome 32-bit

I ran sudo nano /etc/apt/sources.list.d/google-earth.list, and changed this line:

deb http://dl.google.com/linux/earth/deb/ stable main

to this:

deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main

Then sudo apt update succeeded.


Is Ubuntu 14 more stable than Ubuntu 12.04?

Ubuntu may not be your best bet for Linux distro. While it is stable, it's not ultra stable like you seem to need. Since you're still on 12.04 it also doesn't seem like you need to be on the cutting edge. I would recommend Debian, which is very stable and somewhat familiar to Ubuntu users since Ubuntu is based on it.


Wrong Icons Theme, Sounds and Main Theme after Upgrade from 18.04 LTS to 20.04 LTS

1. Solution for missing Yaru Theme including Icons and Sounds:
Manually installed it via apt/Synaptic Packet Manager.
2. Solution for missing icons on Desktop:
Manually installed gnome-shell-extension-desktop-icons via apt/Synaptic Packet Manager.
3. Solution for Generic Software Center Icon:
I've seen it's just the GNOME Software Center. The Ubuntu Software Center (snap) has to be installed manually. I uninstalled the snap because GNOME Software is more all in all.


Howto configure MAAS to separate PXE traffic and IPMI traffic on different subnets?

Maybe if you let install of Juju GUI to provide adequately more what type of network balancing you need then you could find your answer faster.

Using Juju with GUI

This advanced guides very close to your problem:
MAAS: Cluster Configuration
Additional Manual Configuration


Problems getting iptables-persistent to, well, persist - Ubuntu 17.04

Save current rules by using:

sudo iptables-save > /etc/iptables.conf

and then load them by:
 iptables-restore < /etc/iptables.conf

You can put iptables-restore < /etc/iptables.conf in your /etc/rc.local to auto load them on boot.


Ubuntu 12.04 (64-bit) installation hangs before entering bootloader on ASUS N75SF, using Live-CD

has that pc secure boot enable?

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

If that doesn't work, feel free to ask me to swap your useless pc with mine! ;)


Based on your pastebin files it all seems to start with b43: probe of bcma0:0 failed with error -524

This points to a problem with the broadcom drivers. Answers on how to solve that problem are here.

As you say you aren't using your wireless card at all you can disable it with solutions found here

You may also wish to check your DNS settings and compare to your ISP's recommendations. Or add Googles public DNS at 8.8.8.8 as shown here if you have a GUI:

Or via the CLI by editing /etc/network/interfaces as answered here


You would have to remove previous version first, named wps-office. See below on how to do it.

Then you install with dpkg:

sudo dpkg -i kingsoft-office_9.1.0.4032~a10_i386.deb

To remove Kingsoft Office (also called WPS Office) you can run:

sudo apt-get remove wps-office

or

sudo apt-get remove kingsoft-office

If you want to completely remove, including configuration files, run:

sudo apt-get purge wps-office

or

sudo apt-get purge kingsoft-office

The package name was changed from wps-office (version 8.1.0) to kingsoft-office (version 9.1.0).


conjure-up openstack nova-lxd how to restart?

I have this exact same problem.  I installed a brand new copy of Ubuntu 16.04 on my server, updated all the packages, then the only thing I installed was conjure-up and used that to install lxc openstack. lxc list showed all of the instances as up and running, I could login to the openstack dashboard, it was great.  Then I rebooted...now lxc list shows all but one instance as not running.  @gangstaluv to answer your questions in my environment:

  Does juju status return anything?

$ juju status
Model                             Controller                Cloud/Region         Version
conjure-up-openstack-novalxd-561  conjure-up-localhost-1e7  localhost/localhost  2.1.0.1

App                    Version      Status   Scale  Charm                  Store       Rev  OS      Notes
ceph-mon               10.2.5       active     0/3  ceph-mon               jujucharms    7  ubuntu
ceph-osd               10.2.5       active     0/3  ceph-osd               jujucharms  239  ubuntu
ceph-radosgw           10.2.5       active     0/1  ceph-radosgw           jujucharms  245  ubuntu
glance                 12.0.0       active     0/1  glance                 jujucharms  254  ubuntu
keystone               9.2.0        active     0/1  keystone               jujucharms  262  ubuntu
lxd                    2.0.9        active     0/1  lxd                    jujucharms    7  ubuntu
mysql                  5.6.21-25.8  active     0/1  percona-cluster        jujucharms  247  ubuntu
neutron-api            8.3.0        active     0/1  neutron-api            jujucharms  247  ubuntu
neutron-gateway        8.3.0        active     0/1  neutron-gateway        jujucharms  232  ubuntu
neutron-openvswitch    8.3.0        active     0/1  neutron-openvswitch    jujucharms  238  ubuntu
nova-cloud-controller  13.1.2       active     0/1  nova-cloud-controller  jujucharms  292  ubuntu
nova-compute           13.1.2       active     0/1  nova-compute           jujucharms  262  ubuntu
ntp                                 waiting      0  ntp                    jujucharms   17  ubuntu
openstack-dashboard    9.1.0        active     0/1  openstack-dashboard    jujucharms  243  ubuntu  exposed
rabbitmq-server        3.5.7        active     0/1  rabbitmq-server        jujucharms   59  ubuntu

Unit                     Workload  Agent  Machine  Public address  Ports           Message
ceph-mon/0               unknown   lost   0        10.0.8.183                      agent lost, see 'juju show-status-log ceph-mon/0'
ceph-mon/1               unknown   lost   1        10.0.8.209                      agent lost, see 'juju show-status-log ceph-mon/1'
ceph-mon/2               unknown   lost   2        10.0.8.141                      agent lost, see 'juju show-status-log ceph-mon/2'
ceph-osd/0               unknown   lost   3        10.0.8.159                      agent lost, see 'juju show-status-log ceph-osd/0'
ceph-osd/1               unknown   lost   4        10.0.8.115                      agent lost, see 'juju show-status-log ceph-osd/1'
ceph-osd/2               unknown   lost   5        10.0.8.216                      agent lost, see 'juju show-status-log ceph-osd/2'
ceph-radosgw/0           unknown   lost   6        10.0.8.48       80/tcp          agent lost, see 'juju show-status-log ceph-radosgw/0'
glance/0                 unknown   lost   7        10.0.8.61       9292/tcp        agent lost, see 'juju show-status-log glance/0'
keystone/0               unknown   lost   8        10.0.8.117      5000/tcp        agent lost, see 'juju show-status-log keystone/0'
mysql/0                  unknown   lost   9        10.0.8.123                      agent lost, see 'juju show-status-log mysql/0'
neutron-api/0            unknown   lost   10       10.0.8.96       9696/tcp        agent lost, see 'juju show-status-log neutron-api/0'
neutron-gateway/0        unknown   lost   11       10.0.8.140                      agent lost, see 'juju show-status-log neutron-gateway/0'
nova-cloud-controller/0  unknown   lost   12       10.0.8.238      8774/tcp        agent lost, see 'juju show-status-log nova-cloud-controller/0'
nova-compute/0           unknown   lost   13       10.0.8.190                      agent lost, see 'juju show-status-log nova-compute/0'
  lxd/0                  unknown   lost            10.0.8.190                      agent lost, see 'juju show-status-log lxd/0'
  neutron-openvswitch/0  unknown   lost            10.0.8.190                      agent lost, see 'juju show-status-log neutron-openvswitch/0'
openstack-dashboard/0    unknown   lost   14       10.0.8.111      80/tcp,443/tcp  agent lost, see 'juju show-status-log openstack-dashboard/0'
rabbitmq-server/0        unknown   lost   15       10.0.8.110      5672/tcp        agent lost, see 'juju show-status-log rabbitmq-server/0'

Machine  State  DNS         Inst id         Series  AZ
0        down   10.0.8.183  juju-ec5bf1-0   xenial
1        down   10.0.8.209  juju-ec5bf1-1   xenial
2        down   10.0.8.141  juju-ec5bf1-2   xenial
3        down   10.0.8.159  juju-ec5bf1-3   xenial
4        down   10.0.8.115  juju-ec5bf1-4   xenial
5        down   10.0.8.216  juju-ec5bf1-5   xenial
6        down   10.0.8.48   juju-ec5bf1-6   xenial
7        down   10.0.8.61   juju-ec5bf1-7   xenial
8        down   10.0.8.117  juju-ec5bf1-8   xenial
9        down   10.0.8.123  juju-ec5bf1-9   xenial
10       down   10.0.8.96   juju-ec5bf1-10  xenial
11       down   10.0.8.140  juju-ec5bf1-11  xenial
12       down   10.0.8.238  juju-ec5bf1-12  xenial
13       down   10.0.8.190  juju-ec5bf1-13  xenial
14       down   10.0.8.111  juju-ec5bf1-14  xenial
15       down   10.0.8.110  juju-ec5bf1-15  xenial

Relation                 Provides               Consumes               Type
mon                      ceph-mon               ceph-mon               peer
mon                      ceph-mon               ceph-osd               regular
mon                      ceph-mon               ceph-radosgw           regular
ceph                     ceph-mon               glance                 regular
ceph                     ceph-mon               nova-compute           regular
cluster                  ceph-radosgw           ceph-radosgw           peer
identity-service         ceph-radosgw           keystone               regular
cluster                  glance                 glance                 peer
identity-service         glance                 keystone               regular
shared-db                glance                 mysql                  regular
image-service            glance                 nova-cloud-controller  regular
image-service            glance                 nova-compute           regular
amqp                     glance                 rabbitmq-server        regular
cluster                  keystone               keystone               peer
shared-db                keystone               mysql                  regular
identity-service         keystone               neutron-api            regular
identity-service         keystone               nova-cloud-controller  regular
identity-service         keystone               openstack-dashboard    regular
lxd-migration            lxd                    lxd                    peer
lxd                      lxd                    nova-compute           regular
cluster                  mysql                  mysql                  peer
shared-db                mysql                  neutron-api            regular
shared-db                mysql                  nova-cloud-controller  regular
cluster                  neutron-api            neutron-api            peer
neutron-plugin-api       neutron-api            neutron-gateway        regular
neutron-plugin-api       neutron-api            neutron-openvswitch    regular
neutron-api              neutron-api            nova-cloud-controller  regular
amqp                     neutron-api            rabbitmq-server        regular
cluster                  neutron-gateway        neutron-gateway        peer
quantum-network-service  neutron-gateway        nova-cloud-controller  regular
amqp                     neutron-gateway        rabbitmq-server        regular
neutron-plugin           neutron-openvswitch    nova-compute           regular
amqp                     neutron-openvswitch    rabbitmq-server        regular
cluster                  nova-cloud-controller  nova-cloud-controller  peer
cloud-compute            nova-cloud-controller  nova-compute           regular
amqp                     nova-cloud-controller  rabbitmq-server        regular
lxd                      nova-compute           lxd                    subordinate
neutron-plugin           nova-compute           neutron-openvswitch    subordinate
compute-peer             nova-compute           nova-compute           peer
amqp                     nova-compute           rabbitmq-server        regular
ntp-peers                ntp                    ntp                    peer
cluster                  openstack-dashboard    openstack-dashboard    peer
cluster                  rabbitmq-server        rabbitmq-server        peer

  You can run lxc start  to bring them back up.

When I try that I get an error which probably explains why things didn't just come back up on their own:

$ lxc start juju-ec5bf1-0
error: Missing parent 'conjureup0' for nic 'eth1'
Try `lxc info --show-log juju-ec5bf1-0` for more info

I'm not sure how to proceed.  Is there something else I could check?  I've re-installed Ubuntu and conjure-up in case I had done something wrong but every time it works perfectly until a reboot, then it ends up in this state again.

EDIT-1: I didn't think to add the lxc info that it said to look at, adding that now.

$ lxc info --show-log juju-ec5bf1-0
Name: juju-ec5bf1-0
Remote: unix:/var/lib/lxd/unix.socket
Architecture: x86_64
Created: 2017/02/20 04:12 UTC
Status: Stopped
Type: persistent
Profiles: default, juju-conjure-up-openstack-novalxd-561

Log:

            lxc 20160220041252.329 WARN     lxc_start - start.c:signal_handler:322 - Invalid pid for SIGCHLD. Received pid 437, expected pid 452.

EDIT-2: I just fixed mine!

After much research I discovered the command lxc profile show

$ lxc profile show juju-conjure-up-openstack-novalxd-561
config:
  boot.autostart: "true"
  linux.kernel_modules: openvswitch,nbd,ip_tables,ip6_tables,netlink_diag
  raw.lxc: |
    lxc.aa_profile=unconfined
    lxc.mount.auto=sys:rw
  security.nesting: "true"
  security.privileged: "true"
description: ""
devices:
  eth0:
    mtu: "9000"
    name: eth0
    nictype: bridged
    parent: lxdbr0
    type: nic
  eth1:
    mtu: "9000"
    name: eth1
    nictype: bridged
    parent: conjureup0
    type: nic
  root:
    path: /
    type: disk
name: juju-conjure-up-openstack-novalxd-561

From the output of the lxc info --show-log juju-ec5bf1-0 I surmised that somehow juju (or some other component) saw my other nic (I'm running this on real hardware as opposed to Mirto Busico on a VM if I read correctly) and was looking for a bridge called conjureup0 that didn't exist.  I suspect there is a bug somewhere which is why this was not created.  I think I could have done one of two things to fix this. 1) create the missing bridge 2) remove the eth1 device from the profile.  I chose the latter.

$ lxc profile device remove juju-conjure-up-openstack-novalxd-561 eth1

Rebooted, and now lxc list shows all my instances are up and running as expected and my dashboard works again.


Can I tag multiple artist in mp3 files from banshee?

I can't answer re: Rhythmbox, but this is a known bug in Banshee, and has been for some time.  There is no satisfactory workaround.  Banshee's behaviour is as follows:

If there are multiple Artist tags on a file (achievable with, exempli gratia, an external tag-editor) it will concatenate them, using a delimiter to treat them as a single tag.  As I recall, this delimiter is a semicolon, although I could be wrong (I don't actually have a local music library with which to check...).  Banshee will then treat the resultant text ("artista; artistb") as the artist tag.

When Banshee encounters an artist tag, including one it's just constructed, that contains a delimiter, it does no special processing on it at all and treats it as the single-artist artist tag.

Yes, it's a pain. No, I don't know what can be done about it.  Sorry.


In a closed network (where you know every device), NFS is a fine choice.  With a good network, throughput it disgustingly fast and at the same time less CPU intensive on the server. It's very simple to set up and you can toggle readonly on shares you don't need to be writeable.

I disagree with Anders. v4 can be just as simple as v3. It only gets complicated if you want to start layering on security through LDAP/gssd. It's capable of very complex and complete security mechanisms... But you don't need them. They're actually turned off by default.

sudo apt-get install nfs-kernel-server

Then edit /etc/exports to configure your shares. Here's a line from my live version that shares my music:

/media/ned/music        192.168.0.0/255.255.255.0(ro,sync,no_subtree_check)

This shares that path with anybody on 192.168.0.* in a readonly (notice the ro) way.

When you've finished editing, restart NFS:

sudo /etc/init.d/nfs-kernel-server restart

To connect a client, you need the NFS gubbins (not installed by default):

sudo apt-get install nfs-common

And then add a line to /etc/fstab

192.168.0.4:/media/ned/music  /media/music  nfs ro,hard,intr 0 0

This is actually the NVSv3 client still because I'm lazy but it's compatible in this scenario. 192.168.0.4 is the NFS server (my desktop in this case). And you'll need to make sure the mount path (/media/music here) exists.

For a Mac, follow this: http://www.techrepublic.com/blog/apple-in-the-enterprise/mounting-nfs-volumes-in-os-x/

It's much more simple than some older tutorials would have you believe.

It might look more complicated than it really is but it's solid, predictable and fast. Something you can't level against Samba... At least, in my experience.


Ubuntu 16.04 apt-get update fails with local repository

As I remember, when I have setup my trivial local repository. I used this form

##LOCAL
deb file:///path-to-parent-of-packages-folder packages-folder/

##LAN using HTTP server
deb http://ip-address packages-folder/

##LAN using HTTP server & mDNS (Avahi)
deb http://machine-name.local packages-folder/

Hence your setup should be with this line:

deb [arch=amd64 trusted=yes] file:///home/discoprodigy debbin/

or

deb [arch=amd64 trusted=yes] file:///home/discoprodigy/debbin ./

Reference: Debian Wiki: How to setup a trivial archive


Upgraded to Ubuntu 16.04 and system time is very off

go ahead and set time manually, being certain that correct time zone is chosen. Once done and satisfied, shut off PC (off, not restart). Now, turn PC back on. If time and date are shown to be Jan 1, 2001 you need to replace the CMOS battery. This can be found on the motherboard, large 'watch' battery - CR2032. be careful when removing for the receiving pocket
can be damaged rather easily.
                                 Hope this helps, Craig


What is the difference between deb packages and tar balls ? What are the advantages/disadvantages of each?

Tar balls are usually source code that you have to compile. Debs are pre-compiled programs, already built and configured for Ubuntu/Debian.

I would strongly suggest using debs when available, as they are easier, and they integrate with the package manager, so you can easily uninstall them.

Debs will also install any dependencies needed. Installing from source can lead to what is affectionately called "dependency hell". Most open-source programs depend on several other programs/libraries to function. When installing from source, it will not install these, and will instead (hopefully) complain that a dependency is not met. You then try to install that dependency and then it bombs out, requiring another dependency, etc, etc.

Installing from source can also put your files in unexpected places, as different distros lay things out slightly different.

When I need to install a program, I try my options in this order:

Look in the Software Center. This is obviously the easiest, although the Software Center is not all-inclusive and is not up-to-date with the latest versions.
Try to find a repository that provides it. Adding a repository will make the program show up in the Software Center, receive timely upgrades, etc.
Look for a .deb package.
Install from source (tar ball).


Does anyone know how to make nautilus as a file manager in Xubuntu 12.04?

yes I also prefer nautilus over thunar. use this command this will install nautilus without the junk.

sudo apt-get install --no-install-recommends nautilus

Then go to settings manager, preferred applications and replace thunar with nautilus


wmctrl -a x-nautilus-session doesn't activate nautilus window

Try the following:

wmctrl -xF -R nautilus.Nautilus

Explanation of options:

x: interprets the specified Windows as the WM_CLASS name.
F: Modifies the behaviour of the window title matching algorithm. It will match only the full window title instead of a substring, when this option is used. Furthermore it makes the matching case sensitive.

To get a list of available windows and WM_CLASS values you can use: wmctrl -lx


few-day old dell shuts down randomly, wondering if this is a software or hardware issue

I have run into issues with suspend, especially with brand new laptops, and linux because graphics cards are not supported. If you still have windows installed, check that it works ok with suspend, etc to rule out hardware issues. In linux, if you install the appropriate graphics drivers that may enable suspend to work correctly. If you still experience issues after this and Patrick's suggestions, I would lean towards hardware then.

The caveat with what I say above is only valid if what you mention about 'instead of suspending, and when I try to boot it, it will start for about half a second (lights will turn on) but before the screen comes on, it will shut back off and fail to boot' is you coming back to the laptop and merely opening the lid and waiting for it to start up. If you mean it is completely off and you press the power button to bring it back up and it does that, then I would lean more towards hardware being the issue.

HTH! - Kyle


Not able to see Windows 7 computer sharing folders within LAN

In the Network and Sharing Center window, click on “Change advanced sharing settings.”

For your current profile, adjust the following two settings:

Turn on network discovery
Turn on file and printer sharing

Click on “Save Changes” after those settings are configured. Now Check whether you can able to see the file of ubuntu

Hope this helps!


Unity Menu (Desktop design), how will it act?

It is already known that you can choose whenever start your session using Unity or the 'good old' Gnome Desktop.

This is possible ( at least in the 11.04 Alpha 1 ) by selecting the Gnome Desktop in the session dropdown on the login screen.

(In case your system has not graphic acceleration enabled ( i.e. compiz ) then the default session will be the old Gnome one.)

Also it is possible to remove the global menu behavior by removing the package indicator-appmenu ( there is not graphical settings up to now )

Also they assert that Unity launcher won't be moveable.
( http://www.omgubuntu.co.uk/2010/12/ubuntu-unity-launcher-wont-be-moveable/ )


Why is there no 64-bit release of the Netbook Edition?

I imagine it's probably because the 64-bit Atoms are a more recent phenomenon, and the Ubuntu folks just haven't gotten around to it. However, if you really wanted a 64-bit version of the Netbook Remix, I think you could get it - as long as you're willing to do a bit of extra work.

If you downloaded and installed the Minimal 64-bit Ubuntu installation and then installed the ubuntu-netbook and ubuntu-netbook-default-settings packages, you would effectively have a 64-bit version of the Netbook Edition.

I've always run into a couple "interesting" issues when installing from the minimal system, but I think that might be your best bet until they release the official version.


The command for setting keyboard shortcut for tor browser or open it via terminal

The path to run tor-browser is (taken from [start-tor-browser].desktop file)
[unzipped tar archive]/tor-browser_en-US/Browser/start-tor-browser --detach

p.s.: you didn't specify which desktop manager you have or which distro.
If you have LXDM/lightdm/lubuntu** then edit this file:
[homefolder]/.config/openbox/lxde-rc.xml

You will see lots of sections <keybind>...</keybind>; add underneath one of them your keybind like so:
<keybind key="C-A-T">
    <action name="Execute">
        <command>[path to where you unzipped the tar archive]/tor-browser_en-US/Browser/start-tor-browser --detach</command>
    </action>
</keybind>

Save and exit and run the following inside terminal:
openbox --reconfigure

Edit
Regarding Xfce shortcuts see these links:

Cannot change global keyboard shortcuts in Linux Mint XFCE - Unix & Linux Stack Exchange
Locate xfce4-keyboard-shortcuts.xml and edit as needed.

Making Keyboard Shortcuts for Frequently Used Applications - Manjaro Linux
Panel, Applications -> Settings -> Keyboard. Open the Application Shortcuts T and add the shortcut and app as needed.


Attempt to dual boot Windows 10 & Ubuntu Server 14.04 LTS failed. How to fix?

Congrats on getting the dual-boot working. Reinstalling GRUB2 is a common practice to return control to the bootloader after installing an OS. Boot into Ubuntu and type the following on a terminal.

 sudo grub-install /dev/sdX  # Example: sudo grub-install /dev/sda

Note that X is the drive letter you wish for GRUB to write the boot information.

For more info, see: https://help.ubuntu.com/community/Grub2/Installing


It depends which tablet/phone you have, there is a version of Ubuntu called ubuntu touch, designed for phones and tablets, however it only works on some hardware. It is also still in beta, so make not work exactly as expected. For installation instructions see here (to do this install you need a computer running ubuntu): https://wiki.ubuntu.com/Touch/Install


What are the standard file permissions for the /etc directory(file)

drwxr-xr-x 157 root root 12288 2012-04-19 07:40 /etc

sudo chmod 755 /etc

Hope that helps ...


After upgrading to ubuntu 20.04 from 18.04 unable to install php

You uninstalled php, but not it's dependencies, so there are still leftovers from the ppa (I guess it was ppa:ondrej/php).
Try autoremove, it may already be enough:
sudo apt autoremove

If not, you can manually uninstall the packages in question:
sudo apt remove php7.4-common

If that is not enough, it might help adding the ppa  again and remove with ppa-purge:
sudo add-apt-repository ppa:ondrej/php
sudo apt install ppa-purge
sudo ppa-purge ppa:ondrej/php


You can definitely change your profile picture in Telegram on Ubuntu-touch.

In order to do so:

Open Telegram
Go into settings (upper right, last point in the
    menu)
Upper right you see a picture icon > Clicking this you get
    to choose the app you want to take your picture from

The notification signal you get for Telegram seems to be the same as you chose for your short messages, although it seems not to work for all available sounds (for Mallet it works for me).


Ubuntu 18.04, Openvpn not starting, status Active (exited)

Well, it turned out to be the DNS service (duckdns) wasn't updating my public address. That's why my clients couldn't connect. Thanks to heynnema for his help.


[Edited/include]man: bash. \e and bash shell "enter" token

Try this:

echo -ne '\n' | <command>

or just literally send to take advantage of implicit newline of echo:

echo | <command>


How can I make Ubuntu 15.10 run/boot normally?

Add the parameter radeon.modeset=0 the to the end of the linux line before booting !

Highlight the Ubuntu menu entry -> press the "e" key -> add the parameter -> press F10.

To make this solution permanent add the parameter to GRUB settings /etc/default/grub.

You can do this as follows ... when not already installed before - install the package gksu.

Open a terminal and execute :

sudo apt-get install gksu

Then execute :

gksudo gedit /etc/default/grub

Add radeon.modeset=0 to this line : GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

that it reads : GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.modeset=0"

Then execute :

sudo update-grub

In case you have AMD Catalyst drivers installed - they have known issues with kernel 4.2.

There is a workaround fix in wily-proposed but it is recommended to wait until it is tested.

Use the open source radeon drivers in the meantime until the final Catalyst fix is released.

Uninstall the proprietary AMD drivers from a virtual console :

On login screen press Ctrl + Alt + F1 - enter user name and password and then execute :

sudo apt-get purge fglrx
sudo reboot

In this case first boot without adding the parameter to see whether it will work for you.


What's the difference of partition type and filesystem type?

Partitions are nothing more than entry’s in  a partition table stored on the hard drive and this table sets the boundary for the start and the end of the partition on the drive and holds some useful information about the partition including its type.

File systems are a way of storing data inside the partitions in a fashion that is easy to manage and read and write data to it. Some do it better than others.

A partition entry in the partition table will need a partition type to help the Operating System know how to handle the partition.

Heres is a list of partition types printed from fdisk.

Partition number (1-5): 1
Hex code (type L to list codes): L

 0  Empty           24  NEC DOS         81  Minix / old Lin bf  Solaris
 1  FAT12           27  Hidden NTFS Win 82  Linux swap / So c1  DRDOS/sec (FAT-
 2  XENIX root      39  Plan 9          83  Linux           c4  DRDOS/sec (FAT-
 3  XENIX usr       3c  PartitionMagic  84  OS/2 hidden C:  c6  DRDOS/sec (FAT-
 4  FAT16 <32M      40  Venix 80286     85  Linux extended  c7  Syrinx
 5  Extended        41  PPC PReP Boot   86  NTFS volume set da  Non-FS data
 6  FAT16           42  SFS             87  NTFS volume set db  CP/M / CTOS / .
 7  HPFS/NTFS/exFAT 4d  QNX4.x          88  Linux plaintext de  Dell Utility
 8  AIX             4e  QNX4.x 2nd part 8e  Linux LVM       df  BootIt
 9  AIX bootable    4f  QNX4.x 3rd part 93  Amoeba          e1  DOS access
 a  OS/2 Boot Manag 50  OnTrack DM      94  Amoeba BBT      e3  DOS R/O
 b  W95 FAT32       51  OnTrack DM6 Aux 9f  BSD/OS          e4  SpeedStor
 c  W95 FAT32 (LBA) 52  CP/M            a0  IBM Thinkpad hi eb  BeOS fs
 e  W95 FAT16 (LBA) 53  OnTrack DM6 Aux a5  FreeBSD         ee  GPT
 f  W95 Ext'd (LBA) 54  OnTrackDM6      a6  OpenBSD         ef  EFI (FAT-12/16/
10  OPUS            55  EZ-Drive        a7  NeXTSTEP        f0  Linux/PA-RISC b
11  Hidden FAT12    56  Golden Bow      a8  Darwin UFS      f1  SpeedStor
12  Compaq diagnost 5c  Priam Edisk     a9  NetBSD          f4  SpeedStor
14  Hidden FAT16 <3 61  SpeedStor       ab  Darwin boot     f2  DOS secondary
16  Hidden FAT16    63  GNU HURD or Sys af  HFS / HFS+      fb  VMware VMFS
17  Hidden HPFS/NTF 64  Novell Netware  b7  BSDI fs         fc  VMware VMKCORE
18  AST SmartSleep  65  Novell Netware  b8  BSDI swap       fd  Linux RAID auto
1b  Hidden W95 FAT3 70  DiskSecure Mult bb  Boot Wizard hid fe  LANstep
1c  Hidden W95 FAT3 75  PC/IX           be  Solaris boot    ff  BBT
1e  Hidden W95 FAT1 80  Old Minix

As you can see the most correct type would be c

If the screen shot you have provided is the current state, you can change the partition type with fdisk /dev/sdb

You then press t to change a partition type, followed by the partitions number 1, followed by the partition code c finally press w to write the changes to disk


Generated pgp keys to thunderbird enigmail

Try exporting your private key in the ASCII-armor format instead of binary (asc). This worked for me whereas trying to import the .asc file did nothing.

Find your keyID from the list of keys:

gpg --list-keys

To export your private key:

gpg --armor --export-secret-key keyID > mykey.gpg

Or, if you already got a .asc file you can simply convert it:

gpg --enarmor < mykey.asc > mykey.gpg

Then import the mykey.gpg file in the enigmail key manager.


Strange font rendering when using Tahoma

I think you need to install the bold version of Tahoma as well. You seem to have installed only the regular font.


It used the configuration of the Ubuntu to install it, You need to do a re-check when you install to have it find the Fedora not a simple install of what was there already. There are UUIDs that are used in the GRUB configuration files, those are what have you booting into the Ubuntu those IDs for it. If you want Fedora's GRUB on its SSD then see if you can boot the installer and re-install it without the Win/Ubuntu drive installed. This will eliminate them from the equation and once installed use the F12 key, if my computer to get a boot menu, this will boot either drive as the first in the system. Then when their boot loaders like GRUB get updated they should do it correctly to the first drive in the system it thinks it has booted from. Since neither drive will know about the other, a simple GRUB install/update will not put the other OS in their menu as option to boot from.


How to check whether a fixed bug reported at Launchpad would affect my distro release?

Between comments 37 and 38 are messages about how the bug's status in unity in Ubuntu went to Fix Released on May 31, 2011.

Ubuntu 10.04 LTS was released before that, and likely doesn't have the fix. If the bug were to be fixed in 10.04 LTS, it would probably be tracked separately for that release. (That doesn't mean the bug is in 10.04 LTS; another possibility is that the bug simply never affected 10.04 LTS, having been introduced after that. I have not looked into that question, since that specific information is probably not important to your needs.)
Ubuntu 11.04 was released before that, and does not have the fix. Status of the bug in unity in Ubuntu is tracked separately for that release and has the Triaged status rather than the Fix Released status.
Ubuntu 11.10 was released about 5 months after the bug's status went to Fix Released. So the fix was incorporated into that release.
Ubuntu 12.04 LTS was released about 11 months after the bug's status went to Fix Released. So the fix was incorporated into that release, too.

Thus, the fix should be incorporated into Ubuntu 12.04 LTS, even if no updates have been installed.


sources.list file malformed Ubuntu 18.04

From the comments...

In terminal do...

sudo ls -al /etc/apt/sources.list.*

answer:

-rw-rw-r-- 1 root root 3396 Oct 23 12:21 /etc/apt/sources.list.old
-rw-r--r-- 1 root root  171 Oct 23 22:31 /etc/apt/sources.list.save

funny enough, they're both the same date, but sources.list.old is much larger than sources.list.save, so I suspect that's the one we need. Let's briefly look at each one...

cd /etc/apt           # change directory

cat sources.list.old  # view the .old file

cat sources.list.save # view the .save file

Does the .old file look more complete? If so, do this...

sudo rm -i sources.list                # remove the old empty sources.list

sudo cp sources.list.old sources.list  # copy over a replacement

sudo apt-get update                    # update the software database

you shouldn't get any errors on this last step. If you do, put a list of the errors as an edit to your question... not in the comments, please.


Transform .odt document into PDF compatible with Adobe Reader 5 with embedded fonts

In essence, the pdfs are compatible. You can choose the menu option to export your pdf files if you need more control.


Cannot reach any OS (operating system not found)

From your pastebin, it appears you still have windows.
Give this a try:

Boot into Ubuntu and open the terminal(Press Ctrl+Alt+T on your keyboard) or look for it in the dash. Once opened, type the following commands:

sudo grub-install "(hd0)"
sudo update-grub

This will install grub(the boot manager for Ubuntu on you hard drive.

That should do it.

Tell me if it works. Hope this helps you.

PS. Tell me if you get a picture similar to this:


Configure Thunar to keep users out of system folders?

I don't think there is a way to do this with Thunar. However, you can do:

sudo chmod o-x <folder>

Which will keep users that don't have user or group privileges for the folder from descending into the folder.
Don't do this to the /home directory, because the user will not be able to get to their home directory. You could try removing read access to the /home  directory:

sudo chmod o-r /home

This will keep users from seeing any other user's folders, but they should still see their own home folder.


Dual booting Ubuntu 16.04.1 alongside Windows 10 in such a way that Ubuntu can be able to access/read files of NTFS?

You can do this easily, one of two different ways.

Using your existing Windows partition

in Windows, go to the Power control panel and turn off fast boot.
in Windows, open an administrative command prompt window, type powercfg /h off.
in Ubuntu, click on the Windows icon that's in your Unity launcher, or, if you want it auto-mounted at boot time, modify your /etc/fstab with something like:

UUID=0C0F93CE58153D42 /media/your_username/Windows ntfs-3g defaults 0 0

change your_username, and change the UUID with the correct one found by using the sudo blkid command in terminal.

Using a new Shared_Data partition

Using gparted, or Windows own Disk Management application, create a new NTFS partition called Shared_Data.
Edit your /etc/fstab to include something like:

UUID=0C0F93CE58153D42 /media/your_username/Shared_Data ntfs-3g defaults 0 0

change your_username, and change the UUID with the correct one found by using the sudo blkid command in terminal.


Looking at image thumbnails in the Files / Nautilus app

In the file browser, aptly names Files, click the menu at the upper right and select Preferences. Under Preferences, select Search & Preview. Select Thumbnails, for example, Files on this computer only.
Close and restart Files and the preview should now be visible.


High Temperatures Compaq Presario C700, CPU Fan Speed problem

Perhaps installing thermald (if it's not already being used) would be helpful to control thermal over-runs. Use:

sudo apt-get install thermald

..and see if that controls the system.


apt-get error, cannot install many packages?

I have solved this problem myself.

Just run :

  sudo apt-get autoremove crossover:i386

and reinstall.


Error when mounting a shared drive via Samba

Presuming you have installed samba

sudo apt-get install samba

In the Global section of the file /etc/samba/smb.conf I have this :-

workgroup = WORKGROUP
netbios name = PCNAME
name resolve order = bcast host

Change WORKGROUP and PCNAME accordingly.
Set the name resolve order as shown in order to browse windows shares using Nautilus.


Unable to change unity app icon size with ccsm

On Ubuntu 12.04 you can do this from the appearance section of system settings.

At the bottom is a slider to change the icon size for the launcher.


try this, missing sidebar and menu bar may come back:

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity


Download page won't offer me the iso file for mac

Here you can access all the iso's directly:

http://cdimage.ubuntu.com/


Accessing Git from Assembla using SSH+RSA

As a legacy to my Monday clumsiness, the answer is as dumb as :

The command ssh-keygen -t rsa -C "<email address>" asks for a passphrase. If a value is set, that passphrase is the value that must be entered to "unlock" the key.

Now facepalm, everybody!


Turn off vsync (Radeon) and create xorg.conf

Apparently I didn't use the proprietary drivers correctly. This link solved my problem.


Unable to pair bluetooth speaker "Failed to pair: org.bluez.Error.AlreadyExists"

Add the device to be connected to the trusted list by using trust 00:00:00:00:00:00 and then try to connect or pair.


Weird "Dynamic Top Bar" bug every time I reboot/boot up

Yes you can. For everything that you can change in gnome-tweak-tool there is a corresponding gsettings command. The general syntax is:

gsettings set SCHEMA [:PATH]  KEY VALUE

You won't need the PATH parameter. Now what you should use as SCHEMA and KEY depends on the gnome-extension you want to use. First do

gsettings list-schemas

or perhaps

gsettings list-schemas | grep extensions

to find the correct schema. Then find the correct key with

gsettings list-keys [SCHEMA]

using the name you found in the previous step. The key will be something like dynamic_top_bar_settings. Then finally, do

gsettings get [SCHEMA] [KEY]

to see whether the dynamic top bar settings are enabled or disabled at this time; and do

gsettings set [SCHEMA] [KEY] enabled

to enable the setting.


How do I use git with google code on ubuntu?

https://code.google.com/hosting/settings

Click on the above link and copy and paste the line they suggest for you into a new file called .netrc. Then where it says code.google.com change it to project.googlecode.com where for example my project is called rentap so I put rentap.googlecode.com in place of code.google.com.

Then open a terminal and type

git remote add googlecode https://rentap.googlecode.com/git

except replace rentap with the name of your project instead of mine.

I personally don't know much about it, but what works for me is to use gitg that I installed from Ubuntu Software Center (which will also install git for you) and open the folder my project is in on my computer, click the 2nd tab and double click everything on the left, type in a summary of the changes, and click commit.

Then I open a terminal and type

git push googlecode

It works. When I click on the source tab of my project on code.google.com, everythings there.

As for the wiki, I don't bother with that on my computer. I just update it in my project on code.google.com.


If you're behind router and it uses network address translation (NAT) to share a single public IP assigned by your ISP, among computers in your LAN, I'd say you're pretty much safe and you don't need to set up addition firewall or iptables rules.

Because NAT, by default, will drop any unsolicated incoming traffic from the Internet when reaches your router. So in effect it also acts as a firewall that prevents incoming requests from reaching your computer

This also why when you need to access a service in your LAN from outside the network eg IP camera, you must set up a port forwarding on your router to allow the request to reach the service


Why the software center doesn't allow multiple downloads?

That is a good question. It is because it's based on the same package tools that apt-get and others use. These are designed in a way that expects you to provide all the packages to be installed, and then the rest is automatic. This is very good in most cases, but for the Software Center, it causes some issues. You would either need to first select the packages you want to install and then click a button to actually download and install them, or you have to queue applications and then download and install one by one. This provides a much better user experience if you're installing one application than having to use those extra clicks, but it is also annoying when you're "shopping".

It is possible to fix this, so I expect that in the future, this will be remedied, but it does mean recreating or rewriting existing tools, so I don't think it'll have very high priority.

Let me elaborate:

A package may depend on other packages. If these packages aren't available, then the package cannot be installed. So tools like apt-get will first download all the packages you ask for and all the packages they depend on, etc, and then install all of them. So you would then normally provide all the packages you wanted in one go, and they would first be downloaded and then installed.

When you choose to install an application in the software center, you'll usually want it to start downloading and installing immediately. But in order to ensure that everything is in order, only one installation can be done at any one time. That's why when you install an application, you have to wait until that application is completely downloaded and installed before the next download and install can begin.

This could be fixed by not using apt-get to install the packages, but instead downloading the packages manually and then using dpkg to install them once they're ready. You still wouldn't be able to install two packages simultaneously, but you would be able to start downloading new packages while the previously started installations were finishing. In some cases, that would save quite some time, so it is a good idea. But in most cases, it wouldn't really matter so the effort is better focused elsewhere.


How to reset xcalib contrast to default without seeing screen?

To reset to default use

xcalib -c

Even if its an old post...


You need to have update-notifier-common installed. This is not installed on minimal server installs by default


Cannot change swappiness default from 60 to 0 in Ubuntu 12.04

I have mine set like this:

#
# Decrease swap usage to a workable level
vm.swappiness=10
# Improve cache management
vm.vfs_cache_pressure=50

I guess you can just use "0" instead of my "10", but this should work.


So we're looking at a Sony Viao laptop inbuilt camera; you need to be a member of "video" group to access it, or run cheese as root - a less good idea - and you may need to add a driver.

First, I would check that /dev/video0 exists; if it does, you probably have a driver & need permissions; otherwise you need to install a driver.

I found a nice link to driver details regarding the issues around this device - have a look at this, install the drivers it points to (but make sure you read it, don't just install the first thing!), & let us know how it goes?


execute

dpkg --force-depends --configure ca-certificates-java

and solve other error appearing


Is there an environment variable like PRINTER but for a remote server?

You should have (at least) the "client" parts of CUPS installed. Then put this line into a file saved as /etc/cups/client.conf (for system-wide usage) or into ${HOME}/.cups/client.conf (if you want to use different remote CUPS servers for different users):

ServerName servername:631

or

ServerName server-ip-address:631

Note that /etc/cups/client.conf must be world-readable since it's user-space applications that will be reading it (not a root-owned daemon).

Should the remote CUPS server be rather new, you have to tell your print client to ask the remote server to use IPP v1.1 (not v2.0 as the newer CUPS versions do):

ServerName servername:631/version=1.1

Now your local cupsd will be by-passed (if it's running at all), or no attempt to contact it will be made (if it's not running). The printing client programs will directly talk to the remote CUPS first (not the one located on localhost:631, as they otherwise would without the presence of the client.conf entry outlined above).

To answer your question about an environment variable: Yes, there is one. It is called CUPS_SERVER. You could use it on a case-by-case base whenever you print a job if the client.conf entry is not there, or if you want to override the remote server named in client.conf, or if it listens on a non-standard port

CUPS_SERVER=other_server:631 lp -p printername jobfile

You can also use it to list the names and status of (shared) printers on a remote server:

CUPS_SERVER=other_server:631             lpstat -p
CUPS_SERVER=other_server:631/version=1.1 lpstat -p

CUPS_SERVER=other_server:631             lpstat -v
CUPS_SERVER=other_server:631/version=1.1 lpstat -v


All I had to do was change my NVIDIA driver and now it runs well:

Go to top left icon and search for Software and Updates.
Click on software and updates
Go to the tab named Additional Drivers
I originally had NVIDIA binary Xorg, kernel module and VDPAU library from nvidia-304 (proprietary) OPTION 5.
I changed to NVIDIA binary Xorg, kernel module and VDPAU library from nvidia-310-updates (proprietary, tested)
Rebooted the system
Performs excellent now


How do I change the default application for unknown file types?

modify ~/.local/share/applications/mimeapps.list

[Default Applications]
- text/plain=bless.desktop
- application/octet-stream=bless.desktop
+ application/octet-stream=gedit.desktop

This reverts the text/plain app to using the system default in /usr/share/applications/defaults.list, and changes the default application/octet-stream. It seems that Firefox labels this mime-type as "Unknown".


Is 22,000,000 files and folders too many?

Certainly not; my current system has under half a million.  I'd say testdisk is wasting your time.


Shutdown command from UI restarts system in Ubuntu 14.04

The shutdown from the UI rarely works for me.  It has been very iffy in versions for the last 4 years.

Someone might be able to place insight on directly why.  But for a resolution you can install cairo-dock and use that UI shutdown problem free.

You can install it with:

$ sudo apt-get install cairo-dock

Now run it from the Launch button.  Use this alternate shutdown option.  It'll work every time.

I didn't include this in my original answer because it appeared that you were trying to use the GUI.

This will also work every time:

$ sudo shutdown -h now

You can also reboot the computer by issuing:

$ sudo shutdown -r now

Check other cli shutdown options with:

$ man shutdown

Of course you can put this in a script and create a myshutdown.desktop icon to execute the shutdown script with a click.


cant get wireless adapter to work (TL-WN823n)

It looks like you installed the rtl8192-dkms package from my (hanipouspilot) PPA.
It did not build for the 4.8 kernel, because I did not patch it for the 4.8 kernel yet.
I suggest running

sudo apt purge rtl8192eu-dkms
sudo apt install ppa-purge
sudo ppa-purge ppa:hanipouspilot/rtlwifi

and installing the driver from github as mentioned in another answer.

Run

sudo dkms remove rtl8192eu/1.0 --all
sudo dkms add ./rtl8192eu-linux-driver
sudo dkms install rtl8192eu/1.0


Looks like this is a bug in kernel 5.3 with nvidia's ucsi_ccg module.

blacklist ucsi_ccg in /etc/modprobe.d/blacklist.conf actually did fix the delay. I still get the iwlwifi error but that doesn't hold it up for as long.

I had a typo in my blacklist.conf and that's why it didn't work before.


Check that you are in the audio group by bringing up terminal and running the groups command.

If you do not see audio listed in the groups, put yourself in it by running:

sudo adduser $USER audio

I didn’t have to do any of these, I did get the error message like you did. But I forgot one important rule: turning it off and on again, or rather logging out and in again to enable the groups that were auto created when installing the software.

That being said, whether you need to add the audio group and permissions to your username, or you do not, restart the computer or log out and in to enable.


Failed to set interface wlan0 into AP mode: Intel centrino N1000 Wireless

To use your network card as wifi hotspot, it must support AP mode & master mode.

To check master-mode run:

sudo iwconfig wlan0 mode master.

If you dont get a error then it supports master-mode

To check AP run following command:

sudo apt-get install iw

Then run:

iw list

If there is 'AP' in the list of "Supported interface modes" your device will support the Access Point mode with hostapd.

But as you commented above, that it doesn't support AP mode, The wifi hotspot wont work as explained in the blog.

Unlike windows, linux-kernel doesn't provide same features for every wireless cards.So for a particular wifi-card, windows driver may support AP , but linux-driver may not.

One option is to purchase a wireless card which supports AP modes. You can find more information here:

http://wireless.kernel.org/en/users/Drivers

Although according to me, the best option is to buy a USB Wifi-Router with 3G/Evdo modem support(preferably) like Lava W200 .


I have broken packages/ dependencies problems and nothing will fix it

Nvidia 384.111 is the (tested) driver in the standard repositories for Ubuntu 16.04.  There is no need for using the graphics-drivers ppa to get a later version at this time.  Revert back to the standard packages with:

sudo ppa-purge ppa:graphics-drivers/ppa

There were so many "graphics-drivers" ppas from various sources in the past, check /etc/apt/sources.list.d for any unwanted ppas (just delete the file and rerun sudo apt-get update).

Then list and remove any installed nvidia packages:

dpkg -l | grep nvidia

Installed packages are on lines beginning with "ii"

sudo apt-get purge <the installed nvidia packages>

Check that all the blacklist lines were removed from all the files in /etc/modprobe.d.  Comment them out if necessary.
Update the package index:

sudo apt-get update

And now run the Software and Updates from the launcher, and under the Additional drivers tab should be the Nvidia 384.111 (tested) driver.
Select that, and apply.  Reboot and check that you are running the correct driver with the Nvidia Settings (from the launcher).


What you may want to do instead is just download the tor browser bundle (32 or 64) from here: https://www.torproject.org/download/download-easy.html.en

After it's downloaded, extract it to a folder - it can be in your home directory.

To run it, cd to where the you extracted the bundle and run ./start-tor-browser. This will launch the proxy which then launches the browser.


Unable to connect Vodafone Huawei dongle

It seems that this modem has problem in 11.04 as per google results. If the device LED is ok and it loaded as a cd drive,

Try the following,

Don't use memory card in the slot of modem if any.

open synaptic package manager and download these two libraries.

usb-modeswitch
usb-modeswitch-data

Press ALT+ F2 and type gconf-editor
Disable auto mount :
Click on apps folder in left and then navigate to nautilus, double click on preferences directory.

on right hand side panel,uncheck the following options:

media_automount
media_automount_open

Check this option

media_autorun_never

Reboot system. You can keep usb stick connected.

Now that you have everything setup, you can create configuration for this USB modem in network connections.

Alternartively you can try with  sakis3g script. It is shell script specifically made for vodafone.

A detailed tutorial of both methods can be found here

http://skyfire.hubpages.com/hub/How-to-Install-Vodafone-3G-USB-Modem-on-Ubuntu


mariadb new install : Checking for corrupt, not cleanly closed and upgrade needing tables

What are you panicking about? It's saying it's checking for corrupt tables.

It hasn't said it has found one.

Nothing to see here.


Cannot login after upgrade from 12.04 to 14.04

False alarm! Turns out Trusty hadn't installed properly before the power failure which caused the filesystem check or mount failed.

Booted into recovery mode and ran clean and dpkg, which downloaded and installed all the necessary packages and now all is well in the world.


Can't log in after changing home directory

Log in as root and change it back to what it was before, by running usermod -d /home/florencia florencia.

I don't know what you were trying to do exactly, but you should generally not change your home directory like that.


Wireless driver (Relink RT3290) not working

1.download the file.

https://docs.google.com/file/d/0B7kbO9nS2qKEMmQ5elZXVUhDRjA/edit?pli=1

2.copy the folder named "rt3290sta-2.6.0.0" to /usr/src

*i. Check the folder name again! The name should be [rt3290sta-2.6.0.0]

*ii. You cannot copy files to /usr/src? Open terminal and run

gksudo nautilus

,then GUI window will open. Find computer->usr->src, and paste the folder)

3.In terminal, run

sudo dkms install -m rt3290sta -v 2.6.0.0 –force

(It's for 14.04 LTS)


Unable to install qt4-designer under ubuntu 12.10

Looks like you have you added some Qt related PPA's, and have installed newer Qt libraries which lead to dependency conflict.

The easiest way would be to uninstall 4:4.8.3+dfsg-0ubuntu4~quantal1~test4 Qt packages, remove 3rd party Qt PPA's, and try again.


I could not even connect to my building's wifi but for some reason I was able to connect to a friend's wifi network somewhere else. I tried many of the suggestions in here after researching for hours. In the end what did was reverting back to the previous Linux kernel installed, 3.8.x. 13.10 install with the newer kernel version 3.11 and that seems to be the root of a lot of issues.


Every time I try to run a newly installed app from the Ubuntu Software app the icon blinks in the task bar for a while then disappears

I found that a simple update fixed the problem because I hadn't ran an update for quite some time.

I ran these commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Some apps I had to delete then reinstall after the update then they worked fine.


Is there a Visual Studio style tool/IDE?

In your comment you said you were more concerned about the "all in one" aspect, however if you want the best possible experience I think it's important to choose the right tool.

C++/Qt:
Qt Creator: A cross-platform integrated development environment (IDE) tailored to the needs of Qt developers. (I would recommend this option if you plan to be programming in C++).

Java:
Eclipse: This is pretty much the de facto Java IDE.

C#/.NET:
Mono: MonoDevelop is an IDE primarily designed for C# and other .NET languages.

My personal "IDE" is Gedit. It is minimal (similar to Notepad++ on Windows), but it gets the job done. It also supports plugins which can basically make it a true IDE. It supports most languages including C/C++, Java, C#, Python, Ruby, PHP, HTML, etc.

If you're using KDE as your desktop enviroment and don't want to run Gedit, you could also try Kate.


How to install Pure-FTPd and configure FTP server to transfer files?

Install Pure-FTPd

root@www:~# aptitude -y install pure-ftpd

run as a daemon

root@www:~# echo "yes" > /etc/pure-ftpd/conf/Daemonize

prohibit Anonymous

root@www:~# echo "yes" > /etc/pure-ftpd/conf/NoAnonymous

enable chroot

root@www:~# echo "yes" > /etc/pure-ftpd/conf/ChrootEveryone

only IPV4

root@www:~# echo "yes" > /etc/pure-ftpd/conf/IPV4Only
root@www:~# /etc/init.d/pure-ftpd restart
Restarting ftp server: Running: /usr/sbin/pure-ftpd -l pam -E -A -8 UTF-8 -B -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -4 -B


How to revert configuration of chmod to run command as root again

sudo chmod -x /usr/bin/docker

Would be the antithesis.


Try in the terminal:

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

The command apt-get update is to update list of available upgrades, apt-get upgrade and apt-get dist-upgrade are to upgrade your system.

Also you can do this by 3 steps:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade


According to this related StackOverflow answer How do I change the scratch message in Emacs?, you can suppress the message by setting

(setq initial-scratch-message nil)

in your configuration. If you don't already have a personal configuration file (usually ~/.emacs or ~/.emacs.d/init.el you can create one, using emacs or otherwise, and simply paste the command in verbatim, then save and exit. Next time you start emacs, the scratch buffer should be empty.


After looking at the system resources on the system monitor application, it was obvious that the computer could not keep up with the screen capture.

This solution was something I did not want. I reduced the frame rate to about 13 fps and it was syncing much better but I lost all that frame rate! libx264 was not efficient enough to make it much better. If anybody else has this problem, check the system resources and you will probably find that the CPU is being run up to 100%.