Neither wired nor wireless in 12.04 on my Lenovo z710

So working through this issue was an absolute pain in the ass for me. It was my first venture into the linux realm, and at times it was quite taxing on my soul. Hopefully I can outline clearly enough the steps I took to identify the exact issue and solve it.

Note: All of these steps were taken successfully using Ubuntu 14.04 downloadable here: http://cdimage.ubuntu.com/daily-live/current/

First thing I would do is check what driver your network card is currently using

lspci -v

Look for your network controller and check the line:

Kernel driver in use: <driver>

If your network controller is not using the wl driver, then I would next check that the wl module is installed using lsmod to list all installed modules.

lsmod

If you do not see wl listed under the Module list, there's the problem.

If you do in fact see wl listed, then you most likely just need to force your network controller to use the proper driver. I think this can be done with sudo modprobe wl but I'm really not certain. Best to research some more elsewhere (Don't fret, your closer than everyone else!)

Or you can follow these next steps and it should work as well, just with more effort than you really should have to put in.

So you don't have your wl module which is bad. The next step is to purge your bcmwl-kernel-source

sudo apt-get purge bcmwl-kernel-source

Since I had no internet access, I was forced to boot into the 14.04 live cd, where I could gain internet access wirelessly after opening Software & Updates going to the additional drivers tab and enabling the BCM proprietary driver.

After you've done this, install the Synaptic Package Manager from the Ubuntu software center.

Then follow these steps outlined by Sneetsher, with additional packages that I installed.

Use live CD, Use Synaptic > Settings > Repositories: check all. Then Reload (to update package list). Check linux-firmware , linux-firmware-nonfree, bcmwl-kernel-source, dkms, all linux-headers, and all linux-image-extra for installed kernels. Then File > Generate download script. Save it in the desktop. Run it. Save packages to USB key. Reboot to installed OS, use sudo dpkg -i *.deb to install them. Reboot, see if it works?

See here: https://help.ubuntu.com/community/SynapticHowto for clarification on creating the script

After doing this hopefully your wireless will work! If not, I'm sorry, keep researching!


Automatically start at specific time like BIOS?

An operating system itself cannot bring hardware out of a completely-off state, as the OS is not running at that time. If there was any OS-level software to write to your BIOS, it would be proprietary software specific to the BIOS and motherboard etc., and highly unlikely to exist as an ubuntu command. Sorry.

BIOS options such as Wake On Lan, or your auto-start feature are one option. The other is a hardware solution similar to what some tv tuner cards do by getting hard wired into the power button in order to trigger power-on events. In cases like this, cron job could be used to constantly update the wake-time for the tuner card.


Can not shut down from the ubuntu gear button,

Cario dock screws up the gear if you want it to work again I suggest uninstalling cairo dock.  Or beg them to fix it over here: http://www.glx-dock.org/bg_forumlist.php


GNOME's official way of installing extensions is through https://extensions.gnome.org/ . I advise you to go there and check if your user theme extension is updated to the latest version. If not, you should be able to fix that through the same website.


Tried to fix wifi issue while Bluetooth On now wifi doesn't work even with Bluetooth disabled

It looks like you may have removed iwlwifi module.
Suggestions are to re-install the kernel.

Open root terminal:
sudo -H gnome-terminal

Reinstall kernel:
apt-get install --reinstall linux-image-generic linux-image-3.19.0-26-generic
You may need to replace the image version with your image version

reboot


I can't install ubuntu 13.04 on my laptop

A variety of things can cause this but I would suspect first that an anti-virus
program is shutting it down. Turn off all anti-virus as well as Defender and
try to install but do so as Administrator. I strongly doubt that AMD graphics is
causing this.


Bittorrent Clients Ubuntu 14.04.1 LTS 32bit

I use Tixati. It has Remove and Remove and Delete Local Files options. It is not available in the official repository, but a Debian package file is provided.


Network speed came down drastically after update

one correcting to my posting.

grep " install " /var/log/apt/history.log

was empty. Not the log.
log is as follows :

Start-Date: 2019-01-25  12:24:46
Commandline: aptdaemon role='role-commit-packages' sender=':1.485'
Upgrade: libwireshark11:amd64 (2.6.5-1~ubuntu18.10.0, 2.6.6-1~ubuntu18.10.0), libwiretap8:amd64 (2.6.5-1~ubuntu18.10.0, 2.6.6-1~ubuntu18.10.0), libwsutil9:amd64 (2.6.5-1~ubuntu18.10.0, 2.6.6-1~ubuntu18.10.0), wireshark:amd64 (2.6.5-1~ubuntu18.10.0, 2.6.6-1~ubuntu18.10.0), wireshark-common:amd64 (2.6.5-1~ubuntu18.10.0, 2.6.6-1~ubuntu18.10.0), libwscodecs2:amd64 (2.6.5-1~ubuntu18.10.0, 2.6.6-1~ubuntu18.10.0), libwireshark-data:amd64 (2.6.5-1~ubuntu18.10.0, 2.6.6-1~ubuntu18.10.0), wireshark-qt:amd64 (2.6.5-1~ubuntu18.10.0, 2.6.6-1~ubuntu18.10.0)
End-Date: 2019-01-25  12:26:00
Start-Date: 2019-01-25  12:53:26
Commandline: apt -y upgrade
Requested-By: lokesh (1000)
Upgrade: irqbalance:amd64 (1.3.0-0.1build1, 1.3.0-0.1ubuntu0.18.10.1)
End-Date: 2019-01-25  12:53:36

as the packages as related to wireshark, I did

apt remove wireshark
apt install wireshark

Don't know why, but, this resolved the issue. Now I am getting 0.96 Gbps


The error message you got:

  W: GPG error: http://download.opensuse.org  Release: The following
  signatures couldn't be verified because the public key is not
  available: NO_PUBKEY 977C43A8BA684223

Means you have to  add that missing key 977C43A8BA684223  by  redownloading the keys first:

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

Then type:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 977C43A8BA684223
sudo apt-get update


How can I set top left corner to have (0,0) coordinates in Inkscape?

You can't. There's an ongoing change to address this an additional work on making it user-configurably. https://bugs.launchpad.net/inkscape/+bug/170049

It's targetted to the 0.49 release so perhaps if you try a "nightly" it'll have what you're after?


This is easy to fix.

apt-get gives you a warning about where the problem exists.

  Type 'ain' is not known on line 3 in source list
  /etc/apt/sources.list.d/ricotz-testing-precise.list

Open the file with an editor (eg: gedit). You will need root privileges to edit the contents.

Run this command in terminal

gksudo gedit /etc/apt/sources.list.d/ricotz-testing-precise.list

and delete the word 'ain' . Save the file and run again

sudo apt-get update


How do I get GRUB_HIDDEN_TIMEOUT=0 behavior when GRUB_DISABLE_OS_PROBER=false?

Only the following two lines should be relevant:

GRUB_HIDDEN_TIMEOUT=3
GRUB_HIDDEN_TIMEOUT_QUIET=true

The first defines the timeout to press the Shift key. Set it to something other then zero, for example 3.

The second tells Grub not to show the menu by default.

Both lines should be uncommented.

Dont forget to run sudo update-grub at the end.


Pushing forward-lookup zones to VPN clients' dnsmasq configuration

Hmm, my client doesn't recognize the domains correctly and just uses the one DNS server my VPN server pushses rather than only using my VPN DNS for VPN domains.  To answer your question though, look into using push "dhcp-option DOMAIN example.com"


How to upgrade from python 2.7 to the latest version of python

Why would you replace python 2.7? They both can live along on the same system. You can run python3 by calling python3. You can set your preferred version (what is executed by calling python to python3), but beware if there are some system scripts needing python2 but not explicitly specifying it you might break things.

For a script that should be executed by python3 you can write:

#!/usr/bin/env python3
...

If you need a newer python3 install or guarantee its own name space (without modifying the system configuration) you need to work with virtual environments and custom distros like conda.


Black screen after upgrading to Ubuntu 14.04

It looks like samba related: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1257186

Multiple users posted comments at the bug report, reporting success by running the command:

sudo apt-get remove libpam-smbpass

After a quick google search: http://ubuntuforums.org/showthread.php?t=2214042. That thread may help with your problem.


Ubuntu 20.04 on SSD: slow boot after first update

I solved the issue editing fstab and removing a swap uuid that was not used anymore before the first reboot, after the update.

Infact, during the installation of Ubuntu, in the system I had another Ubuntu installation on a different hdd, that I formatted after booting the first time in Ubuntu.

The fstab included the other swap partition, that wasn't anymore present. So it hanged for a minute and 30 seconds on: "A start job is running for"...the missing partition.


Can't remap keys on a Microsoft Keyboard with HWDB

Turns out I was specifying the wrong kind of scancodes. When getting key codes with evtest, you get the following output (assuming the left shift button is pressed):
...
Event: time xxx.xxx, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e1
Event: time xxx.xxx, type 1 (EV_KEY), code 42 (KEY_LEFTSHIFT), value 0
...

The code I was using was the standard key code (42). But as it turns out, this is wrong.
The actual code you're supposed to specify in the hwdb file is the scancode from the MSC_SCAN line (in this example, it is 700e1, preceded by the word value)
This works:
evdev:input:b*v045Ep07F8*
 KEYBOARD_KEY_70039=leftctrl
 KEYBOARD_KEY_700e0=capslock

Reference: Rebinding Keyboard Keys @ altlinux.org (it's in Russian but it is the most comprehensive article I've found on the web that stresses that nuance)
I vividly remember using basic scancodes on my laptops and them working. I'm not quite sure why that is the case. Perhaps they happen to match the EV_MSC scancodes on some types of keyboards.


Keyboard backlighting not working on a Vaio VPCSB11FX

There must be a driver involved, or a module that has to be loaded.
Try first:

sudo modprobe -v sony-laptop

This will load the module. Then try the suggestions.

The description of sony-laptop explains the parameters involved:

$ modinfo sony-laptop
[...]
parm:           no_spic:set this if you don't want to enable the SPIC device (int)
parm:           compat:set this if you want to enable backward compatibility mode (int)
parm:           mask:set this to the mask of event you want to enable (see doc) (ulong)
parm:           camera:set this to 1 to enable Motion Eye camera controls (only use it  if you have a C1VE or C1VN model) (int)
parm:           minor:minor number of the misc device for the SPIC compatibility code, default is -1 (automatic) (int)
parm:           kbd_backlight:set this to 0 to disable keyboard backlight, 1 to enable it (default: 0) (int)
parm:           kbd_backlight_timeout:set this to 0 to set the default 10 seconds timeout, 1 for 30 seconds, 2 for 60 seconds and 3 to disable timeout (default: 0) (int)

So 1 to enable, 0 to disable.

Temporary solution:

sudo modprobe -v sony-laptop kbd_backlight=1

To turn it off:

sudo rmmod -v sony-laptop; sudo modprobe -v sony-laptop kbd_backlight=0

Permanent solution (always on when you boot):

