UDEV sends out events for CD/DVD drives (I've just tested it with udevadm) so you should be able to either write a UDEV script or write an upstart script like so:

start on block-device-added

task

script
   if [ `$DEV` -eq "/dev/sr0" ]; then
      # do something
   fi
end script

You might have to be careful about checking its mount status. I'm pillaging this from a similar answer of mine which is a bit more explanatory.

When running udevadm monitor --property --udev, here is the output I got when putting in a DVD (--property makes this quite verbose but it lets you know exactly what you're dealing with):

UDEV  [2251414.166711] change   /devices/pci0000:00/0000:00:1c.1/0000:07:00.0/ata17/host16/target16:0:0/16:0:0:0/block/sr0 (block)
ACTION=change
DEVLINKS=/dev/cdrom /dev/cdrw /dev/disk/by-id/ata-Optiarc_DVD_RW_AD-7240S /dev/disk/by-label/UT2004_DVD /dev/disk/by-path/pci-0000:07:00.0-scsi-0:0:0:0 /dev/dvd /dev/dvdrw
DEVNAME=/dev/sr0
DEVPATH=/devices/pci0000:00/0000:00:1c.1/0000:07:00.0/ata17/host16/target16:0:0/16:0:0:0/block/sr0
DEVTYPE=disk
DISK_MEDIA_CHANGE=1
GENERATED=1
ID_ATA=1
ID_ATA_SATA=1
ID_ATA_SATA_SIGNAL_RATE_GEN1=1
ID_BUS=ata
ID_CDROM=1
ID_CDROM_CD=1
ID_CDROM_CD_R=1
ID_CDROM_CD_RW=1
ID_CDROM_DVD=1
ID_CDROM_DVD_PLUS_R=1
ID_CDROM_DVD_PLUS_RW=1
ID_CDROM_DVD_PLUS_R_DL=1
ID_CDROM_DVD_R=1
ID_CDROM_DVD_RAM=1
ID_CDROM_DVD_RW=1
ID_CDROM_MEDIA=1
ID_CDROM_MEDIA_DVD=1
ID_CDROM_MEDIA_SESSION_COUNT=1
ID_CDROM_MEDIA_STATE=complete
ID_CDROM_MEDIA_TRACK_COUNT=1
ID_CDROM_MEDIA_TRACK_COUNT_DATA=1
ID_CDROM_MRW=1
ID_CDROM_MRW_W=1
ID_FS_LABEL=UT2004_DVD
ID_FS_LABEL_ENC=UT2004_DVD
ID_FS_TYPE=iso9660
ID_FS_USAGE=filesystem
ID_FS_VERSION=Joliet\x20Extension
ID_MODEL=Optiarc_DVD_RW_AD-7240S
ID_MODEL_ENC=Optiarc\x20DVD\x20RW\x20AD-7240S\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_PATH=pci-0000:07:00.0-scsi-0:0:0:0
ID_PATH_TAG=pci-0000_07_00_0-scsi-0_0_0_0
ID_REVISION=1.00
ID_SERIAL=Optiarc_DVD_RW_AD-7240S
ID_TYPE=cd
MAJOR=11
MINOR=0
SEQNUM=4400
SUBSYSTEM=block
TAGS=:udev-acl:
UDEV_LOG=3
UDISKS_PRESENTATION_NOPOLICY=0
USEC_INITIALIZED=10393360


Lubuntu hotspot starts up and then disconnects

I don't have an android, so you'll have to test this on your own, but I ran across this page. They say that Android doesn't show ad hoc networks. It finds them in the search, then filters them out.

There's a patch on the site which prevents the filtering.

Again, I haven't tested it, but it might put you on the right track. Let us know if it works for you!


How to fix the Bold font rendering issue with gnome-terminal

I do not really see a problem here, although I concede the rendering is different.

Does this effect also occur with other fonts? The problem may be the following: The Monaco font that I was able to get my hands on simply does not have a bold variant. That would mean the bold must be faked, and different renderers seem to come to quite different results.


firewire device 'rediscovered' every few seconds

If you don't own any firewire devices, you can blacklist the kernel module:

$ sudo vi /etc/modprobe.d/blacklist.conf

and then you add this line:

blacklist firewire-core

It's a good idea to recreate the initramfs and then reboot:

sudo update-initramfs -k all -u && sudo reboot


VirtualBox Ubuntu couldn't not open the medium ubuntu 18.04.4-amd64.iso

Open VirtualBox, select the guest OS, click the yellow gear Settings icon located on the VirtualBox menu bar, click Storage, click the dropdown triangle under the CD image to the right of where it says Optical Drive, and select Choose Virtual Optical Disk File....

Choose a virtual optical disk or a physical drive to use with the virtual drive. The virtual machine will see a disk inserted into the drive with the data in the file or on the disk in the physical drive as its contents.


How to fix Ubuntu not working with a KVM

Unlike Windows, Ubuntu tries to detect the video modes supported by the monitor and automatically choose the best one (for a TFT display, this would be the native resolution).

I have had similar issues with a KVM which would cause Ubuntu to choose 1024×768 on a 1280×1024 TFT and not let me change the setting. When I hooked up the monitor directly to the PC, I got the correct resolution.

Apparently, there are a bunch of KVMs out there (presumably mostly older ones) which do not correctly pass extra signals which the OS uses to get the supported video modes from the display.

I don't have a complete solution to offer, as I simply threw out my KVM since I didn't really need it. The best approach would probably be to manually force a particular resolution on the X server.

Try searching this site for "force resolution" or "force video mode". My attempts to edit the X config file back then were not successful; some answers here suggest passing an option to GRUB – maybe that helps.


Ubuntu 19.04 has extra hidden gamma curve? (weird stuff...)

My Ubuntu 16.04 can display your windows screen captures without grey scale gradients (what you call "artifacts" in FireFox. It's not Ubuntu it's the program you are using to display the grey scale.

Try using Firefox or another image viewer instead of the one you are using now.

Note: My gamma is also set at 1.0 but after the sun sets it gradually goes more red and less blue and a little less green over a 120 minute period on two out of three monitors. Gamma has never effected grey scale gradients though on any of the monitors.


You will find that under Gkrellm settings --> general --> properties, there is a check-box to hide it from the task-bar.


How to get MAAS server URL from command line?

You can learn more about MAAS here and also here.

Installation instructions are available to read here

There is further documentation on this page.

You can get the local ip address of any ubuntu machine by opening a terminal and issuing the command:

ifconfig which will produce results including a line similar to this:

inet addr:192.168.15.131 in which case the local ipv4 address is 192.168.15.131

You can obtain your outside ip address on this page


How to set up webcam for skype conversation?

Did you check that your Webcam is correctly running by using something like VLC. And that it has been correctly recognized by using dmesg (and looking at the last lines after plugging it in).

EDIT: To do so while using VLC: Open the playlist (CTRL+L) and go to "Video Capture" then a device should be there if it's not it hasn't been found.

EDIT2: Did you check that /dev/video* exists?
Command:

ls /dev/video*


Can an ISO and live-usb be infected or compromised?

The instructions for using Ubuntu ISO's include a verification step which can ensure (if followed) the ISO was not compromised during download.
(https://tutorials.ubuntu.com/tutorial/tutorial-how-to-verify-ubuntu)

When you boot a Ubuntu ISO it provides a check-install-media option which will re-run this verify step (checking for change or bad-writes).
(https://help.ubuntu.com/community/Installation/CDIntegrityCheck)

Ubuntu has not suffered ISO infection (from official sites), but other distro's have, so these steps are worth doing (let alone the pick up errors & save tons of time wasted diagnozing problems that were just bad download or media-writes).


Google Calendar (and Contacts) can be synced with Gnome Evolution, which comes with Ubuntu.  Evolution can be used off-line.   The Google Calendar page How to sync google calendar with evolution in ubuntu 9.04  is a good starting point.


18.04 Change Workspace Keyboard shortcut, conflicting with that for switching apps on the dash

This command will disable the hot-keys behaviour.

gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false

This command will disable the showing of numbers.

gsettings set org.gnome.shell.extensions.dash-to-dock hotkeys-overlay false

If you want to change the shortcuts for these behaviours.

Open the dconf-editor (if not yet installed, use sudo apt install dconf-editor)

change the values like for example: app-hotkey-8 from '<Super>'8 to '<Ctrl>8' or any valid shortcut your prefer.


How to access an ubuntu machine via VNC from the login screen?

Your best bet is to install xrdp . After installation, you can use an RDP client to connect to the machine - you will then be prompted for your credentials as you would be on the login screen.


it seems your system has trouble with video driver
you can try xorg open-source driver by typing this in terminal(may not work with try ubuntu as it does not have persistent storage)

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


Docker Web server on a secondary local IP

Sure, set the IP when specifying the exposed ports:
docker run -p 127.0.0.1:80:<container-port> ...
docker run -p 127.0.0.2:80:<container-port> ...


Can I make the top panel blend with the launcher?

You can change the opacity of the panel by using CompizConfig Settings Manager.

To install CCSM, run

sudo apt-get install compizconfig-settings-manager

in a terminal.

Once installed, run it by searching for ccsm in Dash. Scrool down to Ubuntu Unity Plugin, click it and choose Experimental. Here you can change panel and launcher opacity to make them look alike.

This is not perfect, but it gets you closer.


Most likely, the PrintScreen key is associated with copying the screenshot to the clipboard. So, you need to paste the image from the clipboard to any application which supports images.

If you want to change this behaviour, launch Settings, go to Keyboard shortcuts. Look for the screenshots section. See whether the PrintScreen key has been associated with any action or not. If not, click on Save a screenshot to Pictures and set it to the PrintScreen key.


Can't run in GUI mode in newly installed 14.04

I have the same problem every-time when i try installing ATI graphic card drivers on my hp laptop.

I think your problem is your graphic card drivers supported in 13.04 version are not working in the 14.04 version. so you need to uninstall the graphic drivers.

To uninstall the graphic drivers, boot into recovery mode run as root and try uninstalling your graphic drivers if you installed fglrx then you can try this command

sudo apt-get purge fglrx

and reboot

I hope that works


Go to your BIOS and set the BIOS clock to UTC and set the time correctly there!
In Windows, set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal" to dword:00000001
Still in Windows, go to Control Panel, Add/remove Sftware, Change windowssettings, add Windows Time server.
In Ubuntu, sudo nano /etc/default/rcS Ctrl+W UTC= if the value is no, change to yes
Still In Ubuntu follow the official instructions to install ntp
sudo reboot

Problem gone!

Why Windows?  Well, if your settings are off, I infer that you must be dual-booting and windows messing things up!  Szívesen! ;-)


Did Ubuntu 12.04 server really eat my RAM?

Your RAM usage looks totally normal, given the fact that you are running a GUI, Apache and mySQL on a box with only 1GB of RAM.

While the use for Apache and mySQL is rather obvious, installing complete desktop environments on a server – like Xfce on yours – is seldom useful and only wastes precious resources.

Ubuntu is as capable of being adminstrated from the command line as any other Linux distribution and I highly recommend you do so.


Show the Task Switcher on the center of the desktop

By

  they are displayed on the left side of the screen,

I assume you're referring to something like this:

To change that, open System Settings > Window Management > Task Switcher

In there, there are just too many settings to describe in detail. The video link provided by mook765 goes into great detail.

For your purpose, avoid choosing Breeze or Breeze Dark in the image below.

Whether you wish to have Show selected window checked or not is your preference.

But here are images illustrating the task switcher in the center of the screen. (The images are cropped and don't show the full screen.)

Small icons

Large icons

Thumbnails

Informative

Compact

Text only

There are some related options described in Is there an alternative task switcher to KRunner which is focused exclusively on window switching?.


Not able to ssh localhost in ubuntu 14.04

Most likely your computer does not have a private key to authenticate ssh and sshd config is set to use keys and password authentication is disabled, read https://help.ubuntu.com/community/SSH/OpenSSH/Keys for more info. you will need both private and public key to authenticate from local computer, if the firewall is set you may need to check that too. Check the port whether it is configured for default port 22 or some other port is used.
the config file for sshd is /etc/ssh/sshd-config, you can check the keys in ~/.ssh


bash -c "v=value; echo $v" displays nothing

There are two shells involved here:

The calling shell, the interactive shell from which you are running this
The non-login, non-interactive shell, spawned by bash -c

Now, the problem is, within double quotes the variables are expanded to their respective values, this is true for any shell.

So, as you have used double quotes, the variable expansion, $v, is actually taking place in the calling shell, not the called shell. But the declaration, v=value, is taking place on the called non-interactive shell.

So, in total, you have the variable defined in the called shell and expanded (beforehand) in the calling shell. As the value variable is unset in the calling shell, hence you are getting nothing in the  output.

Now, to make the variable definition and expansion to take place in the spawned shell, use single quotes or escape $:

$ bash -c "v=value; echo $v"

$ bash -c 'v=value; echo $v'
value

$ bash -c "v=value; echo \$v"
value


Did you look which program was using so much CPU?
You can use some text based software like top, ps or htop to see it.

I am suspecting tracker-miner to cause that, as it happened to many people with Ubuntu.


Upstart to automount USB in Ubuntu Server 20.04

usbmount is the tool to automatically mount and unmount USB mass storage devices.
You can install it like so:
Run in the terminal:
sudo apt update

Then run:
sudo apt install usbmount

Then run:
sudo systemctl restart udev

Done. When a USB storage device is connected, it will be mounted under /media/usb[0-7] and it will be unmounted when disconnected.


How to disable mouse scrolltabs ubuntu chrome

There is extension to chrome called Chrome Toolbox that does just that. Use it myself.

Chrome Toolbox


What about running this in terminal:

avconv -f video4linux2 -r 26 -i /dev/video0 -i /dev/video1 out0.avi out1.avi


There's no easy way to downgrade tk to 8.5 on 14.04, even if you install tk8.5.

This method is not recommended as it's basically installing the 13.10 packages version on a 14.04 system.

First of all, to restore your system, the command to use will be:

sudo apt-get install blt python-tk

Now to downgrade to tk8.5:

Install tk8.5:

sudo apt-get install tk8.5

Download the following debian packages from the 13.10 repo (amd64 in this example but you can choose the i386 for a 32bit system):

blt
python-tk

Open a terminal where you downloaded the two .deb files and type:

sudo dpkg -i blt_2.4z-7_amd64.deb python-tk_2.7.4-0ubuntu1_amd64.deb

Now to check if the right version is available to your python interpreter:

$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
>>> Tkinter.TkVersion
8.5
>>> import platform
>>> platform.release()
'3.13.0-36-generic'
>>>


“Carrier lost” could mean many things. Perhaps the router is set to only grant DHCP leases for 24 hours. In many cases, Network Manager will reconnect automatically but, in a few cases, fails.

It could indicate that the router is set to use auto channel selection and changed channels looking for a better connection. In quite a few cases, with Network Manager and native Linux drivers, NM doesn’t see the new channel immediately and simply drops. Here is some very interesting information about this: https://superuser.com/questions/1311149/why-do-wifi-routers-do-such-a-bad-job-of-channel-selection

For these reasons, I suggest that routers be set to WPA2-AES, sometimes known as CCMP and a fixed channel, either 1, 6 or 11.

Perhaps as bad is auto selection between the 2.4 gHz and 5 gHz segments of the router. I recommend that they be renamed separately, something like myrouter_2.4 and myrouter_5 or some such. As well, I recommend that the channel in the 5 gHz segment be fixed.

I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

After you have set your country code, see if your 5 gHz is subject to DFS: https://en.wikipedia.org/wiki/Channel_allocation_schemes#DFS

sudo iw reg get

Here is a sample from my machine:

country US: DFS-FCC
    (2402 - 2472 @ 40), (N/A, 30), (N/A)
    (5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
    (5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
    (5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
    (5735 - 5835 @ 80), (N/A, 30), (N/A)
    (57240 - 63720 @ 2160), (N/A, 40), (N/A)

As you can see, DFS (“We reserve the right to switch the channel at any time.”) is in effect for channels above 48 and below 149. Therefore, I recommend a channel outside that range. I use 149.

The exact reason that the carrier was lost is not available from the limited data in the log. All I can suggest is to try to eliminate every possible reason it may have occurred and see if the problem is resolved.


Where does gedit store the last cursor position?

Thanks to the answers/comments above, I now know that the gedit position is saved in the GNOME Virtual File System. In particular, it is in the file ~/.local/share/gvfs-metadata/home.

There are a bunch of command line tools for working with gvfs.

gvfs-cat            gvfs-mkdir          gvfs-rename
gvfs-copy           gvfs-monitor-dir    gvfs-rm
gvfs-info           gvfs-monitor-file   gvfs-save
gvfs-less           gvfs-mount          gvfs-set-attribute
gvfs-ls             gvfs-move           gvfs-trash
gvfs-mime           gvfs-open           gvfs-tree

The gedit position can be seen with:

gvfs-info FILENAME | grep metadata::gedit-position

It can be changed like this:

gvfs-set-attribute FILENAME metadata::gedit-position 42


Cannot connect to MySQL database after upgrade to version 8.0

The SQL v8.0 has changed the authentification protocol:
On v8.0 it's using a caching_sha2_password.
Before it was mysql_native_password.

To create new user on previous version it was:

GRANT ALL PRIVILEGES ON *.* TO 'rootV5'@'localhost' WITH GRANT OPTION;

To create new user on v8.0 running this commands below (replace root and password by you're own of course !) :

CREATE USER 'rootV8'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'rootV8'@'%' WITH GRANT OPTION;

To change the password encryption from old version user:

ALTER USER 'user'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'password';

I hope you fix your problem with that :)


Is it possible to dual-boot with each OS on different drives?

Well you installed in right order, Windows first.  Does sudo update-grub not detect Windows partition?  I'm not really sure of all this new EFI stuff, but would recommend grub-customizer:

https://launchpad.net/grub-customizer/

Your BIOS may have the option to choose which disk to boot first, if you have trouble, you can always use EasyBCD from within Windows to tweak your Windows loader:

http://neosmart.net/download.php?id=1

You can either have two boot loaders installed, one for each physical disk, this has some redundancy, or choose just the one.  Hopefully those tools will help you & whip your laptop into some kinda shape!


What I did was create a directory called Thunderbolt in my home folder. Then for the executables I wanted, I ran ldd and copied the needed libraries and the actual executable into my Thunderbolt directory, like

$ ldd /bin/bash
    linux-gate.so.1 =>  (0xb7781000)
    libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xb7743000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb773e000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7593000)
    /lib/ld-linux.so.2 (0xb7782000)

For Java itself, along with copying the needed libraries, I used mount --bind to bind the Java home directory (/usr/lib/jvm/java-7-openjdk-i386/):

$ mount --bind -o ro /usr/lib/jvm/java-7-openjdk-i386/ sys/java/

To run the chroot, I created a script called thunderbolt that called .profile (which set up the environment) than ran my Java app (/sys/Thunderbolt.sys is a Jar file, I just changed the extension):

source /.profile
/sys/java/bin/java -jar /sys/Thunderbolt.sys Files

To run the chroot, I used the following command

sudo chroot /home/mspencer/Thunderbolt /bin/bash /thunderbolt

NOTE: This doesn't work perfectly yet, I'm getting this warning whenever I run Java: OpenJDK Server VM warning: Can't detect initial thread stack location - find_vma failed


What do the different colors mean in ls?

Blue: Directory
Green: Executable or recognized data file
Cyan (Sky Blue): Symbolic link file
Yellow with black background: Device
Magenta (Pink): Graphic image file
Red: Archive file
Red with black background: Broken link

For your information:

To turn the color off, you have to comment out the following lines in .bashrc.
# enable color support of ls and also add handy aliases
#if [ -x /usr/bin/dircolors ]; then
#    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
#    alias ls='ls --color=auto'
#    #alias dir='dir --color=auto'
#    #alias vdir='vdir --color=auto'
#
#    alias grep='grep --color=auto'
#    alias fgrep='fgrep --color=auto'
#    alias egrep='egrep --color=auto'
#fi

Also if you want to see your own bash color meanings,then copy/paste the following codes in your terminal.
eval $(echo "no:global default;fi:normal file;di:directory;ln:symbolic link;pi:named pipe;so:socket;do:door;bd:block device;cd:character device;or:orphan symlink;mi:missing file;su:set uid;sg:set gid;tw:sticky other writable;ow:other writable;st:sticky;ex:executable;"|sed -e 's/:/="/g; s/\;/"\n/g')
{
  IFS=:
  for i in $LS_COLORS
  do
    echo -e "\e[${i#*=}m$( x=${i%=*}; [ "${!x}" ] && echo "${!x}" || echo "$x" )\e[m"
  done
}

Output:

Note:

For more information, type man dir_colors in terminal.


Many ways:

Exit the current shell, the one you started with bash -r:

exit

Just open a new terminal
Start a new bash session

bash


How to automatically start tmux when opening gnome-terminal

Method involving a change to .bashrc
The most simple approach probably involves adding the tmux command to your .bashrc, so it automatically gets executed whatever way you start the terminal. As suggested in the Arch wiki, one can add the following lines of code in .bashrc:
# If not running interactively, do not do anything
[[ $- != *i* ]] && return
# Otherwise start tmux
[[ -z "$TMUX" ]] && exec tmux

Method that involves changing launchers and hotkey
This method involves changing the launchers (.desktop files) for the terminal. This will not affect the hotkeys because these directly refer to the executables, so also the why hotkeys are setup needs to be changed.

In the .desktop file, specify "tmux" on the Exec= line. Add (or edit) a line to say Terminal=true.

For changing the Ctrl + Alt + T key combination, go to Settings - Keyboard. Disable the existing hotkey for Launch Terminal (click the line "Launch Terminal", then when the dialog appears, hit backspace, then click "Set"). Now create your custom hotkey. At the bottom of the list, hit +. Provide a name (e.g. "Launch terminal") and the command: gnome-terminal -- tmux. Finally, set the hotkey. Alternatively, you could install the utility dex, available in Universe. Then the hotkey can be set up to launch the modified .desktop file with a command `dex .


Please try installing via pip:

sudo apt-get install python3-pip
sudo pip3 install parsero


I can't seem to change the font rendering setting?

You can try gnome-tweak-tool, it seems to have an option for that.


By the looks of it (and there's no much to look at so I could be wrong) you're on a Nvidia system using the xorg-edgers PPA.

Even if you're not on that PPA, it seems possible that you've updated the Nvidia graphics driver recently and haven't yet rebooted. When you update the driver module it isn't automatically reloaded into the kernel. To do that you would need to shut down X, rmmod and modprobe for it (and in my experience that doesn't even work for the deb-installed Nvidia driver, only the manual install.

The fix is really simple though. Restart the computer.
Your computer should load the new copy of the Nvidia module on boot and then everything 3D should just work™ again.

As this is a Bumblebee-using computer, it might be enough to close anything using 3D then run:

sudo rmmod nvidia
sudo modprobe nvidia

But as I say, this doesn't work on normal computers with the deb installer for the driver. Not sure why but it's worth a shot. Otherwise: reboot.

This might actually be far more TBP-related than I originally thought. Here is a support thread suggesting that something needs renaming.

I think the suggestion involves editing /etc/bumblebee/bumblebee.conf so that
KernelDriver=nvidia-current and then running sudo restart bumblebeed to restart bumblebee.


could not install pci config handler for root bridge pci0

It turned out my SSD is broken, so probably nothing to do with Ubuntu. Lenovo will send me a new one under warranty.


Xubuntu 16.04: fstab won't mount "/root" entry

As a general rule, it's inadvisable (at best) to make /root a separate partition from the root (/) filesystem. The reason is that this is the root user's home directory, and it's critical that this location remain accessible even in the event of a severe problem, such as damage to the /etc/fstab file.

I don't know if that's related to your problem, but it might be -- it's conceivable that there's something in the Ubuntu startup or shutdown procedure that's interacting badly with use of a separate /root partition. Certainly use of a separate /root partition is so rare that this case would get absolutely no testing by Ubuntu's developers.

I recommend you reconsider this practice. Given Ubuntu's security model, /root probably contains few or no files, aside from boilerplate account files. If you're storing anything there (especially anything big enough to warrant creating a separate partition for those files), it could be another location would be more sensible.


Asterisk tries to delete ubuntu-desktop when installing

This just happened to me last night, it seems like the best way to prevent this is to run
apt-get update and apt-get upgrade BEFORE running the install_prereq script.

In my case I think it removed my network manager, because attempts to re-install removed packages gave me errors.  It may be possible to re-install from the apt-get cache, but I will be using my original install CD to repair.

Similar issues have been logged:
contrib/scripts/install_prereq can remove ssh daemon on ubuntu
network-manager uninstalled on ubuntu desktop 14.04


Does an onboard video affect the X windows configuration?

Can't you just enable the screen in nvidia X server settings?

Simply run nvidia-settings from the command line and then in the X Server Display Configuration panel where you see your screens, select the disabled screen and click on the configuration dropdown to select TwinView.

I attached a screenshot of my configuration (so it doesn't match yours, but at least we'll be sure we're talking about the same thing :) ).


How to disable mouse wheel scrolling with xinput?

Remove libinput by

sudo apt remove 'xserver-xorg-input-libinput.*'

The mouse will be handled by evdev and all former solutions will work.


In your configuration file, you have the template defined:
$template FILENAME,"/var/log/%fromhost-ip%/syslog.log"

When logging all facilities to that template, you are explicitly telling rsyslog to log everything to the file syslog.log. You need to set up seperate facility names for each application you want, ie. on, localhost, define http output as local7, and then on loghost, define a template like:

$template http,"/var/log/$fromhost-ip%/http.log"
local7.* ?http


After waiting for some time, wxwidgets has posted a little tutorial on how to install the latest version. As of this writing, the latest is v3.1.0. The tutorial can be found here:
http://codelite.org/LiteEditor/WxWidgets31Binaries#toc2

In a terminal, do something like:
sudo apt-add-repository 'deb http://repos.codelite.org/wx3.1.0/ubuntu/ artful universe'

For artful, substitute your distribution, such as xenial for ubuntu 16.04.
sudo apt-get update
sudo apt-get install libwxbase3.1-0-unofficial \
                     libwxbase3.1-dev \
                     libwxgtk3.1-0-unofficial \
                     libwxgtk3.1-dev \
                     wx3.1-headers \
                     wx-common \
                     libwxgtk-webview3.1-0-unofficial \
                     libwxgtk-webview3.1-dev \
                     libwxgtk-media3.1-0-unofficial \
                     libwxgtk-media3.1-dev \
                     libwxbase3.1-0-unofficial-dbg \
                     libwxgtk3.1-0-unofficial-dbg \
                     libwxgtk-webview3.1-0-unofficial-dbg \
                     libwxgtk-media3.1-0-unofficial-dbg \
                     wx3.1-i18n \
                     wx3.1-examples
wx-common and wx3.1-i18n are optional packages and will conflict with the distro's wx2.8 equivalents. That is unlikely to matter too much, but wx-common contains wxrc, so if you use this be aware that there may be differences after upgrading.

Edit:
For a one line command:
sudo apt-get install libwxbase3.1-0-unofficial && sudo apt-get install libwxbase3.1-dev && sudo apt-get install libwxgtk3.1-0-unofficial && sudo apt-get install libwxgtk3.1-dev && sudo apt-get install wx3.1-headers && sudo apt-get install wx-common && sudo apt-get install libwxgtk-webview3.1-0-unofficial && sudo apt-get install libwxgtk-webview3.1-dev && sudo apt-get install libwxgtk-media3.1-0-unofficial && sudo apt-get install libwxgtk-media3.1-dev && sudo apt-get install libwxbase3.1-0-unofficial-dbg && sudo apt-get install libwxgtk-webview3.1-0-unofficial-dbg && sudo apt-get install libwxgtk-media3.1-0-unofficial-dbg && sudo apt-get install wx3.1-i18n && sudo apt-get install wx3.1-examples


No free diskspace warning while using transactional updates

As this is just a warning, it can be ignored. However if it's annoying you can suppress it in the webmin theme.

There's a suggestion on this github issue.

Which suggests adding the following to the themes extension:-

$(function() {
     $('div.alert:contains("filesystem mounted")').remove();
});


You need to use sudo to run apt-get.  You can install the mysql client with:

sudo apt-get update
sudo apt-get install mysql-client


Why does Software Center report qt4 as unmet dependency, when I already have qt5 installed?

No
you have to install qt4 libs for running qt4 programs, qt5 is not 100% backward compatable with qt4


Which Ubuntu version is best for my old heap Intel Celeron 540 @ 1.86 Ghz with 2 GB RAM

I suggest that you try the version 16.04.1 LTS, architecture 32-bit alias i386 and the flavours

Lubuntu with the ultra light desktop environment LXDE (first choice)
Xubuntu with the medium light desktop environment XFCE
Ubuntu MATE with the medium light desktop environment MATE

Try them live (booted from a USB pendrive or a DVD disk) before deciding what works best for you. See this link,

Try Ubuntu (Kubuntu, Lubuntu, Xubuntu, ...) before installing it


How to remove all images from a ppt files?

Using *office is not always an useful way to manipulate a PowerPoint file directly.
PROGRAMMATIC SOLUTIONS
I assume that you do not want a programmatic solution.  If you did, you might consider using Apache Poi, which provides Java libraries for manipulation of Microsoft Office files.
MANIPULATING AN IMPRESS BINARY

To use a *office, product, what you need to do is open the *.ppt (or *.pptx) in and save it as an ODF Presentation (*.odp).

Using a Zip utility, you can open A COPY OF THE *.odp and look for an images subdirectory.  (There may be more than one.)

You can delete them wholesale or selectively delete the ones that are obviously the high-resolution ones.

Close the modified Zip, rename back to *.odp if necessary, and re-open it in *office Impress.  You may receive warnings about the document being damaged.  Let the software attempt to recover the damage.  You should have something that doesn't have the images any longer.

USING SKYDRIVE ON-LINE POWERPOINT TO MODIFY THE DOCUMENT
If your problem is that *office Impress won't open the *.ppt/*.pptx in the first place, or the *.odp modification doesn't work, you will need to find a way to delete the images using Microsoft PowerPoint software.  One way is to get a Skydrive account (requires a Windows Live ID), upload the PPT file there, and edit it on-line using your browser. This is also a general way to view a *.ppt/*.pptx file when you don't have Microsoft Office software.  Not all features of PowerPoint are preserved in the SkyDrive editor; you should be able to make the changes you want.


Connection problems with AC600 (aka A6100) Netgear wifi dongle

First, your file /etc/network/interfaces is malformed. It may be the reason that the internal device doesn't work correctly. In any event, I suggest that you correct it. From a terminal:

sudo gedit /etc/network/interfaces

Use nano or kate or leafpad if you don't have the text editor gedit. Change the file to read:

auto lo
iface lo inet loopback

Proofread carefully, save and close the text editor.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

If you do not wish to use the internal device, I suggest you blacklist its driver:

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

Reboot and let us know if connectivity has improved.


HP Truevision webcam not working in 12.10

Try booting to an older kernel. On a number of webcams, all the kernels after 3.5.0-23 had this problem.

Solution is posted here: integrated webcam issues lenovo t430u ubuntu 12.10

Also accounted for here: 12.10: Webcam stopped working after update

If this is the problem then please add your name to bug report.


Package network-manager-openvpn is not available, but is referred to by another package

network-manager-openvpn is in universe, which isn't included on the live image by default. But you can still temporarily install it in the live environment. Assuming that you're using 12.10, add this line to your /etc/apt/sources.list:

deb http://archive.ubuntu.com/ubuntu quantal universe

Then run sudo apt-get update, and try sudo apt-get install network-manager-openvpn again.

I'm not sure if you need to restart Network Manager after installing. If so, sudo restart network-manager should work.


Dual booting Windows 10 and Ubuntu (UEFI mode) on a blank HDD.

How to create a Windows boot medium is a topic best addressed on a Windows forum, not here. That said, I'd use FAT, not NTFS, and I'd try using Unetbootin for the job, or copy files manually from the UDF side of the .iso image file. (Most Linux tools will mount the ISO-9660 side, which in the case of a Windows disc, contains a text file with a message to the effect that it should be mounted with UDF.)

If your goal is an EFI-mode boot of both OSes, you should disable the Compatibility Support Module (CSM; aka "legacy boot support" or a similar phrase) in your firmware. The CSM provides BIOS-mode boot compatibility, and as your computer came with FreeDOS (which, AFAIK, boots only in BIOS mode), it's probably active. See this page of mine for more on this subject. Note, however, that if you intend to keep FreeDOS in a triple-boot, your best bet is probably to do a BIOS-mode install of all three OSes; I'm assuming you want to ditch FreeDOS entirely, or at most boot it in a virtual machine.

Once Windows is installed, there are hundreds of tutorials for installing Ubuntu. The trouble is that many are poor. One litmus test: If a tutorial tells you to activate the CSM, move on to the next page. (An exception is if this advice applies to certain special cases.)

Here's some more reading for you, including a couple that will help with Ubuntu installation:

Adam Williamson's blog entry on how EFI works -- This page describes the theory behind EFI-mode booting.
My page on installing Linux on EFI systems -- This page is a more practical introduction to EFI-mode booting than the preceding one.
The Ubuntu community wiki entry on UEFI -- This page is a bit disjointed, but is the most Ubuntu-specific introduction to EFI and its issues.


Found this information on the wiki:

  How do I resize the virtual disks?

  You can use LVPM, at http://lubi.sourceforge.net/lvpm.html

  As an alternative, you can use the following script to move /home to a dedicated virtual disk.

  Download wubi-add-virtual-disk, open a terminal and run:

sudo sh wubi-add-virtual-disk /home 15000

  Where the first argument is the directory to move to a new dedicated disk, and the second argument is the size in MB.

  You should now reboot. If you are happy with the result, you can now remove /home.backup. To undo the changes remove /home, copy rename /home.backup to /home and remove the /home line in /etc/fstab.

  Note that contrary to previous information, this script is not suitable for moving /usr - experienced users may be able to do this manually, at own risk, following a process similar to that outlined in the file. (Do not rename /usr until the very last moment, as rsync is installed there.)

So, essentially you do need to create a new disk, move your data over to it (it seems like this script might do that for you, but I'm not completely sure) and then remove the backup image when you're satisfied.


Type 'Debb' is not known on line 1 in source list

I think there might be a typo in your /etc/apt/sources.list.d/google.list file.

Look into line 1 of that file carefully, Debb could be a typo of deb

Or you can follow the Google Linux Software Repositories page to do command-line installation, or even download the .deb file directly.

But no matter what, don't forget to fix this issue since it will interfere apt, remove the list you created could also do the trick.


No, it is not possible to hide the Ubuntu Software reviews and star ratings, unless you would edit the source code and recompile the application.


Script used to run `run-parts` for portmapping using Java program upon failover doesn't work

Basically what you want is to change the port mapping through run-parts each time the interface in use changes avoiding to run run-parts if the interface in use didn't change since the last time run-parts was run.

You'll need to store the last interface in use's status somewhere and each time the script is run compare the current interface in use against that somehow; this script does that (it updates the current interface in use in /opt/mapper/prevdev each time a change takes place):

#!/bin/sh
eth0_status=$(cat /sys/class/net/eth0/operstate)
wlan0_status=$(cat /sys/class/net/wlan0/operstate)
touch /opt/portmapper/prevdev # Creates /opt/portmapper/prevdev if it doesn't exist
prevdev=$(cat /opt/portmapper/prevdev)
if [ "$eth0_status" = "up" ] && [ "$wlan0_status" = "down" ]; then # We're currently on Ethernet
    currdev=eth0
fi
if [ "$eth0_status" = "down" ] && [ "$wlan0_status" = "up" ]; then # We're currently on WiFi
    currdev=wlan0
fi
if [ "$currdev" != "$prevdev" ]; then # The interface in use has changed since the last time we checked
    if [ "$currdev" = "eth0" ]; then # We're currently on Ethernet
        run-parts /opt/portmapper/30
        echo 'Current device and portmappings are on Ethernet'
        echo 'eth0' >/opt/portmapper/prevdev # Updates /opt/mapper/prevdev
    else # We're currently on WiFi
        run-parts /opt/portmapper/31
        echo 'Current device and portmappings are on WiFi'
        echo 'wlan0' >/opt/portmapper/prevdev # Updates /opt/mapper/prevdev
    fi
else
    echo 'No changes need to be made to port mappings'
fi


Does

http://domain.com/backup.zip

when put into a web browser give you a download in progress?

HTTP Error 503 - Service unavailable
Introduction

The Web server (running the Web site) is currently unable to handle the HTTP request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. Some servers in this state may also simply refuse the socket connection, in which case a different error may be generated because the socket creation timed out.

Fixing 503 errors

The Web server is effectively 'closed for repair'. It is still functioning minimally because it can at least respond with a 503 status code, but full service is impossible i.e. the Web site is simply unavailable. There are a myriad possible reasons for this, but generally it is because of some human intervention by the operators of the Web server machine. You can usually expect that someone is working on the problem, and normal service will resume as soon as possible.

Please contact the system operators of the Web site (e.g. your ISP) to determine why the service is down. They will be in a much better position to help you than we are for this type of error.


nordvpn: command not found on ubuntu 20.04

For some reason .deb package is not working. I resolved this issue by following these steps:
cd Downloads/
wget -qnc https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb

sudo dpkg -i ~/Downloads/nordvpn-release_1.0.0_all.deb

And then
sudo apt update
sudo apt install nordvpn

Now

nordvpn connect

works!


Frankly, this is a job for variables:

pandaPictures=~/Documents/SectionA/Sub-folder65/SectionF-2
cp "$pandaPictures"/pic1.png ~/Pictures
cd "$pandaPictures"
cd "$pandaPictures"/Specials

Or:

safePandaImages=PandaImages/2016/Sector7
cp ~/Documents/Images/"$safePandaImages"/panda.jpg ~/Pictures
cd ~/Pictures/Photos/Images/Wallpaper/"$safePandaImages"

Bash isn't smart enough to complete with the contents of variables, but zsh can:

$ foo=/usr
$ cp $foo/  # press Tab
bin/      include/  lib/      lib32/    lib64@    local/    sbin@     share/    src/

With bash, you can first get it to expand every variable, alias, command substitution, etc., using CtrlAltE and then use tab completion:

$ foo=/usr
$ cp $foo # press Ctrl-Alt-E
$ cp /usr

All that said, if you're doing this regularly, script it. Make a script. Add it to crontab. Forget it.


You should at least be able to fall back into a shell with Ctrl+Alt+F2, or perhaps with a grub command (you'd have to google that). If you can't, this might not be worth pursuing.

I think that what you would have to do is to use a live-USB to chroot into the system, then start repairing the system.

For information on how to use chroot I would look at the Arch-Wiki.

If you do get into a shell and you simply need to rectify having removed Xorg, you would have to reinstall that, obviously, and I'm not sure if you would also have to reinstall GDM and Gnome3.

Those links will walk through how to install it all, but in all honesty, having been through this stuff before, it's almost always quicker to just wipe and reinstall. I know that sounds drastic, but it takes like 20 minutes of zero effort to reinstall, particularly with a fast internet connection.

I personally try to have my partitions set up so that I can reinstall at the drop of a hat with no data loss, because I simply don't have the time to try and fix my OS, which usually seems like it will take 5 minutes but takes 5 hours :/ .


How can I use gsettings to configure settings with relocatable schemas?

You need to specify the path to the key where the setting is actually stored. For example example, for this key, you need to use the /org/compiz/profiles/unity/plugins/unityshell/ path when running the command, like so:

#: gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ dash-blur-experimental 1

Note that the path must end with a / character, when passed in for relocatable schemas.


Stop Distribution Upgrade Message Globally

You need to edit /etc/update-manager/release-upgrades and set prompt to never.  As this is just a text file, it should be trivial if you have other configuration management going on.

EDIT:
That worked on one of my boxes, but not the other.  sudo apt-get remove update-manager-core simply removed the update check functionality.  Again, this should be something you can do if you are making release images for your environment.


Android Media sync LG Optimus L7 (P705) with ubuntu 12.04 LTS

MTP doesn't work out of the box on linux. Inorder to transfer files to your phone's external_card you will have to change the usb connection mode on your phone to MSC(Mass Storage Mode).

If you want to access your phone storage and external_card on Linux then all you need is Airdroid.


WSL Ubuntu Distro | How to solve `Operation not permitted` on cloning repository

I had the same issue. Try this:

sudo umount /mnt/c
sudo mount -t drvfs C: /mnt/c -o metadata

Change the drive letter to whatever one you're having the issue with.


Run in a terminal

sudo tee /etc/modprobe.d/blacklist-ideapad.conf <<< "blacklist ideapad_laptop"

and reboot.

That should fix the hard block.


Change Ownership of External Hard Drive?

Just reformat it by using Disk Utility from the dash


How to solve "dpkg: error processing archive /var/cache/apt/archives/libvdpau1_1.1.1-3ubuntu1_amd64.deb"

-Remove the vdpau_wrapper.cfg file & do the force install

sudo rm -rf /etc/vdpau_wrapper.cfg

sudo apt-get install -f


Making Firefox developer edition the default browser for Ubuntu 20.04

The simplest solution would probably be to do this through the terminal, as it will list each installed browser and give you the option to set one as default.
In your terminal, type:
sudo update-alternatives --config x-www-browser

You'll see a list like this:
There are 3 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).

  Selection    Path                           Priority   Status
------------------------------------------------------------
  0            /usr/bin/google-chrome-stable   200       auto mode
  1            /usr/bin/firefox                40        manual mode
  2            /usr/bin/google-chrome-stable   200       manual mode
* 3            /usr/bin/microsoft-edge-dev     0         manual mode

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

Choose the item you want to be set as the default.


You can put it into /etc/default/grub. To open the file for editing, run

gksudo gedit /etc/default/grub

locate the following line and put xforcevesa between the quotes:

GRUB_CMDLINE_LINUX_DEFAULT="xforcevesa"

save and exit when done, then run the following for the change to take effect

sudo update-grub


SMPlayer 17.12.0 has no sound with any output driver

Turns out it is totally different to the SMPlayer has no sound with any output driver question. In my case I was using an internal pan audio filter like this (custom arguments for mpv):

--af=pan=6:[1,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,1,0,0,0,1,0,0,1]

But the internal pan audio filter was removed and now is used an external one which has totally different syntax - https://ffmpeg.org/ffmpeg-filters.html#pan-1. After removing custom arguments for mpv sound is working, now I have to rewrite it to new syntax.


The ddrescue is terminal only application, so it runs from terminal.
You can consult with its help by ddrescue --help, info ddrescue, man ddrescue or by viewing its HTML documentation in /usr/share/doc/gddrescue/html/index.html to know how to use it.
If you want to get GUI for it - use packages from PPA:
sudo add-apt-repository ppa:hamishmb/myppa
sudo apt-get update
sudo apt-get install ddrescue-gui

then launch it from menu.


Why does the Openstack Autopilot require two disks on each node?

Why does Ceph require two disks?

In the words of Mark Shuttleworth:

  Ceph wants to keep track of the whole
  disk, literally, with the ability to format it and determine labels etc.
  This is so you can rip the disk out of one machine, stick it in another,
  and Ceph will see it, remember it, find all the data on it, as if
  nothing had changed.

source

Is it possible to do it on one disk?

Ceph can be configured to use a directory as opposed to the whole drive. However this is not recommended and, for that reason, not supported in autopilot.

Thanks to 0xF2 for the explanation.


Just changed from Unity to KDE, now my sidebar is gone

You mean the toolbar on the left side of Unity is not there? Isn't that how a regular desktop like KDE is supposed to look?

You should be able to add or move a bar to the left side if you prefer, or use a program like docky or cairo-dock to add a fancy unity-like (mac-like) dock / menu to whichever side you wish. (I liked docky, but really prefer a regular old-fashioned desktop with a "programs" menu without a "dock")

FYI, here's a decent looking How To Install Programs question: How do I install applications in Ubuntu?

And a nice quick overview of different desktops, with some install info: What kinds of desktop environments and shells are available?

An excellent way to try out new desktops is to use the live iso's, either on a cd/dvd/usb (cd-rw or dvd-rw to just try briefly), or boot them in VirtualBox or another VM (little slower than "for real"). There's iso's for Xubuntu, Lubuntu, Kubuntu, and the Mint iso's use Cinnamon (like customized gnome 3) or mate (gnome 2 fork?), or Mint xfce & others


Juju 1.25.x uses lxc 1 so you will be able to see those instances using lxc-ls --fancy. The command you're running lxc list is using lxd which is used by Juju 2.x.

You can get Juju 2 by following the instructions here: https://jujucharms.com/docs/stable/getting-started-general


USB flash drives being mounted read-only in 13.10

This may not answer the problem in the question, but this question is one of the top search results for "ubuntu usb stick mounting read-only".  If you're stumbling across this question in your search for answers, hopefully the following helps.  This is what solved my own problem.

It's possible your USB stick(s) may in fact be corrupted.  Assuming the stick uses the FAT file system, follow this guide.

How to fix read only USB pen drive in Ubuntu

Summary:

Identify the mounted USB drive by running df -Th.

Example output:

Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/sda5      ext4       28G   25G  1.3G  96% /
udev           devtmpfs  2.0G  4.0K  2.0G   1% /dev
tmpfs          tmpfs     796M  1.1M  795M   1% /run
....
/dev/sdd1      vfat       15G   12G  3.6G  77% /media/linux/C38C-099C

Unmount the affected drive using sudo umount <mount path>.

Example: sudo umount /media/linux/C38C-099C

Repair the drive by running sudo dosfsck -a <filesystem path>.

Example: sudo dosfsck -a /dev/sdd1.

Safely remove the USB stick and reinsert.


How do I copy files outside my home directory?

How to recover files outside your home folder

Open a terminal with Ctrl+Alt+t.

Lets say you have a copied /var/www/html/index.php to your USB-drive and want to copy it back. Before we copy it back and erase the current file we need to have a look who is the current file owner, to which group belongs the file and what permissions it has.

madmike@computer:~$ ls -al /var/www/html/index.php
-rw-rw-r-- 1 www-data www-data 182 Jan 21  2014 /var/www/html/index.php

The -rw-rw-r-- are the read, write and execution rights of the file. The very first character indicates if this a directory (those are marked with "d") or a file (marked with "-"). The next 3 characters are those for the owner. "rw-" means "read rights and writing rights, but no no execution right". The next 3 characters are those for the group and which are the same now. And then the last 3 character for all the other users "r--" meaning "only read rights". The file belongs to the user "www-data" on to the group "www-data".

To be on the save side, you might first want to move the original file away. You will need administrative rights to do this. That's why we will need to do it with sudo.

madmike@computer:~$ sudo mv /var/www/html/index.php /var/www/html/index.php.old

Now copy the file from the USB-drive.

madmike@computer:~$ sudo cp /media/madmike/usb-drive-name-here/backup-folder/index.php /var/www/html/index.php

Let's see what permissions this file now has:

madmike@computer:~$ ls -al /var/www/html/index.php
-rw-r--r-- 1 root root 182 Oct 18 13:17 /var/www/html/index.php

Now the owner and group is "root" and the group rights have changed from "rw-" to "r--". Let's fix this.

madmike@computer:~$ sudo chown www-data:www-data
madmike@computer:~$ ls -al /var/www/html/index.php
-rw-r--r-- 1 www-data www-data 182 Oct 18 13:19 /var/www/html/index.php

Ownership is fixed. Now the permissions.

madmike@computer:~$ sudo chmod ug=rw,o=r /var/www/html/index.php
madmike@computer:~$ ls -al /var/www/html/index.php
-rw-rw-r-- 1 www-data www-data 182 Oct 18 13:21 /var/www/html/index.php

Voilà. Everything is fixed. You may delete the copy now.

madmike@computer:~$ sudo rm /var/www/html/index.php.old

This page will show you some more examples on how you can use chmod. If you need an exhaustive list of all possibilities, then have a look at the man page. Issue this command in the terminal

madmike@computer:~$ man chmod


Why does Wine crash when trying to install the VMware vSphere client?

vSphere Client is known to be incompatible with Wine.
This VMware KnowledgeBase article advises using the web version of the client instead, which is somewhat limited, and discusses the differences.
Unfortunately, the only practical way of running the Client on Ubuntu appears to be inside a Windows virtual machine.


use gparted (as stated by @bodhi.zazen) to shrink your existing partition; then create the new partitions with newly-created available space.

the reason for using it 'live' is simplicity; its far safer to modify a partition whilst its not being used (your running ubuntu may have gparted installed; but the fs will be mounted; so a lot needs to be done to get it available-for-shrink. far easier, faster & safer to boot a live ubuntu (or other distro) & run gparted from usb|cd|dvd|..


Where are the daily builds for Chromium for 12.04?

Following up on @SirCharlo's comment. It seems that of the four chromium channels the only ones with a Precise Pangolin build as of this writing are the Stable and Beta ones.

So you can remove the ppa you already added as using the rm above.

sudo rm /etc/apt/sources.list.d/*chromium*

Alternately, you can use ppa-purge or the
Y PPA Manager  gui, double clicking on "Remove a PPA."

Then install one of the available channel's builds. So to get the one from beta:

sudo add-apt-repository ppa:chromium-daily/beta
sudo apt-get update
sudo apt-get install chromium-browser

I guess this will do until the Precise builds are available for more bleeding edge dev/daily channels again. At least there's no "failed to fetch" error and it gets updated periodically.


What happens in bcache if the cache ssd dies?

According to kernel.orgs documentation and my research, by default, it's only using the bcache as a reading cache. So writing will not be faster, as it always writes to the slower magnetic discs.
So as there is only a copy of often-read data, you won't loose any data, if you remove the ssd.
If you enable writeback:
echo writeback > /sys/block/bcache0/cache_mode

you will lose data, if the ssd fails, as it firstly writes the data to the fast ssd, and then move it to the harddrives.
As always - a backup is neccessary if the data is important to you.


Failed to download repository information. Error?

First, try out these couple of commands from the terminal:

apt-get autoclean
apt-get clean
apt-get autoremove

Open system settings (from terminal you may enter:)

gnome-control-center

Now click on Software Sources and under the Ubuntu Software tab, make sure every thing's checked and change the Download from: list control to Main Server. Now you may try out downloading your apps again. (This worked for me before! In some rare cases a restart might help too.)


xbacklight is a command line utility for adjusting brightness and may help you.
Install it using the command:

sudo apt-get install xbacklight

and adjust your brightness to using below command:

xbacklight -set percentage brightness
example(for 50% brightness): xbacklight -set 50


Pulseaudio resets volume control to 100% -- doesn't save volume

Someone suggested that I run the command as part of the Startup Preferences (which I didn't know existed.)

Launch the "Startup Applications" and ADD a new Startup Program.

I called it "Set PulseAudio volume" and inserted the pacmd set-sink-volume 0 xxxxx line in the "Command" section.

Done. It works! :)


"read" command waiting for additional newline if input comes through pipe

It doesn't have anything to do with the newline.

If you run your command using strace, you will find out that the cat will receives a SIGPIPE at the end, before being closed:

$ strace cat | read

...
someOutput
...
+++ killed by SIGPIPE +++

First cat command gets to run .
Then you type something in for the first time and hit the Enter.
What you have typed will be piped to the read.
cat is still running and waiting for a EOF.
You type something else and then hit the Enter agian.
This time, it can't be piped to read, because there is no read anymore waiting for input (it has been closed after first pipe) unless you run it like this:

cat | while read line; do echo $line; done;

cat will receives a SIGPIPE and gets closed.

  A process receives a SIGPIPE when it attempts to write to a pipe (named or not) or socket of type SOCK_STREAM that has no reader left. [1]

Receiving SIGPIPE happens after when second pipe happens.

For example consider yes command, because a command like yes pipes something fast and repeatedly:

yes | read

it gets closed immediately after the second pipe, pay attention to the two write() calls:

close(3)                                = 0
write(1, "y\ny\ny\ny\ny\ny\ny\ny\ny\n"..., 8192) = 8192
write(1, "y\ny\ny\ny\ny\ny\ny\ny\ny\n"..., 8192) = -1 EPIPE (Broken pipe)
--- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=3542, si_uid=1000} ---
+++ killed by SIGPIPE +++

Although, because yes command is too fast you might see more than of two write() calls, however if you run it several times you will see at least two calls and never one.


I'm trying to install a program (synergy) but it wont install

First go into the directory where the .deb file is located,

cd /path/to/the/directory/which/contains/synergy-1.4.15-Linux-i686.deb

Then run the above deb file installation command,

sudo dpkg -i synergy-1.4.15-Linux-i686.deb


I too have some strange issue with Kernel version 4.13.0-37 which came as update for Ubuntu 16.04. But removing kernel is not prescribed option.Because it also removes other important linux header packages when you run sudo apt autoremove.  This results in removing network-manager and many more.

I found possible solution is to edit Grub2 boot order.

https://help.ubuntu.com/community/Grub2/Setup#Configuring_GRUB_2

To change boot order of kernel edit (GRUB_DEFAULT=0)

gksudo gedit /etc/default/grub

the first index starts from 0. So set the value as

GRUB_DEFAULT="1>9"

for second menu (Advanced) and 10th kernel option

I hope this will fix the problem till you received new kernel update.


Do determine the status of Bluetooth subsytem you can do the following

Install needed bluez component:

sudo apt install bluez

Check that your hardware has Bluetooth functionality (on PCI and USB),  find adapter's serial:

lspci -k | grep -A3 -i "wireless\|network\|bluetooth"
lsusb | grep -i "bluetooth\|radio"
hcitool dev

Check that adapter is not blocked by rfkill and then unblock it:

sudo rfkill list all
sudo rfkill unblock all

Check the status of corresponding systemd service:

systemctl status bluetooth.service

And of course you can determine the model of your device (for example, laptop), and check Bluetooth existence here.


no window borders, can't see Unity, uninstall Mint skin

That looks like a window compositor problem, maybe it's a setting 'Don't show window borders.' or 'Don't show window title.'

Try the CompizConfig Settings Manager.
Is the 'Window Decoration' module enabled?
And restore the values, to the default settings.

When I switch that Window Decoration module off, I have the same windows as in your picture :-)


I think that this answer here can be useful to you. It should also solve the overheating problem with your video card driver.


Authentication error when trying to upgrade from 11.10 to 12.04

When trying to do any administrative task like installing an application or upgrading the system, you will always need to have administrative rights. This can be achieved in several ways, 2 of them are:

To actually BE the root user (Not recommended. Too much power in your hands. /godmode 1)
Prefix any command line with the command sudo.

In your case I recommend doing the second option. And to be sure, do a clean upgrade like this (This way you have less chance to come up with a bug while doing the upgrade, before it or after the upgrade).

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

After everything is done then execute the following:

sudo apt-get dist-upgrade

This way you can see if the system is ok before doing the version upgrade.


Why can't I purge apache2.2-bin and apache2.2-common?

Short answer: you need to purge the apache2 package as well as apache2.2-bin and apache2.2-common.

Explanation: this package is a "virtual package" - if you have it installed the system will make sure that one of apache2-mpm-event, apache2-mpm-itk or apache2-mpm-prefork or apache2-mpm-worker is installed. Note that these four packages themselves each depend apache2.2-bin and apache2.2-common.


Answered by OP in a comment

  After restarting the machine, the problem seems to have been solved.


DLNA on Ubuntu 1204 with gnome-classic icons in tray

I use rygel which works really well and can be run when you log in. It doesn't have an indicator or tray icon either though. Just copy the rygel.desktop file from /usr/share/applications/ to ~/.config/autostart to have it get run when you log in, after configuring it. It does have a GTK+ app for configuration, though.


You've got it over multi lines, but have the ;.

Your script should look like this:

#! /bin/bash

echo "Start folder create..."
find . -name "*.zip" | while read filename; do

  foldername="${filename%.*}"
  mkdir -p "$foldername"
  mv "$filename" "$foldername"
  echo "made directory $foldername"
done


Ubuntu 14.04 “could not find required OpenGL entry point 'glGetError'!"

OK! FINALLY. After hours and hours trying to figure out what is going on I got my steam fixed.

Follow these steps and you will be fine.
The reason is that steam is trying to use "mesa" drivers and not my ATI Radeon drivers.
Stupid steam.

Now:

First close steam.
Then open /etc/ld.so.conf.d/steam.conf for editing:

sudo nano /etc/ld.so.conf.d/steam.conf

In the editor add these two lines:

/usr/lib32
/usr/lib32/fglrx/

Finally run:

sudo ldconfig

Open Steam. Voila.

I rate if you wish to use the mesa drivers you just have to replace the last line with something like this:

/usr/lib/i386-linux-gnu/mesa

And sorry I don't know what the directories are for GeForce cards but go check in that /usr/lib32 folder for the driver folder for your card and update it where you can locate the libGL.so.1 file. this is what Steam is looking for.

Hope this helps someone else.

This was a fix on Ubuntu 14.04 64bit with Radeon drivers.


Bash shell scripting: how to detect Alt+N keystroke?

Download the following python module: showkey.py

Then create a python script (let's call it test.py):

#!/usr/bin/env python

from showkey import ShowKey

def alt_n(arg):
    print "Alt N was pressed"

sk = ShowKey()
sk.addKeyAction([49, 56], alt_n)    # adds handler for Alt-N comb.
sk.run()

Put showkey.py in your PYTHONPATH or put both test.py and showkey.py in the same folder.

Run your python script this way:

sudo ./test.py

The alt_n() callback will be triggered when the user hits the Alt + N combination. Adapt the handler content for your needs.

To know the keycodes (the same codes used by the showkey command) to use with showkey.py, just run it as a script again with sudo.
All keypress events will be printed in your terminal.

$ sudo ./showkey.py
Current terminal mode: OFF
Key pressed - keycode: 28
Key pressed - keycode: 56
[...]


Which version of Ubuntu for HP 250 G6 Celeron 4GB?

Your computer is capable of running all versions of Ubuntu.

I would recommed the Ubuntu 18.04 LTS standard version (min 25 GB disk drive, min 2GB RAM, min 2GHz CPU speed). You won't have too much problems but it's true that there are other Ubuntu flavours that will give you more free RAM for your own stuff (like Ubuntu MATE or Xubuntu).

Whatever you choose, always choose a supported version, with security updates, 18.04 versions are going to have support for at least 5 years, so it's a good option.


Acer Aspire V Nitro lagging while running on battery

You need to set you energysettings, which you can find in your systemsettings.

Set everything to no special settings

It may be called slightly different as I'm using a Dutch Distro.


check out this page:http://forums.linuxmint.com/viewtopic.php?f=18&t=124775  The interesting part is at the bottom.  His answer requires a live cd or usb of 13.04 for booting purposes and to run the fsck command on the drive in question.


The cleanest option to do is develop an AppImage.

https://wiki.qt.io/Deploying_a_Qt5_Application_Linux

  Creating a standalone application bundle

  Deploying a Qt5 application for Linux as a standalone bundle involves
  bundling it with the necessary Qt components that are needed for the
  application to run. These can be Qt libraries, Qt plugins, and
  especially the Qt platform plugin.

  A deployment tool is available that automates the prodecures described
  here and provide an AppImage

Link to deployment tool: https://github.com/probonopd/linuxdeployqt


wi-fi connection drops and doesn't connect

I've had this issue a couple times, particularly where it repeatedly asks for the AP password.

If I reboot the router, all is well. Give that a shot.


How to edit a specific line of textfile in terminal with a script?

This sounds very much like a band aid and an XY Problem and you would be better off figuring out the core problem. Still, these commands will do what you need. I have written it as a shell function, not an alias, but just add these lines to your ~/.bashrc file:

fix_config(){
    ## Change current working directory to the directory where .config file is located
    cd /path/to/config_file
    ## The original 17th line
    old="$(sed '17q;d' .config)"
    ## The one you will replace it with
    new="new line"
    ## The sed command that does the replacing
    sed -i.bak "17 s/$old/$new/" .config
    ## Run whatever needs to be run with the modified file
    command
    ## Copy the file back
    cp .config.bak .config
    ## Go back to the old working directory
    cd $OLDPWD
}

You can then run it by running fix_config.


How can I remove nvidia drivers from software updater?

According to dpkg -l | grep nvidia output some libraries of nvidia are not removed.

So run this command to purge them:

sudo apt purge libnvidia* xserver-xorg-video-nvidia-390

And its also good to run autoremove to remove unnecessary packages:

sudo apt autoremove


How do I erase/format a harddisk from a live CD?

From a live session start Gparted Partition Editor from System -> Administration:

Choose the drive you need to re-partition or format from the top right. Then select your partition (in this case /dev/sda1). By right click on the partition a menu pops up that lets you choose to Delete or Format this partition.

Partitions need to be unmounted before changing them

In case you install another OS it may be sufficient to just delete all partitions leaving the drive unpartitioned. Partitoning and formatting will then be done by the new OS's installer.

We have to keep in mind that private data on that drive will still be recoverable after deleting or reformatting partitions.


How to migrate vm´s from oracle virtualbox hypervisor to LXD or Docker Containers

With LXD you can only run Linux distributions and not Windows.
The list of supported Linux distributions is
https://us.images.linuxcontainers.org/

LXD containers have near native performance. It relates to the way that Linux Containers work.

As far as I know, there are no automated tools yet that can convert a Linux installation into a LXD container.
Having said that, the maintainer of LXD (stgraber) is presenting at FOSDEM in February and will demonstrate such a tool. If you are located near Brussels, you may try to attend the presentation.

Without an automated tool, you would need to manually migrate from the VM to the containers.


Processes allotting excessive disk space to (deleted) .xsession-errors file

You might be able to access the file through ls -l /proc/<PID>/fd/* (dangerous) and once you've determined the fd number, truncate it with truncate /proc/<PID>/fd/<fd> --size 0 (even more dangerous). That's the alternative to rebooting or killing the process. However it's hard to tell what will happen on subsequent writes to such a mutilated file.

What you really should do is find out what is writing to that file and why and take whatever steps necessary to stop it from doing that. Even ignoring storage issues, writing debug logs is expensive and hurts performance. Thus you should find the root cause.


Connecting to a Windows network with ubuntu 16.04 LTS

you should have samba file sharing installed. To install samba open terminal and type:

sudo apt-get update
sudo apt-get install samba

you will now have samba file server. To access any shared files you need to open file manager and type ctrl + l this will select your file path url. Follow the syntax mentioned below:

smb://< server-ip-or-host >/


Install Samba and connect the phone via USB it should be automatically detected


Copy and paste all the files you want to print into a new empty folder.
Open a terminal and navigate to that folder.
lpr *

This should work.


Ralink RT3090 in Ubuntu 14.04 -- Very bad reception + keeps disconnecting

I did this:

Open terminal
Write if you have leafpad:

sudo leafpad /etc/modprobe.d/blacklist.conf

if you have gedit:

sudo gedit /etc/modprobe.d/blacklist.conf

Add these lines at the end of the file:

blacklist rt2800usb
blacklist rt2x00lib
blacklist rt2x00pci
blacklist rt2x00usb
blacklist rt2800mmio
blacklist rt2x00m

Save and close the file
Reboot.

Hope this helps.


setting up remote access to VPS where Wine runs; is window manager needed?

Wine expects the DISPLAY variable to be set to a working X display. That's not a massive problem and there are a lot of solutions here.

I would personally look at starting an Xvfb display and then run your applications under that DISPLAY variable, including a VNC server.

sudo apt-get install xvfb wine x11vnc
Xvfb :99 &
DISPLAY=:99 wine regedit &
x11vnc -display :99 -forever

A few notes:

You can tweak the Xvfb for geometry and colours.
You could have a separate X/VNC server for each application.
You can take screenshots of an X server with:

DISPLAY=:99 import -window root screenshot.png

For production, you'll probably want an Upstart job making sure the X server stays up. You could do the same for the Wine applications.
None of this is secure. Don't use that in production without a firewall. I'd probably suggest limiting VNC to SSH access (tunnel the port back over SSH) if you're putting this anywhere near the internet.


To clarify, you have two hard drives, one with the operating system and one extra, and the OS drive is small, so it's full?

If that's the case, the easiest way would probably be to reinstall Ubuntu on the larger drive.

If you're interested in learning more or learning the actual answer to your question, read on.

If you come from a Windows environment, you're probably used to everything starting at the hard drive level (eg, C:\\Windows or D:\\Program Files).  In Ubuntu, things are unified, so a directory called "/" is the root of Ubuntu's view of everything.

When you install Ubuntu, you can set up partitions and choose what parts of the file system is on which partition.  This lets you put, for instance, your user files (which are all stored in /home/your-user-name) on a different partition or a different disk than your installed programs and operating system files (which might be in places like /bin or /usr/bin).

If you have a disk mounted but you didn't configure Ubuntu to use that disk for its OS files or for your home directory, it's probably in /media/your-user-name/the-name-of-the-hard-drive.  This is true of USB drives as well as internal hard drives.  If you open up Files and then click on "Computer" in the left sidebar, that will bring you to the root of your computer (/), so try to click on media, your username, and the the name of the hard drive to figure out exactly what the full path to your drive is.

Now that you know the full path of your external drive, you should be able to use it to install programs using apt-get.  The instructions at How can I install a package without root access? should work, but when those answers tell you to use $HOME, you will instead want to use /media/your-username/your-drive-name (whatever you found in the previous step).


This is probably this already existing bug report - chime in there..
https://bugs.launchpad.net/ubuntu/+source/gnome-do/+bug/626308

A good alternative would be Synapse - http://www.omgubuntu.co.uk/2010/11/synapse-gnome-do-launcher-app-review-ubuntu/
I'm not sure, though, how relevant all these launchers will be after one starts using unity - I think there's much duplicated functionality.


Why did my highlights turn pink/purple in Xubuntu 14.10?

As confirmed in remarks by Xubuntu Project Leader Simon Steinbeiß in Launchpad Bug 1373280, the changes can be adjusted through the use of the gtk-theme-config utility included in Xubuntu.  This was confirmed as not a bug but a deliberate design decision.

A deliberate design decision was made to emphasize the "unicorn" aspect to the 14.10 release by updating the default theme in various ways such as making the pink highlight occur even for those upgrading from 14.04 as well as for those making new installations.  In the drafted release notes for Xubuntu 14.10 Beta 2, the release team stated:

  To celebrate the 14.10 codename "Utopic Unicorn" and to demonstrate the easy customisability of Xubuntu, highlight colors have been turned pink for this release. You can easily revert this change by using the theme configuration application (gtk-theme-config) under the Settings Manager; simply turn Custom Highlight Colors "Off" and click "Apply". Of course, if you wish, you can change the highlight color to something you like better than the default blue!


Can I install ubuntu 12.04 desktop on a laptop?

Yes, you can install it on a laptop. Ubuntu does not have a separate section for laptop, its the same Desktop version. So you can grab it here accordingly.

You may have trouble booting with UEFI - so see here for more details if you have trouble booting.


wsnet simulator: Segmentation fault (core dumped) during installation

I think I solved the problem.

You must change the code of the file rng.c in the directory /wsnet/src/.

You must put this code:

rng->r = r;
    if (seed) {
        rng->seed = seed;
        gsl_rng_set(r, seed);
    } else {
        struct timeval tv;
        gettimeofday(&tv, NULL);
        gsl_rng_set(r, tv.tv_usec + tv.tv_sec);
        rng->seed = tv.tv_usec + tv.tv_sec;
    }

in the function create_rng below the switch condition and above the hadas_insert.

After you compile whithout put the -Werror flag to clear.

It works for me and I do not have one "segmentation fault".


While we have VPNs at work we usually use cisco tech to build them (although we use linux machines to do some advanced routing before it hits the real routers). So I have no experience using OpenVPN, but a quick google search gives some quite straight forward tutorials. I liked this one.


How to remove a lot of broken packages (so that I can upgrade Ubuntu)?

Look at /var/log/dist-upgrade/main.log. The broken packages are likely a misnomer, as apt is just working through the dependency list and probably finds the correct solution for all of them.


Ubuntu 14.04 problems with Bluetooth [105b:e065] on Lenovo laptop

This adapter is not supported by Ubuntu kernel yet. It will be supported in newer kernels, but I build a dkms module for kernel 4.2. I suggest to do the following:

Install kernel 4.2 by running:

sudo apt-get install linux-generic-lts-wily

and reboot.

Install the btusb module:

wget https://launchpad.net/~hanipouspilot/+archive/ubuntu/bluetooth/+files/btusb-bcm105b-dkms_0.1_all.deb
sudo dpkg -i btusb-bcm105b-dkms_0.1_all.deb

Convert and install firmware using this answer.

For kernel 4.2 probably you will need to rename the file to BCM.hcd.

Reboot and test bluetooth.


apt-get upgrade gives 'failed: Connection timed out', How to fix this?

You can edit the file /etc/apt/sources.list to comment out that particular archive if you think it is not going to come back online at some point.

from a terminal, enter

gksudo gedit /etc/apt/sources.list

look for the line calling archive.getdeb.net, and place a # sign at the start of the line.  Save the file, and try a update again.


Enable on-screen keyboard from the command line

You can use SSH to add the onboard screen keyboard to the list of startup application.
To do so you should simply create a .display file within ~/.config/autostart directory.
The onboard.display file should contain:

  [Desktop Entry]
  Type=Application
  Exec=onboard
  Hidden=false
  NoDisplay=false
  X-GNOME-Autostart-enabled=true
  Name=Onboard Keyboard
  Comment=

Save it and restart (sudo shutdown -r now).


Deluge restarts downloading torrents everytime I log in

If the files finished downloading they should start seeding. If you move them to another directory other than Deluge downloads location, Deluge will think they are gone and start downloading them again. I usually pause or remove torrents after they have finished downloading/seeding, which prevents Deluge from downloading them again.


The equivalent of Ubuntu's ~/ (a.k.a. /home/yourusername/) in Windows 10 is C:\Users\yourusername\.


How to directly connect 2 Ubuntu PCs via wi-fi?

You may want to look into setting up an adhoc network. That way the computers can talk directly.

To be honest though, I doubt you'll get much speed increase if any, because the limiting factor is more likely to be wifi transmission speed 802.11g.


You can toggle the enabled/disabled state of each device in /proc/acpi/wakeup by writing the device name into that file. For my system (Debian, not Ubuntu) I have the following in my /etc/rc.local to do this:

# Disable USB wakeups caused by (un)plugging new devices. Otherwise the hub in
# my USB monitor causes my PC to wake up when I turn the monitor off.
for device in EHC1 EHC2 XHC
do
    if grep -q "$device.*enabled" /proc/acpi/wakeup
    then
        echo $device > /proc/acpi/wakeup
    fi
done


How to connect USB Wireless headset via USB (Skullcandy)

In the whole Skullcandy range of wireless headphones the USB connection is for charging only.


Eclipse is not a small application, it is packed with tons of features and capabilities that you may not be actively using.  Blaming Java is not accurate, as the JVM overhead is small in comparison to the rest of Eclipse.

In comparison, I have Visual Studio Code open with a medium sized project, and my usage is around 750MB for all of its processes (Not Java).  My PyCharm is at 830MB (also built on Java).


The sharp icons are vector graphics. You would need to replace any fuzzy or low-resolution icons with SVGs to have them be sharp in bigger resolutions. You can customize any icon by right clicking and choosing 'Properties'. Then click on the current icon in the window to bring up a file browser to pick a replacement.

To make your own replacements, or to convert low-resolution current icons, you would need a graphics program like GIMP or Inkscape to make SVGs.

For photos, you would need to manually create an SVG of each one individually to have sharp thumbnails at bigger sizes.

Try resizing a few of the default icons on your desktop. Some are really sharp at any resolution, some are not. The sharp ones are vector graphics.


Looks to me like you have a desktop the size of your smaller monitor on your larger one.

Try running xfce4-display-settings -m, that should open a dialog like the one in this screenshot.

There, select Extend to the right (or left, if that's what it offers) instead of Mirror displays.

Update: If Extend to the right already is selected, try toggling it. Select Mirror Displays, which will display the some content on both your monitors, then call the dialog again and select Extend to the right.


Can't play .wmv files after attempting to add DVD playback from medibuntu

Try installing the 'w32codecs' package from Medibuntu.


How to retrieve passphrase for private key?

If it was a reasonably secure password, the answer is probably "not at all". According to the ssh-keygen man page, the private key is encrypted using 128bit AES. Although this algorithm has some weaknesses, the complexity is still high enough to make it reasonably secure. So, assuming a strong password and highly parallel decryption (for instance using GPGPU) having 210 threads, each having a very optimistic rate of 230 operations per second, after a day of time, you could have run about 256 operations. With an effective complexity of around 2100, it would take about 3 billion years to break the key...

If it was an insecure password, you might have a chance to break it with brute force though. It seems the community enhanced edition John the Ripper has a GPGPU module for brute-force attacks on OpenSSH key files (didn't try it, I don't use proprietary drivers).

By thy way, a similar question, not about retrieving the key, but instead breaking the encryption itself was already asked.


This works for me on openSUSE, but it's a KDE thing: Go to System Settings => Workspace => Window Management => Window Rules.

Click New.

Write whatever description you want, like "fix writer titlebar". Window class is "wps" but that's just for writer, not the whole suite.

Then on Appearance & Fixes tab, check the first item "No titlebar and frame" - change it to Force - and leave it as No because the double negatve really means to add the titlebar.

Do the same three more times, but the window classes are et, wpp, and wpspdf.

You;ll get titlebar and with it the right-click menu, and a bit wider frame to help with resizing, but you double up on the minimize, maximize, and close buttons.


How to move a file with a space in the name? (command-line)

Three options:

Use tab completion. Type the first part of the file and hit Tab. If you've typed enough for it to be unique, it'll be completed. Otherwise, type more and hit Tab again. Or, hit Tab a second time to list all the possible completions.
Surround the name in quotes:

mv "File with Spaces" "Other Place"

Use backslashes to escape the special characters:

mv File\ with\ Spaces Other\ Place


Gnome 3.14: Is possible to disable the lock screen?

Disable with

gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend false

Enable with

gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend true

Or reset to the default value false with

gsettings reset org.gnome.desktop.screensaver ubuntu-lock-on-suspend


Only one option from GRUB menu, is able to start Ubuntu

One of the first steps is to boot Ubuntu in recovery mode:

https://wiki.ubuntu.com/RecoveryMode

Basically, you select the

Ubuntu, kernel 2.6.xx.xx-generic (recovery mode)

option in the GRUB menu. Choose the recovery mode of the kernel that is not working for you (I assume tha t is the latest, so the one with the highest kernel number combination.)
You should now get some options of which the option "Drop to root shell prompt gives you the chance to make some repairs on the command line.

For analysis you can now look at your log files:

cat /var/log/syslog

and

cat /var/log/dmesg

this might help. You could attach them to your question for others to see.

You can also try to see what happens if you start the X display manager (lightdm)

lightdm

[GUESSING]
One possibility is that, you use a fglrx or nvidia driver that needs to be recompiled (but again i am just GUESSING here, i know nothing of your setup).

Check if you have a /etc/X11/xorg.conf (is normally NOT there). If it is present, rename it :

mv /etc/X11/xorg.conf /etc/X11/xorg.conf.mypersonalbackup

and try again.

You might experience loss in video quality until you recompiled/reinstalled your video driver.


Wallpaper always tiled on one screen with dual monitors

Ok, found the answer myself. You can't just use xrandr to change the primary screen (to get the panel on your desired monitor). It will work but leads to the bug described above.

To make this work properly, you first have to change a gnome setting:

gconftool-2 -s --type boolean "/desktop/gnome/shell/windows/workspaces_only_on_primary" 0

By default, gnome uses the config file "~/.config/monitors.xml" to enable the monitor(s) the right way and also enable a second monitor when found. There will be a "configuration" group for every combination of connected monitors previously detected. In my case, there are 2 of those groups. One for "2 monitors connected" and one for "1 monitor connected". (by the way: you can change that config file by using the gnome monitor settings dialog)

E.g:

First one: "2 monitors detected"

<configuration>
  <clone>no</clone>
  <output name="LVDS1">
      <vendor>APP</vendor>
      <product>0x9ca3</product>
      <serial>0x00000000</serial>
      <width>1440</width>
      <height>900</height>
      <rate>60</rate>
      <x>0</x>
      <y>252</y>
      <rotation>normal</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>yes</primary>
  </output>
  <output name="VGA1">
  </output>
  <output name="HDMI1">
      <vendor>SAM</vendor>
      <product>0x041f</product>
      <serial>0x4d593233</serial>
      <width>2048</width>
      <height>1152</height>
      <rate>60</rate>
      <x>1440</x>
      <y>0</y>
      <rotation>normal</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>no</primary>
  </output>
  <output name="DP1">
  </output>

Second one: "1 monitor detected"

  <configuration>
  <clone>no</clone>
  <output name="LVDS1">
      <vendor>APP</vendor>
      <product>0x9ca3</product>
      <serial>0x00000000</serial>
      <width>1440</width>
      <height>900</height>
      <rate>60</rate>
      <x>0</x>
      <y>0</y>
      <rotation>normal</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>yes</primary>
  </output>
  <output name="VGA1">
  </output>
  <output name="HDMI1">
  </output>
  <output name="DP1">
  </output>

In order to get the second screen as primary when connected, you only have to switch the "primary" values in the first "configuration" group. This way, gnome-shell will automatically detect and enable the second monitor as primary and of course, without any bugs like dead space on desktop or tiled wallpapers...


An official Ubuntu based distribution is Ubuntu GNOME 15.04.

  GNOME Classic session is included. To try it, choose it from the
  Sessions option on the login screen.

You can use the GNOME3 PPA and update GNOME3 with these commands:

sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get upgrade


You might have several misconfigurations since you mentioned that the upgrading procedure failed. What I suggest is to do a clean install to be on the safe side. Do a backup of your files and just do a clean Ubuntu install. It will save you all the hassle for looking for the culprit and enjoy the 11.10 as new.


How should I add a host name to /etc/hosts?

Yes, really. The /etc/hosts file is just a map that links IPs to hostnames. If you want to be able to do things like ssh myname and have that run ssh localhost, you need to add a line that identifies localhost (127.0.0.1) as myname:

127.0.0.1 localhost
127.0.0.1 myname

You could just replace localhost with myname, but then things like ssh localhost would fail and localhost is pretty standard. So just add another line as shown above.


Create a bootable image on a Mac OSX to install Ubuntu on a Windows machine

Use unetbootin to create bootable usb in mac.


Bind a mouse button to show the Gnome Shell Activities overview

I got it working in the end by adding the release modifier to the xbindkeys config. I have no idea why the press event doesn't work but the release event does.

The final xbindkeys config ended up being:

"xte 'keydown Alt_L' 'key F1' 'keyup Alt_L'"
    release + b:10


Call Audio Doesn't go through A2DP from Android to Ubuntu 18.04 LTS. Is there a way?

Not possible.

Two different Bluetooth profiles are needed and they can't be used simultaneously.

For what you want is HFP (mono + microphone) and what you've been using is correctly identified in the question,A2DP (stereo, no microphone).


Oneiric is successfully installed on my desktop with my LiveCD.
My 1st thought was the good one.

In fact the problem was from GRUB that manage the way to start Ubuntu when several versions have been installed (from what I've understood).

So the problem have been solved by:

refreshing the configuration of Grub with this command sudo update-grub
then use the LiveCD to install Oneiric


Out of the box Ubuntu 13.04 with Chromium does not automatically use web apps

A extra package needs to be installed to enable web apps functionality in Chromium.

Search for unity-chromium-extension in the Software Center or run the following from the terminal:

sudo apt-get install unity-chromium-extension

Now if only it would work in Chrome too...


Installing ubuntu from usb stick and help in partitioning

The minimum memory requirement for Ubuntu 12.10 is 768 MB of memory and 5 GB of disk space for Ubuntu Desktop. so anything more than 5 GB is good enough for installing Ubuntu 12.10 :)

This link will tell you how to install Ubuntu step by step. Hope it helps you!! :)


What is the application of JRE in LibreOffice?

From the OpenOffice wiki:

  Java is required for complete OpenOffice.org functionality. Java is mainly required to use the new embedded Java technology based HSQLDB database engine, or to make use of accessibility and assistive technologies. If you do not require database tables or accessibility integration or some wizards, then you do not need to download and install Java. Base (the database component) for example completely relies on Java technologies to run, but other programs (like Writer, Calc, and Impress) only need Java for special functionality.


Please read my response to your previous question - how to recover from mounting /usr/ nosuid - moving /usr to a mounted partition is not only "a bad idea" but is going to result in silent failures unless you also modify your initrd image, because /usr is expected to be available during the early boot process before any non-root partitions are mounted.

Apart from that, there are no major problems with moving /usr - all you need to do is

copy files from /usr to a separate partition
modify /etc/fstab
issue mount /dev/sdb1 /usr (where /dev/sdb is your "separate partition")

That's it, you should be using the new /usr now. Note that the files in your root /usr partition are not removed - this may require some trickery because /usr unavoidably becomes unavailable for a moment, but all commands required are located in /bin so it looks like it might work. Actually, I tried mounting /usr to a separate partition on a throw-away Virtualbox instance and it worked fine:

mkdir /usr.new
mount /dev/sdb1 /usr.new
cp -rp /usr/* /usr.new/
umount /usr.new
nano /etc/fstab # added a line /dev/sdb1 /usr ext3 relatime,errors=remount-ro 0 0
mv /usr /usr.old
mkdir /usr
mount /usr
rm -rf /usr.old
sync # flush disk caches just in case it hangs up during the shutdown
reboot

And that should be it!

On my test box I found no issues with failing usev rules, but then again - it's a Virtualbox instance, YMMV.

UPDATE: I'm finding that sudo stopped working on that box, complaining on suid bit not set - this was caused by me using cp -r instead of cp -rp, as was suggested in the comments


dpkg: error processing package libglib2.0-0:i386

Error with `apt upgrade` help
sudo dpkg --configure -a, followed by: sudo apt --fix-broken install


Battery Life-time on Acer Aspire Timeline-X 4830TG

ı have the same laptop enter bios choose internal graphic card....


The express executable file is provided by express-generator in Ubuntu 14.04. To install it globally run sudo npm install -g express-generator

The easiest way to globally install an up-to-date version of the Express Node.js web application framework in Ubuntu 16.04 and later is from the default Ubuntu repositories using the command:

sudo apt install node-express node-express-generator

The  express.js file is installed to /usr/lib/nodejs/express/express.js in the same directory as package.json which is installed to /usr/lib/nodejs/express/package.json

The above command installs node-express version 4.1.1 in Ubuntu 16.04 and later. The latest version of Express at the official Express website is 4.16.1, so the version of Express from the default Ubuntu repositories is almost as up-to-date as the latest version.


How do I adjust touchpad scroll sensitivity in Wayland/Gnome?

Go to a terminal and type:

synclient PalmDetect=1
synclient HorizHysteresis=10
synclient VertHysteresis=10

then keep adding zeroes to the following 2 parameters:

synclient HorizHysteresis=100
synclient VertHysteresis=100

until it becomes not responsive enough.  E.g.:

synclient HorizHysteresis=1000
synclient VertHysteresis=1000

Then halve that number and keep halving it until it's just right.  E.g.:

synclient HorizHysteresis=500
synclient VertHysteresis=500

synclient HorizHysteresis=250
synclient VertHysteresis=250

When that works, leave a comment with the value you have and I'll edit this answer to give you the perfect answer.  If it doesn't, I'll delete...