How to install USB Wi-Fi driver from the cd in lubuntu?

Reputable hardware manufacturers push their drivers to the Linux kernel, so their hardware is automatically detected and just works for you. You should not need to install anything. Your dongle should simply work. Try it.
Compiling kernel modules yourself from source (which is likely what's on the CD) is possible, but that method fell out of favor over 15 years ago.

This method is not used by any reputable Linux-supporting manufacturer today.
This is not a task for beginners!
The compiling tools that you need are NOT on the install image anyway. If you lack another means of network access, this is a chicken-and-egg problem.

Advice: If the WiFi dongle is not automatically recognized by your Ubuntu system, return it to your vendor and purchase one that is automatically recognized (there are many!)

Do not give your money to manufacturers and vendors who don't provide proper Linux support (or who lied about it!)
Support vendors who have a generous return policy. Occasionally, despite extensive research, you discover that some hardware is less-than-advertised or incompatible.


If you have a Windows installation DVD or repair CD, you can boot to a repair command prompt and run:

bootrec /fixmbr

This command installs the Windows bootloader. If you have a dual boot it would boot straight to Windows and you can then do what you want with the linux partitions.

If the Windows refresh you are talking about is the manufacturer-supplied option, then I doubt it will do anything with the bootloader. If you don't have a Windows installation DVD or repair CD, boot Windows and create a repair CD. Or a repair USB.

Alternatively you can use lilo with it's "Windows-style bootloader" option from Ubuntu, which works the same as the Windows bootloader. See here for details.


Handling old kernels with automated upgrades

In reply to your very last question--I'm not sure why people recommend a separate partition for /boot but I've seen at least one other question here in the last couple of days from someone who's /boot partition had been filled with old kernels and it had caused a problem.

I'd suggest that you not automatically install kernels. It's not that they fail often, or that they fill up /boot, but because if you get an update that is incompatible with your hardware you won't know it until your system won't boot. If you are like me you may not remember, days or weeks later, e-mail or not, that the cause might be a new kernel. I'd exempt kernels, grub, and perhaps lightdm or gdm and xorg, at least.

For safety sake I think somethings should happen with human intervention.

There's a big dose of personal preference to all this, however, so YMMV indeed.


Some of the icons that you deleted were required by the software center, one of them being package-install located in /usr/share/icons/Humanity/actions/16/package-install.svg
Try to get this file from a friend and then check if it works. Just a guess, not sure if this would work.


Can't boot Windows Xp after intalling Ubuntu 12.04

You'll need to boot off the Ubuntu LiveCD and re-install grub and configure it.  Instructinos are here:

How can I repair grub? (How to get Ubuntu back after installing Windows?)

One possible reason for Windows not booting is that the base operating system was damaged during the partition re-size operation.  A possible cause for this is an inconsistency in the data.

This is why we normally recommend a few steps before installing alongside Windows:

Backup your data and make sure you have a Windows boot disk or some other recovery option
Run chkdsk on the drive to make sure there are no errors.
Defrag the drive so that the re-size operation has as little work to do as possible and that it goes quickly


Drivers for Broadcom BCM43142 on Ubuntu 14.04 (Trusty Tahr)

OK, so I finally fixed this :D

First here's what I learnt in the process:

NEVER ram your OS with different drivers or modules haphazardly until your problem gets fixed, at least not without a) Knowing what / why you are doing, and b) MOST IMPORTANTLY How to undo the same.
Whenever you try a different driver, module, or package, first uninstall the package that you previously installed for the same purpose.

And lots of thanks to @chili555 who pointed out that the leftover from a previous package was the reason.

So what I did was:

I tried installing bcmwl-kernel-source on a live run of Ubuntu 14.04 (with my LAN cable) and checked if WLan works now. (And yeah, it did confirm that Ubuntu 14.04 / BCM43142 / bcmwl-kernel-source were not the problem.)
I went to /etc/modprobe.d and cross checked the files there with my hard disk installation's version of the same folder.
This /etc/modprobe.d directory contains configuration files which contain blacklisting information for different modules. I made a note of the available files and later removed what was not available here from my hard disk installation's version of the same folder too.
I went to /lib/modules/3.*/updates/. This is the directory that stores all your modules (wl, b43, etc. ... ) and the one that I messed up with various custom patched versions of wl modules listed in various forums.
After cross checking with my hard disk installation's version of lib/modules/3.*/updates/, I manually removed all Bluetooth / wireless / dkms / wl / (and in particular one mac80211) and cleaned up any other modules that are related to wlan.
I finally replaced (did a recursive copy onto) the /etc/modprobe.d and /lib/modules/3.*/updates/ directories (of my hard disk installation) with the same directories from the live OS.
Reboot
Do sudo apt-get install bcmwl-kernel-source. This is the official working driver for BCM43142 for Ubuntu 14.04.
Reboot and sudo modprobe wl and viola, wireless was working!

And finally sincere apologies to all my cross-posting, reposting, spamming IRCs with this question repeatedly. :P

NOTE: Replacing /removing your hard disk installation files is recommended only for those who installed your OS recently. Otherwise there is a risk that you could replace / remove files / modules that may have been installed for other devices which may be irrelevant to this issue.

Thanks again to chili555 :)

EDIT I recently updated my kernel to support the DisplayLink driver for my USB monitor and bam the wifi was gone.

A blind attempt at re-installing bcmwl-kernel-source threw the following error in the build log.

"alloc_netdev" requires 4 arguments, but only 3 given

Turns out the driver was not updated for the upgraded kernel (version 3.18). A bit of googling let me to this post -

https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1358966

Where there are links available to patched versions of wl, which works with the upgraded kernel.

I manually downloaded and installed this guy and wifi was restored.

Now I can go back to browsing lolcats in peace. Amen.


nohup home/user/.piamanger/pia_manager/run.sh

is missing a / in front of the script. And "user" needs to be your actual username.

Does /home/user/.piamanger/pia_manager/run.sh run without any output?

You can try /etc/crontab (that would be my choice).

vi /etc/crontab

and add

@reboot user /home/user/.piamanger/pia_manager/run.sh

(again: "user" needs to be your actual username). It might be prudent to catch output into a "log" file (> /home/user/.piamanger/pia_manager/piamanager.log) or redirect it (2>&1).


Changing the repositories after PXE installation

When using a preseed file for ubuntu server install, you may also insert late commands - commands that will run as soon as the the installation ends.
You may want to run an apt-mirror-updater command, or any other command that suites you.

Example:

d-i preseed/late_command string in-target apt-mirror-updater ["your params here"]

Another example::

d-i preseed/late_command string in-target add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ Bionic universe multiverse"

Further reading:
apt-mirror-updater: Automated Debian/Ubuntu mirror selection
Appendix B. Automating the installation using preseeding


Vagrant does not see VirtualBox provider

.. and I solved it.  Looks like 5.2 is not supported for some reason.

apt-get remove virtualbox-5.2
apt-get install virtualbox-5.1

starting vagrant now works well.


Redirect to 'www' prefix domain using nginx

You basically need two server configuration chunks:

One for www;  to be redirected to base domain only
One for the base domain

Here is an example to get you started:

server {
    listen 80;
    server_name www.example.com;

    location / {
        # Redirection happens here
        return 301 http://example.com$request_uri;
    }
}

server {
    listen 80 default_server;
    server_name example.com;

    # Other conf directives go here
}


Change close button to right on Ubuntu 16.04 GNOME

To view the current position of the buttons, open Terminal and run

gsettings get org.gnome.desktop.wm.preferences button-layout

To change it to the left run

gsettings set org.gnome.desktop.wm.preferences button-layout close,minimize,maximize:

or to change it to the right run

gsettings set org.gnome.desktop.wm.preferences button-layout :minimize,maximize,close

The position of window buttons is determined by the position of the : mark. If it's at the beginning, the buttons will be at the right; if it's at the end, the buttons will be at the left.

Source


ttyUSB device problem (cp210x ttyUSB1: failed to set baud rate to 300)

The problem appears to be the approach. On page 132 of the documentation available from the link you provided in your comment It states quite plainly:

set baud rate to 115200, data to 8 bit, parity to none, stop to 1 bit, and flow control to none

Matching the settings to what the board supports would seem prudent.

Source:

https://www.xilinx.com/support/documentation/boards_and_kits/vcu110/ug1073-vcu110-eval-bd.pdf


oracle-java8-installer results in "apt" removal?

This recent change referenced in the 'apt' package ChangeLog appears to be the likely culprit:

apt (0.9.15.4ubuntu4) trusty; urgency=low

  Cherry pick fixes from the apt 1.0 branch:

  [ Michael Vogt ]
  * add sun-java{5,6}-jdk to breaks/replaces as that provided a "apt"
    binary as well

The oracle-java8-installer package "Provides" the "sun-java6-jdk" package, so this conflict bubbles up and prevents us from installing the WebUpd8 packages -- even though neither oracle-java7-installer nor oracle-java8-installer actually installs the problematic "apt" binary mentioned in the apt changelog.

I went ahead and submitted a bug report for this: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1302736


installed unstable graphic driver and it crashed, how to restore normal graphics driver?

I got it fixed by:

sudo apt-get install nvidia-current


Files in cron.{daily,hourly,weekly...} are not in the crontab format, but scripts or executables that are directly executed. Files in cron.d are in the crontab format. Either:

Move mc2xmlUpdate to /etc/cron.d, or
Copy/link /home/username/mc2xml/update.sh to cron.daily

Also, your PATH specification contains a ; instead of a :.


How to install the latest stable version of 'Mars Eclipse' on machine running on Ubuntu 12.04 LTS?

Before installing eclipse you need to install java , you can either install JRE or JDK .

sudo apt-get install openjdk-7-jre

or

If you are going to use eclipse for java development, then you can install JDK

sudo apt-get install openjdk-7-jdk

Download the latest eclipse package from here http://www.eclipse.org/downloads/?osType=linux

move the package to the /opt directory

sudo mv eclipse-SDK-4.2.2-linux-gtk.tar.gz /opt/

Unzip the package by typing the below command

cd /opt
sudo tar -xvf eclipse-SDK-4.2.2-linux-gtk.tar.gz


It is possible to repair GRUB using the boot repair tool which is usually reasonably reliable at identifying the correct partitions etc.
You will need a live CD to boot on and then you can install the repair tool.  You need to follow the second option in this link https://help.ubuntu.com/community/Boot-Repair

In short these are the commands you will need to run:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair

NB: This will only work if all your Linux partitions are still intact (which in your case they may not be), however a report will be generated which will include a partition table which you could add to your question if this does not work.

Another option for you could be to try the repair Windows boot files under 'other options' in the advance options in boot repair. I have never made use of this option so cannot vouch for its reliability.


