How do I get a complete list of files in my hard drive in a convenient format?

Method 1(using find)

find /path/to/the/directory >~/file.txt

Method 2 (using tree package)

sudo apt-get install tree
tree -fi /path/to/the/directory >~/file.txt

use

tree -fia /path/to/the/directory >~/file.txt

for hidden files also

Here the you will find all the filenames in a file called file.txt at ~

Method 3(Using Bash)

Execute this from /path/to/the/directory(Thats is if you want all files under home , If you want something else change accordingly)

that is

cd /path/to/the/directory
ls -R --group-directories-first >~/file.txt

Here the you will find all the filenames in a file called file.txt at ~

Method 4(Using python)

Execute this python script and you will get a file called newfile.txt with all the contents in /home directory

#!/usr/bin/env python
import os
import fnmatch
path = '/home'
configfiles = [os.path.join(dirpath, f)
    for dirpath, dirnames, files in os.walk(path)
    for f in fnmatch.filter(files, '*.*')]
with open("newfile.txt", 'w') as fp:
    for files in configfiles:
        fp.write(files+"\n")


Grub menu not appearing after reinstall and boot repair

Have you tried it with command in terminal?  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

update-grub

if this does not help, then try

apt-get install --reinstall grub

then

grub-install

and finally at end

update-grub

this should work.


Direct file downloads based off file extension?

There is a solution in Firefox.

Automatic Save Folder add-on offers such feature that allows you to specify where each file you are downloading will be saved too. After installing this add-on, go to Tools and select Automatic Save Folder to configure the options.

Also, for Chrome, maybe is useful this post: Is there a Chrome extension similar to Automatic Save Folder for Firefox?


Errors were encountered while processing: python-pexpect

Take a look here here.

While they are solving the problem, you can downgrade the package using:

apt-get install python-pexpect/trusty python3-pexpect/trusty


Authenticate/Decrypt packet error in openvpn

It depends. It could be a replay attack, or a badly configured router sending packets again even after they've been received.

Essentially, OpenVPN signs every packet with a unique ID. When the client receives the packet, it records the packet ID. When the client receives a packet with a same unique ID, it drops the packet and raises a red flag.

Badly configured routers (and other network middle-ware) could resend packets over and over even though they have arrived at the client (which could be a reason why you saw the 700MB traffic), which would obviously cause a false alert with OpenVPN.

A malicious actor usually uses replay attacks to gain authentication. Usually, this is not much of an issue, because OpenVPN just drops duplicate packets and raises a warning. It is not so much of a MITM attack, because the actor still doesn't know how to decrypt those packets.

One more possibility is your system clock. When you turn back time, OpenVPN may confuse the unique IDs received and raise a false alarm. Make sure your NTP is working fine.


Mouse disappears over gvim after installing NERDTree

It seems that set nomousehide did the trick.


How to make Ubuntu 14.04 run with less lag?

Your system is not currently using hardware acceleration for graphics - to enable this, you will need to try to update the drivers.  I know of four options, only one of which has ever worked well for me.

Before you use any of these options, you may also want to run sudo apt-get install linux-firmware-nonfree - this will load the firmware for which there is no source code.

Option 1 (the only one that worked for me)  Use the graphics drivers from oibaf:

sudo add-apt-repositoryppa:oibaf/graphics-drivers
sudo apt-get update
sudo apt-get upgrade

More information can be found at launchpad

Option 2 - use the xorg-edgers.  These can be found on launchpad, but they are not always entirely stable and may break your system

Option 3 - download and compile the official slick new and totally advanced intel drivers from 01.org.  Before you do this, read about how to uninstall them!

Option 4 - in the software sources (open the dash and type software sources), the rightmost tab 'Additional Drivers' may have drivers that can work in your system.  Again, you should review how to remove them, before you install them.


Lubuntu 18.04.2 LTS has upgraded to kernel 5.0.0.23 via Software Update

If you want non-HWE kernels you should install either Lubuntu 18.04 or Lubuntu 18.04.1. All ISO's from .2 onwards have HWE enabled by default (I, along with others are in the process of QA-testing the .3 ISO currently, it should be released Thursday 8 August 2019 though will use the HWE kernel too).

You can sudo apt full-upgrade either 18.04/18.04.1 or 18.04.2 after installation and they end up the same, except for kernel being used; 18.04.2 using HWE kernel (which will upgrade itself until it finally uses the 20.04 kernel).

Your behavior is consistent with a 18.04.2 installation

See https://wiki.ubuntu.com/Kernel/LTSEnablementStack for details about the HWE or hardware enablement stack kernels.  HWE kernels whilst in theory are slightly less stable (less production testing), they have advantages for newer hardware...


Can I have multiple local juju environments?

Tuned my google search enough:  https://github.com/juju/docs/issues/35

Pulled out here for reference:

# Alternate Local Environment
# Must be different than defaults:
#    - storage-port: 8040
#    - state-port: 37017
#    - api-port: 17071
local-alt:
    type: local
    storage-port: 8041
    state-port: 37018
    api-port: 17071


how to install windows xp from the second hard drive on Ubuntu 13.04

If you're going entirely by BIOS order, you need to do one of two things:

Have GRUB recognize the secondary HDD's boot sector (Windows) and be able to launch off of the 2nd drive on its own.  Run boot-repair while in Ubuntu, and have it Scan your available HDDs/systems (will do this automatically usually), or if you're aware of how to configure GRUB on your own, set it up manually yourself.
Alternatively, you could do the painful method and assign the boot order in the BIOS manually every single time you want to switch systems... but that seems painful and unnecessary if you can simply use GRUB the whole time.

If you have any questions or issues regarding configuring GRUB to boot off of the second disk, I'd recommend you visit this link for some basic rundowns of how to do this.  It's not exactly the situation you may be having, but may give a better idea of how to accomplish a similar situation.  Feel free to post follow-ups if you have issues.


How to install applications like helm on microk8s?

Apparently helm is installed on the local Kubernetes cluster by using the command helm init and others locally. For specific installation instructions see https://helm.sh/docs/using_helm/#quickstart.


Difference between apt-get dist-upgrade vs dpkg -i *.deb files?

If you have a fixed set of Debian packages that you have already downloaded, you use dpkg --install *.deb

You use apt-get dist-upgrade to download and update all your packages from the repository, intelligently handling disappeared packages. (That is a simplification.) It’s used during distribution upgrades (hence the name). Depending on the contents of your /etc/apt/sources.list, this may very well upgrade to 17.10…


unity-reset on boot - Ubuntu 12.10 Unity Problem

You'll need to add these line to /etc/rc.local. To add them, follow these instruction

Open a terminal and type

gksudo gedit /etc/rc.local

Then paste this line before exit 0

unity-reset

Make it execuable

sudo chmod a+x /etc/rc.local


It should work and it indeed works here exactly as you entered it:

watch -n 30 arp

The only thing I can think of would be to look at the results of the command "export" and make sure your display isn't set to something funky.

I ran the watch command from a standard terminal shell that comes with the standard Ubuntu distribution.  Nothing special here...

As a test you could try forcing an output redirect:

watch -n 5 arp >> test_file


According to Install Adobe Acrobat Reader in Ubuntu12.10/12/04/Linux Mint, you need to do this:

sudo add-apt-repository "deb http://archive.canonical.com/ precise partner"
sudo apt-get update
sudo apt-get install acroread

But note that the Launchpad page here does not list a package for quantal (12.10).

acroread was either removed from quantal or was not made for quantal so changing precise to quantal in above instruction OR checking the box in the image posted in the question in the tab 1 to the right (named Other Software) will NOT work. You need to use the precise repo or download it straight from adobe.com


Clonezilla Copy Ubuntu 20.04 install to another computer

I can suggest you to do nano [mounted drive location]/etc/fstab in a live CD/USB
And then modifiy the UUID of the mounted partitions there, as :

The GUID UUID and associated label refer to a partition, but not the partition's contents. A new partition on the same disk, or a partition on a new disk will have a new GUID UUID. The same partition could hold one file system one day and another on a different day. It only exists for GPT formatted disks, but not for legacy partitioned disks. There's usually no more utility here than specifying root=/dev/sda1 or root=8:1.

source
As you created a new set of partitions, on a different disk, Ubuntu finds no partitions to mount, and as no OS is loaded, fails silently
You'll need to harvest your disk to find which partition is mounted where (using lsblk) then to find the UUID
After that replace the corresponding string after UUID= on the fstab on each line
and reboot


How to make persistent USB for Ubuntu 18.04.1 using Windows?

Rufus Persistent Pendrive install

That works with both BIOS and UEFI

Rufus does an OK job of installing Ubuntu Live to USB.
It works with both BIOS and UEFI.
It does not do Persistent installs out of the box.

Many people prefer a Persistent pendrive that will save changes.

Create a Live pendrive using Rufus.
Boot the Rufus pendrive toram to make the drive editable, (press shift when booting, press Esc from language, press F6, press Esc, type a space and "toram" after "quiet splash ---", and press Enter).
Create a casper-rw file:

sudo dd if=/dev/zero of=casper-rw bs=1M count=512

sudo mkfs.ext3 -L casper-rw -F casper-rw

(where count=512 is persistence size, with max 4GB).

Move the new casper-rw file from home to the root of the Live Pendrive.
In Terminal edit /isolinux/txt.cfg, (for BIOS boot persistence) and /boot/grub/grub.cfg, (for UEFI boot persistence), add a space and the word "persistent" after "quiet splash ---" in each.
Shut down and reboot the persistent drive.
A home-rw file can be created by renaming a casper-rw file. It can add extra persistence by storing your home related data in it's own file up to 4GB in size.

*Casper-rw partitions do not work with Rufus.


Problem with Ethernet connection on PC, integrated network card (Ubuntu 14.04)

You need to switch the driver. Do in terminal.

sudo modprobe -r 8139too
echo "10ec 8129" | sudo tee /sys/bus/pci/drivers/r8169/new_id
sudo modprobe -r r8169
sudo modprobe r8169

If your network cards starts working, I will add how to make it permanent after reboot.


You can run programs that are designed for windows with "wine".
Just install "wine" and then you should be able to install those programs.
I think that you can install wine by typing (in the terminal):
sudo apt-get install wine
and typing your password when prompted for it.


How do I create a partition in Ubuntu 16.04 after installation?

Boot into a live Ubuntu USB/CD and partition off some of your main HDD through Disk Utility.

As mentioned in the comments, you may not be able to partition the live volume while it's mounted.


Translate alias command to the full form

