First I would
cd rtlwifi_new-rock.new_btcoex
sudo make uninstall as the hanipouspilot ppa already includes that code.

Use this list here to look up your country code and set it with sudo iw reg set IN Replace IN with the code you got from the link, you must use capital letters.  You should also edit another file with gksudo gedit /etc/default/crda
The last line will contain REGDOMAIN= add your country code after the =
If you are in India it would be REGDOMAIN=IN Save and exit gedit

Reboot

The ant_sel parameter has only been needed in newer HP laptops


My recommendation is that you attempt to reconfigure/reinstall some packages. try running sudo apt-get install --reinstall ubuntu-desktop lightdm pantheon deepin then sudo dpkg reconfigure ubuntu-desktop lightdm. If that doesn't work you may need to fix a few corrupt packages or something. Try using sudo apt-get -f install along with the usual autoclean, clean, update, upgrade, and autoremove commands.


Problem while installing cuda toolkit in ubuntu 18.04

I think the issue is the CUDA driver version.  It looks like the installer tries to install the newest version 455.23.05 and the installation actually fails there.
I've solved it by first downloading the local installer and unselecting the CUDA driver installation, so it just installs the toolkit.
wget https://developer.download.nvidia.com/compute/cuda/11.1.0/local_installers/cuda_11.1.0_455.23.05_linux.run
chmod +x cuda_11.1.0_455.23.05_linux.run
sudo ./cuda_11.1.0_455.23.05_linux.run

In the menu unselect the driver installation:

If not already done, add the nvidia repo as per instructions  from the official website before installing the driver:
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"
sudo apt-get update

Install the CUDA driver 450 manually:
sudo apt-get install cuda-drivers-450

Test by running
nvcc -V
In case nvcc is not found, don't forget to add it to your PATH:
PATH=$PATH:/usr/local/cuda/bin


Your device is covered by default in Ubuntu 15.10 although it requires firmware that is not installed by default but can be added later. My first suggestion is to install 15.10.

If, however, you choose to remain with 15.04, you can compile the later driver. With a temporary working internet connection, by ethernet, tethered or whatever means possible, open a terminal and do:

sudo apt-get update
sudo apt-get install linux-headers-generic build-essential
cd ~
wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/11/20/backports-20151120.tar.gz
tar -zxvf backports-20151120.tar.gz
cd ~/backports-20151120
make defconfig-ath10k
make
sudo make install

Reboot and let us see:

dmesg | grep ath

This will tell us which firmware is missing and I will amend my answer to show how to download and install it.


How can I keep a folder synchronized to an external USB hard drive?

Well, rsync is a great command-line tool for this.

You mentioned that you wanted a GUI, so I recommend Gadmintools which contains gadmin-rsync.

Update: Try giving Unison-GTK a try.


You can press Super (the Windows key) and the number of the terminal's icon in the launcher to quickly open the terminal's window. For example, if it is the fifth icon, Super5 will focus the terminal window if it exists or open a new one.

What are Unity's keyboard and mouse shortcuts?
You can also create a custom shortcut. See Gnome 'Super-#' hotkey like in Unity for an example.


How do I query the current icon state of the mouse?

Known Bug
It seems to be a known bug:
https://bugs.launchpad.net/ubuntu/+source/gnome-screenshot/+bug/659399
https://bugzilla.gnome.org/show_bug.cgi?id=571602
According to the thread we need to install the package gnome-utils which actually doesn't help.

Solution
Using shutter and xdotool command line, I have been able to get a working solution:

The script:

    #!/bin/bash

    # Get current cursor position using xdotool and eval them as variables
    eval $(xdotool getmouselocation --shell)

    # We need the X and Y coordinates. Minus 10 pixels to create some padding around the cursor
    xc=$(($X-10))
    yc=$(($Y-10))

    # Use shutter to capture a screenshot of the area around the cursor 32px by 32px and save it in the current directory
    shutter -s=$xc,$yc,32,32 -c -e -o './%y-%m-%d_$w_$h_$RRRR.png'

This took the screenshot but using the default cursor pointer. BUT it gave me an error message:
WARNING: XFIXES extension not found - using a default cursor image

With that error, I had a direction. I quickly did an apt-cache search xfixes and this came up:
subroot@subroot:~$ apt-cache search xfixes
libxcb-xfixes0 - X C Binding, xfixes extension
libxcb-xfixes0-dbg - X C Binding, xfixes extension, debugging symbols
libxcb-xfixes0-dev - X C Binding, xfixes extension, development files
libxfixes-dev - X11 miscellaneous 'fixes' extension library (development headers)
libxfixes3 - X11 miscellaneous 'fixes' extension library
libxfixes3-dbg - X11 miscellaneous 'fixes' extension library (debug package)
libx11-protocol-other-perl - miscellaneous X11::Protocol helpers
subroot@subroot:~$

I just installed everything:
subroot@subroot:~$ sudo apt install libxcb-xfixes0 libxfixes3 libxcb-xfixes0-dbg libxfixes-dev libxfixes3-dbg libxcb-xfixes0-dev libx11-protocol-other-perl
. . .
subroot@subroot:~$

I then tried again and it worked: :)
subroot@subroot:~$ sh cursor.sh

The result:

Just play around with the dimensions, and screenshot size to get the perfect cursor pointer image. Cheers.


Use an application like Linux Live USB (Windows) or UNetbootin/Startup Disk creator (Linux).
Just navigate to the .iso and burn it to your usb drive.


Is it possible to assign/change custom icons for files in a batch / from commandline?

I couldn't see it in the list shown as I was writing this question, but later I saw a similar question and the answer I was looking for in the list of Related questions on the right:

How can I programmatically change a file's icon?

It seems basically the command for this is:

gvfs-set-attribute -t string /path/to/your/file metadata::custom-icon file:///path/to/your/icon.png

Notes:

1. This doesn't seem to work for Nautilus Scripts in Ubuntu versions before 12.10.

2. This doesn't seem to work for Nautilus Scripts when running Nautilus as root either.


Make programm shortcut with .sh and .png

The easiest way to add a shortcut like that is to install http://apt.ubuntu.com/p/alacarte. It's a graphical tool that enables you to add applications to the menus and the Unity Dash and then you should be able to add it to your launcher as well.


Try to see if there is an entry in the disk list with

sudo fdisk -l

Then try mounting it with

sudo mount -t ntfs /dev/sdb1 /media

To find the correct /dev/sdb location for your external drive look at the result of sudo fdisk -l.


You can just assign the keybinding to a new action, and if it's conflicting with an already existing keybinding it will just complain and ask for a confirmation:


How to uninstall teamviewer deb v10.0.036281 from ubuntu 14.04

First, use the command

dpkg -l | grep team

The full package name should show up in the output on the list of installed applications. Find it and use the name listed. I believe it should look like this:

sudo apt-get purge teamviewer

or, if you want to use a wild card, you can use something like this instead:

sudo apt-get remove teamv*


From search on packages.ubuntu.com I see that libnss3-1d package is not available for Ubuntu 18.04 LTS.

It seems to be renamed to libnss3. Install 32-bit version of it with

sudo apt-get install libnss3:i386

and continue.

I'm not familiar with these tools, but you can also try MCUXpresso (plus see installation guide).


I prefer Weather Indicator (also known as indicator-weather) - not just because I'm one of the developers ;-)

Weather Indicator has a wiki page with information about its features.  It currently does all of your dot points except for "felt temperature" and "warn of rain" (unless you consider notifications as sufficent warning of weather changes).  You can install indicator-weather from the Ubuntu repositories, but I would strongly recommend getting the latest version from our PPA ppa:weather-indicator-team/ppa - it has lots of bug fixes.  The devs are currently working on a new version (foggy) that will be very pretty, and bring back "felt temperature" - with 4 different types!

My-Weather-Indicator currently does have "felt temperature" and moon phases (and dew point etc), but in my very biased opinion it is not as polished as indicator-weather.


How to create keyboard shortcut which initiates suspend

I tested the command mentioned here on Gnome 15.04, and it did the job well. The next thing to do is then to make it available under a shortcut key.

The easiest way would be to create a small script of it:

#!/bin/bash

dbus-send --system --print-reply \
  --dest="org.freedesktop.login1" \
  /org/freedesktop/login1 \
  org.freedesktop.login1.Manager.Suspend boolean:true

save it as initiate_suspend.sh, and make it available under a shortcut key. To do that works the same in Gnome as it works in Unity: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

/bin/bash /path/to/initiate_suspend.sh

to a shortcut key combination of your choice.


Error During 16.04 Install "Can't display this video mode"

For the future beginners out there....

I was working on a server install for 16.04 my main issue was that after install, post reboot, I couldn't see the command line on screen. I believe one fix could have been getting a smaller screen, but I didn't have one.

I also setup the server as RAID 1, so my second issue was that I couldn't just boot into rescue mode from the install disk and edit grub, without figuring out how to mount a RAID 1 drive from rescue mode. It can be done, and I intend to learn but I'm a server/ubuntu beginner!

My solution:

Install from USB/CD -
I didn't connect the computer to a network, so DHCP failed, and instead it asked me to manually set IP, Gateway etc, which I did. DHCP may work - I don't know - but this is the way I did it.
When asked what options to install, I included SSH, as well as other items required, like samba.
When install completed I plugged it into my local network, confirmed the IP address on the network using **netstat -r, and using terminal (OSX) I logged into the server via SSH using.

  ssh denski@192.168.0.11

Once logged in I type:

  sudo nano /etc/default/grub

and then removed the # from the following line to uncomment it: #GRUB_GFXMODE=640x480

followed by ctrl+x to save and exit

Finally I ran the following to commands to update grub and reboot:

sudo update-grub
sudo reboot

I was then able to use the machine with a screen plugged in, rather than remotely. While also getting around the fact I was using RAID so couldn't easily get in via a rescue boot.

Hope this helps somebody!


How can I share a folder between Ubuntu 13.10 as host OS and Windows 8.1 as guest in VirtualBox?

Install the "guest OS additions" (start the guest OS and have look in the menus), then close down the guest OS and look through the "Settings" of Virtualbox itself, there is a section for sharer folders.


How do I report a bug directly to Skype?

Short answer: Bugs should be reported directly to Skype via their "public issue bug tracker" at https://jira.skype.com/
(requires a regular Skype login, obv)

If you haven't reported bugs before (even to Launchpad, etc), I would recommend reading their wiki page first, at:

http://developer.skype.com/SkypeGarage/ReportIssue


Cannot install Ubuntu 16.04 on Dell XPS 9550 -- grub-install /dev/nvme failed

After hours of pain this is my solution to getting this working. Hope it's useful http://www.rationaljava.com/2016/10/dell-xps13-dual-boot-windows-10-with.html


Ubuntu 16.04 LTS

You can try to use the option -std described in the manual,

