That is a lot of lines in that grub.cfg, I use a real basic one for my multiboot USB's, pretty much  a set timeout & set default & a few menuentry's...

I tried cutting away all the graphics-related stuff, and functions too, and was left with what might work as a no-frills grub.cfg to try out (keep the original as a backup, though it is pasted to that github website I'd do a mv on the original anyway):

set timeout=-1

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5165d33f-4b1c-41e9-9ca9-e1c831348abc' {

insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc
else
search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc
fi
linux /boot/vmlinuz-3.16.0-29-generic root=UUID=5165d33f-4b1c-41e9-9ca9-e1c831348abc ro quiet splash
initrd /boot/initrd.img-3.16.0-29-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-5165d33f-4b1c-41e9-9ca9-e1c831348abc' {
menuentry 'Ubuntu, with Linux 3.16.0-29-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-29-generic-advanced-5165d33f-4b1c-41e9-9ca9-e1c831348abc' {

insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc
else
search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc
fi
echo 'Loading Linux 3.16.0-29-generic ...'
linux /boot/vmlinuz-3.16.0-29-generic root=UUID=5165d33f-4b1c-41e9-9ca9-e1c831348abc ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-29-generic
}
menuentry 'Ubuntu, with Linux 3.16.0-29-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-29-generic-recovery-5165d33f-4b1c-41e9-9ca9-e1c831348abc' {

insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc
else
search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc
fi
echo 'Loading Linux 3.16.0-29-generic ...'
linux /boot/vmlinuz-3.16.0-29-generic root=UUID=5165d33f-4b1c-41e9-9ca9-e1c831348abc ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-29-generic
}
menuentry 'Ubuntu, with Linux 3.16.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-23-generic-advanced-5165d33f-4b1c-41e9-9ca9-e1c831348abc' {

insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc
else
search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc
fi
echo 'Loading Linux 3.16.0-23-generic ...'
linux /boot/vmlinuz-3.16.0-23-generic root=UUID=5165d33f-4b1c-41e9-9ca9-e1c831348abc ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-23-generic
}
menuentry 'Ubuntu, with Linux 3.16.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-23-generic-recovery-5165d33f-4b1c-41e9-9ca9-e1c831348abc' {

insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc
else
search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc
fi
echo 'Loading Linux 3.16.0-23-generic ...'
linux /boot/vmlinuz-3.16.0-23-generic root=UUID=5165d33f-4b1c-41e9-9ca9-e1c831348abc ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-23-generic
}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc
else
search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc
else
search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}

That might be able to at least get GRUB to display something...


Changes made to html / css / js (stored on NTFS partition) are lost

You have to disable windows fast reboot. Fast reboot prevents you from saving yoru changes when you dual boot.

See http://www.typicaltips.com/2013/02/disable-fast-startup-in-windows-8.html


install FFmpeg codecs to make gifcurry work

According to gifcurry's website, gifcurry requires FFMPEG 3.0 or above.  Ubuntu 16.04 only has FFMPEG 2.8.

This may or may not be your issue, but you may want to ask for help from gifcurry's support for further clarification.


This sometimes happen due to corrupted partition table. To repair it just create a new partition table. This can be done by opening Gparted then navigating to Devices > Create partition table


The systemd service file seems to need some modifications to work. From the link you provided, the --fg-daemon option  is only available for Emacs 26.1+, whereas version below should use --daemon (was introduced in Emacs 23.1).
Further the Type= should be adopted to forking, since emacs is forking.

So the resulting systemd unit should look like as follows.

user@host:~$ cat .config/systemd/user/emacs.service
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/

[Service]
Type=forking
ExecStart=/usr/bin/emacs --daemon
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
Restart=on-failure

[Install]
WantedBy=default.target

After you have applied your changes, do not forget to reload the configuration.

user@host:~$ systemctl daemon-reload --user

Then start the service as regular user.

user@host:~$ systemctl start --user emacs


I installed xrandr on my computer for it to work.
(This was the solution for Arch-linux and OpenSuse)

apt-get install xrandr

followed by a command similar to:

xrandr --output VGA1 --auto --output HDMI1 --auto --right-of VGA1

should do the trick.

(places the previous screen (HDMI1) to the right of the specified screen (VGA1).)


how to pull and push to a local git repository?

after using for a while here is the solution based on @PerlDuck comments (Thanks!)
the combination of following commands allows to share a git repository on server with colleagues or other group mates.

git init --shared={all|world|everybody}
git request-pull


Package system in broke in Xubuntu 14.04

The issue could be of some failing repos in your repos list file.

you can follow those steps:

1- go to http://repogen.simplylinux.ch/

2- select your country, select Trusty 14.04 as your release and tick all options in the following (Ubuntu Branches,Ubuntu Updates,Ubuntu Partner Repos,Ubuntu Extras Repos) and click generate at the end of the page.

3- copy all the content in the first text area you see.

4- open terminal and use the command sudo nano /etc/apt/sources.list

5- empty the file and then paste the copied content from the website into it.

6- hit CTRL + X it will ask you if you want to save and exit, save and exit

7- sudo apt-get update and that should solve your problem

if you still have the same problem run sudo dpkg-reconfigure -a.


try: TOOLS / OPTIONS - open cl enable

Hope this helps


How can I backup my programs/applications, so that after I reinstall a new one, I can still use the backup-ed ones?

When I have to format my Ubuntu I follow this steps:

dpkg --get-selections > package_list This creates a text file (package_list) with all package installed in your system. You can edit the file if you want to delete some packages.
Backup /etc/apt/sources.list file and /etc/apt/sources.list.d/ folder. Here there are all the repositories.
Backup /home/MyUser folder. All application settings are hide folders/files in your user's home folder, maybe you want to select what settings you want to restore.
Format and install new Ubuntu.
Restore your repositories (/etc/apt/sources.list file and /etc/apt/sources.list.d/ folder).
sudo apt-get update && sudo apt-get upgrade
sudo dpkg --clear-selections and sudo dpkg --set-selections < package_list. To restore the information of your installed packages.
Install them: sudo apt-get update && sudo apt-get dselect-upgrade
Finally, sudo apt-get autoremove to clean some packages.

Well, there are 9 steps, but you have an easy Ubuntu clean install.

Another solution is to mantain a list with your installed applications, then sudo apt-get install app-name (you can create a bash script).


Yes, It should that way. Udev launches command in other working directory than the one you expect. Check it by adding:

pwd >>/home/apockli/list

So try by changing home directory:

echo `/usr/bin/git -C /home/apockli/ status` >>/home/apockli/list

Also, you should have an exiting git repository, to see an output otherwise you get only blank line:

$ git status
fatal: Not a git repository (or any of the parent directories): .git

What you see is error message which is from stderr stream not stdout.


how can I confine terminal in a directory as in chroot?

To change your working directory, try using the following command

gnome-terminal --working-directory=/path/to/dir

You can check whether the changes have taken plac using the pwd command.

Alternatively, open "~/.bashrc", scroll to the bottom and add a change directory command -

cd ~/mychroot


What are the non-gaming benefits of a dedicated GPU?

One main thing is that your GPU won't use your RAM as a integrated GPU would! Yay!
A dedicated GPU is also noticeably faster, if you plan for rendering, animation , blah blah blah.
Also, You can take use of programming languages like CUDA, OpenCL and so on much more efficiently.
There are obviously much more, but some have already been given here.

About OpenCL

About CUDA


15.04 suspend script not running and needs sudo privilege for modprobe MythTV

NOTE THIS IS NOT MY FIX AND WAS SIMPLY A RE-DIRECT. I AM NOT AT ALL IMPLYING THIS IS A DUPLICATE, BUT THE FIX HAS MULTIPLE USES. THIS FIX WAS TAKEN FROM HERE:

The approach to solve your problem is to put your user in sudoers file, like you can see.

Open terminal window and type:

sudo visudo

In the bottom of the file, type the follow:

username ALL=(ALL) NOPASSWD: ALL

Where username is your username in your system.
Save and close sudoers file (if you haven't changed your default terminal editor (you'll know if you have), press ctl+x to exit nano (but note that the screenshot below shows vim), and it'll prompt you to save).

After this, you can, in terminal window, type sudo <Whatever you want>, without being prompted for the password.

This only applies, to sudo command in terminal window.
For example, when you try to install a package in software center, you will be prompted to insert your password, like you can see in the next Screenshot.

I think this is what you want.


Cannot read the changes in net.ipv4.ip_local_reserved_ports

The relevant file is /proc/sys/net/ipv4/ip_local_reserved_ports, not net.ipv4.ip_local_reserved_ports.

net.ipv4.ip_local_reserved_ports is a kernel parameter whose value needs to be inserted using sysctl, you can edit the file directly but using sysctl is preferred.

You can do:

sudo sysctl -w net.ipv4.ip_local_reserved_ports='VALUE'

You can make it permanent by putting in /etc/sysctl.conf:

sudo bash -c 'echo "net.ipv4.ip_local_reserved_ports=VALUE" >>/etc/sysctl.conf'

For example:

sudo bash -c 'echo "net.ipv4.ip_local_reserved_ports=34566,34567" >>/etc/sysctl.conf'

Or

echo "net.ipv4.ip_local_reserved_ports=VALUE" | sudo tee -a /etc/sysctl.conf

Now load the sysctl settings (no need to restart):

sudo sysctl -p


volume group vgubuntu not found in kernel 5.8.13

I decided to install the newest kernel (5.8.14), and I actually looked up an error I'd ignored for the 5.8.13 kernel. I don't know how I managed to boot into the 5.8.13 kernel to begin with, but when I searched for The initramfs will attempt to resume from I found this question and applying this answer worked for 5.8.14 (I'd already removed the 5.8.13 kernel, so I couldn't check if it would have worked in that case as well)


(This method does not work for computers with UEFI boot. In consequence, it won't work for pre-installed Windows 8 and some pre-installed with Windows 7.)

IF SOMETHING GOES WRONG?

Reinstall Grub Tutorial

Create a NTFS partition for Windows using Gparted

(sudo apt install gparted)

MAKE SURE TO BACKUP THE MBR!

Install Windows normally

Then boot into a LIVECD (try ubuntu without installing)

We need the handy-dandy Gparted again.

Mount the root partition inside the LiveCD.

Then, restore the MBR.

Now setup the grub to boot windows. :)


Is Toshiba L50-A-1CU compatible with Ubuntu?

You are taking a risk, probably Ubuntu will work, but there are no guaranties.

