After a bit of reading on the subject and then re-reading the readme.md at the numix project I realised they actually do explain how to manually install and make changes to their theme.
The thing is that the instructions assume alot of prerequisite knowledge - basically that you are a C developer who knows CSS.
I'm assuming you know that source code for languages like C get compiled into binary executables and/or library files, and that SASS/SCSS is a pre-compiler (a kind of "higher" language) that gets compiled to CSS which is source code  that is interpreted - and not compiled to a binary form.
From what I can tell the overview is like this:

                          +--------------------------------------------------------------+
 +------+                 |  +---------------------+                                     |
 |      |   you need to   |  | CSS files           |         Numix theme                 |
 |SASS  |   "compile"     |  | ordinary text (code)|         i.e. files in               |
 |files |   SASS to CSS   |  |                     |         /usr/share/themes/Numix Daily/gtk-3.0
 |    +------------------------->             <------------------------------------------+----------+
 |      |                 |  +---------------------|                                     |          |
 |      |                 |   +------------------------+                                 |          |
 +------+                 |   | gtk.resource           |                                 |          |
 If you change this       |   | (compiled binary    <-----+                              |          |
 you need to recompile    |   | file)                  |  |                              |          |
 (update the CSS          |   +------------------------+  |                              |          |
                          +--------------------------------------------------------------+          |
 files)                      +----------------------+     |                                         |
                             | GTK library          |     |  +---------------------------+          |
+--------------------+       | (binary library)     |     |  |  GTK and C developer tools|          |
| Application        |       |                      |     |  |  used to recompile        |          |
| e.g. Gnome terminal|       | Configured to use    |     |  |  gtk.gresource            |          |
| Nautilus etc       |       | Numix Theme          |     |  |                           |          |
| that uses GTK      |       |                      |     +----+                         |          |
| library            |       |                      |        |                           |          |
| (binary            |       |                      |        |                           |          |
| executable)        |       |                      |        +---------------------------+          |
+--------------------+       |                      |                                               |
                             |Makes call to         +                                               |
                             |gtk_css_provider_load_from_file() +----------------------------------->
                             |
                             +----------------------+

So the Numix theme and I guess many/all GTK-3.0 themes comprise of binary resources and CSS code which is parsed by the function call gtk_css_provider_load_from_file() which seems to be a new addition to GTK-3.0.
The numix project suggests you only need to recompile the gtk-gresource if you change any assets. So I wouldn't bother with that - unless you really need to. If you really need here is an introduction to building a GTK binary resource

Useful resources

GtkCssProvider - this is responsible for parsing the CSS - it seems to really be the foundation for making GTK applications able to read CSS.
particularly how GTK will read CSS code for a theme on startup:

  An application can cause GTK+ to parse a specific CSS style sheet by calling gtk_css_provider_load_from_file() and adding the provider with gtk_style_context_add_provider() or gtk_style_context_add_provider_for_screen().
  In addition, certain files will be read when GTK+ is initialized. First, the file $XDG_CONFIG_HOME/gtk-3.0/gtk.css is loaded if it exists.
  Then, GTK+ tries to load $HOME/.themes/theme-name/gtk-3.0/gtk.css, falling back to datadir/share/themes/theme-name/gtk-3.0/gtk.css, where theme-name is the name of the current theme (see the "gtk-theme-name" setting) and datadir is the prefix configured when GTK+ was compiled, unless overridden by the GTK_DATA_PREFIX environment variable.

A good introduction to GTK themes - http://www.linux.org/threads/installing-obtaining-and-making-gtk-themes.8463/
Gnome docs on theming


My ASUS pc seems to lose its bluetooth firmware when I dual boot? I have reset it numerous times.... frustrating

This is the only time I have heard of this happening with Ubuntu installed to a hard drive but we can change the attributes on /lib/firmware/brcm after putting the firmware in to see if it prevents the file from being deleted

wget https://www.dropbox.com/s/xbmm9vfg2fby2zn/fw-04ca_2006.hcd
sudo cp fw-04ca_2006.hcd /lib/firmware/brcm/BCM43142A0-04ca-2006.hcd
sudo chattr +i /lib/firmware/brcm/

Reboot and see if the problem still exists


Windows 7/Ubuntu does not boot after installation.

Boot up Windows install DVD, & choose Repair your Computer

open command prompt and Run the Following commands

bootrec.exe/fixboot

next

bootrec.exe/fixmbr

Reboot to windows and use  a partitioning program to remove Ubuntu's partition


How to remove Python3.8 and Install Python3.6 as default Python in Ubuntu 20.04

I would suggest not to remove the installed Python 3.8, as maybe it is used for system tools.

I'd suggest to add the deadsnake-ppa then you can install all common Python versions in parallel.


Is Netplan capable of setting link negotiation settings?

On most Desktops, folks should be adjusting all network settings, including link negotiation, using NetworkManager. You don't specify link negotiation settings in Netplan.
For these folks, netplan file (/etc/netplan/01-network-manager-all.yaml) is merely a stub handing control over to NM:
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

For folks using networkd (usually on servers) instead of NetworkManager, you specify negotiation settings in the .link file, typically in located /etc/systemd/network/ (reference). You don't specify negotiation settings in Netplan.

AutoNegotiation=
Takes a boolean. If set to yes, automatic negotiation of transmission parameters is enabled. Autonegotiation is a procedure by which two connected ethernet devices choose common transmission parameters, such as speed, duplex mode, and flow control. When unset, the kernel's default will be used.
Note that if autonegotiation is enabled, speed and duplex settings are read-only. If autonegotiation is disabled, speed and duplex settings are writable if the driver supports multiple link modes.


How can I accurately select an area of screen to record when using RecordMyDesktop?

You can click your actual desktop instead of the small preview and select an area to record.

To do that open recordmydesktop and right click on the application indicator on the top right corner of the screen and click on Select Area On Screen

it will create an overlay of the current screen where you can select an area to record.

Just left click anywhere and drag the mouse to select the area and you are done. Happy recordings (:


"Unknown keyword in configuration file Boot:" error when booting off a live USB

I found this site, hopefully this will help you.  Click Here

Below is the solution from that site:

After creating a USB bootable version of Ubuntu from the Startup Disk Creator (or usb-creator-gtk) and attempting to boot, I was greeted by the error above. It might look a bit scary but it’s really easy to fix, just plug the USB flash drive into a computer (windows or linux, mac too probably but I haven’t tried that.)

Solution 1:

Open the the syslinux folder in the root of the flash drive.
Inside is a file called syslinux.cfg you’ll want to edit that.
Find the line “ui gfxboot bootlogo” and simply remove the “ui “.
Save and try booting again.

Below is how my syslinux.cfg file looks after editing:

# D-I config version 2.0
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
gfxboot bootlogo

Solution 2

Alternatively it looks as though there is another way of fixing this issue if there is no “ui” in the file, this is to do as followed (as pointed out in the comments below):

Type “help” and press enter
Hit Enter again

This should boot correctly and shouldn’t need to be done every time.

 Source: http://alexsleat.co.uk


Ubuntu 18.04 - Following packages have unmet dependencies: php7.2-fpm: ... How to solve this error?

I have found an answer:

Following this post, I just did:

sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install apt-transport-https lsb-release ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
sudo apt update
dpkg -l | grep php | tee packages.txt (check the content)
sudo apt install php7.2 php7.2-common php7.2-cli php7.2-fpm (install the basic)

Then

php -v
PHP 7.2.24-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Oct 24 2019 18:29:11) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

And I still have my projects working with php7.1 and the new 7.2.

ila@ila:/etc/php$ ll
total 24
drwxr-xr-x   4 root root  4096 Nov 21 12:24 ./
drwxr-xr-x 161 root root 12288 Nov 21 12:14 ../
drwxr-xr-x   5 root root  4096 Jul 26  2018 7.1/
drwxr-xr-x   5 root root  4096 Nov 21 12:24 7.2/
ila@ila:/etc/php$ tree 7.2/
7.2/
├── cli
│   ├── conf.d
│   │   ├── 10-opcache.ini -> /etc/php/7.2/mods-available/opcache.ini
│   │   ├── 20-json.ini -> /etc/php/7.2/mods-available/json.ini
│   │   └── 20-readline.ini -> /etc/php/7.2/mods-available/readline.ini
│   └── php.ini
├── fpm
│   ├── conf.d
│   │   ├── 10-opcache.ini -> /etc/php/7.2/mods-available/opcache.ini
│   │   ├── 20-json.ini -> /etc/php/7.2/mods-available/json.ini
│   │   └── 20-readline.ini -> /etc/php/7.2/mods-available/readline.ini
│   ├── php-fpm.conf
│   ├── php.ini
│   └── pool.d
│       └── www.conf
└── mods-available
    ├── json.ini
    ├── opcache.ini
    └── readline.ini

6 directories, 13 files

Or install some available modules

sudo apt install -y php7.2-bz2 php7.2-common php7.2-cgi php7.2-cli php7.2-dba php7.2-dev libphp7.2-embed php7.2-bcmath php7.2-fpm php7.2-gmp php7.2-mysql php7.2-tidy php7.2 php7.2-sqlite3 php7.2-json php7.2-opcache php7.2-sybase php7.2-curl php7.2-ldap php7.2-phpdbg php7.2-imap php7.2-xml php7.2-xsl php7.2-intl php7.2-zip php7.2-odbc php7.2-mbstring php7.2-readline php7.2-gd php7.2-interbase php7.2-snmp php7.2-xmlrpc php7.2-soap php7.2-pspell php7.2-pgsql php7.2-enchant php7.2-recode


I'm not sure, if this is what you want. I understood you want to change the icon for latex files, right?

So all you have to do is, to change the icon for latex files in your icon-set.
The icon for the application files are stored under /usr/share/icons/... or ~$/icons..

For example, if you are using Faenza icon set you'll find the icons in

/usr/share/icons/Faenza/mimetypes/scalable

Just replace the latex icon with your favourite one. Hope, this helps.


No sound output - Ubuntu 17.10 - ASUS Zenbook 13

Now that I had a few more days to experiment I found kind of a solution for my situation: When I run Windows 10 and restart the computer to switch to Ubuntu the sound seems to always disappear. However if I turn the computer off and then switch it on and load Ubuntu the sound seems to work. Still do not really understand what is causing the issue.