man gfortan

   -std=std
       Specify the standard to which the program is expected to conform,
       which may be one of f95, f2003, f2008, gnu, or legacy.  The default
       value for std is gnu, which specifies a superset of the Fortran 95
       standard that includes all of the extensions supported by GNU
       Fortran, although warnings will be given for obsolete extensions
       not recommended for use in new code.  The legacy value is
       equivalent but without the warnings for obsolete extensions, and
       may be useful for old non-standard programs.  The f95, f2003 and
       f2008 values specify strict conformance to the Fortran 95, Fortran
       2003 and Fortran 2008 standards, respectively; errors are given for
       all extensions beyond the relevant language standard, and warnings
       are given for the Fortran 77 features that are permitted but
       obsolescent in later standards. -std=f2008ts allows the Fortran
       2008 standard including the additions of the Technical
       Specification (TS) 29113 on Further Interoperability of Fortran
       with C and TS 18508 on Additional Parallel Features in Fortran.

Ubuntu 14.04 LTS

Ubuntu 14.04.1 LTS has long time support for 5 years, until April 2019. I tested in a persistent live system created from the iso file ubuntu-14.04.1-desktop-amd64.iso with mkusb.

When I installed gfortran into this system, it was version 4.8.4

GNU Fortran (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4

The following command line dialogue illustrated what I had and what I did. If you have no luck with Ubuntu 16.04 LTS, you can try with Ubuntu 14.04 LTS. Maybe it works better with the software you want to compile.

ubuntu@ubuntu:~$ sudo lsblk -fm
NAME   FSTYPE   LABEL                    MOUNTPOINT            NAME     SIZE OWNER GROUP MODE
sda                                                            sda     29.1G root  disk  brw-rw----
├─sda1 ntfs     usbdata                  /media/ubuntu/usbdata ├─sda1     7G root  disk  brw-rw----
├─sda2                                                         ├─sda2     1K root  disk  brw-rw----
├─sda3 vfat     usbboot                  /media/ubuntu/usbboot ├─sda3   244M root  disk  brw-rw----
├─sda4 iso9660  Ubuntu 14.04.1 LTS amd64 /cdrom                ├─sda4 999.5M root  disk  brw-rw----
└─sda5 ext4     casper-rw                                      └─sda5  20.9G root  disk  brw-rw----
sr0                                                            sr0     1024M root  cdrom brw-rw----
loop0  squashfs                          /rofs                 loop0  938.7M root  disk  brw-rw----
ubuntu@ubuntu:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/cow             21G   71M   20G   1% /
udev            1.9G  4.0K  1.9G   1% /dev
tmpfs           384M  1.2M  383M   1% /run
/dev/sda4       981M  981M     0 100% /cdrom
/dev/loop0      939M  939M     0 100% /rofs
none            4.0K     0  4.0K   0% /sys/fs/cgroup
tmpfs           1.9G  4.0K  1.9G   1% /tmp
none            5.0M     0  5.0M   0% /run/lock
none            1.9G   76K  1.9G   1% /run/shm
none            100M   56K  100M   1% /run/user
/dev/sda5        21G   71M   20G   1% /media/ubuntu/casper-rw
/dev/sda3       241M   46M  196M  19% /media/ubuntu/usbboot
/dev/sda1       7.0G   37M  7.0G   1% /media/ubuntu/usbdata
ubuntu@ubuntu:~$ sudo apt-get update
Ign cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2) trusty InRelease
Ign cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2) trusty/main Translation-en_US
Ign cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2) trusty/main Translation-en
Ign cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2) trusty/restricted Translation-en_US
Ign cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2) trusty/restricted Translation-en
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Ign http://archive.ubuntu.com trusty InRelease
Get:2 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:3 http://security.ubuntu.com trusty-security/main amd64 Packages [643 kB]
Hit http://archive.ubuntu.com trusty Release.gpg
Get:4 http://archive.ubuntu.com trusty-updates/main amd64 Packages [999 kB]
Get:5 http://security.ubuntu.com trusty-security/restricted amd64 Packages [14.0 kB]
Get:6 http://security.ubuntu.com trusty-security/main Translation-en [345 kB]
Get:7 http://security.ubuntu.com trusty-security/restricted Translation-en [3,491 B]
Get:8 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [17.1 kB]
Get:9 http://archive.ubuntu.com trusty-updates/main Translation-en [491 kB]
Get:10 http://archive.ubuntu.com trusty-updates/restricted Translation-en [3,978 B]
Hit http://archive.ubuntu.com trusty Release
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
Fetched 2,648 kB in 2s (1,235 kB/s)
Reading package lists... Done
ubuntu@ubuntu:~$ sudo apt-get install gfortran
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  cpp-4.8 gcc-4.8 gcc-4.8-base gfortran-4.8 libasan0 libatomic1 libgcc-4.8-dev
  libgfortran-4.8-dev libgfortran3 libgomp1 libitm1 libquadmath0 libstdc++6
  libtsan0
Suggested packages:
  gcc-4.8-locales gcc-4.8-multilib gcc-4.8-doc libgcc1-dbg libgomp1-dbg
  libitm1-dbg libatomic1-dbg libasan0-dbg libtsan0-dbg libquadmath0-dbg
  gfortran-multilib gfortran-doc gfortran-4.8-multilib gfortran-4.8-doc
  libgfortran3-dbg
The following NEW packages will be installed:
  gfortran gfortran-4.8 libgfortran-4.8-dev libgfortran3
The following packages will be upgraded:
  cpp-4.8 gcc-4.8 gcc-4.8-base libasan0 libatomic1 libgcc-4.8-dev libgomp1
  libitm1 libquadmath0 libstdc++6 libtsan0
11 upgraded, 4 newly installed, 0 to remove and 687 not upgraded.
Need to get 17.4 MB of archives.
After this operation, 19.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main gfortran amd64 4:4.8.2-1ubuntu6 [1,252 B]
Get:2 http://security.ubuntu.com/ubuntu/ trusty-security/main libtsan0 amd64 4.8.4-2ubuntu1~14.04.3 [94.9 kB]
Get:3 http://security.ubuntu.com/ubuntu/ trusty-security/main libquadmath0 amd64 4.8.4-2ubuntu1~14.04.3 [126 kB]
Get:4 http://security.ubuntu.com/ubuntu/ trusty-security/main libitm1 amd64 4.8.4-2ubuntu1~14.04.3 [28.5 kB]
Get:5 http://security.ubuntu.com/ubuntu/ trusty-security/main libgomp1 amd64 4.8.4-2ubuntu1~14.04.3 [23.1 kB]
Get:6 http://security.ubuntu.com/ubuntu/ trusty-security/main libatomic1 amd64 4.8.4-2ubuntu1~14.04.3 [8,636 B]
Get:7 http://security.ubuntu.com/ubuntu/ trusty-security/main libasan0 amd64 4.8.4-2ubuntu1~14.04.3 [63.1 kB]
Get:8 http://security.ubuntu.com/ubuntu/ trusty-security/main gcc-4.8 amd64 4.8.4-2ubuntu1~14.04.3 [5,047 kB]
Get:9 http://security.ubuntu.com/ubuntu/ trusty-security/main cpp-4.8 amd64 4.8.4-2ubuntu1~14.04.3 [4,595 kB]
Get:10 http://security.ubuntu.com/ubuntu/ trusty-security/main libgcc-4.8-dev amd64 4.8.4-2ubuntu1~14.04.3 [1,688 kB]
Get:11 http://security.ubuntu.com/ubuntu/ trusty-security/main gcc-4.8-base amd64 4.8.4-2ubuntu1~14.04.3 [16.2 kB]
Get:12 http://security.ubuntu.com/ubuntu/ trusty-security/main libstdc++6 amd64 4.8.4-2ubuntu1~14.04.3 [259 kB]
Get:13 http://security.ubuntu.com/ubuntu/ trusty-security/main libgfortran3 amd64 4.8.4-2ubuntu1~14.04.3 [248 kB]
Get:14 http://security.ubuntu.com/ubuntu/ trusty-security/main libgfortran-4.8-dev amd64 4.8.4-2ubuntu1~14.04.3 [269 kB]
Get:15 http://security.ubuntu.com/ubuntu/ trusty-security/main gfortran-4.8 amd64 4.8.4-2ubuntu1~14.04.3 [4,883 kB]
Fetched 17.4 MB in 23s (724 kB/s)
(Reading database ... 169556 files and directories currently installed.)
Preparing to unpack .../libtsan0_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libtsan0:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ...
Preparing to unpack .../libquadmath0_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libquadmath0:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ...
Preparing to unpack .../libitm1_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libitm1:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ...
Preparing to unpack .../libgomp1_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libgomp1:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ...
Preparing to unpack .../libatomic1_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libatomic1:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ...
Preparing to unpack .../libasan0_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libasan0:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ...
Preparing to unpack .../gcc-4.8_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking gcc-4.8 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ...
Preparing to unpack .../cpp-4.8_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking cpp-4.8 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ...
Preparing to unpack .../libgcc-4.8-dev_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libgcc-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ...
Preparing to unpack .../gcc-4.8-base_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking gcc-4.8-base:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up gcc-4.8-base:amd64 (4.8.4-2ubuntu1~14.04.3) ...
(Reading database ... 169556 files and directories currently installed.)
Preparing to unpack .../libstdc++6_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libstdc++6:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) ...
Setting up libstdc++6:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Selecting previously unselected package libgfortran3:amd64.
(Reading database ... 169568 files and directories currently installed.)
Preparing to unpack .../libgfortran3_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libgfortran3:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package libgfortran-4.8-dev:amd64.
Preparing to unpack .../libgfortran-4.8-dev_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libgfortran-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package gfortran-4.8.
Preparing to unpack .../gfortran-4.8_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking gfortran-4.8 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package gfortran.
Preparing to unpack .../gfortran_4%3a4.8.2-1ubuntu6_amd64.deb ...
Unpacking gfortran (4:4.8.2-1ubuntu6) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up libtsan0:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libquadmath0:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libitm1:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libgomp1:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libatomic1:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libasan0:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up cpp-4.8 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libgcc-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up gcc-4.8 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libgfortran3:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libgfortran-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up gfortran-4.8 (4.8.4-2ubuntu1~14.04.3) ...
Setting up gfortran (4:4.8.2-1ubuntu6) ...
update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f95 (f95) in auto mode
Processing triggers for libc-bin (2.19-0ubuntu6) ...
ubuntu@ubuntu:~$ gfortran --version
GNU Fortran (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

ubuntu@ubuntu:~$ gfortran -dumpversion
4.8
ubuntu@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:    14.04
Codename:   trusty
ubuntu@ubuntu:~$ uname -a
Linux ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@ubuntu:~$

Please notice that I have not tested what happens after updating & upgrading an installed system of 14.04 LTS.


How to know the home directory size limit?

If i got that right you have the quota package installed on your machine?

Then it would be the command:

repquota
(not sure if you need to sudo it or not)

The output should look like:

# repquota -a
                                Block limits               File limits
        User            used    soft    hard  grace    used  soft  hard  grace
        root      --  175419       0       0          14679     0     0
        bin       --   18000       0       0            735     0     0
        uucp      --     729       0       0             23     0     0
        man       --      57       0       0             10     0     0
        user1     --   13046   15360   19200            806  1500  2250
        user2     --    2838    5120    6400            377  1000  1500

(Source)


Cannot get wifi working on macbook pro retina

On some other computer connected to the internet, download these packages appropriate to your architecture; either 32- or 64-bit. Check:

arch

http://packages.ubuntu.com/utopic/bcmwl-kernel-source and also: http://packages.ubuntu.com/utopic/dkms

Transfer them on a USB key or similar and drag and drop them to the desktop of the Ubuntu computer; install them as outlined in the answer you linked.


How to fix zero brightness on lightdm login screen and other xfce power manager issues

Not the ideal solution but I installed GDM3 and gnome-power-manager and removed Lightdm and xfce4-power-manager. It is working fine so far...


I'm using Autofs for my NFS network, see this answer.

Note that :
autofs is a program for automatically mounting directories on an as-needed basis. Auto-mounts are mounted only as they are accessed, and are unmounted after a period of inactivity. Because of this, automounting NFS/Samba shares conserves bandwidth and offers better overall performance compared to static mounts via fstab.

I've used an admin account to configure it, and I use it every day with a normal account.

1st you need to setup your Netgear ReadyNas to act like a server. ( I can not describe this part).

Then I suppose you can setup Autofs like this:

install Autofs

$ sudo apt-get install autofs

create the folder used to mount the connection with your Netgear ReadyNas

$ sudo mkdir /media/shareFolder

set autofs to automatically mount this folder,
in /etc/auto.master add this line:

/media/shareFolder /etc/auto.nfs --ghost, --timeout=60

in /etc/auto.nfs  add this line

Netgear -fstype=nfs,rw,intr,uid=1001,guid=1001   192.168.1.?:/home/something

with:
192.168.1.? is the address of your Netgear ReadyNas
/home/something is the folder shared on  your Netgear ReadyNas
1001 is the normal user (without admin privilege) and group ID. To find it $ id {your normal logon}

Result should be that your /home/something from your Netgear ReadyNas is mounted in /media/shareFolder/Netgear


Go to

System Preferences then Keyboard and click Shortcuts then Custom Shortcuts:

Click on Add

Fill in:

Toggle microphone

and

amixer set Capture toggle

For usb webcams you need to chose device (-c 1), or maybe another number.

amixer -c 1 sset Mic toggle

Click Apply and then associate a new key with this command (e.g. the Pause/Break key).


Should have researched further before asking the question.

I found the answer in here.

The accepted answer can solve the problem for Ubuntu 16.04 as well.


apt-get keeps saying to check Internet, while I have a good connection

Well, I recommend checking your internet connection. Just open Firefox and see if your start page loads.
If you are not connected to the internet, try to connect to a Wifi network. If your computer has no Wifi capabilities, or lacks the necessary drivers, plug an ethernet wire into your computer.


Dell Latitude E6400 keyboard backlight does not work with Ubuntu 18.04

The following commands will help you check the backlight of your Dell Keyboard:

$ cat /sys/devices/platform/dell-laptop/leds/dell\:\:kbd_backlight/brightness
0

Above command will show the configured brightness

$ cat /sys/devices/platform/dell-laptop/leds/dell\:\:kbd_backlight/max_brightness
4

Above command will help you see the maximum brightness value.

$ echo 4 | sudo tee /sys/devices/platform/dell-laptop/leds/dell\:\:kbd_backlight/brightness

Above command will set the maximum keyboard backlight brightness.

You can set the Time_out to your keyboard backlight using the Following Tutorial:

https://www.dell.com/support/article/de/de/debsdt1/sln308123/how-to-configure-the-keyboard-backlight-time-out-interval-in-ubuntu-linux?lang=en


Why do I get a 403 error when accessing my apache server?

I guess that, Your common partition may be an ntfs or fat partition and You just mounted that partition by clicking on the nautilus side bar icon. Doing so, does not mount the partition with executable permission, which is required for firefox to be able to execute the file.
The solution:
The easiest solution without using /etc/fstab file is this:

Open a terminal and type sudo blkid, give password.

From the output of the command, see the type of the partition by looking at the corresponding label, i.e common.

If common partition happen to be /dev/sda2 , mount that partition with the command:
  udisks --mount /dev/sda2 --mount-options umask=022

replace, /dev/sda2 with the actual partition number.

You should now be able to execute/run the files using "Firefox".
Note: You should unmount the partition before using the command. You can unmount it by right-clicking on the partition icon, and select "unmount" from the options


Upgraded with some problems. What happened to my panel? The panels just disappeared

Sounds very similar to that bug some people are unfortunately experiencing:
https://bugs.launchpad.net/unity/+bug/745996

As you can see, it's set to critical and tracked to be fixed in a Stable Release Update during the cycle. However, we have small hints at this stage about what causes it.

All additional information on the bug report it always appreciated :)

