Access virtual machine from browser under virtual box

I think you need to enable port-forwarding on the VM. (with the NAT type in the Attached to option)
In Virtualbox, choose the Settings of the context menu of the VM (or Machine -> Settings while the VM is running), go to Network, then expand the Advanced option and choose Port Forwarding. In the dialogbox that shows up, click the + sign to add a new TCP/IP rule (if not exists).
In both the Host Port and Guest Port fields, enter a port number (e.g. 8080), then click OK.
Now, you should be able to access the servers (e.g. HTTP on 8080) on the guest (if you have configured an HTTP server at that port).


Try the below commands on the terminal to install kivy on Ubuntu 13.10 and 14.04,

sudo add-apt-repository ppa:kivy-team/kivy
sudo apt-get update
sudo apt-get install python-kivy


Is not quite clear what you are trying to do with the docker run command.
Your current command
docker run --entrypoint htpasswd   registry:2 -Bbn dockerreg dockerreg > auth/htpasswd

starts the docker container registry:2
... with the entry point htpasswd command
the htpasswd command gets the options -Bbn and options dockerreg dockerreg (set password dockerreg for user dockerreg)
the output(!) of the docker run command is then forwarded to auth/htpasswd. This will create a auth/htpasswd file relative to the execution path of the docker run command. This is probably not intended and leads to the Permission denied.

I don't know, where the output of auth/htpasswd should be located, but you should specify an absolute path, e.g. /home/myuser/web/auth/htpasswd or some other folder where the user executing the docker run commands has access permissions.


Okay I found a forum thread about it:

http://ubuntuforums.org/showthread.php?p=10499597

It seems graphics is okay with Natty, but WiFi (BCM4331) is not (yet) supported.  Which is a bummer, if you ask me.


Using wget with Streamcloud and pages where you have to wait

You need to save the wget output into a file and look at the html to see how they are implementing the timeout and redirect. There are several techniques that might be being used. For example, the simplest is a line like this in the head of the html:

<meta http-equiv="refresh" content="2;url=http://newurl/">

This makes a browser go to the new url after 2 seconds. You need to use a tool like sed to extract the url and then run wget again on the new url.

More complicated solutions involve javascript.


How can I repair a new kernel version and omit the "Previous Linux versions" from GRUB?

This may help you to arrange and omit previous kernel versions and gain some extra space.

Have you ever installed Grub-Customizer? Yes, it's a nice tool for rearrange our boot system and gain some extra space in the discs. Very usefull though!

But, as i recomende that you install this usefull app, at the same time i advise you to be carefull, because any distraction and your dual boot simply could go away!

And how can we fix this as an easy way?

