Regarding restoration of data via Deja Dup

It is not possible unless you backed up your data to an external drive or cloud service. You need the files stored in the deja-dup folder to restore. I recommend installing Dropbox and changing your backup folder location to be inside your Dropbox folder so you can restore.


bash function cannot change the value of a local variable when called by $()

That's because the command substitution, $(), spawns a subshell and the command inside runs in that subshell.

So any modifications made to any data structure would not be propagated to the parent shell. In other words, the changes are being made all right but in a subshell, hence the parent shell's relevant parameters are not being affected.

As a side note, when you execute a script, it runs in a subshell; A common trick to make all the changes of the parameters to be available in the calling shell is to source (.) the script.

Example:

$ foo() { bar=2 ;}

$ bar=1

$ $(foo)

$ echo "$bar"
1

$ foo

$ echo "$bar"
2


You can add them in /etc/environment.

Open a terminal (Ctrl+Alt+T).
Run:

gksudo gedit /etc/enviroment

Add your variables. For example, if you had to initialize a variable named FOO to some_value, you'd

FOO="some_value"

Save and exit


This sounds like it deserves a bug report in my opinion. For more on that, you can take a look here.


Nvidia: Overclocking, Undervolting, Fanspeed just won't work on Ubuntu

2018 Answer

To enable overclocking, run:

nvidia-xconfig --cool-bits=28

Reboot your PC. Now you can do things like:

# List all GPUs
# Set power to 100W, +1000 Mhz Mem clock offset, and +100 Mhz on GPU clock
nvidia-settings -c :0 -q gpus
nvidia-smi -i 0 -pl 100
nvidia-settings -c :0 -a '[gpu:0]/GPUMemoryTransferRateOffset[2]=1000'
nvidia-settings -c :0 -a '[gpu:0]/GPUGraphicsClockOffset[2]=100'

The adventage of this method is that you can change the power input. Potential harm risk. Proceed with careful. Source here


Cannot install anything Properly & Vlc Crashing if I run any kind of video file

Try running sudo apt-get update then sudo apt-get -f install.
If it doesn't work, then try configuring the libraries as mentioned in screenshot.


Download the latest zip file from the "releases" list on GitHub. Right now it's version 3.0.0. The easyrsa file is the script you want.

$ wget -q https://github.com/OpenVPN/easy-rsa/releases/download/3.0.0/EasyRSA-3.0.0.tgz
$ tar -xzf EasyRSA-3.0.0.tgz
$ ls
EasyRSA-3.0.0/  EasyRSA-3.0.0.tgz
$ cd EasyRSA-3.0.0/
$ ls easyrsa
easyrsa*

You can also make a link to it if you need to:

$ ln -s $(pwd)/easyrsa /usr/bin/easyrsa
$ easyrsa

Easy-RSA 3 usage and overview

USAGE: easyrsa [options] COMMAND [command-options]

...


Error while doing apt update or installing any software package (18.04.1-Ubuntu)

Check you firewall ufw or iptables verbose to check if the specific ip addresses are blocked or not.
use sudo ufw numbered
OR
sudo iptables -L
to check the status and then
make the apt changes


Brightness control by slider not working

Did you mean chmod +x 755? There's no way to revert all of the changes you made to permissions if you ran this command recursively (with the -R tag) as root user in your root directory and let it go for a bit.  Your system is not going to be fine: proper permissions and ownership of system files are essential for everything to run properly and to ensure your system security.
I'm sorry but the command you executed is probably going to require that you reinstall the operating system.  It's going to be much less of a hassle than trying to figure out which permissions were changed and trying to individually restore the permissions of every single file that was altered.
I recommend if you are running "risky" operations to type out your commands in a notepad first, so you don't accidentally hit Enter on something that will destroy your system like sudo rm -rf /


This is most likely a bug in Unity. Subscribe to this bug report! Hopefully it'll get fixed soon.
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1277888


No sound output device detected all of a sudden

Turned out my internal sound card stopped working. I'v been using an external sound card for the last 10 months or so :p


Find version of package on old ubuntu version

The release of gammu from Ubuntu 10.04 is version 1.26.1 that is available from Gammu 1.26.1-Download. To compile it you need some development environment for your platform and cmake (sudo apt install cmake) tool to configure the sources. There are also some optional requirements for additional features which are listed in INSTALL file in sources. This file also contains more detailed instructions about compiling Gammu. You should also carefully read the instructions at How do I install a .tar.gz (or .tar.bz2) file? before compiling gammu.


Where can I find the change notices for previously installed updates?

You can find out what you installed when by looking at the file /var/log/apt/history.log*, then for each package you suspect, use apt-get changelog <packagename> to retrieve the changelog.


Root password does not work to install some programs

In Ubuntu you are not expected to use a root user with a password, most applications requiring root privileges will be invoked using sudo/gksudo, the user launching those apps will need to have sudo privileges and you must use the regular user password.

You should also read https://help.ubuntu.com/community/RootSudo .


Package dependency tree broken : unmet dependencies

Had similar problems while trying to install Nvidia drivers.

sudo apt purge nvidia*

Switch back to driver nouveau and reboot (at this point your dependency issue should be fixed)

While rebooting press SHIFT key, this will bring up GRUB bootloader.

Once in GRUB press "e" key to edit default entry and add "nomodeset" right before "quiet splash"

Once logged in install the Nvidia drivers again, possibly (if you have GUI) use the "Additional Drivers" tab from Software Updates utility in Ubuntu. I'm using Nvidia 410 and I suggest you doing the same if you don't have any special needs.

Edit: if you need CUDA + NVIDIA 410:

sudo apt-key adv --fetch-keys  http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
sudo apt update
sudo apt install nvidia-driver-410
sudo apt install cuda-10-0

If you want just CUDA skip the installation of nvidia-driver-410


Ubuntu 15.10 dual booting with Windows 10

What happened is GRUB (GRand Unifying Bootloader) had, for one reason or another, not included the Windows install pointers (so to speak). So it wasn't showing Windows as an option during the boot process.

The easiest way to fix this is to use the terminal. To open the terminal press CTRL+ALT+T.

When the terminal has opened enter the following command:

sudo update-grub

Then press ENTER on your keyboard. At this point you will be asked for your password. Type your password. Note, while typing your password nothing on the screen will change. You will see no asterisks, the cursor will not move. This is normal behavior. Type your password and press ENTER again.

Follow any on-screen prompts (there should be none) and then reboot your system to ensure the changes have taken effect.


Startup script doesn't execute at startup

The easiest way to do it in Ubuntu is probably just to use the Startup Applications tool. Put your script in wherever it needs to be, then specify the full path to it (For example, /home/conor/script.sh).

Hopefully that will run that script on startup. I use this to start my Thunderbird whenever I login.


I think if you run: juju list-clouds, then maas, vmware, azure, etc should appear.

Then run: juju add-cloud

Chose MaaS, with the IP: x.x.x.x:5240/MAAS

After that, add the key of the admin user
(via MAAS Gui, 'User' tab, and copy-paste the key from there.)

Then you should: juju bootstrap maas

I hope you could solve the problem, if not, tell me...

Thanks


How to stop a background process when the foreground process finished completing the task

There's no need to use pkill, which is normally used to find a PID from a pattern such as the process name, as you already have the PID of the b.sh script. Just using plain old kill will do, replace:

pkill -P $b_id

with:

kill $b_id

I'm guessing that you used pkill -P $Pb_id as you want to kill all child processes of b.sh, this command kills all of the child processes, but not the process itself. There's no problem in using them both, so pkill all of the child processes first, then kill the parent process.


libva error: Cannot use VDPAU on nVidia 840M

You need to upgrade the driver

sudo apt-get purge nvidia*
sudo killall nvidia-persistenced
sudo apt-get install nvidia-346 nvidia-prime

Reboot.


How to get the old Panel 0 into 16.04 LTS

Right click somewhere in your panel, select Panel > Panel Preferences, and you'll see your current panel is actually panel 0.  You can there configure your panel, and add new panels clicking on the "plus" sign; and add new items on your new panels with right click on it, and selecting Panel > Add New Items.

I suggest that you install xfce4-goodies (run in a terminal: sudo apt-get install xfce4-goodies) for some extra items to add to your panels.
This package will install the following Xfce4 related plugins:

Extra artwork (xfce4-artwork)
Battery levels monitor (xfce4-battery-plugin)
Clipboard history (xfce4-clipman-plugin)
CPU frequency management plugin (xfce4-cpufreq-plugin)
CPU utilisation graphs (xfce4-cpugraph-plugin)
Date and time plugin (xfce4-datetime-plugin)
Disk performance display (xfce4-diskperf-plugin)
Filesystem monitor (xfce4-fsguard-plugin)
Generic monitor, for displaying any command result (xfce4-genmon-plugin)
Mail watcher (xfce4-mailwatch-plugin)
Mount plugin (xfce4-mount-plugin)
Network load monitor (xfce4-netload-plugin)
Notes plugin (xfce4-notes-plugin)
Quick access to bookmarked folders, recent documents and removable
media (xfce4-places-plugin)
Tiny launchers (xfce4-quicklaunchers)
Sensors plugin, frontend to lm-sensors (xfce4-sensors-plugin)
Smartbookmarks plugin (xfce4-smartbookmark-plugin)
System load monitor (xfce4-systemload-plugin)
Timer plugin (xfce4-timer-plugin)
Command line with history (xfce4-verve-plugin)
Wireless lan monitor (xfce4-wavelan-plugin)
Weather monitor (xfce4-weather-plugin)


Okay, I've taken a stab at this with the Live CD environment, and I'm confident that it will translate properly over on the full installation.

I went ahead and installed gnome-settings-daemon and added it to the start-up list of programs.  After disabling the XFCE Volume Daemon (or xfce4-volumed) from the start-up list, and updated xfce4-power-manager, I'm able to report that my media keys are working as expected in my Xubuntu session.

Now, I have to figure out how to get them to work when on the login page.  But I won't despise a small beginning here.


How to reopen all programs after a powerdown because of low battery

save session
in gnome3 using dconf Editor and navigating to org.gnome.gnome-session should give you an option to auto-save sessions

Since that doesn't seem to work for a lot of users, you can also hibernate if your battery is low.

hibernate
There is a great How To from Ubuntu that should get you started, applicable to both Wayland and Gnome.
If that doesn't work there is this great answer for an alternative solution for Gnome.


Dual Boot which Windows partitions should be removed?

First format the sda2 partition with ntfs.
Reinstall Windows - select this partition.
Afterwards reinstall GRUB boot loader.

Boot from Ubuntu installation media.
Select Try Ubuntu without installing.

On Live desktop - open a terminal.
Execute the following commands :

sudo mount /dev/sda6 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sda

Note : sda = disk | sda6 = system partition

When you want to keep Windows, it is recommended to keep the sda3 Lenovo partition as well.
It might contain important tools for recovering vendor specific - Windows related functionality.
In case there is no Windows entry in GRUB menu, boot Ubuntu ... open a terminal and execute :

sudo update-grub


I had the same issue you had with the same scripts.

When Ansible gathers facts it makes a bunch of variables available for you.

