Intervention imagick works in terminal but not in browser

Did you try to restart services?

php --ri imagick; echo "Exit Code: $?"

imagick

imagick module => enabled
imagick module version => 3.4.3
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version => ImageMagick 6.8.9-9 Q16 x86_64 2017-03-14 http://www.imagemagick.org
Imagick using ImageMagick library version => ImageMagick 6.8.9-9 Q16 x86_64 2017-05-26 http://www.imagemagick.org
ImageMagick copyright => Copyright (C) 1999-2014 ImageMagick Studio LLC
ImageMagick release date => 2017-05-26
ImageMagick number of supported formats:  => 215
ImageMagick supported formats => 3FR, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FRACTAL, FTS, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, ISOBRL, JBG, JBIG, JNG, JNX, JPEG, JPG, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV

Directive => Local Value => Master Value
imagick.locale_fix => 0 => 0
imagick.skip_version_check => 1 => 1
imagick.progress_monitor => 0 => 0
Exit Code: 0

if everything is OK, restart your web service and fpm.

service php7.0-fpm restart


Well with the two following commands i'm able to find the information needed:

ls /sys/bus/usb/devices/*

list all USB devices

cat /sys/bus/usb/devices/*/product

Show device names in the order of the list above.


How do I get Poulsbo (GMA500) drivers to work?

There is a Ubuntu Wiki where explain well about GMA500 video hardware


How do I make Ubuntu ask for a password when logging in?

Open the System Settings application, then click on the User Accounts icon.  In the top right corner, you will have to unlock the setting.  Once unlocked, select the user on the left, and turn Automatic Login off.


Can I disable the lock screen that happens when I close my Dell d430?

I'm not sure i clearly understand what you're looking for, but i found these:
http://brainstorm.ubuntu.com/idea/24847/ and
http://ubuntuforums.org/showpost.php?s=0282c09fc59593ce6a3c6c22d2216caa&p=8275103&postcount=1 .

Maybe one of 'em contains the solution for your problem.


SSH-Login with key does not work correctly

The message Error: debug1: Roaming not allowed by server is only a debug message, not more.

Follow the steps below to authenticate via public key:

On your server enable the password authentication. Open the ssh-server configuration

 sudo nano /etc/ssh/sshd_config

and enable the password authentication

PasswordAuthentication yes

Reload the configuration

sudo service ssh reload

On your client

Copy your public key via ssh-copy-id

ssh-copy-id -i ~/.ssh/id_rsa.pub -p 22 user@server

or as alternative

cat id_rsa.pub | ssh server cat >> ~/.ssh/authorized_keys

On your server

sudo nano /etc/ssh/sshd_config

and disable the password authentication

PasswordAuthentication no

Reload the configuration

sudo service ssh reload


I believe that you are applying the --compare-dest incorrectly.

From man rsync

   --compare-dest=DIR
          This option instructs rsync to use DIR on the destination machine as an  additional
          hierarchy  to  compare  destination files against doing transfers (if the files are
          missing in the destination directory).  If a file is found in DIR that is identical
          to  the  sender’s  file, the file will NOT be transferred to the destination direc‐
          tory.  This is useful for creating a sparse backup of just files that have  changed
          from  an  earlier  backup.  This option is typically used to copy into an empty (or
          newly created) directory.

         Beginning in version 2.6.4, multiple --compare-dest directories  may  be  provided,
          which  will  cause  rsync  to  search  the list in the order specified for an exact
          match.  If a match is found that differs only in attributes, a local copy  is  made
          and  the attributes updated.  If a match is not found, a basis file from one of the
          DIRs will be selected to try to speed up the transfer.

         If DIR is a relative path, it is relative to the destination directory.   See  also
          --copy-dest and --link-dest.

         NOTE:  beginning with version 3.1.0, rsync will remove a file from a non-empty des‐
          tination hierarchy if an exact match is found in one of  the  compare-dest  hierar‐
          chies (making the end result more closely match a fresh copy).

If I am reading this correctly, --compare-dest used used to stop the sending certain files.  This would allow you to create a new copy destination directory, containing only files that have changed since the last copy.  Sort of an incremental copy, if you will.


How to tar.gz many similar-size files into multiple archives with a size limit

Totally patchwork and a quick, rough sketch as it is, but tested on a directory with 3000 files, the script below did an extremely fast job:

#!/usr/bin/env python3
import subprocess
import os
import sys

splitinto = 2

dr = sys.argv[1]
os.chdir(dr)

files = os.listdir(dr)
n_files = len(files)
size = n_files // splitinto

def compress(tar, files):
    command = ["tar", "-zcvf", "tarfile" + str(tar) + ".tar.gz", "-T", "-", "--null"]
    proc = subprocess.Popen(command, stdin=subprocess.PIPE)
    with proc:
        proc.stdin.write(b'\0'.join(map(str.encode, files)))
        proc.stdin.write(b'\0')
    if proc.returncode:
        sys.exit(proc.returncode)

sub = []; tar = 1
for f in files:
    sub.append(f)
    if len(sub) == size:
        compress(tar, sub)
        sub = []; tar += 1

if sub:
    # taking care of left
    compress(tar, sub)

How to use

Save it into an empty file as compress_split.py
In the head section, set the number of files to compress into. In practice, there will always be one more to take care of the remaining few "left overs".
Run it with the directory with your files as argument:

python3 /path/tocompress_split.py /directory/with/files/tocompress

numbered .tar.gz files will be created in the same directory as where the files are.

Explanation

The script:

lists all files in the directory
cd's into the directory to prevent adding the path info to the tar file
reads through the file list, grouping them by the set division
compresses the sub group(s) into numbered files

EDIT

Automatically create chunks by size in mb

More sophisticated is to use the max- size (in mb) of the chunks as a (second) argument. In the script below, the chunks are written into a compressed file as soon as the chunk reaches (passes) the threshold.

Since the script is triggered by the chunks, exceeding the threshold, this will only work if the size of (all) files is substantially smaller than the chunk size.

The script:

#!/usr/bin/env python3
import subprocess
import os
import sys

dr = sys.argv[1]
chunksize = float(sys.argv[2])
os.chdir(dr)

files = os.listdir(dr)
n_files = len(files)

def compress(tar, files):
    command = ["tar", "-zcvf", "tarfile" + str(tar) + ".tar.gz", "-T", "-", "--null"]
    proc = subprocess.Popen(command, stdin=subprocess.PIPE)
    with proc:
        proc.stdin.write(b'\0'.join(map(str.encode, files)))
        proc.stdin.write(b'\0')
    if proc.returncode:
        sys.exit(proc.returncode)

sub = []; tar = 1; subsize = 0
for f in files:
    sub.append(f)
    subsize = subsize + (os.path.getsize(f)/1000000)
    if subsize >= chunksize:
        compress(tar, sub)
        sub = []; tar += 1; subsize = 0

if sub:
    # taking care of left
    compress(tar, sub)

To run:

python3 /path/tocompress_split.py /directory/with/files/tocompress chunksize

...where chunksize is the size of input for the tar command.

In this one, the suggested improvements by @DavidFoerster are included. Thanks a lot!


What does export PATH=something:$PATH mean?

What is this "export" phrase at the start?

export is a command (more precisely it's a Bash builtin, i.e. it's not an executable present in PATH, it's a command that Bash has built-in in itself).

  Is it exporting the data to be available for Bash?

export sets the environment variable on the left side of the assignment to the value on the right side of the assignment; such environment variable is visible to the process that sets it and to all the subprocesses spawned in the same environment, i.e. in this case to the Bash instance that sources ~/.profile and to all the subprocesses spawned in the same environment (which may include e.g. also other shells, which will in turn be able to access it).

  What is the first PATH and what is the second $PATH, and why do we need two?

The first PATH as explained above is the environment variable to be set using export.

Since PATH normally contains something when ~/.profile is sourced (by default it contains /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games), simply setting PATH to ~/.composer/vendor/bin would make PATH contain only ~/.composer/vendor/bin.

So since references to a variable in a command are replaced with (or "expanded" to) the variable's value by Bash at the time of the command's evaluation, :$PATH is put at the end of the value to be assigned to PATH so that PATH ends up containing ~/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games (i.e. what PATH contains already plus ~/.composer/vendor/bin: at the start).


Please do:

sudo apt-get update

Then:

sudo apt-get install bcmwl-kernel-source

Your device can only use this driver at this time.


Installing packages with Python dependecies - "You have held broken packages"

The problem appears to have been that I manually installed Python to a more recent version than the distribution provides. When the apt-get tries to repair the installation it needs to downgrade, which is only possible if you specify that it should.

Creating a file /etc/apt/preferences.d/allow-downgrade containing

Package: *
Pin: release o=Ubuntu
Pin-Priority: 1001

and then running

apt-get update
apt-get upgrade
apt-get -f install
apt-get update

solved the problem.

For source and a more detailed answer:

https://unix.stackexchange.com/questions/218911/help-me-repair-my-python-i-think-dpkg-has-to-be-reset-very-tricky-issue


What day in April will Ubuntu 8.04 Hardy Server be scheduled for end of life

The date is currently 9th of May 2013. Subject to change however.


Transfer a file from remote server to remote server

sftp and ftp are completely different protocols so, if as you say you don't have ssh/sftp access at one end, I don't think there's any value in persuing a scp option.

I would personally ssh into the end you do have access at and then use whatever protocol you have access to to push (or pull) the files across. In you were using ftp:

user@home$ ssh user@server.com
user@server$ ftp server2.com
> # login here
> cd /the/right/path
> mget *
> mput *
> bye

You don't want both mget or mput, just pick the one that suits the direction you're pushing or pulling files.


default application to open text file in Thunar under Awesome WM

If you're using Xfce 4.10, then you can Settings > MIME Type Editor, then set text/plain to whatever text editor you want. I'm not sure if this will take care of all possible file extensions associated with plain text files, but my hunch is that it should help.


As @Rinzwind pointed out: the permissions on the /var/log directory may have accidentally been changed. In a fresh install they are drwxrwxr-x.
Change your permissions:
# chmod 775 /var/log
and # systemctl restart rsyslog (or reboot). Test the syslog facility with:
$ logger "this message should end up in syslog"


I had the same problem.  I merely renamed my ~/.config file to .config.bak and then logged out.  The resulting creation of the new .config file enabled the use of Ctrl+Alt+t to open the default terminal.  Warning however:  All configurations that you had previously created will also be eliminated so if you have spent time creating them.  You may just want to live with launching the terminal in some other manner such as via the menu or with Run.  Your choice.


U1Db QML API database on Application update

To have a sure response at my question i have tryed myself with my app:

1) I have uploaded to the Ubuntu store the new version of the app

2) I have updated the old app version (already installed on my Tablet) with the new one (using the ubuntu update features of the tablet)