Boot your cd (as you did before) with your Ubuntu (if you have latest version installed in your pc it doesn't matter if you boot another version of ubuntu. If you have Natty 11.04 you can simply use your 10.04 cd...)

try the experiment mode (you don't need to install ubuntu again!)

Then install (as you have made in your system) Grub-Customizer packages (sudo add-apt-repository ppa:danielrichter2007/grub-customizer && sudo apt-get update)

in update manager select the option "open source code software (Universal)"

In the terminal again, install the repository packages (sudo apt-get install grub-customizer)

Acess to Grub-Customizer and select your root. Then your boot option (in case you have dual or triple boot) will appear and you can select again and treat a big headache...

Very simple.

Hope you liked it!


Since you need a setuid sandbox to run breach you basically have two options:

Use the one provided by chromium-brower (recommended method):

sudo apt-get install chromium-browser

Go to the breach folder (e.g breach-v0.3.20-alpha.5-linux-x64) and type the following command:

CHROME_DEVEL_SANDBOX=/usr/lib/chromium-browser/chrome-sandbox ./breach

Follow the instructions provided here: Building Breach from Source.

Note that you'll first have to build the ExoBrowser.

As you need the chromium source code to build it, use the chromium depot_tools fetch command to get it.

UPDATE:

If (like me) you have downloaded the breach alpha in your ~/Downloads folder you can set an alias to run breach as follow:

alias breach='export CHROME_DEVEL_SANDBOX=/usr/lib/chromium-browser/chrome-sandbox && ~/Downloads/breach-v0.3.20-alpha.5-linux-x64/breach'

Copy this command to your ~/.bashrc to keep this alias.

Note: adjust the path to the breach startup script for your needs.


Brother DCP-J4120DW will not print on Ubuntu 14.04.1

Test this:

Download this files:

http://download.brother.com/welcome/dlf101555/dcpj4120dwlpr-3.0.1-1.i386.deb

http://download.brother.com/welcome/dlf101556/dcpj4120dwcupswrapper-3.0.1-1.i386.deb

Install the drivers:

Turn on the printer and connect the usb, network or parallel cable.

Go to the directory where the drivers are.

In a terminal Press Ctrl+Alt+T
run:

sudo -i

dpkg -i --force-all dcpj4120dwlpr-3.0.1-1.i386.deb

dpkg -i --force-all dcpj4120dwcupswrapper-3.0.1-1.i386.deb

Depending on the connection type you are using USB or Network, follow one of the steps below.

For USB Connection:

Open a web browser and go to "http://localhost:631/printers".

Check if the Device URI of your printer is "usb://Brother/(your printer's model name)"

If the device URI is different from the example above, please go to "Modify Printer" of your printer to select proper device and driver.

If your printer is not listed on "http://localhost:631/printers", please go to "http://localhost:631/admin" and click "Add printer" and select proper device and driver.

For Network Connection:

Open a web browser and go to "http://localhost:631/printers".

Click "Modify Printer" and set following parameters.

"LPD/LPR Host or Printer" or "AppSocket/HP JetDirect"       for Device

lpd://(Your printer's IP address)/binary_p1                 for Device URI

Brother                         for Make/Manufacturer Selection

Your printer's name             for Model/Driver Selection

For Scanner driver 32bit:

Download this files:

http://download.brother.com/welcome/dlf006646/brscan4-0.4.3-0.i386.deb

http://download.brother.com/welcome/dlf006651/brscan-skey-0.2.4-1.i386.deb

http://download.brother.com/welcome/dlf006654/brother-udev-rule-type1-1.0.0-1.all.deb

Install the drivers:

Go to the directory where the drivers are.

In a terminal Press Ctrl+Alt+T

run:

sudo -i

dpkg -i --force-all brscan4-0.4.3-0.i386.deb

dpkg -i --force-all brscan-skey-0.2.4-1.i386.deb

dpkg -i brother-udev-rule-type1-1.0.0-1.all.deb

For Scanner driver 64 bit:

Download this files:

http://download.brother.com/welcome/dlf006645/brscan4-0.4.3-0.amd64.deb

http://download.brother.com/welcome/dlf006652/brscan-skey-0.2.4-1.amd64.deb

http://download.brother.com/welcome/dlf006654/brother-udev-rule-type1-1.0.0-1.all.deb

Install the drivers:

Go to the directory where the drivers are.

In a terminal Press Ctrl+Alt+T

run:

sudo -i

dpkg -i --force-all brscan4-0.4.3-0.amd64.deb

dpkg -i --force-all brscan-skey-0.2.4-1.amd64.deb

dpkg -i brother-udev-rule-type1-1.0.0-1.all.deb


Increase screen resolution with VGA Intel GMA 3150

Ok. I now have learned that the screen you have is manufactured to support a maximum of 1024 x 600 as resolution. It's physically impossible to force it to handle a higher resolution whatever the OS.
In another hand, to feel more comfortable, reduce the desktop font and launcher icon size. (Install Ubuntu Tweak for example:  )

And if you're not afraid to damage your screen, you can upscale its resolution to 1280 or even higher using the NewRez Script ( A script that uses the XRANDR utility for intel graphics). Download and instruction through here:
http://www.omgubuntu.co.uk/2010/11/set-your-screen-resolution-higher-than-you-should-with-newrez/


Why does my wmctrl -a command not raise my minimized Rhythmbox window?

The issue: rhythmbox is changing the window name

The issue is that you are identifying the window by its name, using wmctrl -a. From man wmctrl:

-a <WIN>
    Switch to the desktop containing the window <WIN>, raise the window, and give it focus.

<WIN> is an identifying string in the window name.

Especially in your case, this is likely to cause errors, since Rhythmbox changes the window name, depending on the song. You need to identify the window by either its window class or its id

The latter can be done using:

wmctrl -ia

where the option -i stands for window-id:

   -i     Interpret window arguments (<WIN>) as  a  numeric  value  rather
          than  a  string name for the window. If the numeric value starts
          with the prefix '0x' it is assumed to be a hexadecimal number.

Both the window-id and the pid a window belongs to can be retrieved from the window-list, called by the command:

wmctrl -lp

A reliable command to raise the most recent window from e.g. Rhythmbox then is:

wmctrl -ia "$(wmctrl -lp | grep "$(pgrep rhythmbox)" | tail -1 | awk '{ print $1 }')"

Explanation:

wmctrl -lp

lists all windows, including their pids. An important property of the command is that it lists the windows in the order they were created.
Therefore:

wmctrl -lp | grep "$(pgrep rhythmbox)" | tail -1 | awk '{ print $1 }'

will:

list all windows + pids they belong to:

wmctrl -lp

find the ones ones belonging to rhythmbox:

grep "$(pgrep rhythmbox)"

find the last one (which is also the last created one):

tail -1

extract the first string in the line (which is the window -id):

awk '{ print $1 }'

The command:

wmctrl -ia

will then raise the most recent Rhythmbox window by its id.

Script

For convenience reasons, and to prevent issues with quotes, I'd make a tiny script of it with the command, and run it from a shortcut:

#!/bin/bash
wmctrl -ia "$(wmctrl -lp | grep "$(pgrep rhythmbox)" | tail -1 | awk '{ print $1 }')"

Make it executable and Add shortut key: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

/path/to/script.sh

Additionally

It looks like you are using the command/script for multiple applications. Instead of making separate scripts for each and every application, you can make the application argument to the script:

#!/bin/bash
app=$(pgrep $1)
wmctrl -ia "$(wmctrl -lp | grep "$app" | tail -1 | awk '{ print $1 }')"

Then

 /path/to/script.sh gedit

will raise the most recently created gedit window, while

/path/to/script.sh rhythmbox

will raise the most recently created rhythmbox window, and so on.


Ubuntu Software update check size is unreasonably large

Your question was why is it that updating your Software Sources used 25mb's of data? That is too much, it is only reading text from the sources, and you are right about that. The answer is that it did not use 25mb! The fact is that although the download speed is 128kb/s, it does not mean that it is constantly downloading data. Most of the time it is simply processing. As a test, open your Terminal and type the following command:

sudo apt-get update

Enter your password when asked, and wait for it to finish downloading the sources. You can clearly see in the Terminal the exact amount of data downloaded. On my laptop, with many packages added to the default set, you can see that it only took 1,235kb (1.2mb).
During the download it said it was downloading at 137kb/s, once it was complete you can see the average speed was 13.3 kb/s.

This is the equivalent of the "window with a progress bar moving right and left while checking if there are any updates for my computer."


The way I normally upgrade is more of a manual process:

Go to https://www.getsync.com/platforms/desktop, click the
appropriate Linux link. Cancel the download and you should see the
"Click here if your download didn't already happen." message
Right-click this link and copy the URL to clipboard or write it down
On the Linux server, create a temp folder somewhere, and run the
"wget " command to download the file to temp folder
From the temp folder, run "tar xf" to extract the btsync files
At this point I normally stop the existing btsync service using the
"kill" command, renamed the existing executable to btsync_xxx (where
xxx is the existing version)
Copy the new executable from temp folder to your current btsync
folder - you now have the previous exec and the new exec
available
Run the new exec; if all goes well, you should be able to login via
web interface with all previous folders and settings in place


Segmentation fault (core dumped) - linux kernel problem

The problem is in linux kernel - linux-image-3.13.0-121-generic (in Trusty) and linux-image-4.4.0-81-generic (in Xenial) contains a fix for the Stack Clash vulnerability.

Be careful with kernel updates, which fix this vulnerability. Current patch breaks many java (sun/oracle and openjdk) applications. See Bug #1699772: linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression: many user-space apps crashing. The solution is to temporary reboot system with old kernel (linux-image-3.13.0-119-generic in Trusty / linux-image-4.4.0-79-generic in Xenial).

Ubuntu kernel developers will prepare new patch in a few days.

UPDATE: Latest updates (at least image-4.4.0-83-generic, linux-image-4.8.0-58-generic, linux-image-4.10.0-26-generic) fix this vulnerability and problems with user-space programs.


Troubleshoot regarding Oracle java installation

It looks like javac compiler is in your PATH, but java virtual machine is not - strange.

As I can see you have created deb package named like oracle-java10-jdk or something and installed it. Use

$ dpkg -L oracle-java10-jdk | grep -E /java$

to see where java command is and add it to your PATH.


Reducing PDF size to optimize its performance on Kindle?

Use pdfsam; although there is currently a bug with it on 13.04: https://bugs.launchpad.net/ubuntu/+source/pdfsam/+bug/1167469


Unity Settings Deamon crash in 16.04 every time after boot

Bring your system up-to-date, reinstall the unity-settings-daemon and reboot your system:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install --reinstall unity-settings-daemon
sudo reboot

This should already solve the issue.


This filter is not packaged as standard Ubuntu package.
It is mentioned on https://github.com/jgm/pandoc/wiki/Pandoc-Filters , so you can download and install it from https://github.com/lierdakil/pandoc-crossref manually.
For the reproducible results you have to get both newest pandoc and pandoc-crossref as precompiled binaries using commands below:
cd ~/Downloads
wget -c https://github.com/jgm/pandoc/releases/download/2.13/pandoc-2.13-1-amd64.deb
sudo apt-get install ./pandoc-2.13-1-amd64.deb
sudo apt-get autopurge pandoc-data

wget -c https://github.com/lierdakil/pandoc-crossref/releases/download/v0.3.10.0a/pandoc-crossref-Linux.tar.xz
tar -xf pandoc-crossref-Linux.tar.xz
sudo mv pandoc-crossref /usr/local/bin/
sudo chmod a+x /usr/local/bin/pandoc-crossref
sudo mkdir -p /usr/local/man/man1
sudo mv pandoc-crossref.1  /usr/local/man/man1

Please note that man pandoc-crossref will work.
Then test it with pandoc main.tex --filter pandoc-crossref -o main.docx as you have already planned.

But for more productive results I would recommend to start using bookdown (RMarkdown Markdown extension), it will do all for you in simplified form. Here you can have united Rmd input format and multiple output formats including TeX, PDF, ePub, HTML, docx, odt and so on. Check the https://github.com/rstudio/bookdown-demo repository as a starting point.


Webcam not working on Microsoft Teams, installed via snap

You need to allow the access to the camera on Teams For Linux to be able to do videocalls, to do that you can use the Software Store in your Operating System after the installation of the snap. (snapcraft.io/teams-for-linux)

After the installation, you need to connect the camera to snap manually

snap connect teams-for-linux:camera core:camera


The following page details how to do a manual install of the Ubuntu Touch preview. https://wiki.ubuntu.com/Touch/Install#Manual_Installation


This is probably a problem with the OpenGL drivers (or Mesa graphics library. See issue: https://gitlab.freedesktop.org/mesa/mesa/-/issues/116). You should change the video output mode.
Go to Tools > Preferences > Video and then set the value for Output field to XVideo output (XCB).


Can I run Ubuntu in JavaScript (Linux emulator)?

No. JSLinux only implements a cpu, interrupt controller, interrupt timer and a serial port. That is quite far from the Ubuntu Hardware Requirements, such as a hard drive, graphics card etc.

If you had lots of time, you could probably create a suitable image based on Ubuntu, but it would be too far from the regular Ubuntu experience to be called an Ubuntu remix. See the trademark policy.


cancel a print job in ubuntu 14.04 after using lpq -a?

Once you have the job number(s), from lpq -a e.g:

Rank    Owner   Job     File(s)     Total Size
1st     wilf    59      PRINT.pdf   50547712 bytes

You should be able to cancel it with the command cancel - e.g:

cancel 59

You may also be the lprm command.
See also:

cancel manpage (should be available locally from man cancel)
CUPS commands


Dim/dark screen back after latest update [Ubuntu 12.04]

Just press buttons Fn+Left Arrow or Right Arrow while booting starts and that's it!

If its for acer laptop.


13.04 No sound while running applications as separate user

Seems like only users belonging to the audio group can use audio devices after switching user accounts with su. So you have to do this:

sudo usermod -G audio -a account

(replace account with the account you want to use audio with)

It will then work for new sessions started after adding the user to the audio group.


Virtualbox vm of IE11 on Win7 / 8.1 / 10 keep crashing

I just tried IE11-Win7 in Ubuntu 15.10 with same VM version as yours (5.0.10r104061). It boots up well. I'm not familiar with VBox log, but i noticed hard drive errors in all the 3 machines you have.

Your virtualbox host drivers (kernel modules) built well (dkms status) and loaded (lsmod|grep vbox)

From your ls -l output  & VBoxManage showvminfo "IE11 - Win7" --details output , quiet different setup.

A quick thought may be you haven't used the VirtualBox import function. It seems like you make manual HDD image setup:

Yours is SATA, mine is IDE.
I've new .vmdk image created in the VM folder, but you don't have any.

So the correct way is to use the import function of VB to create new virtual machine from a VirtualBox archive.

Move the original files to another folder out of /home/gco/VirtualBox VMs/ example to ~/vm/ie11win7, not a must but clean way to keep VirtualBox VMs only for running machine images.
Open virtual box then delete the old "IE11 - Win7"
From Menu, File → Import Appliance...
Browse to .ovf or .ova file & select it.
Next, then Import (without changing anything, you can change it later).

Then Try launch.

BTW, last step from README.md, that extract .ova, is not needed, VirtualBox can import the archive directly.

I will tell original author to remove extract .ova step add an import step to the instructions. That should help the coming users.

VBoxManage import "IE11 - Win7.ova"

Reference: 8.10. VBoxManage import

Concerning the crashing IE11-Win10, I got this error in the uploaded screenshot

Recovery

Your PC/device needs to repaired
The digital signature for this file couldn't be verified.

File: \Windows\system32\winload.exe
Error code: 0xc0000428

Solved by changing my host machine time to before April 15.

Sources:

ModernIE VM Windows 10 for Parallels won't run
Bug report: Problem with Windows 10 on WIndows 7 Virtual Box


I can also vouch for that as I always used to NOT use the proprietry driver but Unity was really glitchy with it so reinstalled ATIs FGRLX and I must admit it worked a treat

I would give it another try

sudo apt-get install fglrx

It should then correctly reconfigure your X config as well

If you are unsure check here for a good guide to installing fglrx

ATI How to

However if it does not look any better I would check out the guide to removing it again as it is not straight forward unless you follow this guide

getting rid of it again!


Usually systemd takes the job of mounting and unmounting. I've done the following on two of my devices to connect to my NAS on demand:
Open fstab and enter the mount:

The scheme is [target] [mountpoint] [options]

//server/path /path/to/local/mount cifs username=XXX,password=YYY,noauto,_netdev,users  0 0

The mount will take place when you try to connect to your mountpoint, either by script or via files/nautilus. "noauto" is the flag that prevents your system to try to connect immediately.


I would install either Lubuntu or Xubuntu which use the resource light LXDE & XFCE desktop environments.  Also a full install will always run faster than Wubi.


I don't know if you're still looking, but here's your answer. It's not an official Facebook app, but I use it every day and I love it.

Here is the link to the site I used to download it


Brother printer does not work after installation

I had problems while installing a Brother HL-L2365DW on Ubuntu 16.04 as a network printer. I've used the official Brother linux-brprinter-installer from their website but the printer was not working. Fortunately the fix was simple.

Go to Printers → Your printer properties
Hit Change on Device URI
Wait 10 seconds until all active printers show up in the list
Choose your printer (LPD network printer, not IPP network printer via DNS-SD)
Hit Apply
In Printer properties change the Device URI host name to the IP address of your printer so it looks something like lpd://192.168.1.45/BINARY_P1
Hit OK and the printer should work

If you want to find the IP address of your printer try doing ping PRINTERHOSTHERE. The printer will not respond to a ping but you will see the IP that your system was trying to ping and that is the IP of your printer.


Libre Calc -- How to link to cells in another workbook

From the Excel migration page:

Working across spreadsheets, web pages and database data
Links created using the prevous examples, including the Navigator’s drag and drop method, do not update automatically.
To update them, use Edit > Links > [select the desired link] > Update.
The update works from the saved file – so if both files are open and
the file that the link is based on is updated, that file must be saved
before updating the link.
To have persistent updating of data between two spreadsheets, insert
Dynamic Data Exchange (DDE) links:

Select and copy the range of cells to be linked to.
Change to the spreadsheet that requires the link and select the place where you want the link to be. (text on the wiki is not complete; reference for the edit)
Open the Paste Special dialog, Edit > Paste Special and check the Link option (the checkbox at the bottom left of the dialog).
Click OK to insert the DDE link.

These cells will have a persistent link to the contents of the other
sheet and the values returned can then be used in other formulas.

From ask.libreoffice:
A live update of external references isn't implemented. Also in Excel that works only as long as you have both the linking and the linked document open at the same time.


Pixiewps is a tool written in C used to bruteforce offline the WPS pin
exploiting the low or non-existing entropy of some APs (pixie dust
attack).

This means it should work in all Linux distros including Ubuntu.
How to install it?
Download pixiewps-master.zip.
Pixiewps requires libssl. To install it:
sudo apt-get install libssl-dev

Pixiewps can be built and installed by running:
~/pixiewps$ make
~/pixiewps$ sudo make install

Quoted from : https://github.com/wiire/pixiewps


Which of these devices is Ubuntu's CD-ROM?

None. You do not seem to have the usual ones, i.e., cdrom, cdrw, dvdrom, dvdrw, and sr0.


Display setting in Adjust for TV Mode screws up stylus pen cursor position - solved though

Press super key
type Display
Go to Screen Display Properties
Select affected Display
Toggle off Display for TV if it is on.


Try removing the ~/.config/dconf/user file. I had the same problem, and this is what solved it.

I haven't yet figured out which specific setting caused the problem, but you can use the information in this answer to dump the settings and reload them selectively: https://unix.stackexchange.com/questions/199836/how-can-i-view-the-content-of-a-backup-of-the-dconf-database-file


CUDA and driver: can I remove driver or change resolution?

install this:

  NVIDIA binary Xorg driver, kernel module and VDPAU library from
  nvidia-current

resolution is ok (great as before) and CUDA works.
see related post here


Maybe your keyboard layout system wide is inconsistent then the one you used when you installed.
Try installing Ubuntu with auto login available and check to see if your keyboard layout is consistent with your countries language.


Give group permission to only kill specific process which is started by root

Try this: remove the kill authority, put your kill command that kills your specific process in a shell script, make the owner of the script be root, and set the group authority for the script to be a new group containing the authorized users.


/usr/bin/ld: cannot find -lgsl on Ubuntu 10.04

Try installing the dev package.

In my case is libgsl0-dev


You should execute:

sudo ifconfig wlan0 up

And it should come back to life.

Just to give you a little explanation: the output of the command ifconfig only shows the interfaces that are up. For example, you'll notice that your eth0 interface is up:

eth0       Link encap:Ethernet  HWaddr 00:24:21:6f:84:69
           inet addr:10.100.1.41  Bcast:10.100.255.255  Mask:255.255.0.0
           inet6 addr: fe80::224:21ff:fe6f:8469/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

Your ifconfig output does not have wlan0 listed, meaning that it has been turned off. If you do ifconfig -a, you should see all interfaces (up or down), and you'll notice that wlan0 won't have UP displayed. And all of this makes complete sense because you switched off your WiFi card when you did ifconfig wlan0 down. So ifconfig wlan0 up should bring it back online. If it doesn't work straight away, do a sudo service network-manager restart.


configure dhcp server in Ubuntu 13.10 and other version?

i recommend you to use simple dns/dhcp server DNSMASQ from ubuntu repository


How to setup DB in postgresql 9.2.4 on 12.04.2 LTS

If PostgreSQL is running and listening on port 5432 according to netstat but when you run psql you get an error like:

psql: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

then most likely the issue is that you're using the psql from an earlier version of PostgreSQL that's also installed on your system. This version is probably configured to use a different unix_socket_directory.

The best option is to set your PATH environment variable to point to the directory containing the correct psql, createdb, etc versions before the old ones.

Alternately, you can use TCP/IP connections by explicitly specifying -h localhost, eg:

psql -h localhost ...

(and thus createdb -h localhost ...). This will result in you using old versions of the createdb, psql, etc commands, so it's better to just set your PATH. The same is true of using -h to set the unix socket path, which is somewhat of an advanced option.

Fix your PATH environment variable and all will be well. You can test this temporarily with something like the following, where you'd replace /usr/pgsql-9.2/bin with the bin directory under your PostgreSQL 9.2 installation:

export PATH=/usr/pgsql-9.2/bin:$PATH
psql

If that works, you'll need to make the change permanent by editing /etc/environment, your .bash_profile, or other appropriate settings files. Search for "ubuntu permanently set PATH" for more info.


reinstall Ubuntu 18.04 does not show option keep files

To reinstall without reformatting, you need to select "Something else" between the installation options. This brings you to the manual partitioning screen. There, you have to indicate yourself which partitions are to be used, and doing so, you can uncheck the "Format" checkbox to prevent the installer from reformatting prior to reinstall.


what is the nm-applet and why does it take so much memory?

I experienced the same on my 12.04 installation. After a little research it appeared that it was just a GUI component (representing the icon in the status bar), and killing it will not affect the network connections.

SO I killed it and launched a new one from my terminal. Resource manager showed an immediate drop of 1.5 GB of RAM consumption.

killall nm-applet
nm-applet &


What C is PS using to Determine Process Info Programmatically

According to multiple answers on stackoverflow, ps uses the proc file system through libproc to gather process information. It appears that this is the preferred way to do it, so I would think lstat(2) is the right way™ to find out the start time of a process.


Step 1: Open Applicaction>> Accessories>> Terminal

Step 2: Type commandline as below...

  sudo apt-get install openjdk-6-jdk

Step 3: Type commandline as below...

  apt-cache search jdk

Step 4: For "JAVA_HOME" (Environment Variable) type command as shown below, in "Terminal" using your installation path...

  export JAVA_HOME=/usr/lib/jvm/java-6-openjdk

Step 5: For "PATH" (Environment Variable) type command as shown below, in "Terminal" using your installation path...

  export PATH=$PATH:/usr/lib/jvm/java-6-openjdk/bin

Step 6: Check for "open jdk" installation, just type command in "Terminal" as shown below
javac
 then type java-version


How can I split the standard Ubuntu terminal?

Not with the standard terminal. There are, however, a number of applications that you can install that will extend your terminal to allow for it, called multiplexers. Tmux and Screen are two of the most common.


It looks like you have attempted to run Geary before, since it reports your database is at version 21. You could try backing up ~/.local/share/geary, then deleting it, and running Geary again and seeing if that makes any difference.

Note however version 0.6 that you have installed is very old — the latest version is 0.12. If you add the official PPA to your system then Geary will be upgraded to 0.11, which may well work much better.


Bleachbit error when cleaning firefox on Ubuntu 16.04

Update to BleachBit version 1.12 which fixes this exact issue

  Fix error UNIQUE constraint failed error cleaning Firefox (reported by danjackson1 and gravy45)

P.S. The version of BleachBit in Ubuntu's repositories is out of date almost all the time because of their policies, so I highly recommend always getting it from the official BleachBit site.


Ubuntu 20 sucks heavily on this (as many other things). The only working solution I found was to

Create a startup script with line:

sleep 60s && pactl load-module module-echo-cancel

Script could be run by Startup Application Preferences.
Explanation:

sleep 60s - we need to wait until pulseaudio is ready, it's shorter time but I didn't care, 60 seconds is ok for me

Put some configuration in /etc/pulse/default.pa:

load-module module-echo-cancel source_name=noechosource sink_name=noechosink
set-default-source noechosource
set-default-sink noechosink

Set in /etc/pulse/client.conf

default-source = noechosource

This is all.

This is hideous solution, but I couldn't find anything better.
Other solutions found on the web didn't work, like:

PulseAudio doesn't load after adding noise cancellation to config
https://www.informaticar.net/enable-noise-cancellation-in-ubuntu/
https://medium.com/@rahul.y.dudhane/how-to-do-noise-and-echo-cancellation-in-ubuntu-7a5607c7e887


You could try enabling noise cancellation. First run xinput to find the id of your touchpad device.

$ xinput
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎣   ↳ SynPS/2 Synaptics TouchPad                id=13   [slave  pointer  (2)]

As you can see, my id is 13.

To set noise cancellation run

xinput set-prop 13 'Synaptics Noise Cancellation' 30 30

Where 13 is the id of your pointer device. You can vary the numbers 30 30 (they define the sides of the 'noise cancellation box') to find something that suits you.

If this works, you might want set that command to run automatically on login and/or boot. Startup Applications -> Add -> enter the xinput-command in the 'command' text field.

More info:

http://manpages.ubuntu.com/manpages/precise/man4/synaptics.4.html


WiFi not working after installing Ubuntu 17.04

Look for a hardware switch, reset BIOS to defaults, if it doesn't help run

sudo tee /etc/modprobe.d/blacklist-acer.conf <<< "blacklist acer_wmi"

and reboot.


Can I use an older version of LibreOffice?

I haven't done this, but you should be able to

Uninstall the current version using Ubuntu Software center or sudo apt-get remove libreoffice-core
Then go to either:

this page for the latest stable versions of the two current branches;
this list of older LibreOffice versions;
or this page for even older versions of OpenOffice;
and download the .deb package for your environment.

Then install using sudo dpkg -i packagename.deb

Source for the full list of older LibreOffice versions is this ask.libreoffice answer.


avconv how to copy all stream and merge metadata (fix creation date)?

After reading the documentation and lots of searches i finally got the answer I wanted, the final command is:

avconv -i IN.mp4 -i METADATA.txt -map_metadata 1 -codec copy -map 0 OUT.mp4

This means:

use the inputs: IN.mp4 and METADATA.txt
map the metadata from input 1 (METADATA.txt)
copy all codecs (no transcoding)
map all streams from input 0 (IN.mp4)
write to OUT.mp4


Opened port but have Node.js listen on it?

You can't have two services listening at the same port.

Solution: Change your nodejs app port or your apache port.

If you change your apache port you will need restart the service (service apache2 restart).


How would I format a USB drive to be accessible in Windows and OSX?

Note : I'm a terminal guy. You could do the following (finding partitions, reformating) using gParted (GUI). By the way, this will erase all data on your key.

First, find the device file to your USB drive. Under Ubuntu, you'll find it using the Disk Utility, which can be found using the Dash. (once opened, click on your key, and find it's device in /dev ; it will probably be something like /dev/sdb).

Once you have it, and once you're sure about it, type :

sudo fdisk /dev/X

X being what you found earlier.

Press p to find the link to your USB partition (it will begin with /dev/X and end with a number ; probably something like /dev/sdb1). Remember it, we'll call this new name Y.

Use w to write changes (none actually...) and quit.

Back in the command line, type :

sudo mkfs.msdos -F 32 /dev/Y

Remember, Y is /dev/* ending with a number (partition link). This will format the key in FAT32.

Once formatting is finished, your clear to go. Unplug/Replug the USB drive to force Ubuntu to remount it.

In the end, if you need a bootable USB drive, use Unetbootin, which is available under Linux. It only requires an ISO image.


sudo useradd: cannot lock /etc/passwd; try again later (no lock files)

Found this and this solves the problem

You need to remove all the four files and then try

/etc/passwd.lock
/etc/shadow.lock
/etc/group.lock
/etc/gshadow.lock

Logging as the root user

$ sudo su

rm –rf /etc/passwd.lock
rm –rf /etc/shadow.lock
rm –rf /etc/group.lock
rm –rf /etc/gshadow.lock

Then try your command.

camilstaps@localhost:~$ sudo useradd --home-dir /var/www/xxx.camilstaps.nl/ --no-create-home --root /var/www/xxx.camilstaps.nl/ --shell /bin/sh xxx


How to download all repository using apt-get?

First of all, this is not a convenient way. Instead of this you should  use the method mention here. But as an answer to the question.

First create a file which contains names of all the available
packages using apt-cache.

apt-cache  dumpavail |grep -oP "(?<=Package: ).*" >> packagelist

This will create a file packagelist with all the available packages.
Now create a simple script to download all the packages present in
the file packagelist

#!/bin/bash
for package in `cat packagelist`
 do
    apt-get install -y --download-only $package
 done

Save it.
Make it executable using

chmod +x your_script_name

Now open terminal and login as root

sudo -i
cd /folder/of/you/script
./you_script_name

It will download all the available package depending upon your /etc/apt/sources.list
 in /var/cache/apt/archives directory


Document Viewer - Change page from "Fading" into "direct"

In Okular (Document Viewer in KDE), go to Settings > Configure Okular > Presentation: uncheck Enable transitions or set the Default transition to Replace.

There's probably a similar preference in Evince, the Document Viewer in Gnome/Unity if you're using that.


How to clear the cache of openarena game?

The problem is with (.openarena) header file in the home directory, once you delete that header file all the configurations rollback to the default setup.


Why are two indicator-network versions being worked on?

The conman indicator is the long term plan, the network manager indicator is the short term stop gap. there are concerns conman has some missing features which are important to some use cases and that's why development continues.

Although I just don't see why the desired features in conman weren't ported to nm.


Battery not charging when laptop is in use (14.04)

With lots of other users reporting battery problems there may be no easy answer. Trying a newer kernel (newer Ubuntu live cd/dvd/iso probably the easiest) might help, does the latest live (currently 14.10?) do the same thing?

And it would be hard for me to tell if my laptop battery were really not charging when running Ubuntu, or if it's only the battery % indicator that wasn't getting updated. I'd try timing experiments, something like charging the laptop fully while off (5hrs? 8hrs? however long it usually takes), then use the laptop unplugged for 2 hours (or however long is about half run time), then plug in and keep using for 2 more hours, then unplug and see how long it lasts. Once running Ubuntu and once running windows. If it lasts just as long in Ubuntu and windows then it looks like just the battery % not getting updated, but if it lasts for 2 or 3 more hours in Windows and turns off in 20 minutes for Ubuntu, that's the battery.

And does the BIOS show anything about the battery's charge? If it does, that'd be a great way to check the "actual" charge, before running & after running/charging for a while.

When a kernel default got changed a while ago my sensors were no longer visible without booting with the option acpi_enforce_resources=lax (added before the "--" from the live iso's F6/aditional options). Does that show anything different? (FYI sensors from lm-sensors is informative)

Also, running upower may give some more power info too, in case it's the desktop power indicator that's not updating. A command like upower --monitor-detail should "print the full details of the power source whenever an event happens."

I would assume that charging the battery would be controlled by the BIOS or hardware or something, it seems too important and hardware-specific to let any OS control that...


Ubuntu Likewise-Open won't stay connected to domain

Why don't you go to www.centrify.com/express and download and run the "adcheck" utility ... This will you what's the problem with your environment vis a vis your Ubuntu system talking to your domain controller.


Log into the guest session and type the following commands: (assuming user is your old user name)

su - user
sudo adduser user2

and follow the instructions on-screen.  If you're not on a US keyboard, don't use any "special" characters like £ à ŷ ü nor any numbers unless they're from your keypad.

Now type the following commands:

sudo adduser user2 adm
sudo adduser user2 cdrom
sudo adduser user2 sudo
sudo adduser user2 dip
sudo adduser user2 plugdev
sudo adduser user2 lpadmin
sudo adduser user2 sambashare

(If any of the above gives an error like group not found, don't worry: I'm trying to be thorough)

Now, log out of the guest session and log in as "user2" and come back here to this site.

Ah you're back!  ;-)  Please test now if you still have your problem...  No?  OK!

Now,

open the file manager
browse to the /home/user directory
copy (don't move!) all the files from Downloads to /home/user2/Downloads
check you did a good job.
Now delete /home/user/Downloads
Go back to step 3 and repeat for Documents, Videos, ...
In a terminal type the following command: deluser user --remove-home

Done!


The easy way

(which installs a graphical program that does the job for you)

Wallch has this feature now implemented! You may download and install the PPA:

For 13.10/14.04:

sudo add-apt-repository ppa:wallch/3+
sudo apt-get update && sudo apt-get install wallch

For 12.04:

sudo add-apt-repository ppa:wallch/12.04-3+
sudo apt-get update && sudo apt-get install wallch

Newest addition is the wallch-daily PPA for the more recent Ubuntu versions

sudo add-apt-repository ppa:wallch/wallch-daily
sudo apt-get update && sudo apt-get install wallch

The hard way

(which installs only what is needed and requires a little bit of command line usage)

My answer will guide you through on how to have your desktop background updated on an interval of your choice of a website of your choice.

After a search on the source code of the program Shutter so as to see what trick does it do so as to capture a web site, I found an easier way to do it, so I've edited my answer.

The easiest way around is the following:

First, install a small package:

sudo apt-get install gnome-web-photo

When the above command finishes running, then run the following inside your terminal:

mkdir -p ~/Documents/web_image
cd ~/Documents/web_image

Now, a folder under your ~/Documents folder named web_image has been created.

In this folder, place the following script, called update_background.sh:

#!/bin/bash
screen_width=1280 #<--set here your screen's width dimension
interval="300" #<--set here the seconds you want to sleep till the next update

while true; do
   gnome-web-photo --timeout=30 --mode=photo --width=$screen_width "http://google.com" $HOME/Documents/web_image/output.png
   gsettings set org.gnome.desktop.background picture-uri file://$HOME/Documents/web_image/output.png
   echo "Sleeping $interval seconds till the next update..."
   sleep $interval
done

In the above bash script, you may edit 4 parameters: screen_width is your screen's width (the same width will be the site), interval is the interval to wait till the next update of the picture, the timeout (which is a parameter on the gnome-web-photo command) which is the timeout to wait for the creation of the picture to wait, and also edit the site, which, by default I have set it to be http://google.com. You may change it to whatever you want.

After saving the script, give it executable permissions (chmod +x update_background.sh or right click on it->properties->permissions->allow executing file as program) and run it through a terminal.

This is how it looks like at my desktop background, with the site askubuntu.com:

NOTE: Sites' first page can be very long, take for example askubuntu.com. This is apparently a problem, you can solve this problem with programs like imagemagick. You can edit/crop etc. the image before setting it as desktop background (before the gsettings command). You can crop the image like this:

convert $HOME/Documents/web_image/output2.png -crop 300x300+0+0 $HOME/Documents/web_image/output2.png

The convert command is at the imagemagick package (sudo apt-get install imagemagick). Note that you have to find the dimensions that fit best (e.g. 300x300 is very small in this case, it is just an example...)

PS: You can set the update_background.sh script to start on login: Run simple bash script to start applications at login, but it would be nice to wait till you have internet connection. So, before the while loop in that script place this:

while ! ping -c 1 google.com > /dev/null 2> /dev/null; do
  echo "Waiting for internet connection..."
  sleep 3
done

So, along with the above, if you set the script running at startup and you want to crop the image, then the update_background.sh should look like something like this:

#!/bin/bash
screen_width=1280 #<--set here your screen's width dimension
interval="300" #<--set here the seconds you want to sleep till the next update

while true; do
   gnome-web-photo --timeout=30 --mode=photo --width=$screen_width "http://google.com" $HOME/Documents/web_image/output.png
   convert $HOME/Documents/web_image/output.png -crop 300x300+0+0 $HOME/Documents/web_image/output.png
   gsettings set org.gnome.desktop.background picture-uri file://$HOME/Documents/web_image/output.png
   echo "Sleeping $interval seconds till the next update..."
   sleep $interval
done


data recovery software for windows + linux platform

I would download an burn to a CD/USB Ubuntu Rescue Remix.

It has many data recovery tools such as TestDisk, Photorec, Sleuthkit amongst others + other software to directly mount windows disks etc.


Turning off wifi in Ubuntu 18.04 turns on aeroplane mode

'Aeroplane mode' just suspends radio-frequency signal transmission by the device, and thus disables Bluetooth and Wi-Fi.

If you already had Bluetooth disabled, turning off Wi-Fi disables all radio-frequency signal transmission devices of your system (presuming there are no other such device, e.g. telephony present). So Ubuntu notifies you of that fact by showing the aeroplane mode symbol. I don't see a problem there.

However, if Bluetooth is turned on and still turning off Wi-Fi triggers aeroplane mode and disables Bluetooth along the way, then it would be a bug.


Completely uninstall java on ubuntu 15.10

It says there was an error unpacking an archive. In this case, that's probably because it didn't download correctly. Delete the mentioned archive file and retry:

sudo rm /var/cache/apt/archives/openjdk-7-jre-headless_7u95-2.6.4-0ubuntu0.15.10.1_amd64.deb
sudo apt-get -f install


How can I reinstall XRandR without serious disruption to 12.04?

Xinerama and xrandr are mutually exclusive.  You get one or the other not both.

Xinerama is considered depracated.  You should avoid it whenever possible.


I can think of 3 possibilities:

You don't have PHP installed. In that case run:

sudo apt-get install php php-mysql

You have PHP installed but not enabled. You can try running:

sudo a2enmod php7
sudo service apache2 restart

You have PHP installed and enabled but you haven't restarted apache.

sudo service apache2 restart


"Could not open moddep file '/lib/modules/3.XX-generic/modules.dep.bin'" when mounting using a loop

Thanks to Braiam comments, I have solved it using

sudo apt-get install --reinstall linux-image-3.13.0


Ubuntu 14.04 - Automatically mount USB drive without clicking on it manually?

sudo apt-get install usbmount

  automatically mount and unmount USB mass storage devices This package
  automatically mounts USB mass storage devices (typically USB pens)
  when they are plugged in, and unmounts them when they are removed. The
  mountpoints (/media/usb[0-7] by default), filesystem types to
  consider, and mount options are configurable. When multiple devices
  are plugged in, the first available mountpoint is automatically
  selected. If the device provides a model name, a symbolic link
  /var/run/usbmount/MODELNAME pointing to the mountpoint is
  automatically created.


How to monitor programs that write to specific files?

The lsof command lists open files per process. The number of open files at any moment will be huge, so you want to be a bit specific.

If you know the process id, do sudo lsof -p <pid>.
If you know a directory that the files are located in, do sudo lsof
+D <directory>.

There are many more options. See man lsof. Without sudo, you can only see files opened by processes you own yourself.


Not yet another question about truecrypt on usb!

Truecrypt handles the mounting of encrypted/hidden volumes using its own executable program.  If you do not have sufficient privileges on the computer, and truecrypt is not installed, it is not possible to decrypt the drive within that environment.

Quick workaround would be to boot the target computer with another live usb containing pre-installed truecrypt. That way you could decrypt your encrypted usb drive and copy any files over to the target system and vice-versa.

This truecrypt website has information regarding why it can not run without administrator privileges. You can run the program in portable mode (meaning no installation is necessary) however you will not be able to run it without being an administrator, as documented here.


Can't locate packages vesta, vesta-nginx and vesta-php

The package doesn't exist on apt.vestacp.com, or maybe your version isn't supported or you haven't updated your apt database. In your specific case Ubuntu (it is 12.10) is not supported, but at the web-site of Vesta it was added in list of supporting.


Second hard drive isn't showing up in the Asus BIOS but is showing up in Ubuntu disks application

If you have a third hard drive to test, answer these questions:

If you plug in the third drive and the SSD, do both appear in the BIOS?
If you plug in the third drive and the 1 TB drive, do both appear in the BIOS?

Remember to reset the computer between each test - the BIOS doesn't usually detect changes and display in the settings live.

If the first situation works and the second doesn't, the problem lies in your 1 TB drive.

If the second situation works and the first doesn't, the problem lies in your SSD.

If both situations don't work, the problem is most likely in your BIOS or hardware somewhere.

If both situations work, something funky is happening. Try plugging in the SSD and 1 TB drive in at the same time again (after resetting the computer) and seeing if it works.


geany cannot run file built by g++ on kubuntu

I am not sure how old the post is, but here's a solution to the KDE compilation issue. I, too, was faced with this problem. I just went to the Geany website and checked the documentation for a solution.

To save you the trouble of searching, I am going to post the way to fix the problem here.

Go to Edit and click on Preferences.
Select the Tools tab and enter the following command in the field Terminal:

urxvt -e sh -c

or

konsole -e sh -c

or (in case the above failed)

konsole --workdir . -e sh geany_run_script.sh

I tried this and it worked for me.

I really love the Geany IDE and didn't want to part with it, especially on KDE which I also favor.

Cheers.


With the - option you're reading from "standard input". From the manpage of head(1):

when FILE is -, read standard input.

Your keyboard is the standard input in this case, as your shell doesn't provide another to head here. Everytime you provide a line, it will just process it up to 10 times as it's outputting the first 10 lines by default. As your shell will also print the input you provide, you'll see all lines twice.

When you are providing a stream to the standard input to head, then your keyboard input will not be grabbed. E.g.:

echo blaat | head -

will make echo output "blaat" to standard output and your shell will connect that to standard input of head (as expressed by the |).

Note: Without any arguments given head will also read from standard input.

A more useful (random) example for the use in connecting up standard input with head is this:

grep error /var/log/syslog | grep -iv apache | head

Will print the first 10 lines matching error, but not apache from /var/log/syslog.


New Asus laptop freezes every couple of minutes when on battery

the first problem caused by nvidia driver

if u dont have important files reinstall ubuntu then install nvidia proprietery driver ( NOT THE ONE TESTED , only PROPRIETERY ) then search in the dash for nvidia setting and set the graphic card as intel , the nvidia this time will not hang but it flikr a little thats why i told u to set intel as graph card

u cant set brightness using keyboard shortcuts in ubuntu as far as i know so dont bother

i have the same notebook except a non touch screen

if ur a normal user intel will be fine for every thing in ubuntu


BQ Aquarius Ubuntu phone bluetooth keyboard

Try tapping the device in the Bluetooth settings and clicking Connect.

If you get a PIN prompt, there's a chance you've got the same problem as described in this question.

Alternatively if it appears in your connected devices but nothing happens when you press keys, you might be having the same problem as in this question.

In either of those cases, it could help to draw attention to the issue by selecting 'this bug affects me too' on this launchpad bug report. Thanks to hugo venhorst for submitting and sharing.

(I would have preferred to use a comment but I don't have enough reputation yet. If this is a poor answer I understand if it's downvoted.)


Invalid partition table after removing Windows with OS-Uninstaller

My problem is solved: I recovered my system as it was before the problem.
For those having the same problem as I had (EFI partition formatted but all other partitions intact), you should first have an Ubuntu live-USB. Once you have it, here is exactly what to do (check out also the links at the end of this answer):
1. Read the following docs to know the necessary about EFI partitions:
https://en.wikipedia.org/wiki/EFI_System_partition
https://help.ubuntu.com/community/UEFI#Creating_an_UEFI_partition
2. Make sure the boot mode of your computer is UEFI: Access you BIOS settings (if on a Dell computer, press F2 before startup), and make sure the UEFI boot is enabled (and Legacy mode disabled).
3. Boot your Ubuntu live-USB, select "Try Ubuntu without installing" in the grub menu. Once on the desktop, verify that you effectively booted in UEFI mode by running the following command in the terminal:
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"

This should output Legacy boot on HDD. It is important to boot the live-USB in UEFI mode, because we use Boot-Repair in a following step. Boot-Repair can regenerate automatically the EFI files that were deleted from the EFI partition when it was formatted, as from my understanding, but the live-USB from which you use it should have booted in UEFI.
From this point it will be a good habit to take screenshots of your partitions and of the messages you get from the different utilities.
4. Format the EFI partition to fat32: Open GParted; make sure you identify the partition that used to be your EFI partition (normally mounted as /boot/efi; it was 500MB-large on my install); right click on the partition in the lower part of GParted's window and choose to format to fat32. Apply this change. Then, make sure this partition has the "boot" and "esp" flags (if not, you can set them with a right click on the partition, then apply the change).
5. Install and run Boot-Repair: First read the Boot-Repair doc. Then install Boot-Repair (using the commands indicated in this doc). Once Boot-Repair is opened, it is advised to do the "Recommended repair", though it didn't work in my case: it ended by a Please create a BIOS-Boot partition message, as if it did not recognize that the UEFI boot mode was on. Instead, I simply went to the "Advanced options" of Boot-Repair, then in the "GRUB location" tab, I found a box called "Separate /boot/efi partition: (select a partition)". I checked this box with verifying that the selected partition was the EFI one, and left all the other options as they were. Then I applied the repair. Accept to create a BootInfo report and to post it into a pastebin (note well the link to this pastebin, just in case).
After that, a reboot should show you a GRUB, from which to access your previous install.

Useful/Related posts

https://superuser.com/questions/764799/how-to-create-an-efi-system-partition
Removed UEFI partition, how do I fix a new one?
Accidentally deleted efi partition

Note: In the OS-Uninstaller doc, there should be a warning with an invitation to verify that the partition found by OS-Uninstaller as the one to format is not shared with another installed OS. In my case, to uninstall Windows, OS-Uninstaller proposed automatically to delete the content of my EFI partition, while it was also used by my linux install. All of this happened because I trusted the ability of OS-Uninstaller to do what was needed.


If you are installing mysql-server on windows subsystem ubuntu18, then you can directly go to install ubuntu1604.
I've tried a lot of solution but only on ubuntu1604 I can apt-get install mysql-server normally.
Meanwhile, if you have installed mysql software before on your windows 10, you should uninstalled win10 mysql first somehow. ( I don't know the reason)

After all of that, try the following commands

sudo apt purge mysql*
sudo rm -rf /var/lib/mysql
sudo rm -rf /etc/mysql
sudo apt autoremove
sudo apt install mysql-server


In go, there is a directory with all binaries rather than one bin directory per project.
So let's say you want all your go binaries to be in $HOME/go/bin. Then run
mkdir $HOME/go/bin
GOBIN=$HOME/go/bin; export GOBIN

However you don't need to set GOBIN if the GOROOT environment variable is set up properly. So I suggest using the instructions given in https://golang.org/doc/install
Also see https://groups.google.com/forum/#!topic/golang-nuts/-mN8R_Fx-7M where Russ Cox informs:

If GOBIN is set, that's where binaries end up.  If GOBIN is not set, then the binaries end up in a directory named 'bin' under the root of the tree where the source code lives.  For things in $GOROOT, that means
$GOROOT/bin.  For things in in a GOPATH directory DIR, that means DIR/bin.  Note that GOPATH can have multiple directories in it
export GOPATH=/dir1:/dir2:/dir3

If GOBIN is not set, binaries from /dir1/src end up in /dir1/bin, binaries from /dir2/src end up in /dir2/bin, and so on (and binaries from $GOROOT/src end up in $GOROOT/bin).


My Ubuntu 12.04 Installation hangs after "Preparing to install Ubuntu". What can I do to work around the problem?

Thanks KodduX and Jonathan Acosta - you brought me to the right track!!!

I did three things and in combination they worked. Actually I don't know which of those (or the combination) made the big difference.

As it did not work from CD, I made a bootable USB stick and started from there (opposite of what worked for Jonathan)
I started with the "try out" (like suggested from KodduX - Thanks!!) version and there click on Install Ubuntu
I did uncheck the two checkboxes (Update from Internet and install software) - with those checekd it did not work

Thanks for all that helped!!!


Kubuntu 16.04 Driver Manager broken Using the newest Flavor (as in 16.04) and Kernel, their are multiple answers that apply to your question here.


Run gksu nautilus to get a file browser window with root access, then open /home, and select everything except your home directory ( and any other home directories if you have more than one user ) and delete it.  Hold down shift when pressing delete so it doesn't go to the trash bin, and then close the window when done.

You can run sudo update-grub to update the boot menu without the removed system.


Can I use a wireless keyboard and mouse when first installing Ubuntu?

As explained in the comments, if there are drivers for your wireless keyboard in default installation, it will work. Otherwise, no drivers - won't work.

According to one of the question on the Amazon page you linked, that keyboard doesn't work with Linux. Source:

https://www.amazon.com/ask/questions/Tx2ZBAUN8RZULG0/?source=allQuestionsPage

Although, according to the seller, it works in Android, so that answer isnt 100% reputable, I'd say.

Wired keyboards, particularly USB ones, are supported fully, so I would recommend you use that if you are unsure. Then after installation try testing your Bluetooth keyboard, maybe it'll work


Unity is not available for 10.04 LTS.

However, the LTS is only for desktops - as per the Ubuntu Wiki

  In 10.04, the Netbook Edition was not an LTS.

It is recommended that you download 11.04 again, run a checksum to make sure the file is OK, and then try again - be patient, the 11.04 LiveCD takes a long time (about 4-5 minutes for me) to boot up.


Seagate 2T external hard drive can not be mounted, detected by lsusb but not by fdisk -l

After hours searching, this method works for my case:

go to /var/log/syslog to find idVendor and idProduct:

 [ 1582.945936] usb 4-1: New USB device found, idVendor=0bc2, idProduct=ab24

turn off uas:

echo options usb-storage quirks=0bc2:ab24:u > /etc/modprobe.d/ignore_uas.conf

Do this (I don't understand why it needs this though):

locale-gen --purge --no-archive

unplug the external hard drive and reboot VM

reference source: https://forum.parallels.com/threads/usb-hdd-not-responding.330268/

Hope it helps you.


How to stop bash prompt colours from escaping

You cannot have a function that outputs both text and color, in the bash prompt. Everything the function outputs gets taken literally. I suggest going about it a different way.

First off, what the prompt tries to do, is check if you're in a git tree, and if so, add a colored (branch) to the prompt. Instead of checking everytime the prompt is printed, you really only need to do that check whenever you change directory, so we can override the only three commands that can change directory to set the variable git_branch to the name of the current branch, if any.

cd() {
    builtin cd "$@" || return
    git_branch=$(git branch 2>/dev/null|sed -n '/^[*] /s///p') || true
}
pushd() {
    builtin pushd "$@" || return
    git_branch=$(git branch 2>/dev/null|sed -n '/^[*] /s///p') || true
}
popd() {
    builtin popd "$@" || return
    git_branch=$(git branch 2>/dev/null|sed -n '/^[*] /s///p') || true
}

Next up, check if stderr is a terminal, and set colors with tput

user_color= dir_color= git_color= reset=
if [[ -t 2 ]]; then
    user_color=$(tput setaf 2; tput bold)
    dir_color=$(tput setaf 4; tput bold)
    reset=$(tput sgr0)
fi

And a function that outputs one of two colors based on whether there are changes or not

_git_color() {
    [[ $git_branch && -t 2 ]] || return
    if git diff --quiet >/dev/null 2>&1; then
        tput setaf 1
    else
        tput setaf 3
    fi
}

Now, putting the prompt together. This is a bit cumbersome as some variables should be expanded at assignment (now), while some should be expanded when the prompt is printed, so we need to alternate quotes, plus it gets rather long. Using an array for this should help keep the overview

prompt=(
    "\[$user_color\]" '\u@\h' "\[$reset\]"
    : "\[$dir_color\]" '\w' "\[$reset\]"

    '${git_branch:+ (}'
    '\[$(_git_color)\]' '$git_branch' "\[$reset\]"
    '${git_branch:+)}'

    '\$ '
)

I ommited the debian_chroot stuff here, I've never needed it myself, you can of course add that if you want. Finally, join the prompt array and clean up the variables we no longer need.

printf -v PS1 %s "${prompt[@]}"
unset user_color dir_color reset prompt


How can i modify the opacity only for the task manager in Kubuntu 20.04?

It's not possible to modify the widget. Reply from the author of the widget.


Gnome Energy Saving: How to turn of the watch screen?

Lots of people are annoyed by this "Screen Shield" or "Curtain" or "Swipe to Unlock" as it is can be called. This Ask Ubuntu question has 33 up-votes: How to remove "phone style" Gnome swipe to unlock

The answer with the most votes states:

  Open Ubuntu Software and install the GNOME Shell Extension called:

  Disable Screen Shield

  This works for Ubuntu 18.04

  Source: Disable Screen Shield

Note most users say it works with 18.04, but one commented it doesn't work. It could just be s/he didn't install it correctly.


I used the terminal to change my password, but it's not applying the change

If you really used command sudo passwd (with no additional argument), then you changed the password for the root account - not your user account. In Ubuntu, which locks the root account by default, this will have had the side effect of unlocking the root account.

To change your own user account password, you should simply type

passwd

and follow the prompts. You can reset the default status of the root account by deleting the (new) root password and locking it using

sudo passwd -dl root

To change a different user's account password, you would need sudo - but would follow the command by the account name:

sudo passwd otheruser


This integrated video adapter GeForce 7025 / nForce 630a never worked well with proprietary nvidia-304 drivers. It works quite well with nvidia-173, but it is not supported in Ubuntu 15.04, as far as I know.
I would suggest one of these solutions.

Try open source driver. It should work quite well for this chip.
Install Ubuntu 14.04 LTS with nvidia-173 driver.


unable to locate etc/apt/sources.list (Ubuntu 16.04)

when you open terminal it's directory sets to /home/... (see the address on your gedit it says /home/madhurya/etc/...). so if you want to go to etc folder you must use / before it. this should solve your problem:

gksudo gedit /etc/apt/sources.list


If there a way to configure the delay between the time the mouse moves out of the launcher and the time the launcher closes?

This could help. The quick response is to hit Alt+F2" and write "about:config" then configure Unity (you should adjust "Edge reveal timeout"). Best regards,


How one can create an installer for custom keyboard layout

To add it to the official xkeyboard-config package, you would develop it as a patch for the xkeyboard-config package.  See their code contribution guide; contributed layouts are made by patches on their bug tracker.  You can clone the upstream repository with:

git clone git://anongit.freedesktop.org/git/xkeyboard-config

From a quick glance at your layout, I think you need to add the default keyword to the stanza definition (default xkb_symbols "basic"), to declare that layout the default for that file.  Your file itself would be put in the symbols directory.
In addition to your new layout file, you'll need to add it to the rules templates (rules/base.xml.in or possibly rules/base.extras.xml.in -- the rules/evdev.xml file will be generated from the same template).
Doublecheck the project documentation for other specifics that I might have missed.

You could also add that patch to the Ubuntu source package apply it with the standard dpkg build tools.  This would allow you to distribute your modifications to other Ubuntu users with minimal difficulty.  See questions like How to create and maintain patch on Debian package? for more specifics.


What happens when there are 2 versions of a terminal command installed?

Debian-based distributions have so-called "alternatives" system, which allows to have more than one program installed which perform the same function (this also includes different versions of the same program, like Java 6 and Java 7). As @user15936 points out, the system works by manipulating symlinks, so "javac" can point to the executable either from OpenJDK 6 or from OpenJDK 7

The command to manipulate the above mentioned symlinks (the process is in fact more complex than that as it includes some configuration, for example manpages change too etc.) - is called update-alternatives. You can learn how to use it by typing man update-alternatives in terminal.

To directly answer your question, another way to determine which javac executable will be invoked is by doing

update-alternatives --display javac


Wacom touch screen not working at all Ubuntu 16 or 17 on Thinkpad x230 Tablet

Try closing and opening the screen. It happened to me after booting with an opened screen. Possibly the wacom hardware thought the laptop was in a closed state. If it's working on Windows but not on Ubuntu though this solution most likely won't work.

Mine is a Thinkpad S1 3rd gen. Also a tablet/laptop hybrid.


I installed nodejs-legacy:

sudo apt-get install nodejs-legacy

and things started working fine :)


grub rescue command. grub not working in ubuntu 13

I have had that happen to me once.  Here what you can do.  Try Boot-Rpair, and EasyBCD first, if that doesn't help, then here's what you can do.

Boot from the Ubuntu LiveCD, and once booted, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install wipe

Once installed, find your drive's label using:

sudo fdisk -l

Once you get the device label, do:

sudo wipe /dev/sdaX

Replce X with your drives ID.

The procedure is irreversible.  All data on the drive will be completely gone , and probably won't be able to recover.

You need to figure our the correct hard drive to wipe. If you wipe the wrong hard drive, that data will not be recoverable, so be extra careful!


How to dynamically get name, version and other info from a Python app at runtime

You can place a constants.py for example, in the python package for your program, and define the values there, instead of in setup.py. You can then import that module from setup.py or the code which shows the about dialog, and set the appropriate values from the appropriate constants.


gremlins?

try another browser and see if they still appear
reinstall your current browser.
toggle the hardware acceleration setting.
be careful if you have liquids around

have a good one.


Would anyone know why when I plug my headphones in, my speakers don't turn off?

It's probably because your sound card isn't known to Ubuntu, or needs a tweak ("quirk") in /etc/modprobe.d/alsa-base.conf

For example, Dell laptops often need options snd-hda-intel model=dell-m6-dmic to be added to the end of the file.

Look here as a starting point for your model.

This is probably a duplicate of Question 100.


I discovered the solution by running dpkg -L povray which told me where all POV-Ray-associated files were and I found the missing povray.conf file was (/etc/povray/3.7/) so I ran this from the terminal (from my home directory):

ln -s /etc/povray/ .povray

which created a virtual link between the directories so that when POV-Ray went looking in the /home/fusion809/.povray/3.7/ directory it found what it was looking for.


How can I delay start-up based on time of day?

You can write a script which is run by lightdm when you login. e.g:

#!/bin/bash
if ((`date +%H` >= 20)); then
    sleep 10
fi

The above script will cause a 10 sec delay if the you try to login between 20:00 and 23:59. Make the script executable and place it somewhere, e.g ~/bin/login_script

To make it run by lightdm edit /etc/lightdm/lightdm.conf and add the following line:

session-setup-script=/home/myuser/bin/login_script


Why my WSL ubuntu 18.04 is showing me black screen?

Do you see the select on the title bar?  This means that you have clicked on the window and it has stopped, waiting for a response.  The same thing happens with the cmd prompt.  Just click in the window again and hit return.


I want to install Windows 7 alongside Ubuntu 14.04 but I have a problem

As far as i see, you're using a LVM volume, which is kind of software RAID. For these partitions you cannot use parted. Look into the documentation of LVM at https://wiki.ubuntu.com/Lvm on how to resize LVM volumes.


SmART Gallery extension on LibreOffice not working

Install the libreoffice-java-common  package.

Clicking the above link will install it in the Software Center. If you prefer to use the Terminal, run:

sudo apt-get update
sudo apt-get install libreoffice-java-common

This package and its dependencies (which will be automatically installed with it, if you don't already have them) should fix the problem producing that error.


How to block ip forwarding for specific remote ip address

Try to add in the *filter section of /etc/ufw/before.rules

-A ufw-before-forward -o eth0 -d xxx.xxx.xxx.xxx/xxx -j REJECT

This will discard packet before forward


Find and remove common characters that should not be used in filenames and folders

The Perl-based rename command accepts regular expression patterns, so you can use a character set expression [\:*?"<>|] (note that you can't use OR replace / in a Unix filename, since it's the path separation character).

Ex. given

$ ls fi*
 file   file1   file2   file.log  'fi:le*na<me>'   file.txt

then

$ rename -n 's/[\:*?"<>|]//g' *
rename(fi:le*na<me>, filename)


KDE connect can not browse my android phone

Just installing Dolphin worked for me. However, I have been trying to transfer a couple of hundred files from my phone to the PC, but it wasn't very stable - disconnected a without warning and then the devices couldn't find each other until I shutdown  KDEConnect on the PC completely (including kdeconnectd) and re-paired them.


Getting a "General error mounting filesystems" after upgrade to 13.04

Try to use Boot-Repair Tool.

Many cases of problems relating to the boot are a mal-function or bad-installation of Grub or something related to the MBR and partition table, noticing that Boot Repair Tool was created aiming to give an easy way to fix this common problem, recommended by Ubuntu team.

Obs.: If you don't get access to the internet during use of Boot-Repair you won't get the URL mentioned below that can give us important details about your problem in case the recommended repair doesn't work.

Get a CD including Boot-Repair

Since you are unable to start Ubuntu there are two options to get Boot Repair Tool:

Use this ISO to create a bootable Live-CD/USB of Boot-Repair Tool
Boot your pc from Linux Security Remix where Boot-Repair Tool will be included by default

Choose one of the options, start Boot-Repair and click the "Recommended repair" button. When repair is finished, note the URL (paste.ubuntu.com/XXXXX) that appeared on a paper, then reboot and check if you recovered access to your OSs.

If the repair did not succeed, indicate the URL to us as it will give us more information about the error.

For more details and info about advanced options please read this Ubuntu help page.


Creating a minimal desktop environment to run EmulationStation

It looks like the executable EmulationStation is not in the list of directories that are searched for executables when no directory is specified (i. e. the content of the environment variable PATH). You can use the full, absolute path to the executable in the Exec= entry instead.


For a safe alternative to manually removing PPA's, you can install a tool called ppa-purge

You can install this by running:

sudo apt install ppa-purge

And then to remove the ppa, you can simply run:

ppa-purge ppa:ppa_name_here

What does this tool actually do?

Instead of doing something like

sudo add-apt-repository --remove ppa:ppa_name_here

ppa_purge is a safe alternative because it gracefully downgrades whatever was installed from the mentioned...

And to answer your question, assuming that the "already installed software" was installed through the ppa... It will be most likely be gracefully removed...

And as to your second question, one may never know what errors may or may not arise from these specific situations...


I Have Problem with swap memory in ubuntu 20.04 LTS

From the comments...

You're probably using the standard 2G /swapfile that comes with a fresh install of 20.04, instead of the carefully crafted 10G swap partition that you've created.

Decide which type of swap you wish to use.

To stick with an enlarged /swapfile, do this...

Note: Incorrect use of the dd command can cause data loss. Suggest copy/paste.

sudo swapoff -a           # turn off swap
sudo rm -i /swapfile      # remove old /swapfile

sudo dd if=/dev/zero of=/swapfile bs=1M count=8192

sudo chmod 600 /swapfile  # set proper file protections
sudo mkswap /swapfile     # init /swapfile
sudo swapon /swapfile     # turn on swap
free -h                   # confirm 8G RAM and 8G swap

Add this line to /etc/fstab...

/swapfile    none    swap    sw      0   0

To stick with the 10G swap partition...

sudo blkid | grep -i swap # identify the UUID

sudo -H gedit /etc/fstab # edit the file

If it exists, remove this line...

/swapfile    none    swap    sw      0   0

Locate your current swap mount, and change it to include the proper UUID, or add a line that looks similar to...

# swap was on /dev/sdb5 during installation
UUID=xxxx-xxxx-xxxx-xxxx  none  swap       sw       0       0


freshly formated partition ext4 showing 3.4 Gib used. Ubuntu 18.04

This is likely due to the data of the filesystem itself, or the system configuration of it. In just about any case, you'll see a portion of a disk or partition used by the filesystem or disk management systems. That particular bit of used storage shouldn't change in size in any noticable way.


Is the "HTC Desire (A8181)" Android 2.2 phone supported?

If you wanted to know if Ubuntu recognize HTC Desire, the answer is yes.
I can't think of anything else that would make it "supported".


Can't open boot menu after installing mainlline kernel

I would recommend a GRUB reinstall, from your working Ubuntu install open a terminal (CTRL+ALT+T)

sudo grub-install /dev/sdX

Where /sdX is your preferd partition for GRUB, now update GRUB

sudo update-grub

That should do it but if still don't see grub hold the SHIFT key just after your bios is shown.


Ubuntu 18.04 Touchscreen Kiosk – Disable Multi-Touch Gestures

It seems these gestures cannot be disabled with gsettings.

However, the Gnome Shell Extension "Disable Gestures" worked perfectly for me.

Automated Installation

I recently added an installation command to gnome-shell-extension-tool. This is not merged into upstream yet. But the whole tool is just a single Python 3 script. So you can simply download and use my patched version of the file and run the following to install and enable disable-gestures@mattbell.com.au:

# Download extension
wget "https://extensions.gnome.org/extension-data/disable-gestures%40mattbell.com.au.v2.shell-extension.zip"

# Install extension
gnome-shell-extension-tool -i disable-gestures@mattbell.com.au.*.zip

# Enable extension
gnome-shell-extension-tool -e disable-gestures@mattbell.com.au


Ubuntu won't boot after plugging in wireless network card

Have you tried booting into a Single User mode to see what driver Ubuntu is trying to load for this card?

From GRUB Screen:
Select Kernel
press 'e' to edit and append single to the line

Once in the single user mode run:

lspci -vvv

and post the output.  Based on what I can see about this card the driver for it should be the Windows one using ndiswrapper but based on the CHIP on the card UBUNTU may try to select something else and that may be causing some problems.


Thunderbird :: Stuck at Google sign-in (xenial)

higher version number for thunderbird:

thufir@dur:~$
thufir@dur:~$ thunderbird -v
 Thunderbird 52.4.0
thufir@dur:~$
thufir@dur:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.10
DISTRIB_CODENAME=artful
DISTRIB_DESCRIPTION="Ubuntu 17.10"
thufir@dur:~$

worked on clean install without configuring or reconfiguring anything on google or gmail.  Some sort of bug with older thunderbird versions most likely.


Can't compile matplotlib on Ubuntu 11.04 / ft2build.h: No such file or directory

I found these dependencies in the install file:

  matplotlib core: zlib, zlib-devel, libpng, libpng-devel,
                   freetype, freetype-devel, freetype-utils

  gtk backend: gtk2-devel, gtk+-devel, pygtk2, glib-devel,
               pygtk2-devel, gnome-libs-devel, pygtk2-libglade

  tk backend: tcl, tk, tkinter

Do you have all those installed?


Since, Intel's NUC devices basically uses Intel core i3 processors, which are well supported by Linux and Ubuntu, Ubuntu should be Ok on these devices. Also, note that there is nothing special in Windows to be eligible for running on an architecture, where Ubuntu can't.

Specification details of an NUC computer

Here is also an article saying the same thing

  Microsoft's Windows 7 and Windows 8 is supported as is the Ubuntu Linux distribution meaning most users are catered for. - source


Start by removing everything related to WineHQ:

sudo apt-get purge wine*

Now run a clean-up to get rid of all remaining stuff (Btw. Where does all the KDE stuff come from?). This will remove any program that was installed as a dependency, which isn't needed any more.

sudo apt-get autoremove

Now run sudo apt-get install -f, in case there still are broken packages.

Install PlayOnLinux:

sudo apt-get install playonlinux

Handle everyting Wine-related using PlayOnLinux. It has a virtual drive manager, which creates a wine prefix for each program you install.


Desktop Ubuntu 13.04 Nexus 7 (grouper) mirror download?

This is the last Ubuntu 13.04 Preinstalled Desktop image for Nexus 7.


/dev/dri/card0: No such file or directory

According to the questioner, user152037, reinstalling the drivers fixed it:

sudo apt-get install --reinstall xserver-xorg-video-intel xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg


How to install Symfony 1.4.18 on Ubuntu server 20.04

You need to run old  php version < 5.6 , and the same apache modules tha were in orginal.
You writeing about copying  files - but  what about  databases ?


add-apt-repository: Problem with the SSL CA cert

Nobody helped me =( But I found solution: reinstall package "ca-certificates" helped me))

Thanks to this log =)
http://irclogs.ubuntu.com/2012/05/26/%23kubuntu-devel.html


Edit crontab file in /etc as root user and add a line, Newbie challenged with syntax

Don't use ;, use &&
cd /var/www/1crm && /usr/bin/php7.4 scheduler.php

You test cron jobs by adding logging.
Add  >> /var/log/scheduler.log 2>&1 to the end and all prints and error notices will be added to scheduler.log.


Is there an Ubuntu shortcut for moving the cursor to the next word

In most GUI programs, Ctrl + Left/Right will work as expected. In the terminal, the defaults are different. You can use Alt + F and Alt + B or you can set up your terminal to use Ctrl + Left/Right as well.

To do so, add these lines to your ~/.inputrc file (create the file if it does not exist):

"\e[1;5D": backward-word ## good: Ctrl+left
"\eOd": backward-word
"\e[1;5C": forward-word
"\eOc": forward-word

Then, open a new terminal and the Ctrl + Left/Right  shortcuts should work. For more info on the strange syntax used, see my answer here.

Note, however, that this should be enabled by default on Ubuntu, at least it is on my 14.04 install.


Can I uninstall a previous release and then reinstall a newer release using Wubi?

Yes, you can just remove Ubuntu from the Add/Remove Programs or Programs and Features control panel, and then install the newer version.

However, if you want to preserve your data and settings, you will need to back up your home directory from within Ubuntu. You can do this by booting into Ubuntu and copying things over to your Windows drive or a USB storage device.


What are the downsides of removing ubuntu-desktop metapackage?

Removing the meta-package usually will not be a problem until you try to upgrade your system, but I would advise against it. Removing gedit and some of the other standard applications can also be problematic - if other programs depend on them. It is best that you leave them in place unless you know what you are doing. If you want to build your own minimal custom system, try using ubuntu-minimal.


There's no way to search for git repositories from your local system like with apt or docker, simply because there is no centralized servers for this type of software. git isn't really for software "download" or package distribution, but for source code version control.

You still can search Github and Gitlab sites, but that's as far as it gets.  And of course you have to rely on the internet search engine of your choice.


There is no tabbed interface in Okular.

Read This.


How do I associate the correct icon for my login?

Option 1

Save the file: http://en.wikipedia.org/wiki/File:LibreOffice_3.3.1_Calc_Icon.png

Later edit your ~/.local/share/applications/libreoffice-calc.desktop.

Find line with:

Icon=libreoffice-calc

And change it to your save file into:

Icon=*path-you-have-saved-it*

Option 2

Locate file icon in your system using search option. In my case it is like:

/usr/share/icons/Humanity/mimes/256/libreoffice-oasis-spreadsheet.svg

so your line should look like:

Icon=/usr/share/icons/Humanity/mimes/256/libreoffice-oasis-spreadsheet.svg


How to upgrade back to xorg 1.13 after downgrade to 1.12 in ubuntu 12.10?

Install Synaptic package manager, find xorg-server package with ppa version 1.12, then from menu choose 'force version', and select 'ubuntu-updates'. After all, you'll loose all the system, but that's repairable: in terminal, type

sudo apt-get install ubuntu-desktop

Have fun! :-)


"Welcome to emergency mode" at boot after using NTFS-config

If a line in the /etc/fstab file became obsolete because of changes made to the system, it should be commented out by preceding it with a number sign #:

#Entry for /dev/sdb2 :
#UUID=0801A6590A9ED79E   /media/username/HARDDRIVE   ntfs    defaults,nls=utf8,umask=0222,nodev,nosuid   0   0

This way it will be ignored on the next boot.


In this way I'll be able to encrypt only the files in /home and not the ones in /data, right?

Yes.

  Would the /data partition be accessible to someone who doesn't know my Ubuntu login password?

Yes. It is unencrypted so someone that has access could reboot with a live cd, mount the disc and extract the contents.

  In future, could I install a new distro/release simply by formatting the "/" partition, without making any change and/or loosing any data in my /home and /data partitions, keeping all my files there? (of course I'll back up all the files, but just for info)

Yes. If you do not format home at that time and just mount it as home and use the same username(!) for the new system.

  What happens to my current encrypted /home folders? Will I be able to format them correctly without any space loss (i.e., an hidden backup/space allocation for my previously encrypted /home folders)?

Ehm, you are not formatting /home... You said that in the other question. If you format it the data is gone... encrypted or not encrypted, hidden or not hidden.
You mount /home during a format/re-install.

  Even if I am seldomly going to use Windows, should the ntfs partition be the first one in my partitioning tree?

No, unless it contains the OS.


Building a version of ubuntu without any USB functionality

USBGuard
USBGuard software framework helps to protect your computer against rogue USB devices by implementing basic whitelisting and blacklisting capabilities based on device attributes. To enforce the user-defined policy, it uses the USB device authorization feature implemented in the Linux kernel since 2007.
By default, USBGuard blocks all newly connected devices and devices connected before daemon startup are left as is.
A quick way to start using USBGuard to protect your system from USB attacks is to first generate a policy for your system. Then, start the usbguard-daemon  with the command sudo systemctl start usbguard.service. You can use the usbguard command-line interface command and its generate-policy subcommand ( usbguard generate-policy ) to generate an initial policy for your system instead of writing one from scratch. The tool generates an allow policy for all devices currently connected to your system at the moment of execution.1
Features

Rule language for writing USB device authorization policies
Daemon component with an IPC interface for dynamic interaction and policy enforcement
Command line and GUI interface to interact with a running USBGuard instance
C++ API for interacting with the daemon component implemented in a shared library

Installation
To install USBGuard in Ubuntu 17.04 and later open the terminal and type:
sudo apt install usbguard

Installation of USBGuard in earlier releases requires compilation from source which in turn requires the installation of several other packages as dependencies.
1Revised from: Built-in protection against USB security attacks with USBGuard


Dual boot - Ubuntu Mate 18 / Windows 10 : issue with Intel Corporation Wireless-AC 9560 [Jefferson Peak]

I suggest that you try a driver parameter:

sudo modprobe -r iwlwifi && sudo modprobe iwlwifi lar_disable=Y

If it seems to solve the issue, then I suggest that you make it permanent:

sudo -i
echo "options iwlwifi lar_disable=Y"  >>  /etc/modprobe.d/iwlwifi.conf
exit

You should be all set.


what php editor is good for development?

In my option, Vim is the best editor for anything. I use it for python, shell script, c++, php, simple txt files etc. Vim is high configurable and it makes you a whole lot more productive. It takes some time to learn how to use it but believe me, it worth. You can install it using Ubuntu Software Center or download from the official site http://www.vim.org.


16.04 LTS: bluetooth still running after turning it OFF, impossible to really stop bluetooth

Turning bluetooth off in the panel/bluetooth indicator doesn't stop the bluetooth service, but it powers the device off.

You can check the power status using:

bluetoothctl <<< show | grep Powered

Edit:

My first assumption (device only gets powered off by the indicator switch) seems not to have been entirely correct. The "Powered: no" state seems to appear only occasionally, and is probably not the intended behaviour (bug?).

Usually, turning bluetooth off from the indicator or bluetooth settings soft-blocks the device using rfkill, which causes the device to entirely disappear from the bluetoothctl list (and coincidentally also makes the bluetooth indicator disappear, which can probably be considered another bug).

Please try turning it on and off again from the bluetooth indicator or settings...

You can check the rfkill blocking states of all wireless devices using

rfkill list

If bluetooth is turned off by software (not a hardware switch), you should expect something like this in the output:

2: dell-bluetooth: Bluetooth
    Soft blocked: yes
    Hard blocked: no


How to mount an internal HDD on start-up?

You can add an entry in fstab to auto mount your partitions at Ubuntu startup. you can read more about fstab at Ubuntu Wiki


Task Bar at the top missing Applications, Places and System menu

Try using Mate Desktop Environment. This is a fork of the classic GNOME 2.0 Desktop Environment. So you'll get the Applications, Places & System.

More info :

http://mate-desktop.org/

Installation Guide :

http://wiki.mate-desktop.org/download


I think I found it:
/run/user/1000/gvfs/afc:host=blablablha/DCIM/


Just installed Ubuntu 12.10 and Gnuplot wxt terminal doesn't work

Just add gnuplot-x11 package via the terminal (CTRL+ALT+T):

sudo apt-get install gnuplot-x11

or via the software-center:


How to fix name resolution issue after an update to Cisco AnyConnect Secure Mobility Client on an Ubuntu?

In the "Cisco AnyConnect Secure Mobility Client" window, where it says "connect to" in the first line, there was an extra space in the link provided and after few months, I just figured that out after speculating that some file (which I still do not know what) should have been corrupted due to a wrong URL entry. By trying entering the same link to the vpn address by typing it literally rather than copying and pasting,it turned out that only an invisible empty at the end was the cause of the problem.


Install linux-headers on nexus 7 2013 running ubuntu touch

Well, being not very experienced in ubuntu touch, android, linux, armhf stuff, I wasn't able to do it right and straightforward way.
Perhaps hacking boot.img could help but I'm not ready for this.

The only workaround I was able to imagine is mounting /lib/modules/3.4.0-5-flo to different new loop device. It works though.

cd /userdata
dd bs=1M count=100 if=/dev/zero of=build.img
losetup /dev/loop2 build.img
mkfs -t ext3 -m 1 -v /dev/loop2
mkdir /eee
mount -t ext3 /dev/loop2 /eee
cp -r /lib/modules/3.4.0-5-flo/. /eee
umount /eee
mount /dev/loop2 /lib/modules/3.4.0-5-flo
rmdir /eee

From this point I got able to install linux headers and compile Moxa's drivers.
I have discovered that drivers makefile aslo writes to /lib/modules/3.4.0-5-flo by the way.

So, to make mount permanent, and failed to change /etc/fstab I had to add to rc.local:

losetup /dev/loop2 /userdata/build.img
mount /dev/loop2 /lib/modules/3.4.0-5-flo
modprobe mxu11x0

I know it's rather wierd solution, but worked for me :)


MS Outlook replacement app. and how to install for a novice Linux user

When I stopped handling mail in outlook, I wanted to switch to thunderbird, but my mail PST folder covered ~15 years (using a lot more than just email syncing with my then ipaq cell phone), and I found evolution easier to import it. I've been using evolution every since.

It's installed with a

sudo apt install evolution

or you can go to Ubuntu-Software, Synaptic, Aptitude, Muon, Software-Boutique or whatever software packaging tool/store came with your Ubuntu system, and search for evolution there & click the 'install' button. (it may not appear in all, but usually you have two package options when one is not complete.  My Lubuntu came with Muon & evolution is there & listed as installed)


How to track down the copy and move operations of files and folders?

What you are asking for is a "file system watcher".
iWatch

iWatch is a realtime filesystem monitoring program. It's a simple perl script to monitor changes in specific directories/files and send email notification immediately. It reads the dir/file list from xml config file and needs inotify support in kernel (Linux Kernel >= 2.6.13).

There are more but this seems the most simple method, is native to Ubuntu and uses inotify (so it does not hog the system).
iWatch comes in 2 methods:

command line
daemon

Some command line options for logging:
-m <email address>
   Specify the contact point's email address. Without this option, iwatch will
   not send any email notification.

-s <on|off>
   Enable or disable reports to the syslog (default is off/disabled)

Some command line examples:
iwatch /tmp

monitor changes in /tmp directory with default events
iwatch -r -e access,create -m cahya@localhost -x /etc/mail /etc

monitor only access and create events in /etc directory recursively with /etc/mail as exception and send email notification to cahya@localhost.
iwatch -r -c "(w;ps -ef)|mail -s '%f was changed' cahya@localhost" /bin

monitor /bin directory recursively and execute the command.
iwatch -r -X '\.svn' ~/projects

monitor ~/projects directory recursively, but exclude any .svn directories inside. This can't be done with a normal '-x' option since '-x' can only exclude the defined path.

Example config file when using daemon mode mode. Logging is done with XML options in the configuration file:
<config>
  <guard email="myadmin@localhost" name="IWatch"></guard>
  <watchlist>
  <title>Public Website</title>
  <contactpoint email="webmaster@localhost" name="Web Master"/>
    <path type="single">/var/www/localhost/htdocs</path>
    <path type="single" syslog="on">/var/www/localhost/htdocs/About</path>
    <path type="recursive">/var/www/localhost/htdocs/Photos</path>
  </watchlist>
  <watchlist>
  <title>Operating System</title>
  <contactpoint email="admin@localhost" name="Administrator"/>
    <path type="recursive">/etc/apache2</path>
    <path type="single">/etc/passwd</path>
    <path type="recursive">/etc/mail</path>
    <path type="exception">/etc/mail/statistics</path>
    <path type="single" filter="shadow|passwd">/etc</path>
  </watchlist>
  <watchlist>
  <title>Only Test</title>
  <contactpoint email="root@localhost" name="Administrator"/>
    <path type="single" alert="off" exec="(w;ps -ef)|mail -s %f
      root@localhost">/tmp/dir1</path>
    <path type="single" events="access,close" alert="off" exec="(w;ps -ef)|mail -s %f
      root@localhost">/tmp/dir2</path>
    <path type="single" events="default,access" alert="off" exec="(w;ps -ef)|mail -s '%f is
      accessed' root@localhost">/tmp/dir3</path>
    <path type="single" events="all_events" alert="off">/tmp/dir4</path>
  </watchlist>
</config>

With this configuration, iwatch will monitor a single directory /var/www/localhost/htdocs without its sub directories, and any notification will be sent to the contact point webmaster@localhost. But it will monitor the whole directory tree of /etc/apache2, including any sub directories created later after the IWatch is started. You can use also create exceptions here if you don't want to get notification for a file or subdirectory inside the monitored directory.


Google Chromium broken after installing nvidia drivers on ASUS ROG laptop

I've resolved the issue by removing ~/.config/chromium directory.


The intro message you quote is hard coded in this xfce4-about file:

http://git.xfce.org/archive/xfce-utils/tree/xfce4-about/main.c

xfce4-about is the program that you are running when you click "About XFCE".  It is part of the xfce-utils package.

As you can see by viewing the above file, the list of core packages is generated programmatically.

Modifying any of this would require modifying the above .c file and compiling your own copy of the xfce4-about program.


How to set icon properties in Kubuntu 11.10 launcher?

I used gnome-desktop-item-edit as described at http://www.youtube.com/watch?v=GfTfc-DLtpU to create a .desktop file. Then I used Dash home to search for the app and dragged-and-dropped the icon into the launcher.


Error with AWS EB CLI after upgrade to Ubuntu 20.04

EDIT
The original answer was to uninstall Python 3.8 then install the utils for 3.7. DO NOT DO THIS. While this did allow me to use EB CLI, Ubuntu 20.04 needs Python 3.8 to run it's GUI. As a result, after restarting the machine I was unable to log back into the Ubuntu GUI.
A better way to do this would be to remove Python 3.7 and reinstall it...
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.7