Try this to set on PC2 The first thing to do is do enable IP forwarding. This is done either by using

echo "1" > /proc/sys/net/ipv4/ip_forward

Then, we will add a rule telling to forward the traffic

sudo iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
sudo iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT


Reiserfs simply doesn't have support for access control lists. At least not according to http://en.wikipedia.org/wiki/Comparison_of_file_systems#Metadata

EDIT: As grawity points out in the comments, it appears to have support for so-called POSIX ACLs, despite what that wikipedia-page says.

The permission denied message is a bit odd, then. I suspect the VPS adds some restrictions regarding that. Have you tried adding the acl option in /etc/fstab, and then rebooted?

Each line of the /etc/fstab file has six fields separated by whitespace (excluding lines that start with #, which are ignored). On the line where the second field is /, add ,acl to the end of field 4. E.g. if field 4 just says defaults, change it to defaults,acl.

After you've rebooted, run mount, and check if it has been mounted with the acl option.


i can only login as a guest on ubuntu 14.04

You can always boot into single user mode. See here: How do I reset a lost administrative password?

I would just install a fresh copy of the OS if I were in your shoes.


E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Just type

sudo apt-get clean

(and re-install)


Why does UEFI installer not run on my EFI machine?

Boot-Repair does not create nor delete partitions.

During a BIOS install on gpt partitioned drive, Ubuntu will create a bios_grub partition. It did not used to as when I installed with 10.10, I had to manually create the bios_grub.

It is only 1MB, so it is not taking up any room on most new systems. That much space is lost in the new rounding for compatibility with SSDs & 4K drives.

But once you are booting with UEFI then you can delete the bios_grub partition as you need either the efi partition for UEFI boot or the bios_grub partition for BIOS boot. I typically suggest for new drives to have both partitions at the start of a gpt drive and then you can install either way or easily change later. Often difficult to add an efi partition near start of a drive that is already full of data. So then converting to UEFI is difficult.

Updates.
If starting with a blank drive  and wanting secure boot, this series of videos may help. You have to install keys to make it work with secure boot.

Intel - Install Ubuntu 12.10 part 3 of series for new system  w/secure boot, part one install keys, part 2 install Windows 8 YOu may want all three parts.

https://www.youtube.com/watch?v=_cEwj8bBBC4

Are you using 12.04.2? It may be this naming issue?

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1172065


What is a good speech recognition software?

If you are not afraid of the command line, you can install all of the pocketsphinx tools.

To list available packages:

apt-cache search pocketsphinx

to install all related packages:

sudo apt-get update
sudo apt-get install pocketsphinx*

see here for more info:

cmusphinx.sourceforge.net/wiki/

and

cmusphinx.sourceforge.net/wiki/tutorial

finally, the bottom of the following page talks about what you want to do:

cmusphinx.sourceforge.net/wiki/tutorialpocketsphinx


Here is the solution found and cobbled together from many different posts on many different forums...

The problem was in smb.conf of course.

The main solution was to make one machine a WINS server. (Thanks @heynnema) But, the [global] section of smb.conf had many small other details which cleared the initial problem and several other niggling issues.
What is provided here is a starting point for anyone fighting to get samba working.

1) navigate to /etc/hosts file and enter the IP and hostname of every system in the workgroup into the hosts file...

2) Edit smb.conf to look something similar to this:

netbios name = NAME_OF_SYSTEM

workgroup = WORKGRP_NAME ##(Same for every machine/device)

name resolve order = wins hosts bcast lmhosts

security = user

encrypt passwords = yes

smb passwd file = /etc/samba/smbpasswd ## (create this file)

interfaces = xxx.yyy.zzz.www/Yy etho ##(THIS system's IP/mask 8,12 or 24 depending on the subnet mask)

bind interfaces only = yes

hostname lookups = yes

server string = %h server (Samba, Ubuntu)

os level = 99

wins support = yes ## (Only on the machine which is acting as the server)

domain master = yes ## (Only on the machine which is acting as the server)

preferred master = yes ## (Only on the machine which is acting as the server)

wins server = xxx.yyy.zzz.www ##(only on the CLIENT MACHINES.. Remark this on the WINS server)

server role = standalone server

unix password sync = yes

OK then

3) create your shares...

[share_name]

comment = "WHATEVER YOU WANT"

path = /home/USERNAME ## just as an example

writeable = yes

browseable = yes

valid users = USERNAME

4) THEN.... Create your user and enable the account on all systems

sudo smbpasswd -L -a USERNAME ## This one creates the user

sudo smbpasswd -L -e USERNAME ## this one enables the user

#

This is what I did... And, it now works for me. I hope this saves someone else all the trouble I had finding, reading, and figuring this out... It is a great starting point for putting samba to work for you.

ENJOY


To pass SSH options to SSHFS, you can use ssh_command.

For example, to pass -c aes128-cbc to SSH, use:

sshfs -o ssh_command='ssh -c aes128-cbc' ...


The screenshot you show looks like Midnight Commander.

Install it using the command:

sudo apt install mc

Then you can open it in your terminal by typing

mc


Try sudo php5enmod mcrypt

Then restart Apache.


vsftpd change owner permissions once uploaded

I've finally been able to find a way to achieve this.
After looking at the manual for the Nth time, I've managed to find the directive cmds_denied which disable instructions.

In my case, I've set it to: cmds_denied=RMD,DELE.


These are options for commands. For example -h is the short form for --help,  so if you run some_command -h it will print you a short overview/help what this command does and what options it has. Just try it with apt -h. If you want even more infos about a command you can run man some_command - this will show you the manual page to this command (if it exists).
P.s.: sudo in front of a command will run it with "admistrator rights" (as it would be called in windows)
P.p.s: here is a list of free linux books https://itsfoss.com/learn-linux-for-free/


If that's your only problem, you just need to change the icon theme  you can use unity-tweak-tool).

If you really need to reset unity, there are a couple of tools to do it, you can find more info here:

http://www.webupd8.org/2012/10/how-to-reset-compiz-and-unity-in-ubuntu.html


How do i change my reolution in Lubuntu? (using xrandr)

First run the command

xrandr|grep ' connected'

you would see something like

VGA1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm

Depending on the above output, you have to note 1.screen name(i.e VGA1 in above ex). Now run the command

xrandr --output VGA1 --mode 1280x1024

Replace VGA1 with  one in your output.

EDIT: For a computer with single screen, the above commands can be replaced by below single command.

xrandr --output $(xrandr|grep ' connected'|awk '{print $1}') --mode 1280x1024


Configure a network card on public IP and Wifi usb dongle on LAN

Right below 'gateway' add a new line:

dns-nameservers 8.8.8.8 190.109.197.<suffix of gateway>

Restart eth0 and you should be able to connect:

sudo ifdown eth0 && sudo ifup eth0
ping -c3 www.google.com


Second network interface fails to start: pre-start killed by TERM

I recently had this problem and the issue seemed to be related to having open-iscsi tools installed.  I looked in /etc/network/if-pre-up.d and /etc/network/if-up.d, and eyeballed the files that were there to see what was running as part of the ifup command.

In my case, I had installed the iscsi tools for some testing and no longer needed it, so it was easy to remove and re-test to see if the interface came up.  It did.

In the end I had these files in if-up.d: bind9, ntpdate, openntpd, openssh-server, postfix, and upstart.

Note: I did not have any "up" scripts in my /etc/network/interfaces file, so that's why I started looking at these directories.


Unable to access windows partition anymore

Try these commands,

cd /media
mkdir windows
sudo mount /dev/sda3 /media/windows

Now your windows partition will be mounted on /media/windows.


Installation with pictorial representation - stand alone install

I like closure so since I asked for a graphic I have included one.
Install Ubuntu graphic


How can I add a panel to the Numix Lightdm login theme?

There are alreay a panel but It's color is made transparent. If you want to change this, you need to compile Numix Theme. I've compiled it and made the panel non-transparent. Here is the procedure.

Download the Numix Theme's source files from here https://github.com/numixproject/numix-gtk-theme/releases. I used the latest one (in the time of writing this answer) v2.6.1
Install the necessary dependencies.

You need to have Ruby installed with sass gem. To install ruby use this command

sudo apt-get install ruby

After ruby is installed, install sass using this command.

sudo gem install sass

You also need these packages for building the theme.

sudo apt-get install glib-compile-schemas gdk-pixbuf-pixdata libgdk-pixbuf2.0-dev

Now extract the source file of the Numix theme and open gtk-3.0/scss/apps/_lightdm.scss file and in the line #16, there is

background-color: transparent;

Change it to

background-color: $lightdm-bg-color;

After the change, the changed area in file gtk-3.0/scss/apps/_lightdm.scss becomes