Conclusion:

the old Database created by the old app version was NOT reused by the new App: a new blank one was created (NO modification was made to the database structure).

I have verified that the old database was NOT lost (is mantained in the file system).
The Databases created with U1Db QML API are placed in a folder under this path:

~phablet/.local/share//file:/opt/click.ubuntu.com/"applicationName"/"version"/"NameApplication"/

where:
"applicationName"  is the value inserted in the field 'applicationName' inside Main.qml of the source code

"version"  is the application version (eg: 1.1)

"NameApplication"  is the name of the App

So that that  the database for old App version 1.0 is inside:

~phablet/.loca/share/"applicationName"/file:/opt/click.ubuntu.com/"applicationName"/1.0/"NameApplication"/

And the one for the new version 1.1 is inside:

~phablet/.loca/share/"applicationName"/file:/opt/click.ubuntu.com/"applicationName"/1.1/"NameApplication"/

To use the old database is necessary copy the Database file from the old folder to the new one, overwriting the other one. To do do this is possbile use the Terminal app or with the File Manager of the Tablet (after enabling the option to show the hidden folders in the File manager menu (.local is an hidden folder in the home one)).

I have verified that creating the database without QT.resolveurl("..."):

U1db.Database {
        id: mypeopleDb1_0
        path: "MyPeople_db";
}

the database file will be placed in the folder:

.local/share/"applicationName"
without any references at the application verion number.

So that i think that the right solution is NOT use QT.resolvedUrl() to prevent problems in case of App updates.

So, the new question is: how is possible create and export/import content from a DB file ?
Seem that using the U1DB QML API is not possible....


How to prevent so many instances of apt-check running?

Some dive into apt-check gave me these clues for being it a very blunt script that needs fixing. With all due respect to the authors of it, it is failing on my servers. Here are my thoughts:

apt-check == /usr/lib/update-notifier/apt_check.py
forces nicelevel 19 for itself
no timeouts set on actions

The combination of the last two allows it to pile up endlessly in a spiral downwards. If the system is used for some other purposes with higher priority, the amount of processes will just increase and there's no end to it, as apt-check will never get any priority over it. Trouble will only get worse once the OOM killer decides to kill your vital system processes.

If either of these two aspects in behaviour was different, it would not allow the system to end up in such a broken state is my assumption.

While strings is right about the parent processes being responsible in this too, I believe below points are flaws in apt-check and has to be reported as a bug to get addressed properly:

it should hint the OOM killer to have itself killed first
it should not set the nicelevel hardcoded
it should exit if it takes an unreasonable amount of time to get pieces of information

Actually, it seems that the Linux OOM killer is doing some heuristic on this. Niced processes will get an increased score, and long-running processes are decreased. (source - thanks to Ulrich Dangel for pointing it out)

Possible solution I may propose:

cache results after processing
output cache if less than N amount of seconds without loading all Python-APT libraries for every simple (even --help) invocation.
make the nicelevel configurable - Allow me to change/disable this, please! I believe that setting it to 0 will actually help
have it increase the OOM killer score


The simplest way to get a grand total is to concatenate the files first, and pass the concatenation to wc.
Ex.
printf 'The total number of lines is: %d\n' "$(cat folder/* | wc -l)"

