How to change thickness/width of arrow head?

While writing this, I found a solution:
http://www.oooforum.org/forum/viewtopic.phtml?t=8674

Right-click on the arrow -> "Line ..."
now you can change the size of the arrow's head:


Wicd tray icon fails to appear in system notification area even though in dconf>desktop>unity>panel/whitelist

Not fixable and no workaround.

Only way out is to dump unity and go to Gnome classic.

See the bug report.

Update:  Now marked "Fix released" but still doesn't work.


Since MySql Workbench did not connect to multiple databases at once, I found Tora, a database Management Tool from Oracle. (http://sourceforge.net/projects/tora). You can get build instructions and a precompiled deb for 12.04 here: http://help.ubuntu.com/community/HowToBuildToraWithOracle .

It is also available in the official ubuntu-repositories (Software-Center).


If you managed to install 12.04, you may try to upgrade to 12.10 instead of installing from scratch.

Your machine is supported. See the Hardware support wiki.

Now 12.04 is a Long-Term Support (LTS) release and therefore by default it will offer you to upgrade only for the next LTS version. So do the following:

Open Update Manager
Go to Settings and on the updates tab change the setting Notify me of a new Ubuntu version to for any new version
Check for updates and there should be an option to upgrade to 12.10.


Why is the window description coming like this when I press Super key?

try adjusting some custom settings in "settings manager" -> "windows manager" / "windows manager tweaks" / "appearance"

Many ways to customize the look/style etc...


Since you have the  tata photon plus then extract the files on your
local drive and name the folder Tata_Photon_Linux
Go into the folder and give execute permissions and then run the
install file as root

cd  ~/Desktop/Tata_Photon_Linux
chmod +x ./install
sudo ./install

You will get confirmation of completion of the installation. When you
plug in the USB datacard, the Tata Photon+ dashboard will
automatically popup. You can start connecting to the internet
directly by clicking the connect button.

Source and more information from here


Had this problem myself and this link worked for me.

ATI Catalyst driver fix

If you want dual screens and ATI on 12, use the proprietry catalyst driver NOT the Ubuntu one as it causes a ton of random issues...

P.S. this is the ONLY time i've ever advised on proprietry and I feel dirty for having to...


How is the Ubuntu root CA store created?

Copy the certificates to the folder /usr/local/share/ca-certificates and make sure they end with the extension .crt. When you run update-ca-certificates it will do more than just update to /etc/ssl/certs, it will also create the java cacerts file (tested with openjdk 8).


What reason could prevent console output from "virsh -c qemu:///system console guest1"?

I'm fairly sure you do need to configure the guest to use a serial console.  You need three things for this to work:

give the guest a virtual serial device of type pty (for example by adding one in the virt-manager vm info page)
tell the kernel to use that for its output, by adding boot parameters like serial=tty0 console=ttyS0,115200n8 into GRUB_CMDLINE_LINUX in /etc/default/grub; then run sudo update-grub
(optional) put a getty on ttyS0 so that you get a login prompt

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507650 for more.


I've made this correction:

let exitcode=$? and not let $exitcode=$?

That fixes the syntax error.


Alternative screen lock out to Xscreensaver?

I found a forum at crunchbanglinux.org on how to either modify/change Xscreensaver. http://crunchbanglinux.org/forums/topic/18793/how-do-i-replace-xscreensaver/ Also here is a link to extra screen savers for Xscreensaver if you decide to stay with it. Included is a way to have an auto-disable script for Xscreensaver. http://crunchbanglinux.org/forums/topic/1069/howto-configure-xscreensaver-instead-of-gnomescreensaver/ I used it a couple years ago on Ubuntu 10.10.

Alright, to login to a different session instead of the auto-lock screen, I found this link which shows how to configure the settings. How do I change the default session for when using auto-logins? Anyway, here is the code:

EXAMPLE: sudo nano /etc/lightdm/lightdm.conf change the line

user-session=ubuntu to user-session=ubuntu-2d

Note - if you don't have a lightdm.conf file then for a autologin use the following values for this file:

[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu-2d
autologin-user=myusername
autologin-user-timeout=0

Another possibility is to run:

sudo /usr/lib/lightdm/lightdm-set-defaults -s <session-name>

EXAMPLE:

sudo /usr/lib/lightdm/lightdm-set-defaults -s ubuntu-2d

This will also create the lightdm.conf file if it wasn't already present.

Credit is due to fossfreedom for this tutorial.

Oh and one more link: https://wiki.ubuntu.com/LightDM/. It's a wiki to LightDM configuration from canonical.

Let me know if this was what you were looking for. I tried to make it neat and easy to read.


Change all associations from gedit to another application

Running on 13.04+, update the file: /etc/gnome/defaults.list.

sudo sed -i 's/gedit.desktop/sublime-text-2.desktop/g' /etc/gnome/defaults.list

Credit to trent for the update to 13.04+

Pre-13.04:

System wide associations:

sudo sed -i 's/gedit.desktop/sublime-text-2.desktop/g' /usr/share/applications/defaults.list

Just your user's associations:

sed -i 's/gedit.desktop/sublime-text-2.desktop/g' ~/.local/share/applications/mimeapps.list

Credit to Oli for the naming convention of the .desktop file before I started using SublimeText2.


Restore Missing "Settings" (gnome-control-center) Icon in Ubuntu 18.04

In my case I just ran

sudo apt-get install --reinstall gnome-control-center

rebooted the system, and it was restored. It is now working fine again.


All the above steps will make you crazy. I am going to share with you what I have chosen to and works perfectly.

Install torsocks by going to Ubuntu Software Center and typing "tor" and select additional packages.
After installation, go to System Settings... → Network → Network proxy and enter these settings: 127.0.0.1 and port 9050 into SOCKS section.
Apply and restart.
In all your browsers and apps choose to "Use System Proxy Settings".


Ubuntu 20.10 nvidia-drivers and acpi problem

In case someone else is struggling with similar problems: in the end, I just installed ubuntu 20.04 and added these boot parameters in etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=assign-busses apicmaintimer idle=poll reboot=cold,hard snd_hda_intel.dmic_detect=0"

Now everything works as it should.


not getting dual boot grub menu ubuntu12.04.2 64 bit with pre-installed windows7 64-bit

I tried installing ubuntu12.04.2 using VMware here i am getting the following errors:

A dialog with message :

Binary translation is incompatible with long mode on this platform. Disabling long mode. Without long mode support, the virtual machine will not be able to run 64-bit code. For more details see http://vmware.com/info?id=152.

after clicking ok button : i got the following error with big Red error:

This virtual machine is configured for 64-bit guest operating systems. However, 64-bit operation is not possible.

This host supports Intel VT-x, but Intel VT-x is disabled.

Intel VT-x might be disabled if it has been disabled in the BIOS/firmware settings or the host has not been power-cycled since changing this setting.

(1) Verify that the BIOS/firmware settings enable Intel VT-x and disable 'trusted execution.'

(2) Power-cycle the host if either of these BIOS/firmware settings have been changed.

(3) Power-cycle the host if you have not done so since installing VMware Workstation.

(4) Update the host's BIOS/firmware to the latest version.

For more detailed information, see http://vmware.com/info?id=152.

my laptop lenovo G580


How to set any file manager in Linux to show the duration like the Length feature in Windows Explorer?

This feature already exists in a standard Ubuntu installation which includes totem which is installed by default.

Right click on a music or video file in File Manager ('Files' application or 'Nautilus') select the Properties tab → Audio (or in the case of video, 'Audio/Video') and it gives you the duration in minutes and seconds.


Persistent names for usb-serial devices using udev rule, not working

Resolved in the comments by CL.

Basically, follow this url tutorial to the letter, just the correspondent chapter (Writing udev rules - Identify two identical audio devices): http://alsa.opensrc.org/Udev

In the end, I have each USB assigned permanently to a USB soundcard, and the USB dont change with reset.

And I can do:

$ aplay -D hw:Room1 something.wav

$ aplay -D hw:Room2 something.wav

Room1 is a USB soundcard connected permanently to usb1, and Room2 is the same with another usb.

Using -D default:Room1 gave me problems with surround, but -D hw:Room1 didn't, probably that's due to my personal .asoundrc file.

Making it work with a hub was a pain in the ass. I ended changing 2 things from the guide: I did set the file /etc/udev/rules.d/85-my-usb-audio.rules with a higher number that the current .rules file (the current .rules file was like 99-something.rules, so I did 100-my-usb-audio.rules).

And after each change in .rules file, I ended reseting with:

sudo udevadm control --reload-rules

The rest is exactly like the guide.


Possibly coming from an upgrade of Ubuntu, a Software source repositories generate an error because it has no entry for the new Ubuntu 18.04
Here is how to fix it
Open the Gnome Software Properties App with App icon or with Alt+F2, type software-properties-gtk, Enter

Then display the Other Software Tab
Find the line(s) related to ppa.launchpad.net/glasen/freetype2/ubuntu
Uncheck the box will disable the software install source
Validate changes and try again with sudo apt-get update
example for window of Software Properties


How can I make a write-only view of a folder?

I asked this same question for student drop boxes on the samba mailing list a few years back (http://lists.samba.org/archive/samba/2008-September/143610.html) and the answer has worked for us. You need extended acl attributes on your filesystem (from the acl package), here's Jeremy Allison's answer...

  Ok, the problem is that students need to be able to read
  the containing directory in order to be able to drag and
  drop new files there. The reason is that Samba needs to
  be able to scan the directory on their behalf in order
  to do case insensitive lookups.

  But so long as you don't mind allowing the students to
  see the names of each others files, you can set up a
  DropBox so that students can write into it (and their
  own files) but not edit or see others files.

  Firstly, you want to make sure that files created in
  the DropBox directory are not owned by the student's
  primary group, but by the group owner of the DropBox
  direcotry. So :

  chgrp teachers DropBox

  to make it owned by the teachers group. Then set the
  setgid bit on the DropBox directory to make sure
  that files created within there have an owning group
  of teachers.

  chmod g+s DropBox

  Then ensure that a file in DropBox can be renamed
  or deleted by only the owner of the file, or by the
  owner of the directory, or by root (same permissions
  that /tmp has).

  chmod +t DropBox

  Then allow students to write into the directory
  by adding an ACL

  setfacl -m g:students:rwx DropBox

  So long as the defaul acl is set so that "others"
  have no permissions, files written by a student
  into that directory will be owned by themselves
  but will have an owning group of "teachers", and
  students will not be able to read each others
  files.

  If you need to be cause the files to be owned
  by the owner of the directory, not by the students
  who created them you need to set up a separate
  share as described above, but then add the
  share level parameter :

  inherit owner = yes

  which will cause files created within the
  directories in that share to be owned by
  the containing directory, not the creating
  owner.


Can I have my software on a different partition than the base installation?

However, I'm not sure if 40GB will be enough if I would install a lot of additional software (would it?).

I have yet to get over 10Gb for all software I installed and that includes Apache and MySQL (with the database on a 2nd partition). Excluding my personal data since I keep that on another disk.

  There will not be any data there as I will put it all on B:. Would it be possible to have the ubuntu base installation in one partition and all additional software on another one?

Yes, if you install software from source you can choose where it needs to install. But ... I would not bother. It is a lot of hassle and not worth the time.

  If that's possible, I assume that 16GB is more than enough for the base installation. Is this correct? Then I don't have to shrink the C-disk. In the guide I linked earlier, they say at least 8GB, but better 20GB.

20Gb is included /home/. It is pretty easy to keep /home/ under 2.5Gb by moving all the directories to another partition and use that to store your personal data with a symlink to /home/.


"your system is running in low graphics mode issue"

First install latest kernel http://linuxg.net/how-to-install-kernel-3-19-rc4-on-ubuntu-14-10-ubuntu-14-04-and-derivatives/

reboot system and check if it works,if it doesnt execute

sudo gedit /etc/default/grub

and modify this line

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

to look exactly like this.

execute

  sudo update-grub
  sudo update-grub2

reboot and check if it works.


This has happened a few times as well with flgrx graphics. I just boot into recovery (2nd Ubuntu in grub) then choose failsafe graphics. It makes some changes and then boots as normal. I've never actually ended up in failsafe, it just fixes problem and boots.

I usually see a message about fixing something to do with time offset.


Check the log files in /var/log directory.

I would start there with system log:

cat /var/log/syslog


Used apt-get to install chromium but how to start it?

You can run command chromium-browser from terminal. If the symlink was created while installing, that should work.


How do I install MATLAB R2012b via the ISO file?

Best solution is to try an alternative. QtOctave. It works almost fine for me. But if you want to definitely use Matlab, the long but perfectly working solution is to install XP through VirtualBox and get Matlab running in seamless mode.


If it ain't broke, don't fix it.

Upgrading might cause more problems than it'll solve.


Updating OpenGL from version 3.0 to latest 4.5

Old question but answering if anyone stumble upon this.
I had Ubuntu 16.04 with kernel 4.4. I had the problem of glxinfo showing incorrect version. Most of the time, OpenGL version was shown to be 3.3. I had to update my kernel to 4.15 and the problem got fixed. I ran the following command:
sudo apt-get install --install-recommends linux-generic-hwe-16.04

Restarted the system, now I have OpenGL 4.5:
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 4.5
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.0.5
OpenGL core profile shading language version string: 4.50
OpenGL version string: 3.0 Mesa 18.0.5
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.0.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10


You might find what you need here: http://docs.oracle.com/javase/6/docs/technotes/guides/rmi/index.html


Fstab wont boot while usb drive is plugged in to system

It looks like umask is not a supported option...
Actually it doesn't:

https://github.com/torvalds/linux/blob/master/Documentation/filesystems/ext4/ext4.rst
https://superuser.com/a/837270/809353
https://superuser.com/a/637171/809353


Regarding the error message, you are facing with two separate problems.

GPG error:

For solving public key problem, run this command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUBKEY>

in which you should replace  with the mentioned public key in the error message which is: 16126D3A3E5C1192.

Google Chrome Source List

This problem, as it is well explained in this answer. For more detail, read the answer.
Meanwhile, since you are using 64-bit system, you can use 64-bit Chrome. So force it to just get updates for 64-bit by running this command:

sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/apt/sources.list.d/google-chrome.list" "/opt/google/chrome/cron/google-chrome"

Ubuntu Version

You said you are using latest version of Ubuntu (which should be Wily 15.10). But as it is apparent in the result of the command, you are getting updates for Ubuntu Precise Pangolin (12.04 LTS)

How is this possible?


How to restore Windows as a boot option in Grub

I really like Boot Repair cause it makes stuff really simple.

There is also a command-line based solution. Also worth trying if above fails.


Wifi connection issues on Ubuntu 16.04 RTL8188EE

You can test whether power management is causing issues with wifi by changing a value in the relevant configuration file:

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

and reboot.

If it doesn't work, you can revert back with this command and reboot again:

sudo sed -i 's/wifi.powersave = 2/wifi.powersave = 3/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf


Python3 in Ubuntu has SSL support. You can simply test by running python3 and then firing of a couple of commands:

import urllib.request
urllib.request.urlopen('https://askubuntu.com').read()

A ton of HTML will fall out the other side. SSL is working.

As a more general answer to your SO question, I'd strongly consider looking at the requests library. It can be installed with the python3-requests package and makes all the stuff you're doing much easier and more logical. Boils your entire thing down to:

import requests
requests.post(
    url,
    auth=requests.auth.HTTPBasicAuth('user', 'pass'),
    data={"Hello": "There"},
    headers={'content-type': 'application/x-www-form-urlencoded'}
)

I agree that it's largely preference (you can do everything you want without it) but it makes for easier to understand code.


Is there a command line tool to shrink partition size?

As /dev/sda1 is your boot partition, you are not going to want to resize it while the system is live, nor would be likely able to.

For your best bang for your buck, use GParted.  It's a dedicated distribution which boots
to a minimal GUI specifically for resizing and moving partitions around.  It will handle all aspects of the resizing for you, including defragmenting (when moving NTFS or FAT partitions), shrinking partitions prior to a move (if required), and expanding the partition to fill the space available on the drive.


This issue has been resolved in Ubuntu 12.04 by enabling system sounds using Ubuntu Tweak -

This worked for me in Ubuntu 12.04.


Ah, I forgot a step:

sudo resize2fs /dev/mmcblk0p2

Now a df -h looks like:

Filesystem                          Size  Used Avail Use% Mounted on
/dev/root                           7.2G  1.6G  5.3G  23% /
devtmpfs                            458M  4.0K  458M   1% /dev
none                                4.0K     0  4.0K   0% /sys/fs/cgroup
none                                 93M  372K   93M   1% /run
none                                5.0M     0  5.0M   0% /run/lock
none                                462M     0  462M   0% /run/shm
none                                100M     0  100M   0% /run/user
overflow                            1.0M     0  1.0M   0% /tmp
/dev/mmcblk0p1                       64M   20M   45M  31% /boot/firmware


No sound via HDMI and I cannot use mirror display on a lenovo G560

Solved. For some reason Alsa couldn't manage it but when installing Pulse I had the choice to switch to HDMI audio, which ment the audio worked on the TV. Still NOGO on the mirroring, but no need. found out I rather use the PS3 Media server anyway to watch movies...


Where are the reports submitted from system testing displayed?

The results are available from this website:

http://friendly.ubuntu.com/


Prevent deja-dup daemon from starting, but keep deja-dup

According to dpkg -S deja-dup-monitor (or package search) its XDG desktop-autostart file is located in /etc/xdg/autostart/deja-dup-monitor.desktop .

So you can disable deja-dup-monitor autostart by removing this file:

sudo rm /etc/xdg/autostart/deja-dup-monitor.desktop

As @OrganicMarble commented user-oriented solution is to launch lxsession-edit and uncheck Backup Monitor. This will create XDG-user file ~/.config/autostart/deja-dup-monitor.desktop with contents:

[Desktop Entry]
Version=1.0
X-Ubuntu-Gettext-Domain=deja-dup
Name=Backup Monitor
Comment=Schedules backups at regular intervals
Icon=deja-dup
TryExec=/usr/lib/x86_64-linux-gnu/deja-dup/deja-dup-monitor
Exec=/usr/lib/x86_64-linux-gnu/deja-dup/deja-dup-monitor
X-GNOME-Autostart-Delay=120
StartupNotify=false
NoDisplay=true
Type=Application
Categories=Utility;Archiving;
NotShowIn=LXDE;

The main and significant difference between this file and original /etc/xdg/autostart/deja-dup-monitor.desktop is NotShowIn=LXDE; (it means that deja-dup-monitor will not start on LXDE session).


Ubuntu iso version for dell inspiron 1150

Inspiron 1150 has following specification: (http://www.cnet.com/laptops/dell-inspiron-1150/4507-3121_7-30836485.html), Intel Celeron 2.5GHz, Intel Extreme Graphics 2 - max 64.0 MB shared memory, Max 2GB RAM.

Ubuntu with Unity desktop probably will not work as the Intel graphics card don't have all necessary 3D functions (Intel 852 / 855 chip-sets). Try to disable 3D in BIOS set-up and try again, not sure if this is the option. If not try to upgrade the BIOS to its latest version. Due to your hardware I don't recommend to use Unity desktop anyway.

For Inspiron 1150 I recommend to use Xubuntu (with xfce desktop http://xubuntu.org/getxubuntu/) or Lubuntu (with lxde desktop http://www.lubuntu.net/), which have lower demands to the hardware set-up, but they does not have Unity. Your Ubuntu 10.10 does not have Unity either, but uses Gnome desktop. You will need 32bit installation. Try the live version first to be sure it will work.

And please upgrade ram to its max (2GB). This will help the computer to bear 12.04 or 13.04 version of Xubuntu/Lubuntu.


Fixed; removed PYTHONPATH that was pointing to /usr/local/lib/python2.7/dist-packages


How do I participate in the Ubuntu wallpaper contest?

I doubt it has started yet. 14.10's contest started in August. This is what Iain Farrell had to say:

  Images shouldn’t be too busy and filled with too many shapes and colours, a similar tone throughout is a good rule of thumb.
  A single point of focus, a single area that draws the eye into the image, can also help you avoid something too cluttered.
  The left and top edges are home to Ubuntu’s Launcher and Panel so be careful to consider how your images look in place so as not to clash with the user interface. Try them out on your own desktop, see how they feel.
  Try your image at different aspect ratios to make sure something important isn’t cropped out on smaller/ larger screens at different resolutions.
  Take a look at the wallpapers guidance on the Ubuntu Wiki regarding the size of images. Our target resolution is 2560 x 1600.
  Break all the rules except the resolution one! :D

Looking at this OMG! Ubuntu! article, submissions are apparently made to a Flickr pool.


Okay, so I fixed it... But it took a bit of mucking around.

First I downloaded and installed a "pirate" copy of Microsoft Windows 10 (single-boot setup) and then I tried to boot from a USB "thumb" drive using the instructions Microsoft provide online (I haven't used a Microsoft operating system - outside of very light usage at work - in nearly ten years)... No luck, it still wouldn't boot from the USB "thumb" drive.

In fact, no matter what I did, I simply could not get it to boot from the USB "thumb" drive.

So I copied a Ubuntu 20.04 LTS ("Focal Fossa") image to a USB Type-C "thumb" drive instead (I was originally using a "traditional" USB "thumb" drive via an adaptor), changed the boot order around a bit (it was already on the correct boot order, but I figured this might "refresh" the boot order) and then restarted... Voila - it worked!

Okay, disclaimer time.

I used a "pirate" copy of Windows 10 - but I have no intention of using this operating system (most of our computers run Ubuntu, and the few exceptions run Apple macOS) - it was deleted immediately after I got Ubuntu running on my Microsoft Surface Go... In total, I used this operating system for about five minutes, almost all of which was me logging in and restarting.

If you intend to dual-boot or use Windows 10 on another device, please buy a license - Microsoft as a company might have its many flaws, but behind the "big evil corporation", there are actually a lot of developers that worked awfully hard on this operating system... So please, please buy a license if you want to continue using Windows 10.

On a side-note, I later found a "trial" copy of Windows 10 on Microsoft's web site - so you should probably use this instead of a "pirate" copy...


Ubuntu cant open .deb files - how can I correct this?

For a start, download the Steam Client.

After that, you need to navigate to the location you saved the steam_latest.deb file.
By default your downloaded files are stored in /Downloads folder.

Open a Terminal with Ctrl+Alt+T and type:

cd /Downloads

Next to install it type:

sudo dpkg -i steam_latest.deb

sudo apt-get install -f

Now a new windows will pop out as in the image below:

Click on the button Start Steam.


No media found error while booting from live usb

I've had better luck downloading the .iso and using

sudo dd if=<ubuntu.iso> of=</dev/sdb>

where  is the file name and location of the .iso and  is the USB you want to completely overwrite with the contents of the .iso file. unetbootin just doesn't seem to work.


Open the terminal and type:

setsid pulseaudio

PulseAudio won't stop working even if the terminal is closed.

To make this change permanent search for Startup Applications Preferences in the Dash, and add the command setsid pulseaudio to the list of Additional startup programs by clicking the Add button and filling out the details in the two text input fields after where it says Name: and Command: . After Name: type PulseAudio and after Command: type setsid pulseaudio Then click the Save button to save the changes.


Calling terminal from shell scripts to display results of commands

because all the commands are being run sequentially in the same shell from which you execute the gnome-terminal command - rather than running inside the new gnome-terminal

you can add the --no-pager option to the systemctl commands - see man systemctl

If you want to run the following commands inside the new gnome-terminal, you could wrap them in a shell and pass them as a command string, like:
gnome-terminal -- sh -c '
  echo "Display Manager Status"
  systemctl --no-pager status display-manager.service
  echo "System Log Status"
  systemctl status syslog.service
'

Note that I omitted --no-pager on the final systemctl command in order to hold the terminal open - otherwise it will likely close immediately, before you have time to read the results.


Keyboard layout indicator in LXQt shows same the symbol for different variants

You cannot, I think, with the keyboard indicator of the LXQT panel, but I am posting this in order to suggest a workaround that would make the keyboard indicator usable.

Not all keyboard-layout indicators (and they are usually desktop-environment-specific) provide a different symbol for the different variants of the same language (in some they are differentiated by a number, a dot, an inverted comma, etc), and even fewer allow you to customize the symbol for each keyboard (isn't that only present in KDE?)...

This problem with Lxqt is also present in elementaryOS.

I imagine such situations could be flagged as bugs.

My workaround is this:

Add other two keyboard layouts, and use them as indicators for the layout that comes after them. Example for my case: I do not use US Dvorak, but US International with dead keys, along US standard, French, and a version of Romanian.

"US English" and "US English International with dead keys" are both indicated as "US" by the keyboard indicator, but I have ordered them in such a way that I can easily identify them when cycling with Alt-CapsLock or the mouse-click: US after RO is the standard version (easy to remember because I can use US keyboard to write in Romanian if I want, or RO keyboard to write in English), US after FR is the US international version with dead keys (easy to remember because these two layouts can both be used to write in French).

I have to confess that in my case I haven't added those two supplementary keyboard layouts for this specific purpose: I needed them anyway. But they made accessible this solution which, I hope, would suggest to you a workaround and make the keyboard usable.


dpkg/ dkms does not exit/ hangs after kernel upgrade

For me this was connected to the proprietary nvidia drivers (version 385). I removed them using the "Software & Updates -> Additional Drivers" Tab. Afterwards I manually uninstalled the linux-image-4.13.0-25-generic package with:

sudo apt-get remove linux-image-4.13.0-25-generic

And ran:

sudo apt-get install -f && sudo apt-get upgrade

After a reboot my system was running the newest kernel and I was able to install the newest nvidia drivers.

edit:

In case the process is hanging apparently killing the plymouth service is supposed to help (See Launchpad). In a new terminal type

sudo pkill plymouth

The installation should proceed.

edit 2:

As /op mentioned after everything works again reinstall the linux-image-generic package to update the kernel to the newest version:

sudo apt-get install linux-image-generic


So, MAAS 2.6 has an ARM64 Image selectable in the Images section of Configuration.

The biggest issue with using Raspberry Pi's is getting them to PXE boot correctly.

You will need to follow a combination of tutorials:

Complete Phase 1 to configure your clients to PXE boot. Then you need to provide a suitable DHCP snippet and locate a number of different files in MAAS. Namely, I have not been able to figure out why the PI's timeout when attempting to boot to maas. According to tcpdump the MAAS server recieves the DHCP requests and responds but the pi's timeout. I have adjusted the timeout, other settings on the PI's bootconfig.txt to no avail.

Finally, I think the most difficult issue is power control. With no IPMI or IDRAC/KVM controls there is no way for MAAS to complete commissioning on its own without setting power control to manual. Which removes one of the key features you would want MAAS for.

If these two things can be resolved I think it will be fairly simple however, as of now I know of no functioning PI booting scheme using MAAS.


Scripting Directory and SubDirectory Creation Based on User Input

It doesn’t work this way because:

  The order of expansions is: brace expansion; tilde expansion, parameter and variable expansion, (…).
  [man bash, highlighting added]

Brace expansion happens before the variable is expanded and can only see {1..$user_input4}, which of course is not valid.

Another possible problem: If $user_input4 happens to be very big and you thus get a very long list of directory names you may exceed the shell’s ARG_MAX limit, which will make the command fail. You can use seq to create the number sequence, printf to create a zero-delimited list of arguments and xargs to call mkdir as often as necessary to work around that. Of course it’s save to use with a smaller number of arguments as well, so that’s the way to go if you’re dealing with both an unknown number and nasty vicious users:

printf 'Season%s\0' $(seq 1 $user_input4) | xargs -0 mkdir

If you want the number sequence to end at $user_input4 + 1, just replace the variable with the arithmetic expression $((user_input4 + 1)), e.g.:

printf 'Season%s\0' $(seq 1 $((user_input4 + 1))) | xargs -0 mkdir


Grub menu freezes after reboot but works fine on first launch

As it turned out this was caused by a USB dongle.


Glade, quickly and changing an image with code

The path you're giving set_from_file is relative to the glade file but not the python file. It's better to use full paths anyways as using relative paths often ends up having issues when you run the installed application. Quickly provides a nice helper function to give you the full path for a file found in the data/ folder. Try:

from test_lib.testconfig import get_data_file

[....]

    self.image = self.builder.get_object("image1")
    self.background = get_data_file("media/background.png")
    self.image.set_from_file(self.background)


Is it possible to use wine to run window games that is already installed on a external hard drive (and to install future software on the external)?

Depends on game. Most modern games require proper installation in the registry so it would be better to first install the game through Wine.

But if you know what keys game uses, you can easily import them inside Wine registry. It is simple ini-like text file $WINEPREFIX/system.reg and $WINEPREFIX/user.reg.

To use multiple drives, you have to tell Wine where are they located. This can be done in Wine configuration. Run winecfg and select Drives tab:

There, you can manage your drives.


Replace $ in terminal prompt with user@host when using SSH

PS1="/u@/h" will give you what you are asking for although I don't recommend that you do this as it will make it difficult to ascertain if you are in standard or superuser mode.

To change it back to the default for 16.04 (and earlier?) use PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$"

You can make changes permanent by editing  /etc/bash.bashrc and appending your changes with your favorite editor

Sources:
this page and testing.


Accidentally installed MariaDB over Mysql. How do I recover my Mysql databases?

I figured this out:

Copy the renamed folder (/var/lib/mysql_5.7) to a safe location. (If you preserve ownership & permissions you can probably skip fixing them in step 4.)
Uninstall MySQL and remove all mysql related folders from /var/lib/.
Reinstall MySQL.
Check permissions on the new /var/lib/mysql/ files & folders. If your backed up files don't match, fix them to match. (Mine was

chown -R mysql:mysql location_to_backed_up_folder/

chmod 750 location_to_backed_up_folder/mysql/ location_to_backed_up_folder/any_other_folders/

chmod 640 location_to_backed_up_folder/all_other_files
Stop mysql
Rename the backed up folder to "mysql"
Copy the backed up folder & files (preserving ownership & permissions) to /var/lib/

cp -aR location_of_backed_up_folder/ /var/lib/
Restart mysql


I can't open software updater and unity tweak tool on Ubuntu14.04

If you look at the top of the backtrace you will notice that UnityTweakTool is a Python 3 library. However your PYTHONPATH contains a lot of directories referring to your Python 2 installation. The problematic one is /usr/lib/python2.7/dist-packages, which causes the incompatible Python 2 version of the apt package to be picked up.

Try unsetting your PYTHONPATH or run as

sudo PYTHONPATH= unity-tweak-tool


Difference Between Ubuntu and Ubuntu-Gnome

Yes, it is. It's the same OS, but looking other.

Also, if you want to have GNOME (or other desktop environment - there are lots of them!) without installing system again it is possible and pretty easy. To see what desktop environments are available and how to install them you can head to What kinds of desktop environments and shells are available? .


Visited the link you provided... You're not following their directions exactly...

To install:

flatpak install flathub org.kde.kdenlive

To run:

flatpak run org.kde.kdenlive

I installed flatpak a few days ago, using sudo apt-get install flatpak with no issues. I have also installed and executed a couple of flatpak app packages... If all else fails flatpak --help.


Seamless Mode Not Working Correctly in Virtual Box

This appears to be a window manager issue. As a VirtualBox guest under Windows 7 Premium 64-bit, Ubuntu 12.04 64-bit has the problem mentioned: the Ubuntu background image remains displayed. Using Ubuntu 12.04 64-bit with the GNOME window manager (installed via Ubuntu Software Center), however, seamless mode works correctly. Using Xubuntu 12.04 64-bit (which uses the XFCE window manager instead of Unity), the seamless mode also works correctly. Thus only Unity experiences this problem.

Until the Unity team solves the issue, use the Ubuntu Software Center and type in 'gnome' and use it to install the GNOME Desktop Environment. At log-in time, click on the Ubuntu icon and select one of the GNOME choices [GNOME, GNOME Classic, or GNOME Classic (no effects)] for your session. Seamless mode works as intended.

Alternatively, use the Xubuntu distribution. Seamless mode also works as intended.


Boot into a Ubuntu live CD or USB flash drive, and run your command from there. This should fix the permissions on your root folder.

sudo chmod /path/to/root/ 755


How do I install MPlayer and MEncoder in Ubuntu 18.04.2?

Most of the program packages are in the repository universe.

faac is in the repository multiverse.

I did not find any package oggenc, but the package vorbis-tools contains the program oggenc.

So the following command line should work, when you have the repositories universe and multiverse. Universe is already there when you have installed Ubuntu.

sudo add-apt-repository multiverse
sudo apt update
sudo apt install ogmrip

If ogmrip is not fixing its dependencies, you can help it by installing the following packages,

sudo apt install mplayer mencoder mkvtoolnix vorbis-tools lame faac

A general way to install several multimedia tools is to install the meta-package 'restricted-extras'.

sudo add-apt-repository multiverse
sudo apt update
sudo apt install ubuntu-restricted-extras


What to know about turning ps3 into ubuntu desktop

The Playstation 3 was once able to boot into alternative OS' until Sony changed their firmware for the worse, so now you need to follow certain instructions to be able to boot from Ubuntu and other operating systems, hope this link helps: http://www.pshomebrew.net/wiki/Installing_Ubuntu_on_PS3


Ubuntu Desktop 17.04. on Kodi Krypton. Video is great, no audio though

Mike, Weird answer for you, and anyone else reading this.

I installed pavucontrol. For some reason the correct output being recognized after that program was installed solved the problem. Previously the HDMI output was not being recognized inside Kodi.


I'm not 100% certain whether you are saying Deja Dup syncs or backs up, but to clarify, it will create a real backup like you want.  It just uses Ubuntu One's cloud storage to store it's formatted backup files.

There are a couple ways to upload/download directly to/from Ubuntu One:

There's the web site itself which lets you upload and download files manually.
There's a web API that lets you upload and download files programatically.  There's a tutorial and sample script explaining how.  (This is what Deja Dup does behind the scenes.)


switching keyboad layout disables setxkbmap customizations

AFAIK with Ubuntu 13.10, They have changed the Unity/Gnome layout managing way. So it does support multiple input engines and moved the control of layout change shortcut to higher level (window manager/settings daemon).

setxkbmap works with the lower XKB level, settings daemon does not query for changes in the lower level. It just applies directly the settings stored in its database.

There two option which may help you getting that:

Store XKB setting (recommended)

gsettings set org.gnome.desktop.input-sources xkb-options "['lv3:caps_switch']"

Reference: How can I enable Ctrl+Alt+Backspace?
Add level 3 setup directly to us layout, as below:

    ...
    key <AB09> {        [    period,    greater         ]       };
    key <AB10> {        [     slash,    question        ]       };

    key <BKSL> {        [ backslash,         bar        ]       };

    include "level3(caps_switch)"
};

Then run sudo dpkg-reconfigure xkb-data, switch to another layout then back.


Related to How do I kill elasticsearch from the command line?

Your problem here is this particular line in the stop part:
    /bin/su -m $USER -c "pkill -9 -f java;"

because the user is:
USER=elasticsearch

and elasticsearch doesn't have permission to use pkill (only root has).
To fix this you can remove usage of elasticsearch for it (since you're running the command as root anyway) so it looks like this:
pkill -9 -f java;

this should work because you are already root user when running this command and don't need to run this command as another user (no /bin/su needed)


How to enable Silverlight on Chrome 39 or newer

It will not work in Chrome in Linux,   but there are two other ways.

The first is the easiest: switch to another browser which pipelight supports, like Firefox.

The second is somewhat harder and requires a (legal) copy of Windows. You can put Windows inside a virtual box or dual boot it. On the Internet are many tutorials which explains how to do this.


will I lose my data in other partitions when I install Ubuntu alongside Windows?

If you do it correctly NO data is deleted during installation of Ubuntu. There are just 2 steps in creating a dual boot:

Create unallocated space. Use a gParted live cd or partition magic to do this.
Use the unallocated space to install Ubuntu during the installation fase.

If done with these 2 steps the only partition that is getting changed is the unallocated one.

But as always: when using an operating system making a regular backup is the best method to keep your data safe. When changing partitions (or any alteration to your machine) it is wise to make another backup before committing these changes. And of course make sure the backup is indeed correctly created (so it can be restored if need be). Safety first.


Install Ubuntu directly off a hard drive and dual boot

No. You cannot install Ubuntu in the same hard disk unless you have some external storage device(flash drive, CD/DVD, External hard drive) because you need an external bootable media which should contain the files required to install Ubuntu.


How to enter a chroot without using sudo?

You can look at the schroot  package. It provides a way to grant user access to one or more chroots on your system. The configuration allows each chroot to be accessed by only certain users or groups and allows bind-mounting of directories from the host system into each chroot as desired.

Once it is configured, it is easy for an ordinary user with no root privileges to run

schroot -c chroot1 -- cmd ...

For some more description and examples of how to configure schroot, read

Schroot - Debian Wiki
schroot - chroot for any users


convert command of ImageMagick-6 does not run via Run Bash

I have managed to solve this.
When I ran the executable (.sh) file using "Run" it created the image in the same directory as the executable called.
However, when I called the executable using Run Bash or Open with bash in  Firefox (web browser, see image) the image was created but in the user's home directory.
Firefox - open with bash
The solution is use a fully qualified path for the image file with the convert command. See the script below. Thank you.
#!/bin/bash
echo "Running!" > /home/../apache_status_label.txt;
convert \label:@/home/../apache_status_label.txt   /home/../apache_status_label.gif;


How can I make Compiz work with MATE 1.6?

Just tried this and worked for me:

  Use Synaptic or Apt in terminal (sudo apt-get install) to install the following packages: compiz, libdecoration0-dev,
  compizconfig-settings-manager, compiz-plugins Do not bother to install
  install the fusion-icon package, Compiz Fusion Icon doesn’t work
  anymore in Mate 1.6
  To set-up compiz to start automatically at login go to Start-up Applications (from Control Centre and add a new entire (click add) and
  write "Compiz" to name and enter "compiz --replace" in the command
  field (without the quotes). For  manually start use command "compiz
  --replace" in terminal.
  Replace "marco" with "compiz" windowmanager to lower the CPU usage. Do this with dconf Editor (install it first). Navigate to org > mate >
  desktop > session > required-components > windowmanager, click on
  “marco” and modify it. You can use also next command in terminal: sudo
  gsettings set org.mate.desktop.session.required-components
  windowmanager compiz
  Open CompizConfig Settings Manager and be sure you ticked “Window Decoration”, “Move Window”and any other functions you may find useful.
  Go to General section, check "Gnome Compatibility", open it and  go to Commands tab and replace (in all 3 command lines) the word "gnome"
  with 'mate". Go back and test this: press Prt Sc key.  Now you can
  take a dessktop screenshot.

  Activating composition you may experience some freezing or resets of
  the X system due to the video card. Tray to change your video driver.
  Works for me.

Source: http://community.linuxmint.com/tutorial/view/1298


How to add 'awesome' selection in LightDM?

Apparently, it looks like a bug, although some of the users found that switching NoDisplay=true to NoDisplay=false in /usr/share/xsessions/awesome.desktop was enough (see the comments under the bug description). If this solution works out for you, can you also contribute to the bug report in the link given? :)


How to disable blinking cursor in Gnome 3.8?

Try (in a terminal):

gsettings set org.gnome.desktop.interface cursor-blink false

As your can see the key has been moved to org.gnome.desktop.interface (via GSettings), so you can access it via dconf-editor if you prefer so.


Installing software from package sources Vs downloadable .deb files

Could be any number of reasons, depends on the user and source.

Open source. The packages in the Ubuntu repositories are open source. The others you mentioned may be packaged in a .deb, but not open source.
Patches. The kernel comes to mind here, you can download a kernel from several locations, but it may not have the Ubuntu patches.
Compatibility. Just because it is a .deb does not mean it will be compatible with Ubuntu.
Quality. This overlaps with #3 - one can convert a rpm -> deb with alien for example, but where is the quality control ?
Trust - This depends on your personal paranoia threshold. There are users with enough paranoia not to trust even the Ubuntu repositories. Others trust Ubuntu, but not a closed source binary blob.
Support. You will get minimal or no support from Ubuntu on .deb from elsewhere. Less with the closed source blobs (it varies with popularity of the product).

My general advice is that if is in the repositories, you are going to be better off using the Ubuntu repositories.

If not, IMO, you are better off compiling from source. Implied in doing so is at least some cursory review of the code. yes it is unrealistic to expect end users be able to jump in and start reviewing source code, but nothing wrong with getting a start. You will pick up on major problems (the code will not compile) off the bat.

If the source code is not available, and all you have is a .deb it comes down to trust.


There's no need to uninstall any package, since fontconfig provides a way to blacklist some fonts or paths, and exclude them as if they didn't exist in the system.

You just need to add a few lines like these in system or user configuration:

<selectfont>
    <rejectfont>
    <glob>/usr/share/fonts/truetype/fonts-beng-extra/*</glob>
    </rejectfont>
</selectfont>

Where to put configuration

To disable those fonts system wide you put those instructions in /etc/fonts/local.conf
To disable those fonts for just one user you put them in ~/.config/fontconfig/fonts.conf

To set the default behaviour for each new user, put this configuration in /etc/skel/.config/fontconfig/fonts.conf.

This way unwanted fonts are disabled by default, but users can still enable them back editing their own fontconfig configuration file (this last approach seems more versatile for my use case).

Obviously if you put this configuration in /etc/skel/ it won't affect existing users. They need to manually copy it in their own home directories to make it work.

Example configuration

Here's my full fonts.conf file, that disable all non-latin fonts I don't need. It lives in ~/.config/fontconfig/fonts.conf.

This not only make fonts list shorter, but also make some applications such as LibreOffice a little faster, since they need to cope with less fonts to preview, and user can still enable some fonts for him/herself if needed, without affecting other users and without administrator privileges.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <!-- disable non-latin fonts -->
    <selectfont>
        <rejectfont>
        <glob>/usr/share/fonts/opentype/malayalam/*</glob>
        <glob>/usr/share/fonts/opentype/noto/*CJK*</glob>
        <glob>/usr/share/fonts/truetype/abyssinica/*</glob>
        <glob>/usr/share/fonts/truetype/fonts-beng-extra/*</glob>
        <glob>/usr/share/fonts/truetype/fonts-deva-extra/*</glob>
        <glob>/usr/share/fonts/truetype/fonts-gujr-extra/*</glob>
        <glob>/usr/share/fonts/truetype/fonts-guru-extra/*</glob>
        <glob>/usr/share/fonts/truetype/fonts-kalapi/*</glob>
        <glob>/usr/share/fonts/truetype/fonts-orya-extra/*</glob>
        <glob>/usr/share/fonts/truetype/fonts-telu-extra/*</glob>
        <glob>/usr/share/fonts/truetype/Gargi/*</glob>
        <glob>/usr/share/fonts/truetype/Gubbi/*</glob>
        <glob>/usr/share/fonts/truetype/kacst/*</glob>
        <glob>/usr/share/fonts/truetype/kacst-one/*</glob>
        <glob>/usr/share/fonts/truetype/lao/*</glob>
        <glob>/usr/share/fonts/truetype/lohit*</glob>
        <glob>/usr/share/fonts/truetype/malayalam/*</glob>
        <glob>/usr/share/fonts/truetype/Nakula/*</glob>
        <glob>/usr/share/fonts/truetype/Navilu/*</glob>
        <glob>/usr/share/fonts/truetype/padauk/*</glob>
        <glob>/usr/share/fonts/truetype/pagul/*</glob>
        <glob>/usr/share/fonts/truetype/Sahadeva/*</glob>
        <glob>/usr/share/fonts/truetype/samyak/*</glob>
        <glob>/usr/share/fonts/truetype/samyak-fonts/*</glob>
        <glob>/usr/share/fonts/truetype/Sarai/*</glob>
        <glob>/usr/share/fonts/truetype/sinhala/*</glob>
        <glob>/usr/share/fonts/truetype/tibetan-machine/*</glob>
        <glob>/usr/share/fonts/truetype/tlwg/*</glob>
        <glob>/usr/share/fonts/truetype/ttf-khmeros-core/*</glob>
        </rejectfont>
    </selectfont>
</fontconfig>

References

https://wiki.archlinux.org/index.php/Font_configuration
http://manpages.ubuntu.com/manpages/xenial/man5/fonts-conf.5.html
This answer has been inspired by this blog post


Single display unable to set 5120x1440 resolution

For those finding this now, these steps worked on Intel Iris Graphics 540 and 5120x1440 on a Samsung G9.
Modifying the commands used here - How do I change the screen resolution using Ubuntu command line?
Create a mode string for 5120x1440 at 30HZ (I'm using HDMI and HDMI 1.4 supports 30HZ only at 5120x1440)
$ cvt 5120 1440 30

# 5120x1440 29.96 Hz (CVT) hsync: 43.98 kHz; pclk: 292.75 MHz
Modeline "5120x1440_30.00"  292.75  5120 5360 5888 6656  1440 1443 1453 1468 -hsync +vsync

Copy everything after Modeline and for xrandr, like this:
$ sudo xrandr --newmode "5120x1440_30.00" 292.75  5120 5360 5888 6656  1440 1443 1453 1468 -hsync +vsync

Find the current display, in my case HDMI-1 is returned:
$ xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/"
HDMI-1

Add the mode to the display (replace HDMI-1 with whatever was returned from the last command):
$ sudo xrandr --addmode HDMI-1 5120x1440_30.00

You can now change the resolution to the new mode in the graphics settings (or change by command line).


For short, obsolete packages are not in any repository on your list anymore. Orphaned packages are automatic dependencies whose "dependants" have all been uninstalled. And apt-get autoremove only considers orphaned packages that were installed by apt to resolve dependencies.

Obsolete packages

As you probably know, apt keeps a list of repositories it can fetch packages from. But sometimes, packages are removed from a repository. Maybe nobody takes care of (maintains) the package any more, and the (very) old last version available has become a security risk. Or maybe the program has changed its name, the package names were changed accordingly and the old packages under the old name are removed. There are other possible reasons why a package is removed from a repository, as well.

If a package is installed on your system, but can no longer be found in any of the repositories your apt has on its lists, that package is considered "obsolete".

Orphaned packages

As you probably know as well, apt can manage dependencies between packages. Say for example, a program called "greatprogram" needs a library called "greatlibrary" to work. So, the package containing greatlibrary can be marked as a automatic dependency of the package containing greatprogram. You won't be able to install the greatprogram package, unless greatlibrary is already installed (or will be installed with the same command).

But what if you uninstall greatprogram on a later day and leave greatlibrary behind? In that case, once at least one other package needed greatlibrary as a dependency, but now no other package does any longer. Those "left behind" packages are called "orphaned packages".

apt-get autoremove

Still another fact you probably know, is that apt can resolve dependencies automatically for you. Say you want to install the before mentioned greatprogram, but don't have greatlibrary installed yet. apt-get "notices" that there is an unsatisfied dependency and offers you to install greatlibrary as well.

apt-get autoremove offers you to remove any orphaned packages that have been installed this way to resolve a dependency. Orphaned packages that have been installed in other ways are not in autoremove's list. If, say, you installed greatlibrary yourself before installing greatprogram, and on a later day uninstall greatprogram, greatlibrary would still be orphaned. But autoremove would not take care of it, because it has not been installed automatically as a result of an resolved dependency.


Nano syntax highlighting for C# and/or ASP.Net

Replicating my answer.

Using the Java example from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting, you can try to add something like the following into your ~/.nanorc:

syntax "C# source" "\.cs$"
color green "\<(bool|byte|sbyte|char|decimal|double|float|int|uint|long|ulong|new|object|short|ushort|string|base|this|void)\>"
color red "\<(as|break|case|catch|checked|continue|default|do|else|finally|fixed|for|foreach|goto|if|is|lock|return|switch|throw|try|unchecked|while)\>"
color cyan "\<(abstract|class|const|delegate|enum|event|explicit|extern|implicit|in|internal|interface|namespace|operator|out|override|params|private|protected|public|readonly|ref|sealed|sizeof|static|struct|typeof|using|virtual|volatile)\>"
color red ""[^\"]*""
color yellow "\<(true|false|null)\>"
color blue "//.*"
color blue start="/\*" end="\*/"
color brightblue start="/\*\*" end="\*/"
color brightgreen,green " +$"


how to replace lubuntu with ubuntu in a dual booted device (windows 8 and lubuntu 13)

You should be able to go from Lubuntu to Ubuntu in place, without reinstalling: https://askubuntu.com/a/361603/456122


Other than in Ubuntu the leightweight Lubuntu desktop does not include a VNC server by default. We will have to install and configure a VNC server before we are able to view our Lubuntu desktop remotely.

This can be vino  (the Ubuntu default VNC server), or any other VNC server (I made good experiences with x11vnc ). A VNC server can be installed and configured through a SSH session in case you have no physical access to your server.

See also:

Ubuntu Wiki: Lubuntu Remote Desktop
What free Remote Desktop (server) solutions are there?
Run RDP server on Ubuntu 12.10 for access via RDP (e.g. from Windows)


my computer becomes freezes after entering password

With the information given, it is difficult to know, but it sounds like it could be an xserver problem.

Try booting up again, then when the grub menu shows, press the option to edit (I think this is 'e', but not certain, but you will see it in the menu) then when on the edit screen, find the line that contains vmlinuz (usually ending in quiet splash), and add the word nomodeset to the end of it.  Then return to the boot menu and continue booting.

Note that if you are not dual booting, the menu may not show - so after the bios information shows on boot-up, press the shift key and this should show it.


Running plexmediaserver on an OrangePi + Ubuntu 16.04. It works but the plexmediaserver service disables the router's wifi on boot. What is happening?

Apparently this router is particularly sensitive to DLNA and that might be what's causing issues. I turned off Plex's DLNA feature and it seems everything is okay.

https://forums.plex.tv/discussion/104297/plex-taking-down-my-router/p2


If you used the command...

sudo apt-get install lamp-server

phpMyAdmin will not automatically install.

You need to run:

sudo apt-get install phpmyadmin

And for future reference, I install lamp servers using this command:

sudo apt-get install lamp-server^ phpmyadmin


When the VM networking is based on NAT, you need to use port forwarding to remotely access the VM (here named ubuntu).

VBoxManage modifyvm "ubuntu" --natpf1 "guestssh,tcp,,2222,,22"

Then you'll be able to access the VM by connecting to the host on port 2222, eg:

ssh -p 2222 user@host


Brightness is reset to maximum after waking up from suspend or lock screen

For waking up from suspension, I create the following script /etc/pm/sleep.d/brightness:

#!/bin/sh
case "$1" in
    resume|thaw)
        echo 170 > /sys/class/backlight/intel_backlight/brightness
        ;;
esac

And the permission of the script is -rwxr-xr-x. This should also solve your problem.

But if the screen is dimmed, the brightness is set to maximum after recovering from the dimming.

This is really a bug which should be fixed.

I am using ubuntu 64 bit 14.04 with a Thinkpad T440s.


What are point releases in LTS versions?

If you are familiar with the way Microsoft Windows manages its versions, you can relate point releases to Service packs that are released after a while when the product is released to the general consumption.

The basic idea for having point releases in LTS versions is to ensure that the LTS version works on newer hardware and doesn't necessary have to download a huge amount of updates when freshly installed.

The point release essentially contains the bug fixes the version has gone since it was released to the public, which includes security fixes, package updates, translation packs updates, etc.

You can read Mark Shuttleworth's blog, where he talks about the point releases of 8.04. An excerpt from his blog that is relevant:

  These point releases will include support for new hardware as well as
  rolling up all the updates published in that series to date. So a
  fresh install of a point release will work on newer hardware and will
  also not require a big download of additional updates.


Ubuntu 16.04 sees Nvidia card, but does not acknowldge restricted drivers

Here is the workaround:

1. edit /etc/default/grub

Modify GRUB_CMDLINE_LINUX_DEFAULT to

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

This step is to prevent blank screen after logging in.

2. move nvidia library directories to /etc/ld.so.conf.d/nvidia.conf

The content of nvidia.conf is

/usr/lib/nvidia-390
/usr/lib32/nvidia-390

These directories depends on driver version on your computer.

3. create /etc/init.d/nvidia

To disable and enable nvidia runtime libraries.

#!/bin/sh
### BEGIN INIT INFO
# Provides:          nvidia
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     5
# Default-Stop:      0 6
# Short-Description: load/unload nvidia library
# Description:       load/unload nvidia library
### END INIT INFO

PRIME=$(prime-select query)
if [ "$PRIME" = "nvidia" ]; then
    exit 0
fi

case "$1" in
  start)
    sleep 10
    cd /etc/ld.so.conf.d
    mv nvidia.conf.bak nvidia.conf
    ldconfig
    nvidia-smi
    ;;
  stop)
    cd /etc/ld.so.conf.d
    mv nvidia.conf nvidia.conf.bak
    ldconfig
esac

4. execute update-rc.d nvidia defaults

You should find SXXnvidia in /etc/rc5.d/ and KXXnvidia in /etc/rc6.d/, /etc/rc0.d/.

Try to execute /etc/init.d/nvidia stop and nvidia-smi, you should see error messages of libraries not found.

Try to execute /etc/init.d/nvidia start, then nvidia-smi is fine again.

If everything is OK, you can reboot now. You are expected to login to desktop.

5. If anything goes wrong

The most possible problem is nvidia script not executed. If it happens, you can press Ctrl+Alt+F1 to tty mode, execute /etc/init.d/nvidia stop; reboot. Then you can go back to unity desktop to debug.

6. known side-effect

When use intel as prime GPU, unity-control-center(system settings) will be failed to start.

GLib-CRITICAL **: g_strsplit: assertion `string != NULL' failed.

Note: my system spec

# uname -r
4.13.0-32-generic
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:    16.04
Codename:   xenial
# dpkg -l | grep cuda
ii  cuda-9-0                                    9.0.176-1                                    amd64        CUDA 9.0 meta-package
ii  cuda-command-line-tools-9-0                 9.0.176-1                                    amd64        CUDA command-line tools
ii  cuda-core-9-0                               9.0.176-1                                    amd64        CUDA core tools
ii  cuda-cublas-9-0                             9.0.176.1-1                                  amd64        CUBLAS native runtime libraries
ii  cuda-cublas-dev-9-0                         9.0.176.1-1                                  amd64        CUBLAS native dev links, headers
ii  cuda-cudart-9-0                             9.0.176-1                                    amd64        CUDA Runtime native Libraries
ii  cuda-cudart-dev-9-0                         9.0.176-1                                    amd64        CUDA Runtime native dev links, headers
ii  cuda-cufft-9-0                              9.0.176-1                                    amd64        CUFFT native runtime libraries
ii  cuda-cufft-dev-9-0                          9.0.176-1                                    amd64        CUFFT native dev links, headers
ii  cuda-curand-9-0                             9.0.176-1                                    amd64        CURAND native runtime libraries
ii  cuda-curand-dev-9-0                         9.0.176-1                                    amd64        CURAND native dev links, headers
ii  cuda-cusolver-9-0                           9.0.176-1                                    amd64        CUDA solver native runtime libraries
ii  cuda-cusolver-dev-9-0                       9.0.176-1                                    amd64        CUDA solver native dev links, headers
ii  cuda-cusparse-9-0                           9.0.176-1                                    amd64        CUSPARSE native runtime libraries
ii  cuda-cusparse-dev-9-0                       9.0.176-1                                    amd64        CUSPARSE native dev links, headers
ii  cuda-demo-suite-9-0                         9.0.176-1                                    amd64        Demo suite for CUDA
ii  cuda-documentation-9-0                      9.0.176-1                                    amd64        CUDA documentation
ii  cuda-driver-dev-9-0                         9.0.176-1                                    amd64        CUDA Driver native dev stub library
ii  cuda-drivers                                390.12-1                                     amd64        CUDA Driver meta-package
ii  cuda-libraries-9-0                          9.0.176-1                                    amd64        CUDA Libraries 9.0 meta-package
ii  cuda-libraries-dev-9-0                      9.0.176-1                                    amd64        CUDA Libraries 9.0 development meta-package
ii  cuda-license-9-0                            9.0.176-1                                    amd64        CUDA licenses
ii  cuda-misc-headers-9-0                       9.0.176-1                                    amd64        CUDA miscellaneous headers
ii  cuda-npp-9-0                                9.0.176-1                                    amd64        NPP native runtime libraries
ii  cuda-npp-dev-9-0                            9.0.176-1                                    amd64        NPP native dev links, headers
ii  cuda-nvgraph-9-0                            9.0.176-1                                    amd64        NVGRAPH native runtime libraries
ii  cuda-nvgraph-dev-9-0                        9.0.176-1                                    amd64        NVGRAPH native dev links, headers
ii  cuda-nvml-dev-9-0                           9.0.176-1                                    amd64        NVML native dev links, headers
ii  cuda-nvrtc-9-0                              9.0.176-1                                    amd64        NVRTC native runtime libraries
ii  cuda-nvrtc-dev-9-0                          9.0.176-1                                    amd64        NVRTC native dev links, headers
ii  cuda-repo-ubuntu1604                        9.1.85-1                                     amd64        cuda repository configuration files
ii  cuda-runtime-9-0                            9.0.176-1                                    amd64        CUDA Runtime 9.0 meta-package
ii  cuda-samples-9-0                            9.0.176-1                                    amd64        CUDA example applications
ii  cuda-toolkit-9-0                            9.0.176-1                                    amd64        CUDA Toolkit 9.0 meta-package
ii  cuda-visual-tools-9-0                       9.0.176-1                                    amd64        CUDA visual tools
ii  libcuda1-390                                390.12-0ubuntu1                              amd64        NVIDIA CUDA runtime library
ii  libcudnn7                                   7.0.5.15-1+cuda9.0                           amd64        cuDNN runtime libraries
ii  libcudnn7-dev                               7.0.5.15-1+cuda9.0                           amd64        cuDNN development libraries and headers
# dpkg -l | grep nvidia
ii  nvidia-390                                  390.12-0ubuntu1                              amd64        NVIDIA binary driver - version 390.12
ii  nvidia-390-dev                              390.12-0ubuntu1                              amd64        NVIDIA binary Xorg driver development files
ii  nvidia-modprobe                             390.12-0ubuntu1                              amd64        Load the NVIDIA kernel driver and create device files
ii  nvidia-opencl-icd-390                       390.12-0ubuntu1                              amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                0.8.2                                        amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                             390.12-0ubuntu1                              amd64        Tool for configuring the NVIDIA graphics driver


I'm sorry to hear that you are experiencing issues with the installation process of Ubuntu, but I would need to get some more information to help troubleshoot the problem and assist you further with this... At what stage of the installation does it fail? Did you burn the disc image correctly? Using what tool? Please provide me this information in a new reply.

Thank you for your valuable time and your great patience.


"Open in Terminal" from Nautilus not working

There's no need to edit bashrc, or other system settings, you can just create a shortcut for whatever you need and assign a key combination for it.

Go to Desktop Settings (depends what desktop environment you use) find keyboard shortcuts there you should see a list of already assigned commands in your system and you should see an option to add the custom shortcut.

For example I want my terminal to open with a specific directory, then add this command as a shortcut:

gnome-terminal -w /path/to/folder

And assign the key combination let's say Ctrl+Alt+H and save it, now when you press it, it'll launch terminal with that directory.

Or you can use -e option to launch File Manager GUI

gnome-terminal -e  NameOfFileManager


How do I know when docker pull updates an image?

You can just check if the string "Image is up to date" is not present:

...
export LANG=C
if ! docker pull linuxserver/sonarr | grep "Image is up to date"; then
    docker stop sonarr
    docker rm sonarr
    ./run-sonarr.sh
fi
...


What are hostname and domain name doing in linux system?

You would normally have to run a DNS server to get a domain name, which normally is not done for a personal VM. You can use the IP address of the VM to connect to it from inside your LAN, or localhost to connect to itself from within you VM. If you really want to, you can edit your hosts file on your box (not in the VM, but in the OS that is running the VM) to contain a custom hostname for your VM, basically, it'll map the hostname to the IP of the VM.


Screen turns black during the installation of Ubuntu 13.04

Could you try to add the following boot options? (press e when you see that screen and add):

acpi_backlight=vendor acpi_osi=Linux video.use_bios_initial_backlight=0

Because, maybe the monitor backlight is turned off.


How do I get started setting up a Small Office / Home Office?

Three ways to do this from where I stand.

Setup the server as the external facing router. Will require two nics, but will give your server external face to the internet. (more complicated, not going to recommend unless you have a specific reason)
Use the DMZ feature of your router to open all ports to the server.
Open each port as required. This is the best option as you won't have to worry too much about securing your server.

Of course, you'd install samba or configure iptables as necessary.


nVidia prime - can't run external monitor on Asus Zenbook

SOLVED. Problem was that HDMI monitor was disabled by hardware (function key). That is why I could not configure it from KDE display settings. This function key (Fn+F8) doesn't work after clean Kubuntu 16.04 installation. You must edit /etc/default/grub and add empty acpi_osi=. Something like:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=". Then call sudo update-grub

Better also create file /usr/share/X11/xorg.conf.d/20-backlight.conf with content:

Section "Device"
    Identifier "card0"
    Driver "intel"
    Option "Backlight" "intel_backlight"
    BusID "PCI:0:2:0"
EndSection

That will enable brightness control function keys too


Can not login to SDDM using fingerprint on Kubuntu 20.10

I think you need to add this, but don't remove the pam_fprintd.so one:
auth            sufficient      pam_unix.so try_first_pass likeauth nullok


Recover accidentally deleted function that is loaded in bash

Turns out, it's very simple. Just had to call this in my current session:

typeset -f

Turns out typeset is obsolete (run help typeset). Call this instead:

declare -f

I hope it helps someone - I got really scared.


You were correct when you thought it was a permissions problem.

Either use 'sudo' to run the software that's supposed to talk with the device, or run the following command:

sudo chmod 0666 /dev/ttyUSB

when the device is plugged in.  The above command will force the permissions on the device to allow read/write everyone.

The problem is that you'll have to run the above command EVERY TIME you unplug and reconnect the device.


No sound on powerpc, soundcard not detected

The problem was that I had failed to consider that I might have both the wrong sound module loaded AND one of the volume controls muted. Thus when I tried with the other sound modules I did not at the same time re-try with alsamixer. (Reading above, see that alsamixer would not show any controls with snd-powermac loaded).

The solution was to ensure that these modules were loaded:

snd-aoa
snd-aoa-fabric-layout
snd-aoa-soundbus
snd-aoa-i2sbus
snd-aoa-codec-tas

and this one blacklisted:

snd-powermac

i.e. the opposite of the configuration installed by default.

Details here: https://wiki.ubuntu.com/PowerPCFAQ#Why_do_I_have_no_sound.3F

How?

In /etc/modprobe.d/blacklist.local.conf comment out the blacklisted modules that are in fact required to be loaded:

blacklist snd-aoa
blacklist snd-aoa-fabric-layout
blacklist snd-aoa-soundbus
blacklist snd-aoa-i2sbus
blacklist snd-aoa-codec-tas

and uncomment the following:

# blacklist snd-powermac

In /etc/modules add:

snd-aoa
snd-aoa-fabric-layout
snd-aoa-soundbus
snd-aoa-i2sbus
snd-aoa-codec-tas

Then, from a terminal I opened alsamixer, which now displayed normally. I toggled "PCM" to unmuted by selecting it and typing "m", then crucially I did the same with "Headphone". Without this last step there was still no sound, although what this has to do with it I don't know as I don't have any headphones attached.

Anyway, that worked.


Need firmware for my Broadcom 43xx wireless adapter

Installing the firmware-b43-installer package should provide the necessary firmwares.

apt-get install firmware-b43-installer


Chances are that the install used very generic drivers which allowed the use of the devices and they are no longer being utilized. There's usually support for wired internet at the point you're at and is how I remedied this in the past. If you plug in an active ethernet cord and then search out Additional Drivers .. for me, using Xubuntu 12.04, it's in the Xubuntu Menu under settings but I believe in newer, Unity powered Ubuntu you can search out Software Sources and choose the "Additional Drivers" tab within that. The rest should be straight forward so long as you have some form of connectivity.

[EDIT] Since starting to type this, I see a comment saying you literally have no input control, either. If this truly is a brand new install, although I hate saying this, you may want to run the install again, with the wired connection in (assuming you have access to one).

Also, you will probably have to download from AMD to get your graphics up and running at full potential. See here: http://support.amd.com/en-us/download/desktop?os=Linux+x86#amd-catalyst-packages


Problem computer not detecting graphics card

Steps to do:
1- Uninstall Ubuntu
2- Reinstall Ubuntu on a separate drive instead of installing side by side

Hopefully, it's gonna help you!


PATH is not affected by .pam_environment

I think that using $PATH variable inside the scope of /etc/environment or ~/.pam_environment does not get resolved, but assigned just as is literally.

In fact I see using $PATH or any variable inside ~/.pam_environment being discouraged on most post I read like here: Why doesn't my environment variable get set.

So I don't really know why here (Session-wide environment variables) they tell to use $PATH in it.

I know that Debian removed the parsing of the local ~/.pam_environment as it is a high security risk.

Anyway for my understanding the two files /etc/environment and ~/.pam_environment use a simpler syntax (simple KEY=VAL pairs for each line) then /etc/security/pam_env.conf (VARIABLE [DEFAULT=[value]] [OVERRIDE=[value]]). So perhaps no reference to variable can be made at all inside them.


I'm using Wine to run Windows Steam and I'm getting errors

Try using the latest Wine Staging. Wine Staging is a special wine version containing bug fixes and features that are not yet available in regular wine versions.

To install, run the following commands from a terminal, one line after each other.

$ sudo add-apt-repository ppa:pipelight/stable
$ sudo apt-get update
$ sudo apt-get install --install-recommends wine-staging

If you want to avoid typing the full path each time you can additionally install the wine-staging-compat package which provides compatibility symlinks:

$ sudo apt-get install wine-staging-compat


Stopping lightdm service is giving black screen, can't install nVidia GeForce GTX 960 drivers

Try just using the system settings in Unity to change your display drivers. You can go to your Dash and search for Additional Drivers. That should list what alternative drivers are available for your hardware, and you shouldn't have to manually stop and start lightdm.


Weird behavior when overriding gnome alert styling?

After installing i3 and testing with different notification daemons, It's seems that the notification you're receiving are from dunst notification daemon.

Simply removing it should fix the issue.

sudo apt-get --purge autoremove dunst

is the command you need to execute in a terminal.

Check the screenshot of dunst http://knopwob.org/dunst/screenshots.html


Ubuntu 13.04 Bootable USB Drive- Desktop not responding

Not complete answer posted as comment 19 May 2013
Have the issue as well and did think it strange. Not until reading this realised icons for "install Ubuntu" is missing as well as no right click options on desktop. Have not got an answer but searching Ask Ubuntu does go towards confirming this is a bug. Look at these Ask Ubuntu search results for to start searching for pointers/answers. Maybe searching Launchpad may show others are experiencing the same and may have workarounds or solutions that have not been posted here or Ubuntu Forums yet.

Conclusion posted 11 August 2013
Did acknowledge i would be back and doing a clean up found your unanswered question and request in comment. "A promise made is a debt unpaid"
Can confirm the highly unusual symptoms described in question only happened from live session when trying Ubuntu 13.04. On installing Ubuntu (which i was a bit dubious of doing but was very surprised at results) and then updating and upgrading 13.04 has run for me very nearly flawlessy and very responsive due to using highest system specs i have had liberty of using on PC. Looking forward to 13.10 already... Ubuntu 13.04 is definitely the most polished release from Ubuntu so far.


Open System Settings > Keyboard Layout and select a layout that matches your keyboard.


You should use a modified xorg.conf, where you insert your two GPUs as "Section "Device" "  and then bind the Displays via "Section "Monitor"" and "Section "Screen"" to the different GPUs. For further information i recommend this article ( https://wiki.archlinux.org/index.php/xorg_multiseat ) which should work for Ubuntu as well, you just need to change the Section "Input" so you don't get a 'real' multi seat. And instead of the provided Section "ServerFlags" i would use something like:
Section "ServerLayout"
    Identifier      "MainDisplay"
    Screen          "screen0"       0                   0 for your first display, depending on how you named the section
    Screen          "screen1"       0                   1 #for your second display, depending on how you named the section
    InputDevice     "mouse0"        "CorePointer" #change it to your mouse identifier
    InputDevice     "keyboard0"     "CoreKeyboard" #change it to your keyboard identifier
    Option "Clone" "off"

EndSection
You should, instead of creating an new xorg.conf, edit a automatic generated one.


Old post but if people are looking around for help this may help.  Take a look at this thread: https://ubuntuforums.org/showthread.php?t=2188370   “GA-970A-DS3P revision 1 no usb 3.0”

  Here is my updated fix

  First enable iommu in the uefi by restarting your computer and
  pressing delete to enter the uefi

  plug your usb mouse, keyboard and thumbdrive in usb 2 ports.

  save and exit the uefi

  Then In Ubuntu:

  press Ctrl+Alt+T to open up a terminal

  run the following command: sudo gedit /etc/default/grub

  Only edit the empty quotes in this line to read:
  GRUB_CMDLINE_LINUX="iommu=soft"

  save changes to grub and exit gedit and the terminal

  Open up a new terminal with ctrl+alt+t

  run the following command: sudo update-grub

  then exit the terminal using this command: exit

  Restart your computer press delete to get back into the uefi

  Disable iommu in bios, load optimized defaults and restart.

  usb, 2.0 usb 3.0 and networking all work now in Ubuntu, and disabling
  iommu in bios may also help improve your boot times.


How can I download an entire playlist from youtube even it exceeds 25 videos?

Based on the answer you linked, here are clear instructions on using youtube-dl

First remove any installed version

 sudo apt-get purge youtube-dl

If you downloaded from the link run

sudo rm /usr/local/bin/youtube-dl

Now download the latest file to /usr/local/bin (newer one than the one in the link)

sudo wget https://yt-dl.org/downloads/2015.11.27.1/youtube-dl -O /usr/local/bin/youtube-dl

Now give it permissions

sudo chmod a+rx /usr/local/bin/youtube-dl

Here is a test command to download from a nice Linux based channel, Linux Scoop (get the url of the page you want to download), and run youtube-dl followed by the page

youtube-dl https://www.youtube.com/playlist?list=PLKopOf5__2tjZ3oHnreRYjxGW_7yXV0OS

You can check for updates to this non repository version by running

youtube-dl -U

To see a list of all commands in the terminal, you can run

youtube-dl --help

For more detailed documentation go here.

Tested on 14.04.


persistent popup icon - like a paw print

thank you for the suggestions. I found it ... it is the backlit keyboard icon for the Dell XPS. I don't know why it keeps flashing, but seems to be much discussion on Dell websites related to problems with this function.

the icon is similar to the image on the F6 key on the keyboard.


Deskop shows green dots and skip some letter after upgrading from Ubuntu 19.10 to 20.04

That is the exact same issue I'm having. Wasn't an issue before the upgrade to 20.04. I don't see any errors being logged that relates to this issue.

Switching to Wayland solves the issue. Logging out and using Xorg, I have the exact same issue again. Are you by any chance on a Dell XPS? I've seen a few graphical issues with Ubuntu 20.04 on XPS (only when upgrading, not on fresh installs) and most of them have be solved by switching to Wayland.


Screen is unreadable on fresh install with GTX 660 TI

Actually I've solved it - the proprietary driver was installed. What was screwing it up was that I had a second monitor of a different resolution plugged into an hdmi port on the same card. I disconnected the second monitor, rebooted and got a proper display. Reconnected the second monitor and let Ubuntu detect it normally and all is now well


wacom bamboo connect CTL470 "no tablet detected..."

If it's a recent tablet (2011 model) then you need to install a driver patch to make it work.

Have a look at this page:
http://ubuntuforums.org/showthread.php?t=1515562

Specifically Appendix 3 which is near the bottom of the first post.

I'll copy and paste it here but you'll want to find it on the original page to get the links you need.

BTW the link for file you have to download isn't that easy to see but it is there!

I've also removed the stuff about working out which kernel you have as it's almost certainly irrelevant to you.

After downloading the file to you desktop just copy and paste the lines of code into the terminal, reboot and you should be good to go (watch out of lines that wrap, they should all be single lines).

"
Appendix 3: BambooPT models released October 2011 (DD,DE,DF) - Natty (11.04) or later
Download onto the Desktop Chris' patch from the third post here. This is the testing version so we'll have to wait until it is submitted to the kernel to see if we need to change it to that version. But this should get you up and running. We'll also modify his instructions a bit.

Code:

cd Desktop
sudo apt-get update
sudo apt-get install build-essential libx11-dev libxi-dev x11proto-input-dev xserver-xorg-dev libxrandr-dev libncurses5-dev autoconf libtool
sudo apt-get upgrade
gzip -dc wacom-bamboo.tar.gz | tar xvof -
cd wacom
make -C /lib/modules/$(uname -r)/build SUBDIRS=$(pwd) modules
sudo cp ./wacom.ko /lib/modules/`uname -r`/kernel/drivers/input/tablet/wacom.ko
sudo depmod -a


Can I use 24GB SSD of utrabook s56c for Ubuntu like Windows 8?

Yes you can. In fact I'm writing this on an Asus S56C now running Ubuntu 15.04. I've upgraded the SSD to 120GB and it runs really well. As the 24GB is quite small I would suggest putting the /home or /usr directory on the second HDD. You will need to disable secure boot and manually setup the partitions to handle the UEFI. There is a good write up here.

http://www.tecmint.com/ubuntu-15-04-installation-on-uefi-firmware/


SSH problems (ssh_exchange_identification: read: Connection reset by peer)

Looks like I may have tracked this down to a network device no longer being sane.


Ubuntu 14 to 15 upgrade broken but now fixed, or is it

If you are ok with your system that is the best thing. Most failures leave clues so I would not be unnecessarily concerned.


Where can I find a Spotify .deb package?

It is available from spotify repo http://repository.spotify.com. Just follow this article: http://linuxhub.net/2010/07/linux-gets-spotify-love-install-spotify-in-ubuntu/.

Please note that the first step in the above url is sudo gedit /etc/apt/sources.list .

If the instructions on above url  fails then you can directly download the .deb package from http://repository.spotify.com/pool/non-free/s/

Hope this helps.


Unable to run executable from mounted flashdrive on Chromebook

Assuming your file permissions allow execution, check the mount options, and ensure that the USB device does NOT have the noexe set, preventing execution.  Type mount, and check the device options.  They are usually being set in the file /etc/fstab.  Remove the unwanted options there.
    **
Look to the Chrome OS side, since the Ubuntu fstab doesn't look like it is in use.  Don't know about Chrome OS, but Gnome also can be a source of mounts (typically putting them under /media...


Best tool to Install Linux onto USB using Windows?

For me I always use UNetbootin it's fast and good one


How to check programmatically if systemd-timesyncd has synced successfully

From this link ( systemd-timesyncd.service man page):

/var/lib/systemd/timesync/clock

The modification time ("mtime") of this file indicates the timestamp of the last successful synchronization (or at least the systemd build date, in case synchronization was not possible). It is used to ensure that the system clock remains roughly monotonic across reboots, in case no local RTC is available.

/run/systemd/timesync/synchronized

A file that is touched on each successful synchronization, to assist systemd-time-wait-sync and other applications to detecting synchronization with accurate reference clocks.


how to display version only of Visual Studio Code

You can simply use head command like that

code --version | head -1

You would get :

knot22@juniper:~/Desktop/pile$ code --version | head -1
1.40.2
knot22@juniper:~/Desktop/pile$

Little explanation :

head -number_lines would display the first number_lines, so in your case, it would display just the 1rst line due to -1 option (e.g -3 would display 3 lines)


Problems with MySQL after moving data directory previously worked

Apologies after all that wrestling the solution was very simple.

When I formatted the disks (from the "disks" gui it helpfull created the root directory owned by me (so I could see things in it as well as root but no one else) and with permissions 700.

Makde that 755 owned by root and all was sweetness and light.

Typically I discovered that doing something else (trying to get Virtualbox to work).

So sorry for annoying everyone.


./run.sh: line 1: java: command not found

The way to find the problem:

run.sh is a script. So do a more run.sh to see what is on the line number is shows in the error.
The line will start with a command (java most likely).
Do a java --version.

If this errors out you did not install "java" and the program depends on it.

sudo apt-get install openjdk-8-jre

would install Open JDK 8 and make the script work.

There is also

sudo apt-get install openjdk-6-jre
sudo apt-get install openjdk-7-jre

for version 6 or 7 but 8 should be the best one.

For Ubuntu 14.04 you will need

sudo apt-get install openjdk-6-jre


I posted the same question on The Language Archive's forum pages.
This post presented a workaround, that enables me to start the program. Seemingly it works now.


Ubuntu 13.04 stuck on shutdown due to bbswitch

I had a similar problem with my xps15. Try editing /etc/bumblebee/bumblebee.conf and changing:

TrunCardOffAtExit=false

To:

TurnCardOffAtExit=true

I can't say for sure it's fixed but I have not had the issue since.


12.04.2 - after the last update my qualcomm atheros gigabit ethernet driver is lost

Open terminal and run:

sudo apt-get install linux-backports-modules-cw-3.4-precise-generic

then

sudo modprobe alx

I hope you have internet access through wifi.


Are there drivers for Intel GMA 4500 integrated graphics for 64-bit Ubuntu 11.10?

There aren't drivers to download and install as you would do in Windows. Intel provides open source graphics drivers for some of its GPUs, including GMA4500M. The hardware should be recognized, as you have attested, and work reasonably well, though it's not suitable for any serious gaming.

If you want help with the bugs, post a question with detailed explanations.


BCM4306, b43 legacy driver installed, but "firmware missing" error

converted comments as answer

To ensure that wireless works correctly with the BCM4306 wireless device try the following:

Remove the b43-legacy package you have installed.
Connect your laptop with a wired connection and test your internet connection works.
Search in Dash for Additional Drivers and it should open a window and offer you to install the b43-cutter - activate this.
If the above doesnt work, then the missing firmware can be found by installing the following package:

sudo apt-get install firmware-b43-installer


Failed to start iptables-persistent.service

It seems since Ubuntu 16.04, iptables-persistent has been replaced by netfilter-persistent. The package still exist and automatically install netfilter-persistent thanks to a dependancy. It's possible to use the following command to start the firewall.

sudo service netfilter-persistent start


Boot failure randomly. Can someone help?

Have a look inside log file viewer (press super and type "log file viewer") and see if you can find error messages prior to the bad_area_nosemaphore in your screenshot.

bad_area_nosemaphore: one of the causes for this can be faulty memory. That can also explain why you sometimes have a problem: if that bad memory is not touched everything works like a charm. If it does get touch unexpected results can be expected. In general: irregular behaviour during boot always start thinking memory 1st.

So run memtest from the live cd or from grub if you can boot into it and see if 1 of your memory modules is in bad shape and if so replace it.


After upgrade to Ubuntu 13.10 bluetooth mouse not working when waking up from suspend, how can it be solved?

In my case I fixed adding this script:

/etc/pm/sleep.d/20_bluetooth

#!/bin/bash

case $1 in
    suspend|hibernate|suspend_hybrid)
      rfkill block bluetooth
    ;;
    resume|thaw)
      rfkill block bluetooth
      rfkill unblock bluetooth
    ;;
    *)
    ;;
esac

exit

And then:

chmod +x /etc/pm/sleep.d/20_bluetooth


The ** #1045 Cannot log in to the MySQL server** is the results of attempting to login without the proper credentials.

The fact that you are able to get the login screen and attempt to login is an indication that the app Phpmyadmin is properly installed.  If there were problems you would see an error on the login screen before trying to login.

The username and password would be something provided by the Administer, or root, which is the default... and the Administrator's credentials.

Answer the login prompt with the root credentials.  This is root as the Username and the root's password for the password.

If you don't know the root credentials, and you are the administrator, you would have to change it the password.

You can do this by following the steps provided in this answer:
mysql doesn't ask for root password when installing

The basic steps is to:

Stop the mysql server
Start the server with the skip-grant-table option
Login as root
Set a new password
Flush the tables
Stop the temporary mysql server
Restart the server as normal

Then login to the PHPMyadmin server as root and set up the credentials you wish to have for the users.


How can I use Cron to run shells scripts at a fixed time?

Idea Outline

Your friend is an old fashioned cron companion at.

  at  and  batch  read  commands  from  standard  input or a specified file which are to be executed at a later time, using /bin/sh

Combine this with run-parts.

  run-parts - run scripts or programs in a directory

The idea is that you write a cron job which starts the scripts in the "sub folders" with the use of run-parts.

If you want to parallelise the execution depending on the system load, you can wrap the execution of each single script with batch.

Example

On my installations I use my own wrapper script batchme. This provides some enhancements for mailing reports and output.

The cron.{daily,weekly,monthly} scripts are wrapped in my crontab this way:

@midnight   root  test -x /usr/sbin/anacron ||  for script in $( run-parts --list  /etc/cron.daily)  ; do batchme --quiet --info "cron-daily ${script}" ${script} ; done

@weekly   root  test -x /usr/sbin/anacron ||  for script in $( run-parts --list  /etc/cron.weekly) ; do batchme --quiet --info "cron-weekly ${script}" ${script} ; done

@monthly        root  test -x /usr/sbin/anacron ||  for script in $( run-parts --list  /etc/cron.monthly); do batchme --quiet --info "cron-monthly ${script}" ${script} ; done


Have you installed the ttf-ubuntu-font-family package?

Sometimes if not installed correctly, it can mess up word spacing.

Also, not sure if this applies in 16.06, from the terminal, then Edit Menu , then Profile Preferences and in the General tab re-check "Use System fixed width font"


I decided to drop Mark Shuttleworth a comment on his blog.

My Question:

  Mark – its not clear what the LTS upgrade strategy is beyond 12.04.

  i.e. – could a 12.04 business jump to 16.04 directly – i.e. plan to
  upgrade in 4 years time?

and Mark's response:

  We support LTS-to-LTS upgrades, so yes, you could stay on 12.04 LTS,
  then move to 16.04 LTS (in our current testing plan we would test the
  migration from 12.04 to 14.04 and then to 16.04, not directly).

Thus, any business on 12.04 LTS staying for 4 to 5 years, their upgrade plan would be first 14.04 LTS and staying with that for the 3-4 years that LTS gives, or to plan a double upgrade - 14.04 and then 16.04.


ubuntu 20.10 installer can't select installation type

Thanks to crip659 for the help...
With gpart I gave a new format to the drive (Erasing everything) in order to establish a space for the Ubunto to be installed ...


Is there a way to launch softwares using voice recognition?

There are a few:

Speech Recognition software for Linux

Simon is available from the repository.

$ sudo apt install simon

It may take a lot of work to get it configurated.  This is a helpful youtube video:Application oriented open source speech recognition: simon 0.3

The Wiki Documentation


Will Contacts ever sync with Thunderbird in Ubuntu 12.04?

Alternatively you can get (download) a .vcf file for the contacts (its called exporting contacts in most mailing services) from your contacts, open contacts, go to the menue bar, under tools you will find import. NOTE: this option may only load emails and names, leaving out phone or mobile numbers.


Can we have more user friendly directory names?

No, not on the system level.
But you could make your own folder on the desktop that contain links to the folders shown above, with the names you choose yourself.
In a folder with symlinks, you can have it exactly as you want, without affecting the rest of the system directly.


How to prevent the keyboard backlight from turning on when the laptop is woken from sleep?

From this reddit post OP had opposite problem with lights always being turned off when resuming from suspend.
You can follow the same approach but change the 1 (on) to a 0 (off).
Find the folder /etc/systemd/system/sleep.target.wants/ and create kb_backlight_resume.service with these contents:
[Unit]
Description=Switch on keyboard backlight after resume
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target

[Service]
ExecStart=/bin/echo 0 > "/sys/devices/platform/thinkpad_acpi/leds/tpacpi::kbd_backlight/brightness"

[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target

I don't have a Thinkpad and my Dell backlight keyboard has different directory structures. I'm unable to test this for your environment. You might have to manually tweak the code if the directory names above are off.
Don't forget to reboot before testing suspend / resume.

If you have a Dell that doesn't have /etc/systemd/system/sleep.target.wants/ it can be enabled. For example see:

How to disable sleep and configure lid power settings for Ubuntu or Red Hat Enterprise Linux 7


Where to get latest .config when building kernel from Ubuntu git repository

You don't need the .config file if you're building from the Ubuntu kernel git repo! If you follow the correct, modern build process the .config file will be generated automatically for the different Ubuntu architectures and flavors from a set of templates located in debian.master/config/.

To make edits to the default config interactively, run fakeroot debian/rules editconfigs before building (instead of make menuconfig)

Or edit debian.master/config/config.common.ubuntu (or an architecture- or flavor- specific config file) and run fakeroot debian/rules updateconfigs.


Add search local to the file /etc/resolv.conf.