How to install a rtl8192fu usb wireless adapter

follow this:
https://github.com/kelebek333/rtl8192fu-dkms
After rebooting, if you can't find the device, check the information with 'dmest | less'


Display Manager Crashes on Dual Monitors with GNOME 3

First of all, although it is possible to use several desktop environments with Ubuntu, that is, what I would like to call it, not recommended. Original Ubuntu comes with Unity desktop and LightDM deeply integrated into the operating system. Ubuntu GNOME is designed for being used with GNOME desktop and Kubuntu is designed for being used with KDE desktop. So you should consider to use one of these editions with only one, the matching desktop environment.
As you are having very new graphics hardware and problems, install the latest drivers.
NVIDIA fixes many bugs and improves the drivers software with every new release.

Step 1 : Remove the currently installed NVIDIA drivers.

Highlight the Ubuntu menu entry and  press the E key.
Add nouveau.modeset=0 to the end of the linux line.
Press the F10 key to boot into the Ubuntu system.

When the login screen appears press Ctrl+Alt+F1.
Enter your user name and the password and execute :

sudo apt-get purge nvidia*
sudo reboot

Step 2 : Install the latest official stable NVIDIA drivers.

Highlight the Ubuntu menu entry and  press the E key.
Add nouveau.modeset=0 to the end of the linux line.
Press the F10 key to boot into the Ubuntu system.

When the login screen appears press Ctrl+Alt+F1.
Enter your user name and the password and execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358 nvidia-prime
sudo reboot

After the NVIDIA drivers are installed, adding the boot parameter is not necessary anymore.
Use NVIDIA X Server Settings (PRIME Profiles) to switch between intel and NVIDIA graphics.


MacBook Pro: should I virtualize Ubuntu or use Boot Camp?

Wherever possible, a proper installation is best for the system. While virtualization gives you a lot of control, a full install gives you more flexibility within the system itself, gives your OS full access to the hardware potential, and allows you to get the full potential from the system.

Even if you are just doing coding, it might still be a good idea.


How do I mount Samba share as non-root user

A very nice tool to easily mount your samba shares in your home folder is SMBNetFS. With this tool you can access your samba shares by nearly all applications simply through a mount point in your home.
How to use SMBnetFS:

Install the package through your package manager
cp /etc/smbnetfs.conf ~/.smb/smbnetfs.conf copy standard configuration
cp /etc/samba/smb.conf ~/.smb/smb.conf copy samba configuration
mkdir ~/sambashare or any other name for the mount point
smbnetfs ~/sambashare mount the shares to the mountpoint

Unfortunately there is only little documentation available. See man smbnetfs for options and go through the FAQ file in /usr/share/doc/smbnetfs.


PowerBI encountered error and it needs to close [Ubuntu 18.04]

What you fail to indicate is that PowerBI is a Microsoft proprietary product.

You may be able to install it via Wine, but Wine is not Windows.  Nobody else has attempted to install PowerBI with Wine, and there are no test results

Not every Windows program can run under Wine.

I attempted to run various PowerBI components in Wine Stable and Devel latest on 16.04 without success (and those Wine versions are newer than what is in the repositories for any Ubuntu release).  I have to conclude by that that PowerBI does not run properly on Wine.

PowerBI does not have any Linux builds either.  Which means short of a virtual Windows environment on VirtualBox, you are unlikely to be able to run PowerBI on Ubuntu natively or via Wine.


Ubuntu 11.10 could not start just after installation

Please wait some times at the time of booting.May be you are selected recovery option from grub boot menu


When to choose an older Ubuntu Server version

Ubuntu Server 18.04 LTS has been used by production systems for two years now, so it's seen as more stable. Ubuntu 20.04 LTS has a longer percentage of its supported life left (regardless of count of standard or extended lives). The upgrade path to 20.04 LTS (from 19.10 or 18.04 LTS) hasn't even opened for upgrades yet (unless forced) which shows the 'newness' of 20.04 LTS.

Other factors such as what packages you want to use, or your needs should of course also be taken into account (20.04 being so new, may not have all wanted programs/3rd party packages made available for it yet). In time, this will of course change.


Ubuntu 14.04 running nProbe gets lro / gro errors

Offloading is a network throughput tweak.  It takes multiple packets and strings them together as a single packet, since it's faster to send one large packet, verse a bunch of smaller ones.

I can't imagine you would see a difference any which way depending on your usage, I would disable it and see if you experience any noticeable loss.

sudo ethtool --offload [interface eth0?] gro off
sudo ethtool --offload [interface eth0?] lro off


Find your Gimp profile (normally ~/.gimp-2.8), and try, in that order, to:

erase the sessionrc file in it (this is where Gimp remember Window positions)
if this is not enough, rename the whole profile (.gimp-2.8 -> .gimp-2.8.disabled for instance). Gimp will create a new profile and if things are OK, you can later copy things back if needed (brushes, patterns...).

Otherwise start Gimp with gimp --verbose to make it tell us what it is doing.


Black screen with the cursor blinking (flashing)

I have only been on Ubuntu 12.04 LTS for around 12 months and it was my first time to Linux so I am definitely not an expert.

I understand this post is about 10.10 however my recent post for the same problem I was having in 12.04 LTS (One solution to black screen with flashing cursor on reboot in 12.04 LTS)
may help as it ended up being an issue in the BIOS settings.

I'm not sure if your machine has the same "USB device boot priority" setting in the BIOS but it may be worth looking at or looking into the Boot Priority in the BIOS if you haven't already done so.

Brad.


How to install tracker-ui on ubuntu 18.04?

Tracker has been re-introduced since 19.04. If you want to use it, upgrade or install Ubuntu 19.04.

Note that there is no package called tracker-ui in the Ubuntu repositories.

As pointed out by vanadium below, tracker itself is available in Ubuntu 18.04 but without tracker-gui, not tracker-ui, which has been discontinued.


What is "Default applications for LXSession" in Lubuntu 13.10?

I know this is an old question but it showed up as my first result in a Google search for "lxsession defualt application names" so I thought I might at least post something in case other folks end up here for the same reason.

My version does not have the "Running applications" tab but the "Launching applications" tab is where you specify which program will be used for common tasks (web browsing, checking email, writing documents, etc.). For example, if your keyboard has a button that should open a web browser it is here that you set which browser (Chrome, Firefox, Opera, etc.) it should open.


To upgrade from 12.10 to 13.04, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

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

Once that is done, a window will open, just click on Upgrade.


NVIDIA drivers not working after upgrade. Why can I only see terminal?

You will need to boot into recovery mode, then issue apt-get remove --purge nvidia-current on the root terminal, followed by apt-get install nvidia-current - to rebuild the nvidia driver for the new kernel. I had this problem as well when I upgraded.

Please do not install the drivers from nVidia's website btw! You could cause serious trouble if you then try to install the recommended driver later without cleanly removing the previous one.

Edit:
You will need to run these commands from a terminal. I cannot guarantee a perfect result, since I am going based on what I've found via the internet and from memory.

The problem you are getting is caused by having differing user mode components and kernel modules. To fix it, the nvidia kernel module has to be rebuilt. This is supposed to happen on reboot, but it often does not.

First you need to install the linux kernel headers:

sudo apt-get install linux-headers-generic

Then you will need to run dkms to remove the old nvidia kernel module:

sudo dkms remove nvidia

Then run:

sudo apt-get install nvidia-current
this should make it install correctly, so all you need to do is run sudo nvidia-xconfig and reboot.
If you still get an error about the module version, run: sudo dkms build nvidia

This should solve the problem.

Sorry if things are a little confusing, I tried to put back together the process I had to use to the best of my memory :)! If you run into problems don't hesitate to let me know (and if anyone spots any problems with the instructions please let me know ASAP)!!!!

Update:

I found another possible cause. Nouveau might not have been blacklisted, and nvidia-current may not have placed itself in the .conf file that is used to choose your display driver. Here is how to fix it:

NB:

Before you continue, ensure that you have the nvidia-current driver from the repositories. Downloading the driver from nvidia's website can cause problems later, as it does not use the debian package format and leaves things behind that can conflict with later installations. So make sure you clear any traces of it first, and then install the standard driver from the Ubuntu repos. If you do not, you will get a driver mismatch, and this fix will be pointless.

If you are stuck on the console, log in and install the nouveau X.org driver: sudo apt-get install xserver-xorg-video-nouveau
Restart your computer (you will have working graphics, yay! But this is temporary).
Open gedit as root: gksu gedit.
From gedit open /etc/modprobe.d/blacklist.conf.
Add this line at the bottom: blacklist nouveau.
Save the file, and open /etc/modprobe.d/nvidia-graphics-drivers.conf.

Add these lines:

  blacklist nouveau
  blacklist lbm-nouveau
  blacklist nvidia-173
  blacklist nvidia-96
  alias nvidia nvidia-current

  Now save this file, and close gedit.
  Run:

  sudo nvidia-xconfig,
  and then:
  sudo apt-get remove xserver-xorg-video-nouveau,
  followed by:
  sudo shutdown -r now.

  When your system restarts, you should have working nvidia drivers.

  By the way, this problem of not blacklisting nouveau seems to exist in the newer drivers (nvidia-current), so I would suggest after fixing the problem, that you wait for an update on this bug (I am going to report the bug soon).

Alternate solution:
If you did install the NVIDIA drivers from their web site, then you must boot into a text terminal, (hold  at boot to see grub menu and select 'recovery' mode of the kernel version that last worked with the NVIDIA drivers, and select the command line as root option)

Then run the original NVIDIA install shell script you ran to install the NVIDIA drivers from their website. e.g. sudo ./NVIDIA-Linux-x86-290.10.run --uninstall. (Your version may differ.)

You won't need to run the "sudo dkms remove nvidia" command, as this doesn't apply for your case.


The "echo 300" is executed using sudo, which outputs 300 to stdout in the normal way. Then as your normal user, you are trying to take that output and write to /sys/

Sudo isn't a magic command that elevates privileges for your whole command line. It takes the arguments you passed to it and executes them as a program. Bash (which is running as a normal user) executes 'sudo echo 300' then takes that output and tries to write it to a file. Note that the writing to the file is done by bash which is running as the normal user.

This should work:

sudo bash -c "echo 300 > /sys/block/md0/md/stripe_cache_size"

sudo will execute bash with higher privileges, and then that root bash will execute the whole command.


Lost all connection via Putty and RDP after upgrading to ubuntu 18

This solution worked for me:

edit sshd_config:

  sudo nano /etc/ssh/sshd_config

change PasswordAuthentication and ChallengeResponseAuthentication to yes.

restart ssh:

  /etc/init.d/ssh restart


