In theory - yes - is the short answer.  You meet the minimum recommend specifications.

The quickest way to find out is to download the ISO and either burn it onto a CD or write it to a USB stick.

Follow the 1 - 2 - 3 guide on the Ubuntu website.

You can Ubuntu from what is called a live CD - if everything looks ok - go ahead and install

as an installation from windows (this is called a wubi install) - or
as a side-by-side installation (called a dual boot) - or even
just say goodbye to windows and wipe your hard-drive clean during installation with a Ubuntu only install.

There is more than Ubuntu for you to explore as well (download links below)....

Lubuntu
Xubuntu
Kubuntu
Ubuntu


What does "new" mean to "dpkg --force-confnew"?

I believe I've figured out what was going on: Because the dependencies for the custom package are not installed when dpkg -i is run, the package is registered with the package system and neither it nor its config files are installed at that time.  When apt-get install -f is run, the dependencies are installed, and then the package itself is installed, and it's at this point that the config files are installed and the --force-conf* policy passed to apt-get takes effect.  So it wasn't a matter of --force-confnew so much as a matter of order of events when installing a dependency-lacking package with dpkg.


Since 15.04 my WiFi router is sometimes not seen after boot

It could help to set it as a "system connection" in the network settings.

If this doesn't work, you can force your network to rescan by doing:

sudo iwlist scanning


OK so the problem seems to be conky having an 'own_window_type = panel' possibly combined with my other settings.  Settings changed to:

own_window_type conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

All fixed


I can only install Firefox Developer Edition

I don't know how I missed it, but this article had what I needed,

If you don't want to click, here is the short answer to properly uninstall:

sudo apt-get install ppa-purge

then

ppa-purge ppa:ubuntu-mozilla-daily/firefox-aurora


As there is a proprietary implementation of fransferring of audio via a RDP connection on Windows (Audio Output Virtual Channel Extension) but this feature is not available from X11RDP server (or VNC as a sidenote), where only basic remote protocols such as screen, keyboard, or mouse are present.

To be able to get the sound output of the server sent to a client we therefore need an additional protocol. Provided we had installed pulseaudio on our Wyse OS this can be done by using pulseaudio's inbuilt network features. These are all nicely documented and listed here:

Pulse Audio Network Setup

The transfer methods may be set up by command line, or with a GUI using paprefs .

See also answers to these questions:

How do I forward sound from one computer to another over the Lan?
How to stream music over the network to multiple computers?


zpool missing after kernel upgrade attempt

In this case, zdb showed the pool, but zpool status did not. I needed to do:

zpool import -f zdata

And all was well again.


First, be certain you have a driver associated with the hardware; if so, it should create a wireless interface wlan0 or eth1. Confirm:

iwconfig

Temporarily unload the module acer-wmi:

sudo modprobe -r acer-wmi
sudo rfkill unblock all
rfkill list all

Is your wireless working now? If so, and if there are no other unexpected side-effects, blacklist acer-wmi:

sudo -i
echo "blacklist acer-wmi"  >>  /etc/modprobe.d/blacklist.conf
exit


Window Manager and Login Screen Removed After Trying and Uninstalling Gnome Shell

This should take care of your issue

sudo apt-get install ubuntu-desktop

additionally if needed

sudo apt-get install gnome-shell


What is btrfs? What advanced features does it have?

btrfs or Butter FS is a filesystem and has some interesting features:

You can have snapshots. It is like a freeze of the filesystem at some point of time.
btrfs is a extent-based filesystem. This means there are no lists of pointers. btrfs tracks contiguous blocks, so called extents, together.
btrfs makes checksums of data and metadata. Therefore it can detect errors in the filesystem in "realtime".
You can switch from ext3/4 to btrfs.


You need to add additional repository, as php7 is not available for your distro version. Please make sure to clean all php packages and dependencies you have installed. Then proceed with:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0


can i hardware raid 0 windows 10 alongside ubuntu?

Don't use RAID 0: it's a disaster waiting to happen: if only ONE of your 2 drives fails, the entire RAID array fails and you lose everything!
Yes, Ubuntu and Windows 10 can be installed on the same drive as this is how I'm running right now.


How do I install the driver for my Linksys AE1200 Wireless-N USB Adapter?

I just bought the Linksys AE1200 USB Wireless adapter and it works fine 19-Oct-2012.

My lsusb results:

  Bus 001 Device 005: ID 13b1:0039 Linksys AE1200 802.11bgn Wireless
  Adapter [Broadcom BCM43235]

For some reason, the Win XP driver on the installation CD would not work.  None of the other broadcom chipset drivers that I attempted worked for me either.

The solution

So, a search of here and Ubuntuforums yielded this link: http://www.wikidevi.com/wiki/Linksys_AE1200 and provided this repaired version of the xp driver: http://wikidevi.com/files/Drivers/Broadcom/bcmwl_4323x.zip.

Download the bcmwl_4323x.zip and extract (for my example to follow, my downloads directory)
I opened a Terminal window:

cd /Downloads/bcmwl_4323x/xp/
:~/Downloads/bcmwl_4323x/xp$ sudo ndiswrapper -i bcmwlhigh5.inf
sudo modprobe ndiswrapper

ndiswrapper -l yielded:

  bcmwlhigh5 : driver installed
  device (13B1:0039) present

Exit Terminal window, unplug LAN cable, System Restart.
(Optional) If the USB Wireless card does not work after reboot, you may need to add ndiswrapper to your /etc/modules so that it loads ndiswrapper at startup.

You should be able to test if this is needed if upon boot, the LED on your wireless card is not lit.  You run in terminal sudo modprobe -r ndiswrapper | sudo modprobe ndiswrapper and then the LED turns on.


Everytime I reboot my system all of my taskbar favourites are reset to defult

I kind of found a work around. It was my default desktop environment causing issues. To get around it I installed a few different environments to give a try, and all of them are saving all my defaults now, and at the moment I've decided to keep using Plasma.
I believe the desktop environment I was using was suffering some kind of glitch when dealing with my taskbar, even resetting the taskbar tweak with every reboot. Hopefully this is just a one-off with me, but if anyone stumbles across this with the same issue, hopefully this will help.


Unable to Download Updates / Cannot resolve hostname?

Researching found this previous question which seems similar to yours:

Unable to download updates from extensions.gnome.org

The answer in that case was to:

  sudo add-apt-repository ppa:gnome-shell-extensions/ppa
  sudo apt-get update
  sudo apt-get install gnome-shell-extensions

For starters, though, I'd go with a simple:

  sudo apt-get update && sudo apt-get upgrade

and see if that resolves.


OpenJDK - Installing JDK Debug Symbols manually

I recently had a similar issue while I was running tests with CPU Profiler. I had openjdk-8-dbg installed correctly. Thanks to IntelliJIDEA IDE the solution below was recommended after my first attempt.
You need to change some settings in your kernel.

Utilize the commands below to get you started.

sudo sh -c 'echo 1 > /proc/sys/kernel/perf_event_paranoid'

sudo sh -c 'echo 0 > /proc/sys/kernel/kptr_restrict'

  The above commands will permanently be effected in your system kernel and can be changed later if you need to.


Booting Hard Drive from Universal USB Installer Boot Drive
Recent versions of UUI do not seem to have an option to boot the hard drive.
Following is how I modified a Universal-USB-Installer-2.0.0.0 Lubuntu 16.04 install to use Syslinux to boot to the HDD in BIOS mode.

Open /uui/syslinux.cfg in Notepad.

syslinux.cfg

Directly after the first menu label add:
# Boot from HDD
LABEL Boot from Hard Drive
MENU LABEL Boot from  Hard Disk
KERNEL chain.c32
APPEND hd1
MENU DEFAULT

Save and close Notepad.

Copy chain.c32 from the isolinux folder to the uui folder.

The option to boot from Hard Disk should now be on the start menu.

Some versions of UUI locate syslinux in the root folder, in that case copy chain.c32 to the root folder.


How do I change the Super-Alt-RightClick combination for the panel edit menu in Gnome Classic?

It is not hard to change it to just Alt-RightClick.  The need to press the Super button in addition is actually a bug.  Open "CompizConfig Settings Manager" and then select the "Move Window" plugin from the "Window Management" section.  Change the "Initiate Window Move" option to use a modifier key other than "Alt".


Install Epson TM-T88V drivers on Ubuntu 18.04 LTS

Below are scripts to install Epson TM-T88V and a Munbyn Printer that we also use in our business
Download or copy Epson Linux Driver to download folder
Go to the download folder, and find tm-ba-thermal-rastertotmt.ppd.gz - extract the file to the same folder
This file is called tm-ba-thermal-rastertotmt.ppd
cd Downloads
tar -zxvf tmx-cups-2.0.3.0.tar.gz
cd tmx-cups
sudo ./install.sh
Ensure the printer is attached via USB cable and switched on
Go to Settings/Devices/Printers
Use ADDITIONAL PRINTER SETTINGS - DO NOT USE GREEN ADD PRINTER BUTTON!!
Then use ADD Green Arrow
The printer should appear as Epson-TM-BA-Thermal
Click on this
Then use the dialogue to provide PPD file
Navigate to the download folder, then to the directory where tm-ba-thermal-rastertotmt.ppd is located and use this file as the PPD
Change settings to Thermal paper, open cash drawer before printing
Below for Munbyn thermal printer
Download or Copy POS-80 Driver from MunByn
Open Terminal in POS-80 Folder
Log in as Super User - su  then administrator password
If Super User is not enabled follow this script
To enable root account in Ubuntu, run the following command:
sudo passwd root
Copy
You will be prompted to enter and confirm the new root password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
From Super user login on terminal type
chmod 777  POS-80
CD POS-80
Enter
Then type
./POS-80
Enter
This installs the POS-80 Driver into the CUPS Printer service
http://localhost:631/admin
ADD PRINTER
CUPS will ask for user name and password which is the master administrator password
Ensure the Printer is connected via USB cable and and switched on
Printer will appear as unknow printer
Click continue
Complete Printer name as required
Driver will be in the LIST as POS
Once added set thermal paper, open cash draw and partial cut to complete set up


Cannot use HP Officejet 4500 scanner except as root

This problem went away after updating to a later version of Ubuntu:

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"


Trying to install Windows 10 on SSD and Ubuntu 14.04 on HDD, boot from SSD

Try boot-repair. It's a utility tool that will allow you to configure grub and (I'm not sure but I think it also allows you to) select partitions on different hard disks with OS to be added to the grub menu.
Google grub repair. I'm pretty sure it'll be helpful.

Choose the standard configuration and it will detect os's .  This is the easiest way, but you will get extra entries on your grub menu.


Jupiter in Ubuntu 13.10 (Laptop Overheating)

What you want to do is add the repository from jolicloud. Here are the steps to install it on Ubuntu 13.10:

In the terminal enter:

sudo add-apt-repository ppa:jolicloud-team/ppa