You can find your root UUID on the variable ansible_cmdline.root.

Here's my mount configuration:

mount_devices:
  - name: /
    src: "{{ ansible_cmdline.root }}"
    fstype: ext4
    opts: defaults,discard
    state: mounted
    dump: 0
    passno: 0

  - name: /etc/network/interfaces.dynamic.d
    src: none
    fstype: tmpfs
    opts: nodev,noexec,nosuid,size=64K
    state: mounted
    dump: 0
    passno: 0

  - name: /mnt
    src: /dev/disk/azure/resource-part1
    fstype: auto
    opts: defaults,nobootwait,comment=cloudconfig
    state: mounted
    dump: 0
    passno: 2

  - name: /shared
    src: no
    fstype: cifs
    opts: vers=2.1,username=no,password=xyz
    state: mounted
    dump: 0
    passno: 2


Ubuntu showing wrong maximum battery percentage

As Soren A said in the comments, I don't believe that there is anything wrong. Batteries simply degrade over time and are capable of holding less and less. The only way to fix it is by getting a new battery.


Does install hook execute everytime juju deploy is called

The "install" hook is run whenever a new unit of a service is added. When you deploy a charm, you're creating a service and a unit (or more than one unit by specifying the "-n" flag).

For example, if you do:
    juju deploy mysql
you will have a mysql service, and a single unit of the service. That unit will run its install hook when it's finished initialising.

If you then do:
    juju add-unit mysql
you will have two mysql units; the new unit will run its install hook when it's finished initialising.


I accidentally removed my Trash and can longer put items into it, how can I get it back?

Try:

cd ~
mkdir .local/share/Trash
mkdir .local/share/Trash/expunged
mkdir .local/share/Trash/files
mkdir .local/share/Trash/info
chmod -R 700 .local/share/Trash

... and then restart nautilus with nautilus -q. I am not sure it will work, it is just recreating the structure I have with an empty trash; you can safely ignore error about existing directory.

Notice, no sudo here. The trash is yours, should be manageable without superuser privileges; as a general rule, you should never use sudo to manage file in your home directory --- unless you have to fix previous sudo usage, that is.

If you have messed with superuser in this dirs, you may need to fix the ownership...

sudo chown -R myuser .local/share/Trash

Where myuser is your normal user, of course.

And BTW, the "not erasable file" was probably a file in another partition.


How to install libnfc-doc-1.7.0 for MFOC

You have to start from repository by installing related packages with

sudo add-apt-repository universe
sudo apt-get install libnfc-dev libnfc-bin libnfc-examples

These packages have man-pages inside.


You can use pdftoppm to convert a PDF to a PNG:
pdftoppm input.pdf outputname -png

This will output each page in the PDF using the format outputname-01.png, with 01 being the index of the page.
Converting a single page of the PDF
pdftoppm input.pdf outputname -png -f {page} -singlefile

Change {page} to the page number. It's indexed at 1, so -f 1 would be the first page.
Specifying the converted image's resolution
The default resolution for this command is 150 DPI. Increasing it will result in both a larger file size and more detail.
To increase the resolution of the converted PDF, add the options -rx {resolution} and -ry {resolution}. For example:
pdftoppm input.pdf outputname -png -rx 300 -ry 300


How to Remove Guest Session and Remote Login from Ubuntu 13.04

For Guest Session:

How do I disable the guest session?

For Remote Login:

Open a terminal.

Run the following commands:
sudo -i                           # to have root privileges
gedit /etc/lightdm/lightdm.conf   # to edit /etc/lightdm/lightdm.conf file

Add this line to the end of the file:
greeter-show-remote-login=false

Save the file and close it.

Restart lightdm service (from tty1 with sudo service lightdm restart) or restart computer.


The recommended minimum requirements are outlined here for the Desktop version and here for the Server version.
Minimum recommended requirements for desktop version:

2 GHz dual core processor
4 GiB RAM (system memory)
25 GB of hard-drive space (or USB stick, memory card or external drive but see LiveCD for an alternative approach)
VGA capable of 1024x768 screen resolution
Either a CD/DVD drive or a USB port for the installer media
Internet access is helpful

Minimum recommended requirements for server version:

1 GHz processor
1 GiB RAM (system memory)
2.5 GB of hard-drive space


Can I debug PHP scripts running in Apache on Ubuntu?

You can use a browser plugin for Firefox called firePHP to debug php along with editing it "in play".   I am not entirely sure if Chrome has a similar plugin, but I'm going to lean towards yes.

https://addons.mozilla.org/en-US/firefox/addon/firephp/

You could also install Netbeans and use that as your IDE.

https://netbeans.org/kb/docs/php/debugging.html


Icedtea Java Plugin is a web browser plugin to execute Java applets. You can install Icedtea Java Plugin from the default Ubuntu 14.04 repositories (icedtea-7-plugin) and the default Ubuntu 16.04 and later  repositories (icedtea-8-plugin), and this will also install whatever Java dependency packages you need to install Icedtea Java Plugin.

JavaScript works in Firefox out of the box. To prove it try this minPaint Demo from Mozilla Demo Studio.

To run your own JavaScript code in Firefox 57 and later follow these steps:

Select Settings menu (3 horizontal lines icon ≡ in the upper right corner ) -> Web Developer -> Scratchpad.
Click the Run button on the Scratchpad toolbar to run your JavaScript code.

Example JavaScript code:

#!/usr/bin/js
var animal = "dog";
var count = 2;
console.log("The", animal, "ate", count, "biscuits.");

Results:

The dog ate 2 biscuits.


Consoles in Ubuntu and automatic upgrade

The console mode is useful for debugging/fixing things, when the graphical mode crashes or fails to load due to driver issues. Most people will never use/discover them.

As for the version number discrepancy, most likely the image for lightdm has not been updated to show the new version number yet, and still shows 12.04. If you've installed 12.10 then you are on 12.10.


Can I restart the KDE Plasma Desktop without logging out?

In KDE 4, you can do:
killall plasma-desktop #to stop it
kstart plasma-desktop #to restart it

In KDE 5 use:
killall plasmashell #to stop it
kstart plasmashell #to restart it

In KDE > 5.10 use:
kquitapp5 plasmashell
kstart5 plasmashell

Sometimes plasmashell is not responding so kquitapp5 fails after a timeout and you have to get back to killall. So in a nutshell, I would do :
# For KDE 4
killall plasma-desktop && kstart plasma-desktop

# For KDE 5 < 5.10
killall plasmashell && kstart plasma-desktop

# For KDE > 5.10
kquitapp5 plasmashell || killall plasmashell && kstart5 plasmashell

Remarks :

If you are not sure which KDE version your run, kinfocenter --version will tell you.
you can skip the kquitapp5 plasmashell || part if you don't want to be stuck in the timeout when plasmashell is not responding.


Java console doesn't recognize arrow keys

