Ubuntu 16.04 server random boot crashes on Intel NUC5CPYH

Got it. I've found the following post on a known bug on Ubuntu 15.10 (kernel 4.2). Mine is Ubuntu 16.06 with kernel 4.4, and I upgraded Intel BIOS to 0054 (mar 2016).
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1521749

Briefly, the following solve the issue: BIOS > Boot > Boot Configuration > OS Selection > set Linux.
Then, I've booted/rebooted many many time, no more freezing.


From the ClamAV website page on how to upgrade:

  If you installed from a package, we suggest you find the approved package from your distro provider and install that. The ClamAV team does not maintain individual packages for every distribution build. If
  there are no new packages, you have three options:

  Wait
  Build Clam Package
  Install From Source

It is OK to wait because clamav is still working even though it's not the latest version. That warning is more FYI. Also, you don't need to manually run freshclam. If you type

tail -20 /var/log/clamav/freshclam.log

you should see some more info, telling you that the databases etc have been recently (as in, today) updated. When I do this, I see the same warning as you and the next message is don't panic: see https://github.com/vrtadmin/clamav-faq FAQ page So, don't panic.

I do not recommend compiling from source, as it will not be updated through APT, but here is the guide

Summary:

Uninstall the old version sudo apt remove clamav

Download the tar file from the ClamAV website

extract with tar xf clamav* then cd clamav* and then:

./configure
make
sudo make install

then run

sudo freshclam

As always, see the documentation for more help


How do I reformat a USB flash drive after burning Ubuntu Server onto it?

so it turns out that when i burned the iso image to the usb it modified the partition table and all i had to do was repartition the whole flash drive and it works perfectly (i used AOMEI partition assistant to partition the flash drive found here :http://www.disk-partition.com/ on windows 10)


Sequential numbering on file name (Continue numbering on multiple commands)

Keep the last used number in a file, say lastnum, then read it each time and increment it. In bash:
[ ! -f lastnum ] && echo 0 >lastnum
num=$(<lastnum)
let num=num+1
echo $num >lastnum
num=$(printf "%03d" $num)
echo "... using music$num.zip"


Broken grub rescue,due to corrupt Linux partition, will ubuntu reinstall fix it?

If you still have ubuntu root partition you can use Boot-repair. Link for how to do that https://help.ubuntu.com/community/Boot-Repair


How do I profile (and possibly control) demands on my GPU?

This answer is more generic because you don't give more info like if you run a mobile device and what drivers you are use.

First of all, check your module:

$ modinfo nvidia|grep -e Mobile
parm:           NVreg_Mobile:int

On notebooks you should have set NVreg_Mobile=1.

$ cat /etc/modprobe.d/nvidia.conf
options nvidia NVreg_Mobile=1 NVreg_EnableMSI=1

and rebuild you initrd with update-initramfs -c -t -k all.

The MSI setting is generally good for memory copy with a fast interface.

$ grep nvidia /proc/interrupts
45:  3969293       0   PCI-MSI-edge      nvidia

You should also use the lm-sensors package, which shows you the
system temperatures, voltages and fan speeds:

$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +43.0 C  (high = +80.0 C, crit = +85.0 C)
Core 0:         +40.0 C  (high = +80.0 C, crit = +85.0 C)
Core 1:         +42.0 C  (high = +80.0 C, crit = +85.0 C)

pkg-temp-0-virtual-0
Adapter: Virtual device
temp1:        +44.0 C

nct6775-isa-0290
Adapter: ISA adapter
Vcore:          +0.98 V  (min =  +0.00 V, max =  +1.74 V)
in1:            +1.10 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
AVCC:           +3.33 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:          +3.33 V  (min =  +2.98 V, max =  +3.63 V)
in4:            +1.02 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:            +1.04 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in6:            +1.07 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
3VSB:           +3.38 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:           +3.31 V  (min =  +2.70 V, max =  +3.63 V)
fan1:          1110 RPM  (min =    0 RPM, div = 32)  ALARM
fan2:          1028 RPM  (min =    0 RPM, div = 32)  ALARM
fan3:           562 RPM  (min =    0 RPM, div = 32)  ALARM
fan4:             0 RPM  (div = 128)
SYSTIN:         +34.0 C  (high = +85.0 C, hyst = +75.0 C)  sensor = CPU diode
CPUTIN:         +35.0 C  (high = +80.0 C, hyst = +75.0 C)  sensor = CPU diode
PECI Agent 0:   +43.5 C  (high = +80.0 C, hyst = +75.0 C)  sensor = Intel PECI
PCH_CHIP_TEMP:  +49.0 C
PECI Agent 1:    +0.0 C  (high = +80.0 C, hyst = +75.0 C)
cpu0_vid:      +0.000 V
intrusion0:    OK

If you think your GPU-fan is to slow, and the particular fan is listed,  then you can use the fancontrol tool to adjust it.

To read the temperature of you GPU use:

$ DISPLAY=:0 nvidia-settings -q GPUCoreTemp -n -t
51


I am unable to open in Files ->Devices ->139GB volume and 73GB volume

First open terminal and run this.

sudo apt-get install ntfs-3g

NTFS-3G is a stable, full-featured, read-write NTFS driver for Linux,

then run this command on the terminal to fix your NTFS partition. Replace XY with your partion name (sda4) - (Then the command for your partition is -- sudo ntfsfix /dev/sda4)

sudo ntfsfix /dev/XY


When i open my drive in linux it can't open ,what i do

one solution could be to boot to windows OS and then shut it down properly.  restart your pc, boot into ubuntu and try to access windows drives.

i have had this situation once and following above procedure solved the problem


Will there be the normal GNOME desktop available for download

"GNOME version of Ubuntu" is not a good definition, since the default Unity variant will also be using GNOME extensively (but not GNOME Shell). Unity and GNOME are not mutually exclusive.

If you mean a non-Unity GNOME version, it won't be "available for download", but on the CD and installed by default, since it will be the fallback for systems that can't run Unity.


Integrity check against package repository?

For checking the integrity of an individual file in a package against the repositories, there's no easy way short of downloading the package. The repositories typically provide these files:

Release{,.gpg}, InRelease - these provide the hashes of the Packages files.
The Packages file provides hashes of the packages.
The Contents file, where present, provides filelists of packages.

There's no file which provides the hashes of individual files - these are contained in the packages (DEBIAN/md5sums in the control archive).

So, if you don't trust the local system:

You'll have to download the Contents file (if available).
Match the file to the package using that file and download the package.
Then use the md5sums to verify the file.

If a Contents file is not available, and you don't trust the local system, have fun downloading every package to see what provided the file.

This does not scale.


"E: Unable to locate package fluxion" : This error is showing when i try to uninstall fluxion

Apt is the wrong tool for this job.

Apt handles ONLY .deb packages.
Apt has never heard of git (nor Snaps nor Flatpackage, nor Wheels, etc).
Apt has no way to track what you may have cloned.

If the software you cloned has a README file or other documentation, consult it. Also look for an uninstall script included with the software. Finally, consult the user community (or developer) of the software for uninstall instructions.
Git cloning is a method of software distribution. But, as you have discovered, it's not a method of software packaging. If it's great software, and the license permits, consider packaging it as a deb or a Snap so the entire community can enjoy it.


I want to protect files so that nobody can access these files or folders without me even not root user.

No. The root user can do anything to your system.

You, as a not root user are not allowed to do changes to the system outside your /home/ unless the admin gave you permission to do so.

  How To Password Protect or Encrypt Files Inside /etc/somefolder

That depends on what "somefolder" is. If this is a generic Linux folder: no. There is no generic method for the system to ask for a password and the system will always expect files to be accessible.

As an example: mysql uses /etc/my.cnf for its settings and would not understand why it can not open the file. It would error out or try to find a my.cnf elsewhere on the system.

If "somefolder" is part of your own software then yes it is possible. pgp is the command to use:

GPG(1)                       GNU Privacy Guard 2.2                      GPG(1)

NAME
       gpg - OpenPGP encryption and signing tool

SYNOPSIS
       gpg [--homedir dir] [--options file] [options] command [args]

DESCRIPTION
       gpg  is the OpenPGP part of the GNU Privacy Guard (GnuPG). It is a tool
       to provide digital encryption and signing services  using  the  OpenPGP
       standard.  gpg  features  complete key management and all the bells and
       whistles you would expect from a full OpenPGP implementation.

From command line go to the file you want to protect and do

gpg -c {file}

where {file} is your file. Enter a password for the file. It will ask for the password twice. You would then need to alter your software to ask for the password to open the file and make it accessible.

This only works for files you have access to. A normal user will not be able to do this on files in /etc/ if the admin secured the files as should be done. If you own a file in /etc/ as a not admin user you can.

It would be smart to have an unprotected version of the file somewhere else (on a USB or google drive) If you do forget the password the file is lost forever.


possible to mark all mail as read using one line terminal?

I was able to do it as follows:

Type mail, it tell me how many unread messages I have. Let's say, 31.
Type t 1-31, it displays all messages from 1 to 31 in a big concatenated sheet (turned out that t * achieves the same result, thanks to Jaime Hablutzel)
Type q to quit view mode, type q again to quit mail

That's it! mail says all 31 messages saved in your mbox file, and next time you enter it, it will say "no mail for you".


I assume by charm store you are referring to the website? I'm almost sure that Squid is overkill.

I see that machine 0 uses your proxy successfully. I can also see that the default route of machine 0 is 172.16.1.1, but the default route of the MAAS host is 172.16.1.2. It is set up incorrectly in the MAAS web interface, as you show in your screenshot. Change the "Router" configuration in the MAAS DHCP website to 172.16.1.2, and re-try


You can't if fast boot is in use!

As @guiverc has pointed out, its not a full and normal poweroff when you are using fastboot.

Well it's for your own good(your data's own health) ubuntu refuses to write. Who knows if you 'find a way' some way some how(I dunno how), your files might end up corrupt(or may be marked as corrupt on windows)!


Second monitor full screen flash problem 12.04

I had the same problem when using Chrome. Chrome, unlike other browsers, does not use the Flash plugin installed on your system but its own embedded plugin.

The problem is that this version does not work well on Ubuntu 12.04 when using multiple screens. So you need to force Chrome to use the default system Flash installation (the one that you use in other browsers, e.g. in Firefox).

To do that:

Type chrome://plugins in the address bar
Click the button "details" on the right side of the screen.
At this point you will see two versions of the flash plugin:Disable the one that has the most recent number version.
Reload the page where the flash content is.

That should solve the problem.

Please note that you will still have the issue (which is different from the one you are experiencing) that full screen videos will always start in one of your monitors, regardless of where your Chrome window is located; just follow the link below to fix that.:

How can I force fullscreen on my right screen?


Wine: using webcam with Cisco Jabber Video client