It seems that for some people this helped:
1. remove this file from your filesystem: ~/.drirc
2. logout and login again

How do I subscribe to a bug?


Volume control via media keys in xubuntu

I had the same trouble. The advice on this page fixed it for me:

http://ulno.net/2011/04/16/mixer-control-with-multimedia-keys-und-multiple-soundcards-in-xfce4-on-debian-or-ubuntu/

In short:
Settings -> Settings Editor
Find the section xfce4-mixer.
Set the value of property active-card to the same as the value of sound-card.


Does a MaaS region or Cluster controller going down mean the provisioned servers go down or only that new servers will not be provisioned?

It means that no new machines can be acquired, provisioned or enlisted.  Existing machines that are allocated and running are not affected.

If it was only a cluster that went down then only that cluster's machines are affected.


I think you answered your own question. Snaps are bulky because they also include some dependencies, and are thus "self-contained" apps. There are pros and cons.
The reason you would have more than one instance of a library on a system is because there could be different versions required, especially if you're running older apps. I think for newer apps that uses the latest dependencies, this should rarely be an issue.
If you have no dependency issues, there is no real reason to use snaps - this is especially true for servers. For myself, I've had little reason to install snaps over apt packages (also because the snaps I tried was not maintained, and thus had less functionality than the corresponding apt packages).


alt-middle mouse to resize - stuck on resize

AltEsc seems to get the mouse point out of resize mode.


Intel Dual BandWireless-AC 3168 does not work on Ubuntu 16.04

This adapter is supported since kernel 4.6.

The kernel version in Ubuntu 16.04 is 4.4.

You can install kernel 4.8 to Ubuntu 16.04 this way:

sudo add-apt-repository ppa:canonical-kernel-team/ppa
sudo apt update
sudo apt install linux-generic-lts-yakkety
sudo add-apt-repository -r ppa:canonical-kernel-team/ppa

Reboot after you do it.

After the linux-generic-lts-yakkety package appears in main Ubuntu repositories (it should happen soon) it will start getting updates.

You also need to install firmware this can be done by

wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161_all.deb
sudo dpkg -i linux-firmware_1.161_all.deb


I'm fairly new to Ubuntu aswell, but maybe this will help:

Why isn't Google Chrome available in the Software Centre?


What login screen program will 11.04 use?

There's an intention to replace GDM with LightDM in Natty+1; some details here. As things stand, LightDM is set to be in Universe in Natty and usable as a GDM alternative, but the default will be GDM.


Solution to viewing WMV files wants to remove packages. How can I solve this?

Try installing libavcodecs

Also, just to be sure you haven't got anything weird going on, run sudo apt-get -f install and sudo apt-get check


From your description, it does not seem like Software Center is broken.