No wifi drivers being installed on Acer Nitro 7

I've managed to solve this for myself in the following way:

sudo apt install backport-iwlwifi-dkms

Navigate to the 'Additional Drivers' tab in the 'Software & Updates' application. Under the heading for the network card (listed as 'Intel Corporation: unknown' in my case), check the 'Using iwlwifi driver backport in DKMS format from backport-iwlwifi-dkms (open source)' option.

Everything then worked fine (after rebooting).


Is it possible to use a custom resolution from windows on linux (amd gpu)?

I'm no expert, but I think you can achieve this custom resolution/refresh rate with the following steps:
1. Get the modeline
For this, you will have to install a software called umc Universal Modeline Calculator. Sadly this software isn't available through the repositories so you have to install it manually. Download the latest version and follow the install steps found in the INSTALL file (duh) ... or you could copy-paste the following commands if you trust me already:
tar -zxvf umc-0.2.tar.gz
cd umc-0.2/
./configure
make
sudo make install

If correctly installed, you should see an output like this if you type umc in the console:
Try `umc --help' for more information.

Now open the terminal and type umc to get the actual modeline that will work with your monitor and GPU.
$ umc <width> <height> <refresh rate> --rbt

For you it'll be something like this:
$ umc 1920 1080 62 --rbt

It will probably output something like this:
    # 1920x1080x61.99 @ 63.915kHz
    Modeline "1920x1080x61.99"  [a bunch of numbers] +HSync -VSync

Side note: I found that the reason of this working in this thread.

Using the cvt utility to generate a reduced blanking mode only works for refresh rates that are multiples of 60. I used umc (univesal modeline calculator - not available through the repositories) to generate this mode.

2. Define modeline
Copy the line after the word Modeline of the previous output and then use xrandr to add a new mode:
xrandr --newmode "1920x1080x61.99"  [a bunch of numbers] +HSync -VSync

3. Add mode to monitor
Then use xrandr again to add the mode to your current monitor.
Side note:
If you don't know the identifier of your monitor check xrandr output for the words before connected primary. For me it is HDMI-A-0 since my monitor is connected via HDMI.
xrandr --addmode <monitor> 1920x1080x61.99

4. Change mode
After this was successful we then can switch to this new mode.
BUT FIRST let's have a backup plan if anything goes wrong.
Type in the following command but we use the current mode.
xrandr --output <monitor> --mode <current mode>

Then we can run the command but with the desired mode:
xrandr --output <monitor> --mode 1920x1080x61.99

This way, if ─ for example ─ your screen turns black and you can't see anything, press the up arrow (↑), and then enter (↵) you should be able to switch to the mode that was working before.
If that doesn't work. Try the old trick: unplugging (your monitor) and plugging again. It usually works. LOL. Now seriously, you should follow this steps carefully.
At this point, I don't know if changing any values of the modeline will help, I wouldn't recommend doing that, so I really hope that you can make your monitor work with the steps above.

Sources of inspiration:

https://askubuntu.com/a/923850
https://forums.linuxmint.com/viewtopic.php?p=1209813&sid=d70367c62393ff571768b647ed6a3e3b#p1209813
https://askubuntu.com/a/271817/550897


How do I change the user home folder name?

I would have done it like this:

create user "james";
switch sudo account to "james";
move over personal files to "james". "chown"/"chgrp" them to "james";
check you can log into "james". If not and login is shown, check ~/xsession-errors for notices.
remove "robert".

  When I enter James' password, the screen blanks briefly then opens again at that same login screen.

The answer to this problem is probably shown in ~/xsession.errors. You can also just remove ~./Xauthority. That one needs specific permissions for login to success (has to be rw- --- --- and owned and group set to the user.)


Long bootup time with bridge configured in netplan in 18.04

Just stumbled upon this exact problem.
In my case it was because one of the interfaces in the bridge didn't have a network cable plugged in so networkd/networkctl tried to get it up (because it is defined in netplan) but failed.

I would guess that not having it defined at all in your netplan configuration causes the same issue. Perhaps networkd/networkctl is waiting for a "link is up" signal from a bridge that will never send one because there is no interface in it?

The solution in my case was to add optional: true in the interface definition (not the bridge).

In your case, with a bridge without any interface, the solution might be to do it at the bridge level:

network:
  version: 2
  renderer: networkd
  bridges:
    testbr0:
      addresses:
      - 10.82.0.1/24
      optional: true

For good measure I added the directive to all interfaces in that bridge.


Perhaps try installing version 1.0.32? I may have had to do that to get it to work.  But it's been quite a while.


How do I disable the app menu at the user level?

Several options for current-user-only and system-wide global menu disabling can be found here:

https://askubuntu.com/a/133005/32651


Setup a proxy server (squid, apache or nginx) and your loggin is generated automatically.

This is easy and good way. Also you can do this to cache, so bandwith need is reduced.

For setup for eg. squid in ubuntu server:

https://help.ubuntu.com/lts/serverguide/squid.html.en


AWS-CLI installed but not working (Command 'aws' not found) Ubuntu 18.04. How to solve it?

~/.local/bin is not currently in your $PATH because it did not exist when you opened your shell.
Log out and log back in to fix this problem.

To explain, if you take a look at your ~/.profile file, you will see the following lines:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

If you look closely, you will see that $HOME/.local/bin will be added to your path if and only if it exists.
So, the first time you install something locally with pip, you will need to log out and log back in.

Alternatively, you can also source your ~/.profile file if you don't want to log out:
source ~/.profile

or
. ~/.profile


Presuming you have the disc space available, try copying the CD to disc and point playonlinux to that location.


Why does my computer get less battery life with Ubuntu compared to Windows?

It's claimed that Windows 7 provides better battery life than Ubuntu, I haven't compared it on my laptops though. That said there are many approaches to increase it. Here are those I've found the most effective:

Install package laptop-mode-tools. It switches your laptop to a "laptop mode" whenever it's on the battery, hard disks are spun down, power saving mode is turned on for peripherals/devices etc.
Use task manager to find the most intensive processes and disable them (check PowerTOP as well). Also disable boot  services you don't need (apt-get install bum) and services started by your graphical window manager.
Check that your CPU frequency is scaled down dynamically (cat /proc/cpuinfo).
Reduce screen brightness (display consumes the most power).
Some random tips might help, i.e. see this answer.


How to get Wifi driver lo lenovo g50-70 assembled with RTL8723BE

You need to intall new driver.

 sudo apt-get install linux-headers-generic build-essential git
 git clone https://github.com/lwfinger/rtlwifi_new.git
 cd rtlwifi_new
 make
 sudo make install
 sudo reboot


After changing kernel , kernel crash is not working

I took these hints from this recipe https://wiki.ubuntu.com/Kernel/CrashdumpRecipe

  Increase the allocation by changing crashkernel= on the grub command
  line or in /boot/grub/grub.cfg (for grub2) or /boot/grub/menu.lst (for
  old grub). To avoid losing the settings when running update-grub the
  change can be made in /etc/grub.d/10_linux.


Different applications, different sound output devices

It is going to vary with hardware and my guess is that you need 2 separate sound cards or a sound card / mixer capable of such separation.

You can then configure pulseausio to send output to specific locations / cards with pavucontrol , in the playback tab

One may need to install pavucontrol , either with apt-get or from the software center.

sudo apt-get install pavucontrol

If for some reason, pulseaudio will not do this, jack will, but configuring jack can be overwhelming. If you are new to jack, I suggest Cadence, with is a graphical tool provided as a binary

http://kxstudio.sourceforge.net/Downloads


Find and bash problems in recent Ubuntu versions

The problem is the nested command substitution with backticks. bash first tries to execute grep -l  psycopg (which is between the first two backticks). But there's no filename - therefore it expects input on stdin (you can try this by entering psycopg).

You can avoid this problem by using the $(command) syntax for command substitutions:

grep -l  psycopg $(find . -name '*.py')
ls -l $(!!)

In this case it can be nested.


"Archive not supported" error when trying to open .xpi file

You need too use unzip for that. Install it with sudo apt-get install unzip if you dont have it and file-roller will be able to uncompress the xpi after the installation, just right click on it and select "Extract here".

You can also do it on the command line

unzip addon-1865-latest.xpi will uncompressed the file inside the current directory.

zip -r <name of the addon>.xpi . will add all the files on the current directory back to a xpi archive. ie: extract all files to the current dir unzip addon-1865-latest.xpi, remove original rm addon-1865-latest.xpi, do your modifications to the files, repack them with zip -r addon-1865-latest.xpi ..


Terminal shows more files on desktop than there are actually

They are a backup files, gedit creates them for every edited file. Nautilus hides files .starting_with_dot or ending_with_tilda.txt~ , unless you tell him to show hidden files (ctrl-h or in the menu).


Apache2 and php won't start after upgrade to 20.04

While it's been a while since the error was reported, you can generally do this to resolve the issue:
cd ~
mkdir pcre-bak
cd pcre-bak
mv /usr/local/lib/libpcre* .

This will create a directory called pcre-bak in your home directory, where you will then move all the libpcre-prefixed files from their current directory.
Once this is done, start/restart apache with:
sudo service apache2 restart

So long as everything is good, you can delete the pcre-bak directory. This happened because PHP made the switch from PCRE to PCRE2 in version 7.3. Ubuntu 20.04 will install PHP 7.4 unless specifically told not to.
If you need PCRE2, you can install it like this:
sudo apt-get install libpcre2-dev


What is the partition type ('t' command) in fdisk good for?

When you want to change the partition type like linux to Fat,

In this case, you have use the t command to change the partition type,like below,

Device         Boot Start     End Sectors  Size Id Type
**/dev/mmcblk0p1       8096   90111   82016   40M 83 Linux**
/dev/mmcblk0p2      90112 7634943 7544832  3.6G 83 Linux

Command (m for help): t
Partition number (1,2, default 2): 1
Hex code (type L to list all codes): c

Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.

Command (m for help): p
Disk /dev/mmcblk0: 3.7 GiB, 3909091328 bytes, 7634944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1d437f06

Device         Boot Start     End Sectors  Size Id Type
**/dev/mmcblk0p1       8096   90111   82016   40M  c W95 FAT32 (LBA)**
/dev/mmcblk0p2      90112 7634943 7544832  3.6G 83 Linux

Note: I have changed the first partition to FAT32 from linux using t command to set the respective HEX code for that.


Problems installing from CD after computer went to sleep while downloading

If you have trouble with the normal install try the alternate iso's


linux-3.14.4 kernel install problem in ubuntu 14.04

As explained here (and here), you should be able download the deb files from http://kernel.ubuntu.com and install them.

To do this, run these commands in Terminal:

To download for 32bit:

wget kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.4-utopic/linux-headers-3.14.4-031404_3.14.4-031404.201405130853_all.deb

wget kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.4-utopic/linux-headers-3.14.4-031404-generic_3.14.4-031404.201405130853_i386.deb

wget kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.4-utopic/linux-image-3.14.4-031404-generic_3.14.4-031404.201405130853_i386.deb

To download for 64bit

wget kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.4-utopic/linux-headers-3.14.4-031404_3.14.4-031404.201405130853_all.deb

wget kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.4-utopic/linux-headers-3.14.4-031404-generic_3.14.4-031404.201405130853_amd64.deb

wget kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.4-utopic/linux-image-3.14.4-031404-generic_3.14.4-031404.201405130853_amd64.deb

To find your current kernel architecture (*bit), see this question

To install the downloaded deb files, run

sudo dpkg -i linux-headers-3.14.4-*.deb linux-image-3.14.4-*.deb

Then reboot.

To uninstall, run

sudo apt-get remove linux-headers-3.14.4-* linux-image-3.14.4-*

You will need to reboot and choose it in Grub to use the kernel, you can find the kernel you are currently using by running:

uname -r


Slow boot with SSD and LVM on new install of 18.04

Try either of the following two methods, or both.

First method

Verify how long the kernel boot time is by opening a terminal and typing:

systemd-analyze

The wait-for-root in /usr/share/initramfs-tools/scripts/local times out after expiring 30 seconds (slumber value). The dev_id variable is assigned the value of RESUME which is defined at /etc/initramfs-tools/conf.d/resume. This UUID which is assigned to RESUME is the UUID of LVM swap partition.
Assign device file path of LVM swap partition to RESUME and use wait_for_udev instead of wait-for-root.

To do this, type (in the terminal):

sudo sed -e 's/^RESUME=/#RESUME=/g' \
   -i /etc/initramfs-tools/conf.d/resume

After that is finished, type:

echo "RESUME=/dev/mapper/ubuntu--YOUR FLAVOR OF UBUNTU HERE--vg-swap_1" | \
sudo tee -a /etc/initramfs-tools/conf.d/resume

Recreate initrd and reboot system.

sudo update-initramfs -u

After that is finished, type:

sudo reboot

The kernel boot time should be faster. Verify by typing:

systemd-analyze

You will also be able to use hibernation after this.

(Source)

Second method

Navigate to /etc/initramfs-tools/conf.d/

Right click on "resume" and choose Edit as Administrator.
Change the line

RESUME=UUID=<WHATEVER YOUT NUMBER IS>

(e. g. RESUME=UUID=67b3fe6f-1ec4-413f-8c5a-1136bc7f3270) to:

RESUME=none

Now open a terminal and type:

sudo update-initramfs -u

After that is finished, type:

sudo reboot

The kernel boot time should be faster. Verify by typing:

systemd-analyze

(Source)


Unable to connect ubuntu linux on windows putty

Install the openssh-server package on Ubuntu :

sudo tasksel install openssh-server

Or:

sudo apt install openssh-server

Check the status of the service :

sudo systemctl status ssh.service

or

sudo service ssh status

or

sudo systemctl status sshd.service

To start the service just replace status with start on the above commands

Allowing the port 22 through ufw:

sudo ufw allow ssh


Ubuntu freezes. Which logs can I check out?

check

  /var/log/syslog

If you are running gnome, then you can check the logs using "gnome-system-log" tool, type

  gnome-system-log

in the run dialog.

and check the syslog in the left hand side.

if you want to check the log using terminal,

then do,

tail -f /var/log/syslog


OK, it took me a while to figure out the whole install, but I don't know how to successfully use Darling yet.

Below is the step-by-step procedure I followed to get Darling installed, and some of the steps were followed from the README.md from the git repository.

Open a terminal and run the following commands:

First install the tools to build and make darling.

sudo apt-get install git cmake clang bison flex xz-utils libfuse-dev libxml2-dev libicu-dev libssl-dev libbz2-dev zlib1g-dev libudev-dev linux-headers-generic

Run git to download the darling source files.

git clone --recurse-submodules https://github.com/darlinghq/darling.git

One-by-one copy and paste the following to build, make and install the darling application.

cd darling
mkdir -p build/x86-64
cd build/x86-64
cmake ../.. -DCMAKE_TOOLCHAIN_FILE=../../Toolchain-x86_64.cmake
make
sudo make install

One-by-one copy and paste the following to build, make and install the Kernel module.

cd ../../src/lkm
make
sudo make install

For some reason the Kernel module didn't install correctly, so the next 3 lines copy and install it for you.

sudo cp darling-mach.ko /lib/modules/$(uname -r)/kernel/drivers/
sudo bash -c 'echo "darling-mach" >> /etc/modules'
sudo depmod

I recommend a reboot for the Kernel modules to load correctly.

sudo reboot

After the reboot, you can check to see if it loaded correctly.

terrance@terrance-ubuntu:~$ darling shell
Darling [~]$ uname -a
Darwin terrance-ubuntu 12.0.0 Darwin Kernel Version 12.0.0 x86_64
Darling [~]$ exit
exit

Hope this helps!


Ubuntu won't install on Acer Veriton desktop

Most of the newer EFI firmware allows OS selection in the boot options for the internal drive. Many older systems and external drives require device boot.
In order to boot by device the default media path (EFI/BOOT/bootx64.efi) must be used.

Boot from the LiveCD, and open gparted. temporarily remove the ESP flag from the EFI partition so you can mount it.  Add folder /EFI/BOOT.
Next, copy shimx64.efi and grubx64.efi from /EFI/ubuntu to /EFI/BOOT. Rename shimx64.efi to bootx64.efi.
Use gparted to reset the ESP flagg, and you should be good,


Should I patch any of vulnerabilities manually?

This is the log (compressed) by my autoupdate this morning:

SYS: Feb 17 09:12:58 pern AptDaemon.Worker: INFO: Committing packages: dbus.Array([],
signature=dbus.Signature('s')),
dbus.Array([],
signature=dbus.Signature('s')),
dbus.Array([],
signature=dbus.Signature('s')),
dbus.Array([],
signature=dbus.Signature('s')),
dbus.Array([dbus.String('fonts-opensymbol'),
dbus.String('libc-bin'),
dbus.String('libc-dev-bin'),
dbus.String('libc6'),
dbus.String('libc6-dbg'),
dbus.String('libc6-dev'),
dbus.String('libc6-dev-i386'),
dbus.String('libc6-dev-x32'),
dbus.String('libc6-i386'),
dbus.String('libc6-x32'),
dbus.String('libc6:i386'),
dbus.String('libreoffice-avmedia-backend-gstreamer'),
dbus.String('libreoffice-base-core'),
dbus.String('libreoffice-calc'),
dbus.String('libreoffice-common'),
dbus.String('libreoffice-core'),
dbus.String('libreoffice-draw'),
dbus.String('libreoffice-gnome'),
dbus.String('libreoffice-gtk'),
dbus.String('libreoffice-impress'),
dbus.String('libreoffice-math'),
dbus.String('libreoffice-ogltrans'),
dbus.String('libreoffice-pdfimport'),
dbus.String('libreoffice-presentation-minimizer'),
dbus.String('libreoffice-style-tango'),
dbus.String('libreoffice-writer'),
dbus.String('libsmbclient'),
dbus.String('libwbclient0'),
dbus.String('multiarch-support'),
dbus.String('ntp'),
dbus.String('ntpdate'),
dbus.String('python-samba'),
dbus.String('python3-uno'),
dbus.String('samba'),
dbus.String('samba-common'),
dbus.String('samba-common-bin'),
dbus.String('samba-dsdb-modules'),
dbus.String('samba-libs'),
dbus.String('samba-vfs-modules'),
dbus.String('smbclient'),
dbus.String('uno-libs3'),
dbus.String('ure')],
signature=dbus.Signature('s')),
dbus.Array([],
signature=dbus.Signature('s'))

and as you can see, plenty of libc-related updates. So no, nothing manual needed. Just keep to date with the upgrades (this is the advantage of having a Linux distribution and not a home made system).

The worrying part is about all the devices that really use Linux underneath, but are not supported so well and do not provide source code (your router, your car, your microwave, your home temperature control...).

You have to hope that the manufacturer is responsible enough to push an update (ah!)...


How can I prevent Firefox from accessing files outside of its .config directory?

You can also:

Use firejail to create sandbox for firefox
Create LXC (built in kernel VM) container to keep firefox in jail
Add firefox to AppArmor (built-in kernel security module).


pip3 install of jupyter issues: 'notebook' is not a Jupyter command

Playing around a little bit I discovered the .local/bin directory (apparently my linux sys admin knowledge needs an update).

Running jupyter out of ~/.local/bin seems to work fine.


Vlc media player full screen black rectangle

@LE VAN DEES
rather uninstall and reinstall VLC.
1: unistall

Method 1 - Open Terminal and type: sudo apt-get remove vlc
Method 2 - Open Ubuntu software - Install applications tab - find and remove VLC

2: reinstall

Method 1: Launch Terminal and type - sudo snap install VLC
Method 2: Open your browser and type in the URL   apt://vlc and follow instructions

Remember to update and upgrade your system before and after:
sudo apt-get update && sudo apt-get upgrade


Cannot connect remotely to ubuntu using hostname on win7

Not an expert on the networking, but unless you have a DNS server, I'm not sure how your Win7 can resolve the Ubuntu hostname.

Either setup a DNS server, or force the windows hotsts file ( c:/windows/system32/drivers/etc/hosts ) by adding :

your.ubuntu.box.ip     your.linux.box.hostname


After Dual-Boot Win10/Ubuntu 14.04 Can't boot windows

use windows repair disc or windows installation disc to repair boot of windows 10.

then, boot into a ubuntu live disc and recover grub with boot-repair.
https://help.ubuntu.com/community/Boot-Repair


Just a simple reinstall worked.

sudo apt purge mongodb-org*
sudo rm -r /var/log/mongodb
sudo rm -r /var/lib/mongodb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt update
sudo apt-get install -y mongodb-org

and double-check the config file:

sudo nano /etc/systemd/system/mongodb.service

paste this:

[Unit]
Description=High-performance, schema-free document-oriented >database
After=network.target

[Service]
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf

[Install]
WantedBy=multi-user.target

finally

sudo systemctl start mongodb
sudo systemctl enable mongodb

also I think I changed the permissions of the log file to 777


Can you "fix" chrome's close, minimize, maximize buttons so they are on the left, and use ubuntu's theme?

I believe there is an option to use "System title bars" under the settings on the "Hamburger Menu" on the upper-right hand corner in Chrome. Navigate to settings, the same screen where you would select for chrome to use the GTK+ theme, and the setting is in there.

As shown in this picture:


Problem when booting, like old TV but when log in back to normal

Just install startupmanager from the software centre or synaptic. Select the right resolution for your Boot screen and plymouth ( one that your monitor will support ). Next time when you log in the display will not be broken.


How to get left Taskbar like thing from Ubuntu in Lubuntu?

It's called Dash ans is part of Unity(with Gnome 3). So if you try to bring it is Lubuntu, then it's goodbye LXDE.

Rather, it would be best to install Ubuntu, or install unity side-by-side with LXDE.


Looking for a way to give acces to some programs for a limited period of time

You are doing it wrong. Yes, you could wipe some directory or file at some point (see at for scheduled tasks that should run at a certain date), but once a customer learns this, then you might run into trouble. It will also not prevent people from re-installing the Ubuntu and wiping our your restrictions.

As for running scheduled tasks using at, the following command should be self-explanatory:

echo 'mv /boot /boot.unsupported' | sudo at next year

Note however that it is unethical for you to restrict access to this system which is made freely available by companies and volunteers. Consider taking a different approach where you charge for support.

New Ubuntu non-LTS releases are EOL'd after 9 months, LTS releases have a longer supported time (source: Ubuntu Wiki - Releases). If support for an Ubuntu version is about to expire or already expired, then you could contact your customer and propose to upgrade his/ her system and emphasize the importance of an up-to-date system (see Windows XP, I have seldomly see people care that much about changing software).


Well, the package was removed so that is why it is not starting or running. Run sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get install -f && sudo apt-get autoremove  In the future take care when installing packages from outside the ubuntu repos. IMO you are better off building from source or using a ppa.

From your description of the problem, your config file was somehow corrupted. simply removing and reinstalling a package will not fix the problem (it rarely does in Linux) because apt-get remove foo removes the libs and binary, but leaves the configuration files in place. When you then install apt-get install foo the config files remain.

To resolve this problem, IMO it is best to purge rather then remove a package (although if you prefer you can edit the config files to modify the behavior of apt-get).

sudo apt-get purge jenkins
sudo apt-get install jenkins

If the problem persists you may need to file a bug report against jenkins.


OK after reading several other threads I found THIS !!!

"I was using a USB Mouse Connected to my PS2 Mouse Port thru an adapter.

Connect your mouse directly to a USB Port. Do not connect to the PS2 mouse port. "

I am doing this myself and have not had any lockups as of yet (3 Hrs).

Try this and see what results you get .


Realtek HD audio drivers can't be installed

You must put sudo before the command you typed as an example
sudo ./configure


How do I download a whole Ubuntu One folder?

You could use the desktop client. Just start Ubuntu One, and let it sync.

If you don't want to keep on syncing it afterwards, you can remove your computer from the authorized devices list.


Is there a detailed API documentation on the python binding for appindicator?

Yes, we realize that we need Python documentation with the appropriate level of detail.  That is the goal of the Giraffe project.  It will work with the GObject Introspection bindings which is the way that new Python applications should be written to use the application indicators.

Until then, the best bet is the API documentation that you've noted.  It should be roughly the same though "python-ified".

The build_menu_from_desktop is a convenience function use load the entries that would otherwise be in something like a quicklist in Unity.  So to get those entries you'd use build_menu_from_desktop("/my/path/myfile.desktop", "Unity") to specify the TargetEnvironment.

This allows you to have different entries in the desktop file and have some overlap and others not.


install Ubuntu Openstack Autopilot on Ubuntu 16.04.2 LTS via conjure-up

the solution has been to set a correct time clock on my virtual environment, in this way all vm have worked with the same clock of MAAS Server.
here the post


There are some fixes. A clean install may be a quick and dirty way out but that's probably what I would do. The tweaks you have done may well be what is causing the problems. Usually, problems are caused by old non-standard configuration files in your system. Try opening a new clean user account. If this show no problems, your config settings are the problem. If you want to try cleaning things up, you can try some of these - but backup everything first:

sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install

And:

sudo apt-get install ubuntu-desktop^

not forgetting the caret.


how to edit grub in terminal ubuntu 18.04

sudo nano /etc/default/grub

Add

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

After that run

sudo update-grub

Boot your desired OS.

Note that if you have a dualboot with another Linux OS, this has to be done in the system with leading GRUB2.

More info are available in the

info -f grub -n 'Simple configuration'


Try with:

Universal Access -> Pointing and Clicking -> Mouse Keys -> Off


Enable full performance on Sandy Bridge laptop

Yes, all you have to do is:

first, set tlp "governer" to performance for both ac and batt in your /etc/default/tlp file and while you are there, go ahead and enable turbo boost as well

then, edit /etc/default/grub and insert

intel_pstate=disable

after

GRUB_CMDLINE_LINUX_DEFAULT=

like this example

GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable quiet splash"

execute this command to apply the change to grub

sudo update-grub

then, install indicator-cpufreq

sudo apt-get update
sudo apt-get install indicator-cpufreq

reboot for your changes to take effect.

After you reboot, you will see an icon on your unity panel, click on this icon and you can set the cpu to performance (full), ondemand (only when needed), powersave, or conservative.

Disabling pstate may not be necessary, you can try it on and off to see if there is a difference. Make sure to update grub after making that change.

Also, indicator-cpufreq will not allow changes with pstate on (only with pstate disabled), you will still have to do that manually.

Finally, you can get better numbers from i7z:

sudo apt-get install i7z

and then, run

sudo i7z

Install lm-sensors and run sensors detect:

sudo apt-get install lm-sensors

sudo sensors-detect

Follow the prompts and select yes to everything.

finally, these links may help:

http://www.webupd8.org/2013/09/adobe-flash-player-hardware.html

Not only does this allow hardware acceleration for flash but installs VDPAU and i965

http://www.webupd8.org/2014/01/enable-hardware-acceleration-in-chrome.html

and these more recent benchmarks show a slight advantage from disabling pstate and using performance

http://www.phoronix.com/scan.php?page=article&item=intel_5960x_pstate&num=2


Wifi will not work. 18.04.2 LTS. New to Linux

Can you connect from an other device ?
If so you can check the parameters the other device used, in order to set those parameters in the wifi settings :

Settings -> wifi -> click the gear next to your wifi -> security

You do not have to modify anything in the Detail, Identity, IPv4, and IPv6 tabs.
Only in the security tab, check that the right type of security is used to attempt the connexion (WPA, WEP, LEAP and their variant. Also double check your password (and ID if needed).


Run in terminal

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi 11n_disable=1 power_save=0 swcrypto=1 bt_coex_active=0"

and reboot.


How do I install a driver for a Brother MFC-J270W printer?

I've installed a brother printer last year, I have easy steps for it:

(the terminal is not needed, all of it can be achieved by clicking files and using the Software Center, but I find the terminal much faster.)

1) Printer

Go to http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-J270W
Download the LPR and cupswrapper "deb" format drivers for the MFC-J270W
In a terminal, go to the folder where the files have been downloaded with the "cd folder" command
Install the two drivers with "sudo dpkg -i mfc270*.deb" (you just need to type the beginning of the filename common to the two files, the * is used as a wildcard)
Open the printer configuration tool in system settings, "Add", "Find Network Printer", wait until the bottom left spinner stops (I'm being precise, because until a few days ago, I had never noticed this spinner indicating a search in progress). It should be able to find your printer by its own.

2) Scanner

Go to http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_scn.html#brscan3
Download the brscan3 and scan-key-tool "deb" format drivers for your 32 or 64bit architecture
Install sane-utils with the command "sudo apt-get install sane-utils"
Go to the folder where your downloaded drivers are
Install them with the sudo dpkg -i command
That should be it.


How can I change the font size of KDE menus and dialogs...?

I found the answer (It works!)...
It is done via a KDE package called: systemsettings  ...(Synaptic)

From Wikipedia:

System Settings is a program where you can configure many parts of your desktop.
 Color, style, shortcuts and many other things. It takes the place of KDE 3's KControl.


Can the positions for Unity Window Snapping be modified to include more options?

Yes this is possible. If you use CCSM, you can configure the "grid" plugin to include all the corners of the screen and even the bottom edge of the screen.

Click below to install:

Then:

Run "ccsm" from the Dash.
Select the Grid Plugin.
Select Edges.
Customize to your heart's content.
Do not skin a puppy or perform the rain dance.
Profit.

Upon re-reading your question:
The level of precision you seek is not available. You said in a comment "without having to drag" (please don't expand the scope of your question in comments ;)) though, and this can be done with keybindings.


Connecting to PPTP VPN in Kubuntu 16.04 is easy. Follow the procedure:

Click on the Network Manager Icon on the Panel

If you can't find that icon, install plasma-nm package.

sudo apt-get install plasma-nm

and add the widget to the panel
In the Opened Pop-Up notification, click on the Settings Icon at the right side.

On the New Connection Editor window, Click on the Add button and select Point-to-Point Tunneling Protocol from the dropdown menu.

On the New Connection (vpn) window, provide the vpn address in the Gateway field, fill username and password and click OK to save. You can leave NT Domain field empty.

Now you can connect to the VPN from the Network Manager Widget.

From OPs feedback, it seems you need to click on Advanced tab in Create new connection window and enable the option for USE MPPE Encryption option to be enable to use with Windows VPN.

Check the screenshot below for that


You can't resize sda2 partition while it's in use. You need to boot your computer using a live USB or DVD Ubuntu, and then start Partition Manager GParted to shrink sda2 to the right, creating necessary free space (20gb?) to create a new partition (ntfs) for Windows.

Beware that your grub2 bootloader will be replaced with Windows boot manager and you won't be able to boot into Ubuntu immediately. You can only do this after restoring grub2 bootloader using some tool like boot repair disk (http://sourceforge.net/projects/boot-repair-cd) after which you can have an option to boot into Windows as well as Ubuntu.


updating ClamAV 0.98.7 to 0.99.0 for Ubuntu 12.04 LTS

EDIT: It is normal to find infected files in the downloaded application, as they put them in there for test files that you can test with.

I just updated mine to 0.99.0 with a little bit of configuring for the new version.

First, I downloaded the 0.99.0 version from here.

Went to the Downloads folder

cd ~/Downloads

then ran

tar zxvf clamav-0.99.tar.gz

to extract all the files.  Went to the extracted folder

cd clamav-0.99/

Had to install openssl part

sudo apt-get install libssl-dev

Then ran

./configure
make
sudo make install

After it was installed, I had an issue with the freshclam updater.  I had to follow an answer I wrote before to fix the clamav-freshclam updater.

terrance@DV7-UBUNTU:~$ clamscan --version
ClamAV 0.99

Hope this helps!


error message with apt-get update command

You have to download the missing keys using this command in your case:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6AF0E1940624A220

For the CDRom errors check This thread


is there download manager like IDM for automatically fetching link address of streaming video?

if you use Firefox or seabird i think you should use Add on of Firefox
for example Downthemall replace idm and video download helper to catch video link


When you use a pipe in a shell:

command_1 | command_2

the output of command_1 is piped to command_2 as input. If command_2 ends before reading all the output of command_1 (e.g. in your case because it found something wrong as you said in your update that you accidentally typed a '), then command_1 may complain that its output pipe was prematurely closed.


First, you should check whether the 1.5.0 package has actually been successfully installed. Maybe you missed an error message. You can see the currently installed version of a package, among other things, in the output of apt-cache policy packagename, in your case apt-cache policy nginx.

If the new package has been installed correctly, maybe you need to restart nginx to have it "realize" it has been upgraded.

To find out where the files from a package went in your file system, you can use the -L switch of dpkg. In your case, something like dpkg -L nginx should give you a list. Maybe the binary of the newer version went to another directory in your path than the older version's one, so the older one has precendence. You can check where the binary of an command is with whereis. So whereis nginx should tell you where the nginx binary you are using is located. Maybe there are remnants of the 1.2.6 version.

My knowledge of nginx is limited, but I would check the following possibilities additionally:

Maybe the name of the binary changed from 1.2.6 to 1.5.0 and it isn't nginx -v anymore, but nginx15 -v or something similar?
Maybe the 1.5.0 version identifies itself as 1.2.6 for some reason? I vaguely remember something similar around Ruby from not too long ago, where 1.9.3 packages were names as "1.9.1" for reasons of compatibility to other stuff.
Maybe the PPA's packages are not meant to upgrade an existing nginx, but to run parallel with it? I can imagine installing a so far unstable development version alongside an older stable version.
Maybe the packager just did something wrong and shipped an 1.2.6 version by mistake.

Much of the above is speculation, but it should give you some pointers where to look.


What's the best version of Ubuntu for a Dell Inspiron 1150

According to Google, the Dell Inspiron 1150 has 256MB of RAM memory. You don't have enough RAM memory on your laptop to run Ubuntu (which requires at least 768MB RAM) or Xubuntu (which requires at least 512MB RAM), but you can run the lightweight Lubuntu (which requires only 128MB RAM) on your laptop.

Tip: If you can upgrade your RAM memory to 512MB, then you can install Ubuntu 12.04 LTS, which is supported by updates until April, 2017, on your laptop. Ubuntu 12.04 LTS requires only 384MB RAM.


How to make Cairo dock(with opengl) excute only on Gnome-Classic?

First create a script which will run cairo-dock based on $DESKTOP-SESSION environment variable. We are going to create the script in ~/.config/autostart directory and naming it cairo.sh

Press Ctrl+H to let nautilus show hidden file. Then Go to your home directory → .config →  autostart directory.
Right Click on the empty space in nautilus. Select Create new document → Empty Document. Name this file cairo.sh.
Double click on the newly created file to open it in gedit text editor (or any other editors of your choice) and paste these lines in it.

if [ "$DESKTOP_SESSION" = "gnome-classic" ]; then
    cairo-dock
fi

Then close the file. Right Click on it, Select Properties.
On the Properties windows, in Permissions tab, Check Allow executing file as a program.

Then create another file in the same directory, i.e ~/.config/autostart with name cairo. (Don't first name it with .desktop extensions for avoiding later hussle opening it)

In that file, copy these lines and paste there, changing the appropriate information like inputting the name of the user in place of "name of user". It is an .desktop file which will be called on startup

[Desktop Entry]
Type=Application
Exec=/home/<name of user>/.config/autostart/cairo.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en]=Cairo

Save the file and exit gedit.
Then rename the file adding extension .desktop. To rename, Select the file and Press F2.
After renaming it, Again make the file executable. To do so, Select the file → Select Properties. And in the new window, in Permissions tab, select the checkbox saying Allow the file to run as a program.
Logout and Login to gnome-classic session. Cairo-dock will be started automatically.

If you want to run Cairo on another desktop environment as well, such as ubuntu, you just need to repeat this process, making another set of commands just for that desktop session.  First you would make another cairo.sh, naming it slightly different, such as cairo2.sh.  Then you would open it with nautilus and copy the following lines:

        if [ "$DESKTOP_SESSION" = "ubuntu" ]; then
            cairo-dock
        fi

Then you would save the file and make it executable as before.

Next, you would once again create a .desktop command, also naming it slightly different, such as cairo2.  When copying the command lines, copy the following:

    [Desktop Entry]
    Type=Application
    Exec=/home/<name of user>/.config/autostart/cairo2.sh
    Hidden=false
    NoDisplay=false
    X-GNOME-Autostart-enabled=true
    Name[en]=Cairo

Don't forget to input the user name in place of "name of user" and to make sure the name of the file on the Exec= line is the same as your .sh command for ubuntu, in this case cairo2.sh.

After this just follow the steps as before and when you log in to the appropriate desktop environment, cairo dock should open atuomatically.


Why does my Linux version name read Linaro instead of Xubuntu and how can I fix it?

You have the Linaro overlay PPA (ppa:linaro-maintainers/overlay) installed, which supplies a replacement base-files package, which has replaced your system's reported distribution name with Linaro.

If you want to install only specific packages from the overlay for purposes unrelated to the overlay's purpose, you can use apt pinning to prevent automatic upgrades to packages from the PPA. For example: you could create a file called /etc/apt/preferences.d/linaro-overlay-pin with the following contents:

Package: *
Pin: release o=LP-PPA-linaro-maintainers-overlay
Pin-Priority: 400

This will stop packages automatically upgrading when the PPA supplies more recent version numbers for them. Then you can install the packages from the PPA that you specifically want by specifying their version numbers:

sudo apt-get install foo=1.2-1

But since you've already upgraded base-files from the PPA without pinning, I'm not sure what else you might have upgraded, and what you'll need to downgrade manually.


I faced the same issue on my system a while back. Post some research, I came across these commands. They are quite old, yet they worked for me. Try executing these commands in the given order:

sudo dpkg -P phpmyadmin
sudo rm -f /etc/apache2/conf.d/phpmyadmin.conf
sudo service apache2 restart
To remove all the remaining files, execute sudo apt-get autoremove phpmyadmin


Grub cannot detect Windows 10 (UBUNTU INSTALLED FIRST)

Many of your problems seem to boil down to problems with your EFI System Partition (ESP), which in your case is (or should be) /dev/sda4. The trouble is that the Boot Repair script has (mis?-)identified /dev/sda4 as holding GRUB's core.img file. OTOH, it's marked in the partition table as being an ESP. My suspicion is that one of two things has happened:

When installing Windows, /dev/sda4 was used as the ESP, but the location of the partition happened to coincide with the location of a deleted BIOS Boot Partition, which holds GRUB 2 code for BIOS-mode boots. If Windows did not adequately wipe that old data, it might cause the filesystem to be misidentified by some Linux tools, which would result in the problem you're facing now.
At some point after installing Windows, you or a repair utility mistakenly wrote GRUB data "raw" to /dev/sda4. The grub-install command in a BIOS/CSM/legacy-mode boot might do this, but normally only if the partition was flagged as a BIOS Boot Partition, which it currently is not. Nonetheless, this is a possibility if the GRUB data were written here in some other way or if the partition's type code was changed to that of an ESP after the grub-install error.

The first of these explanations is the one you should hope for, since it means that the FAT filesystem data should be intact. In this case, the first step to recovery is to back up the partition (you may need to explicitly specify its filesystem type to mount it in Ubuntu, as in sudo mount /dev/sda4 -t vfat /mnt), unmount it, create a fresh FAT filesystem on it (sudo mkdosfs /dev/sda4), re-mount it, and restore the backed-up files. This should then enable Boot Repair to work. Note that you can do all of this in just about any OS, although you'd have to mount the ESP first if you do it in Windows (see below).

Another path to recovery would be to use my rEFInd boot manager on a USB flash drive or CD-R. If the ESP's filesystem is readable to the firmware, rEFInd should enable you to boot either Windows or Ubuntu. You could then create an /etc/fstab entry to mount /dev/sda4 at /boot/efi and install rEFInd via its Debian package or PPA. (Alternatively, you could install the grub-efi package and set it up yourself.) By itself, though, this approach will still leave confusing data on the ESP, so tools like Boot Repair will continue to be less than useful; to fully recover, you'd need to back up the ESP, create a fresh filesystem on it, and restore it. For that matter, I'm not entirely sure that rEFInd's installation script (used in the packages) would work correctly given the misidentification of the filesystem, so you might need to fix that problem even with this solution.

If the filesystem on /dev/sda4 is so badly damaged that you can't recover its files, you'll need to create a fresh filesystem on it, use a Windows recovery disk to re-install the Windows boot loader, and then recover Ubuntu to bootability by using either Boot Repair or rEFInd.

Note that it's conceivable that the filesystem is readable in one or two environments but not all three. (The three environments being the EFI, Windows, and Ubuntu.) Windows doesn't normally mount the ESP, so you'd need to do so by typing mountvol S: /S in an Administrator Command Prompt window. (You can change S: to some other drive identifier, if you like.) Of course, your Boot Repair output already reveals that some Linux tools (like blkid) don't see a FAT filesystem on the disk, but it could still be readable by the kernel if you tell it to use the vfat driver, as in the mount /dev/sda4 -t vfat /mnt command I presented earlier.


Turns out that xchi is working --- on older systems with a BIOS that does not support USB3.0.....

You MUST disable legacy usb support in BIOS ...

Still not 5Gbit transfer, but it is faster than USB2.0.

Slight drawback is that you lose being able to boot from a USB flash drive or similar.


I had the same problem with choppy audio and video. I ended up downgrading to Flash player 11.1.102.63 64-bit, which you can find at Adobe's archived flash players page.


Switch between windows of unique applications (not Alt+Tab or Alt+`)