A large number of cameras have been tested with several versions of Cisco Jabber Video for TelePresence. While Jabber Video should work with all USB cameras, the cameras that the Jabber Video team are using on a regular basis and are guaranteed to perform well are:

Cisco TelePresence PrecisionHD USB Camera (recommended for business-quality HD video)
Apple iSight cameras
Cisco VT Camera III
Creative Live! Cam Socialize HD 1080
Lenovo Thinkpad cameras
Logitech HD Pro Webcam C910
Logitech HD Webcam C310
Logitech QuickCam Pro
Logitech QuickCam Pro 9000
Microsoft LifeCam Studio
Microsoft LifeCam HD-6000

Cameras that support HD 1080

Logitech HD Pro Webcam C910
Microsoft LifeCam Studio
Creative Live! Cam Socialize HD 1080
HP Webcam HD-4110


How to change wallpapers of all clients?

Set up a cron job on all machines that executes a script where you check 1 specific place for new images. Sample (untested) script with wget and ftp:

#!/bin/bash
wget -N -r -nH --cut-dirs=2 -t 180 -P /tmp ftp://user:password@name.remoteserver.com/dir/backgroundimage.gif
gconftool-2 --type string --set /desktop/gnome/background/picture_filename /tmp/backgroundimage.gif

Basically the 2nd line needs to be altered to the method you use to manually load the image to the machines. And then set up cron to execute this script to check every hour or once a day for new images.

You could even set it up to fetch a script where that script gets excecuted on the client machine and it then fetches the images and changes the background with gconftool-2. This would allow you to execute more than changing a background.

You can create a cron job with sudo crontab -e. This will show a line similar to this:

# m h  dom mon dow   command

(m minutes, h hour, dom day of month, mon month, dow day of week)
and underneath it you could add ...

0 * * * /path/to/executable

or

@hourly     /path/to/executable

to have /path/to/executable run every hour on the hour. Mind you: a script you put in here does not understand the path variable unless you include it. You can put this at the top to include $SHELL and $PATH:

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

Otherwise you need to make sure your script uses full path names to execute commands. More info on cron can be found on the Ubuntu wiki.

You can also use the /etc/cron.hourly directory to put a script there that gets run every hour. Example topics regarding the last part: What's wrong with my cron.hourly configuration? and Cron.hourly won't run.


How do I setup multiple memcached instances running on different ports?

This can easily be done by creating a file /lib/systemd/system/memcached@.service with basically the same contents as the memcached.service file with a few small changes:

[Unit]
Description=memcached daemon for %i
After=network.target

[Service]
ExecStart=/usr/share/memcached/scripts/systemd-memcached-wrapper /etc/memcached_%i.conf

[Install]
WantedBy=multi-user.target

You can then use systemctl to manage each service individually:

systemctl enable memcached@server1

systemctl start memcached@server2


How do you Make Ubuntu One re-authenticate?

From the UbuntuOne FAQ:

  Open System->Preferences->Passwords and Encryption Keys
  Right-click on the entry "Ubuntu One" and select "Delete"
  Open System->Preferences->Ubuntu One and it should prompt you to re-add the machine

In case you were wondering where the Ubuntu One token is, right click on Passwords:default and select unlock. The Ubuntu One token is inside that folder.


Unable to remove apache2 from ubuntu16.04

As mentioned in the command i solve the issue by uninstalling libapache2-mod-fastcgi via apt-get purge libapache2-mod-fastcgi and apache2-suexec via apt-get purge apache2-suexec.
finally

apt-get purge apache2


Ubuntu 18.04: Videos not playing, can only login using "Ubuntu on Wayland"

I partially solved the issue doing this:

dpkg-divert --list | grep nvidia-340 to show all nvidia-340 dependecies
For all of them I did dpkg-divert --remove *path*
apt --fix-broken install
apt update
apt upgrade
ubuntu-drivers devices
ubuntu-drivers autoinstall
Then reboot.
In case the screen resolution is lower than possible follow this tutorial

Hope you'll solve.


You can right-click the file, choose properties and view the Permissions tab; there you can change the read and write permissions (if you own the file) and view ownership status. In second case as you do not own the files in question, you can not delete them or change  the ownership 'as youself'; start a terminal, and run sudo chown user:user filename, replacing 'user' with your own username and 'filename' ofc being the file in question. Then you are free to manipulate or remove the file. Or a file owned by someone else can be directly removed with sudo rm filename.