However if you want to use awk, here's how I'd do it:
wc -l folder/* | awk 'END{print "The total number of lines is: " $1}'


Attaching tmux to an existing session, or creating a new session

The trick was to make the following change:

tmux new-session -AD -s TMUXSessionName 'echo Banana'

So that we are using -s and not -t.


How do I get GRUB menu to let me choose instead of directly booting into Windows?

In my HP laptop, once I had a similar problem. To resolve it, I got inside BIOS mode ( by pressing ESC when the laptop was starting). Then I navigated around. I found an option where all the OS were listed. The Windows on top, and Linux was on the 2nd place. I put the Linux at top. I saved the settings and exited. From then, I would see the GRUB menu at boot up time.
Now if you don't see Windows in the GRUB, try this. Inside Linux, fire up your terminal and run the command:

$ sudo update-grub

This refreshed the GRUB menu list and brought windows in the options.
This is how I had resolved the issue. Hope that works.

Edit

On my laptop, it was: ESC during starting > F10 > navigate to System Configeration > boot options > UEFI Boot Order > OS Boot Manager.
Use up and down keys to select Linux, and use F5 and F6 to put Linux on the top. Then press F10 to save and exit. ( Check the images to be clear). Please note that these options may differ if you have an older or newer BIOS. But the procedure should be almost same like this. Good luck.


your partition for /boot is 100% full.
Ubuntu can't write any ore kernels there.

You need to remove old unused kernels.


That flash is the one that is bundled with Google Chrome (and can only be used by Google Chrome). As such, you can't remove that without removing Chrome.


Reinstalling Ubuntu via SSH, keeping home folder/partition

You can use preseed and grub image boot together,
I write simple solution for that.
https://github.com/mhf-ir/ubuntu-overssh-reinstallation

Newer version with wizard:
https://gitlab.com/aasaam/ubuntu-overssh-reinstallation


How do I get rid of GNU grub menu at start-up?

As one of my suggestions worked, I will post an answer in case others run into this.

When Ubuntu is installed, it creates a few partitions. One is saved for the grub bootloader, and will be separate from the EXT4 partition is on. This partition should be deleted if you want to completely remove Ubuntu, however as the OP did, if you change boot order to the Windows drive in BIOS, you can bypass having to reformat the disk


18.04 - custom keyboard shortcut to adjust volume does not work (instead mutes)

I found that in Ubuntu 18.04 it's necessary to escape the - and + character.

So for volume up:

amixer -D pulse sset Master 5%%+

and volume down:

amixer -D pulse sset Master 5%%-


You can use Gparted available in ubuntu live. Try to resize a partition. NTFS partitions are also recognized in Ubuntu, so you can keep your data on those kinds of partitions.


Is there a Paint.net Equivalent on Ubuntu 12.04

Try Inkscape . And here's the project website: http://inkscape.org/

You might be interested in a tutorial on curves: http://www.youtube.com/watch?v=NBENwo72SfE


I think Windows file not be deleted.can you please tell us how do u install the ubuntu os ? did u create partition for Ubuntu setup or along with Windows?

but, try the following first>>>

1 ) Power on your machine
 2) Enter into BIOS Settings
 3) Goto "Boot" Tab
  4) Highlight Boot Mode, press Enter, swap from "UEFI" to "Legacy Support".  Under that Swap UEFI to legacy First
 5) goto EXIT tab and highlight Exit saving changes . Press Enter.
Restart Your Laptop.


I'm sorry you had such a difficult time. If you contact us (http://www.ubuntu.com/management/contact-us) we'll get in touch with you and make sure to get you sorted. Thanks for your patience.


What's the best way to get Python 2.5 and 2.7

I also use the fkrull's Deadsnakes PPA. I think it is the best way to get Python 2.4, 2.5, and 2.7 at this time. I have not run into any problems using it alongside the default Python2.6. It also helps to keep things clean if you use a virtualenv, especially for those versions of Python that are not the system default.


I would advise you not to use EasyBCD but to go with GRUB2.
GRUB2 will detect both Ubuntu and Windows 7 and will give you the option at boot time to select which operating system you want to start.

Do not mess with the Ubuntu partition from within Windows.
Windows is very intolerant with respect to other operating systems.
Furthermore if your Ubuntu partition contains an filesystem which is NOT FAT32 or NTFS (and this is most likely the case) then Windows will not recognize it anyway because Windows can't read the Linux type filesystems.

Linux can read FAT32 and NTFS (and ofcourse the typical Linux file systems) so always perform file system operations from within Linux.


Is there a way to set miracast over infrastructure mode for p2p interface

Use bridge,
if Miracast streams from 192.168.0.2
and Router address is 192.168.0.1
Local subnet is 192.168.0.0/255.255.0.0

openvpn --mktun --dev tap0
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 tap0
ifconfig tap0 0.0.0.0 promisc up
ifconfig eth0 0.0.0.0 promisc up
ifconfig br0 192.168.0.2 netmask 255.255.0.0 broadcast 192.168.255.255
route add default gw 192.168.0.1 br0

If you must use Layer 3 and mask illegal kind of stuff,
do the iptables correctly.
accept miracastaddress/4 udp from anywhere to anywhere
also,
accept igmp from anywhere to anywhere


If you can login in the third virtual console (Ctrl+Alt+F1 - also called tty1) this is a good thing because you can restore the file .profile to its default content only by running the following command in your virtual console:

cp /home/$USER/.profile /home/$USER/.profile.old
cp /etc/skel/.profile /home/$USER


I assume you have tried formatting the usb drive?

The next step would be trying

lsusb

in the terminal to see if your computer is detecting it.

If your drive shows up, try mounting it manually.

If you are unable to format it, and lsusb does not detect it, I am afraid your drive may be toast.


You can use Nautilus for FTP. It will use your keyring.


Booting in blind mode in Ubuntu 16.04 after two surge of voltage

Finally found a solution:

Boot your computer using LiveUSB or LiveCD, I used Ubuntu LiveUSB
Open terminal and execute: sudo -i
List disks and partitions: fdisk -l
Check first partition: fsck -y /dev/sda1
Check the rest partitions
Reboot from your main OS


Aukey Network Adapter Won't Work In Linux

I have the same Adapter; the AUKEY WF-R3.

My almost-working solution is to make and install the patched driver by xtknight: https://github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes

Get the .zip (from the green Clone or download button at the link) somehow onto the connection-less device.
Extract the files onto the desktop.
Open the resulting folder, right click and choose Open in Terminal
Type sudo apt-get install build-essential linux-headers-$(uname -r).
Type make clean.
Then type, make.
If that finished without errors, then the last step should be to type sudo make install.

That should work. For me, nothing showed up in the network manager. Here's an issue that I've opened for that reason; hopefully it will be resolved soon.


location of new kernel for rescuing grub?

I have a bash based utility I authored to update the kernel. I also include a way to handle problems such as you describe above.

Here is a link to the repo: https://github.com/mtompkins/linux-kernel-utilities

As AskUbuntu prefers a direct answer:

Boot to a linux based LiveCD (e.g. GParted on a USB)
Open Terminal
Mount the partition: sudo mount /dev/sdXY /mnt
where sdXY is likely your sda1
Mount some special partitions:
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
Chroot into the /mnt: sudo chroot /mnt
Remove the kernel packages you just installed with
dpkg -r yourRecentKernels
They must be removed in a non-dependency order, so just take your time.
dpkg --list | grep "ii[[:space:]][[:space:]]linux-[f,h,i,l]"

You should be able to use any additional tools you need like grub repair, etc.

HTH


This sounds like an issue with the version of webkit-gtk or webkit-sharp installed on your system.  It's either a bug in Banshee, or a problem with the packaging, but either way, you should probably report it on Launchpad.
This could be Bug 617957.  Does the problem happen with all types of video, or is it specific to certain types?  It was thought that the problem might be related to gapless playback, but based on Comment 16 there, that may not actually be the cause.


Seems like you posted this on Ubuntu forums too... I am not sure whether there's a proper solution to this question. One thing is obvious that we have to mess with lightdm configuration files in /etc/lightdm to get this done, at least to some extent.

I have tried messing with users.conf file, but so far I had no luck in doing it. I tried it with Guest, but may be you could have some luck in case of other users, especially if this user you want to have as default has more permissions and access than others.

What I did was this:

This is the how my original users.conf file looked like:

# User accounts configuration
#
# NOTE: If you have AccountsService installed on your system, then #LightDMwill
# use this instead and these settings will be ignored
#
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
#
[UserAccounts]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin

I tried changing it to something like this:

# User accounts configuration
#
# NOTE: If you have AccountsService installed on your system, then LightDM will
# use this instead and these settings will be ignored
#
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
[UserAccounts]
uid < 1001
IncludeAll = true
Include = myuserhere
hidden-users=guest Guest

The UID for my account was 1000, so I used 1001 over there...

You can use

id

command  to check your own uid and may be you can set the settings in the file like this too:

uid=1000

I am not sure whether this would work or not.

However, the above configuration didn't work. I think we have to tweak something little more over there to get what you want. Please look at this question to get some idea how to configure these files: How can I change the default user shown in the login screen?

The above question is about gdm and not lightdm, but the settings must be pretty much similar. So, you are on your own after that. Refer to this manual before you change them: http://people.ubuntu.com/~robert-ancell/lightdm/reference/

Also, make sure you take a backup of those conf files, because messing with lightdm sometimes kills your time better than anything else. Make sure you change to CLI using Alt + F2/F1 etc. and restore your backup if you break the whole thing.

Good luck!


Ubuntu 12.10 HP Pavilion dm4 wireless not working

By typing the command :

lspci

You can check what kind of wireless card your HP pavillon have. I guess it's probably something like bcm43xx.

If so, the answer to get your wifi working is :

sudo apt-get install linux linux-headers-generic kernel-package
sudo apt-get purge b43-fwcutter firmware-b43-installer firmware-b43-lpphy-installer firmware-b43legacy-installer bcmwl*
sudo apt-get install b43-fwcutter firmware-b43-lpphy-installer bcmwl*

Reboot !

From this post on askubuntu.com


Please check here: Installing Broadcom Wireless Drivers The correct driver for your 14e4:432b device is bcmwl-kernel-source. You can retrieve it and its dependency dkms from the install DVD or USB using this method. Navigate to pool > restricted > b > bcmwl and drag and drop the deb file to your desktop. Now navigate to pool > main > d > dkms and drag and drop dkms to your desktop. Now install both with:

cd ~/Desktop
sudo dpkg -i *.deb

Load the driver:

sudo modprobe wl

Your wireless should now be working.


Synapse STILL does not show files or folders

I have the same problem on Ubuntu 14.04.
What improved the situation for me was to disable all zeitgeist-related plugins in synapse.
Now, the locate plugin works.

Synapse seemed to be waiting forever answers from some of them, blocking the possibility to use the locate plugin, which usually is sufficient for me.

This solution is not perfect, since zeitgeist often gives better results (what was accessed last etc.),
but at least Synapse is useful again.


Listeners report distorted sound when I call with Skype

Poor VOIP quality on outgoing audio only is usually due to you (or other computers on your network) having maxed out your Internet connection's capacity to send data out. For most, available upstream bandwidth may be only 10 to 20% of your downstream bandwidth. Before you blame your computer, is another computer using Skype experiencing the same troubles at the same time you are?  Any program that syncs with a cloud account might be responsible for maxing outgoing bandwidth, especially if it is for sync'd folders or online-backup.

The fix is to have your firewall/router prioritize VOIP traffic over most other traffic. Many consumer routers have an option for QoS or VOIP prioritization, though they often are not very clear about how it's being implemented. Skype being fairly popular, hopefully most would succeed in prioritizing it. If you really want to get into the nuts and bolts of QoS, consider pfSense (an open-source firewall) and its 'traffic shaping' options.


recovery of data from unknown file system HDD

Your disk uses the Master Boot Record (MBR) partitioning system, which is still probably the most common type on hard disks. Note that the partitioning system is entirely distinct from the filesystem, which is what's important in accessing the files on the disk. Try typing the following command:

sudo blkid /dev/sdb?

(Change /dev/sdb to whatever the disk identifier is. This will be helpful in identifying the filesystem(s) used on your disk's partition(s). (Note also that the ? is a wildcard; the intent is to apply blkid to every partition on the disk; I'm not asking a question in that command.)

If the filesystem is damaged, you may be able to repair it with the Linux fsck command in Linux or OS X or CHKDSK in Windows, depending on what the filesystem is. If the filesystem is badly damaged, you may need to resort to PhotoRec or something similar to recover individual files.

The complete output of the gdisk -l command might have been helpful, although what you've shown indicates that there is at least one partition on the disk. It's conceivable that it had two or more but that one partition has been completely wiped out, though, so showing the complete output, with partition tables, may be worthwhile. Edit your question, and add four spaces to each line of program output to keep the site from reformatting the lines and rendering the entire output illegible. (I've made this edit to your original gdisk output.)

Edit: It looks like you've accidentally overwritten the contents of your external disk with an Ubuntu 14.04 installation image, thus severely damaging the original filesystem. Chances are you won't be able to recover everything from that disk, but PhotoRec (referenced above) may enable you to recover something.


Issue creating bootable USB using dd command

Using dd on devices requires root permissions. Prepend your command with sudo, like so:

sudo dd if=/home/GIGI/Windows/Windows.iso of=/dev/sdb1 ibs=4b obs=1b conv=notrunc,noerror


Does a file reported as "not a dynamic executable" by 'ldd' depend on other libraries?

Correct, but there's something to take into account.

From the ldd manpage:

  ldd does not work on a.out shared libraries.

  ldd does not work with some extremely old  a.out  programs  which
  were built  before  ldd  support was added to the compiler releases.
  If you use ldd on one of these programs, the program will attempt to
  run  with argc = 0 and the results will be unpredictable.


You are probably switching activities with that key combination.

Try looking at the global keyboard shortcut management (should come up if you type key in the alt+f2-dialog), and then choose plasma desktop from the dropdown menu. I have something like "next activity" there, which in my case is mapped on meta+tab. Getting back should be meta+shift+tab, so just try windows+shift+tab on your keyboard to get back.

If you want to, you can also disable the shortcut from the same menu.


Trying to establish InternalNetwork connection between UbuntuServer 14.04 and UbuntuClient 16.04

You have to configure NAT at your Ubuntu 14.04 server.
Enable forwarding:

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

Make forwarding persistent. Open file:

sudo nano /etc/sysctl.conf

and add the line to the file:

net.ipv4.ip_forward = 1

Install iptables:

sudo apt-get install iptables

Enable NAT:

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

Make iptables rules persistent. Run

sudo iptables-save > /etc/iptables.up.rules

Afterwards open file:

sudo nano /etc/network/interfaces

and add to the file this line:

pre-up iptables-restore < /etc/iptables.up.rules


What's the likely cause of a get monitor geometry assertion?

Rather than deleting the question, I'll just supply the explanation: it proved to be a faulty HDMI cable.


Remove broken teamviwer source list file and try to update.

sudo rm -f /etc/apt/sources.list.d/teamviewer.list

It won't impact on your Teamviewer which is installed.
In future you can install latest teamviewer by downloading debian package from its official site. Above file will be generated automatically when you install it.


How to completely remove Ubuntu 12.04 after restoring computer to factory settings?

How to completely remove Ubuntu installed with Wubi...

Normal uninstall

Uninstall it by going to the control panel, Add/Remove programs and find the Ubuntu entry and double click to automatically uninstall.

Manual Uninstall

If the normal uninstall didn't work for some reason e.g. you already manually deleted the \ubuntu directory manually or did a factory restore) you should follow the instructions in the Wubi guide to manually uninstall.

If you think that there's still some space 'stolen' from your drive, then you should run chkdsk /f (note that this requires a reboot if you're running it on the C: drive). After that, look in the hidden, protected folder \found.000 (or .001 etc.) and look within that for any file that is Gigabytes in size and remove it. (If you had important data you lost, don't remove it, you can probably recover the data... but that's another topic).

One area that is fiddly is the BCD store for Windows Vista/7. If you've tried to manually remove Ubuntu or done that factory restore, but the Ubuntu entry remains, then it's simple to remove it using bcdedit:

To use bcdedit, run cmd.exe (Run as administrator), then enter bcdedit to show all boot entries, note the {GUID} specified for the Ubuntu entry, and then remove it: bcdedit /delete {GUID}

Here's an example:

C:\Windows\system32>bcdedit

Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=\Device\HarddiskVolume2
description             Windows Boot Manager
locale                  en-us
inherit                 {globalsettings}
default                 {current}
resumeobject            {6529eb15-62be-11e0-b237-a8486d1f5063}
displayorder            {current}
                        {c001df0c-5ec0-11e1-a466-005056c00008}
toolsdisplayorder       {memdiag}
timeout                 10

Windows Boot Loader
-------------------
identifier              {current}
device                  partition=C:
path                    \Windows\system32\winload.exe
description             Windows 7
locale                  en-us
inherit                 {bootloadersettings}
recoverysequence        {6529eb17-62be-11e0-b237-a8486d1f5063}
recoveryenabled         Yes
osdevice                partition=C:
systemroot              \Windows
resumeobject            {6529eb15-62be-11e0-b237-a8486d1f5063}
nx                      OptIn

Real-mode Boot Sector
---------------------
identifier              {c001df0c-5ec0-11e1-a466-005056c00008}
device                  partition=C:
path                    \ubuntu\winboot\wubildr.mbr
description             Ubuntu

C:\Windows\system32>bcdedit /delete {c001df0c-5ec0-11e1-a466-005056c00008}

Make sure you run cmd.exe as an administrator (not logged in an administrator account... there is a difference).


The easiest way is to install ubuntu-gnome-desktop
This will give you the same system as if you were to install Ubuntu Gnome.
You could also just download the Ubuntu Gnome ISO but it will be a much smaller download to just install the desktop.

Doing it this way, will pull in the needed dependencies for Ubuntu and avoid any issues.

One caveat:  When you install Gnome, it will make the Unity top bar black and the icons will be different but it should work if you would need it.

I would advise that you only install Gnome if you don't want to use Unity because of the above mentioned caveat.


How can I hold back some packages when upgrading releases?

Assuming such constraints were enforces by the upgrade manager, there's a good chance that you'll have broken dependencies and will have to hold back other packages to avoid the broken dependencies. If any of those other packages are critical/core packages, the upgrade manager will refuse to continue.

In the case of MySQL, this might be less likely based on the dependencies and reverse-dependencies of the mysql-server-5.5 package in Trusty.


Unlike the normal ISOs, which expect to use the files included on the ISO when installing, the minimal install ISO is designed to download packages during the installation, so it allows you to choose which mirror to use:

Right after choosing your hostname, the Choose a mirror of the Ubuntu archive menu will appear.
Go to the very top of the list and select enter information manually:

Enter the hostname of your mirror.
Enter the mirror directory.
If you're using one, enter any proxy you're using to reach the mirror.
When it, much later, the Software selection menu comes up, choose which servers you want, ensuring that Basic Ubuntu server at the very bottom of the list is also selected:


Ubuntu 16.04: WiFi BCM43142 doesn't see nearby networks

Run in terminal

sudo tee /etc/modprobe.d/blacklist_acer-wmi.conf <<< "blacklist acer_wmi"

and reboot.

It does not matter where to add the blacklist line to blacklist.conf or a separate file. But it is a good practice to add custom modprobe config to separate files, not to be overwritten by package updates.


How to upgrade from 12.10 to 13.10 without official update for 13.10

Your two options are to either update to 13.04, then update to 13.10. Or, more preferably, reinstall Ubuntu with a 13.10 CD. Make sure to back up all your data first. If you plan on skipping versions when upgrading often, it's a good idea to have a separate home partition on your hard drive to simplify the process.


If the printer is USB only, connect it to one computer, add the printer, and share the printer on the network. One the second computer, have it look for a network printer and add it.

If the printer is wireless or ethernet, connect the printer to your network, then add a network printer on both computers.

If it's an HP printer, you'll want to install the HPLIP software suite, see here, or in Synaptic, and the specific HP printer driver software.

Other printer vendors may also have Linux/Ubuntu compatible printer specific software. Check their web sites.


How to upgrade from Ubuntu 16.04 to 18.04?

do-release-upgrade

should upgrade from 16.04 to 18.04.

But success is not guaranteed. There are too many changes between the releases to be always smooth. Make a backup first.


Change login screen purple background 18.10

to change the login screen color equivalent to those 15 colors which are available when we open Settings>Background>LockScreen>color

first set the required color as lockscreen from the settings>background>lockscreen>color
to know the value of this color run the below command.
gsettings get org.gnome.desktop.screensaver primary-color

Example:
pratap@i7-6550U:~$ gsettings get org.gnome.desktop.screensaver primary-color
'#7a8aa2'
pratap@i7-6550U:~$

Copy the color, in above case it is #7a8aa2
now we need to edit the gdm3.css file.
open the file with your favorite editor, mine is gedit. so
sudo -H gedit /etc/alternatives/gdm3.css
go to line number around 1985 & 1986 and find the below content.
#lockDialogGroup {
  background: none;
  background-color: none;
  background-gradient-direction: vertical;
  background-gradient-start: #6D2169;
  background-gradient-end: #370026; }

change the content with
#lockDialogGroup {
  background: none;
  background-color: none;
  background-gradient-direction: vertical;
  background-gradient-start: #7a8aa2;
  background-gradient-end: #7a8aa2; }

here in the line number 1985 & 1986 put the color you want in place of #7a8aa2
save the file, close & reboot to see the change.

these are the 15 colors + default one.
#7a634b
#425265
#475b52
#888888
#7a8aa2
#ff89a9
#ed9116
#d272c4
#437740
#fad166
#ab2876
#5d479d
#008094
#db5d33
#000000

#023c88


I ran into the same trouble.
I was using gdm3 with no problem. After booting due to some updates, I was unable to login, due to the login loop.
I tried more or less the same: validate .Xauthority permissions, /tmp permissions, review my nvidia drivers, remove all custom drivers and install again, remove gnome, remove lightdm, install lightdm (I got the same loop), install gdm3 again from scratch, ...
None of that worked.
Like you, when I went to the terminal and ran startx, I gained access to the X environment, but in a very ugly way, in the sense that, e.g. I couldn't open a terminal with CTRL+ALT+T.
Finally, my fix was super silly.
Of course it was a permissions problems: If you are able to startx from the command line but unable to start the session from the standard graphical login screen, something is there...
In my case, I had added a new entry on /etc/environment to change the PATH.
I had an entry on line 1 with something like:
PATH=/bin:/sbin:...

And the new entry was:
export PATH=$PATH:/newpath

It looks like export is causing the problem right here, as you only need to export for new variables, not for the existing ones.
Just removed the entry and everything worked fine!


Okay, most of these are from the same package coreutils and pidof is from sysvinit-utils. Hopefully, these will install.

Run the following commands:

sudo apt-get clean
sudo apt-get update
sudo apt-get install --reinstall coreutils sysvinit-utils

Post any errors, there's always a way to  manually install these as well.

Manual install:

cd
mkdir aptget;cd aptget
apt-get download coreutils
ar xvf *
tar xvf data*
sudo mv /bin/rm /bin/oldrm
sudo mv /bin/date /bin/olddate
sudo cp bin/rm /bin/
sudo cp bin/rm /usr/bin/
sudo cp bin/date /bin/
sudo cp bin/date /usr/bin/

Now, try to run apt-get and see if it is successful. If you don't get the "not found" error anymore, run the following commands:

sudo cp bin/* /bin/
sudo cp bin/* /usr/bin/

When you are finished, remove the temp directory:

cd ..
rm -R aptget


Why my computer boot straight into Windows 7 and not boot options?

Okay:

You installed Ubuntu onto a secondary hard drive, or an external hardrive, or some other form of media different from your Windows Installation.

Answer: Change your boot options to put the place you installed Ubuntu as first priority over your Primary HDD.

I am guessing that would be the trouble.  If its not, reply and I will update my answer.


How do I list all packages installed for a specific architecture?

To find the packages of architecture i386,
you could filter the output of dpkg -l,
where lines that start with ii,
and column 4 is i386:

dpkg -l | awk '/^ii/ && $4 == "i386" { print }'

To install the package of the amd64 architecture,
you could use :amd64 suffix of the package name with the install command.


Wireless appears to not always work on the initial boot after the Nexus 7 Install completes just reboot the device and networks should be available.


I'm sorry to tell you this - but those smudges are a clear sign that your HD3650 is starting to fail. Especially if they become more frequent the longer you use the computer.

I had that same issue on the same card on a laptop of mine.

Regardless, if you want to exclude a driver problem, you can just download an image of a later (14.10) or earlier (I would recommend 12.04 based on the card) Ubuntu, write it to a USB stick, boot it, use it for a while and check if the issue remains.

Unfortunately the issue is all too familiar to me. The "smudges" started as really small glitches, in 3D or composited images, and then grew to what you see now. In a later stage, most of the screen started getting "garbled".

The potential goo news is that replacing the card on my laptop with one from ebay solved the issue for me. Although it is not a task for a beginner.

Here is the guide I followed for my own laptop.

Of course, this will vary with the laptop, and in some cases it may not even be possible to swap cards.

I hope this is not the issue with your own card, but if it is I hope I have provided you with some options.

Update:

After looking more carefully at the picture, this does not look like your typical failing card error (although I wouldn't completely discard the possibility).
This can also be an issue with hyperz.
You can try to disable it by editing /etc/profile and adding this line to the bottom:
R600_DEBUG=nohyperz
After adding this line, just restart your machine and see it it has helped.


You're right to be worried about locking yourself out. If your home directory is encrypted and you keep a Two-Factor Authentication authorization mapping file there, you will not be able to log in! That's why I always use a central authfile (/etc/u2f_mappings).
I suggest creating a second account while testing so you don't lock yourself out of your main account. Also, be sure to get a second 2FA key and register it as a backup in case you lose the first one.
How to enable passwordless login
Although you should be careful, the process is easy and straightforward. To make it even easier, I've written this so you can simply cut and paste the following commands into a terminal:

sudo apt install libpam-u2f

pamu2fcfg | sudo tee /etc/u2f_mappings
# (At this point, press the button. You should see a long string of numbers. If you don't, make sure you have udev setup correctly.)

sudo -i

cd /etc/pam.d

echo 'auth sufficient pam_u2f.so authfile=/etc/u2f_mappings cue' > common-u2f

for f in gdm-password lightdm sudo login; do
mv $f $f~
awk '/@include common-auth/ {print "@include common-u2f"}; {print}' $f~ > $f
done

exit

Notes

When logging in, you'll be prompted to touch your device if it is detected Otherwise, you'll be asked to type in a password.

We use the term "sufficient" above so that either the password or the U2F key are sufficient to login (as requested in the question). For a more typical Two-factor Authentication login, "sufficient" would be replaced by the word "required" so that both would always be needed.

The u2f line in the pam.d files must come before @include common-auth, otherwise you'll be required to type in a password before the U2F key is checked.

I would be remiss if I didn't point out that using a "2FA" key in this way, while convenient, does not increase your security. In fact, you've only opened a second way to get into your account. But, that's not necessarily bad; not everybody needs high-security and a dongle like this can save you from having an easy to type, short, and vulnerable password.

And so much more!
By the way, these instructions aren't just for devices from Yubico. I'm using a key from Solokeys and it works great. Additionally, the setup works for both USB and NFC keys.
If you need more information, Yubico's instructions — as mentioned in the original question — are fairly informative. Also, see the man pages for pam_u2f and pamu2fcfg.


Follow the instructions on the Nginx website:

http://nginx.org/en/linux_packages.html#Ubuntu

  Install the prerequisites:

  sudo apt install curl gnupg2 ca-certificates lsb-release

  To set up the apt repository for stable nginx packages, run the following command:

echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list

  If you would like to use mainline nginx packages, run the following command instead:

echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list

  Next, import an official nginx signing key so apt could verify the packages
  authenticity:

curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -

  Verify that you now have the proper key:

sudo apt-key fingerprint ABF5BD827BD9BF62

  The output should contain the full fingerprint 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62 as follows:

pub   rsa2048 2011-08-19 [SC] [expires: 2024-06-14]
      573B FD6B 3D8F BC64 1079  A6AB ABF5 BD82 7BD9 BF62
uid   [ unknown] nginx signing key <signing-key@nginx.com>

  To install nginx,
  run the following commands:

sudo apt update
sudo apt install nginx


What graphics card is needed and how to set up 6 monitors in Ubuntu 16.04?

This is a very and dependent not only on your graphics card but also the desktop manager. If you need to use graphics cards then using gnome or KDE is not possible. With AMD on the other hand you can run 6 monitors of a single card however be prepared to pay for an additional adapter/hub.


Redirecting packages when migrating PPAs

No, not really.

The dummy package would work. As would deleting foo from the PPA, so that nobody can install the old version. Then change the description of the PPA to point the user at the new PPA.


Boot into an Ubuntu Live CD/USB and open a terminal. Run sudo mount -t vfat -o iocharset-utf8,umask=000 /dev/sda1 /mnt/sda1. You'll need to run sudo mkdir /mnt/sda1 first. Once it's mounted, browse the EFI drive in Nautilus and delete every folder called "Ubuntu".


A 2008 Macbook is either the MB402*/A MB403*/A MB404*/A (MacBook4,1) or MB402*/B (MacBook4,2), both of which use the Integrated Airport Extreme 802.11a/b/g/n (draft-n enabled) which uses a Broadcom proprietary driver. If you can make a wired connection, you can follow the instructions at MacBook can’t find WiFi for Ubuntu 18.04 to load the relevant proprietary drivers.


