I can't connect internet using wireless network

Method 1

On he top left of the Panel click on the Network manager widget and open the Edit connections or search for network connections in the unity launcher.

In the Network manger select Mobile broadband tab and select

Click on add

Select device and continue ahead.They will ask your Provider and your dial number along with username and password .Once you have done this you can connect to it from the widget in top left

Method 2

You need to install two software packages to make the internet connectivity work consistently without breaking. They are wvdial and gnome-ppp (The front-end tool to configure wvdial).

1) Install wvdial package

Open terminal,(alt+ctrl+t) and type the following command

sudo apt-get install wvdial

2) Install gnome-ppp

sudo apt-get install gnome-ppp

3) Open gnome-ppp from the terminal.

sudo gnome-ppp

4)You have to enter your reliance 10-digit mobile number in the Username & your password. Select #777(whichever dialup you usualy use) if you are a Reliance Netconnect Broadband+ user. Then press the Setup button below.

5) In the Setup window below, click the “Detect” button to identify the device ID of the USB port in which you have inserted your USB modem. The tool would automatically detect the Device, Type  and Speed of your USB modem. Once it has deteced, please the “Close” button below.

Once this is done click on Connect!!!


Live CD stalls when installing Ubuntu 13.10

you may try the old version, I've got the same problem on my laptop, and we have the same cpu.... I installed the 10.04 version, and it can work! So there may be something bug with  old machine and new linux kernel.


ubuntu server: network precedence (wired before wifi)

go to network manager and delete both the wired and wifi connections.  reboot.  it will find both the wifi and wired connections the next time it starts up.  make one of the the connections the "prefered connection".  you can't "flip" back and forth between wifi/wired with ubuntu.  it won't "fallback".  why you ask are you having network compatibily issues?


The reason for Ubuntu not displaying GPT partitions was becuase the installer was loading in BIOS mode. To view and edit/create/delete gpt partitions on a UEFI system, ubuntu installer must be loaded in UEFI mode.

I followed the instructions on Ubuntu's Community Page and selected my USB as the UEFI version and installer displayed the partitions.

Anyone going through the same thing in the future, my bootloader didn't gave me options for selecting the uefi option in boot order in the Setup page but the direct Boot Menu did showed those options. Boot Menu opens with F12 on my Gigabyte motherboard.


The kernel-level NFS server (nfs-kernel-server) does not work well with custom filesystems like FUSE, if I remember correctly. Instead, you should give unfs3 a try.

I haven't used unfs3 and can't promise anything, but I believe anything is better than nfs-kernel-server for serving from non-traditional filesystems.


How to check if Nvidia Optimus drivers are install

Try this command,

sudo dpkg --get-selections | grep nvidia

If the output of the above code shows nvidia xxx then it was confirmed that you had installed nvidia drivers.


Why do I get a kernel panic if booting into Ubuntu after having used Windows 7?

I had this problem on an old ami bios.  Disabling the 'plug and play os' feature in the bios worked for me.  A friend also recommends disabling quick boot, but the last time I saw that was long ago. I remembering it even going so far as when it shifted to gui mode, the windows desktop would flicker for a second.


Eclipse is normally a standalone program. Go a head download the eclipse for java save it to a different location and always navigate to the directory to run it


I had same symptoms. Nothing happened on the Settings icon. Looking at output from journalctl -r, I saw the same error as you. It turned out the gnome-control-center was no longer installed. For all I know, it could have been missing since a year ago, when you also had this problem.

But it was easy to fix. Just install it again:

sudo apt install gnome-control-center


Does Unity Tweak Tool still have support for selecting default applications?

Unity Tweak Tool (currently version 0.0.6) never had an option to select default applications.

But Unity Tweak Tool has a lot of other options to customize the Unity desktop environment.

You still can select the default applications from the system settings application ... of course.

In case you meant Ubuntu Tweak - this tool seems to not be maintained since a long time.

The last release was version 0.8 for Ubuntu 14.04 - available in Ubuntu Tweak Stable PPA.


Did you see any messages about c++11 or gnu++11?

Looks like a similar problem is here: https://github.com/BVLC/caffe/issues/6359

Solutions are

Updating protobuf and adding the following to the MAKEFILE:

CXXFLAGs += -std=c++11