Aliases serve for you as a shortcut in the terminal. It is not the other way around. The way you intend to use aliases is not how they are intended.

In principle, just type out the command in full when used in automation. However, you could turn your aliases into a command by instead creating an executable script:

Contents of a bash script kprod

#!/bin/bash
kubectl --namespace=hello $@

The $@ at the end of the command will expand to all the parameters you passed on the command line.

Put this script in a folder that is in your path. That way, simply typing the name will run the script. Although somewhat more difficult to set up, it is equally easy to use as your alias. In addition, you can also use it in automation.


After extensive testing, I was unable to get iTunes Music Store to work - at all. Complete fail. The best I could achieve was to get the music player to work.

Frustrated, I went looking for a decent alternative. Enter Google Music...

It might be worth a look-see because it'll work no matter what device or OS you use, because it's web-based.

Being web-based, it offers way better features, like the choice of multiple downloads of music purchased and/or streaming it from anywhere from the cloud. You can also upload your music to the cloud too - upto 20,000 tracks for free. The Store music is high-quality (320kbps) mp3, which is playable on many players available today.

Sorry, not meaning it to sound like an advert, but it's really that good!

Baldrick.


How to navigate and launch installed applications?

You can click on the applications button in the dash to get to your application:

You can get there by hitting the Tab key after you've invoked the dash, or click on the little icon. Or you can get there directly by using the Super-A keyboard shortcut.

What are Unity's keyboard and mouse shortcuts?


Nemo doesn't preview all thumbnails, and it's not size related

I am using nemo on Ubuntu 18.04. I also had the problem of no previews. After lots of searching for solutions and trying various settings with dconf-editor, I finally searched my computer for a thumbnails folder or file, found this:

~/.cache/thumbnails

Renamed it in case I needed to get it back:

mv ~/.cache/thumbnails ~/.cache/thumbnails~

and rebooted.

Nemo now shows the previews in icon view (the .cache now has a new thumbnails folder) and I deleted the renamed one:

rm -rf ~/.cache/thumbnails~

I hope this helps you as well.


I suspect sed isn't the thing for this (and others may know how to do it much better with sed), but here goes:

$ sed '2,$ s/.$/&,&/' file | sed -r ':a;N;s/\n(.)(,?.?)(,.)$/\3\n\1\2/;ta' | sed '$d'
A,p,q
B,q,r
C,r,s

Notes

sed '2,$ s/.$/&,&/' means duplicate the last character on all but the first line, adding a comma:

2,$ from the 2nd line onwards
s/old/new/ replace old with new
.$ the last character
& the matched pattern

sed -r ':a;N;s/\n(.)(,?.?)(,.)$/\3\n\1\2/;ta;' means take the last character from each line after the first one and stick it on the end of the previous line:

-r use ERE
:a label: execute from here
; separates commands
N read the next line into the pattern space so we can use \n to represent newlines in the pattern
(.) save one character for later
? zero or one of the preceding character
$ end of line
\1 reference to saved pattern
ta if the last s command was successful, branch to :a and execute the loop again
$d delete the last line

If your file does not have only single characters between the commas, you won't be able to use the very simple regex above. Here is a version that works if the file is comma separated. For example, given

January,apple
February,pear
March,kiwi
April,mango

You could do this, which also works if there is only one character, of course

$ sed '2,$ s/[^,]*$/&,&/' file | sed -r ':a;N;s/\n([^,]*)(,?[^,]*)(,[^,]*)$/\3\n\1\2/;ta;' | sed '$d'
January,apple,pear
February,pear,kiwi
March,kiwi,mango

sed scripts can be written on multiple lines. I can't claim this significantly improves readability ;) but it may be more portable since there are restrictions on the use of ; in non-GNU versions of sed:

sed '2,$ s/[^,]*$/&,&/' file |
sed -r '{:a
          N
          s/\n([^,]*)(,?[^,]*)(,[^,]*)$/\3\n\1\2/
          ta}' |
sed '$d'

[^,]* means zero or more characters that aren't commas.


gnome-control-panel (System Settings) window width will not resize less than 800px

You can try to edit the source code of "gnome-control-center".
There is a value named "UNITY_FIXED_WIDTH 850" by default.

NOTE: In this example I'm running Ubuntu 13.04 with gnome-control-center 3.6.3

1) Make sure you have enable the Source code repository

Open the Ubuntu Software Center
In the Menu Bar choose Edit -> Software Sources. Click to enable "Source code repository".
Just in case I use the "Main Server" to Download.

2) Open a Terminal and install the necessary packages.

sudo apt-get install build-essential

3) Install build dependencies

sudo apt-get build-dep gnome-control-center

4) Create a folder to download the source code.

mkdir ~/Downloads/src
cd ~/Downloads/src

5) Download the source code.

apt-get source gnome-control-center

6) Edit the line 54 in the file "gnome-control-center.c". (My case I changed 850 to 650)

gedit gnome-control-center-3.6.3/shell/gnome-control-center.c

In one line would be.

sed -i '54s/850/650/' ~/Downloads/src/gnome-control-center-3.6.3/shell/gnome-control-center.c

7) Go to the "gnome-control-center-3.6.3" folder to build the deb packages.

cd gnome-control-center-3.6.3/
dpkg-buildpackage -rfakeroot -uc -b

8) Now you can install the deb packages.

cd ..
sudo dpkg -i *deb

9) Finally you can logout and Login to see the changes.

BEFORE:

AFTER:

Hope it helps.


Lap wont boot after deleting windows7 partition

If you didn't mess things up too much, you can solve the problem by booting a liveDVD or liveUSB and use Boot-Repair by opening a terminal and run:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

Source: https://help.ubuntu.com/community/Boot-Repair


How to fix "Failed to fetch" repository errors?

The source url is invalid. It dowsn't contain any files. That's why it is failing.

Follow this URL - http://ppa.launchpad.net/jsevi83/unity/ubuntu/dists/

You can see there are no files.

Probably you are following some outdated instruction to install some specific lenses.


I finally figured out what caused this problem. At some point in time, somehow I'd done something wrong with my gtk-3 settings. Remove the folder via

rm -r ~/.config/gtk-3.0

and then logging out and in again solved my problem. Now all the themes look fine again.


try this:

connect the USB memory stick