the biggest risk I see by scanning the specs is that the laptop seems to has a nvidea optimus chip. I don't have personal experience, but I have heard there are some problems to get that to work properly. do some more research on that to make a educated decision.


If they are booting from two different hard drives, setting the Ubuntu hard drive as top-priority in your BIOS will load the GRUB bootloader. If done correctly, GRUB should look something like

  Windows 7 (loader)
  Ubuntu 13.04


Can I pair Samsung IconX bluetooth earbuds with Ubuntu?

Note: Assuming earpods are not connected to any other device and it is free to pair with PC

Place Gear IconX earpods back in its box.
Close it and press small round button beside charging port until you see flashing blue light and amber (correct color, if incorrect) light. This indicates that Gear IconX is discoverable.
I had installed blueman and its bluetooth dependencies (and more) quite some time ago. you can check with the list below, if you need to add any packages.
In the graphical bluetooth, look for Gear IconX and connect. Seamlessly paired in my case. (See attached Image)

Here is list of packages supporting Bluetooth on my Linux Mint 18.1

ii  blueberry                                         1.1.20                                       all          A configuration tool for Bluetooth
ii  blueman                                           2.0.4-1ubuntu2                               amd64        Graphical bluetooth manager
ii  bluetooth                                         5.37-0ubuntu5.1                              all          Bluetooth support
ii  bluez                                             5.37-0ubuntu5.1                              amd64        Bluetooth tools and daemons
ii  bluez-cups                                        5.37-0ubuntu5.1                              amd64        Bluetooth printer driver for CUPS
ii  bluez-tools                                       0.2.0~20140808-5                             amd64        Set of tools to manage Bluetooth devices for linux
ii  gir1.2-gnomebluetooth-1.0:amd64                   3.18.2-1ubuntu2                              amd64        Introspection data for GnomeBluetooth
ii  gnome-bluetooth                                   3.18.2-1ubuntu2                              amd64        GNOME Bluetooth tools
ii  libbluetooth3:amd64                               5.37-0ubuntu5.1                              amd64        Library to use the BlueZ Linux Bluetooth stack
ii  libgnome-bluetooth13:amd64                        3.18.2-1ubuntu2                              amd64        GNOME Bluetooth tools - support library
ii  pulseaudio-module-bluetooth                       1:8.0-0ubuntu3.10                            amd64        Bluetooth module for PulseAudio sound server


Ubuntu 16.04 initramfs error when reboot

1) Please see if this helps: Boot drops to a (initramfs) prompts/busybox

On link from above post says:Initramfs Prompt When Ubuntu Boots : This can occur when you have installed Ubuntu on an NTFS Windows partition and Windows was incorrectly shutdown.
Solution:

(initramfs)exit

You may get something like this —

/dev/sda1: Unexpected …
fsck exited ….
The root filesystem on /dev/sda1 requires manual fsck

BusyBox v1.22 ……

(initramfs)

… means etc etc.

Now use the following command

(initramfs)fsck /dev/sda1

(pl note that /dev/ is constant. sda1 is to be known from the line above — The root filesystem on /dev/sda1 requires manual fsck)

Here change sda1 with your

2) Another post Ubuntu 16.04/17.10 Boots to Initramfs

suggest this solution:

  To check the file system on your Ubuntu partition...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

  If for some reason you can't do the above...

boot to a Ubuntu Live DVD/USB
start gparted and determine which /dev/sdaX is your Ubuntu EXT4 partition
quit gparted
open a terminal window
type sudo fsck -f /dev/sdaX # replacing X with the number you found earlier
repeat the fsck command if there were errors
type reboot


In addition to what Delan suggested, in general you should certainly try different values for the reboot= boot parameter; I'd suggest reboot=b in particular, since that's the most common one for machines to need.  Here's the comment from linux/arch/x86/kernel/reboot.c with the possible values:

/* reboot=b[ios] | s[mp] | t[riple] | k[bd] | e[fi] [, [w]arm | [c]old] | p[ci]
   warm   Don't set the cold reboot flag
   cold   Set the cold reboot flag
   bios   Reboot by jumping through the BIOS (only for X86_32)
   smp    Reboot by executing reset on BSP or other CPU (only for X86_32)
   triple Force a triple fault (init)
   kbd    Use the keyboard controller. cold reset (default)
   acpi   Use the RESET_REG in the FADT
   efi    Use efi reset_system runtime service
   pci    Use the so-called "PCI reset register", CF9
   force  Avoid anything that could hang.
 */

The kernel has a number of so-called "quirks" for particular machines that require the BIOS reboot method, but like any hardware quirks database the chances are that it's missing a few.  Your computer may be one of the ones that's missing.  If you find that reboot=b consistently fixes this for you, then please run 'ubuntu-bug linux' to report a kernel bug asking for this to be made the default for your machine.

You can make this change either on the GRUB command line (hit 'e' on the relevant boot entry and go to the end of the linux line), or, to make it permanent, edit /etc/default/grub and change the GRUB_CMDLINE_LINUX line, being careful to put reboot=b (or whatever) inside the quote marks.


Citrix receiver SSL connection error. Certificates?

You should simply re-use the certificates already installed with the ca-certificates package, e.g. (run these commands in your terminal)
cd /opt/Citrix/ICAClient/keystore/
sudo rm -r cacerts
sudo ln -s /etc/ssl/certs cacerts

No conversion and rehashing needed.
See Citrix receiver 13.10 on Ubuntu 18.04.1 for background reading (and why this is safe).


how to get insane bump working in gimp installed in ubuntu 14.04

I have the same problem with the plugin using Kubuntu 15.04. Adding the executable bit didn't help. Starting gimp from the console shows:

kindprozess »/home/myuser/.gimp-2.8/plug-ins/gimp-plugin-insanebump« konnte nicht ausgeführt werden (Datei oder Verzeichnis nicht gefunden)

means:

childprocess »../gimp-plugin-insanebump« couldn't be executed (File or directory not found)