Support for Ubuntu 16.10 ended about 8 months ago. There is simply no longer any new software available for Software Center to display. Those software repositories were closed and withdrawn (that's what happens when support ends).

It's unwise to keep using 16.10 for much longer - your system has not received any security updates for 8 months, and may be vulnerable to published exploits.

You have three options:

You can backup your data (mail, photos, browser settings, etc) and install Ubuntu 16.04 LTS, which is fully supported for three more years. It will look and feel very much like your current 16.10 system.
You can wait until late April 2018, and then backup-your-data-and-install the newly-released Ubuntu 18.04 LTS, which will be fully supported for five more years. The look-and-feel will be slightly different (slightly, not hugely), as the system has evolved a bit in two years.
You can backup-and-install the current Ubuntu 17.10, which is supported for only six more months. I don't recommend this option for you, as the same problem (end of support) will re-occur soon.

Regardless of the option you choose, preserving your data is very important. Installing a new release of Ubuntu is rather serious surgery - there is chance of serious complications. Those complications, while rare, might lead to complete data loss while leaving your PC physically unharmed.

This site has the stories and tears of some folks who suffered just such rare complications and lost all their photos and emails and work. Don't let it happen to you - take a few minutes and preserve your data before starting any of those options.


According to the linpac-0.21 README:

Release packages can be identified by the presence of the ./configure in
this directory. If the ./configure script is not present, then see the
'Hacking' instructions below.

The instructions are:

NOTES FOR HACKING
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A clean checkout from the GIT source repository is not ready to configure
and compile. You will need the GNU autotools
(https://en.wikipedia.org/wiki/GNU_build_system) to create the
./configure script and Makfile templates. Once the autotools are
installed the full build procedure is:

    autoreconf --install
    ./configure
    make
    make install

So it seems you need to run autoreconf --install rather than plain autoconf. Alternatively, you could consider using linpac-0.20 instead, which appears to be the most up-to-date release version.


To see CPU temperature in in thousandths of a degree C, use the following command:

cat /sys/class/thermal/thermal_zone0/temp

To see detailed temperature information for other system temperature it is best to install lm-sensors using:

sudo apt-get install lm-sensors

Then you can run sudo sensors-detect to detect the sensors in your system and type yes at the end to have sensors-detect insert those modules into /etc/modules.

Run service kmod start to load these modules and run:

sensors

to get the temperature information for different parts (motherboard, coretemp, fan, etc.).

You can also redirect the output of sensor to a text file:

sensors >> /path/to/file.txt

Or watch it in real-time with:

watch -n 1 -d sensors

This updates it in every 1 second and highlights the difference from the second before.

More information is available in the SensorInstallHowto.


Is there a simple way to visualize a spreadsheet in terminal or as clear text?

You could use unoconv to transform the Calc sheet into csv. But unoconv seems to be quite instable, i didn't manage to get it working on a simple ods (calc) file.

A better choice is jodconverter. It's available in universe, so you can install it using apt. Jodconverter requires an instance of openoffice running and listening on port 8100.

To "manually" convert this sheet

from ods to csv:

$ soffice -headless -accept="socket,port=8100;urp;"
$ jodconverter Untitled1.ods Untitled1.csv

The resulting csv will look like this:

$ cat Untitled1.csv
"A","B","C","D"
34,68,23,3
34234,68468,34,1
3423,6846,34,34535

If you don't need the table structure but just the contents for indexing purposes, take a look at odt2txt. It seems to be able to handle ods files, too, but it won't preserve the table structure. It doesn't require q soffice process running. With the sheet shown above, you will receive the following output:

$ odt2txt Untitled1.ods

A

B

C

D

34

23

3

34234

3

34

1

3423

234

34

34535


Tell Ubuntu: Erase all partitions, use entire disk for LVM

If nothing else works, you can

Remove 'every trace' of the previous partition table by wiping the first mibibyte (overwrite with zeros).

mkusb can wipe the first mibibyte in a safe way.
Create a partition table (but without any partitions).

Use gparted when booted from a separate live drive. Select

Device - Create Partition Table ...

Now there is no cruft that is confusing the installer. Things will work.

There are detailed descriptions of what partitions there should be in different boot modes and partition tables at this link, but I think the installer can do it automatically.


If you are running Windows then yes, if you choose to install Ubuntu on (D:) all you data will be erased.  This is because Ubuntu uses a totally different formatting system (ext4) than Windows uses (NTFS).  Ubuntu won't run on NTFS and Windows won't run on ext4.

At this point you have two options:

1. You can create a new partition for Ubuntu (shrinking one of your others) and install Ubuntu there.  NOTE:   if your using a newer computer, you might already have four (4) primary partitions, the maximum  a hard drive can support. (There are ways around this, but I don't recommend them for new users)

2. Or you can use the Windows installer (WUBI) to safely install Ubuntu inside of Windows in a kind of virtual partition.  If you install Ubuntu this way you can uninstall it like any other Windows program, which is great for beginners.

I recommend using WUBI if this is your first time using Ubuntu and aren't sure you want to commit.  Using WUBI eliminates accidental mistakes while partitioning, making it a safer route for beginners.


How to seed the apt and/or dpkg database of packages?

It turns out one must first copy the repository descriptors (Packages, Sources, Release, Release.gpg, Index, Translation-en) to /var/lib/apt/lists. Start by installing apt-offline, which has very few dependencies (I was starting from a command-line Ubuntu installation). Once the repository descriptors are in place, both apt-offline and apt become workable.


I haven't ever used the Windows installer, so I unfortunately can't help you too much.  I have the same computer though, and it wouldn't boot because of the b43 firmware.

The solution was to blacklist the b43 module via GRUB and then install the firmware-b43-installer once Ubuntu is loaded. (More information here)

According to the WubiGuide, here is how to edit the GRUB command line options on wubi installs:

  For grub errors, immediately after reboot, press [INSERT] rapidly after selecting  Wubi and/or press [ESC] at the countdown after selecting "Ubuntu" and use [C] or [E] to enter the appropriate boot options manually

What you should do:

Use the above directions, then enter in b43.blacklist=yes and press
CTRL+X to boot.
Install the firmware-b43-installer package.

sudo apt-get install firmware-b43-installer

Reboot and you should have a working system with wireless.

Note: I haven't tried this so post a comment if something doesn't work quite right.


Windows and Ubuntu as dual boot and when partitions should be primary and logical?

https://help.ubuntu.com/community/DualBoot/Partitions (from Gabriel)

This link helps explain it fairly well. But basically, you should use Primary for both your OS installations. And Swap probably should be a logical drive since you can only have 4 primary drives and there's no real reason to waste on of those spaces for swap.
I'm a bit confused by what you mean here. Are you installing separate partitions for each of those folders? There's really no need to do that, you should just install your entire OS on one partition unless you have multiple hard drives or SSDs that aren't large enough to hold a single OS, which most of the time isn't a problem, a little more info would be helpful :)


How can I get kubuntu to respect previous window sizes?

Auto stretch ?

KDE Forums / Windows auto-resize width : http://forum.kde.org/viewtopic.php?f=66&t=97839

Window rules

Configure settings specifically for a window

System Settings > Window Behavior > Window Rules

Special Window/Application Settings

Right click the window border > Advanced > Special Window/Application Settings > Size & Position

Size - Remember


This is definitely due to the bad downloaded file. I downloaded 32bit version of Metasploit and installed. Though initial step worked, starting metasploit fails because of the conflicting of rubygems. So, I uninstalled the 32bit Metasploit and installed newly downloaded 64bit Metasploit. It worked perfectly and Metasploit can be run without no error. All problems solved.


Thinkpad X250/X260 w/ docking station w/ 2 external monitors w/ Ubuntu >= 14.04?

x240 and x250 no problem with 2 external monitors (keep in mind you do need the right docking station) and ubuntu 15.04, 15.10 and 16.04.

I had problems with the set up for the x260. Even with a brand new docking station. Not sure if I had a Monday-machine or if the hardware was conflicting. I did not get it to work with ubuntu 15.10 and x260 and docking station and two external monitors. Even after replacing the mainboard of the laptop (I had a technician come by and replace the mainboard after seeing some weird Intel errors).

Hope this helps. Would love to hear people's experiences with this x260 set up and with ubuntu 16.04.


VMWare Player - Ubuntu 14.04.3 LTS fails to login

I was able to figure out the problem. After looking through many forums and other questions on SuperUser, I was able to locate the problem.

A user here stated that they were messing around with video drivers, which caused the AMQP service to fail.

My laptop (Lenovo p500) has a bug to where dimming the brightness sometimes turns off the screen backlight, and it happened to me earlier today. The only way to get it to return is to roll back the driver. It reset it back to the Windows Basic Display Driver. After searching for a driver update and reinstalling the Intel HD 4000 graphics drivers, I was able to log into Ubuntu again.


Compatibility with Apple Devices and Printers

HP printers works with Linux, as dos other HP devices. As for Apples iPhones, iPads etc well sometimes, some of the mediaplayers have more support than others, try googling your devices with reguard to linux/ Ubuntu.


How do I install Atom editor and start it without sudo?

Delete ppa and all previous file related to the installation (and obliously disinstall it) and then try to install by the official page and instead of use shell use your desktop enviroment.

Sounds like you've installed atom for "root" user and not for your user.


OpenOffice 4.1.1 not installing in Ubuntu 14.04 32-bit

Remove LibreOffice by typing in terminalsudo apt-get remove --purge libreoffice*

Check your Java version: java -version(To install java Click here)

For you(32 bit) type in terminal :
wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.0/binaries/en-US/Apache_OpenOffice_4.1.0_Linux_x86_install-deb_en-US.tar.gz
Then type: tar xzf Apache_OpenOffice_4.1.0_Linux_x86_install-deb_en-US.tar.gz
Go to right directory: cd en-US/DEBS/
Install OpenOffice: sudo dpkg -i *.deb
Integrate with desktop: cd desktop-integration/
Install integration: sudo dpkg -i openoffice4.0-debian-menus*.deb
Start OpenOffice


Execute a shell-script when closing laptop lid

Use acpi:

The event is handled by acpi:

$ sudo nano /etc/acpi/handler.sh

I did something like this:

    button/lid)
        case "$3" in
            close)
                logger 'LID closed'
        USER=$(ps -C i3 -o user=)
        if test $USER; then DISPLAY=:0.0 su $USER -c "/usr/bin/i3lock -i /usr/share/pixmaps/Screensaver.png"; fi
                ;;

Automatically starts i3lock when i close my lid.


check with following code :

sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
npm install

to check version,

npm -v

output will be like this

1.4.28


How to upgrade from Ubuntu-12.04 LTS to the latest Ubuntu version

The steps has to be incremental viz:

12.04 to 14.04 to 16.04 to 16.10 to 17.04

Step 1:

1a. 12.04 to 14.04:

Press Alt+F2 and type in "update-manager" (without the quotes) into the command box
Update Manager should open up and tell you: New distribution release '14.04 LTS' is available.
Click Upgrade and follow the on-screen instructions.

1b. Server editions:

Install the update-manager-core package if it is not already installed.
Launch the upgrade tool with the command sudo do-release-upgrade.
Follow the on-screen instructions.

Step 2: 14.04 to 16.04:

Make sure that you are fully up-to-date.
Trigger the update: sudo update-manager -d
The Update Manager application will open after a few seconds. It will double-check you're up to date. It will display a prompt asking you if you want to upgrade. Just click the “Upgrade’ button to begin the process.
Wait for for the update manager to finish its work.

Step 3:

1a. 16.04 to 16.10 (Desktop)

First always backup important data, bookmarks, etc.

disable or remove all third-party repositories on Other Software tab.
select Open Source graphic driver in Additional Drivers and REBOOT after applied changes.

