Inspired by this post I use

scroll.sh

#!/bin/bash
while true
do
    xte "key $1"
    sleep 0.1
done

and ~/.xbindkeysrc

"~/scroll.sh Down"
  b:8
"killall scroll.sh"
  b:8 + Release
"~/scroll.sh Up"
  b:9
"killall scroll.sh"
  b:9 + Release

You should probably replace propper buttons b:10 and b:11 instead of mine.

then run

killall xbindkeys
xbindkeys

Update
Recently I use https://github.com/philipl/evdevremapkeys which allows scroll mapping and a lot of other things.
It requires root though.
Sample configuration:

# ~/evdevremapkeys.yaml
devices:
- input_name: 'Compx 2.4G Receiver'
  input_phys: 'usb-0000:00:14.0-3/input1' # replace with your device
  output_name: remap-mouse
  remappings:
   BTN_EXTRA:
   - code: REL_WHEEL
     type: EV_REL
     value: 1
     repeat: true
     rate: .1
   BTN_SIDE:
   - code: REL_WHEEL
     type: EV_REL
     value: -1
     repeat: true
     rate: .1

Run python3 evdevremapkeys.py -h to find your device.
Start with sudo python3 evdevremapkeys.py -f ~/evdevremapkeys.yaml.


Error while starting apache2 "Cannot access directory '/var/log/apache2/' for main error log"

Fixed

I just created the directory and gave it write permissions:

sudo mkdir -p /var/log/apache2/
sudo chmod -R 744 /var/log/apache2/


Why is 'gedit' going back to default tab sizes all the time?

In gedit's menu, go to Edit -> Preferences. When the "gedit Preferences" window pops up, click on the "Editor" tab, and you'll be able to change the Tab Width setting.


Using iptables -t nat -A PREROUTING -p tcp --dport 25565 -j MASQUERADE instead of second command does not work either :/


Nautilus open files in a running GVim instance as tab

Ok i managed it myself with the alacart application. Here are the steps:

(install and) open alacarte
locate GVim (utilities)
change the command field in the settings to 'gvim -f --remote-tab-silent %F'


Aircrack-ng 1.1 is in the official Ubuntu Repository

Open a terminal by pressing Ctrl+Alt+ T

Then copy and paste the following command in the terminal.

Then press Enter.

sudo apt-get install aircrack-ng

Edit :

To resolve your problem, run a update before installation.

sudo apt-get update


The most probable reason is that the program, once running as a normal user, is trying to read some file or doing some operation which is reserved to privileged users (basically root).
For example, if your program is trying to using (binding) to one of the lower internet ports (less than 1024) it needs root privileges to do that (1). Or it try to read a file or use a library which is marked for root only.
The hammer(2) solution is to mark the program set-uid root (SUID-root). This is quite dangerous, it should be avoided by coding the program so it does not need it, and it is practically impossible to distribute --- I would never accept set-uid programs form unofficial sources in my computer, and even then I don't like them either. I am posting the answer because I think it's good to know that they exists.
So making sure that all the services/files that the program uses are accessible to it is the correct solution, otherwise probably the program must be run as root with all the consequences.
Big fat warning: this is dangerous, and SUID-root programs can do whatever they want to the system. If they have bugs, the user can easily take control of the whole system or destroy it.
If you make a program set-uid root, anyone can run it, and it will run as root. This will work only for binary executable; set-uid bit do not work for scripts (shell, python or whatever).
If you really want to run a script as root, you need a wrapper, as the one in this answer on stackoverflow. But before doing that, read all the question an be sure to understand the (not so) fine points about security. If you really want that script running as root for every user, I would opt for editing sudoers so that they can run it with sudo without having any password asked. This answer on stackoverflow lists a lot of ideas.
Example of set-uid usage: I make a copy of cat (output the content of a file to terminal), change it to be owned by root, and try to read a file owned by root and that only root can read:
(0)asus-romano:~/tmp/suidtest% cp /bin/cat .
(0)asus-romano:~/tmp/suidtest% ls -l ./cat
-rwxr-xr-x 1 romano romano 46884 Nov 21 09:49 ./cat
(0)asus-romano:~/tmp/suidtest% sudo chown root.root ./cat
(0)asus-romano:~/tmp/suidtest% ls -l
total 48
-rwxr-xr-x 1 root root 46884 Nov 21 09:49 cat
(1)asus-romano:~/tmp/suidtest% ./cat /etc/shadow- > /dev/null
./cat: /etc/shadow-: Permission denied

Now, I change the program to be suid-root (notice the s in the permission flags):
(0)asus-romano:~/tmp/suidtest% sudo chmod u+s ./cat
(0)asus-romano:~/tmp/suidtest% ls -l ./cat
-rwsr-xr-x 1 root root 46884 Nov 21 09:49 ./cat
(0)asus-romano:~/tmp/suidtest% ./cat /etc/shadow- > /dev/null

No error...
Again, do not do it unless you trust completely the program and the users.
(1) well, there are fine-grained privileges in Linux called capabilities, but are seldom used and quite complex...
(2) when you have a hammer, all things starts looking like nails...


So this prevented me from logging in to X after the upgrade because obviously ubuntu-desktop's dependencies like compiz were broken.

I fixed it by going to a plain text shell (Ctrl+Alt+F1) and then following this solution with a small tweak:

sudo vi /etc/apt/apt.conf
# add this line:   APT::Default-Release "vivid";
sudo apt-get -t vivid install apt/vivid
sudo apt-get update
sudo apt-get dist-upgrade


Unity crash after upgrade Ubuntu 16.04 to 16.10

The solution (as George helped me) was:
I run:
sudo apt-cache show lxde
to see what are the dependencies for lxde.

Then

sudo apt-get purge lxde

sudo apt-get purge gnome*

sudo apt-get purge lxde-*

sudo apt autoremove

sudo apt install unity

sudo apt install ubuntu-desktop

sudo apt-get dist-upgrade

Added etc/lightdm/lightdm.conf.d/50-myconfig.conf with contents

[SeatDefaults]
greeter-session=unity-greeter

to restore my login screen. Also upgraded to 17.04.


403 Forbidden -You don't have permission to access / on this server

Are all directories and files owned by www-data? The web server can only access them if he owns them. If not just do a

 $> sudo chown -R www-data:www-data wordpress/


I've had this same problem on 13.04 and 13.10.  I tried a number of different potential fixes with no luck until I finally gave up.  Well, I just upgraded to 14.04 LTS and this particular bug has been squashed!

You won't be able to upgrade from 12.04 to 14.04 directly until 14.04.1 is released.  At least, not using the standard upgrade options.  If you want to force it to update now, first back up all of your important data, then run sudo do-release-upgrade -d.


ssh hangs for ~15 seconds before connecting

Could be a DNS problem. Do you still get the delay if you use the IP adress instead of the host name?


To exclude some patterns, use the -x option at the end and use single quotes around the patterns so that the patterns are expanded by zip not by shell :

sudo find . -mtime +7 | sudo zip -m  archive-$(date +%Y-W-%U).zip -@ -x '/*excludestring1*' '/*excludestring2*'

To save the zip file to a different location, use the absolute path (or relative path) to the location you want to save the zip file :