open a terminal and type sudo fdisk -l and wait until it finishes (the five minutes you're talking about).

when the "$" sign (and all the text behind it) shows up again type those in the terminal:

sudo mkdir /media/anything

then (when "$" comes again)

sudo mount -t vfat /dev/sdb1 /media/anything -o uid=1000,gid=1000,utf8,dmask=027,fmask=137

this should solve your problem!

...ofcourse you can replace the word "anything" by any word you like but be careful not to use spaces and to use the same word in both commands.

you can also look this up: https://help.ubuntu.com/community/Mount/USB#


You appear to have some bad items in your sources list.  If you are running Ubuntu, wine-stable shouldn't have a xenial version.  The baseline version of wine-stable in 18.04 is 3.0-1ubuntu1.

I suggest removing all ppas that have to do with wine and try installing it from the baseline repos.


Ubuntu 12.04 installed on hard disk using USB pendrive does not boot from hard disk

Reinstall it  , and at the Grub installation prompt , install Grub on your Hard drive , Preferably on sda . Make sure you are installing Ubuntu on your Hard drive and not in your USB .


It is likely that your kernel modules include debug information.  If you set the INSTALL_MOD_STRIP environment variable to 1 when installing the modules, the debugging information will be removed.


Will ls always list the files that rm will remove?

Well, both ls and rm operate on the arguments which are passed to them.

These arguments can be a simple file, so ls file.ext and rm file.ext operate on the same file and the outcome is clear (list the file / delete the file).

If instead argument is a directory, ls directory lists the content of the directory while rm directory won't work as is (i.e. rm without flags cannot remove directories, while if you do rm -r directory, it recursively deletes all files under directory and the directory itself).

But keep in mind that command line arguments can be subjected to shell expansion,
so it's not always guaranteed that the same arguments are passed to both commands
if they contain wildcards, variables, output from other commands, etc.

As an extreme example think ls $(rand).txt and rm $(rand).txt, the arguments are "the same" but the results are quite different!


How to remove file in Ubuntu Terminal list?

I think you should use the find command:

find /dir/to/search/ -type f -name ".?*" -exec rm -f {} \;

You should probably change the .?* regexp with a more specific one if you can, to avoid deleting unwanted files.

To test, you can try to print the files first:

find /dir/to/search/ -type f -name ".?*" -print


I found this nice script that automatically will block IPs by country in Iptables:

#!/bin/bash
# Purpose: Block all traffic from RUSSIA (ru) and BELARUS (by). Use ISO code. #
# See url for more info - http://www.cyberciti.biz/faq/?p=3402
# Author: nixCraft <www.cyberciti.biz> under GPL v.2.0+
# -------------------------------------------------------------------------------
ISO="ru by"

### Set PATH ###
IPT=/sbin/iptables
WGET=/usr/bin/wget
EGREP=/bin/egrep

### No editing below ###
SPAMLIST="countrydrop"
ZONEROOT="/root/iptables"
DLROOT="http://www.ipdeny.com/ipblocks/data/countries"

cleanOldRules(){
$IPT -F
$IPT -X
$IPT -t nat -F
$IPT -t nat -X
$IPT -t mangle -F
$IPT -t mangle -X
$IPT -P INPUT ACCEPT
$IPT -P OUTPUT ACCEPT
$IPT -P FORWARD ACCEPT
}

# create a dir
[ ! -d $ZONEROOT ] && /bin/mkdir -p $ZONEROOT

# clean old rules
cleanOldRules

# create a new iptables list
$IPT -N $SPAMLIST

for c  in $ISO
do
    # local zone file
    tDB=$ZONEROOT/$c.zone

    # get fresh zone file
    $WGET -O $tDB $DLROOT/$c.zone

    # country specific log message
    SPAMDROPMSG="$c Country Drop"

    # get
    BADIPS=$(egrep -v "^#|^$" $tDB)
    for ipblock in $BADIPS
    do
       $IPT -A $SPAMLIST -s $ipblock -j LOG --log-prefix "$SPAMDROPMSG"
       $IPT -A $SPAMLIST -s $ipblock -j DROP
    done
done

# Drop everything
$IPT -I INPUT -j $SPAMLIST
$IPT -I OUTPUT -j $SPAMLIST
$IPT -I FORWARD -j $SPAMLIST

# call your other iptable script
# /path/to/other/iptables.sh

exit 0

Source and more info: Linux Iptables Just Block By Country.


What tools do I have available to test a hard drive's health?

badblocks with its -w flag will give your drive fairly exhaustive testing (but will destroy the contents, so don't use it on a drive that has data you want to keep).


If you enable the source code repositories in "Software sources" application (software-properties-gtk), you can download the latest python source that is related to the package:

apt-get source python

You can do that for any ubuntu/debian package.
You can always google your way to the source code: http://www.python.org/download/releases/


Not able to run juju bootstrap : ERROR You are not allowed to start up this node

Basically here tow fundamentals reasons for that error:

The node is not ready when generating the ssh key.
Zookeeper is not being runinng it s agent in the node so does not pass the ssh key even the node started form maas.

if you have other experiences with this. Please share !!!


I solved this problem, but am not 100% sure why what I did solved it. Because I though it may have been something I installed that may have caused the problem I decided to run the janitor tool in ubuntu tweak (screen-shot below).  After I ran this I was able to restart and shutdown ubuntu without any hanging on the splash screen. My suspicion is that something in the package configs was causing an issue but that's a guess. I didn't have to edit the grub like a lot of other solutions to this issue. I have not seen janitor been recommended to solve the hang problem on shutdown/restart but maybe it's something that other people can try if other solutions don't work.


Why does Ubuntu Freezes on ASUS K42DY laptop with RADEON HD6470M Graphics Card?

The problem could be that U didn't install the additional driver for your graphic card from ubuntu settings manager.Here is what U could do if you don't find any additional driver.

Step 1 : (uninstall the current driver using the terminal)

sudo sh /usr/share/ati/fglrx-uninstall.sh

sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx

Step 2 : (install the ati catalyst using the terminal)

sudo apt-get install unzip

cd /tmp && wget -O amd-12.9-9.00-EDG_Direct.zip http://www2.ati.com/drivers/embedded/9.00-120815a-146426C-EDG_Direct.zip
unzip amd-12.9-9.00-EDG_Direct.zip

chmod +x amd-driver-installer-9.00-x86.x86_64.run

sudo sh amd-driver-installer-9.00-x86.x86_64.run

Step 3 : (Configure)

sudo aticonfig --initial -f

Step 4 : reboot


Has anyone found "submit statistical information"?

The "Statistics"-Tab was marked as deprecated and removed in Ubuntu 12.10.

This happened because they've added "Recommendations" in Ubuntu 12.10
(https://wiki.ubuntu.com/SoftwareCenter/Recommendations)

it appearance in the Beta of Ubuntu 12.10 was even marked as a bug in launchpad and fixed with the release of the package software-properties-0.92.

Source: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1025436


List file number and size (directory and sub-directory)

find Downloads/ -type f | wc -l

Returns the number of all files (Including hidden files0 withing Downloads directory and all it's sub-directories.

Also for a partition you can use something like df --inodes /home. Read this answer for more information.


15.10, Broadcom BCM4352 Jaybird X2 headset pairing problem

Turns out to be a bug in pulseaudio, not bluez.

The accepted answer on this post solved the problem for me:
PulseAudio can not load bluetooth module 15.10/16.04/16.10

It feels like a bit of a hack workaround, but it works.


(Quite Old No longer relevant) 14.04 : How to disable discrete graphics card

I used powertop. I have Ubuntu 14.04 installed on a Dell Inspiron 15R 5523 laptop with AMD/Intel Hybrid graphics. I AM NOT SURE if this will work for you, but I don't think it will break the system(because powertop is pretty reliable) so nothing wrong in trying. In powertop(check out its website for downloads and usage procedures), after changing all the 'bad' parameters to 'good' in the "Tunables" tab, suddenly my fan speed decreased and so did the laptop temperature.

I have not installed any drivers(and the Catalyst Control Center) for the discrete ATI Raedon card, just the Intel Open Source drivers form the Intel website.

Since settings are not preserved on reboot, after bit experimentation, I found that changing 'bad' parameters to 'good' of the "Runtime PM for PCI Device Advanced Micro Devices, Inc. [AMD/ATI] Mars [Radeon HD 8730M]" and of each of "Enable SATA link power Management for host0" Enable SATA link power Management for host1" Enable SATA link power Management for host2" Enable SATA link power Management for host3" Enable SATA link power Management for host4" and "Enable SATA link power Management for host5". I tried to copy their echo commands onto the /etc/rc.local file to auto-execute them each time the system booted up, but it did not work (automatically 'bad' for the "...host0/1/2/3/4/5" in the Tunables tab of powertop).

I even went to the extent of checking if it really was reverted to the 'auto'(default) value in the source file...and I found, yes, it was.
So, basically, this might work for a few people. Give it a try. If anyone figures out(with testing) how to keep it permanent(i.e. persistent after reboot). Currently I am not rebooting my laptop, just closing my lid to prevent doing this every damn time I reboot.

Give it a try and do comment/like if it works for you. Just want to know if this is a viable solution for a general installation in any laptop with Intel/AMD Hybrid graphics.


Software Center, appears briefly then disappears. New 16.04 installation

I was able to solve this by doing

sudo apt-get install software-center

(I initially tried sudo-apt autoremove software-center but it said not found)

What I then found was that I actually had two software centers, my original 'Software Center' that still doesn't work and then a new program 'Ubuntu Software Center' that does work.


How to recover /boot overwritten by identical /boot?

I hope this helps anyone that may have come across the same situation. It turns out, after 8+ hours of trying to figure this out, I get some rest and come back and solve it in under 30 minutes. It turns out I was hot on the tail of the answer every time.

From the host system, when I mount the encrypted disk for a backup, I do the following

sudo cryptsetup luksOpen /dev/sdd5 kub # a sneaky kind of wrong

It turns out, the name "kub" screws up everything. What name should it be? Why did I always use kub? The name should be what the encrypted disk name is in /etc/crypttab. I always used "kub" because it always worked for what I needed but it turns out, not when using update-initramfs on a chrooted system and trying to update-grub on it. The correct name in my /etc/crypttab turned out to be sdc5_crypt so

sudo cryptsetup luksOpen /dev/sdd5 sdc5_crypt # wow, the answer

Then after unlocking the disk correctly and making the relevant mounts (/dev/ /sys/ /run/ /dev/pts/ /proc/) I ran the following

sudo update-initramfs -k all -c
sudo update-grub

And the system became bootable. Wow "kub" is like calling someone named Jack, Bobby and Jack never bothers to correct you so you think you're right but it turns out Jack hates you for it.


Dropbox not working after installation in ubuntu 16.04.2 lts

Update: Start dropbox with dropbox start -i

Edit from the man page:

dropbox start [-i]
    Starts the dropbox daemon, dropboxd. If dropboxd is already running, this will do nothing.

    options:

    -i --install auto install dropboxd if not available on the system


Problem using mobile broadband and wire network at the same time

You are right in that they are two separate networks. The way OS's handle this is through prioritising to ensure that one is always used unless unavailable, at which time the OS will use the other one.

You can understand why they can't both be used as one network if you try and imagine where packets should route - the TCP/IP stack on a port knows that if it receives a packet for an established session it should match up with one sent out that port earlier. If it can't match it, the only sensible option is to drop the packet.

You can use them separately to route, though - so you could set them up so the wired network routes all packets to the Internet and the wireless one routes all packets to local machines - but the destination networks must be exclusive to each other.

Wired networks almost always get highest priority, as they are usually fastest and most reliable - and it sounds like your system is working correctly.


LibreOfficeCalc window is shrunk to a line and is unclickable

Usually, one still sees the very small window. However, you apparently don't.
Try switching to the window with Alt+Tab. Then press Alt+Space, which should display the window menu. You can select "Resize", and then use the arrow keys to resize the window. Press Enter when done resizing.
In cases where you still can see the extremely small window, you should be able to locate the mouse pointer on one of the corners in such a way that the cursor changes shape to indicate you can resize: ⇲. Drag, and you see you can stretch the window to a decent size.


Cannot add user because /etc/group.5: lock file already used

You did something, as root, that created a lock file, in order to gain exclusive access, but whatever it was didn't release the lock, either because it's still running or it aborted.

Check to see if it's still open:

sudo lsof /etc/group.5

If so, deal with the process that has it open.

If not, simply rm /etc/group.5

In either case, check /etc/group - your last changes may have been lost.


INTEL CPU turbo boost pegged at its clock-speed sometimes

Looking at specs:
http://www.cpu-world.com/CPUs/Xeon/Intel-Xeon%20E5-2620%20v2.html
Turbo is:
2.6 all cores in action
2.4 if one core
2.2 nominal, same as TSC
Monitoring CPU works by sampling counters, the shortest is the window, the more accurate are the values. This goes so fast that at time of reading, the tool may report last state. Thus, during reading, you can provide load to CPUs on 1, 2, ..., all cores and compare with idle state (no desktop)
You will have to pine one of your benchmark software to the selected core : recommend 'cpuset' and linpack.c

Perhaps you may also try my code. It has been however programmed with a Core i7 but using the cpuset command you may pined it to a Xeon package ID
Once started it will show you CPUs cycles through the fixed performance counters, and by the way frequencies, ratios (including Turbo), C-states %, temperatures and kernel task monitoring beside each Core threads. All of that with graphics
You can check which applications is guilty to burns your CPUs, or idle stage.
Using [+] [-] buttons, you can decrease, increase, sleep time between each counters reading loop, down to 50000 usecs
Source code is available at http://code.google.com/p/xfreq/
Hope it will help you to investigate your issue


How edit or correct a Bazaar commit comment?

bzr uncommit will undo the commit but keep the files in the same state, so you can then make a new commit with the correct message.


Ok, I got my partition back!

For those who may come here with a similar problem, I booted with a liveCd, installed testdisk and it did the trick, it found and restored my partition!

Now it's all back and I didn't have to reinstall ubuntu.


"misaligned register" showing while syetem is on suspend mode

According to https://bugs.freedesktop.org/show_bug.cgi?id=47182 these miss aligned accesses should be generally harmless, so do not worry.

Here is more technical info about what is aligned / miss aligned access: http://www.ibm.com/developerworks/library/pa-dalign/

To make things even more complicated some nvidia graphic cards (for example C51) uses non aligned addresses (most probably as a software workaround to some hardware issue).

Nouveau driver reads constants/script from video bios to perform suspend and resume and most probably some of these tells it to perform non aligned access, which is skipped.

You do not specify which model you have, but I would tend to believe, that either bios script has a bug or it is a workaround for some hardware issue and current suspend implementation of nouveau drivers is not as efficient as it could possibly be.

Anyway upgrading your video bios may solve the problem.


Ubuntu Server 12.04 on a ssd & data on RAID HDD

okay, i figured it out. For some reason it was writing the EFI boot partition automatically to the raid array. So I just mounted an Gig partition on the ssd as EFI and it fixed everything.


Better application switcher for Budgie desktop

Please note that the Alt+Tab behaviour is built into budgie-wm itself. I intend to add graphical switching in Budgie 11, which is currently in active development.

Budgie 12 will see deeper window management changes as we reduce our dependency on GNOME.


In the terminal try

unity --reset

and reboot to see the changes.

As far as the mentioned bug is concerned ,it was affecting the  unity-lens-applications-5.8.0-0ubuntu1 (precise) package and current version stands at unity-lens-applications (5.12.0-0ubuntu1) .

It also states that fix is released so please update your system , if already up-to-date than ignore this.


Could you check the output of the command ls -alh in both the directories ie /home/pi and /media/pi.
That command will basically show the owner of the file (along with other info) that you are trying to move/copy. Also since you are already in /home/pi directory, perhaps just try to use this command (wondering if double quotes was leading to an issue!):

mv vortexcomputers.py /media/pi/0ABE2571BE25568B/

Also, try creating a test file in /media/pi directory by using this command : touch test_file.txt

You should then be able to list the files to check if the file got created successfully.

Let me know how it goes.


You can use "mount --bind" to meet your requirements.
for example:

sudo mkdir /media/bin
sudo mount --bind /bin /media/bin

In your case:

sudo mkdir /backup
sudo mount --bind /home /backup


Apparently, Linux tries with the FS type it has identified and it fails.  First let's see what Linux thinks it is:

blkid /dev/sdb2

So, if it says `vfat', then try NTFS:

mount -t ntfs /dev/sdb2 /path/to/mount/point

And if it says 'ntfs', try VFAT:

mount -t vfat /dev/sdb2 /path/to/mount/point


Painlessly updating from Ubuntu 10.04 to 11.04 or 11.x

Thanks to Oli for pointing out the updating issue, but as for Gnome I think I'll give this (http://pleasanthacking.com/2012/01/02/making-ubuntu-11-10-and-12-04-behave-like-10-04/) a shot.

#gnome
sudo apt-get install gnome-panel gnome-session-fallback gnome-tweak-tool

#ported indicator
sudo add-apt-repository ppa:jconti/gnome3
sudo apt-get update
sudo apt-get install indicator-applet indicator-applet-complete indicator-applet-session indicator-applet-appmenu

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

#radiance 10.04
wget http://light-themes-lucid.googlecode.com/files/Radiance-10.04a-gtk3-gtk2.tgz
sudo tar -xzf Radiance-10.04a-gtk3-gtk2.tgz -C /usr/share/themes

Hopefully, it'll do the trick.


I would find an Ethernet cable, plug it and follow this guide to get wifi working: Wifi is not working on my Dell E6400

If finding an Ethernet is an issue for you, you can try to download those .deb files, copy them on a flash drive and install them.


Lubuntu in VirtualBox- Minecraft running excessively slow

There are various things that can affect the performance:

Available RAM: 2GiB seems little, but is certainly doable when using the Optifine mod.
Video memory: Apart from computation memory, games also need lots of video memory to store vertex buffers etc. You should be able to set the amount of video memory in the VM's settings. Also turn on 3D hardware acceleration, if available.
Rendering method: Minecraft uses two different rendering methods: Vertex arrays, which is a bit slower, but saves on video memory, and Vertex Buffer Objects, which is faster but uses more video memory. This can be changed in Minecrafts settings at Video settings→Use VBOs.  Here you can try which works better.
Network performance: As you say it is particularly slow on multiplayer servers, this could be a network-related issue. VirtualBox uses a NAT by default, which manipulates each packet. If you change that to 'bridged adapter', the VM can directly communicate with the network adapter, which might be faster. But you may lose network connection on your host while the VM claims the adapter.
Virtual Machine: VM's just are slower than natively running systems.

To sum it all up, I'd say that you won't ever receive a decent FPS with that configuration; VM's weren't made for gaming. Best try running Minecraft on the host system. For Windows 10, there is a native client, which I heard to be very fast.


How do I install Ubuntu onto an unformatted HDD using a Mac and a SATA-to-USB adapter without messing with the Mac's OS?

No. The Mac hardware's version of Linux is significantly different, and therefore I would instead recommend having another go at installing it on the Dell:

Redownload the Ubuntu version you wish to install

Download and install Microsoft's MD5 checker http://www.microsoft.com/en-us/download/details.aspx?id=11533

Use that to compare the checksum of the downloaded file to the checksum published at http://mirror.anl.gov/pub/ubuntu-iso/DVDs/ubuntu/saucy/release/  to make sure the ISO you downloaded arrived intact.

FOR USB
Reformat the flash drive
Follow the directions at http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows to download and install Pendrivelinux onto your Windows machine, and recreate your Linux booting flashdrive.
If rebooting from the LiveUSB fails, then make sure booting from USB is enabled in the Dell BIOS.
Check back here with the text of any failure messages and the model and configuration of your Dell lappie.

FOR DVD
Make sure to use a DVD-R or DVD+R not a DVD-RW or DVD+RW disc
Burn the optical disc with the Ubuntu ISO in mastering mode; don't leave it open to add files to later for that makes the disc unbootable.


How to install senaite.lims on Ubuntu 18.04?

We updated the installation instructions on the official site: https://www.senaite.com/docs/installation

If you still encounter problems, you can also try out the prebuild Docker containers: https://github.com/senaite/senaite.docker/


It's unlikely that the any other wireless network adapter interferes with the external TP-Link adapter.

Even though this answers your literal question I don't think that it's really useful to you. If you'd like to know how to get either of the network adapters to work please open a new question and ask for it explicitly. It helps if you include the output of the network diagnostics in your question.


How to disable the libreoffice macro feature, system-wide?

I don't really understand what this excerpt from their site says but, in summary, it says that's not possible and can only be done per document.

  Options to disable macros are meant in LibreOffice for user's security, not for restricting what the user can do. It that regards, the macros in documents may be dangerous, while the macros in local libraries are under full control of the user (or admin), and thus are safe - which implies that from user's security point of view, there's no reason to disable them.

And it goes on to say:

  If you need means to disable all macros, you are welcome to come with an enhancement request, and even participate in the feature implementation (since I doubt that developers would be interested in the implementation: those who need something are most likely to have motivation).

Please look at the thread here.


Why doesn't (Xine, VLC, etc) work on MythTV 0.22 and later?

Recent versions of MythTV default to using Storage Groups. External players do not work when using Storage Groups. See MythVideo - Disadvantages


Stop Nautilus managing my desktop (XFCE Desktop)

Try running this command in Terminal:

gsettings set org.gnome.desktop.background show-desktop-icons false


Is it possible to create Hotspot (Infrastructure) from wireless?

I had this problem at my house.  I could not get the ps3 to connect to the hotspot using Ubuntu.  Instead, I dragged my laptop down and connected it to the ps3 and shared my wifi connection to the ps3 over ethernet.  Would it be possible to move your laptop down by the ps3 when you want to play online?

Barring that, I would ask if you have tried to find your wireless internet connection manually (not Easy mode)?  I have found that Manual will still find your internet if you manually type in all of your information yourself.  If you need help with putting those settings in the ps3, I would be more than willing to help you over e-mail or on a ps3 forum of your choice.


Thunderbirds profili.ini is empty. How to rewrite it?

This is my working profiles.ini

[General]
StartWithLastProfile=1

[Profile0]
Name=default
IsRelative=1
Path=zs6nqxw4.default
Default=1

You will have to change the line with Path= to the correct profile, normally the profile is located in the same directory (~/.thunderbird). If you use a profile in a different folder, I guess you have to enter the full path to the profile you use.

You can edit your profiles.ini-file easily, you don't need sudo as the file is in your home-folder, just double-click  the file and it will be opened in your text-editor, then paste my example into the file and edit the line with Path=, save the file and you should be ready to go.


Go to the update icon ( or type 'update' in tge search window. If that doesn't work type system recovery in the search tab and see if that helps. Sometimes a hardware issue may be to blame if you have Ububuntu solely on the PC you are using.


When in doubt, check the manpage.  From the command man ps:

PROCESS STATE CODES
       Here are the different values that the s, stat and state output
       specifiers (header "STAT" or "S") will display to describe the state of
       a process:

               D    uninterruptible sleep (usually IO)
               R    running or runnable (on run queue)
               S    interruptible sleep (waiting for an event to complete)
               T    stopped by job control signal
               t    stopped by debugger during the tracing
               W    paging (not valid since the 2.6.xx kernel)
               X    dead (should never be seen)
               Z    defunct ("zombie") process, terminated but not reaped by
                    its parent

       For BSD formats and when the stat keyword is used, additional
       characters may be displayed:

               <    high-priority (not nice to other users)
               N    low-priority (nice to other users)
               L    has pages locked into memory (for real-time and custom IO)
               s    is a session leader
               l    is multi-threaded (using CLONE_THREAD, like NPTL pthreads
                    do)
               +    is in the foreground process group

Hope this helps!


Well finally solved, I needed to do the following

gnome-panel --replace
unity-2d-launcher &
Save the session and logout


How to reduce the size of initrd.img on Ubuntu 13.04

In /etc/initramfs-tools/initramfs.conf, set MODULES=dep instead of MODULES=most. The initrd build process will work out what modules you need rather than including a wide variety of things. Note, however, that this makes your boot process very dependent on your hardware and if you need to use a different set of hardware (in particular, drives) the initrd may not work.

Additionally you can choose a better compression algorithm, the default should still be gzip, but xz (or lzma2) is also available via COMPRESS=xz. Of course you need to have xz-utils installed. The initial compression takes longer, but decompression during boot shouldn't take much longer. Both options together may also reduce your boot time a little bit.

After setting this, run sudo update-initramfs -u -k all to have it take effect.


Give execute permission to your script:

chmod +x /path/to/yourscript.sh

And to run your script:

/path/to/yourscript.sh

Since . refers to the current directory: if yourscript.sh is in the current directory, you can simplify this to:

./yourscript.sh


Does the Boot Repair output contain private information?

TL;DR: you're safe enough

Boot Repair report that you have linked there only lists the layout of your hard drive and bootloader settings. This is quite low level information that reveals nothing useful about you as far as crackers are concerned.

The only tiny bit is on line 997, where it shows /home/adam. Users are usually assigned home folders same as their username, so this reveals your username. However, as far as an attacker is concerned, this is still nothing. Suppose you have ssh enabled or telnet enabled. Now, there is a possibility of bruteforce attack, with tools such as hydra, which basically go through multiple combinations of passwords. If  you have strong password, it will take forever for an attacker to crack it. In addition, there is no IP address of your system. A random guy online may figure out your username, but won't know where you are. Now, if there is a man-in-the-middle, then someone is intentionally would be looking at your packets, could potentially intercept this info. But in such case, you'd have a drone flying over your house or a van parked outside. You'd have to be really VIP target for this to happen. Then attacker also would need to go through your router; I suggest you have an admin password there - I've known a couple cases here on askubuntu where router settings were altered.

If you are still concerned about the bruteforce attack, do this:

Open /etc/security/limits.conf. here's how mine looks at the end :

#<domain>      <type>  <item>         <value>
#

#*               soft    core            0
#root            hard    core            100000
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#ftp             -       chroot          /ftp
#@student        -       maxlogins       4

xieerqi         hard    maxlogins       6
# End of file

See line xieerqi ? That's my login name. This line limits amount of logins for my username on my computer, i.e, max amount of sessions open.

Now look into /etc/login.defs . Again, here is mine :

#
# Max number of login retries if password is bad. This will most likely be
# overriden by PAM, since the default pam_unix module has it's own built
# in of 3 retries. However, this is a safe fallback in case you are using
# an authentication module that does not enforce PAM_MAXTRIES.
#
LOGIN_RETRIES           3

To prevent an attacker going forever and ever guessing passwords, login page will give 3 strikes, and then terminate the connection.

Note: to open these files for writing, you'd need sudo, like so sudo vi /etc/security/limits.conf

For more info you can also ask this question on security.stackexchange.com . Those guys know more about security than we do here


How do I get a list of installed files from a package?

To see all the files the package installed onto your system, do this:

dpkg-query -L <package_name>

To see the files a .deb file will install

dpkg-deb -c <package_name.deb>

To see the files contained in a package NOT installed, do this once (if you haven't installed apt-file already:

sudo apt-get install apt-file
sudo apt-file update

then

apt-file list <package_name>

See this question for more


Trouble on installing, getopt file missing

While Getopt is the part of perl core, Getopt::ArgvFile is not. You should install Getopt::ArgvFile separately.

Run

sudo apt install libgetopt-argvfile-perl


Auto mounting vmware virtual disk on ubuntu startup

"For performance reasons" -- then you don't want to be mounting it via vmware-mount.  Instead, transfer the files out of the vmware image file to /home.


error installing arduino IDE on ubuntu 11.10

cd /home/virtualtouch/arduino-1.0.1/lib/
mv librxtxSerial.so librxtxSerial32.so


Applications can no longer access your online account

Those are two separate issues. If you have automatic login enabled, you need to login to Gmail in Settings. If you don't have auto login, your system Gmail session expired and you still need to login in Settings. The reboot is not connected to this at all. Make sure your battery is charged and that the power button isn't stuck down.


Can i install ubuntu on a separate ssd and boot without a prompt

I think you use an external ssd, isn't?
You could change the bootorder in de bios and set the external disk before the internal disk.

I think this will help you and  u can use encryption enabled, because on that moment the system is allready using the disk


How to ask curtin to use GPT instead of MBR with MAAS?

Curtin tries to choose the most appropriate partition table type for a given node:

For systems that are booting in BIOS mode, it defaults to an MBR-stored DOS partition table
For systems that are booting in UEFI mode (including ARMv8-based UEFI-enabled systems like Cavium Thunder and APM X-Gene) it defaults to a GPT partition table

Therefore, the easiest way to get a GPT partition table is to configure the node to boot in UEFI mode, which is supported starting with MAAS 1.5.

There are two additional ways to get curtin to create GPT partitions:

You can modify the curtin configuration provided by MAAS to curtin in /etc/maas/preseeds/curtin_userdata to include:

block-meta:
    format: gpt

If you have up to 4 partitions, you can easily convert DOS partition tables to GPT partitions post-installation. Curtin makes an effort to leave enough space in the partitioning to allow the conversion to successfully happen, and from r224 onwards it ensures it. Converting can be done with:

sgdisk --mbrtogpt <device>


How do I enable DNS caching in the NetworkManager-controlled dnsmasq?

In Ubuntu 12.10 you can enable the cache of the NetworkManager-controlled dnsmasq instance by putting the line

cache-size=1000

(with your preferred number of names instead of 1000) in a new file in /etc/NetworkManager/dnsmasq.d/.  To activate this change you must then do

sudo stop network-manager
sudo killall dnsmasq
sudo start network-manager

or reboot.


As far as your question goes "Can I install Ubuntu on second hard drive D?" the answer is simply YES.

Before jumping to actually dual-booting Ubuntu along with Windows, there are few things you should figure out otherwise it might be quite hectic to fix issues and in worst case you need to format your entire HDD

Few common thing you could look out for are:

What is your system specs
Whether your system uses BIOS or UEFI
Whether you require to move data between two OS frequently
Whether you wish to change Linux flavor in future

The reason you need to figure these questions out because all of them pose different issue when you try to dual-boot. I would now explain the above points and what you could do for them.

1. System Specs

The reason this is important is if your system is old and have poor specification then dual booting might only reduce your systems performance. Both Linux and Windows use chunks of the hard disk drive to improve performance while the computer is running. However, by installing a second (or third) operating system on the drive, you reduce the amount of space available for this.

Dual boot installation just places the other OS on free space on your hard disk, so it will use hard disk space, but since in a dual boot only one OS will run at any given time, then no memory or CPU is being used by the other OS, hence you shouldn't notice much difference in performance.

2. BIOS or UEFI

UEFI and BIOS are two different types of motherboard firmware. The reason to figure out whether your system got BIOS or UEFI is to manage to amount of partitions you could have in your system. Master Boot Record (MBR) disks use the standard BIOS partition table. GUID Partition Table (GPT) disks use Unified Extensible Firmware Interface (UEFI). One advantage of GPT disks is that you can have more than four partitions on each disk. To learn more UEFI and BIOS you could read this article

If you want to have more than 4 partitions on your system you could try to convert  MBR To GPT, if its not in GPT by default. You could read this link to convert MBR to GPT, make sure to have backup of your data as you need to clean your entire HDD for this.

3. Frequent data transfer between OS

This is an important aspect to consider, although you could transfer the data between two OS either by external HDD, flash drive or by copying the files into other OS partition, there is no issue using the latter method however there is a potential chance to corrupt the NTFS when writing to it from Linux.

Therefore most of the time the Linux will only mount the Windows drive as read only. To avoid this problem you could create a common partition which can be accessed by both OS for transferring data, therefore you can easily transfer files among 2 OS just by copying the files to that partition.

 DUAL BOOTING UBUNTU ALONG WINDOWS

As I saw you had issues recognizing  your D drive. To ease the process you could first delete your D drive from Windows and then when you access it from Ubuntu installation it will be displayed as freespace. ( You can use this article to know how to delete a partition ).

You might see other partition apart from free space those partitions are used by Windows, it better not to concern yourself with those partitions and make new partitions from free space for your Ubuntu. Ubuntu does not use alphabets to identify a partition like Windows instead it use /dev/sdxx ( to learn more about them you could use this ).

Linux file system is different from Windows, you need to make a partition with mount point set as / to install OS to that partition, you could also make another partition your home directory by specifying /home as mount point for that partition. This helps if you wish to change the linux in future as your files will be on separate partition.

I would not argue whether it is necessary to make a swap partition for Ubuntu or not, that is for you to decide.
You could use this page to understand how to partition while installing Ubuntu

Finally, when you are done with installation you should see GRUB menu pop-up while booting asking you to choose the OS to load into.

P.S.

While dual-booting I do not recommend hibernating the OS

In the event that you mount (say, in Linux) a Windows partition while Windows is hibernated and you are unlucky enough that when you're done with Linux and attempt to reboot into Windows, Windows does resume from hibernation (instead of erroring out, throwing away hibernation data and attempting a normal boot), you will most likely suffer catastrophic data loss to all Windows partitions as all filesystem-related structures will be out-of-sync between what Windows has loaded in the memory and what's actually written on the disk.


Error installing virtualbox-dkms on Ubuntu 20

That is a bug with the 5.8 kernel and Virtualbox version 6.1.10  https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1891916
However, you can install Virtualbox version 6.1.16 from Virtualbox themselves that does work with kernel 5.8 and will stay updated.  https://www.virtualbox.org/wiki/Linux_Downloads
From the instructions:
Add the Repo:
echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list

Install the key:
wget https://www.virtualbox.org/download/oracle_vbox_2016.asc
sudo apt-key add oracle_vbox_2016.asc

Update your repos:
sudo apt update

Install Virtualbox 6.1
sudo apt install virtualbox-6.1

Hope this helps!


pHash looks like a dead project and has not been updated since 2013.

It references avcodec_alloc_frame which for years has been deprecated for av_frame_alloc, so it is likely incompatible with the current FFmpeg API.

You'll either have to use an ancient FFmpeg version (not recommended), or update the pHash source to use the current FFmpeg libraries properly.

If you do not need support for perceptual video hashes, then configure pHash with --enable-video-hash=no and it will omit the FFmpeg dependency.

If you're looking for audio fingerprint functionality, I recommend Chromaprint instead since FFmpeg supports it.


Problem unistalling ubuntu 13.10 from bootloader(windows 8)

You can use EasyBcd to remove the Ubuntu Entry.

There's a Payware version and a Freware one.  --- http://neosmart.net/EasyBCD/#comparison

http://neosmart.net/EasyBCD/


What are major differences between actual Ubuntu and Ubuntu Kylin?

Ubuntu Kylin is an official flavour of Ubuntu. It is a free PC operating system created for China and complies with the Chinese Government procurement regulations. It includes all the features you’ve come to expect from Ubuntu, alongside essential Chinese software and apps. The interface has been designed specifically to put Chinese users first — and with new support for touch screens and HiDPI monitors, it runs beautifully on all kinds of hardware.

http://www.ubuntu.com/desktop/ubuntu-kylin


Flash Displays Black Screen No Video YouTube Firefox 11

It looks like you have installed 2 different flash players, they probably overwrite some files from one another. The sane thing to do is uninstall all 3 and reinstall Adobe Flash again. Workarounds like manually downloading files from the internet can work, but the update system will not be aware of it and can broke it again when there is an update available.

You can do it either from the Software Centre, or using the command line:

sudo apt-get remove flashplugin-installer libswfdec-0.8-0 swfdec-mozilla

to remove then and:

sudo apt-get install flashplugin-installer

To download and install again the official (Adobe) Flash player.


Try editing your /etc/fstab file to automatically mount the ESP. It will look something like this:

UUID=E231-242F            /boot/efi            vfat    utf8,fmask=0133  0  1

You'll need to change the UUID value from E231-242F to whatever it is on your system. Type sudo blkid | grep fat to see a list of possibilities. With any luck there'll be just one, but you may need to check two or more to figure out the right one. (You can mount a partition temporarily with the mount command, as in mount /dev/sda1 /mnt, then check its contents and unmount it with umount /mnt -- note there's just one n in umount; that's not a typo.)

There are numerous variants on the options (utf8,fmask=0133 in this example). Don't worry about them too much, although some have security implications.


How to access apache files in windows 10 bash

I could tell you (I know how to do what you ask), but then it would cause breakage.

See https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/

  DO NOT, under ANY circumstances, create and/or modify Linux files
  using Windows apps, tools, scripts, consoles, etc. Also note: Opening
  files using some Windows tools may read-lock the opened files and/or
  folders, preventing updates to file contents and/or metadata,
  essentially resulting in corrupted files/folders.

  Creating/changing Linux files from Windows will likely result in data
  corruption and/or damage your Linux environment requiring you to
  uninstall & reinstall your distro!

Note the warnings on that page in BIG RED LETTERS.

Stop while you still can =)

You edit the files from within the bash environment , so

sudo nano /var/www/html/index.html

or what not


Easiest way to accomplish dual boot goal

Install windows first, it will over write GRUB otherwise.
Install 12.04 from within windows ( not within, from within). Use GPARTED to sort your final partitions sizes, file systems and mount points ( e.g. /Home; / ).
If you still want to run BT5r2 you can make a partition for it at this point or later.


Where can I find ubuntu-10.04.1-netbook-i386.iso?

Unfortunately, there is no netbook iso for 10.04.1. For some reason, unlike the desktop and server editions, Ubuntu Netbook 10.04 is not considered a Long Term Support (LTS) release. Though, all hope is not lost. If you install from the original ubuntu-10.04-netbook-i386.iso and apply all the updates, you will effectively have Ubuntu Netbook 10.04.1. If you look at 10.04.1's changelog, it includes many netbook fixes even though it is not a LTS.


Go into your Power Settings
Look for When lid is closed, change that to Do Nothing

Hope this helps!


SSSD + Encrypted /home, no longer automounts at login

Turns out the answer was in the documentation! I just needed to first figure out what the problem was, and then go back checking each element of the setup:

http://manpages.ubuntu.com/manpages/natty/man8/pam_sss.8.html

Adding the option "forward_pass" to pam_sss.so tells the SSSD module to put the entered passphrase on the stack, so that other modules (i.e. pam_ecryptfs.so) can use the information.

So my ecryptfs + SSSD enabled /etc/pam.d/common-auth file looks like this:

auth    [success=3 default=ignore]  pam_sss.so forward_pass
auth    [success=2 default=ignore]  pam_unix.so nullok_secure try_first_pass
auth    [success=1 default=ignore]  pam_winbind.so krb5_auth krb5_ccache_type=FILE cached_login try_first_pass

auth    requisite   pam_deny.so
auth    required    pam_permit.so
auth    optional    pam_ecryptfs.so unwrap

Note: having the word "debug" at the end of the pam_ecryptfs.so line also broke things!

I've certainly learnt a lot about PAM, ecryptfs and gnome-keyring today! Hope this helps people in future - and I may even submit a feature request to get it added as a default setting.


Strange behavior of flash in Google Chrome

The problem is most likely caused by the flash plugin crashing. Chrome is protected through separation from crashing itself, but the effect is visible the way you described. Since Flash player is proprietary software, there is no way to directly fix the problem. Although there are numerous workarounds floating around the internet. None of these workarounds are complete fixes and only fix specific issues.

More generic solution is to utilize the HTML5 feature of chrome. Various websites allow one to enable the HTML5 features. Youtube can be HTML5 enabled here: http://youtube.com/html5

There are also HTML5 enabling extensions for chrome that convert embedded videos to HTML5 elements where applicable and so reduce the amount of flash elements in websites.


You have several options:

Re-install Ubuntu in BIOS/CSM/legacy mode -- This is almost certainly possible, but will require preparing your boot medium correctly and/or controlling your computer's CSM, which can be a confusing challenge. See this page of mine for more on the CSM.
Install a BIOS-mode boot loader for Linux -- You can install a BIOS-mode version of GRUB 2 (or some other BIOS-mode boot loader) from your current installation. This should get things working in BIOS mode. Installing the grub-pc package and then running sudo grub-install /dev/sda will probably do the trick; however, a lot depends on configuration details, such as how many disks you've got and how they're partitioned.
Convert Windows to boot in EFI mode -- This can be done, but is a bit of a pain. See this page for one procedure. I'm vaguely familiar with the gptgen utility to which you refer, but I'm much more familiar with GPT fdisk (gdisk), which can also do the job, since I wrote GPT fdisk. Note that converting from MBR to GPT is only part of the job; the more important task is installing an EFI-mode boot loader for Windows.
Use rEFInd -- rEFInd can switch from its native EFI-mode boot to a BIOS-mode boot on most (but not all) EFIs. This feature is disabled by default on UEFI-based PCs, though, because it's more likely to cause problems than solve them on most systems. In your case, though, it may be a desirable option. See this question and my answer to it for details on this approach.
Re-install Windows in EFI mode -- This option may be a reasonable one, particularly if you've accidentally wiped out your Windows installation when you installed Ubuntu.

It's hard for me to say which approach is best for you because I have inadequate information. Critically, I don't know how your disk is partitioned. Some people who find themselves in your situation discover, to their horror, that they've accidentally wiped out their Windows installations. If you're in this situation, re-installing Windows in EFI mode is likely the easiest solution -- but you may need to take extreme recovery steps if you had important personal data on the disk. If you've already done an MBR-to-GPT conversion but have left the Windows partitions otherwise intact, then converting Windows to boot in EFI mode is almost certainly the best approach. If you have two disks (a GPT disk for Ubuntu and an MBR disk for Windows), then using rEFInd to boot Windows in BIOS mode or installing a BIOS-mode boot loader for Linux are likely the best options. If you've got one MBR disk that's still in MBR mode, then installing a BIOS-mode boot loader for Linux is likely the best approach. (Note that re-installing Ubuntu in BIOS mode is simply an "overkill" way to install a BIOS-mode boot loader for Linux. Despite being overkill, it may be easier than doing a technically simpler installation of the BIOS-mode boot loader only, since the installer is designed for newbies to use whereas manual GRUB installation is not.)


Apparently it was not necessarily a Firefox issue. I updated some other packages and the problem went away after the reboot.  I can't say for sure what the issue was, but it's solved now.


remove youradexchange malware from chrome

I have exactly the same issue.

I manage to remove the malware extension from my ubuntu machine.

The extension is saved under :

/home/user/.config/chromium/Default/Extensions/gpomcmpdonjdffeabllcklpbnfdknnko

But it could be saved under another folder name. You can find it searching for this file :

find -name gui_web.js

Just delete this folder, and it should be fixed.

the content of this file is explicit :

var app  = document.createElement('script');
app.type = 'text/javascript';
app.src  = '//www.web-cdn.net/cdn/web.js';
document.getElementsByTagName("head")[0].appendChild(app);

It downloads this script web.js which content is :

var app  = document.createElement('script');
app.type = 'text/javascript';
app.src  = '//www.my-app-analytics.com/app-ga.php';
document.getElementsByTagName("head")[0].appendChild(app);


How do I use a specific AMI for juju instances?

This used to be supported in ~/.juju/environments.yaml as default-image-id in older versions of Juju but is currently unimplemented in Juju 2.x.

According to this thread it just needs to be implemented:

https://lists.ubuntu.com/archives/juju/2013-April/002389.html


Reinstall xserver-xorg-xinput-all or reconfigure libpam-runtime do nothing in my case. And worst yet, my keyboard is also frozen along with the touchpad. My only option is the power button hard shutdown and it is a pain.
So I put these lines at the BEGINNING of /etc/acpi/powerbtn.sh:

/sbin/shutdown -r now "Soft restart in case every thing failed"
exit

and when everything freeze, I simply push the power button.

Hope this help :-)


How can I disable keyboard layout switching with both shift keys?

You were probably hit by bug #1762952. One way to fix it:

Open /etc/default/keyboard for editing and replace the line starting with

XKBOPTIONS

with

XKBOPTIONS=""

Run this command to disable it from the desktop settings as well:

gsettings reset org.gnome.desktop.input-sources xkb-options


Installing Unity 2D might work better on your hardware, it's the supported fallback desktop.


How can I reduce boot up time to display xsession as soon as possible?

You can remove some of the daemons that are unnecessary. Your desktop environment might allow an easy way to configure this. For example, in KDE there is "services configuration" that lists all daemons etc., and allows you to disable specific ones.


libqt5webchannel.so.5 missing or not found in Ubuntu 16.04

(Run into a similar problem with https://github.com/GPUOpen-Tools/CodeXL)

Solution :

sudo apt install libqt5webchannel5-dev

Explication

The good habit is to look onto https://packages.ubuntu.com/zesty/libqt5webchannel5-dev site with the missing file/library name and change "package names" into "package contents" at the bar search.


I can't get Ubuntu to connect to wireless

Try to install the proprietary Broadcom-STA-Wireless-Driver. Go to the dash, search for "restricted drivers" and install it.


xdg-desktop-portal always crashes at startup in Ubuntu 19.10

Yes, to fix the issue simply run the following command in Terminal:

$ sudo apt upgrade xdg-desktop-portal


How would I get an update mirror to use its mirror folder for an update

I don't quite get how you intend to install the ftp server, but sources.list does support the file:// 'protocol'.

To add a deb package to your sources.list file:

deb file:///path/to/directory /


is this installed
sudo apt-get install libmtp
are you connecting with USB
should be able to find with
mtp-detect
and
mtp-folders
Also, there are a few really good file browsers for the command line which you might find useful ...  like GNU Midnight Commander


Firefox laggy and getting me signed out from youtube everytime I restart it

From the comments...

We upgraded the Nvidia driver from 435 to 440.64 and the system is working fine now.


Try using this for the command

xfce4-session-logout -s

man xfce4-session-logout

  The  xfce4-session-logout command allows you to programmatically
  logout
         from your Xfce session. It requests the session manager to display  the
         logout  confirmation  screen,  or,  if  given  one  of the command-line
         options below, causes the session manager to take the requested  action
         immediately.

  --suspend
                Suspend without displaying the logout dialog


Completely wipe and merge all partitions and clean install Ubuntu

This is doable. Just do as I stated:

1) Boot into a live session of ubuntu, and select to try it out

2) Open up gparted and delete every partition (You may have to unmount/swapoff some of them)

3) Run the ubuntu installer, and select to use the whole disk when it asks.

Make sure to switch your boot settings in your bios if you were using legacy boot and are now using uefi, or vice versa (it might say something like "Invalid partition table" if you don't).


DPKG: can't upgrade due to syntax error in trigger file

One option: I renamed the trigger file in question (so it wouldn't be found by dpkg). I then re-ran upgrade, auto-remove etc.

This seems to have worked, in the sense that I could proceed with upgrades. However I would still like to know what my trigger file is supposed to look like and how/if I can restore it in some ways...


RDP program with multi monitor support windows -> ubuntu

Yes. It took me a while, but I have been using XFREERDP for the last 5 weeks from home.
It is CMDLINE only. It works great.

The command is as follows:

xfreerdp /multimon /u:usernamehere /v:remotepcnameorip /p:passwordhere

Use these three steps:

connect to your VPN
run XFREERDP from Terminal like above
rejoice in multiple monitors from Ubuntu/Mint

BTW .. we remote into a Terminal Server, then into our work desktops. This means after running xfreerdp, we then run Windows RDP on the TS, and when you run that make sure to enable 'use all monitors' in RDP app on the second tab (Display).


Evince is supposed to open multipage tiffs. If not, another application to try is imview found in the Software Center.


Eclipse Juno (4.2.1) crashes frequently after upgrading to Ubuntu12.10 from 12.04 (both 64bits)?

After many many permutations of everything, including all the different JDKs, etc., etc. ..

This worked for me (Fedora19/64, ADT 4.3/SDK 22.x,OpenJDK 1.8, Opteron64): add this line to the eclipse.ini file:

-Dorg.eclipse.swt.browser.DefaultType=mozilla

Apparently the tooltip bits launch different browsers at different times with "collisions", but restricting to mozilla only seems to do the trick

Source: https://bugs.launchpad.net/ubuntu-gnome/+bug/1163501


How do I get the IP address of an LXC container?

Seeing as running things in containers doesn't appear to be supported in Ubuntu, my next best suggestion is to look at the IP address leases that dnsmasq is handing out. That's really simple:

$ cat /var/lib/misc/dnsmasq.leases
1363699477 00:16:3e:4a:ce:a4 10.0.3.83 containername *

There are only two parts there that are of any use, so we can format that up a lot nicer:

$ awk '{ print $4,$3 }' /var/lib/misc/dnsmasq.leases | column -t
containername  10.0.3.83


How to use PuTTY to login MySQL account directly?

Create a specific account for this. For instance a user putty: adduser putty.
Create a configuration file in the home directory of your user using mysql-config-editor.
Edit .bash_profile for that account and add:

mysql --login-path=/home/putty/.mylogin.cnf {database}

And any other parameters you need but it will take user and password from the configuration file. You could also add the database to the configuration.
Set Putty up to login with that account and password. You can do this directly or using ssh auth keys (but that last one also requires you to set this up in Ubuntu).

But why go through so many hoops and not install MySQL Workbench?


Cannot run this program neither with nor without sudo

Sudo seems to change your environment. You can try to run the command with full path:

sudo /usr/bin/tlmgr install

Also worth a try is to run sudo with -E:

sudo -E tlmgr install


Get SmallWorld 2 running on Ubuntu 20.04

My install folder is
GAME=/media/Win10/SteamLibrary-Linux/steamapps/common/SmallWorld2

And the library path for the game in the steam folder is
STEAM=~/.local/share/Steam/steamapps/common/SmallWorld2/lib/

I started the game from the console with
cd $GAME
./Small\ World\ 2

Then you see the missing libraries one at a time. You have to locate all missing libraries and link them into the Steam library path:
cd $STEAM
LOCAL_LIBS=~/.local/share/Steam/ubuntu12_32/steam-runtime/i386
sudo ln -s $LOCAL_LIBS/lib/i386-linux-gnu/libssl.so.1.0.0
sudo ln -s $LOCAL_LIBS/usr/lib/i386-linux-gnu/libgstapp-0.10.so.0
sudo ln -s $LOCAL_LIBS/usr/lib/i386-linux-gnu/libgstbase-0.10.so.0
sudo ln -s $LOCAL_LIBS/usr/lib/i386-linux-gnu/libgstinterfaces-0.10.so.0
sudo ln -s $LOCAL_LIBS/usr/lib/i386-linux-gnu/libgstpbutils-0.10.so.0
sudo ln -s $LOCAL_LIBS/usr/lib/i386-linux-gnu/libgstvideo-0.10.so.0
STEAM_RUNTIME_LIBS=~/.steam-dist/ubuntu12_32/steam-runtime/i386
sudo ln -s $STEAM_RUNTIME_LIBS/lib/i386-linux-gnu/libcrypto.so.1.0.0
sudo ln -s $STEAM_RUNTIME_LIBS/lib/i386-linux-gnu/libpng12.so.0
sudo ln -s $STEAM_RUNTIME_LIBS/usr/lib/i386-linux-gnu/libGLEW.so.1.10
sudo ln -s $STEAM_RUNTIME_LIBS/usr/lib/i386-linux-gnu/libgstreamer-0.10.so.0

cd $GAME
mv libstdc++.so.6 libstdc++.so.6.bak
ln -s libstdc++.so.6.6.0.21 libstdc++.so.6


You do that on your router: it is called Port Forwarding. Unfortunately how to do that is different on every router (well the actual port forwarding tab will look the same but how you get there differs).

Regarding transmission also have a look at their FAQ.


Download a plugin from the OpenPrinting website. Install it with sh PLUGIN_FILENAME.


The type of infection is W32.Packer.MingwGCC-2. Mingw is a compiler after seen on Cygwin for Windows (Minimalist GNU for Windows). I'd say it's trustable.

I haven't been able to locate any information on why this is considered an infections. My best guess though is that it's just a warning because it's packing code (packers allow obfuscation of the code as well as a way to possibly avoid detection from antiviruses - though it has practical uses too).

Edit:
See this page on the ClamAV site, specifically the section on Packers. It explains what a packer is.


Evolution: how to remove calendar of other exchange user without deleting it from the server?

Right-click on the Calender -> Delete -> Remove from Server

this does not actually delete the calender, it just removes the connection to the shared calendar.

Thomas


MAAS 2.3 node-enlist cannot find MAAS server

Alright... Looks like the issue was completely related to the gateway really. As MAAS is sending the gateway as part of the DHCP hand out, node being enlisted is given 10.10.255.254 IP as a gateway. I set that up by simply accepting the defaults without double checking.

Once I put the Gateway IP in the DHCP server as 10.10.0.1 all worked well, enlisted nodes finding the MAAS to be enlisted!

I hope this could help someone in he future.


Killer 1535 802.11ac 2x2 on Dell XPS 13 kaby lake not working under Ubuntu 16.10

The first thing I suggest is to update the firmware. With a working internet connection, please open a terminal and do:

wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.162_all.deb
sudo dpkg -i linux-firmware_1.162_all.deb

Reboot and tell us if connectivity has improved. If you are still having issues, please show us:

dmesg | grep ath

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

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

sudo iw reg get

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

sudo iw reg set IS

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

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

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


Installing Nemo file manager on Ubuntu 14.04 LTS

There's a very good port of Nemo from Cinnamon to Ubuntu on webupd8.  The basics of installation are
sudo add-apt-repository ppa:webupd8team/nemo
sudo apt-get update
sudo apt-get install nemo nemo-fileroller
sudo apt-get install dconf-tools
gsettings set org.gnome.desktop.background show-desktop-icons false
xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search

This will install Nemo, and set the system to use Nemo for the desktop and as the default file manager.
The webupd8 site also has several extensions available for Nemo.


How to debug Nautilus crashes and issues?

Here is a solution I found from the GNOME website. Simply set the environmental variables before launching nautilus, i.e.:

G_DEBUG="all" NAUTILUS_DEBUG="All" nautilus

Logs can be captured from the terminal output.


How can I install the ATI video card driver for Ubuntu 11.10?

The best driver, Gallium 3D, should automatically be enabled and installed.

Try running a 3D game like Neverball or Neverputt, you can find both in Ubuntu Software Center.

If they don't work install fglrx (not the post-release update) with Additional Drivers in System Settings.


You may install KDE Connect from a PPA in Ubuntu 16.04 with Unity. Open terminal and run these commands

sudo add-apt-repository ppa:varlesh-l/indicator-kdeconnect
sudo apt-get update
sudo apt install kdeconnect indicator-kdeconnect

You can install KDE Connect app on android from Google Play or F-Droid.

Source


Changing file permission in Ubuntu Live mode

It's hard to tell without knowing where the file is, but, making an educated guess, I'd say the file might be on a read only file system. If that's the case, chmod won't work.

It would also not work of the file is on a non-linux file system like FAT or NTFS. Linux permissions only work on Linux file systems.


Starting version 219 after upgrading to 15.04

I'm fixed this error upgrading to kernel 4.0.1:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.1-vivid/linux-headers-4.0.1-040001-generic_4.0.1-040001.201504290935_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.1-vivid/linux-headers-4.0.1-040001_4.0.1-040001.201504290935_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.1-vivid/linux-image-4.0.1-040001-generic_4.0.1-040001.201504290935_amd64.deb
sudo dpkg -i linux-headers-4.0.1*.deb linux-image-4.0.1*.deb
sudo update-grub
sudo reboot


syntax error, unexpected 'DB_PASSWORD' (T_STRING), expecting ')' in /etc/wordpress/config-localhost.php on line 4

Actually, there is a syntax error in the line before:

define('DB_USER', 'wordpress;);

The string wordpress is never closed, so the whole rhythm is out of whack, so to speak. It's quite common that the actual reason for a syntax error isn't in the line where the interpreter stumbles (here the DB_PASSWORD setting), but a bit before that.


You can use Epson Connect: Email Print. This will allow you to send files to your printer in the form of an email. A guide for that is available here.


How do you install xpilot-ng-client-x11 in Ubuntu 20.04

You have to download packages from Ubuntu 19.10 manually:

for client -

cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/x/xpilot-ng/xpilot-ng-client-x11_4.7.3-2.3ubuntu1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/x/xpilot-ng/xpilot-ng-common_4.7.3-2.3ubuntu1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/python-irc/python-irc_8.5.3+dfsg-4_all.deb

sudo apt-get install ./xpilot*.deb ./python-irc_8.5.3+dfsg-4_all.deb

for server -

# for server
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/x/xpilot-ng/xpilot-ng-server_4.7.3-2.3ubuntu1_amd64.deb
sudo apt-get install ./xpilot-ng-server_4.7.3-2.3ubuntu1_amd64.deb

and it should work.


Can I record a TV screen with a Linux computer?

You would need a Linux supported capture card or device.  While there are many capture devices on the market, it might be hit or miss to find one that will work in Linux out of the box.

There a HDHomerun capture device that has Ubuntu Support in the repository.

You can use the GUI or a Command Line Interface to capture video from the TV.


I had some problem because my nexus had installed Android 4.4 (Kit-Kat) and the radio firmware not is compatible with Ubuntu. You need flash radio on Nexus with version Android 4.3 or lower

fastboot flash radio radio_android_4.3.img


To install updates, you need to have a supported version of Ubuntu. 11.04 is no longer supported, so you cannot update it. You need to upgrade your installation to fix this. Just start a Terminal session and type sudo do-release-upgrade to upgrade to the latest version of Ubuntu.


Unable to upgrade 12.04 LTS to 12.10, failed to fetch error

Run sudo apt-get update to get new package information.

Note, however, that you should be able to run do-release-upgrade to jump to the max possible version of Ubuntu that the system is able to upgrade to. Sometimes, you may need to go through key steps first, but this is the most direct way to upgrade your distro.


Try to add the source code repository and software restricted by copyright legal issues, as seen in this image:

Then, run a package cache update with this command:

sudo apt-get update

After updating, search your plugin package by running:

sudo apt-cache search vlc-plugin-libde265

I suggest for you to install ffmpeg.


ASUS ROG GL752VW Ubuntu installation issues

having the same laptop model, this worked for me:

Installation of Ubuntu 16.04 from a USB drive freezes

try adding either "acpi=off" or "acpi=force" in the GRUB menu then you should be able to boot from the live USB


Yes, a screenshot would be helpful. But if you would rather not try to figure out what's wrong and accept Ubuntu how it is, you can still access the terminal.

Ctrl+Alt+F1 through F6 allows you to access six different virtual full screen terminals provided by Linux. Press Ctrl+Alt+F7, to get back to a graphical environment.

A good diagnostic for your visual problem is to try an alternative terminal emulator like XTerm, which is available through the Software Center.


Heating issues and Fan sound on Dell Inspiron 3521 running Ubuntu 13.04

Most likely the source of heat is not CPU, but video card. You notebook has 2 video cards, with the idea that slow but cool HD400 works by default, switching to hot and powerful one when needed. (which one do you have by the way? They vary in this model). In Linux, this does not work out of the box, and you always have both video cards on, resulting in maximum heat.
If you are OK to go without big GPU, you can just disable bigger video card altogether. Intel HD4000 is a rather tough guy itself - it can handle HD video and all 2010 games quite well. Otherwise, search for instruction on how to tweak NVIDIA Optimus if you have NVIDIA, or PowerXPress if you have Radeon. These are the names of technologies that use 2 video cards to save power.


I use Google Calendar with my Google account from any browser or platform available. I can have several calendars (e.g. work, school, family) tagged by colors. The events can be single or repeating and can integrate with other Google apps, such as sending email reminders. You can also share your schedule as full details or busy/not busy and view other shared schedules on top of yours.

I've been using Google Calendar from Chrome, Firefox, (Ubuntu) and Safari (OS X), all work fine.


Solution was simple problem was that Windows has that new type of shutdown (hibernate) so my HDD was still mounted in windows so Ubuntu couldn't load partitions.

Solution is simple and if you have this problem you can do next in Windows :

Right click on desktop, New->Shortcut
In new window type: shutdown /s /t 0
Click Next and type any name you wish
Double click on that icon and your Windows will fully shutdown and you will be able to run Ubuntu.


Not with native Linux/Ubuntu (ie. by manually editing the password files);
It is possible using a LDAP server. The userPassword can have more than 1 value.

But there is NO way to distinguish between the 2 passwords after logon. The password is not kept in memory or set to a variable after the initial check so this ...

  Basically I'd like to login to my account with two passwords and depending on the password I use, I would get a different content in my home directory.

... is not going to be possible. What you want is pretty impossible anyways. Hiding is never a good method.

In general I would advice to use 2 accounts. Than means 2 /home/'s. Those 2 are separated as it is but the one with the extra data should be the admin/sudo and the one that does not need to see this data should be a normal account.

Besides that there are some commands that might be handy ...

chmod og-rwx {file} will make the files only viewable by that user.
Or similar: attr -s hidden -V true {file}.

Hiding though is never a good method. "obscurity" is not a valid method for protecting data.

If these files are that important I would not store them on the machine and use an external medium like an USB stick. And only attach it when it is "safe".


Go to Preferences > Language Support and change Keyboard input method system from ibus to none. Then log out and log in again.


Repair grub2 after upgrading windows 8.1 to 10 (odd situation)

Boot from Ubuntu install media - select Try Ubuntu without installing.

When the Ubuntu desktop appears - open a terminal and execute :

sudo blkid

Mount the system partition - open another terminal and execute :

sudo mount /dev/sda7 /mnt

Edit the fstab file - open another terminal and execute :

sudo gedit /mnt/etc/fstab

Replace the UUID entries with the ones from the output of blkid.

Note :

You should consider to install the recommended 64 bit version of Ubuntu in EFI mode, because the disk has a GPT partition table, and then you do not have to switch from EFI mode to Legacy mode in BIOS anymore. GRUB will be installed to the EFI partition where all boot loaders reside.

Update :

Repeat the procedure, edit the fstab file as follows and don't forget to save the file afterwards :

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda7 during installation
UUID=ef284dc0-d070-460f-adc4-7ce3c8ba607a /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=35f64a04-1d06-43d9-8948-56266b1f00b3 none            swap    sw              0       0

In case it doesn't work, you have to live with this situation until you install Ubuntu 64 bit version.


Ubuntu 18 upgrade stopped on pepperflashplugin

My idea is to be patient. The package system is not broken, it's just stalling since a maintainer script is trying over and over again to download the plugin from Adobe. It may take several hours before it gives up...
There is a dummy pepperflashplugin-nonfree package in xenial-proposed. It's a pity that it hadn't made it to xenial-updates before you started the version upgrade (see bug #1911463).


How to show desktop files on both monitors when using dual display?

Ubuntu Unity has flexible options when user want to use dual monitor, if you want desktop files in both monitors, just search "display" in Dash home and set mirror display like following screenshot:


Apache not including site (virtual host) config

The problem has been solved.

Apparently, in the new version of Apache, all site configs should end in .conf. I did this and the problem was solved.

This behaviour is defined by the following directive within /etc/apache2/apache2.conf:

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf


I should just wait for the editor to open, just like steeldriver said.


You can edit system files with Kate 19.04.3 (available in Kubuntu 19.10) or in Kubuntu 19.04 (with kubuntu-backports ppa) installed.

Simply open the file you wish to edit in Kate, edit it, and click Ctrl+S. A PolicyKit window will appear prompting you for your password. Provide it and click Okay.


man ps says:

This version of ps accepts several kinds of options:

1   UNIX options, which may be grouped and must be preceded by a
    dash.
2   BSD options, which may be grouped and must not be used with a
    dash.
3   GNU long options, which are preceded by two dashes.

So, ef uses the BSD e and f options, and -ef uses the Unix -e and -f options. These are different (sections SIMPLE PROCESS SELECTION, OUTPUT FORMAT CONTROL and OUTPUT MODIFIERS respectively):

   -e     Select all processes.  Identical to -A.
   -f     Do full-format listing. This option can be combined with many
          other UNIX-style options to add additional columns.  It also
          causes the command arguments to be printed.  When used with
          -L, the NLWP (number of threads) and LWP (thread ID) columns
          will be added.  See the c option, the format keyword args, and
          the format keyword comm.

   e      Show the environment after the command.

   f      ASCII art process hierarchy (forest).

Clearly, you're not selecting all processes using the ef options, but are using the default listing of processes, plus some additional formatting:

By default, ps selects all processes with the same effective user ID
(euid=EUID) as the current user and associated with the same terminal
as the invoker.  It displays the process ID (pid=PID), the terminal
associated with the process (tname=TTY), the cumulated CPU time in
[DD-]hh:mm:ss format (time=TIME), and the executable name (ucmd=CMD).
Output is unsorted by default.

The use of BSD-style options will add process state (stat=STAT) to
the default display and show the command args (args=COMMAND) instead
of the executable name.  You can override this with the PS_FORMAT
environment variable. The use of BSD-style options will also change
the process selection to include processes on other terminals (TTYs)
that are owned by you; alternately, this may be described as setting
the selection to be the set of all processes filtered to exclude
processes owned by other users or not on a terminal.

Which should you use? What do you want to do with the output?

Also, see the EXAMPLES section (which does list -ef rather prominently, and doesn't use the BSD e option at all):

EXAMPLES

   To see every process on the system using standard syntax:
      ps -e
      ps -ef
      ps -eF
      ps -ely

   To see every process on the system using BSD syntax:
      ps ax
      ps axu

   To print a process tree:
      ps -ejH
      ps axjf


Problem with Latex Packages Ubuntu 12.04

The files amsrefs.sty and pcatcode.sty are not included in the package texlive-latex-base so that is probably why you are told that the directory does not exist.

The files you are looking for is found in another TeX Live package, namely texlive-bibtex-extra. Install it and your document should compile. To install it do e.g.

sudo apt-get install texlive-bibtex-extra


Since the "gold" result linked indicates only that the demo was tested and runnable under a very old version of both wine and Ubuntu, what I would do is install virtualbox under Ubuntu, install a supported version of Windows on a virtual machine and then install vds 6.0 on the VM. this approach will virtually guarantee compatibility (I've been forced to do the same with Windows software in the past with good results). If anything is unclear drop me a comment and I'll do my best to clarify.


Try running a file system check in Windows7 on that partition. Hopefully the lost files will magically reappear afterwards.