I think maybe a library used by InsaneBump is missing. Thats why I tried to compile the plugin, but I get another error (also mentioned in the comments here: https://code.google.com/p/gimp-plugin-insanebump/wiki/BuildingFedora20Version). At least it looks like this project isn't updated anymore.

If you checkout the source, you'll find "./gimp-plugin-insanebump/fedora/bin/gimp-plugin-insanebump-Fedora20-1.0.7.tar.gz". This version is working for me, just copy it to the plug-in folder.


I had the same issue on 11.10 and 12.04. Adding the following line at the bottom of /etc/modprobe.d/alsa-base.conf

options snd-hda-intel model=laptop

fixed the issue on my laptop.


Eclipse only starts with sudo command from terminal

Well after running the which java cmd, I noticed that the path to the JDK from the eclipse.ini file was not pointing to the correct location. I fixed the path and now it works. I don't know how the sudo  cmd overrides the eclipse.ini path to JDK but well, it works


Bad magic number in superblock external HDD

fsck and gparted apps cannot be used to fix a problem with a ntfs partition. ntfsfix should not be used to try and fix this problem.

Windows tools should normally be used. However, chkdsk is not helping here.

You might try using testdisk from the Ubuntu OS.

sudo apt-get update # update the software databases

sudo apt-get install testdisk # install testdisk

sudo testdisk # start testdisk

Go to http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step for help in using this tool.


Full Ubuntu USB Boot Drive Installation Not Working

Install Ubuntu from a Pre-built Image File.
Here is a simple method that should not take more than a half hour and should work on any Intel computer with the right spec's.
If working in Windows:

Download Image File: dd_unb_ubuntu-20.04_15GB_2020-06-26.img.xz from mkusb Index of /isos/linux-tools/uefi-n-bios at
https://phillw.net/isos/linux-tools/uefi-n-bios/?C=M;O=D Download Link: https://phillw.net/isos/linux-tools/uefi-n-bios/dd_unb_ubuntu-20.04_15GB_2020-06-26.img.xz Link to MD5SUM's: https://phillw.net/isos/linux-tools/uefi-n-bios/md5sum.txt.asc

Download Rufus*: https://github.com/pbatard/rufus/releases/download/v3.11/rufus-3.11.exe

Etcher may also be used to flash the image: https://www.balena.io/etcher/

Double click Rufus .exe file.

Select USB drive as Target drive in Rufus.

Select above Image File in Rufus.

Click Rufus start button.

Wait for flashing to complete... Done.

Password is "changeme", change it

The USB drive should boot on almost any modern X86-64 computer.

Thanks to sudodus for the image file.
In Windows it may be necessary to install 7Zip before proceeding. Rufus and Etcher will use it when working with the .xz image: https://www.7-zip.org/a/7z1900-x64.exe
If working in Ubuntu: you can use mkusb, Disks or Etcher to flash the USB drive. P7zip may be needed to extract the image.


You could use this command on Linux:

slack --proxy-server='socks5://localhost:1080'

Obviously, you could use this for http proxy:

slack --proxy-server='http://localhost:3128'


Seems it was caused by bad theme.

When disabling the User Themes Extension, everything went back to normal.

Thanks to @jokerdino for the headsup. Hope this helps someone.


Installation of the unity stock ticker lens failed

Open your terminal and try the following:

  sudo apt-get -f install

The above will try to resolve the missing dependencies and broken packages


Not likely, according to this status report, GNOME 2.32 will be shipped in 11.04.


After Ubuntu update Apache2 is not working anymore

After run "sudo apt-get update && sudo apt-get upgrade", PHP 7.0 and PHP 7.1 apache modules were updated and the server came back to work!


Can't start some apps, problem might have to do with ttf fonts

The solution is simple:

sudo apt-get install --reinstall fonts-dejavu and fonts-dejavu-core

After that:

sudo cp /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf

It might be necessary to repeat the copy process for all the fonts in the family:

/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf
/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
/usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf
/usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf


Create desktop shortcut to log in as another user

Looks like I can follow these instructions using the code in my previous comment: dm-tool switch-to-user USERNAME


How much space does Edubuntu take up once installed

Finally got lazy and just popped in an install disk. One of the checks it does is ">8.6 GB of storage", so I guess that's the answer


Unity seems to like grabbing certain keys even when VirtualBox is trying to intercept the input. This happens for me with the Super and Alt keys mainly.

You should try pressing that key sequence slowly in Unity and see what happens. A small menu-bar should come up with 'System Settings > Shutdown' or similar. That's my guess

See this question for how to disable Unity's use of Alt:
How do I modify or disable the HUD's use of the Alt key?


Dual booting Windows 7/Ubuntu and partitioning on a 220GB SSD / 1TB HDD

Ubuntu Installer can handle this situation pretty easily. When installing select Install along Windows 7 and set the partition of Ubuntu to (ideally) 40GB. Make sure you select the SSD HDD disk as the installation disk (usually sda, but it may vary across machines).


Quickly, syntax error: media_grid.show()

sudo apt-get install python-quickly.widgets
python
from quickly.widgets.dictionary_grid import DictionaryGrid
reports success

if you're getting a syntax error you should correct your indentation.  the tutorial is right, you should actually follow it.


How do I prevent the blank screensaver when using keyboard shortcut to lock the computer?

Unfortunately, the lock-screen utility gnome-screensaver-command, which the Ctrl+Alt+L shortcut uses, will also activate the blank-screen "screensaver" whenever it is told to lock the screen.

The trick then is to "fake" a keystroke immediately after the screen is locked to get rid of the blank-screen and leave the lock-screen on. We'll do this with xdotool, a small command-line utility which allows automation of keyboard and mouse clicks/movements.

Install xdotool with

sudo apt-get install xdotool

Paste the following to a file in your home directory, such as locknoblank.sh:

#!/bin/bash
gnome-screensaver-command -l
xdotool sleep 1 key Ctrl

This simply locks the screen normally, but one second later, sends a dummy Ctrl keystroke to "unblank" the screen.
Make the file executable with

chmod +x ~/locknoblank.sh

Go to System Settings...Keyboard...Shortcuts and remove Ctrl+Alt+L as the lock-screen shortcut so we can re-use it for our custom command. Click on "System" on the left sidebar, then click on the right of "Lock Screen" where it says "Ctrl+Alt+L"; it will now say "New Accelerator...". Press Backspace to remove the shortcut.

Now go to Custom Shortcuts on the left, and add a shortcut, naming it whatever you want to with the command as /home/username/locknoblank.sh. Click Apply, then click on its right where it says "Disabled" to get "New Accelerator", and press Ctrl+Alt+L.

Close System Settings, and you're done!

To prevent reactivation of the screensaver (idle timeout)

Open a terminal, and type/paste:

gsettings set org.gnome.desktop.session idle-delay 7200

This sets the screensaver idle activation time to 2 hours (or 7200 seconds). You can set it to anything you want; the default is 600.

Note: For Ubuntu 18.04, use

xdg-screensaver lock

instead of gnome-screensaver-command -l.


Installed ubuntu into a data partition and lost about 44 gb important data. Anyway to recover?

First of all if you had all your data in your Ubuntu partition (as I understood) , you said that you formatted it.

Secondly , you noticed that Ubuntu installed in your DATA partition (which formatted all your data in DATA partition). So as I understand you did both the Ubuntu and DATA partitions format.

Thirdly you don't see DATA partition because when you installed Ubuntu probably it changed the type from NTFS to EXT4(or if you have chosen EXT3 or etc.) which Windows won't see by default

Check this http://www.howtogeek.com/112888/3-ways-to-access-your-linux-partitions-from-windows/

So if you want recover your data you could try data recovery tools on Windows maybe it will recover some...


The most common problem with cron is that it runs with a minimal shell with minimal environmental variable.

Use the full path to automysqlbackup

If you do not know the full path, run which automysqlbackup


Do I need to enable TRIM if I have a non-Intel/Samsung

Everything is already installed.

The command to activate trim 1 time:

sudo fstrim -v /

It will take a while and then show the results. Example:

sudo fstrim -v /
[sudo] password for rinzwind:
/: 93184647168 bytes were trimmed

And it is set up by default to run once a week for -supported devices-:

$ locate fstrim
/etc/cron.weekly/fstrim
/sbin/fstrim

If you check the cron job it is all explained:

$ more /etc/cron.weekly/fstrim
#!/bin/sh
# call fstrim-all to trim all mounted file systems which support it
set -e

# This only runs on Intel and Samsung SSDs by default, as some SSDs with faulty
# firmware may encounter data loss problems when running fstrim under high I/O
# load (e. g.  https://launchpad.net/bugs/1259829). You can append the
# --no-model-check option here to disable the vendor check and run fstrim on
# all SSD drives.
exec fstrim-all

If the manual method works, you can add --no-model-check to the command at the end (exec fstrim-all) for it to activate.

The link in the file is an interesting read. It also has a method to check if your disc is bugged. A lot of the cheaper SSDs are faulty and could destroy data.

And to top it off: this is a list of compatible hardware (PDF download) including SSDs.

There is another method where you add discard to your fstab for permanent trimming. Benchmarks (German) favor fstrim over discard.


What you need to do to fix this is access your computers bios. From there you must disable secure boot option and use the legacy boot option.


Why `blocked task` errors appear on reboot?

The problem was caused by updates. I checked Software Updater in order to know if there are any new things for my Ubuntu or not. After checking, /dev/sda4: clean, 214843/1136688 files, 1684332/4553472 appears in few seconds then disappears


cannot upgrade or install or remove successfully

Solved.
I just install latest ffmpeg, then sudo apt-get install -f and problem solved. Thanks all.


Yes that's a bug

https://bugs.launchpad.net/ubuntu-website/+bug/685436


.htaccess Redirect results in a redirect loop

Redirect /index.html https://example.com/zc2/

Redirect is a mod_alias directive, not mod_rewrite, and has nothing to do with the RewriteEngine directive (which enables the mod_rewrite rewriting engine) that precedes it.

However, whilst the Redirect directive in the root .htaccess file is likely to conflict with other .htaccess files (eg. WordPress), it's not clear why this would specifically trigger a redirect loop. (You should observe the network traffic to see exactly the nature of this "loop".)

However, you can minimise conflicts by changing this rule to use mod_rewrite instead. For example:

RewriteEngine On
RewriteRule ^(index\.html)?$ https://example.com/zc2 [R,L]

Any mod_rewrite directives in child .htaccess files (eg. /wp/.htaccess) will completely override this directive in the root .htaccess file (by default).


Exiting from virtual terminal and automatically going back to X disables keyboard and mouse

I observed similar issue with my Ubuntu 18.04 laptop.

I changed to virtual terminal using the following command from Ubuntu Terminal:
sudo chvt 2

Then I logged in to my virtual terminal using my credentials and if I logout from virtual terminal, my Keyboard no longer works.

This was resolved by using the following command to come out of virtual terminal:
sudo chvt 1

In Ubuntu 18.04, the GNOME/GUI runs on virtual terminal 1, so switching back to virtual terminal 1 restored the GUI for me.

Hope this helps for you as well. Thanks


List files that were changed between a certain datetime

find some_dir -newermt '2011-12-23' -and -not -newermt '2011-12-25'

This includes files modified on 2011-12-23 but not files modified on 2011-12-25. Use 2011-12-25 23:59:59 if you want to include files modified on 2011-12-25.


npm --version is different if use sudo npm --version

It appears (from the which outputs) that your user (sistemas) is set to use a different, outdated version of npm located at /home/sistemas/.nvm/versions/node/v4.2.2/bin/npm - ignoring the updated, system-wide version at /usr/local/bin/npm.

Check if /usr/local/bin is in your $PATH. (Do echo $PATH and see if its output contains /usr/local/bin.

If not, add it (put PATH="$PATH:/usr/local/bin" in your ~/.bash_profile)


Installed apache2 on Ubuntu 18.04, started it, it answers requests from localhost, but not from outside

With the help in the comments from @pa4080 I found the solution: ufw was active and blocking the connections on ports 80 and 443. I set ufw to inactive for the time being and the connections are working now.


Can I upgrade my graphics driver to support the latest OpenGL versions?

OpenGL support is typically a hardware feature, and cannot just be upgraded by installing a new/different driver; the nvidia drivers you mention are for discrete Nvidia cards and will do nothing for your Intel graphics.

According to Intel's documentation, the 965GM chipset supports only up to OpenGL 1.5.

For OpenGL 4.0+ support, it appears you will need to upgrade to a new graphics card, which must be one of:

Intel HD 2500/4000 integrated graphics
AMD/ATI Radeon HD 5xxx/6xxx/7xxx
Nvidia GeForce 4xx/5xx/6xx

  Note: this requires purchasing new hardware, probably a new laptop since you appear to be on one.


USB storage devices disconnecting without apparent reason

Best guess is that the drives are pulling too much power and the host computer or the USB controller in the drive is limiting current draw to protect everything from an overcurrent condition.  If the drives only have USB for power then that makes this far more likely.  If there is an option to power the drives from an external power supply then I suggest taking it.  If you have a powered USB hub then plugging the devices into the hub can resolve this too.  Not all USB ports are equal, even when on the same computer, so moving the devices around can resolve this.
Do you know how much current the devices draw?  Are they USB 2.0 or USB 3.x devices?  Are the ports on the host USB 2.0 or USB 3.x?
A big clue to this being a power problem is that the drives react when plugging in another device.  Just because the drives don't disconnect at the same time doesn't mean this isn't a power problem.  There is a voltage drop over cables and this is dependent on current draw.  Drives, especially those with spinning platters, will have variable current draw.  The voltage will drop at the port when you plug in something that draws power, and drop more at the drives because of loss through the USB cable, the voltage could drop enough to make the circuits think they were unplugged.  Once the drives stop spinning and heads stop seeking then current drops, voltage is back to where it should be, and the drive thinks it was plugged back in.
A USB 2.0 port is required to supply 500 mA.  A USB 2.0 device is allowed to draw up to 1.5 amps, but only after the device requests more power and the request is granted by the host.  Some USB 2.0 ports will provide as much as 2.4 amps by using the option to comply with the USB-PD spec.
A USB 3.x port is required to provide 900 mA, often provides 1.5 amps for USB 2.0 compatibility, and can supply up to 3 amps for high power USB 3.x and low power USB-PD devices.
Use the numbers I give as a place to start on checking if there is a power problem.  Check the USB devices for how much current they draw.  See if there is a power output listed for the USB ports on the computer.  It's probably safe to assume any given port can provide 1.5 amps if you can't find anything to say otherwise.  This 1.5 amp budget might be shared among more than one port so two high current draw devices on adjacent ports can produce a power problem.


Manual Execution

You can execute the command using bash /path/to/your.sh.  If you set the file as executable ( chmod +x /path/to/your.sh ), then you can do /path/to/your.sh and it will automatically run under bash.  You will need to make sure your script has a shebang.

$PATH

Overview

$PATH is an environmental variable that lists all of the locations in which you would like to search for binaries when running a command.

This is how /usr/bin is used for binaries.

You can see your current $PATH by opening a terminal and running echo $PATH.

/most/important/path:/less/important/path

As the example above reads, the paths have priorities; first searched first.  This means that if there are two versions of a binary, the one in the first path will be used.  Once a binary is found, it stops searching on other directories in your $PATH.

If you attempt to run banana, your computer is going to look at /most/important/path.  If it finds banana, it will run it.  If not, it will continue searching, moving on to /less/important/path.

Modification

To add directories to your user's path, you could add them to your ~/.bashrc file.  Instead of overwritting and messing up your path, you should append to it.  For example:

export $PATH=${PATH}:/new/less/important/directory

Or you can prepend to set it as the highest-priority directory:

export $PATH=/new/more/important/path:${PATH}

To prevent issues, you should probably only append (first example).


I've solved this problem by uninstalling all packages of PHP and MySQL. I believe that was especially because of the PHP Daemons. Everything works fine after that.


Installing ubuntu 15.04 on my compaq cq-41 laptop

DISK 15.04 + Laptop other = works
DISK 15.04 + Laptop yours = not working.

Is your laptop still have 14.04? can you run upgrade from it?

If not, any spare HDD to swap and test it? maybe HDD problem?

I usually just reinstall it...

Or if you can clone the system.
1) laptop other 's 15.04 works, right.
2) if you have a external hdd case, then
a) put your HDD into this external hdd case
b) assuming you have a DVD/USB 15.04 drive, boot laptop other with it.
c) run gparted or you may need to sudo apt-get install gparted.
d) run gparted, and then copy the "other laptop" OS partition into your external HDD.
e) after copying/cloning, make sure in gparted, you modified the flag as "boot".
f) put the external HDD's HDD back to your laptop and boot.
g) if not booting, then boot from USB/DVD OS image again.
-> google search boot-repair and follow instruction to install boot-repair. and choose recommended setting. it should fix it for you/