Some console programs (it may be a program running on the top of the bash, such as sh ) do not suppress the control key presses such as Up ↑ arrow or down ↓ arrow etc. In those consoles, You will also get the echo of the key presses like you posted ^[[A ^[[B ^[[C ^[[D. It's not a big problem actually.

Your default shell is bash which suppresses the key strokes of arrow keys. Unlike bash, the sh shell doesn't suppress the arrow key strokes. You can try it by running sh on a terminal and pressing the arrow keys. To exit from those consoles, you need to use certain command specific to the programs, most of the time, it is quit or exit. In your case of a minecraft server, it would be stop.

Some interesting information can be found here


SAMBA -- Cannot access Samba share from XP

I just want to get into a public record that nowadays you need to add these configurations into the [Global] section of /etc/samba/smb.conf to make Windows XP able to connect to your Samba 4.5 server:

server max protocol = NT1
lanman auth = yes
ntlm auth = yes

Of course that compromises the security on some level I am deliberately unaware of.


Duplicity Errno 28 No space left on device

The problem was with /tmp being in 1G tmpfs.

sudo mount -o bind /media/username/bigdisk/tmp /tmp

solved the problem.

Please write a bug report against duplicity about it.


Issue with Adwaita Dark theme: still using regular Adwaita titlebars

(Comment to answer by OP)

I tested it under gnome-shell and it worked. The issue seems to be with Unity, like you said. – Jesse Nov 9 '11 at 4:49


The link necordian provided has steps that do resolve this problem (I tested on a system with RAID and encrypted home directory/swap) except 1 step is missing you need to reboot before swap becomes available. Here is what I did to get my encrypted swap partition working.

Need UUID and Device name for the swap partition to fix this on RAID system with encrypted home directory/swap:

Find Device ID using "Disks" utility:

Click the ubuntu logo in the unity toolbar and then type Disks to open disk utility.

Select the SWAP partition and the device name should be listed below.

(usually /dev/dm-# for RAID or /dev/sda# for non RAID)

On my PC with RAID it was /dev/dm-6.

Get UUID from crypttab:

cat /etc/crypttab

My /etc/crypttab:

cryptswap1 UUID=5381faa1-369c-4504-9d8d-acfc7cb69e71 /dev/urandom swap,cipher=aes-cbc-essiv:sha256

Then run the following with your swap UUID and device name:

sudo mkswap -U 5381faa1-369c-4504-9d8d-acfc7cb69e71 /dev/dm-6

Add the following text ,1024 to the swap line in /etc/crypttab directly after swap,cipher=aes-cbc-essiv:sha256 do not leave any spaces.

sudo nano /etc/crypttab

/etc/crypttab should now look similar to this:

cryptswap1 UUID=5381faa1-369c-4504-9d8d-acfc7cb69e71 /dev/urandom swap,cipher=aes-cbc-essiv:sha256,1024

Run the following command:

sudo update-initramfs -u

Reboot and your swap should now work (well it worked for me).

Try rebooting a few times to make sure it's all good.


Is there any way to diagnose or debug my unity problems?

Well, it really sounds like you should report a bug in launchpad. Please do.

However, Im pretty sure you can find a lot of unity log info in ~/.xsession-errors.

Try that, and report it to a bug report in launchpad - perhaps it has been reported before?

Good luck!


How to autostart the Wire desktop client minimized?

More recent versions of the Wire desktop client have an option to launch it on startup:

If that did not work as expected:

For a minimized application icon of the messenger Wire we need to have a system tray extension installed. This will be provided with the ubuntu-unity-desktop, or if running default Ubuntu >= 18.04 with the package gnome-shell-extension-top-icons-plus.

sudo apt install gnome-shell-extension-top-icons-plus

If Wire was installed by DEB package or from the Debian repository a wire-desktop.desktop file can be put in the autostart directory to start every time we log into our session with the following content (copied from /usr/share/applications):

[Desktop Entry]
Name=Wire
Exec=/opt/Wire/wire-desktop %U
Terminal=false
Type=Application
Icon=wire-desktop
StartupWMClass=Wire
Categories=Network;
GenericName=Wire
Keywords=chat;encrypt;e2e;messenger;videocall

If that worked as expected we can have it starting minimized to the tray with the parameter --startup in the Exec line of our .desktop file:

Exec=/opt/Wire/wire-desktop --startup %U

After login we will have Wire running minimized as icon in the system tray:


I had something similar with my Mint 18 last evening after an upgrade of the package virtualbox-guest-utils. Solved it by removing all virtualbox packages: sudo apt-get remove virtualbox virtualbox-dkms virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11

Followed by a reboot.

Not exactly a long term solution, but hopefully it will get you a usable PC until this get fixed.


You'll have to follow https://root.cern.ch/cling-build-instructions - cling still needs a few patches on top of llvm.

Cheers, Axel.


Would like to see this: Hardware -> Available Drivers

The lshw command (run from a command prompt) will do what you appear to want.

sudo lshw > lshw.log
nano lshw.log

It lists all hardware, and the associated drivers.


Update your npm version.

sudo npm cache clean -f
sudo npm install -g n
sudo n stable
npm -v it should print 6.4.0.

Alternatively you ca just type sudo npm install npm@latest -g in terminal

  (Note: this will update it to the latest stable version)

Visit this link for more details.


HP Pavilion G6 temperatures raises until system shuts down, how to fix this?

Are you using the proprietary drivers or open source drivers.
To enable proprietary drivers: Software Sourcers > Additional Drivers tab > Select a proprietary driver and hit apply changes. See if this resolves your problem. It did in the case of my HP dv7-1285dx Laptop.


I tried nmcli radio wifi off and then nmcli radio wifi on and restart the computer. Then, it somehow works!


White text on yellow background in popup elements with Ambiance theme

I had a similar problem, but for Xubuntu 12.04 > the texts in may applications were white, against a white background.

What I learned from my case, was that many themes are not yet fully adjusted to gtk-3.0 settings. Selecting a different theme can help here.

If you are a bit more adventurous and know how the theme files work, you can try this solution: http://ubuntuforums.org/showthread.php?t=1966684

With the instructions found on that page, you will have to change a few lines in the gtk-widgets.css file. It worked for me.
Lines with a (-) in front need to be removed. Lines with (+) in front need to be added.


Is Linux kernel 5.7 available on Ubuntu 16.04?

Ubuntu 16.04 provides two supported kernels,

the GA (general availability) kernel is 4.4, and
the HWE (hardware enablement) kernel is 4.15 (ie it progressed using the 16.10 kernel, 17.04, 17.10 before finally settling on 18.04 or the next LTS GA kernal).

For details on HWE (hardware enablement) see

https://wiki.ubuntu.com/Kernel/LTSEnablementStack
https://wiki.ubuntu.com/Kernel/RollingLTSEnablementStack

The two kernel options are Ubuntu 18.04 LTS are

GA kernel is 4.15, and
currently HWE is using 5.3 or 19.10's kernel, but will move to the 20.04 kernel soon (with 18.04.5).

Ubuntu 20.04 LTS is using the 5.4 kernel (HWE & GA are identical at this stage).
The 5.7 kernel is a test kernel only in Ubuntu (not even groovy uses it).


Ubuntu 20.04 LTS can not resume after suspending

This is a known bug.
The solution is to revert to nVidia version 450.
You should also register yourself onto the bug report saying "It effects me" and subscribe to email on bug updates.
To install an earlier version of nVidia Drivers see this:

Ubuntu 18.10 : How can I install a specific NVIDIA drivers version?


Menu bar and toolbar of few applications are very tiny in ubuntu 20.04

I had the same issue recently on my main rig.  Couldn't find any answers anywhere so I resorted to a fresh install (had originally been a 19.04 install, upgraded later to 19.10, then eventually to 20.04).
The issue hasn't resurfaced on this machine since, but this morning I rebooted the media centre to find the same problem... so I've been back to searching for solutions (incidentially, it was also originally a 19.04 install, so my initial thoughts were that something had gone awry through the upgrades).
As it turns out, it's a bug affecting Nvidia users, so most likely is what's affecting your laptop (nice unit btw).
I found my answer here: Ubuntu 20.04 interface font too small after restart, even with high scaling factor

Bug report here: Shell text is too small in mutter 3.36.4-0ubuntu0.20.04.2
I hope this helps.


Your app is trying to use more memory than is available:

Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)

134,217,728 bytes is more than 128 MB, which is quite a lot for a PHP page. You'll want to slim down your app. With MVC frameworks like CodeIgniter, the problem often lies with loading data from the database. Don't load everything all the time, just load what you actually need. You'll also want to keep the N+1 problem in mind.
Additionally, you'll want to check all places where your app is handling significant amounts of data - processing images, for example.


How can I make Samsung Note 10.1 dual boot with Ubuntu

There are three things when it comes to ubuntu & mobile phone.

Ubuntu as native installation with true dual boot

There are some work regarding a true dual boot in galaxy note 10.1.
You can get more details at this XDA thread-
http://forum.xda-developers.com/showthread.php?p=39622960

Guide mentioned in the thread - http://thermatk.github.com/opensgn-easy/

Install ubuntu as emulator

This method runs ubuntu as using a very well known method known as chroot.

Here you install Ubuntu desktop to your phone. It is just like running ubuntu as a virtual machine under android.

So you can call it dual boot, since you will be using ubuntu desktop, which is not optimized for mobile device. So you may face problem.

You can start, http://sourceforge.net/p/linuxonandroid/wiki/Home/

Ubuntu for android

from wiki

Ubuntu for Android is an upcoming free and open source variant of Ubuntu designed to run on Android phones.

Both Ubuntu and Android run at the same time on the device, without emulation or virtualization, and without the need to reboot. This is possible because both Ubuntu and Android share the same kernel (Linux).

There is no emulation or virtualization. When phone is on, android will be shown. when docked a monitor, phone will turn off and in monitor Ubuntu will load.

If this is the thing you want, sorry it isn't available as of now. It is supposed to come as pre loaded.

Ubuntu for Phone

This is interesting.

Ubuntu for Phone is a mobile operating system. This operating system can use lower level android code. So if your phone as CM10 base, you can use it.

But Dual Booting : Not possible

Here are the list of devices on which different devs are working to port it. Your device is on that list too.

Here is status of your device - https://wiki.ubuntu.com/Touch/Devices/n8000

Here is install instruction : http://forum.xda-developers.com/showthread.php?t=2168999


Intel has stopped publishing available frequencies but you can approximate what they are:

Use these commands to see available steps and min/max:

$ cd /sys/devices/system/cpu/intel_pstate
$ paste <(ls *) <(cat *) | column -s $'\t' -t
max_perf_pct  100
min_perf_pct  22
no_turbo      0
num_pstates   28
status        active
turbo_pct     33

$ cd /sys/devices/system/cpu/cpu0/cpufreq
$ paste <(ls *) <(cat *) | column -s $'\t' -t
affected_cpus                             0
cpuinfo_max_freq                          3500000
cpuinfo_min_freq                          800000
cpuinfo_transition_latency                4294967295
energy_performance_available_preferences  default performance balance_performance balance_power power
energy_performance_preference             balance_performance
related_cpus                              0
scaling_available_governors               performance powersave
scaling_cur_freq                          1939478
scaling_driver                            intel_pstate
scaling_governor                          powersave
scaling_max_freq                          3500000
scaling_min_freq                          800000
scaling_setspeed                          <unsupported>

From this answer I just posted on Stack Exchange: Get all available frequency steps copy and paste this function into your terminal:

ApproximateFrequencies () {
    NumSteps=$(cat /sys/devices/system/cpu/intel_pstate/num_pstates)
    MinFreq=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq)
    MaxFreq=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq)
    LastFreq=$MinFreq
    StepRate=$((( $MaxFreq - $MinFreq ) / $NumSteps))
    for ((n=0;n<=$NumSteps;n++)); do
        echo $LastFreq
        LastFreq=$(( $LastFreq + $StepRate))
    done
}

Then use this to display frequencies:

$ ApproximateFrequencies | column
800000  1089284 1378568 1667852 1957136 2246420 2535704 2824988 3114272 3403556
896428  1185712 1474996 1764280 2053564 2342848 2632132 2921416 3210700 3499984
992856  1282140 1571424 1860708 2149992 2439276 2728560 3017844 3307128

If you don't have column installed then omit | column portion of command.


Gdb pretty printer is not working in Ubuntu 16.04

It seems that with newer libstdcxx, containers (some of them?) are moved to the std::__cxx11:: name space and existing pattern matching of the existing pretty-printer no longer matches.   Following patch adds that pattern and fixed it for me.

*** /usr/share/gcc-5/python/libstdcxx/v6/printers.py.orig       2016-08-08 16:49:58.000000000 +0000
--- /usr/share/gcc-5/python/libstdcxx/v6/printers.py    2016-11-08 23:25:23.620557354 +0000
***************
*** 1081,1086 ****
--- 1081,1087 ----
      def add_container(self, base, name, function):
          self.add_version(base, name, function)
          self.add_version(base + '__cxx1998::', name, function)
+         self.add_version(base + '__cxx11::', name, function)

      @staticmethod
      def get_basic_type(type):


Are X.04 releases generally more stable than X.10 releases?

Ubuntu 12.04 codenamed Precise Pangolin is now the latest stable version of Ubuntu. Also note that Ubuntu releases its each version after considerable testing to make sure it is stable enough for normal use.

So every version whether it is x.04 or x.10 can be considered stable enough for daily usage. Coming to your question, Ubuntu 12.04 is stable. You can use it without worry.


Markup software with images and conversion to .doc and .pdf

You might want to look at rst (ReStructuredText). This is a markup language much used for python documentation.
There are many tools that can work with rst and convert it into many formats.

One tool is sphinx which can convert to html, latex->pdf, rtf, and man pages.

But there is e.g. also the docutils package, which has tools to convert the rst file into many formats:

rst2html
rst2xml
rst2latex
rst2odt
rst2s5
rst2man

You are most probably interested in rst2latex, which can then be compiled to pdf. Or you can use this software to do this in a single step: rst2pdf.

And you might want to use rst2odt, which produces the libreoffice/openoffice version of a word document which can then be converted by these to doc format.


Ok, so, if you installed Gparted in your "mounted" system, then no, you can't move that partition. You need to boot from a live-usb session. Once inside there, you can move that partition (being that it is going to take awhile to move it, bit/byte by bit/byte). Another thing you'll experience, is when you move it, linux may or may not boot back up. Depending on how your GRUB config is setup. You may have to reinstall grub through the live-usb. Googling that procedure is available. I've had to do that myself.


Is it a good idea to install different versions of Ubuntu Accomplishments on different computers?

Yes, most likely this data will conflict. There were significant changes in trophy files format from 0.1 to 0.2, which will probably result in your trophies being not detected - the 0.1 daemon will definitely not see the trophies generated by 0.2. I am not sure, but it is very probable that it will also be the case if you try to open 0.1 trophies with a 0.2 viewer/daemon. Considering that, you may end up in some trouble.

However, if you really want to use such setup, it is possible to use separate directories for your trophy files for each of these systems - just tune the ~/.config/accomplishments/.accomplishments file. 0.2 is now released, so 0.1 is outdated anyway, thus you may prefer to just upgrade your laptops's Accomplishments to 0.2.

We hope to stabilize the trophies format, and hopefully future versions will not suffer because of such conflicts.

In general, this depends on the application. Some applications rely on the format of data they synchronize using U1, others not. In case the data format is not significant (e.g. the application shares photos and music), conflicts are unlikely - if the format is significant however, it would be best to use the same version on application on all synchronized devices, especially if the application is overcoming major changes from version to version.


How to install and run qt-designer for python

with sudo apt-get install python-qt4 qt4-designer should work.

You can find it if you search it with apt-cache search qt | grep designer:

libqt4-designer - Qt 4 designer module
libqt4-designer-dbg - Qt 4 designer library debugging symbols
qt4-designer - graphical designer for Qt 4 applications
kdesignerplugin - Integration of KF5 widgets in Qt Designer/Creator
kdesignerplugin-data - Integration of KF5 widgets in Qt Designer/Creator
kgendesignerplugin - Integration of KF5 widgets in Qt Designer/Creator
libopenrpt-dev - graphical SQL report writer, designer and rendering engine (development)
libopenrpt1v5 - graphical SQL report writer, designer and rendering library
libqscintilla2-designer - Qt4 Designer plugin for QScintilla 2
libqscintilla2-designer-dbg - Qt4 Designer plugin for QScintilla 2 (debug)
libqt5designer5 - Qt 5 designer module
libqt5designercomponents5 - Qt 5 Designer components module
libqt5scintilla2-designer - Qt5 Designer plugin for QScintilla 2
libqt5scintilla2-designer-dbg - Qt5 Designer plugin for QScintilla 2 (debug)
libqxt-designer0 - LibQxt extensions to Qt Designer
openrpt - graphical SQL report writer, designer and rendering engine

And search more info about the package with apt-cache show qt4-designer.


I'm a noob at ubuntu and linux need help

The easiest way to fix duplicate items in your source list, which is really just a big config file with URLs in it..(kinda) and you have two in there that are the same.

Open software sources, uncheck "Canonical Partners". The Conflict is between "Canonical Partners" and " Canonical partners Added by software Center"

Also if you need skype you can download it from their site, but you can also use it on the web as well if you don't want to deal with download it.  I think live.com allows use of it depending on your needs.  Also if you just want to video chat with friends are great service exists for free which is faster then Skype.

https://meet.jit.si/

It is similar to hangouts and doesn't require you to install anything.


Video suddenly unaccelerated, wrong resolution

This article might be helpful:
https://wiki.ubuntu.com/X/Config/Resolution

Has you check the available screen resolutions with xrandr command yet? If the undetected screen resolution was available from other output of your graphic card, you could add it to the output used easily according to that wiki.


Can't boot laptop from USB; error in 1 file

If multiple recreations of the bootstick result in the same file error, the most likely cause is a corruption of the downloaded ISO image.

Download the image again and check for its MD5 sum (supplied at the download site)

Or even better: Download the image as torrent. The BitTorrent protocol automatically validates the downloaded data using checksums. If a block is corrupted, only this 16kB section needs to be downloaded again. This is the safest way to download any image, as long as you can trust the origin of the .torrent file.


How to compile gtk+3.10 programs in Ubuntu 13.10?

version of GTK - by default
Ubuntu 13.10 defaults to Gtk+ 3.8.
Run dpkg -s libgtk-3-0|grep '^Version' | cut -d' ' -f2-
In Saucy the answer is 3.8.6-0ubuntu3.1
The various development packages (the -dev packages) in the repository will also be v3.8.
suggested ways to build 3.10 compatible software
To build GTK3.10 specific packages you'll need to use either the current development version (at the time of writing this) of Ubuntu called 14.04 or use the Gnome-3 PPA
The version reported in 14.04 is 3.10-7-0ubuntu1
My recommendation is to install 14.04 in a virtual machine using a good virtualization software such as Virtual Box or ESXi1.
If you choose to use the Gnome-3 PPA then you need to be aware that not all of Gnome-3 v3.10 is available - so your package your are building may not work.
To add the PPA:
sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update && sudo apt-get upgrade

Since the PPA updates numerous core packages, this may make your desktop unstable.
Again, my recommendation is to use virtualization software to install a copy on 13.10 upgraded with the Gnome 3 PPA.
External links:

[1] Installing ESXi


It is a game made with Scratch (https://scratch.mit.edu/). But it seems to be one of the older (offline) version of Scratch.
You can install Scratch with sudo apt-get install scratch or by searching for "Scratch" in the Software Manager


If you are using VIRTIO in the VMs for the disks, change that do SATA or something else. VIRTIO disks are not seen by "lshw", which is the tool MAAS uses to gather storage information.


This proved to be an issue with the Hub 3 router. I changed the router to use Modem mode then added a secondary router with VPN Passthrough enabled and it connected without any issue.


Would there be a problem if I set 2 hostnames in my server?

Better:

127.0.0.1 localhost dns01.hello.com proxy01.hello.com

All are on the same line.


Rhythmbox's isn't registering all Last.fm songs in my profile, where is the problem?

Last.fm have been experiencing intermittent issues with their scrobbling and library services.
Take a look at their Community Forums for known, outstanding issues.


I can't create more than one virtual machine with vmbuilder

The error talks about a domain, but it's actually the host name which is already in use.

The --domain option sets the domain to which the VM belongs, not the actual name of the machine. To set the name of the machine, use --hostname option (found in vmbuilder kvm ubuntu --help).


Upgrading a live 8.04 LTS server to more up-to-date version

Upgrading Ubuntu to a later release is a better option, as 8.04 Server will be end of life next April. Upgrading to 12.04 will mean there will be security updates until April 2017, at least.

Caveats with upgrading, either Ubuntu release, or just individual pieces of software, are the same. As software is developed and improved, it may have changes to configuration files, or file system layout, which may conflict with what you are currently using; requiring you to deal with differences. Also, libraries may also at some point break ABI and/or API, causing any applications you've developed on top of them, to no longer work correctly. But again, these are all things you'll have to deal with, regardless of how you upgrade the software.


The topic is discussed fairly thoroughly here
How can I configure Unity?


Why have there been no 12.04 PowerPC updates for weeks - as of 26 July 2012?

I know PowerPC is still being built for Quantal. Maybe your sources.list is just not pointed to ports.ubuntu.com, where the non-x86 ports live.


Terminal/System Application way to list/detect webcam

You can use

ls -ltrh /dev/video*

to list all video devices picked up by the kernel. The first video device by default is /dev/video0.


Follow the instructions in the linked answer.

However, in your case you'll need to download the .deb under Windows, copy it to a USB stick, reboot into Ubuntu and copy and install the .deb from the USB stick.


cron job not executing youtube-dl command

I solved this by making a bash script with the following contents.

#!/bin/bash
/usr/local/bin/youtube-dl -xwik -r 1M http://video.kings.nhl.com/videocenter/ -o '/data/www/kv/%(title)s-%(id)s.%(ext)s' >> /data/www/kv/out.txt

I tried a bunch of other stuff and the /usr/local/bin/youtube-dl ended up making it work.  It might also make the cron line work without the script as well, I'm not sure.


How is the Ubuntu installation supposed to work?

You should allow GRUB to be installed to sda which is your master boot record (mbr). If Windows will not boot from the GRUB menu entry at first, then select Ubuntu from the menu to boot. Once Ubuntu has loaded open a terminal and enter sudo update-grub. You will need to enter your password here to complete the operation. This command will have GRUB probe for all OSes on your machine including XP and will add them to your GRUB menu. Now when you reboot and select Windows from the GRUB menu, it should boot normally.


How to use BleachBit to remove completely any selected file or folder?

The standard version of Bleachbit installed from the repositories (version 0.9.1 for 12.04) has exactly the functionality you want. You can simply run the program, click File on the Menu and you will be given options to select files or folders to shred.

Clicking 'Shred Files' or 'Shred Folders' will open a file browser and allow you to navigate to what you want to remove.

Note: I recommend that you don't run bleachbit with elevated privileges, like gksudo bleachbit or use the provided menu entry to do so, as a mistake could be very costly!

For more information, see man bleachbit or the official website, which details the development of the program and how now it has reached version 0.9.5 (Jan 2013).


I clicked "Continue the partial update" ; Now I have lots of packages to install and I don't want to

The file /etc/apt/sources.list was rewritten by the upgrader (Ubuntu 18.04.5 word bionic was replaced by focal, for Ubuntu 20). I have edited this file in order to replace focal by bionic. Then I've typed sudo apt-get update. Now the problem is solved. When I type sudo apt-get update ; apt-get upgrade ; apt-get dist-upgrade it works well: I have no package listed!
NB: I looked in /etc/apt/sources.list.d, all the files contain bionic so I didn't have to replace anything here.


Low Graphics Mode Ubuntu 16.04.5 only occurs without external monitor

I was using an hp dock with a lightning port. This is not compatible with Ubuntu 16 and my computer (hp zbook 15 g4). Just removed dock and plugged in external monitor to computer directly.


How to uninstall all non-default software?

I think what you are looking is system restore to as passive state.
There is a package available but it must be installed and have a screenshot of state.
check this page to get help in installing Time Shift and configuration.
Time Shift


Thumbnail seeking feature in video players

You may try ExMplayer, a graphical front-end for MPlayer.  It comes with a thumbnail seeking feature.

You can install ExMplayer from this PPA by running the following commands:

sudo add-apt-repository ppa:exmplayer-dev/exmplayer
sudo apt-get update
sudo apt-get install exmplayer


how can I use "amdgpu" instead of "radeon" drivers on 20.04?

Old question, I know, but it was my first Google hit when searching for this. So I'll leave what worked for me (Also Ubuntu 20.04 + Radeon HD 7870 GHz):
Add PPA:
$ sudo add-apt-repository ppa:oibaf/graphics-drivers
$ sudo apt update && sudo apt upgrade

Then edit Grub: sudo gedit /etc/default/grub and add the following lines to the end:
GRUB_GFXMODE=1920x1080x32
GRUB_CMDLINE_LINUX_DEFAULT="radeon.si_support=0 radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.dc=1 amdgpu.dpm=1 amdgpu.modeset=1"

Finally, update Grub and reboot:
$ sudo update-grub2 && sudo update-initramfs -u -k all
$ reboot

Confirm with lspci -k | grep -EA3 'VGA|3D|Display'.
Blacklisting radeon was not neccessary.


Well, I found the solution myself!
I found that I my custom scrips in the /etc/grub.d/40_custom. I wanted to edit them but they were very messy. So I booted to a live Ubuntu usb and copied grub.d folder from live Ubuntu to Home folder in main Ubuntu.
After creating a backup from grub.d folder, I deleted files in it and copied files from Home folder. Then renamed and deleted some entries using 'Grub Customizer'.
After that, I copied my favorite scripts to /etc/grub.d/40_custom file using gedit. Finally, I ran sudo update-grub. Now everything is as I wanted!
If you know another solution, please post it here. Thanks!


tried to install compiz now nothing on desktop

AMD graphics card?

Seems to be the problem if you have one. If so, make sure to use the right drivers (not the standard ones) and have everything up to date


Formal discription for this is:

  A hard disk drive is defunct in the specified logical drive. The data on this logical drive is at risk. If another hard disk drive fails, the data might be lost.

It means 1 of the hard discs or 1 of the controllers is failing;
Critical;
Replace the disc or controller.

That is... it could also be that the scan is done while a rebuild operation is in progress. In that case you need to redo the scan after the rebuild is done.

It is a common error message when dealing with RAID (failure of hard discs is not that uncommon) that should be dealt with as soon as it shows up. The next error message might be fatal.


This is a known bug with gnome-clocks, already reported on Launchpad.


I faced this issue when I upgraded from 16.04 to 16.10 . The problem was that file /etc/NetworkManager/conf.d/10-globally-managed-devices.conf was not created, so my wired connection did not work. I manually created the file as follows:

touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf

Afterwards, restart NetworkManager:

service NetworkManager restart


Unable to locate package ros-lunar-desktop-full

Ros does not support Lunar for artful (17.10), see the Ros wiki. I believe that you are out of luck, at least without a bunch of personal work or reverting to a zesty (17.04) install. You might try compiling and installing from source but since they are not supporting 17.10, your luck may very, and people trying this have had trouble.


Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) on VirtualBox

Replace <proxy> with your proxy address.

For example, if your proxy server is 1.2.3.4 and the port is 1234 then the first line should be

Acquire::http::proxy "http://1.2.3.4:123

Use this for all other lines.


How To Include Additional Software In preseed.cfg For Ubuntu Server 13.10

You haven't pasted the exact error, but one place to start looking is that the packages "juju" and "openstack" do not exist. For juju the package name you want is juju-core.

OpenStack isn't one package, it's an entire set of services so that also won't work. I would debug by removing those two entries and then see if the preseed works.


I gave up and demoted the whole lab and rolled back to 12.04 because it turns out that it cannot be done.

I kept getting the error: cloud-archive only supported on precise


I use mmex (Money Manager Ex) downloadable from the Ubuntu Software Center.

I don't use it in a business environment but in a private capacity to handle multi-currency accounts (GBP + Euro) which it does really well.

There are good reporting facilities within the program and I am certain that it can be used to good effect. Sadly not double entry book keeping as a paid business accounting system would be but effective all the same.

There are options as to where the data can be saved - either local drive or (as in my case) Dropbox but the main thing is, the program set is located locally, not in the cloud.

There are options to export the data and it wouldn't take too much effort to export the data to a spreadsheet to provide a Balance Sheet and P&L leaving you more in control of your reuirements.


How to use some of the arguments of a previous command without retyping

I've found some interesting option of using !.

To get the arguments of previous command you can use:

!^        gives the first argument
!:n       gives the nth argument
!*        gives all the arguments

So in case of

mkdir arg1 arg2 arg3 arg4 ... argn

To move arg2 to arg5  for example use :

mv !:2  !:5


I have problem connecting wireless network in ubuntu 18.04.3 LTS (Aspire E5-574G Qualcomm Atheros QCA9377 802.11ac)

I could solve this issue using this link

https://github.com/ajaybhatia/Qualcomm-Atheros-QCA9377-Wifi-Linux


If you're using a recent LTS Ubuntu version (14.04 & 16.04) you can add the deadsnake PPA.

sudo add-apt-repository ppa:deadsnakes/ppa -y && sudo apt-get update

They state you can use other versions as well with this PPA however its not supported/tested.


Wifi stuck on "Authentication required" after system resume?

Seems this has a similar post here from the Ubuntu forums.
The Solution that seemed to work was as follows:

I have resolved the same problem very simply.
Click on Applications/System Tools/System Settings.
In the Hardware collection of icons, click on Network, then Wireless.
In the lower right hand corner of the Wireless Connected window (I earlier connected)
click on Configure…
I have Connect Automatically checked (near the top), and Available to all users checked >(near the bottom.
Click on the Wireless Security tab.
In my case for Security I have: WPA & WPA2 Personal
Fill in the Password.
Click Save.
When I restarted the system all went automatically.


How to install eclipse php in ubuntu 14.04?

You can not install Eclipse over the repositories and Software Center or apt-get.

You will have to visit https://eclipse.org/downloads/packages/eclipse-php-developers/lunasr2 and download the right version (Linux 32/64Bit).

Then extract the tar.gz-archive (about 100-150MB) to your /opt directory. You need root privileges to access that folder, so run your filemanager as root (e.g. gksu nautilus) or work with sudo and terminal commands (cd /opt/ && sudo tar -zxvf /full/path/to/eclipse-*.tar.gz)

Next step is to create a launcher for eclipse:
Open an root-editor window on the new file with gksudo gedit /usr/share/applications/eclipse_php.desktop and paste the following lines into it:

[Desktop Entry]
Name=Eclipse PHP
Type=Application
Exec=/opt/<your_eclipse_path>/eclipse
Terminal=false
Icon=/opt/<your_eclipse_path>/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse PHP
StartupWMClass=Eclipse_PHP

Save and close it. Now Eclipse should appear in your dash application lens. If not, you might have to run sudo desktop-file-install /usr/share/applications/eclipse_php.desktop.

That's it. You can now start Eclipse and do the necessary configurations.

You might want to have a look at this guide too:
http://ubuntuhandbook.org/index.php/2014/06/install-latest-eclipse-ubuntu-14-04/
Note that it was written for the outdated "Kepler" version (current = March 2015 is Luna) and the standard Java IDE components, not PHP.


Where do I find display brightness controls in Lubuntu?

I tried the xrandr --output VGA1 --brightness 0.9 command from Lubuntu running on my netbook(Samsung NC110, Intel Atom N455 1.66Ghz RAM 2GB). This could only produce terminal's retort of “xrandr: Need crtc to set gamma on.”
    Afterwards I kept searching on the web and found out about the “xbacklight -inc XX” command, which solved my problem.  The XX stands for % you want increased(-inc) or decreased(-dec), so the actual command that I used was xbacklight -dec 40 since my monitor was too bright.

P.S.- I still would like to know how to give others with answers written feedback (other than just clicking on a "Yes" or "No") on this site, as with most of the Linux realm, user friendliness is a luxury rarely found.  Currently I only understand how to provide answers.


Da Vinci Resolve 16 on Ubuntu 20.04 grey / not previewing video issue

I am using both Resolve 16 and Ubuntu. From what I can understand, your problem should not be related with the installation process but I think, with codecs. If nothing changed in the past months, the free version under Linux cannot process h264 or h265 codecs, nor mp3. so you have to convert them in order to import in DaVinci. I usually work with dnxhd codec and pcm for audio, after some surfing around. the only drawback is that you have to consider the huge amount of space the resulting videos will occupy on your hard drive.
If you have CUDA installed you can copy the below lines into an empty .sh file and run it from a console. It takes all the mp4 files in the present folder and converts them to mov that can be used in DaVinci. If you do not have CUDA you have to change the h264_cuvid decoder
for i in *.mp4;
    do name=`echo $i | cut -d'.' -f1`;
    echo $name;
    ffmpeg -c:v h264_cuvid -i $i -c:v dnxhd -profile:v dnxhr_hq -pix_fmt yuv422p -c:a pcm_s16le $name.mov;
done


Touchscreen no longer working on Dell Latitude 2120

This issue is fixed in Kernel version v3.5-rc7-quantal ( http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5-rc7-quantal/ ). Hopefully it should not change in the final release of 12.10

Installation instructions to use this kernel can be found at ( https://wiki.ubuntu.com/KernelMainlineBuilds )

Bug page, for reference ( https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1026174 )


Displayport Sound Delay on Ubuntu 20.04/20.10

Updated

Open /etc/pulse/default.pa and comment out the line load-module module-suspend-on-idle i.e put # in front of it like #load-module module-suspend-on-idle and save the file, do similar thing for /etc/pulse/system.pa.
Run pulseaudio -k to kill pulseaudio daemon and run pulseaudio --start to start it again (or you can also run systemctl --user restart pulseaudio if pulseaudio starts on the boot) .

Your problem should be solved.
Thanks to https://forum.level1techs.com/t/delayed-sound-output-ubuntu-elementary-os-solved/115034


Updating the ~/.bashrc file for a script

Actually, your .bashrc does get sourced. However, .bashrc is intended to be read by interactive shells. A shell that runs a script is not interactive.

In Ubuntu, .bashrc checks that the shell sourcing it is interactive, and otherwise stops execution. You should find this line towards the beginning:

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

This causes your script to stop sourcing the file before it reads your function.

You can simply attach your function to another file than .bashrc and it should work fine. If you insist on using .bashrc, you could simply set the variable PS1 to some dummy value in your script before sourcing .bashrc.


Under NetworkManager, the file to change is /etc/NetworkManager/dnsmasq.d/dnsmasq.conf. For my reasoning, see my answer at Ubuntu 16.04 Network Manager DHCP and PXE setup. Can't find `dnsmasq.conf`

Read man dnsmasq;man 5 resolver.


I want to install ubuntu 12.04 in my netbook is i right is it applicable i also want to ask what version should i download 32 or 64

That CPU is 64-bit, so you'll want to install the 64-bit version of Ubuntu.

2GB of RAM isn't a lot, but it'll be plenty to run Ubuntu. If you find that the UI is slow, disable the 3D desktop effects.

I haven't used that specific laptop, but Ubuntu works pretty much flawlessly on nearly all modern hardware. Give it a go and I'm sure you'll be happy with the results.


What LibreOffice (or otherwise installable) fonts are more readable for dyslexic people?

You may try the OpenDyslexic font.

  OpenDyslexic is a typeface designed against some common symptoms of dyslexia.

It's avaiable in Universe, so you can install it by (if that repo is enabled)

sudo apt install fonts-opendyslexic

LibreOffice Writer example:


How do I get Ubuntu to detect my Intel Graphics?

Open a terminal and execute :

lspci -k | grep -EA2 'VGA|3D'

The output shows something like this :

00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: i915

01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: nvidia


BCM4311 Wireless driver will not work on any Ubuntu distro's past 10.10, and I cannot figure out why

open the ‘Synaptic Package Manager‘ (if you are using Ubuntu 11.10 then install it first from the software cemter) and search for ‘bcm’
uninstall the ‘bcm-kernel-source‘ package
make sure that the ‘firmware-b43-installer‘ and the ‘b43-fwcutter‘ packages are installed
type into terminal:

cat /etc/modprobe.d/* | egrep '8180|acx|at76|ath|b43|bcm|CX|eth|ipw|irmware|isl|lbtf|orinoco|ndiswrapper|NPE|p54|prism|rtl|rt2|rt3|rt6|rt7|witch|wl'

see if the term ‘blacklist bcm43xx‘ is there

if it is, then type cd /etc/modprobe.d/ and then sudo gedit blacklist.conf put a # in front of the line: blacklist bcm43xx then save the file (I was getting error messages in the terminal about not being able to save, but it actually did save properly).
reboot

Source: http://www.computerandyou.net/2011/05/how-to-solve-no-wireless-networks-in-ubuntu-11-04/


How to achieve Mac-like use of CTRL and CMD keys on Apple Keyboard?

For fixing your terminal behaviour:

A straightforward way to achieve what you are trying to do, is to edit your home config files. For a bash terminal, you are looking to edit your readline config, which would be your .inputrc.

Open up a terminal
man readline This tells you most of your customization options. If you scroll to the bottom, it shows you how emacs mode is configured. More on that below.
gedit .inputrc This is what you want to edit. It is loaded whenever you log in, and will customize your readline (what bash uses for input) behaviour.

How I solved a similar issue.

I had to do something similar because I use Vi Mode in Bash:

set -o vi

I also use Colemak.
Subsequently, I use a highly customized version of Vim.

My .vimrc configuration does not affect vi Mode for bash (and ZSH for that matter).

So I had to create a custom one, and boy was it a lot of work:

http://bazaar.launchpad.net/~akiva/colemak.vim/trunk/view/head:/.inputrc

You can use my code there as a template to work off of. I have all the functions there. The ones I do not use are commented out. You can map your characters to two things:

########
# Copy #
########
# Copy to
"c":    vi-yank-to
# fake copy line
"C":    "0c$$"

vi-yank-to is a builtin function
"0c$$" is a custom string (Notice the quotes around it) that basically simulates me pressing 0, c, $, $ in that order.

Let me know if you have any questions.


Getting stickynotes to stay always on top?

Yup, it is possible - got the answer thanks to this post: Application started in shell automatically "always on top" / Desktop / Xfce Forums; one can use wmctrl for that.

First, in terminal, use wmctrl to obtain a listing of currently active windows:

$ wmctrl -l
0x01a00003 -1 mypc Bottom Expanded Edge Panel
0x01a00036 -1 mypc Top Expanded Edge Panel
0x01200023 -1 mypc x-nautilus-desktop
0x042000e1  1 mypc Mozilla Firefox
0x03400024  0 mypc Terminal
0x032000f2 -1 mypc 2013-03-29

The "2013-03-29" is the title of my stickynotes note window; then one can just run this command, in order to force that particular note window to stay on top:

wmctrl -i -r 0x032000f2 -b toggle,above

Note the use of -i switch, to "Interpret window arguments (<WIN>) as a numeric value rather than a string name for the window.". Also, this toggles the "always on top" property for the window; so if you'd like to turn the "always on top" off - simply run the same above command again.

Note that if stickynotes is set up to "Put notes on all workspaces"; then the "always on top" setting will be valid for all workspaces (although you may have to click through other windows at first, to have the window "understand" it should be "always on top").


To start the pulseaudio equalizer run:

qpaeq

If this gives you the error

There was an error connecting to pulseaudio,
please make sure you have the pulseaudio dbus module loaded, exiting...

then load these two modules using pactl:

pactl load-module module-equalizer-sink
pactl load-module module-dbus-protocol

and, to make these changes permanent, edit ~/.config/pulse/default.pa (create it if necessary) and add these lines:

load-module module-equalizer-sink
load-module module-dbus-protocol


this is what works

Open the file /opt/lampp/etc/httpd.conf
Search the "Listen 80" and change it to some other port (eg Listen 8000)
Open the file /opt/lampp/etc/extra/httpd-ssl.conf
Search the "Listen 443" and change it to some other port (eg Listen 4431)
Open the file "/opt/lampp/lampp"
Search for the port "testport 80" and replace it to "testport 8000". Also change the "testport 443" to "testport 4431".
Now go and run "/opt/lampp/lampp start". (It works now).


iMac Late 2013 Audio Cirrus Logic CS4206 Issues

I had many issues with my late 2013 iMac 21.5" as well. The setup which currently works for me is the following:

Pulseaudio and alsa default settings
in /etc/modprobe.d/alsa-base.conf, make sure you have the following option

options snd-hda-intel model=imac27_122

Then, speakers should work out of the box. To fix headphones, I had to use hda_analyzer.py, instructions are here. I actually had to modify the source a bit to run on my machine, let me know if you need further help with that.

Using hda_analyzer, make sure that you configure card-1 codec-0 as following:

Sound should then work with both speakers and headphones. The [2] IO is your headphone, the [3] is the speaker. To make the changes permanent, use exp to save the changes to a script and call it in the boot process (e.g. in rc.local).


System Settings screen blank after Ubuntu Phone upgrade on Meizu Pro 5

The problem was that the folder /usr/share/ubuntu/settings/system/qml-plugins/SystemSettings/ListItems/ and all its files was missing.

I was able to fix this by doing

flash the OTA-13 delta files
reboot into the system
flash the full OTA-13 files

(flashing the full OTA-13 directly over OTA-12 would make make the phone fail at boot time)


Error formatting volume read only volume

The hardware was corrupted by some reasons which I could not understand.
If you try all things written up and can not get any result, can be sure the usb drive will not be used anymore.


How do I set screen resolution for a specific program?

You can use the following python script to start your application at a given resolution:

#!/usr/bin/env python3

import argparse
import re
import subprocess
import sys

parser = argparse.ArgumentParser()
parser.add_argument('--output', required=True)
parser.add_argument('--resolution', required=True)
parser.add_argument('APP')
args = parser.parse_args()

device_context = ''    # track what device's modes we are looking at
modes = []             # keep track of all the devices and modes discovered
current_modes = []     # remember the user's current settings

# Run xrandr and ask it what devices and modes are supported
xrandrinfo = subprocess.Popen('xrandr -q', shell=True, stdout=subprocess.PIPE)
output = xrandrinfo.communicate()[0].decode().split('\n')

for line in output:
    # luckily the various data from xrandr are separated by whitespace...
    foo = line.split()

    # Check to see if the second word in the line indicates a new context
    #  -- if so, keep track of the context of the device we're seeing
    if len(foo) >= 2:  # throw out any weirdly formatted lines
        if foo[1] == 'disconnected':
            # we have a new context, but it should be ignored
            device_context = ''
        if foo[1] == 'connected':
            # we have a new context that we want to test
            device_context = foo[0]
        elif device_context != '':  # we've previously seen a 'connected' dev
            # mode names seem to always be of the format [horiz]x[vert]
            # (there can be non-mode information inside of a device context!)
            if foo[0].find('x') != -1:
                modes.append((device_context, foo[0]))
            # we also want to remember what the current mode is, which xrandr
            # marks with a '*' character, so we can set things back the way
            # we found them at the end:
            if line.find('*') != -1:
                current_modes.append((device_context, foo[0]))

for mode in modes:
    if args.output == mode[0] and args.resolution == mode[1]:
        cmd = 'xrandr --output ' + mode[0] + ' --mode ' + mode[1]
        subprocess.call(cmd, shell=True)
        break
else:
    print('Unable to set mode ' + args.resolution + ' for output ' + args.output)
    sys.exit(1)

subprocess.call(args.APP, shell=True)

# Put things back the way we found them
for mode in current_modes:
    cmd = 'xrandr --output ' + mode[0] + ' --mode ' + mode[1]
    subprocess.call(cmd, shell=True)

Save the above script (e.g as my-script.py) and make it executable:

chmod +x my-script.py

To set a resolution of 1280x1024 and start gedit just type:

./my_script.py --output VGA1 --resolution 1280x1024 gedit

To avoid typing this command everytime, save the script in your home directory and add the following lines to your .bashrc:

alias my_bracket='~/my_script.py --output VGA1 --resolution 1280x1024 gedit'

Or even better, modify the desktop file that the package installs in /usr/local/share/applications/brackets.desktop.

sudo gedit /usr/local/share/applications/brackets.desktop

And replace the file content with the new lines below:

[Desktop Entry]
Name=Brackets
Type=Application
Categories=Development
Exec=/home/mushir/my_script.py --output VGA1 --resolution=1280x1024 /opt/brackets/brackets
Icon=brackets
MimeType=text/html;
Keywords=Text;Editor;Write;Web;Development;

Source: Checkbox xrandr_cycle script


Need to install and it's ready

sudo apt-get install libqt4-sql-mysql  #for mysql
sudo apt-get install libqt4-sql-psql   #for postgresql
sudo apt-get install libqt4-sql-sqlite #sqlite


Driver Installing Problem for NVIDIA Tesla K80 under Linux

Based on your information

  a)the distribution-provided pre-install script failed

i assume you tried to install the driver from a *.run file downloaded at nvidia.com. Did you tried to install drivers from the ppa?

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update && sudo apt-get install nvidia-352

Where nvidia-352 is the long branch driver including support for Tesla and Quadro systems.

If you, for some reasons need to install the drivers from nvidia's page you should make sure you had blacklisted nouveau drivers first:

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

Add the following lines:

blacklist amd76x_edac
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv

If you had nvidia installed from the ppa recently purge it:

sudo apt-get remove --purge nvidia*
sudo reboot

Once back at your desktop try to install the nvidia drivers again:

Hit Ctrl+Alt+F1 to reach the text mode and login

sudo service lightdm stop
sudo /path/to/nvidia*.*.run


boot-repair has once helped me when nothing else did. But don't forget to backup important data, just in case.


Installing Ubuntu with dual boot Windows 10 crashes in MSI PX60 6QE laptop

I see you have a Skylake machine. I also struggled to get Ubuntu on my Dell Skylake machine. What worked for me was Ubuntu 14.0.4.5 LTS(I chose the GNOME version, tired of Unity). I also added the nouveau.modeset=0 in the GRUB options, and now I happily dual boot them together.

You will need to change the boot options after that. You need to find out what button gets you to the BIOS(on my Dell it is F12). Go to the boot settings, and swap the boot priority(make Ubuntu first, followed by Windows).

You should be good to go after this! :)


You'll have to edit the theme, if you installed them through the Gnome Appearance window the themes are here: home/[yourusername]/.themes/nameIchose/metacity-1/metacity-theme-1.xml. And if you installed the themes through sudo apt-get, they're here: /usr/share/theme, you'll need to be root to make edits to the files there (use gksu nautilus).

Look for something like this:

<frame_style name=...

    <piece position="titlebar" ...
<piece position="title" draw_ops="title-..."/>`

It depends on the theme. Experiment and you'll get results.


How do I add a Google account to my online accounts settings?

How to add Google:

Open a terminal
Type the following command, then press enter: sudo apt-get install account-plugin-google
Type y when it asks you if you want to install it
You are done


Cannot get flash video websites (YouTube, etc.) to work

The last Flash version provided by Ubuntu repos is 11.2.

To get latest Flash version 13, the easiest way is hrough Google Chrome browser.

Unfortunately the Pepper Flash Plugin of Chrome doesn't work with the default Ubuntu browser, Firefox.

You should reinstall Google Chrome:

sudo apt-get install --reinstall google-chrome

You may uninstall the old flashplugin-installer because it is obsolete.

sudo apt-get purge flashplugin-installer


Ubuntu16.04 boot to black screen in vmware workstation

I find that my nvidia driver has problem,when i input

lshw -c video

it show

*-display
description: VGA compat ible controller
product: SVGA II Adapter
vendor: VMware
physical id: f
bus info: pc 1@0000:00:0f .0
version: 00
width: 32 bits
clock: 33MHZ
capabilities: vga_ controller bus_ master cap_ list rom
conf igurat ion: dr iver=vmwgfx latency=64
resources: irg:16 ioport: 1070(size=16) memory: e8000000-efffffff memory: fe000000-fe7fffff memo
ry :c0000-dffff

and when i open floder /prov/driver
it doesn't have nvidia

root @zwq-v irtual-machine /p/driver# lS
rtc

so how can i install nvidia driver


Print only one line at a time from text file

You can use sleep and clear commands in your script as following:

for word in $(< read)
do
    echo "$word"
    sleep 1
    clear
done

Explanation:

The sleep command make delay for a specified amount of time (in seconds). With sleep 1 delay would be for 1 second. You can change for more time delay by incrementing the second parameter or for delaying less than 1 second divide it to low units; Like sleep .1 for 1/10 second delay or sleep .001 for 1/1000 second delay and etc.

The clear command clear the terminal screen.

Even better you can do this through below awk command:

awk '{i=1; while(i<=NF){ print $((i++)); system("sleep 1; clear") }}' read

Explanation:

In awk, the NF specifies the total number of fields in the current input record/line, so by using a variable as a counter (i) and looping over it, we are printing all of them from 1st position to the end of them (NF). Then by using the system("sleep 1; clear") part, we are telling to awk to calling the system commands to sleeping for 1 second and clearing the screen.

In above we are displaying the input file as word by word. If you are going to display it line by line add IFS=$'\n' in the script like:

IFS=$'\n'
for word in $(< read)
do
    echo "$word"
    sleep 1
    clear
done

And change the awk command like:

awk '{ $0; system("sleep 1; clear") }1' read

$0 specifies the current line. and the 1 on end enables the default awk's print command.


Install a package manager without package manager

Not sure if you want to use it in a graphic environment, but you could try this:

sudo apt-get install aptitude  synaptic

Aptitude works in a terminal, either trough commands or with an ncurses environment. Synaptic is my favourite GUI for installing and updating packages.

If what you mean is that you even lack off apt-get, which is weird... You'll need to download the corresponding .deb packages from the web for your architecture and install em with dpkg or gdebi. The syntax is always:

sudo dpkg -i <packagename.deb>

sudo gdebi <packagename.deb>

The difference is that gdebi looks for the dependencies and download them from the networdk, while dpkg would just complain and stop if there's any missing dependency.

Good luck!


Mobile Media Converter stoped conversion

UPDATE:
As for June 2014, on Ubuntu 12.04 64bit, the latest deb file (mmc_1.8.4_i386_multiarch.deb) gave a i386 not found error and  did not install, but I could install mmc_1.8.2_amd64.deb from this page, using this ffmpeg repo.


The site was running Drupal 7. A cached version of one of their pages confirms:

<meta name="Generator" content="Drupal 7 (http://drupal.org)" />

There was recently a vulnerability published for Drupal 7. The disclosure was somewhat bungled and attack code ended up in the wild within ~7 hours of the disclosure. It's thought that millions of sites were exploited before they could be patched.

When an exploit of this ilk arrives, it can very quickly be plugged into existing botnets and the internet is scanned quickly by bad people. Same happened with Heartbleed and Shellshock.

I can't speak for the Edubuntu team, but when your site has a possibility of having been hacked, and you have no method to prove otherwise, or you know you were hacked, you need to audit the site offline to make sure it wasn't exploited, reverse any damage and  update it. This can often mean rebuilding a site with a clean codebase.


A nice guy over on the Ardour forums was kind enough to explain what I was doing wrong.

  Create a new 3-channel bus
  Add an SC3 to that bus, set Chain balance on the SC3 to 1 and the others to taste
  Add a send from the kick track to input 1 of the bus
  Add a send from the bass track to input 2 (and optionally 3) of the bus
  Make sure the bass track is not connected to any output
  Hit play
  Profit!

  Clear all the automation you currently have on the SC track and set all the automation items to Manual.
  Set the SC3 compressor to
  Attack=2
  Release=130
  Threshold=-16
  Ratio=4
  Knee=3
  MakeupGain=5
  You can play around with Thresh, Ratio and Gain to get the perfect balance. If you decrease Thresh you have to compensate by increasing Gain

From what I've seen, these settings will give you a starting point to start fiddling around with to get the kind of side chaining you'll be looking for.  Kudos to the man named "peder".  Ardour Post


Webcam Studio

Allow you to use the virtual webcam provided during the program execution in order to be able to use it for several applications which includes but not limits only to: Skype, Google+ and other flash based video-chat web services (like http://ubiqq.com).

In the next screenshot I am using Webcam Studio in order to use my webcam (with a pre-recorded video) and share it through 2 web services: Google+ and Ubiqq.com

Please note that depending on the service, the image can be shown to you mirrored. Additionally, you may experience some lag when using the cam for more than 1 service at once.

It is hungry in resources as you can see in my system monitor panel's applet, I am using the majority of my 4GB RAM (the green square) when doing this, which lessen when I close both the application and the browser and a huge amount of my Core2quad microprocessor, which also lessen after closing everything.

I don't usually use this service for more than a service but your question encouraged me to run a test, which -in my case- was successfully.

Even if this doesn't solve your question, I hope this give you a clue and you find a solution soon.

Good luck!


Resolve.conf Doesn't exist but can't make an one

Usually,we can edit the /etc/resolv.conf. you can also use the graphical interfaces to edit the connect,fill in your dns server.

if you want create a bootable USB, you can use the unetbootin、Universal USB Installer etc.


How should I start MongoDB on a NUMA machine?

Upstart cannot stop or restart your service if you started it manually. You need to update the upstart script for mongodb so that it starts with the options you require, and then start it with service mongodb start.

First of all, since the zone_reclaim_mode setting is system-wide rather than specific to mongodb, you could add the line:

vm.zone_reclaim_mode = 0

to /etc/sysctl.conf, which configures system variables on startup.

Next, you need to update the script that upstart uses to start mongodb, /etc/init/mongodb.conf, so that it wraps the normal command with the numactl command. So the line:

if [ "x$ENABLE_MONGODB" = "xyes" ]; then exec start-stop-daemon --start --quiet --chuid mongodb --exec  /usr/bin/mongod -- --config /etc/mongodb.conf; fi

becomes:

if [ "x$ENABLE_MONGODB" = "xyes" ]; then exec start-stop-daemon --start --quiet --chuid mongodb --exec  /usr/bin/numactl -- --interleave=all /usr/bin/mongod --config /etc/mongodb.conf; fi

You also mention that upstart won't auto-start your service on boot; if that still happens after making the above changes, please attached a full extract from /var/log/mongodb/mongodb.log of a failed start.


I think you have installed a Windows version of Java in Wine and it takes precedence over the "normal" Java from Ubuntu repositories, possibly only when you open Minecraft via a desktop shortcut.

You need to remove the Windows version of Java (if you have no other stuff installed in Wine I'd just remove/rename .wine directory to be sure it's gone) and then try to run Minecraft from terminal with

cd ~/Desktop
java -jar minecraft.jar

Note the -jar parameter. Make sure you can run Minecrafr this way, and then you can create a desktop shortcut as described in the article linked to by MickStep.

You also don't need Minecraft.exe, and it won't work, don't even try.

Also, Minecraft works well for me with Ubuntu's stock-standard OpenJDK Java, so maybe you can start with it, and if it does not work look at installing Java from Oracle (but, again, not a Windows version)


Ubuntu 16.04.2 install from usb drive results in blank screen

adding

  nomodeset

Before installing Ubuntu should do the trick

If you are prompted with a graphical interface of the Ubuntu installation there should be an option to tick nomodeset in the bottom right corner.

However if you are prompted with grub like version of the Ubuntu installation, highlight "install Ubuntu" but don't press enter just yet add nomodeset right after where it says splash then resume the installation.


Why am I getting this error? How to solve this error?

Sounds like dpkg/apt is running somewhere else possibly in another terminal window.  Or you might have accidentally closed the terminal window where dpkg/apt was working.  If your sure dpkg/apt aren't running somewhere else, you could delete the lock file.


The battery conservation mode is enabled with:

$ echo '\_SB.PCI0.LPCB.EC0.VPC0.SBMC 3' | sudo tee /proc/acpi/call

It can be disable with:

$ echo '\_SB.PCI0.LPCB.EC0.VPC0.SBMC 5' | sudo tee /proc/acpi/call

On Debian/Ubuntu you should install the package acpi-call-dkms

(Credits: ArchLinux wiki - Lenovo IdeaPad 720s)

The just mentioned wiki page refers to the IdeaPad 720s, on my IdeaPad 320 I've double check on the BIOS DSDT table and it seems to be the same. Browsing the web, I've found a case where the proper code to enable it was 4 (instead of 3) but 5 was used to disable it in any case.

Edit Edit Edit

The battery conservation mode is now exposed via the kernel module ideapad-laptop, so just load the module and then use:

# to read the current status
cat /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode

# to enable
echo 1 > /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode

# to disable
echo 0 > /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode


how to fix update problem on ubuntu 16.04

This happened to me in a recent install, too, but I had installed the Google repository - I see that you have installed it, as well, in your first line...

Navigated to /etc/apt/sources.list.d/.

Edited google.list by invoking sudo nano google.list.

Commented out the source with a #

Saved and ran sudo apt-get update

In case you like to do it in the terminal:

sudo nano /etc/apt/sources.list.d/google.list

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

Save and Close the file using Ctrl+X and then Y, and try updating using:

sudo apt-get update

Error solved!


Need to copy firmware files at /usr/lib to /lib using terminal

To copy the firmware folder to /lib:

sudo cp /usr/lib/firmware /lib -R

To make a symbolic link (or softlink/symlink) to /usr/lib/modules/3.10.30-20-ARCH in  /lib/modules:

sudo ln -s /usr/lib/modules/3.10.30-20-ARCH /lib/modules/3.10.30-20-ARCH

Be careful, though. This looks like a path that depends on the kernel version. The modules folder may not even exist.


KVM virtual machine: memory usage grows spontanuesly

The only solution that I found was to create a new VM with a fresh installation of Ubuntu and to move all data and settings manually.
Only two things that caused the issue comes to my mind:

some residues from the VirtualBox Guest Additions caused the problem
the migrated VM was installed with UEFI the and in new VM I use BIOS so it might be that there was a bug with the emulated UEFI


Ubuntu 20.10 groovy-gorilla dual boot with puppy-linux fossapup

I managed to get groovy-gorilla to dual-boot with fossapup on Lenovo thinkpad t420s. Here are some observations:

When I installed fossapup, I did not get an option to install the distro in the entire partition. The option to install the distro in the entire partition does not exist anymore. You can only perform a frugal install with fossapup. In the past, I used to wipe out the partition, then skip installation of grub4dos, and reboot with boot-repair to reinstall grub-2 followed by sudo grub-update which used to sense the puppy installation and bring it back. However, it does not work with fossapup.

When I ran boot-repair, I did not even get the grub menu because it was hidden, once I booted into groovy-gorilla, I had to comment GRUB_TIMEOUT_STYLE=hidden in /etc/default/grub to make grub menu visible.

I found this post from 2015, titled, "How to install Puppy Linux (frugal) and configure Grub2 bootloader" which was super helpful in fixing my issue. I followed the steps carefully.

The key step is the creation of /etc/grub.d/40_custom file which is used to augment the grub menu. This is the key step. Please see link in bullet #3 for details

Once done, running sudo grub-update will inject fossapup into the menu. However, you won't see it when grub-update is running.

When I booted, I could see the fossapup menu item.


Edit /etc/gdm/custom.conf and add or change the Exclude directive in the [greeter] section:

[greeter]
Exclude=nobody,user,user1

Users user and user1 won't be shown on the list at the login screen but can still log in by typing their name and password (if they have a password).

Credits to user Gilles


How to restore after accidentally apt-get remove python

Managed to get it done this afternoon.

sudo apt-get install --reinstall python python-chardet python-colorama python-distlib python-django python-django-tables2 python-six python-html5lib python-lxml python-minimal python-pkg-resources python-setuptools python-urllib3 python-requests python-pip python-virtualenv

sudo apt-get install --reinstall python-dnspython

sudo apt autoremove

sudo apt-get -f install

After a whole day of adventures in the deepest pits of the internet, these commands worked for me.

python-dnspython and samba was still missing after the first command, --reinstall python-dnspython pulled samba in as well. Autoremove removed the needless dependencies.


When counting lines with wc, don't print an error whenever is a directory

You can output the error messages to /dev/null

$ wc -l /etc/* 2>/dev/null | tail -1

With this command you are only seeing the number of lines in the files that are world readable.  To see the number of lines of all the files you would have to elevated the command with sudo.

$ sudo wc -l /etc/* 2>/dev/null | tail -1


How can i access my ubuntu server (with GUI) on another computer

You could enable Desktop Sharing on your server and use a Program like TightVNC to view and control the servers desktop from a windows machine.

To enable desktop sharing on your server, simply find it in the Unity dash.


pm-suspend is not under /sbin/

misha   ALL = (root) NOPASSWD: /usr/sbin/pm-suspend

Might give you better luck.


Read-only error on lxle dual boot with windows 10

Disabling the hibernation feature, helped to resolve the issue.
First disable the fast boot option:

Go to Control Panel > Hardware and Sound > Power Options > System Settings Then click on 'Change Settings that are currently unavailable' and remove tick from 'Turn on fast startup'.

Run this with elevated prompt:

powercfg /h off

and then restart your computer for the changes to take effect.


Script to program periodic switch-on and off

rtcwake should be able to help you out here.

sudo rtcwake -m mem -s 15

That should enter a S3 (memory) suspend for a few seconds, all your fans will shut off... And then and then boot right back up again without any state loss. Even network connections remain intact here.

There is also a -m off mode. I'm going to assume you lose state completely here and AFAIK, only some BIOSes are equipped to power on from an off-state from RTC. Might be worth a shot if S3 doesn't work.

You can automate that with cron. Run sudo crontab -e and add something like:

0 */4 * * * rtcwake -m mem -s 15

That will run every four hours. It'll annoy the hell out of anybody using it when it goes to sleep, but that's apparently what you want.

But in all seriousness, this doesn't sound like a healthy underlying issue.

You might do well to fix or replace the broken parts, or at least diagnose it properly. You might be able to fix the problem completely or at least get it to the point that so when it does finally die, you know what needs replacing.

These things have a habit of kicking the bucket when you most need them.


Moving Ubuntu Server installation from flash drive to HDD via SSH

With the USB drive plugged in you can copy all of the files on the drive to, say, \root\, and be almost all set. You may be able to chroot into /root and check things out.
But now the tricky part, you need to rename /root to / and reboot simultaneously. You can't do the rename before the reboot because at that point your target system will no longer be intact--its file system won't match its kernel and environment and you can't do anything after the reboot is issued.
Further, it would be almost crazy to rename and reboot simultaneously as the system is unusable if the new software won't run that particular hardware--you will be dead in the water.

This is why serial consoles are used. I suggest that you spend a few bucks for a serial card and add it to the server. That way you can do the final work from there and back things out if you try things that don't work.

Another idea is to run your new system as a virtual machine on the old one.


kvm is a kernel module in linux. now you should download and compile qemu source code. follow this link to do that :
https://wiki.qemu.org/Hosts/Linux
.when you install libvirt, it will install qemu too, but for changing migration code you need to build qemu yourself.
migration code is available in qemu source code too.
good luck


configure: error: Not found mysqlclient library

Install libssl-dev package:

sudo apt install libssl-dev

When Zabbix configure script checks if MySQL libraries are available it runs mysql_config which insists on using -lssl along with -lmysqlclient. So the configure test fails with this misleading error message.


What is the recommended method to encrypt the home directory in Ubuntu 21.04?

The recommended way to encrypt on Ubuntu/Linux these days is indeed LUKS, whether for separate containers or whole partitions.
I am doing exactly what you want to do, encrypting and mounting a separate partition as my /home/$USERNAME% drive. Below are the steps involved.
WARNING: Doing this will destroy any data on the partition you use!
1. Create the encrypted partition:
sudo cryptsetup luksFormat /dev/sdXX
where you replace sdXX with the actual device number of the partition you want to encrypt. Choose your password when prompted. This will create the LUKS header at the beginning of the partiton, nothing else. You can verify that the header has been correctly formatted by LUKS by doing
sudo cryptsetup luksDump /dev/sdXX
2. Map the encrypted container:
You can replace c1 by whatever name you want:
sudo cryptsetup luksOpen /dev/sdXX c1
2a. Wipe the partition (optional):
sudo cat /dev/zero > /dev/mapper/c1
will wipe the partition with random data, making sure nothing that may have been on it before can be reconstructed. This may take a while.
3. Create a filesystem in the mapped container:
Here I use ext4:
sudo mkfs.ext4 /dev/mapper/c1
4. Update your /etc/crypttab file:
Your crypttab should contain a line like
cryptHome     UUID=12345678-abcd-1234-5678-1234567890ab    none    luks,timeout=30
with the UUID of the device you just encrypted above (i.e. the /dev/sdXX device). You can find it out by using e.g. lsblk -f (it should say "crypto_LUKS" under FSTYPE in the output).
5. Update your /etc/fstab file:
Finally, your fstab should contain a line like
/dev/mapper/cryptHome         /home/username    ext4   defaults    0    2
to mount the decrypted partition in your filesystem. The mapped name (cryptHome) must match the one you defined in the crypttab. Replace username by the name of the actual user.
You could also mount it under /home, but then you will have all user's home directories in one encrypted drive - that means all of them need to know the partition's password to open it on boot.
Final remarks
With these steps Ubuntu will ask you to unlock the partion on every boot, before the login screen for the user.
There is no problem to set up the system with a default /home/username directory, and then mount an encrypted partition over it. To migrate an existing home directory, mount the mapped drive (/dev/mapper/c1 in this example) somewhere temporary after Step 3 and copy over the data before rebooting.
This is an excellent resource if you want to know more about how LUKS works.


Ubuntu 12.04 Shortcuts with Super key doesn't work

When you change the hardware of the computer, the OS needs to be reinstalled for it to work flawlessly. If you "kept" your harddrive, then most of the functionalities would work, but somthing configured specifically for your old hardware would not work with new one.

I suspect that the problem you described above falls in this category.


How do I customize the date/time display in GNOME Shell's top bar?

You may achieve your goal using some GNOME shell extensions.
Moving clock to the right
You may use Frippery Move Clock.
See this Q&A for more options.
Changing date & time format
You may use Clock override. It lets you

Override the Gnome Shell clock with a new time format or text of your choice.

It supports Python's strftime format (so you'll be able to set your preferred "%Y-%m-%d %s %H:%M" format to display).


My Panasonic TUOGHBOOK is 32-bit with Ubuntu 17.10, and 'Software Updater' upgraded this morning to 18.04LTS without problems... took three hours and I was on pins and needles the whole time worried, but apparently worried for nothing. 18.04 looks and feels just like 17.10 though... Gonna do an image of the whole drive to a USB thumb drive via Ghost4Linux next! (add it to my 17.04 and 17.10 image collection)


dpkg --get-selections | grep mysql

The above command will displays all the packages that have the word mysql.From that you can find the exact one and then remove it by running,

sudo dpkg -P <packageName>

The below command does not remove  the installed mysql package,

teeba@ubuntu:~/Downloads$ sudo dpkg -r mysql-workbench-community-6.0.9-1ubu1204-i386.deb


How to resize an image through the terminal?

Same command, with an extra option:

convert myfigure.png -resize 200x100 myfigure.jpg

or

convert -resize 50% myfigure.png myfigure.jpg

To resize multiple files, you can try the following command (as suggested by @test30)

find . -maxdepth 1 -iname "*.jpg" | xargs -L1 -I{} convert -resize 30% "{}" _resized/"{}"


How to add multiple of the same provider

After adding an account click on that provider again, and you'll see an option to 'Use Another Account'

But I think it's only possible with Google.


Prevent suspend before completion of command run from Terminal

I'm not sure, but have you tried systemd-inhibit? It works on Linux boxes running on systemd (Ubuntu 16.04 being on of them, AFAIK).

Look at the manpages, man systemd-inhibit for help.


How do I know if the kernel was build with CONFIG_MODVERSIONS?

Try this:

Install the dpkg-dev package. This is needed for step 2.

sudo apt-get install dpkg-dev

Download the source of the kernel you are currently using:

apt-get source linux-image-$(uname -r)

That will create a directory in your current directory that contains the kernel source. For example, on 13.10 running kernel version 3.11.0-12-generic, it created:

/home/terdon/linux-3.11.0

Check if the option is set in the ~/linux-3.11.0/.config file:

$ grep CONFIG_MODVERSIONS  ~/linux-3.11.0/debian.master/config/config.common.ubuntu
CONFIG_MODVERSIONS=y

As you can see above, the option is set to y (on) by default so presumably, unless you have compiled your own kernel, the option is set in the kernel you are using.


time of all guest session login in Ubuntu 14.04

Use the last command:

$ last | grep guest
guest-3j tty8         :1               Thu Jan 26 16:07 - 16:07  (00:00)
guest-i1 tty8         :1               Thu Jan 26 16:07 - 16:07  (00:00)


How to make Unity 2D workspace button trigger Compiz expo view mode?

For the record, Unity 2D should work with Compiz too. There very likely is some glitches here and there as the developers of Unity 2D do not spend time testing with Compiz but only with Metacity.


Why don't I get the option of upgrading to 20.04

From terminal, attempt to upgrade to Focal:

sudo apt update&&sudo apt upgrade
sudo do-release-upgrade

If your PC doesn't find the upgrade use the -d flag:

sudo do-release-upgrade -d


Did you install Eclipse via the Ubuntu Software Center? Since it's never up to date there, you should donwload it from the Eclipse website. 3.7.2 is the latest, you seem to be running 3.7.0... After having unpacked the data to whatever place you want you can launch it by running the eclipse executable (purple with two gears for an icon). Unfortunately it doesn't really support being added to the launcher that way. You can of course create a desktop shortcut to the eclipse executable.