It is generally best to avoid running anything with sudo, as it quickly creates all kinds of problems (such as this what you're having).


How to install Chrome browser properly via command line?

Google Chrome isn't in the repositories - however, Chromium is.

Google Chrome is only available for 64-bit Linux. I've included directions for 64 below.

To install Google Chrome, run the following:

sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome*.deb

If error messages pop up after running the command sudo apt install ./google-chrome*.deb then run the command

sudo apt-get install -f.


Bluetooth headset A2DP works, HSP/HFP not (no sound/no mic)

This is a known bug in bluez with the new Broadcom BCM20702A0 series adapters; yours is one of those. (see bug report)
The bug is rated "high", but it has not yet been fixed. You may want to add yourself to the list of people affected by the bug, and maybe post a message asking if there is any timeline on a fix.

Other possible solutions:

Edit /etc/bluetooth/audio.conf and under [General], add the line Enable=Socket. Restart blueoothd with sudo rfkill block bluetooth && sudo rfkill unblock bluetooth and see if it helps.


Ubuntu 14.04 Unity won't load, no access to terminal

I had this same issue, and couldn't even get a terminal at tty1. I figured it out, so I came back here to post my solution.

Right click on the desktop, create a folder.
Double-click the folder to load the file explorer.
Navigate to /usr/bin and load terminal (filename is gnome-terminal)
Now run CCSM and enable the Unity plugin. You'll get your stuff back.

Good luck!


unable to satisfy all constraints on the partition

If you're saying that GParted is showing the entire disk as being unallocated, then you probably have one of two problems:

Leftover RAID data -- If the disk was used with motherboard-based software RAID in the past, the leftover RAID data can confuse GParted. Typing sudo dmraid -E -r /dev/sda in Linux can correct this problem; however, you should be absolutely positive that the system isn't currently configured to use RAID before you do this. (Some computers use RAID even on single-disk setups -- weird, but true.)
A damaged partition table -- Any number of partition table problems can cause GParted to flake out and claim the disk is unpartitioned. Most of these can be fixed by using my FixParts program on the disk. This program is part of the gdisk package in Ubuntu.

You might also want to consult my Web page on this problem, which describes it in more detail.

If you mean that only some partitions seem to be missing, but others appear in GParted, then the problem has another cause. Providing more detail, such as the output of sudo parted /dev/sda print and a clear description of precisely what's missing, is necessary to diagnose and fix the problem.

Edit: Based on the information in the comment below, it appears that the partition table is damaged. FixParts might be able to help, but I make no promises of that, and I advise caution in its use. If FixParts doesn't do an adequate job, TestDisk might be able to recover the lost partitions.

Background, and to answer your questions: On a traditional Master Boot Record (MBR) partitioning system (which you've got), there can be up to four primary partitions, one of which (the extended partition) can serve as a placeholder for an arbitrary number of logical partitions. The partition that fdisk has identified as w95 ext'd (lba) is an extended partition. Under Linux, primary partitions (including the extended partition, if one is present) are numbered 1-4, while logical partitions are numbered 5 and up. All the primary partitions are defined in the first sector of the disk (the MBR), but each logical partition is defined in its own data structure, known as an Extended Boot Record (EBR), which is similar in structure to an MBR. The message about "invalid flag 0x6165 of partition table 7" means that a key identifying feature of one of these EBRs is damaged. Depending on the partitioning software and the partitions involved, this can make it difficult or impossible to recover the partitions in the usual way.

Partitions contain filesystems, but the two are distinct concepts -- a partition is just a set of contiguous sectors on the disk (say, sectors 2048 to 923,647). A filesystem is a much more complex data structure that enables you to store files in a partition. The two are often created and manipulated together, but there are tools for doing each part of the job separately. fdisk and parted, for instance, both manipulate partitions but not filesystems; while mkfs, tune2fs, fsck, and similar tools manipulate filesystems. Filesystem-manipulation tools typically take partition identifiers as arguments, since they need a way to locate their filesystems, and partitions do that -- the filesystem usually begins on the first sector of the containing partition. I'm babbling on about this because it's your partition table that's damaged; your filesystems may well be perfectly OK, except that with the partition table damaged, you have no way to identify their start points.

TestDisk ignores the partition table and scans for filesystems in order to construct a new partition table, which is why it might be useful -- it doesn't need the data structures that are damaged. OTOH, scanning the whole disk for filesystems can be time-consuming and can turn up stray bits of old filesystems that are no longer valid, particularly if you've re-partitioned or moved filesystems on your disk in the past. TestDisk is also likely to fail if the filesystem is damaged, which could be the case -- whatever damaged your partition table might not have stopped there, but might have wreaked havoc with one or more filesystems. Thus, TestDisk should be used only as a last resort.


ubuntu rightclick command line custom backup

You could easily achieve this using Thunar and its Edit > Configure custom actions. See official documentation on how to do this.

This said, I would advise against such setups. More efficient is to use an automatic backup and synchronization utility such as SpiderOak, which automatically backups the selected file and keeps a history of all historic changes. See Comparison of backup tools.


Can't log into MySQL with any user in Ubuntu 18.04

Have you tried adding -p after? So that it looks like this:

sudo mysql -u root -p


Don't understand following error: 'mkdir: invalid option -- '/'

There needs to be a SPACE after the -p, so..

sudo mkdir -p /usr/lib/jvm/


No, it is not. There is a list on the Ubuntu website that tells you the offical flavors. (A search on Google for "official ubuntu flavors" yields it as the very first result.) The current list is:

  Kubuntu
  Edubuntu
  Xubuntu
  Mythbuntu
  UbuntuStudio
  Lubuntu
  Ubuntu GNOME
  Ubuntu Kylin
  Ubuntu MATE

The list is here: https://wiki.ubuntu.com/UbuntuFlavors


Netbook as a server with external hard drive

This is a pretty good and simple guide on how to create a Samba share that can be read by Windows machines (note that this only handles the Ubuntu part, you would need to search for other Guides on how to mount it as drive in Windows). It also uses the command line, which means, in case the Netbook is to slow to handle a GUI, it would technically apply to Ubuntu Server too:

https://help.ubuntu.com/community/How%20to%20Create%20a%20Network%20Share%20Via%20Samba%20Via%20CLI%20(Command-line%20interface/Linux%20Terminal)%20-%20Uncomplicated,%20Simple%20and%20Brief%20Way!

If you want to sync files between two drives, I recommend you to do some searching about a tool called "rsync" and how to automate it


Delete Ubuntu dual boot on Mac w/ rEFInd

Removing Ubuntu

Open up Disk Utility from /Applications/Utilities.
Click on your hard drive in the left-hand sidebar (the drive, not the partition) and go to the "Partition" tab. Find the Ubuntu partition you want to remove (you probably labeled them when you first created them).
Click on the partition you want to remove, then click the small minus button at the bottom of the window. This will remove the partition from your system.
Click the corner of your Mac partition and drag it down so it fills up the free space left behind. Click Apply when you're finished.

Your Mac may take a minute to perform the necessary processes, but when it's done, your system will be back to its original Macintosh self. If you had rEFInd installed on your system, you can leave it there—it isn't going to hurt anything, but if you want to completely remove it do the following steps.

Removing rEFInd

As stated in the official documentation,

  I recommend stopping here, because the procedure for completely removing rEFInd from a Mac depends on your installation method and tends to be challenging for many Mac users, who are unfamiliar with the necessary command-line tools.

Basically, if you just want your Mac back, just follow the procedure before this and leave rEFInd alone. But, if you want to completely remove rEFInd, then continue.

You must first determine where rEFInd is installed. This can be any of several locations:

If you installed rEFInd 0.8.3 or earlier with the default options, or if you used the --notesp option with rEFInd 0.8.4 or later, it will be /EFI/refind on your main partition.
If you installed rEFInd 0.8.4 or later with the default options, or if you used the --esp option with rEFInd 0.8.3 or earlier, it will be in EFI/refind or EFI/BOOT on the ESP.
If you used the --ownhfs option to refind-install, rEFInd will be in the System/Library/CoreServices directory on the volume you specified.
If you installed rEFInd manually, it will be wherever you put it.
In all cases, there could be duplicate (inactive) rEFInd files in unexpected places. This is particularly true if you tried installing rEFInd multiple times, each with different options to refind-install. Thus, if you delete rEFInd and it still comes up, you may have deleted the wrong files. (Note that dragging files to the Trash may have no effect, though—at least, not until you empty the Trash.)

If necessary, mount the ESP or rEFInd-specific HFS+ volume, as described in Installing rEFInd Manually Using Mac OS X. (The mountesp script that comes with rEFInd will handle this task.)
Verify that rEFInd is installed in the directory noted in step #1. If a refind.conf file is present, rEFInd is almost certainly installed in that directory. If not, it's not rEFInd there and you should not proceed. Be extra cautious about deleting the System/Library/CoreServices directory, since that's the default location of the OS X boot loader! Never delete this directory from your OS X root (/) partition, only from the partition you specified to refind-install using the --ownhfs option.
Once you've identified the rEFInd directory, delete it, or at least the rEFInd boot file. This file may be called refind_x64.efi, bootx64.efi, boot.efi, or conceivably something else. You may need to use sudo rm at the command line to accomplish this task, as in sudo rm -r /Volumes/ESP/EFI/refind.

All credit for this information goes to the sources cited below.

Sources

LifeHacker Uninstall Windows/Linux after dual-boot
rEFInd documentation


There is no automatic way to do this. There are two ways to go about it.

Long Way (safe): Go through and run sudo apt install [package name] with all known packages. It will tell you in the errors what others are needed. Add those to your list and keep trying until all dependencies are satisfied. This works correctly almost every time (I have had to do this around 45-55 times. It has never failed), but expect it to take 30 minutes to an hour and a half.
Fast Way (may fail to a degree): Run sudo apt-get -f install [package name] with one package at a time. (i.e. sudo apt-get -f install libgl1-mesa-dri:i386) That will force dependencies to install, but you sometimes get a slight error with Steam accepting the packages, depending on your release. 15.04 almost always fails in this way, but 14.04 LTS generally accepts them.

If steam doesn't accept them, you have to launch steam with a script. Do this to make the script:

In terminal, type: cd Desktop && gedit launch_steam.sh && sudo chmod +X launch_steam.sh
When the text editor opens, insert this:

#!/bin/bash
export LD_PRELOAD='/usr/$LIB/libstdc++.so.6'
export DISPLAY=:0
steam &

Make sure your whitespace is correct.

While this does work for opening the launcher, it often won't work for the individual games. If it doesn't, sorry, you are kind of out of luck if you don't want to create that script for each game. (replace steam with the command to run the game).

Explanation: the first two commands create a shell script file on your desktop and the last one allows you to run it. The script allows you to force steam to use the proper drivers. The ampersand makes steam run in background (just its processes, don't worry, the window will still appear), rather than just open then stop.  If you made the script, you will have to open steam by typing this in the terminal ./Desktop/launch_steam.sh.


Quickly will still overwrite the version number, so if you want to use a different versioning scheme than the default month.release one, you can override it for each release using the <version> parameter.

quickly release <version>

Note that you'll need to run the command with the parameter for each release you make, as Quickly won't remember your versioning scheme and will fall back to the default if you don't specify the <version> parameter.

The support for the <version> parameter in the packaging-related commands is as follows:

package - doesn't change the version number, so no need for the  parameter
share - does not support the <version> parameter, it appends -public to the version, but it does not bump it.
release - fully supports the <version> parameter
submitubuntu - fully supports the <version> parameter

In any case, a really easy thing to do is to just delete the package with your old versioning scheme from the PPA and re-run quickly share


Make sure you give the VM at least 1GB of RAM. RAM is known to crash the UI installer.


You might try removing the broken GPT with the following steps.

From a terminal window run:

sudo gdisk /path-to-usb-drive

Where /path-to-usb-drive is something like /dev/sdc.
Use x to enter the expert menu.
Use z to zap the GPT.
Use w to write the partition table and exit.

The msdos partition table (aka MBR) will be the only partition table remaining.


Linux Mint 12's MGSE interface in Ubuntu?

You can try MGSE[Mint Gnome Shell Extension] from webupd8team gnome3 ppa:

sudo add-apt-repository ppa:webupd8team/gnome3
sudo apt-get update
sudo apt-get install mgse-bottompanel mgse-menu mgse-windowlist

Or you can directly use linux mint repository. Just add to your software sources

deb http://packages.linuxmint.com/ lisa main

and do

sudo apt-get update
sudo apt-get install linuxmint-keyring mint-meta-mgse


No HDMI output from dell latop with nvidia 1050 graphic card

I've finally got the answer.
in the dell official website,the last site I was thinking to visite, someone resolved the same problem I had:
https://www.dell.com/community/Precision-Mobile-Workstations/External-Monitor-not-working-Ubuntu-nvidia/m-p/7286631#M1634

Hope this will help other people with my same problem


Psychonauts for Ubuntu 12.04 won't start

Two things you can try. These may not work on Nvidia, it works on Intel chips, even if it doesn't work it will not harm anything.

First see if you have the needed libraries for texture compression needed for mesa, the easiest way is to open the Software Center and search for;

libtxc-dxtn-s2tc0

If you have Psychonauts installed on a 64bit system it also needs the i386 version of these libs (note if you installed Psychonauts with the Software Center the i386 version should have been installed but check to make sure).

libtxc-dxtn-s2tc0:i386

If you don't have either version of the above libs, install them and try to launch again.(Note: if you can run Amnesia from the bundle it is likely that the 64bit libs are installed already)  If you have them or if after install the launch still fails:

You can try to force the system to advertise  S3TC support(this was needed for Intel Chips without the i386 version of the libs installed) by launching via the terminal with:

force_s3tc_enable=true  <path to application launcher>

Forcing the S3TC can cause misbehavior so you will have to try it and see if it will work.  If the above command does work you can edit the .desktop file to launch the game with the force enabled by using gedit

sudo gedit /usr/share/applications/psychonauts.desktop

Edit the Exec=line and add force_s3tc_enable=true <plus a space> in front of the launch path  it should read something like force_s3tc_enable=true /opt/psychonauts/psychonauts.64bin Note the space between the true and the/opt, further note that this is only an example. I no longer have psychonauts installed as my graphic card was not strong enough to handle it(but I did get it working with the force command) so the actual laucher could not have the .bin64 at the very end, but you should know exactaly what the path is and you only need to paste the force_s3tc_enable=true in front of the path in the Exec= command, just make sure to add the [space] before the path

I used RAOF's answer as my source for the commands, I only tried to make it specific to you question, so if this works please make sure to upvote his answer to give him some credit for the original info.

As I noted above I no longer have Psychonauts installed so I can no longer compare the errors that you are getting to the ones that I was.
{EDIT} I have tried installing via the Software Center.  I was able to get it to launch without any problems as the .deb file for the i386 version of the libs were downloaded as a dependency.  I have edited my answer above to reflect this as well.  My graphics chip was still not strong enough to handle the game but I was getting much better performance than when I had to force S3TC performance. With both the 64 & 32 bit libs installed the "force" part of my answer my be unneeded but I will leave it in place in case it is needed by somebody.{EDIT}


You may very well be connected to multiple networks at once, depending on your setup.

If you are interested in knowing which interface is being used for Internet traffic, try using the ip route command and look at the default route.  For example, on my system it shows that traffic will travel over eth0 if it isn't matched by any of the other rules in the table:

$ ip route
default via 192.168.0.1 dev eth0  proto static
169.254.0.0/16 dev eth0  scope link  metric 1000
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.10  metric 1


How to set how apps invoke firefox (stop using -remote openURL)

It seems this is not so much a Linux + Firefox issue, but specifically an Xfce configuration which is the culprit.

(EDIT - it was a combo firefox + old apps issue. firefox have since patched the issue with 36.0.1 release)

Answer obtained on UbuntuForums

This being the fix

sed -r -e 's/^(X-XFCE-Commands(WithParameter)?=)%B -remote "openURL\(.+?\)";(.+)$/\1\3/' -i /usr/share/xfce4/helpers/xfce4-firefox.desktop

And this being the bug


Try this:

Create udev rules

sudo gedit /etc/udev/rules.d/51-android.rules
Insert this lines, save and exit

SUBSYSTEM=="usb", ATTR{idVendor}=="1bbb", MODE="0666", GROUP="plugdev"
Restart udev

sudo service udev restart
Enable USB Debug in your phone (In Android 4.2.x and up Developer Options is hidden, to make it visible, do the following)

Tap seven times in Build Number: Settings > About Phone > Build Number
You will get a message saying you have enabled Developer Options or something like that, go back to Settings and you will see Developer Options in there.

Connect phone with USB cable
Open Terminal and type

adb devices

I have Alcatel OneTouch Pop C7 (7041D)

List of devices attached
6H9PY5ZPJV9HO7R4    device


Grub can see windows 8 but not ubuntu 12.10

I managed to solve my problem by running boot repair for a couple of times. Why it took few times to get it right, I have no clue. I followed these instructions.
https://help.ubuntu.com/community/UEFI
I am very happy with my ubuntu and windows 8 living next to each other.


How to delete history of Totem and Gedit in gnome shell?

You can find both recent-used.xbel and the totem folder in the following locations;

your home folder
.local/share folder

If you delete the recent-used.xbel file and the totem folder, all of the history of your general applications and totem will be deleted.


What are the best especial effects programs for Ubuntu ? And how can I install it?

Blender:

Features:

Photorealistic Rendering
Fast Modeling
Realistic Materials
Fast Rigging
Animation toolset
Sculpting
Fast UV Unwrapping
And much more. Check them here

Install latest version from PPA:

sudo add-apt-repository ppa:irie/blender
sudo apt-get update
sudo apt-get install blender

Avidemux:

  Avidemux is a free video editor designed for simple cutting, filtering
  and encoding tasks. It supports many file types, including AVI, DVD
  compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks
  can be automated using projects, job queue and powerful scripting
  capabilities.

Installation:

sudo apt-get install avidemux

Cinelerra

Installation :

sudo add-apt-repository ppa:cinelerra-ppa/ppa
sudo apt-get update
sudo apt-get install cinelerra

Kdenlive

  Kdenlive is an intuitive and powerful multi-track video editor,
  including most recent video technologies.

Installation

sudo add-apt-repository ppa:sunab/kdenlive-release
sudo apt-get update
sudo apt-get install kdenlive

Kino
LiVES

Lumiera

  Lumiera is a Free/Open Source Non-Linear Video Editing (NLE)
  application project for GNU/Linux

  It was born as a rewrite of the CinelerraCV codebase, but developed
  later into an independent project with its own name. The application
  is still in an pre-alpha state and not usable for normal work.

Installation from source

apt-get installation

OpenShot Video Editor
Pitivi
Shotcut
VideoLan Movie Creator (VLMC)


One problem might be that Ubuntu 20 ships with kernel version 5.4. The kernel for your driver is limited to 3.4. Might need a different Ubuntu dist? Or maybe time for a GPU upgrade? Either way, that's probably your main issue.
I've successfully installed AMD drivers on Ubuntu 20.04 for the following cards:

5500 XT
RX Vega 64

I know those cards use a different driver, so adjust the naming convention(s) accordingly. Maybe this will be helpful for someone else.
Let's get a clean install, first.

locate amdgpu-uninstall

Should be /usr/bin/amdgpu-uninstall...run it.

sudo /usr/bin/amdgpu-uninstall

If it fails to delete /opt/amdgpu/ and/or /opt/amdgpu-pro/ directories, then:

sudo rm -rf /opt/amd...

Here is your driver:
https://www2.ati.com/drivers/legacy/amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.zip
You'll need to unzip it.

sudo apt-get install unzip

unzip ~/Downloads/amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.zip

./amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.run

Again, wrong kernel, so this is probably moot.
You could try giving a different driver a whirl?
https://www.amd.com/en/support

tar -xvf ~/Downloads/amdgpu-pro-$VERSION.tar.xz

sudo ./amdgpu-pro-$VERSION.tar.xz/amdgpu-install --opencl=legacy,rocr

Add yourself to render and video groups

sudo usermod -aG render $USER

sudo usermod -aG video $USER

sudo reboot

Changes won't take affect until you reboot.
Finally...

sudo apt install darktable

sudo darktable-cltest

Good luck.
May the odds be forever in your favor.


Budgie Panel 100% CPU usage and black / not visible

I was able to reset the settings with
budgie-panel --replace --reset


The sec=ntlm is what is causing it to throw the error. Just remove that.

At some point between 14.04 and 18.04 pre-beta this argument went away.


Ubuntu 12.10 skype 4.1 cannot properly run wrapper

Link to the thread that fixed this problem

Ubuntu Forums:

  I dragged and dropped this version

skype-wrapper

  from this location /usr/share/application/

onto the Launcher.


How to install graphics drivers for Asus EEE PC x101ch?

You can't get a video driver but you can still get a good, smooth video playback. Take a look at my tutorial to learn on this and more:

Asus Eee Pc X101ch and Intel Atom: Get A Suitable Video Playback!

Extract from the post:

There is no available driver for this GPU. That means we can't use hardware graphics acceleration. But we can still get a much better video quality by installing another video player. We will install SMPlayer. We will also install MPV player. SMPlayer is a great MPV player front-end. Installing SMPlayer should also cause the installation of MPV (dependency).

So, we will install two packages

SMPlayer
MPV

For example, run

sudo apt install mpv smplayer

Next, open SMPlayer and make sure you got the right "MPlayer/mpv executable" setting. Check this by opening Options > Preferences, go to General menu > General tab: you should read MPlayer/mpv executable: /usr/bin/mpv. It should be already set this way; if not, change it.

Now, go to Options menu > Preferences and change these settings:

General > General
Enable screenshots = false (unchecked)

General > Video
Output driver = x11
Start videos in fullscreen = true (checked)

General > Audio Synchronization
Audio/video auto synchronization = true (checked)
Audio/video auto synchronization Factor = 100
A/V sync correction = true (checked)
A/V sync Max correction = 0,10

Performance > Performance
Allow frame drop = true (checked)
Threads for decoding = 4
Use core AVC... = true (checked)

Now, try it! Play some video file from your hard disk. Still not perfect? You will probably get much better results by pressing F to switch to full screen, if not already done. Now, there are (probably) no frames being skipped so the movement is fluid. Pretty good for such a small computer!

Finally, go to: Start Menu > Preferences > Preferred Applications. Select Multimedia tab. Make SMPlayer your preferred Video Player, if you want.

Tested and approved with these versions:

SMPlayer Version: 15.11.0
MPV Version: mpv 0.14.0


Is there a straight forward 3D sketch tool capable of producing wireframe vector images?

As an alternative Freecad (http://sourceforge.net/apps/mediawiki/free-cad/index.php?title=Main_Page) can project 2d views from 3D objects.


You can find the instructions for install right here.

They run through 4 steps to install, with superseding steps to run tomcat.  Here they are:

1. Verify Java

Tomcat 9 is designed to run on Java SE 8 or later.  To check your version, run this command:

java -version

For instructions on installing java, visit this link.

2. Download Tomcat Archive

Download the archive using these commands or download it from tomcat's official download page.

cd /opt
wget http://www.us.apache.org/dist/tomcat/tomcat-9/v9.0.0.M1/bin/apache-tomcat-9.0.0.M1.tar.gz
tar xzf apache-tomcat-9.0.0.M1.tar.gz
mv apache-tomcat-9.0.0.M1 tomcat9

3. Configure Environment Variables

Before starting, you'll have to define your CATALINA_HOME variable:

echo "export CATALINA_HOME="/opt/tomcat9"" >> /etc/environment
echo "export JAVA_HOME="/usr/lib/jvm/java-8-oracle"" >> /etc/environment
echo "export JRE_HOME="/usr/lib/jvm/java-8-oracle/jre"" >> /etc/environment
source ~/.bashrc

4. Setup User Accounts

In the terminal run:

sudo nano $CATALINA_BASE/conf/tomcat-users.xml

and add the following lines between the <tomcat-users> and </tomcat-users> open and close tags:

<!-- user manager can access only manager section -->
<role rolename="manager-gui" />
<user username="manager" password="_SECRET_PASSWORD_" roles="manager-gui" />

<!-- user admin can access manager and admin section both -->
<role rolename="admin-gui" />
<user username="admin" password="_SECRET_PASSWORD_" roles="manager-gui,admin-gui" />

Hope it works!


Where is the current KDE Plasma 5 theme saved?

According to this GitHub, currently enabled themes are stored in the ~/.config directory.

Appearance

Global Theme

.config/kdeglobals
.config/kscreenlockerrc
.config/kwinrc
.config/gtkrc
.config/gtkrc-2.0

Plasma Style

.config/plasmarc

Application Style

.config/kdeglobals

Window Decorations

.config/kwinrc

Colors

.config/kdeglobals
.config/Trolltech.conf

Fonts

Fonts

.config/kdeglobals
.config/kcmfonts

Icons

.config/kdeglobals

Cursors

.config/kcminputrc

So, I can now write a simple shell script that will save these files into a zip file and a script that will extract a zip file into this directory.


Style windows like Aura window manager from Chromium OS

Desktop Window Decorations can be managed by the window decoration engine itself. In this case I will suggest the usage of Emerald Window Decorator. You may need to also install Compiz Config Settings Manager in order to obtain a better results.

To install Emerald simply drop the next in a terminal:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install emerald

Provide your user password and wait for Emerald to finish installing. After which you will need to run emerald --replace in order to allow Emerald to take control on the window decoration. The basic decoration (red in my case) may look ugly, but you can find fancy Emerald themes by simply running a search on the net using your favorite search engine, this page -in example- contains cool windows decorations based on Emerald.

The Radiance_Suite by nale12 looks much like the effect you're after. But playing with the settings in the "Edit Themes" tab of the Emerald Themer you can create your own customized theme starting from an existing one.

In combination with a Chrome's Aero theme you may get the full effect you're looking for in Chrome, but Aero themes will require gtk2 so you may find a major problem to make Chrome's Aero themes transparent.

During the process to get exactly what you wish you may find an issue or two, but it will be funny and illustrative, believe me.

Good luck!


On an MSI laptop, how do I disable the backlite keyboard

Mine is an MSI GL62.  I was able to do that with Fn + + and Fn + -
Took me a while.


Cannot find a way to load a custom xkb keymap on login in Kubuntu 20.04

This is explained (for another layout, but you'll find your way) at the bottom of this page.


Grub error prevents booting Windows 8 from DVD

For booting from CD/DVD you don't need a bootloader such a grub. You usually use the BIOS or EFI. Insert the Windows DVD and reboot your computer and press the one of these keys: F1, F2, F8, F10 or DEL. Then you get to the BIOS and EFI and you can configure your BIOS to boot from DVD or directly select you DVD-Drive to boot. After this you should reach the Windows 8 installer.

http://en.wikipedia.org/wiki/BIOS

Tutorial: https://www.youtube.com/watch?v=_ZJ5i3eYgKA


Starting Ubuntu on Windows 10 PC with Secure Boot

The problem here is that ubuntu overwrites the windows boot manager when installing, so when windows upgraded it cannot boot because the windows loader is missing.

I strongly recommend you to restore the windows 10 boot, finish your upgrade(because for some reason windows requieres reboot) and then restore the grub.

You must do a very large task, so let's see

First:

Go and put your windows 10 CD/DVD and boot it if you have a USB is more faster, boot the CD/USB and click in 'repair', go to advanced options and then select command prompt.

Type this:

bootrec /fixboot
bootrec /fixmbr
exit

Second:

Reboot and then you will be able to boot windows, use rufus or burn another ubuntu live cd boot it and then for restore grub . Start a live session.

And in the terminal type.

sudo grub-install /dev/sda

It can vary the name of the disk make sure of that using lsblk before using it.

That's all


The existence of a user account in itself does not mean that user has any privileges, whether it's a "system" user or a regular user.  If you went ahead and created a new system account it would be able to do nothing - it would have the same privileges as nobody (indeed, most system accounts are created for the purpose of giving something as few privileges as possible).  Only someone with the privileges to do so (ie, superuser) can give another user privileges, by modifying ownership or permissions in the filesystem.

The onwership and permissions throughout a complete Linux installation are so complex that you can't describe exactly what they all should be in a single post.  If you suspect that your system has been compromised, you'd have to tailor your treatment based on exactly what the situation is.  If you have no reason to suspect this is the case then it would be impractical to audit everything in your system to ensure nothing has more permissions than it should.

Another note: system accounts generally don't have a password because you don't ever need to log in to them.  When an account lacks a password in .passwd, it doesn't mean you can log in with no password, it means you can't log in to that account at all.  The account can only be used when a privileged process spawns or switches itself to using that account.


Is there any value to using Deja Dup in addition to Ubuntu One file sync?

Ubuntu-One is an excellent tool to synchronise files and folders between multiple machines using the "ubuntu" cloud as storage.  Synchronisation is done automatically when it detects a file change.

However, Deja-Dup is another versatile tool in that you can backup & restore folders to local storage, a local network machine, a remote machine or indeed to a Rackspace or Amazon Cloud - and can be done on a timed-schedule.

I use both Ubuntu-One and Deja-Dup to provide backups - Ubuntu-One to allow me to sync files across multiple computers in real-time and Deja-Dup to backup Ubuntu-One files on a timed-schedule.

The reason I do this is the small-print in the Ubuntu-One terms & conditions - you are responsible for backups of files in the UbuntuOne Cloud.


pip install creates directory in site-packages but not in bin directory

Usually you pip install anything either with sudo systemwide:

sudo pip install celery

or with --user locally in home directory:

pip install --user celery


Executing Command in Bash Script that requires Input

Guessing you have a php script that contains some input handle like this fopen ("php://stdin","r");, if you want a bash script to 'type in' a 'yes', you may simply use pipe redirection:

#!/bin/bash
# some commands
echo "yes" | /usr/bin/php /path/to/php/script.php
#


Why won't Visual Studio Code update run on 20.04?

I found the details to work through this at:
https://code.visualstudio.com/docs/setup/linux
I still had some challenges.
The way I was finally able to install the update was to run it directly from the command line :
sudo apt install ./<file>.deb

First download the new .deb
then run the command shown above (using the file name of the deb you downloaded) and the install will actually run.

This is the only way to get it done.
If you double-click the deb and try to run it, it will only show you the current version installed like:

This shows the correct version because I didn't get a snapshot with the previous version.  However, the install will not run by double-clicking the deb.


Control external monitor brightness via software

I don't think your desired solution of getting your external monitor in /sys/class/backlight will work, but the good news is that you can have the nice brightness animation!

Try

notify-send " " -i notification-display-brightness-low -h int:value:50 -h string:x-canonical-private-synchronous:brightness &

Now we can make a script that simulates Ubuntu's brightness changer:

#!/bin/bash
#get current brightness
presbright=$(ddccontrol -p | grep -A1 0x10 | tr -d '\n\t' | sed 's/.*value=\([^a-zA-Z]*\),.*/\1/')
#stepsize for the brightness change
stepsize=10

case "$1" in
        up)
          newbright=$(( ${presbright}+${stepsize} ))
          newbright=$(echo $newbright | awk '{if($1 < 100){if($1 > 0) print $1; else print 0;} else print 100;}')

          notify-send " " -i notification-display-brightness-low -h int:value:$newbright -h string:x-canonical-private-synchronous:brightness &
          ddccontrol -p -r 0x10 -w $newbright
        ;;
        down)
          newbright=$(( ${presbright}-${stepsize} ))
          newbright=$(echo $newbright | awk '{if($1 < 100){if($1 > 0) print $1; else print 0;} else print 100;}')

          notify-send " " -i notification-display-brightness-low -h int:value:$newbright -h string:x-canonical-private-synchronous:brightness &
          ddccontrol -p -r 0x10 -w $newbright
        ;;
        status)
          echo $presbright
        ;;
        *)
          echo "Accepted arguments are: up, down, status."
        ;;
esac

exit 0

As you can see it clamps the values between 0 and 100. Now you can bind the up and down calls to the script to some keyboard shortcuts of your choice with System Settings > Keyboard > Shortcuts, like fotomonster suggested.

Notes:
I don't know how much time ddccontrol -p takes, if it is too long you can also add a sync option to the script which saves the brightness value of the monitor to a file. Then instead of getting the current brightness from ddccontrol you can simply get it from your file, which should be much faster. Of course you would need to update the up and down calls to write the new brightness to the file...

script inspired by this post on archlinux.


DNS Server - Help with Redirect traffic of a specific url to a Local IP address

Welcome to Askubuntu

It's very common thing and widely applied by system administrators.
You need to add your  external router/Gateway ip in your Cname and other records. You can edit your name records using  domain name provider. This will redirect users to your network's router/gateway from outside.  At your side You need to configure router (depends on your router/gateway) port forwarding  80 port to local your server's 80 port. Now users will be directly redirected to your local server.


fstab parse error when adding mhddfs entry

Not precisely sure what i did but here is the fstab that made everything work!

UUID=dd3d249f-6912-4979-88c0-ee02c72c1875 /               ext4    errors=remount-ro 0       1

UUID=44B0-FDB4  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/sdb3 during installation

UUID=e6b9121b-a133-4222-a547-65c3fb652d2b none            swap    sw             0       0
LABEL=8TB /mnt/8TB auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=5TB /mnt/5TB auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=6TB /mnt/6TB auto nosuid,nodev,nofail,x-gvfs-show 0 0
mhddfs#/mnt/6TB,/mnt/8TB,/mnt/5TB /Storage fuse allow_other,nofail,default_permissions,nonempty 0 0

It seems the 3 drives i was attempting to mhddfs together werent mounting on boot. In Disks I removed the auto mount and changed them to Mount By Label for easier identification. I suspect the quotations around the Seagate drive may have caused issues but Im not sure. Hope this helps someone!


To add the character press the following keystrokes:

ctrl-v
down arrow (15 times or 15G to go to line number 15 directly)
I (Capital letter)
#
esc

To delete the character press the following keystrokes:

ctrl-v
down arrow (15 times or 15G to go to line number 15 directly)
x

Please pay attention to lower and capital letters. They are important in vim.


Scanning with an Epson xp-310 on Ubuntu 12.04

You can download Epson scanner drivers from HERE

Download deb packages according to your platform (i386 or amd64) with ltdl7 in name, place theь to your home directory and install by

sudo apt-get install iscan*.deb

You need iscan, iscan-data and a network plugin, if you need to scan over network.


Transfer installed application/program via pendrive

Creating a remastered DVD is perhaps the best option for you. Have a look at this question, which gives extensively explains how to do this.


You are not confused about which dconf you are using.

dconf takes the approach that, in the default configuration, there should be no files in /etc/.  You only add files there if you want to make changes to the default configuration.  For that reason it's true that /etc/dconf/ doesn't exist by default.  You need to create it and populate it according to the documentation on that wiki page in order to setup profiles.

You can indicate a dconf profile in another directory. For example:

export DCONF_PROFILE=/home/user/mydconfprofile


I used the following approach:

sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe'
sudo apt-get update
sudo apt install mysql-server-5.6 mysql-client-5.6

If an error occurs during the execution of the last command take a look at the comment section of this answer.


This is what I use as a workaround:
1) Install ccsm
2) Open ccsm
3) Go to "Preferences" and "Export" your settings (save)
4) Go to "Preferences" > "Backend" and set it to "Flat-file configuration Backend".
5) Right click on Desktop and make a New Folder
6) Open the New Folder and navigate to /usr/bin
7) Open gnome-terminal from within the folder
8) Into terminal, run: ccsm
9) Go to "Preferences" and "Import" the settings saved on step "3"
10) Done.


