Will the Ubuntu One Music Store be available for Banshee in 12.04?

Because Banshee is still using GTK+ 2.x, and because Rhythmbox and Ubuntu, are pushing forward to GTK+ 3.x, we can no longer support both with the same code and build. Therefore, Banshee will not have the U1 Music Store in 12.04.

There is some work to move Banshee over to GTK+ 3.x upstream, but it is not landed in the master repository, and is blocking on some issues with a gtk-sharp 3.x release. When that is widely available, it should be pretty easy for us to ship an extension for Banshee again as well.

I'll also be moving the code for the extension, out of the Banshee tree, and into its own project soon, so that it can be fixed and released, without being tied directly to the upstream Banshee releases.


Found the answer myself on http://ubuntuforums.org/showthread.php?t=1600541

Add the following lines to the [global] section of smb.conf:
Code:
    follow symlinks = yes
    wide links = yes
    unix extensions = no

Then restart the samba service:
Code:
    sudo service smbd restart


Unable to boot Windows 7 after Ubuntu 12.10 update

Might be you want to try manual edit the grub.cfg while waiting for other professional to answer your question.

Below are my Windows 7 entry in the grub.cfg, I hope that can be a reference for you when editing:

menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-D4665DF6665DD9B6' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  D4665DF6665DD9B6
else
  search --no-floppy --fs-uuid --set=root D4665DF6665DD9B6
fi
chainloader +1
}


Error on start of kgraphviewer -- /snap/kgraphviewer/2/kf5-launch: line 209: /snap/kgraphviewer/2/kf5-locale-gen: No such file or directory

I would recommend to install the application as normal deb-package:

sudo apt install kgraphviewer

and remove broken snapped one with:

snap remove kgraphviewer

Also please note that all current Ubuntu releases have this package versioned as 2.1.90. You may be interested to contact Snap kgraphviewer package developers (KDE) and inform them about error in their package.


"Unable to reduce RAID LV - operation not implemented"

I figured this one out. For some reason, I'm not able to reduce a logical volume while it's in a mirror. For each volume I'm looking to reduce, I'll have to split the mirror, reduce the size as desired, delete the copy created by the split, and re-convert the original volume to a mirror. Seems like more steps than are necessary, but at least it works.


Ubuntu 16.04 LTS (64 bit) freezes ever time

The hang ups most obviously happen because of using the wrong video driver, I had this issue myself as i installed 16.04 on my desktop PC.

So open System Settings --> Software & Updates | Additional Drivers Tab and set the driver there to the open source Nvidia driver or the proprietary one.

This should fix your problem.


As this GTK+3 manual says:

  GTK+ is the primary library used to construct user interfaces in GNOME
  applications. It provides user interface controls and signal callbacks
  to control user interfaces.


HIB Games (Aquaria & Penumbra) cannot find libGL.so.1 even though it exists

This is probably occurring because you are running the 64-bit version of Ubuntu and those particular HIB games only come in 32-bit flavor.

Try installing the 32-bit versions of the main OpenGL libraries (using multiarch):

sudo apt-get install libgl1-mesa-glx:i386 libgl1-mesa-dri:i386

On versions of Ubuntu earlier than 11.04 "Natty", create a 32-bit chroot instead.


If you want the side-effects of the command list to affect your current shell, use {...}
If you want to discard any side-effects, use (...)

For example, I might use a subshell if I:

want to alter $IFS for a few commands, but I don't want to alter $IFS globally for the current shell
cd somewhere, but I don't want to change the $PWD for the current shell

It's worthwhile to note that parentheses can be used in a function definition:

normal usage: braces: function body executes in current shell; side-effects remain after function completes

$ count_tmp() { cd /tmp; files=(*); echo "${#files[@]}"; }
$ pwd; count_tmp; pwd
/home/jackman
11
/tmp
$ echo "${#files[@]}"
11

unusual usage: parentheses: function body executes in a subshell; side-effects disappear when subshell exits

$ cd ; unset files
$ count_tmp() (cd /tmp; files=(*); echo "${#files[@]}")
$ pwd; count_tmp; pwd
/home/jackman
11
/home/jackman
$ echo "${#files[@]}"
0

Documentation


https://discourse.gnome.org/t/tu-usted-in-spanish-translations/748 discusses how GNOME, the desktop environment of standard Ubuntu, only has one version of Spanish.

This may be different with the other 'flavours' of Ubuntu, listed here, because they use different desktops other than GNOME. Linux does allow for dialectical variations of Spanish (not surprising, as there are more dialects of Spanish than any other major language).

You may wish to consider loading other flavours onto a LiveUSB, and trying them to see which has superior support for Mexican Spanish.


Install GimageReader in Kubuntu - my last step of getting rid of Windows

Thanks a lot for giving me the clue, that i can not use GTK based applications in KDE based distros.
So i started to search for KDE applications.

And wow sometimes we miss to read the most obvious pages.

  YAGF (Cuneiform/Tesseract GUI)
  YAGF is a Qt-based GUI for Cuneiform, Tesseract, and/or XSane. Installation can be from a Debian (.deb) package from GetDeb (see these instructions as well) or by compiling from source downloaded from the original site. (Qt 4.7 or later, already part of Precise, is required on your system).>

Links - one can get the YAGF from here - i tested YAGF - it actually works perfectly - http://www.getdeb.net/software/YAGF

I have quoted from one of the resource pages of Kubuntu. - http://ubuntuguide.org/wiki/Kubuntu_Precise_Photos_and_Graphics

Thanks a lot again, I hope this helps others.
Thank you and regards


something weird happened to sshd. can only access through local network

Solved by reinstalling openssh, regenerating both pub and pvt keys, and updating all the keys in the authorized_keys
Couldn't find what the real problem was. Probably some kind of misconfiguration somewhere.


can't upgrade from kubuntu 19.04 to 19.10

On release date, the ISO's are made available.  It's a few days before meta-release is updated for 19.04 installs, which means they don't detect the availability of 19.10.

Release days are always Thursdays for Ubuntu (and flavors), however it's not usually till the following Monday-Tuesday that the taps or switch is pulled that allows existing 19.04 systems to see the 19.10 being available.  For LTS releases, eg. 18.04 LTS this occurs a few days after the release of 20.04.1

Yes you can use '-d` to force it, but the current system allows any bugs to be detected, get fixed by devs, before most users 'upgrade' and start using the newly released system, let alone stretching out the bandwidth hits of ISO downloads plus release-upgrades.

Give it a few days, and it'll occur as intended.

--

I'll add a comment from Erich Eickmeyer (a Ubuntu Studio developer)

  Usually, the release team waits 1-2 weeks after a release to enable
  the upgrade notifications just to make sure that the bugs for the
  upgrade route are ironed-out

  Once the release team enables the upgrade notifications, then users
  get notified. Prior to that, users are welcome to upgrade to the new
  release manually, but like I said, the new release notification
  happens 1-2 weeks after the release, sometimes sooner.

https://discourse.ubuntu.com/t/up-to-this-day-kubuntu-still-does-not-have-the-previously-removed-release-upgrade-notification/13038in

this wasn't the smoothest upgrade cycle; ISOs were re-spun ~90 mins after the planned release time


Install proprietary drivers 14.04 NVIDIA (steam segmentation issue)

Found a solution. (Maybe not the best one)

My original steps were to install Ubuntu, install the drivers (via the official download from the site) then install steam. That didn't work and I could never get it working.

My solution to this, was to install Ubuntu fresh again, install steam first, then install the drivers. I set Ubuntu to use the proprietary drivers through additional drivers. So far so good! Everything is loading like it should.

Re-cap steps:

Install Ubuntu fresh (i'm using 14.04)
Install Steam (I did this via the Software Center in Ubuntu)
Use the proprietary drivers for your graphics card (I selected mine through the additional drivers tab, which is under Software and Updates)


Ubuntu apps are unable to access internet

apt.conf is the main configuration file for the APT suite of tools, all tools make use of the configuration file. But I don't think that Ubuntu Apps use apt.conf for getting proxy settings.

I suggest you to use Ubproxy. It is a gui tool to set proxy settings systemwide.


Scripting Gnome Image Viewer in a dual screen setup

There is two problems here:

having two separate instances (or at least windows) of eog
controlling on which screen they open

The first one is simple : option --new-instance do the trick.

The scond one is more complicated. The --display argument refers to the X server to use, not the name of the screen and/or monitor (xorg.conf terminology). So --display is not the right think to use.

When issuing eog --fullscreen image.jpg on a terminal, the image open on the same screen than the terminal. So I suppose there is a way to tell Gtk to opens on a precise screen. (NB: option -s is for slideshow, i;e. if you want one single image, prefer fullscreen.)

From the documentation of GTK/Gdk, and the source code of eog, It seems that eog create a popup with teh image, and request gdk to set it fullscreen. Gdk then requests the window manager to set the "window" of the popup fullscreen. So the decision to open the image on this or that screen belongs to the window manager.

wmctrl seem to be the right tool to communicate with the window manager. Here is a draft of a script doing that.

#!/bin/bash
#open two fullscreen windows
eog --fullscreen --new-instance image1.jpg&
#wait until windows are actually created
while [ 1 ]; do
   found=$(wmctrl -l |grep 'image1.jpg');
   if ! [[ -z "$found" ]]; then
      break;
   fi;
done;
#move first win to the left
wmctrl -r 'image1.jpg' -e 1,0,0,-1,-1

eog --fullscreen --new-instance image2.jpg&
#wait
while [ 1 ]; do
   found=$(wmctrl -l |grep 'image2.jpg');
   if ! [[ -z "$found" ]]; then
      break;
   fi;
done;
#move
wmctrl -r 'image2.jpg' -e 1,1280,0,-1,-1

But you should replace 1280 with your actual screen width. Also note that, because the script use window names to identify them, this will not work if windows with similar names ('image1', 'image2') exists on your desktop.


Go to gnome-terminal's Edit -> Profile Preferences -> Compatibility, check the value of Ambiguous-width characters. I assume it's set to Wide, that causes this phenomenon. Change it to the default Narrow.


A quick fix is to reduce the archived journals. On my LiveCD those files occupied 300M. Handy when down to 0.

sudo journalctl --vacuum-size=50M

how to clear journal

Then edit journald.conf

sudo nano /etc/systemd/journald.conf

set to desired value:

#SystemMaxUse=50M

After reboot this setting has no effect on Mint.


Reversing all the bytes or blocks of a partition to easily resize the partition

I don't think it is possible because other processes with low level I/O access (like the kernel itself) will probably just ignore your kernel module and cause havoc. Other than that it may cause some serious performance issues since every program that opens an I/O disk-stream would need to go through your module. It sure sounds cool but i don't think it's worth pursuing without help from experienced kernel developers.


How to execute a single launcher as root without password?

ALL     ALL=NOPASSWD: /home/username/Desktop/folder1/test_program

This is not the command you are trying to run as sudo. The command is:

taskset -c 7 /home/username/Desktop/folder1/test_program

(If you click on the launcher, the %f will be empty and you might as well remove it)

Therefore, you need to correct the sudoers file, but keep in mind that you need to use absolute paths as pointed out in this answer:

ALL     ALL=NOPASSWD: /usr/bin/taskset -c 7 /home/username/Desktop/folder1/test_program

As a side note, this setting enables every user to run taskset with the given argument with sudo. This might or might not be what you want.


dpkg: error processing package, Could not install any package

Because the idea in the comment works, here is the answer:

To remove an eventually corrupted DEB package

sudo apt-get clean

Force the reinstall of the corrupted package

sudo apt-get install --reinstall software-properties-common

Because that's only a reinstall of a package, no other packages will revive.


If your configuration is working at this moment, then even after your system restarts.

dnsmasq is configured by a configuration file with the name

/etc/dnsmasq.conf

and also /etc/hosts and /etc/resolv.conf are essential and all files in /etc/dnsmasq.d/ will be considered.

The IP address 127.0.1.1 is ok and, also as 127.0.0.1, your host or in other words, the localhost.

Without a modification in /etc/dnsmasq.conf, dnsmasq reads your /etc/resolv.conf and use your router (192.168.1.1 in your case) as nameserver.

Test it. Search the line

#no-resolv

in /etc/dnsmasq.conf and remove the #. Now restart dnsmasq

sudo systemctl restart dnsmasq

and try to ping google.com. It should fail, if there is no other nameserver defined in your /etc/dnsmasq.conf


Remove lines with less than 4 characters and more than 3 numbers in bash

You can make a GNU sed regex for at least 4 characters as .{4,} - then to delete all lines except those with at least 4 characters:

sed -r '/.{4,}/!d' file

Similarly, a line starting with more than 3 consecutive digits would be ^[0-9]{4,} so to delete all those

sed -r '/^[0-9]{4,}/d' file

You can combine them either using -e or ;

sed -r -e '/.{4,}/!d' -e '/^[0-9]{4,}/d' file

or

sed -r '/.{4,}/!d ; /^[0-9]{4,}/d' file

Note that . matches space characters as well as non-space characters - if that is not what you want then you can change it by replacing . with a character range or POSIX class such as [[:alnum:]].


Gnome 2 style user account settings (how to edit user accounts in Unity)

You can install the original GUI tool for doing this.

sudo apt-get install gnome-system-tools

Not too sure why they removed it, but it's certainly still available for install.


Try to open one of the console, by pressing Ctrl+Alt+F1 and after providing your credentials, try to write down startx, and look if it will give some errors


Can you upgrade a virtualenv while in venv?

A Python Virtual Environment ("venv") does not affect applications unrelated to Python.

It only adds the bin/ directory of the venv which contains its executables to the front of your PATH variable. This causes a command look-up for e.g. python to resolve to that instead of the system's executable. Additionally it changes some other environment variables and aliases used by Python.

None of these changes should break apt-get and it's impossible that they affect the way how system packages are managed.

To conclude, it is safe to run apt-get or similar stuff while operating in a Python Virtual Environment.

If you want, you can examine the bin/activate script in your venv's directory which you use to enter the virtual environment. That way you can see exactly what gets changed.


How to change the wallpaper of all clients using puppet?

To set the wallpaper image from command line (without puppet), you can use something like this:

gsettings set org.gnome.desktop.background picture-uri "file:///path/to/file.jpg"

which obviously needs to be run as the user you're changing the background for.

In terms of puppet, I believe you would be able to upload the file to the controlled machines using file resource:

file { "/usr/share/backgrounds/warty-final-ubuntu.png":
   source => "puppet://server/modules/module_name/background.jpg"
}

then, to run a command, there's exec directive:

define set_bg($name) {
    exec {"set bg for $name":
        command => "/usr/bin/gsettings set org.gnome.desktop.background picture-uri file:///usr/share/backgrounds/warty-final-ubuntu.png",
        user => "$name",
    }
}

which you can execute for each of your users:

user { "joe":
  ensure      =>  "present",
  uid         =>  "1005",
  comment     =>  "Joe",
  home        =>  "/home/joe",
  shell       =>  "/bin/bash",
  managehome  =>  "true"
}

user { "ted":
  ensure      =>  "present",
  uid         =>  "1006",
  comment     =>  "Ted",
  home        =>  "/home/ted",
  shell       =>  "/bin/bash",
  managehome  =>  "true"
}

set_bg { "joe": name=>"joe" }
set_bg { "ted": name=>"ted" }

Also, you may want to restrict user's choice of backgrounds only to the one you're setting with Puppet. For that, you need to modify /usr/share/gnome-background-properties/ubuntu-wallpapers.xml (obviously, using Puppet). The file itself would look like:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
   <wallpaper>
    <name>Common Background</name>
    <filename>/usr/share/backgrounds/warty-final-ubuntu.png</filename>
    <options>zoom</options>
    <pcolor>#000000</pcolor>
    <scolor>#000000</scolor>
    <shade_type>solid</shade_type>
   </wallpaper>
</wallpapers>

The rule to upload it would look like:

file { "/usr/share/gnome-background-properties/ubuntu-wallpapers.xml":
   source => "puppet://server/modules/module_name/backgrounds.xml",
}

Also, note that the default Ubuntu background is in the file /usr/share/backgrounds/warty-final-ubuntu.png - I'm finding that replacing this file gives more predictable results then creating another one (i.e. gsettings is unable to change background for new users who never logged in, for example). This also changes the background of the login screen etc, which I suppose is a good thing.


Bluetooth HSP/HFP not working but A2DP is

I would try this:

wget https://www.dropbox.com/s/owropuric6iz898/BCM20702A0-05ac-21e1.hcd
sudo cp BCM20702A0-05ac-21e1.hcd /lib/firmware/brcm/BCM20702A0-0a5c-21e1.hcd
sudo modprobe -r btusb
sudo modprobe btusb

Then check dmesg | tail for any info:

sudo apt-get install linux-headers-$(uname -r) build-essential
wget https://www.dropbox.com/s/xu80svavlazttaf/bluetooth-3.19.tar.gz
tar xpvf bluetooth-3.19.tar.gz
cd bluetooth
cp /boot/config-$(uname -r) .config
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
make -C /lib/modules/$(uname -r)/build M=$PWD modules
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
sudo modprobe -r btusb
sudo modprobe btusb

See if it works

You will lose the HSP/HFP after a kernel update. When that happens, you should do:

cd bluetooth
make -C /lib/modules/$(uname -r)/build M=$PWD clean
cp /boot/config-$(uname -r) .config
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
make -C /lib/modules/$(uname -r)/build M=$PWD modules
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
sudo modprobe -r btusb
sudo modprobe btusb


Broken packages : after attempting to install flash

I can't see any record of an adobe-flashplugin with the version 10.0.32.18-1 ever having been published in the partner repository.

https://launchpad.net/ubuntu/+source/adobe-flashplugin/+changelog

Where are you installing it from? Can you run:

$ apt-cache policy adobe-flashplugin:i386

Please?


which never did show error messages on command line. At least not on Debian version of Linux. Every system seems to have their own version of which (one of the reasons other commands are preferred) so maybe your course was referencing another operating system? For usage in scripts you can have 3 exit statuses:

EXIT STATUS
   0      if all specified commands are found and executable
   1      if  one  or  more  specified commands is nonexistent or not executable
   2      if an invalid option is specified

Use type,whatis, or whereis. All 3 will show it did not find what you asked for.

$ type aaa
bash: type: aaa: not found
$ whereis aaaa
aaaa:
$ whatis aaaa
aaaa: nothing appropriate.

and

type firefox
firefox is /usr/bin/firefox
$ whereis firefox
firefox: /usr/bin/firefox /usr/lib/firefox /etc/firefox
  /usr/share/man/man1/firefox.1.gz
$ whatis firefox
firefox (1)          - a free and open source web browser
  from Mozilla

Here is a bit of history on which from our U&L.


Disable recommendation on application lens

Did you mean removing the so-called 'ads' in there?

Go to 'System Settings'

Then Privacy

Uncheck Include Online Search Results.

Done.


How can I stream Music from my home machine to mobile devices?

I use Ampache for web-based music streaming.  They have clients for Android, iPhone and WebOS; they just added a BlackBerry client.  I also believe they have a plugin for Rhythmbox as well.  The Ampache website is here: http://ampache.org/


How can I batch install fonts (Kubuntu 14.04)

KDE Font Management

KDE System Settings > Font Management

The KDE System Settings has a search:

Font Management - click the 'Add' button and pick the wanted fonts (.tff)

The KDE Font Manager has the handbook - The 'Help' button

or from the net: https://docs.kde.org/stable/en/kde-workspace/kcontrol/fontinst/index.html


Terribly sorry, but it's this specific issue with virtual machines and the high amount of processing that's needed that makes Ubuntu Studio unsupported on virtual machines. There is no way to make a virtual machine's audio latency any lower than what you are experiencing in this use case.

Source: I lead Ubuntu Studio currently.


I installed Ubuntu on an external UDS HDD. My boot disappeared. Why?

I also tried this setup for installation but no luck it'll only success after when i remove my primary HDD plug the USB one by removing it from its cover do complete installation and placing back the USB & primary laptop HDD at their original place. Now i am able to boot my USB HDD as external.

As in your condition i suggest Make sure you install grub on your external HD during installation check if that could workout.


Editing Ubuntu official documentation pages

OK After some explanation from several community member, I can summarize the step how to edit

  Ubuntu official documentation pages

by practice. There are probably other procedures in accordance with this.

(For the official Guidance is just available in https://help.ubuntu.com/community/WikiGuide)

Click Login to edit, when you are in the page that you want to edit.

Login to or sign up for your Ubuntu One account.

Accept your personal data request by clicking Yes, Log me in.

After you are redirected to the User Documentation Page, you can search the article you want to edit. It took around 10 second in my case to be redirected.

Finally, you will have an edit button to modify the page.

Good day!


From: Google Community

Edit /etc/gdm3/custom.conf
Uncomment #WaylandEnable=false
sudo dpkg-reconfigure gdm3
ctrl + alt + backspace or just reboot


Will upgrading Ubuntu affect (data in) my local Subversion repositories?

It's a good thing you are trying to upgrade to a supported release. Upgrades should run without issues as package maintainers are doing quite good at handling this. Also, packages should not touch user data directories. However, as is valid for all valuable data, make sure you have a backup!

Concerning Subversion repositories, you should have to worry about incompatibilities either, as 1.6.x is packages from Natty 11.04 until Quantal 12.10. Only if you decide to upgrade to 1.7 you should be diving into upgrade scenarios.


You've got an MBR hard disk with what appears to be a set of EFI boot loaders for both Windows and Ubuntu on /dev/sda7. This is highly unusual, and most likely represent a GPT-to-MBR conversion on the disk. Some firmware implementations will boot from such a disk, and the fact that you're getting as far as GRUB suggests that yours does so; however, it's conceivable that this combination is causing GRUB to choke. It's also possible there's some more subtle problem with your partition table or GRUB configuration that I've missed.

I recommend doing one of two things:

Boot your installer in BIOS mode and run Boot Repair. This should install the BIOS version of GRUB on the computer, which is a more conventional choice for your MBR partition scheme and is therefore more likely to work correctly. You might need to fiddle with your firmware options to get it to attempt a BIOS-mode boot, though.
Download and boot Parted Magic, System Rescue CD, or a similar tool, and then run gdisk on the disk to convert it from MBR to GPT form and change the type code of partition #7 to EF00. (You should type p to verify that your partitions are all intact, type t to change the type code of partition #7, and then type w to save your changes.) With any luck this will get the computer working again; however, it's possible you'll need to run Boot Repair again.

If you try one solution and it doesn't work, you can try the other one; however, GRUB on a GPT disk booting from MBR works best if you've got a BIOS Boot Partition, so you should create one if you convert the partition table type and then install the BIOS version of GRUB.


MacBook Pro keyboard and trackpad not working

The newest line of MacBook Pros is poorly supported by Ubuntu (and vice versa). While it is possible to get Ubuntu working, it will take some extra work until Ubuntu catches up with the hardware changes.

To get your builtin trackpad and keyboard working, use a USB keyboard and mouse for the installation (you'll likely run into NVMe SSD issues that you can learn more about here when selecting your partition setup)

When your install is complete, refer to this link to regain control of your builtin hardware.


Try running:

sudo dpkg --configure -a
sudo apt-get -f install


I know it would be largely experimental, but you can try Ubuntu 14.04.  I managed to install that on my Pavilion 11 x2 (a 2-in-1 device).

Ubuntu 14.04 on HP Pavilion 11.6" x2 2-in-1


Driver installation issue: Xerox Phaser 6600

Using Ubuntu 16.04.4 LTS, I've successfully printed a Test Page to a Networked Xerox Phaser 6600DN. Here is how:

First, Download the aforementioned "Linux Intel Driver (x64) Debian" from Xerox's Driver Download Page; but after that, Change "Operating System" to ANY Windows version between "XP" and "10" (32 or 64 Bits), and get the installer for "Windows XXX PostScript PPD Driver Files". Inside that little ".exe" file, there are 4 PPD Files. You want to extract "xr6600dn.ppd", and copy it to "/opt/Xerox/prtsys" (to keep it available System Wide).

You can easily  extract the appropriate PPD File from the EXE with "7z", found in the "p7zip-full" Package (although, I extracted it with "7-Zip File Manager", which runs perfectly well through WINE).

After installing the Linux Driver, run sudo xeroxprtmgr in order to configure the Printer Queue. For this, click on the top leftmost square button in the Interface that will open, to perform a "Discover". Then, click on your Printer in the List (IMPORTANT!) to "Select it", then click on the left button to "Add Printer".

Now, click on your Printer in the List, then click the top right button, then "Queue Preferences". Now, I suggest you jump right to "Configuration" (rightmost tab), and click on "Bidirectional Configuration"; then click "Yes", and enter your Printer's IP Number in the text field, then click OK. By doing that, you'll have real time Printer Status monitoring, plus all your Printer's Setting will be "imported". Now you can configure all your Printer's Parameters the you like.

Now, go to "System Settings" --> "Printers", and REMOVE any Printer Queue the Xerox Utility might have added by itself.

Now, add your Printer. It should be automatically discovered in 2 or more "flavors", from which I chose the "AppSocket/JetDirect network printer via DNS-SD" one (I assume all your Printer's Protocols are "ON"). Then, "Manually Provide a PPD File" you just stored at "/opt/Xerox/prtsys/xr6600dn.ppd", configure a Queue Name.

Apart from the Printer's Name and Description, there is not much you can configure here. Just DON'T TOUCH the "Connection" String, and go print a Test Page.


I can't connect to ethernet in ubuntu 15.10

Okay you are using a realtek network card some of the realtek drivers are really bad you are going to have to change driver to make things work.

Do the following:

sudo apt-get install r8168-dkms

Now you have to blacklist the old driver, do this by opening the blacklist file and adding the drivername to the bottom of the file on a new line:

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

Add: r8169

Then reboot

sudo reboot

And it should now work.


Start Synergy (or any application) BEFORE logging in Ubuntu 16.04.2 LTS

For 16.04.2 create the following file (it doesn't exist)

/etc/lightdm/lightdm.conf

with the contents:

[Seat:*]
autologin-user=

[SeatDefaults]
greeter-setup-script=/usr/bin/synergyc --name <hostname> 192.168.x.x

Follow this ubuntu wiki guide for more information.

EDIT:

From man synergyc:

  STARTING AUTOMATICALLY...

  options must not include -f or --no-daemon.  It's important to make
  sure no old copies of synergy are running so they can't interfere  with
  the new one.


Your program fails mostly into his logic.

for ((w=1; w<=i; w++))
do
    while read f1 f2 f3 f4
    do
        a[$w]= echo $f4
    done
done < mibwithtraps
echo ${a[2]}

First, for ((w=1; w<=i; i++)); do [...]; done < mibwithtraps makes no sense, since you're redirecting the content of mibwithtraps to a for loop. Loops don't have stdin, they are a language construct, not commands; I assume you wanted to redirect the content of mibwithtraps to read instead: while read f1 f2 f3 f4; do [...]; done < mibwithraps.

Second, you're storing the content of $f4 starting from $a{[1]}, which is the second position of the array, and you're doing it using the wrong sintax; to store the output of a command this way you have to run it in a subshell (a[$w]=$(echo $f4), however you don't even need to do this, because you can simply assign the value of $4 to the array (a[$w]=$f4); but moreover you're storing for each for loop each fourth ,-separated field of each line of mibwithtraps at the same position of the array; as a result, with the above correction you would have an array $a containing the same fourth ,-separated field of the last line of mibwithtraps value from the second position to the eight position.

To solve this, and as a general rule, I suggest you to store the values into the array while looping through the file the first time; it's unuseful to loop through it twice. Since arrays (as any variable) don't need to be declared in bash, you can directly assign a value to an undeclared array; also you can append an element to an existing / non-existing array using the sintax array+=(<value>):

#!/bin/bash

i=$(awk '{x++} END {print x}' mibwithtraps)
echo $i
IFS=","
while read f1 f2 f3 f4
do
    echo "hell :$f4"
    a+=("$f4")
done < mibwithtraps
echo ${a[1]}


Ubuntu touch – executable files won't launch in /home directory

Found an answer here: why ubuntu touch terminal cannot execute app

Apparently it has to do with the Terminal app's apparmor settings.

Run sudo nano `ls /var/lib/apparmor/profiles | grep "terminal"` and replace the lines indicated in the link with /** pix, (remember the comma, if omitted terminal app will stop working) and restart.


Help setting up a Windows VM with QEMU/KVM

You'll probably have to reinstall Windows.
Your Windows VM should use special para-virtualised drivers (known as VirtIO drivers),
else the VM host will have to emulate hardware for the Windows guest, and it'll be abysmally slow.
Go here and download the virtio-win.iso
https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/
Create a 2nd CD drive on the Windows VM
Load the Windows installation ISO on 1 CD drive
The above KVM VirtIO driver ISO on the other.
During the Windows install, there should be a point where you can choose what drivers to use.
Navigate to the driver CD, and select the appropriate drivers.
You'll need to select VirtIO drivers for at least following to get near-native performance:

Virtio block driver (hard disks, etc.)
Virtio network driver
Virtio QXL graphics driver

But have a look at the other drivers supplied as well, in case you need.


First of all, I would like to suggest that you switch from SMBFS to CIFS, since the former is no longer under development.

To do so, you merely have to install the package called cifs-utils (supposing you are running Ubuntu >= 10.10, if you use 10.04 or earlier, just stay with the smbfs package).

Then you can simply mount your share-- writable --with

sudo mount -t cifs -o rw,username=username,password=password //<Server>/sharedir /mnt/fincon

Please mind the option rw, which basically gives you read and write access!

You also can put your share into fstab, but that would require you to put your password in plain text into this file, which can be read by every user on the system.

You could also use a credentials file, which can only be read by you and root, but I don't like this variant, since it still needs your password in plain text.

You could also mount the folder automatically at login, if your account password on your local machine is the same the password as for the samba share. (Here you use pam_mount.)


What happens after `ubuntu-bug` has done its thing?

Technically, ubuntu-bug just logs the crash report locally. A separate program, whoopsie, watches for logged reports and uploads them to a central database, where they're automatically grouped to identify overarching problems.

The resulting data is displayed on the Ubuntu error tracker:

Aggregate trends are publicly available, and report details are available to trusted developers. More details are available on the Ubuntu Wiki.

By default, ubuntu-bug doesn't open bugs on Launchpad for crash reports in stable releases, but you can configure it to if you want. After making that change, you can open a bug for an existing crash report by running ubuntu-bug /var/crash/foo.crash.


Appearance of a .desktop file in Nautilus

It must be specific nautilus behaviour (read: Bug/Feature) as nemo (a fork of Nautilus) shows the Name= regardless of the location of the file (as would be expected)

This was tested in ~/.local/share/applications and /usr/share/application on Nemo.


Most commands won't do anything if I use the console at my Ubuntu server. Why?

Servers can be used for multiple purposes. Some just need a proxy and are fine with ssh. Others want to run a webserver and require related binaries. To install screen, run:

sudo apt-get install screen

If you're interested what applications are installed, run:

dpkg -l

Optionally, add |less after it, so you can use the arrow / page up/down keys for scrolling.


gcc creates an executable file called a.out by default. Run that instead.

Alternatively, create a sensible named executable:

gcc -o hello hello.c

And even simpler, using the default rules built into make:

make hello


All I can think about your situation is that its a main memory (RAM) problem.

Since you use your machine basically for browsing, one advice I can give you is to avoid opening a lot of tabs on your browser.

Also I highly recommend to change your desktop environment to something more lightweight in order to have more free memory. Very good information can be found here about the available environments: What kinds of desktop environments and shells are available?.

You can also search for a lightweight browser.

I were in a similar situation a few months ago and preferred xfce, although I found later that lxde is a little bit more lightweight.

Hope it helps.


Is League of Legends playable on Ubuntu 13.10?

A step by step procedure has been published in the League of Legends forum at http://forums.na.leagueoflegends.com/board/showthread.php?t=1946188&page=30

Go into Ubuntu software center and look up wine.
Install a program called winetricks and all the add-ons.
Once installed look up a program called PlayOnLinux and install it.
Open up PlayOnLinux then and Hit the Install a program on the right side of it.
Once that is open go up on the upper menu and hit games
Deselect commercial and select testing.
Scroll down and select League of legends

When you are on the last installation page deselect the box to auto run after finish

Once it is installed and everything is finished bring back up the PlayOnLinux program and run it.


Ubuntu 20.04.2 LTS screen refreshs automatically

Solved It! I activated Wayland from the login screen and it seems to work now


Can I ssh (into a mobile device) via USB?

So, to clarify, you want to connect to your tablet(running Ubuntu) from your PC (running Windows, but could run Ubuntu if it had to) by ssh over a USB connection?

I haven't heard of doing this before but google searches for things like "ssh over USB" let to many hits where people were showing how to connect a jailbroker iphone with OpenSSH installed to a Windows PC using WinSCP or Putty. Here are some links:

iFans - SSH via USB with WinSCP

OpenSSH, USB instead of WiFi

The Ubuntu tablet could easily replace the iphone because it has OpenSSH on it already but I don't know too much about tunneling a SSH connection to USB, except that SSH uses port 22. These two tutorials use a program called itunnel but I don't know anything about it. I went to itunnel's site and it said "iTunnel is a simple Linux command line program which provides SSH tunnelling over the USB cable to a jailbroken iPhone. I wrote this little tool because I got tired of having to SSH into my iPhone over the WiFi link. SSH proxy, ssh link, and scp all work great." Because it says "simple Linux command line program", I think it is at least worth investigating to see if it will work.

This is an interesting prospect and I would like to see where it goes, but I feel connecting through USB makes this considerably more work than it needs to be. I have used the android app Proxoid to connect my phone to my laptop for tethered wireless connections using the ./adb forward tcp:8080 tcp:8080 command but the tunneled connection required me to set the proxy on my browser before I could get online. Tunneling your SSH connection to USB might make it hard for your applications to connect without some extensive messing around with options.

If you have an old router lying around (like a Linksys wireless B or G router) you could just connect the Tablet and PC together using that and SSH into the Tablet without messing around with tunneling.


How do I fix these audio issues and restore my audio settings to their default (xubuntu 15.04)?

I found a solution:

sudo apt-get install xfce4-mixer


So why dont you use ufw ?

Its so simple to implement firewall on ubuntu, to open port 80 on all your network card you only need
- sudo ufw allow 80
- sudo ufw enable

to make sure if your web server is running use netstat -nat
it will display all service in all port


Ubuntu never finishing suspend, manually turned off power, next restart will not finish, what should I do?

I recovered, by booting into recovery mode, and using fsck from the recover menu to clean the file system.

It's indeed due to corrupted boot file system, fsck there found the corruption, and cleaned it, then it was possible to resume normal reboot.


Laptop does not autorotate in Ubuntu 16.04 Gnome

I have the same laptop, running on Debian Stretch (kernel 4.9)

While debugging this, switch to a virtual console with CTRL+ALT+F3 and sign in. Your screen should be the right way round. From here, follow your distribution-specific instructions to upgrade the kernel (sudo apt install --install-recommends linux-image-generic-hwe-16.04 for Ubuntu 16.04)

I found this page which explains the issue.

Upgrading the kernel fixed my issue (which was that the sensor was unreliable; it only worked one in a hundred times, and my screen was stuck sideways!)

I hope this solves your issue!


16.10 is no longer supported. Interim (non-LTS) releases are only supported for 9 months. The upgrade path for interim releases, is through the next interim release, so you would need to upgrade to 17.04 and then 17.10.

So yes, if you want 17.10, you should install it directly.


From man 2 signal:

If  the  disposition  is  set  to  a function, then first either the
disposition is reset to SIG_DFL,  or  the  signal  is  blocked  (see
Portability below), and then handler is called with argument signum.
If invocation of the handler caused the signal to be  blocked,  then
the signal is unblocked upon return from the handler.


It appears that the iPod touch doesn't support USB mass-storage, so it won't appear as a disk: http://support.apple.com/kb/TS1380?viewlocale=en_US

From what I can see you should be able to use it via Clementine or Amarok though

If you're willing to jailbreak there's some useful information here: https://wiki.archlinux.org/index.php/IPod#iPhone.2FiPod_Touch


you can try to 'detach' the file browser dialogbox from the main window
type this command in a termnial
you can rollback by entering the same command with false replacing true...

gsettings set org.gnome.mutter attach-modal-dialogs false


Internal speakers do not work on an Asus A3Ac

had the same issue,

type alsamixer in terminal, navigate left to Auto-Mut and set it disable

@edit:
sorry, just saw that you mentioned this already :D


Reduce tray icon padding on Ubuntu with GNOME 3

As suggested by @pLumo,
'Status Area Horizontal Spacing' GNOME extension fixed my problem.


ask for help to install open office on ubuntu 14.04

First run the below command,

sudo apt-get remove --purge libreoffice* #if installed

sudo apt-get autoremove

Download respective Arch. files,

For 32bit

wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.0/binaries/en-US/Apache_OpenOffice_4.1.0_Linux_x86_install-deb_en-US.tar.gz

For 64 bit

wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.0/binaries/en-US/Apache_OpenOffice_4.1.0_Linux_x86-64_install-deb_en-US.tar.gz
tar -xvfz Apache_OpenOffice_4.1.0_Linux_x86_install-deb_en-US.tar.gz (for 32bit)

tar -xvfz Apache_OpenOffice_4.1.0_Linux_x86-64_install-deb_en-US.tar.gz (for 64bit)

cd en-US/DEBS/
dpkg -i *.deb
cd en-US/DEBS/desktop-integration
dpkg -i *.deb


I want to install Ubuntu and keep my Windows

Windows is installed in legacy mode - so you have to install Ubuntu in legacy mode as well.
Boot from Ubuntu installation media and select Try Ubuntu without installing.
Open GParted and format the sda8 partition with ext4 - close GParted.
Click on Install Ubuntu - when asked choose Something else.
Select sda8 for Ubuntu and set mount point / (root).


How to add multiple wifi connection in my pc while the OS is Ubuntu 16.04?

Adding additional hard-wired or wireless connections, to try and increase download speed, is not possible in Ubuntu (although with the proper software, it can be done in Windows).

You CAN have a wired connection, and a wireless connection, at the same time, however download speed won't improve, and Ubuntu will only automatically use the wired connection when it sees both.

To assure maximum wireless download speed, make sure that you have a WPA2-AES connection.

Cheers, Al


You have a *.run file.  The file is an executionable installer.  You can run this file by first setting the execution bit, then run it from the a terminal command prompt.

You can get to a terminal command prompt by typing terminal in the Ubuntu Button.  Then click on Terminal.

Run this on the file (for instance installer-file.bin):

$ chmod +x installer-file.bin
$ sudo ./installer-file.bin

Don't type the "$" as part of the command.  The $ sympbol is showing how your command prompt look.  The sudo is to run the command in the elevated mode to install the package system-wide.


Ubuntu 18.04, searching in man page, how to tell which match my cursor is currently on?

The current match is the line at the top of the screen. This holds also when you scroll through the page (for instance with k, j, u, d, etc., or the mouse wheel). That is, when you press n, you jump to the next line containing the pattern below the line you are currently on (the one on the top, its line number is shown at the bottom).


Try;

For server install rsh-server

sudo apt-get install rsh-server

For client install rsh-client

sudo apt-get install rsh-client


With a netmask of 255.255.255.255, when doing split tunneling VPN like you are attempting, it currently only knows how to route to the single host 138.##.###.## on the remote network. To access other hosts on the same subnet, the netmask would typically be something like 255.255.255.0, 255.255.0.0, etc.

I have no idea of the remote network topology or how the VPN server was configured for IPCP queries which result in the netmask of 255.255.255.255, but on the client side as a workaround, you could manually add a route to the remote subnet you want to reach with something like:

For a netmask of 255.255.255.0 :

sudo ip route add 138.##.###.0/24 dev ppp0

or if you want a netmask of 255.255.0.0 :

sudo ip route add 138.##.0.0/16 dev ppp0

note: replace the #s with the real IP address octets.

If the above subnets examples are incorrect, add routes to the actual subnet(s) you want to reach on the remote network.

If split tunneling VPN routing is working fine for Windows, perhaps DHCP option 121 or 249 are used. I'm not sure which DHCP client you are using or even if it supports 121 or 249.


To start/stop/restart gpsd:

sudo systemctl start gpsd
sudo systemctl stop gpsd
sudo systemctl restart gpsd

To manage the gpsd.service alone:

sudo service gpsd start
sudo service gpsd stop
sudo service gpsd restart
sudo service gpsd status


wifi issue with ubuntu 13.10 and lenovo ideapad s405

Had similar issue on one Xubuntu 13.10 box.

this was my solution and it worked (do this when connected with Ethernet of course)

sudo apt-get remove --purge bcmwl-kernel-source

sudo apt-get install linux-firmware-nonfree

sudo modprobe b43

reboot and wireless should be working now.


How can I run python scripts on my webserver?

Make sure you have configured your webserver properly to run CGI scripts.

Refer this for more info: https://httpd.apache.org/docs/2.4/howto/cgi.html


Octave installation failed on ubuntu 15.04

Try to see if the folder /usr/local/share/octave/packages exist and if yes try to delete it ( with root) and restart the installation ( to delete a folder with a shell type :sudo rm -r "'name of folder"


Automatically create links symbolic links between directories, creating one uber directory

There may be automagical ways to do this, but just writing a few shell scripts is probably the easiest way to address this.

First, instead of just creating a new subdirectory in folder2, do it with a script that also creates the symbolic link at the same time. The following untested script will do that once you fill in the real paths to your directories. The core script is really simple, but I added some error processing so it would have a chance in the real world.

#!/bin/bash
## create subdirectory and symbolic link
## Usage: script-name <name of new subdirectory to create and link>

PRIVATE="path to private directory" ## Put real path here
SHARED="path to shared directory" ## Put real path here
cd "${PRIVATE}"
if [ -z "${1}" ]
then
  echo "Aborting - no new directory name specified"
  exit 1
fi

if [ -e "${1}" ]
then
  echo "Aborting - file or directory with that name already exists"
  exit 1
fi

mkdir "${1}"
RC=$?
if ((RC))
then
  echo "Aborting - Failed to create new private subdirectory named [${1}] in [${PRIVATE}] with error code [${RC}]"
  exit ${RC}
fi

cd "${SHARED}"
ln -s "${PRIVATE}/${1}" .
RC=$?
if ((RC))
then
  echo "Aborting - Failed to create new symlink named [${1}] in [${SHARED}] with error code [${RC}]"
  exit ${RC}
fi

exit 0

Other concerns:

If you need to access this from a gui instead of the command line, just add a little code that calls yad to create a dialog box to ask for the name of the directory to create and then create an entry for your script in your menu system and, optionally, on your desktop or panel. Doing this is simple, but beyond the scope of this question.

Similarly, if something else creates the new subdirectories in folder1, you can write a script which scans for new subdirectories in folder1 and then symlinks them to folder2.

You could run this manually, or run it inside of a loop where it does its work, sleeps for awhile, and then runs again.

This "daemon" script could either be started manually or run from your .login script so it will start every time you login. It could also be started from cron if you make sure that any subdirectories and links it creates have the desired owner, group, and permissions. (You probably don't want them owned by root which is the user cron runs under.)

It all depends on what your exact requirements are.

If either folder1 or folder2 require elevated privileges for writing, then your script will need to either be run with those permissions or have a sudo or two to handle that, and possibly, an entry in sudoers so it doesn't have to ask for your password every time. Then, the script itself would have to have a secure owner and restricted permissions and be kept in a directory which also requires elevated privileges for writing - for security reasons.

You may also need to consider the case when subdirectories are deleted from folder1. Then, you will probably want to delete the broken symlinks from folder2. The approach/code would be very similar to the above.


I am having a similar problem.  Text on the screen gets progressively more blurry until the window is redrawn.  Then it becomes sharp again, but immediately gets progressively more blurry.

It seems to be associated with Wesnoth-1.14.  If I reboot it doesn't happen, but starting and then quitting Wesnoth causes it (it doesn't matter whether it is full screen or windowed).  But when Wesnoth is running, there is no problem!  My workaround at the moment is to keep Wesnoth running all the time, and just disable sound when it doesn't have focus ;-)


How do I delete Plugins in Firefox 56.0?

Try these steps to manually remove them:

Type about:plugins into the address bar and press Enter to display the About Plugins page.
Each entry in the About Plugins page will have "File:" and "Path:", showing the name and location of the plugin file. Navigate to the folder shown for the plugin you want to remove.
Rename the file to add an X in front of the filename (for instance, npswf32 becomes Xnpswf32).

Source:

https://support.mozilla.org/en-US/kb/troubleshoot-issues-with-plugins-fix-problems#w_manually-uninstalling-a-plugin


Doing an unattended PXE installation from a local NFS volume?

You can set up a local mirror server and serve the "dists" and "pool" folders from the CD, either directly or by copying them to disk. You would not need to actually run the "apt-mirror" script to populate the mirror folders.

If you wanted the latest updates, you could limit the "apt-mirror" configuration to just update the main and restricted sections, which are all that is on the CDROM. This would increase the disk usage to about 25GB.

Other suggestions may be to change the distribution point in the /etc/sources.list on the mini.iso system, or to just change /etc/hosts to redirect archive.ubuntu.com to a local address.

Using the proxy server was actually a pretty good idea, as it will tend to keep the files up-to-date automatically. It also handles future updates pretty efficiently. Kudos Evan.


Your string CD1243423kk,0dc3dopwlz doesn't pass the if statement:

if [[ ! $input =~ ^[a-k][a-kC-Z0-9]{4,},[a-z0-9]{3,}$ ]]; then
    echo "Errore Autenticazione";
    exit 21;
fi

Fix that and you fix your problem.

Remember that it's case sensitive. The first group needs to be [a-kA-K] and then your string will pass.


Unable to run apps requiring OpenGL support

Found the answer on Ubuntuforums.org

It looks like my new ATI drivers were conflicting with the old Nvidea ones that required the boot first, like this:

sudo apt-get remove --purge nvidia*
sudo sh /usr/share/ati/fglrx-uninstall.sh #don't worry if this command fails
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx
sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

After completing the Nvidea purge and ATI re-install all works well :)


How to define rpcbind portmapper ports range to comply with a firewall allowed range

If the service server is subscribing with RPC_ANYSOCK a random port will provided, need to change the rpc server to pick a specific.
rpcbind is just publishing what the server is subscribing


Can I wipe HHD and install Ubuntu all from SD card?

Yes you can. deploy your Ubuntu image on SD card, plug in the USB holder and set USB boot in your bios. boot up and choose Erase disk and install Ubuntu as shown here:

You can see full instructions here:
Ubuntu Graphical Install


If there is an installer file then all you have to do is copy that file onto the machine from USB and run it. If there are just a bunch of files that have to be manually installed then I suggest you write a shell script that will handle it and then you can open the USB and run it on each machine.


I run into the same problem this morning. Ubuntu 16.04 LTS on a DELL Latitude E5450 and could fix the problem as follows:

Get into GRUB menu while holding ESC key on startup. When GRUB menu appears, I've pressed "e" to change the boot options. I added "nosetmode" as described here: How do I set 'nomodeset' after I've already installed Ubuntu?

Afterwards I could boot and get a terminal prompt (no GUI). In the /var/log/syslog I found problems regarding to gdm3 (gnome). I removed it and erverything works fine.

Quick fix: Remove gdm3 and gnome if installed afterwards.


"Unable to locate package" for exa on WSL 2 Ubuntu

The groovy name is 20.10, not 20.04 LTS. So this package is not available for 20.04 LTS.
But you can install it manually with:
wget http://archive.ubuntu.com/ubuntu/pool/universe/r/rust-exa/exa_0.9.0-4_amd64.deb
sudo apt-get install ./exa_0.9.0-4_amd64.deb

and test it via:

$ exa --version
exa v0.9.0


No WiFi Adaptor found, Lenovo X1 Carbon Gen 7 (version 18.04 & 19.10)

You can try update kernel-image to 5.5.1 from https://kernel.ubuntu.com/~kernel-ppa/mainline/


Script to Receive Email Notification in Ubuntu 14.04 When System Shuts Down and Boots up

#!/bin/sh
# chkconfig: 2345 99 01
# Description: Sends an email at system start and shutdown

#############################################
#                                           #
# Send an email on system start/stop to     #
# a user.                                   #
#                                           #
#############################################

EMAIL="example@example.com"
RESTARTSUBJECT="["`hostname`"] - System Startup"
SHUTDOWNSUBJECT="["`hostname`"] - System Shutdown"
RESTARTBODY="This is an automated message to notify you that "`hostname`" started successfully.

Start up Date and Time: "`date`
SHUTDOWNBODY="This is an automated message to notify you that "`hostname`" is shutting down.
Shutdown Date and Time: "`date`
LOCKFILE=/var/lock/subsys/SystemEmail
RETVAL=0

# Source function library.
. /etc/init.d/functions

stop()
{
echo -n $"Sending Shutdown Email: "
echo "${SHUTDOWNBODY}" | mail -s "${SHUTDOWNSUBJECT}" ${EMAIL}
RETVAL=$?

if [ ${RETVAL} -eq 0 ]; then
rm -f ${LOCKFILE}
success
else
failure
fi
echo
return ${RETVAL}
}

start()
{
echo -n $"Sending Startup Email: "
echo "${RESTARTBODY}" | mail -s "${RESTARTSUBJECT}" ${EMAIL}
RETVAL=$?

if [ ${RETVAL} -eq 0 ]; then
touch ${LOCKFILE}
success
else
failure
fi
echo
return ${RETVAL}
}

case $1 in
stop)
stop
;;

start)
start
;;

*)

esac
exit ${RETVAL}


Did 12.04 just add multi-touch gesture support mid-release?

I thought that was a little odd myself. I did some digging and it looks like the upstream project was renamed.

utouch-geis
utouch-frame
utouch-grail

are now:

geis
frame
grail

(See bugs 1029482 and 1029643)

This update reflects the rename along with some bug fixes:

http://www.ubuntuupdates.org/package/core/precise/main/updates/libframe6

Version: 2.2.4-0ubuntu0.12.04.1 2012-09-10 15:06:58 UTC
  frame (2.2.4-0ubuntu0.12.04.1) precise-proposed; urgency=low

  * Update debian/watch file for project rename
  * New upstream microrelease, bug fixes only
    - Compile fixes when compiled with clang
    - Accept/reject owned touches that have already ended (lp: #1025297)
    - Rename project to "Frame"
    - Remove ChangeLog
  * Removed frame v1 symbols
    - Renamed libframe1 package to libframe6 due to SONAME bump
  * Fix Multi_arch typo in debian/control, should be Multi-Arch
  * Rename package and update packaging (lp: #1029482)
    - Added Conflicts and Replaces clauses for libframe-dev and frame-tools
  * Remove no longer necessary build depends on mtdev and evemu
    - Added 01-remove-mtdev-dependency.patch and
      02-remove-evemu-dependency.patch
    - Run autoreconf to regenerate Makefile.in files
 -- Francis Ginther <email address hidden> Thu, 30 Aug 2012 10:51:55 -0500

1025297 Can't accept owned touch that has ended.
1029482 [Needs-Packaging] frame (renamed from utouch-frame)

http://www.ubuntuupdates.org/package/core/precise/main/updates/libgeis1

Version: 2.2.9.2-0ubuntu1   2012-09-13 23:06:56 UTC
  geis (2.2.9.2-0ubuntu1) precise-proposed; urgency=low

  * New upstream release. Only change is the following bug fix:
    - Fixes regression that caused GEISv1 clients, such as Unity, to not work
      (LP: #1047596)

1047596 Geisv1 gesture class IDs are wrong

http://www.ubuntuupdates.org/package/core/precise/main/updates/libgrail5

Version: 3.0.6-0ubuntu0.12.04.01    2012-09-13 23:06:56 UTC
  grail (3.0.6-0ubuntu0.12.04.01) precise-proposed; urgency=low

  * Update debian/watch file for project rename
  * New upstream microrelease, bug fixes only
    - Fix documentation of UGSubscriptionPropertyTapThreshold
    - Properly process gestures that end before composition time (LP: #1020315)
    - Don't expand gestures that have physically ended already (LP: #1023397)
    - Correct behaviour when a touch ends before ownership is gained
      for it (LP: #1026962)
    - Fix include path for correct compilation of some tests
    - Rename project to "Grail"
    - Remove ChangeLog
  * Removed grail v2 symbols
    - Renamed libgrail1 package to libgrail5 due to SONAME bump
  * Rename package and update packaging (lp: #1029643)
    - Added Conflicts and Replaces clauses for libgrail-dev and grail-tools
  * Remove no longer necessary build depends on mtdev and evemu
    - Added 01-remove-mtdev-dependency.patch and
      02-remove-evemu-dependency.patch
 -- Francis Ginther <email address hidden> Mon, 27 Aug 2012 14:18:32 -0500

1020315 quick, single-finger, taps not correctly processed
1023397 grail creates two identical gestures under certain circustances
1026962 grail doesn't work properly if ownership comes for touch whose end is pending
1029643 [Needs-Packaging] grail (renamed from utouch-grail)


A socket is one endpoint of a bidirectional communication link. In your case both output streams write to one socket. You need two sockets in order to have "another end".

  Where does socket:[346100] go to?

socket:[346100] is the socket itself. It is the process streams that go to the socket.

  How can I see the other end of the socket?

To see the other endpoint, if present, look at the rem_address column of /proc/net/tcp having inode 346100.


Trusty on SD card under Crouton - corrupted disk?

Update, ~10 days later: I reinstalled Trusty directly on my Chromebook's internal SSD under Crouton, and have had no problems since. I believe the issues above were related to an issue with Crouton resuming after the computer has gone to sleep (see issue #288). It also may have been caused by accidentally removing the SD card without properly ejecting it.


Well AutoKey is the AutoHotKey pendant on Linux so

sudo apt-get install autokey-gtk

installs it for you. For information use the implemented handbook or search in the Internet


Why is Logitech USB Receiver using too much power?

The port I plugged USB receiver was the one which supports charging. Moving the USB to the other port lowered power usage by 10 fold.


mbstring is missing for phpmyadmin in ubuntu 16.04

Please type in terminal:

sudo apt-get install php-mbstring php7.0-mbstring php-gettext libapache2-mod-php7.0

Then, restart apache2:

sudo systemctl restart apache2

Still missing?

You need to explicitly enable the PHP mcrypt and mbstring extensions, which can do by typing:

sudo phpenmod mcrypt
sudo phpenmod mbstring

Then, restart apache2:

sudo systemctl restart apache2

Done.
This has been reported here: PHPMyAdmin requires mbstring


How do I tell which was the original version of Ubuntu installed on a machine?

Run this command from the terminal:

cat /var/log/installer/media-info

or, if the file doesn't exist, try:

cat /var/log/installer/lsb-release


Mythtv - have to kill and restart backend at every boot

Your mythbackend should be running as a mythtv process...

~$ ps auxc|grep myth
mythtv    3706  0.1  0.5 4930284 89092 ?       Ssl  Aug03   1:29 mythbackend

And your username should be in the mythtv group...

~$ groups
{username} adm dialout fax cdrom sudo audio dip video plugdev netdev fuse lpadmin scanner sambashare vboxusers kismet mythtv input wireshark

If it's not, then...

sudo adduser your_username mythtv

Then logout and log back in to enable.


How to set up broadband connection in Ubuntu 14.04 Desktop version

Open network connections by searching for it in the dash.

Now Click on the Add button.

Choose the network type as DSL and then click create.

Now type the username and password and save.

You can also choose to connect automatically in the general tab.


how to partition in ubuntu after installing?

If you have installed Ubuntu as the only OS on your hard drive you can not partition the hard drive while Ubuntu is running because you have to unmount the drive before being able to partition it.. and you can't unmount the drive while the system is running on it.

You would have to boot from your Ubuntu installation medium and choose the 'Try Ubuntu' option. When the system is booted open the dash and type 'gparted' then choose your HDD and partition it


If there is enough space on disk,you can first shrink it using any software like gparted and then format it to NTFS.However the best option is Backup-Format-Restore.


Give apache permission to write to /home/*/www/ directories

Apache runs as a single user for all sites, so if you gave it access to write to /home/user1/www , user2 would also be able to write PHP scripts that can write to /home/user1/www. You need to run PHP outside of the normal methods to be able to separate users.

There's a good write up here on the merits of the various methods:

http://boomshadow.net/tech/php-handlers/

I like fastcgi myself, but if you don't need performance, suPHP is probably what you want.

Another interesting new one not mentioned there is LXC containers, which really weren't all that usable in 10.04, but since then have matured quite a bit. This allows you to create what looks like another server inside your VPS, but its not virtualized.. its just contained within its own process space.


Unable to change brightness on a Toshiba L750

Same problem on Sony Vaio VPCEH and Ubuntu 12.04. The fn Keys moving the brightness slider but not affecting the real brightness on screen.

I edited /etc/X11/xorg.conf (very simple file) and added the line:

Option "RegistryDwords" "EnableBrightnessControl=1"

I rebooted the machine and now it works! Thanks to all!


Ubuntu 18.04 - cryptsetup fails to recognize passphrase, unlocking from Live USB works

Here are some suggestions.

Switch to the command-line by hitting F1 or Alt-Tab, type the password again, and check for any errors. If you find the error, try searching for it.
When you wait few minutes, you should be shown initramfs/BusyBox console screen. Using the command-line, you should check the syntax of your kernel arguments by typing the following command:

cat /proc/cmdline

Especially check (as suggested by BusyBox):

The value of root, whether it points to the right device.
If rootdelay is set, maybe you need to increase the system wait?

If above won't help, consider the following commands:

cryptsetup --debug luksOpen /dev/XXX mapper-name to decrypt manually (see this how-to).

Note: To make sure you're using the right device, run dumpe2fs /dev/XXX (e.g. sda1 or nvme0n1p3) in initramfs/BusyBox console, then make sure it reports as crypto_LUKS.

Note: If luksOpen fails, try the older syntax: cryptsetup --debug luksOpen /dev/XXX ubuntu.
cryptsetup --debug luksDump /dev/XXX to dump LUKS header information from the device.

Note: In case of corruption of on-disk metadata, use cryptsetup repair <device> command.
On Please unlock disk XXX_crypt screen, note your device name and using above luksDump method, confirm that Ubuntu asks you to decrypt the right device as the order (disk number) potentially can change (BIOS boot changes?). In that case, Ubuntu likely will use the last known device (cached, /etc/lvm/[backup|archive]/?) location when it won't be able to connect to lvmetad service.

For example, I was asked to type a passphrase for nvme1n1p3_crypt (Windows NTFS partition) instead of nvme0n1p3 (crypto_LUKS partition).

Further suggested commands:

Run lvm lvs or lvm vgscan and check for any errors (it identifies each disk with a UUID).

See also: Ubuntu won't boot because of lvmetad & Failed to connect to lvmetad - Stuck on boot.
cat /proc/modules to check for missing modules (load it by modprobe).

When finish, type reboot to restart.

If you did an upgrade recently, test your previous kernel (hold Shift during boot, and select Advanced options), and select the version which you'd like to test.

Other related resources:

How can one unlock a fully encrypted Ubuntu 11.10 system over SSH at boot?
Ephemeral error message: "cryptsetup: unknown fstype, bad password or options?"
lvm2 bug in Ubuntu 18.04: lvm2-activation-generator crashed with SIGSEGV.

Similar older bug: error unlocking / decrypting LUKS volume at boot.
UEFI Introduction & How do I install Ubuntu alongside a pre-installed Windows with UEFI?


Screen / Graphics lag on ubuntu 12.10 on alienware M14x r2

Bumblebee was only designed to work when you install Ubuntu on your actual hardware, not in a virtual machine.

Virtual box emulates the hardware that the guest OS is running on. The guest OS doesn't see your actual hardware, it sees the emulated hardware. You need to remove that and install VirtualBox guest edition.

To remove bumblebee (though it is not affecting your system now)

sudo apt-get install ppa-purge
sudo ppa-purge ppa:bumblebee/stable

Go to the link and download the ISO file. Mount it as described here - http://www.virtualbox.org/manual/ch04.html#mountingadditionsiso (Follow instruction for windows host)

Then, follow - http://www.virtualbox.org/manual/ch04.html#idp19235216

In short, these instruction has three part, in linux guest

sudo apt-get install dkms

Then, in terminal, navigate to mounted ISO, like cd /media/<VBOX_ISO_NAME> (use tab to see the available options)

Then run, sudo sh ./VBoxLinuxAdditions.run


Ubuntu 18.04 stuck in login loop for one account

I just fixed it, maybe it can help anyone!
I had to uninstall the indicator-multiload tool by
sudo apt-get remove indicator-multiload


How do you set requirements (such as minimum length) on passwords?

Password complexity in Ubuntu is controlled by PAM. Unfortunately, PAM is "typically Unix" like in its approach. Meaning that it spreads its configuration through a large number of very confusing files.

The file that controls password complexity is:

/etc/pam.d/common-password

There is a line:

password [success=1 default=ignore] pam_unix.so obscure sha512

Which defines the basic rules for password complexity. You can add a minimum length override by changing it to:

password [success=1 default=ignore] pam_unix.so obscure sha512 minlen=12

or whatever minimum you want. As you can see, the default already defines some basic obscurity rules. These basic rules can be seen in:

man pam_unix

Search for "obscure".

There are a large number of pam modules that can be installed.

apt-cache search libpam-

Should show you them.

You will need to hunt down the documenation for them I'm afraid. But the "cracklib" is a common addition.

UPDATE: I should have pointed out that the default "obscure" parameter includes tests for complexity based on previous passwords and simplicity (length, number of different types of character). The example in the manpage shows cracklib in action. Install libpam_cracklib to get that working.

Also, once you have worked out what to change, the changes are the same in other files so that you can enforce the same (or different) password checks for SSH and other applications.


gedit + sshfs won't save (vi saves fine!)


How to open a link in a PDF with the error: "Unable to open external link. Failed to execute child process “sh” (Permission denied)"?

If the Brave browser is set to the default browser, this error occurs, but it doesn't occur if Firefox or Chrome are set to default. I have posted an issue here.


Is there a way to search for keyboard layouts by characters on specific buttons?

Is there an way by which I can filter out layouts by specific characters for specific buttons ?

There is. But apparently is only available during the installation:

You could install ubiquity package and simulate an installation to find the correct layout you need.


Packet tracer UI zoomed in (double the size)

Might be a DPI issue as @muru pointed out. Thank you, btw. When resolution is changed to 1600x900 everything is OK and bigger (better for the eyes)


After upgrade from bionic to Focal LTS many ppa disabled

That PPA is for testing only. In fact, the PPA description states:

Unless you are testing updates, you should NOT install packages from this PPA.

Disabling PPAs during a release-upgrade is normal. PPAs are NOT the supported Ubuntu Repositories, and some PPAs can introduce version conflicts with newer software. A normal (human) admin task after a release-upgrade is scrubbing the PPAs to see which (if any) are still needed...and are available in the new release. Your system WON'T make those checks for you.
Specifically about Firefox: The Ubuntu Desktop Team and Ubuntu Security Team regularly push Firefox updates through the -security pocket of the Ubuntu repositories, not the PPA.

Using the -security pocket means that most users automatically get the updated browser without being prompted (and often without even noticing) via Unattended Upgrades.

Firefox is one of the very few applications that gets new releases pushed to older releases of Ubuntu. This is a security-based exception to normal Ubuntu policy. All supported releases of Ubuntu get the newest Firefox.
Let's take a look at Firefox on 18.04. You can see that 18.04 shipped with FF 59, but updated 18.04 systems run FF 83
$ rmadison firefox | grep bionic
firefox | 59.0.2+build1-0ubuntu1         | bionic           | source, amd64, arm64, armhf, i386, ppc64el
firefox | 83.0+build2-0ubuntu0.18.04.2   | bionic-security  | source, amd64, arm64, armhf, i386, ppc64el, s390x
firefox | 83.0+build2-0ubuntu0.18.04.2   | bionic-updates   | source, amd64, arm64, armhf, i386, ppc64el, s390x


Trying to install Botan 1.10.0 , but getting error

You're trying to install an old version, no longer available in the repos. https://packages.ubuntu.com/search?keywords=botan <-This link shows the version currently available.

sudo apt install botan

Should install the proper version for your Ubuntu release (and all the dependencies).


You have to try Inkscape! This is a very good Vector graphics program.
The official homepage!, or just use the version in our repositories.

Extract from homepage:

  Inkscape has sophisticated drawing tools with capabilities comparable to Adobe Illustrator, CorelDRAW and Xara Xtreme. It can import and export various file formats, including SVG, AI, EPS, PDF, PS and PNG.

So it should be just what you are looking for!


Ok, a few things:

a) The syntax for no_proxy is an IP or a hostname, separated by commas, not a URL. So yours should have been just the IP. That being said, I don't think you need (or should) specify the proxy itself in there. Take a look at https://jujucharms.com/docs/1.22/howto-proxies

b) I think you are missing a port in the http-proxy variable. Or did you really install a proxy on the MAAS node on port 80?

c) That all being said, I think you hit but https://bugs.launchpad.net/juju-core/+bug/1439447. After addressing the issues in (a) and (b), and if still doesn't work, can you try with an older juju-core, like 1.20.14, or maybe 1.23beta4 where it's supposed to be fixed?


How to capture mouse/trackpad mode in Splashtop client?

Here's one solution:

Install Wine (windows emulator)
Go get the splashtop personnel .exe
Install and run in Wine

Pros: It works! Yay!

cons: It aint Linux so might be slower


Cannot install Software from the Software-Center

Schließe das Software-Center. Öffne ein Terminal (Windows-Taste und Ter... eintippen) und führe folgenden Befehl aus: sudo apt-get install -f. Gib auf Nachfrage dein Passwort ein. Wenn das erfolgreich ist, kannst du es erneut mit dem Softwarecenter versuchen.

In English: Close Software-Center. Open a Terminal. Run sudo apt-get install -f. Enter your password if asked. Then open Software-Center again.


LibreOffice constantly crashing under 13.10

You could try to upgrade to 4.1.4.2.

First, completely uninstall your LibreOffice :

sudo apt-get remove --purge libreoffice
sudo apt-get -y autoremove
sudo apt-get autoclean

Then remove the files that have been left :

sudo rm -r $HOME/.config/libreoffice
sudo rm -r /usr/share/libreoffice

Install 4.1.4 through PPA (4.2 if 13.10 or 12.04) :

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install libreoffice

I don't have any issues on 13.10 (32 bits + Unity)


Ubuntu 18.04.3 doesn't recognize 2. montor after running these commands

Thanks to dessert!

This command solved my problem:

sudo sh -c 'rm -f /etc/modprobe.d/blacklist-nvidia-nouveau.conf && update-initramfs -u && reboot'


How to solve "permission denied" when using sudo with redirection in Bash?

Output redirection (via the > operator) is done by the shell, not by echo. You have to login as root

sudo -i

Then you can use redirection

echo N> /sys/module/drm_kms_helper/parameters/poll

Otherwise you can run bash string with sudo

sudo bash -c "echo N> /sys/module/drm_kms_helper/parameters/poll"


Convert Linux URI-encoded filenames and paths in a text file to Windows paths

If you don't like Perl, use Python! ;-] Seriously, this or an equivalent Perl one-liner is the easiest way, if you can't use a different application to generate M3U lists.

from sys import stdin
from urllib.parse import unquote

print(*map(unquote, stdin), sep='', end='')

Run with:

python3 [script file] < [quoted m3u file] > [unquoted m3u8 file]

Note that the .m3u8 extension gives the reading application a hint, that the file is UTF-8 encoded. On Linux that may not matter, because most of the time it's the default encoding anyway, but many Windows applications might assume windows-1250 encoding or whatever your locale is.


My Ubuntu system will not boot from GRUB until I select it from the boot menu

First, a separate /boot partition (as described on the page to which you linked) will do no good. In fact, setting one up could complicate matters in a way that will make it harder to find a solution. Thus, you should not pursue this option.

Second, you say you disabled "fast start," but it's not 100% clear from your description if you're referring to a firmware option or to the Windows option called "Fast Startup" (or sometimes "Hybrid Boot"). If the former, you should disable Fast Startup in Windows, as described here (among many other places). Fast Startup basically turns a shutdown operation into a suspend-to-disk operation. One consequence of this change is that filesystems, including the EFI System Partition (ESP) on which boot loaders are stored, are left in an unsafe state. It's possible, although not all that likely, that your problems are a consequence of this fact. Thus, you should disable Fast Startup and try your fixes again -- or at least the bcdedit fix you've noted.

If that doesn't help, it sounds as if your firmware is buggy. Unfortunately, some EFIs ignore their boot settings. A firmware update (probably called a "BIOS update" on the manufacturer's page) may fix the problem, although you'll still need to use bcdedit in Windows, efibootmgr in Linux, or some other tool, to create an appropriate boot entry.

If neither disabling Fast Startup nor updating the firmware fixes the problem and if the computer is new enough, I recommend you return it to the store for a refund and buy something else, then write to the manufacturer and tell them why you returned the computer. Unless and until people start returning their defective computers, manufacturers won't even know the problem exists, much less be motivated to fix it.

If the computer is not new enough to return, you'll need to engage in some type of workaround. The simplest of these is probably to rename your boot loader files so that GRUB gets the name that's normally used by the Windows boot loader (EFI/Microsoft/Boot/bootmgfw.efi on the ESP). The Boot Repair tool has an option to do this (and move the Microsoft boot loader and update GRUB appropriately) on its Advanced options menu. It's called something like "Back up and rename boot files," but I don't recall the precise phrase used.

As to your excessive number of menu options in GRUB, I'm not certain of the cause, except in general terms: The scripts that create those boot entries can become confused and generate too many entries. Some people say that the GRUB Customizer tool can help tame the menu in such situations, but I've never used it myself. (I'm not a GRUB fan, and prefer to use almost anything else instead, -- but switching to another boot loader most likely won't solve your primary problem, since it must be registered with the EFI just like GRUB.)


The Windows-like GUI that ZorinOS uses is LXDE. You can install this from the repos (apt-get install lxde) then theme it, or you could install the lubuntu-desktop package and get the Lubuntu themed version of LXDE


When adding shared folder with btsync: "Don't have permissions to write to selected folder"

If your btsync is run by the user named btsync, you should actually add your folder's owner to btsync:

chown -R btsync folder_name

Or if you're using resilio you should change folder owner to relsync:

chown -R rslsync folder_name


jenkins-common package for latest jenkins builds

An unsavoury workaround for the problem is to edit /etc/init/jenkins.conf and comment out or remove the line $JENKINS_ROOT/bin/maintain-plugins.sh. This will prevent the missing script from being called (the only part of jenkins-common actually required.)

I've now held the packages to prevent that change being overwritten without manual intervention but it's not a very stable state to be in, so a better solution is very welcome.

I also had to ensure that libjna-java was not installed in order to allow jenkins to start (a known conflict with hard-coded libpam.so location in openjdk6 apparently)


Newly installed Ubuntu 20.04: Bluetooth headset sound and mic not working

Here is the detailed article I have written to resolve this problem, the steps of which I'm also adding here. You can follow it and most probably be able to solve your problem.
Bluetooth headset microphone not detected
Open your terminal and follow these steps:
We will use a PPA for adding Pipewire to Ubuntu 20.04, which is maintained regularly:
sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream

To update the PPA packages in your system do:
sudo apt update

Install the package:
sudo apt install pipewire

There is also a dependency needed to be installed with Pipewire, otherwise you will face the issue of “Bluetooth headset won’t connect after installing pipewire”. Install the dependency by:
sudo apt install libspa-0.2-bluetooth

Now, to install the client libraries:
sudo apt install pipewire-audio-client-libraries

Reload the daemon:
systemctl --user daemon-reload

Disable PulseAudio:
systemctl --user --now disable pulseaudio.service pulseaudio.socket

If you are on Ubuntu 20.04, you also need to “mask” the PulseAudio by:
systemctl --user mask pulseaudio

I am not sure but, if possible, you can try to run this on other versions too.
9. After a new update of Pipewire, you also need to enable pipewire-media-session-service:
systemctl --user --now enable pipewire-media-session.service
You can ensure that Pipewire is now running through:
pactl info

This command will give the following output, in Server Name you can see:
PulseAudio (on PipeWire 0.3.28)

Things should be working by now and you can see your microphone.
If it doesn’t show up, then try restarting Pipewire by this command:
systemctl --user restart pipewire

If it’s still not showing your microphone, you can try rebooting once and remove and pair your Bluetooth device again to check if it works now.
I hope I have helped you solve your problem.
If you want to rollback all the changes we did, you can do it by using:
systemctl --user unmask pulseaudio
systemctl --user --now enable pulseaudio.service pulseaudio.socket

Refer original thread Failed to change profile to headset_head_unit


The solution from @psusi works. One should first free up space by removing unused packets using the lower level dpkg command which isn't blocked by the problems apt has.

sudo apt-get install --fix-broken should fail but list unused packets
free them one by one using sudo dpkg --purge …. If a packet refuse to uninstall due to dependencies, just advance to the next one.
After uninstalling everything you could, sudo apt-get install --fix-broken again, and this time it should work.

Just did it, solved the problem.


sudo dpkg --configure -a
if doesn't work then

 sudo apt-get autoremove mysql-server
 sudo apt-get autoclean
 sudo apt-get update
 sudo apt-get install --reinstall mysql-server

If it doesn't work then remove sources.list file.and create new sources.list...

sudo rm /etc/apt/sources.list

Then, type in

sudo software-properties-gtk

This will open software-properties-gtk and a newsources.list will be created automatically.

Then change the server to US or to any other server of your choice. You must enable repositories from the new dialog in order to create new sources.list.

Tick all the boxes then click on Revert then click close.

Need to restore default repositories

 sudo apt-get update && sudo apt-get dist-upgrade -y

(it is good practice to backup this file before installing to recover if such things happen)


There is some problem with the overlay-scrollbar in gnome, try to remove it with:

sudo apt-get remove overlay-scrollbar


How to use a old version of Unity in newer versions of Ubuntu?

This is not possible due dependencies on libraries not available on newer versions of Ubuntu. But if you have a specific problem in newer versions of Unity, please open a separated question.

Newer version of Unity not only include improvements but also security and stability fixes, older versions should be only used for testing/study/historic reasons, not on production/stable environment.


Asus Eee PC 1201n support package (jupiter)

Just to fill in an answer, no, Jupiter is discontinued, but there are many utilities & documented means of doing what it used to do (here & elsewhere) - see comments for specifics!


Yes, it's there so that you can switch keyboard layouts. I often switch between English and Norwegian, for instance. I don't really understand why that menu is a problem, but if you want it to go away, have a look in the System Settings. I don't remember what it's called in English, but it's one of the entries on the top row and the setting is at the bottom of the screen, "Show current input in the panel" or something like that.

By the way; you keep all your settings if you keep your home directory.


Install MS Fonts for xvfb-run in Ubuntu 14.04 server

For anyone who stumbles across this,

I had to do

mkfontdir /path/to/fonts/folder
mkfontscale /path/to/fonts/folder

and then

sudo fc-cache -vf


Upgrade to Ubuntu 19.04 - desktop environment

You can't upgrade from 18.04 (LTS) to 19.04 directly, you will have to upgrade to 18.10 first, then to 19.04. When 20.04 (LTS) comes out, you can upgrade from 18.04 to 20.04 directly.

Apart from that, Kulfy's comment on your question is correct, DE is just application(s) and you won't lose configuration on upgrade.


Can't install steam from software center: "Additional software packages are missing or not installable"

I actually just ran into this, did you install Steam from the PPA before? If you did remove the PPA (open Software Sources, Other Source tab, and remove the steam sources) and uninstall steam (open a terminal [ctrl + t] and type "sudo apt-get remove steam" without the quotes)


Autostarting applications with XMonad & Ubuntu

You need to add an ampersand after anything that needs to run in the background, nm-applet and gnome-power-manager in your case.  Otherwise it'll just wait there for those to exit before it does anything else.

So your .xinitrc should look like this:

#!/bin/bash
xrdb -merge .Xresources
if [ -x /usr/bin/nm-applet ] ; then
   nm-applet &
fi

if [ -x /usr/bin/gnome-power-manager ] ; then
sleep 3
gnome-power-manager &
fi

exec xmonad

Alternatively, you could run xmonad as the window manager inside a Gnome session, and then whatever is set in gnome-session-preferences will autostart.  For instructions on how to do that, go here: http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Gnome


Ubuntu 10.10 cannot get nVidia driver 260.19.12?

10.10 is End of Life.
You should upgrade to 11.10 or newer to get continued support. (11.04 is almost EOL, it will be end of life when 12.10 is released in October of 2012.)
Also, that PPA does not publish Maverick packages.  Also, PPAs cannot publish (new) Maverick or EOL-release packages (EOL being Jaunty, Maverick, and others), which is why there are no Maverick packages there.


unable to open ubuntu using Bootable ubuntu on my pendrive

Check, in BIOS, that your pendrive is listed as external usb. Sometimes BIOS recognises it as a hard disk drive, so, in this case what you have to do is set BIOS to boot from hard disk drive as first option (priority) and, in the hard disk drive list you have to place your pendrive at top of the HDD list. Save and exit.


large tmpfs /run partition - must it be so big?

The size of a tmpfs partition is its maximum size. Only the part that's actually used takes up virtual memory (RAM or swap). Making the maximum size smaller will not save any memory.

It's unlikely that /run will take up more than a few megabytes. On the other hand, there's zero advantage to reducing the maximum size.

The non-disk filesystems used by the system (/dev, /proc, /sys, /run and a few others) are created by boot scripts in /etc/init and /etc/init.d. Don't edit those files unless you know exactly what you're doing.


I had this problem too.

go to windows.use check disk tool:
open run , type cmd , use this command:

CHKDSK D:/

that will work.

in ubuntu you can use this article:
check disk in ubuntu


Did a sudo rm -rf /var/lib/apt/list and sudo apt-get update after that and now aptitude finds the package!


The easiest way is to use one of the forks of Remastersys (RIP). You might want to do a search and find out what's available at the moment. Remastersys and it's descendants are written in bash, so forking and fixing it is a tempting project for a lot of people. Perhaps that is why the forks seem to come and go as far as active maintenance goes. The one I last had success with is Pinguy:

http://pinguyos.com/2015/09/pinguy-builder-an-app-to-backupremix-buntu/

Last time I looked there were at least 2 approaches to remastering using programs in the repo. Search "remaster" with Synaptic or something similar. One of those approaches, UCK, was hideously complex compared to the simplicity of the Remastersys way. The other was just plain broke. But it might be worth a look now.


How find out who is using my virtual commport over usb

These look like Hayes modem commands. You have some app or driver trying to initialize a modem device.

The E command determines whether characters are echoed to the DTE from the modem when it is command state. Some computers and terminals do not send the characters you type to the screen; they only transmit them to the remote system through the serial port. In this case, if Command State Character Echo were not enabled by the modem, you would be unable to see what you type. If the DTE does echo the characters you type in command state, and this function is enabled in the modem, each character typed will appear twice.

E0     Command state character echo disabled.
E1     Command state character echo enabled.

source: http://www.messagestick.net/modem/Hayes_Ch1-1.html


How to increase video memory in Wine? (Wine version 1.6.2)

You can set the video memory size as your graphics card supports with winetricks like this:

winetricks videomemorysize=2048

2048 is the video memory size in MB.

You may need to install winetricks:

sudo apt-get install winetricks


Maybe problem isn't there were I try to find it, but can you view on a System Settings in Brightness & Lock what the lock parameters are. Maybe the problem there. If Lock is off it can be a problem or maybe On, but one hour before Lock it can be a problem, too.


Slow sudo and ssmtp (hosts file problem)

Try editing your /etc/hosts as follows :

 127.0.0.1   server.example.com
 127.0.1.1   server.example.com      server

 ::1     ip6-localhost ip6-loopback     server.example.com
 fe00::0 ip6-localnet
 ff00::0 ip6-mcastprefix
 ff02::1 ip6-allnodes
 ff02::2 ip6-allrouters

Try executing sudo su now and see if it makes a difference.


Ubuntu 16.04 Ubuntu Software runs but does not install software nor show installed software following dconf reset -f /org/compiz/ and setsid unity

I don't believe the dconf reset had anything to do with Ubuntu Software Center or a malfunction in the other editor. The missing menu bar was a compiz problem, meaning the graphic user interface (GUI).

I've found that the new Ubuntu Software that replaced Software Center doesn't work all the time. So, the Synaptic Package Manager might be of help. Go to a terminal by pressing

Ctrl+Alt+T

and run this code:

sudo apt-get synaptic

After the Synaptic package is properly installed, you can run it from the Terminal by executing

sudo synaptic

After reviewing the help files you'll find yourself in complete control of the packages in your machine.


System sometimes does not recover from lock screen: blank screen with cursor

This seems like a bug with the display manager. A temporary workaround could be to manually lock your screen AND

Disable dimming or
Enter a few random characters into the password field that prevents the screen from dimming.

The downside is that it will leave you with a screen that stays on all the time, but at least you do not lose the state! (especially for short intervals of time.)
And for people who do not care about state, you can restart the GUI.
Update:
The real issue doesn't seem to be related to the display manager. In fact it is due to misconfigured display drivers. Search for 'Additional Drivers' from the dashboard or Under System settings -> Software & Updates -> Additional Drivers Tab
Select any available Proprietary drivers (preferably tested ones) instead of the default X.Org X server drivers. Apply and restart your computer. And you'd be good!


No wireless or wired internet after installing kubuntu-desktop on 14.04

I solved it. The problem was not my computer but rather the router (just did a restart). The router wasn't able to allocate new IP addresses, so eventually every device on the network would have been affected but my computer was the first.


Ubuntu 18.04: Gnome lock screen refuse correct password

I have the same issue and tried a lot of solutions offered around the internet. So far, the only work around that worked when this happens:

Alt+Ctrl+F1 - switch to a different console and login as your user
sudo killall gnome-screensaver - to kill the screensaver
Alt+Ctrl+F7 - switch back to your X screen, there will no longer be a screensaver
gnome-screensaver-command -l to lock your screen again and now unlock with your password (it should work now)

Note that if I don't do #4, the screen continue to go blank after a few minutes of being logged in, which is why I figured I needed to do #4.

Edit from 2020: Yet another alternative, inspired by EChip's answer: setup a cron script that will switch language back to English when the screen lock dialog is detected:

# Allows to avoid situation when on screen lock language other than
# English is selected.
#
# Set up under user's cron like this:
# * * * * * env DISPLAY=:0 /bin/bash /storage/scripts/unlock_helper.sh > /home/your_user_name/log.txt 2>&1
#
# Prerequisite:
# Add the following line to you .profile:
#    set | grep DBUS_SESSION_BUS_ADDRESS > ~/.DBUS_SESSION_BUS_ADDRESS

source /home/your_user_name/.DBUS_SESSION_BUS_ADDRESS
export DBUS_SESSION_BUS_ADDRESS
echo $DBUS_SESSION_BUS_ADDRESS

if (/usr/bin/gnome-screensaver-command -q | /bin/grep "is active");
then
    /usr/bin/gdbus call --session --dest org.gnome.Shell \
        --object-path /org/gnome/Shell \
        --method org.gnome.Shell.Eval \
        "imports.ui.status.keyboard.getInputSourceManager().inputSources[0].activate()"
fi


Error "Printer 'MFC6890CDW' may not be connected."

I found the solution:

First, download the lpr driver (deb) from this site: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-6890CDW
Install it and ignore the error message
Download the Cupswrapper driver (deb) from the same site
Install it and ignore the error message
Open the printer management
Click on 'Add a new printer'
Choose 'Network printer' in the side pane
Choose the 'LPD network printer via DNS-SD'


You have installed Ubuntu in Legacy mode, but you need it in UEFI mode as Windows is in UEFI mode.

To fix this:

set up your BIOS in UEFI mode, and disable SecureBoot /FastBoot /QuickBoot
boot on your Ubuntu-Secure disc (in UEFI mode if possible), choose Try Ubuntu, run Boot-Repair's Recommended Repair
Reboot the PC. You should see the GRUB menu with access to both Ubuntu and Windows.


Fixed it. As I thought, the issue was in the latest update of the kernel.

Reboot your machine and press shift or escape while it is loading to get to GRUB menu
Choose Advanced options
Load with a previous kernel, not the upper one (not a recovery one as well). Remember the number of upper kernel to delete it later. Laptop should load normally with WiFi working
Remove bad update. In my case it's one I indicated, if yours are different, change it.

sudo apt-get purge linux-image-5.3.0-40-generic

sudo apt-get purge linux-headers-5.3.0-40-generic


If you are logged in to a cloud instance with a shared key - you can likely prefix the last command with sudo:

sudo python setup.py install

alternatively, you can install boto from the built-in package management system, with the command

sudo apt-get install python-boto

while the latest version is not part of the apt-get package system, it will be likely current enough for most needs.

If you installed Ubuntu from CD or image, you entered in a password for the 'ubuntu' user during setup.   That is the password you should use.   If you have forgotten it and can't guess it - the easiest approach to to re-install, recovery is a bit of an advanced effort and it may be faster/easier/better for you to start over.


Text files don't usually have any meta data. You just have to know what's inside yourself. Actually, on Ubuntu the default 'locale' (i.e. the default way to interpret text files) is also utf-8, so if it doesn't work for you then it's the specific program that doesn't support it, not the OS.

Note that us-ascii is a subset of utf-8, so the only way to tell the difference would be to scan the entire file for the multibyte characters, and you probably don't have any (unless you're writing in Chinese or Arabic or something).


Have you tried doing some, 'spring cleaning' removing old kernels? If not open up terminal (ctrl+alt+T) and paste the following commands:

Taking note of the most recent kernel

dpkg --list | grep linux-image

This will reveal all kernels presently installed on your system. Look for outdated kernels.

sudo apt-get purge linux-image-x.x.x.x-generic

Where x.x.x.x is the kernels you're wanting to remove, that is, outdated kernels.

sudo update-grub2

To update grub2.


E: Unable to locate package with sudo apt install

This is mean the package is not on the distribution repository. If you want to install the package, you should add the repository manually by searching for a repository that contains the package you want.


can not access to tomcat7 manager application

I've changed the tomcat-users.xml file inside the

/etc/tomcat7/tomcat-users.xml

my previous settings:

<tomcat-users>
 <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
</tomcat-users>

changed to:

 <role rolename="manager-gui"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="manager-gui"/>

Now I can access the link

http://127.0.0.1:8080/manager/html


Icon not shown on gnome(originally ubuntu mate) desktop

Try this to reenable them:
gsettings set org.gnome.desktop.background show-desktop-icons true

and starting nautilus (if it’s not already running).


Make ubuntu gnome faster by reducing graphics quality

Yes, log out and select a different desktop. Unity 2D doesn't have compiz running so is faster in some circumstances.

Or install Gnome Shell (you only need the gnome-panels package in 12.04) and you can select the Classic desktop which is probably even more efficient.

Or don't use Gnome at all. There are plenty of other desktop environments (LXDE, Xfce, etc) that are light.