problems with games using wine version 1.5 on ubuntu version 12.04

The problem with Wine is, even if a game perfectly in one version of wine it may not work well in another version and sometimes it will not work at another version. So selecting the correct version for game is important.  The wine app database will help you to select the correct version. Also see this question on AU.


It is not that bad, but having even one bad sector is a warning sign that the part has entered the next failure stage, and more bad sectors can develop. It is just a matter of how soon. So, definitely don't rely on this system for important work/data you plan on preserving.

Also, the hdd does not require a fixed number of bad sectors to die suddenly (the chance of sudden death already increased significantly between zero to non-zero), so the usual recommended practice is to get a replacement for any hard disk with known bad sectors.


I have opened 'install.sh' file to install Kyocera printer, but don't know how to 'Run'

If you prefer to DIY (using sudo in scripts is a bad idea and that one may ask for your password 8 times) you can just open a terminal (press ctrl+alt+t) then cd to the directory that contains the files (you can navigate to it and click "open in terminal" if you're not sure how to do this) and enter the commands from the script to do the same thing

make a directory for the .ppd files:

sudo mkdir -p /usr/share/cups/model/Kyocera

copy the files to the right places:

sudo cp *.ppd /usr/share/cups/model/Kyocera
sudo cp rastertokpsl /usr/lib/cups/filter/rastertokpsl

And that's the installation done, according to the script


What is the difference between GDM and Gnome-desktop?

Installing gnome-desktop gives you the GNOME desktop environment. You can access it through lightdm desktop manager (Ubuntu's default) even if you don't have gdm. On the other hand, gdm is merely login screen. Surprisingly enough, if you do apt-cache show gdm it reports that gnome-shell is one of the dependencies, but apt-cache show gnome-desktop reports that gdm is only a recommended package. Why is it so ? I don't know, and probably only the developers can tell you.


Will upgrading to windows 10 affect my dual boot?

Nope it won't unless you don't touch your Ubuntu partition. After updating or even installing from live media. Just open Ubuntu and  update your grub.
I did few days ago everything is running fine.


Installing Slowmovideo on 14.04 when only Saucy package is available

I eventually found this helpful almost completed fork for Debian Jessie after setting about building slowmoVideo under Ubuntu 14.04 myself. Try downloading valgit's code, then making a build directory in the same directory as the src directory, cd-ing into it, and then executing,

cmake ../src -DUSE_QTKIT=FALSE -DENABLE_TESTS=FALSE

The rest of the instructions are the same as those appearing in the Compiling section of the slowmoVideo website i.e.,

make -j3
sudo make install

This way everything builds fine for me, though I still get an error associated with finding libbamtools when CMake runs verify_app. The application itself is working fine, however. Thanks to tektektek and valgit for allowing this program to be built under 14.04.


So here it is:

BASIC

  sudo dd if=/dev/mmcblk0 of=/dev/null count=1

1+0 records in

1+0 records out

512 bytes copied, 0,000xx s, 1,9MB/s

READ-ONLY CHECK

  sudo badblocks -b 4096 -c 4096 -s /dev/mmcblk0

checking for bad blocks (read-only test)" 0,00% done, 0:00 elapse (0/0/0 error) done


How to change directory to the old directory?

with bash you can use cd - to go to the old directory also known as $OLDPWD


exiftool -all= inputfile

The latest version of exiftool supports most file formats.
Output:

If the input file contained metadata, it removes the metadata and overwrites inputfile, but saves a copy of the original as inputfile_original in the same folder.
If the input file did not contain metadata, it performs no changes.

There are options in ExifTool to delete the original file: -overwrite_original and -overwrite_original_in_place.


krusader custom view matching more than one pattern

pattern can be entered after space, so it would be

  super extra


Chromecast 2, no cast devices found on 16.04 with latest Chromium

Google removed casting feature from chromium. This used to be an extension for both Chrome and Chromium. But since they build cast function into Chrome, they stopped supporting the cast extension.

They wont build cast function into chromium as it is open source. Google is a terrible company.
Stop using their products. Use Firefox


What is "computer://" path in nautilus and how to access it as root?

Your assumption is not correct. I mean the fact that this kind of special URI is not configurable on a user basis.

computer:// is a special URI like is recent://, trash://, burn://, ao.

  The reason those URIs exist is because Nautilus uses a virtual file system called Gnome Virtual File System (gvfs) which is built on top of another virtual file system called FUSE. Specifically those URIs are configured in the /usr/lib/gvfs/ directory named gvfsd-*. These are binary files so don't try and edit them. - via Rothgar

You can get access to these special URIs as root by using dbus:

gksu dbus-launch nautilus computer://


Cant disable, control keyboard backlight on sony vaio vpcf236fm

Run this command and tell us if it turns it off:

$ sudo su -c "echo 0 > /sys/devices/platform/sony-laptop/kbd_backlight"

You will have to type in your password to try it. To open up a terminal, just type Ctrl-Alt-T or open it from the Unity menu.

I'm just going to go ahead and assume this command works and show a nice little script that will automagically turn the keyboard backlight on and off when you unplug the battery. If the command doesn't work....well the script'll be here for future reference then.

Run the command gksudo gedit '/etc/pm/power.d/99_kbd_backlight'. Type in your password.

Then paste the following into the gedit window:

#!/bin/bash
export DISPLAY=:0.0
if on_ac_power; then
    echo 1 > /sys/devices/platform/sony-laptop/kbd_backlight
else

    echo 0 > /sys/devices/platform/sony-laptop/kbd_backlight
fi

exit 0

Then run this command:

$ sudo chmod +x /etc/pm/power.d/99_kbd_backlight

You may need to restart your computer for this to take effect. Theoretically, this should turn your keyboard backlight on and off when you plug and unplug your charger.

Edited the script from this source: http://www.techytalk.info/ubuntu-disable-enable-compiz-battery-ac-script/

EDIT: This may be a more "proper" answer:
Keyboard backlighting not working on a Vaio VPCSB11FX


Xubuntu 19.10 - Black screen with mouse pointer

The same situation with MSI VR600X.

It's helpful to me: https://www.stephenwagner.com/2019/05/05/ubuntu-linux-black-screen-frozen-system-after-upgrade-install/

Temporary Fix

To get the system to boot:

After turning on your PC, hold the right SHIFT key to get to the GRUB bootloader.
Once GRUB is open, press the “e” key to edit the first highlighted entry “Ubuntu”.
Move your cursor down to the line that starts with “linux”, and use the right arrow key to find the section with the words “ro quiet splash”.
Add “nomodeset” after these words.

nomodeset

Feel free to remove “quiet” and “splash” for more verbosity to troubleshoot the boot process.
Press “CTRL + X” or “F10” to boot.
The system should now boot.

Permanent Fix

To permanently resolve the issue:

Once the system has booted using the temporary fix, log in.
Open a terminal window (Applications -> Terminal, or press the “Start” button and type terminal).
Either “su” in to root, or use “sudo” to open your favorite text editor and edit the file “/etc/default/grub” (I use nano which can be install by running “dnf install nano”):

nano /etc/default/grub

Locate the line with the variable “GRUB_CMDLINE_LINUX_DEFAULT”, and add “nomodeset” to the variables. Feel free to remove “splash” and “quiet” if you’d like text boot. Here’s an example of my line after editing (yours will look different):

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

Save the file and exit the text editor (CTRL+X to quit, the press “y” and enter to save).
At the bash prompt, execute the following command to regenerate the grub.conf file on the /boot partition from your new default file:

update-grub

Restart your system, it should now boot!

Please Note: Always make sure you have a full system backup before modifying any system files!


Open a terminal and run gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown true. This will disable the dialog.


How do I get a byobu session with a command to run on startup?

Open your terminal(CTRL+ALT+T) and then type as

nano /etc/rc.local

and then add this line before exit 0

byobu -S boot-time mycommand &

Then press ctrlx save & close.


MAC crashed - Installing Ubuntu as single boot

Now i'm no wizard at replacing OS on funky hardware, but I've been told that (possibly) the easiest way to get Ubuntu on a mac is to run boot camp and do it through there, and then deleting the OSX partition in the process, but seeing the current state that you're in, I would try just running Ubuntu from the HDD and hoping for the best


How do I change location for the "standard" folders? (Images, Documents, Downloads etc)

You can change their standard location by changing the file ~/.config/user-dirs.dirs which usually looks something like this:

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/desktop"
XDG_DOWNLOAD_DIR="$HOME/downloads"
XDG_TEMPLATES_DIR="$HOME/templates"
XDG_PUBLICSHARE_DIR="$HOME/share"
XDG_DOCUMENTS_DIR="$HOME/doc"
XDG_MUSIC_DIR="$HOME/music"
XDG_PICTURES_DIR="$HOME/pictures"
XDG_VIDEOS_DIR="$HOME/videos"

Now lets say you have a second drive (assuming it is /dev/sdb1) and you have it auto-mounted over your fstab file to /media/external you would alter the links like this:

XDG_VIDEOS_DIR="/media/external/videos"


Is it possible to run Windows for one User and Ubuntu for another User simultaneously?

Yes ofcourse you can dual boot your os.
Create some free space for installing ubuntu and then restart your computer with the Ubuntu installation disk.
You will be asked to erase and install or install alongside with windows.
You can chose the second option and follow the instructions on the screen


How to add authenticated podcast feed to rhythmbox

As far as I know there isn't currently any support for authenticated http podcast feeds in Rhythmbox or any of its third party plugins, as also noted on the mailing lists.

A program that is specially designed for managing podcasts is gpodder, which is available in the repositories. As I know from experience, what it says about its support for authenticated podcast feeds in the FAQ is accurate. You need to open the program and then

  simply add your username and password into the URL when adding a channel. gPodder will automatically see the provided authentication data and use it to authenticate to the web server. The syntax is http://USERNAME:PASSWORD@example.org/files/feed.xml.

An example of the authentication process in gpodder is below:

The authentication works best in the 3.x series as sometimes it would fail in the 2.x series if the 'user name consists of an email', but as 3.2 is the default version in Quantal you should be fine.


Errow when install python3-apport_2.20.1 in Ubuntu 16.04

Reinstalling python3-minimal, which supplies py3clean, may allow the process to complete. dist-upgrade may be needed if problems persist after the first four commands. See Why use apt-get upgrade instead of apt-get dist-upgrade?

sudo apt-get install --reinstall python3-minimal
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install

Given additional persistent errors a somewhat more aggressive fix may be warranted. Use either apt-get's mirror: method, or Command-line foo using netselect to change to another mirror. The  LANET mirror is a likely candidate, but see the Official Archive Mirrors for Ubuntu for additional options. The mv command will move your current apt lists and current sources to /tmp where they can be restored if something goes wrong in following steps. apt-get clean command will clear any downloaded package archives. apt-get update will repopulate your apt lists based on your sources files. apt-get dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages.

mkdir -p /tmp/apt/lists
mkdir -p /tmp/etc/apt/source.list.d
sudo mv /var/lib/apt/lists/* /tmp/apt/lists/
cp /etc/apt/source.list.d/* /tmp/etc/apt/source.list.d/
cp /etc/apt/source.list /tmp/etc/apt/
# change mirrors with one of the method mentioned above then continue.
sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade


The desired shell's full path must be added to the /etc/shells file - from man shells

DESCRIPTION
       /etc/shells  is  a text file which contains the full pathnames of valid
       login shells.  This file is consulted by chsh(1) and  available  to  be
       queried by other programs.


If anyone hay this problem in the future:

To get a clear vision of the problem i saw one possible solution here:

Lubuntu 18:10: Failed to execute child process "lxsession-default" (No such file or > directory)

By the way, the most easy way to solve it is format the Linux partitions(we tried other ways but looks imposible, he cant use the lxqt control pannel either).

Actualization: I found the way to enter the Desktop configuration menu to apply the solution in the mentioned link:

You should log off, and then log in using the Openbox Desktop Enviroment. When u are inside it(sometimes you need to do right click on the screen, because it looks like the login screen), you should open a terminal emulator and apply this commands:

cd /usr/bin/

And after that:

lxqt-config

(sometimes you could skip the 1st command and launch the application directly, without using the cd command)

Once there, you should choose the icon(it will not have icon) "Desktop".
After that you could go to the tab called "advanced" and then unmark(disable) the option called:
"Show menus provided by windows managers when desktop is clicked"

If someone tries this method descripted in the actualization and it works, please comment this answer, so if anyone more have the problem he could apply this solution too.

This second option is thanks to "taos001"(He posted it in one answer of the link provided here)


How to get rid of the Gallium 0.4 on llvmpipe (LLVM 0x300) driver? INTEL needed

The xserver-xorg-video-intel package provides the basic Xorg driver which is used for 2D drawing, etc. llvmpipe is the software renderer for 3D operations, if you install the libgl1-mesa-dri package, then you should have the Mesa DRI Intel(r) ... renderer.

Note that the original drivers shipped with 12.04 are quite old, you are suggested to install the LTS Enablement Stack to get more recent versions for the graphics subsystem and kernel.


KeePass2 Portable authentication sent requests to Firefox/ Keefox after closing KeePass2 Portable

Quoting the solution proposed by @g1ps on the github issues page (see the linkgithub for KeeFox

  Blockquote

  "In case anyone else has the same issue as me, I'm reporting what I found here. My problem was that I'd changed the names of some groups in Keepass, including Keepass's home group. After trying a number of times over a period of several months, I finally stumbled across a reference to this and reassiged the start-up group. Normal functionality was restored immediately. I knew that Keefox was connecting because I could log in and other factors worked, it was just not staying logged in or matching log-ins. The details of how to correct this situation are here:

  https://github.com/luckyrat/KeeFox/wiki/en-|-Using-KeeFox

  under "Home group".

The error no longer recurs for now. Hence, setting the KeePass category, containing the Firefox access key to Keepass, as KeeFox Start Group may be the solution as explained in the wiki link.

I hoped this solution helps anyone facing this problem.


You can run TortoiseHG using command thg (or hgtk in older versions), usually in the directory with Mercurial repo.

To use Nautilus plugin, Nautilus must be restarted first by logging out or executing nautilus -q. You should see TortoiseHG in context menu and File menu then.


How can I make '/etc/vim/vimrc' writeable?

You should not be editing /etc/vim/vimrc, it is not your vimrc. Instead, edit ~/.vimrc. If you really want to edit the global vimrc, you need make it writable by everyone:

chmod 666 /etc/vim/vimrc

Or make yourself the owner of the file

chown yourloginnameher /etc/vim/vimrc


How do I create a LiveUSB for mac without os x?

You will need to follow these instructions to install this software and create a bootable USB stick so that you can use that to start and install Ubuntu on your other computer: How to create a bootable USB
stick on Windows

You can get the ISO which you will need to install on the USB stick from here: Download Ubuntu Desktop

Then you will need to insert the USB stick into your other computer which you wish to install Ubuntu on and then turn it on so that it boots from the stick. Then you can proceed with the installation.
If it does not boot off the USB stick then you will need to move that device to the top of the machine's Boot Order in the machine's EFI settings. To access the EFI settings on a Mac, follow these instructions: How to get into the macbook bios


gitlab-ci : Package 'mysql-client' has no installation candidate

I happen to run into the same error. In my case i'm using docker with python:3.7 which used to be based on debian stretch but is now updated to debian buster (10). This newer debian version doesn't have the package mysql-client -> https://packages.debian.org/search?searchon=names&keywords=mysql-client

Could it be that you're using docker to load golang:1.12? They actually use debian instead of ubuntu and have recently moved to debian 10. To fix this error install default-mysql-client instead.

(This should be a comment but I don't have 50 rep points yet and I do believe this helps you out because of the exact timing)


I'm not sure how to disable it on autostart, but I asked around on the kde forums and got:

qdbus org.kde.kde /modules/kdeconnect [start|stop]

You can use tab completion with qdbus

I think it's only per-session.

https://forum.kde.org/viewtopic.php?f=66&t=140535


unable to handle kernel NULL pointer dereference

This surly looks like a BUG with an out-of-tree module: andordrvlx. The above type of Oops means that we've dereferenced an invalid pointer which resulted in the kernel Oops.

[ 1402.460981] IP: [] AndorDisableInterrupts+0x21/0x40 [andordrvlx]

You should be submitting a bug report as per (Debugging Kernel OOPS)[https://wiki.ubuntu.com/DebuggingKernelOops]


My solution:

I installed NFS on one of my Ubuntu servers.

Installed PlayStation media server locally on my network.

and mounted the NTF file storage on the PlayStation media server.

tested whit both AVI and MVK files, and they are streamed whiteout any shuttering. on my 30/30 fiber connection. Still remain to test this setup whit blue ray.


Is Ubuntu compatible with Dell n4050 laptop?

Judging by this official Ubuntu Hardware certification for your laptop (if that really is your laptop, check the hardware specifics) chances are pretty high for it to work out of the box with the advised Ubuntu 12.04 LTS 64bit.

You can also always try any Ubuntu installation before you actually install it on your computer by booting it and choosing "Try Ubuntu" instead of installing right away. More about live testing Ubuntu can be found here.


From xenial on the k9copy package in ppa:tomtomtom/k9copy provides the Qt5 version. To install k9copy in Ubuntu 14.04 or 16.04, open the terminal and type:

sudo add-apt-repository ppa:tomtomtom/k9copy
sudo apt-get update
sudo apt-get install k9copy


What package manager that upgrade incrementally beside snap?

Cupt (cupt) provides a console interface to Cupt library, which implements high-level package manager for Debian and derivatives. Cupt is written with flexibility and reliability in mind and uses dpkg as the back-end.
Cupt uses the same APT infrastructure, e.g. index files, deb cache archive files, configuration files. It understands some of widely used APT options.
cupt can be installed by sudo apt install cupt in all currently supported versions of Ubuntu.
Some features:

strict full-case resolver
resolver reasons tracking
command-line and 'cupt::*' option name checker
case-sensitive search
pinning by source package name;
pinning by package groups using shell-like patterns;
configurable 'depends' and 'rdepends' subcommands
'satisfy' subcommand
support of LZMA-compressed indexes
source versions synchronization
'shell' subcommand (to get command history, search etc. working, install the package 'libreadline7')
integration with debdelta (to get it, install the package 'debdelta' with sudo apt install debdelta)
system snapshots (needs packages 'dpkg-dev' and 'dpkg-repack')

Its interface is mostly like apt-get/aptitude console interface.

debdelta
debdelta (debdelta) is a program suite designed to compute changes between Debian packages. These changes (deltas) are similar to the output of the "diff" program in that they may be used to store and transmit only the changes between Debian packages.
This suite contains 'debdelta-upgrade', that downloads deltas and use them
to create all Debian packages needed for an 'apt-get upgrade'. It may be used in a Debian/unstable host (to speed up download of new packages), or in a Debian/stable host (for security updates).
Similarly, when this package is installed, the 'cupt' package manager will use deltas to upgrade the host.
debdelta can be installed by sudo apt install debdelta in all currently supported versions of Ubuntu.


How to permanently assign a different keyboard layout to a USB keyboard?

After a little research, I've found a solution, although I'm still open to other (probably better) answers.

Here's a startup script (which can be added to Startup Applications) which will set the maually entered usbkbd_layout variable to the usbkbd device ids found in the xinput -list:

#!/bin/bash
usbkbd=`xinput -list | grep -c "USB Keyboard"`
if [[ "$usbkbd" -gt 0 ]]
then
    usbkbd_ids=`xinput -list | grep "USB Keyboard" | awk -F'=' '{print $2}' | cut -c 1-2`
    usbkbd_layout="tr(f)"
    for ID in $usbkbd_ids
    do
      setxkbmap -device "${ID}" -layout "${usbkbd_layout}"
    done
fi
exit 0

This script is quite useful (and more stable) for scenarios where user starts using the laptop on a desktop setup (with external keyboard, mouse and monitor, etc.), and it can also be run manually whenever the external USB keyboard is plugged in...

==========================================================================

THE BETTER (almost perfect) SOLUTION - found thanks to MinimusHeximus and the respective contributors to the thread he mentioned in his comment below:

I can now just plugin my USB keyboard and automatically have its different (TR-F) keyboard layout applied while still keeping the default keyboard layout (TR-Q) on my laptop!

Here are the files and their contents that make this possible:

/etc/udev/rules.d/00-usb-keyboard.rules

ATTRS{idVendor}=="09da", ATTRS{idProduct}=="0260", OWNER="sadi"
ACTION=="add", RUN+="/home/sadi/.bin/usb-keyboard-in_udev"
ACTION=="remove", RUN+="/home/sadi/.bin/usb-keyboard-out_udev"

/home/sadi/.bin/usb-keyboard-in_udev

#!/bin/bash
/home/sadi/.bin/usb-keyboard-in &

/home/sadi/.bin/usb-keyboard-in

#!/bin/bash
sleep 1
DISPLAY=":0.0"
HOME=/home/sadi/
XAUTHORITY=$HOME/.Xauthority
export DISPLAY XAUTHORITY HOME
usbkbd_id=`xinput -list | grep "USB Keyboard" | awk -F'=' '{print $2}' | cut -c 1-2 | head -1`
usbkbd_layout="tr(f)"
if [ "${usbkbd_id}" ]; then
    gsettings set org.gnome.settings-daemon.plugins.keyboard active false
    sleep 2
    setxkbmap -device "${usbkbd_id}" -layout "${usbkbd_layout}"
fi

/home/sadi/.bin/usb-keyboard-out_udev

#!/bin/bash
/home/sadi/.bin/usb-keyboard-out &

/home/sadi/.bin/usb-keyboard-out

#!/bin/bash
sleep 1
DISPLAY=":0.0"
HOME=/home/sadi/
XAUTHORITY=$HOME/.Xauthority
export DISPLAY XAUTHORITY HOME
gsettings set org.gnome.settings-daemon.plugins.keyboard active true

Notes:

Of course all of the four files in your ."bin" folder should have necessary permissions (readable and executable) which maybe
implemented for example with a Terminal command like chmod - 755
/home/sadi/.bin/usb-keyboard-*
Sometimes after the USB keyboard is plugged in it still uses the same (default) keyboard layout, and switches to the specified layout upon the second try (perhaps requiring a little more sleep time somewhere?)
The USB keyboard specific layout is not effective in the login screen (when you Log Out).
If you use a separate partition for /home, then it might be a better idea to put the four scripts somewhere in the root partition, e.g. /usr/local/bin and modify the contents of all respective files accordingly as sometimes udev may look for those files before your /home partition is mounted and cause problems.

IN ORDER TO ADAPT THIS SETUP TO DIFFERENT REQUIREMENTS:

USB keyboard vendor and product ids should be changed as per the output of the command lsusb (For example, my lsusb output have this for my USB Keyboard: Bus 001 Device 006: ID 09da:0260 A4 Tech Co., Ltd)
OWNER and all user directory names should be changed from "sadi" to another name
The usbkbd_id may require a little adjustment to grab the correct device id (For example, output of the commands xinput -list | grep "USB Keyboard" gives me two lines; ↳   USB Keyboard                             id=14   [slave  keyboard (3)] and ↳   USB Keyboard                            id=16   [slave  keyboard (3)]; which are then filtered by awk using "=" as field delimiter and capturing the second part; then cutting only the first two digits, and then using only the value in the first line)
The value for usbkbd_layout may be any other valid choice


I've done it in the next way:

mkdir ~/appimage && cd ~/appimage
wget https://github.com/qpdf/qpdf/releases/download/release-qpdf-9.1.1/qpdf-9.1.1-x86_64.AppImage
chmod +x ~/appimage/qpdf-9.1.1-x86_64.AppImage
$ vim.tiny appimage/qpdf.sh

#!/bin/bash
cd /home/user/appimage/ && exec ./qpdf-9.1.1-x86_64.AppImage "$@"`

chmod +x ~/appimage/qpdf.sh
sudo ln -s /home/user/appimage/qpdf.sh /usr/local/bin/qpdf

As a result:

$ qpdf --version
qpdf version 9.1.1
Run qpdf --copyright to see copyright and license information.


xdg-open can't open applications from links

I had the same problem. I run Debian Buster
Stevel's answer here on the Linux stack exchange helped me solve it.

To elaborate on how to apply the fix.

Open up the the xdg-open file as a superuser so you can edit and save the file.
You should find the file at usr/bin/xdr-open
Alternatively run the command which xdg-open in your terminal to find the path to the xdg-open file
Find the line that reads if pcmanfm --help >/dev/null 2>&1 -a is_file_url_or_path "$1"; then using Ctrl+F or however you want.
Edit the -a on that line to &&
Your edited line should read if pcmanfm --help >/dev/null 2>&1 && is_file_url_or_path "$1"; then
Save and test.

Good luck!


I believe the answer to your questions is here. Please refer to the section of the article labled "Save files on Disk"

You will also need to create the Special Purpose User


Stuck at a blank screen after nvidia update

Escape from black screen

When you stuck on black screen, you can use Ctrl+Alt+F1 to select tty. Then you can type your username and password to login.
edit /etc/default/grub

Modify the line of GRUB_CMDLINE_LINUX_DEFAULT to

GRUB_CMDLINE_LINUX_DEFAULT='pcie_port_pm=off acpi_backlight=none acpi_osi=Linux acpi_osi=! acpi_osi="Windows 2009"'

Then reboot again. You should be able to see login page.
Re-install nvidia driver (If step 1 & 2 cannot help)

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-390 nvidia-settings


Indicator-Weather hangs when trying to change Location

I can't reproduce your issue - however, some suggestions.

Reset indicator-weather

Indicator weather related configuration is held in an internal database (you can use dconf-editor to view in a GUI format).

Thus to reset indicator-weather you can use the following from a terminal:

gsettings reset-recursively apps.indicators.weather

Assign central to dconf directly

Assuming that I have correctly searched for "baton rouge" and having selected "central" you can write to the internal database directly with these values:

gsettings set apps.indicators.weather locations "{'2377529': {'google id': ',,,30554355,-91036771', 'noaa id': 'woot', 'longitude': '-91.0367706', 'yahoo id': u'USLA0510', 'latitude': '30.5543546', 'label': 'Central', 'full name': 'Central, Louisiana, United States'}}"

gsettings set apps.indicators.weather places "[['2377529', 'Central']]"


How to recover files in Ubuntu partition through Windows?

I don't know Windows but I already had to recover files from Ubuntu. If you put the cd/usb install of Ubuntu and you "Try Ubuntu", normally you should can accede your Ubuntu partition. So you just have to put an external HDD or another usb and you should can recover these files. You normally should can accede your Windows partition from there so if you just want to move these files to your Windows partition, it shouldn't be a problem.


Gdm3 lock & switch to greeter from command line

You can lock using this DBUS method:

dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock


How can I make tar read input from stdin?

Using -O with c is ignored, since no files are extracted. You'll get the same result either way:

$ tar c -O foo | tar t
foo
$ tar c foo | tar t
foo

Which is why I find your error surprising, since tar is no coward if you specify a path.

tar cannot read in file data from stdin for creating an archive, since then tar will have no way of knowing what a file is - where one begins or ends, what its path and metadata is.


Straight into bios after starting windows 8 on asus zenbook

There are many people who have been able to successfully run Windows 8 with Ubuntu, but in my experience having tried several times, every time Windows 8 boots it seems to run some sort of "fix" routine that reclaims the laptop.  I'm sure Microsoft would say it is to help fix boot up problems since most users will never install two OSes.  I say though that it is Microsoft assuming that their OS is the only one in the world, and screw everybody else anyway :-)

On most of the laptops I used, we ended up wiping Win 8 out and installing it into a Virtual Machine.  VirtualBox and VMWare Player are both good ones.


Wine: Show the "system menu" of a window?

Run winecfg, go to "Graphics", and either uncheck "Allow the window manager to decorate the windows" or check "Emulate a virtual desktop". Either way, once you've done that, close and reopen Wine, and your program will then have a Windows-style title bar, which you can right-click to get this menu.


3/23/20 glib security update Ubuntu 16.04 broke Unity Search - Desktop Icons, Top/Side taskbars disappear

Citation from this post and other websites tell us that the method might bring back the Unity dash and side panel.

rm -rf ~/.cache/compizconfig-1
rm -rf ~/.compiz
rm -rf ~/.Xauthority
sudo dconf reset -f /org/compiz/
setsid unity
poweroff --reboot

I suggest the Unity Tweak Tool for editing items up to you.

sudo apt install unity-tweak-tool

Other restorations of the Unity panels and functions are described link below.

Unity doesn't load, no Launcher, no Dash appears


Recommendations for a Wireless-N USB dongle?

It's a good question, and the wiki page most people mention ( https://help.ubuntu.com/community/WifiDocs/WirelessCardsSupported)  is outdated and user-submitted information that is sometimes incorrect, it seems.

These pages are a good place to start, although they are probably more helpful if you have the lspci info to hand. (Previous experience shows that some cards with the same model name contain different chipsets!)

http://wireless.kernel.org/en/users/Documentation/FAQ

http://wireless.kernel.org/en/users/Devices/USB

I am also on the lookout for a similar card, and would like to hear personal recommendation including from an ubuntu expert with a USB wireless-n device working flawlessly out of the box (and at n-speeds rather than g-speeds) in 10.04 and later.


How can I temporarily disable a kernel module?

Use lsmod to find the name of a kernel module about that you are interested in temporarily disabling. After you've found the name, use this command to disable the module:

sudo modprobe -r <module_name>

However, this command will fail with an error message something like FATAL: Module <module_name> is in use if a process is using:

the <module_name>
a module about that <module_name> directly depends on
any module about that <module_name> - through the dependency tree - depends on indirectly.

You can use lsmod | grep <module_name> to obtain the names of the modules which are preventing you from temporarily disabling a certain module (these module names are listed in the last column).

More about:

http://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/ch-Working_with_Kernel_Modules.html#sec-Listing_Currently-Loaded_Modules
http://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/sec-Unloading_a_Module.html


How can i install Mongodb on 32 bit ubuntu?

Try running ALL the commands below, one by one

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org

Source

Taken from https://serverfault.com/a/728145/155817:

  For installation on 32 bit OS,  based on mongdodb docs you can try to install the tarball installation. That is (taken from the docs):

  download the binary files here or using

`curl -O https://fastdl.mongodb.org/linux/mongodb-linux-i686-3.0.6.tgz`

  extract the files

  tar -zxvf mongodb-linux-i686-3.0.6.tgz
  copy extracted files

mkdir -p mongodb
cp -R -n mongodb-linux-i686-3.0.6/ mongodb

  add it to PATH

#example in ~/.bashrc
export PATH=<mongodb-install-directory>/bin:$PATH

  note as noted in mongodb using this method will have some limitation

  "This 32-bit legacy distribution does not include SSL encryption and
  is limited to around 2GB of data. In general you should use the 64 bit
  builds."

  but in the end it is up to you.


Most of the functionality of lirc has moved into the kernel. Uninstall lirc. Confirm that ir-keytable is installed. Then man ir-keytable for more information.


How do I complile a .java file function and read arg from cmd line linux?

Since your title also mentions compiling, and while I'm assuming you have the java source code you want to use - I figured I'd make this as complete as possible so I also provided sample source code.

the directory structure for simplicity is /mainTest, e.g. root and a folder called mainTest.  In it is a java source file called phpFunction.java

The java source code is as follows

package mainTest;

public class phpFunction {

    public phpFunction() {

    }

    public static void main(String[] args) {
        //our input is a string, example "25", convert it into a number
        int inputArg1 = Integer.parseInt(args[0]);

        //will hold a value to be output
        int outputValue = -1;

        //call a method with our input
        outputValue= multiplyInput(inputArg1);

        //print the output to std out
        System.out.println(outputValue);

    }

    //simply multiplies the input value by 2, returns results
    private static int multiplyInput(int inputValue){
        return inputValue*2;
    }

}

The source code as indicated in comments simply takes a single value as input and multiplies it by two and sends the results to standard out.

To compile it, you need to make sure you have the java jdk installed, you can check by doing

locate javac

If you dont have it installed, install it (you could also compile the code somewhere else that might have it installed)

From the root directory run

javac mainTest/phpFunction.java

You'll end up with a phpFunction.class file in the mainTest directory

To run it as a test

java -cp . mainTest/phpFunction 25

Where 25 is the argument you want to pass, the output will be

$ java -cp . mainTest/phpFunction 25
50


Sometimes, it is hard to track build dependencies using cmake/make build errors. Better to install all build dependency used by release package using:

sudo apt-get build-dep qtcreator

This will save you much time, looking for just few addition dependencies if needed.


How to install Xencenter on Ubuntu 12.10

Short answer: You can not. Wine doesn't seem to work so the only way is trhough a Windows VM.

However there's a similar opensource project called OpenXenManager wich emulates the one you mention.

Install process

Download OpenXenManager from sourceforge (link above) or

wget http://freefr.dl.sourceforge.net/project/openxenmanager/openxenmanager_rev48.tar.gz

Untar it manually or:

tar xzf openxenmanager_rev48.tar.gz

Install dependencies from the software center or:

sudo apt-get install python-gtk-vnc

Change current directory to where you extracted OXM:

cd openxenmanager

Run it:

python whindow.py

There are also some other control/management/overview web based tools you could be interested in:

Xen Orchestra : prepacked vm ready to deploy on your xen server, it would serve a
XAC

OpenXenManager DOES look like XenCenter.


How to increase waiting time for non responding programs?

It could not be configured, because the timeout value is defined as constant value in the mutter source.
gnome-shell refers mutter library.
I found the timeout value at the mutter source, mutter-3.10.4/src/core/display.c.

...
#define PING_TIMEOUT_DELAY 5000

And it's used by a below function named as meta_display_ping_window

ping_data->ping_timeout_id = g_timeout_add (PING_TIMEOUT_DELAY, meta_display_ping_timeout, ping_data);

It's referred from the function when the window is activated:

window_activate(mutter-3.10.4/src/core/window.c) -> meta_window_check_alive(mutter-3.10.4/src/core/delete.c) -> meta_display_ping_window(mutter-3.10.4/src/core/display.c)

As you can see at above, the timeout is 5 seconds.

You can modify the value just for you because mutter is open source project.

And the timeout value is referred another case when the window is closed.
Window delete flow is as

meta_window_delete(mutter-3.10.4/src/core/delete.c) -> meta_window_check_alive(mutter-3.10.4/src/core/delete.c) -> meta_display_ping_window(mutter-3.10.4/src/core/display.c)

However, I think that you need to modify the source for your delayed window. Or I think that you can discuss about it with the mutter developers/maintainers.

You can prepare the build environment and get the source with following commands.

$ sudo apt-get build-dep mutter
$ sudo apt-get source mutter

To build it, Refer

https://www.debian.org/doc/manuals/apt-howto/ch-sourcehandling.en.html
https://wiki.debian.org/BuildingTutorial


You can't run x86_64 or x86 software such as Half Life on ARM processors, with OR without Wine - they don't speak the same language under the hood, and there's no way to really make them work on ARM infrastructure.
It simply will not work, and is not possible to get working because of the differences between x86 based systems and ARM processors - they don't speak the same language under the hood and the instruction sets simply don't exist or function for ARM processors.  You won't be able to run Windows software or Wine targeting x86 or x86_64 Windows applications because of the differences and incompatibility in the ARM architecture.


nomodeset deactivates Kernel Mode Settings (KMS).

This means that the X Server takes care of the graphics - "X driver" is misleading in my opinion.

The X session is started by your display manager, e.g for GDM:

/sbin/init (root) --> /usr/sbin/gdm (root) --> gdm-session-worker (root) --> /usr/lib/gdm/gdm-x-session (your user)

The X Server or the "kernel" determines the necessary information itself, not a BIOS or something similar.


There should be a copy of the default profile in /usr/share/base-files


on newer versions of ubuntu, (at least from 14.04 onwards - and probably earlier releases too) the core system logging is managed through the rsyslog daemon. i.e. logging for

kernel
iptables firewall (which is a component of the kernel)
SSH
mail

For a full list see /etc/rsyslog.d/50-default or ls -al the /var/log folder, the logfiles owned by syslog are services whose logging is managed through rsyslog.
Therefore for these core systems you can prevent logging by either

stopping the rsyslog daemon

for pre 15.10 releases

sudo service rsyslog stop

for 15.10 and later the above will probably still work, but you could also do

sudo systemctl stop rsyslog.service

This will only stop rsyslog for the current session, to make sure rsyslog doesnt start on reboot, use:

sudo systemctl disable rsyslog.service

or you can...

Turn off logging via rsyslog's configuration

i.e comment out this line

$IncludeConfig /etc/rsyslog.d/*.conf

in /etc/rsyslog.conf

For more info see man 5 rsyslog.conf.

All the other logs are usually generated by the various programs directly and you would possibly need to reconfigure each daemon one by one to stop their logging.

logrotate

logrotate is a utility that runs - I believe - once a day via cron job, that rotates out (creates a new base log file for each service and increments the log file numbers of existing log file that are too long lived or too large and performs compression and deletion on log files, its not really a place I would look at to stop logging.


No, this feature is not implemented yet.
Here is the corresponding XServer issue (reported by me originally, also my patch...), this is the launchpad report, and here is a similar report for lipinput in Wayland.
I guess you could help with your vote on the issue. Or with an updated patch for libinput.

If you just want to have increased scrolling speed (by a constant factor, not accelerated/dynamic),
see here,
here
or here.

I implemented such a feature in user space here (mouse-scroll-wheel-acceleration-userspace).
This will increase the scroll speed, or accelerate the scroll speed.
You would just run this in the background, with your preferred options.
The code is quite simple Python code, and should be easy to modify as well.


How to prevent radiotray from playing (from buffer) on lock screen after resuming

Running 10.04, as a workaround to avoid this quite annoying behaviour, I put together the script below and saved it as /etc/pm/sleep.d/13_radiotray.
(In terminal: gksudo gedit /etc/pm/sleep.d/13_radiotray, enter/paste the script code, save the file and finally make it executable with: sudo chmod +x /etc/pm/sleep.d/13_radiotray.)

As you can see, what it does is: if radiotray was running on suspend/hibernate, it gets killed on resume/thaw and then restarted in "idle" mode. This works OK for me and my needs...

(I don't know if the numbering (13...) of the script is "OK", if the final "exit $?" is necessary - or of any use at all? - but at least it works perfectly for me...)

#!/bin/bash
# /etc/pm/sleep.d/13_radiotray

case "$1" in
  resume|thaw)
    # kill radiotray if it's running...
    if pgrep -f /usr/bin/radiotray > /dev/null ; then
      pkill -f /usr/bin/radiotray
      # ...and then restart radiotray (idle)
      # If it doesn't work with 'tty7', try '(:0.0)' or '(:0)'...
      DISPLAY=:0.0 su `who | grep 'tty7' | awk '{print $1}'` -c "radiotray > /dev/null &"
    fi
    ;;
esac

exit $?

Edited 2012-11-03: changed the "DISPLAY=: ..." line (see comment below) /mikwie


Installing mkusb and dus to Persistent USB
Mkusb and dus can be installed to Persistent USB exactly the same as to an Installed drive:
sudo add-apt-repository universe
sudo add-apt-repository ppa:mkusb/ppa
sudo apt update
sudo apt install mkusb
sudo apt install usb-pack-efi

Version dus and guidus seperately
sudo apt install dus
sudo apt install guidus

Ref:
https://ubuntuforums.org/showthread.php?t=1958073&page=95&p=13961108#post13961108


Adding the kernel command line button.lid_init_state=open fixes the issue.  Not sure if this should get fixed in Ubuntu or where.

sudo vi /etc/default/grub

change:

-GRUB_CMDLINE_LINUX_DEFAULT="drm.debug=0xe plymouth:debug"
+GRUB_CMDLINE_LINUX_DEFAULT="drm.debug=0xe plymouth:debug button.lid_init_state=open"

then:

sudo update-grub
sudo shutdown -r now

Bit thanks to reddit user /u/HerpDerpHerpderpsen for this solution.  See this thread for updates.

Note: this doesn't help debug lid events, but in that thread I'll try to get more info.


Switched to GNOME, no password prompt on wakeup

I figured it out!

gnome-screensaver wasn't added to the startup applications, so I added it to that and all is well.


setting up swap space on a triple boot system?

Maybe is solution for you to have swap on file. You not need partition and can create one for ubuntu one for kali on / partition.

create file with name swapfile

dd if=/dev/zero of=/swapfile bs=1024 count=21474836480

count is size of file

create swap "file system"

mkswap /swapfile

turn on swap

swapon /swapfile

write to /etc/fstab

sudo nano /etc/fstab
/swapfile       none    swap    sw      0       0

But this solution have only one downside, you waist 40 gb of disk for swap.


Can Ubuntu One be used to deploy a cloud?

Unless I am wrong, I believe that Ubuntu One is just like a Dropbox. It is a file storage service. In other words, just like you said, it is just a file storage space given. You can read more about Ubuntu One by clicking on the link below:

http://www.ubuntu.com/ubuntu/features/ubuntu-one

Now, if you are interested in starting your own cloud, you can do it with Ubuntu Server. Here is more reading on that subject. Click the link below:

http://www.ubuntu.com/cloud

Hope this answers it.


Installing make and errors coming while trying to install gr-gsm

GNU Radio Software Radio Toolkit (gnuradio) is in the default repositories for all currently supported versions of Ubuntu. gr-gsm is in the default repositories for Ubuntu 18.04 and 19.10. To install gnuradio and gr-gsm open the terminal and type:

sudo apt install gnuradio gr-gsm