echo "options sony-laptop kbd_backlight=1" | sudo tee /etc/modprobe.d/sony-laptop.conf

(You have to reboot for changes to take effect)


Good system for writing coding excerpts (possible cloud based)

One cool thing I just found are Github gists.
There can be secret or public gists. And they support php code syntax.
https://gist.github.com/


According to a posting in lighty forum:

  There is no mod_subversion for lighttpd and there won't be one in the
  near future. lighttpd is single-threaded (mostly) and mod_subversion
  would block the whole server process (and so ALL connections).
  Either proxy to apache or use svnserve which has almost all features
  which mod_subversion has (the only problem I can think of is that Apache
  supports several authentication modules (kerberos etc.) which can be
  used in combination with mod_subversion, but svnserve doesn't support
  that iirc).

Your best choice is to use apache2 in combination with lighty: A great tutorial.


Why debian Packages in Archive folder get deleted Automatically in Ubuntu

Take a look at /etc/apt/apt.conf.d/20archive.

In there there are a few lines used by the daily apt cron job:

APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";

Those are the defaults. If you set all of them to zero, then your apt cache files should not be deleted.

Source
Why does /var/cache/apt/archives keep deleting files?


I had same issue with Inter font, I wanted to use medium variant but regular was applied no matter what I pick. I could achieved it using gsettings from terminal, adding a comma between font name and size.

gsettings set org.gnome.desktop.interface font-name 'Inter Medium, 11'

Try it, it worked with medium variant but it didn't with light, also note that gnome Tweaks will show up as none font is selected.


Ubuntu slow after upgrade to 12.04 Precise

I see a lot waitio, both in top (9.8%wa) and in dstat (up to 49%). I also see you have swap in use, possibly being the reason for the high iowait numbers. Your machine is slow because it is waiting for the swapping memory to and from disk.

You have only 1GB installed RAM, that is a bit low for a full blown Ubuntu install. Adding memory to your system will help, or consider using a lighter distribution (Lubuntu/Xubuntu/... I don't know them all).

Using lighter applications (eg. instead of Firefox) will also help.


Cursor disappears after suspending and then logging back in Lubuntu

I found a temporary solution, by pressing Ctrl+Alt+F1, then pressing Ctrl+Alt+F7 the mouse re-appears.


command to convert currency in Ubuntu server using gcalccmd

You can download qalculate from the Ubuntu Software Centre. This application allows you to download current rates and calculate the exchange rate from the command line.

You can then update the rate using the command exrates on the command lie in terminal. Use help from the command line when you are in the tool to see the various commands available.

You would need to have qalc installed (but not running) and you can then call the exchange rate from the command line or a script by using (for example):

1 GBP to EUR

You can also use qalc -t 1 GBP to EUR (-t = terse, the opposite of verbose)
but you can also use the awk command to split out the value only as in:

awk -F' ' '{print $2}' <<< `qalc -t 500 GBP to EUR`

This will give the value 560.63584 (at the rate given)


Intel virtualization technology keeps disabling automatically

The problem of BIOS settings that can't be stored is usually caused by dead CMOS battery (battery on the motherboard). If the CMOS battery is dead, there is no power in the motherboard to store the BIOS settings. Did you check that in the first place?


ls command doesn't show any files in home directory

If the ls command does not provide any output, then no visible files are present in the folder.
To view any folder, use the -a (or --all) switch. It will show at least the current folder as . and the parent folder as ... If there are hidden files or folders present, i.e., of which the name starts with ., they will appear as well.
You can create an empty file with the touch command:
touch newfile

If you now execute ls, does it show up?


Why re-enabled sources are still marked as "disabled on upgrade to quantal"?

It is a simple comment that is added by the upgrade procedure, and it does not have special meaning. So you can edit the source and clear the comment.


If you are using Ubuntu with Unity you can open Dash type System Settings then click on Keyboard and uncheck the Key presses repeat when key is hold down option


I unplugged my second monitor and it worked perfectly. After installing I downloaded proper gtx 970 drivers, rebooted and both monitors worked.


Black screen on login, gnome-shell eating 100% of CPU

On a whim, because I had seen some updates to the nvidia drivers, I tried to switch to nouveau.  I have no idea if I did so correctly, but it solved the problem.  This is what I ran:

sudo apt-get purge nvidia-\*
sudo apt-get autoclean
sudo apt-get autoremove
sudo reboot

At this point, everything seems to be working again, and looking at the "Additional Driver" tab of "Software & Updates", I see that this computer is now using Nouveau instead of NVIDIA.


How to duplicate all apps on 1 laptop and install on another?

If the same version of Lubuntu is running on all the systems, eg 14.04, the you can do the following -

On the primary machine, ie the one which you wish to clone, run the command -

dpkg --get-selections > list.txt

This will save the names of all the packages installed on the system in a file named list.txt.

Now copy this file to the other computers and run the following commands -

dpkg --set-selections < list.txt

sudo apt-get -u dselect-upgrade

You may additionally copy the contents of /var/cache/apt/archives from the primary system and paste it in the corresponding locations of the other systems to avoid downloading the packages again on each system.


Not really.  You need to install a different boot loader like rEFInd.
http://www.rodsbooks.com/refind/

I recently did this to a 2010 macbook pro, and it worked find, except Ubuntu overwrote Windows' partition so I had to install in this order:  rEFInd, OS X, Ubuntu, rEFInd (over GRUB), and then Windows.

Make sure you've assigned all the space on the drive for the two EFI partitions, the mac partition, free space for the swap, and the two FAT32s (one of which ubuntu will obliterate, when you choose the custom setup, lest it merely take a partition and split it in half.)

There just alot of steps there, almost too many to detail in a simple answer.


sound problem (the left speaker doesn't working)

This could be solved by changing output from stereo to mono.
Take a look at This question on Superuser.


how to turn ubuntu-11.10-alternate-i386 version to the regular ubuntu-11.10-desktop-i386

There is no Ubuntu alternate distribution. What you have downloaded is the Ubuntu alternate installer. The difference between the alternate installer and the standard one is in the way they work (the first is text-based, the latter is graphical), but the result is always the same.

You can read more in the download page:

  The text-based alternate installer can be downloaded from a location
  near you. This installation CD is suited for computers unable to run
  the graphical desktop based installation, either because their
  computer does not meet the minimum requirements for the live cd or
  because their computer requires configuration after the installation
  is complete in order to use the desktop.

So the answer to your question is: you don't have do do anything because you already have the "normal" Ubuntu.


If an application has a gtk3 backend, should it be enabled for 11.10?

GTK+ 2 will still be available in 11.10. So it really should be left to the package maintainer's discretion. If the GTK+ 3 version is deemed stable enough, then it would probably be a good idea to enable it. As far as I know, the goal is to have all applications in the default install ported to GTK+ 3 in time for the 12.04 LTS release. Though GTK+ 2 will probably remain in universe for quite some time.

Some of this work can be tracked on the Desktop Team's Release Status wiki page.


Yes, it looks like the disk has got corrupt. If it was working before it may be possible to recover it, and possibly as @psusi suggests, running testdisk might do the job.

  sudo apt-get install testdisk

then

  sudo testdisk /dev/sdc1

I don't have a broken disk to test it on, and I don't know what it does to your, but it advertises itself as something that checks and recovers lost partitions, which sounds right, at least. Good luck.


dpkg tells you what went wrong if you read its output.

However if you like GUI apps, I would recommend GDebi to install deb files, although if something goes wrong it will recommend you to open a terminal and do a sudo apt-get install -f.

To install GDebi: sudo apt-get install gdebi. Then for every deb file you have, right click and select Open With -> GDebi.

And a screenshot:


How do I fix this error: cannot find -lglfw3 (Open Gl)

Try changing linking to glfw instead of glfw3.

That solution worked for me when ran into this same issue trying to build a Code::Blocks project from a Windows setup. Additionally, I think you also must link against GL instead of opengl or opengl32 (not sure if that applies to you or not).


Error installing packages using Synaptic in Ubuntu 14.04 ?

Direct Response from Ubuntu Bugs - Ubuntu Quality

"This
error seems to just be one of those warning messages that doesn't
really break the program at all, so from a bug triage perspective this
is a "Low" (Ubuntu Bug Triage importance), or "Minor" (Debian BTS
importance), bug importance."


OK, the mistake is at their documentation. It works perfectly (at least for me) when a comma is used instead of a semicolon


Your question is a bit unclear, but in case you want to set custom DNS you can do it in few ways.

add dns-nameservers {IP} to your interfaces file.
or add nameserver {IP} to /etc/resolv.conf (this is not permanent solution).


Bash: Regular Expressions in substitution

The parameter expansion's substitution doesn't work with regular expressions. extglob can help you here, but it doesn't work with regular expressions, either.

The correct syntax for the expression under extglob is

re='+([0-9])'

i.e. a digit one or more times.

Test:

re='+([0-9])'
echo $'word5word\nword55word' | while read line ; do
    new_line=${line/"word"$re"word"/"word"125"word"}
    echo "$new_line"
done

Output:

word125word
word125word


How can I monitor/check outgoing DNS lookup connections?

You must turn on bind / named logging:

$ sudo apt-get install bind9utils
$ rndc querylog

Then, you can see the log the service in the system log:

$ tail -f /var/log/messages

Once finished, you can turn off logging again:

$ rndc querylog


It looks like it is a bug in the newer version of lightdm (1.18.2). Try to downgrade to the previous version using:

sudo apt install lightdm=1.18.1*
echo "lightdm hold" | sudo dpkg --set-selections

Obs: The last line puts lightdm on hold to avoid upgrades to the 1.18.2 version. Once the newer version is fixed you want to re-allow the upgrade by using

echo "lightdm install" | sudo dpkg --set-selections

Maybe the related bug is this one:

https://bugs.launchpad.net/lightdm/+bug/1599478


How to update Python to the latest version on Ubuntu 18.04

Python 3.7.1 is still in maintenance version.

It is only available for download to Windows and macOS users. Once the stable version is released, then it is made available in Linux repositories.

For Windows and Mac users visit this python.org URL.

For Linux users: you can download the 3.7.0 version from the terminal

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python3.7


setting system variables through terminal

1) Please put JAVA_HOME in /etc/profile itself and then restart the machine

2) Or you will have to export in every user ~/.bashrc and then source it.


The programme taking care of that is GRUB. You can enter GRUB by holding Shift when the computer is booting. There you should be able to select either Windows or Linux.

If you want to always see the GRUB menu, consider changing the timeout, as is well described by e.g. this post on Linuxpoison


Ran through and I believe that does it.
But if you are reaching by hostname defined in "/etc/hosts" you have to list out that as well.


Is it possible to install some cloud apps on Ubuntu?

Hope this will help you

DROPBOX :- you can download it from here or you can install Dropbox from Ubuntu software center of ubuntu
Onedrive :- you can't install onedrive on ubuntu as it is Microsoft service.There is project to port it to Linux but it is not ready yet.

you can use alternate cloud services as provided here


Update Manager not showing option to upgrade to 13.04