In "Settings" - "Keyboard Shortcuts", you could set "Switch Applications" to for example  Super+Tab and leave "Switch Windows" to Alt+Tab. Then, the latter would retain its default function in Ubuntu and let you switch through windows, whereas the former would allow you to switch applications.
If you would prefer both Super+Tab and Alt+Tab to switch applications, you will need to configure that with a command:
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Alt>Tab', '<Super>Tab']"

will do that. That is actually the default behaviour in the upstream Gnome Shell.
In "Settings" - "Keyboard Shortcuts", you can at any time revert the keyboard assignment to the default by clicking the little cross that appears next to the changed binding.


Go to System Settings -->User Accounts, and make sure that Automatic Login is turned OFF

Choose Set a Password now under Action, and just fill out the password info.


Firefox addons with password fields in Ubuntu 18.04 won't open

There is a bug with Ubuntu 18.04's ibus package implementation. https://github.com/ibus/ibus/issues/2002

It seems there is nothing users can do to resolve this issue but wait.


How to Configure Ubuntu to Access Internet only with Wifi Ignoring Wire Connection (Ethernet)

I have a similar setup with an Ubuntu 18.04 LTS with both Ethernet and WiFi connection. The WiFi connects to the router and the Internet. The Ethernet cable connects to a Raspberry Pi.