14:         .menubar {
15:             &, > .menuitem {
16:                 background-color: $lightdm-bg-color;
17:                 background-image: none;
18:                 color: $white;
19:                 font: bold;
20:                 text-shadow: 0 1px alpha($black, .5);
21:                 icon-shadow: 0 1px alpha($black, .5);

Note: Left columns are line numbers and aren't present in the file

Now open a terminal in the numix theme's source files and use these command to build and install the new customized Numix

make
sudo make install

This should make the panel non-transparent. Restart to see the change.

Here is a screenshot of the login screen after the change (took it by the help of this answer)


16.04 install freezing with watchdog: BUG: soft lockup - CPU#6 stuck for 22s

I'm an owner of the XPS 9560, I think the same system. There's an XPS specific bug at the moment that requires adding

acpi_rev_override=1

to the boot params to avoid a soft lockup when accessing the dedicated GPU in any capacity. In grub when booting the installer, tap "e" then add acpi_rev_override=1 after quiet splash and it should boot properly.


How can i downgrade a package installed from source?

Try what the answer here suggests, use these commands:

echo $LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib


Why does my kernel.log file report 'Link Training Error' and 'Failed to check link status'?

Sounds like your machine doesn't support PCI-E hotplugging.

Assuming you have an eeepc, read here, particularly Post 15:

  Well, there are 3 different issues with the 1005PE model, which are related.

  First, Win7 compatible bios, check if the eeepc-laptop module is loaded:
  lsmod | grep eee
  If not, you'll need this kernel parameter:
  acpi_osi=Linux

  Second, to fix the brightness, another parameter:
  acpi_backlight=vendor

  Finally, the actual bug, as described in acpi4asus git:
  http://git.iksaif.net/?p=acpi4asus.git;a=commit;h=ced69c59811f05b2f8378467cbb82ac6ed3c6a5a

  To work around the problem, disable hotplugging with this parameter:
  eeepc_laptop.hotplug_disabled=1

  Summarizing, add the needed parameters to your Grub, see below, and update:
  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor eeepc_laptop.hotplug_disabled=1"


Teamviewer setup is not recognising daemon

I had this problem trying to run teamviewer setup on a graphical console on a linux desktop (using Chrome Remote Desktop).

The moment I've tried on the console directly (in my case, ssh onto the machine without any X forwarding and such), it worked like a charm.


Installing ubuntu on a separate hard drive

so i just booted  normally to the usb installer and proceeded to install ubuntu to the second drive without any issues, so now if i want to boot into ubuntu i just hit escape key upon starting, i choose to boot from my second drive and voila!
to boot into windows i just boot normally without any intervention! thank you guys for the help.


Clean unwanted files after an incomplete download, Ubuntu 12.04.2

Try to execute these commands. They will help to clear/fix broken packages and also try to install required library packages needed to run packages efficiently:

Fix using Command Line:

sudo apt-get autoremove
sudo apt-get --purge remove
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get -f install

Fix using Synaptic Package Manager:

Fist install synaptic package manager if you don't have already installed:

sudo apt-get install synaptic

Then open synaptic package manager -> click Custom Filters down-left -> click Broken top-left, it will list all broken packages try to all broken packages. Also if any residual packages are there on more option you will get as residual packages.

Hope it works for you.


Try this:

sudo -s
mv /etc/issue.backup /etc/issue
mv /etc/rc.local.backup /etc/rc.local
mv /opt/vmware-tools-installer/lightdm.conf /etc/init
reboot

This will restore these files from the backup that VMWare made durin VMWare tools installation.


bash script that checks for open/closed ports and current ssh version

Use nmap (you may have to sudo apt install nmap first. Read man nmap. Reread man nmap, and do something like (MY system runs sshd on port 22):

sudo nmap -sV -p22 --version-all  localhost

Starting Nmap 7.01 ( https://nmap.org ) at 2019-02-07 09:22 EST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00010s latency).
PORT   STATE SERVICE VERSION
22/tcp open  ssh     OpenSSH 7.2p2 Ubuntu 4ubuntu2.6 (Ubuntu Linux; protocol 2.0)
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 1.54 seconds


Is "upgrade --with-new-pkgs" safer than "dist-upgrade"?

Yes, it is safer to some extent.

The core purpose of upgrade --with-new-pkgs and dist-upgrade is to upgrade a package to the latest version and satisfy dependencies in the process.

dist-upgrade takes the ambitious route of installing new packages and/or removing installed packages to satisfy dependencies. This could in turn remove some package(s) that is needed by another application, that's why it is not recommended always.

On the other hand, upgrade will just try to upgrade the package without installing/removing anything from the system. upgrade --with-new-pkgs adds the installing new package capability to upgrade i.e. to satisfy dependency it can install new package(s) but will not remove anything.

So we can put it in a simple expression (the initial apt-get is omitted):

upgrade --with-new-pkgs == dist-upgrade - removal_capability

Note that while upgrading kernel you will still need dist-upgrade.

Also autoremove removes the packages that were installed as dependencies (marked as auto) and no longer needed.


What is the equivalent terminal command of Update Manager?

You can use this command:

sudo apt-get dist-upgrade

man page says:

dist-upgrade

  dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary. So, dist-upgrade command may remove some packages. The /etc/apt/sources.list file contains a list of locations from which to retrieve desired package files. See also apt_preferences(5) for a mechanism for overriding the general settings for individual packages.


Show date and time on GUVCViewer recordings?

GUVCViewer doesn't support this feature , why you don't try ffmpeg video recording , it support time stamp when recording your webcam .


Automatically sync a folder to a USB when USB is plugged in?

I'd personally lean toward udev for something like this. udev is the subsystem that's responsible for handling hardware when it's plugged in, after the kernel has loaded it, that is.

Amongst a plethora of other features, it can run a script. In your case, I'm thinking it could mount the drive somewhere and perform whatever sync features you need.

I've already written how to write a simple udev script so I'll just point you there.

For the actual synchronisation, you need something else. git is a very popular version control application that you could easily twist to your will. And there are standard backup options like rsync that you can have it merge conflicts (just not as well as something like git).


How to install the the "speedtest_cli" module for the speedtest-cli command on ubuntu 14.04

Use the GetDeb repositories.

Add the repository by installing a deb package

cd
wget http://archive.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb
sudo dpkg -i getdeb-repository_0.1-1~getdeb1_all.deb
sudo apt-get update
sudo apt-get install python-speedtest-cli

After that, remove your downloaded speedtest-cli

sudo rm /use/local/bin/speedtest-cli

Now open a terminal and start via

speedtest-cli


How can I copy a folder without altering their original dates of creation?

Read man cp, and, in addition to the --recursive switch use one of:

   -p     same as --preserve=mode,ownership,timestamps

   --preserve[=ATTR_LIST]
          preserve the specified attributes (default: mode,ownership,timestamps), if possible
          additional attributes: context, links, xattr, all


Since your path has spaces in it you need to enclose both the path AND the variable in "". Try this from the command line.

export week4="/home/Justin/Week 4/assignment/"

Now you should be able to navigate to that directory by typing cd $week4

If you want to make this permanent then add the same line to your .bashrc file.


Fonts displayed at larger size in documents compared to Windows

See the OpenOffice link with this problem, they suggest you download the "official" version instead of the Ubuntu version.  Probably applies to Libreoffice too.  I assume you really have the same fonts available and are not getting some substitution -- again see the link.
https://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=542


Wireless internet works on W7 and on University Network but is extremely slow at home

sudo -s
echo "options ath9k nohwcrypt=1" > /etc/modprobe.d/ath9k.conf

Found this code on here somewhere.
It fixed my problem. Might not work immediately though. I had to do a restart.


You simply need to delete the folder that has your matlab installation. That's it.

However if you have a license manager you first need to shut it down and remove its files. I didn't need to do this but here you go:

To shut it down: there should be a file called lmdown in your matlab folder in the etc folder. Run it.
To remove its files: run sudo rm /var/tmp/lm_TMW*

Also you might want to remove symlinks to matlab binaries. Run:

rm /usr/local/bin/matlab /usr/local/bin/mcc /usr/local/bin/mex /usr/local/bin/mbuild

...Also don't forget to remove matlab-support. Run:

sudo apt-get purge matlab-support

Source


process over records of files based on timestamp in x interval of the time

Writing reports on time stamped datafiles; complex requirements

While the original question was a bit complicated, the context of the question made it a quite difficult one. Additional circumstances were (as discussed in chat):

The script needed to combine multiple, time stamped files into one report, possibly spread over multiple day-stamped folders (depending on the set time-range).
The script needed to be able to select a time range, not only from the time stamps on the file names, but also a sub-range read from the files' lines.
Time sections (quarters) with no data should report "zeroed" output
The time format in the ouput, both in the report name and the reported lines (per 15 minutes) was needed in a different from the input format.
Lines to be processed needed to meet a condition, which the script had to check
Relevant data could possibly be on different positions in the line
The script needed to be python2
The script had to consider a (variable) difference between local time and UTC.
Extra options added: option to export to basic csv, optional columns on/off
Last but not least: the amounts of data, to be processed were more then huge; thousands of files, hundreds of thousands of lines per file, many GB's, millions of lines. In other words: procedures had to be smart and efficient to be able to process the data within a reasonable amount of time.

Explanation

The end result is too comprehensive to explain in detail, but, for those who are interested, the headlines:

All time calculations were done (no wonder) in epoch time
Reading the files' lines, the very first was to check the condition per line, to decrease the number of lines to be processed immediately
Frome the lines, the time stamp, after converting to epoch, was divided by 900 (seconds, 15 minutes), rounded down (taking int(n)), and subsequently multiplied by 900 again to calculate the 15 minute- section they belonged to
Lines were subsequently sorted and grouped by itertools' groupby and results per group were generated with the help of ifilter (python2)
Reports were subsequently first created per file, since reports were per 15 minutes. The reported output per file could not be more then tens of lines. No possible issue to temporarily store into memory.
Once all relevant files and lines were processed this way, all reports were finally combined into one final report

The script turns out to do the job very well, despite the amount of data. While processing, the processor shows about 70% occupation on my 10+ years old system, running stable. The computer is still very well usable for other tasks.

The script

#!/usr/bin/env python2
import time
import datetime
from itertools import groupby, ifilter
from operator import itemgetter
import sys
import os
import math

"""
folders by day stamp: 20161211 (yyymmdd)
files by full readable (start) time 20161211093512 (yyyymmddhhmmss) + header / tail
records inside files by full start time 20161211093512 (yyyymmddhhmmss)
commands are in UTC, report name and time section inside files: + timeshift
"""

################## settings  ##################

# --- format settings (don't change) ---
readable = "%Y%m%d%H%M%S"
outputformat = "%d-%m-%Y %H:%M"
dateformat = "%Y%m%d"

#---------- time settings ----------
# interval (seconds)
interval = 900
# time shift UTC <> local (hrs)
timeshift = 3.5
# start from (minutes from now in the past)
backintime = 700

# ---- dynamically set values -------
# condition (string/position)
iftrue = ["mies", 2]
# relevant data (timestamp, result)
data = [0, 1]
# datafolder
datafolder = "/home/jacob/Bureaublad/KasIII"

# ----- output columns------
# 0 = timestamp, 1 = total, 2 = SUCCESS, 3 = FAILS
# don't change the order though, distances will mess up
items = [0, 1, 2, 3]
# include simple csv file
csv = True

###############################################

start = sys.argv[1]
end = sys.argv[2]
output_path = sys.argv[3]

timeshift = timeshift*3600

def extraday():
    """
    function to determine what folders possibly contain relevant files
    options: today or *also* yesterday
    """
    current_time = [
        getattr(datetime.datetime.now(), attr) \
        for attr in ['hour', 'minute']]
    minutes = (current_time[0]*60)+current_time[1]
    return backintime >= minutes

extraday()

def set_layout(line):
    # take care of a nice output format
    line = [str(s) for s in line]
    dist1 = (24-len(line[0]))*" "
    dist2 = (15-len(line[1]))*" "
    dist3 = (15-len(line[2]))*" "
    distances = [dist1, dist2, dist3, ""]
    displayed = "".join([line[i]+distances[i] for i in items])
    return displayed

    # return line[0]+dist1+line[1]+dist2+line[2]+dist3+line[3]

def convert_toepoch(pattern, stamp):
    """
    function to convert readable format (any) into epoch
    """
    return int(time.mktime(time.strptime(stamp, pattern)))

def convert_toreadable(pattern, stamp, shift=0):
    """
    function to convert epoch into readable (any)
    possibly with a time shift
    """
    return time.strftime(pattern, time.gmtime(stamp+shift))

def getrelevantfiles(backtime):
    """
    get relevant files from todays subfolder, from starttime in the past
    input format of backtime is minutes
    """
    allrelevant = []
    # current time, in epoch, to select files
    currt = int(time.time())
    dirs = [convert_toreadable(dateformat, currt)]
    # if backintime > today's "age", add yesterday
    if extraday():
        dirs.append(convert_toreadable(dateformat, currt-86400))
    print("Reading from: "+str(dirs))
    # get relevant files from folders
    for dr in dirs:
        try:
            relevant = [
                [f, convert_toepoch(readable, f[7:21])]
                for f in os.listdir(os.path.join(datafolder, dr))
                ]
            allrelevant = allrelevant + [
                os.path.join(datafolder, dr, f[0])\
                for f in relevant if f[1] >= currt-(backtime*60)
                ]
        except (IOError, OSError):
            print "Folder not found:", dr
    return allrelevant

def readfile(file):
    """
    create the line list to work with, meeting the iftrue conditions
    select the relevant lines from the file, meeting the iftrue condition
    """
    lines = []
    with open(file) as read:
        for l in read:
            l = l.split(",")
            if l[iftrue[1]].strip() == iftrue[0]:
                lines.append([l[data[0]], l[data[1]]])
    return lines

def timeselect(lines):
    """
    select lines from a list that meet the start/end time
    input is the filtered list of lines, by readfile()
    """
    return [l for l in lines if int(start) <= int(l[0]) < int(end)]

def convert_tosection(stamp):
    """
    convert the timestamp in a line to the section (start) it belongs to
    input = timestamp, output = epoch
    """
    rsection = int(convert_toepoch(readable, stamp)/interval)*interval
    return rsection

reportlist = []

foundfiles = getrelevantfiles(backintime)

if foundfiles:
    # the actual work, first reports per file, add them to reportlist
    for f in foundfiles:
        # create report per file
        # get lines that match condition, match the end/start
        lines = timeselect(readfile(f))
        # get the (time) relevant lines inside the file
        for item in lines:
            # convert stamp to section
            item[0] = convert_tosection(item[0])
        lines.sort(key=lambda x: x[0])
        for item, occurrence in groupby(lines, itemgetter(0)):
            occ = list(occurrence)
            total = len(occ)
            # ifilter is python2 specific (<> filterfalse in 3)
            success = len(list(ifilter(lambda x: x[1].strip() == "00", occ)))
            fails = total-success
            reportlist.append([item, total, success, fails])

    finalreport = []

    # then group the reports per file into one
    reportlist.sort(key=lambda x: x[0])
    for item, occurrence in groupby(reportlist, itemgetter(0)):
        occ = [it[1:] for it in list(occurrence)]
        output = [str(sum(i)) for i in zip(*occ)]
        output.insert(0, item)
        finalreport.append(output)

    # create timeframe to fill up emty sections
    framestart = int(convert_toepoch(readable, start)/interval)*interval
    frameend = int(math.ceil(convert_toepoch(readable, end)/interval))*interval
    timerange = list(range(framestart, frameend, interval))
    currlisted = [r[0] for r in finalreport]
    extra = [item for item in timerange if not item in currlisted]

    # add missing time sections
    for item in extra:
        finalreport.append([item, 0, 0, 0])
    finalreport.sort(key=lambda x: x[0])
    print(str(len(finalreport))+" timesections reported")

    # define output file
    fname1 = convert_toreadable(
        readable,
        convert_toepoch(readable, start),
        timeshift)
    fname2 = convert_toreadable(
        readable,
        convert_toepoch(readable, end),
        timeshift)
    filename = "report_"+fname1+"_"+fname2
    outputfile = os.path.join(output_path, filename)
    # edit the time stamp into the desired output format, add time shift
    with open(outputfile, "wt") as report:
        report.write(set_layout(["starttime", "total", "SUCCESS", "FAILED"])+"\n")
        for item in finalreport:
            item[0] = convert_toreadable(outputformat, item[0], timeshift)
            report.write(set_layout(item)+"\n")
    if csv:
        with open(outputfile+".csv", "wt") as csv_file:
            csv_file.write(",".join(["starttime", "total", "SUCCESS", "FAILED"])+"\n")
            for item in finalreport:
                csv_file.write(",".join(item)+"\n")

else:
    print("no files to read")

A small sample of the output

starttime               total          SUCCESS        FAILED
12-12-2016 03:30        2029           682            1347
12-12-2016 03:45        2120           732            1388
12-12-2016 04:00        2082           745            1337
12-12-2016 04:15        2072           710            1362
12-12-2016 04:30        2004           700            1304
12-12-2016 04:45        2110           696            1414
12-12-2016 05:00        2148           706            1442
12-12-2016 05:15        2105           704            1401
12-12-2016 05:30        2040           620            1420
12-12-2016 05:45        2030           654            1376
12-12-2016 06:00        2067           692            1375
12-12-2016 06:15        2079           648            1431
12-12-2016 06:30        2030           706            1324
12-12-2016 06:45        2085           713            1372
12-12-2016 07:00        2064           726            1338
12-12-2016 07:15        2113           728            1385


Repeating audio noise loop when no music or audio playing in Ubuntu 18.04

I experienced the same problem on Fedora 33 after switching from a headphone to a jack cable branched on a stereo amplifier. Honestly I don't know why it happened now or if this is related at all to the hardware output but here is how I solved it :
By killing pulseaudio and relaunching it in verbose mode ( pulseaudio -k && pulseaudio -v ), the following information stuck out :
[pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_0b_00.3.analog-stereo idle for too long, suspending ...

Now I remember having experienced something similar in the past, only it was a loud glitching noise popping when an audio source went idle or was restored. The solution is to keep the idle audio source from suspending. In /etc/pulse/default.pa, comment out the load-module module-suspend-on-idle instruction :
### Automatically suspend sinks/sources that become idle for too long
# load-module module-suspend-on-idle

Judging from what I can read online and what I experienced, it's an old problem, sometimes funnily described as a "machine gun" sound. This question is month old now, and you probably solved it by yourself, but hopefully It will spare a headache to someone else in the future
Source : https://wiki.archlinux.org/index.php/PulseAudio#guvcview


Can't install packages due to dpkg error, common solution fails

Boot to the GRUB menu.
Choose "Advanced options for Ubuntu".
Now choose the first / top-most "(recovery mode)" option.
Now you will be shown a "Recovery Menu". From here, choose the "root access" option.
Enter your root password when prompted.

Run these commands:

sudo mount -o remount,rw /
fsck -f /
sudo dpkg --configure -a
sudo apt-get install -f

That should do it.


Solved by upgrading Java. It was bug in current version back than.

https://stackoverflow.com/questions/24848752/javafx-mp3-playback-ubuntu-14-04


You can configure your DHCP server to only give static addresses to known MACs. Any unknown MAC addresses which attempt to get an address via DHCP will be logged as denied.

You can specify a dynamic address range to allocate to unknown addresses. These won't be static though, so any MAC which connects multiple times won't necessarily have the same IP. However, simply not allowing dynamic IP allocation, and only using static IPs for known MAC addresses is the easiest/best solution to what (I think) you are asking.

If it is WiFi, look into using the built-in MAC filtering on your access points or routers. If it is for wired ethernet, then you'll need to build a bit more complex firewall rules to deal with it. Though, for some things, these too can simply be subverted.


Python syntax error with awk, sprintf statment (2.7)

You can't use " within "'s. Your command split into parts

cmd = "
/dev/bus/usb/`udevadm info --name=/dev/ttyUSB0 --attribute-walk
| sed -n 's/\s*ATTRS{\(\(devnum\)\|\(busnum\)\)}==\"\([^\"]\+\)\"/\4/p'
| head -n 2
| awk '{$1 = sprintf("%03d", $1); print}'`
| tr " " "/"
"

The " on line 1 and line 7 interfere with the " on lines 5 and 6. You need to escape those. Line 3 escapes them correctly.

See the string literals section.

Untested, but you probably need to do it like this:

cmd = "
/dev/bus/usb/`udevadm info --name=/dev/ttyUSB0 --attribute-walk
| sed -n 's/\s*ATTRS{\(\(devnum\)\|\(busnum\)\)}==\"\([^\"]\+\)\"/\4/p'
| head -n 2
| awk '{$1 = sprintf(\"%03d\", $1); print}'`
| tr \" \" \"/\"
"

Maybe this works too:

cmd = "/dev/bus/usb/`udevadm info --name=/dev/ttyUSB0 --attribute-walk | sed -n 's/\s*ATTRS{\(\(devnum\)\|\(busnum\)\)}==\"\([^\"]\+\)\"/\4/p' | head -n 2 | awk '{$1 = sprintf('%03d', $1); print}'` | tr ' ' '/'"

I changed " into '.


Google Chrome opens two tabs when opened

Type this on the address bar chrome://settings & enter where chrome will take you to the settings panel. Fine On start-up & select Open a specific page or set of pages, then click set pages link. There you can remove the extra tab from there. See below image for reference.


Questions about hybrid graphic card Asus/Sony Serie S

In my experience (Asus U30) when you install Ubuntu in a laptop with Optimus technology the two cards will be detected, but only discrete card will be effectively used. The dedicated card, although not being used its turned on, so it will drain power. Bumblebee let you use the dedicated card, but not in the same way it is used in Windows(no automatic switching between cards) and lets you turn off it to save battery (but this is something experimental...).

Also please note that some laptops with Optimus let users turn on and off the dedicated card in BIOS.


Problems routing vpn traffic to second network adapter -please help.

To me it is not really clear what you try to achieve.
Let me assume you have two ethernet interfaces: eth0 and eth1. Eth0 is connected to the internet, while eth1 is connected to your home-lan-network. In this case, you could use your server as router, that gives internet access at eth0 to all devices connected to eth1.

For this to work, you would need a dhcp server that assigns IP's to the devices connected to your eht1 interface. Also you would need to forward the traffic between the two eth devices.

Dhcp server installation and configuration:

sudo apt-get install dnsmasq

sudo nano /etc/dnsmasq.conf

interface=eth1 # The interface for the dhcp server to listen to
dhcp-range=192.168.179.10,192.168.179.150,255.255.255.0,12h # Dhcp server IP adress + Range + Netmask + Leasetime

Routing and forwarding

sudo nano /etc/sysctl.conf

uncomment the line

net.ipv4.ip_forward=1

and let the changes take effect:

sudo sysctl -p

Modify IP tables. I  recommend you to write a script for this purpose, so you can do changes quick, in case you need to experiment. The script will delete all iptables rules, set chain rules to ACCEPT and than append the routing rules:

nano firewall-script.sh

#!/bin/bash
IPTABLES="/sbin/iptables"

# ACCEPT everything by default.

$IPTABLES -P INPUT ACCEPT
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -P OUTPUT ACCEPT

# Set the nat/mangle/raw tables' chains to ACCEPT
$IPTABLES -t nat -P PREROUTING ACCEPT
$IPTABLES -t nat -P OUTPUT ACCEPT
$IPTABLES -t nat -P POSTROUTING ACCEPT

$IPTABLES -t mangle -P PREROUTING ACCEPT
$IPTABLES -t mangle -P INPUT ACCEPT
$IPTABLES -t mangle -P FORWARD ACCEPT
$IPTABLES -t mangle -P OUTPUT ACCEPT
$IPTABLES -t mangle -P POSTROUTING ACCEPT

# Cleanup - Delete all iptables-rules.
#------------------------------------------------------------------------------

# Delete all
$IPTABLES -F
$IPTABLES -t nat -F
$IPTABLES -t mangle -F

# Delete all
$IPTABLES -X
$IPTABLES -t nat -X
$IPTABLES -t mangle -X

# Zero all packets and counters.
$IPTABLES -Z
$IPTABLES -t nat -Z
$IPTABLES -t mangle -Z

#------------------------------------------------------------------------------

$IPTABLES -t nat -A POSTROUTING -o eth0 -j MASQUERADE
$IPTABLES -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A FORWARD -i eth1 -o eth0 -j ACCEPT

Save the file CTRL+X and make it executable chmod +x firewall-script.sh.

when you want to save your iptables-rules - otherwise they will be lost after reboot - install sudo apt-get install iptables-persistent. In case you already installed it type sudo dpkg-reconfigure iptables-persistent. I recommend you not to save the rules made by my script, because it opens everything. My IPTABLES script is only for testing purpose.

Now you should be able to use your server as router. Next step would be to modify the script to use the vpn-connection of the server.

Start your VPN connection. When the connection is established type ifconfig. You should see a tun-device. I suppose your vpn-connection is using tun0 and eth1 is connected to your lan-homenetwork:

$IPTABLES -t nat -A POSTROUTING -o tun0 -j MASQUERADE
$IPTABLES -A FORWARD -i tun0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A FORWARD -i eth1 -o tun0 -j ACCEPT

Now all home-traffic should be routet thru your vpn.
I hope this helps you somehow.


unable to paste with xclip outside of terminal

I think it is just a matter of understanding the different selection clipboards used by the xclip utility

   -selection
          specify  which X selection to use, options are "primary" to use
          XA_PRIMARY (default), "secondary" for  XA_SECONDARY  or  "clip‐
          board" for XA_CLIPBOARD

When you do cat line-size.c | xclip the default behaviour is to copy to the primary X selection buffer - to paste from that buffer, you need to use a mouse middle-click instead of the Ctrl+v combination.

To copy into the clipboard instead, so that you can paste with Ctrl+v, you would need to do

cat line-size.c | xclip -selection clipboard


Can't get Bumblebee working on NVIDIA Corporation GK107M [GeForce GT 640M]

First of all to get much trusty results, glxspheres is better than glxgears. You can use "vblank_mode=0" for get higher results but it is all about v-sync. If you can run a program with optirun command there is no problem to worry about because your Nvidia card works.

You know that your Nvidia card is working but don't know working fine or not, for that compare glxspheres results between intel and nvidia card.

To install glxspheres:

Download VirtualGL (.deb) from:
http://sourceforge.net/projects/virtualgl/files/VirtualGL/

Navigate to the folder containing the deb package and install it with

sudo dpkg -i VirtualGL_*.deb

Run glxspheres:

cd /opt/VirtualGL/bin/

vblank_mode=0 ./glxspheres

to run with nvidia card:

vblank_mode=0 optirun ./glxspheres

Note: vblank_mode=0 is for disable the v-sync and it spends much battery power. You don't need to use generally.


How do I install the NVIDIA CUDA toolkit on 18.04 with Coffee Lake - is it supported?

It looks as though the CUDA 9.1 is actually in the official 18.04 repositories now.   Run the following from a terminal window:

sudo apt install nvidia-cuda-toolkit

After it is installed run nvcc -V to confirm.  You should see something similar to this:

terrance@terrance-ubuntu:~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85

The toolkit also installs the necessary drivers and support for OpenCL.  Just install clinfo and run it to see:

sudo apt install clinfo

Then you should get something similar to the following:

terrance@terrance-ubuntu:~$ clinfo
Number of platforms                               1
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
  Platform Version                                OpenCL 1.2 CUDA 9.2.101
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer
  Platform Extensions function suffix             NV

  Platform Name                                   NVIDIA CUDA
Number of devices                                 1
  Device Name                                     GeForce GTX 760
  Device Vendor                                   NVIDIA Corporation
  Device Vendor ID                                0x10de
  Device Version                                  OpenCL 1.2 CUDA
  Driver Version                                  396.24
  Device OpenCL C Version                         OpenCL C 1.2
  Device Type                                     GPU
  Device Topology (NV)                            PCI-E, 02:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               6
  Max clock frequency                             1032MHz
  Compute Capability (NV)                         3.0
  Device Partition                                (core)
    Max number of sub-devices                     1
    Supported partition types                     None
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x64
  Max work group size                             1024
  Preferred work group size multiple              32
  Warp size (NV)                                  32
  Preferred / native vector sizes
    char                                                 1 / 1
    short                                                1 / 1
    int                                                  1 / 1
    long                                                 1 / 1
    half                                                 0 / 0        (n/a)
    float                                                1 / 1
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  Yes
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size                              2095710208 (1.952GiB)
  Error Correction support                        No
  Max memory allocation                           523927552 (499.7MiB)
  Unified memory for Host and Device              No
  Integrated memory (NV)                          No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       4096 bits (512 bytes)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        98304 (96KiB)
  Global Memory cache line size                   128 bytes
  Image support                                   Yes
    Max number of samplers per kernel             32
    Max size for 1D images from buffer            134217728 pixels
    Max 1D or 2D image array size                 2048 images
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             4096x4096x4096 pixels
    Max number of read image args                 256
    Max number of write image args                16
  Local memory type                               Local
  Local memory size                               49152 (48KiB)
  Registers per block (NV)                        65536
  Max number of constant args                     9
  Max constant buffer size                        65536 (64KiB)
  Max size of kernel argument                     4352 (4.25KiB)
  Queue properties
    Out-of-order execution                        Yes
    Profiling                                     Yes
  Prefer user sync for interop                    No
  Profiling timer resolution                      1000ns
  Execution capabilities
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Kernel execution timeout (NV)                 Yes
  Concurrent copy and kernel execution (NV)       Yes
    Number of async copy engines                  1
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels
  Device Extensions                               cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  NVIDIA CUDA
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [NV]
  clCreateContext(NULL, ...) [default]            Success [NV]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  Invalid device type for platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No platform

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.11
  ICD loader Profile                              OpenCL 2.1

To install the NVIDIA graphics drivers in 18.04LTS, follow the steps below:

In a terminal window, type in:

sudo apt-add-repository ppa:graphics-drivers/ppa

Then run the update:

sudo apt update

Then install the graphics driver:

sudo apt install nvidia-driver-396

After a reboot, you can run nvidia-smi to see if it is installed:

terrance@terrance-ubuntu:~$ nvidia-smi
Wed May  2 22:38:14 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 396.24                 Driver Version: 396.24                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 760     Off  | 00000000:02:00.0 N/A |                  N/A |
| 49%   51C    P0    N/A /  N/A |    262MiB /  1998MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+

Hope this helps!


You were very close; as you need to move any file ending in .scala, not just any literal .scala, you need *.scala as the --include's glob pattern.

Do:

rsync -rnvh --ignore-times --size-only --include '*/' --include '*.scala' \
    --exclude '*' /source/ /dest/


LVM: unable to create snapshot due to failed merge of prior snapshot

No one, including the LVM mailing list, was able to offer even a single suggestion, so I "solved" my problem with LVM by getting rid of it.  I switched to btrfs when I upgraded my root hard drives.

I thought LVM was pretty stable and maybe it is, but being able to break a key feature on casual use with no one seeming to know how to fix it really turned me off to the technology. I am sure it works great for lots of people. Not sure if btrfs is much more stable, but the impression I get is the community is much more responsive and at least I don't have to screw around with installing mdadm and rescanning physical/logical volumes if I need to boot from USB.

For the record, upgrade/migration to btrfs was super smooth and I had a mirrored raid configuration up in no time.  My /home was on a separate drive so once I used aptik to reload all my software everything came back up with a few very minor hiccups (e.g. needing to downgrade a package).  All in all, one of the easiest migrations I have ever done.

So sorry to end it LVM.  It's not you, it's me. I know that btrfs is younger and maybe sexier and there's a chance that she will go crazy and leave me with a big hole in my data at some point.  But we're happy together and that's important to me. I know that you have a ton of guys wanting you out there, so I'm sure you'll bounce back. After one or two good, meaningless fsck's you'll forget we even had a thing. Au revior, ma cherie.


Intel Graphic Installer 2.0.2 fails on fresh ubuntu 16.04

Unfortunately, sudo apt install -f and sudo dpkg --configure -a didn't work out well for me, but I made the following steps:

If you have already installed mesa-utils (comes with fresh installation, if you tick Download latest updates on ubuntu installation) purge/remove it.

Add PPA repository for stable mesa-utils:
sudo add-apt-repository ppa:paulo-miguel-dias/pkppa && sudo apt-get update

Once it's done, launch graphics tool updater.

Hope it helps someone
Update: 01.org discontinued support for Intel Graphics since Ubuntu 18.04 release and download has been removed as well. However, *.deb package is still available in 01.org official repository.


Thumb Rule -
Never use Ctrlz to terminate/Stop any process, use Ctrlc.
You might have stopped some apt-get process running or its still running in some other window/terminal.

You can remove the locks using below commands -

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock

Then try -

apt-get update


macbuntu-os-ithemes-lts-v7 depends on gtk2-engines-pixbuf, which in turn depends on libgtk2.0-0, and furthermore it is imperative that gtk2-engines-pixbuf and libgtk2.0-0 are kept at the same version.

For reasons that are still unclear, your system wanted to install version 2.24.30-1ubuntu1 of gtk2-engines-pixbuf and version 2.24.30-1ubuntu1.16.04.2 of libgtk2.0-0. Since 2.24.30-1ubuntu1.16.04.2 is a higher version than 2.24.30-1ubuntu1, both packages should be at version 2.24.30-1ubuntu1.16.04.2, but as shown by apt-cache policy gtk2-engines-pixbuf, you did not have a repository providing version 2.24.30-1ubuntu1.16.04.2 of gtk2-engines-pixbuf.

Per packages.ubuntu.com, this version is available in xenial-updates/universe, so this section of the archive should be enabled, for example by enabling xenial-updates in Software & Updates → Updates.


How can I create a Windows 10 boot usb from ubuntu?

One tool that you can use is Unetbootin, which I have found to be quite reliable when creating bootable USB sticks.

You can install Unetbootin with sudo apt-get install unetbootin, and use it via sudo unetbootin.

NOTE: Unetbootin is a graphical applications, it just requires root-level privileges to be able to modify the USB and make it bootable, hence the launch via Terminal and not the Dash.


Can't install anything via apt-get - openjdk errors

Fixed with the following two lines!

sudo apt-get purge openjdk-7-jre-headless
sudo apt-get install openjdk-7-jre-headless

Don't totally understand why... but oh well!

EDIT - this broke some other packages having something to do with me only installing the headless version.

Fixed with this:

sudo apt-get install openjdk-7-jre


Unable to install Ubuntu on HP Pavilion DV6

You can install either Ubuntu 12.04 or 12.10 easily in your laptop and is compatible with it. The graphic card should not be the problem to install Ubuntu.


Make PDF from libreoffice impress handout

Choose File/Print... On the first tab, choose "Handouts". On the last tab, called "Options", select "Print to file...". Press the "Print to file" button and enter a file name. Done!


Low volume/headphone quality sound on Optiplex 755 with Ubuntu 12.04

My quick answer: Use Banshee, not Rhythmbox instead.

Longer answer: After finally getting the time to figure this out, I discovered it is rhythmbox that is the problem. I uninstalled the application and then installed banshee. My volume sounds normal now. I think this has to do with Rhythmbox configuration, but I do not know what exactly solved the issue.

Hope this helps someone.


Ubuntu installed but doesn't boot: error parsing PCC subspaces from PCCT

You did not mention being asked about choosing the boot OS when you power up or restart, I hope that you're talking about after choosing to boot with Ubuntu.

If that's the case, you might try booting with a Ubuntu-Live usb/cd again and make sure that the partition has been set as a bootable partition where your Ubuntu is installed. It's possible that it's that simple and, once set, will boot on in like you expect.

Hope this helps.
Please let us know.


Your /-partition (sda6) and your /home-partition sda5 are inside the extended partition sda2. To increase the size of these partitions you need unallocated space next to them inside the extended partition.

To edit the partitions you will need them unmounted, so you have to boot from live-USB and then run Gparted. Then perform the following steps:

- Increase the size of the extended partition sda2 to the left.
- Move the /home-partition sda5 to the left (inside the extended partition)
- Increase the size of sda5 to the right, leave some unallocated space for the /-partition
- Move the /-partition sda6 to the left
- Increase the size of sda6 to the right

As editing partitions is always a risk it make sense to create a back-up first. If you use a laptop, make sure your power-supply is plugged, moving the file-systems will take a while and you don't want to run out of battery.


Cannot login via SSH after installing LAMP via Tasksel

Sorry, maybe I was a bit to fast with posting a question. But I was in panic ;)
Installing openSSH via Tasksel fixed my problem.

Filled in bug report on Launchpad


How will the Ubuntu Phone SDK impact desktop development

Qt has been a first-class toolkit on Ubuntu for several cycles, and will likely become one of the most important toolkits for cross-formfactor development on Ubuntu.  But no existing languages or toolkits are being deprecated on the Desktop.
Yes, Quickly will be less important as a tool for developing Ubuntu SDK apps.  The Quickly developers have decided that it would be better to build the same functionality into QtCreator itself, rather than build Qt/QML templates for Quickly.
QML (which can contain Javascript) will be the recommended language and toolkit for cross-formfactor development in Ubuntu.  Python, Vala, C and C++ will continue to be available, though the extent to which they are recommended for new development may change.
Existing APIs should not be affected by the Ubuntu QML Toolkit, though which ones we recommend will change depending on which ones best support our various formfactors.

I hope this answers your questions and concerns.


Download of "pecl/xdebug" succeeded, but it is not a valid package archive

The bug is somewhere in the pecl uncompressing module for Ubuntu 14.04 32 bit. Try this:

  sudo pecl install -Z xdebug

-Z makes pecl download an uncompressed version of the package. Works for me.


Fixed it, here is a link to a thread if anyone encounters the same issue.
https://old.reddit.com/r/linuxquestions/comments/a9nukf/regular_update_messed_something_upubuntu_1804/


I just had the same problem, I guess there must be a recent change to that package.
To fix it: (Taken from here:
"no valid sudoers sources found, quitting" error, how to fix it?)

Enter recovery mode (reboot, hold down the SHIFT key after your bios post has finished until the ubuntu menu shows, and select recovery with network).
At the prompt, type these commands:

chown -R root:root /etc/sudoers.d
chmod u=rwx,g=rx,o=rx /etc/sudoers.d/
chmod u=r,g=r,o= /etc/sudoers.d/*

As to your actual question (why does zfs need sudo rights) - I dont know!


"No new release found" on 16.04 when 18.04.4 is available

Please try installing the ca-certificates package and then running 'do-release-upgrade'. The fix for this issue is in progress you can follow it via https://launchpad.net/bugs/1796940.


1.) The command:

sudo iptables -L

only displays the main iptables chains, however the command you listed would have been added to the nat table. You need to use:

sudo iptables -t nat -L

Myself, I would use these versions:

sudo iptables -t nat -v -x -n -L
sudo iptables -v -x -n -L

2.) There are many ways to make the rules auto apply after re-boot. The iptables-persistent method is just one method (which I do not use, by the way). We would need some more information to be able to help further.


BQ Aquaris E4.5 sound not working in web applications and mediaplayer

You mentioned having played Pathwind; did you by any chance mute the sound in Pathwind? There's a known bug whereby muting the sound in Pathwind mutes the sound for the rest of the system as well -- this can be fixed by just relaunching Pathwind and unmuting the sound.


wget calling another page before calling what I actually called

Your wget command contains the argument "URL" after --output-document=... and before the actual URL that you want.  I don't know what you expect that to do, but what it's actually doing is telling wget to fetch the page at the URL "URL", which wget interprets as "http://url.com", which redirects to http://lyrics.url.com/, and thus the behavior you're seeing here happens.  Get rid of the "URL" argument.


You need to boot something else then the OS you're currently running...

Like a real human doctor, Ubuntu cannot cut itself open and operate on itself... ;-)

If your CD drive is broken, put the Ubuntu LiveCD or gparted live on a USB stick and boot that.


How to use compiz with Ubuntu 10.10 Netbook Edition?

If you're using the standard GNOME ("Ubuntu Desktop Edition") session, it should already default to Compiz if it works on your hardware. You don't have to separately install it.

You should be able to switch to Unity by choosing the "Ubuntu Netbook Edition" session without problems, in which case Compiz won't be running, and won't interfere with Unity in any way.


Convert pdf to an editable format, retaining images

If there are just a few figures to extract from the pdf file, you can use a GUI-based method, only possible if you have a photo editor (it is likely you have GIMP installed). Here it is a detailed process of how to do it (dispense me if you are an expert on this, but it might be good as a reference for others):

Open the pdf file, and put one picture in the screen so that it covers most of the screen (for example, if you are using Evince, just press F11 and adjust zoom). (The larger the picture on screen, the better the quality of the extracted file)
Press print screen key in keyboard.
Select Open with: your favorite photo editor (probably GIMP).
Use the rectangle selection tool to select the area of the picture you want to extract. To enable this tool, use the Toolbox panel or press R. Once you have selected the area, copy it using Ctrl+C and paste it as a new image using Shift+Ctrl+V. Then, select Export As from File menu, or press Shift+Ctrl+E. Then you can save the picture in any format you like. Just change the extension or select in the menu at the bottom.

If you have many pictures to extract, or you prefer a command-line method, use the pdfimages tool. To use it, install the poppler-utils package (you might have it already):

sudo apt-get install poppler-utils

Then, open a terminal window, go to the folder where you pdf file is, and run:

pdfimages -j file.pdf photo

This will extract the pictures from file.pdf and save them as photo-001.jpg, photo-002.jpg, etc (in the same folder where the pdf file is).


When you do grep ls*, the shell first expands ls* to a list of matching files in the current directory, so the command becomes

ls -l | grep ls lsblk lsmod

In this case, grep will ignore standard input and treat the first argument ls as a pattern to be matched inside the files lsblk and lsmod, just as though you'd typed grep ls lsblk lsmod (presumably in /bin):

$ grep ls lsblk lsmod
Binary file lsblk matches
Binary file lsmod matches

On the other hand, if there are no glob matches in the current directory and the shell's nullglob option is not set, then ls* will be left unexpanded, so that grep sees ls* and matches any file names matching l followed by zero or more s characters (basically any filename with an l in it) e.g.:

$ pwd
/home/steeldriver
$ echo ls*
ls*

(there are no files matching the shell glob ls* in my home directory); then

$ ls /bin | grep 'ls*'
bzless
chacl
false
.
.
.
zless

tl;dr don't do that


Ubuntu 14.04 Kernel "linux-image-extra-3.13.0-68-generic" Produces Errors During Update

This is a bug identified by Ubuntu: bugs.launchpad.net/ubuntu/+source/linux/+bug/1514907

Type the following into a terminal (if you can manage to get one started):

$ sudo apt-get install -f
$ sudo apt-get clean
$ sudo apt-get update

Then re-install the package or updates.

Please note: Kernel versions since this one have resolved the issue. Install one of the later kernels when you receive the update.


Error return code of bash script is not the value I send

$? is always the exit code of the last command. In your example this is probably the check in if.

You need to set a variable to the exit code and use that:

#!/bin/bash

./verifier
RESULT=$?
if [ $RESULT -eq 0 ]; then
  echo ok!
else
  echo Error code: $RESULT
fi


Ubuntu 14.04 randomly freezes on Dell Precision M4500

I use Ubuntu 14.04 and at first I had this problem. I installed nVIDIA driver on My Ubuntu and it has never freeze since I install nVIDIA driver on it.
nVIDIA driver is available in Ubuntu Software Center.
Hope it helps.


Execute two and more files in Geany 1.32 in KDE Plasma 5.12.9

I tried to downgrade Geany to 1.27 which does not help, but simple workaround is just to install original Terminal. (E.g. in Discover the GNOME terminal).
https://wiki.gnome.org/Apps/Terminal

And to change settings in Geany: Edit > Preferences > Tools (bar) > Terminal option command:

gnome-terminal -e "/bin/bash %c"

(originally there was:

x-terminal-emulator -e "/bin/sh %c"

which launches Konsole and this did not work)


VMWare Player crashes after upgrading to Ubuntu 14.04

VMWare player, the prior version, is wonky in 14.04. I would purge it and then install the newest version; https://my.vmware.com/web/vmware/info/slug/desktop_end_user_computing/vmware_workstation/10_0


I first mounted sda1, the EFI partition. You can check yours with

sudo fdisk -l

and mount it with

sudo mount /dev/sda1 /mnt

Within this mounted sda partition, I copied grubx64.efi and shimx64.efi from /EFI/ubuntu to /EFI/Boot.


If You like to learn a bit for Yourself, You are for sure able to do all the stuff by Your own.
Some tips:
get information about Your needs:

For mounting devices on boot look how to setup /etc/fstab file
For making them accessible under the same root directory get information about how to create links (hardlink or symbolic) depending on what You prefer
For sharing to Microsoft network You need to get information about samba and need to install it

Try Your best based on above hints. It would be a lot for me to write to explain "how to" and there is no garantee that what i write can be understood precicely being able to reach the goals.

If You need any help write to my e-mail josef.klotzner@gmail.com

cu


Ubuntu 16 VLAN interface doesn't work (bond and non-bond)

I'm running something very similar, with both VLANs and multiple subnets and the syntax is close (eth0.100:3).  You can put both eth0 and eth0.100 in the same 'auto' line and you don't need the vlan-raw-device if eth0 is in the base interface name like eth0.100.

Try assigning a static address on another network (fake, if needed) and see if eth0.100 lights-up.


I figured it out by myself, hope I can help anyone with the same problem (maybe a little bit "dirty", but it works!)

I created a bash file dropbox.sh:
    #!/bin/bash

dropbox start -i
sleep 1
b=`pidof dropbox`

c=`echo $b | cut -d' ' -f1`
c1=`echo $b | cut -d' ' -f2`

d="dropbox-client-$c=8"
d1="dropbox-client-$c1=8"
filename=~/.local/share/indicators/application/ordering-override.keyfile

count=0
while read LINE
do
let count++
if [[ $LINE == *dropbox* ]];then
    c=$LINE
    e=$count
    e1=$(($e + 1))
    break
fi
done < $filename
sed -i "$e s/.*/$d/" $filename
sed -i "$e1 s/.*/$d1/" $filename

and replaced the startup command for dropbox with this bash-script, voilá!

edit: obviously you need two dropbox line in your ordering-override.keyfile since there are two possible pid's for dropbox after startup


.sh file is not running changing directory command

Changing directory affects the current process. It does not affect the parent process; that would be a huge security hole. Please see http://mywiki.wooledge.org/BashFAQ/060


Apatar not working properly during registration

First: register your new account here:
http://www.apatarforge.org/datamaps/registers.html

Second: use this account to start Apatar.


If the phone is supported as-is (which it should be, given that other people tried the same thing a while ago, when you connect the phone it should be possible to configure it as a modem.

It's possible that Network Manager will detect the phone, and give you an option when you left-click on its icon in the system tray. Otherwise, you could try right-clicking, click "edit connections", choose the "mobile broadband" tab, and click Add. If your phone has been detected it will show up in the list, then you just need to enter the settings specific to your provider.


File/Folder Permissions lost after restart hence file not displayed in file browser

1st the simple to solve answer...

A directory that has read permission but not execute permissions will show "?" at the files in the directory. So please check the directory permissions that hold these files (change a harmless(!) directory with chmod 0600 or chmod 0400. Make the directory executable again and all is well again). If this is the case you will see the problem re-occur after a reboot. It will stop doing it after you change the directory.

And now for the bad one ...

This can happen when your disc is not unmounted correctly or is in bad shape where it resulted in filesystem corruption. If you are using ext you can force a check of the disc and see if it throws any errors. By the way also check /var/log/messages for i/o failure warnings. You can also check for badblocks.

Forcing  a disc check can be done with

touch /forcecheck

Badblocks...

badblocks {device}


First, fix any dependency problems by running:

sudo apt install -f

and update:

sudo apt update

Then, uninstall Vivaldi:

sudo apt remove vivaldi-browser

Download the Vivaldi .deb package from the Vivaldi website and save it on your computer.

cd to the directory where you downloaded the .deb package and then install Vivaldi by running:

sudo apt install ./<vivaldi-deb>

In the above command <vivaldi-deb> is the actual name of the Vivaldi .deb package that you downloaded.


Using top command i wrote one script and output also stored in doc file with date in single line

The following command should work:

((date | tr -d "\n")&&(top -b -n 1 | grep firefox)) >> filename.txt

2 fixes:

I enclosed in parentheses the full command so that even the date output is redirected to the file, the tr part just removing the carriage return.
I use top in batch mode -b to get the full list of processes.


First : Please use the Oct 2014 updated ns-allinone-2.35_gcc482.tar.gz https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing I.e. the old year 2011 ns-allinone-2.35.tar.gz is for g++-4.4 .

The Ubuntu g++-6 isn't working with ns2. Please do: $ sudo apt install g++-4.9 (We have also occasionally seen issues with the Ubuntu g++-5.)

And then use this build command: $ export CC=gcc-4.9 CXX=g++-4.9 && ./install


GTK critical assertion error while launching

That’s a bug in either the TrackVis Software tool or in GTK itself, most likely the former.  Report it as a bug.


Change default GTK3 CSS for showing tabs smaller

The GTK CSS config is available at ~/.config/gtk-3.0/gtk.css, which can be freely edited by any text editor.

In order to know what element to change, however, you will need to use a tool like GTK Inspector to locate the proper classes/IDs.


Can I simply rename and / or remove the folder without creating another
  problem?

If you installed Anaconda, and during the install process it created that directory [, then yes, you can definitely remove it after uninstalling Anaconda.

  I uninstalled Anaconda using anaconda clean...

I'm not familiar with Anaconda or that command, but to properly uninstall (including all config files) you should use your package manager and not the application itself. apt-get purge anaconda (assuming the package installed is named anaconda, else change it to match) should completely remove everything. Then you can go back and reinstall later, choosing a different directory name if necessary.


I my experience, with a number of different Nvidia graphic cards, using the up-to-date drivers from the Ubuntu-X (X-Swat) team is the best solution. It is one of the first things I do when installing Ubuntu on a system that has a Nvidia graphics card.

Install in terminal:

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

After installing the drivers be sure to reboot!


Thanks for @steeldriver for pointing me at this (and correcting me).

To do this:

Inside the .ssh folder in your home directory, create the file "config" if it doesn't exist.
Add this to the file:

Host srv
  Hostname 192.168.2.24

This will make it possible to type ssh fox@srv instead of the whole address. You can also add:

User fox

To just type ssh srv.

See the man page for ssh_config for full details.


Error in installing WINE in 64 bit Ubuntu

You need to add multiarch support. Its trying to download wine-i386

dpkg --add-architecture i386 && apt-get update
apt-get install wine


You need to install those drivers if they don't work out of the box:

1
Plug the Linksys Wireless-G PCI card into the computer and turn the computer on. Log in as normal.

2
Navigate to "System," Administration," Networking" and choose the wireless connection you wish to use. If no connection is available and your card is plugged in, continue to Step 3.

3
Click on "Properties" and make sure "Enable this connection" is turned on.

4
Set "Configuration" to "Static IP address" only if your Internet Service Provider has given you a static Internet Protocol (IP) address. Enter the IP address in the required field and click "OK."

5
Check to see if your card is supported. If your Linksys Wireless-G PCI card is not supported by the native Linux driver, check to see if your card is supported by "ndiswrapper".

6
Navigate to the "Applications" menu and select "Accessories" and "Terminal" to install ndiswrapper. Enter the command sudo apt-get install ndisgtk

7
Blacklist the native network driver by navigating to "Applications," "Accessories" and "Terminal." This will open a command-line interface.

Enter the command "echo -e "blacklist bcm43xx\nblacklist b43\nblacklist b43legacy\nblacklist ssb" | sudo tee -a /etc/modprobe.d/blacklist."

8
Install the Windows drivers by navigating to "System," "Administration," "Windows wireless drivers" and following the prompts.

9
Load the new driver module by entering these commands into the Terminal in sequence:

"sudo depmod -a"

"sudo modprobe ndiswrapper"

10
Repeat Steps 2 and 3. If your Linksys Wireless-G PCI wireless adapter does not work

Read more: How to Set Up a Linksys Wireless-G PCI Card in Ubuntu | eHow.com http://www.ehow.com/how_6821664_set-wireless_g-pci-card-ubuntu.html#ixzz28fKHFr61


How to open the command line in Chrubuntu?

Have you tried ctrl-alt-t? Opens a terminal on every *buntu I've used for as long as I've used it.


How can I fix a failing launcher icon after I moved my application?

What happened?

If you launch a GUI application from the terminal, the possible corresponding .desktop file is looked up as the application's representative in the launcher.
The priority to look up then is:

~/.local/share/applications
/usr/share/applications

If in neither of these directories a valid representative is found, the application appears in the launcher with a generic icon. Right-clicking the icon and choosing Lock to Launcher, as you did, will then create a .desktop file in [1].

This .desktop file includes the full command + path you ran the application with, in theExec= -line.

How to fix if you moved the application?

Simply either:

Delete the (.desktop) file from ~/.local/share/applications, run your application again from cli and lock it again to the launcher.

or

Open the representing .desktop file in ~/.local/share/applications with e.g. gedit

gedit ~/.local/share/applications/<.desktop_file>

and change the line, starting with Exec= to represent the application in the correct path.


Unable to enter new commands in terminal -- stuck with ">"

You have used the older command substitution syntax `` AKA backticks, with only the first one in the initial PS1. That is, you put one backtick in the primary prompt and have not closed it with another, hence the shell (bash) is continuing to take input on the secondary prompt PS2 (by default >).

In regular cases, just using another backtick to close the substitution would do, but as you have used too many ambiguous commands successively, press Ctrl + C to close the PS2 and get the primary prompt PS1 again.

while we're at it, for any kind of command substitution operation, start using the more robust $() instead of the buggy and deprecated ``.

Example:

$ echo `whoami
> `
foobar

Also, are you seriously trying to do chmod -R 660 /?

Please don't do this, and also don't run any command you don't understand or trust fully.


My mouse cursor doesn't move and click ubuntu 17.04

Type xinput in terminal and note down the id of your touchpad.

Then type xinput enable <id>.


After updating to 18.04, VSync locks frame rate to 40 FPS instead of 60

I solved the problem using the steps found in this answer: https://unix.stackexchange.com/a/227894

My xrandr output only listed one display mode: 1920x1080     60.02*+  40.03, which wasn't producing the desired frame rate.

First I ran gtf 1920 1080 60, which produced this output: "1920x1080_60.00"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync.

I used that to add a new display mode to xrandr: xrandr --newmode "1920x1080_60.00"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync/

I then added it as  a possible option for my laptop's screen: xrandr --addmode eDP-1 "1920x1080_60.00". At this point the screen flickered, but still hadn't switched.

Finally, I forced the display mode to be the output for my screen: xrandr --output eDP-1 --mode "1920x1080_60.00". After this, my refresh rate was back to 60 as it was before.


No. If you could it would be a security problem since the software installed is added to the base system and you need admin permissions for that.

The only way to install software in your home is by installing the source version (mainly supplied with a .tar.gz file).  But even if you could install software like that I would ask for permission. It is NOT your computer.

If you can use the USB you could create a live USB at home and use that. Also: I would ask permission for that method too.


Startup Applications refuses to launch a simple, executable script

Try to put pause before the nmcli command, the necessary networking services probably not running in  time of execution.

Add this: sleep 5 into your shell script for wait for 5 seconds


Linux: how swap is reported by free/top. How to determine correctly swap usage by process

The kernel can make use of the swap area, you are only checking process usage.

One example is the tmpfs file system which is using the virtual memory as back-end. Should your RAM is exhausted, it will use some swap.


How to install Ubuntu on a IBM R31 Thinkpad

You can try netboot.It will allows you to install ubuntu on your PC through network.


This is a fairly old bug that is more annoying than harmful, and there is a bug report for this at https://bugs.launchpad.net/ubuntu/+source/indicator-applet/+bug/1575655. The workaround is to restart Network Manager by running:

sudo systemctl restart NetworkManager

If you want to bring this bug to the developers' attention, please visit the bug report that I linked and click on "Yes, it affects me".


How to make my newly created secondary partition accessible?

As i can see there is no /home partition you have am i right? I would create one in ex4  /home there all info and downloads will be stored. / partition is system partition with boot information.http://www.linuxbsdos.com/2011/05/04/manual-disk-partitioning-guide-for-ubuntu-11-04/ or check out one of many video tutorials on youtube https://www.youtube.com/watch?v=qBCHsgry2RQ


Nexus 7 stuck on Google screen Ubuntu Touch

I fixed my permissions by killing adb server using the command

sudo adb kill-server

and restarting it

sudo adb start-server

Then My tablet shows up with sudo adb devices.

I found this on https://stackoverflow.com/questions/14460656/android-debug-bridge-adb-device-no-permissions


How to avoid Thunderbird exceeding email account bandwidth limit?

Sounds like you might be hitting this bug: #1068921:
Mailbox grows endlessly, heavy traffic. This has been fixed in the 16.0.2 update to thunderbird, which is in the archive for quantal now.

You should be able to upgrade through the Ubuntu Software Updater or from the command line:

sudo apt-get update
sudo apt-get upgrade

And check which version you have installed at the moment:

dpkg -l thunderbird


Write bootable BIOS update .ISO to USB stick

I found what may be a solution to the issue at http://positon.org/lenovo-thinkpad-bios-update-with-linux-and-usb.

First convert the iso image to an img file:

sudo apt-get install genisoimage
geteltorito -o bios.img gruj09us.iso

Then copy to the USB key:

sudo fdisk -l /dev/sdb  # double check that the device is right
sudo dd if=bios.img of=/dev/sdb #Will Erase the drive!!

That said I think you should just try first whether it boots okay if you just write the .iso with a generic tool as you normally would. (Provided it needs some input and does not automatically start mucking about in your BIOS as you boot up.)
 Last two times I installed a Linux I didn't use the recommended tool. (I made a bootable USB for 15.04 with SUSE Studio Image Writer since Unetbootin messed it straight up multiple times.It worked fine.)


How do I get DVD to play in VLC from unity dash launcher?

Open Nautilus. Go to Edit -> Preferences -> Media . Select VLC player.


Wireless dropouts or rebooting requires modprobe

Please open a terminal and do:

sudo -i
echo rtl8812ae  >>  /etc/modules
exit

Now does it work as expected?

This instructs the system to load the module rtl8812ae automatically on boot. If there are still dropouts, check the logs:

cat /var/log/syslog | grep -e wlan -e rtl | tail -n20

Paste the result here and give us the link in your reply: http://paste.ubuntu.com/


Use the nvidia-settings utility (it comes in the nvidia-settings package or its installed with the proprietary drivers from the Nvidia website).

To run it type on a terminal gksudo nvidia-settings.


How to save many pages configuration of a terminal?

Did you try using Terminator?

Terminator, multiple terminals in one window.

The goal of this project is to produce a useful tool for arranging terminals.
It is inspired by programs such as gnome-multi-term, quadkonsole, etc. in that
the main focus is arranging terminals in grids (tabs is the most common default
method, which Terminator also supports).


Check out this website Unstall NDISwrapper. The main thing to make sure is the ndiswrapper module is not loading at boot and the /etc/ndiswrapper directory if clean or removed.


What Does Totem's Thumbnailer Do with MP3s?

According to this bug report seems that your cache is damaged. Try deleting your ~/.thumbnail folder. That should fix it in this case.


Ubuntu 18.04.3 LTS install issues. Can't connect to hyperV install. Also can't install from USB

The problem turns out to be the gpu.  I can now boot from a USB and do an installation thanks to the suggestions listed below.  The installation doesn't work, but at least I can do an installation.

Errors from nouveau when installing or booting from live usb


USB mouse has stopped working on Ubuntu 20.04.1

I've seen this happen from time to time with mice that have "loose" USB connections. You may be able to fix it with this:
xinput reattach 20 2

20 being the ID of the mouse, and 2 being the core pointer.
Hope this helps.


I'd suggest comparing which partition is mounted under /boot/grub on the running system and when you successfully run update-grub within the chroot. It sounds as if this differs (and I've faced this problem myself in the past).


I want to sync my music folder, Ubuntu One says it will sync once I subscribe. I just bought 20 gigs and it is still not syncying?

I think the wording might be confusing you. You can select a folder for synchronization on one machine, but it's not automatically synchronized across all machines unless you “subscribe” each additional machine to that sync'ed folder.

Not sure if I'm making it clearer or not, here.


I actually figured out how to connect a moment after posting.

Basically you just need to figure out the device name being reported via this command

ifconfig

Mine was enx002428fe52bc so after that I just need to put the device into an "up" state.

sudo ip link set enx002428fe52bc up

You might have several devices listed so trying multiples didn't have any negative effects for me.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted

The warning is not a problem.

It's only warning you that the fdisk tool doesn't work on disks using GPT for partitions.  It only works on disks using the older MBR (DOS style) partitions .

However, as the warning says, parted (an alternative to fdisk) does work for disks using GPT partition types.

The warning is not related to the 1MB free space.  That free space (which will in reality be slightly less than 1MB) is only there to ensure that the partitions line up on 1MB boundaries on the drive, which is generally a good idea for performance on newer drives like SSDs.


Is there a way to automate an Ubuntu build?

There are many tools such as Salt, Ansibel, Chef, and Puppet that can be used for this purpose. We are currently using salt to automate all of our server builds. We evaluated other tools and decided to use salt for various reasons. I would suggest that you give salt, ansible, puppet, or chef a try to see which one you like best.

Overall they all pretty much do the same thing :)

To answer your question, these tools are specifically designed for your use case and switching to salt has saved us hundreds of hours of manual work.


How to create ubuntu installation preseed file

I've found this:

http://debian-handbook.info/browse/stable/sect.automated-installation.html

Which gives me:

sudo apt-get install debconf-utils
sudo debconf-get-selections --installer

the later will dump the answered question in preseed's format, still a lot of garbage in the output. But the answer seems here.

execute it without root level to see the path of answer file, for me:

/var/log/installer/cdebconf/questions.dat

Some link(s) I've found, not enough reputation to post more ;)

How to automate Debian installs with Preseed

At the bottom of this page you will find most of the main links to become a preseed master.