sudo find . -mtime +7 | sudo zip -m -x /*excludestring1* /*excludestring2* /where/to/save/archive-$(date +%Y-W-%U).zip -@

Replace /where/to/save with the actual path where you want to save the zip file.

For example, to save it in /tmp/spam/ directory :

sudo find . -mtime +7 | sudo zip -m -x /*excludestring1* /*excludestring2* /tmp/spam/archive-$(date +%Y-W-%U).zip -@


How do I create a Fedora 16 live usb from Ubuntu?

Look here:

http://fedoraproject.org/wiki/How_to_create_and_use_Live_USB


Ubuntu Mate does not ship with software center by default. It instead ships with Software Boutique through which you can install/uninstall software such as GIMP.

If you want to keep GIMP around for other purposes, you can select file associations in
Control Center -> (Under Common Tasks on left hand side, select 'Set Preferred Applications') -> Office ->  Select Spreadsheets, word processor, and Document Viewer to suit your preferences

This will prevent GIMP being used to open files that you don't want to use it for.

You can install 'Software' from the 'More Software' tab inside the Software Boutique as well.


Hibernate is broken: where are the logs?

The relevant log files are all underneath /var/log:

pm-suspend.log
syslog

The output of dmesg may also contain valuable information, whether the failure occurs during suspension or wake-up.

You may also find How to debug suspend? interesting.


What is the difference between "gksudo nautilus" and "sudo nautilus"?

Taken from here:

  You should never use normal sudo to start graphical applications as
  root. You should use gksudo (kdesudo on Kubuntu) to run such programs.
  gksudo sets HOME=/root, and copies .Xauthority to a tmp directory.
  This prevents files in your home directory becoming owned by root.

Please note that this is primarily about configuration files. If you run Nautilus as root, even with gksu/gksudo, and you create a file or folder anywhere with it (including in your home directory), that file or folder will be owned by root. But if you run Nautilus (or most other graphical applications) as root with sudo, they may save their configuration files in your home directory (rather than root's home directory). Those configuration files may be owned by root and inaccessible when you're not running as root, which can severely mess up your settings, and may even keep some applications from working altogether.

The solution, once you have made this mistake, is to find the configuration files and delete them or chown them back to belonging your non-root user. Many such files start with a . or are contained in a directory that starts with a .. Some are located inside the .config folder in your home directory. To see files and folders that start with a . in Nautilus, press Ctrl+H (this shows hidden files.) To see them with ls, use the -a (or -A) flag.

To find if there are files not owned by you in your home directory, you can use the following command in a terminal:

find $HOME -not -user $USER -exec ls -lad {} \;

which will list all files under the home directory not owned by the user.


Unable to add nodes to MAAS Server running in VirtualBox

This method of installing is badly supported at the moment.  You need to PXE boot the node instead.

If you are using an external DHCP server, did you configure its "next server" setting to point at the MAAS server?  If that's not done, nothing will boot over the network using MAAS.


Merge two files depending on multiple matching columns

The most obvious thing you're missing is that your files are comma separated, but you use the default (whitespace) field separator.

What you seem to want is

awk -F, '
  BEGIN{OFS=FS}
  NR==FNR{a[$1 FS $2 FS $4 FS $5] = $0; next}
  {ind = $1 FS $2 FS $4 FS $5}
  ind in a {print $3, a[ind]}
' file2 file1 > file3

(separating the fields with FS i the associative array key string just guards against false matches; if you just concatenate fields you can't distinguish between "abcdef" and "abc""def").

Ex.

$ awk -F, 'BEGIN{OFS=FS} NR==FNR{a[$1 FS $2 FS $4 FS $5] = $0; next} {ind = $1 FS $2 FS $4 FS $5} ind in a {print $3, a[ind]}' file2 file1
rs140739101,1,69428,69428,T,G,0.013,0.538,D,0.999,0.764,D,0.984,0.745,D,-5.05,0.827,D,4.1000.550,23.7
rs150690004,1,69496,69496,G,A,0.404,0.103,T,0.401,0.331,B,0.061,0.254,B,-1.39,0.344,N,0.9700.187,10.49
rs75062661,1,69511,69511,A,G,0.652,0.048,T,0.0,0.026,B,0.0,0.013,B,1.54,0.007,N,-0.784,0.041,0.047


Start a megasync client gui. Right click on the indicator and choose "Settings". Then make sure that "Start on startup" option is checked in Account section. Hope this helps.


I got this in Lubuntu 15.04. It appears to be an issue with lightdm-gtk-greeter 2.0.0:

https://bugs.launchpad.net/ubuntu-mate/+bug/1426664

Unfortunately, the PPA for the fix in that post is not available anymore.

It appears to be available here:

https://launchpad.net/~lightdm-gtk-greeter-team/+archive/ubuntu/stable

The good news is that the fix is supposedly included in 15.10, which should be releaed in a few weeks.


OpenVPN setup with PIA - Connects but no internet

You have to add redirect-gateway to your configuration (or use openvpn --redirect-gateway):

--redirect-gateway [local] [def1]
    (Experimental) Automatically execute routing commands to cause all outgoing IP traffic to be redirected over the VPN.

    This option performs three steps:

    (1) Create a static route for the --remote address which forwards to the pre-existing default gateway. This is done so that (3) will not create a routing loop.

    (2) Delete the default gateway route.

    (3) Set the new default gateway to be the VPN endpoint address (derived either from --route-gateway or the second parameter to --ifconfig when --dev tun is specified).

    When the tunnel is torn down, all of the above steps are reversed so that the original default route is restored.

    Add the local flag if both OpenVPN servers are directly connected via a common subnet, such as with wireless. The local flag will cause step 1 above to be omitted.

    Add the def1 flag to override the default gateway by using 0.0.0.0/1 and 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of overriding but not wiping out the original default gateway.

    Using the def1 flag is highly recommended, and is currently planned to become the default by OpenVPN 2.1.


Cannot Activate Apache SSL (HTTPS Configuration)

SSL requires certificates, so you have to create/get one before you can run an https server. And I'm sure there will be error messages in the apache log files about the problem.


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

The only error is about a third-party repository that you added (GetDeb).
APT is working fine and the error prevents installing/updating from that repo only.

Any other installations/updates should work and no, it has nothing to do with (your) internet access. It's just the way those type of error messages were designed.


Can you ssh into the other machine as ubuntu?

ssh deploy.example.com -l ubuntu

If that doesn't work, the problem is in your security setup.

From my environments.yaml:

manual:
    type: manual
    # bootstrap-host holds the host name of the machine where the
    # bootstrap machine agent will be started.
    bootstrap-host: somehost.example.com

    # bootstrap-user specifies the user to authenticate as when
    # connecting to the bootstrap machine. It defaults to
    # the current user.
    # bootstrap-user: joebloggs

That says to me that the bootstrap-user is who you use login.  In your case, you need to login as 'training', not 'ubuntu'.  So try

ssh deploy.example.com -l training

Or, more to the point, try changing your environments.yaml to

bootstrap-user: ubuntu


Is there a way to upload folders instead of files to Ubuntu One?

No, that's not possible. Using the Ubuntu One client, you'll just add the folder and it'll be kept in sync, though.


I found "Software" not "Software Center"?

Canonical has decided to fork Gnome Software, tailoring it to promote its Snap package system.
As a result, it lacks support for Flatpak, and prioritizes the search for applications over Snap packages, which in my opinion generates some confusing cases, leading for example in some searches for pre-installed packages such as deb package to show a Snap package as the first result. and far below last, the pre-installed deb package. Unusual, in many cases even Ubuntu Software only finds the application in Snap.
Although Snap and Flatpak are for accessing certain applications and their versions, they are not an efficient replacement for most of the packages that make up a distribution, and particularly they are resources that I do not use because I estimate that they have a larger file size, a less integration with the desktop environment and a slower boot.
My suggestion is to install and use Gnome Software with the necessary plugins.
This requires:
Open a terminal and run:
sudo snap remove snap-store

sudo apt-get update
sudo apt-get install synaptic gdebi gnome-software gnome-software-common gnome-software-plugin-flatpak gnome-software-plugin-snap

You can also add the repository to manage Flatpak applications, running from the terminal:
sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update && sudo apt upgrade

I particularly prefer not to use anything from Flatpak or Snap, and I still use apt from the terminal, synaptic as GUI and in the case of independent deb packages gdebi, which resolves dependencies.


Using "Try Ubuntu" Option and can't get out of it

Windows will not be removed if you click the "on hardrive" option, it will give you an option to install Ubuntu, and also keep windows. To get back to the previous window either click the install button on the desktop on Ubuntu, or restart the computer leaving the pendrive in.


MacBookPro11,3 wifi issue with Ubuntu 16.04

I had the same issue with 12.10 on my macbook pro 11.3 I found the correct driver package off ubuntu website, while in OSX, and put it on a usb, then rebooted in ubuntu with rEFInd,  put it on my desk top, purged the old with:

sudo apt-get purge bcmwl-kernel-source

//then:

cd ~/Desktop

sudo dpkg -i *.deb

sudo modprobe wl

sudo apt-get update

sudo apt-get install bcmwl-kernel-source

sudo apt-get update

Then went into update manager it ran through some changes then into setting to see the driver then correctly displayed clicked on it hit apply, restarted and it worked like a dream. Here I'll upgrade myself real quick and see if I can get it working in 16.04 as-well I love fixing broke things.

/And yes I know I went into overkill with update, but once more wifi from
phone, kept loosing signal and didn't want to miss anything./

Yes, just updated myself, same process, you can find the correct packages in your install disk by mounting it from any other os you downloaded it on, or usb you hooked up to load it, and search for the bcmwl package grab the box and drag it onto your desktop then do the commands above, you will also need dkms, you can find either when the disk is mounted and your are viewing the files in the seach bar, then

cd ~/Desktop

sudo dpkg -i *.deb

sudo modprobe wl

sudo apt-get update


Do I need to install libcurl source package to use it for development?

Header files are usually provided by -dev packages, in this case that would be libcurl3-dev, which is a virtual package now provided by libcurl4-ssl-dev, which looks like it has header files. So install libcurl3-dev.


Automatically mount NTFS drive when I login

Notice: If you are using Ubuntu 14.04 and later, Don't forget to check the note at the end of the answer

Go to the Startup Applications, by Clicking right-top corner Settings icon ---> Startup Applications.

The click on the Add button, Write a name for this operation such as "Mount ntfs drives",
then in command input box, write this udisks --mount /dev/sda2, to automount the ntfs partition.
Note: You need to replace the /dev/sda2 with your actual NTFS partition number.
You can get this number by this command:
sudo blkid

Below is the output of this command in my computer.
/dev/sda1: UUID="89b18940-d5ff-4ce1-a85a-42cdd0369016" UUID_SUB="57d79ff6-7b53-44bc-82ec-ef783a23efc3" TYPE="btrfs"
/dev/sda2: LABEL="Main" UUID="A80C1BD70C1B9F7E" TYPE="ntfs"
/dev/sda3: LABEL="Work" UUID="01CCB271A80A07E0" TYPE="ntfs"
/dev/sda5: LABEL="Free" UUID="CA9A-4F0A" TYPE="vfat"
/dev/sda6: LABEL="Ubuntu" UUID="364126ac-01c9-4dd2-ab19-eecc733a9640" TYPE="ext4"
/dev/sda7: LABEL="Free2" UUID="ed26eebb-524b-4533-869a-9dbd2b92bd64" TYPE="xfs"
/dev/sda8: UUID="312d4cd9-21a9-4c0d-aa34-26230e70fa89" TYPE="swap"

For Mounting with Executable permission
For those of you (like me) who wants to have executable permission to be set upon mounting, so that you can have options for execute a file with double-clicking , Add this extra bit of options with udisks command.
--mount-options=umask=022

So, the total line for /dev/sda2 should be like this (tested on 13.04)
udisks --mount /dev/sda2 --mount-options=umask=022

Caution: If you are a bit worried with security, you may choose not to have this functionality.

Note: Change for Ubuntu 14.04 and later
If you are using Ubuntu 14.04 or newer versions, You may notice that udisks packages is no longer available there. Yes, it is replaced by udisksctl package. So, You need to use udisksctl instead of udisks. It is basically do the same things, but syntax is more easier.
The mount command is --
udisksctl mount -b /dev/sda2

(in the case your targeted partition is /dev/sda2) Here, -b is indicating that it is a block device
To enable executable permission ---
udisksctl mount -b /dev/sda2 -o umask=022

(Here -o indicating that following are options for udisksctl).
You can access the man page of udisksctl with man udisksctl command or read it online here!


Windows 10 Repairing Loop after installing Ubuntu

Most probably you need to do:

install ntfs-3g: sudo apt install ntfs-3g if not installed
determine what is your SSD and HDD partitions: run sudo fdisk -l and look for hdd device with the biggest size and ssd device with smaller size.
create folder for your hdd mount point: sudo mkdir /mnt/hdd
create folder for you ssd windows partition mount point: sudo mkdir /mnt/ssd
mount your partitions exchanging X by your actual partition letters and numbers you could find in fdisk -l and ls /dev/sd* output:

sudo mount -t ntfs -o nls=utf8,umask=0222 /dev/sdaX /mnt/ssd
sudo mount -t ntfs -o nls=utf8,umask=0222 /dev/sdbX /mnt/hdd

add records about your partitions into /etc/fstab:

/dev/sdaX /mnt/ssd ntfs-3g permissions,users,auto,locale=en_US.utf8 0 2
/dev/sdbX /mnt/hdd ntfs-3g permissions,users,auto,locale=en_US.utf8 0 2

Also, you could try Windows LiveCD to boot and check if your Windows 10 partition is accessible from it or connect your SSD drive to another windows PC.


New Install 14.04, Dell 2720 AIO, kernal error

Resolved. Default Noveau x-windows driver problem caused either pink splash screen or hex trace diagnostics. Found http://ubuntuforums.org/showthread.php?t=1613132. This thread explained how to boot with "nomodeset". Upon booting, opened system settings->software updates->drivers and installed a proprietary Nvidia driver and rebooted. Linux liftoff. –  I posted this as a comment earlier, but it should have been an answer.


novnc error unrecognized service on ubuntu 12.04

As per my comment above, my problem is getting this running from systemd (formerly I merely disliked systemd due to its poor documentation and bad architecture choices, but recently I've learned to really hate it).

In my research I came across this question by rockymtngeek on www.linuxquestions.org. User norobro suggests:

[Unit]
Description=novnc service
Wants=network-online.target
After=network-online.target

[Service]
ExecStart=/path/to/noVNC/utils/launch.sh --vnc 127.0.0.1:5901 --listen 80

[Install]
WantedBy=multi-user.target


Switching easily between windows 8 and Ubuntu

Just install one of the two operating systems, Linux or Windows, download Virtual Box on this link and install. After that run Virtual Box and install Windows or Linux as a virtual machine.

The only thing is that one OS would be a Virtual machine.


Wireless is disabled by hardware switch(wubi) on a Toshiba Tecra S1

Have you checked the BIOS settings?

I experienced something similar with a Dell laptop that I had just purchased from a friend and had a heck of a time trying to figure out what the problem was. It had Windows 7, which was another first experience for me, at that time and I thought maybe it had something to do with the network settings in the OS. I searched through every settings menu I could find, tore apart the Windows help guide and still could find nothing wrong. Besides, of course, my Wi-Fi being disabled via hardware switch. My Fn key worked for everything else, like suspend and monitor switching, but when I'd use it to try to turn on the Wifi it would just disconnect my wired network leaving Wifi unchanged.

Soon after, I decided to try out DSLinux and while looking through my BIOS I discovered what the OS must've been referring to as the Hardware switch. Ironically, it was on the same page as the USB emulation switch. The LAN controller was on, but the wireless was switched off. I toggled the switch and found that it had three settings; on, off and on/off toggle with Fn key.

Not sure if you've checked this or not as you didn't mention it, but I thought I'd share my experience and hopefully it helps you or another who runs into this problem.

Another idea that just came to me, not sure if this is a possibility or not, but maybe it's disabled in Windows. I'm not sure that'd keep it from being toggled while in Ubuntu or not, but it's worth checking out as well. Good Luck :)


Different behaviour by double tap on touchpad and with buttons

The sublime text version in which I encountered the error was 3.1. It was resolved in version 3.2. The changelog has this:

  Linux: Improved input method (IM) support -fcitx, ibus, etc

Though I can't understand the problem, it seems to me like a bug from the devs.


I worked around this issue by rolling back to a previous kernel version, and deleting the one that was giving me problems. Not a satisfactory answer, but I'll leave it here since I didn't spot that suggestion in other instances of this issue.


Xubuntu Whisker menu custom search action CIFS share - problem

Ok, I have figured it out and decided to post an answer here in order someone has trouble too, because the problem was in Whisker Menu itself. My Xubuntu 16.04 came with Whisker Menu 1.5.1 which had a bug - any longer search phrases got truncated in searchbox, thus search terms were incomplete.
I added ppa for Whisker Menu:

sudo add-apt-repository ppa:gottcode/gcppa
sudo apt-get update
sudo apt-get upgrade

This upgraded my whiskermenu plugin to 1.5.3 which has this bug fixed and no longer truncates the search term.
The other thing is that in linux smb shares I use smb://192.168.1.100/Music instead of smb://192.168.1.100\Music which was what I initially typed by using my custom action.


After installing updates to a fresh install of 64-bit Ubuntu 12.04, my computer does not reboot.

Are you saying that you can successfully install Ubuntu 12.04 and that immediately after the install it boots with no problem? Is it only after you apply the pending updates that can no longer boot?

If that is what is happening then you can begin by attempting to isolate the problem.

Here is one way to try doing that.

Since Update Manager is asking you to reboot, I am guessing that one of the updates you applied was probably to install a new kernel. So ...

Try only installing just the latest kernel instead of all 140 or so
updates.
Reboot to see if you reproduce the problem.
If your problem does not repeat, try applying more updates and rebooting until you
either reproduce the problem or you have applied all the updates.
Edit your question and add a description of what you did and what
happened.


Getting QT5 to work with the "Create a currency converter phone app"-tutorial

It seems to me like the easiest way to solve your problem is to add a short-cut to your qlmscene external tool as described in the same tutorial you are following, they suggest to put Ctrl + Shift + P. Now instead of clicking on the play button to preview, after saving your file what you need is to enter the short-cut Ctrl + Shift + P, and you will see your preview.

Hope It hope you.


TLP showing different temperatures for different commands

When you are using sudo tlp stat or sudo tlp-stat, it's going to fetch a lot of information about system, to gather this data the CPU usge goes up and thus you get a higher CPU temperature with this command.
 However while you are using sudo tlp-stat --temp you are only requesting a single data, in this case tlp itself does not uses that much CPU so  you get a lower temperature.

In a terminal run watch sudo tlp-stat --temp in another one run sudo tlp-stat and pay attention to the first terminal. While the second command is being run the first one changes and the number will be closed to the second one.


Does ubuntu one synchronize extended file attributes?

Ubuntu One does not sync these, as they are file system specific. Only data within the files themselves is synchronized.


Switched from 18.04 to 20.04 cannot use Desktop icons normally

Check you're the owner of all files under user data. Try this:
user@host:~$ ls -laR | less

if you see uid or gid differents from user, I think that's the problem. Try this
chown -R user.user *

Of course you have to change user with your user name in the exemple above


Based on your comments, it appears that Apache is failing to start because it did not find APR when it was compiled. This is because the source files were not in the correct place when configure was run. You need to:

Extract the APR and APR-Util into the srclib directory within the httpd-2.4.4 directory.
cd to the httpd-2.4.4 directory and run:

sudo ./configure --with-included-apr

sudo make

sudo make install


Here is the bug in Launchpad related to your error. It is not solved yet, but there is a workaround to solve your problem. Please, remember to mark this bug as affecting you in order to fix it as soon as possible.


How does one contact Canonical to suggest a change?

You can contact Launchpad support.

But changelogs from PPA will never be added to changelog.ubuntu.com, because these are Personal Package Archives that are maintained by people who do not work for Canonical.

Canonical is not responsible for PPA at all.


KDE telepathy dropped IRC support with the release of version 0.5:

http://martys.typepad.com/blog/2012/08/kde-telepathy-05-released.html


If your server is on same machine do not change the bind address keep it as
bind-address        = 127.0.0.1 and then try mysql -h localhost -u root -p


close one specific GNOME Terminal command

You are killing the program SeondApp, but you are not killing the terminal it is running in. The two are separate things. For example, this is the process tree of running gedit in a terminal:

$ gedit &
[1] 13064
$ pstree -s 13064
systemd───systemd───gnome-terminal-───bash───gedit───4*[{gedit}]

Ignore the systemd, that's the init process, everything running on your machine is a child of systemd. Then, what you see there is that gnome-terminal    has launched bash which then runs gedit. If you now kill gedit, that won't affect its parents. However, if you kill one of the parents, that will also kill the child.

Normally, what you would do is to use $!, a special variable that holds the PID of the last process launched to the background. Unfortunately, that doesn't with gnome-terminal which seems to have some sort of complicated launching procedure:

$ gnome-terminal &
[1] 23861
$ ps aux | grep 23861
terdon   24341  0.0  0.0   8684  2348 pts/11   S+   10:59   0:00 grep --color 23861
$ pgrep gnome-terminal
23866

As you can see above, gnome-terminal seem to re-launch itself after launching and uses a different PID. No idea why, but another good reason to use a different terminal.

So, since the standard approach won't work, we need a workaround. What you can do is use kill -$PID which will kil all processes in the process group (from man kill):

-n  where n is larger than 1.  All processes in process  group  n  are
    signaled.   When  an argument of the form '-n' is given, and it is
    meant to denote a process group, either a signal must be specified
    first,  or  the argument must be preceded by a '--' option, other‐
    wise it will be taken as the signal to send.

Putting all this together, here's a working version of your script:

#!/bin/bash
gnome-terminal --geometry=50x30 --working-directory=/$HOME/TEST --title terminal1 \
               -e  ' sh -c "./FirstAPP; exec bash"'
while true; do
    if ! pgrep SecondAPP; then
        gnome-terminal --geometry=50x30 --working-directory=/$HOME/TEST \
            --title terminal2 -e  'SecondAPP' &
        for ((i=0; i<3600; i+=5)); do
          sleep 5
          if ! pgrep SecondAPP; then
            break
          fi
        done
        ## Now, get the PID of SecondAPP
        pid=$(pgrep SecondAPP)
        ## Using -$pid will kill all process in the process group of $pid, so
        ## it will kill SecondAPP and its parent process, the terminal.
        kill -- -$pid
    fi
    sleep 5
done

Note that I also remove the [ ] around ! pgrep since that was wrong syntax.

I don't see why you are launching terminals at all though. Here's the same idea, without terminals:

#!/bin/bash

$HOME/TEST/FirstAPP
while true; do
    if ! pgrep SecondAPP; then
      #$HOME/TEST/SecondAPP &
      SecondAPP &
      pid=$!
        for ((i=0; i<3600; i+=5)); do
          sleep 5
          if ! pgrep SecondAPP; then
            break
          fi
        done
        kill $pid
    fi
    sleep 5
done

Finally, this feels like a strange way of doing things. You might want to ask a new question, explain what you are trying to do and why and we can see if we can find a simpler approach for whatever it is you need.


Skype fails to start after installation from downloaded deb package

Skype is in fact a 32-bit program even if it's packaged for 64-bit. When downloading Skype from skype.com, you won't install the necessary 32-bit compatibility libraries on Ubuntu Oneiric. The error is a bit misleading, but it means that 32-bit compatibility libraries are not installed on a 64-bit machine.

The recommended method to install Skype is throught the Partner repository.

Uninstall the Skype package using the Software Center. If you cannot find it, open a terminal and run:

sudo apt-get purge skype

Enable the partner repository
Refresh the packages information and install Skype from the Software Center (package "skype")


How can I disable cpu throttling overheating detected checking?

No.  You should not disable this check or the throttling.  Doing so will not stop the computer from switching off.  It will keep doing that.  Throttling is its last line of defense but in your case it seems it's not enough.  You have to stop your computer from overheating.

The sound your fan is making, probably comes from its motor.  It's spinning but it's not rotating the blades.  I'm almost certain your fan is not working at all or it's working at a very low speed which is not enough.


How to generate SSH keys before the ssh daemon does for the first time

Raspbian has a service in the image called regenerate_ssh_host_keys.

[Unit]
Description=Regenerate SSH host keys
Before=ssh.service

[Service]
Type=oneshot
ExecStartPre=-/bin/dd if=/dev/hwrng of=/dev/urandom count=1 bs=4096
ExecStartPre=-/bin/sh -c "/bin/rm -f -v /etc/ssh/ssh_host_*_key*"
ExecStart=/usr/bin/ssh-keygen -A -v
ExecStartPost=/bin/systemctl disable regenerate_ssh_host_keys

[Install]
WantedBy=multi-user.target

This removes any keys already present, then regenerates the keys, then disables the service so it doesn't run again.  You can disable that service (by removing the /etc/systemd/system/multi-user.target.wants/regenerate_ssh_host_keys.service file) at the same time you install the keys.


Assigning additional labeled aliases to a single physical network interface for IPv6 addresses

I realize this answer is for different flavors of 'NIX but I'll take a second stab and see if this helps.

Q. How do I add multiple IPv6 address to eth0 under Red Hat / Fedora / RHEL / CentOS Linux for virtual hosting?

A. There are two ways to add network aliaes under Red hat / CentOS Linux system. You need to edit any one of the following file in order to add IPv6 network alias.

/etc/rc.local - Use ifconfig command and shell loop.
/etc/sysconfig/network-scripts/ifcfg-eth0 - Set special variable called IPV6ADDR_SECONDARIES for eth0 virtual hosting (network alias).

First, setup IPv6 main server IP address and default router. Once basic IPv6 connectivity established you can setup aliases for NIC.
/etc/rc.local configuration

To add 2607:f0d0:1002:11::10 to 2607:f0d0:1002:11::50 (total 40) virtual aliases, open /etc/rc.local file, enter:

vi /etc/rc.local

Append following code:

IP Alias

for ip in {10..40}; do /sbin/ifconfig eth0 inet6 add 2607:f0d0:1002:11::${ip}/64; done

You can type the same command at a shell prompt to immediately activate network aliases. Or create a shell script and call it from /etc/rc.local itself:

!/bin/bash

INETP="2607:f0d0:1002:11::"
PRE="64"
START=2
END=200
INT_IF="eth0"
IFCONFIG=/sbin/ifconfig
echo -n "Adding IPv6 Alias..."
for i in {$START..$END}
do
  $IFCONFIG $INT_IF inet6 add ${INETP}${i}/${PRE}
done
echo "Done!"

sysv style configuration

Open network interface configuration file, enter:

vi /etc/sysconfig/network-scripts/ifcfg-eth0

Append a list of secondary IPv6 addresses following code (set 5 aliases):

IPV6ADDR_SECONDARIES="2607:f0d0:1002:11::10/64 \
2607:f0d0:1002:11::11/64 \
2607:f0d0:1002:11::12/64 \
2607:f0d0:1002:11::13/64 \
2607:f0d0:1002:11::14/64"

Save and close the file. Restart networking:

/etc/init.d/network restart

So it seems the IPV6 address is an alias in and of itself.

source: http://www.cyberciti.biz/faq/redhat-centos-rhel-fedora-linux-add-multiple-ip-samenic/


Ubuntu edge is long ago dead.It failed to reach it's target of 32million$.The Edge fell short of its funding goal, raising only $12,809,906.

Read the wikipedia page and indiegogo campaign page.

You can't do anything for now.Maybe hope that canonical restarts the plan again someday.


The issue was that the current folder was not owned by www-data.
So be sure that the the owner is the same as the apache user(www-data or daemon)


Can the kernel update itself via the update manager?

There is a system called ksplice which allows kernel upgrades without restarting, but Ubuntu isn't using it yet and it's a system most attractive to server admins at the moment.

Any time you have a new kernel update which is made available in the software center updates, you will need to restart the computer in order to make use of the fixed security or other bugs. Each kernel version is separate, so keeping your machine running on the existing kernel won't be harmful unless you count potentially security holes. See also this existing question:

Why not include something like Ksplice so there is no need to reboot after updating?


How to exclude bash script case from if statement

Although I didn't try bac0n's answer, I found a solution before I read his comments:

I've made a function out of this check and called the function at the needed cases. And I also fixed the fact that the if statement for no arguments was at the button which caused issues too.

The following was my solution to this problem:

#! /bin/sh

name=`basename "$0"`
usage() {

cat << EOT

Error: arguments required
Usage: ${name} option

    Options:
        -h:     Show this information
        -f:     Show full disk name as used in zpool
        -s:     Show last 8 characters (used as disk labels on the server)

EOT
}

check_root()
{
    myuid=$(id -u)
    if [ $myuid != '0' ]; then
        echo "This script requires root privilege"
        exit 1
    fi
}

if [[ $# -eq 0 ]] ; then usage
        exit 0
fi

while [ -n "$1" ]; do

    case "$1" in
        -f)
            check_root
            echo | format | awk '/[[:space:]]+c[0-9]+(d|t)[0-9]+/ {print $2}' | egrep '^.{8,25}';
            ;;
        -s)
            check_root
            for disk in $(echo | format | awk '/[[:space:]]+c[0-9]+(d|t)[0-9]+/ {print $2}' | egrep '^.{8,25}'); do
            /opt/csw/sbin/smartctl -i -d scsi /dev/rdsk/"$disk" | grep "Logical Unit id:" | sed -r 's/Logical Unit id:      0x//' | grep -Eo '.{8}$'  | tr '[a-z]' '[A-Z]'
            done ;
            ;;
        -h) usage
            ;;

        *)
            echo "For help: run ${name} -h";;
    esac
    shift
done

I used id -u instead of the $EUID variable due to having to port this to different distro's and that might not work everywhere


Unity gone after upgrading 14.10 to latest 3.16 kernel

It might be a compiz issue. Restarting it with DISPLAY=:0 compiz --replace from tty1 (control-alt-f1) and then switching back to tty7 (control-alt-f7) might help.


How do I convert a trackball mouse into a 360° scroller?

I found a very nice solution for my question and thought others might be interested. It works on any mouse not just trackballs.

open or create the file /etc/X11/xorg.conf.d/10-evdev.conf and add the following section:

Section "InputClass"
   Identifier  "Mouse0"
   Driver "evdev"
   MatchIsPointer "on"
   MatchDevicePath "/dev/input/event*"

   Option "EmulateWheel" "true"
   Option "EmulateWheelButton" "9"

   Option "ZAxisMapping" "4 5"
   Option "XAxisMapping" "6 7"
EndSection

Logout and relogin or restart. Now by pressing button #9 you can use the trackball (or mouse) as a 360° scroller. Very handy for photo editing for example.


Can't connect to the internet (LAN) on Ubuntu Server 15.10

As Thomas W mentioned, the naming scheme (enp1s0f0) replaced the old one (en0) in 15.10 and it is not indicative of any issues.

I wish I knew exactly what I did to get an IP address (and therefore on the Internet), but I make those edits to the interfaces file (the part for "en0"), rebooted (still no luck), plugged in a Thunderbolt to Ethernet adapter (still no luck), plugged the ethernet cable back into the internal Ethernet port, had internet.


It uses the Windows interface to install Ubuntu along-side Windows, so the Windows dialog will appear on startup saying something like...

 Choose which Operating System to boot:

 Microsoft Windows XP Professional
 Ubuntu 12.10 i386

So, to answer your question, no. If you decide to uninstall Ubuntu later, then you will lose data associated with Ubuntu, If you decide to uninstall Windows later, you will lose data associated with Windows. But just to install, no.


Managing size of partition while installing Ubuntu

Creating Swap can be helpful at times, but since your memory is already high, no necessity. However,  it is a good practice to create swap partitions.

This is a guide to create partitions:

You can choose to Install Ubuntu alongside Windows Boot Manager, an option that will automatically take care of all the partition steps.

Use this option if you don’t require a personalized partition scheme. In case you want a custom partition layout, check the Something else option and hit on the Continue button to proceed further.

The option "Erase disk and install Ubuntu" should be avoided on dual-boot because is potentially dangerous and will wipe out your disk.

On this step, we’ll create our custom partition layout for Ubuntu 16.04. This guide will recommend that you create two partitions, one for root and the other for home accounts data and no partition for swap (use a swap partition only if you have limited RAM resources or you use a fast SSD).

To create the first partition, the root partition, select the free space (the shrinking space from Windows created earlier) and hit on the + icon below. On partition settings use the following configurations and hit OK to apply changes:

Size = at least  20 GB, 50 GB would be ideal
Type for the new partition = Primary
Location for the new partition = Beginning
Use as = EXT4 journaling file system
Mount point = /

Use 16 GB for the swap partition size. Click on unallocated space, click on new. Enter the size as 16GB, choose primary partition, file system type SWAP.
Use all the available free space left for the home partition size. The partition settings should look like this:

Size = all remaining free space
Type for the new partition = Primary
Location for the new partition = Beginning
Use as = EXT4 journaling file system
Mount point = /home

When finished, hit the Install Now button in order to apply changes to disk and start the installation process.

A pop-up window should appear to inform you about swap space. Ignore the alert by pressing on the Continue button.

Next, a new pop-up window will ask you if you agree with committing changes to disk. Hit Continue to write changes to disk and the installation process will now start.

For the complete installation procedure, refer to https://www.tecmint.com/install-ubuntu-16-04-alongside-with-windows-10-or-8-in-dual-boot/#


kvm: disabled my bios message. delete current install then install via usb drive?

Your BIOS is not affected by Ubuntu in any way.

If kvm used to work, but no longer works, you might want to see if you're using another virtualization tool such as VirtualBox. They can't be used at the same time and I think that may lead to a similar error message.


How do I preseed multiple partitions on one disk; /tmp /data /usr swap?

I've solved it myself now. The problem was that partman creates the partitions in the order they are defined, and i was defining a partition which was supposed to take all available disk space not at the end, therefore the following partitions (including the one for the rootfs) could not be created.

This is the recipe which now worked for me:

d-i partman-auto/method string regular
d-i partman-auto/expert_recipe string \
thisDoesNotMatter :: \
1000 50 1000 ext3 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /boot } \
. \
64 512 10000 linux-swap \
method{ swap } format{ } \
. \
1 600 10000 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /tmp } \
. \
1 700 350000 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /data } \
. \
500 1000 1000000000 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
.


I am new to Ubuntu Server 20.04 and had the same problem. I was able to connect to the Internet by using an Ethernet cable directly between the Ubuntu host (a laptop which had an Ethernet port) and my router. Prior to this, I had edited the config file for networking (/etc/netplan/00-installer-config.yaml) using sudo nano so that it read as follows:
network:
version: 2
renderer: NetworkManager
ethernets:
wlo1:
dhcp4:true
enps03:
dhcp4:true
Note that wlo1 is my wi-fi card and enps03 is the Ethernet port
On rebooting, I was now on my network and could download network-manager using sudo apt install network-manager (of course, you can also install any other software you think is missing)
I am STILL not able to activate my wi-fi card but I feel I am close to a solution on that - and at least using the Ethernet cable, I have access to any packages that I might need to resolve that issue as well.
Note: (1) your config file in /etc/network may have a different name but it should be the only .yaml file in that folder; (2) you can also download net-tools (sudo apt install net-tools) which gives you access to the more familiar commands ifconfig, etc.
I hope this helps.


How do I turn off audio echo from microphone to local speakers?

Sound Settings (GUI)
In "Sound Settings..." choose Hardware and change from "Analog Stereo Duplex" from the Profile selection to "Analog Stereo Input" for usage as microphone or "Analog Stereo Output" for use as speakers.

Command line
From the command line we need to know the index and possible profiles of cards installed. Both will be listed with
pacmd list-cards

To change the card profile we may issue
pacmd set-card-profile <index> <profile>

Where we have to give appropriate values for the card-index we want to set up, and the profile desired.
Examples
The following examples show the commands for a standard internal audio card with index 0 for values corresponding to the GUI:
pacmd set-card-profile 0 input:analog-stereo  # for Input
pacmd set-card-profile 0 output:analog-stereo  # for Output
pacmd set-card-profile 0 output:analog-stereo+input:analog-stereo # for Duplex


Problem Installing Xubuntu 12.04 Audio-Video codecs

You could go to setting, and go to update & software, and then add multiverse and universe canonical, and then in then terminal enter:

sudo apt-get update
sudo apt-get install --reinstall xubuntu-restricted-extra

and this might work fine this way.


How to find out what driver the Ethernet NIC is using?

The command ethtool -i outputs hardware info about the NIC. Use following command to see driver name:

ethtool -i eth0 | grep driver

The output is like this:

driver: e1000


Your access point could be too close to your box (think you have it tethered and on a 2 foot cable).  I have a mobile hotspot that routinely doesn't join unless I lay the cable as straight as possible to get it further from my lappie.


Install Ubuntu on Laptop without affecting windows bootloader

I have done this a few years back and what I did was just a plain install on a USB device and also installed Grub on it. So when chosen from BIOS boot menu, the USB drive loads Grub in which you choose Ubuntu. Should be simple and straightforward.

What also comes to mind too is chroot (using existing Ubuntu installation which you don't have). Here I am assuming that /dev/sda is hard drive with existing Ubuntu installation and /dev/sdb is USB stick. You require a existing installation of Ubuntu for this and a Live CD of almost any Debian based distro. All command require sudo before them or sudo -i as a step 0.

create partitions on USB drive (using gparted)
gparted /dev/sdb
copy content from disk to USB partitions while Ubuntu is offline (with another live CD or similar). Something like:

mount /dev/sda1 /mnt/existing-install/
mount /dev/sdb1 /mnt/usb-stick-install/
cp -rp /mnt/existing-install/* /mnt/usb-stick-install/

bind mount what is needed /dev; /proc; and /sys probably

mount --bind /dev /mnt/usb-stick-install/dev
mount --bind /proc /mnt/usb-stick-install/proc
mount --bind /sys /mnt/usb-stick-install/sys

chroot into USB
chroot /mnt/usb-stick-install/
run grub-install --recheck /dev/sdb
restart and check if it boots

Though I'd first try a plain install, it should work fine.


My solution was to use the xorg-edgers ppa and downgrade the drivers to 304...

Uninstall Manually Installed Driver

sudo NVIDIA-something-something --uninstall

Add Xorg Edgers

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update

Install 304 Drivers because old drivers are better

sudo apt-get install nvidia-304-dev


How do I add Eclipse or GitEye to Ubuntu 18.04.1 Desktop Favourites list?

First please open terminal and go to your home directory.

After that create desktop file inside with this command:

nano .local/share/applications/eclipse.desktop

inside add something like:

[Desktop Entry]
Name=Eclipse IDE
Type=Application
Exec=/home/your_Path_To_Eclipse/eclipse/eclipse
Terminal=false
Icon=/home/your_Path_To_Eclipse/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse

After that save the file and search Eclipse inside applications. If you find it in the results press on the icon right mouse button Add to Favorites.

Now should appear inside your favorite list.

Good Luck!


Since you enabled the write_enable=YES the issue seems to be folder permission issue.

You'll need to make sure that the user which logged in to the ftp-server, has the needed read/write/execute permissions to the folder he tries to write.

You might need to execute something like: (replace the ftp-user-name and /ftp-folder with real data)

Change the owner of the folder, to the user logged-in via ftp

sudo chown user-name /ftp-folder-full-path
Change folder write permission, to be write-able by its owner

sudo chmod 755 /ftp-folder-full-path


I solved it by re-writing the .iso file in the USB correctly using dd (as @oldfred suggested) and then formating it twice again with gparted.


Is there a graphical git commit application to show diffs and set a commit message?

I normally just use git gui.  It shows the list staged and unstaged changed files, and shows their diffs, and lets you selectively stage hunks, add a log message, and commit.  Even has a nice knob to amend the last commit instead.


Grub stores its configuration in /boot/grub/grub.cfg.
This file is generated using the values stored in /etc/default/grub via grub-mkconfig.

The templates are stored in /etc/grub.d/.

If you ever need to manually change something about grub's settings, refer to the /etc/grub.d/README file. Meanwhile, you can check if your kernel appears in grub.cfg like so:

cat /boot/grub/grub.cfg | grep Something

Where something is a search query for your kernel's name, like 35-22-generic.


Updating ubuntu server apt-get gives me - 404 Not Found

I assume the problem is because you are using a relatively old release of Ubuntu. A possible fix would be to open the /etc/apt/sources.list file with an editor of your choice
.Change all (xx.)archive.ubuntu.com to old-releases.ubuntu.com.. In your case an example would be ://archive.ubuntu.com/ubuntu/dists/natty/main/source/Sources becomes

://old-releases.ubuntu.com/ubuntu/dists/natty/main/source/Sources

after this, you can try running sudo apt-get update

For you to update your release,you need update-manager-core(sudo apt-get install update-manager-core) and then sudo do-release-upgrade but this will update you to the next release and has to be repeated until you reach say 12.04 LTS which has Long Term Support.


Anyone running QCA9880 / ath10k with hostapd, 802.11ac enabled?

I couldn't even get the card working-- just plain hardware incompatible with my Q2900M (used two different mPCIe to regular PCIe adapters, doesn't even boot). So kudos to you on that.

I think I was using a few cards based on the reference board. The Compex WLE900VX & the SparkLan WPEA-352ACN look so similar down to the copper traces and placement of surface mount components. Both QCA9880 based... they likely do have master mode available-- I don't know as my board wouldn't boot and the other machines I tried them in booted-- but I did not see them when running lspci.

I also have a weird form factor Broadcom board from an apple airport. I ordered it from ebay: New Apple BCM94360CD 802.11ac Wifi Bluetooth 4.0 Card + Mini PCI-E Adapter ( ebay.com/itm/171521530246?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT )

I received a different adapter which worked ( ebay.com/itm/321812633609 )

But once it was working it was revealed that the driver I was using did not support AP Mode with hostapd.

Moved on to a TP-Link T8E, which works-- but again doesn't seem to have Master Mode available to enable AP mode with hostapd-- yet. Talked with TP-Link and they 'don't support' Linux/UNIX but, as long as the hardware works I don't care what they support.

I have a couple more mPCIe to PCIe adapters on order as well as some 802.11ac 2x2 cards.

-Adapters I have not tried:

Asus PCE-AC66

Asus PCE-AC68

TP-Link TP-T9E

Silex SX-PCEAC

-Adapters I attempted to get but for whatever reason couldn't:

Unex DAXB-81

The google search that served me best was "802.11ac 3x3 pcie"

www.google.com/search?q=802.11ac+3x3

Good luck to us...

The following is output I hope to see from other people.
There is an 802.11a/b/g/n card with the hardware properties I am hoping for on the 802.11ac card(s) and the 802.11ac 3x3 MIMO TP-Link Archer T8E for comparison.

brad@Q2900M:~$ sudo iw list

Wiphy phy1
        max # scan SSIDs: 1
        max scan IEs length: 0 bytes
        Coverage class: 0 (up to 0m)
        Supported Ciphers:
                * WEP40 (00-0f-ac:1)
                * WEP104 (00-0f-ac:5)
                * TKIP (00-0f-ac:2)
                * CCMP (00-0f-ac:4)
                * CMAC (00-0f-ac:6)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
        Band 1:
                Bitrates (non-HT):
                        * 1.0 Mbps
                        * 2.0 Mbps (short preamble supported)
                        * 5.5 Mbps (short preamble supported)
                        * 11.0 Mbps (short preamble supported)
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm) (no IR)
                        * 2472 MHz [13] (20.0 dBm) (no IR)
                        * 2484 MHz [14] (20.0 dBm) (no IR)
        Band 2:
                Bitrates (non-HT):
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
                Frequencies:
                        * 5160 MHz [32] (30.0 dBm)
                        * 5170 MHz [34] (30.0 dBm)
                        * 5180 MHz [36] (30.0 dBm)
                        * 5190 MHz [38] (30.0 dBm)
                        * 5200 MHz [40] (30.0 dBm)
                        * 5210 MHz [42] (30.0 dBm)
                        * 5220 MHz [44] (30.0 dBm)
                        * 5230 MHz [46] (30.0 dBm)
                        * 5240 MHz [48] (30.0 dBm)
                        * 5250 MHz [50] (30.0 dBm)
                        * 5260 MHz [52] (30.0 dBm)
                        * 5270 MHz [54] (30.0 dBm)
                        * 5280 MHz [56] (30.0 dBm)
                        * 5290 MHz [58] (30.0 dBm)
                        * 5300 MHz [60] (30.0 dBm)
                        * 5310 MHz [62] (30.0 dBm)
                        * 5320 MHz [64] (30.0 dBm)
                        * 5330 MHz [66] (30.0 dBm)
                        * 5340 MHz [68] (30.0 dBm)
                        * 5350 MHz [70] (30.0 dBm)
                        * 5360 MHz [72] (30.0 dBm)
                        * 5370 MHz [74] (30.0 dBm)
                        * 5380 MHz [76] (30.0 dBm)
                        * 5390 MHz [78] (30.0 dBm)
                        * 5400 MHz [80] (30.0 dBm)
                        * 5410 MHz [82] (30.0 dBm)
                        * 5420 MHz [84] (30.0 dBm)
                        * 5430 MHz [86] (30.0 dBm)
                        * 5440 MHz [88] (30.0 dBm)
                        * 5450 MHz [90] (30.0 dBm)
                        * 5460 MHz [92] (30.0 dBm)
                        * 5470 MHz [94] (30.0 dBm)
                        * 5480 MHz [96] (30.0 dBm)
                        * 5490 MHz [98] (30.0 dBm)
                        * 5500 MHz [100] (30.0 dBm)
                        * 5510 MHz [102] (30.0 dBm)
                        * 5520 MHz [104] (30.0 dBm)
                        * 5530 MHz [106] (30.0 dBm)
                        * 5540 MHz [108] (30.0 dBm)
                        * 5550 MHz [110] (30.0 dBm)
                        * 5560 MHz [112] (30.0 dBm)
                        * 5570 MHz [114] (30.0 dBm)
                        * 5580 MHz [116] (30.0 dBm)
                        * 5590 MHz [118] (30.0 dBm)
                        * 5600 MHz [120] (30.0 dBm)
                        * 5610 MHz [122] (30.0 dBm)
                        * 5620 MHz [124] (30.0 dBm)
                        * 5630 MHz [126] (30.0 dBm)
                        * 5640 MHz [128] (30.0 dBm)
                        * 5650 MHz [130] (30.0 dBm)
                        * 5660 MHz [132] (30.0 dBm)
                        * 5670 MHz [134] (30.0 dBm)
                        * 5680 MHz [136] (30.0 dBm)
                        * 5690 MHz [138] (30.0 dBm)
                        * 5700 MHz [140] (30.0 dBm)
                        * 5710 MHz [142] (30.0 dBm)
                        * 5720 MHz [144] (30.0 dBm)
                        * 5725 MHz [145] (30.0 dBm)
                        * 5730 MHz [146] (30.0 dBm)
                        * 5735 MHz [147] (30.0 dBm)
                        * 5740 MHz [148] (30.0 dBm)
                        * 5745 MHz [149] (30.0 dBm)
                        * 5750 MHz [150] (30.0 dBm)
                        * 5755 MHz [151] (30.0 dBm)
                        * 5760 MHz [152] (30.0 dBm)
                        * 5765 MHz [153] (30.0 dBm)
                        * 5770 MHz [154] (30.0 dBm)
                        * 5775 MHz [155] (30.0 dBm)
                        * 5780 MHz [156] (30.0 dBm)
                        * 5785 MHz [157] (30.0 dBm)
                        * 5790 MHz [158] (30.0 dBm)
                        * 5795 MHz [159] (30.0 dBm)
                        * 5800 MHz [160] (30.0 dBm)
                        * 5805 MHz [161] (30.0 dBm)
                        * 5810 MHz [162] (30.0 dBm)
                        * 5815 MHz [163] (30.0 dBm)
                        * 5820 MHz [164] (30.0 dBm)
                        * 5825 MHz [165] (30.0 dBm)
                        * 5830 MHz [166] (30.0 dBm)
                        * 5840 MHz [168] (30.0 dBm)
                        * 5850 MHz [170] (30.0 dBm)
                        * 5860 MHz [172] (30.0 dBm)
                        * 5870 MHz [174] (30.0 dBm)
                        * 5880 MHz [176] (30.0 dBm)
                        * 5890 MHz [178] (30.0 dBm)
                        * 5900 MHz [180] (30.0 dBm)
                        * 5910 MHz [182] (30.0 dBm)
                        * 5920 MHz [184] (30.0 dBm)
                        * 5930 MHz [186] (30.0 dBm)
                        * 5940 MHz [188] (30.0 dBm)
                        * 5950 MHz [190] (30.0 dBm)
                        * 5960 MHz [192] (30.0 dBm)
                        * 5970 MHz [194] (30.0 dBm)
                        * 5980 MHz [196] (30.0 dBm)
                        * 5990 MHz [198] (30.0 dBm)
                        * 6000 MHz [200] (30.0 dBm)
                        * 6010 MHz [202] (30.0 dBm)
                        * 6020 MHz [204] (30.0 dBm)
                        * 6030 MHz [206] (30.0 dBm)
                        * 6040 MHz [208] (30.0 dBm)
                        * 6050 MHz [210] (30.0 dBm)
                        * 6060 MHz [212] (30.0 dBm)
                        * 6070 MHz [214] (30.0 dBm)
                        * 6080 MHz [216] (30.0 dBm)
                        * 6090 MHz [218] (30.0 dBm)
                        * 6100 MHz [220] (30.0 dBm)
                        * 6110 MHz [222] (30.0 dBm)
                        * 6120 MHz [224] (30.0 dBm)
                        * 6130 MHz [226] (30.0 dBm)
                        * 6140 MHz [228] (30.0 dBm)
        Supported commands:
                 * set_interface
                 * new_key
                 * join_ibss
                 * set_pmksa
                 * del_pmksa
                 * flush_pmksa
                 * connect
                 * disconnect
        WoWLAN support:
                 * wake up on disconnect
                 * wake up on magic packet
                 * can do GTK rekeying
                 * wake up on GTK rekey failure
                 * wake up on EAP identity request
        software interface modes (can always be added):
        interface combinations are not supported
        Device supports scan flush.
Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2257 bytes
        Coverage class: 0 (up to 0m)
        Device supports RSN-IBSS.
        Device supports AP-side u-APSD.
        Device supports T-DLS.
        Supported Ciphers:
                * WEP40 (00-0f-ac:1)
                * WEP104 (00-0f-ac:5)
                * TKIP (00-0f-ac:2)
                * CCMP (00-0f-ac:4)
                * CMAC (00-0f-ac:6)
        Available Antennas: TX 0x7 RX 0x7
        Configured Antennas: TX 0x7 RX 0x7
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * WDS
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
        Band 1:
                Capabilities: 0x11ef
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT TX/RX MCS rate indexes supported: 0-23
                Bitrates (non-HT):
                        * 1.0 Mbps
                        * 2.0 Mbps (short preamble supported)
                        * 5.5 Mbps (short preamble supported)
                        * 11.0 Mbps (short preamble supported)
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
                Frequencies:
                        * 2412 MHz [1] (15.0 dBm)
                        * 2417 MHz [2] (15.0 dBm)
                        * 2422 MHz [3] (15.0 dBm)
                        * 2427 MHz [4] (15.0 dBm)
                        * 2432 MHz [5] (15.0 dBm)
                        * 2437 MHz [6] (15.0 dBm)
                        * 2442 MHz [7] (15.0 dBm)
                        * 2447 MHz [8] (15.0 dBm)
                        * 2452 MHz [9] (15.0 dBm)
                        * 2457 MHz [10] (15.0 dBm)
                        * 2462 MHz [11] (15.0 dBm)
                        * 2467 MHz [12] (15.0 dBm) (no IR)
                        * 2472 MHz [13] (15.0 dBm) (no IR)
                        * 2484 MHz [14] (disabled)
        Band 2:
                Capabilities: 0x11ef
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT TX/RX MCS rate indexes supported: 0-23
                Bitrates (non-HT):
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
                Frequencies:
                        * 5180 MHz [36] (15.0 dBm) (no IR)
                        * 5200 MHz [40] (15.0 dBm) (no IR)
                        * 5220 MHz [44] (15.0 dBm) (no IR)
                        * 5240 MHz [48] (15.0 dBm) (no IR)
                        * 5260 MHz [52] (16.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 200478 sec)
                        * 5280 MHz [56] (16.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 200478 sec)
                        * 5300 MHz [60] (16.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 200478 sec)
                        * 5320 MHz [64] (16.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 200478 sec)
                        * 5500 MHz [100] (disabled)
                        * 5520 MHz [104] (disabled)
                        * 5540 MHz [108] (disabled)
                        * 5560 MHz [112] (disabled)
                        * 5580 MHz [116] (disabled)
                        * 5600 MHz [120] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 5660 MHz [132] (disabled)
                        * 5680 MHz [136] (disabled)
                        * 5700 MHz [140] (disabled)
                        * 5745 MHz [149] (20.0 dBm) (no IR)
                        * 5765 MHz [153] (20.0 dBm) (no IR)
                        * 5785 MHz [157] (20.0 dBm) (no IR)
                        * 5805 MHz [161] (20.0 dBm) (no IR)
                        * 5825 MHz [165] (20.0 dBm) (no IR)
        Supported commands:
                 * new_interface
                 * set_interface
                 * new_key
                 * start_ap
                 * new_station
                 * new_mpath
                 * set_mesh_config
                 * set_bss
                 * authenticate
                 * associate
                 * deauthenticate
                 * disassociate
                 * join_ibss
                 * join_mesh
                 * remain_on_channel
                 * set_tx_bitrate_mask
                 * frame
                 * frame_wait_cancel
                 * set_wiphy_netns
                 * set_channel
                 * set_wds_peer
                 * tdls_mgmt
                 * tdls_oper
                 * probe_client
                 * set_noack_map
                 * register_beacons
                 * start_p2p_device
                 * set_mcast_rate
                 * Unknown command (104)
                 * connect
                 * disconnect
        Supported TX frame types:
                 * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
        Supported RX frame types:
                 * IBSS: 0x40 0xb0 0xc0 0xd0
                 * managed: 0x40 0xd0
                 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * mesh point: 0xb0 0xc0 0xd0
                 * P2P-client: 0x40 0xd0
                 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * P2P-device: 0x40 0xd0
        software interface modes (can always be added):
                 * AP/VLAN
                 * monitor
        valid interface combinations:
                 * #{ managed } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client, P2P-GO } <= 1,
                   total <= 2048, #channels <= 1, STA/AP BI must match
                 * #{ WDS } <= 2048,
                   total <= 2048, #channels <= 1, STA/AP BI must match
        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Device supports TX status socket option.
        Device supports HT-IBSS.
        Device supports low priority scan.
        Device supports scan flush.
        Device supports AP scan.

brad@Q2900M:~$ lspci -nn

00:00.0 Host bridge [0600]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register [8086:0f00] (rev 0e)
00:02.0 VGA compatible controller [0300]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display [8086:0f31] (rev 0e)
00:13.0 SATA controller [0106]: Intel Corporation Device [8086:0f23] (rev 0e)
00:14.0 USB controller [0c03]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB xHCI [8086:0f35] (rev 0e)
00:1a.0 Encryption controller [1080]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine [8086:0f18] (rev 0e)
00:1c.0 PCI bridge [0604]: Intel Corporation Device [8086:0f48] (rev 0e)
00:1c.1 PCI bridge [0604]: Intel Corporation Device [8086:0f4a] (rev 0e)
00:1c.2 PCI bridge [0604]: Intel Corporation Device [8086:0f4c] (rev 0e)
00:1c.3 PCI bridge [0604]: Intel Corporation Device [8086:0f4e] (rev 0e)
00:1f.0 ISA bridge [0601]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit [8086:0f1c] (rev 0e)
00:1f.3 SMBus [0c05]: Intel Corporation Device [8086:0f12] (rev 0e)
01:00.0 Network controller [0280]: Qualcomm Atheros AR93xx Wireless Network Adapter [168c:0030] (rev 01)
02:00.0 PCI bridge [0604]: Integrated Device Technology, Inc. [IDT] PES12N3A PCI Express Switch [111d:8018] (rev 0e)
03:02.0 PCI bridge [0604]: Integrated Device Technology, Inc. [IDT] PES12N3A PCI Express Switch [111d:8018] (rev 0e)
03:04.0 PCI bridge [0604]: Integrated Device Technology, Inc. [IDT] PES12N3A PCI Express Switch [111d:8018] (rev 0e)
04:00.0 Ethernet controller [0200]: Intel Corporation 82575GB Gigabit Network Connection [8086:10d6] (rev 02)
04:00.1 Ethernet controller [0200]: Intel Corporation 82575GB Gigabit Network Connection [8086:10d6] (rev 02)
05:00.0 Ethernet controller [0200]: Intel Corporation 82575GB Gigabit Network Connection [8086:10d6] (rev 02)
05:00.1 Ethernet controller [0200]: Intel Corporation 82575GB Gigabit Network Connection [8086:10d6] (rev 02)
06:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)
07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 11)


virtualbox ubuntu no boot /EFI/BOOT/mm64.efi

Hit Assist key on Sony Vaiothen press start button. press F2 to open menu.


SIGSEGV (SEGmentation Violation SIGnal) indicates a Segmentation fault, i.e. a program trying to access memory or other resources it mustn't.

This can be caused by bad memory, but as you said, memtest didn't find anything. The most likely cause for segfaults is a bug in a program (in this case Java) or a driver (e.g. the free Xorg nVidia driver, like you suggested) or a combination of incompatible pieces of software.

Just because you have hybrid graphics, you should install the proprietary nVidia driver, which AFAIK supports Optimus better than the free Xorg driver for nVidia chips. You can install it using the Software & Updates utility. Select the first unchecked suggestion for your graphics card in the Additional drivers tab. It should automatically install nvidia-prime, the Optimus support package.

If this doesn't solves your segfaults, the problem is somewhere else. In this case, install another Java version and try again with that. If you are lucky, you'll already have OpenJDK 7 installed, whose JRE you can try instead. Else, install another version of Oracle Java or OpenJDK and try with that.

If even this doesn't work, it's most likely a bug in a native library used by Minecraft. Ask Mojang in this case.


Issues updating nVidia-driver-390 for Ubuntu 18.04

The 390 driver is in the official Ubuntu repositories.

It can be installed by

sudo apt install nvidia-driver-390

I can't understand what is the problem. Installing from .run files is wrong for Ubuntu


How do I make `w` command show the full command?

The command is designed to produce a columnar layout, and for that reason truncates all output that exceeds the character width of the current display. Otherwise, it would be wrapped and render the output less structured. In a larger terminal window, e.g. after you maximized the terminal, more output will be shown when running the command again.
A trick to see all output wrapped within a smaller window, but loosing some of the column formatting, would be to pipe the output to cat:
w | cat


Mouse cursor sometimes is some pixel over its real position

It's a bug as reported here. Hope to solve: https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1306550


Sounds like an App request to me Kaustubh or at least a feature request for alarm-clock. In the meantime if you don't understand cron you can use the gnome-schedule application to give you a gui way of adding your reminders.

sudo apt-get install gnome-schedule


BIOS problems. I accidentally erased ubuntu from BIOS boot menu

Your approach is misguided. If you have to install and use Windows 7 on a Windows 10 machine in legacy boot, then do it and live with its limitations. One of them is that you can't add "BIOS menu entries" for individual operating systems, you only get this functionality with UEFI booting.

Reinstalling GRUB in MBR already has a perfectly answered question: How can I repair grub? (How to get Ubuntu back after installing Windows?)

Converting existing installations from UEFI to legacy or vice versa halfheartedly without even basic knowledge of your bootloader setup is one of the most stupid moves you can make. Be sure to install the right GRUB package for the mode you finally choose to boot in, names of two related packages are grub-efi-amd64 and grub-pc.


What version should I install that will work best with my ATI 4670 card?

Ubuntu 11.04 came with kernel 2.6 and is no longer supported, I wouldn't go that route.

Ubuntu 12.04 is a Long Term Support (LTS) release that will be supported through 2017. It comes with X Server version 1.11.3:

$ X -version

X.Org X Server 1.11.3
Release Date: 2011-12-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.42-37-generic x86_64 Ubuntu
Current Operating System: Linux CRTE-LDS-15461 3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-58-generic root=UUID=fea09057-ae47-487f-8ed5-c2711b98362e ro quiet splash vt.handoff=7
Build Date: 16 October 2013  04:41:23PM
xorg-server 2:1.11.4-0ubuntu10.14 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.30.2
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.

I'd start by installing Ubuntu 12.04 and trying the drivers on it. If that doesn't work then you can try downgrading the kernel to 3.2. You can easily downgrade the kernel by installing the appropriate package, like linux-image-3.2.0-58-generic.

Only if none of this works would I advise you to seek an alternative distribution. Debian Squeeze may be an option, but support should end still this year.


Boot loop after updating Nvidia driver on Ubuntu 18.04 with Katoolin

Start Ubuntu from a virtual console

Open a text-only virtual console by using the keyboard shortcut Ctrl+Alt+F3.

At the login: prompt type your username and press Enter.

At the Password: prompt type your user password and press Enter.

Now you are logged in to a text-only console, and you can run terminal commands from the console.

Warning about updates after installing Kali linux tools
The LionSec Katoolin GitHub webpage clearly warns Katoolin users to be careful when updating software.

Before updating your system, please remove all Kali-linux repositories to avoid any kind of problem.

All kinds of problems can occur if you don't do this.

Make a backup copy of sources.list.
 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

Open /etc/apt/sources.list for editing in nano text editor:
sudo nano /etc/apt/sources.list

Replace the entire contents of your existing sources.list with the following default 18.04 sources.list:
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu bionic partner

Press the keyboard combination Ctrl+O and after that press Enter to save the file being edited. Press the keyboard combination Ctrl+X to exit nano.

Run this command after changing sources.list to refresh the list of available software. This is the most important step, so please don't skip it.
sudo apt update

Remove Katoolin.
sudo rm -r /usr/bin/katoolin

Reinstall the Ubuntu desktop system.
sudo apt-cache depends ubuntu-desktop | grep '[ |]Depends: [^<]' | cut -d: -f2 | tr -d ' ' | xargs sudo apt-get --reinstall install -y

Install grub to the MBR of your boot drive with these commands:
sudo apt-get --reinstall install base-files/bionic-updates
sudo os-prober
sudo update-grub

Reboot.
sudo reboot

Run autoremove.
sudo apt autoremove

Install deborphan
sudo apt install deborphan

Run deborphan to show a list of packages orphaned after uninstalling Katoolin. These orphaned packages are no longer necessary except if you are still using any of the packages that were installed by Katoolin. These packages are referred to as Kali linux tools by Katoolin which gives the user some warning about the mischief that installing these packages can cause.


Is there any canonical chat messenger working both in android and ubuntu?

You don't have to share the same client, just the same protocol. You can use the XMPP protocol (AKA Jabber). There are many free providers, you can see some here. Google used to use this protocol back when the messaging application was called Talk, but now it doesn't; so mind that. (You can revert to old protocol in Google AFAIK, but you should confirm that.)


I'm guessing your DisplayPort adapter doesn't support sound.  Replace it with hardware that does support audio.  A quick search on Amazon should find one.  Just make sure it has audio support


You could wrap a bash script around it:

#!/bin/bash
while true
do
   <execute your browser>
   sleep <specify seconds here>
done

Paste it in a file, make it executable (chmod +x yourfile.sh or tick the execute box in the file properties in nautilus), double-click it and you should be good to go.


Dark GTK themes under GNOME are not displayed well in some applications

Try to restart the Desktop Environment. Use Alt+F2 and then type r This could fix the problems caused by switching themes.


VirtualBox error "Kernel driver not installed"

First, make sure that the DKMS package has built and is loaded into the kernel.
lsmod | grep box

and make sure the results look sensible . (there should me some module loaded)
If it's there then your good to go, if not then the easiest way to build DKMS modules is to simply restart. Once your running again lsmod to make sure your module loaded.
Also, it seems your doing this in a really odd way.
The way I do it is:
get the deb from https://www.virtualbox.org/wiki/Linux_Downloads
dpkg -i DownloadedVirtualBoxFile.deb

if there are any errors then
apt-get -f install

to resolve dependencies.
Then just run Virtual Box and let it tell you the next step. You should get an error and instructions about adding your user to the virtual box group.
I would recommend starting by completely removing VirtualBox from your system.
dpkg --get-selections | grep box

to get a list then
dpkg --remove virtualbox-4.2

to remove them (only virtual box stuffs).
Next install from the link above using the deb package.


Which Graphics card do you have?

Is ubuntu prompting you to install any restricted drivers? If yes, install them.

EDIT: If not check again by running jockey-gtk. Activate your graphics driver there.

According to unity --help, unity --reset is specific to compiz:

  --reset           Reset the unity profile in compiz and restart it.

So if you are just using unity 2d, then try resetting the profile by deleting the configuration file, but I only found how to reset all configurations for your user:

Can I reset Unity 2D?

But I think that you do not have to reset it all, just try:

dconf reset -f /desktop/unity/

I couldn't find any other unity entries in dconf. If it doesn't solve your problem, use dconf-editor to find any other entries in there.

Edit:

I have also found some unity-2d related settings in gconf under /desktop/unity-2d. I do not know how to reset these though, so post my value, which should be default as I am not using unity:

/desktop/unity-2d/launcher/favorites:

[ubiquity-gtkui.desktop,nautilus-home.desktop,firefox.desktop,libreoffice-writer.desktop,libreoffice-calc.desktop,libreoffice-impress.desktop,ubuntu-software-center.desktop,ubuntuone-control-panel-gtk.desktop]

/desktop/unity-2d/launcher/hide_mode: 2

/desktop/unity-2d/launcher/super_key_enable: yes

/desktop/unity-2d/launcher/user_strut: no

You haven't specified why you want to reset unity, but these gconf settings will only reset the favourite icons on the unity launcher and make unity hide when it is not active and trigger something on the super (windows) key.


In Ubuntu, is there any terminal that allows for the position of the cursor to be moved with the mouse?

Use emacs.

sudo apt-get install emacs

Upon the install, start emacs:
emacs

Press Alt+X, and type term and press Enter. Voila!

You have a terminal where you can change the cursor position with mouse.

If mouse click does not change the cursor (in 99% of the cases, it will, by default), then put (xterm-mouse-mode t) in your .emacs file:

echo (xterm-mouse-mode t) > ~/.emacs


Suhosin is a PHP extension designed to protect your PHP installation, if you really want to disable it:

Edit /etc/php5/apache2/php.ini (as root) and add:

[suhosin]
suhosin.simulation = On

Then restart apache, sudo service apache2 restart


Ubuntu on Virtual Box Retina display problem

I am not using other OS X apps while working in ubuntu which is anyway my main OS. I decided to go for virtualbox since I can take full advantage of the power saving features of OS X and still use the builtin webcam, the audio system, and USB devices in ubuntu.

I am running virtualbox (at this point 5.1.26) on a Macbook 2015 (OS X 10.11.6) with 8GB RAM and CPU capable of running 4 threads. The default settings were not the best (when playing back videos on the VM) and I needed some tweaking. I am using xubuntu (currently 16.04). I have assigned 3 CPUs despite the warning in VBox and about half of the RAM.

The most annoying tweak is the fact that xubuntu does not like the high native screen resolution. I am using the scripts below to reduce resolution on the OS X side. This works very well and does not give the pixelish appearance of downscaling in virtualbox.

Here is the code you'll need - thanks to those who wrote it:

https://gist.github.com/atr000/207602

Create yourself e.g. a BASH script called set_1440x900.sh

#!/bin/bash

/Users/myusername/Apps/setgetscreenres/setgetscreenres 1440 900

which would set to 1440x900, a perfect resolution for 10 inch Retina macbooks (e.g. 2015 model).

You can also create an AppleScript application to call the script using the OS X Script Editor in Utilities. You can save this as "Application" and then add it to the dock.

do shell script"/Users/myusername/Apps/setgetscreenres/set_1440x900.sh"

After rebooting OS X, which I rarely do, I just click once on this application, and the screen resolution is (smoothly) reduced. It will look blurred for a while, but after a while, you will no longer miss the Retina native resolution, if you work in Xubuntu. If you want to go back to native retina resolution, you can choose any of the modes from the "System Preferences" > "Display". You would probably do this if you would like to work with a native OS X application.

Videos in fullscreen mode now will run smoothly in xubuntu. If you close your macbook, you will send the virtualbox to "save the machine state" in the background, which is exactly what you will want to do on a laptop. This conveniently happens after a while of inactivity in closed state, i.e. for shorts pauses, you will not have "wake up breaks". You can get through a full day with some breaks with a single battery charge (5-6 hours). If you're at a meeting and want to save on battery, slightly dim the display and remove one of the 3 CPUs from the VBox configuration. You might experience some video flickering, but for using google drive, libreoffice, etc., everything will run smoothly.

Using this setup you
-get a long battery life
-can use native drivers for all hardware
-have no issues inside VBox with drivers for linux concerning Mac hardware
-can run other virtual OS in a 2nd and 3rd VBox and exchange data between all OSes easily, including the host OS X
-don't need to like or be familiar with OS X. You barely don't need to touch it. However, it might come in handy to run some non-free applications, be some firmware updater for a device and alike.
-can transfer your "favorite working linux configuration" easily to any other standard PC, laptop, server, etc. with the same CPU architecture
-even control homebuilt hardware based on e.g. arduino and ESP32 from inside  virtualbox in a hassle-free manner.
-do not need to purchase any software license on top of what you get with the computer itself.


How to switch between terminals in Xubuntu?

Ok found the solution.
You just type in Alt + Tab keys for it to work.


Generally speaking malware can affect Ubuntu.

But in dual boot system there is no way that this kind of malware gets from Windows to Ubuntu.

These systems do not share executable files. And Windows malware can not affect linux systems, if not used in wine.

But you can directly get a malicious add-on to Firefox in Ubuntu.


Where is the upper layer of the live cd image overlayfs root filesystem stored?

COW  stands for copy-on-write, In the case of live media it refers to the changes that are made to the live environment. It is accessible if you boot live iso in persistence mode, in that case it is written to the drive, folder or casper-rw container file you specify. But if persistence mode is not enabled it is just a memory only device.

There are many articles available on askubuntu regarding persistence.


I have the same laptop (XPS 15 9560) and had a pretty torrid time getting Linux of any flavour working on it initially however it is working brilliantly now. Initially I fought with getting Solus installed but am now on Ubuntu 18.04 and happy.

I think some of the problems may be firmware related (WIFI issue?) so if you still have Windows installed I'd recommend updating to the latest firmware to see if that helps with the connectivity. I am using BIOS version 1.9.4.

For the touchpad issue I used an external mouse to install, and then after a full update the touchpad worked fine for me. A driver issue fixed in newer versions of the kernel than the installation image uses perhaps?

There is another frustrating issue that I encountered where the laptop hangs on reboot and requires a hard reset. This turns out to be a problem with the nouveau nvidia driver. It may be fixed but I blacklisted the driver during and after the install and only use the integrated Intel graphics. It's a bit of a process involving editing things on boot and from the command line.

Since you are new to Linux & Ubuntu your last (and admittedly not ideal) option might be to wait for the 18.04.1 release where there will be updated installation issues with hopefully much better out of the box support for the laptop.


Errors followed by command "Sudo nautilus"

You don't need to bother with this things. These are not errors but warnings. It is probably for the reason that, the root user has no session currently, and you are not logged in as root. so ignore these messages.
You can get rid of these kind of messages (if you want) by running gksu nautilus command in the run command window. Pressing alt+f2 will bring up one.
The terminal way
you can open nautilus with root access in terminal without error messages by typing this
sudo -i nautilus &> /dev/null.  Here the error messages are redirected to another output device, which is simply null or nothing. See this answer for more


You can try (on the command line):

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

If it doesn't solve the problem, pasting the output in your question might be useful.


The problem might be due to the incompatibility of the built-in driver in Ubuntu 13.04 release.

Download compat-drivers source code: https://www.kernel.org/pub/linux/kernel/projects/backports/2013/03/04/compat-drivers-2013-03-04-u.tar.bz2
Extract the tarball and type the following commands on a terminal:

  cd [path-to-extracted-driver]

  ./scripts/driver-select alx

  make

  sudo make install

Reboot the system.


What's happen to my application Ubuntu 14.04 LTS

after searching for a long time i found a great solution by append

env "QT_X11_NO_MITSHM=1"

to Exec .desktop path

reference here


Hard drive disk displayed as 2.2 TB despite being bigger in reality

It seems you've used fdisk or one of the ext2 tools to partition the drive.  The maximum disk size for an MBR partitioned disk is indeed 2.2TB.  You need the to have GUID partition table to exceed this limit.  Here's a wikipedia page.

The error message you got seems to suggest using Gparted to format this drive, so the implication is that Gparted understands GUID partition tables and can write them.

You will still appear to lose some of the capacity as the drive manufacturers say '3TB' when what they actually mean is 3,000,000,000 bytes, which is actually about 2.7 real TB.  As stated you will also appear to 'lose' about 5% for filesystem tables and allocations for an ext4 partition.  Actually, the 5% is based on 512bytes/sector and I don't think that will apply in this case.  The final figure may be a bit different.  You might also want to watch your inodes if you're going to have a lot of small files on this drive - the number (of inodes) can't be changed easily later so do your research.


sudo settings by default have 15 minutes time out before reprompting for password, however one can change it to always ask for password every time you call something with sudo. The exact option is timestamp_timeout

  timestamp_timeout

                   Number of minutes that can elapse before sudo will ask
                   for a passwd again.  The timeout may include a frac‐
                   tional component if minute granularity is insufficient,
                   for example 2.5.  The default is 15.  Set this to 0 to
                   always prompt for a password.  If set to a value less
                   than 0 the user's time stamp will never expire.  This
                   can be used to allow users to create or delete their
                   own time stamps via “sudo -v” and “sudo -k” respec‐
                   tively.

And here is the relevant part of my sudoers file as well as two attempts at sudo,as you can see it reprompts:

$ sudo cat /etc/sudoers
[sudo] password for xieerqi:
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults    env_reset
Defaults    mail_badpass
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Defaults    timestamp_timeout=0
Defaults    passwd_timeout=0
(the rest cut out)
================
xieerqi:
$ sudo echo hello
[sudo] password for xieerqi:

As another alternative, you can also use pkexec , which to my knowledge always asks for password