For Ubuntu 16.04, this answer may be useful: Connecting PC and RaspberryPi using LAN cable

The instructions below are for Ubuntu 18.04

Go to System Setup menu > Network tab on the left margin > The cog icon for the Wired connection as shown below:

Go to the IPv4 tab of the Wired Connection and check the box Use this connection only for resources on its network as shown below.

That was all. I let the desktop assign the IP by DHCP and changed the Pi's setting to request a specific IP address from the desktop. It works for me.

If you manually assign IP addresses then do not specify any Gateway IP address in this setting. A Gateway is not needed in this setup and will confuse the kernel-level packet routing. Thanks Thomas Ward.

Hope this helps


If you know the PID of the process, you can examine the contents of its /proc entry, in particular, the exe file:

$ ls -l /proc/$$/exe
lrwxrwxrwx 1 muru muru 0 Apr 17 19:41 /proc/13339/exe -> /usr/bin/zsh
$ sudo ls -l /proc/1/exe
lrwxrwxrwx 1 root root 0 Apr 17 17:40 /proc/1/exe -> /usr/lib/systemd/systemd

IIRC what ps -ef reports are the arguments of the process (starting from argv[0], which is the command called as is), but a process is free to rewrite its arguments. Hence ps -ef may not be accurate.


Now that `/usr/share/backgrounds/warty-final-ubuntu.png` has changed, where is the solid purple background screen file stored?