Assuming that you have everything else set up properly (firewalls, drivers, etc) you could try installing the daily sane ppa.  This got a Canon Maxify working for us when nothing else did.


Safely move (and extend) Ubuntu Partition

In principle (without actually seeing your partition layout) you should be able to simply extend the Ubuntu partition using the unallocated space.  This process ought to be perfectly safe.  However, in real life, nothing is guaranteed.  Why not use disk imaging software (e.g. Macrium Reflect Free Edition for Windows, Clonezilla for Linux) to make a backup of the entire hard disk just in case things go south with GParted?  Otherwise, there is an excellent tutorial on the use of GParted for multiple disk operations at:  http://www.dedoimedo.com/computers/gparted.html#mozTocId247821


How do I type [ and \ with a Mac keyboard?

I'm setting on a macBook pro - same keyboard pretty much!

I've switched my layout to My Language [Macintosh] - now i can make:

[ ] ← RightAlt8 & RightAlt9
{ } ← RightAlt7 & RightAlt0
\ ← RightAlt+

So it's pretty much the best solution i found, as it makes it manageable by doing it as windows normally do, but it's sorta off from the normal mac way.

On a side note i have my Cmd button mapped with Ctrl and made some changes so it functions almost like Cmd button in OS X. - This way i lost the Super key but it's more to my liking ;)


Mendeley Desktop won't open on ubuntu 14.04

It appears like you are missing a library. If you search for libsmime3.so you will hit this page telling you that file is part of the libnss3 library. So try:

sudo apt-get install libnss3

and then retry the mendeleydesktop installation.


Ubuntu keeps crashing on Huawei Matebook D (Ryzen 5 2500u)

It seems there is a ton of issues on IOMMU with the ryzen processors. I also faced
it. Try to add the following option to /etc/default/grub at line GRUB_CMDLINE_LINUX_DEFAULT:

iommu=soft

Then run

$> sudo update-grub

Finally reboot


What are limitations of ubuntu phone comparing to ubuntu desktop?

This is what told to be the fact:

Ubuntu Touch (Ubuntu Phone) uses the Qt 5-based touch user interface and various software frameworks originally developed for Maemo and MeeGo such as oFono as telephony stack, accounts-sso for single sign-on, and Maliit for input. Utilizing libhybris the system can often be used with Linux kernels used in Android, which makes it easily ported to most recent Android smartphones.

Ubuntu Phone OS utilizes the same core technologies as the Ubuntu Desktop, so applications designed for the latter platform run on the former and vice versa. Additionally, Ubuntu Desktop components come with the Ubuntu Touch system; allowing Ubuntu Touch devices to provide a full desktop experience when connected to an external monitor. Ubuntu Touch devices can be equipped with a full Ubuntu session and may change into a full desktop operating system when plugged into a docking station. If plugged the device can use all the features of Ubuntu and user can perform office work or even play ARM-ready games on such device.


How can I set up a portable virtual machine?

Export VM
With Virtual Box you can easily export, import or even clone your VMs to any place. This means, that once you export your VM to an external storage device you will be able to import this machine to any other instance of Virtual Box (of course irrespective of host OS).
Doing so is likely to be not so comfortable as you will have to export/import your machine everytime you made changes on the files hosted on your virtual drive. Depending on this drive size it may also take up quite some time to copy these data.
Define working directory on external drive
Therefore I suggest you set up Virtual Box to use a directory on the external drive as a standard location. In Virtual Box Manager open File - Preferences -General to define a "Default Machine Folder" than can also be on a (mounted) external drive.

Import VM
Then you also need to put your (previously exported) virtual hard disk there. Choose  this location for the individual machine hard disk:

Carry your virtual machine to any place
You will now have a set up that not only stores the virtual disk drive but also the Virtual Box working directory for e.g. settings, snapshots etc. on the external drive.
Virtual Box is capable of running a 64-bit guest OS on a 32-bit host but this may not be as stable as when we stay within our architecture. You may need to test this first.


How to allow Guest session to access printers and scanners?

You can try by unplugging and plugging again of the printer from the USB port when you are in guest session mode. Thus, Ubuntu will know that the curent user is the owner of the device.

Also, this post can be useful: Mount device with r/w access to specific user.


The default network manager from Ubuntu has no redial option for usb modems which is the cause for all problems

Here's what I did to fix my connection issues with MTS blaze.

Install Gnome-PPP which is a front-end for WvDial

Run the below command in terminal to install.

  sudo apt-get install gnome ppp

And for the disabled network icon here's a quickfix :


Create a local target directory

mkdir /path/to/targetdir

Identify the remote source directory /path/to/sourcedir
Run the following one-liner (edited with the correct source and target directories and user@ip-address for the server),

ssh username@ip-adress '(cd /path/to/sourcedir; find . -print | cpio -oBav -Hcrc)' | ( cd /path/to/targetdir && cpio -ivumd )


How to open a window without "close" button?

As a little workaround I found the Window Rules option in CompizConfig-Settings-Manager where I put xfce4-terminal (that I generally don't use and installed just for that purpose) to "Non Closable Windows".

Now I can start shell scripts using xfce4-terminal to execute commands

  xfce4-terminal -e "command you want to run"

that mustn't be terminated by accidentally clicking the close button by unexperienced users.


How can I ban Software Updater from checking for updates at certain times of day or certain days of week?

Please have a look on below images.
to access in your system please install dconf-editor.
to install it sudo apt update && sudo apt install dconf-editor

Please note that, for security updates, there is no control.
Please have a look at below description.

<key type="i" name="regular-auto-launch-interval">
  <default>7</default>
  <summary>Interval (in days) when to auto launch for normal updates</summary>
  <description>The interval (in days) when auto launching update-manager for   normal updates. Please note that it will auto launch for security updates   immediately. If you set it to "0" it will also launch as soon as updates become   available.</description>

Based on your needs you can control those three choices with command line as below commands

gsettings set com.ubuntu.update-notifier no-show-notifications true
gsettings set org.gnome.software download-updates false
gsettings set org.gnome.software allow-updates false

now, Based on your needs,
you can set cronjob (How do I set up a Cron job?) with true and false values for your chosen time..

for example. 6pm to 10pm is the PRIME TV PROGRAMME,

then set the 3 values scheduled at 6pm true/ false
and then set the 3 values scheduled at 10pm false/ ture


Is there a way to try out a netplan configuration without altering the system?

There is a new way to do this in Bionic: netplan try.

In your case, netplan try --config-file foo.yaml should do what you want.

The manpage isn't very helpful as it mostly describes the config file format, but --help gives you a pretty good outline of the tool:

ubuntu@netplan:~$ netplan try --help
usage: /usr/sbin/netplan try [-h] [--debug] [--config-file CONFIG_FILE]
                             [--timeout TIMEOUT]

Try to apply a new netplan config to running system, with automatic rollback

optional arguments:
  -h, --help            show this help message and exit
  --debug               Enable debug messages
  --config-file CONFIG_FILE
                        Apply the config file in argument in addition to
                        current configuration.
  --timeout TIMEOUT     Maximum number of seconds to wait for the user's
                        confirmation


How to achieve resolving of the same hostname to different IP addresses based on location

Finally I got the resolution for the "problem" and it is very simple.
I followed these steps:

installed dnsmasq on my home server so it will become a very simple dns server
in my home server I added an entry with the private ip address of my home server into /etc/hosts with domain name "mytunneledowncloud.com"
configured my home server's DHCP daemon to assign home server's private IP as a DNS server to the clients

Now it works perfectly. My home server now acts as dhcp/dns/web server and it assigns its own private ip as a dns server to the connected LAN clients. Then clients send the requests for the DNS resolution to my home server. My home server's dnsmasq looks into its /etc/hosts whether there is an entry for the requested domain name and if there is a match, provide the IP from there and if there is no match, then it uses the "internet's" DNS servers to resolve it.


How to add/configure QWERTZ keyboard layout on Ubuntu 18.04

In 18.04 select Slovak only not Slovak (something) it is QWERTZ.

after selecting close the settings windows.
and
Reboot


Can't view videos in Flash now I've upgraded to 10.04

I have checked in the software centre and it is showing a green tick next to Adobe Flash plug-in for Mozilla.

It would be better if you could try manually installing the Flash plug-in form the adobe site.

http://www.psychocats.net/ubuntu/flash

Thanks,
Sen


How do I get Evolution to delete e-mail on Gmail account?

If you're wanting to remove the mail as you check it from the Pop3 GMAIL server, make sure you have this set in  Evolutions Preferences ( Edit > Preferences > Account Settings )

You should also do as ichtyandr noted and change the setting in GMail's settings.

  it's a Gmail setting, in Gmail/Settings/Forwarding and POP/IMAP on POP question number two "2. When messages are accessed with POP " choose option to delete the Gmail copy


Although I am unsure of dual-boot capability with OSX at the moment (however it is unlikely that OSX can't use GRUB as a bootloader) it will most definitely work with a minimum of effort. Probably the most troublesome thing you will have to deal with is getting the wireless card working, as it's an airport/bluetooth card. It may use a fully broadcomm based chipset (as I believe many apple products do, at least in their mobile space) or it may have an apple-manufactured chipset. Worst comes to worst (and this is extremely unlikely) you might have to throw in a new PCIe-mini card that does have available, compatible, drivers.

EDIT: According to this, drivers for airport cards can be obtained by installing the package linux-firmware-nonfree


Wifi doesn't work in Ubuntu 15.10 - Realtek RTL8723BE/RTL8188EE 802.11b/g/n Wireless LAN Drivers

Please refer to this question, if you have any trouble with getting it fixed make sure you check the ReadMe file on github


Need to check the files that are being uploaded from my system in the background

You can use a command-line program named tcpdump as @FedonKadifeli mentioned but that has a learning curve and it's very difficult to analyze the data with it on-the-fly because there are so much.
But you can use the graphical alternative (this area is of the few ones that I prefer graphical apps over CLI) named Wireshark.
But that doesn't show you which program is exhausting your bandwidth.In order to find that out , you can use netstat :
netstat -np

That will not only shows you all the network connection in your system but all the associated processes are listed alongside their PIDs.
Then go to Wireshark and set a filter to monitor a specific Foreign IP address or a specific port in your system.
For instance , one of entries in the Active Internet connections (w/o servers) section of the output of netstat in my system is this:
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 192.168.1.104:51116     212.103.50.247:9002     ESTABLISHED 3029/firefox

You can see that a firefox process with the PID of 3029 has made a connection (ESTABLISHED) to the address 212.103.50.247 from the local port 51116 to the remote port 9002 and of course the protocol is TCP.
Now you can go to the Wireshark and start listening on your Wi-Fi interface (possibly something like wlanX or wlpXYZ) :

and then add a filter and then you're able to see the packets sent to or received from that address :

But note that you aren't able to see the files or contents that are being downloaded or uploaded here if the packets are encrypted.
And note that after installing Wireshark , you have to add your user to the wireshark group ( via sudo addgroup your_user wireshark ) and then log-out and log-back to be able to capture packets without root access.Also when you install it via apt , the postint scripts should ask you this :

You should select Yes.
If you don't do this , then you have to open Wireshark as root to able to capture packets because wireshark uses libpcap to capture packets and the libpcap itself makes use of the Netlink communication platform to be able to receive the contents of a packet from the corresponding kernel infrastructure.And the Netlink protocol requires constructing RAW Sockets which needs root access in Unix systems.
And running a graphical program like Wireshark which has almost 1.5 million lines of code as root is dangerous so it's a good practice to run it as a regular user.

Hope it helps.


ClamAV: MonoPosixHelper-x86_64.dll: Win.Trojan.Agent-1429193 FOUND - Is this a false positive?

The virus is a Windows Machine Virus. This virus in no way will affect your Linux Machine. However, this will affect a Windows machine if you copy it to that. It is a part of the program mono. If you trust the application then it may be a false positive. In either case, you can keep it on your machine until and unless you aim to copy it to windows. In that case scan the file using a native windows anti virus before running mono.


Slow printing to HP Laserjet 6MP with 12.04

It can work under Ubuntu 12.04, but with some issues:

HP Laserjet 6MP prints blank test page in Ubuntu 12.04 Precise

HP Linux Imaging and Printing >> HP LaserJet 6mp Printer

Sorry, I haven't used an HP 6MP for several years, and forget its nuances ..


Firstly, a note: PHP themselves actually suggests not using short-tags like this.  PHP's own syntax manual even mentions this, because short-tags support is not a default option - it either has to be compiled into PHP or enabled in the php.ini file:

  PHP also allows for short open tag <? (which is discouraged since it is only available if enabled using the short_open_tag php.ini configuration file directive, or if PHP was configured with the --enable-short-tags option).

Because short-tags are not a default-supported thing, this is why <? ... ?> is rendered as-is and not processed as PHP.

If you really want to make this work, then you have to set in your php.ini files for the PHP configurations this:

short_open_tag=On

Depending on what web server or PHP proxy handling system you use, you may have differing php.ini locations.  (This is, however, discussed in other questions and answers, such as here.)

However, as PHP themselves don't recommend using short tags, you should really consider not using short-tags at all in your PHP code.


Alternative for Exchange 2007 mail and calender sync and shared + public calenders and folders?

Thunderbird with lightning calendar will work with Microsoft Exchange just fine.

sudo apt-get install thunderbird

then install the Lightning extension


Removing Ubuntu from a dual-boot setup with Windows

If you didn't install Ubuntu from within Windows, here's what you'll need to do:

Boot up your Win 7 disk.
Go to Boot Recovery and let it do it's thing
Boot back into Windows and go to Disk Manager
Delete the two Ubuntu partitions
Resize your NTFS filesystem to take up the disk.

That easy!


Repairing from 12.04 live USB failed. Suggestions?

By "keep my files" are you referring to everything in your home folder? If you backed up / copied your home folder somewhere else, then you could do a (fresh) re-install from the live usb, and once it's up & running then create your user again (adduser or useradd) copy your home folder back and be up & running again. Or if your home folder was on a different partition you'd already be half done now.

There are some settings that aren't kept in your home, like /etc/fstab or any custom PPA's or repo's in /etc/apt/sources.list & sources.list.d (but don't just copy those straight over if you move to a different release / version).

I just saw a Q on how to save the list of installed packages/programs, but most methods will list every package including dependencies, libraries, etc. Some methods should list only the main/top packages (since installing them will automatically install their dependencies) and make it easier if you later want to remove a package and it's unneeded dependencies.
 apt-mark showmanual sounds like a good one
 aptitude search '~i!~M' but it showed everything installed with a fresh install too.

See this answer (and all the answers there) for more info, but these require at least terminal access to your system... maybe chroot from a live usb/cd but I'm not sure about that.

I don't know which drivers you're thinking of, but for a new install you'll probably have to install the drivers again anyway, so do whatever you did last time to install them, hopefully they're in a repo/PPA or easy to find mfg. website (maybe they're updated by now too, or you still have the install files saved?).

I don't know offhand how to fix what's wrong now, but re-installing is a "nuclear option" that should wipe out all the errors...


Can a graphical front end be added to server like X11?

You can install the package ubuntu-desktop (that is the basic desktop environment delivered with the main ubuntu flavor) via command-line then you have a fully fledged desktop system.

sudo apt install ubuntu-desktop

The same can be accomplished by using tasksel

sudo tasksel

There you can chose packages with Space and when youre done selecting you can hit Tab to highlight 'O.K.' and hit Return. Make sure you only select one desktop environment.

Alternatively you can download the desktop images here and reinstall fresh if you not have much done to the system yet.


How to change the color of the panel(frames) of Chrome in a custom GTK theme?

I figured it out. This is what I did.

In /usr/share/themes/<theme name>/gtk-2.0 there is a file called gtkrc I opened it using gksudo gedit <path>, after I opened the file I found:

style "chrome-gtk-frame" {
    ChromeGtkFrame::frame-color = "#444851" #@titlebar_bg_color
    ChromeGtkFrame::inactive-frame-color = "#444851" #@titlebar_bg_color

    ChromeGtkFrame::frame-gradient-size = 0
    ChromeGtkFrame::frame-gradient-color ="#444851" #@titlebar_bg_color

    ChromeGtkFrame::incognito-frame-color ="#444851" #@titlebar_bg_color
    ChromeGtkFrame::incognito-inactive-frame-color ="#444851"#@titlebar_bg_color

    ChromeGtkFrame::incognito-frame-gradient-size = 0
    ChromeGtkFrame::incognito-frame-gradient-color ="#444851" #@titlebar_bg_color

    ChromeGtkFrame::scrollbar-trough-color = @bg_color
    ChromeGtkFrame::scrollbar-slider-normal-color = mix (0.21, @fg_color, @bg_color)
    ChromeGtkFrame::scrollbar-slider-prelight-color = mix (0.31, @fg_color, @bg_color)}

The color "#444851" is the color I chose for my chrome.

@tittle_br_color is the default value. I just commented the value.


How to open Firefox URL having GET parameter, through Linux Command line

If you type that from a command prompt then the shell will parse the ?
(The same will happen if your URL contains an ampersand (&) or an asterix (*).

To avoid this use double quotes around the part you do not want the shell to parse.

E.g.
/usr/local/bin/firefox "http://www.google.com?param1=val1"


How do I prevent software packages from being downloaded until I know it's safe?

You can prevent package to be udated by freezing them.

You do this like this :

echo "<package name> hold" | sudo dpkg --set-selections

You can see the list of frozen package by doing this :

dpkg --get-selections|grep hold


You can try the Alternate Installer, or try just leaving it be for 1/2 an hour and see if something happens.


The problem was in the sources.list.d/local-repo.list

i had: deb http://my-repo-ip amd64/

and i changed it to: deb http://my-repo-ip/amd64/ ./

and worked like a charm!


After an hour of googling and trying, I've found a workaround to this weird problem. Install and run CompizConfig Settings Manager:

sudo apt-get install ccsm
ccsm

Click Commands in General category. Ensure the module is activated. Add your custom command on the first tab and set a shortcut on the second one. I set the same command (shutter with options) and the same key (Print) as I'd set before in "regular" system settings. Now the command began to be run instantly.


i did a

sudo snap install modem-manager

and installation was successfull.

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-
policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

$ uname -a
Linux xxx 5.4.0-26-generic #30-Ubuntu SMP Mon Apr 20 16:58:30 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

launching modem-manager ui did show the modem after reboot, enter sim pin and connection can be established

using lenovo t460, self installed huawei me906s-158 (name reported by modem-manager)


how to check if a database is mysql or mariadb

You can do this on your login to the database from the terminal:

  mysql -u user -p

Enter your password and it displays the database name with the welcome message.mysql welcome pageMaria Welcome page


I think you are looking for these drivers:

Epson Workforce 845 scroll about 1/3 of the way down on the page

Scanner Drivers here

According to the SANE web site

>>>>> found USB scanner (vendor=0x04b8, product=0x0892) at libusb:001:007 is your Epson scanner.

Time to edit: gksudo gedit /etc/sane.d/epkowa.conf Example Snippet follows:

# epkowa.conf -- sample configuration for the EPKOWA SANE backend
# Copyright (C) 2004, 2008, 2009  Olaf Meeuwissen
#
# See sane-epkowa(5), sane-usb(5) and sane-scsi(5) for details.

# Detect all devices supported by the backend.
# If you don't have a SCSI device, you can comment out the "scsi"
# keyword.  Similarly for the other keywords.
#
usb
scsi

# For any USB scanner not known to the backend (yet), you may, at your
# own peril(!!), force the backend to recognise and use it via libusb.
# You can do so by the following configuration command:
#
#   usb <USB vendor ID> <USB product ID>
#
# SEIKO EPSON's USB vendor ID is '0x04b8' (without quotes).  In order
# to find the USB product ID, use lsusb(1).
# A sample configuration for the Epson Perfection 1650 (Epson GT-8200),
# which has a product ID of 0x0110, would look as follows:
#
#usb 0x04b8 0x0110

you will need to insert (vendor=0x04b8, product=0x0892) per the example and remove the "#" at the beginning code line. Save and reboot.


user198801's answer is correct, that's one way to change the display font.  Users can also override the installed CSS by placing a CSS file in their ~/.config/geary/user-message.css.  However, this only changes the font in the message viewer, not the composer.

We do have an outstanding ticket to respect the OS's document font and size in both the viewer and the composer: http://redmine.yorba.org/issues/4508  That's probably the most robust solution for this problem.


How to change the location that MongoDB uses to store its data?

To change the location used by MongoDB to store its data, you need to:

Edit /etc/mongod.conf and change the line dbpath=/var/lib/mongodb to the path that you desire, e.g. dbpath=/home/user/data/mongodb
Update the permissions of your chosen path to allow the mongodb user to write to it, e.g. chown $USER -R /home/user/data/mongodb
Restart the MongoDB service by running sudo service mongod stop then sudo service mongod start

Note that if you have any data in the old location that you want to keep, you'll need to stop the MongoDB service first, manually move the files and then start the service again.
To stop the MongoDB server use sudo service mongod stop


Zanna your solution worked perfectly, thank you.
As for the security issues with these cameras, I agree with you & the reason I'm storing these on my own internal FTP server vs using these iffy cloud hosting services for cameras.

Your script:

find AMC0103W_93Sxxx -type f | rename -n 's|(.*/)[^/]+/jpg/([^/]+)/([^/]+)/([^[]*)\[.*|$1$2$3$4.jpg|'

The output:

rename(AMC0103W_93Sxxx/2017-02-11/001/jpg/07/02/27[M][0@0][0].jpg, AMC0103W_93Sxxx/2017-02-11/070227.jpg)


Have a look here, it would appear that voice recognition is close vut not quite here yet Is there speech recognition in Ubuntu for phones?


I don't think dbus is running in the remote ssh session. You need to start it yourself, but that's pretty easy to do:

dbus-launch gsettings set com.canonical.Unity.Launcher favorites ...

Also make sure that the user is correct, you can set settings for another user (if that's what you're doing) like this:

sudo -u other dbus-launch gsettings set com.canonical.Unity.Launcher favorites ...

The above assumes the user you're changing settings for is "other", change as appropriate.


If you are experiencing the same problem as described here, follow the instructions given in the System hangs for a short while (few seconds) section. In summary:

Open your favorite text editor and copy the following codes in to it and save skype.c

#define _GNU_SOURCE 1
#include <dlfcn.h>
#include <pthread.h>
#include <stdio.h>
#include <string.h>

int (* orig_pthread_create) (pthread_t *thread,
       const pthread_attr_t *attr,
       void *(*start_routine)(void*), void *arg) = NULL;

static void change_sched_policy (pthread_attr_t *attr) {

   int policy;

   if (attr == NULL) return;
   pthread_attr_getschedpolicy (attr, &policy);
   if (policy == SCHED_FIFO) {
      printf ("### SCHED_FIFO policy changed to SCHED_RR\n");
      pthread_attr_setschedpolicy (attr, SCHED_RR);
   }
}

int pthread_create(pthread_t *thread,
       const pthread_attr_t *attr,
       void *(*start_routine)(void*), void *arg) {

   pthread_attr_t new_attr;

   if (orig_pthread_create == NULL) {
      orig_pthread_create = dlsym (RTLD_NEXT, "pthread_create");
   }

   change_sched_policy (attr);

   return orig_pthread_create (
      thread, attr, start_routine, arg
   );

}

In terminal type:

gcc -shared -o libskype.so skype.c

and launch skype as:

export LD_LIBRARY_PATH=path_to/libskype.so:/usr/lib/libqt-mt.so.3
/usr/bin/skype


I have solved my problem by using the .so file form flash 10.3 and copying it to /usr/lib/mozilla/plugins


installation of older kernel - as further option - no problem?

You can install any kernel you want. There is no problem on using one or multiple Kernels at a time. But sometime you should consider the Kernel Mapping to your Ubuntu Version. For example following link lists out the mapping of different kernel to different version of OS:

http://kernel.ubuntu.com/~kernel-ppa/info/kernel-version-map.html

You can get a complete information of Kernel installing/removing from following link. It helped me a lot to install a new kernel in Ubuntu 12.04.2. Now I can chose any kernel 3.5.0 or 3.8.0 from grub menu.

https://wiki.ubuntu.com/Kernel/MainlineBuilds


Multiple client for one private key to ssh into the server

Either method will work; personally I prefer to create one key per device, to mitigate damage if one device/key gets compromised (just revoke access for this key; no need to do anything for the others).


Syslog/kernlog filling up with "did not claim interface N before use"

I recently ran across this problem too.

What worked for me was completely purging the Lexmark scanner driver and re-installing it.

(The name of the package to purge is lexmark-network-scan)


You need to install the libgsl-dev package:
$ apt-file search gsl/gsl_sf.h
libgsl-dev: /usr/include/gsl/gsl_sf.h


Wifi Conection problem my Lenovo 59-442243 15.6-inch Laptop (Core i3 4030U/4GB/1TB/DOS/Integrated Graphics Processor

Try running this command:

sudo apt-get install b43-fwcutter

Then reboot.

This will install a proprietary driver for your wifi card (that I guess that is a Broadcom B43) If this doesn't work, I'll ask you for more data.


Check if swap partition is set up correctly

Execute the command sudo fdisk -l. This will list all your partitions and their partition types.  In Ubuntu, a swap partition will be listed similar to below:

/dev/sdb4            7295        8268     7811072   82  Linux swap / Solaris

If you don't see the last 2 values 82 and Linux Swap, then it is not setup as swap partition.

Setup a swap partition

Ensure that the partition you are going to use (such as /dev/sdb4) is not a real partition with real data before turning it in to swap partition since all your data will be lost.

The following steps will set up a swap partition:

sudo swapoff -a

Replace /dev/sdb4 with the correct partition name if different:

sudo /sbin/mkswap /dev/sdb4

Enable the swap partition you just set up:

sudo swapon -a

For detailed help, refer to
https://help.ubuntu.com/community/SwapFaq


Where could I get the apparmor profile for latest Skype4?

A very late response but here's Apparmor profile skype 4.1.0.20 - Ubuntu 12.04 by NikTh who acknowledged this as the source.

Although it is suggested that:

  Whilst this may theoretically answer the question, it would be
  preferable to include the
  essential parts of the answer here, and provide the link for
  reference.

In this case, I'm not sure much purpose will be served by pasting details of the profile here but if it is felt helpful I will.


Why are "ls" and "stat" returning different ownerships for the same object?

ls -l /mnt/my-address is showing you the files/directories inside my-address. These are only affected if you use the chown -R command to change ownership (R)ecursively. All you did was change the ownership of /mnt/my-address, not any of its contents.

stat /mnt/my-address gives you information on the actual directory/mountpoint /mnt/my-address though, whose ownership you did change. That's why the two are different.


The output you're receiving is perfectly normal. The Guest Additions software has been installed successfully, according to the screenshots in the answer.

You just need to reboot after the installation finishes to actually allow the kernel modules and the Guest Additions to take effect and start working.


As far as disabling the Exit button, have a look at this and this they explain that the default menu is located in /usr/share/blackbox/menu, but can be overidden with a ~/.blackbox/menu file referenced from a .blackboxrc. The man page also states that adding blackbox to your .xinitrc or .xsession will get blackbox to kill the X session on exit.

If you're doing a kiosk you'll have to make sure the account is locked down. That way, if somebody switches to a virtual terminal (Ctrl+Alt+F1-7) they can't do any damage.


The right way to get it aught to have been:

sudo pip3 install spyder

And see this:

sudo apt install spyder3

also works. Perhaps you need to uninstall spyder2, then install spyder3


The core issue is that without an index.html file to serve (or a corresponding try_files and index directive) that NGINX will try and do a directory listing, which is forbidden in your config (autoindex off;).

To override this, you should be doing at least one of two things:

Use a try_files $uri /index.html directive in your specialized location block.  This makes sure to not try a directory listing, but if there's a failure to find the correct URI, it will default to the root site's index page.
Make sure you have an index.htm OR index.html OR index.php file in each location (this does not apply for proxy_pass or fastcgi_pass requests which pass requests to a backend server for handling).  Each directory should have an index file that is of a name that is listed in the index directive in your config.

(You've discovered #2 yourself, however this is a more comprehensive reply)


Move my swap partition into my extended partition

It's impossible to say with certainty without seeing detailed partition table data (as in sudo fdisk -l /dev/sda or sudo parted /dev/sda unit s print. In some cases, though, the FixParts program, which is part of the gdisk package in Ubuntu, can do the job. The FixParts documentation (just linked) describes the details of how to do it. In a worst-case scenario, you should be able to do it by combining a partition-resizing operation (with GParted) with FixParts.

If you need more help, please edit your question with the specified fdisk and/or parted output and post a comment to my answer so that I'll see a flag to re-read it.


Can't run CS:GO at fullscreen (Ubuntu 18.10)

Open Steam
Go to the "Library"
Right-click the game which needs to be reconfigured
Select "Properties" from the menu
Click the "Set launch options..." button
type: -full and save

That's all.


How do I run R programs from Sublime text 2 in Ubuntu 16.04 LTS?

I'm not familiar with R, but according to this answer, you run a script from command-line using Rscript. With Rscript installed, you can then create a custom build system for Sublime Text (Tools > Build System > New Build System). At its most basic, it would look something like this:

{
  "cmd": ["Rscript", "$file"],
  "selector": "source.r, source.R",
  "working_dir": "${project_path:${folder}}",
}

Now, you can build your R script by pressing F7 or from Tools > Build.


On my 18.04 kubuntu, I can right-click the application menu button, choose "Configure Application Launcher" which opens a window, click on the icon in the window, and then click on "Choose..." and choose from the installed icons.
I did this for my application menu button, I can't remember what it was before I changed it, but it is now a colourful K and gears.


Command line python is different from Python IDLE

I solved my problem. I added an alias to ~/.bashrc as follows:

    alias python=/usr/local/python

I found the path I was looking for by going to Python IDLE and doing the following:

    import sys
    sys.path

This returned the location of the python version IDLE uses. I searched around a bit and found the path I was looking for!


No matter what I do, upgrade keeps being offered

You can configure notifications for new versions from Software Sources, from dropdown menu Notify me of a new Ubuntu version, select Never


local package repository on custom server can't be authenticated

Just in case anyone is interested. The solution to this problem is put deb [arch=amd64 trusted=yes] http://54.68.121.138 debian/ in the end of /etc/apt/sources.list instead of just deb http://54.68.121.138 debian/


What does it mean for Linux to erase disk space in Linux

This is rather by design. You're inside a virtual computer. The disk that the Ubuntu installer can see is a virtual disk created and hosted by VirtualBox. In reality it's just a file sitting around on the host filesystem.

When VB creates a new one of these disks they have no partitioning and no filesystems or files. The Ubuntu installer is just echoing this state.

What should you do? Format and install.


To encrypt file(s) in Ubuntu use Private Directory mechanism. It transparently encrypts all files that you put into the ~/Private directory.


Why isn't Ubuntu delivering USB images instead of ISO ones?

The current iso image is ddable and the images have been ddable for quite some time now as far as I know.

sudo dd if=./ubuntu.iso of=/dev/sdx bs=16M

Where ./ubuntu.iso is the path to the actual file and /dev/sdx is the target USB drive.

Alternatively, you can use cat instead of dd which is arguably faster like so:

sudo -i
cat ./ubuntu.iso > /dev/sdx
exit

Again, ./ubuntu.iso represents the full path to the actual iso file and /dev/sdx is the actual USB device.

Even if the image were not ddable, it would simply take a couple of syslinux commands to convert the image to ddable form.

Hypothetically, if the Ubuntu iso images were not ddable, you would just have to run the following commands:

sudo apt-get install syslinux syslinux-utils
isohybrid ./ubuntu.iso --entry 4 --type 0x1c
dd if=./ubuntu.iso of=/dev/sdx bs=16M

Again, where ./ubuntu.iso is the path to the actual iso file and /dev/sdx is the actual USB device.

source


Do I need separate offline Ubuntu repository for desktop and server

To build offline local repository see How to create a local APT repository?

The answer is NO. If the system architectures are same and you are using same distribution of Ubuntu in both your desktop and server, same repo can be used.

Further reference Ubuntu Sources List Generator


Could you please try to press Ctrl+Alt+F1 the next time it happens?
If you are able to see a black screen with white font you are able to use the "screen" as a CLI.

Login and then try to execute the command "kill -9 -1".

Add the result to your question.


grub not loading with SHIFT after file modification

Just:

boot from a LiveCD, (or USB),
delete the 01_915resolution file
open the /media/ubuntu/ImpossibleLongNumber/etc/default/grub/ file in gedit
remove the offending lines
reboot


Putting pictures onto an iPod touch (2nd gen)

3. Copying photos to the iPhone or iPod Touch

  Photos can be copied into the Media/DCIM directory in the mobile
  account. They need to follow the directory and image numbering
  conventions used by the iPhone/iPod. Multiple image formats are
  allowed, but they should have a thumbnail (.THM) file which is a 55x55
  pixel JPG file.

  There is a command-line script that can copy images to the iPod Touch
  or iPhone using ipod-convenience or scp available here.

  Note that it is free to use and source available, but not technically
  open source.

This is taken straight from the ubuntu documentation. Might be worth reading through that to see what support the ipods and iphones have with ubuntu.

Also iFuse seems like its a good GUI based package to transfer files. Might be worth giving that a shot.

Hope some of this helps.

EDIT: Also I would always advise searching the Ubuntu documentation for any questions, The documentation is just fantastic! And one of the mains reasons why I love the OS

Bill


Well you need more than 1 version of ruby installed for there to possibly  be an alternative to "ruby" (generally /usr/bin/ruby

If you only have ruby1.9.1 installed, (ruby1.9.X),  then there is no alt. available

Ex. here on 11.10, -  for some media apps I need both 1.9.2 & 1.8 installed so update-alternatives reflects that & allows me to switch as needed

$ sudo update-alternatives --config ruby
[sudo] password for doug:
There are 2 choices for the alternative ruby (providing /usr/bin/ruby).

Selection    Path                Priority   Status
------------------------------------------------------------
  0            /usr/bin/ruby1.8     50        auto mode
  1            /usr/bin/ruby1.8     50        manual mode
* 2            /usr/bin/ruby1.9.1   10        manual mode

Press enter to keep the current choice[*], or type selection number:

By default in 11.04/11.10 the package "ruby" provides ruby1.8