It is to be released later today.

On twitter: Getting close now: We might even manage 13.04 at 13:04 BST.


How do I get the version of an application from the command line?

You can use dpkg or apt-cache.

To check the version of bash, for example:

dpkg -l bash

apt-cache show bash


Is it possible to install Ubuntu touch on a nexus 9?

Sorry, but currently it is not possible.


Simple. This assumes that sda2 is an ext2/3/4 file system. If it's not, we have to do something else.

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fsck -f /dev/sda2
repeat the fsck command if there were errors
type reboot


Unity shortcut hint overlay doesn't show up


As a workaround from this post Remove Gnome Notifications or set Permanent Do not Disturb, you may wish to disable all the notifications for login screen. the workaround will not deal with Desktop.
I tried several ways as it depended on simple gsettings key mentioned in the above link but situation got complex.. I did several times re-installation of OS to confirm if the method is working or not.. and this is the final workout..
What worked for me is this script..
#!/bin/bash

keys=/etc/dconf/db/gdm.d/no-notifications
locks=/etc/dconf/db/gdm.d/locks/no-notifications
profile=/etc/dconf/profile/gdm

install -D /dev/null $keys
install -D /dev/null $locks
install -D /dev/null $profile

echo "[org/gnome/desktop/notifications]
show-banners=false" >> $keys

echo "/org/gnome/desktop/notifications/show-banners" >> $locks

echo "user-db:user
system-db:gdm" >> $profile

dconf update

So save the above content in a text file and run
sudo bash <scriptname>

Reboot to see the change..

To revert the changes run the below commands one by one
rm -r /etc/dconf/profile/gdm /etc/dconf/db/gdm.d
dconf update


Why is ubuntu running so slowly when installed alongside windows 8?

You are probably running the open source drivers which don't perform well in (some) games. I recommend installing the fglrx drivers, you can read more about this on the ubuntu wiki: https://help.ubuntu.com/community/BinaryDriverHowto/ATI


Can't connect to Wireless Broadcom BCM4312, using wifi

You need to install either "b43-fwcutter/firmware-b43-installer" or "Broadcom STA proprietary restricted driver).

Try the first response in the link : How do I get a Broadcom BCM4313 wireless card working?
Make sure Broadcom STA restricted driver is purged => "sudo apt-get purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source".

I had the same issue, and in my case the Broadcom card is 4327, which is troublesome and works only with Broadcom restricted driver. The broadcom restricted driver is buggy , and freezes the screen. I wouldn't recommend this approach.


T450s on 15.10 Kernel 4.2.6 iwlwifi 7265 association step timeout

We see this in your wireless script in /etc/modprobe.d/iwlwifi.conf:

  options iwlwifi bt_coex_active=N swcrypto=1 11n_disable=1
  p2p_disabled=1

As you can see, p2p_disabled is not a valid parameter:

parm:           swcrypto:using crypto in software (default 0 [hardware]) (int)
parm:           11n_disable:disable 11n functionality, bitmap: 1: full, 2: disable agg TX, 4: disable agg RX, 8 enable agg TX (uint)
parm:           amsdu_size_8K:enable 8K amsdu size (default 0) (int)
parm:           fw_restart:restart firmware in case of error (default true) (bool)
parm:           antenna_coupling:specify antenna coupling in dB (default: 0 dB) (int)
parm:           nvm_file:NVM file name (charp)
parm:           d0i3_disable:disable d0i3 functionality (default: Y) (bool)
parm:           lar_disable:disable LAR functionality (default: N) (bool)
parm:           uapsd_disable:disable U-APSD functionality (default: Y) (bool)
parm:           bt_coex_active:enable wifi/bt co-exist (default: enable) (bool)
parm:           led_mode:0=system default, 1=On(RF On)/Off(RF Off), 2=blinking, 3=Off (default: 0) (int)
parm:           power_save:enable WiFi power management (default: disable) (bool)
parm:           power_level:default power save level (range from 1 - 5, default: 1) (int)
parm:           fw_monitor:firmware monitor - to debug FW (default: false - needs lots of memory) (bool)

I suggest that you do:

sudo gedit /etc/modprobe.d/iwlwifi.conf

Use nano or kate or leafpad if you don't have the text editor gedit. Change the last line to read:

options iwlwifi bt_coex_active=N swcrypto=1 11n_disable=1

Proofread carefully, save and close the text editor.

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

sudo iw reg get

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

sudo iw reg set IS

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

gksudo gedit /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Reboot and tell us if connectivity is improved.

You might try installing more recent firmware:

sudo apt-get update
sudo apt-get install git
git clone https://github.com/OpenELEC/iwlwifi-firmware.git
cd iwlwifi-firmware
sudo ./install

Reboot. Any improvement?


How to force reboot ubuntu system when it hangs?

The command you are looking for is known as Reboot Even If System Utterly Bad - REISUB.

So what you need to do is:

Press ALT+Print Screen and then enter the following key combination. REISUB

More details of the command are:

  R: Switch the keyboard from raw mode to XLATE mode

  E: Send the SIGTERM signal to all processes except init

  I: Send the SIGKILL signal to all processes except init

  S: Sync all mounted filesystems

  U: Remount all mounted filesystems in read-only mode

  B: Immediately reboot the system, without unmounting partitions or
  syncing

Source https://fosswire.com/post/2008/04/ubuntu-cheat-sheet/


Why don't all programs recognize certain drives that have mounted at startup?

The easiest way to fix this is to just mount them in your /etc/fstab as you see fit. To perform this, open up the terminal using ctrl + alt + t and follow along:

Issue blkid to get the UUID of the drive you want to map:

sudo blkid
/dev/nvme0n1p1: UUID="cf426a4a-efcb-4fdf-8d5b-16c351b6120f" TYPE="ext4" PARTLABEL="Backups" PARTUUID="33ff5cc6-8195-4fe9-a3bb-64f842972bfc"

From here, I need to grab my UUID and append this to my fstab file as such (note: these are 'defaults', you can append these with the options you want):

sudo nano /etc/fstab

For me, I made a directory under /mnt/Backups and wanted to mount there:

# Backups SSD:
UUID=cf426a4a-efcb-4fdf-8d5b-16c351b6120f       /mnt/Backups    ext4    defaults,auto   0       0

Doing this, my drive is auto-mounted and can be accessed via /mnt/Backups as required:

╰─$ df /mnt/Backups
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/nvme0n1p1 491209736 297953008 168235032  64% /mnt/Backups

You can also use the chmod and chown command to set the permissions as you see fit. More help can be found here


Desktop Sharing is in no way related to desktops. It's purpose is to allow remote login to your desktop if you chose so.

In fact , the updates and desktop sharing are related to two different programs.

For desktop sharing the program is called vino. You can safely remove it with running

sudo apt-get remove vino

in terminal.

Now if you want to ever use it, but don't want it to be enabled by default you can either disable it through Startup Applications or do

mv /etc/xdg/autostart/vino-server.desktop /etc/xdg/autostart/vino-server.desktop.bak