There is no file, however there is a way to change the color.

Run the following commands:

echo "[com.canonical.unity-greeter]" | sudo tee /usr/share/glib-2.0/schemas/10_unity_greeter_background.gschema.override
echo "draw-user-backgrounds=true" | sudo tee -a /usr/share/glib-2.0/schemas/10_unity_greeter_background.gschema.override
echo "background-color='#000000'" | sudo tee -a /usr/share/glib-2.0/schemas/10_unity_greeter_background.gschema.override
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

Of course, this changes the screen to black.

More setting options such as setting the background to a static image can be found at the source link below.

source


How do I open VM from command line with virsh

virsh console <guestname> that you tried gives you access to the serial console of the system. Which in your case already seems to have a misconfiguration issue as with a running guest you'd expect to see what is on the main console e.g. boot messages and later a login prompt. Although be aware that this does not "replay" content.
So if you enter virsh console <guestname> late in a livecycle there will be nothing printed. If the guest works in general and you press enter you will most likely see the login prompt appear. But this isn't the ssh connection you asked for.
I read your "but I need the ip address to do this" as your current main issue. If you have used the default setup then libvirt will have set up dhcp for your guest - in that case it can also tell you that, example:
$ virsh domifaddr focal
 Name       MAC address          Protocol     Address
-------------------------------------------------------------------------------
 vnet1      52:54:00:2d:4b:e8    ipv4         192.168.122.3/24