I hope one day ubuntu will put these tools in the release by default.


"Workaround" for the libstdc++-libc6.2-2.so.3 Problem

It seems the last update for JAD was from 2001 and was compiled for Linux 2.0.0. The dependency libstdc++-libc6.2-2.so.3 that JAD references probably doesn't exist anymore... (Well it probably does exist somewhere but it would be a mess to install and use it!)

The good news is that below the "Jad 1.5.8e for Linux on Intel platform" download there is a statically linked version of the software available ("Jad 1.5.8e for Linux (statically linked)") that includes all required dependencies and does not require anything to be installed on your system. It will therefor work on any i386 compatible Linux system! I tried in on my 64-bit Linux system and it just works.

The jad: command not found problem

The problem with running jad MyJavaApplication.class is that it requires JAD to be in your application search path. So you can:

cd to the JAD directory, type export PATH="${PWD}:${PATH}", then cd to the directory with your *.class* file(s) and runjad MyJavaApplication.class`
Create a directory called bin in your home directory and copy the jad binary there. Then open a new terminal, cd to the directory with your *.class* file(s) and run jad MyJavaApplication.class. (You will only have to copy the jad file once!)

Move the jad file to your /bin directory with: sudo cp /path/to/jad/executable/file /bin.

Note: JAD is from 2001 and has been developed for Java 1.5/Java 5 currently we use Java 7 and Java 8 is just around the corner, expect problems when decompiling modern Java files!

Don't forget to upvote, mark as accepted answer if this worked for you!


Unable to remove Authentication Keys in 17.10

You normally should be able to use:

sudo apt-key del <KEY_ID>

But if that fails you can search for the corresponding key file in /etc/apt/trusted.gpg.d and delete the two files for it there.

Here an example, lets say you have installed the tor browser from ppa:webupd8team. After uninstalling this package and removing the source files for it from /etc/apt/sources.list.d/ you still have the two keys in /etc/apt/trusted.gpg.d named

-rw-r--r-- 1 root root  507 Okt 21 23:36 webupd8team_ubuntu_tor-browser.gpg
-rw-r--r-- 1 root root    0 Okt 21 23:36 webupd8team_ubuntu_tor-browser.gpg~

Now remove both keys by:

sudo rm /etc/apt/trusted.gpg.d/webupd8team_ubuntu_tor-browser*

And you should be done with them. you can verify this by opening Software&Updates and check on the 'Other Software' tab. They key should be gone. you can find the proper file name as well with apt-key list the output for this key I used as example looks like this

/etc/apt/trusted.gpg.d/webupd8team_ubuntu_tor-browser.gpg
--------------------------------------------------
pub   rsa1024 2010-05-04 [SC]
      7B2C 3B08 89BF 5709 A105  D03A C251 8248 EEA1 4886
uid           [ unknown] Launchpad VLC

You see the name of the key file is stated above the key itself.


Running command with paramter "g" solved my problem:

$ repquota -g /


Disable login after blank screen Ubuntu 20.04

In 20.04 you need to go to Settings → Privacy → Screen Lock and adjust the settings there.


Not really, no. I am not sure about the details but I imagine that the Alt+F2 is simply passing the commands you run to a non-interactive, non-login shell. This type of shell will not have access to aliases, as explained in man bash:
   When bash is started non-interactively, to  run  a  shell  script,  for
   example, it looks for the variable BASH_ENV in the environment, expands
   its value if it appears there, and uses the expanded value as the  name
   of  a  file to read and execute.  Bash behaves as if the following com‐
   mand were executed:
          if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi
   but the value of the PATH variable is not used to search for  the  file
   name.

So, you might think that you can just set BASH_ENV to point to a file containing alias definitions. Unfortunately, aliases are not available to non-interactive shells. Again from man bash:
   Aliases are not expanded when the shell is not interactive, unless  the
   expand_aliases  shell option is set using shopt (see the description of
   shopt under SHELL BUILTIN COMMANDS below).

You might think that you could add shopt -s expand_aliases to the file defined by $BASH_ENV but that won't work because that file will be read but in a different shell.
I know this is confusing. Bottom line, you can't make aliases available to the Alt+F2 dialog.

A workaround
So, since you can't do this with aliases, what you can do is do it with scripts:
sudo -H gedit /usr/bin/geditm

That will bring up a new gedit window, add these lines to it and save the file:
#!/bin/bash
gedit --display=D1

Make the script executable:
sudo chmod a+x /usr/bin/geditm

Now, you can hit Alt+F2, write geditm and that script will be launched which in turn launches gedit with the desired options.


Timestamp in Exec= line of .desktop file possible?

Unfortunately, .desktop files don't always call sub-shell $() commands the way we would like them to.  One way to do this that I have found would be to create another script that contains the sub-shell command to open the file like that.

The Exec line would look like:

Exec=/path/to/script

then your script file would contain the command to open your new file:

#!/bin/sh

gedit ~/$(date +%Y%m%d%H%M%S).txt

the script would also have to be executable:

chmod +x /path/to/script

Hope this helps!


How to install the Wire messenger desktop app/client on Ubuntu?

As Wire is getting more popular, there are more possibilities by now and as the updates are usually done within the Desktop app, it probably does not matter much which one you choose:
1. Install via Debian repository, instructions see below.
2. Snap package from the Ubuntu Software Center (gnome-software) or type in a terminal: sudo snap install wire. Thank you mook765 for the hint, please vote his answer up, too.

Install it directly from the Wire homepage. Click on Details below the Linux option/penguin and choose Deb package (Ubuntu 64Bit) or AppImage:
3. Deb package (64bit).
4. AppImage (64bit).
5. You can also get the source code directly.

Wire for Linux is still a beta so you should expect bugs and crashes. Be sure to file feedback and point out problems on the Wire GitHub page.

To install via Debian repository (works on Ubuntu):
To add the Wire repository and PGP key run these commands in a new Terminal window.

First install apt-transport-https to fetch packages over HTTPS

sudo apt install apt-transport-https

Import the Wire PGP signing key to verify installed packages:

sudo apt-key adv --fetch-keys http://wire-app.wire.com/linux/releases.key

Add the Wire repo to your Software Sources list

echo "deb https://wire-app.wire.com/linux/debian stable main" | sudo tee /etc/apt/sources.list.d/wire-desktop.list

Finally, update Ubuntu’s list of available packages and install Wire for Linux on Ubuntu with this command combo:

sudo apt update && sudo apt install wire-desktop

If you get the error N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://wire-app.wire.com/linux/debian stable InRelease' doesn't support architecture 'i386, follow this answer's advise. In a terminal:

Open the source list of Wire Desktop to edit it in gedit:

sudo gedit /etc/apt/sources.list.d/wire-desktop.list
Add [arch=amd64]to the one line so it looks like this:
deb [arch=amd64] https://wire-app.wire.com/linux/debian stable main

Source: Wire APT announcement, OMG Ubuntu.


power menu does not have shutdown and restart

There is an existing bug report for this problem but it has not been updated or fixed.

It may be worth temporarily moving ~/.config/dconf/user to ~/.config/dconf/user.old and rebooting to see it that makes a difference as it may be due to something being locked down.


Can you confirm what sensor chip your MB uses?  It should be a Novatron chip located near the Battery. Once you identify the number (mine is a 6791), then you can check the /etc/sensors3.conf file to make sure there is an entry for that chip. Post your findings here and I'll try to help further.


Why me Wifi network is showing disconnected

I had The same problem with my HP laptop, In both windows and ubuntu in windows Wifi never worked. I think it's something wrong with your wifi adapter. I switched to LAN. I guess you can too since distance is not a matter.


Some Ubuntu core Apps don’t start at random times until I reboot my system

You've added a PPA ppa:gnome3-team/gnome3 which was used by Ubuntu GNOME when it was a Ubuntu flavor (main Ubuntu was using Unity 7) which was up to 17.04 (2017 & before). Its support has ended, plus there is no 'disco' support, so I'd suggest removing it & checking your sudo apt update messages.  I doubted you used your listed commands (unaltered as they'd get errors).

Ubuntu 19.04 uses GTK+ libraries 3.32 and of course GNOME 3.32. By adding gnome packages from 18.04, it expects older GTK+ 3.28 libraries/programs. Did you confirm you won't get API/ABI breakage between those versions? As they can cause the issues you describe, which could make the system unreliable when you use certain functions or at certain times.

If you want stability, don't mix releases unless you've done your homework & assessed the likely issues. I believed this was your issue, and I wouldn't trust your system without a lot of homework & viewing what 18.04/3.28 packages you have installed.

fyi: Using sddm won't make any difference, I use it too (on 18.04 & 19.10).

If I'm correct, the fix will be to either

remove all GTK+ 3.28 used packages & then use the intended 3.32
versions from 'disco' sources, or possibly quicker
re-install something-else & no-format of partitions (I see as safer in that it doesn't require you to audit looking for any leftover packages that'll create issues next release-upgrade)

I don't recall the release notes for GNOME/GTK+ and thus don't know the changes from 3.28 .. 3.30 .. 3.32 releases and if significant changes, but this is where I'd bet your issue is. If you did your homework on lib/toolkit changes between those releases you can ignore me completely (as my thinking is generic without specific knowledge, I just know the amount of homework I'd want to do before I did what you did and thus would have avoided it, let alone risking issues when you need to release-upgrade to 19.10, 20.04)

[This is my comments amalgamated, with a few bad typo/word corrections too.]


How to deactivate "Use colors from system theme" in gnome-terminal via CLI?

Assuming you're changing the default profile that comes with gnome-terminal, you can use this command to change the preference to use themes colors.

dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/use-theme-colors false

Here, b1dcc9dd-5262-4d8d-a863-c897e6d979b9 is the UUID of the default profile of Gnome terminal.

If you want to change settings for another profile, you need to know its UUID. The good thing is most users use the default profile, so it should work most of the time.

Addition from OPs comment

UUID value for default profile can be fetched using this command

gsettings get org.gnome.Terminal.ProfilesList default

So, getting it in a variable say TPROFILE, stripping off ' from beginning and end with TPROFILE=${TPROFILE:1:-1} and using it as $TPROFILE in place of UUID will ensure that default profile is being changed, even if the UUID is changed by the user.


From looking at the comments, I think I can help you solve your issue.

Get a live session running from a USB or CD.
Open GParted while in the live session ( the drive "/" shouldn't be mounted ).
Delete all the partitions on your drive - Do not format them, just delete them from the registry.

Your data drive was lost and overwritten by your new installation, and for testdisk to recover your data drive, the new, overriding partitions need to be gone. Back up anything that you have on there and delete all the partitions.

Now because Xubuntu was installed over your data partition (assuming the data partition took up the entire space), there is mostlikely going to be data missing. Hopefully testdisk can recover what you need.
Now run testdisk and recover your data using testdisk. Look for NTFS partition, or whatever type your data partition was earlier. Testdisk WILL find your recently deleted ext4 partition, but you do not want that. You may need to do deep scans to get the data partition back.

If you need more help with this, comment here to let me know.

I have done this before (I dd'd the first hundred or so megabytes of my drive, lost everything, used testdisk to bring it all back), so I've got experience here!


A very good way to play Windows games on Ubuntu (and more generally Linux) is the PlayOnLinux GUI for wine.

It uses custom scripts to make running and installing games smoother on wine. It has a really active community and there's good support.


STEPS I DID TO SOLVE

Press CTRL + ALT + T
In terminal type sudo xedit /etc/modprobe.d/blacklist.conf
At the bottom of the file add:

blacklist dw_dmac
blacklist dw_dmac_core

Save and Quit
Type sudo xedit /etc/default/grub
In the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" erase quiet
splash
Save and Quit
Run sudo update-grub
Reboot once

I did it and the PC now can PowerOff/Reboot/Suspend and everything.

Notes: This worked for ACER E-11 with previous Windows8.1 and now with Lubuntu 16.04.1 LTS.

Cons: During Start or ShutDown the computer will show only console, but it'll work.


Interacting with appindicator icon and menus from LDTP

Yes, desktop applications are wonderfully tested with autopilot. It was originally written to test unity, unity indicators, and etc.

What is autopilot?

Autopilot is a functional testing tool. It simulates user actions by generating keyboard and mouse events, and then testing the internal state of the application in question. It works for gtk and qt based applications.
Autopilot is written in python. Tests are standard python unit tests and introspection is done using DBus calls.

Check out the official documentation:
http://unity.ubuntu.com/autopilot/

Here's a tutorial as well to get you started:
http://developer.ubuntu.com/resources/cookbook/mobile/how-to-write-autopilot-tests/

There's even a video by yours truly showing how it can be used to work on qml/qt applications:
http://www.youtube.com/watch?v=qD_e_xqlBbg


Trying to start Ubuntu, but Grub shows up!

One of the methods (which does not involve command line) is to boot with Rescatux live CD at http://www.supergrubdisk.org/rescatux/, which has the option for GRUB rescue.


iSCSI volume not available during startup

iSCSI was late for boot, because there where several nodes pointing to the same volume. Disabling the one that wasent working, made the iSCSI service start normally and ready to serve Docker during boot.

I was inspired by: iscsiadm discovery gives multiple paths. Want to specify one


Unable to get screen signal after purge FGLRX

Unfortunately it appears you left out a few commands;

sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri fglrx-modaliases
sudo dpkg-reconfigure xserver-xorg

Your X server configuration likely lists no driver so it will not load properly. You may be able to recover by following the guide by effenburg on this Ubuntu Forums post


The answer posted by Celebre Asm worked for me.
First remove all the occurrences of xorg.conf and xorg.conf.old from /etc/X11/.
Then run inxi -Fxzc0 and note down the BusID of your GPUs. In my case intel was 00:02.0 = 0:2:0 and nvidia was 01:00.0 = 1:0:0.
Then create a xorg.conf.d folder, make 20-intel.conf file inside it with following content:
Section "Device"
    Identifier  "Intel Graphics"
    Driver "intel"
    Option "AccelMethod" "sna"
EndSection

And 90-nvidia.conf file with following content:
Section "ServerLayout"
    Identifier "layout"
    Screen 0 "iGPU"
    Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
    Identifier "iGPU"
    Driver "modesetting"
    BusID "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "iGPU"
    Device "iGPU"
EndSection

Section "Device"
    Identifier "dGPU"
    Driver "nvidia"
    BusID "PCI:1:0:0"
EndSection

Additionally I removed xserver-xorg-video-intel because somehow I was getting  rectangles diagonally drawn on desktop and unreadable fonts, and removing it solved that.
Reboot.
**Footnote: This mess happened because I tried to boot my laptop using nvidia to use VDPAU. As of now, GM108 series of nvidia GPU doesn't have decoding support, and offloads decoding to intel counterpart. Everything was smooth as long as I didn't change "on-demand" option which was default since I first installed Ubuntu.


nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.2), it is not getting installed

Here is what I followed

Install nvm (from nvm GitHub page):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"

Install latest node (Node.js for Linux):
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs

Use that latest nvm:
nvm use 14.0


KDE on Ubuntu 15.04 - Missing .desktop Icons

in systemsettings -> icons
Select Breeze
systemssettings -> application style -> graphic components -> icons
Select Breeze
systemssettings -> application style -> gnome application style(GTK)
Select Icon theme = Breeze
Fallback theme (IMPORTANT) = Oxygen
restart

References: here


Running LaTeX via command line on Ubuntu server

Yes, that command will install a basic but fully functional LaTeX environment.

You then compile a document mydoc.tex:

latex mydoc
latex mydoc

Which will produce a dvi file which you can further convert to postscript with dvips. (Or other output formats, eg png with dvipng.) In the more likely event that you want PDF output, use pdflatex instead of latex. (I assume this is available in 10.04, I don't have a copy on hand to check).

If you are running on a server, you might want the option -interaction=nonstopmode, otherwise it will pause and wait for your input if it finds an error in the document.

It is necessary to run latex/pdflatex more than once since during the first pass it will produce various auxiliary files which it then uses to improve the layout the next time around.

More detailed questions about latex are probably best asked on the appropriate stackexchange.


I'm thinking that is your trash can. If you open nautilus, right click the trash bin, and hit empty trash, its size should substantially decrease.

Of course, I'm assuming it's a folder. Am I right, or is it a regular file?

EDIT:

Less than a minute of googling later, I believe my answer is right. Optionally, delete it from the command line. But first, educate yourself and read through the top few links in this google search:

http://www.google.com/search?q=.trash-0

rm -rf .Trash-0/


You need to loop the array and call worksheet.write for each item. You have to specify which row/column you're writing to so we can use the builtin enumerate to count out each item in the array.

You want something like this:

for i, fintitem in enumerate(fint, start=1):
    worksheet.write(globdat.cycle, i, fintitem)


IPv6 gateway computer - How to set up routing?

You need a separate /64 for each subnet.

You can't just put an address from the WAN interface of device 1 on device 2 which is on the LAN side. The router of the WAN side will not know how to reach out.

You'll need a second /64 and the router needs to be configured so that it knows that the second subnet can be reached by using device 1 as the gateway.

Depending on your network the best solution for this might be DHCPv6-PD or static routing. You'll have to ask your network admin.


Black screen after waking up from Hibernation

I actually happened to have that issue on Kubuntu - though after a restart. I have been reading through the forums and through the web and found, that killing the plasmashell and then restarting it fixed the issue.

It would be helpful to know which System you are running? Kubuntu? Ubuntu? If you are running Kubuntu, you can try to kill and restart the plasmashell as well. Try killall plasmashell or kill plasmashell then restart it, using kstart plasmashell.

You can do so by changing to one of the terminals, using CTRL+ALT 1 to 6. In some cases, changing to the terminal and back to the UI fixed the issue as well. To go back to the UI / Desktop you can use CTRL+ALT 7.

Oh one more question: Do you happen to have home directory encryption enabled during install? There is an issue with that, as you can see Here. In this case resintalling without home directory encryption should fix it.


You need to extract not only the CD image (iso) but also the squashfs which contains all the system files, please see this guide for remastering ubuntu cds:

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


Remove device from ubuntu one through API

You have to make an OAuth signed request to the following URL:

https://one.ubuntu.com/api/1.0/devices/remove/computer/${device_id}

where ${device_id} is the device ID of the device in question, which seems to be:

Computer${token}

where ${token} is the token of the device being removed.


This solution is based on the External Tools Plugin. It will automatically move the temporary file to a specific directory.

Edit->Preferences->Editor:

Disable Autosave files every X minutes if it is enabled.

Edit->Preferences->Plugins:

Enable External Tools.

Tools->Manage External Tools...:

Click on the + sign in the lower left corner to create a new tool.
Enter the name Move temp files.
In the textarea in the upper right corner paste the program below.
Click into the input field for Shortcut key and press Ctrl+S.
In the dropdown for Save select Current Document.
In the dropdown for Output select Nothing.

#!/bin/bash
# Moves the temporary backup file of the current document to a central directory.
central_backup_dir="/tmp/gedit_tmp/" # Replace this with any directory you like.
mkdir -p "$central_backup_dir"
mv "${GEDIT_CURRENT_DOCUMENT_PATH}~" "$central_backup_dir"


Using Maverick how to upgrade certain packages to newer versions?

The only recommended way to upgrade default applications provided with Ubuntu is through backports. To enable the backports repository, follow these steps:

Open 'Ubuntu Software Centre'
Click on the 'Edit' menu item, then 'Software Sources'.
Enter your password if prompted.
In the dialog that has just opened, click on the tab labelled 'Updates'.
Tick the item labelled 'Unsupported updates (maverick-backports)', and click 'Close'.

Once you've done this, new unsupported major updates will be provided along with the usual security and recommended updates in Update Manager.

If the backports repository doesn't provide the new versions of software you want, you can search online for PPAs. Bear in mind that PPAs are usually intended for testing purposes only.

Supporting new applications with new system requirements and package dependencies is very difficult without upgrading the system itself. This is why Ubuntu has chosen to only release new major versions of software when the underlying system has been tested and upgraded.

For more details about PPAs, see this question:
What are PPAs and how do I use them?


Accidentally changed permissions of /opt, how to undo?

Ownership and permissions:

sudo chown root:root /opt; sudo chmod 0755 /opt


A problem has occured when checking for updates - 16.04

Hey This quetion seems to have been answered here but try running

sudo apt-get install --reinstall python3-apt

The error is primarily because of library apt_pkg.cpython-35m-x86_64-linux-gnu.so not being present in /usr/lib/python3/dist-packages.

Removing and reinstalling should help.

If that doesn't work, I would recommend taking a dive into your system logs.

thank you @https://askubuntu.com/users/857799/vikas-kapdoskar in advance


I believe you did everything right, only do

sudo apt purge nvidia*
sudo apt update
sudo apt upgrade
sudo ubuntu-drivers autoinstall

Also if you have been doing fresh reinstallations of Kubuntu and failing, try opening Gparted or another partition manager on the live USB version, then delete all Kubuntu partitions. Then reinstall the OS.


It maybe something to do with CDFS.  Try this.

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get update && sudo apt-get install cdfs-src


ndiswrapper windows drivers uninstall issue

Uninstalling (for the most part) is simply reversing the installation method. For example, if to install it you used:

sudo apt-get install ndisgtk

Then to uninstall it you would use:

sudo apt-get remove ndisgtk

There are additional details you might want to read:

How do I cleanly remove NDISwrapper?
How do I remove ndiswrapper completely?
How to Uninstall Ndiswrapper

The last link deals with the windows wrapped drivers that are created in /lib/modules/uname -r/misc, /etc/ndiswrapper and /etc/modprobe.d/ndiswrapper.

That said I'm often one of those "Leave well enough alone" guys and even if I wasn't using Windows Wrapped Drivers anymore I might be tempted to just leave them be. On the other hand if dkms was compiling the new drivers with each kernel update and the time was distracting me, I probably would purge it all.


If you've chosen to encrypt your user-directory during the installation, Ubuntu will automatically encrypt your swap. This could be the Problem in this case.
You can check your /etc/fstab for the device that is mounted as swap. If it's something like /dev/mapper/cryptswap1 your swap is encrypted and hibernate can't work.


looking for direction for easy, affordable movie editing software with a filter to make movie look old (8 mm)

One of the best tools I use is OpenShot  in Ubuntu Software Centre which you can install from :

You can apply effects such as a black & white effect to turn your pictures to black-and-white (or there is a similar Sepia effect)

You can also add old time grain/lines/dust & general old-film type effects.

You also apply one or more of these effects to a clip


Where is the factory-reset image located on the bq Ubuntu phone

As popey said:

  [The factory-reset option] just deletes user data. It doesn't wind the clock back to the original factory image, so there isn't a factory image present on the device.


What causes "bash: /bin: Is a directory" every time a terminal is opened?

Apparently one of your modifications to .bashrc introduced an error that treats /bin like something other than a directory (for example, by trying to run it as an executable file, read data from or write data to it as a file, etc.). Because .bashrc runs when your interactive shell starts, the error message always appears.

You may be able to identify the error yourself by looking through your modifications to .bashrc.

(Otherwise, to identify the specific problem it will be necessary to see the contents of your .bashrc file. You can copy its entire contents to the clipboard and paste it into your question, select it in your question, and format it as code with Ctrl+K. If you've made this file, much, much longer than it usually is, it might be too long to put into your question in its entirety. In that case, you can post it at http://paste.ubuntu.com and edit your question to include a link to the posting.)

One possibility is that you may have introduced a space in a path starting with /bin. For example, near the beginning of the default .bashrc file is the code:

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

If you accidentally put a space after /bin (in SHELL=/bin/sh), this might produce such an error.

That is just one example, and not necessarily the most likely one.


Correct Way to update BIOS in dual boot machine

If you successfully update the BIOS, result will be the same what ever way you choose, just follow the instructions. Don't worry and upgrade it from Windows. BIOS is loaded before operating system and it is an independent software.

About the compatibility, if you made any changes from default BIOS setup, you should make notes, so you can make the same changes after new BIOS is loaded. It is hard to say what could happen, usually BIOS upgrade will make unnoticeable changes, but in rare cases, some devices may change their behavior, in that case, you can always load previous version of BIOS, so make notes of your current version just to make sure.


Because LUKS will not work with a LiveUSB, you must install Ubuntu from a LiveUSB (or other media) to a second LiveUSB. Boot from the first USB, the LiveUSB, then with the second USB plugged in, start installing Ubuntu. When it asks where to install it, specify the second USB drive.


If you want to achive this under linux first you should mount windows partitions into your filesystem.
You can check by writing in your console: df you can check filesystems mounted on your box. There is also a graphical tool (Disks) which can help you check what partitions are mounted, and mount adidiotnal partitions. Please provide more detail if you still have problems.
Under windows there is a lot of third party software to access linux partitions.


MacBook Pro 2016 struggling with VM and unable to install dual boot

Solved the issue with Virtual machine by using Parallels Desktop Lite instead of VirtualBox. It runs very smooth now. I will keep looking into dualboot issue.


Maybe.  I have never tried the following steps, but there are several links to data recovery in AskUbuntu:

Partitions disappeared after power loss while installing

http://www.geekyprojects.com/storage/how-to-recover-data-even-when-hard-drive-is-damaged/

How to recover deleted files?


Yes. You could install a VNC server like vnc4server, tightvnc or tigervnc from the repository, then start separate sessions for separate users via the vncserver command.


Ubuntu Hangs on Started update UTMP abount system changes

I had this problem today. Most of the answers I found dealt with Nvidia card problems, but for me it was simply caused by running out of space on my root filesystem. Get to a command prompt or kernel virtual terminal (Ctrl-Alt-F3 should do it) and check your disk space with df. Then just rm some files till you have a reasonable amount of free space and reboot, and you should be OK.


Using GNOME Paper theme: how do I make my dock appear when hovering on the left side of my screen?

Ubuntu Dock is not supposed to be a part of GNOME Classic. The "dock" you see after pressing super is the GNOME dash (which is converted to a dock by "Dash to Dock" and "Ubuntu Dock").

You may try one of the following:

Switch to a default "GNOME" or "Ubuntu" session (see this).
Install and activate the Dash to Dock extension.


Set Up Partition after Dual Boot Ubuntu 12.04 LTS and Window 7

Installing using Wubi, is just like installing any windows application, so no partitioning is done.

Wubi allows you to install Ubuntu easily in the same fashion you’d use to install any other software program in Windows. It doesn't require the creating of another partition.

If you want to install Ubuntu in its own partition, then you'd uninstall it, just like a windows program, and then download Ubuntu, put it on a DVD or USB flash drive, and follow the instructions described here.


You should run this commands with root privilages, for this purpose you can run these commands with sudo.

sudo apt update
sudo apt --fix-missing install
sudo apt install octave


For anyone that might happen across this, we can simply use dconf for the same settings, dconf itself is the backend configuration tool for gsettings, im still not sure why gsettings functionality broke
Equivalent dconf commands are -
dconf write /system/proxy/mode "'manual'"
dconf write /system/proxy/socks/host "'127.0.0.1'"
dconf write /system/proxy/socks/port "9001"


I think you are missing to push the commit to the remote repository.

I should recommend you to have a proper knowledge of Git before continuing.

One of the millions tutorials you can find on the net is this one which is very good in my opinion.

The documentation of Github will be useful for this case: https://help.github.com/articles/set-up-git/


Installing PyCharm only involves extracting the archive at your desired location and running bin/pycharm.sh file. But there is an extra step you can do to easily locate the application from Menus and Dash.

Open PyCharm and from its Menu -> Tools, Click on Create Desktop Entry.. item. It will ask if you want to have the menu for all users or only the current one. Select your desired option.

From now on, you can see PyCharm in Unity Dash and other application menu.


Can Clementine's media control be integrated into the GNOME panel?

You can use the Media Player Indicator GNOME shell extension. It let's you control MPRIS version 2 capable media players. It supports Clementine.

Refer to this for installing and managing GNOME extensions: How do I install and manage GNOME Shell extensions?


I found the answer myself after a bit of googling. In case it helps someone, I'm posting this here. This is a known netbeans bug on debian based systems.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653915

If the designer is stuck with a "Loading.." status, you may workaround this problem without installing additional packages by starting netbeans with these parameters as a poster suggests:

netbeans -cp:a /usr/share/java/xercesImpl.jar


SSD not detected during Ubuntu installation

You've got a single SSD set up in RAID mode, and the Ubuntu installer won't recognize your SSD until you switch your disk setting in the BIOS from RAID to AHCI.
Making that switch comes with some problems though, as Windows will no longer boot.
You don't need to reinstall Windows...
Below, you'll find two different ways to solve this problem. Some users found Choice #2 to be easier.
Make sure to have a backup of your important Windows files!
Choice #1: Looking at this article https://samnicholls.net/2016/01/14/how-to-switch-sata-raid-to-ahci-windows-10-xps-13/ will show you how to make the change without having to reinstall Windows.

Boot to Windows with your current SATA controller configuration
Open Device Manager
Expand Storage Controllers and identify the Intel SATA RAID Controller
View properties of the identified controller
On the Driver tab, click the Update driver… button
Browse my computer…, Let me pick…
Uncheck Show compatible hardware
Select Microsoft as manufacturer
Select Microsoft Storage Spaces Controller as model #
Accept that Windows cannot confirm that this driver is compatible
Save changes, reboot to BIOS and change RAID SATA Controller to AHCI
Save changes and reboot normally, hopefully to Windows

Now you should be able to install Ubuntu in a dual-boot configuration.
Choice #2: See http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/

 Right-click the Windows Start Menu. Choose Command Prompt (Admin).
 If you don’t see Command Prompt listed, it’s because you have already been updated to a later version of Windows.  If so, use this method instead to get to the Command Prompt:
 -  Click the Start Button and type cmd
 - Right-click the result and select Run as administrator
Type this command and press ENTER: bcdedit /set {current} safeboot minimal
 - If this command does not work for you, try bcdedit /set safeboot minimal
Restart the computer and enter BIOS Setup (the key to press varies between systems).
Change the SATA Operation mode to AHCI from either IDE or RAID (again, the language varies).
Save changes and exit Setup and Windows will automatically boot to Safe Mode.
Right-click the Windows Start Menu once more. Choose Command Prompt (Admin)
Type this command and press ENTER: bcdedit /deletevalue {current} safeboot
 - If you had to try the alternate command above, you will likely need to do so here also: bcdedit /deletevalue safeboot
Reboot once more and Windows will automatically start with AHCI drivers enabled.


0% [Connecting to archive.ubuntu.com (2001:67c:1360:8001::17)]

It looks like the computer believes it has IPv6-connectivity, whilst it in fact does not have it. This can be verified by trying the command
ping6 www.google.com.

You can disable IPv6 on Ubuntu, by running the following command. To enable IPv6 again,simply do rm /etc/sysctl.d/99-disable-ipv6.conf

echo "net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee /etc/sysctl.d/99-disable-ipv6.conf

You can also create this file, using a text editor, and pasting the content

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Then run sudo service procps reload to reload.


You would probably be better served by the select command, which allows the user to select an option that's presented to them.

#!/usr/bin/env bash

echo "Are you sure?"
select yn in "Yes" "No"; do
    case $yn in
        Yes ) break;;
        No ) exit;;
    esac
done

# Add whatever you want to do if the user answered "yes" here

If the user answered "No", the script will exit without executing the code further down the script.

The only downside to using select is that the options are selected using numbers. So because we have two options, the user can't type "Yes", they have to type "1", etc.


can i replace windows with ubuntu and still get the same gaming experience? Steam and Origin

No, there is no guarantee that you will be able to get the same exact gaming experience.  Many games aren't available for Linux natively, and some are not capable of being run (even through PlayOnLinux or Wine-driven Steam) without a performance hit.

So, no, there's no guarantee you will be able to switch over directly and have the same exact experience.


Can I download music from itunes web site without itunes software?

Currently, iTunes will not work, not properly at least, with Wine or Playonlinux or Crossover (it used to work a while ago). What will work, though, is to install Windows in VirtualBox, and install iTunes on top of that installation. This is a bit of an overkill for iTunes, but if you have Windows installed in a vbox anyways then it does not cost you too much trouble.
iTunes is absolutely required to access iTunes if you want to buy music. No alternatives exist. However, as I was informed in a comment -- other software exists to access free contents.
For some type of the media, there are alternatives to iTunes. For example, you can buy music from Ubuntu One music store or Amazon. I am well aware that this will not replace iTunes Music Store, but you can get music from the Big Four in these stores as well.


You can try this:

cd /usr/share/applications/;
cp scilab.desktop scilab.desktop.backup;
cat scilab.desktop.backup | sed -e 's|^Icon=.*|Icon=/usr/share/scilab/modules/gui/images/icons/32x32/apps/scilab.png|' > scilab.desktop

PS: you have to run this lines as a root.


Error when running "make check" for glib-2.32.4

Remember that make check in glib comes in last. make check depends on the  desktop-file-utils-0.20, which in turn depend on an installed glib, so that one should make sure that the desktop-file-utils are installed, working and at a correct version before running make check. The canonical way would be to first install the new glibc, then desktop-file-utils, and then, at the very end, do make check.

In general, an error during check is a reason to worry, at least in a professional setting. Failure of a test may mean that some particular condition can bring the system to its knees, even if the system runs fine 99.99% of the time.

In this particular case, you can directly look into the source code of glib to understand what is happening. Here is the relevant function:

/* test that thread creation fails as expected,
 * by setting RLIMIT_NPROC ridiculously low
 */
static void
test_thread4 (void)
{
#ifdef HAVE_PRLIMIT
  struct rlimit ol, nl;
  GThread *thread;
  GError *error;
  gint ret;

  getrlimit (RLIMIT_NPROC, &nl);
  nl.rlim_cur = 1;

  if ((ret = prlimit (getpid(), RLIMIT_NPROC, &nl, &ol)) != 0)
    g_error ("prlimit failed: %s\n", g_strerror (ret));

  error = NULL;
  thread = g_thread_try_new ("a", thread1_func, NULL, &error);
  g_assert (thread == NULL);
  g_assert_error (error, G_THREAD_ERROR, G_THREAD_ERROR_AGAIN);
  g_error_free (error);

  if ((ret = prlimit (getpid (), RLIMIT_NPROC, &ol, NULL)) != 0)
    g_error ("resetting RLIMIT_NPROC failed: %s\n", g_strerror (ret));
#endif
}

The error occurs ad the line

g_assert( thread == NULL ) ;

The test function changes the RLIMIT_PROC to a value of 1 (nl.rlim_cur=1, which limits the number of threads the current process can have). With that setting, creation of a new thread (g_thread_try_new() call) should fail and return NULL. For some reason, this does not happen.

Either there is a bug in the test suite, or a problem with glibc, or there was a problem correctly building glibc. In any case, incorrect return values from thread management library calls would make me very nervous.


Lost control of root account, Ubuntu Server 11.10

Not being able to login as root (other than by using sudo) is normal; Ubuntu doesn't set a password for root by default.

The empty /etc/sudoers means you can't use sudo, of course. But creating a new group shouldn't affect /etc/sudoers. You must have done something else.

The way to recover from this (short of reinstalling) is to boot into a single-user root shell. From there, you can fix /etc/sudoers, and whatever else needs fixing. Be careful while you're doing this; it's very easy to break the system by manually editing system files like this and frankly you've already done so.

To get a single-user root shell, see this question. Quick summary: Hold down the left shift key while booting and follow the prompts to get a root shell.


pip gets "read timed out" by unusual reason

Eventually hard-reset of the router did help.
I'm not sure what was the exact reason, but I guess it somehow related to the fact, that modern servers in Cloud change their IP-addresses relatively quickly, and DNS servers sometimes don't renew themselves fast enough.
Somehow some of paths to pypi.org was corrupted, and some didn't. Which lead to fact that second computer could reach it, from browser or curl it was possible to reach it, but pip failed to reach pypi.org.


Add the following lines to your /etc/apt/sources.list with sudo gedit /etc/apt/sources.list:

deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse


Problem with a touch screen in a HP Compaq TC4400

Uninstall just xserver-xorg-input-wacom

sudo apt-get remove xserver-xorg-input-wacom

This will remove just the xserver-xorg-input-wacom package itself.
Uninstall xserver-xorg-input-wacom and it's dependencies

sudo apt-get remove --auto-remove xserver-xorg-input-wacom

This will remove the xserver-xorg-input-wacom package and any other dependant packages which are no longer needed.
Purging your config/data too
If you also want to delete your local/config files for xserver-xorg-input-wacom then this will work.
Caution! Purged config/data can not be restored by reinstalling the package.

sudo apt-get purge xserver-xorg-input-wacom

Or similarly, like this xserver-xorg-input-wacom

sudo apt-get purge --auto-remove xserver-xorg-input-wacom

Pasted from:
This


Adding a disk to /etc/fstab getting a parse error

Use the blkid command to get UUID

root@ashu-700-430qe:/opt# blkid /dev/sdb3
/dev/sdb3: UUID="G6NJf4-YQGl-KikN-dMh7-2yUd-5Owf-4gCO2f" TYPE="LVM2_member"

then use this UUID in place of /dev/sdb3
I am just using my system as an example. It will be different in your case.
Make use of 'tab' to move from one column to another while editing /etc/fstab
and after that make sure that you issue

sudo update-initramfs -u

so that changes are available at boot time.

You can also try
mount -a
to verify your changes immediately.

This is how my /etc/fstab looks like

root@ashu-700-430qe:/opt# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda7 during installation
UUID=54458154-6f44-44c9-be44-f91d093d63e6 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
UUID=E467-1A3B  /boot/efi       vfat    defaults        0       1
# swap was on /dev/sda6 during installation
UUID=74a0518b-2eed-404a-aaa1-a302dbf9f18c none            swap    sw              0       0
#/dev/vgall/tmp     /tmp        ext4    defaults    0 2
#this is volume-opt
UUID=b3d302be-68f6-4804-abb1-ab806326b5a4   /opt    ext4    defaults    0   2
#/dev/mapper/vgall-var
#UUID=35d84c0b-d29b-4677-bc0f-26ef945d1ebf  /var    ext4    defaults    0   1
#/dev/mapper/vgall-usr
#UUID=e67910d0-09c9-4249-ba20-c4e471b30e63  /usr    ext4    defaults    0   2
#/dev/vgall/home
#/dev/mapper/vgall-home /home   ext4    defaults    0   2
root@ashu-700-430qe:/opt#

You can use the above one as reference in terms of understanding the format.


Ubuntu 12.10 not rebooting after hard shutdown. Cannot access BIOS

That sounds like a hardware problem to me.  Check this out: HP forums


Better install Ubuntu 14.04 before upgrade to Windows 10 or afterwards?

I recommend to upgrade Windows first, as it will probably check and overwrite the bootloader with its own.

Installing Ubuntu will also replace the bootloader, but with GRUB which usually detects all installed systems and allows you to boot each of them. The Windows bootloader however assumes it's the only OS and does not care about anything else.

Therefore if you install Ubuntu as last step, you will automatically have a (probably working) GRUB bootloader in the end which detects and shows both Windows and Ubuntu.
If you upgrade Windows last, you will have the Windows bootloader which doesn't show Ubuntu and you would have to install GRUB again.


Problem with Network Ethernet connection during start-up in Ubuntu 18.04

I see three possible problems...

1. You've got a 1G network card that's only connecting at (speed=100Mbit/s). That's normally a cable problem, but it could be a problem with the router/modem (in your case).

Pull the POWER PLUG from BOTH the router/modem AND the PC. Count to 15. Plug the router/modem back into AC power. Count to 30. Plug the PC back into AC power. Issue the sudo lshw -C network command, and observe the speed value. It should be 1G (not 100Mbits/s). If it is 1G, retry your Internet and see if it works properly.

If that doesn't fix the problem, we'll need to try a DIFFERNET ethernet cable. Then power cycle everything again, and retest, as above.

2. Your MTU = 1500 which may be wrong for VDSL. First, contact your ISP and ask what they recommend for MTU settings. I'll also include the procedure so that you can determine for yourself... and you can match it with the ISP's information.

You'll want to test your connection by trying to reach various web sites, and also by running a network speed test (http://speedtest.net), before and after changing the MTU.

You may have a problem with the MTU setting for your VDSL connection.

There's a MTU setting in Ubuntu's network configuration, and a WAN MTU setting in your router.

For DSL, a common MTU setting is 1492. Just go ahead and try this value first and see if your web sites are now accessible.

To determine the correct setting, start with all MTU settings = 1500 and VPN = off. (VPN requires different testing).

In terminal:

ping [-c count] [-M do] [-s packet_size] [host]

The options used are:

c count: number of times to ping
M hint: Select Path MTU Discovery strategy.  may be either do (prohibit fragmentation, even local one), want (do PMTU discovery, fragment locally when packet size is large), or dont (do not set DF flag).
s packet_size: Specifies the number of data bytes to be sent.

You should always start at 1472 and work your way down by 10 each time. Once you get a reply, go up by 1 until you get a fragmented packet. Take that value (last good value) and add 28 to the value to account for the various TCP/IP headers. Eg. let's say that 1452 was the proper packet size (where you first got an ICMP reply to your ping). The actual MTU size would be 1480, which is the optimum for the network we're working with.

ping -c 4 -M do -s 1472 8.8.8.8 # this will probably show fragmentation

ping -c 4 -M do -s 1462 8.8.8.8 # may show fragmentation

ping -c 4 -M do -s 1452 8.8.8.8 # no fragmentation?

ping -c 4 -M do -s 1453 8.8.8.8 # still no fragmentation?

reference: How to determine the proper MTU size with ICMP pings

3. You're using the r8169 driver (driver=r8169) and we may need to switch over to the r8168-dkms driver. More info pending results of step #1.


I've just tried this today on 12.04, with Banshee and an Ipod Nano 5th Gen (black).

1) Restored it with Itunes in Windows and named it.

2) Mounted under Ubuntu

3) run in a terminal the following command: sudo lsusb -v | grep -i iSerial

4) Copied the 16 digit GUID (mine began with 000A)

5) Browsed to http://ihash.marcansoft.com/

6) Entered the 16 digit GUID and downloaded the resultant file HashInfo to the 'iPod_Control/Device' directory on the iPod.

7) Opened Banshee and copied music / podcasts to the nano.


parsing `/etc/passwd` to find root user, and whether user can run interactive shell

There is two types of accounts, system and regular user. System accounts belong to services and daemons, such as lightdm, dnsmasq, etc.Typically you cannot login into those accounts (although there are ways).

Regular users, such as your account or other people  accounts, can login and interact with the OS through shell (could be bash, ksh, mksh, csh, or graphical shell such as Gnome or Unity).

System accounts range from 100 to 999 by default. There exists one special case, nobody , who has ID of 65534 (That's the max UID number ). On my system for instance dnsmasq it runs dnsmasq service.

Regular user accounts have UID range from 1000 to 65533. Those users can login, unless their password is disabled or their entry in /etc/passwd has shell set to /usr/sbin/nologin, or prevented in some other way. These users can have root privilege if they belong to sudo group.

So if you want to find users who have sudo privilege you need to parse /etc/group file. Here's mine:

$ awk '/sudo/' /etc/group
sudo:x:27:xieerqi,testuser

To get just the users, use : as separator and print 4th field.

$ awk -F':' '/sudo/{print $4}' /etc/group
xieerqi,testuser

In python this is done as so:

>>> with open("/etc/group") as file:
...    for lines in file:
...       if lines.__contains__("sudo"):
...          print lines.split(":")[3]

Here's even more interesting approach. How about if we want to take all the sudo users and see if they have a shell set up in /etc/passwd ?

$ awk -F':' '/sudo/{gsub(/\,/,"\n");print $4 }' /etc/group | xargs -I {} grep '^{}\:.*' /etc/passwd
xieerqi:x:1000:1000:xieerqi,,,:/home/xieerqi:/bin/mksh
testuser:x:1001:1001:,,,:/home/testuser:/bin/bash


How do I get my Epson Scanner working on Ubuntu 13.10

I'm using iscan with my epson that you can download from epson website (I checked and it's compatible with yours also).

Please note that if you want to connect to your printer through network and not directly (like usb) you have to install the network package (both downloads on here) and change the epkowa.conf file as explained here.

For any doubts or information on the installations needed you can visit epson FAQ on here.


There's no way to answer this question in a lasting way. As of Aug. 23, 17:15:32 UTC, the bits are not available.

Run do-release-upgrade -c to check.

Update

By the way, according to Why is "No new release found" when upgrading from a LTS to the next? do-release-upgrade -c will output "No new release found" until 12.04.1 is available, even if you're on 10.04.x. This is because 12.04 is considered a devel release.

As of Aug. 23, 19:21:03 UTC, I'm seeing "New release 'precise' available" which I assume refers to 12.04.1.


What should I think about before using one partition as /home for two different systems?

You should be just fine sharing a home directory as you are. My opinion would be that you are sort of going about it the hard way, I would use a single install with both lxde and ubuntu-desktop, but if it works for you, well that is the advantage of Linux, you have choice.

You alternates would be it either use a shared data directory, and sync config files as needed or use a  unique user name for each distro (with the same /home).


Permision denied while deleting teamspeak 3 folder

In a terminal, you can use ls -l to determine if the files belong to your user, if not then that is the reason you can not delete them. If you are sure you want to delete them you can either use sudo rm files (be very carefull here! sudo rm can remove anything, so double-check your command before hitting enter) or first make sure you own the files by using sudo chown user:user files where user is your username.


Command line connect to L2TP Windows Server VPN

You should refer this link to connect L2TP connection. Also in addition to that also check this question & its answer on Ask ubuntu here. As well as this Git hub steps to connect L2TP Server as a clinet.

these should do the trick as it did for me, if you face any challenges let me know.


tar of a directory with final check for changes

you could rsync the directory to a temporary place, then you keep checking with rsync until there are no changes, and finally you make your tar file.


python2 autocompletes file names on BASH shell, python3 does not

As we discussed in the comments, you're trying to use Bash autocomplete on scripts with .py3 extensions. The problem is, Bash will only autocomplete scripts with .py extensions.

I recommend using .py extensions even for Python 3 scripts, since .py3 is non-standard. If the scripts require Python 3, you could...

Use the shebang: #!/usr/bin/env python3
Check if sys.version_info.major == 3

Or check if >= 3, to allow forwards compatibility

Maybe use from __future__ import ... to allow backwards compatibility


I had this issue too until I installed 32-bit java7 (which is not provided by default in the 16.04 repositories; they have java8).

I grabbed an old unsupported one from oracle; there is hopefully a nicer way to do it via the package manager and openJDK but I just needed to get things working.

So I think it is an issue with the VPN software not liking java8.


Keyboard-shortcut key-press-detection sensitivity settings

Yes there is in the compiz settings. To install it:

sudo apt-get install compizconfig-settings-manager

Compiz is a compositing manager, which means that it enhances the overall user interaction by adding fancy effects to your windows, from drop shadows to awesome desktop effects like the Desktop Cube or the Expo view.

Compiz can also be a window manager, which means that it is the software between you and your desktop apps. It enables you to move or resize windows, to switch workspaces, to switch windows easily (using Alt-Tab or so), and so on.

You can install Compiz Setting Manager on Ubuntu 12.04 Precise Pangolin/Ubuntu 11.10 Oneiric Ocelot/Ubuntu 11.04 Natty Narwhal/Linux Mint.

There is the respective setting you will be able to edit the shortcut keys.


How to use virtualbox when host runs low-latency kernel

Additional drivers like the one used by virtualbox are only compiled by dkms and can only be used as a consequence if the corresponding kernel headers are installed:

sudo apt install linux-headers-lowlatency

will install the headers for the low-latency kernel. Virtualbox will work also with the low-latency host kernel after these headers have been installed.


Creative Sound Blaster X-Fi Xtreme Audio CA0106 Drivers

Ok that was a bit of a mission and the main problem is faulty hardware. The reason I installed the sound blaster is because the onboard audio is faulty. There is another fault somewhere that is forcing me to slowly lower the cpu/nb frequency year after year to maintain stability. I have cleaned out the heatsink and re-applied the thermal paste which  didn't make a noticeable difference. I'm down to 1400Mhz now and stock is 1800Mhz. Anyway I found that when the cpu/nb is set unstably high, the sound blaster will usually show up on its own after a cold boot. If the cpu/nb frequency is set down to 1400Mhz (where i get no memory errors), the sound blaster would not show up no mater what I did. So i swapped it into the bottom pci slot and it worked.. well sort of. It was working down the left speakers only. I managed to sort this by setting the volume with 'alsamixer' in terminal. At first this didn't help because the speakers appeared to have volume already. But then I discovered each bar has two halfs, just hold the up arrow on all of them and the right speaker will be turned up. Now it's working. Although running 2400Mhz memory with a 1400Mhz cpu/nb is a bit of a waste but that's another story.


Proper way of partitioning a secondary hard drive for ubuntu

You can take help of this link dual boot windows and ubuntu if you want to perform every step with utmost caution. It will also guide you on the partitioning Windows OS the right way.

Once you are done installing Ubuntu, perform the following steps to setup your grub menu:

Boot into Windows OS
Combine Windows + r together and type cmd to open command prompt.
Type bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi and hit enter key

P.S - You do not need to have admin rights on command prompt before you perform the above action.


use -

sudo dpkg-reconfigure lightdm

hope it helped you.


boinc-client doesn't use Upstart but SysV Init to start at boot time.

Use

sudo update-rc.d boinc-client disable

to disable automatic starting up. If you want to enable it again use

 sudo update-rc.d boinc-client enable


VirtualBox: No IPv6 in Ubuntu guest (Win10 host)

Miredo is a package that can tunnel ipv6 through ipv4. From https://wiki.ubuntu.com/IPv6#Get_connected_with_Miredo, install it by running

sudo apt-get install miredo

I could successfully ping with ipv6 (ping6 ipv6.google.com) with a bridged network adapter and miredo.