Open Software & Updates using the Unity Dash
Select the Updates tab
Find the section titled Notify me of a new Ubuntu version
Change this from For long-term support versions toFor any new version`
Click Close
Run: sudo apt update && sudo apt full-upgrade
Open terminal and run: sudo update-manager -d, when the software updater appears select upgrade

1b. 16.04 to 16.10 (Server):

sudo apt install update-manager-core
sudo nano /etc/update-manager/release-upgrades

Change the line "Prompt=LTS" to "Prompt=normal" (without quotes) and save the file.

sudo do-release-upgrade -d

Step 4 16.10 to 17.04:

Always make a backup of important data, bookmarks, and other user documents.
Remove or disable third-party repositories:

Launch Software & Updates utility, navigate to Other Software tab, and remove/disable all third-party repositories.

Restore to open-source drivers:

Also in Software & Updates utility, Additional Drivers tab, switch to the open-source drivers if proprietary drivers are in use. (Need restore after applied changes)
And it's better to choose download from 'Main Server' in Software & Updates utility.

Make your system up-to-date by running command in terminal:

sudo apt update && sudo apt full-upgrade

After all, launch Update Manager via the command below and it will prompt that Ubuntu 17.04 is available after checking for updates:

sudo update-manager -d

Source(s):

http://ubuntuhandbook.org/index.php/2017/04/upgrade-to-ubuntu-17-04-from-ubuntu-16-10/

http://www.omgubuntu.co.uk/2016/10/how-to-upgrade-to-ubuntu-16-10

http://ubuntuhandbook.org/index.php/2016/10/upgrade-ubuntu-16-10-from-ubuntu-16-04/

https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes#Upgrading_from_Ubuntu_12.04_LTS_or_Ubuntu_13.10

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


Add a repository, so that the Google Chrome can be installed

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable

After that start

sudo apt-get install software-center

If you don't need Google Chrome, remove with

sudo apt-get purge google-chrome-stable

and remove the repository

sudo rm /etc/apt/sources.list.d/google.list
sudo apt-get update


How do I identify the correct driver to blacklist in modprobe?

No use, you can't block it that way, because it does not have a kernel space driver (module). As you can see it is UNCLAIMED. I've same device in Dell Latitude E6410.

lsusb -d 0a5c:5800

Bus 002 Device 005: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor

sudo lsusb -t (See Bus 2 Device 5, took from above output)

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 8: Dev 5, If 0, Class=Application Specific Interface, Driver=, 12M
        |__ Port 8: Dev 5, If 1, Class=Chip/SmartCard, Driver=, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M

sudo lshw

             *-usb:1 UNCLAIMED
                  description: Generic USB device
                  product: 5880
                  vendor: Broadcom Corp
                  physical id: 8
                  bus info: usb@2:1.8
                  version: 1.01
                  serial: 0123456789ABCD
                  capabilities: usb-1.10
                  configuration: maxpower=100mA speed=12Mbit/s

It is using a user space driver like libccid that communicate through libusb , the only way to stop it, is to stop any tool that use it like pcscd, pam could have a module for it too.


Skylake Intel Chromebook no audio only shows hdmi as output

Install "pavucontrol", open it, go to the "Configuration" tab and under "Built-In Audio" try selecting something along the lines of "Analog Stereo Duplex", or just try stuff until something works.

I am no expert, though, and this will basically disable audio through your HDMI port. I just installed Xubuntu on a Dell Inspiron, and this fixed my issue. Hope this helps!


OS X keyboard mapping and shortcuts in Ubuntu 12.10

Try this.

sudo apt-get install pommed

I installed this on 12.04 but found it was unnecessary on 12.10. Anyways, see if this works for you.

Source: http://alioth.debian.org/projects/pommed/


How to I create a hidden directory remotely through a script?

Your script is only running one command on the remote server:

ssh -q $i /usr/bin/sudo /usr/sbin/adduser $username --gecos "$username,,," --disabled-password;

Everything after that is run on your local machine instead. If you want to run multiple commands on the same ssh session, you need to pass them to ssh as a single command. For example:

while IFS= read -r  host; do
    echo "Adding user $username on $i"
    ssh -q "$host" "/usr/bin/sudo /usr/sbin/adduser '$username' --gecos '$username,,,' --disabled-password; \
    echo '$username:$password' | /usr/bin/sudo chpasswd; \
    /usr/bin/sudo mkdir -p /home/'$username'/.ssh; \
    /usr/bin/sudo touch /home/'$username'/.ssh/authorized_keys; \
    /usr/bin/sudo chmod 600 /home/'$username'/.ssh/authorized_keys; \
    /usr/bin/sudo chmod 700 /home/'$username'/.ssh; \
    /usr/bin/sudo chown -R '$username:$username' /home/'$username'"
done < "$hostfile"

Note how all the commands are within the same " " quoted block. The \ at the end of the line is just for clarity: they let you add the next command on a separate line.


Creating a Live USB with minimal files at root?

Well, no. That is Ubuntu disc structure and it cannot be modified.

The main image with all the contents resides in casper/filesystem.squashfs.

The boot folder contains grub bootloader so can't be removed.

The dists and pool folders contains some packages that ubuntu installs.

EFI is also important for newer computers.


Can I usably run Photoshop in a Windows VM with this setup?

Those specifications will be more then adequate for your expressed need. You could probably use an i3 and less ram (4-6 Gb) if money is tight.

My only concern would be with the ati card, you might check compatibility with that (or wait for someone with more ATI experience then I have to comment.


Why does Google Music Manager refuse to open in 12.04?

Quit google-musicmanager.
Delete the directory ~/.config/google-musicmanager.
Start google-musicmanager again. You'll get an initial setup wizard again - this time, choose an empty directory to upload music. Then the bug will not be there anymore.

I found this workaround on ubuntuforums.org.


Ubuntu 12.04 LTS always stuck in Login First time, but to recovery screen second time

I had a similar problem once, and what I noticed in my case was that it was user-dependant. so I simply created a new user for the staff, and used that to log in, and it was fine with the new user. I then deleted the offending user account.  from your information it is a bit hard to tell what is going on, but if you show some log files we can have some better ideas, /var/log/syslog, /var/log/dmesg, and /var/log/auth.log would be a good start.


Messaging app not opening after OTA 12 update

Found an answer myself: Delete/rename (whatever) this folder: /home/phablet/.cache/QML/Apps/messaging-app
and it works again.


Can I share a private IP address on Wi-Fi and Ethernet?

You could configure both interfaces with the same IP, but only one can be active at a time.  To switch from the ethernet connection to the wifi, you could use the following commands.  Someone else may have a much more elegant solution than this.

sudo ifdown eth0
sudo ifup wlan0

reversing this of course to get back to your ethernet:

sudo ifdown wlan0
sudo ifup eth0


Did you install MongoDB from Ubuntu repository? If yes then mongodb user will be already there. You can check it by running this command

cat /etc/passwd | grep mongodb

I guess permission problem will be solved by running these command

sudo chown -R mongodb:mongodb /yourmongodb
sudo service mongodb restart

Now MongoDB data files will be stored in /yourmongodb


Ubuntu 14.10 can't install libplrpc-perl, and php-bcmath

bcmath  is builtin as an included module in the packages php5-fpm  and
libapache2-mod-php5

And since that the php5-fpm system as well as the libapache2-mod-php5 plugin is  included by default in apache installtion,then you don't  have to install any additional packages or plugins to get bcmath.

Now for libplrpc-perl update your source list then try to install:

sudo apt-get update

sudo apt-get install libplrpc-perl


2 suspicious «non existent» tasks named 0000:06:00.0_di and 0000:06:00.0_ev. What are they?

This processes belongs to a scsi device on your system.

You can use hwinfo or find /sys -name \*0000:06:00.0\* or lsscsi -v on your system to identify it.

I have (no ubuntu) 0000:08:00.0 processes and it is a Tape Drive:

# ps axuww | grep 0000:08:00.0
root       659  0.0  0.0      0     0 ?        S<   Jul30   0:00 [0000:08:00.0_ev]
root       660  0.0  0.0      0     0 ?        S<   Jul30   0:00 [0000:08:00.0_di]

# find /sys -name \*0000:08:00.0\*
/sys/devices/pci0000:00/0000:00:1c.4/0000:08:00.0
/sys/bus/pci/devices/0000:08:00.0
/sys/bus/pci/drivers/mvsas/0000:08:00.0

# lsscsi -v
[1:0:0:0]    tape    HP       Ultrium 5-SCSI   Z64D  /dev/st0
  dir: /sys/bus/scsi/devices/1:0:0:0  [/sys/devices/pci0000:00/0000:00:1c.4/0000:08:00.0/host1/port-1:0/end_device-1:0/target1:0:0/1:0:0:0]


GNOME Shell in VirtualBox host broken after a kernel upgrade

I have actually just solved the problem, but will keep my question up here in case any other users have the same problem. The solution is to reinstall the GNOME Shell package. To do this, in the terminal type:

sudo apt-get install --reinstall gnome-shell

Once this has finished, log out of your current session and then choose the GNOME session. In my case

Hope this helps!


Ubuntu 13.10 installed and worked, but now not working

The issue was the Intel Graphics Card and its drivers in the latest kernel.

I just upgraded to the latest kernel release.  Everything now works Great.


Ubuntu 16.04 hangs on splash screen during boot

So as I commented above, I reinstalled Ubuntu 16.04, and the nvidia-384 driver to test out my theory on the cause of this havoc.

I strictly followed this link to control GPU fan remotely.

It works like a charm, but after that, I ran into the same rebooting error.

However, this time, I was able to simply call sudo service lightdm restart from my ssh connection, and I was able to successfully login.

So right now, I changed quiet splash in sudo vim /etc/default/grub to acpi=force so that I will boot into shell directly with no display.

This is really annoying, and I really would appreciate somebody if he/she could propose a working solution to this mess.

UPDATE

I was able to fix the issue in the end.

After having a clean install of Ubuntu, instead of following the instructions in the above link, I did such:

sudo env DISPLAY=:0 nvidia-settings -a [gpu:0]/GPUFanControlState=1 -a [fan-0]/GPUTargetFanSpeed=100


Installing problem Intel graphics driver in Ubuntu 16.04?

https://01.org/linuxgraphics/downloads/intel-graphics-installer-linux-1.4.0 says that:

  This release of the Graphics Installer is targeted at Ubuntu 15.10 or
  Fedora 23.  Ubuntu 16.04 is already current with the latest Q1 2016
  Intel Graphics stack and therefore no Graphics Installer is needed.

Therefore, you didn't need to run the installer and even if you did, it wouldn't work, which is what you saw.


Need to change permission so I can delete file in hard drive

The Clonezilla is in your home folder /home/user(your username) or the the system folder (/) or somewhere ?
For example, in the first case you can open a terminal and run this command whether the folder is named Clonezilla
sudo rm -Rf Clonezilla/ Enter. This command delete the files under Clonezilla directory.

In the latter case, open a terminal and delete the appropriate folder ( for example, /opt/Clonezilla)
cd /opt/ Enter
sudo rm -Rf Clonezilla/ Enter. This command delete the files under /opt/Clonezilla/ directory

If you are not sure whether to use the terminal or not, please do this.
Could you open your file manager and with your mouse and right click on the folder and select properties from the menu displayed?. Look at the permission tab and told what permissions you have and write the output in order to proceed with a solution. You can try to change the permissions with the drop down menu on the permission tab.
Another related question is whether you can see with your file explorer an icon different from the folder icon, may be it was locked for a root user. I Ubuntu you can use the terminal as I showed before with sudo to delete the directory.
Regards,


How to delete a line using a shortcut in Gedit?

yes you can using Ctrl + D as you can see in this page under the Shortcut keys for editing files: Gedit shortcut keys


Looks as if the qtnx client was deleted from the ubutu repositories as of 13.04

https://launchpad.net/ubuntu/raring/amd64/qtnx/0.9-3ubuntu4

You can try the quantal build https://launchpad.net/ubuntu/+source/qtnx/ or build from source.


I can't install anything on Ubuntu 14.04

The creation of the initramfs is a bit a lenghty process. And depending on how fast your system is, it can takeup to minute. Upon each new Kernel installation it has to be created newly. Let the process finish - I admit it's confusing if you don't see a progress bar!

Further reading: wikipedia!

man update-initramfs explains a little bit about the process.

You can also run the command on it's own:

sudo update-initramfs -u

If you get errors just post them. No need to install newly. :-)


Looks like the UTF-8 locale en_IN has not been generated on your system. So then generate it:

sudo locale-gen en_IN

Edit:

The error messages reveal a bug in Software Updater. A workaround to get rid of the error messages is to change LANG to "en_IN.UTF-8".

sudo update-locale LANG=en_IN.UTF-8

Edit II:

To fix the new problem, try these commands:

sudo rm -f /var/lib/apt/lists/*
sudo apt-get update


How do I use OpenStack and Keystone with juju?

I think this is basically answered here:

How can I configure multiple deployment environments for juju?

You just need to explicitly set the right keys in environments.yaml, specifically ec2-uri, s3-uri, access-key, default-image-id and secret-key.

Your keystone bits should be producing the access key ID and secret key that will be used to populate those fields.


How to configure Citrix Receiver started through Cisco Secure Desktop on Ubuntu 15.10

I received the same error message ever after working my way through https://help.ubuntu.com/community/CitrixICAClientHowTo

Try making Firefox's certificates accessible to Citrix:

sudo ln -s /usr/share/ca-certificates/mozilla/* /opt/Citrix/ICAClient/keystore/cacerts

This worked for me.

Also take a look at this link:

Certificate error when using Citrix Receiver


What is my option if I deleted my netplan yaml file?

First, using the terminal command ifconfig, find the relevant interface that you are trying to configure. It may be something like ens3 or enp3s0 or similar.

Now recreate the file:

sudo nano /etc/netplan/01-netcfg.yaml

Write the following:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      dhcp4: true

Of course, substitute the interface you found if not enp3s0.

Spacing and indentation are crucial and must be perfect. Proofread carefully twice. Save (Ctrl+o followed by Enter) and exit (Ctrl+x) the text editor.

Now apply the settings:

sudo netplan apply

You should be all set.


Try to run eclipse as sudo.

In my case I tried with:

    sudo /home/iocio/Desktop/adt-bundle-linux-x86-20131030/eclipse/eclipse

and the problem is solve it.

Edit: Why do you put me -1 point?? Thank you guy.


Boot-repair commands not found in PATH or not executable

In your terminal do the following:

sudo gedit /etc/default/grub

Search for the line: "quiet splash" and change it to  "quiet splash nomodeset"; then,

sudo update-grub

sudo echo FRAMEBUFFER=y > /etc/initramfs-tools/conf.d/splash sudo update-initramfs -u


unable upgrade to ubuntu 13.04 from 12.10

prepend sudo

In your last command, prepend sudo to elevate privileges, as the error message suggests. So, run:

sudo apt-get -f install

Either way, your message is about very much base packages not installed at the moment... it sounds very suspicious to me that tzdata isn't installed. That would result in all timezone related operations to fail. So, I suspect more is broken on your system, but have a try.


How to permanently change floppy rights?

So this was solved thanks to Rmano: I had to add uid=<my user id> to the list of options in /etc/fstab. So, the final line becomes:

/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8,uid=<my user id> 0 0


How can I import output from a command as a command in Bash?

As pLumo showed you, you can indeed source them. However, I would recommend against this. If you have something like this:

source <(sed -n '/# Main configuration./,/# Websites./p' webcheck-$category.cfg | sed '1,1d' | sed '$ d')

echo "$email_sender"

Then, a year later when you come back and look at this script, you will have no idea where this email_sender variable is coming from. I suggest you instead change the command and use one that returns only the variable's value and not its name. That way, you can easily keep track of where each variable comes from:

email_sender=$(grep -oP 'email_sender=\K.*' webcheck-$category.cfg)
email_recipients=$(grep -oP 'email_recipients=\K.*' webcheck-$category.cfg)


ssh connects a client and a server over a TCP socket, and the sockets can be thought of a two way pipe. Whatever you send on one end, will be available on the other, and vice versa.

Broken Pipe is a generic socket error message which means the socket has been teared down i.e. the communication pipe is broken. This is not strictly related to ssh protocol but to socket and how the connections can be teared down.

It's not harmful per se, but any ongoing transfer will be lost, so depending on the value of the transfer you can measure the harmfulness for your case.


What are the choices for the Ubuntu desktop GUI and how do I enable them?

There are many Desktop Alternatives,  Below is a list of most of them.  To install any of them, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands that corresponds with each one you want.

Gnome Shell

sudo apt-get install gnome-shell

KDE

sudo apt-get install kde-standard

XFCE

sudo apt-get install xfce4

LXDE

sudo apt-get install lxde

Openbox

sudo apt-get install openbox

Gnome Classic

sudo apt-get install gnome-session-fallback


How to export and import VirtualBox VM images?

Copy/pasting the VM files is not the way to go. You need to use the correct export/import feature of VirtualBox.

With the following instructions you will be able to transfer a VM across several different physical machines and it's also a good way to make backups.

Export

Open VirtualBox and enter into the File option to choice Export Appliance...

You will then get an assistance window to help you generate the image.

Select the VM to export
Enter the output file path and name

You can choice a format, which I always leave the default OVF 1.
Finally you can write metadata like Version and Description

Now you have an OVA file that you can carry to whatever machine to use it.

Import

Open VirtualBox and enter into the File option to choice Import

You will then get an assistance window to help you loading the image.

Enter the path to the file that you have previously exported

Then you can modify the settings of the VM like RAM size, CPU, etc.

My recommendation on this is to enable the Reinitialize the MAC address of all the network cards option
Press Import and done!

Now you have cloned the VM from the host machine into another one


Yes, feel free. Those are absolutely not needed, you already have two kernels installed. One is the latest one, and the other is the one from which you upgraded (now, regarded as recovery kernel). The third is the one which was used as a recovery kernel before the upgrade. Use this command to remove the oldest kernel of the three, i.e, 4.2.0.16:

sudo apt-get autoremove

EDIT: Ubuntu flavour is not the concern. The concept is applicable for all.


How to find files which are not in a certain folder

Question one can be answered with a combination of ls and diff:

Let's create some files:

dennis@lightning:/tmp$ mkdir A B
dennis@lightning:/tmp$ touch A/{c,d} B/{a,b,c,d}

And now we diff them:

dennis@lightning:/tmp$ diff -u <(ls A) <(ls B)
--- /dev/fd/63  2013-02-06 15:43:21.827691498 +0100
+++ /dev/fd/62  2013-02-06 15:43:21.827691498 +0100
@@ -1,4 +1,2 @@
+a
+b
 c
 d

As for question 2:

  cp -n B/* A

From the manpage:

   -n, --no-clobber
          do  not  overwrite  an  existing  file  (overrides a previous -i option)

So this will copy only missing files.


How can I get a CanoScan 8400F flatbed scanner working in Ubuntu?

If
    scanimage -L

does not provide a list of scanners it finds, then
maybe
    sudo scanimage -L

will work. Because scanimage offers a lot of parameters on the command line, you may be able to try different combinations.
The Canon website doesn't offer any Linux drivers, though the Windows driver section looks pretty rich.  Would you consider installing a dual boot on your machine for Windows or set up a VM under Ubuntu to try them?


Edit the following file (tested on 16.04 4/14/2016):

sudo vi /usr/share/X11/xorg.conf.d/90-libinput.conf

Adjust the 'touchpad' section to add Option "tapping" "True" and Option "DisableWhileTyping" "True" if you prefer this behavior.

Section "InputClass"
    Identifier "libinput touchpad catchall"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "Tapping" "True"
    Option "DisableWhileTyping" "True"
EndSection

Refer [This question describes it][1]

Other workaround can be to add the setting command in your .profile.


Issues with dependencies when installing Geary

Current version of libwebkitgtk-3.0-0 is currently 1.10.2-0ubuntu3 on Ubuntu 13.10.

First, check your current version :

dpkg -l | grep libwebkitgtk-3.0-0

If it is UNDER (<) 2.1.0, just prevent it from upgrading :

sudo apt-mark hold libwebkitgtk-3.0-0

If it is SUPERIOR TO (>) 2.1.0, you'll have to install an older version, but that'll risk to break your Gnome installation. Your best shot would be to find a PPA for Geary that has been build for > 2.1.0


How can I get Rhythmbox to see my Ubuntu One purchases?

Go to your Home Folder and press Ctrl and h on your keyboard. Your purchased music is in the ".ubuntuone" folder. You can then import the folder manually using Music > Import Folder command. I haven't found a way to import automatically yet. I'll keep looking.

I found this in the Help Section of Rhythmbox.... (If you want to add more than one folder to watch, use gconf-editor and add it to the list /app/rhythmbox/library_locations) I haven't tried it yet to see if it works.


it seems the .desktop file does not have the line Icon=/path/to/icon.

So manually adding the line will show the Icon.

sudo -H gedit /var/lib/snapd/desktop/applications/p7zip-desktop_p7zip-desktop.desktop

Add the line Icon=</path/to/icon>

[Desktop Entry]
X-SnapInstanceName=p7zip-desktop
Name=P7Zip Desktop
GenericName=P7Zip Desktop - File Manager
Type=Application
Categories=GTK;Utility;Archiving;Compression;
Terminal=false
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/p7zip-desktop_p7zip-desktop.desktop /snap/bin/p7zip-desktop %U
NoDisplay=false
Icon=/home/ubuntu/Downloads/1.png
MimeType=application/gzip;application/x-7z-compressed;application/x-7z-compressed-tar;application/x-arj;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/x-deb;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-lha;application/x-lhz;application/x-lzma;application/x-lzma-compressed-tar;application/x-ms-wim;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-tar;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/zip;application/vnd.ms-cab-compressed;


Unable to play file; no PGS subtitle decoder for Totem

The Totem installation on Ubuntu 19.04 Disco Dingo is missing a couple of decent gstreamer plugins by default. To get a better experience with this media player (and get PGS subtitle support) you will need to also install the following 'recommended' and 'suggested' packages which are not installed by default:

recommended: gstreamer1.0-pulseaudio totem-plugins
suggested: gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly

It is the gstreamer1.0-plugins-bad package that contains the plugin for PGS subtitles and certainly on my system with this installed PGS subtitles roared into life. A single command will install all of these extras:

sudo apt-get install gstreamer1.0-libav gstreamer1.0-plugins-bad \
     gstreamer1.0-plugins-ugly gstreamer1.0-pulseaudio totem-plugins

And then all should be well :)

References:

Package: totem (3.32.0-1ubuntu1): Package details for Totem under Disco Dingo showing the suggested and recommended packages


How can I print PHP syntax highlighting on a colour printer?

I just went into one of my PHP files in gedit (Ubuntu 16.04). It does come up nicely color-coded. I then did ^P, selected an HP Photosmart C4100 series printer in the print dialog. All the color-coding printed beautifully. It worked painlessly for me. I hope this helps.

Will that printer print color from another application?


Firefox h264 (mp4) HTML not working after upgrade

This fixed it for me:

sudo apt-get install ubuntu-restricted-extras


How can i start additional konsole and run some commands in it?

Double quotes around a string parsed as an argument mean that string is run as a child process, i.e. it's contents do not affect the parent process.

Single quotes don't do anything to the characters between them, so switch double quotes for single quotes on your last line, like so:

konsole --noclose -e 'bash -c commands'

(Your commands function doesn't need any quotes around it.) If you are running a long list of commands in this way, I recommend the -x flag which prints out commands and output in order. Use konsole --noclose -e 'bash -cx commands' to get the following print out:

+ commands
+ cd ~/Yola
+ pwd
/home/Yola


Add custom command in the open with dialog? - Ubuntu 16.04 Xenial

I don't like unofficial repos, so I did it manually, in my case with truecrypt. I think you can use

The 1st step is: Is there any related MIME type exists? I tried to find the .tc extension or the truecrypt text:

grep -i -e "\.tc" /usr/share/mime/packages/*
grep -i -e "truec" /usr/share/mime/packages/*

I didn't find anything, so I created it into /usr/share/mime/packages/truecrypt.xml

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="application/x-truecrypt">
        <comment>TrueCrypt encrypted file container</comment>
        <icon name="truecrypt"/>
        <glob-deleteall/>
        <glob pattern="*.tc"/>
    </mime-type>
</mime-info>

I found 3 matches for the .fig extension (under the image/x-fig MIME type by freedesktop, and under application/x-cabri in kde.xml) so I think you don't need to create this, but someone may find it useful.

In my case the truecrypt.desktop file did not contain any MIME type info, so I added this mime type to the end of the file: /usr/share/applications/truecrypt.desktop

MimeType=application/x-truecrypt

My new MIME type was not associated with any program, so I added this line to the end of the default file, which is in /usr/share/applications/defaults.list

application/x-truecrypt=truecrpyt.desktop

If your MIME type existed, I think you need to change this association instead of creating one more.

At last update the databases:

sudo update-mime-database /usr/share/mime
sudo update-desktop-database


Changing how zathura-pdf-mupdf render epub files

I don't know how to configure Zathura, but most of what you wanted is available in Foliate, which is free and open source. The book (The Art of Data Science) is legally available for free.
By default,it looks somewhat different.

However, after changing the window size, font (to Times New Roman, available in Menu -> Font), background color (Menu -> Theme use one of the default theme, or select your favorite colors to create one), and font color (Menu -> Themes), I was able to achieve a similar look. The black margins at the sides (which is in your screenshot) is not available in Foliate, but the margin size can be changed and the margins will have the same color as the background.

It also auto hides the headerbar (this behavior can be changed)
It is available in different formats

snap sudo snap install foliate
flatpak flatpak install flathub com.github.johnfactotum.Foliate
PPA

sudo add-apt repository ppa:apandada1/foliate
sudo apt update
sudo apt install foliate

Disclaimer: I maintain the PPA of Foliate, but I am not affiliated with its development.


automatic screen rotation problem on ubuntu 18.04

Try this to set it to normal

$ xrandr -o normal

But the permanent solution is to stop and disable the sensor on restart

$ sudo systemctl stop iio-sensor-proxy.service
$ sudo systemctl disable iio-sensor-proxy.service


Screen resolution cannot be set to optimal (Dual boot Ubuntu 14.04-Windows 7)

This is a partial answer. My problem was solved, but I did not fully understand why/how.

I answer my own question, hoping this may shed some light for others having similar issues, but they should make sure they can undo everything they try, as I cannot guarantee that this works for them

Boot choosing Linux Recovery mode (here the graphics will still look bad), download the NVIDIA drivers, install them, kill x and reboot choosing Linux (not the Recovery mode)


How to make my Ubuntu 14.04 recognise MMX377G USB Manager for enabling net facility via Modem

http://code-cocktail.in/micromax-3g-datacard-mmx377g-installation-ubuntu/ seems to be related to if not also the answer to your question.


It can be any number of reasons. Compiz is being rewritten, and it seems to be a little slower, currently. Linux has had some issues as well.

It's very difficult to say exactly what it is. What I can tell you is that you're not imagining it, and that Precise is very much faster and cooler. 11.10 in particular has been rather slow and hot. There's been major transitional work done, so maybe that's contributed to it as well. In any case, 12.04 is going to fix those things. The improvements are already more than noticeable.


How to set subl:// protocol handler with Unity?

To register custom protocol handler in chrome

1. Create the desktop file

Create the file /usr/share/applications/sublime-handler.desktop

[Desktop Entry]
Name=Sublime Text 2 URL Handler
GenericName=Text Editor
Comment=Handle URL Scheme subl://
Exec=/usr/share/handlers/sublime-handler %u
Terminal=false
Type=Application
MimeType=x-scheme-handler/subl;
Icon=sublime-text-2
Categories=TextEditor;Development;Utility;
Name[en_US]=Sublime Text 2 URL Handler

2. Update the MIME-types database

$ sudo update-desktop-database

3. Create the handler file

Create the file /usr/share/handlers/sublime-handler

#!/usr/bin/env bash

request="${1#*://}"             # Remove schema from url (subl://)
request="${request#*?url=}"     # Remove open?url=
request="${request//%2F//}"     # Replace %2F with /
request="${request/&line=/:}"   # Replace &line= with :
request="${request/&column=/:}" # Replace &column= with :

subl "$request"                 # Launch sublime

Make it executable:

$ sudo chmod +x /usr/share/handlers/sublime-handler

4. Register mime-type handler

$ xdg-mime default /usr/share/applications/sublime-handler.desktop x-scheme-handler/subl

5. Profit

Now you can open links with custom protocols from chrome via custom applications, example:

subl:///home/path/to/file.php:123
subl://open?url=/home/path/to/file.php:123
subl://open?url=/home/path/to/file.php&line=123
subl://open?url=/home/path/to/file.php&column=123
subl://open?url=%2Fhome%2Fpath%2Fto%2Ffile.php&line=123
subl://open?url=%2Fhome%2Fpath%2Fto%2Ffile.php&column=123

6. Modify

It can be ported for using with the different IDE, for example phpstorm


How to stop disks from being automagically mounted on boot?

The noauto option for mount lets the user to mount the device/partition concerned only explicitely, not with mount -a or not on boot if mentioned in /etc/fstab's option column for the concerned device. If you can add /dev/sdc and /dev/sdd(or their UUIDs) in /etc/fstab and provide the noauto option in option(4th) column they won't be mounted automatically.
(see the man page for mount or this)


I'm not sure whats the packaged kernel version in Ubuntu 14.10, but if you don't find the iso with desired version then there is always and option to remaster the iso.


Nautilus: copy file into clipboard with command line

-target is a way for you to describe the content of the selection. In that sense, it's possible to label the selection incorrectly. It has more to do with how the receiving program handles atoms. LibreOffice in your example handles MIME targets.
$ file --mime example.png
example.png: image/png; charset=binary

$ xclip -selection clipboard -t image/png -i example.png

You can list targets of the current selection with the special atom name TARGETS
$ xclip -selection clipboard -t TARGETS -o
TARGETS
image/png

Next example is Nautilus, the selection target is text/plain and a copy/paste has the format:
x-special/nautilus-clipboard
copy
file:///path/to/file.txt

Gives the xclip selection:
xclip -sel clip -t text/plain <(printf %s\\n x-special/nautilus-clipboard copy file:///path/to/file.txt)


How to enable Chinese language on keyboard?

Try going to "system settings" -> "Text Entry" (under Personal), and add "Chinese (Bopomofo)" or "Chinese (Pinyin)". It might be a good idea to press the "Show current input source in the menu bar" too.


How to rename an application while developing with Quickly

I had to do this for my appshowdown application, and I would not try to do it all by hand.

What I did was make a new project with the correct name, and then paste in my custom code, and change a couple references to the old name in there. I then copied over the files for the gui, and did a find and replace on those for the new name.

It depends on how your code is organized. For me, the majority of my code was in a single file, so it was not too bad to get my application up and running after copying in the files for the interface.


How to automatically restart an application for using too much RAM or CPU

Have monit keep an eye on those daemons:

  Monit is a small utility for managing and monitoring Unix systems.
  Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.

  For example, apache is using too much resources. Monit can stop or restart apache and send you an alert message [...]

The configuration files make it easy to express what you want in a natural way. For example you can do something like:

check process spamd with pidfile /var/run/spamd.pid
   group mail
   start program = "/etc/init.d/spamd start"
   stop  program = "/etc/init.d/spamd stop"
   if 5 restarts within 5 cycles then timeout
   if cpu usage > 99% for 5 cycles then restart
   if mem usage > 99% for 5 cycles then restart

To install:

$ sudo apt-get install monit


what is the best number of segment per download for xdman?

wget --continue will download the file in multiple tries, if necessary. No need to "segment". sudo apt-get install wget; man wget. Then, you would do:

wget --<wget options> --continue https://somesite.example.org/reallybigfile

Repeat until done. The first time, --continue is ignored, and wget starts downloading. Network connection drops, wget times out. The second (and subsequent) tries, --continue tells wget to resume downloading the file where it left off. Eventually, the download will complete, and the whole file will be there.


Where is the Ubuntu file system root directory in Windows Subsystem for Linux and vice versa?

For Ubuntu installed from the Windows store:

  Each distribution you install through the store is installed to that
  application's appdata directory. For example:
  C:\Users\<username>\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState - benhillis

For WSL2 you can access to home directory from windows (Windows 10 build 18342) like this :

\\wsl$

In earlier iterations of Windows Subsystem for Linux, the Ubuntu file system was at %localappdata%\Lxss (e.g., C:\Users\Username\AppData\Local\Lxss - replace the Username with your Username on Windows). See the WSL blog post on File System Support:

  The primary file system used by WSL is VolFs. It is used to store the
  Linux system files, as well as the content of your Linux home
  directory. As such, VolFs supports most features the Linux VFS
  provides, including Linux permissions, symbolic links, FIFOs, sockets,
  and device files.

  VolFs is used to mount the VFS root directory, using
  %LocalAppData%\lxss\rootfs as the backing storage. In addition, a
  few additional VolFs mount points exist, most notably /root and
  /home which are mounted using %LocalAppData%\lxss\root and
  %LocalAppData%\lxss\home respectively. The reason for these separate
  mounts is that when you uninstall WSL, the home directories are not
  removed by default, so any personal files stored there will be
  preserved.

CAUTION

Creating/modifying any files within the Linux subsystem using Windows apps & tools can cause Data corruption and data loss in Ubuntu subsystem! (Thanks to Rich Turner for suggesting these words of caution!) This is absolutely not supported. From the same blog post:

  Interoperability with Windows

  While VolFs files are stored in regular files on Windows in the
  directories mentioned above, interoperability with Windows is not
  supported. If a new file is added to one of these directories from
  Windows, it lacks the EAs needed by VolFs, so VolFs doesn’t know what
  to do with the file and simply ignores it. Many editors will also
  strip the EAs when saving an existing file, again making the file
  unusable in WSL.

Your Windows file system is located at /mnt/c in the Bash shell environment.

Source: Dustin Kirkland's blog, howtogeek


It would mean that at some time during shutdown of your computer, your EFI partition, which is a vfat file system, was not properly unmounted. The linux kernel sets the dirty bit when mounting and clears it when unmounting.

For now, fix the error by unmounting the device and issuing the command fsck -a /dev/sda2. This would repair the volume using default assumptions.


There are so many ways to disable the card. The simplest I would say would be to put:

sudo ifdown wlan0

in your /etc/rc.local above the line exit 0. This should disable the wireless card (replace wlan0 with your wireless interface card)

If you want to enable/disable on a keyboard press, this thread on Ubuntu Forums explains how to link a keyboard event to a script. If you want it to toggle when you push keys you will have to add some logic to the script. Though the simplest way might be to have one key to enable and another to disable.

down script

    #!/bin/bash
    IFACE=wlan0
    ifconfig ${IFACE} down

and
up script

    #!/bin/bash
    IFACE=wlan0
    ifconfig ${IFACE} up


An error occured please run the package manager from the right click menu

as you said you have deleted the sources.list you can regenerate it.

Open http://repogen.simplylinux.ch/ and  fill the form, Finally it will give you source links and paste them in sources.list file with

sudo gedit /etc/apt/sources.list

then save and close.

Then try again.


You need to edit DNS records from your Freehosting account and make A record for your domain point to your IP address. No need to set-up bind or anything else by yourself.

If you're not sure how to do it or don't know place to manage your DNS then contact Freehosting support. You can start using other nameservers awell, e.g CloudFlare's to manage your DNS


VNC Desktop Sharing Connects to Inactive User

Found my own answer, at least one answer. I was able to accomplish it by assigning each user a different port; then the request goes to the correct user.

Install dconf-tools with

sudo apt-get install dconf-tools

Run the dconf Editor (from Dash) and then surf to:

org / gnome / desktop / remote-access

Set the "use-alternative-port" to checked, and set the 'alternative-port' to some other number. I used incrementing numbers starting with 5901 for the first user, 5902 for the second, etc.

Do this for each user, and take note of their port numbers. Then when you want to access this user's screen, override the default port when connecting with the client (usually by appending ':5901' or so to the IP address).


The hexadecimal RGBA color codes for indicators are:

Ambiance (ubuntu-mono-dark): dfd8c8ff
Radiance (ubuntu-mono-light): 3a3935ff
Attention (blue): 19b6eeff


Ubuntu 20.04 (and 19.10), the whole computer keeps freezing when playing with games

With only 4G RAM, a 2G /swapfile is probably too small. We'll enlarge it to 4G.
Note: Consider adding more RAM. Configure RAM to be equal sized (SO)DIMM pairs to take speed advantage of memory interleaving. So if you have one 4G (SO)DIMM now, add another 4G (SO)DIMM.

Note: Incorrect use of the dd command can cause data loss. Suggest copy/paste.
sudo swapoff -a           # turn off swap
sudo rm -i /swapfile      # remove old /swapfile

sudo dd if=/dev/zero of=/swapfile bs=1M count=4096

sudo chmod 600 /swapfile  # set proper file protections
sudo mkswap /swapfile     # init /swapfile
sudo swapon /swapfile     # turn on swap
free -h                   # confirm 4G RAM and 4G swap
reboot                    # reboot and verify operation


Trouble with UFW blocking stuff from NAT machine to inside of NAT

I don't know anything about ufw. But nmap always returns filtered if you test a machine that doesn't exist without discovering it first.

If the machine doesn't answer, nmap can't really know if it is because it doesn't exists or just because it's ignoring the packages. As you are disabling ping (-PN) Nmap doesn't try to discover hosts so it's assumes that it exists and is filtering the packets.


Don't bother compiling and grab this one from MX Linux.
http://mxrepo.com/mx/repo/pool/main/x/xfce4-weather-plugin/xfce4-weather-plugin_0.10.2-1~mx17_amd64.deb


how to open a program generated binary file?

Regarding

sudo ./sniff_data.bin

A bin file is NOT an executable. You need software that can open a BIN file to view the BIN file.

What you want is probably

sudo hexdump sniff_data.bin

Another method:

sudo strings sniff_data.bin

This will show all the text strings inside the file.

For graphical methods viewing binaries see: What are some good GUI binary viewers/editors?


There are a few alternatives:

Gnome Commander
Krusader (although it requires KDE libs)
emelFm
Midnight commander (runs in terminal)

Also, Nautilus - the file manager built into GNOME and thus Ubuntu - can show two panels in a window (press F3). Sometimes this is enough for some file copying.


Mcrypt PHP extension required. Laravel, Xampp error

The desired Mcrypt PHP extension is packaged in a different package, namely php5-mcrypt. To get this package installed on your machine, you can use apt-get, like this:

sudo apt-get install php5-mcrypt

In addition, PHP extensions have to be registered with the correct Server API (SAPI); there is a command-line tool called php5enmod provided by the packager to simplify this process; e.g.

sudo php5enmod mcrypt

will add the correct extension=mcrypt.so line to all the relevant php.ini files.


windows shares not accessible on ubuntu 16.04

I know this is now old, but if it's windows 10 and you're using a windows account, there is a simple way to log in with smb.

Assuming the MS account name is name@domain.com, do the following:

User: name
Domain: domain.com
Password: password


Background missing in loginscreen and in guest session.

I found the solution already.

As I supposed the problem was situated somewhere in permissions that weren't sufficient.
I found that the permissions of the /usr/share/backgrounds folder were "none" for everyone except myself. Changing that to "access files" solved it.


How do I get my Dell device's service tag?

Any Dell's service tag can be read from the system using the ever-so-handy dmidecode tool.

The service tag is stored in the BIOS as a DMI/SMBIOS string, namely system-serial-number. It can be read using the below command:

sudo dmidecode -s system-serial-number

This command will output the service tag as just itself, so it can be passed into a script or similar without much worry.

$ sudo dmidecode -s system-serial-number
1ABC123

If the Express Service Code is needed, that's easily retrievable using a similar command:

echo $((36#$(sudo dmidecode -s system-serial-number)))

This command will output the Express Service Code to the terminal, much in the same way the Service Tag is outputted. It works by converting the Base36 Service Tag to the Base10 Express Service Code using Bash's $((base#number)) notation.


Since the release of 10.10 then the netbook-launcher package is no longer available in the Ubuntu repositories.

This is because this old Ubuntu Netbook remix was superseded by Unity and the Ubuntu Netbook Edition. Because of this the Netbook Launcher is no longer maintained.

You may wish to see this bug report confirming what I have just said.


Increase size of root partition after installing Ubuntu in Windows

Your / partition is full, 96% used, 237Mb free space. That is where your packages will be downloaded and installed.

From what I see this is a Wubi install. You can resize your Wubi partition using the method described on this post

How to increase the partition size of Ubuntu installed under Windows?

Basically you need to follow these to the letter:

Get root privileges

sudo -i
Check how much space you have in your Windows disk

df -h /host
Create a new virtual disk bigger than the one you have at the moment, lets say 10GB

(change the count= parameter as appropriate)

cd /host/ubuntu/disks
dd if=/dev/zero of=new.disk bs=1MB count=10000

Format the new disk

mkfs.ext4 -F new.disk
Mount and copy files to new virtual disk

mkdir -p /media/newdisk
mount -o loop new.disk /media/newdisk
rsync -av --exclude '/sys/*' --exclude '/proc/*' --exclude '/host/*' --exclude '/mnt/*' --exclude '/media/*/*' --exclude '/tmp/*' --exclude '/home/*/.gvfs' --exclude '/root/.gvfs' --exclude '/var/lib/lightdm/.gvfs' / /media/newdisk
umount /media/newdisk
exit

Reboot into Windows and rename the file \ubuntu\disks\root.disk to \ubuntu\disks\old_root.disk.
Rename the file \ubuntu\disks\new.disk to \ubuntu\disks\root.disk.
Reboot back into Ubuntu and check if everything is working. When you are 100% sure that everything is on the right places you can login to Windows and delete the file old_root.disk to get those 5Gb back.

(Source)


script running python --version command is printing it too early

Thanks @steeldriver (nice band btw) for his comment. The fix was easier once I verified it was indeed printing to stderr - just redirect stderr to stdout for the command. i.e. Py version = $(python --version 2>&1)

Also thanks to @pLumo for this comment, that this error (printing to stderr instead stdout) was fixed in python 3.4 and newer


Your suspicions are correct, you don't really need to do anything, you can just upgrade the normal way.


I've used a Radeon HD5450 with Ubuntu with good results. Very nice image, no fan, 1GB memory, good non-gaming OpenGL support, low power consumption, less than $50, no fan, HDMI and DVI output, no fan.

It also has CrossFireX support but why would you use it?

Did I mention that it has no fan?


How do I get Exaile to remember preferences?

If you are using this addon:

https://github.com/sunng87/Exaile-Soundmenu-Indicator

open

~/.local/share/exaile/plugins/Exaile-Soundmenu-Indicator-master/__init__.py

In a text editor and comment out (add # at begining) line 66:

patch_tray_icon(exaile)

This should do the trick. ;)


piping grep to another grep doesn't work as expected

turning off output buffering did the work.

gnuchess -mq  | stdbuf  -o0  grep -a "Black ([0-9][0-9]*) : [0-9][0-9]*. [a-z][0-9]" | grep -o "[a-z][0-9]"

For more information: this


Screensaver + lock double login problem after Maverick upgrade

As suggested by DoR, a restart seems to have resolved the issue permanently.


Dual Boot: W8.1 and Ubuntu 14.04 on same Drive or it's better with 2 Drives

You can install Ubuntu which ever way you prefer. Most Linux distributions including Ubuntu will use a boot loader. So when you install it there will be a menu that gives you choices to choose which OS to run. You can configure the grub file for a specific timeout period and which OS to boot from by default. Either way there will be a boot loader.

However if you install Ubuntu on your secondary HDD and you choose to boot from that and there is no other OS installed it will automatically boot into Ubuntu. It's only when you have multiple OS's that you will have the choice to choose operating systems.

Additionally, to answer your comment on Ubuntu messing up your Windows boot loader most newer computers come with UEFI boot mode, but Linux will install Grub or Grub2. If you remove the partitions of Ubuntu from one hard drive you will need to use a Windows install CD or USB to repair the MBR for Windows. You can do this by doing the following:

Insert repair or installation media
Choose "Repair"
Then choose Troubleshoot>Advanced>Command Prompt
Enter bootrec.exe /fix mbr

This will repair your Windows boot loader.


Used CURL to get NodeJS, how to remove the files (have not installed nodeJS yet though)

By piping to | sudo -E bash -, you executed the code from https://deb.nodesource.com/setup_4.x, which is a bash script.

Looking at the script it appears to add:

print_status 'Creating apt sources list file for the NodeSource Node.js 4.x LTS Argon repo...'
exec_cmd "echo 'deb https://deb.nodesource.com/node_4.x ${DISTRO} main' > /etc/apt/sources.list.d/nodesource.list"
exec_cmd "echo 'deb-src https://deb.nodesource.com/node_4.x ${DISTRO} main' >> /etc/apt/sources.list.d/nodesource.list"
print_status 'Running `apt-get update` for you...'
exec_cmd 'apt-get update'

So you can remove the sources, but if you run the 5.x script, it will just replace this file, so either running the same script with 5.x instead of 4.x or removing the file and then running the 5.x script will give you the same result:

$ curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
$ cat /etc/apt/sources.list.d/nodesource.list
deb https://deb.nodesource.com/node_5.x wily main
deb-src https://deb.nodesource.com/node_5.x wily main