If you have set up your guest to be ssh enabled you can now use ssh to try to connect through it. If instead you have bridged your guest to an external network which does dhcp there it depends on that setup to find the guest IP "from the outside".


Unable to see my CenturyLink wifi network in Ubuntu 14.04.4

First you have network manager and wicd installed, you should uninstall wicd because both installed together will conflict with each other and wicd is not maintained well from what I know.

In interfaces you should only have:

auto lo
iface lo inet loopback

if you are using network manager and not running a server and according to the information from the script you are using network manager.

I have used century link, did you call them and have them walk you through setup of your modem/router? Wireless has to be enabled in the router.

If you did unplug the router for about five minutes then plug it back in.

After you have fixed the interfaces file run the following command to reset udev/rules

sudo rm /etc/udev/rules.d/70-persistent-net.rules

If it does not connect we may have to set some driver parameters.
Reboot and network manager should find all networks in range.


Fail to install control package to Octave (installed via snap)

I can confirm the issue with Snap package, but deb-packaged version works as expected.

So I would recommend to remove Snap with snap remove octave and install 4.4.1 deb instead:

sudo apt-get install octave

For Octave installed from deb we usually need to install liboctave-dev package to compile packages from Octave Forge:

sudo apt-get install liboctave-dev

Then you can install any package from Octave Forge:

pkg install -forge control

Or install the Control package as deb-package with

sudo apt install octave-control

You have to wait for a couple of months and you will get Octave 5.2 packaged in 20.04 LTS.

If you really need to have 5.2 today - use FlatPak:

sudo apt-get install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.octave.Octave
flatpak run org.octave.Octave


How do you uninstall and remove Firefox in Ubuntu 18.04?

sudo apt-get purge *package name*

That is how I typically remove programs and applications


LibreOffice Keeps crashing when I start it up?

Had same problem after upgrading to 11.10.
Removing the .libreoffice directory in my home folder worked well. LibreOffice started just fine after that.


Can't activate proprietary driver for NVIDIA from "Additional drivers" Ubuntu 14.04

You can run this action from command line, using utility ubuntu-drivers. In this case you will get some helpful descriptions of error. To install the most appropriate version use ubuntu-drivers autoinstall


Recovering 220GB of files in a formatted partition with Testdisk

I had a damaged hard drive that was not readable via a file system some time ago and was able to recover that data that was not already corrupted by using ddrescue utility. I used an external hard drive that was empty and had a larger capacity than the hard drive that I wanted to copy. I then installed ddrescue to my ix system and ran a script that copied the entire contents of one drive to the external. it took a VERY long time, but it accomplished what i intended and was able to recover what i could from the corrupted drive.

Please be advised that ddrescue may irreversibly wipe the contents of your drive so be very careful and FOLLOW instructions carefully. I created a bootable usb with ubuntu rescue mix and made sre that ddrescue was installed on it... if not install it from the repos then I followed the instructions on the main ddrescue gnu page...

http://www.gnu.org/software/ddrescue/

---hope this helps


Is it normal that Ubuntu takes more than 2 hours in the partition process?

No, that is not normal. Normal is taking 1-5 minutes. You should make sure your installation media is good and start again. If you get the same problem twice you should go into the bios and turn off as many extra features as you can: I'm thinking touchpad and switchable graphics. If you're overwriting windows 8 your probably having a problem with secure boot. Good luck.


Have you checked if is there any broken/useless plugin which may cause the problem?

You can check the plugin list here (using chrome): chrome://plugins/

Just try disabling the plugins you don't use.

Anyway this may help: https://support.google.com/chrome/answer/113910?hl=en


Motion Computing LE1600 touchscreen functions unavailable in 14.04

So I had the same problem with 14.04LTS.  But I know that Ubuntu 12.04LTS DOES work with the LE1600 touchscreen.

So recently, I tried installing 12.04LTS and then immediately upgraded to 14.04LTS, and happily, this seems to work in terms of enabling the touchscreen.  I don't know about the reliability of this technique, but better than nothing.

If that isn't a satisfactory solution, in 12.04LTS, the touchscreen is detected as a Wacom tablet, so whatever the problem is, I would look there.


In any case, you can login using the Ubuntu 2D option. You choose it with the button next to the password field when you login. It's quite nice too, so you can use it until you can fix your problem permanently. :)


How to associate Unity Dash's buttons to the preferred applications?


How did you mount the disk?

Did you just place the .iso onto it, or did you actually mount it?

If you haven't mounted it that explains the issue you are having. Best way to mount onto a cd on windows 7 is to install the free software Infra Recorder from http://infrarecorder.org/ and then burn the .iso onto it through; actions -> burn image (in the menu).

Now you can boot from the CD. Hope this helps


using dd with target smaller than source

Short answer:
Just leave your 50 TB VDI as it is, and enjoy it's versatility.

Long answer and explanation:
We can use dd to clone a drive bit by bit until we get an I/O error when the destination drive is full. We can also just copy a certain amount of data by using bs and count options of dd but doing any of these will not give you the desired result.

You almost certainly had your 50TB disk defined as a dynamically growing disk, and you probably made your new 50 GB dynamical too. By using dd on these drives you will actually access them. This means that in case you have unused but non-zero data blocks in your VDI there is a risk that both disks will physically grow up to the size of 50 GB.

To avoid this we should better just copy the files from the huge drive to the smaller drive, and restore the boot sector after that.

But even this may not be needed, as your virtual 50TB hard drive is only virtually of that huge size. It will only then need more physical space than your 50 GB drive after you indeed stored more than 50 GB of data there. Then you may find it even convenient to not have to grow the disk to be able to continue to use it.


Ubuntu MATE, Whole desktop crashes when exiting fullscreen video in chrome/chromium

Yes I've got this problem too, I can untick hardware acceleration however then Chrome become pretty unusable...there might be a setting in the flags I've turned on which is making this happen?

I'm running Unity though.


default mount point changed for external HD

(I am not completely sure. But I have not found other explanation)

If we take a look to the /media directory, the /media/username directory belongs to root:

drwxr-x---+  3 root root 4096 nov 11 09:46 mmartin/

but the drive mounted inside belongs to the user:

drwx------  5 mmartin mmartin 32768 jan  1  1970 JAN_EXT/

If we mount an EXT4 filesystem (for example) we can create new directories or files on the hard drive root. In the past, we had to create directories with root privileges inside the first level of an EXT4 filesystem, and later grant permissions to the user.


Are these terminal commands safe for installing Evolution 3.8.0?

As a matter of fact none the commands you proposed will install Evolution 3.8

Installing from a .deb file

wget http://archive.ubuntu.com/ubuntu/pool/main/e/evolution/evolution_3.6.0-0ubuntu3_i386.deb
sudo dpkg -i evolution_3.6.0-0ubuntu3_i386.deb

These commands will download a .deb package and try to install it. Your example will download evolution 3.6.0. The installation will probably fail due to unresolved dependencies.

You can find more information on installing .deb packages on :

This Ask Ubuntu Q&A
The Ubuntu wiki page

sudo apt-get install evolution will do the same thing as installing evolution from the Software Center. For Ubuntu 12.04 this means installing evolution 3.2.3 (See packages.ubuntu.com)

Installing from a PPA

Generally when you want to install software that is not in the Ubuntu repository or when you want to install an updated version of a package you would use a PPA.