(which moves the actual file that calls vino to start on every GUI login, to a file with .bak extension , which won't be called on GUI login)


Any app that tries to access File system makes the OS crash

OK, lets do the basics first...

Let's check out your file system using fsck...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
type reboot


Ubuntu 20.04 cannot detect the battery in Surface pro 6 laptop

According to the linux-surface project's feature Matrix, the battery status works after installing the surface kernel.
Follow these steps to install this special kernel (I found these steps on this page. Please refer to that page for more details. If you encounter an issue, you can report it in the GitHub issues).
First you need to import the keys.
$ wget -qO - https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc \
    | gpg --dearmor | sudo dd of=/etc/apt/trusted.gpg.d/linux-surface.gpg

Now add the repository configuration
$ echo "deb [arch=amd64] https://pkg.surfacelinux.com/debian release main" \
    | sudo tee /etc/apt/sources.list.d/linux-surface.list

Now update APT.
$ sudo apt update

Now you can install the linux-surface kernel and its dependencies. You should also enable the iptsd service for touchscreen support.
$ sudo apt install linux-image-surface linux-headers-surface iptsd libwacom-surface

$ sudo systemctl enable iptsd

After that you can install the secureboot key of the linux-surface team.
$ sudo apt install linux-surface-secureboot-mok

The linux-surface kernel will be installed alongside the default kernel provided by the distribution. This way you have a backup kernel you can use if something goes wrong. The bootloader will pick up the kernel by default, but you should update its configuration to make sure it was recognized.
$ sudo update-grub

Finally, reboot your system and you should boot into the linux-surface kernel.


I can't open Qt 4 Designer on latest Ubuntu

Try installing qt4-default:

sudo apt-get install qt4-default


How to escape spaces in pwd path when creating a Boost build script?

You can quote the shell variables like: -sZLIB_SOURCE="$WD"/"$ZLIB_ROOT_DIR". Do not escape the quotes.


sudo apt upgrade not working after ubuntu update

You have duplicate entries in your sources.list

You should check them in that file (/etc/apt/sources.list)

Another way is:

going to

System settings >> Software and Updates >> Other Software and removing each duplicate entry.


You could set up the console mailer "postfix".

sudo apt-get install postfix mailutils libsasl2-modules

Depending on what you need and what mail provider you're using, you'll have to do some configuration. The process is described here: https://help.ubuntu.com/community/PostfixBasicSetupHowto#Install%20Postfix . If you happen to speak German there is a more user friendly article: http://wiki.ubuntuusers.de/postfix

Then create a shell script from the template:

#!/bin/bash
pingreturn=$(ping -c 1 google.com)
echo "text in email: $pingreturn" | mail -s "Some Subject" a.b@c.de

This will send the mail "text in email: " followed by the return of the ping command to the address "a.b@c.de" with the sucject "Some subject".

With a launcher for that script you got your one-click mail. Shoudn't be terribly hard. Might be overkill though.


The speed of boot depends on two things: hardware and software.

The more the software does (GUI, animations, background tasks, user management, shell execution, etc) the slower your computer. Kubuntu does a lot more than DOS. If DOS is working for you and does everything you need.

If you need new features, Lubuntu may boot faster than Kubuntu. It's lighter and does less.

Now the hardware. I have a top of the range PC with 32GB RAM, 6 x Intel i7 at 3200 MHz cores and a 2TB HDD at 90MB/s.

You have an old computer with a small amount of RAM, a 333 MHz processor (an order of magnitude slower). You also have a CF card with 30 MB/s read / write.

You wouldn't expect this guy to lift these weights.

Equally, you can't expect this computer to do all this.


ubuntu 13.10 how to change nautilus title bar color

Modifying the metacity xml files will apply your changes not only to nautilus but to all your windows.

To tweak nautilus elements, modify its css file in the active gtk3 theme folder.


dconf-service extensive io (write) on any key press

Hint, after dealing with my own dconf-service excessive IO pains ... which brought down my machine due to excessive disk thrashing for 6 months .... grumble ....

type this in the console to watch dconf traffic in real time, which might tell you which application is misbehaving. In my case, compiz and unity weren't getting along and clobbering eachothers configs ...

  dconf watch /

forward slash means you want to monitor the whole tree ...


Curl not working on apache with Ubuntu 16.04

curl is the command line program called curl, not the PHP bindings for libcurl.

You need to make sure you've installed php5-curl (php-curl on 18.04 and newer) and then restart your PHP / Apache2 server to pick up the now-present Curl plugin and library bindings for PHP.


Kde network notification on start-up at center

Same here. Logging out and back in makes the message appear where it should. This problem seems to exist only a first login.


Script to keep alive FTP/SFTP sessions over gvfs

The script is sort of correct. However,it contains an infinite loop and never exits.

When ubuntu boots, it calls this script from rc.local, and because it never exits, rc.local never finishes and the computer never finishes the boot.

Given you want to execute the command every minute, you could simply create an entry in /etc/crontab, something like:

* * * * *   username    ls /home/username/.gvfs/FTP* >/dev/null

Depending on personal preference, you could also create a systemd service to do this.


Script to launch mutiple terminal of terminator

The following shellscript works for me in Ubuntu 18.04 LTS. If you have another desktop environment, you should edit the script's wcorr and hcorr values in order to match the screen.

I suggest the name l4t for the shellscript,

#!/bin/bash

wcorr=68  # manual fix for vertical panels
hcorr=26  # manual fix for horizontal panels

tmps=$(LANG=C xrandr|grep -om1 'current.*,')
tmps=${tmps/,}
tmps=${tmps/current }
echo "screen resolution = $tmps pixels"
wscr=${tmps/ x*}
hscr=${tmps/*x }
wter=$(( (wscr-wcorr)/2 ))
hter=$(( (hscr-hcorr)/2 ))
echo "terminal width  = $wter pixels"
echo "terminal height = $hter pixels"

terminator --borderless --geometry="${wter}x${hter}+0+0" -x run1.sh &
terminator --borderless --geometry="${wter}x${hter}+0-0" -x run1.sh &
terminator --borderless --geometry="${wter}x${hter}-0+0" -x run2.sh &
terminator --borderless --geometry="${wter}x${hter}-0-0" -x run2.sh &

I have tested the function with the following scripts run1.sh and run1.sh

run1.sh:

#!/bin/bash

cnt=0
while [ $cnt -lt 10 ]
do
 echo -n "$cnt"
 sleep 1
 cnt=$((cnt+1))
done
echo ""
bash

run1.sh:

#!/bin/bash

cnt=9
while [ $cnt -ge 0 ]
do
 echo -n "$cnt"
 sleep 1
 cnt=$((cnt-1))
done
echo ""
bash

I put a bash command at the end of these scripts. Otherwise the terminal windows would be closed after the scripts have finished. You may want to do something else.

Make the three shellscripts executable

chmod +x l4t run1.sh run2.sh

and move them to a directory in PATH,

mv l4t run1.sh run2.sh /usr/local/bin/

Now you can run them just with the name like any other command.

l4t


Monitors won't sleep (power management) if synergy or synergyc? is running

Put screenSaverSync to false

Sources:

Bug #1061 - Screensaver sync prevents display turning off
Bug #28 - Windows monitor power save not working


Open Software & Updates, then open Additional Drivers tab and install needed drivers from here.


Remove Grub Loader from Mac - USB Thumbdrive installation

Log in to your mac.
Open Terminal and mount the EFI partition:

mkdir mnt (this assumes you don't already have a folder called mnt)

sudo mount -t msdos /dev/disk0s1 mnt

Delete the ubuntu folder in the EFI partition folder:

cd mnt/EFI/

sudo rm -rf ubuntu

Reboot:

sudo reboot


Where can I find a list of Ubuntu global events in the world?

I found these sites with Ubucon listings:

https://wiki.ubuntu.com/Ubucon

http://ubucon.org/


Show upcoming events in the today scope on ubuntu phone

There is no way to configure this in the Today scope, which per default seems to display only today's events. You can click on the small arrow on the right side of Events today to get to the upcoming events. Alternatively, you can add the scope Upcoming, that should rather fit your needs.


Reinstall/Upgrade all python user-site's packages and not Ubuntu global ones

Correct way

Create a list of all python packages:

pip list --format=legacy | awk '{print $1}' | sed 's/.*/\L&/' | sort  > /tmp/list.pip

then create a list of all these packages which were installed by apt:

cat /tmp/list.pip | sed 's/.*/\L&/' |
xargs -Ipkg dpkg -l python-pkg python3-pkg pkg |& grep ^ii |
 awk '{print $2}' | sed -r s/^python3?-// | sort | uniq > /tmp/list.apt

Now we got to list of python packages, /tmp/list.pip which pip is able to remove, and /tmp/list.apt which are packages installed by apt, check them manually and remove the ones that are not in /tmp/apt.list.

Because of different naming convention between apt and pip, the solution bellow is not working correctly. I'll fix it latter...

Finally get a list of all packages that been installed only by pip and not apt (packages exists in file /tmp/list.pip but not /tmp/list.apt):

comm /tmp/list.apt /tmp/list.pip -3 > /tmp/list_toRemove

Then use /tmp/list_toRemove content to remove or upgrade your pip packages.

For example to remove them all you can run:

pip uninstall $(cat /tmp/list_toRemove)

and to reinstall them:

pip install $(cat /tmp/list_toRemove) --user

Wrong way

Using commands like:

pip list --user
pip list --local
pip freeze --user
pip freeze --local

also includes packages installed by apt from specific paths, so do not use these commands.


How to clone a physical disk installed with Ubuntu 14.04 LTS to another physical disk?

Be sure to have a current and valid backup of all your important data before messing aroud with disks

Say the third disk is connected as /dev/sdc, you booted from /dev/sdb(as you said grub is there), but the running OS is on /dev/sda. Then dd would be the simplest way to clone sdb to sdc. sdc should at minimum be equal in size as sdb

First make sure you have the correct devices by issuing mount (should only show partitions on /dev/sda) and sudo fstab -l (if the third disk is new, there should be no partitions on it, or only one FAT or NTFS).

After being very sure (the following will destroy all data on /dev/sdc) you might use different ways:

Use the standard block copy program:

sudo dd if=/dev/sdb of=/dev/sdc bs=1M

This will copy each block from /dev/sdb to /dev/sdc. See man dd for more information. If you want more options, e.g. a progress indicator, install dcfldd (should be in the default repositories), and run

sudo dcfldd if=/dev/sdb of=/dev/sdc bs=1M

which will give you a status report every 256 blocks. Adding the option statusinterval=N will report every N blocks.

After you copied the disk block by block, you will have to adapt the partition table, as this will not reflect the new disk geometry. For that, start gparted, select the new disk, and resize (enlarge) the last partition to use the whole disk, depending on your partition layout.

If you prefer an all-in-one solution, you may install clonezilla from the default repositories. This program is able to make partition/disk images and to clone partitions/images (see Clonezilla. I did not work with that for long time, so I cannot give any advice here.


Put it at the end of your bspwmrc like this one.
My lemonbar loading from bspwmrc


TL;DR

Use auth,authpriv.*     @server_ip:port

Details

You are using the wrong facility resp. not all correct facilities.

To analyze the behaviour I run

journalctl -o verbose -t useradd -t groupadd -t passwd -f

in one window and did

adduser foo

in another (both as root).

journald intercepts (local) syslog messages that can be viewed with journalctl. The latter allows for various output formats, one of which is verbose with all syslog message fields.

The output then was something like:

Wed 2018-06-06 21:05:22.618392 CEST  [...]
    ...
    PRIORITY=6
    SYSLOG_FACILITY=10
    ...
    SYSLOG_IDENTIFIER=groupadd
    ...
    MESSAGE=group added to /etc/group: name=foo, GID=1004
Wed 2018-06-06 21:05:22.630643 CEST [...]
    ...
    PRIORITY=6
    SYSLOG_FACILITY=10
    ...
    SYSLOG_IDENTIFIER=groupadd
    ...
    MESSAGE=group added to /etc/gshadow: name=foo
    ...
Wed 2018-06-06 21:05:22.631667 CEST [...]
    ...
    PRIORITY=6
    SYSLOG_FACILITY=10
    ...
    SYSLOG_IDENTIFIER=groupadd
    ...
    MESSAGE=new group: name=foo, GID=1004
    ...
Wed 2018-06-06 21:05:22.635070 CEST [...]
    ...
    PRIORITY=6
    SYSLOG_FACILITY=10
    ...
    SYSLOG_IDENTIFIER=useradd
    ...
    MESSAGE=new user: name=foo, UID=1002, GID=1004, home=/home/foo, shell=/bin/bash
    ...
Wed 2018-06-06 21:05:22.699151 CEST [...]
    PRIORITY=4
    ...
    SYSLOG_FACILITY=10
    ...
    SYSLOG_IDENTIFIER=passwd
    MESSAGE=pam_ecryptfs: PAM passphrase change module retrieved a NULL passphrase; nothing to do
    ...

As we can see here, the SYSLOG_FACILITY is 10 for all those messages. This is not auth but authpriv.

In fact, my rsyslog configuration contains the line

auth,authpriv.* /var/log/auth.log

in the file /etc/rsyslog.d/50-default.conf.

So my suggestion is to use

auth,authpriv.*     @server_ip:port

to not only forward auth messages but also authpriv messages.


Can I set different passwords for different desktop environments?

Since the password to access the login is for the user, not the window manager it uses, I think your only options is create different users and set the default environment for each user.


hyperv_fb is looking for the Hyper_V video driver.

http://lxr.free-electrons.com/source/drivers/video/fbdev/hyperv_fb.c

When enabling RemoteFX, that driver is not loaded. As far as I know RemoteFX 3D accelerated adapters are not supported in Linux guests. I am still researching this, as it would be nice.


running these two commands sorted out the issue

sudo dpkg -i network-manager_*.deb
sudo service network-manager restart


It looks like you are using an USB stick, which can be problematic on old machines. Maybe you can try booting from a Ubuntu dvd, like:

the desktop dvd for 16.04


Acer Extensa does not suspend when closed on 13.04, worked on 12.10

Try this.  Check out the power settings Under System Settings, and check the settings.


Can't connect to wireless network with archer t6e // windows 7 and ubuntu 16.04

Purge the proprietary driver that is interfering with the open-source driver.

sudo apt-get purge bcmwl-kernel-source

then reboot


nVidia GeForce 2 Aopen MX-400 64 Mb video card is slow

EVGA GeForce 8400 GS. This graphics card is around the same price range as the one you have but it has 1 GB of vram which should be more than enough to watch videos on the internet.


Software & updates shows intel 8265 / 8275 wireless driver not working: don't use device or contnue using a manually installed driver?

If your wireless is working, there is no need at all to "fix" it. Here are some additional comments: https://ubuntuforums.org/showthread.php?t=2441173&highlight=additional+drivers


Can Gedit plugins work in Sublime Text 2?

No. SublimeText2 and Gedit have their own plugin system, and while one could port a plugin to another API, their plugin API's are not the same interface.


how to fix "could not load shockwave flash"

I figured out that my processor (amd athlon xp 2200+) does not support the sse2 instruction set, which is required for the latest versions of flash. I followed the instructions here: http://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/getting-flash-plug-in-to-work-with-older-cpus-4175420481/

and it works now.

Quoting from the source:

  Check your CPU by entering this command in a terminal emulator:

    cat /proc/cpuinfo

  If the Flags line doesn’t contain sse2 (sse won’t do), then you need to use version 10 of the plug-in.

  Check that you do have the wrong version. In Firefox, enter the url about:plugins, in Opera opera:plugins, or in Chrome chrome://plugins, and see if Shockwave Flash is version 11.

  If (1) and (2) showed that you need to change the plug-in, there’s no need to uninstall and re-install: just changing the plug-in library file is sufficient.

  First find where the file libflashplayer.so is kept. The most likely places are /usr/lib/flash-plugin or /usr/lib/adobe-flashplugin. If it’s not there, look for a nearby folder with the name of you browser’s provider — e.g. for Firefox, that would be /usr/lib/mozilla — and that will contain a symbolic link to libflashplayer.so.
  Download the Flash package. Currently the address for the last issue of version 10 is http://fpdownload.macromedia.com/get...20_archive.zip
  If it’s not there, check at http://helpx.adobe.com/flash-player/...-versions.html
  Open the file with your archive manager (or at the command-line if you prefer). Inside is a folder called 10.3.183.20 and inside that is another archive flashplayer_10_3r183_20_linux.tar.gz and inside that is libflashplayer.so. Extract it.
  Now move it to the correct destination. The command will be

su -c "mv -f Downloads/libflashplayer.so /usr/lib/flash-plugin"

  or

   sudo mv -f Downloads/libflashplayer.so /usr/lib/flash-plugin

  Obviously use the correct addresses if mine don’t apply.


Lenovo IdeaPad S145 touchpad not working

I had this same issue. The problem is with the kernel. The kernel hasn't detected the touch pad. Firstly edit the kernel boot parameters. This is what i did to solve it -
EDIT: It is recommended to take a backup using cp /etc/default/grub /etc/default/grub.bak

sudo nano /etc/default/grub
Edit GRUB_CMDLINE_LINUX_DEFAULT to GRUB_CMDLINE_LINUX_DEFAULT="quiet i8042.nopnp=1 pci=nocrs"
Now save and exit.
Run sudo update-grub

The next steps will be to patch the kernel

Now run git clone https://github.com/pavlepiramida/elan_i2c_dkms.git
After that install make and dkms, so run sudo apt install make dkms
Now run cd elan_i2c_dkms
After that run sudo dkms install .
Finally, run reboot

Now, once you reboot, the touch pad should be working perfectly fine!
Glad I could help!


Shut down after YouTube upload is finished

Instead of using a browser, you can have a look at uploading via a script - you can then create another script which invokes the Youtube Uploader script and then calls the

sudo shutdown -h now

command.


Ubuntu 18.04 crash due to startup application

.xprofile is not there in a default Ubuntu install (at least not in 19.10). The program must have created it.

The error indicates that .xprofile attempts to load a tool, synclient, but it is not there.

This to me suggests you are using the more up-to-date libinput driver for mouse and touchpad rather than the more antiquated synaptics driver. synclient indeed is a tool that belongs to the synaptics driver. It is installed along with the package xserver-xorg-input-synaptics.

You have a few options.

Option 1. Do not use touchegg, which requires a somewhat older driver

You may then remove the hidden file .xprofile in your home folder and remove the software. The easiest way is with two terminal commands:

rm /home/$USER/.xprofile
sudo apt install touchegg

You can see the file if you check "Show hidden filed" in the file manager (you can do so with the hotkey Ctrl+H).

Option 2. Switch to the synaptics driver

I do not recommend this. General performance and experience using the synaptics driver remains to be awaited. This also requires changes to your system setup. You will also see that the number of configurable options in "Settings" - "Mouse and touchpad" will have greatly decreased.

Switching to the synaptics driver may be done by removing xserver-xorg-input-libinput and installing xserver-xorg-input-synaptics and rebooting. Reverse the changes can be done in a similar way.


I occasionally get this and find it very annoying. The only way I've found to get round it is to fall back to a TTY terminal and restart the graphical server:

Press ControlAltF1
Log in
Run: sudo restart lightdm

That should take you back to the login screen (or desktop if you have automatic login) and for me, this fixes things, albeit until the next time it happens.

There is almost certainly an underlying bug in here and it's probably in Compiz (if you're using the standard "Ubuntu with effects" desktop). You might find that the Ubuntu 2D desktop (selectable from the login screen) works more reliably but your mileage may vary.


[Left Alt]+Tab doesn't work or How to change a Level3 Shift to a normal ALT?

Try xev and xmodmap:

Run the command xev then hover your mouse over the black square.
Press the Alt key, and make a note of the following: My output was this (shortened): KeyPress event... keycode 64 (keysym 0xffe9, Alt_L), ... XFilterEvent returns: False
The important part is the keycode: Mine was 64, but yours is probably different.
Run the command xmodmap -e "keycode 64 = Alt_L" substituting 64 for whatever output you get (possibly 135 on your keyboard)
This should have changed it. If it has, you then need to run the following command: xmodmap -pke >~/.Xmodmap
Create a file called .xinitrc in your home folder (/home/username)
In that file paste the line xmodmap .Xmodmap. This should save it forever.

See this answer for details about remapping.

My pronouns are He / Him


How do I work around a "stack size specified is too small" error in Java on POWER8?

The way to change the stack size for running java on the command line is -Xss

In this case it is:  java -Xss1664k JavaApplication

If you are using Java applications that have configuration files (such as Cassandra or ElasticSearch) the stack size is often specified in the JAVA_OPTS variable of the configuration file.


I had the same error and I fixed it.

I guess you followed the same guide as me (https://gorails.com/deploy/ubuntu/14.04) and this one only works if you are using 14.04. What version and distribution are you using?. You can find it if you execute cat /etc/*-release.

If you look on like with VERSION, it look like this on VERSION="7 (wheezy)".
Next ting you need to do is edit /etc/apt/sources.list.d/passenger.list as root. So you can to sudo vim /etc/apt/sources.list.d/passenger.list and than change

deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main

to

deb https://oss-binaries.phusionpassenger.com/apt/passenger <Your version> main

in my case

deb https://oss-binaries.phusionpassenger.com/apt/passenger wheezy main

Than do `sudo apt-get update' Now you should be able to install nginx-extras passenger


What can you currently do with Ubuntu on Nexus 7?

It's not ready yet, for casual use.

I have experimented with transferring various image and video files to device, but didn't get useful results for video.  All media files tested worked perfectly on both Android and desktop Ubuntu.

See also: Installing Ubuntu on the Nexus7 > Known Issues

excerpt:

  Rotation doesn't work when the tablet is physically rotated
  Difficult to scroll in Unity
  No way to right click
  Suspend from power menu (button press) does not work
  Webcam doesn't work
  Bluetooth not yet working
  Sometimes 'button 1' gets stuck down
  Shutdown is slow, taking 10-15 seconds
  Onboard onscreen keyboard doesn't always show when it should
  On screen keyboard doesn't re-position in order to see input


Drag and drop from Ubuntu desktop to Ubuntu phone

Enable the developer mode in the system settings of your Ubuntu phone:

Open system settings, go to the bottom and tap About this phone, again to the bottom, and tap Developer mode and turn it on.

Now you'll be able to drag-and-drop...


I think this is a hardware problem, or can use "showkey" to check
keycode like this :
$ sudo showkey
in my computer,
Y: 21
PrintScn: 99


Yes, Windows will have no problem overwriting your current configuration. It doesn't even try to play nice if you have a dual-boot setup either.


Just because Ubuntu comes with apt does not mean that you can't use yum or pacman or whatever. However, that does not mean it's a good idea!

While it will work, it opens up a huge can of worms with package dependencies and similar -- yum and apt will not necessarily co-operate with each other, and might even fight over dependency libraries and the like, leading to your system possibly becoming a big heaping pile of broken packages and inconsistency. If you do this, it (first off) might not even work, and/or you run the risk of totally destroying your system.

Unless you know exactly what you're doing, and you're careful, installing and using yum as a package manager might end up with some very strange results. If you need to install a RPM package for whatever reason, it's best to use alien or a similar utility. Typically, though, using Alien is not necessary. Instead, most unavailable packages on Ubuntu can (typically) be found through PPAs, but be careful and only add PPAs from trusted sources/people.


Does the php file location in the LAMP server matter?

The problem you're seeing has no relation to location of your .php files, inside your DocumentRoot directory hierarchy.

The problem is you're calling the deprecated (for year) mysql_() API, rather than the mysqli-() API (notice the trailing "i" character after mysql).

This API has been deprecated for years + in PHP-7.0 was finally removed, so through PHP-5.6 you'd have received deprecated messages about this code, telling you to upgrade mysql_connect() to mysqli_connect().

As of PHP-7.0 all this old code was removed, so the old API calls now raise Fatals.

So the fix is to change all your API calls to the new API.

Do a find + grep on your entire code base + be sure you've changed all your files.

I you have many files you can use phpcs to find all incompatibilities + phpcbf to automagically fix most issues.


You essentially need 3 partitions. 2 ext4 and 1 swap. One 30 GB ext4 is enough for  Ubuntu system files termed as / (root partition). One swap can be as big or twice as big as your physical RAM. Another ext4 can be the rest of the disk as /home. This is where your personal files are to be stored. So, ideally the partition table will be / , /home, swap. Remember to install grub on the MBR, not on partitions. Your partitions will look like sda1, sda2, sda3. Grub will be in sda (no numericals).


Can't store passphrase in same session with eval $(ssh-agent) && ssh-add

Every time you do eval $(ssh-agent) && ssh-add, a new agent starts, so you need to re-authenticate yourself to it.

I think the best way is to store the SSH agent data permanently per session (in your ~/.profile):

export SSHPROC=${HOME}/.ssh/cur-proc.${HOSTNAME}
restart_ssh_agent(){
  . ${SSHPROC}
  kill ${SSH_AGENT_PID}
  /bin/rm -rf ${SSHPROC} ${SSH_AUTH_SOCK} /tmp/ssh-*
  ssh-agent > ${SSHPROC}
  cat ${SSHPROC}
  . ${SSHPROC}
  ssh-add
}

and add . ${SSHPROC} to your .bashrc.

Then you call restart_ssh_agent once (or when it dies for some reason) and then keep your credentials with the agent.


"99 99" permissions on Mac OS X shared drive

It looks like the files are owned by no one. So the command you should use is something like: sudo chown -R bobby:bobby /path/to/the/folder where "bobby" is your user name.


External monitor problems with Asus UX32VD in 12.04

You can't use HDMI or display port with Nvidia Optimus because they can only be used with the Nvidia Chip. I'm am having the same problem and bumblebee/optirun doesn't solve it.

You could still use your VGA port if you have one. Another thing you can try is changing to discrete graphics only mode in BIOS but this doesn't always work and if it does it decreases your battery life.

Nvidia is finally working on drivers to fully support Optimus in Linux. The driver will work with Linux kernel 3.5 and XServer 1.13 which are included in Ubuntu 12.10. I hope the driver will be finished soon and solve the pain with Optimus.


Splitting/Resizing a partition in GParted - got a key symbol next to the partition

The key you see means that the partition is mounted.
Unmounting a running Ubuntu system is not possible.

Boot from the Ubuntu installation Live media.
Open GParted - no partition will be mounted.

In case you mounted a partition intentionally,
Right-click the partition and select Unmount.
Now you can work on the selected partition.

By the way, Ubuntu 13.04 isn't supported anymore.
You should use Ubuntu 14.04 LTS or 15.10 instead !


I found a solution to the problem:

From this question on Super User, I used EasyUEFI to delete the menu entry that was not needed. This solved the issue.


Screen and webcam recording with nvidia-bumblebee

I was looking for the same thing, and came upon your question...

One alternative would be to look at Python programming and make your own thing. This site has a Python script for recording your screen, and then recording from a cam is easy. I'm sure there's a way to add the two and display them in a Qt widget or something such. A bit too much effort for my taste at this moment...

The other alternative I have found was http://www.screencast-o-matic.com/ which has webcam recording, but I haven't had time to try it out yet. If you do, let me know, OK? :)


Compiz is a window manager.  KDE has its own, KWin.  If you switch to Compiz, KWin is replaced by Compiz, and Compiz has its own window decorations.

Logging out and in doesn't keep Compiz because you haven't set Compiz to run at startup--you just started it manually.

I'm not sure what you're wanting here.  Your question isn't very clear.  KWin has its own magic lamp-like effect built-in.  Have you tried it?


Installing Lubuntu 20.04 with GPT and EFI

How you boot install media, UEFI or BIOS is then how it installs.
You must boot in UEFI mode from UEFI boot menu.
Some tools to create USB flash drive installer also only create one or the other. So only create flash drive installers in UEFI boot mode, if using one that only makes one version or the other.
Shows live installer with screen shots. Both BIOS purple accessibility screen & UEFI black grub menu screen, so you know how you booted:
https://help.ubuntu.com/community/UEFI
The new 2020.10 installer now uses grub for both BIOS & UEFI, but seems to want to make all drives as gpt.
Shows Rufus UEFI menu:
Unable to access Ubuntu from UEFI


I only see one obvious data Linux partition where you must have /. If you had put /home on its own partition perhaps you eliminated it from your disk when you partitioned it for Windows or created the swap partition. In that case I'm sorry, but it's gone unless it was located in part of the disk you haven't reformatted with a Windows partition.

Did you have trouble making all of the partitions and have to use /dev/sda2 in order to create /dev/sda5 for your swap partition?

If /home wasn't in its own partition it may be that something is awry with the mounts your system is doing and you are mounting an ntfs partition over /home, making the data in the /home directory in your root partition invisible. If that's the case you should be able to use:

sudo umount /home

and the data in the /home directory of your / partition should be visible again.

If that's the case you may find an entry in /etc/fstab you could comment out.


Rough guide on how to partition when installing ubuntu 12.10

You can go with the Ubuntu default or the following makes sense:

Swap - 2GB
/ (a.k.a. "root") - 50GB
/home - the remainder

The swap is perhaps excessive but since we don't know your future memory consumption at installation, why not be generous/prudent with 512GB?

The root ("/") is where your system and other program files will go and 50GB is more than sufficent.

The rest is for "home", where all your user files will go.

You can do all this via the "do something else" option in the Ubuntu installer, or in advance with GParted live (stick it on a USB - it's a mini Debian with GParted on it).

If you go with the Ubuntu default (assuming you want to occupy the whole disk), it will create a swap and also a root partion that occupies the whole disk. This is fine but having a separate home partition is better should you have problems later on.


Is it possible to direct a single audio stream to a separate output device?

To supplement what StallionSA wrote above, you do need a second audio device, but it does not have to be a sound card in the physical sense of a card which you insert into a slot on your mainboard.

If you do  a search on the web you will find many USB "sound card" devices  which could be used to connect your headphones and these range from budget to some quite expensive USB DACs specifically designed for quality headphone listening.

Once you have your USB sound card plugged in (which should in most cases be plug and play to use so long as it conforms to the USB audio conventions) you then would then need to configure /etc/modprobe.d/alsa-base.conf.

to set the USB device to default ALSA sound card 0, and the other as sound card 1, and then use pavucontrol to direct the application streaming the radio station to the sound card to which the speakers are connected.

It is also possible to do via the environmental variable PULSE_SINK at the time of launching the application, eg in a Bourne shell

PULSE_SINK="alsa_output.usb-Creative_Technology_SB_X-Fi_Surround_5.1_000004it-00-S51.analog-stereo" mplayer "http://mozart.wkar.msu.edu/wkar-fm-mp3" &

The list of available sinks (Pulseaudio term for output device) can be found using

pactl list short sinks


Is there a way to not have a default keyring?

The key ring is for mostly the machine usage, it controls access to things that require root user privileges. Disable it by making the password blank anyone can do anything any time they want on your machine without a password. As you have discovered an OS that takes security seriously is inconvenient to use at times.


At a high level, the key part of creating is a preseed file that can specify options that the installer asks you. An example preseed file can be found at the debian website. The example provides most of the options that you may want to modify.

When it gets down to implementation, there are a few more steps to be followed:

Obtain the image. You can choose between a full image and a mini iso which downloads a fresh copy of packages off the internet. The process is slightly different, but mostly analogous.
Once you have the image, you need to extract files from the iso. There might be a one-step way to do this, but this is how I've always done it like this:

sudo mount -o loop -t iso9660 mini.iso /mnt
cp -rf /mnt /path/to/extractdir
sudo umount /mnt

Now you create the preseed file that you want to use. In the mini iso, since you don't really have a hierarchy, just put it in the root folder. In the regular server install, put it in the preseed folder. It is your choice where you want to put it/what you want to call it.
Once you have the preseed, you need to specify it to the kernel. In the mini iso, you need to edit text.cfg, or in the full install, isolinux/text.cfg to include your preseed by editing the APPEND line as follows:

APPEND arg1 arg2=value2 arg3 ... file=/cdrom/path/to/preseed/file locale=en_US console-setup/ask_detect=false console-setup/layout=us --

Don't remove existing values unless you know what you're doing

Once you're done modifying the preseed and text.cfg files, you need to repack things as an ISO. To do this, you need to put isolinux on the CD to make it bootable. Now, cd to the root directory of the extracted image, and do the following [taken from the syslinux website:

cd /path/to/extractdir
mkisofs -o output.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -T .

You need to add the -l (or -iso-level 2)flag to support longer file names.

Your iso is at output.iso and ready to be burned!


You reversed the symlink for creating a .vimrc in ~/.vim. It should be:

ln -s ~/.vimrc ~/.vim/.vimrc

Edit: Try using the absolute location. This is for creating a symlink of /home/username/.vim/.vimrc into /home/username/

ln -s /home/username/.vim/.vimrc /home/username/.vimrc


Invalid filename extension in apt sources.list

Run in terminal

sudo rm /etc/apt/sources.list.d/yandex-browser*

and the problem should be fixed.

Some script or you corrupted some sources.list files while installing Yandex Browser.


Wireless driver stops working after reboot

Please do:

sudo su

echo b43 >> /etc/modules

exit

Now it should connect on boot.

Thanks


sudo apt-get install mail-stack-delivery.  Also see https://help.ubuntu.com/community/MailServer.


problem with ubuntu 12.10 as it is not showing up in boot menu

just reinstall the bootloader, GRUB2, but you must do it via live cd ubuntu.. or you can read guideline from this http://ubuntuguide.net/how-to-restore-grub-2-after-reinstalling-windows-xpvistawin7


Access NTFS partitions without providing root password?

If you feel that you dont want to enter password on mounting and unmounting then one way is to edit sudoers file.

sudo visudo

Add the following two lines at the end of your file.

username ALL=(ALL) NOPASSWD:/bin/mount
username ALL=(ALL) NOPASSWD:/bin/umount

If you want to automount your drives at startup then install pysdm


Connect Canon Selphy CP1200 via USB - Ubuntu 19.04

I finally figured out the problem. It seems that it was a conflict between CUPS and lpusb. The solution was to disable lpusb by running sudo rmmod usblp. I'm not sure if this has and negative side effects, but it seems to have solved my issue. Once I did this I was able to go to http://localhost:631 and add the printer. There are some details about this problem here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=545288


Web Mail client setup for postfix server

A simple solution is squirrel mail:

https://help.ubuntu.com/community/Squirrelmail

Certainly not the best web mail client ever, but easy to set up and reliable. A more fance client is roundcube. The roundcube package is included in the multiverse repository.

Both solutions need an IMAP mail delivery agent. So you might need the dovecot-postfix package or something similar.


I Git Cloned a project into my localhost folder? Now what?

The git sources include all files to create a docker image including a webserver (which is nginx in this case). These files are not needed if you have a webserver already installed, in your case apache2.

In general, it is not a good idea to clone directly to your /var/www folder, as git always produces some files that should not be accesible through the webserver.

What you can do now:

Move the folder 'contact-form' to /var/www/html and remove the git folder.

mv /var/www/html/Simple-PHP-Contact-Form/contact-form/ /var/www/html/contact-form/
rm -Rf /var/www/html/Simple-PHP-Contact-Form/

Then you can point your browser to http://localhost/contact-form

I'm not sure if it will work out of the box without docker, because the documentation says something about smtp service.


Unable to run .jar file using .desktop file, even though it runs from terminal

The comments above got me thinking, and a little searching on askubuntu led me to the answer - the terminal parameter is wrong.

The problem is fixed by changing it to:

Terminal=false

Clearly running Java is a little different from running a .sh.

Thank you to all for your assistance.


Recommended storage scheme for home server? (LVM/JBOD/RAID 5...)

Like you I'm going through a rationalisation process with the disks in my home server.  I too have a mix of disk sizes resulting from the organic growth of the JBOD setup I have.

I am taking the LVM route for the following reasons.

Its the simplest
It allows me to reuse the disks I already have in the server
I have a complete backup of all the data that I am confident I can restore from
I am not concerned about the recovery time in the event of a disk failure

For me the clinching factors are #3 & #4.


Can't hear anything through the speakers

Your volume was in 0 which prevented you from hearing anything:

$ amixer -c 0 -- sget Master
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 0 [0%] [-64.00dB] [on]

You have two options, using alsamixer which is in the alsa-utils package:

 sudo apt-get -y install alsa-utils && alsamixer

And use the nice curses to modify your volume, or doing directly with amixer as pointed out in comments:

amixer -c 0 -- sset Master 100%

Using decibels is valid too:

amixer -c 0 -- sset Master -24dB

Then check your system volume manager to check that the volume is correct and rock your world!


Limit bandwidth for background applications on slow network

Just create a firewall profile that blocks everything except http and dns and set your update mirror to one that only accepts the ftp protocol:

Firewall configuration:

apt-get install gufw

Now go to the dash, and type firewall and click the sole icon remaining and you'll see:

Begin warning: From now on, until you see End warning, you will not have access to the Internet!

Take the "public" profile (or another one you're currently now using) and set everything to "reject" (as in the picture above)
Click the + below "rules" and click on the "Simple" tab and fill out the screen as follows:

and press Add

Then fill out the screen as follows:

and press Add, then Close

End Warning

Your rules section should now look like this:

Mirror config

In the Netherlands, there is only one mirror that supports ftp only: Ftpserv-tudelft-nl, for all other countries, look here for the full list and choose your own.

Now go to the dash again and type Software Updater and again, click the sole icon available, click Settings, the "Ubuntu Software" tab, "Download from:" and choose Other, take the country of your choice and the server of your choice:

And voilà: you can only surf the Internet and nothing else can happen any more! No updates, no email, no Skype, no FTP, no HTTPS, no nothing! Only DNS look-ups and web surfing  If you would like to have more then the absolute minimal available, have a look at IANA assigned port numbers and add any other protocol numbers you would need.

To revert back to normal use:  just open the firewall in the dash again, Click on Public and then click on Home and you're back to where you were!


dotnet-sdk-5.0 not found on Ubuntu 20.04.2 LTS

So, I was able to, finally, install version 5 by adding the repo for 20.04
sudo apt-add-repository https://packages.microsoft.com/ubuntu/20.04/prod

While the installation successful, there were still some errors
E: The repository 'https://packages.microsoft.com/ubuntu/20.04/prod disco Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Skipping acquisition of configured file 'main/binary-i386/Packages', as repository 'https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease' doesn't support architecture 'i386'


You can try the procedure on this eHow article to reinstall your grub bootloader.
http://www.ehow.com/how_8680603_reinstall-grub-2.html

"Click the "System" option, then select "Administration" and "Boot Repair." This will launch the "Boot Repair" graphical interface."

You can also install "Boot-Repair," if you do not have it. It is nice and GUI, and it does a good job.

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

Checkt this link out.


bash: screen command: detach process renaming it and showing the changes in the gnome-system-monitor

You can make a symlink to the screen binary like this:
ln -s `which screen` my_special_screen

And then run it:
./my_special_screen -dm /processpath

The -t name option is only useful when selecting a screen process to attach to with screen -x if you have multiple screen instances running.


Lets first check your file system for errors.

For 18.04 or newer...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
type reboot

Update #1:

Recommend to update BIOS from 1.09 to the latest 1.26. Then retry booting to the newer kernels.

Update #2:

Turns out that the user has a 64-bit computer (as Ubuntu Live 18.10/19.04 DVD/USB boots fine), that has an i386 version of Ubuntu 18.04 installed. There is no direct upgrade path from i386 version to 18.10/19.04. You need to backup your important data, install a fresh copy of 18.10/19.04, and then restore your data.


pdbedit failed during openldap user creation with samba support

I tried following command to add a testuser account with group ID of 10000:

sudo smbldap-useradd -a -P testuser

got error:

Can't call method "get_value" on an undefined value at /usr/sbin/smbldap-useradd line 231, <DATA> line 466.

Looking at the script /usr/sbin/smbldap-useradd I found that I have to specify a group ID for this new user. So next command:

sudo smbldap-useradd -a -P -g 10000 testuser

Where 10000 is the group id of intended LDAP group. I got this error:

Error: SID not set for unix group 10000
check if your unix group is mapped to an NT group

I went a head and sync the usergroup by going to "Samba Windows File Sharing" module of webmin, and added a samba group which also connected to the Unix/LDAP group that has id of 10000. A screenshot in case someone is still confused:

And the problem solved :-)

I also went ahead and setup users and group sync in "Samba Windows File Sharing" to prevent future manual handling of the SAMBA groups and users.


After a system freeze and "hard" restart, laptop monitor no longer works in a dual monitor setup

Followed the bottom solution from this post:
Update to nvidia-drivers on Ubuntu 18.04 makes my laptop display not accessible but external display is working.
For whatever reason, deleting xorg.conf did the trick. (So far, anyway)
EDIT: So when I went in to the NVIDIA server thing and enabled G-Sync on my 2nd monitor, it made a new xorg.conf file. As a test, I rebooted my machine and the problem returned. For whatever reason, my machine/NVIDIA drivers do not like enabling G-Sync on a G-Sync Compatible display. (That, or having the xorg.conf file to begin with causes problems. Not sure)


Unable to boot into Ubuntu 12.10 installed outside windows 8

This is because Ubuntu doesn't support Secure Boot. (it is not signed) All Computers that came along with Windows 8 have Secure Boot enabled.

Check your BIOS Setup and search for Secure Boot. Set it to [Disabled]. If you can't find it, search for a BIOS/EFI update on the internet.

As soon as you've disabled Secure Boot, you should be able to boot Ubuntu.


In my case, the names of folders have bracket characters. I removed these characters and that solved my problem. I don't know if this is the problem in your case.


Still cannot load windows 10 even after using boot-repair

In your pastebin, it's mentioned that:
Please disable SecureBoot in the BIOS. Then try again.Do you want to continue?
So you should disable secure boot in your BIOS completely.
Also make sure that Windows 10 and Ubuntu are both installed in EFI mode.


How to get OpenGL Shader Language 1.4 working with Intel HD Graphics 4000? (Trusty/14.04)

The Intel Linux graphics stack currently only supports up to 3.3 core profile


Is there a way to clone my desktop ubuntu to my laptop?

How to make a disk image and restore from it later?

-This may help, if you're looking to make a disk image of your whole system, therefore allowing you to restore another machine using the image.


This worked for me:

Remove the temporary socket: rm /tmp/mongodb-27017.sock
Restart mongo daemon with sudo: sudo service mongod restart

Then, the logs announces mongo is initialized and listening on port 27017 and mongo shell can connect.


Is it possible to burn an ISO disk along with some documents

That would be much better using a LiveUSB instead (Install Ubuntu on USB drive).  You can apply persistence to it, which will permanently save your documents on the USB drive, until you delete them!
USB is also a LOT faster than CD.

Try and install Ubuntu on your drive from "USB creator", installed on Ubuntu.
Persistence does not work on every computer, however.  Although you could still use a Live-USB installation (Files resetted at logoff), and store your files on the same USB drive.  Ubuntu only reset specific folders where it is installed on the drive.  You can still use the drive for storing stuff, even if you have Ubuntu installed on it.


Samba problems with recent update: cant access servers, keeps asking for credentials

It was a bug.

http://www.ubuntu.com/usn/usn-2950-2/

Simply updating the packages (after they submitted the fix) fixed it.


maas-import-pxe-files –sources-file  Can't connect to the region

Same issue here...

I installed 2 days ago and everything was fine until I get a message today saying that there is no boot image available (but they were downloaded back then...)

I thought it was a misconfiguration so I reinstalled everything, and I get the same issue.

I guess next time I will install a local proxy... there might be an issue currently with the structure of the remote repo ?

And yes I can resolve maas.ubuntu.com

seb@master-maas-controller:~$ ping maas.ubuntu.com
PING maas.ubuntu.com (91.189.89.122) 56(84) bytes of data.
64 bytes from citrusnobilis.canonical.com (91.189.89.122): icmp_seq=1 ttl=47 time=80.8 ms
64 bytes from citrusnobilis.canonical.com (91.189.89.122): icmp_seq=2 ttl=47 time=89.4 ms
64 bytes from citrusnobilis.canonical.com (91.189.89.122): icmp_seq=3 ttl=47 time=89.0 ms
64 bytes from citrusnobilis.canonical.com (91.189.89.122): icmp_seq=4 ttl=47 time=88.6 ms
64 bytes from citrusnobilis.canonical.com (91.189.89.122): icmp_seq=5 ttl=47 time=88.7 ms
^C
--- maas.ubuntu.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 80.818/87.356/89.434/3.290 ms

Any idea ?


Firefox’s urlbar blacked out on new user

"go to about:config, set gfx.xrender.enabled to false, restart the browser, and retry." from comment #23 here.

Apparently, the issue may not be limited to Lubuntu but be more of a hardware issue. See https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1314924.


Slower download speed compared to Windows on Ubuntu 20.04

From the comments...

20.04, booting from the 5.4.0-29 kernel netted very poor ethernet download speeds
tried the r8168-dkms driver with no improvement in download speeds
updating to a 5.6.11 kernel and the download speeds were back to normal, but the Nvidia/CUDA stuff broke, no surprise, and will need an update
rebooted to the 5.4.0-29 kernel and confirmed that Nvidia works again, and download speeds reverted
purged the 5.6.11 kernel packages
no newer 5.4.0 kernels were available to install
booted to an older 5.4.0-26 kernel and download speeds were still low
Summary... the 5.4.0 kernels don't work well with this (version 15) r8168/r8169 ethernet card

Update #1:

Removed nvidia driver and installed nvidia-dkms-440 from their repository and then installed 5.5.19 and the driver built just fine on this kernel version. And now both my internet and my graphics card are working.


Does the touch interface on new Windows 8 computers work in Ubuntu?

If it has a touch interface, it will be supported by Unity. But you'll have to check the hardware compatibility (drivers,etc).

But don't be "afraid" by the touch screen.


Cannot umount /tmp. Both fuser and lsof show nothing locking that LV

Your only option here is to power down your system and boot to an alternative environment or LiveUSB.  There's no lsof or fuser command that'll list that the SystemD system is using /tmp for storage of things.
SystemD among other things (critical system processes and such) all write to /tmp - this is USUALLY why you don't create LVs or anything for /tmp and let it live in volatile memory which is much much faster than writing to the disks for temporary files.
The recovery environment also uses /tmp because of the kernel and such and critical systemd resources writing there.  This is where you will need to go into your system from the other boot disk, activate the LVM environment, and then resize your LVs from there when there's no data being written or used in your special /tmp LV.
I would also recommend that unless your RAM is at a premium, you remove the /tmp LV and replace it with a tmpfs that lives in RAM and is erased on reboot. This is why /tmp is usually not on-disk but a tmpfs in most installs.


Fail2Ban or DenyHosts to block invalid username SSH login attempts

First, define the filter for invalid users in filter.d/sshd-invaliduser.conf:

[INCLUDES]
before = common.conf

[Definition]
_daemon = sshd

failregex = ^%(__prefix_line)s[iI](?:llegal|nvalid) user .*? from <HOST>(?: port \d+)?\s*$
ignoreregex =

[Init]
journalmatch = _SYSTEMD_UNIT=sshd.service + _COMM=sshd

Then enable it in jail.local:

[sshd-invaliduser]
enabled = true
maxretry = 1
port    = ssh
logpath = %(sshd_log)s
backend = %(sshd_backend)s

This works with fail2ban 0.9.6-2 on Debian 9.


There's no harm in working with your various data files (e.g. documents, music, pictures, videos) in your Windows partition(s) when you're in Ubuntu as long as you keep away from Windows system files, applications files, etc.
You should only consider which applications you should use for which file formats carefully in view of different levels of compatibility.


Can I download a version of Ubuntu on to a disc?

Yes, you can.

Go to https://ubuntu.com/download/desktop to download the latest desktop version of Ubuntu

It will download an ISO file. You can burn the file onto a blank CD using. Here is a link to a tutorial on how to burn an ISO file onto a disk.


this line in my script got me the current (which as you now realise can change) xinput numbers from the names, in this case anything with ELAN0732. my results here is 14 and 15.

xinput --list  | sed -n 's/.*ELAN0732:00.id=([0-9]).*/\1/p'

so you can set result as a variable and setpprop from that most likely using the first one to come up, 14 for me there.


How can I solve "The repository 'cdrom://Ubuntu 20.04.2.0 LTS _Focal Fossa_ - Release amd64 (20210209.1) focal Release' does not have a Release file"?

Open Software & Updates, in the Ubuntu Software tab, uncheck Cdrom with Ubuntu 20.04 'Focal Fossa' under Installable from CD-ROM/DVD


Ubuntu 14.04 LTS and Broadcom Corporation Wireless 1395 WLAN Mini - Cant Find my Wifi Network

A friend of mine figured it out. I had to change my Channel from 13 to 11 (anything below 12 should work).
It seems my laptop or at least the wifi card was made in the USA and there Channel above 11 are used/were used for something else. So their wifi cards only check up to 11.


error in make: /usr/bin/ld: cannot find -lGL

Running the following commands should solve the problem:

sudo apt-get install mesa-common-dev
sudo apt-get install freeglut3-dev
sudo apt-get install freeglut3


Even I am running ubuntu 12.10 64 bit on my Asus notebook and I must say its supercool.

The model number that you have specified does not have a dedicated GPU so maybe you cannot use bumblebee or something.

I also owned a HP before, and I must say it gave me heating problems too.

Do you have any memory-eater heavy-on-gpu package like compiz enabled?

try jupiter, a power management app for linux distros

type these in terminal

sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter

Hope it helps


The wget command does not add a ppa in the first place, it simply downloads files over http. The command you posted simply downloads Wine from the internet.

However, if you find you would like to remove a source manually, you can do so by opening /etc/apt/sources.list and removing the line that contains the source.

You can do this using the command sudo nano /etc/apt/sources.list. Sudo is used as you require root privileges to edit the file.


The built-in Ubuntu Firewall called Iptable.  By default iptable allows all traffic. So, you need to configure based on your needs :)

Here Is Basic Commands on Iptable

Typing

sudo iptables -L

lists your current rules in iptables. If you have just set up your server, you will have no rules, and you should see

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Please see the whole how to on help.ubuntu.com

A simple iptables script

#!/bin/bash
# flush all chains
iptables -F
# set the default policy for each of the pre-defined chains
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
# allow establishment of connections initialised by my outgoing packets
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
# drop everything else
iptables -A INPUT -i eth+ -p udp -j DROP
iptables -A INPUT -i eth+ -p tcp -m tcp --syn -j DROP
# accept anything on localhost
iptables -A INPUT -i lo -j ACCEPT

I have network interfaces on eth0 and eth1, so this script has rules which cover both; if your interfaces have different names, you will need to edit the rules to cover that. This drops everything incoming, except for connections which were initially established by my outgoing packets (thanks Luke! - see comments); which means it's no good for servers.

I put this script in /opt/scripts/iptables.script and made it executable. Once you run it, you can find out whether it has worked by displaying your current iptables rules with:

sudo iptables -L -v

I then created a simple init script to start/stop the firewall in /etc/init.d/firewall:

#!/bin/bash
if [[ $1 == start ]] ; then
  sudo /opt/scripts/iptables.script
else
  sudo iptables -F
fi

Then I symlinked this into my /etc/rc.* directories using the update-rc.d tool, so the firewall starts before the network comes up:

update-rc.d firewall start 20 2 3 4 5 . stop 99 0 1 6 .

Source

Hope this help :)


Opening a new terminal and executing command in it

In your home directory is a hidden file named ".bashrc"
Open it with your favourite editor and add at the very end :

ls -la

Save it.
The next time you open a terminal it will list all the files in your directory. As ls -la is just an example, you could put any sensible command there


I had faced same issue in my windows and ubuntu pc previously by using kvm switch 2 port. The cursor and mouse worked in windows ,and not in ubuntu pc. So I solved by below step,

switch to windows to ubuntu pc by clicking kvm switch button.
then check in ubuntu pc, There cursor and mouse will not work. This is the issue.
In windows pc, press windows key + l. This will logoff the windows pc.
then check cursor movement in ubuntu, It will work.

Try this solution in ur pc.


How to install a program in a 'system location'?

The system location that you need to install it can vary. Your best bet would be to install it using a package manager like apt-get.

Check the ecCodes packages available here. It appears that there is only source code available in the repos though.


I want to change the position of the launcher items

Left-click and hold your application icon for couple of seconds then move it over the launcher to desired place.


How to make bootable ubuntu from installed pc?

There is a simple way to do this within Ubuntu. Here is a guide on the official site.


How can I change display resolution on an GMA 900?

The GMA900 should support the 1280x780 resolution according to the product spec page from HP.

Try installing a graphics driver using the 'Additional Drivers', search for it in the dash and run it.

It will let you know what driver may be available.

You may also have to follow the advice on this related question Getting drivers to work for intel gma 950


I "fixed" it by:

apt-get remove consolekit

consolekit is no longer actively maintained.
As far as I'm aware there is a fork named consolekit2 and apparently
for systemd users basically the same functionality is included in systemd-logind. As I'm only using a vm without desktop, no replacement is needed at all.


How to remotely backup a MySQL database?

tar cannot create an archive with data received from standard input, so you must first dump the database and then tar it. To save space you can compress the dumped data on the fly.

Install mysql-client (apt-get install mysql-client) on the remote machine and run mysqldump from there:

mysqldump -h <server-hostname-or-ip-address> <options> <database-names> | bzip2 > dump-`date +%F-%H%M`.bz2

If you really need a tar archive, tar the bziped file:

tar cf <archive-name>.tar <bziped-dump>.bz2

or add it to an existent archive:

tar rf <pre-existent-archive-name>.tar <bziped-dump>.bz2


What is the file named linux_signing_key.pub in the home folder and can I delete it?

An answer in the Ubuntu forums helped:
Short version: Usually it is a PGP key and it can be safely deleted.
Details: I installed a new PPA/repository to the software sources recently. The install process and configuring of the new software source included downloading the signing key for that source and then importing the key. Probably I did it by copy/pasting some terminal commands. The linux_signing_key.pub is the key I downloaded, and assuming it imported without problems I don't need the file any more and can delete it.

Software repositories uses PGP keys to verify that the programs you download actually come from the sources you have configured on you computer, and nobody has messed around with the files.


Is it necessary to change the governor in Ubuntu Server 16.04?

I sure would. You can do that in your BIOS, if you have access to it, which you launch with F2 after  the POST completes.

A good description of your options is shown at

https://www.thomas-krenn.com/en/wiki/Disable_CPU_Power_Saving_Management_in_BIOS

Once you get into the BIOS/Firmware settings, choose

-> Advanced CPU Configuration
   -> Advanced Power Management Configuration

Change Power Technology to Custom and
Energy Efficient Turbo to Disable.

Switch to CPU P State Control,
deactivate EIST (P-States) and
Turbo Mode.

Then switch to CPU C State Control,
change Package C State Limit to C0/C1 state and
deactivate CPU C3 Report, CPU C6 Report and Enhanced Halt State (C1E).

Then, save and exit from the BIOS and boot.


Display "Fn lock" OSD when "Fn + EscFnLock" key is pressed in thinkpad using Ubuntu

It probably won't be possible. The Fn-key is not a "key" that is recognised by the OS. It is used to access BIOS functions directly or modify other keys on the keyboard.

As the OS does not know about Fn, it is unlikely that it does know anything about FnLock.


Re-install Ubuntu without losing data in home folder

Ever since Hardy (Ubuntu 8.04) you can reinstall Ubuntu without losing data in /home even without a separate /home partition.
See
https://help.ubuntu.com/community/HomeFolder
https://help.ubuntu.com/community/UbuntuReinstallation

Preserving home when reinstalling Ubuntu
Since Hardy, Ubuntu can be reinstalled while preserving home even without separate /home: see UbuntuReinstallation.
Few people know it, but since Hardy it's possible to reinstall Ubuntu without losing the content of the /home folder (which contains program settings, internet bookmarks, emails... and all the documents, music, videos that you have put in it). Even if /home is not on a separate partition

Of course, you should always have a backup of your data.


Suddenly unable to write and delete files in external harddrive

not really a solution, but this tends to happen to me when windows doesn't shut down properly, eg. freezes and I have to force restart. booting windows and restarting properly usually solves it for me.


This is an issue with Mac OS Sierra incorrectly encoding the PDF file, that causes GhostScript (which is what convert uses behind-the-scenes to do the conversion) to throw such an error.

You can instead try to use pdftoppm which in my experience creates better quality pngs as well

Install: sudo apt-get install poppler-utils

Usage: pdftoppm input.pdf outputname -png


14.04.3 Live USB not booting only on desktop

The 32bit image doesn't work with UEFI (Unless you have Legacy support enabled). Also, try plugging the 3.0 stick into a 2.0 port and see if it works. – the_Seppi Dec 8 '15 at 12:08


Couple of comments. The *.run you are trying to  download has x86 in the file name, meaning it is for 32-bit OS, so that is one thing to keep track of. If your OS is 64-bit, you may need to install libc6:i386 . More on that here

Second, in my tests running the file requires full path to the file, not just ./qt*.run. I cannot explain why it does it that way, but it just does.

Bellow is a small script I wrote that determines correct OS version, downloads appropriate version of QT, and installs it from $HOME/QT folder. Perhaps a little verbose, but it should ease the manual labor.

#!/bin/bash
# set -x

printf "Qt INSTALLER SCRIPT STARTED\n"
ARCH=$(uname -m)
printf "Your OS is %s \n" $ARCH

if [ $ARCH = "x86_64" ];then
  FILE="qt-opensource-linux-x64-5.4.1.run"
else
  FILE="qt-opensource-linux-x86-5.4.1.run"
fi

cd $HOME

if [ ! -e QT ];then
  printf "CREATING $HOME/QT folder\n"
  mkdir $HOME/QT
fi

cd $HOME/QT

if [ ! -e $FILE  ];then
    printf "DOWNLOADING BINARY  to %s\n" $(pwd)
    wget http://download.qt.io/archive/qt/5.4/5.4.1/$FILE
fi

echo $PWD
chmod 755 $FILE
$( readlink -f $FILE )