Not sure if these flags are required in the MAKEFILE (try them if the above doesn't work):

NVCCFLAGS += -std=c++11
CXXFLAGS += -std=c++11
LINKFLAGS += -std=c++11

Use an older protobuf (2.x) which is c++ 98 compatible


How can I make a two-finger tap on touch pad take me to my desktop?

In linux, in general, two-finger tap is emulating a right-mouse-button click in the current mouse position. Do you not want the right mouse button emulation?
Anyway, you can easily configure what you asked if using KDE, with its internal system of global hotkeys. Default Ubuntu desktop, Unity, does not allow you to configure a lot.


Weird placeholder when I press the key to put accent in letter

I guess that you have defined Right Alt to serve as your compose key, and if so, that symbol is there to let you know that it's waiting for a compose sequence.

It's not a bug; it's expected built-in behavior.


Does not install to hard drive on an MSI Wind

Try the alternative CD installer.

More than likely it will work where the live CD/USB does not.


I solved my problem.

With the installation from gitlab, i activated the firewall.

I also added the necessary ports from samba to the firewall and now i can connect to the samba share.


Why top panel icons disapear on Gnome after installing Unity?

It also seems to happen after Ubuntu upgrade. Gnome is conflicting with unity stuff in this case. See this answer and other below.

So, if you want gnome instead of unity as in my case, I've just removed the obsolete package:

sudo apt remove indicator-application

Then reboot the system or do this for immediate effect


To reset your mysqld password just follow these instructions :

Stop the mysql demon process using this command :

sudo service mysql stop

Start the mysqld demon process using the --skip-grant-tables option with this command

sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &

Because you are not checking user privs at this point, it's safest to disable networking. In Dapper, /usr/bin/mysqld... did not work. However, mysqld --skip-grant-tables did.

start the mysql client process using this command

mysql -u root

from the mysql prompt execute this command to be able to change any password

FLUSH PRIVILEGES;

Then reset/update your password

SET PASSWORD FOR root@'localhost' = PASSWORD('password');

If you have a mysql root account that can connect from everywhere, you should also do:

UPDATE mysql.user SET Password=PASSWORD('newpwd') WHERE User='root';

Check this official help

If the above method didn't work check this.

Check the version of your mysql-server;

apt-cache policy mysql-server

Now you can know  mysql-server-X.X installed in your system.

Start the reconfiguration with:

sudo dpkg-reconfigure mysql-server-X.X

This will  prompt  you  to enter your new password and confirm the reconfiguration.

Now you can log in :

mysql -u root -p


How to install Epson L210 scanner in Ububtu 16.04?

Are you sure it is a deb? The epson file (iscan) is not actually a deb even though it has ".deb" in the file name (eg iscan-bundle-1.0.0.x64.deb.tar.gz).

Is iscan installed? If not, try these directions:

Download the most recent iscan software.
Extract the software using archive manager (eg In Nautilus, right-click downloaded file and then Open With Archive manager)
Open a terminal and go to the extracted folder (eg In Nautilus, right-click extracted folder and then 'Open in Terminal').
Type ./install.sh

For more info and in case of problems, see the Epson installation guide:


how to install topspin 4.08 in ubuntu 19.10

I happen to have a blog that is quite focussed on getting Bruker Topspin to work on Ubuntu and I have just made a blog post that should solve your problem. See:
https://selkieupsilon.blogspot.com/2020/06/installing-bruker-topspin-4-on-ubuntu.html
(I came across your question while looking at the top search results on "Ubuntu + Topspin")

Advice: If you are intending to use your computer for lots of NMR processing and analysis/research/scientific work, I strongly suggest you to upgrade to the 20.04 long term support LTS version as N0bert has suggested in the comments. The support cycle of the LTS is much more compatible with the stability you would need for a production machine compared to the in-between releases. Using a LTS means that you can continue to work, without needing to upgrade to the next release, in a stable environment, for at least 5 years; the in-between releases would require you to upgrade in ~9 months from the date of release, with part of your workflow potentially breaking every update. If you are new to Ubuntu, be aware that not every release is an LTS. I only use LTS releases for my work computers and that is the main reason why I only cover LTS releases in my blog posts.

I cannot guarantee that the rest of the commands below would work in 19.10, as I did not test 19.10. So I strongly recommend you to first upgrade to 20.04 before trying the installation again.

To answer your specific question, the command you ran (I'm assuming as root) would not work because root cannot be used to run graphical applications in the same way as in 18.04. I did not do a full troubleshoot on the reason, but I suspected it may be related to how $HOME is differently handled from 19.10 onwards.

Unfortunately, the (proprietary) Topspin installer is graphical. So you need to use the PolicyKit approach to run the graphical installer with elevated permissions/as root (PolicyKit approach taken from this blog post).

# pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY topspin-4-0-8-linux.sh

Just a warning that even after doing that and running the installation, it will not work immediately because Topspin requires another (proprietary) license manager called Codemeter Runtime and the DEB version is not bundled with the Topspin installer.

The installation of the Codemeter Runtime package is also unfortunately not straightforward under 20.04 (and I suspect also 19.10). I have covered how to install it on my blog. But briefly, you would need to install the equivs package to generate a dummy multiarch-support package, and I modified the instructions from this blogpost.

I'm happy to help troubleshoot if you run into further problems while retrying the installation under 20.04.


ubuntu 19.10 corrupts ntfs formatted sd card

Common problem. You need to take ownership of the mount point.

First be sure the card is mounted.
Use the lsblk and blkid commands to find the name of the mount point. It's a string of characters.

Then issue this command:
sudo chown $USER:$USER /media/"user name"/"mount point name" -R
entering your user name and the name found in the first commands not including the " "..

You should be okay now.


How can I connect wifi in ubuntu 18.04 LTS which I recently updated from 16.04?

Using nmcli utility(recommended):

We will use the command-line version of Network Manager, nmcli.

Scan for available WiFi networks:

nmcli d wifi list

where d stands for devices.

Connect to your access point, for example, my_wifi:

nmcli d wifi connect my_wifi password <password>

where <password> is the password for the connection.

Using ifconfig:

Check the wireless network device of your card. It usually starts with w like wlan0, but if you're unsure you can just run iwconfig. It will report "no wireless extensions" for non-wireless devices and will display some data for any wireless devices.

Now bring up your wireless card as a root user:

sudo ifconfig wlan0 up

Enter your access point name and password using iwconfig:

iwconfig wlan0 essid <my_wifi> key s:<password>

where  is the name of your hotspot name and  is its password.

This method works for WEP encrypted connections. For WPA/WPA2 encryptions see this.


I had a similar issue to this with one of my dual monitors, the issue that I had was that the drivers weren't installed properly and up to date. Maybe that is the issue?

I would comment, but I can't until I get 50 rep :*(


How can I run full the Android OS, including Google Play Store, on Ubuntu 18.04?

There are (2) complete Android OS platforms that I've have good luck with:

Android x86 (https://www.android-x86.org/)
Prime OS (https://www.primeos.in/)

I have only run these under a virtual environment (Virtualbox and QEMU), but they can be installed as a dual-boot. Android x86 is more mature than Prime OS.

Now, if you want to run Android apps natively, there is Anbox (https://anbox.io/). It's harder to setup, and does not support Google Play out-of-the-box, but it looks promising.


If you open the keyboard settings, then click the 'shortcuts' tab, then select the "sound & media" page, you can change the shorcut for mute, up and down.  I tested CtrlMenu for mute, SuperMenu for down, and AltMenu for up and it seems to work OK.

Weird way of doing it though - the modifier key denotes the function while you just hit the menu key for action.


Resolution doesn't change when resizing Virtualbox window

I had this problem as well running a newly installed version of VirtualBox (VirtualBox 6.0). I tried installing the aforementioned packages but had no luck. My solution was simpler than I had anticipated. While the machine is powered off, go to:

Settings (of the VM) > Display > Graphics Controller > and select "VBoxVGA"

VirtualBox had set this option to "VMSVGA" by default for me. Fortunately, I noticed this subtle difference when comparing the settings between some of my virtual machines. I hope this works for you as well!


What is the default software to play single audio files?

For me default to play mp3 is Banshee.

To set Banshee as default you can do "Open with" ->  "Open in other program" -> select or write there Banshee and check "use as default"


If you your keyboard still functions properly then do this and it may restore your mouse:

Ctrl + Alt + F1

This will get you into TTY where you need to login

sudo apt-get install xserver-xorg-input-all

This will install all input devices.

sudo reboot

After reboot check to see if mouse function has returned!


Bought a ASUS ZenBook Pro UX501VW and shrank the Win10 partition via Win10 itself. Made sure there was only three primary partitions and added the fourth for Ubuntu.

Almost every computer that ships with Windows 8 or later ships configured to boot in EFI mode from a GPT disk, and some of what you write later provides further evidence that your computer is so configured. GPT does not have the four-primary-partition limit of the older MBR partitioning system. Thus, you don't need to worry about that limit; and in fact, if you deleted partitions to get under four, you might have deleted something you'll later regret. It's too late to do anything about this now, but I wanted to provide the information about GPT's improvements for your future use and for the benefit of others who might read this.

  I had trouble getting the Ubuntu 16.04 Live USB to boot, but doing the "Shift + restart click" made it happen a few times.

It's hard to say what's caused your sporadic problems getting the installer to start, but as a general rule, when dealing with new hardware, I recommend using the newest version of Ubuntu you can; newer versions include newer drivers, which may be necessary to make recent computers work properly. Thus, using 17.04, or at least 16.04.2, is advisable for you.

  Marked install third-party, as well as the disable secure boot option, which I assume means Ubuntu should handle UEFI/secure boot compatibility automatically for me.

Personally, I try to avoid using third-party drivers. In my experience, they create more problems than they solve. Of course, you might have a different experience or different needs, particularly if you play games that work better with third-party video drivers.

Disabling Secure Boot makes it easier to load third-party drivers, but this also means that (hypothetical) malware might find it easier to infect your system.

  When I make it to the reboot, the MOK Manager pops up. But I have no idea how to make it succesfully make it work, so that I can boot Ubuntu.

This should not have happened. MokManager should appear only if the grubx64.efi file is not properly signed. Thus, chances are you've run into a bug, but it's hard to say where this bug exists. Broadly speaking, though, there are two possibilities:

Your firmware -- Your firmware may be buggy in a way that's causing it to work poorly with Ubuntu's Secure Boot features. You might therefore check with ASUS to see if a firmware update is available for your computer.
Ubuntu components -- An Ubuntu component, like Shim or GRUB, might be buggy. (I consider an improper signature to be a bug, in this context.) This is actually a very broad category, with many possible solutions. I'd start by re-installing without selecting the option to disable Secure Boot. (I'm not positive, but I think that option doesn't actually disable Secure Boot in the firmware; it just tells the kernel to not call back to Secure Boot to validate kernel modules.) I'd also install without the third-party drivers. Even if you know you need those drivers, you can install them later.

If you can't get around this problem by updating your firmware or re-installing with different options, you might try disabling Secure Boot in the firmware. Details of how to do this vary from one computer to another, so a concise description of how to do this is impossible. I do show several examples on this page of mine, so you may want to read it.

  I have tried disabling fast boot, secure boot and enabling CSM.

Double-check that you've disabled Secure Boot in the firmware (not just by selecting the option the Ubuntu installer presents). If you have and you're still seeing the MokManager show up, then that implies that something is causing GRUB to fail to launch. You might try my rEFInd boot manager instead. Download the USB flash drive or CD-R version and try booting from it; you should be able to boot Ubuntu and then install the PPA or Debian package to your hard disk. Given the nature of your problems, I can't guarantee that this will work, but it might; and even if it doesn't, details of how it fails may be instructive.

If you want to dual-boot with Windows, do not enable the CSM! At best, this will have no effect. At worst, you'll end up creating a mixed-mode (BIOS/EFI) installation, which will be harder to manage than an all-EFI installation. See my page on the CSM for details.

  Only other thing I can think of is that the fourth partition is split in two during the Ubuntu install - OS partition + swap partion. Which could mean that I create a fifth partition and thereby create trouble

No, that's not the issue; as I said, GPT does not suffer from MBR's four-primary-partition limit. Under GPT, there's no distinction between primary, extended, and logical partitions, and a default partition table supports up to 128 partitions. I've got a couple of computers with a dozen or so GPT partitions each and they work fine.


Is there a WINE version of Flash as a plugin to Firefox or Chrome?

No.

At best you could get this to work by running the whole browser in wine but that would be sure to decrease performance not increase performance.

The best way to overcome poor flash performance is to download videos instead of streaming them using tools such as abby (also: clive, cclive, youtube-dl). All of these are available from the Ubuntu Software Centre.


Is is possible to use a ntfs usb disk as a liveusb with Startup Disk Creator?

https://help.ubuntu.com/community/Installation/FromUSBStick currently does not mention "NTFS" anywhere. So I'm guessing the support has been removed.

I just tried using Rufus 2.18, Ubuntu 18.04 Desktop 64bit, and SanDisk 64 GB and it failed to boot using NTFS (i.e. drops to Grub rescue shell). It works well with FAT32 as always.


Buy a 3640.  Use the ios image included in your service plan.  Insert this image in your config.  For details check out blindhog.net.


You have to change the behaviour of Nautilus.

Open Nautilus - File - Preferences (Options) - Behaviour Tab.
Under "Executable text files" mark "Execute..." or just "Ask...", then you have the choice.


unable to install webapps from firefox in 14.10

Normally clicking install in Firefox should install the unity-webapps-twitter package, please verify that it is installed (e.g. run apt-cache policy unity-webapps-twitter on a terminal).
After the package is installed you should open the dash an type twitter to open the webapp, then you can pin in to the starter by right clicking the twitter icon.


Krusader: How to hide FN key bar permanently

Krusader settings

Two ways:

1) Krusader > Settings > Configure Krusader > User Interface: Show function keys (on/off)

2) Krusader > Settings > Configure Krusader > User Interface: Save settings on exit and then Settings: Show FN key bars (on/off)


You are affected by this bug: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1090829

Solution1:

Via Gparted create another EFI partition (FAT32, 200MB, located in the first 100GB of the disk), move the 'boot' flag on it
Install grub-efi in this new ESP (eg https://help.ubuntu.com/community/UEFI#Converting_Ubuntu_into_EFI_mode ).

Alternative solution:

Backup the files in the ESP
Format the ESP
Recreate the ESP (FAT32, same size) via Gparted, place the 'boot' flag on it
Restore the backups into this new ESP
Install grub-efi in this new ESP.


Init.d script gets return code 1 when calling itself, how can I get output?

It could be that the user wasn't set up as system user correctly. (Don't use the adduser command for that.) Try to delete user nexus and re-add it.

sudo groupadd nexus
sudo useradd -r -g nexus nexus

Don't forget to chown the home of the nexus binaries and the sonatype-work directory and also the directory where the script puts the PID file to the new user.


Read the error message! It tells you what to do: In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important!

NTFS is an undocumented Microsoft Windows filesystem. This problem is NOT fixable under Ubuntu.


Converting a windows Run.bat to a Run.sh

Run the command which java or command -v java and you get an output like:

/usr/bin/java

this means it's installed use java in place of c:\program files\java\jdk1.8.0_75\bin\java.exe.

#!/bin/bash

At the top of that file.


nvidia - high power consumption on idle GTX 1080 cards

I successfully solved this problem. It turned out that my card were running in P0 (performance mode). The following command changes performance mode to P8:

$ nvidia-settings --ctrl-display :0 -a "[gpu:0]/GPUPowerMizerMode=2"


Weird Lines when Dual Booting with Windows 8.1

If you have issues with video adapter after fresh install, you need to boot with "nomodeset" boot parameter and after that install a proper video driver.

In some cases video adapters are not well supported by kernel drivers.

How to boot with "nomodeset" you can see HERE.


/etc/sysctl.conf settings do not last after reboot

I was unable to find a definitive root cause, but I was able to resolve my issue by doing the following:

Remove custom net.* parameters from /etc/sysctl.conf and place in /etc/ufw/sysctl.conf

The issue persisted for kernel.sysrq no matter what I did with the config files, so I used the following workaround:

Create the following cron job for kernel.sysrq:

@reboot sleep 5 && /sbin/sysctl --system


How to use KDM instead of lightdm in Kubuntu

Hit Control+Alt+F1 and in the terminal that appears login and run

  sudo dpkg-reconfigure kdm


I get this every once in a while and usually I just nuke the file because a corrupt file is usually very hard if not impossible to recover.

The problem is that the data appears to have been corrupted.  Which explains random hex code, unicode characters, etc. appearing when you expect readable text.  Data corruption like this is usually irrecoverable, so unless you really need your complete history of commands you've run, you might just want to bite the bullet and erase the file so it can start over.

You can also rename the file to keep the contents if you wish, but the data remains corrupt and likely irrecoverable.


Install current version and update or wait until next release

There are no problems in upgrading (do-release-upgrade) from 19.04 to 19.10 when 19.10 is released. The upgrade process will clean out any unneeded programs and files from the old version.

When you install a beta release, there are a risk that there will be some errors, that in worse case will make your system unbootable. Normally you only see minor glitches, and they are normally fixed quickly - but the risk is there. In the beta-period, there will be much more updates than you see in a stable release.

The transition from beta to stable is just another sudo apt update and sudo apt upgrade (or a click in the software updater) - like any other update.


It is disabled by default. The "remote login" feature of the log-in screen is for logging in to remote machines. In order for remote login to work, you must have an RDP server which you have an account on, to log in to.

If you have no intention of ever using such a service, or setting up your machine to allow remote access with VNC/RDP, then you can remove the packages for it, by running:

sudo apt-get autoremove --purge remote-login-service vino remmina remmina-common

This will remove the client service, the vino app for exposing your screen over the network via RDP/VNC, and the remmina client for connecting to remote shared screens.


Audio not working for Gnome Screencast Ctrl + Alt + Shift + R

I never heard that gnome-shell screencast record video AND audio.

In this case you can record with an another software in background or choosing an another application like recordMyDesktop.

http://blog.sudobits.com/2012/02/11/best-screencasting-software-for-ubuntu-1110-1204/


how to install libnice on its master branch

just note to others:
the asker is following the old instructions for libnice 0.1.16 and before
starting from 0.1.17, they use meson to build. you also need ninja iirc.
the instructions in janus above are given in older readmes for older versions of janus.
when trying to follow that on ubuntu 18.04 (I need that older version of janus, and am trying to use libnice 0.1.16 as listed in that readme of janus, though newer version should work... but gave me a different error...), I had to jump through a bunch of hoops to install:
should be:
git clone https://gitlab.freedesktop.org/libnice/libnice
cd libnice
git checkout 5969b34e3acd9150506ed8d9d109c73665858f3e
./autogen.sh
./configure --prefix=/usr
make && sudo make install

but autogen.sh fails, because no aclocal
so, looking that up, we see mention of solving this in general with
sudo apt install autotools-dv
sudo apt install automake
and then running again
now we get a failure from autogen because of no gtkdocize. A google mentions downloading gtk-doc-tools to solve this.
sudo apt install gtk-doc-tools
and that gets us to a failure because of no LIBTOOL
Makefile.am: installing './INSTALL'
agent/Makefile.am:31: error: Libtool library used but 'LIBTOOL' is undefined

so
sudo apt install libtool
new error,
configure: error: Package requirements (glib-2.0 >= 2.48 gio-2.0 >= 2.48 gobject-2.0 >= 2.48 gthread-2.0) were not met:

No package 'glib-2.0' found
No package 'gio-2.0' found
No package 'gobject-2.0' found
No package 'gthread-2.0' found

so,
sudo apt install glib-2.0
(already installed it seems) sudo apt install gio-2.0
(already installed it seems) sudo apt install gobject-2.0
(this doesn't exist, so do the next line) sudo apt install gthread-2.0
sudo apt install libglib2.0-dev
try one more time.... and voila? Seems to work? we'll see...
./configure --prefix=/usr
make && sudo make install
but I find myself unsure as to whether I have a local version of libnice installed that needs to be removed... pretty sure I don't, but 0.1.14-1 of libnice-dev is listed in repos.


No, it is a terrible choice for that.  dd is a dumb animal.  It doesn't know anything about the filesystem, so it blindly copies every single sector, whether it is used or free space.  This results in a very large backup image.  You also can not restore it to an even slightly smaller drive, even if it had plenty of free space.

Tools like partimage and ghost4linux ( and the built in e2image gained this ability in 14.04 ) are at least smart enough to skip the unused space.  Conventional backup tools like tar and dump are much better since they offer the flexibility of restoring to slightly smaller disks if need be, or restoring only a subset of files that you accidentally deleted.  They can also do incremental backups of only the files you have changed instead of doing another full image of the entire drive each week.  You also might want to look into rsnapshot which can give you weekly backups that are browsable by each week, without taking up the disk space of full separate copies.

If you want to encrypt the backup, you can just use gpg to encrypt the file.  For example: tar cz / --one-file-system | gpg -c > /media/sdb/backup.tar.gz.gpg.

For more information see http://wiki.ubuntu.com/BackupYourSystem


What purpose does the Public folder serve

The folder is used for sharing files publicly, so your files won't be exposed.

  This folder isn’t shared by default, but you can easily set up several
  different types of file-sharing to easily share files on your local
  network.

  This folder was originally meant for the Personal File Sharing tool,
  which is no longer included with Ubuntu by default. You can install
  the Personal File Sharing tool or use Ubuntu’s built-in file-sharing
  feature to share files.

  The Personal File Sharing tool – also known as gnome-user-share – was
  the original reason for the Public folder. It uses Apache to offer
  convenient WebDAV-based file sharing, but doesn’t work with Windows
  systems. It supports Bluetooth file sharing, too.1

1Source:How-To Geek


Can't do anything on startup until terminating Kate in Kubuntu

The problem was that i had a shell script in my /home/user/.kde/Autostart folder which was supposed to run on start. But i had not changed its mode to executable. Changing the mode by "sudo chmod +x " solved the problem.


Windows 7 not selected as default on boot-up (dual boot)

Is GRUB installed? (I would imagine that it is)
If so, I'd just be sure to select Windows when GRUB is open. You should be able to edit the order in GRUB as well, which would solve your problem.


Why does Suspend/Resume fail to render desktop upon signing in 14.04?

I found a workaround for the issue. Under 'power' settings, I found an option entitled 'When the lid is closed' and selected 'Do Nothing' instead of suspend. I also removed the suspend option from the system menu. While this is un-ideal (as closing the lid doesn't shut off my system) it still turns off the screen, and upon resume, my system does not crash. So I'm going with this option for now.


You may want to try and look at the logs. It's not very exciting, especially since you often don't know what to look for. The following ones are likely to provide clues:

/var/log/dmesg
/var/log/dmesg.0
/var/log/Xorg.0.log

If you find system logs too cryptic, post them to http://www.pastebin.com/ so that other may have a look.


No sound after update to 20.04 "Dummy Output"

I faced the same issue, you can follow steps mentioned in the answer of this question. If the link doesn't work just do this.

Open your terminal and after that:

sudo vim /etc/default/grub
Find GRUB_CMDLINE_LINUX_DEFAULT and add snd_hda_intel.dmic_detect=0 to the end of it. (ex: GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 snd_hda_intel.dmic_detect=0")
run sudo grub-mkconfig -o /boot/grub/grub.cfg
reboot your system


HBO and TED talks video maximizes on wrong monitor

I have had to modify the layout of the screens and put the TV on the left of the laptop LCD.

To do that go to Settings > Displays

Then drag the TV to the left of the laptop LCD.

If that does not work you could choose to turn off the laptop LCD and have only the TV on.


What does "packages have unmet dependecies" mean and what can I do about it?

That error means the package you are trying to install depends on some other packages, but for whatever reason, they aren't going to be installed. There are a few ways to try to get around this.

Installing each listed dependency manually. You can try running apt-get install on all the dependencies listed in that window, but this could take forever and lead to more dependencies that need to be installed.
Using the Ubuntu Software Center. This might be easier, since it's more user-friendly and automated. Open the Ubuntu Software Center and try installing you package from there.
Using aptitude. There is an alternative to apt-get, called aptitude, that will try harder than apt-get to fulfill your request. While it may work well, it could also end up removing important packages that conflict with what you're trying to install. Use this tool with care.

I would try running sudo apt-get install x11-utils before trying to install your package to see if that fixes anything. Also try running sudo apt-get update and then sudo apt-get upgrade to make sure everything is updated and installed.


Live usb version works but not installed version

Have you tried with other wireless adapter and mouse? I had same problem with wireless adapter and that worked for me. Have you tested if it works with the normal cd? I think you should report this as a bug whit or without further tests. And dont forget to add what specs and what mouse and wireless adapter you have!


There are three things in total that Dropbox requires to continue working on Linux, and only one is properly documented. What I'm summarising here worked for Dropbox 59.4.93 on Ubuntu 18.04.1 (amd64).

You've already cleared the first hurdle:

The base file system needs to be ext4, and specifically not ecryptfs. i.e. if your home folder is encrypted, you need to put the Dropbox folder someplace else, eg. a separate ext4 partition.

The other things to check are these:

The ext4 file system needs to be formatted with ext_attr on. This is the default behavior, but you can confirm by running debugfs -R features /dev/sda1 (or whatever your device file is called -- if you're using LVM it might be something like /dev/mapper/computername--vg-partitionname)
The ext4 partition needs to be mounted with the user_xattr option set (You can check for and add the option in GNOME disks or edit /etc/fstab directly)
The target folder (or Dropbox sync folder) needs to be at least two levels beneath the mountpoint, as described in this post. This is obviously a facepalm-worthy bug.

Once I fixed all these things, Dropbox finally allowed me to move the target folder and the error messages about "unsupported file system" disappeared.


You should start Wireshark with root privilege to get your jobs done. You can do this by:

Press Alt+F2 and enter gksu wireshark; you can then do the capturing jobs.

Or, open a terminal by pressing Ctrl+Alt+T and enter the command:

gksu wireshark &


Shape incoming traffic using tc (and IFB?) on a NAT ed interface

This is a good read. It involves installing shorewall though.

http://www.shorewall.net/traffic_shaping.htm#IFB


Dual-boot 12.04 on a computer already running Windows 7 - disk partition details

You may have 4 primary partitions, the maximum allowed.

After you select "Something Else" change sda4 from primary to extended. Inside the extended partition create three logical partitions, one for root / (25GB), one for swap (5GB) and one for /home (rest).

Partition types for  / and /home should be ext4 and swap should be swap.

The rest should be easy.

Hope this helps.


@Gilles is right, the command is called wc. The following does the job:

find -name pattern -exec wc -l '{}' \;

An alternative without using find might also do the job:

wc -l pattern


I am unable to install latest version of R

First, remove the installed version of R using:

sudo apt purge r-base

You should also uninstall any other R packages that you may have installed.

As stated in the R installation guide, for 16.04 you need to add the repository deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/ to /etc/apt/sources.list. There is a longer and a shorter way to do this.

Longer way: To add the repository open a terminal and run

sudo nano /etc/apt/sources.list

Copy and paste deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/ at the end of the file (paste is Ctrl+Shift+V for nano).

Then add the public key for the repository running the following command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

Finally, update your system to enable the repository:

sudo apt update

Shorter way: You can add the repository, key and update as an one-line terminal command:

sudo bash -c 'echo "deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/" >> /etc/apt/sources.list' && sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 && sudo apt update

Now you should be able to install R 3.6 by running:

sudo apt install r-base


More user with admin rights to work on the ubuntu server

In the sudoers file, You can allow them to sudo run certain commands as certain users.
ie. taken from the linked help
dgb     boulder = (operator) /bin/ls, (root) /bin/kill, /usr/bin/lprm
Then user dgb is now allowed to run /bin/ls as operator, but /bin/kill and /usr/bin/lprm as root.
You will need to find the applications that he will need to be able to run. ie. /etc/init.d/apache2
dgb boulder = (root) /etc/init.d/apache2 plus other commands that they might need to run
Suders Help
Also you will probably need to add them to a group that has write access to the sites-enabled site-avaliable folders so that they can edit the config files.


texlive-plain-generic broke my Ubuntu 16.04 upgrade process

My current solution, which seems working for now, is the following.

Purge the third-party PPA for texlive

sudo apt install ppa-purge && sudo ppa-purge ppa:jonathonf/texlive
sudo update

Purge all texlive packages as I did before. Plus, purge a easy-to-mess-up package by sudo apt purge libkpathsea6.
Reinstall texlive from the beginning, sudo apt install texlive-full.


Unable to use Systemd to start my Docker container

Absolute paths are key to success in shell scripting.

Why not make it without home directory scripts (that is not good practise in services) :

[Unit]
Description=Docker Container
After=network.target
After=systemd-user-sessions.service
After=network-online.target
After=multi-user.target

[Service]
User=root
Type=simple
ExecStart=/usr/bin/docker start -a container_name
ExecStop=/usr/bin/docker stop -t 5 container_name
TimeoutSec=60
Restart=on-failure
RestartSec=30
StartLimitInterval=350
StartLimitBurst=10

[Install]
WantedBy=default.target

Happy dockering!


transfer windows 7 files/folders permanently

Yes.

You can also do this without external media. Ubuntu (Linux in general) will happily mount your windows system if it is clean and lets you copy files from it to another partition.

Mind that with moving files I expect you to move video, audio, word, excel files and the like. Though you can copy executable files (ie. .exe or .bat) that those will not run in Ubuntu. The same goes for anything that hold visual basic.


Ubuntu does not normally have a .bash_profile

You should add your change to the end of  .profile instead, since this file will not be read if .bash_profile exists, and Ubuntu normally has code in .profile to at least source .bashrc in login shells, so we want it to be read!

I recommend you don't create any new files, but modify the existing .profile (found in your home directory, but hidden as it starts with a .) instead to add to your PATH. This is an appropriate and usual way of modifying your environment in Ubuntu


That is a fairly simple setting you can set from Synaptic Package Manager.

Select the package you do not want to upgrade, then head over to the menubar and click Package->Lock Version

This will force the selected package not to upgrade.


The computer in this question has 2 different boot menus, one of which has grub as one of its boot entries. To remove duplicate entries in the boot menu that leads to the GRUB boot menu run EasyBCD on Windows.


What's the difference between putting display to sleep and switching off the display?

As long as the display shows something like Standby Mode or No signal after it has been put to sleep or switched off there is no difference.

Concerning the signals that video card outputs to monitor, there are ways to send a monitor a command to enter standby mode. See How does a computer signal via VGA for the monitor to sleep

The difference would be if

in one mode, the display enters standby mode and it gets turned off (as indicated on computer monitors by a message and/or the power LED changes)
in the other mode, the display shows a black picture but it is still on (something like a black "screensaver"). That would be a waste of the display and of energy and it is hard to see that on a notebook, but can be easily seen on monitors that don't enter standby.


Is there any way to send mail from terminal to gmail or google apps mail with a zip file attachment?

Probably your zip file contains prohibited contents set out in
Gmail attachment policy.

In short, if the zip file contains executable files, or if the zip file is password protected which contains another zip file, it rejects your email.

Message size (including attachments) of over 25MB are also rejected.


Since you are new here: Could you do us favor before your do? See if you are running the recommended videocard driver.There have been issues with running the latest one.
Ubuntu 11.04 should not be alot slower than 10.10. Booting is a bit slower, ok but not alot to make a difference. The desktop itself should not be slower.

If you do want to go back to 10.10: reinstall is indeed the best option. It is the best option to make sure nothing from 11.04 stays on your system what could possible disturn your 10.04 setup.

Besides the link Takkat posted also have a look at the other questions on the right hand side under 'related' with almost the same titles since Duplicate questions do get closed on askubuntu.


How can I free my GPU memory in Ubuntu 14.04?

Check what is using your GPU memory with sudo fuser -v /dev/nvidia*

The output will be as follows:

                     USER       PID   ACCESS  COMMAND
/dev/nvidia0:        root       10    F...m   Xorg
                     user       1025  F...m   compiz
                     user       1070  F...m   python
                     user       2001  F...m   python

kill the PID that you no longer need with sudo kill -9 <PID>
Example:  sudo kill -9 2001


gcc Hello World on Ubuntu Touch: 'cc1plus': execvp: No such file or directory

The error

gcc: error trying to exec 'cc1plus': execvp: No such file or directory

arises because by using -x c++ and a .cpp filename suffix, you are telling gcc to treat your source code file as C++ rather than plain C, and do not have the g++ compiler installed.

Since printf("Hello World!\r\n"); does not use any C++ syntax elements, the simplest solution is to compile as plain C - either by renaming your file and omitting the -x directive:

gcc helloworld.c -o helloworld

or (if you want to keep the .cpp suffix), using -x to tell gcc to treat it as C regardless

gcc -x c helloworld.cpp -o helloworld

Note that in either case you will need to remove the -lstdc++ directive since the C++ standard library won't be available (or required).


What program is there that can unzip files to the usb port?

You only need the standard archive manager. After opening an archive file with the archive manager, you can select the Extract button. This will give you the standard file selection window from which you can select your USB drive.


Is ESM available for free for personal use?

Since November 2019, Canonical has stated that Ubuntu ESM is now available for free for personal use, though it is up to three machine.

  Canonical is happy to announce that all community users are entitled
  to a free Ubuntu Advantage for Infrastructure account for access to
  Extended Security Maintenance (ESM) and Kernel Livepatch* for Ubuntu
  14.04 LTS (Trusty Tahr) for up to three machines, and up to 50 machines for all official Ubuntu Members.

Taken from https://ubuntu.com/blog/ua-services-deployed-from-the-command-line-with-ua-client

You can get started here → https://ubuntu.com/esm


Is there an updated solution for avidemux on Ubuntu 16.04

You can install Avidemux on Ubuntu 16.04 as a flatpak package. Flatpak is a next-generation technology for building and distributing desktop applications on Linux that is supported in Ubuntu 18.04 and later. For earlier versions of Ubuntu flatpak support can be added from ppa:alexlarsson/flatpak.
To install Avidemux in Ubuntu 16.04, open the terminal and type:
sudo add-apt-repository ppa:alexlarsson/flatpak # required in 16.04 only, not in later releases
sudo apt update
sudo apt install flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.avidemux.Avidemux
flatpak run org.avidemux.Avidemux

The last command is the command to start Avidemux from the terminal. Avidemux can also be launched by clicking on its icon in the Dash.


ImportError: cannot import name 'multiarray'

You probably have numpy installed only for your python3.5.

Instead of installing numpy through the Ubuntu repositories, you could try installing and using pip.
This is python's package manager. You can use it to install various python libraries like numpy.
Then use it to install numpy for your python3.6.

Installing  pip:

Install pip with the following command:

apt install python-pip

Note: You may receive a Permission denied error. In this case just prefix your command with sudo e.g.:

sudo apt install python-pip

Then type in your terminal pip3.6 to check if you have it installed correctly. It should list you all its available parameters.

There are generally two options from here.

Option 1 - install numpy globally

Install numpy specifically for python3.6:

pip3.6 install numpy

Note: Again, if you receive a permission error, prefix your command with sudo:

sudo pip3.6 install numpy

The output:

Collecting numpy
  Downloading https://files.pythonhosted.org/packages/71/90/ca61e203e0080a8cef7ac21eca199829fa8d997f7c4da3e985b49d0a107d/numpy-1.14.3-cp36-cp36m-manylinux1_x86_64.whl (12.2MB)
    100% |################################| 12.2MB 1.9MB/s
Installing collected packages: numpy
Successfully installed numpy-1.14.3

Note: The drawback of this method is that you have numpy installed globally, which may result in undesirable effects at some point in the future, like troubles with different versions.

Option 2 - use a virtual environment:

This method allows you to create an isolated Python environment, a sandbox if you will, where you can install python packages, without worrying so much about dependencies, versions and permissions.

First, you need to install the module, required to create virtual environments:

sudo pip3.6 install virtualenv

Again, check if the installation is successful:

virtualenv --version

Should print the version without any error messages.

Now create a virtual environment for python3.6 (FYI - there are multiple ways to achieve that):

virtualenv /directory/to/place/the/virtual/environment

e.g.

virtualenv ~/Documents/numpy

Navigate to that directory. There should be several directories inside it. We're looking for the bin directory.
Now you need to activate that virtual environment:

source bin/activate

The name of the virtual environment should appear on the left side of your terminal e.g.:

(numpy) user@hostname:numpy$

It indicates that the virtual environment is currently active.

Ok, now you need install numpy:

pip3.6 install numpy

Output:

Collecting numpy
  Using cached https://files.pythonhosted.org/packages/71/90/ca61e203e0080a8cef7ac21eca199829fa8d997f7c4da3e985b49d0a107d/numpy-1.14.3-cp36-cp36m-manylinux1_x86_64.whl
Installing collected packages: numpy
Successfully installed numpy-1.14.3

Now start your Python shell and try to import it:

>>> import numpy
>>>

There should be no errors.
You can now continue with your work.

When you're done you can deactivate the virtual environment. Just type:

deactivate

The indicator on the left side should be gone.

If something goes wrong with your virtual environment, just delete the directory that contains it and start over.

Note: The drawback of using virtual environments is that you always need to activate and deactivate them, but it drastically reduces the change of messing up your globally installed libraries and settings.


I reset the system and login graphically. I don't know why but it resolved the problem. I did not edit the resolve.conf anymore.


Share directory over internet with Windows 10 computers

Yes, you can!

samba is the package which enables this. See https://www.samba.org/ then read the documentation at https://www.samba.org/samba/docs/ .

Please note that there are significant security implications to running this server, and the smb.conf(5) manual page should be regarded as mandatory reading before proceeding with installation.

You will also need to determine if you must have a static IP address to enable access from outside your local network, or how to connect without one if not. Since your questions should be reasonably scoped, that question is outside the scope of this question, and must be resolved separately.

Determine if you need your Ubuntu machine which will be the samba server to also be a Domain Controller, then install with

Not a Domain Controller

sudo apt-get install acl attr samba samba-dsdb-modules samba-vfs-modules winbind krb5-config krb5-user

Also a Domain Controller

sudo apt-get install acl attr samba samba-dsdb-modules samba-vfs-modules winbind libpam-winbind libnss-winbind libpam-krb5 krb5-config krb5-user dnsutils


Find out which program has the port open with

sudo lsof -i tcp:8000

Foe example, since I know I'm running sshd, I'll check for port tcp:22 here:

$ sudo lsof -i tcp:22
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
sshd    1617 root    3u  IPv4  14360      0t0  TCP *:ssh (LISTEN)
sshd    1617 root    4u  IPv6  14362      0t0  TCP *:ssh (LISTEN)

Of course, read man lsof BEFORE you execute the command. After all, I could be wrong or misleading.

Then, you can use ps to investigate the process with that PID, or inspect the /proc/PID/ directory. The possibilities expand from here.


How to re-install default softwares and packages in Ubuntu-16.04?

Just use the ubuntu-desktop metapackage to pull in all the default softwares for Ubuntu.

sudo apt install ubuntu-desktop

If it's already installed, remove it first then execute the command again. To remove

sudo apt remove ubuntu-desktop


what is the right way to shutdown ubuntu using the command line?

The right way to shutdown Ubuntu using the CLI(Command Line Interface) is sudo shutdown now.


It's a really straightforward process. First you install one of the distros, say Fedora. Then you install Ubuntu. Pay attention to the installation instructions, which will ask you if you want to wipe your hard drive or if you want to install the new operating system alongside the other one that's already installed (i.e., if you want to dual-boot).

In order to install Linux, make sure you have an installation media (CD, DVD or USB pendrive) and boot you system with this media inserted. You might have to configure your BIOS to boot from the disk or USB drive in order to trigger the installation procedure.


Sound stopped working after upgrading from 14.04 to 16.04

Accepted answer to the cross-posted question on Unix.SE:

sudo add-apt-repository ppa:ubuntu-audio-dev/alsa-daily
sudo apt update

  After updating alsa drivers, they will be reconfigured. I had the same problem, this solved it.

sudo aptitude --purge reinstall linux-sound-base alsa-base alsa-utils linux-image-`uname -r` linux-ubuntu-modules-`uname -r` libasound2

  This will restore and reconfigure all sound drivers in ubuntu 16.04 to their default state. You may look whether proprietary drivers are enabled then.

  As you said, you can try sudo apt install --reinstall pulseaudio pulseaudio-module-x11 and logout. If I can start with "it makes the initialization sound" again, it sounds definitely like user-related error. Consider making another user account to test whether the problem persists...

  Another thing is, that your pulseaudio daemon may not start upon login.Check System > Administration > BootUp Manager to make sure the service is activated.The /etc/int.d/pulseaudio shell script should start the daemon, too.


What is the mechanism behind the Ubuntu GUI shutdown option?

Things like this are controlled by Polkit (its official name, but still often referred to by its former name PolicyKit).

This tool facilitates non-root users being able to perform certain actions to the system that would otherwise require root, and shutting down is one of the actions it is usually configured to grant to regular users.  How it works is the user software calls a particular Polkit API asking to shutdown and Polkit will check if that user has the authority to take that action, and if so facilitate it.  Polkit is also able to ask for authentication via an authentication agent if the user doesn't have the authority to take that action.

More information about the architecture of Polkit here:

http://manpages.ubuntu.com/manpages/precise/man8/polkit.8.html


Ubuntu detects a crash for a program I never run

When atop is installed, it also installs a system service that keeps running it in the background. The service is started every time the computer is started.

In addition, packages can have (and often have) scripts that are automatically run before installation, after installation, before removal, and after removal.

In the case of atop, there is a post-install script (/var/lib/dpkg/info/atop.postinst) that runs invoke-rc.d atop start. This is pretty typical on Debian-based systems: when you install a service, it gets automatically started.

So, what is does this atop service do? Reading /etc/init.d/atop, it ends up running the following (where $CURDAY stands for the current day, for example 20161220 at the time of writing):

/usr/bin/atop -a -w /var/log/atop/atop_$CURDAY 600

According to the man page, this keeps one atop command running all the time, writing raw data under /var/log/atop every 10 minutes (600 seconds), forever (until the machine is shut down). This allows the user to examine past usage of the system, not just current usage. Have a look at the RAW DATA STORAGE section of the man page.

Now, since atop apparently crashes on your machine, you get one crash when the package is installed (and the service is started) and one crash each time the computer is started (because this starts the service). There is also a cron job that restarts the service at midnight (so that a new log file is used every day), so you will get one more crash at midnight.

If you only care about running atop from the command line, and do not care about the service, you can disable it by running sudo update-rc.d atop disable.


Adjust ScreenBlank timeout on Firefox kiosk

Finally found a solution. The /etc/X11/xorg.conf is the right way to do it.

This is the xorg.conf that is working:

Section "ServerLayout"
    Identifier  "ServerLayout0"
    Option  "DPMS"      "false"
    Option  "BlankTime" "60"
    Option  "StandbyTime"   "0"
    Option  "SuspendTime"   "0"
    Option  "OffTime"   "0"
EndSection

Section "ServerFlags"
    Option  "BlankTime" "60"
    Option  "StandbyTime"   "0"
    Option  "SuspendTime"   "0"
    Option  "OffTime"   "0"
EndSection

It's not nessesary to have Blanktime in ServerFlags AND ServerLayout section, but I havn't had time to test which one is best.


How do I find out the driver for my Wireless Mouse connected via USB

This was the solution to my problem ^ (setting the touch-pad off), it was interacting after all. XD


How can I overclock a graphics card from within Ubuntu?

You almost had it. Coolbits is the way. Here's my device in /etc/X11/xorg.conf:

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 260"
    Option         "Coolbits" "1"
    Option         "NoLogo" "True"
EndSection

And then (after restarting X - control+alt+f1, sudo restart gdm), load up nvidia-settings and there's a Clock Frequencies page:


Nouveau doesn't recognize my chipset (136000a1)

Finally found a workaround.

I had to install the Ubuntu 16.04 Server image (which can be installed through TTY, no desktop needed),

disable Nouveau through the known methods,
download and install Nvidia-375 through the graphics-drivers PPA,
make sure Nouveau is permanently disabled,
then install lightdm and ubuntu-desktop.

It's a pretty typical Ubuntu setup now.


How does a samba/cifs recycle bin work within PCmanFM?

At first I thought this is a permission problem. But then I realised that I had to tic Delete files from removable disks instead of moving them to trash in the settings of PCmanFM.

This way the files can be deleted and then are moved to the recycle bin of the samba server.


how to install pantheon-files on ubuntu 18.04.3

At first you need to enable universe repository with

sudo add-apt-repository universe

and then you can manually download and install newer version of the library with

cd ~/Downloads
wget http://mirrors.kernel.org/ubuntu/pool/universe/libc/libcloudproviders/libcloudproviders0_0.3.0-1_amd64.deb
sudo apt install ./libcloudproviders0_0.3.0-1_amd64.deb

and then install pantheon-files with

sudo apt-get install pantheon-files


How to find an ip of connected vnc client from vncserver log?

You can use the netstat command to see what open network connections there are.

sudo netstat -a | grep *vnc port number*


I have fixed this problem! I just had to remove the npm_cache dir.

$ sudo rm -r ~/.cordova/lib/npm_cache


The program that caches your ssh keys is the ssh-agent program, if you look at the man page you can see this relivent option:

-t life  Set a default value for the maximum lifetime of identities added
         to the agent.  The lifetime may be specified in seconds or in a
         time format specified in sshd_config(5).  A lifetime specified
         for an identity with ssh-add(1) overrides this value.  Without
         this option the default maximum lifetime is forever.

You can edit the ssh-agent program in your startup programs. Go to System > Preferences > Startup Programs, look for the SSH Key Agent and append -t 3600 to the comman. This will expire your keys in one hour.

You will need to restart your session (log out and back in) for it to take effect. You can also do a similar thing for your gpg key which also can be set in an agent program which can be launched the same way (but isn't installed by default) just in case you get sick of typing in your gpg pass-phrase for package building or emailing.


Things have changed so it is possible now.
Right click on Notification area or right click on panel>>panel preferences>>items>>double click on Notification area and there you will find settings for icon size of applications in panel.


How can I get the browser to render font exactly like Windows 7?

Pixel by pixel exact same rendering? Nope, not possible. And if it were, it would likely be in violation of patents regarding e.g. Microsoft ClearType, the "new" (since XP or something) font rendering techniques especially tailored for LCDs.

You can, however, get as close as possible by:

using the exact same browser version and settings on both systems;
installing your Windows fonts on your Linux system; and
playing around with the level of anti-aliasing etc. offered to you by either GUI tools or by manually editing your fonts.conf file.

Or if you are truly repulsed by the font rendering in mainly the browser, see if the Windows version gives you good results when you run it using Wine.


Atom window doesn't show up on Ubuntu 14.04

Sometimes I have the same problem. It simply dissapear.

When I make ALT + TAB not appears Atom in the list of programs but appears another, google-chrome by example. And chosing this Atom retourning to live.

I not understand this stranger, but worked for me.

Bye!


Python 3.4 and virtual environment's pip

No repro.

$ python3 -m venv MyVenv
$ source MyVenv/bin/activate

(MyVenv) $ which pip
/home/oli/Desktop/MyVenv/bin/pip

(MyVenv) $ which pip3
/home/oli/Desktop/MyVenv/bin/pip3

I'd try again (honestly, those were the commands I used) but failing that, with most virtualenv-related things, if you call the binary directly, it'll use the right environment even without activating it.

In my case that looks like:

/home/oli/Desktop/MyVenv/bin/pip3 install Django

There is also a bug in ensurepip in Python 3 on 14.04 (and maybe newer versions) in that it's completely missing. You can manually install it. If you're hitting this, it might explain what you're seeing.

wget -qO- http://d.pr/f/YqS5+ \
| sudo tar xzf - -C $(python3 -c "import sys; print(sys.path[1])") --no-same-owner

Then recreate and reactivate your venv.


Ubuntu Night Light sunset time incorrect

To compute sunrise and sunset times, your system needs to know your location. Enable location services in privacy settings. When the times are correct you can disable location services.


Understanding of repositories, general question

By default, apt always uses the newest version of a package.

When you run apt-get update, all available repositories are queried for a list of which packages they contain, and this list is downloaded. Then, when you run apt-get install somepackage, apt looks at the list(s) of all available packages, from all repositories, and chooses the newest available version.

When you install something with apt-get install, it will tell you exactly what version it's installing.


There is a timeout limit for security reasons.  If you were working and took a break anyone coming to the terminal would have full access to the system if it didn't time out.  The timeout is 15 minutes by default.

You can change the default time by editing changing the configuration with sudo visudo and adding a Defaults timestamp_timeout=# setting.  The # is minutes.  -1 would mean no timeout.

More details at: RootSudo Timeout


I had the same problem with an HP laptop, I was able to connect via network cable and download the solution following the instructions on this page, works great now! Hope this helps!
12.04 (Precise Pangolin) - 14.04 (Trusty Tahr)

Open a Terminal and if you haven't already done so, update your package list:

sudo apt-get update

If you have a b43 card use the command

sudo apt-get install firmware-b43-installer

or, if you need the b43legacy driver, use:

sudo apt-get install firmware-b43legacy-installer

or, (12.04 - 12.10) if you need a LP-PHY version (e.g BCM4312), use:

sudo apt-get install firmware-b43-lpphy-installer

Restart the computer


You cannot install Ubuntu onto an NTFS partition, as NTFS does not support permissions.

But if you are just storing data, NTFS is fine and both Ubuntu and Windows can read/write from/to it.

Just in case you want something that is supported by all three platforms, check out the UDF filesystem.

EDIT: As mentioned by user Fabby, this answer details how you can actually achieve running Ubuntu and Windows on the same NTFS partition. I absolutely would not recommend it though, unless you really know what you are doing.


Ubuntu install menu just keeps rebooting when I select install - Trying to dual boot Vista and Ubuntu 14.04 with USB

I don't know how reliable PendriveLinux is, but I've made the best experience with UNetBootin. Try creating the bootstick with it, and retry booting from it.

PS: The option "Replace Windows by Ubuntu" does nothing else than to wipe the entire hard drive and install Ubuntu on it.


How can I make KDE faster in Ubuntu 12.04. It's very slow

Install kubuntu-low-fat-settings and it will make a big difference. You will loose desktop effects and other non-essential services will be disabled, this is a fair trade-off for less powerful computers.


headphones don't work on ubuntu 16.04 dell xps 15 9550

Not a real fix, but a workaround.

Log in
Go to power icon in upper right, do 'suspend'
After machine suspends, press the laptop power button
Log in again
Plug in headphones. (When prompted on what kind of device, I just pressed 'cancel')

Headphones should work now. Not pretty, but at least I can use headphones. I am able to unplug and plug the headphones in and it still works. But after a reboot, you have  to do these steps again.


Is there a music library player / manager that allows searching for strings in the whole path of music files, not just filenames or ID3 tags?

I just found out that Quodlibet allows to search within paths, even though it's a bit convoluted. You have to use ~dirname=Girlfriend's in the search field in the case of the example that I gave to find all the music files within that folder and subfolders. It works, but having it active in the default search mode would be better.

EDIT: OK, I'm an idiot. Quodlibet actually does search within whole paths in the default search. It's the only player that I found which does it. My quest is over.


This has been already answered at Stack Overflow.

So basically try to reinstall your pecl extension following this guide.


Windows 10 location is unavailable error for files created using ubuntu

What part of the path is there? Did you check? Maybe the colon? See this


How to remotely use Ubuntu software center

You can use team viewer

For the 32-bit package:

$ wget http://download.teamviewer.com/download/teamviewer_linux.deb
$ sudo dpkg -i teamviewer_linux.deb

For the 64-bit package:

$ wget http://download.teamviewer.com/download/teamviewer_linux_x64.deb
$ sudo dpkg -i teamviewer_linux_x64.deb

& Install it on the other pc that you are wanting to control with
connect by the id & password


'cadence' has no installation candidate in Ubuntu Mate 20.04

This happened because of the fact that Ubuntu 20.04 LTS is too fresh.

But as temporary solution you use a trick to install packages from 18.04 LTS on 20.04 LTS:

sudo add-apt-repository ppa:kxstudio-debian/apps
sudo sed -i "s/focal/bionic/" /etc/apt/sources.list.d/kxstudio-debian-ubuntu-apps-focal.list

sudo apt-get update
sudo apt-get install cadence

I e-mailed to the KXStudio team to ask packaging for Ubuntu 20.04 LTS.


Convert .pptx or .ppt files to mp4 on Ubuntu

I use a workaround with the screen recording application - SimpleScreenRecorder

start your presentation in the full screen mode
start recording
stop recording when it's done

It will allow you to record the presentation with animation/video in a mp4-file. But unfortunately I didn't manage to record the sound.


Is it possible to alter and update the status icon of a running indicator applet?

This is indeed not the intended behaviour of Application Indicators: they're meant to have one or two icons and not something that you could almost put in a widget.

There seems to be something wrong in the caching of the icon, as it should update a changed icon, though.

Anyway, you probably want to use something like 'libindicator' to create your own, custom indicator. The collection of application indicators on your panel is drawn by one indicator. You have a lot more functions at your disposal when writing a custom indicator, than when using the limited API of Application Indicators, which was limited deliberately to make sure we don't get a mess.

Also make sure to look at the package 'libindicator-tools', which contains some handy utilities for testing indicators.


I've been looking at the packages you say.

zfs-dkms (0.6.5.6-0ubuntu27)
zfsutils-linux (0.6.5.6-0ubuntu27)

These are the ones that are available for your version.

If you install them from a PPA, it is not a good idea for a server in production.

And it is advisable to have both packages paired with the same version.

I would use the version from the Ubuntu repositories, unless you need and consider that version 0.7.3 is the right one for your server


Download everything from a YouTube video using youtube-dl

The relevant options you need:
# Filesystem
--write-annotations
--write-description
--write-info-json

# Thumbnail images
--write-all-thumbnails

# Video format
--format bestvideo+bestaudio/best
--merge-output-format mkv

# Subtitle
--all-subs
--write-auto-sub
--write-sub

# Post-processing
--add-metadata
--embed-subs

Copy that to your config file (either /etc/youtube-dl.conf or ~/.config/youtube-dl/config).
Using that configuration, I downloaded this video and youtube-dl wrote the following files:
$ ls
The Problem with Time & Timezones - Computerphile.annotations.xml
The Problem with Time & Timezones - Computerphile.description
The Problem with Time & Timezones - Computerphile.info.json
The Problem with Time & Timezones - Computerphile.jpg
The Problem with Time & Timezones - Computerphile.mkv

I can't post mediainfo's output here because it exceeds the characters limit, but you can see it in github.

I also want to download the video/audio in the highest quality possible, with no quality loss.

youtube-dl downloads videos at the highest quality possible by default, but you can force this behavior using --format bestvideo+bestaudio/best.

Even though it's not YouTube, I did also want to download some of my udemy courses I've bought so I can watch them while I'm on a long road trip.

Please read the article Can I Download a Course to my Computer?:

By default, complete courses are not downloadable from a computer. We do this out of concerns for piracy.
Please note that you can always save courses for offline viewing on the Udemy mobile app. For information on how to download video lectures to your iOS mobile device, please click here. For steps on how to download videos for offline viewing on an Android device, click here.

I have ffmpeg installed, and I heard that you need this for lossless downloads from YouTube, but I'm not sure how to link it with youtube-dl.

youtube-dl uses avconv by default, but --prefer-ffmpeg let you use ffmpeg instead. Anyway, this option is not needed for "lossless downloads". In the example I provided, youtube-dl only used ffmpeg to merge all the downloaded formats into a single mkv file.


After Installing 14.04 LTS on blank hard drive successfuly, it won't boot at all

This is my first attempt at answering anything on here, so take this with a grain of salt. Let me ask this first and I or someone more knowledgeable can go from there. Have you gone into your motherboard BIOS and configured the boot order of drives so that the one you want to boot from is first in line or first after your CD/DVD drive? Try that and see what happens.


A definitive solution would be to edit Chrome's desktop entry file so that every time you launch Chrome using the applications menu, it will run in dark mode.
A desktop entry file describes how a particular program is to be launched, and they have the .desktop extension. These files are located in ~/.local/share/applications for your user or in /usr/share/applications for all users. We need to modify the Exec key to change the command that runs the program.
So, open /usr/share/applications/google-chrome.desktop and where you find something like:
Exec=/usr/bin/google-chrome-stable %U

change it to
Exec=/usr/bin/google-chrome-stable --enable-features=WebUIDarkMode --force-dark-mode %U

Here is a command that can do it automatically for you:
sudo sed -i 's;/usr/bin/google-chrome-stable;/usr/bin/google-chrome-stable --enable-features=WebUIDarkMode --force-dark-mode;g' /usr/share/applications/google-chrome.desktop

The desktop file is recreated when the app updates, so you will need to modify this file again every time this happens.
See the Desktop Entry Specification for more details.


Laptop backlight sets to maximum at startup (Xubuntu 15.04)

I finally managed to solve it. I edited the file /etc/rc.local and added this line:

echo 7 | tee /sys/class/backlight/radeon_bl0/brightness

before the exit 0 instruction, and worked like a charm!


How do I run Microsoft Explorer 8 plus on Ubuntu?

Microsoft actually provides VM images of their software free for developers.

http://www.modern.ie/en-us/virtualization-tools


How to test individual RAM modules with memtest86?

Afaik Memtest86 has no feature to restrict the test to a particular memory module. You need to remove all other modules to test a single specific module.


After installing macbuntu theme, VMware menus disappear

After reinstall appmenu-gtk, and appmenu-qt and make a reboot, the mouse and keyboard were no more reponsive. I re-installed Ubuntu, and still had some trouble with macbuntu after formating, but now the system is ok (without macbuntu).

Looks like macbuntu is not much stable.


0. Introduction and Background
This answer is based on an extensive research done by various Ubuntu users that worked together in almost all issues related to Broadcom. Special thanks to chili555 who helped in the Ubuntu forums and on this site with many questions related to Wireless devices and to others who have contributed through E-Mail, chats, IRC and more in testing various drivers with several of the most popular Broadcom Wireless cards (Huge Thanks to Chili555 really. This guy knows his stuff).
In total we wanted to offer an answer that could be easy to follow and covered most Broadcom Cards / Drivers. After you follow this guide, you will NEED to test your wireless connection for at least 2 hours (I actually recommend 8 hours) with another device in either Ad-Hoc Mode, Infrastructure Mode or Both. Common problems that will be solved (Apart from drivers not installing) are:

Connections timeout after several minutes or hours
Stops searching for other devices (Does not see any other device)
Keeps asking for password even on cases where AP does not have any
Stops any receiving/transmitting traffic (Needs reboot to temporarily fix)
Crashes system with dmesg errors in log (Link 1 Below)
System freezes completely (You can only press Reboot/Power button) (Link 1 Below)
Creates huge log reports trying to correctly configure or connect
Fails when installed via Additional Drivers / Additional Hardware (Link 3 Below)
Connects and disconnects continuously every X amount of seconds
Appears connected on Network Manager but does not receive Internet
Tries to connect many times without correctly finishing connection
Takes too long to connect
After upgrading from a previous version (eg: 12.04 to 12.10) it stops working
Wireless card does not turn on, enable or disable (Link 2 Below)
Wireless card blocked by hardware
More problems found in Launchpad, Ubuntu Forum and Askubuntu

Link 1 -  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1060268
Link 2 - https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/732677
Link 3 - Gives an error similar to "Sorry, installation of this driver failed."
So with that in mind, the following is what we have right now which is simplified in just 3 steps:
1. Knowing what Broadcom Wireless Card you have
There are dozens of Broadcom wireless cards and more seem to appear every day. The key to finding the correct driver for any network card is what is known as the PCI ID (PCI.ID). To find out which PCI.ID you have, we proceed to opening the terminal by pressing CTRL+ALT+T (It should open a window with a blank background) and inside this terminal we run the following command:
lspci -nn -d 14e4:

You will get something like the following if you have a Broadcom Wireless Adapter (The ID 14e4 used in the example above in most cases is a Broadcom Wireless Card):
Broadcom Corporation BCM4306 802.11bgn Wireless Network Adapter [14e4:4320] (rev 03)

The PCI.ID in this example is 14e4:4320 as seen inside the Brackets [...]. In some cases you will also need the revision version (if it appears) for some special cases. In this case, the revision version is rev 03 as shown inside the Parentheses (...) at the end. So what you will need after this search is:
[14e4:4320] (rev 03)

With this new information you can look in the table below and select the appropriate method to install your driver. For example, In this case, since you have the 14e4:4320 rev 03, if we go down the list to the one that shows the exact same PCI.ID you will see that in the columns for Ubuntu 18.04 or 20.04 it shows the firmware-b43-installer package driver. This means that you will only have to install this particular package since it appears in all Ubuntu version columns.
NOTE - Before proceeding, if you have previously installed any drivers, have blacklisted or uncommented any driver files or configuration files or have done any changes whatsoever to the system to make the drivers work in previous attempts, you will need to undo them in order to follow this guide. We assume you are doing this from scratch and have not changed any configuration files, modules or drivers in the system in any way (apart from updating the system). This includes any installations using apt-get, aptitude, synaptic, dpkg, software center or manual compilation and installation of the packages. The system has to start from scratch in order for this to work and to avoid any conflicts that may appear if earlier work was done.
For example, if you have previously installed the bcmwl-kernel-source package, you will need to remove it by using the purge method:
sudo apt-get purge bcmwl-kernel-source

2. Preparing the System
If you have just installed Ubuntu, you will need to build an index of available packages before we can install your driver if you have not done so already:
sudo apt update

I would even go so further as to update the Ubuntu list of PCI.IDs:
sudo update-pciids

Just in case the ID of a particular new Broadcom Device you are using has just appeared.
Now using the PCI.ID you found in the steps above, we then search in the list below to find the matching PCI.ID and the method to install the driver associated with it in a simple and correct way. The terminal will be used to avoid any GUI related issues. This applies with all cases, except as noted. The installation procedure is done only via terminal and also while connected to the internet with a temporary wired ethernet connection or USB modem or any means possible that can give your PC, for the time, Internet access. After you find in the list below the correct package we then proceed with the installation.
3. Installing the Package (online)
Assuming you used the PCI.ID 14e4:4320 rev 03 as found in your search above, and then looked at the table below and found that the correct package to install is the firmware-b43-installer (Specific to Broadcom) and the linux-firmware (Carries over Broadcom related drivers along with other types of drivers), we then proceed to simply install this package in the terminal:
sudo apt install firmware-b43-installer

sudo apt install linux-firmware

and then reboot
sudo reboot

The format to install is pretty simple, it's just:
sudo apt install <PACKAGE_NAME>

In the example above, the PACKAGE_NAME is firmware-b43-installer.
BROADCOM WIRELESS TABLE (Updated Oct 29, 2020)
PCI.ID              18.04 LTS                        20.04+
------------------------------------------------------------------------------------
14e4:0576           Special Case #1                   UNKNOWN
14e4:165f           UNKNOWN                           UNKNOWN
14e4:1713           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4301           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4306           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4306 rev 02    firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4306 rev 03    firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4307           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4311           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4311 rev 01    firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4312           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4313           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4315           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4315 rev 01    firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4318           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4318 rev 02    firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4319           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4320 rev 02    firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4320 rev 03    firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4321           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4324           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4325           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4328           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4328 rev 03    bcmwl-kernel-source               bcmwl-kernel-source
14e4:4329           bcmwl-kernel-source               bcmwl-kernel-source
14e4:432a           bcmwl-kernel-source               bcmwl-kernel-source
14e4:432b           bcmwl-kernel-source               bcmwl-kernel-source
14e4:432c           bcmwl-kernel-source               bcmwl-kernel-source
14e4:432d           bcmwl-kernel-source               bcmwl-kernel-source
14e4:4331           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4335           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4350           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4353           Special Case #1                   UNKNOWN
14e4:4353 rev 01    Special Case #1                   UNKNOWN
14e4:4357           Special Case #1                   UNKNOWN
14e4:4358           bcmwl-kernel-source               bcmwl-kernel-source
14e4:4359           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4360           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4365           firmware-b43-installer            firmware-b43-installer / linux-firmware
14e4:4365 rev 01    bcmwl-kernel-source               bcmwl-kernel-source
14e4:43a0           bcmwl-kernel-source               bcmwl-kernel-source
14e4:43a3           UNKNOWN                           firmware-b43-installer / linux-firmware
14e4:43ae rev 02    UNKNOWN                           UNKNOWN
14e4:43ba rev 01    UNKNOWN                           firmware-b43-installer / linux-firmware
14e4:43b1           bcmwl-kernel-source               bcmwl-kernel-source
14e4:43b1 rev 03    bcmwl-kernel-source               bcmwl-kernel-source
14e4:43c3 rev 04    UNKNOWN                           firmware-b43-installer / linux-firmware / Special Case #2
14e4:4727           bcmwl-kernel-source               bcmwl-kernel-source
14e4:4727 rev 01    Special Case #1                   Special Case #1
14e4:a962           firmware-b43-installer            firmware-b43-installer / linux-firmware
------------------------------------------------------------------------------------

For All cases, always install the linux-firmware package. This will always be up-to-date with the latest Broadcom drivers along with other binary files that could be needed depending on the driver PCIID.
Special Case #1 - Uses bcma and brcmsmac driver combination. Required firmware is installed by default in the package linux-firmware.
Special Case #2 - For the ASUS PCE-AC88 AC3100 the steps are:

Download This file and after extracting it, put it in /lib/firmware/brcm
sudo cp brcmfmac4366c-pcie.bin /lib/firmware/brcm/brcmfmac4366c-pcie.bin
Then sudo nano /etc/rc.local add modprobe brcmfmac and save
sudo reboot

In hardware like the Lenovo S10-2, if your wireless card gets stuck trying to connect to an SSID (keeps trying to connect), then the alternative to get it working would be to install the bcmwl-kernel-source package (Remove any other installed packages related to it). Read the Debugging section below for more information regarding this wireless device.
IMPORTANT NOTE - After September 2014, if you follow this answer and still you have problems installing the correct driver, please try the firmware-b43-installer package and the linux-firmware package and notify us via comments. There were some changes and some drivers will only work with this package. Remember to have a clean system before installing it:
sudo apt install firmware-b43-installer

sudo apt install linux-firmware

In some particular cases, after installing the firmware-b43-installer you need to remove the b43 module, enable it again and even proceed to unblock with rfkill:
 sudo modprobe -r b43
 sudo modprobe b43
 sudo rfkill unblock all

If you have a Broadcom card that has a different pci.id, please ask a new question. Once solved, the solution will be added to this howto.
4. Installing the Package (offline)
4.1 Installing firmware-b43-installer
To install firmware-b43-installer offline see this answer.
4.2 Installing bcmwl-kernel-source
For cases where you need to install bcmwl-kernel-source but you are offline, here is an excellent answer about it.
But basically follow this steps:

Search for the package in the Ubuntu Package Repositories
Make sure you select the correct architecture (32-Bit, 64-Bit, etc..)
Download package and dependency packages related to it on the same folder.
When you have all packages needed (and their dependencies), proceed on going to the folder that has all packages and run sudo dpkg -i *.deb. This will install all packages in that folder. If it gives any errors, read the error and follow the steps it mentions.

To give an example, after going to point 1 mentioned above, If you had the
Broadcom 14e4:43a0, you would search for the bcmwl-kernel-source package and after selecting the corresponding Ubuntu version (In my case 16.04 or Xenial) I would land on the following page:
http://packages.ubuntu.com/xenial/bcmwl-kernel-source
On this page I would select the corresponding architecture (32 or 64) but would also need to download the 3 package dependencies mentioned on that page as seen in the following image:

After downloading all packages and dependencies, you can proceed on copying all packages to a single folder and running the dpkg command as mentioned on step 4 above.
NOTE
In some computers, before performing the commands, you will need to deactivate the Secure Boot Options in your BIOS. This applies for cases, for example, where the bcmwl-kernel-source is already installed but the driver does not yet work. You can do a reinstall like so, or disable Secure Boot by going to your BIOS Setup:
sudo apt-get install --reinstall bcmwl-kernel-source

DEBUGGING
The following information is additional material to read about solving various issues related to Wireless Management and conflicts with other Network devices. Know that it some cases you need to have an updated Kernel version, since each new version of the Kernel introduces either new Network drivers, improvements over existing drivers or solves bugs regarding them.
Before reading the points mentioned below, be sure to have all repositories enabled on your Ubuntu system. To check, run on the terminal software-properties-gtk and make sure all options on the Ubuntu Software Tab are enabled.

Make sure the Wireless card is not hardware disabled. For example on some laptops you need to press Fn + F2

To configure your wireless devices through the terminal I recommend How to connect and disconnect to a network manually in terminal?

If your connection drops every so often some users have suggested to set IPv6 to Ignore. Just go to Network Manager (The network icon on the top panel). Click on it then select Edit Settings. Then go to the Wireless connection you are using, select it. Now go to the last Tab in there that mentions IPv6 Settings. In the Method field select Ignore.

If your laptop does not detect your wireless card some users have mentioned that using rfkill unblock all will solve the problem. Others simply turned the WiFi switch on their laptops off and then on again (Physical switch available on this laptops). For more information about rfkill please read rf kill unblock all DOES NOT WORK!

If you are getting b43-phy0 ERROR: Fatal DMA error /  b43-phy0 warning: Forced PIO do the following:
  sudo rmmod b43
  sudo modprobe b43 pio=0 qos=0

If it works then add it to you RC files so it is executed every time you boot. You can change PIO to 1 if you need to it.

If you are having a Required key not available when installing a DKMS module (Like Nvidia, Broadcom or others) you can go to Pilot's Answer Here

If your wireless card see/not see the router and gets stuck in an endless "Trying to connect (Try 1/3)" loop the solution might be proper configuration of your router or wireless SSID device.

For all Wireless cards in general, it is very important to also take into consideration the network devices you are using (Routers, Switches, Wireless Channels and Wireless Bands, etc..). With this information you will be able to evaluate better what the source of the problem could be when you arrive at a dead end. An example would be the Lenovo S10-2 which uses the 14e4:4315 rev 01 PCIID. Even after installing the correct driver the user would end up in a "trying to connect" loop. It would see the wireless SSID but when trying to connect to it, it would enter an reconnecting loop.
The solution was that this particular wireless device did not support 40 Mhz channels nor does it support 802.11N. The router in that case was actually broadcasting with a forced 40 Mhz and on WiFi-N only. When the router was set to Auto mode and 20/40 Mhz Channel, the wireless card worked correctly. This is a case scenario that also repeats in other cases, so a proper evaluation of the network equipment would help a lot.
For cases where you get repeated:
ERROR @wl_cfg80211_get_station : Wrong Mac address...
when doing a dmesg and your wireless connection drops often (Several times an hour or a day), the issue here might be that you are inside a wireless signal that is used as a Wireless Bridge (2 Routers sharing the same SSID and connection). This can happen with modern Routers that have the ability to extend the wireless connection by offering the same SSID. your wireless connection might drop because you might be between both routers and the signal strength between both is almost the same.
If your connection drops very often, it means you are almost in the middle of both router devices. To lower or eliminate the dropping rate of your wireless device, try to position yourself where your wireless card can see only one router or at least one of the routers has a higher signal strength than the other one.
There are also some techniques to force the wireless device to only connect to a specific router by setting the BSSID to the MAC Address of the router you wish to connect to. This will force your wireless device to ONLY connect to it.

Secure Boot Issues
On some specific scenarios, installing the drivers, be it in offline mode through various DEB packages or through apt-get with internet access, will not work if Secure Boot is not disabled.
This is because the access needed is denied by Secure Boot so the drivers will look like they are installed correctly when in fact the did not. So for VERY specific cases, you will need to temporarily disable Secure Boot in order for the drivers to work.
Linux Firmware Update
On other cases looking for and installing the latest Linux Firmware would solve the issue. Either solving minor problems that were happening with a working card or making the card work for the first time.


Cannot install WGET in Ubuntu 12.04.1 lts

wget is already installed.

wget is a command-line tool. You have to run it with an URL.

To get detailed instruction how to use wget you can run

man wget

Example:

wget http://mirrors.kernel.org/ubuntu/pool/main/d/dkms/dkms_2.2.0.3-1.1ubuntu5.14.04.5_all.deb


All drivers disabled after reinstallation

Press Ctrl+Alt+T to open Terminal.

Run lsmod to check your drivers one by one.

My other recommendation is to re-install your Ubuntu system. (Or if your network works fine via Ethernet, then you can try to upgrade to newer kernel versions, either now or after reinstalling.)


How to install software or upgrade from an old unsupported release?

The repositories for older releases that are not supported (like 11.04, 11.10 and 13.04) get moved to an archive server. There are repositories available at http://old-releases.ubuntu.com.
The reason for this is that it is now out of support and no longer receiving updates and security patches.
I would urge you to consider a supported distribution. If your computer is too old in terms of memory or processor then you should consider a distribution such as Lubuntu or Xubuntu.
If you want to continue using an outdated release then edit /etc/apt/sources.list and change archive.ubuntu.com and security.ubuntu.com to old-releases.ubuntu.com.
You can do this with sed:
sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

then update with:
sudo apt-get update && sudo apt-get dist-upgrade

Sometimes, it might be faster to create backups of your system and reinstall using supported release instead.
Source: Can I keep using Ubuntu 9.04 if it's outdated?

To upgrade to a new release:
Once you have performed the above steps to switch to the old-releases mirrors, update the Update Manager and then do do-release-upgrade:
sudo apt-get update
sudo apt-get install ubuntu-release-upgrader-core
sudo do-release-upgrade

See also EOLUpgrades - Community Help Wiki.


can someone help me with netplan removal from a 18.04 LTS Desktop

If you wish to return to using NetworkManager, setup your /etc/netplan/*.yaml file like this...

network:
  version: 2
  renderer: NetworkManager

sudo netplan --debug generate

sudo netplan apply

reboot

Update #1:

Your /etc/network/interfaces file should look like this...

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

And then use the NetworkManager GUI to configure your ethernet connection.


How to move a file between deb packages?

In debian/control add something like

Conflicts: banana (<= 0.0.2)

to the package section for banana-common.


LibreCalc- correspond few columns and rows across sheets


How can I fix "Check email" broken icon in the unity menu?

Try to change your default program for email. Unity will show the icon of you preferred application for this functionality.

Go to System Settings -> System Info -> Default Applications and change Mail client to one with a icon.


I've downloaded a .sh file - how do I install this?

First you might need to give the .sh file permission to execute.
chmod +x file.sh, then you can execute it with ./file.sh.

You can also right-click on the file, select Properties, then select Permissions and then select 'Allow executing file as program'. Then you double-click the file and select 'Run in Terminal' or 'Run'.


Second monitor not working after Xubuntu 16.04 upgrade

This morning I decided to try it again.
And. It. Just. Worked.
I have no freaking idea why it works now. I tried it several times over the past weeks and today suddenly it worked.

Perhaps there was an update that fixed my problem?

Whatever, I'm happy I have my big monitor back :)


Yes I finally have a solution for you it took a bit of digging, you have to use CompizConfig Settings Manager.  Go to Utilty > Workarounds, make sure this box is checked:

Also should be checked:

"Don't wait for video sync"
"Force full screen redraws"

Also some other this you could do is in the CCSM go to "OpenGL" click on the texture tab put Best:

Then go to "Composite" and uncheck "detect rate" then crank up the refresh rate to anything higher than it's default that is set at 50 I set mine to anything beyond 60.

 problems. Hope this helped. :)


Samsung UE590 4k monitor DisplayPort + Ubuntu 18.04 black screen before log in screen

To collect the comments in an answer, I did ...

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt remove nvidia-driver-390  # i had this version already installed
sudo ubuntu-drivers autoinstall

At the time of writing, this installed 415 and worked beautifully