Ask Ubuntu has a excellent Q&A on the subject

The Gnome team keeps a PPA of packages that did not make it into the main Ubuntu repositories. The most recent components of Gnome in Ubuntu 12.04 from the PPA are 3.4. Evolution 3.8 is available in the gnome-staging ppa in Ubuntu 13.04.

The only way to get Evolution 3.8 installed on Ubuntu 12.04 would be compiling it by hand, but you will probably encounter lots of problems with dependencies.


how to change specific keys on a keyboard layout

Keyboard layouts can be found in this localization

/usr/share/X11/xkb/symbols/

Detailed reading about this topic provided within this question:
HERE


Gparted : How can I merge unallocated space to my Ubuntu?

You can't change the size of a partition you're currently in.

To change that - you need to use some external file system.

There are many sources in which you can find answers regarding partitioning:

https://help.ubuntu.com/community/PartitioningSchemes
https://help.ubuntu.com/community/DiskSpace

including this site:

How to resize partitions?

personally, I'd advise you to make a USB stick, and use a live OS's partitioning software to make those changes. You can find more information on that here:

https://help.ubuntu.com/community/Installation/FromUSBStickQuick


Asset management application (or distro)

Sounds like what you need is a fixed asset management system:

Try glpi from the repositories or one of these sourceforge projects:

http://sourceforge.net/projects/fams/

http://sourceforge.net/projects/osinventory/

http://sourceforge.net/projects/starclient/


ubuntu.pkgs.org/20.04/ubuntu-universe-amd64/… Have you enabled the Repository? Ubuntu Universe amd64?


Just started using Unity from Ubuntu Classic. Missing Indicators

I believe this is the result of the --no-install-recommends option you used. Installing a matapackage usually requires all of its dependencies, including the recommended, otherwise some features will be missing. If you want to use Unity, install it, on the other hand, if you want a minimal setup, use LXDE.


Did you pay the $4.99 a month for plexpass? If you did that is why you can see your files from their website, they are not on their website and the website file is secure and encrypted, only you and the devices you allow access to can see your files. I have used plex for 2 years now with no issues. The correct address for plex is https://plex.tv/.  Can you supply the link to the web site you are using. Without paying the $4.99 plexmedia server acts like a dlna server and can be accessed from any computer in your network on an unsecure connection, as it is inside your firewall. BUt if you do not want to have access outside your own network, there are other blna/Upnp servers available like ps3mediaserver, umb, minidlna and several others.


Replace empty values in a column with 'UNKNOWN'

In addition to steeldriver's comment, which should work fine, you could also just replace consecutive tabs (\t\t) with "UNKNOWN" surrounded by tabs  (\tUNKNOWN\t).

With sed:

sed -i 's/\t\t/\tUNKNOWN\t/' file

-i modifies the file in place.

With awk version > 4.1.0:

awk -i inplace '{sub(/\t\t/, "\tUNKNOWN\t")}1' file

-i inplace modifies the file in place.
1 in the end just prints the file contents.

With awk version < 4.1.0, the -i inplace option does not exist, so, to imitate -i inplace, you have to save the file to a temporary one and then rename it as your current one:

awk '{sub(/\t\t/, "\tUNKNOWN\t")}1' file > tmp && mv tmp file


Where can I download kernel 5.4.0-42-generic?

All the files for kernel 5.4.0-42 can be found here: http://archive.ubuntu.com/ubuntu/pool/main/l/linux-hwe-5.4/ - but you will probably have to manually resolve dependencies yourself.


Why are applications like brave browser, spotify, atom etc. opening slowly?

If your computer has at least 4GB RAM, you can install an application called preload from the default Ubuntu repositories with sudo apt install preload.

Preload monitors applications that users run, and by analyzing this data, predicts what applications users might run, and fetches those binaries and their dependencies into memory for faster startup times.

The key words here are "into memory". If your computer doesn't have enough RAM memory to support applications caching, then preload will cause your system to have generally degraded performance, especially immediately after booting the system. I have preload installed on my Ubuntu, and I have also noticed that some applications that use a lot of system resources start up faster the second time I launch them after booting. Both Firefox and Chromium start up right away though.

I also have Atom text editor installed as a snap package, which starts up more slowly than Firefox and Chromium. I assume that this is because snap packages have a larger installed size on the hard disk than apt packages, so they take longer to load.


Getting an extended partition during dual boot

I assume you mean partitions not drives.

Your HDD is partitioned with an MBR format. This format can only have 4 primary partitions.
To get more, an Extended partition is made. This partition is then divided into Logical Drives.
In other words, your drive has 4 partitions. The 4th partition is mapped out to represent more partitions.

The 80 GB partition is likely the windows partition. I believe in the settings for nautilus, you can tell it not to automount drives.


It sounds like you're dual booting Windows 7 and Ubuntu from the same hard drive.
If that is the case you can go into Ubuntu and edit your grub settings by opening a terminal and pressing CTRL+ALT+T.

There you can inputsudo gedit /etc/default/grub
This will open the grub settings changer and the topline should read GRUB_DEFAULT=0
saying that your default OS is the first one (0-th one) in the list.

To find out number what your Windows 7 installation is you can open another terminal window and input sudo gedit /boot/grub/grub.cfg. (It is not recommended that you edit this file as your edits will be erased from here if grub is updated) Here you can see number what your W7 installation is. Just press CTRL+F and search for windows 7.
Now count the number of menuentries above and you will have your magic number.

Going back to the /etc/default/grub file change the number of GRUB_DEFAULT=0 to whatever number your W7 installation is. Save and close.

Now open up a new terminal window and run sudo update-grub.

You can now reboot and by default it should boot into your W7.

If this does not work you can also try Boot-Repair and Grub-customizer.

Good luck.


gunzip redirection to /etc/: No such file or directory

Your quotation mark is placed incorrectly.

Run it like this instead:

sudo gunzip -c '/usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz' > '/etc/openvpn/server.conf'

As you had it, the whole '/usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz > /etc/openvpn/server.conf' part was treated as single argument - and of course no file with this path exists.

Now it is split up in one quoted path argument to the gunzip command (/usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz') followed by a Bash output redirection into '/etc/openvpn/server.conf'.

However, as neither of the two paths in your example contains spaces or other special characters, the quotes are not necessary and could also have been omitted altogether.

As you say you have no write permission on file where you want to redirect the output to, you must write it like this:

sudo bash -c "gunzip -c '/usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz' > '/etc/openvpn/server.conf'"


What does this red icon on my panel mean?

It's letting you know that the package system is in a broken state (eg. some of the packages are in a broken state). You can try to resolve this by running the following command in a terminal.

sudo apt-get -f install


how to set up a virtual server and install Ubuntu on it?

Download Ubuntu Server: http://www.ubuntu.com/download/server
Use that with the VirtualBox documentation for creating a new virtual machine.

Ubuntu Server is a fairly basic install but your question is really "How do I use VirtualBox?". Reading the manual (and playing with VB) is the only way you're going to learn how to use it.

If you need a step-by-step, you can easily find them. We even have some on here:

How to install Ubuntu on VirtualBox? (yeah the first 99% is all VirtualBox and is exactly the same for Ubuntu Server)


How do I mirror every inserts or updates from a table to another in MySQL?

Based on @Kulfy's comment, I can solve my problem with a MySQL trigger.
More information I've found here:

What are MySQL triggers and how to use them?
MySQL :: MySQL 5.7 Reference Manual :: 23.3.1 Trigger Syntax and Examples


You can try to edit the following file "settings.json".

NOTE: Make sure that transmission is not running. you can kill it with: pkill transmission

1) Open a terminal and type:

gedit ~/.config/transmission/settings.json

2) Searh for the lines 19 and 47 ("download-queue-size" &  "queue-stalled-minutes") and edit them.

  By default the "download-queue-size" key is set to 5 and the
  "queue-stalled-minutes" is set to 30.

Hope it helps.


Looking for advice on setting up dual boot on new pc with ssd and hdd

I think your plan will work. The only thing, you'll have to consider: Ubuntu won't boot, if you're unplug your HDD, for Windows I don't know. (Yes, I tested it...)

But if I were you: Make the installation of Ubuntu before you save some data to the machine, because of the fact that there is always a probability that it could go wrong.

As for windows: Try to create your own installation Media with the Media Creaton Tool, because of the fact that then almost all updates are also installed.


The iBus candidate window appears at the bottom of WPS Office

You can try to install Google Pinyin using the Fcitx Input Method. The input method candidate window appears right next to the text when typing. Here is how you can install Google Pinyin and Fcitx:

Run sudo apt-get install fcitx-googlepinyin in the terminal. You will need to provide an administrative password.
Then run im-config. Click OK, and click "Yes" to update your user configuration and select Fcitx as the user configuration.
Restart your computer and click the keyboard icon located at the top right corner of the system panel.
Click on "Configure Current Input Method". In the new window, press the + icon to add a new language. De-select “Only show current language” and type "Google-Pinyin". Then click "OK".
Switch between Google Pinyin and your default language by pressing Ctrl+Space.


As a workaround, I would use Clonezilla  to backup the partition to a file and then restore the partition into your other vm.    I'm not familiar with FUSE but I am guessing that this is the general idea of what you need to do.


You seem to have unconfigured packages (2 not fully installed or removed.).
So you should deal with those first by doing sudo apt install -f.
Afterwards you can retry to purge (sudo apt purge nginx).
Depending on your situation, I would recommend to remove nginx sub-components using sudo apt autoremove --purge to purge leftover nginx dependencies to have a clean reinstall.
If all of that works out, you can reinstall nginx (sudo apt install nginx).
Edit:
Since the problem can't be resolved this way and the problem is caused by nginx-core you can try to manually fix the problem by doing:
sudo apt -f remove nginx-core
This tells apt to fix the problem using your provided instruction, which is to just remove nginx-core.
Edit 2:
Since the last failing package is nginx-full (see line 29 in your log) you have to remove that as well.
To do so: sudo apt -f remove nginx-full
Work through through the steps above afterwards, starting with sudo apt autoremove --purge.


How do I clean up machines in a dying state?

You could try:

juju destroy-machine --force 5

The --force option of destroy-machine is available since 1.16.5 and should remove the hung machine and all units on it. Then you should be able to redeploy your service, but if it says "service already exists" just deploy it with a different name.

If all else fails, juju destroy-environment -e <name> is always an option. I'm not sure if it did support --force as well in 1.16.5.


What should I do if I delete the boot folder

One option you could try would be to use a liveCD to restore your /boot directory, however this probably isn't the best idea.

Realistically, I'd save any important files from the disk and reinstall - the /boot folder contains various kernel versions and other important stuff, and if you incorrectly 'repair' it, you could cause even more issues.