This is because grep (without any arguments) only works with standard regular expressions. + is part of the extended regular expressions, so to use that, you need to use grep -E or egrep:

ls -l /var/log | awk '{print $9}' | grep -E "^[a-z]+\.log."

Also, you can just do this if you don't want to use extended regular expressions:

ls -l /var/log | awk '{print $9}' | grep "^[a-z][a-z]*\.log."


Installation hangs after Installation Type Screen

After 20 or so attempts, I went happy-go-lucky on this one as there was not many alternatives and, quite shockingly, something seems to have worked.

First I switched off the safe boot mode on my BIOS, installed Mint 19.3 on compatibility mode and that seems to have done the trick...

So far, so good!


Is it possible to send selected code(whole documents) to the gedit terminal for execution?

I have no idea why the errors read the way they did, but by pure luck I did author a functioning code...

It goes like this:

Plugin

#!/usr/bin/env python3

import sys

exec(sys.stdin.read())

-Shortcut key: Alt+R ---or whatever you're comfortable with

-Save: Nothing

-Input: Current selection(default to document)

-Output: Display in the bottom pane

-Applicability: |All documents |Python 3

Input

print(True == True)

Output

Running tool: run source

True

Done.

EDIT I've just realized this doesn't answer the question! I asked if it is possible to send selected code to the gedit TERMINAL for execution. The idea was to have an IDLE like set up where I could arm the terminal with classes, functions and variables from my document and then interact with it live. External tools make use of an 'Output panel' which gets put in a tab beside the embedded python terminal. It executes the code behind the scenes and then displays the full output all at the same time. It can't be used to get user input.


Why does my 'Caps Lock' diode blink when my system freezes?

This feature is implemented in the kernel. It is not specific to Ubuntu, and has been present since kernel 2.4.19 (what, 2002?). I don't remember what kernel is in raring, but for a modern implementation, see for example https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/input/serio/i8042.c?id=refs/tags/v3.9-rc1#n1032 .

The rationale given in that file:

 * i8042_panic_blink() will turn the keyboard LEDs on or off and is called
 * when kernel panics. Flashing LEDs is useful for users running X who may
 * not see the console and will help distingushing panics from "real"
 * lockups.


You can fix your grub using your live CD.

Boot with your Ubuntu live CD again and enter a live session.
Press Ctrl + Alt + T to open the Terminal.
Type sudo update-grub and wait.
Reboot to see if your grub got fixed. If not, try typing sudo grub-install to reinstall the grub.

Edit:

Since you can't update your grub using update-grub, I am giving you a solution (refer to Cannot update grub with parameters on live USB):

After booting the live CD, Mount your Ubuntu partition to /mnt with:

sudo mount /dev/sd*# /mnt

where /dev/sd*# is updated to your Ubuntu partition.

If you have a separate /boot partition, mount it in /mnt/boot as well:

sudo mount /dev/sd*# /mnt/boot

where /dev/sd*# is updated to your /boot partition.

Update grub with the correct root and target:

sudo grub-install --root-directory=/mnt /dev/sdX

where /dev/sdX is the disk(not the partition) where grub is installed.


FVWM & FVWM-crystal installation on 12.04 Ubuntu Command-line-system

I may be misunderstanding your question, but: I've installed fvwm on Ubuntu 12.04 desktop system with the command:

sudo apt-get install fvwm


Creating a new partition by resizing /dev/sda1

You can't unmount sda1, because you are currently running Ubuntu from it. Try to do with a live CD/flash drive, that should do the trick, but don't forget to backup your data before tampering with gparted and your partition.


Best way to add remote Ubuntu ARM storage server as drive or folder on remote Ubuntu server?

Are both remote servers stored locally to each other or at separate, remote locations?

Local to each other: Share the resource via SMB or export it via NFS with appropriate permissions.

Remote to each other: SSHFS works but latency issues abound. SMB/NFS over a VPN would have similar issues.

Alternatively, you could look at installing Plex Media Server on the ARM server. There may be either official and/or unofficial packages available for your architecture. The down side to using separate PMS instances is the devs seem opposed to merging matching libraries from different sources, so you'll need to switch PMS in your client to view all content.


Can only log-in through shell/terminal after doing dist-upgrade on ubuntu 12.04, can only connect to internet using phone modem through bluetooth PAN

Just happened to me on 12.04:  interrupted an upgrade, afterwards, all uses just get a repeated greeter screen.  Ctrl-Alt-F1 allowed me to login to a virtual terminal. Found no X errors in the /var/log/Xorg.0.log file, but in my home directory, found a .xsession-errors file with an odd complaint about a missing = sign on line 362 of a .c file.  Traced this down to a bad openssl.cnf file. The one in /etc/ssl/openssl.cnf was fine, but the link in /usr/lib/ssl/openssl.cnf was no longer a link but a binary file.  Deleted the binary file, replaced the link, and things worked again.


If u need to install the Oracle Java Download it from the official site from this link

Oracle Java Download Page

Follow This step to get install

Replace the Version Value Of your downloaded version with were ever jdk1.7.0_21 i have used

#java -version

#sudo mkdir -p /usr/lib/jvm

#sudo mv jdk-7u21-linux-i586.tar.gz /usr/lib/jvm

#cd /usr/lib/jvm

#sudo tar zxvf jdk-7u21-linux-i586.tar.gz

#sudo rm jdk-7u21-linux-i586.tar.gz

#ls -l

#jdk1.7.0_21

#sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_21/bin/javac" 1

#sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_21/bin/java" 1

#sudo update-alternatives --set "javac" "/usr/lib/jvm/jdk1.7.0_21/bin/javac"

#sudo update-alternatives --set "java" "/usr/lib/jvm/jdk1.7.0_21/bin/java"

#sudo vi /etc/profile

Add the following entries to the bottom of your /etc/profile file:

#JAVA_HOME=/usr/lib/jvm/jdk1.7.0_21 PATH=$PATH:$JAVA_HOME/bin export JAVA_HOME export PATH

#. /etc/profile

#java -version

Hope tthis Will Fix your issue ...


Your pendrive have an error, so we have to fix that first!

Open a Terminal and type:

sudo fdisk -l

to find out your pendrives name. Then:

sudo dd if=/dev/zero of=/dev/sdx bs=512 count=16

where the x is the letter of your pendrive!
Type in your password and hit enter!  This fixes the wrong header entry on the pendrive, by overwriting any and all with zerroes, in the first 8 KB!

After that you can use your normal partition program: Set to Dos and make NTFS or Fat32 partition for compatibility with other computers and multimedia equipment!

I found this on our site here: Fixing bad USBstick


Accidentally deleted all kernel versions

You can reinstall your Ubuntu without hitting Windows at all
To recover your data, I suggest you to use a bootable USB drive + another USB storage to save all important data inside it

To do this important step, you need to :

Boot on the USB, choose "Try Ubuntu" option (Live Ubuntu session)

Open a terminal, and type the following command:

sudo fdisk -l    ###find the partition which contains your data

sudo mount /dev/sdaN /mnt  ####N is the partition number (can be sdbN, sdcN too)
sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys
sudo mount --bind /run  /mnt/run
sudo mount --bind /proc /mnt/proc
sudo chroot /mnt           ####after this command, you re inside your previous Ubuntu partition

Plug your storage USB, and mount it with :

sudo mount /dev/sdU /opt    ####where U is the USB partition, seen with fdisk -l

NB: You can also mount your USB storage at another place than /opt, but I think it's the least restrictive

Now, you can copy all data from your sick partition to your USB storage; just don't forget to unmount and unplugged this device with sudo umount /opt before starting the installation

You can now launch the re-installation of Ubuntu, just select the option "Remove Ubuntu" and not "Format the whole disk", you know what I mean


Xubuntu guest does not autoresize in virtual box

The problem was, that the guest settings didn't work correctly, because the kernel in the virtual box OS was newer than my host kernel.


htaccess - how to remove 'index' from url

Finally below code works for me.

RewriteRule ^$ ./user/index.php [L,NC]


The command is:

mount -o remount,rw /

rw isn't another flag, it's another option.


Please try running the following commands:

sudo apt-get purge indicator-session

sudo apt-get install indicator-session

Then restart you machine.


Just posting the fix here to avoid confusion in the thread.
FIX : Update the function "time.clock()" in pulseaudio.py file with "time.perf_counter()"
File location :  /usr/lib/python3/dist-packages/kazam/pulseaudio/pulseaudio.py
'time.clock()' is deprecated from Python V3.3 and removed from Python v3.8
Documentaion: : https://docs.python.org/3.7/library/time.html#time.clock


how can I find out bits per pixel using into my framebuffer?

In a terminal, run the xwininfo command, then choose a window - the Depth: result is the bits per pixel. For example:

$ xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x3e00005 "davidp@sysadmin: ~"

  Absolute upper-left X:  1920
  Absolute upper-left Y:  24
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1920
  Height: 1056
  Depth: 32
  Visual: 0x74
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x3e00004 (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +1920+24  -0+24  -0-0  +1920-0
  -geometry 212x56-0-0

You could also use xdpyinfo, which will give you more information than you probably want - including all available bit depths for your displays (without showing you which one is actually in use).


There is a good chance that the error has been logged to /var/log/fail2ban.log however you can also see what the problem is by running fail2ban-client -x start and you will get something descriptive.

In my case it was an exim rejectlog that did not yet exist.

Credit to @bistoco's comment on the question.


Bios problems when attempting to install Ubuntu

If you only have a CD-rom and you don't have a DVD drive, you can install Ubuntu from a "minimal CD" which is a text based installation program instead of a "live session" DVD or USB.

The CD will allow you to install Ubuntu but you won't be able to "take a test drive" like you would be able to do using a USB device.

FIRST:

Click here to download the 64bit iso file.

or

Click here to download the 32bit iso file instead.

NEXT:

Click here and follow the instructions for how to burn an iso file to a disk using Windows.

THEN:

Try pressing ESC to access the boot menu when you turn the computer on.

There should be an option to boot from a CD-ROM on this screen.

Alternatively, you can set the CD-ROM as the 1st boot device in your BIOS settings.

Click here for more instructions on how to set this setting in your BIOS.

FINALLY:

Boot the computer using the CD-ROM to boot the computer. Also, "Gnome Shell" is the default Ubuntu desktop environment but you can a different Ubuntu flavour if you want to.

  To install, boot your computer from the the mini iso and select
  "Install" at the prompt. You can then follow the instructions from the
  text-based installer. On the software selection screen, you can select
  from a number of collections of software such as different desktop
  environments (kde, xfce, etc), a multitude of different servers,
  multimedia creation tools, media center (mythbuntu), etc. You can also
  select "Manual package selection" which will take you to aptitude. You
  may also select nothing and just continue to finish the installation.
  If you selected nothing, upon reboot you will arrive at a cli prompt;
  from here you can fully customize your new system.

Also, use your arrow keys and the TAB to navigate through the text based installation and use the  ENTER and/or the  SPACEBAR to select the highlighted option when you need to (similar to how you would do stuff in the BIOS settings).

Click here for more instructions on how to install using a "minimal CD".


Can I make an already partitioned USB flash drive bootalble, without reformatting?

The only way I know of happens under Windows, I'm not aware of any utility that will do that under Linux.

But even at that, I don't advice it, because it still may damage you USB drive.  If you want to use it, Make sure that you have a backup of the data that's on the drive.

The utility that you need is called MakeBootable. It is a free utility that creates a bootable flash drive without erasing the data.


How to resolve that error when I try to install build-essential?

At the very end of that list of unmet dependencies you may find that it lists this tidbit

Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Try typing the following into the command line

sudo apt-get -f install

It should then prompt you with the packages it will be installing together with

Do you want to continue [Y/n]?

you should be able to move forward after that with

sudo apt-get install build-essential


Problems upgrading to Python 3.3 and setting up Django

If you "replace" the default python installation you will probably break the system. There are many system tools that use python2.X and will fail when using python3. In your case, python3 doesn't have the apt_pkg module, so you get that error.

To solve this just remove the symlink created and link it to the default python2.X (in 12.10 it is python2.7):

sudo rm /usr/bin/python
sudo ln -s /usr/bin/python2.7 /usr/bin/python

If you want to make python3 the "default" interpreter i guess the best way without breaking anything is using virtualenv (more info here):

virtualenv -p /usr/bin/python3.3 <destination dir>


Magically after patch (http://phoronix.com/forums/showthread.php?82948-AMD-Catalyst-13-8-Beta-Driver-For-Linux-Released&p=348554#post348554) and reinstalling the driver fixed the issue.


Launcher, top bar missing & cannot close, maximize, or move windows

I too have had this problem on a desktop PC for the past two weeks.  I've tried most of the solutions on the various threads here to no avail.  The launcher disappeared suddenly after a restart following an update.

Finally I decided to experiment.  I created a new user from the terminal and logged in as the new user, Unity and the launcher were working fine for this user.  As SU I copied the .config and .cache files from the new user and overwrote those of the original user, then used chown -R originaluser /home/originaluser/.config and chgrp originaluser /home/originaluser/.config (repeat for .cache) to change ownership.

This approach fixed the problem though it took me quite a while to tweak the original user so that everything works properly.

This seems to be a multi-factorial problem and appears to be worryingly common in 14.04, though I never experienced it in 12.04, which I used since its release until upgrading to 14.04.

In my view this problem is not being taken seriously enough by Canonical, who seem to be viewing it as a glitch or aberration, when it is clearly a worrying instability.


Ubuntu can't boot with secure boot disabled

This solved it for me

https://devtalk.nvidia.com/default/topic/1064250/linux/newly-installed-drivers-are-not-found-when-nvidia-smi-is-called-/post/5389549/?offset=7#5389568

I had to uninstall the NVIDIA driver, then I was able to disable secure boot, then I reinstalled the NVIDIA driver.


Kernel panic (probably) goes on even after update to 4.4.0-112-generic (ubuntu 16.04.3 LTS)!

For my home non-production 16.04 LTS machines I made the following decision:
I'll stay on 4.4.0-104 (and 4.4.0-103 as fallback) and 20170707 intel-microcode for complete and safe Meltdown and Spectre fixes which do not have side-effects (I do not mean speed here).

So I removed new kernels, reinstalled 103 and 104 and pinned corresponding packages.

Warning: do not follow steps below if you are using Ubuntu on production server or enterprise desktop.

Here are my steps to achieve this:

Remove new kernels

sudo apt-get purge linux-tools-generic linux-headers-generic linux-image-generic \
linux-headers-4.4.0-109 linux-headers-4.4.0-109-generic linux-image-4.4.0-109-generic linux-image-extra-4.4.0-109-generic linux-tools-4.4.0-109 linux-tools-4.4.0-109-generic \
linux-headers-4.4.0-110 linux-headers-4.4.0-110-generic linux-image-4.4.0-110-generic linux-image-extra-4.4.0-110-generic linux-tools-4.4.0-110 linux-tools-4.4.0-110-generic \
linux-headers-4.4.0-111 linux-headers-4.4.0-111-generic linux-image-4.4.0-111-generic linux-image-extra-4.4.0-111-generic linux-tools-4.4.0-111 linux-tools-4.4.0-111-generic \
linux-headers-4.4.0-112 linux-headers-4.4.0-112-generic linux-image-4.4.0-112-generic linux-image-extra-4.4.0-112-generic linux-tools-4.4.0-112 linux-tools-4.4.0-112-generic

Install 4.4.0-104 and 4.4.0-103 (as fallback)

sudo apt-get install linux-headers-4.4.0-104 linux-headers-4.4.0-104-generic \
linux-image-4.4.0-104-generic linux-image-extra-4.4.0-104-generic \
linux-tools-4.4.0-104 linux-tools-4.4.0-104-generic linux-headers-4.4.0-103 linux-headers-4.4.0-103-generic \
linux-image-4.4.0-103-generic linux-image-extra-4.4.0-103-generic \
linux-tools-4.4.0-103 linux-tools-4.4.0-103-generic

Install all 4.4.0-104 packages from cache for sure

sudo dpkg -i /var/cache/apt/archives/*4.4.0-104*.deb

Pin kernel-related package versions

cat <<EOF | sudo tee /etc/apt/preferences.d/pin-kernels
Package: linux-headers-4.4.0-104
Pin: version 4.4.0-104.127
Pin-Priority: 1337

Package: linux-headers-4.4.0-104-generic
Pin: version 4.4.0-104.127
Pin-Priority: 1337

Package: linux-headers-generic
Pin: version 4.4.0.104.109
Pin-Priority: 1337

Package: linux-image-4.4.0-104-generic
Pin: version 4.4.0-104.127
Pin-Priority: 1337

Package: linux-image-extra-4.4.0-104-generic
Pin: version 4.4.0-104.127
Pin-Priority: 1337

Package: linux-image-generic
Pin: version 4.4.0.104.109
Pin-Priority: 1337

Package: linux-tools-4.4.0-104
Pin: version 4.4.0-104.127
Pin-Priority: 1337

Package: linux-tools-4.4.0-104-generic
Pin: version 4.4.0-104.127
Pin-Priority: 1337

Package: linux-libc-dev:i386
Pin: version 4.4.0-104.127
Pin-Priority: 1337

Package: linux-libc-dev
Pin: version 4.4.0-104.127
Pin-Priority: 1337

Package: linux-tools-common
Pin: version 4.4.0-104.127
Pin-Priority: 1337

Package: linux-source
Pin: version 4.4.0-104.127
Pin-Priority: 1337

Package: linux-source-4.4.0
Pin: version 4.4.0-104.127
Pin-Priority: 1337

Package: intel-microcode
Pin: version 3.20170707.1~ubuntu16.04.0
Pin-Priority: 1337

EOF

When normal patches will be released you can simply remove pin and install corresponding packages with the following commands:

sudo rm /etc/apt/preferences.d/pin-kernels
sudo apt-get update
sudo apt-get install linux-tools-generic linux-headers-generic linux-image-generic
sudo apt-get upgrade
sudo apt-get dist-upgrade


Is there a way I can close Thunderbird but still receive notifications in the background?

What you're looking for is called "email notification", sometimes also "biff". See gnubiff for instance. There are several alternatives available per apt-get.


Amzon prime HD video not working anymore HDCP/silverlight issue

Got the same issue here too, running on ubuntu 18.10 not able to play any movies in HD because of the HDCP issue, earlier the TV series was streaming in HD but since last couple of months it stopped working too, but i found a workaround for TV series not playing in HD by installing a User Agent Switcher extension and make it change it to Chrome on Windows, for now its working, but still no luck on playing movies in HD in ubuntu.

Addon Links:

User-Agent Switcher
User-Agent Switcher and Manager

i was using the first one, but for some reason its not available on the chrome store, second one i just tested it and works fine.

EDIT: APR 25 2019

Seems like this method is not working anymore all the videos play is SD even if we select a windows user agent.


Software updater shows updates but not apt-get

If apt-get dist-upgrade doesn't work try one of the following until the problem resolves itself:

apt-get upgrade -f         # continue upgrade even after error

or

apt-get dist-upgrade -f    # continue dist-upgrade even after error

source: http://www.debianhelp.co.uk/debianproblem.htm


Cannot see nautilus scripts submenu and consequently any scripts installed Ubuntu 18.04

As resolved in the comments and confirmed by OP:

Usually Nautilus scripts go into ~/.local/share/nautilus/scripts/ directory, I've never heard of them being placed in /usr/share/nautilus-scripts. It may have been up unti developers changed something, but in my own experience only per-user folders work


Ubuntu 13.04 lts doesnt recognize my 500gb external hard disk

To clarify, based on your additional comments:

If you converted your Ubuntu partion into an NTFS formatted drive, then yes, your Ubuntu installation will no longer work, regardless of whether it was on an external HDD or not.

It sounds like you're going to probably need to start over.  Ubuntu would want (by default) an ext4 formatted drive.


I'd suggest a here document

$ cat >> .bashrc <<'EOF'
export PATH="/home/user/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
EOF

So long as the EOF word (which can be anything) is quoted, no shell expansion of the body takes place.


Boot ubuntu from usb. Ubuntu is parallel with Windows 10

First, as ubfan1 so nicely pointed out, you must convert the Microsoft Dynamic partitioning of your HDD ('Disk 1') to Basic; instructions are provided at https://superuser.com/questions/65939/converting-dynamic-to-basic-disk  .

Then, you can reboot the PC with your Ubuntu LiveUSB, and following these instructions, install Ubuntu. When you get to the Allocate Disk Space step, choose Something Else and specify you want to install into the 50GB partition on the HDD sdb.

However before you do anything, please back up what's in your Windows drives D: and E;, verify what's on the backup matches the files on the HDD; make another backup to a different drive (or cloud location), then verify what's on the second backup matches what's on the HDD.

Yes, it may be expensive and/or take time; but when you make changes to partitions on drives, sometimes data gets lost. Lost. Do you want to lose your data? You don't? Then back it up twice and verify each backup.


Issue with DNS resolution in resolve.conf with static IP

You can install a package resolvconf, which will modify the way /etc/resolv.conf is built up at system boot.
sudo apt install resolvconf
You can then create or modify a file /etc/resolvconf/resolv.conf.d/tail. If you put in this file a line nameserver 8.8.8.8, this line will be added at the end of /run/resolvconf/resolv.conf at boot. /etc/resolv.conf will now be a symbolic link to this file.
(see also here (DNS set to systemd's 127.0.0.53 - how to change permanently?)


No USB digital sound on 17.10, but Win-10 sound is OK

OK- This is for AMD CPU users- (I'm using an AMD Phenom-II)
finally fixed this by installing MISSING PROPRIETARY DRIVERS!
Go to "software and updates" and click the "Additional drivers: tab.
Wait a few secs to see if it finds any additional drivers.
In my case it found some missing microcode firmware for AMD CPUs.

Use this device, and then update via the "software updater" icon, or do an apt-get update.
 You may have to restart Ubuntu again.
Click on "Sound" in settings, check the sound there to make sure it IS TURNED ON (the changes above turned my sound OFF!) and then choose the appropriate setting .. digital or analog..


When nautilus trashes something, it doesn't want to have to move it across partitions. This is because it takes a lot longer to move between partitions, and then if you remove the partition then the trash has no place to restore to.

Anywhere that is on the same partitions as your home directory is sent to ~/.local/share/Trash. This works across the entire root partition on setups which only have one partition.

On any other partition nautilus will make a .Trash-1000 folder on the root of the partition, then send all trashed files into that. This works rather well on external drives that you have full read/write access to, though it won't work if you don't have write permission to the root of the drive.

Because your / partition isn't the same as your /home partition, and a .Trash-1000 doesn't exist with write permission at the root of your system, nautilus will fail to trash files. Thus the delete key won't work and a trash action won't be available in the menus.

You could try using a root nautilus and deleting one file so that the /.Trash-1000 folder is created correctly, then using sudo chmod -R 777 /.Trash-1000 to give yourself permission to access a trash on the / filesystem. I cannot confirm that this will work though you could give it a try.


You could run ubuntu-drivers devices - grab the name of the intel driver and put it on the blacklist as described in Step 1 of Tutorial GPU data processing inside LXD


Wanted to use logitech unifying devices on 2 PC but only 1 receiver unifying working with them

The device can only be paired to a single receiver due to hardware limitations. There is however a workaround in software. As long as the other receiver is not in the proximity of the device, you can trigger a new pairing request.

This can be done with the ltunify program or Solaar, but it then requires something to trigger the pairing request. If you have no other button, you could make it trigger on re-inserting the receiver device using the udev rule from this post. After triggering a pairing request you will be able to pair by power cycling the devices.


LibreOffice Writer - How to format text as code?

See the following images to know how to create a text-box.

Click the icon with an A with a vertical bar next to it:

Type whatever code you want to put in the box and then right-click on the border on the box. Select Line from the menu.

Select the style you want for the box's border and click ok.


If you have the version number, or the target release,  apt-get supports choosing a particular version or target release. More details can be found on manual page of apt-get. It can also be accessed from terminal by typing man apt-get
sudo apt-get install <package-name>=<package-version-number>  OR
sudo apt-get -t=<target release> install <package-name>
is the command to be run. This can be used to down-grade a package to a specific version.
Remark that when using a target release (option -t), the release priority must greater than 1000 to allow downgrades (see man 5 apt_preferences) otherwise the currently installed version will be kept.
It has been helpfully pointed out in the comments that

apt-cache showpkg <package-name> lists all available versions. (h/t Sparhawk)
apt-mark hold <package-name>  "holds" the package at the current version, preventing automatic upgrades. (h/t Luís de Sousa )


Installing Internet Explorer but broken letters

If you use Google Chrome / Chromium then try the following.

IE Tab for Chrome is a browser extension that allows you to use Internet Explorer to display web pages in a tab. This is useful in many cases where a web page requires Internet Explorer features. Here are some of the many uses for IE Tab:
Display web pages that require ActiveX controls.
Test web pages with IE's rendering engine.
Use Windows Explorer view to browse the local file system, with full Explorer support for icons, right-click menus, etc.
Use Outlook Web Access.
Use IE-only Sharepoint features.

IE Tab for Google Chrome


Accidentally recursively changed all file permissions in /run (Ubuntu)

/run is of type tmpfs, meaning it exists in memory only, and disappears once the system is powered down. Check this by running mount with no arguments, you'll see stuff like:

tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)

All files in /run simply contain runtime information for system services and daemons. As long as the permissions for the directory itself (/run should have mode 755 and be owned by root), you should be able to reboot the system to get a "clean slate". No important data should be lost.


Does anyone have any idea if/when Ubuntu is going to switch the default ruby install from 1.8 train to the 1.9 train?

It's not a Ubuntu decision, its a Debian decision. It's to maintain backwards-comparability, at least until 1.8.7 is end of lifed in June 2012 (for normal bugfixes) and then in June 2013 when security fixes stop (so at time of updating, it is already EOLed). source and source2
You can install ruby 1.9.2 via the ruby1.9.1 package, so its not really that big of a deal - you can also setup a alias so /usr/bin/ruby will run /usr/bin/ruby1.9.1. (or one of the many other options out there)


ok.. let's try this..

parent folder (chmod 777 / chown nobody:nogroup -R)

Folder1 (chmod 770 / chown nobody:group1 -R)
Folder2 (chmod 770 / chown nobody:group2 -R)

useradd user1 group1
useradd user2 group2

at samba...

[group1]
guest ok = no (or yes you must check this)
force user = nobody
force group = group1
writelist = user1 @group1
read list = user2 @group2

same for the [group2] but change the order os users at write and read...

bye!


Having Trouble adding UEFI entry using efibootmgr

The -d option to efibootmgr takes a whole-disk device, such as /dev/sda or /dev/sdb, not a partition (such as the /dev/sdb2 you've provided). The -p option identifies the partition on the disk, which in your example you've set to 2.


Craving acceptable video playback and nothing more, armed with 11.10. Oneiric and blessed with an ATI 256MB card

It seems that at this point the best option for this ATI card is the open source driver, which works with these cards.

It provides excellent 2D and 3D acceleration and video playback seems to be flawless so far and even desktop effects are way smoother than with the fglrx driver from the 11.10. repositories.

To fully uninstall the already installed proprietary driver I followed this post (suggested by Bruno Pereira), but I checked this site as well.

Also, under "Graphics", System Settings >> System Info now displays this: "Gallium 0.4 on AMD RV620", which is just perfect.

Anyone having the same card is NOT recommended to install:

fglrx (post-release updates) from the 11.10. repositories (simply doesn't install properly)
fglrx from the 11.10. repositories (comes with the descibed problems)
fglrx 12.04. from the ATI site following the ATI Linux community wiki (doesn't install properly)
installing xvba-va-driver, libva-glx1 and vainfo was a waste of time, obviously, since my card (Mobility Radeon HD 3450) does not support UDV2 (its supported UDV version is UDV+). If you would like to check if your card supports UDV2 and is thus subject to 3D acceleration by installing the above mentioned packages (xvba-va-driver, libva-glx1 and vainfo) on top of proprietary fglrx, check here, under "availability."

I haven't tested 12.6. and unless I have to, I won't for a while: I've had my share of trial and error and reading forums for awhile.

What I'll be curious to see is power management (fan action and noise) of the open source drivers. Once I have substantial experience with that I'll post it here, anyone else is welcome to do the same (if it's allowed by AskUbuntu rules.)


As indicated by @steeldriver in a comment, this may have been a problem with python-dbus package. But that was already installed (python-dbus 1.2.0-3.)

When in relation to a separate question I have seen that the same package was listed as not needed anymore and good to be removed, and after removing it with a lot more others with sudo apt autoremove, I decided to try again by installing it manually.

After sudo apt install python-dbus, the very same python-dbus 1.2.0-3 appeared installed, but then Exaile was installed and run successfully with just

make
sudo make install

To avoid an issue with the seek bar being absent:

sudo apt install python-gi-cairo

Update for 18.04:

Before running the make and installation commands in the source folder, some packages are needed:

sudo apt install python-dbus python-mutagen python-gi-cairo make


Databases are preserved if they are in the default location /var/lib/mysql.
 Having taken a look at the mysql-server-5.5 package there are no commands for deleting this data at all.

Generally speaking any files (usually log and data files) created in /var are not touched by package managers.
Apt/dpgk specifically keeps track of config files which are usually stored in /etc and attempts to upgrade the config files (if needed) and will remove/replace any executables/libs in /etc


Firefox: control shift t shortcut does not work since upgrade to 14.04

In the Location bar, type or paste 'about:config' press Enter.

If necessary, click I'll be careful, I promise

In the Search box, paste browser.sessionstore.max

Double-click browser.sessionstore.max_tabs_undo, in the prompt, type 0

Double-click browser.sessionstore.max_windows_undo, in the prompt, type 0

This should reset the values of the settings


My default python version is 2.7.18rc1 after upgrade from 18.04 to 20.04

Running the python command in the terminal starts the Python 2 interpreter if Python 2 is installed, as it is in your Ubuntu 20.04. In Ubuntu 20.04 you can also start Python 3 which is preinstalled with the python command by installing the python-is-python3 package.
sudo apt install python-is-python3

You can also start the Python 3 interpreter from the terminal the usual way by running python3


You might need to hard reboot the computer.

Assuming you have console access, you might try to get the process group ID (PGID) and kill that with :

kill -- -PGID

Or use SIGKILL instead of SIGTERM :

kill -9 -- -PGID

but it might not be possible to get the PGID practically as the system might be already occupied by the forked processes creating a deadlock.

This deadlock can happen when you don't have a sufficient limit on the number of processes a user or group can own, so it's better to set a lower limit before trying something destructive like a fork-bomb.


unable to render java script in chromium browser in ubuntu 14.04

Nothing to do with Chrome, nothing to do with Java (what IcedTea is a plugin for, which is very much not Javascript). The problem is simple: Your syntax on that for loop is all wrong.

for(i=0;j=1;k=0;f=0;i<50;i++;f=j+k;j=k;k=f) {...}

A simple iterator for loop like this (there are other sorts of for loop) should read like:

for (declaration; limit; iterator) {
    code
}

I can sort of see what you're attempting, you just need to rearrange it:

j=1;k=0;f=0;
for(i=0;i<50;i++) {
    f=j+k;j=k;k=f;
    document.write("Fibonacci("+i+") = "+f);
    document.write("<br>");
}


Uninstalling Ubuntu dual-boot bootrec issues

As such, do I still need to have fixboot run or can I just format and
  resize the partitions now even with the error when running fixboot?

If I were you:

Follow this tutorial to restore completely the MBR:

MBR - Restore Windows 7 Master Boot Record

Then boot in to Windows and delete the Ubuntu partitions if you want. Allocate the space again to Windows and proceed with any plans you have.


I not found Gnome 3 TaskBar Extention Settings

You can get the settings for the Taskbar extension by right-clicking on the 'Show Desktop' icon, or by clicking on the preferences icon in gnome-tweak-tool:

If you need to install gnome-tweak-tool, you can do it by running this as root:

apt-get install gnome-tweak-tool

Another way is to click thesettings icon on the extension's page:


sudo: unable to execute /usr/bin/add-apt-repository: No such file or directory

I ran into the same issue. Turned out the cause was that /usr/bin/python3 was not linked to an executable.

Here's how to solve it:

Install Python if you have not done so.
Pick the Python executable you want to use, say python3.5. Go to /usr/bin and you'll see installed executable like python2.7, python3.5, python3.6.
Run the following command, assuming you want to python3.5

ln -s /usr/bin/python3.5 /usr/bin/python3


problem regarding packages installation in ubuntu

From what I can see, you are using the OpenCV Computervision libary.
It should behave nicely with other packages.
The Ubuntu packaging system will complain if a new package would conflict with an already installed one (provided both were installed as packages).

I looked it up (you can do that using a package manager like synaptic) and libopencv-core does not conflict with anything. So as long as you try it with the package manager/software center, you should be fine.

Hope this helps,
Patrick


Will "standard" i386 release of Ubuntu work without any mods on Raspberry Pi?

Not at all. The Raspberry Pi is an ARM based computer, so you have to use a version of linux (and all software) specifically compiled for it.

In addition, the ARM instruction set is older than Ubuntu supports (see http://www.raspberrypi.org/faqs ), so you may have to use Debian which is similar to Ubuntu in the mean time.


How to add a shell script to launcher as shortcut

Create *.desktop file, location depends on if it is for personal use or all users. If these directories do not exist, create them.

For personal use , ~/.local/share/applications

gedit ~/.local/share/applications/name.desktop

For all users, /usr/local/share/applications/ (or /usr/share/applications/ depending upon your system).

sudo -i gedit /usr/share/applications/name.desktop

Paste below text

[Desktop Entry]
Type=Application
Terminal=true
Name=unmount-mount
Icon=/path/to/icon/icon.svg
Exec=/path/to/file/mount-unmount.sh

edit Icon= and Exec= and Name=

Also Terminal=True/false determines whether the terminal opens a window and displays output or runs in the background
put this in unity panel by dragging it from files manager

logic is very simple that unity panel allows *.desktop files as launcher though I haven't tried it because I use Natty.


How to setup debian/control to force updating a library?

Your version numbers are inconsistent. The order relation on version numbers is pretty complex. It is described in the Debian policy manual. In particular:

  First the initial part of each string consisting entirely of non-digit characters is determined. These two parts (one of which may be empty) are compared lexically. If a difference is found it is returned. The lexical comparison is a comparison of ASCII values modified so that all the letters sort earlier than all the non-letters and so that a tilde sorts before anything, even the end of a part. For example, the following parts are in sorted order from earliest to latest: ~~, ~~a, ~, the empty part, a.

In particular, 3.196~ppa1~quantal is considered older than 3.196. The typical use case for ~ is beta versions: 1.42~beta3 comes before 1.42. You can check your understanding of Debian package version numbers by running dpkg --compare-versions:

$ dpkg --compare-versions '3.196~ppa1~quantal' '>=' '3.196'; echo $?
1

0 means that the order relation is met, 1 means that it isn't.

There is some incomplete advice on version numbers in the PPA packaging help. Since your package is not in Ubuntu, you don't need a ~ suffix; you should use a version number like 3.196ppa1. The source dependency can be (>= 3.196) if any release of 3.196 will do, or something like (>= 3.196ppa5) if you need at least a certain package release.

If you keep the ~ in here, you must put it in the source dependency too: (>= 3.196~ppa1~quantal). To say “at least the same version as the main package”, write

Depends: mypackagelib (>= ${binary:Version})

Another possibility (thanks to tumbleweed is to declare a dependency on 3.196~ (the number and a tilde and nothing more), which is an older version than 3.196~anything.

(This doesn't apply to you, but it might apply to future visitors. What follows applies when libmypackage contains a shared library (.so).)

The naming convention for libraries is libmypackage1 and libmypackage2, by the way. If you started with mypackagelib-1, you should leave that, but switch to libmypackage2 for the next version.

The two library packages mypackagelib-1 and mypackagelib-2 might coexist if there are programs still using the old library and programs using the new library installed at the same time. Unless the administrator has explicitly requested the installation of the library package (which he'd only do if he has a non-packaged program requiring the library, e.g. in /usr/local), the old library package will be marked as automatically installed, so it will be uninstalled automatically when there are no dependencies on it.

For more information on how to package a library, read the Debian Library Packaging guide. Although Debian's policies are not mandatory for an Ubuntu PPA, it's a good idea to follow them: they illustrate best practice for working with Debian packaging tools.


Unity: Nautilus folder opens in background

This is NOT the default behaviour.Check the settings of Focus and Raise Behaviour in CompizConfig Settings Manager > General > General Options.(You may need to install ccsm first).


Will I lose Unity-2d if I upgrade to 12.10

If you run the upgrade, you will lose the option called "Unity 2D." Ubuntu made some architectural changes from 12.04 to 12.10, one of which was consolidating the two versions of Unity into one codebase. The new "Unity" option can automatically switch to CPU operation when it detects that your graphics hardware is insufficient.

Phoronix wrote an article confirming the changes, and their article notes that the new version of CPU-operated Unity will run best on 64-bit machines.

You might want to try a LiveCD version of 12.10 to see how Unity behaves before you run the upgrade, because once you do upgrade there is no easy way to downgrade again.


Compute folder size for a given file extension only

Assuming you have a folder that contains only project folders, you could run the following in that folder:

for proj in *; do
  phpfiles=$(find $proj -iname '*.php')
  size=$(du -ch $phpfiles | tail -n 1 | cut -d\t -f1)
  echo $proj $size
done

Explanation: we iterate over all project folders. In each folder, we find all *.php files. We compute the total size of these files, and output the project folder's name and the computed size.

In the first line I simply used * to iterate over all project folders. That's assuming your current working directory is a folder that contains only project folders. However, you could replace this with something more accurate, e.g., for proj in /home/user/proj1 /var/www/proj2 /opt/proj3, to iterate only over specific folders.


How do I create a project from scratch in GNOME Builder?

3.18 and below:

The best way to do this would be to create a folder somewhere where you want your project to be (this will be the top level directory for your project), then open gnome-builder, press New, then choose the From existing project on this computer option, browse for the folder you just created, select it, and press the Continue button (please note that if you enter the folder you wish to select in the file chooser this will not work, so instead of navigating inside the folder, go to the folder on the level just above it (which contains the folder you want) and make sure that the folder you want to use is selected, then press Continue, don't just go into the folder which you want to use, that won't work).

So just to clarify, if I wanted to use the BigFatPanda folder here, instead of going into it I would go into the folder containing it, select it from the list so that it is highlighted and then press Continue:

After doing so you will see that gnome-builder opens that folder into its IDE view and allows the creation and editing of new files and folders within it.

3.20 and above:

Starting from gnome-builder version 3.20 the user can now press New and then choose the From a project template option which will take them through the steps of creating a new project, choosing its location, it's name and language.

Another method is to either download a project which has a configure.ac file using git or apt-get source into a location such as your home folder, or to simply create a new folder and then do the following:

touch /path/to/project/folder/configure.ac

For if a folder contains a configure.ac file within it, it will be shown and may be selected from the Recent Projects or Other Projects section on the `gnome-builder startup screen.


Ubuntu 14.04 stuck in a login loop, can't boot from a USB and can't use Terminal

Try a liveCD. If you can't boot even a livecd, you need to go to BIOS/UEFI menu and change the boot device order. Choose CD/DVD driver first, then USB or usb-zip, then HDD/SSD. Save changes, exit BIOS/UEFI, and reboot. On some laptops it is enough to just press ESC key at startup and a boot menu will appear asking you what device to boot from.


No.

you need to back them up to save them (always do that). Removing them is not needed.
You install Ubuntu in unallocated space unless you want to remove the current operating system. If the 1st your Windows system is going to be there as dual boot after install finishes. If the latter Ubuntu will remove your files for you and will remove ANY partitions related to the OS (that would be C: D: E: F: or any other letter related to that system).


wrong symbols in oh-my-zsh Agnoster Theme

As @egmont said in comments, you need to install fonts powerline. Execute:

sudo apt install fonts-powerline

And the problem will be solved after restart the terminal.


How to recover deleted user with data in Ubuntu 14.04

General information

There are several tools focusing on recovering deleted files. I do know:

Testdisk
PhotoRec

The following is copied from the arch wiki - which list more tools

TestDisk and Photorec are both open-source data recovery utilities licensed under the terms of the GNU Public License (GPL).

TestDisk is primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses, or human error, such as the accidental deletion of partition tables.

PhotoRec is file recovery software designed to recover lost files including photographs (Hint: PhotographRecovery), videos, documents, archives from hard disks and CD-ROMs. PhotoRec ignores the filesystem and goes after the underlying data, so it will still work even with a re-formatted or severely damaged filesystems and/or partition tables.

So - if no other input comes - check out PhotoRec in the first step.

Installation

To install run

sudo apt install testdisk

or

sudo apt-get install testdisk

This should install both photorec and testdisk.

Starting the apps

You can start them by simply entering the program-name in a terminal. So enter photorec or testdisk to start the related application.

Recovering Step by Step

A step by step guide for testdisk can be found here.
A step by step guide for photorec can be found here.


guifg and guibg are always only used by gvim, and ctermfg and ctermbg are what  vim uses in terminals.

You can find vim plugins that will convert 'on the fly' gui colors to the closest terminal approximations (CSApprox, ColorSupport), or you can use a tool like Vim-toCterm to convert a gui color scheme into terminal one time and then use the new scheme.


Check if specific external disk is connected

/dev/disk/ contains the following directories, which contain symbolic link to real devices. This links are dynamically created and removed by udev, so they're a are always up-to-date:

by-id
by-partlabel
by-partuuid
by-path
by-uuid

So checking for the existence of the symlink will use less resources.

Here is an example testing the presence of a disk using its serial number:

test -e /dev/disk/by-id/wwn-0x5002538d408be9e0 && echo yes || echo no

In my backup script I even don't check the disk presence, I only check the result of the mount command like this:

mount -o noatime $DESTINATION_PARTITION $DESTINATION_DIR || exit 1


Ubuntu 14.04 Install Error with Windows 7 Install Inside

As you have installed Ubuntu inside Windows 7, select Ubuntu from the Windows boot manager and then you will see the Ubuntu GNU Grub2 menu.

Or after you select "Ubuntu" from the Windows boot manager, keep Shift and the Grub menu should appear.

Then press e to start editing the boot entry.
And now you need to change a line in the GRUB2 boot entry from ro to rw.

You will see a line similar to this:

linux   /boot/vmlinuz-3.13.0-24-generic root=UUID=AAC884AC1F144321 loop=/ubuntu/disks/root.disk ro   quiet splash $vt_handoff

Replace ro with rw and finally the code will look like:

linux   /boot/vmlinuz-3.13.0-24-generic root=UUID=AAC884AC1F144321 loop=/ubuntu/disks/root.disk rw   quiet splash $vt_handoff

Press F10 and you are done!

This is only to boot Ubuntu for a single time. You have to repeat these steps every-time you reboot. But you can change the grub.cfg permanently to avoid this issue. Follow these steps to edit the grub.cfg file after logging in to Ubuntu.

Open terminal (CtrlAltT)

Type:

sudo -H gedit /boot/grub/grub.cfg

and press enter.

Gedit will open with the grub.cfg file.

Press CTRLF open 'find' box on gedit.

Type ro in the find box. (Remember to type a space after ro - should be ro, not ro)

Search results will be highlighted and then change all those ros to rws. (replace ro with rw)

Save the file and reboot.


How to run cmatrix without error using '-l' option in Terminal (not console)?

It's -l mode, quoting from the manual page:

  -l    Linux mode (sets "matrix.fnt" font in console)

It requires that you run it on one of the Linux consoles (the ones Ctrl+Alt+F1 ... Ctrl+Alt+F6 switch to).

In a graphical terminal emulator it has no way of changing the font of the terminal. You can still use it there without the -l flag.


Battery icon constantly empty when discharging Vaio VGN-FZ210CE

not much to do, this is a super old bug that has never been fixed apparently.
you can however keep it from suspending erroneously by typing the following in a terminal:
gsettings set org.gnome.settings-daemon.plugins.power 'use-time-for-policy' 'false'

this will avoid your system shutting down because it thinks that it has only 1% left or so. ;)


Terminal short cut to toggle scroll on output

If you're looking to just freeze / resume the output of the terminal, just use Ctrl+S to Stop output and Ctrl+Q to Quit stopping the output...
It's basic bash keyboard handling...
:-)


You should look in /var/log/apt/history.log or older /var/log/apt/history.log.*.gz files if there were any issues during installing the kernel images and compiling initrd.

Also it seems like 3.13.0-44 is currently the latest available in 14.04, so try to install the latest currently available kernel, check history.log for error and try to boot that.

If your find error messages, please edit your question and add them.

The command to update or recompile an initrd image is update-initramfs.


Is there any way to install a bootable version of Ubuntu 12.04 to a usb?

Ubuntu 12.04 images are available at: http://cdimage.ubuntu.com/ubuntu/releases/12.04.5/release/


Are there any security issues with guest accounts?

They shouldn't be able to access any of your files, your history or anything contained within your home directory (settings etc..).  I'm sure if they were persistent enough they could get through, but I wouldn't worry about it.


How to move one button from the left corner of the top bar on Ubuntu?

That one is not a button, but is an icon, an indicator and is called Session Menu. See this answer for the right Unity's terminology.

Now, I don't think that you have any chance to move the Session Menu indicator which is probably hardcoded by design, but you can give a try to this answer to see how you can change the indicators order.


Compiz Wallpaper plugin doesn't exist in Ubuntu 12.10

Looked all over for this plugin and at this time I am assuming this is a bug.  A rather serious one for me.  Please vote here:

https://bugs.launchpad.net/compiz/+bug/1020830

The Wallpaper plugin is still in the list of official plugins for Compiz as can be seen here:

http://wiki.compiz.org/Plugins/Wallpaper


Lubuntu 18.04.1 LTS xrandr not detecting second monitor

RESOLVED:

Nothing is wrong with monitor or PC or Arandr, it was HDMI cable that was faulty. I bought new one and everything was fine (still had to activate monitor using arandr though).


Drag & drop on launcher icon does not raise focus

This seems to be a bug in 11.04. I tested in 11.10, and while the program window is not raised, the file is transferred to the application and it is raised afterwards (at least Firefox, which I tested, was raised).


How to find a package starting with a given string at packages.ubuntu.com?

Web interface

If you look closely you will see a message:

  Your keyword was too generic, for optimizing reasons some results might have been suppressed.
  Please consider using a longer keyword or more keywords.

search for libkf5k and you'll find libkf5kjs-dev.

The reason

Since these kind of queries can easily be used to run DoS like attacks to the databases they're not supported by the web interface.

CLI

You can also use command line to search for packages specifically for your Ubuntu version (using regex):

$ apt-cache search --names-only ^libkf5 | grep js | grep dev
libkf5jsembed-dev - Embedded JS library for Qt
libkf5kjs-dev - Support for JS scripting in Qt applications


How to bring back drum roll sound in Ubuntu 17.10 when system is ready for user to log in

Here is a way using a systemd user unit running from the gdm user's home directory.

Save the following file as /var/lib/gdm3/.config/systemd/user/drumroll.service:

[Unit]
Description=Drumroll
Requires=pulseaudio.socket
After=systemd-user-sessions.service

[Service]
Type=simple
Restart=no
ExecStart=/usr/bin/paplay /usr/share/sounds/ubuntu/stereo/system-ready.ogg

[Install]
WantedBy=default.target

The above systemd unit should make sure that pulseaudio has been started in the gdm user context and execute the paplay command (I haven't tried canberra-gtk-play, but I would think it works as well).

After=systemd-user-sessions.service will make the service start only after the system is ready for user logins. (see http://manpages.ubuntu.com/manpages/artful/man8/systemd-user-sessions.service.8.html)

Then execute:

$ sudo mkdir -p /var/lib/gdm3/.config/systemd/user/default.target.wants
$ sudo ln -s /var/lib/gdm3/.config/systemd/user/drumroll.service /var/lib/gdm3/.config/systemd/user/default.target.wants/drumroll.service
$ sudo chown gdm:gdm /var/lib/gdm3/.config/systemd/user/{drumroll.service,default.target.wants}

Those last commands make the unit start automatically when the systemd session of the gdm user is started.

Reboot to test.

To check for errors is a little bit tricky, because systemctl has the restriction to connect to either the system session or the calling user's session. To make gdm the calling user is easy with sudo, but some environment needs to be set up to make it possible to connect to its systemd user session:

$ sudo -u gdm XDG_RUNTIME_DIR="/run/user/$(id -u gdm)" DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" systemctl --user status drumroll
● drumroll.service - Drumroll
   Loaded: loaded (/var/lib/gdm3/.config/systemd/user/drumroll.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Tue 2018-06-26 23:35:05 CEST; 36min ago
  Process: 1238 ExecStart=/usr/bin/paplay /usr/share/sounds/ubuntu/stereo/system-ready.ogg (code=exited, status=0/SUCCES
 Main PID: 1238 (code=exited, status=0/SUCCESS)

I haven't tried this with 17.10, but 18.04, but I don't see a reason it wouldn't work as well on 17.10.


Windows partition after installing Ubuntu 13.10

Installing Ubuntu by selecting the Remove Windows 7 and install Ubuntu option will wipe your Hard Drive and create a separate type of file system and partition system.

You will no longer have a C, D, and E drives.

So the Windows partitions are deleted along with any data they had in them and a new single partition of whole hard Disk is created.


It looks like your computer does not have ACPI fan control enabled. Try booting with acpi=ht, acpi=noirq, pnpacpi=off, noapic, and nolapic (one at a time) and see if any of those work. Does your computer still overheat with those parameters? If so, you may want to consider using a cooling pad.


Can changing desktops environments affect my programs/personal data?

Changing Desktop Environments is like changing clothes, yourself will be the same. There's almost 0 risk of data loss (you always should do backups) and almost no glitches (Unity and Gnome 3 don't play well together). There's no risk of something bad happening whatsoever.


How to change the order of scopes in a lens?

Lenses will display the results of scopes on a first come, first served basis

When a search term is entered, each scope performs their search gets the results and then sends the results to the lens to be displayed.  The lens displays the results in the order in which they are delivered to it.  So, scopes which finish their searches quicker get their results displayed first.

A number of factors affect the search speed of a scope. Some websites may be slower at returning results than others, for example.  In this case, Grooveshark's search is presumably finished before Spotify's, and thus, its results are delivered to the lens first.

It would be possible for a scope to have a delay built into it in order to de-emphasise the scope's results, but it is difficult to see how a scope could perform searches quicker, especially if it is reliant on a website delivering it results to display.


move away all zsh conf files from the home folder

my fault, I was mistyping etc/zsh/.zprofile, for some reason I thought it didn't need the point before


ubuntu 15.04 can't turn off auto login for specific account

What you appear to be describing is passwordless login rather than autologin, and is controlled by membership of the nopasswdlogin Unix group rather than the lightdm configuration.

You can check whether your user is a member of that group using the id command

id

or (if logged in as a different user)

id username

I don't know a way to modify group memberships via the GUI, but from a terminal you should be able to use the standard user/group modification utilities usermod or gpasswd e.g.

sudo gpasswd --delete username nopasswdlogin

To see all members of the nopasswdlogin group, you can use

getent group nopasswdlogin


How do I get a Gyration Media Center Universal Remote Control (GYR3101CA) working?

This is a How To on getting the Gyration Media Center Remote working in Ubuntu 10.04. I have had this remote since 2007, and fell in love with it. The remote is a gyro mouse and media center remote all in one. In order to get this working you have to use a program called Evrouter.

Orginal Information for getting this remote to work was gathered in this thread. http://ubuntuforums.org/showthread.php?t=479897

Write Up:

Open up a terminal window.

Download EVRouter for your architecture:

i386

cd ~
wget http://debian.bedroomlan.org/debian/pool/main/e/evrouter/evrouter_0.4_i386.deb
amd64

AMD64

cd ~
wget http://debian.bedroomlan.org/debian/pool/main/e/evrouter/evrouter_0.4_amd64.deb

Install EVRouter:

i386

sudo dpkg -i evrouter_0.4_i386.deb

amd64

sudo dpkg -i evrouter_0.4_amd64.deb

Create Configuration file:

Code:

cd ~
touch .evrouterrc
nano .evrouterrc

Paste the below text.

Code:

#   Stop
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/166 "fill this in!"

#   Record
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/167 "XKey/R"

#   Pause
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/167 "XKey/P"

#   Play
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/207 "XKey/P"

#   Rewind
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/168 "XKey/Left"

#   Fast Forward
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/208 "XKey/Right"

#   Skip Back
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/165 "XKey/Home"

#   Skip Forward
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/163 "XKey/End"

#   Guide
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/362 "XKey/M"

#   Up
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/103 "fill this in!"

#   Left
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/105 "fill this in!"

#   Right
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/106 "fill this in!"

#   Down
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/108 "fill this in!"

#   Back
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/158 "fill this in!"

#   Info
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/130 "XKey/I"

#   OK/Enter
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/28 "fill this in!"

#   Volume Up
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/115 "XKey/F11"

#   Volume Down
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/114 "XKey/F10"

#   Channel Up
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/402 "XKey/Up"

#   Channel Down
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/403 "XKey/Down"

#   Mute
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/113 "XKey/F9"

#   1
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/2 "fill this in!"
#
#   2
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/3 "fill this in!"
#
#   3
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/4 "fill this in!"
#
#   4
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/5 "fill this in!"
#
#   5
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/6 "fill this in!"
#
#   6
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/7 "fill this in!"
#
#   7
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/8 "fill this in!"
#
#   8
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/9 "fill this in!"
#
#   9
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/10 "fill this in!"
#
#   0
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/11 "fill this in!"
#
#   *
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/42 "fill this in!"
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/9 "fill this in!"
#
#   #
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/42 "fill this in!"
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/4 "fill this in!"

#   Clear
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd" none key/1 "fill this in!"
#
#   Left Click
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-mouse" none key/272 "fill this in!"
#
#   Right Click
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-mouse" none key/273 "fill this in!"

#   Live TV
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-mouse" none key/377 "XKey/C"

#   Windows
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-mouse" none key/102 "XKey/Alt_L+Control_L+BackSpace"

#   Pictures
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-mouse" none key/226 "fill this in!"
#
#   Music
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-mouse" none key/391 "fill this in!"
#
#   Video
# "Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-mouse" none key/393 "fill this in!"

#   DVD Menu
"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-mouse" none key/410 "XKey/O"

Create start file.

cd /usr/local/bin
sudo touch evrouter_start.sh
sudo nano evrouter_start.sh
sudo chmod 4777 evrouter_start.sh

Paste the below into the file.

xhost +local:root
killall evrouter
rm /tmp/.evrouter* #removes a previous lock file
/usr/bin/evrouter /dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-mouse /dev/input/by-id/usb-Gyration_Gyr
ation_RF_Technology_Receiver-event-kbd &

Create autostart file.

cd ~
cd .config/autostart
touch evrouter.desktop
nano evrouter.desktop
chmod 4777 evrouter.desktop

Paste the below text.

[Desktop Entry]
Name=Evrouter
Comment=
GenericName=Evrouter Process
Exec=/usr/local/bin/evrouter_start.sh
Type=Application
Encoding=UTF-8
Icon=
Categories=GNOME;Application;AudioVideo;Audio;Video
X-AppInstall-Package=Evrouter

Get event ID:
Run

ls -l /dev/input/by-id/

Above command should return information like below.

demonbob@sys-mythtv:/etc/udev/rules.d$ ls -l /dev/input/by-id/
total 0
lrwxrwxrwx 1 root root 9 2010-08-25 23:44 usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd -> ../event3
lrwxrwxrwx 1 root root 9 2010-08-25 23:44 usb-Gyration_Gyration_RF_Technology_Receiver-event-mouse -> ../event4
lrwxrwxrwx 1 root root 9 2010-08-25 23:44 usb-Gyration_Gyration_RF_Technology_Receiver-mouse -> ../mouse1
Write down the event# associate with usb-Gyration_Gyration_RF_Technology_Receiver-event-kbd and usb-Gyration_Gyration_RF_Technology_Receiver-event-mouse. In my case this is 3 and 4.

Create udev rules file.

cd /etc/udev/rules.d
sudo touch 10-local.rules
sudo nano 10-local.rules

Paste the below into terminal. Replace the event[#,#] with your corresponding numbers. Change the owner to the your user account

KERNEL=="event[3,4]", OWNER="YOUR_USERNAME"

Reboot

Extras

Jump Points:

Custom Scripts:

MythFrontend Close and Stop when green MCE button is pressed.

I wrote a script to make the Green MCE button to start and stop mythfrontend

Download the attachement labeled mce.start.sh
copy the file to /usr/local/bin/
Change the premissions of the file to executable.

sudo chmod 4755 /usr/local/bin/mce.start.sh

Edit your .evrouterrc for key event 102 and make it look like so. (Notice the change at the end)

"Gyration Gyration RF Technology Receiver" "/dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-mouse" none key/102 "Shell/mce.start.sh &"

Mythfrontend swith to boxee

This is a simple replacement for the above script for if you have multiple media clients installed you can switch between them. In the code below i use boxee, but it can be modified for any combinations of applications.

Code:

if [ "$(pidof mythfrontend.real)" ] && [ "$(pidof Boxee)" ]
then
    killall mythfrontend.real
    killall Boxee

elif [ "$(pidof mythfrontend.real)" ]
then
    killall mythfrontend.real
    exec /opt/boxee/run-boxee-desktop

elif [ "$(pidof Boxee)" ]
then

    killall Boxee
else

    exec mythfrontend

fi

References

Original forum post.


Yes this is normal. This random change happens with some computers.
Try inverting the 2 hard disks in the BIOS boot order.


Ubuntu installation alongside Windows 8.1 is running in low-graphics mode

I had HALF of your experience in the past hour as the result of installing an accelerated graphics card.  In my case all I had to do to solve the issue was remove the accelerated graphics card, but that's probably not going to work for you.

As to your windows installation, you should have been greeted by a boot manager at boot time, provided you selected "side by side" installations when you installed Ubuntu.  If you opted to use the entire hard disk, then your windows installation has been deleted.  Sorry.

I suggest you boot to whatever medium used to install Ubuntu and once that has loaded, open either Disk Utility to examine the content of the hard drive and look for any NTFS partitions.  If you have any, then your windows has survived and all you need to do is use the boot repair tool to restore the windows boot option.


How do I fresh install when Ubuntu doesn't come with my Graphics Card driver?

Well, that happened to me, ubuntu 14.04 in its first version had an old nvidia driver included that was not compatible with recent chipset nvidias (the 750ti was fairly recent back in those days) so it wont boot. however, if you make the iso with netbootin you will get a "run with compatibility video mode) and basicly it will load with a generic vesa driver with no video aceleration,it will load a very buggy desktop then all you need to do is control alt t , add the ppa for nvidia drivers

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-352
and you should have your video trouble sorted.

Or as an alternative try using this version of 14.04 - Ubuntu 14.04.4 LTS from the ubuntu site as its a more updated version and maybe it has the updated drivers already.


Grub not creating a boot option in UEFI Dual-Boot Win10

if you can access the windows operation system then use Easybcd tool.but if you are in linux machine then follow the below command.may be it will help you

mount /dev/sda3 /mnt
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
grub-install /dev/sda
update-grub
exit
umount /mnt/dev/pts
umount /mnt/dev
umount /mnt/proc
umount /mnt/sys
umount /mnt

This will restore the old kali linux boot loader, however, you will have to boot into kali once the live cd is out, so as to add windows into the boot loader. Once booted, go to the terminal and do the following:

Code:

os-prober
update-grub

... and thats it. hope this helps. I think this will also work with windows xp,vista, and 8, but i haven't yet tested on those systems, so i can't confirm.


Are the packages installed by the installer marked as manual?

Since those dependencies were automatically determined instead of manually specified, they will show up on the showauto list instead of the showmanual list.
Take a look at man apt-mark, which clearly explains how apt-marking works.


Missing general fonts after installing WINE

You need to install ttf-mscorefonts-installer available from the Ubuntu Software
Centre:

or (using the terminal Ctrl-Alt-T)

  sudo apt-get install msttcorefonts

Please review this question to understand why Flash needs these common Microsoft true type fonts to work properly


Tweaked .profile. Ubuntu 14.04LTS changed to Ubuntu 14.04 Gnome on RESTART. Unable to login to gnome also

First login in command line ( Ctrl + Alt + F1).

Then reset your  .profile file (with the 1st command making a backup) :

cp ~/.profile ~/.profile.backup
cp /etc/skel/.profile ~/.profile

Reboot and everything should work properly.


Usually the keyboard shortcut under "Go", located just above the arrow in your picture. Check what keyboard shortcut is there for "Enter Location" which is the one you're looking for.


How to disable mouse debouncing in libinput

Just reposting the discussion in comments as an answer.
First of, to avoid confusion: OP does not have a hardware button for double-clicks. Rather, the double-click they were referring to is when you tap left mouse button in such a special way so it bounces and causes 2 clicks. I could reproduce it with my mouse too.
This is almost never a wanted behavior, so libinput has a debounce algorithm in place, which detects and discards such bounces. (and just for the record: it works fine with hardware double-click buttons). So OP asked if they can disable it locally.
It is indeed possible via quirk subsystem. Before I go on, I need to quote documentation:

For temporary local workarounds, libinput reads the /etc/libinput/local-overrides.quirks file. Users may add a sections to this file to add a device quirk for a local device but beware that any modification must be upstreamed or it may cease to work at any time.
Warning: Model quirks are internal API and may change at any time. No backwards-compatibility is guaranteed. Local overrides should only be used until the distribution updates the libinput packages.

So quirks subsystem is not a configuration API. If you have a problem which can be solved with a quirk, the quirk most likely needs to be upstreamed.
With that said, the following code placed at /etc/libinput/local-overrides.quirks file helped the OP to get the bouncing-behavior:
[SINOWEALTH Wired Gaming Mouse]
MatchName=SINOWEALTH Wired Gaming Mouse
ModelBouncingKeys=1

The mouse model name is one from libinput list-devices | grep Device output. For this to work libinput needs to be at least of 1.12.0 version (for OP it worked on libinput 1.15.0).


Vino settings can be found under /org/gnome/desktop/remote-access/. You can easily modify them using dconf-editor:

sudo apt-get install dconf-editor


Error: unexpected inconsistency; run fsck manually

At the command-line, enter: "fsck  /dev/sda6"
Enter y when prompted to perform fixes.

https://ubuntuforums.org/showthread.php?t=789454


firefox giving error while using install button on gnome-look.org

Here's the information from the (?) Icon I had previously mentioned in my comment.

Download the .deb file for the "open Desktop" application
This is a direct link
here.
 The actual site is here:
Linux-apps

Then you click the "files" tab and download the .deb for your distribution. Once you open the .deb file your package manager (ubuntu software center) should open and allow you to install it.

If you would rather use ocs-url app

You can get it from here.
A direct-link for the deb file is here.
The Installation instructions also include a video of how to install ocs-url. That link is here

  If you use Firefox, a program selection window open the first time you click on an install button. Choose "ocs-url" as custom url handler and tick "remember the file association".

So following instructions from the gnome-look.org help button next to the install button, follow the steps I just outlined to install the URL handler, once that is installed you can now use the "install" button on the gnome-look.org site.

I hope that helps.


I installed then deleted gnome and ubuntu desktop, now stuff isn't working correctly

The simplest way would be to reinstall Ubuntu if you have an installation disc or if you can make one; it should still keep all of your files and usually keeps all your programs.
Just boot into the installation disc, and when it asks for what to do, simply select "Reinstall Ubuntu."
If you don't see that option or you don't want to go that route, then try this:

  sudo apt-get build-dep ubuntu-desktop; sudo dpkg-reconfigure ubuntu-desktop


Using Wireless ASUS PCE-AC68 on Ubuntu 14.04.5

You need a newer version of bcmwl-kernel-source than what is in the trusty repositories for the 4.4 kernel
wget http://mirrors.kernel.org/ubuntu/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.1_amd64.deb
sudo dpkg -i bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.1_amd64.deb
If you have UEFI you will need to disable Secure Boot as this module is not signed

Reboot


This is the case where the client uses the wrong certificate for the wrong domain. Now the client is not using a standard browser to make the connectivity but instead using a command line. In a browser environment  the error message the client would have received is “The Name of the Security Certificate Is Invalid or Does Not Match the Name of the Site”. This is the intended behavior and one of the 3 main verification process that all SSL certificates must pass for SSL connectivity to be made. Unfortunately the client can only use the certificate for the exact common name (FQDN) that is was requested for. Again that is expect behavior and the client must obtain a different certificate for the different FQDN that they need the certificate for.

Here is one solution that we provide to our clients:
https://knowledge.verisign.com/support/ssl-certificates-support/index?page=content&id=SO16685

Another recommendation is to buy a SAN certificate that supports different FQDNs for any potential services they need.

Jimmy Edge - Symantec SSL employee


Edit the configuration file

  sudo vim /etc/default/grub

Find the line GRUB_CMDLINE_LINUX_DEFAULT and append this as below example maxcpus=n (n number of CPU) want to enable

  GRUB_CMDLINE_LINUX_DEFAULT=" maxcpus=1"

After saving the file run the below command

  sudo update-grub2

When you reboot, linux will run on 1 cores


What happens to the DesktopCouch Mailinglist?

Desktop Couch is not really any different than couchdb itself (except for the installation and the environment it runs in).
If you have any usage questions, then you are better off asking at couchdb mailing lists:

http://couchdb.apache.org/community/lists.html

If you have some troubles with desktop couch installation, then it's probably better to fill bug reports at launchpad or ask here.


I can't install winusb on Ubuntu 18.04.2 LTS

Please follow below commands:

sudo apt update
wget http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/w/woeusb/woeusb_3.3.0-1~webupd8~bionic0_amd64.deb
sudo dpkg -i woeusb_3.3.0-1~webupd8~bionic0_amd64.deb
sudo apt install -f
sudo dpkg -i woeusb_3.3.0-1~webupd8~bionic0_amd64.deb

launch it by searching the woeusb in applications.


No, once you replaced your windows with Ubuntu you copied gigabytes of data over your hard disk. This means all the links that would have possibly remained, and possible be used to recover your files, are now lost.


Probably you has to set the folder's permission for that folder properly
For example:
If you want to upload a file to folder "testing" using user "MyUser" you have to set write and read permission to MyUser in Testing Folder.


Ubuntu Server 16.04 server GUI install apt-get install error

The servers of the repositories change from time to time.  You can update this information using these two commands:

$ sudo apt update
$ sudo apt upgrade

It wouldn't hurt to run it twice.  Sometimes upgrades provide some updated information for locations.  Running it the second time would assure to have the upto minute lastest.  It's very unlikely having some information late by a few days would ever make a difference.

To avoid this, you might consider the two lines part of your routine when performing terminal package installs.

Check your Repository Download server:

This information is coming from your download server, which may not be the most upto date.  You can check it with these steps:

Go into Software and updates -> (click tab) Ubuntu Software -> (click dropdown to select a different Download from source).


boot problem, encrypted xubuntu, grub reinstall

This can be done manually but the recommended way is via the Boot-Repair tool.

Try this steps using Boot-Repair tool:

create an Ubuntu live-USB
boot into that live-USB and select Try Ubuntu
After Ubuntu lunches bring up the terminal and run the following commands:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

launch the Boot-Repair from dash or terminal or sudo apt-get install -y boot-repair && (boot-repair &) -- to install and repair at once
click the recommended repair button
When finished just shutdown and boot normally from your system

NOTE: As instructed here please do not alter any settings on the Boot-Repair tool just use the recommended ones

Hope it helps.

Go here if you need further links Source

Take note of the url When repair is finished, (paste.ubuntu.com/XXXXX) that appeared on a paper you might need it if it didn't go as expected.


I definitely think to have solved the issue. After a row of clean installs and upgrades, one out of the several former problems remainded alive.

Now and then my PC would freeze: clear image of the screen but no response to any input device.

As it had a random appearance -though somehow connected with big, normally graphics-related CPU demands- and was even worse with Windows (no start up at all) I decided to stop thinking "digital" and going analog, just applied generous amounts of contact cleaner to CPU, RAM and anyother chip complex enough to show those tiny, thight to each other pins. They can as well stop conducting from micro-dust accumulation as falling into shortcut due toi humidity.

IT WORKS! Some days after the cleaning (I usde CRC 2-26) and a series of really brutal stress test to my computer, it has never frozen again -may it work slower during the test, as natural.

So, for all of you getting sudden unexpected freezings, give up messing around with your O.S. beyond what's reasonable and do an exhaustive dust and contact cleaning.


Can only open bukkit.sh with Java Web Start

Appart of don't understanding why the file has sh as the extension being a java executable and all, I see just one way to do this. Using the shebang.

Edit your file and add the following line at the start:

#!/usr/bin/env java
....

This shebang tells the interpreter to execute the file using the binary called java.


How to make a Gtk.ComboBoxText's entry editable in Glade

Try setting can_focus to True, if you can't give keyboard focus to the entry you won't be able to type anything into it.


How can I install Ubuntu 14.10's kernel in Ubuntu 14.04 LTS?

There is a better way:

sudo apt-get install linux-image-generic-lts-utopic

This is from:
How can I install 3.16 kernel on Ubuntu 14.04


Adjusting screen brightness in Ubuntu 14.04 LTS

Finally found the issue... When this happened I had booted Ubuntu in recovery mode. Some options are not available in recovery mode, such as adjusting screen brightness and using multiple monitors.

When I booted back in normal mode, the screen brightness adjustment settings were available.


Can I install Ubuntu 12.04 LTS on a PC with no OS?

Yes as long as you have a hard drive and a CD/DVD or USB port working.
You don't need any other OS installed.

Just boot to the Live CD or LiveUSB(press F12 just after your post screen and select the CD or USB) Then click "Install Ubuntu" the installer will take care of the rest.  It is extremely simple to install without any preexisting OS as you will not have to choose any options to install alongside or replace another OS.

If you'd like to read them to get more detailed information here are the Installation instructions


Upgraded to 14.04 - can't see system files in Nautilus

So right now you are currently seeing this:

And you want to see these:

To change it, go to the dropdown arror, and then click Show Sidebar.

Or press F9

Click here to get to the / file system.

You can also run nautilus /


Is there a way to install Toad-for-MySQL on ubuntu?

This from here:
I was able to install it and now it works perfectly.
Short howto:

kubuntu 13.10
wine-1.7.11
playonlinux  4.2.1

create a new "driver" in play on linux in 32bit mode emulating
windows xp.

Install dotnet40 inside this driver (you can do it going in the
configuration options).

Launch toad for mysql 7.0 installation.

Now you should have a working Toad.
I suggest to disable (in toad configuration) all the option that use internet otherwise you get an exception since IE is not installed.


No wireless section in network connections 16.04

I suspect you have a newer Intel wireless device after looking at the motherboard spec.  In terminal run
sudo apt-get install linux-generic-hwe-16.04-edge
That should install the 4.8 kernel and then run the following two commands to install firmware
wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161.1_all.deb
sudo dpkg -i linux-firmware_1.161.1_all.deb

Reboot


You're mixing old static bindings and new dynamic bindings.

Old examples: import gtk, import gobject, import webkit

New examples: from gi.repository import Gtk, from gi.repository import GObject, from gi.repository import WebKit

Your code is very simple to port. Change the following lines:

# Line 16
from gi.repository import WebKit

# Line 35
self.webview = WebKit.WebView()


Update Manager does not ask for password anymore

Why does update-manager no longer prompt for the user's password?
 As of Ubuntu 11.10, update-manager no longer prompts for the user's password to apply updates. This was decided to improve usability and to make it easier for users to apply security updates and therefore increase system security. The rationale is as follows:

Like in previous releases, by default only people in the admin group are allowed access to perform security updates.

Only updates for already installed software can be applied without a password. Installing additional software still requires people to enter their password. The password prompt had become an irritant for some people such that they would just press 'Cancel' instead of installing the updates. The password prompt decreased system security for those users.

People that did dutifully apply updates became conditioned to enter their privileged password perhaps daily. When the user is prompted for the password, it should mean something and the frequency of update-manager updates meant that some people no longer thought about why they were entering their password. For these users, the password prompt had the potential to reduce security.
Source


How do I bind Volume Up/Down/Mute and Brightness Up/Down keys in Lubuntu 16.04?

I got it, the keybinds are as follows:

brightness down

brightness up

pactl set-sink-mute @DEFAULT_SINK@ toggle

pactl set-sink-volume @DEFAULT_SINK@ -4%

pactl set-sink-volume @DEFAULT_SINK@ +4%


Try

sudo apt-get install filezilla

You should then be able to run it from the Dash.


Ubuntu 9.10 (Koala) is no longer supported, and so upgrading from 9.10 to 10.04 LTS is also not supported.

Once you have your data and settings backed-up, you should do a fresh install of Ubuntu on your workstation. There may be initial issues with drivers, but this should mostly be resolved by doing an update.

Once you have 10.04 LTS working, then try out (but do not immediately install) Ubuntu 12.04 LTS. This may also work on your PC, but may not be quite as fast.

I have successfully run both 10.04 LTS and 12.04 LTS on an HP Mini netbook (Atom processor, 1GB RAM) or ex-corporate desktops (P4 2.8GHz, 1GB RAM).

UPDATE:

Any attempt to upgrade is potentially a high risk to any data (and settings) on the PC. Therefore, the data (and settings) must first be backed-up.

As you have already identified issues with attempting to upgrade, it seemed better advice to suggest that you instead do a new install.

Note: Any inconvenience to yourself and other users also needs to be weighed against the potential loss of data, and likely failure, of the upgrade attempt.


getting rid of protobuf 3.13.0 in Ubuntu 20.04 and set protobuf 3.6.1 as default

I noticed I have:
$ which -a protoc
/home/mona/anaconda3/bin/protoc
/usr/local/bin/protoc

I added the last line in ~/.bashrc:
$ tail ~/.bashrc

alias vi='vim'
aa_prompt_defaults

alias bat='batcat'

alias fd='fdfind'

alias protoc=/usr/local/bin/protoc

then:
$ source ~/.bashrc

now:
$ protoc --version
libprotoc 3.6.1


Why does dpkg give me a "package was interrupted" error?

Try running sudo dpkg --configure -a in a terminal and see if that helps.


Do the same set of graphics drivers work across ubuntu versions?

What graphics hardware do you have? And why do you suspect it's the graphics drivers? It does sounds like you're experiencing ACPI issues. Your previous post doesn't reveal much other than you probably have a ZenBook, and your machine couldn't sync your laptop's time with an NTP server. It's possible that the newer kernel in 18.04 is doing something that's making your ZenBook run hot, hence the reason why it restarts when moved/lifted/bumped.

Just a wild guess, but you could try adding the following kernel parameters:

i915.enable_execlists=0

and

acpi_osi=! acpi_osi='Windows 2009'

To add kernel parameters you need to edit /etc/default/grub (as root) using your favorite editor. You then add, inside the quotes, the lines above to the line starting with GRUB_CMDLINE_LINUX_DEFAULT. So your GRUB_CMDLINE_LINUX_DEFAULT might look something like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_execlists=0 acpi_osi=! acpi_osi='Windows 2009'"

Once you have modified your kernel parameters in /etc/default/grub, run the following:

$ sudo update-grub

After that, reboot, and see if it solves the issue.

if acpi_osi='Windows 2009' doesn't work, try acpi_osi='Windows 2015'.

If you're unable to boot in to a stable Ubuntu 18.04 to add the above kernel parameters, you may have to first temporarily add them during the boot process. Details on how to do this can be found here:

How do I add a kernel boot parameter?


After a little probing the thread on this page solved my problem, close this hoe!

Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?


Execute script when usb drive are plugged in.

  RUN{type}:
  This can only be used for very short-running foreground tasks. Running an event process for a long period of time may block all further events for this or a dependent device. Starting daemons or other long-running processes is not appropriate for udev; the forked processes, detached or not, will be unconditionally killed after the event handling has finished. Note that running programs that access the network or mount/unmount filesystems is not allowed inside of udev rules, due to the default sandbox that is enforced on systemd-udevd.service.

/etc/udev/rules.d/90-usb-backup.rules:

ACTION=="add", SUBSYSTEM=="block", \
ATTRS{idVendor}=="0480", ATTRS{idProduct}=="a208", \
ENV{DEVTYPE}=="partition", RUN+="/bin/sh -c '/home/fabio/bin/backup.sh'"

/home/fabio/bin/backup.sh:
(make sure your script has execution bit set; chmod +x script)

#!bin/bash

if [[ -b $DEVNAME ]] && \
   mount $DEVNAME /home/fabio/Ads/
then
   cp -a /home/fabio/Ads/ /media/fabio/BACKUP/teste/
fi

this will not mount the drive on the system, just inside the sandbox.


In the menu under options, make sure to use OpenGL as the video renderer instead of DirectX. Once I did this, I required no additional wine configuration and everything worked fantastic.


How do I prevent an external monitor from shutting off when closing my laptop lid?

I scoured the 'net for solutions that respected the Ubuntu/GNOME settings but ultimately this was the only thing that worked for me:

sudo vim /etc/UPower/UPower.conf

# <snip> ...

ignoreLid=true

# <snip> ...

On systemd operating systems you can issue the command sudo service upower restart to have the new config take effect. Otherwise, you need to reboot.


copying and pasting url from clipboard on my android

PUSHBULLET is a wonderful tool that lets you share links, files, and other things to all your devices from your computer.

See also THIS link for Android.


"missing NTLDR" is a Windows error message (NTLDR is the small program that boots Windows NT). If your computer makes it to that error message, then it is booting properly and has no issues, it is just the windows install that's broken.

So, the computer is not "non-bootable". Depending on how old is "old", it may be unable to boot the installation media directly, in which case you can just use a floppy loaded with something like SmartBootManager, which is able to boot CDs itself (no matter whether the BIOS supports bootable CD's or not, SBM has its own implementation of El Torito (the bootable CD standard)).

You can use SBM if you have a floppy drive. I'm afraid the Windows 98 floppy won't be of much help here (there is probably some clever way to boot a live CD from MS-DOS, but it won't be as easy as just trying SBM).


Make a text file my automatically updated background?

The script below watches a textfile that you can edit. If the file is changed, it will create a new layer over your wallpaper with the text of the file.

Options

you can define:

text size
text color
number of columns
(max) number of lines per column
border width (around the text blocks)

How to use

The script uses Imagemagick, you might have to install it first:

sudo apt-get install imagemagick

Then:

Copy the script below into an empty file and save it as walltext.py.
Edit, if you want specific settings, the options in the head section of the script.
Into the same folder, copy the wallpaper of your choice , name it (exactly) original.jpgN.B.- It is important that the proportions of your wallpaper match the proportions of your screen's resolution, else the text will not be positioned properly.
In the same folder, create an empty textfile named (exactly) notes.txt. This is the file to make your todolist or whatever you'd like to have on your screen.

Run the script by the command:

python3 /path/to/walltext.py

Now start editing your text file. Every five seconds, the wallpaper is updated if needed (after you saved the changes):

Examples

1 column, max 30 lines per column

2 columns, max 20 lines per column

3 columns, max 10 lines per column

The script

#!/usr/bin/env python3

import subprocess
import os
import time

curr_dir = os.path.dirname(os.path.realpath(__file__))
curr_wall = curr_dir+"/"+"original.jpg"
notes = curr_dir+"/"+"notes.txt"

#--
text_color = "white"   # text color
size = "20"            # text size (real size depends on the scale factor of your wallpaper)
border = 120           # space around your text blocks
columns = 2            # (max) number of columns
n_lines = 10           # (max) number of lines per column
#--

def run_command(cmd):
    subprocess.call(["/bin/bash", "-c", cmd])

def get_value(cmd):
    return subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8").strip()

def read_text(file):
    with open(file) as src:
        return [l.strip() for l in src.readlines()]

def slice_lines(lines, n_lines, columns):
    markers = [i for i in range(len(lines)) if i % n_lines == 0]
    last = len(lines); markers = markers+[last] if markers[-1] != last else markers
    textblocks = [lines[markers[i]:markers[i+1]] for i in range(len(markers)-1)]
    filled_blocks = len(textblocks)
    if filled_blocks < columns:
        for n in range(columns - filled_blocks):
            textblocks.insert(len(textblocks), [])
    for i in range(columns):
        textblocks[i] = ("\n").join(textblocks[i])
    return textblocks[:columns]

def create_section(psize, text, layer):
    run_command("convert -background none -fill "+text_color+" -border "+str(border)+\
                  " -bordercolor none -pointsize "+size+" -size "+psize+\
                  " caption:"+'"'+text+'" '+layer)

def combine_sections(layers):
    run_command("convert "+image_1+" "+image_2+" "+"+append "+span_image)
    pass

def set_overlay():
    boxes = slice_lines(read_text(notes), n_lines, columns)
    resolution = get_value('identify -format "%wx%h" '+curr_wall).split("x")
    w = str(int(int(resolution[0])/columns)-2*border)
    h = str(int(resolution[1])-2*border)
    layers = []
    for i in range(len(boxes)):
        layer = curr_dir+"/"+"layer_"+str(i+1)+".png"
        create_section(w+"x"+h, boxes[i], layer)
        layers.append(layer)
    run_command("convert "+(" ").join(layers)+" "+"+append "+curr_dir+"/"+"layer_span.png")
    wall_img = curr_dir+"/"+"walltext.jpg"
    run_command("convert "+curr_wall+" "+curr_dir+"/"+"layer_span.png"+" -background None -layers merge "+wall_img)
    run_command("gsettings set org.gnome.desktop.background picture-uri file:///"+wall_img)
    for img in [img for img in os.listdir(curr_dir) if img.startswith("layer_")]:
        os.remove(curr_dir+"/"+img)

while True:
    text_1 = read_text(notes)
    time.sleep(5)
    text_2 = read_text(notes)
    if text_2 != text_1:
        set_overlay()

Notes

More options can be added to the script, more info on Imagemagick's options can be found here.