Go to Software&Updates in Ubuntu
Then select Other Software tab
Then you want to click on http://ppa.launchpad.net/jolicloud-team/ppa/ubuntu
Then click Edit
Then in the Distribution box change saucy to raring. Then click okay and close Software&Updates.
Now in the terminal enter:

sudo apt-get update

Lastly in terminal enter:

sudo apt-get install jupiter

Now you have installed Jupiter!


How do i unzip this file when this shows up

try

  unzip VoidLauncher\ Linux.zip

\ is for escape sequence for space in file name.


Ubuntu is not an embedded operating system in it's default incarnation regardless of supported chipsets.

As @Rinzwind commented,a mobile build exists specifically for embedded devices.

The performance you are referring to is in relation to Linux as an operating system (more correctly called GNU/Linux as strictly speaking Linux is only the kernel).  The performance is gained by keeping the system simple.  Obviously if you start throwing windows managers and application frameworks on top then performance is affected as memory requirements increase.

The modular nature of the GNU/Linux operating system allows old hardware to be used where the latest versions of Windows(TM) have excessive requirements just to perform simple tasks.  As such, GNU/Linux can provide a more resource efficient system.

Do not confuse embedded systems and real-time operating systems ... the two are often used in conjunction but there is a distinct difference.


Cant verify checksum for downloaded LTS 12.04 ISO and can't verify burn either

If you need to verify an MD5 checksum on a Mac, you need to do this:

Open Terminal

Type openssl md5 [filename]

Change ‘md5′ to ‘sha1′ if you want to verify the SHA-1 hash as well.


Using badblocks with option -w performs a write test on each block of your harddisk. Once it is finished all block will be overwritten by the test data. These data can not be recovered (even forensic tools may fail there).

Only if you had interrupted the write process before it was finished you may have a small chance to recover remnants of your data that have not been overwritten yet.

Option -w was designed to test new harddisks where data loss is not an issue for write failures.


Some items suggested for updating by Discover always can't be updated

If you have installed Quasi Deepin via System Settings > Application Style > Window Decorations > Get New Decorations, you could open the same GUI again and click the uninstall button against the name of the decoration you installed.

A similar route is used to remove Simply Circles: open System Settings > Icons instead.

Alternatively, you could open Discover, select the Installed category and then use the search bar to look for quasi or whatever else. The item will be listed with a Remove option.

I don't use Discover much and so I don't know how it would update software from the KDE Store.


I have the black screen after installing ati control center

Try CTRL+ALT+F2, you'll get a terminal login screen and you can login with your user and password. If it works, then here you can uninstall the drivers.


1. As man php tells us...

   --no-header
   -q             Quiet-mode. Suppress HTTP header output (CGI only).

   --file file
   -f file        Parse and execute file

-q doesn't do anything in php-cli mode. As others have pointed out, you need -f.

2. +x is not required.

Revert it with:

chmod -x /var/www/myscript.php

3. whereis will give you all locations. If you just want the binary, use which php.

$ which php
/usr/bin/php


Why is my root filesystem always scanned at boot?

Maybe you don't let it finish. It is a scheduled process every 30 boots. The linux file-system is checked. You can start this process by:
shutdown -rF now
This will restart and start the check.

Edit the check by running:
gksu gedit /etc/fstab
Last digit of every mounting line controls the fsck. Set value to 0 if want to disable fsck. for example:
/dev/hda1  /media/window_c   vfat  defaults 0 0


MyUnity provides this and is in the standard repos. Install it from the Software Center, or use the command:

sudo apt-get install myunity

The options are on the launcher tab, quicklist.


ubuntu 13.04 recognizes usb mobile broadband modem as ethernet connection

Yes! This is one of the problems I have been facing and here is a possible solution. Looking at your lsusb output, I find the following:

Bus 002 Device 004: ID 19d2:1405 ZTE WCDMA Technologies MSM

This indicates that the Vendor ID is 0x19d2 and the Product ID is 0x1405. I would advise you the following steps:

(1) Create a bash script as follows. This bash script is to be run, everytime you would like to use your mobile modem CDMA connection. Let us suppose that the name of the bash script is `myModem.sh. Do this by typing:

sudo nano ~/myModem.sh

Type in the following lines here:

#!/bin/bash
sudo /sbin/modprobe usbserial vendor=0x19d2 product=0x1405

Save your script and exit from nano. Type:

sudo chmod +x ~/myModem.sh

(2) Run the following commands:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install wvdial
sudo apt-get install usb-modeswitch usb-modeswitch-data

(4) Type the following:

sudo nano /etc/udev/rules.d/90-zte.rules

and type in the following line (it is a single line and no carriage returns please):

SUBSYSTEM=="block",SUBSYSTEM=="scsi",ATTRS{model}=="USB Storage 1405",ACTION=="add",RUN+="/sbin/modprobe usbserial vendor=0x19d2 product=0x1405"

Save the file and exit from nano.

(5) Now run your bash script from your home directory:

sudo ~/myModem.sh

(6) Now we have to configure wvdial.

sudo wvdialconf /etc/wvdial.conf

This will detect the modem and create a configuration file.

(7) Edit the configuration file to adjust the setting according to your country/service provider. Especially change the dialing phone number, username and password. Do this by typing

sudo nano /etc/wvdial.conf

Remove the semicolons before the phone, username and password. The semicolons tell wvdial that these lines are commented. Save your file and exit from nano.

(8) Now create your connection. Make sure you check the Connect Automatically option.

I hope this will set your modem working.


I have a similar situation. Rather than downgrading kernel I'm waiting for working patch 5.3+.  It would be cool to have a working patch that can be applied to extracted NVIDIA-Linux-x86_64-304.137.run archive. I found the blog post about a guy who implemented such a patch for Debian (can it be ported on ubuntu? and how? idk). 304 patch for 5+ kernels


If you run one of this Ubuntu versions

Ubuntu 15.10
Ubuntu 15.04
Ubuntu 14.10
Ubuntu 14.04
Ubuntu 12.04

than follow the steps below

Remove the package pipelight-multi

sudo apt-get purge pipelight-multi

Add the PPA ppa:pipelight/stable

sudo apt-add-repository ppa:pipelight/stable

Update the package information

sudo apt-get update

Install pipelight

sudo apt-get install pipelight-multi


Just installed Ubuntu and during boot am given a choice but unable to choose

If a USB keyboard & plugged into a PCI expansion card then try in mobo's I/O panel directly.


18.04.1 Software Updater erratic in choosing nearest mirror

From the manual:

  Use mirror protocol

  Using mirror protocol as part of your
  /etc/apt/sources.list  entry will instruct apt command to fetch mirrors
  located within your country only. In order to use mirror protocol
  update all lines within /etc/apt/sources.list file from the usual eg.:

deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted

  to:

 deb mirror://mirrors.ubuntu.com/mirrors.txt xenial main restricted

  Repeat the above for all relevant lines where appropriate.

  Alternatively, use sed command to automatically edit your
  /etc/apt/sources.list file. Update the below sed command where
  appropriate to fit your environment:

$ sudo sed -i -e 's/http:\/\/us.archive/mirror:\/\/mirrors/' -e 's/\/ubuntu\//\/mirrors.txt/' /etc/apt/sources.list


How can I make a 19.04 persistent live USB from Windows?

Ubuntu 19.10 and later
The best application for making a bootable Ubuntu live USB from Windows is Rufus. The official ubuntu.com website recommends using Rufus instead of UNetbootin. Step-by-step instructions for creating a bootable Ubuntu live USB from Windows are at How to create a bootable USB stick on Windows.
Rufus persistent storage partition is supported in 19.10 and later. Please upgrade Rufus to version 3.9 or later.

Ubuntu 19.04 and earlier
mkusb is the most reliable tool for making an Ubuntu live USB with persistent file storage in 19.04 and earlier.


You must acess to your system's BIOS in order to change the boot sequence and boot from your install CD. To acess to your computer's BIOS setup, right after powering on the computer, quickly press F1 or F10 when the HP logo shows up, go to the Advanced Tab, then choose the Boot Order option with the arrow keys, finally, choose your CD/USB drive to boot first.
(More infos here)
When Ubuntu will boot, carefully follow the steps when installing and enjoy!


Ubuntu 14.04 upgrade succeeded partially - I would like to use a different mirror; how can I do that?

To change your mirror there are 2 methods:

Using System Settings > Software and Updates. On the main tab there is a drop down labeled "Download from:" and choose a mirror from that drop down.
Edit the file /etc/apt/sources.list with root access e.g. from terminal:

sudo nano /etc/apt/sources.list

Once in there replace "http://mirror.informatik.uni-mannheim.de" with "http://archive.ubuntu.com/ubuntu" (to get the main Ubuntu repo), or you could pick one from the long list: https://launchpad.net/ubuntu/+archivemirrors

Then once done repeat the steps you listed in your question:

apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install update-manager-core
do-release-upgrade


Headphones not working in UBUNTU 12.10. I have DELL 5520 laptop. Speakers are working fine.

Sounds like it could be a mixer issue (if not hardware/driver)

Check out this post:
Is there a volume mixer?


In chrome go to Settings ->  Appearance -> deselect "Use system style title bar and border"


I came across the same problem and am starting the whole process again.

This is what I'm doing differently:
Make sure you don't run the installer 2x by accident (I don't remember running it twice, but apparently I did).
Make sure you give it enough time to finish unpacking (10-20min).

I hope this works :)


Which partitions and in what order should I shred

You are taking the wrong approach. If you want to clean up your data from the disk, shred the whole disk, not individual partitions.

The slack space could contain sensitive data, moreover its way easier to do it this way than remembering to shred all the partitions.

Also remember to do it from a live USB and ensure no other drives are connected so that you do not wipe them accidentally.


Check which graphics driver is used to control the brightness

ls /sys/class/backlight/

if it responds with a list that includes intel_backlight proceed - if not, I can't help you

If you have the intel_backlight then

sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf
gksudo gedit /usr/share/X11/xorg.conf.d/20-intel.conf

Add the lines

Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
EndSection

Logout, and log back in - your backlight should work now.  I got this answer from itsfoss.com


Disable "Google Mail all mail" folders in Evolution

You can disable certain IMAP folders in GMail, including the All Mail folder, if you enable the Google Labs "Advanced IMAP Controls".  From webmail:

Go to Settings > Labs and set "Advanced IMAP Controls" to "Enable"
Once advanced IMAP controls are enabled, you can go to Settings > Labels and uncheck the "Show in IMAP" box next to the folders you want to get rid of (All Mail, Spam, etc.).
Go back to Evolution and refresh the account, and the folders you unchecked will be gone.

Be warned that you lose functionality if you disable some of those folders, though. If you disable the spam folder, for example, then you can't train GMail's spam filter from Evolution, and disabling the "Trash" folder keeps you from being able to ever delete anything.


What package brings an application to the system

apt-cache showpkg vim

This command with show both the vim packages dependencies and its reverse dependencies.

A package's dependencies are required for it to be installed; if you install a package, and of its dependencies that are not yet installed will be installed first (recursively:  if C depends on B, and B depends on A, the system will ensure that A is first installed, then B, and finally C).

A package's reverse dependencies are what you're asking of:  These are the packages for which the stated package is a dependency.  So, to use your example:

ghoti@home $ apt-cache showpkg vim
Package: vim
Versions:
2:7.4.1689-3ubuntu1 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_xenial_main_binary-i386_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_xenial_main_binary-i386_Packages
                  MD5: 59e8b8f7757db8b53566d5d119872de8
 Description Language: en
                 File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_xenial_main_i18n_Translation-en
                  MD5: 59e8b8f7757db8b53566d5d119872de8

Reverse Depends:
  vimhelp-de,vim 2:7.5
  vimhelp-de,vim 2:7.4
  byobu,vim
  vim-vimoutliner,vim
  vim-tlib,vim
  vim-tabular,vim
  [and a whole bunch of others omitted for brevity]
Dependencies:
2:7.4.1689-3ubuntu1 - vim-common (5 2:7.4.1689-3ubuntu1) vim-runtime (5 2:7.4.1689-3ubuntu1) libacl1 (2 2.2.51-8) libc6 (2 2.15) libgpm2 (2 1.20.4) libselinux1 (2 1.32) libtinfo5 (2 6) ctags (0 (null)) vim-doc (0 (null)) vim-scripts (0 (null))
Provides:
[omitted for brevity]


If you want to uninstall the package, you can find the package name by running on of the following commands to list all recently installed packages:

cat /var/log/dpkg.log | grep "\ install\ "

or

cat /var/log/dpkg.log.1 | grep "\ install\ "

Once you know the name of the package that was installed, you can use the command sudo apt-get purge followed by the package name to purge whatever package was installed.

Additionally, if this is a drivers issue, you should be able to boot into an old kernel by selecting additional options from the grub menu.

From there, choose an old kernel and wait 'till the next kernel update to use a newer kernel or reinstall the current kernel after you have uninstalled the offending package of course.

Here is how to manually install the driver:

sudo apt-get install linux-headers-generic build-essential git
mkdir build
cd build
git clone https://github.com/DIGImend/digimend-kernel-drivers.git
cd digimend-kernel-drivers
make
sudo make install
cd

Run the following commands to restart the drivers:

sudo modprobe -r hid-kye
sudo modprobe -r hid-uclogic
sudo modprobe -r hid-huion

and reconnect the tablet or simply reboot the machine.

source

You will have to reinstall whenever a new kernel is installed.

To uninstall, run the following commands:

cd digimend-kernel-drivers
sudo make uninstall
cd

Please post any errors.

Run these commands to reinstall the newer kernel. Also, if you see any DKMS stuff during the installation, please post.

sudo apt-get install --reinstall linux-image-4.4.0-28-generic


VMPlayer installer won't start in Ubuntu 18.04

Here is how I installed it.

Before the Install of the Vmware Player 14 package, let’s install/update newer version of packages and their dependencies by using the command below:

sudo apt-get update

Now we need to Install some dependencies which is required for Vmware Player 14 Installation.

Note: By default these packages and dependencies should already be installed in Ubuntu 18.04, If not then you can install them by following these steps:

First Install build-essential and gcc as shown:

sudo apt install build-essential gcc

Then install libcanberra-gtk-module as shown:

sudo apt install libcanberra-gtk-module

Now run the following commands in the terminal to install VMware Workstation Player 14 on Ubuntu 18.04, and other Ubuntu Derivatives:

mkdir ~/vmware
cd ~/vmware
wget -c https://download3.vmware.com/software/player/file/VMware-Player-14.1.3-9474260.x86_64.bundle

OR

Download the bundle here:

VMWare Player 14

Give the package permissions:

sudo chmod u+x VMware-Player-14.1.3-9474260.x86_64.bundle

Finally, install:

sudo ./VMware-Player-14.1.3-9474260.x86_64.bundle

As soon as the installer starts, please follow on screen instructions to complete the installation.

Select to accept the terms in the license agreement and then click on Next.

Update on startup; select yes (if you want).

Feedback; select yes or no.

License Key is optional (can be left blank).

Click Install on next screen.

Close when finished.

FOR WINDOWS 10 GUEST

If 3D acceleration cannot be enabled, or you get a warning saying:

Hardware graphics acceleration is not available - As a result, this virtual machine may experience very low graphics performance. Follow the instructions provided by your graphics card vendor or Linux distribution in order to update your computer's OpenGL drivers.

and

No 3D support is available from the host - The 3D features of the virtual machine will be disabled.

Edit hidden file [YOUR HOME FOLDER]/.vmware/preferences and look for a line that starts with:

mks.gl.allowBlacklistedDrivers

If it is not present then you can add it into the file,
BUT
change it to:

mks.gl.allowBlacklistedDrivers = "TRUE"

ALSO THESE LINES ARE NEEDED AND NEED TO BE ADDED:

mks.enableDX11Renderer = "FALSE"
mks.enableGLRenderer = "TRUE"

This switches the 3D acceleration from the default DX11 to OpenGL.

Now go to [YOUR HOME FOLDER]/vmware/ [name of guest]/ [the] .vmx (file)
open it with gedit (or whatever editor) and add the three lines:

mks.gl.allowBlacklistedDrivers = "TRUE"
mks.enableDX11Renderer = "FALSE"
mks.enableGLRenderer = "TRUE"

Hope this helps,


boot problem with upgrading from ubuntu 10.04 to 10.10

I advise you to upgrade to 12.04.1 from live cd and backup all your data
you can recover your broken installation by going into grub rescue and fixing packages sudo apt-get install -f
ok try to unmount the disk umount /dev/sda* then do fsck again
boot from the livecd and try to fsck from there
install kile  sudo apt-get install kile
install Latex sudo apt-get install texlive then sudo apt-get install texlive-full then sudo apt-get install gedit-latex-plugin


Can't create file: Read-only file system

You can try to remount the file system with read and write permissions (source):

sudo mount -o remount,rw /partition/identifier /mount/point

Or in your case you just can tray to redirect the output to a file located in a directory where you must be able to write:

adb shell "stty raw; cat </dev/block/mmcblk0p56" > /tmp/data.img


As a workaround USE THE PREVIOUS VERSION:
To install the previous version (which works and tested bionic ubuntu 18.04 LTS/19.10 eoan/20.04 focal) and remove the version you tried to install:
cd ~
wget https://github.com/shiftkey/desktop/releases/download/release-2.0.4-linux1/GitHubDesktop-linux-2.0.4-linux1.snap
snap remove github-desktop
snap install GitHubDesktop-linux-2.0.4-linux1.snap --classic --dangerous


How to permanently start kodi with ALSA?

First we will add your command to a bash script

Open gedit and paste this into a new document

#!/bin/bash

AE_SINK=ALSA kodi

Now save this to your /home as kodi.sh.

Now right click this file and go to properties then permissions and check allow executing file as a program

Now make another new text file and paste this in to it YOU MUST CHANGE USER IN THE EXECLINE TO YOUR USER NAME or it wont work

[Desktop Entry]
Type=Application
Exec'/home/*USER*/kodi.sh'
Terminal=False
Name=Custom Kodi launcher
Comment=Any comment you want here
Icon=/path/to/icon/you/want

Save it as whatever and where ever you like but end it with .desktop.

Now right click this file and go to properties then permissions and check allow executing file as a program.

You can add a comment in the comment section of the script or an custom icon via the icon parameter.

When you click the .desktop file, the command in kodi.sh will be executed.

You can add the .desktop file to the launcher by simply dragging and draping it on there.


What I would suggest is to use boot-repair through a USB (hopefully you have another computer to create the USB). The steps are here below:

1) Download the Boot Repair ISO from Sourceforge. Link: https://sourceforge.net/p/boot-repair-cd/home/Home/

2) Open disks, then click the selection on the top-right corner, then click 'Recover Disk Image', then select the Boot Repair ISO (for Ubuntu). If you're on Windows, try using Pendrive Linux to burn the ISO.

3) Reboot into BIOS, then select boot into your USB. Don't change any settings on the Boot Repair.

4) Run the automatic repair tool. Most of the time it will either fix the problem or tell you specifically what it is and what you need to do next.

Good luck!


The command gpg-zip seems to create a Tar file (despite its name):

$ gpg-zip --encrypt --output myarchive.tar.gpg --gpg-args --recipient=XXX myfile
$ gpg -d myarchive.tar.gpg > myarchive.tar
$ file myarchive.tar
test-decrypted: POSIX tar archive (GNU)

So you can use gpg-zip instead of the gpgtar command. gpgtar is not part of the gnupg-utils package in Ubuntu 18.04:

$ lsb_release -r
Release:    18.04
$ dpkg -L gnupg-utils
/.
/usr
/usr/bin
/usr/bin/gpg-zip
/usr/bin/gpgparsemail
/usr/bin/gpgsplit
/usr/bin/kbxutil
/usr/bin/lspgpot
/usr/bin/migrate-pubring-from-classic-gpg
/usr/bin/symcryptrun
/usr/bin/watchgnupg
/usr/sbin
/usr/sbin/addgnupghome
/usr/sbin/applygnupgdefaults
/usr/share
/usr/share/doc
/usr/share/doc/gnupg-utils
/usr/share/doc/gnupg-utils/NEWS.Debian.gz
/usr/share/doc/gnupg-utils/changelog.Debian.gz
/usr/share/doc/gnupg-utils/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/gpg-zip.1.gz
/usr/share/man/man1/gpgparsemail.1.gz
/usr/share/man/man1/gpgsplit.1.gz
/usr/share/man/man1/kbxutil.1.gz
/usr/share/man/man1/lspgpot.1.gz
/usr/share/man/man1/migrate-pubring-from-classic-gpg.1.gz
/usr/share/man/man1/symcryptrun.1.gz
/usr/share/man/man1/watchgnupg.1.gz
/usr/share/man/man8
/usr/share/man/man8/addgnupghome.8.gz
/usr/share/man/man8/applygnupgdefaults.8.gz


The problem is caused by the fact that GRUB relies on a configuration file that's stored in the Ubuntu root (/) or /boot partition, /boot/grub/grub.cfg. There are also GRUB modules (drivers) in the same location. When you deleted your Ubuntu partition, those files were rendered inaccessible.

Methods of recovering from this problem depend on whether the computer boots in EFI/UEFI mode or in BIOS/CSM/legacy mode.

EFI-Mode Booting

In this case, the solution is usually easy: You can use the computer's built-in boot manager to boot Windows directly. The tricky part is accessing the built-in boot manager, since how you do this varies from one computer to another. It's usually done by hitting a high-numbered function key (F8 or above) early in the boot process, but sometimes it's a lower-numbered function key, Esc, Enter, or conceivably something else. Look for boot-time prompts, check your manual, ask the manufacturer, or just try random keys from the set of keys I've mentioned. Occasionally a computer can be configured to disable the ability to enter this menu, or you might get into it and find that the Windows entry is missing. In such a case you may need to try more desperate measures. My own rEFInd boot manager, installed on a CD-R or USB flash drives (the preceding linked page has downlown links for both types of media) may be able to help in such a case. If you can get rEFInd to boot, it should show an option to boot Windows.

Once you've booted Windows, you can use the third-party GUI EasyUEFI to change the boot order, putting the Windows boot loader first. This should fix the problem. As an alternative to EasyUEFI, you could use the bcdedit tool by typing the following command in an Administrator Command Prompt window:

bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi

The bcdedit command creates a fresh entry, so this will work even if the Windows entry is missing from the built-in boot manager. (EasyUEFI can do this, too, but adjusting the boot order is more obvious in its GUI.)

BIOS-Mode Booting

This is the trickier case. Several solutions occur to me, but most of these require the use of external media with appropriate recovery tools:

GRUB commands -- One method to temporarily boot Windows without extra tools is to issue the appropriate GRUB commands yourself at the grub> prompt. This Stack Exchange question and answers describes how to do this.
Super GRUB 2 Disk -- The Super GRUB 2 Disk is an emergency recovery tool that should help you boot Windows, but you'll need to write it to a CD-R or USB flash drive to boot.
Windows recovery tools -- If you can prepare a Windows emergency disk, you should be able to write the Windows boot loader to the MBR from a Command Prompt window by typing BOOTREC /FIXMBR. This command should also get things working permanently if you can boot your main Windows installation via one of the preceding methods. There may be other Windows-specific recovery tools or procedures, but I'm not an expert on them.
Ubuntu recovery tools -- If you can boot an Ubuntu (or other Linux) emergency system, you may be able to write an MBR that bypasses GRUB and boots Windows directly. This page describes one way to do this.
Re-install Ubuntu -- You can re-install Ubuntu to get a GRUB that works, thus restoring your ability to boot Windows.
Undelete the Ubuntu partitions -- You can use a tool like TestDisk to recover your Ubuntu partition(s), thus restoring grub.cfg and other GRUB files and making GRUB work again. Of course, you'll need to boot an emergency disk to run TestDisk.

Most of these BIOS-mode approaches will also work with an EFI-mode boot, although some require tweaks. For instance, BOOTREC /FIXMBR will not work on an EFI-mode installation; you'd instead use EasyUEFI or bcdedit to do the equivalent.


Ubuntu 14.04 upgrade causes matplotlib error

I needed to upgrade numpy

  pip install -U numpy


Alright... looks like the default.plymouth link is a link that links to another location that links to itself. It's kind of confusing. But basically you just have to edit the ubuntu-text.plymouth file and the actual default.plymouth link as well. This is in initrd.lz.


It depends on what you mean by "died". Connect the drive, run dmesg -T to see what the system thinks, where/if the drive is mounted.  sudo fdisk -l will give you more information. gparted is a powerful disk destruction/recovery tool.


mass copy files of specific extensions to folder

Open a terminal

cd /media/drew/recovered-drive/home/drew
cp -r *.jpg /home/drew/Pictures
cp -r *.mov /home/drew/Videos
etc...

Does this help?


Is there a way to change the speed of a CPU fan?

Usually in the BIOS settings you have an option to enable and set up a "smart fan" (or something similar that controls the fan speed) at a given/set temperature, e.g. 45 degrees Celsius.

When the CPU reaches a given/set temperature, it starts working more intensely. You can increase the temperature value of "smart fan" to something higher so it keeps being quiet.

But you risk getting your CPU overheated. So it's basically your choice. I have mine set at 45C.
Clean the PC if it's dusty, add extra case fans to keep the case cool.
The other option is to buy a new CPU fan that produces less noise, less than 22dB. For example, 15dB is approximately the level of a whisper sound.
About decibels (dB): http://www.howstuffworks.com/question124.htm


How do I change the language via a terminal?

Edit two files:

sudoedit /etc/default/locale:

LANG="en_US"
LANGUAGE="en_US:en"

sudoedit ~/.pam_environment:

LANG=en_US
LANGUAGE=en_US

Logout and Login or Reboot.


First you should give the layout variant a name; see /usr/share/X11/xkb/symbols/se for examples. Then add it to /usr/share/X11/xkb/symbols/se and add a corresponding entry to /usr/share/X11/xkb/rules/evdev.xml.

Edit:

I tested the steps in the "update" section of your question, and it worked fine for me after having rebooted. The layout is shown in a submenu of Swedish (Sweden).

For testing subsequent changes, rebooting isn't necessary, but this command should suffice:

systemctl restart keyboard-setup

Edit II:

I have a theory (untested) on why the layout isn't working as robustly as you would wish. Try to change the two first lines in svorak-a5:

partial alphanumeric_keys
xkb_symbols "svorak" {

to

default partial alphanumeric_keys
xkb_symbols "basic" {


Saving and downloading not working on Chrome OS - Ubuntu dual boot

I am the original poster of this question. I have no idea still what was causing this issue, however i deleted my chroot system, then installed the ubuntu again. it seems to have solved the issue.


Appindicator best practices in PyGTK apps

I don't know if they are the best practices or not, but I have done an indicator in python (that falls back to a tray icon when no indicator is supported) here.

It's a very simple program, it just checks a website and changes color (an optionally shows a message) when there are updates on it, so I hope that it could be simple enough to make a good example. It uses by default lib-indicator but it falls back to pure gtk or qt if it isn't present or direct use of some of this libraries is better (it uses qt as its first option if it detects that it's running under KDE or Windows).

I hope that it is somewhat useful.


Removing Adobe Acrobat (acroread) can still run?

Additionally you need to remove package acroread-bin, i.e.

sudo apt-get purge acroread-bin


FTP should work in your web browser, you can also add FTP connections to Nautilus (the default file manager in Ubuntu) and Filezilla is also available in the Software Center (FileZilla in Ubuntu will be identical to FileZilla in windows).


If you've upgraded any packages since you installed the OS, that can cause problems when you try to install anything that depends on that package.

The first thing to try is apt-get install -f octave. This will make apt try to fix the problem.

If that doesn't work, I would try downgrading whatever dependencies are failing back down to the version that came with your operating system. (This has worked for me in the past.)

To do this, you can use the Synaptic Package Manager. Just use the Package > Force Version.. menu item or press Ctrl+E, then select the version marked with your version code name (e.g. "trusty"). This shouldn't break anything, and after all, you can always upgrade the package again.

Alternatively, you could try using aptitude. It will try to fix the problem for you. (I have never used it myself, but it's worth a shot.)


You can install sqlite3 with the command

sudo apt-get install sqlite3

The sqlite3 command will be on your path after install, no need to do anything else. You can verify this by simply entering

sqlite3 --version

in your terminal.


Ok, I found what was wrong. After setting up ssh, I was still asked a password. My python script was called with

sudo python3.5 myscript.py

The sudo was there because I had permission errors without it. I solved the permission errors, removed the sudo and the script stopped asking for my password.
In the end I still set up the ssh again, I found this thread very helpful : https://superuser.com/questions/555799/how-to-setup-rsync-without-password-with-ssh-on-unix-linux

Thanks :)


I'm having recurring problems with a driver install and think that there may be some corrupted/truncated files. How do I clear them?

I would install the driver manually.

1) Download from AMD: http://www2.ati.com/drivers/linux/amd-driver-installer-12-1-x86.x86_64.run

2) sudo apt-get --purge remove fglrx*

3) sudo sh amd-driver-installer-12-1-x86.x86_64.run --buildpkg Ubuntu/oneiric

4) sudo dpkg -i *.deb

5) sudo aticonfig --initial -f

6) reboot


Can and should I become owner of etc/default/locale?

If the update-locale command isn't available, your system is severely broken. Maybe the PATH variable does not contain all the directories it should.

Anyway, there is no reason to change ownership of /etc/default/locale. Try this:

sudo /usr/sbin/update-locale LANG=en_US.UTF-8


What are some typical uses of hard links?

I use a hard link where I need a single file in two or more places, I predict that one day I'll want to delete one of the locations, and I may forget that I have a link to the file. This prevents me from ending up with a symbolic link to a file that no longer exists.

Clarification:

A file name is, in fact, a hard link to the file. Thus, every file has at least one hard link, being what we normally think of as "the" file name. When you delete a file, in fact you are removing its hard link (hence the name "remove", i.e. rm, rather than "delete"). When a file has its last hard link removed, the system also deletes the file.


Is it possible to search through http://irclogs.ubuntu.com?


Problem was 2 virtual machines running in the same time. You can check if you have 2 machines running with vagrant global-status. That causes terminal when in ssh to freeze.

New Update:

If you still have problems install Ruby.

If you still experience the same thing, then reinstall  virtual box, this happens when you install Virtualbox Kernel driver not installed (virtual box kernel) if you installed this reinstall virtual box and everything will be fine.

Or if you are lazy to read just execute this commands

Re-install virtualbox-dkms package first

sudo apt-get remove virtualbox-dkms
sudo apt-get install virtualbox-dkms

sudo modprobe vboxdrv
sudo modprobe vboxnetflt

After all this steps if you still have freeze when vagrant ssh do this:
Enter in your vagrant folder and remove vagrant box with the following command

vagrant box remove ubuntu/trusty64

P.S Name of my vagrant box is ubuntu/trusty64 , yours can be different, to see the list of the boxes in your VM type following command

vagrant box list


You can use a "preseed file" to execute commands during Ubuntu installation. A specific parameter is a "late_command" or "success_command" which will run once most of the system is installed. You can add mount entries to fstab, or even lines in rc.local, here so when the system first boots it will mount your Windows partition.

Read more about preseeds here: https://help.ubuntu.com/lts/installation-guide/amd64/apb.html

There are several ways to supply a preseed, which is the best depends on what your install environment looks like. Do you want to do this for several computers at home? Need to provision several dozen systems for a school lab? Need to deploy on hundreds of computers at a company? This will influence what the best way to provide the preseed is.


Install Startup Disk Creator error from Ubuntu Software on Ubuntu 18.0.4 minimal installation version

I faced the same problem.

Try to manually install it on command line sudo apt-get install usb-creator-gtk.
The application is installed and you can find it on "Show Applications", or manually execute it via usb-creator-gtk.


Which partition to install Ubuntu in so as not to erase/make more bad things happen to Windows?

The grub bootloader, if you want it as your loader for multiple OSes, goes on the first bootable drive, which would be /dev/sda, and not the partitions.  Even Windows installs its bootloader to the MBR of the drive.  That is also where grub would install to, but it will scan all your partitions for boot files.  So, your Windows would still boot correctly.

Looking at your pic there, I see the 15GB partition is actually your Windows Recovery partition, and your 736GB partition is that of your actual Windows installation.  If you are not planning on using that much space to Windows, I would recommend shrinking /dev/sda2 down and installing Ubuntu into the new blank area.  But, as a safety precaucion of your data, first back up your data from Windows before you resize any partitions, as there is always the chance of something going wrong and messing up all your partitions.


Insallation Help - Input/Output Errors when Trying to Install

I think your issue is bigger than can be fixed here.  Input / Output errors typically point at failing disks or bad hardware.  Those errors can result in the kind of "No OS Found" messages you were seeing, as well.

If the issue is hardware in nature, and the hardware is dying or faulty or failing, there's no real way to fix that except to replace the hard drive. Given that you were having irreparable issues in Windows 8.1, it looks like hardware failure might be the issue.

I'd suggest taking your computer to a technician for testing and diagnosis of hardware issues, or reach out to the manufacturer of the computer, because it sounds like a dying disk if Windows was also giving you errors and such.


Change post-GRUB, pre-Plymouth boot font size

Despite 1024×576 being very compatible according to xrandr, 1280x720 appears to be the lowest 16:9 resolution that works:

$ sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="video=1280x720"
$ sudo update-grub
$ reboot

That also affects the virtual consoles, however, so now i'll have to  undo the larger font i set for those using sudo dpkg-reconfigure console-setup or set the VIDEOMODE in /etc/default/console-setup.


Acting on the advice of the Strange Eons support person,
I went to {~/.local/share/applications} and deleted the
Strange Eons folders[.desktop entries]. Then I deleted the Strange Eons
files from my desktop. It seems to be gone now. :-)


Cannot get Atheros AR9285 to work on 12.10

You can use this command:

sudo modprobe ath9k

to enable the device.


sudo: psql: command not found: can't fix it

On Ubuntu, /usr/bin/psql is a symbolic link to a Perl script that figures out how to locate the default PostgreSQL instance to connect to, and then launches the real psql binary corresponding to that instance with the necessary connection parameters.

$ ls -l /usr/bin/perl
lrwxrwxrwx 1 root root 37 nov.  14 13:23 /usr/bin/psql -> ../share/postgresql-common/pg_wrapper

See the manual page of pg_wrapper for more details.

Based on the comments, the target of the link is broken somehow. Reinstalling the postgresql-client-common package might help.


How to install Qualcomm Atheros WiFi Device Driver which is Missing in Ubuntu MATE 15.10?

I solved the problem by using the following steps.. it works on Linuxmint

wget https://www.dropbox.com/s/nmgb5li6sd6i7ij/backath10k-dkms_2.0_all.deb

dpkg -i backath10k-dkms_2.0_all.deb

Reboot


Custom keyboard shortcut not working, am I doing this right? Ctrl+Alt+R does nothing

I just putgnome-terminal -x <command> in the command section; which works fine, but leaves a useless terminal window open. I haven't figured out how to hide that yet.


Conflict file between nvidia-common and nvidia-installer-cleanup

Why are you installing Debian packages?! Don't do that! Remove the Debian repository using:

sudo sed -i '/debian/d' /etc/apt/sources.list{,.d/*}

Then remove the nvidia-installer-cleanup package and make sure you don't have other Debian packages installed. Then run sudo apt-get install -f and hope it solves the issue.

Your nvidia-common package is trying to overwrite a file of nvidia-installer-cleanup as you have noticed. To get out of this situation you must give up installing nvidia-common or removing nvidia-installer-cleanup. I would use the later:

sudo dpkg --purge nvidia-installer-cleanup

and then run sudo apt-get install -f again. Since you also don't have NVidia cards I would just remove any and every nvidia package shown by dpkg -l | grep nvidia.


Display scaling option gone after 18.04 update

You can try this command
gsettings set org.gnome.desktop.interface scaling-factor 2

Then restart your system.
I am also on mac but I am using Parallel Desktop. There is a scaling and more space option available in parallels graphics settings. After this command whenever I change to scale and then back to more space, I get 200% scaled desktop.
Although also in this you will have to do it every time you open ubuntu but no restarting is required.
You can also try this in VMWare Fusion


How to remove the resize grip in gtk3 windows?

I could disable the resize grips by putting into ~/.config/gtk-3.0/gtk.css the following code:

* {
    -GtkWindow-resize-grip-default: false;
}

or similarly to .gtkrc-2.0

* {
    -GtkWindow-resize-grip-height: 0;
    -GtkWindow-resize-grip-width: 0;
}


Biogeme fails to install and run on Ubuntu 16.04

To install the biogeme program, download the deb file at http://biogeme.epfl.ch/distrib/biogeme_2.4.0-1_amd64.deb and run sudo dpkg -i biogeme_2.4.0-1_amd64.deb. This will install the necessary binaries to your /usr/local/bin directory.

As can be seen in section 4 of page 6 of the PDF at http://biogeme.epfl.ch/documentation/bisonfirstmodel-2.4.pdf, to use the program, you need to provide biogeme with two arguments: a model and a .dat file. Following section 4 of page 6 of the aforementioned PDF, we will use the logit model and the data file for the Swissmetro example, which can be found at http://biogeme.epfl.ch/examples_swissmetro.html. First, download the 01logit model file at http://biogeme.epfl.ch/bison/01logit.mod. Second, download the swissmetro.dat data file at http://biogeme.epfl.ch/swissmetro.dat. Third, run biogeme 01logit swissmetro.dat. Notice that the program will tell you that 01logit.par does not exist and it will try to use default.par instead (and if default.par is missing, it will create it and then use it). This behavior is expected as stated in the second bullet point of page 7 of the aforementioned PDF.


dpkg -L not showing all files of package

Basically this package is just a meta package depending on bunch of other packages.

For example here is a chain of dependencies:

libboost-all-dev --> libboost-system-dev --> libboost-system1.67-dev

Which /usr/lib/x86_64-linux-gnu/libboost_system.so comes from.

You can use dpkg -S PATH to find which package has created the corresponding file.


Upgrade already installed ffmpeg software on ubuntu server

If your Ubuntu version is 14.04 LTS, then you can add this ppa from Doug Mcmahon to upgrade your version of ffmpeg.

sudo add-apt-repository -y ppa:mc3man/trusty-media; sudo apt-get update; sudo apt-get install --only-upgrade ffmpeg

Here's a screenshot to verify:


How to reformat/reindent all the source files in a given directory?

You could use vim in ex and command mode, from the terminal.

To indent a single file:

vim -c "normal gg=G" -e <file-to-indent> <<'EOF'
:wq
EOF

To indent files recursively, create the following script:

indent-with-vim.sh

vim -c "normal gg=G" -e $1 <<'EOF'
:wq
EOF

Now, type:

$ chmod u+x indent-with-vim.sh
$ find . | xargs -I {} ./indent-with-vim.sh {}

Vim will do its best to reindent the files. You may improve some specific file types.

For XML:

Install xmllint
Add to your .vimrc

au FileType xml setlocal equalprg=xmllint\ --format\ --recover\ -\ 2>/dev/null

To improve PHP formatting:

Download http://www.vim.org/scripts/download_script.php?src_id=15001
(it will download a file named php.vim)

Create the following directories on your home:

~/.vim/indent

And copy php.vim to ~/.vim/indent

If you are not satisfied with the result for any file type, you may look for alternatives on the web (like htb for HTML, https://github.com/vim-ruby/vim-ruby for improvements for Ruby, and so on).

Either way, you'd use or the .vimrc technique or the foo.vim indent file to improve the indentation.

Also, you can change the find parameters to apply to some specific types only, such as:

find . -iname "*.html" -or -iname "*.xml"


Is there any possible issue with changing the boot order often?

Changing the boot order frequently won't have any bad effect on your hardware, it will not corrupt anything.


/usr/bin/qemu-kvm missing in qemu-kvm/artful-updates,artful-security,now 1:2.10+dfsg-0ubuntu3.5 amd64

You don't actually need that package. All it does is provide a two-line shell script:

$ cat /usr/bin/kvm
#!/bin/sh
exec qemu-system-x86_64 -enable-kvm "$@"
$ _


How can I satisfy Audacity asking for libavformat.so.53, while Ubuntu 14.04 has libavformat.so.54?

There's a good chance, that libavformat.so.54 contains all the symbol needed by Audacity. Tell Audacity to work with that. If necessary trick it, by creating a symlink somewhere, e. g.:

ln -s /usr/lib/$(uname -m)-linux-gnu/libavformat.so.54 ~/libavformat.so.53


Broken package manager due to incorrect Banshee package

Try to remove banshee and any package that is related to it with sudo apt-get purge banshee-*


Pgadmin4 installation fails on Ubuntu 18.04 Bionic Beaver

There is no pgadmin4-apache2 package.  There never has been.
Upstream Postgres repositories however have a pgadmin4-web function though that will make it a webserver like function and configure webserver components.
From the pgadmin4 download/repositories page come instructions for using their repository:
#
# Setup the repository
#

# Install the public key for the repository (if not done previously):
sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add

# Create the repository configuration file:
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'

#
# Install pgAdmin
#

# Install for both desktop and web modes:
sudo apt install pgadmin4

# Install for desktop mode only:
sudo apt install pgadmin4-desktop

# Install for web mode only:
sudo apt install pgadmin4-web

# Configure the webserver, if you installed pgadmin4-web:
sudo /usr/pgadmin4/bin/setup-web.sh

Desktop mode is as if you are the only user and using it as a desktop GUI on your system to maintain multiple postgres servers and disables authentication on the pgAdmin component so you don't have users, etc. configurable on the pgAdmin component.
Web mode is the 'server' mode and when installed works like phpMyAdmin does, except for Postgres stuff.
Install either mode you wish, but if you're configuring it so that it's served by a webserver, you want pgadmin4-web and need to run the configuration program as listed in the last line of their instructions.
At the time of writing, this works for the following non-EOL and still supported Ubuntu releases:

Ubuntu 18.04 (Bionic)
Ubuntu 20.04 (Focal)
Ubuntu 20.10 (Groovy, from v4.30)


Running ios and windows apps from ubuntu

PhoneGap can be used for writing iOS apps on Ubuntu.


Outputting to External Display Only: ATI Radeon HD6310 Driver Issues on a Thinkpad x120e

I have tried the instructions highlighted in: https://wiki.ubuntu.com/X/Troubleshooting/FglrxInteferesWithRadeonDriver to remove the installed proprietary flgrx driver with great success.


Switch driver to modesetting for improved OpenGL support?

ok, so I followed a guide found via a link Terrance provided:

https://sites.google.com/site/easylinuxtipsproject/speed

I uninstalled the Intel Driver to fallback on modesetting with:

sudo apt-get remove xserver-xorg-video-intel

Unfortunately my card (GMA 950) is unsupported and with no driver the desktop would not load. If I find another way to improve OpenGL support I will report back


How can I change the default web page at the system level?

Firefox

Not sure how to do this with chromium

Set default home page

You can set the default page by editing /etc/firefox/syspref.js

# Graphical
gksu gedit /etc/firefox/syspref.js

# Command line
sudo -e /etc/firefox/syspref.js

At the bottom of the file add:

user_pref("browser.startup.homepage", "http://google.com");

Obviously change "http://google.com" to the page of your choice (or not).

This change will not affect existing firefox profiles for existing users. You can reset all users home pages with

sudo sed -i -e '/startup.homepage/d' /home/*/.mozilla/firefox/*/prefs.js

change "/home/*" to "~user_name" for a single user.

sudo sed -i -e '/startup.homepage/d' ~bodhi/.mozilla/firefox/*/prefs.js

Lock home page

You can lock the home page for all users by  editing /etc/firefox/syspref.js and using

lockPref("browser.startup.homepage", "http://google.com");

Although again this does not affect existing profiles, you would need to run the sed command again ;)


Install via jeltka, following these instructions.

This flashes the bios.  After rebooting, you will have two choices - choose the second.  Then type root.   This gives you a root shell. Once you have a prompt, run the script jeltka.sh.

Presently it all works - except the touchpad, so I am using a usb mouse. I am trying to figure out how to make the touchpad work.


Kubuntu : when i move mouse, screen move too?

It looks like the default on my version of ubuntu does a desktop zoom if you hold Alt and Scroll-wheel in. For me the problem was fixed by holding Alt+Scroll-wheel out.


Finally after contacting gitkraken support the solution has been found.
It seems that GitKraken was in full screen mode

So to exit full screen mode I had to press Ctrl+Shift+F


Your NumLock is turned on. Have you tried pressing Fn + F11 on your laptop keyboard to turn it off?


Threadripper 1950x random system hangups - How can I track the problem?

I discovered the solution

Disable C sleep States (deep sleep) and AMD cool'n'quiet in the BIOS


Can I put more applications in a Unity icon?

Overview

This answer gives two potential answers - Drawers and Quicklists

Drawers

Drawers is available via a PPA for 12.04:

sudo add-apt-repository ppa:ian-berke/ppa-drawers
sudo apt-get update
sudo apt-get install drawers

Launch Drawers from Dash.  For you drawer, drag and drop the created icon from ~/.local/share/applications.

Launch your drawer - then you can drag and drop your favourite applications from the Dash onto the drawer.

Graphical Quicklists

The default unity method to launch multiple options is through the use of quicklists - right-click a launcher icon to show a menu of options for that launcher icon.

The creation of quicklist using a graphical method for 12.04 is available using MyUnity

myunity

This option allows you to create quicklists - quicklists are a submenu that are displayed when you right-click a launcher icon.

The creation of quicklist using a graphical method for 11.04 is work-in-progress - for example - the Unity Launcher Editor

This works in Natty (ubuntu 11.04) - but due to the python version change, does not work (as at the time of writing this) in oneiric (ubuntu 11.10)

to install

cd ~/Downloads
sudo apt-get install bzr
bzr branch lp:unity-launcher-editor

to run

cd ~/Downloads/unity-launcher-editor
./ule

Manual creation of quicklists

Fortunately, it is simple to create quicklists manually as well. A quicklist is a .desktop file containing at the minimum the following:

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon=adressbook
Name=Sample Menu
Exec=example_application1

X-Ayatana-Desktop-Shortcuts=example_app2;

[example_apps Shortcut Group]
Name=Name of Application 2
Exec=example_application2
TargetEnvironment=Unity

Let's break this down to the areas you should change (working from top to bottom of the example).

Icon=: this is the graphical picture file found in /usr/share/icons
Name=: this is the tooltip you see when you hover over the launcher icon
Exec=: this is the default executable run when you left click the launcher icon
X-Ayatana-Desktop-Shortcuts=: this is a semi-colon separated list of groups.

Each group is a quick-list menu option under the entry [group_name Shortcut Group]

example_apps this is the name of the group in the X-Ayatana-Desktop-Shortcuts field
Name=: this is the quicklist menu text
Exec=: this is the executable run when choosing the quicklist entry

.desktop files should exist in the local folder ~/.local/share/applications

If it doesn't already exist create this folder:

mkdir -p ~/.local/share/applications

Create a file in the folder - for example myquicklist.desktop and drag-and-drop this file from Nautilus into the Unity Launcher.

mimic XFCE launcher

The default XFCE action when clicking on the launcher button is to run an executable.  For our launcher you could default to the calculator

Name=My Quicklist
Exec=gcalctool

The other action possible in the XFCE launcher is to just display the list of launcher items.  Unfortunately in Unity you cannot do this - it must be a right-click.

The default Exec= must run something - for example you could use this to display a quick pop-up dialog reminding you to right click:

Name=My Quicklist
Exec=zenity --title="action" --info --text="Right-Click for quicklist" --height=50 --width=275 --timeout=2

Example

You gave the following examples that you wanted:

Screenshot: Exec=gnome-screenshot -i
Dictionary: Exec=xfce4-dict
Calculator: Exec=gcalctool

Thus your example .desktop file would look like:

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon=addressbook
Name=My Quicklist
Exec=zenity --title="action" --info --text="Right-Click for quicklist" --height=50 --width=275 --timeout=2

X-Ayatana-Desktop-Shortcuts=screenshot;dictionary;calculator

[screenshot Shortcut Group]
Name=Gnome Screenshot
Exec=gnome-screenshot -i
TargetEnvironment=Unity

[dictionary Shortcut Group]
Name=XFCE Dictionary
Exec=xfce4-dict
TargetEnvironment=Unity

[calculator Shortcut Group]
Name=Gnome Calculator
Exec=gcalctool
TargetEnvironment=Unity


How to restart networking? eth0 RJ45 does not connect after sleep mode in Xubuntu 12.04

Recommended method:

The best way to restart networking is to do this:

How to restart the networking service?

though this is not a permanent solution to your problem.

Alternate(deprecated) method:

This one, though deprecated, is to do a /etc/init.d/networking restart. This is relatively verbose and explains what is going wrong(if there is anything going wrong).


Where do I find information about Templates for Create Document

Open up Open/Libre Office and create a blank document and save it in your Templates folder which is located in your Home directory (/home/userName/templates, where userName is your actual Ubuntu username)


"E: Unable to locate package vlc-plugin-libde265" while installing VLC

vlc-plugin-libde265 is not available in the Ubuntu repositories as can be seen at http://packages.ubuntu.com/search?suite=all&searchon=names&keywords=vlc-plugin-libde265. To install it, you have to add the PPA at https://launchpad.net/~strukturag/+archive/ubuntu/libde265:

sudo add-apt-repository ppa:strukturag/libde265
sudo apt-get update
sudo apt-get install vlc-plugin-libde265


Help needed in understanding this command?

The command echo OFF | sudo tee /sys/kernel/debug/vgaswitcheroo/switch writes OFF to the special "file" /sys/kernel/debug/vgaswitcheroo/switch. For details on the difference with echo OFF > /sys/kernel/debug/vgaswitcheroo/switch, see Redirect the output using `sudo`

Entries in /sys are special. Those are not real files but an exported interface from the kernel space. In this case, vgaswitcheroo is an interface to the switcheroo code that can be used for toggling the power on hybrid graphics systems. More details on this can be found in the Ubuntu help pages: https://help.ubuntu.com/community/HybridGraphics#Using_vga_switcheroo.

If you are interested, the source code where this interface is exported is at http://lxr.linux.no/#linux+v3.3.4/drivers/gpu/vga/vga_switcheroo.c


Can you set keep aligned to off by default on desktop?

Right click the desktop and you can uncheck "Keep Aligned"


Why is the mysql-server package from mysql.com missing server files?

see if the comment here helps -- https://github.com/Microsoft/WSL/issues/3631#issuecomment-465966498

here is my workable gist https://gist.github.com/e-cloud/34acbefe0597a02f9a081a01eff6dd24

sudo apt-get remove mysql-server mysql-client -y
sudo apt-get autoremove -y && sudo apt-get autoclean -y

wget –c https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.13-1_all.deb # select 5.7

sudo apt-get update
sudo apt policy mysql-server #(it will show 5.x is the default candidate)

sudo apt-get -y install mysql-server
# ensure your host windows have no mysql service running
sudo service mysql start
sudo service mysql stop

sudo dpkg -i mysql-apt-config_0.8.13-1_all.deb # select 8.0
sudo apt-get update
sudo apt policy mysql-server #(it will show 8.x is the default candidate)

sudo apt-get -y install mysql-server
sudo sed -ie 's/\/usr\/share\/mysql\/mysql-helpers/\/usr\/share\/mysql-8.0\/mysql-helpers/' /etc/init.d/mysql
sudo service mysql start


Nouveau driver is open source. NVIDIA's own binary driver is not. It's a bug that they're displayed as being open source.


Assuming you use something like this configuration guide, the root of the TFTP server is /var/lib/tftpboot/.

If this is the root, and the file is directly in there then your tftp command will look like this:

copy tftp://ip.add.re.ss/FILENAME nvram:startup-config

LIke a web server, the 'root' of the TFTP server's config is the root directory on-disk that your server will serve from; this is omitted in the remote system that's doing the copying.


How to get wallpaper file name if using dynamic wallpapers?

You can use xmllint with the --xpath setting to extract relevant parts of an XML document:

xmllint --xpath 'string(/background/static/file)' /usr/share/backgrounds/contest/cosmic.xml


Start the miner from wallet. start_mining address n . n= number of threads


Unable to ping or rdp from UBUNTU 18.4.2. HOST to KVM windows7 Guest VM -but able to ping to other linux guest centos

Thank you guys, the issue has been resolved by my self.

Windows 7 was blocking ICMP traffic, it was weird that i disabled firewall and service not no luck. ;)

After i enabled firewall rules to allowed icmp packet then it worked.


Shutdown during 'apt-get upgrade' and cannot enter system

You probably did not remount your file system as writable, there is a similar question that can help you mount it in recovery mode, please have a look

Cannot lock '/etc/group' in recovery mode


That is because terminal programs like minicom do not echo things they receive.  If you want to see what you type on the sender, you need to enable local echo or connect to something on the other end that is actually useful, such as a getty/login instance, rather than another client terminal.


Clear the cache of GPG : pub, uid and sub

Ok, I solve it anyway. Using the commands:

gpg --delete-secret-keys <keyid>
gpg --delete-keys <keyid>

Although you need to manually delete each key-pair.


Why can't I change the permissions of files I have access to?

Only The Owner of a File May Change Its Permissions
As jackweirdy commented, only the owner of a file (or root) can change the file's permissions. Being a member of a group that has some kind of access to the file does not impart the ability to change the file's permissions.
The idea is that a file is owned by a user (whether that user represents a real person, or not), and that user is the one who decides who gets access to the file. Permissions for access by users (who are not the owner) in the group-owner of the file are controlled by the user who owns the file. If anyone in the file's group-owner could change the file's permissions, this security model would be broken.
For example, consider these permissions, as in your specific situation:
-rw-rw-r--

The owner can read and write the file but cannot execute it. The users in the group-owner besides the owner of the file can also read and write the file but not execute it. Others may only read the file.
Suppose www-data (or someone with the ability to run commands as www-data or as root) set those permissions with the intention of keeping other users in the group-owner from executing the file. If other users in the group-owner could change the permissions, they could run:
chmod g+x file-a.png

And then they would gain the ability to execute the file. Such an ability would render group permissions worthless.
In contrast, the reason for user permissions, even though the user owns the file, isn't to restrict the owner from doing anything with the file, but is rather to protect the user from doing things with the file they don't want to do. For example, files that aren't programs, or that might be programs but have just been obtained from an untrusted source like the Internet, tend to have the execute bit set to 0 even for the owner, for their own benefit. In this case, it's helpful and necessary for the owner to be able to change this.
A separate problem with allowing members of the group-owner (who aren't the owner) from changing permissions is that this is a separate ability not accounted for by r, w, or x. Even if the group had read, write, and execute permissions wouldn't necessarily mean that they should be able to change the permissions. (For example, suppose you have a file where the owner is not a member of the group-owner. If members of the group-owner could change the permissions, they could deprive the owner of permissions. The owner could change this back...but this would still break any automated tasks the user had scheduled that use the file.)
Allowing People to Become The Owner
When a file is owned by a user like www-data who doesn't represent any actual person, you might want to allow some people to perform actions as that user. sudo doesn't just facilitate allowing select users to run commands as root. It also facilitates allowing select users to run command as other specified users. You could set things up so that everyone in the www-data group has the ability to run commands as the www-data user, including changing permissions on files owned by www-data. (Make sure you understand the implications of this, though. Depending on how your system is configured, users in www-data may be able to schedule tasks to run as www-data, and will be able to do anything at all to any file owned by www-data and to any process run as www-data.)
See man sudoers for information about how to set this up. If you decide you want to do this and you have trouble, you could post a separate question about it.
Allowing Non-Owners to Change the File's Permissions?
I think it may be possible to allow some users who don't own a file to change some or all of the file's permissions, using Access Control Lists. I've hardly used ACLs on Ubuntu though. If you're interested in accomplishing this, you might want to post another question asking if it's possible and, if so, how to do it.


Ubuntu 14.04 32/64 bits no usb mouse keyboard no network waiting for network configuration

Okay, I posted a similar question a week ago and got no answer.  But I may have found something.  It seemed to work for me.

I simply unplugged the usb connections and replugged them back.  Activity was reconnected.

I am working through a ps2 KVM with a USB adapter.  I thought the problem might be related to lack of support for my KVM, but no other distributions seem to have this problem.  So I suspect it might have something to do with Unity or one of the programs there timing out.

Anyway, try unplugging and replugging in your PC's usb connectors.  It worked just now for me.


Help with Lubuntu switching sound output

If you select Pulseaudio Volume Control from the Sound and Video menu, you can go to the Configuration tab and disable Built-in Audio, then pick the appropriate output from Profile under your headset. If your headset isn't listed on the Configuration page...different problem.


install ubuntu in a file on windows partition (similar to Wubi installer)

Yes, you may open a feature request at https://bugs.launchpad.net/ubuntu and it should be looked at in 24 hours.


I describe the wireless way to copy files from iPhone.
Note: This method does not consume your internet.
I also created a video on this topic https://youtu.be/yj2HJinyZgI

Step 1: install Documents app on the iPhone.

Documents app link: https://apps.apple.com/in/app/documents-by-readdle/id364901807

Step 2: Connect your pc to an iPhone hotspot.

or connect to the same wifi.

Step 3: open Documents app On iPhone and go to connection / computer option.

Step 4: you show an URL On Document app.

In my case, I got http://172.20.10.1/

Step 5: Open your computer browser and write the shown URL address from Document app.

Step 6 (1): When you enter the address in the PC browser and enter it, the website asks you for the Verification code.

Step 6 (2): that same time document app show you the Verification code. like the below image.

Step 6(3): Enter That verification code in your browser.

Now, You connected with your iPhone.

Step 7: If You want to access the iPhone gallery.

go to Albums Folder in Pc browse.
You got all photos and videos from your iPhone.

Step 8: Copy video to pc?

select videos and press the download button.

Note: This method does not consume your internet data.

For Visual steps watch this video https://youtu.be/yj2HJinyZgI
I have tried my best to explain, but I am sorry if there are any mistakes in explaining


Release upgrade 14.04 to 16.04 display not running with systemd. Upstart - no problem

I am placing the answer here in case anyone has the same problem:

Finally resolved. I've noticed I always had read only file system after systemd startup. It turns out that my fstab primary disk UUID was somehow messed up - interesting upstart had no problem with this..nor I had any troubles before upgrading from 14.04. So I just replaced it with the  correct UUID and now it works just fine.


It seems that the new exFAT kernel driver was in Staging in 5.4 and fully released in 5.7.
See:
https://www.omgubuntu.co.uk/2019/11/linux-5-4-kernel-release-features
https://www.omgubuntu.co.uk/2020/06/linux-5-7-kernel-features


Installing Mobile Broadband in Ubuntu 11.10 (Oneiric Ocelot)

Make sure that you've refreshed your software sources. You will need to connect your computer with Internet Modem using wire. Then run the next terminal command:

sudo apt-get update

Open the Search panel from the Ubuntu icon present in top of the launcher.
Search for the Additional Driver in the search box, this will open a new window from there you just select “Broadcom STA wireless Driver” and click on Add.
Wait for some time until the installation gets complete.
You need to restart your system to activate and complete the installation.
Now go to the network connection icon present at the top panel and select your network name.
Enter the password and click on Connect. This will establish the wireless connection or mobile connection.


How to diagnose the process causing catastrophic failure using digital forensics

From the comments...

We looked at the output of free -h and sysctl vm.swappiness and cat /etc/fstab, and installed iotop to determine why swap if used so much.

There are a few reasons why the system is thrashing.

you don't have enough RAM
you don't have enough swap
vm.swappiness has been modified incorrectly

The fix...

add more RAM
increase /swapfile space
set vm.swappiness to 60-90 (60 is default)


There is no difference at all, as the key does not save info about the username. You can create a key on username joe on host A and publish the correspondent pubkey as user bob on host B.


Yes,
that approach is as save as any normal use of sudo.
When you use sudo, the password is cached, in the default configuration.
And you use a dummy command to put the password into that standard cache, by a command doing nothing, as root - which is certainly not dangerous.
sudoonly
Because your example uses mysqldump, which also uses a password, I'd like to make clear that the above is unrelated to the mysql password, it's only relevant to the sudo on the example line sudo mysqldump ....
Especially, does not solve the problem of giving a password to mysqldump etc in a script, without having it show up on the command line in ps, top or any process manager GUI to all users on the system.

Supplemental information:
Set timeout
The timeout of the sudo password cache is 15 minutes by default, and can be changed by setting timestamp_timeout in sudoers. Using sudo visudo, add a line like
Defaults    timestamp_timeout=30

to /etc/sudoers. (Set timestamp_timeout to 0 to disable the cache.)


.desktop files: how to specify the icon path

Yeah the lookup is pretty complicated. Here are the freedesktop icon specifications on directory layouts:

  Icons and themes are looked for in a set of directories. By default,
  apps should look in $HOME/.icons (for backwards compatibility), in
  $XDG_DATA_DIRS/icons and in /usr/share/pixmaps (in that order).
  Applications may further add their own icon directories to this list,
  and users may extend or change the list (in application/desktop
  specific ways).In each of these directories themes are stored as
  subdirectories. A theme can be spread across several base directories
  by having subdirectories of the same name. This way users can extend
  and override system themes.

  In order to have a place for third party applications to install their
  icons there should always exist a theme called "hicolor" 1. The data
  for the hicolor theme is available for download at:
  http://www.freedesktop.org/software/icon-theme/. Implementations are
  required to look in the "hicolor" theme if an icon was not found in
  the current theme.

  Each theme is stored as subdirectories of the base directories. The
  internal name of the theme is the name of the subdirectory, although
  the user-visible name as specified by the theme may be different.
  Hence, theme names are case sensitive, and are limited to ASCII
  characters. Theme names may also not contain comma or space.

  In at least one of the theme directories there must be a file called
  index.theme that describes the theme. The first index.theme found
  while searching the base directories in order is used. This file
  describes the general attributes of the theme.

  In the theme directory are also a set of subdirectories containing
  image files. Each directory contains icons designed for a certain
  nominal icon size, as described by the index.theme file. The
  subdirectories are allowed to be several levels deep, e.g. the
  subdirectory "48x48/apps" in the theme "hicolor" would end up at
  $basedir/hicolor/48x48/apps.

  The image files must be one of the types: PNG, XPM, or SVG, and the
  extension must be ".png", ".xpm", or ".svg" (lower case). The support
  for SVG files is optional. Implementations that do not support SVGs
  should just ignore any ".svg" files. In addition to this there may be
  an additional file with extra icon-data for each file. It should have
  the same basename as the image file, with the extension ".icon". e.g.
  if the icon file is called "mime_source_c.png" the corresponding file
  would be named "mime_source_c.icon".

The full specifications are much more exhausti{ve,ng} than this but the crux of it is: there are set directories you can just stuff icons into and the desktop will find them. Which of those best applies to you depends on your problem and your patience :)


Your main error is adding the -c flag to your command - that tells gcc to compile the source file (producing an object code file s9p2.o) but stop short of linking it with the libraries necessary to create an executable program (s9p2)

The correct command should be something like

gcc -o s9p2 `pkg-config --cflags glib-2.0` s9p2.c `pkg-config --libs gtk+-2.0`

or

gcc -o s9p2 s9p2.c `pkg-config --cflags --libs gtk+-2.0`


How to have a program open with Compiz "put right"?

Yes you can do this using "Place Window" plugin in ccsm. By adding your program in windows in fixed position you can control the position of your program. You need to give the x,y co-ordinate. (x,y)=(0,0) in left-upper corner of the screen. Xmax= your x axis resulation's. As an example if your screen resulation in 1024x768 then Xmax=1024 and Ymax=768.


Is it possible to install the Sims 3 on Ubuntu 13.04?

First you need to follow this guide: How to install and configure Wine?

After that you need to look for the components The Sims 3 needs to install. I already posted a review for it in WineHQ DB. You also need to check if you have the hardware requirements for it. For information about this see: http://www.thesims3.com/game/systemreq
Lastly, the winetricks components I had installed when I tested to see if the Sims 3 was working (Not all of them are needed) were:

cyrex@cyrex:~$ winetricks list-installed
amstream
d3dcompiler_43
d3dx10
d3dx11_42
d3dx11_43
d3dx9_26
d3dx9_28
d3dx9_31
d3dx9_35
d3dx9_36
d3dx9_39
d3dx9_42
d3dx9_43
d3dx9
devenum
dirac
directmusic
directplay
directx9
dmsynth
dotnet20
dotnet40
dsound
ffdshow
icodecs
l3codecx
mfc42
mspatcha
msscript
msvcirt
physx
quartz
vcrun2008
vcrun2010
vcrun6sp6
vcrun6
winhttp
wininet
wsh56vb
wsh57
xact_jun2010
xact
xinput
xna40

The game works perfectly. I recommend running the game from the terminal first to see what the game needs (If there is anything it needs, it will tell you through the terminal, for example "Missing .NET Framework 4.0). The game also works best with Windows 7 selected on the winecfg application. It also works with Windows XP but I feel it looks or runs faster on Windows 7.


What is the easiest way to convert files to an MP4?

Handbrake is a good GUI based software for video conversion/transcoding and it should be available to install from the Ubuntu software store and most repositories. If you have lots of videos you can queue up multiple jobs and then leave it to process all of them.


Lubuntu 12.04 right Alt to change keyboard layout while pressed - a bug?

I don't know how to do it in the terminal, but if you right click on your keyboard layout  icon, or go to settings. there is a setting that says "switch while alt is pressed"  maybe you have that toggled instead of what you want.

Settings > keyboard Layout > Options > Key(s) to change Layout


I can get into a web directory by using web browser ,but file manager fails

http and ftp are different protocols and are handled by different servers; the fact that this particular web server is configured to allow public access doesn't mean that its ftp "counterpart" is configured the same way.

You should check with your service provider or administrator what is the correct way to connect to the ftp server.


So I tried a lot and JSymphonic didn't work for me! but fortunately I found gMTP in Ubuntu Software center. Through this app I can now manage my Music on my Sony Walkman.

Its realy easy to install. Just type gMTP in Ubuntu software Center and install.

I hope it helps.


I've been working with Intel Skylake Developer platform kit with the 4.2 kernel for a while and the 4.2 kernel should be sufficient for you current needs.  Is there any specific reason you believe 4.3 is more appropriate for your system?


From howtogeek.com which has a good answer for any OS.

For Linux (including Ubuntu):

setxkbmap -option <OPTION>

Where <OPTION> can be for example of:

caps:none – Disables Caps Lock.
caps:super – Caps Lock becomes an additional Super (aka Win key).
caps:ctrl_modifier – Caps Lock becomes an additional Ctrl.
caps:numlock – Caps Lock becomes an additional Num Lock.
caps:escape – Caps Lock becomes an additional Escape.
caps:backspace – Caps Lock becomes an additional Backspace.
caps:swapescape – Caps Lock becomes Escape, and Escape becomes Caps Lock

Note: Xmodmap is deprecated in favor of setxkbmap.


How to setup cgit with apache2 in Ubuntu?

Have you enabled cgi in apache2 ? In xenial, it is not enabled by default.

cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/cgi.load cgi.load

Worked for me with the Ubuntu package of cgit


No visual interface on ubuntu 12.10 after installing updates

Log into the terminal with your username and password and when you get to the bash prompt enter:

startx

Post any errors that pop up.

 install fglrx-updates fglrx-amdcccle-updates

then reconfigure the driver

dpkg-reconfigure fglrx-updates


unable to set lock screen in ubuntu 16.04?

Have you checked the permissions on the image you're using to make sure other users & groups have read access to the image? Usually it will revert to the default lock screen when it doesn't have sufficient privileges to read the file (as it will be owned by your user).


Ubuntu Help: Encrypted Home points to this article here: Migrating to an Encrypted Home Directory which was written about a year ago. Though this article actually appears to still be valid in how to approach this.

You won't be encrypting the entire /home partition but rather each individual home folder. In future user setups you can pass the --encrypt-home flag on the useradd command. (adduser --encrypt-home new-user-name)


Good book or guide for Debian packaging using Bazaar and Ubuntu Distributed Development

There is no "book" on Debian Packaging or Ubuntu Packaging that follows all the packaging policies for both, that is up to date, as there are changes frequently enough that you have to read the policies and the guides after they're updated.  There's only the guides for Ubuntu or Debian.  I had been looking for books for some time, but in fact there were none that were 'good' enough to meet what is needed here.

The Ubuntu Packaging Guide was modified since I first read it to use bzr and version control systems (i.e. Ubuntu Distributed Development, or UDD) for packaging.  That will be your best resource.

Ubuntu: Use the packaging guide link above.  It touches upon using Bazaar (bzr) and version control for packaging in Ubuntu, using the UDD process.

Debian: The Debian New Maintainers Guide may be a good start point.  This does not use bzr for version controls, since that's an almost Ubuntu-specific thing.


How do I allow a group (except one user in that group) to use sudo without a password?

It is enough to put the user line after th group line:

%admin ALL=NOPASSWD: ALL
enzotib ALL=(ALL:ALL) ALL

If you want to have many users to be requested the password, without adding them to /etc/sudoers, you can create a group just for that, say we name it dummy, then write the following

%admin ALL=NOPASSWD: ALL
%dummy ALL=(ALL:ALL) ALL

All users in the group admin and not in the group dummy can execute administrative tasks without entering the password.

All users in the group admin and in the group dummy (or only in the group dummy) can execute administrative tasks entering the password.


The currently logged-in user is set in the environment variable $USER

echo $USER

This should give you all you need. For a list of all users logged-in run

users


I still don't know what the problem is, but for anyone wondering, a workaround is to create a bash script only containing the command in Exec entry of the launcher and then using that script instead in the launcher itself.

# workaround.sh
#!/bin/bash

`wine /path/.../yourapp.exe`

....
Exec=workaround.sh
...


XRDP Desktop does not look same as Ubuntu Desktop

This would be expected if you simply perform a manual installation of xrdp package.  Assuming that you are using Gnome Desktop, you would need to perform some additional configuration changes in order to have same look'n feel in your remote session as when locally logged on on your Ubuntu machine....
To have the same look n feel, you have multiple options.  We usually create a file called .xsessionrc and we populate it with something like
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg

This would be for a single user.  You can also use the xrdp-installer script that basically perform the installation of the software and perform some post configuration actions that would provide you the same look'n feel when remotely connected as the one you have when connected to local console
the script and how to use it can be found here
Hope this help
Till next time
See ya


First of all, be sure to check the Ubuntu Server guide, it has a lot of information on installing a web server, database and LAMP applications.

As noted below (contrary to what I wrote first) Ubuntu does have a lamp package.

It installs the following packages:

libdbi-perl
apache2
apache2-bin
apache2-data
ssl-cert
libapr1
libaprutil1
libaprutil1-dbd-sqlite3
libaprutil1-ldap
apache2-mpm-prefork
libwrap0
libmysqlclient18
mysql-server
libaio1
libapache2-mod-php5
php5-common
php5-cli
libdbd-mysql-perl
libhtml-template-perl
mysql-common
libterm-readkey-perl
tcpd
mysql-client-5.5
mysql-client-core-5.5
mysql-server-5.5
mysql-server-core-5.5
php5-readline
php5-json
php5-mysql

Basically all you need. If you'd install packages by hand, you'd basicall need the same packages anyway. Note that many Apache modules are installed separately. So, if you'd  want to integrate OpenID authentication in Apache for example, you need to install the libapache2-mod-auth-openid package.
Luckily Ubuntu has a way to detect dependencies between packages, so you don't need to install everything be hand. If you find out you are missing some functionality you can use apt-cache search keyword (see this question), or, if you have the package aptitude installed: aptitude search keyword.

For example, if I want to find the PHP Pear package I do:

$ aptitude search php |grep pear
v   pear-phpunit-channel
i A php-pear

which shows me the php-pear package (note, the i at the beginning of the line means the package is installed. Similarly, when looking for the PHP GD package I type:

$ aptitude search php |grep gd
i A php5-gd                         - GD module for php5
p   php5-gd:i386                    - GD module for php5
p   php5-gdcm                       - Grassroots DICOM PHP5 bindings
p   php5-gdcm:i386                  - Grassroots DICOM PHP5 bindings
p   php5-vtkgdcm                    - Grassroots DICOM VTK PHP bindings
p   php5-vtkgdcm:i386               - Grassroots DICOM VTK PHP bindings

Here the php5-gd package seems the most promising (and is installed).

After a default install, all permissions should be set correctly. Permissions are set during package installation.
Normally name resolution should be done via DNS, not a local hosts file. Or are you talking about a small home server? In that case have a look at /etc/hosts.
Not in the same sense as Windows has. Which Ubuntu version did you install, Ubuntu Server or one of the desktop editions? Assuming you installed Ubuntu Server, there is no graphical user interface installed. On Linux configuration is done via text files, which can be found in the /etc/ directory. For example, Apache is configured via files in /etc/apache2, MySQL in /etc/mysql and PHP in /etc/php5.


Is Chromium not exploitable via "Oxide" vulnerabilities?

As far as I can tell, Ubuntu Security Notices are for software in main or restricted (What's the difference between multiverse, universe, restricted and main?). Only software in main and restricted are supported by Canonical, and hence, only they get USNs. Oxide is in main, but Chromium the browser is in universe.


The easiest way to create a installation/live flash drive from windows is with programs like unetbootin or rufus. Those programs download the installation image (iso, etc.) themselves and write it to the flash drive.


mysql failing to start with version 16.04.1

Your error is mentioned here:

2016-11-29T20:53:55.142992Z 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable

You should use sudo to start mysql service or make sure that the user account which is starting the mysql service has write access at the location where innodb_system


How do I download always the latest version of the programs when I use apt-get install [program]?

Packages in the official Ubuntu repositories are not always the current release versions from the developers. If the developers have their own repository you can always add that repository to your software sources and apt will pull the current version from there. Otherwise you will have to download the current version from the developer source and follow their directions for installing.


As you mentioned that all ports work on Windows but not Ubuntu, maybe you can try to use a newer kernel (A 16.04 / 16.10 LiveUSB will do) to see if it can make other ports work.

Anyway, at least it seems that your ttyS0 is working with echo / cat command. The last thing I can suggest is that if you still can't get any signal from you serial device, try to use stty command to change the baud rate:

sudo stty -F /dev/ttyS0  # Print current setting
sudo stty -F /dev/ttyS0 9600  # Set the baud rate

9600 here should be replaced with the correct baud rate.

More information about stty command can be found here.


How can TextField input be validated for long integers?

Adding notation: DoubleValidator.StandardNotation to the DoubleValidator fixes the issue. From its documentation:

  If notation is set to DoubleValidator.StandardNotation, and the input
  contains more digits before the decimal point than a double in the
  valid range may have, it is also rejected. If notation is
  DoubleValidator.ScientificNotation, and the input is not in the valid
  range, it is accecpted but invalid. The value may yet become valid by
  changing the exponent.


How do I know the system call for a particular command?

Shortly:

strace command [arguments]

For example:

strace mkdir test

For more info, see man strace.


Immediately backup any important data (documents, pictures, music, etc.), shut down the PC, then replace the hard drive. You will most likely need to reinstall your OS from scratch on the new drive.

If you want to take the risk, you can use a backup utility to create a custom image to install your OS with all your packages and configurations intact, but you will still need to manually backup your files first. With that many bad sectors I wouldn't recommend it, though, as it may cause the image to become corrupt.

449 is a very high number of defective sectors and is definitely a cause for concern.

This is why it is a good idea to regularly run full backups of your system.

EDIT: Personally I would recommend installing an SSD instead. Nowadays they are almost as cheap as HDDs, much faster than HDDs, and are much less susceptible to physical failures like this.