I can't enable an Intel 5100AGN wireless card

Your rfkill-list results indicate both a hard-block issue and soft-block issue.
Lets deal with the acer-wmi soft-block:
Try blacklisting the acer-wmi kernel module:
sudo nano /etc/modprobe.d/blacklist.conf

add blacklist acer_wmi as a new line at the bottom of this file.
then reboot.
After reboot rerun rfkill list all - hopefully your soft-block value is changed from "Yes" to "No".
As to the hard-block value of "Yes".  This is a physical problem not a software problem.
There should be either a bios setting, Fn-key wireless toggle or a physical switch you need to use.
Sometimes these hardware block issues require the use of MS Windows - you boot into Windows, re-enable the wifi and then reboot into Ubuntu.

iwlagn
Sometimes the iwlagn kernel module can cause an issue.  Try the following:
sudo rmmod -f iwlagn
sudo modprobe iwlagn
sudo service network-manager restart

Another variation is:
sudo rmmod -f iwlagn
sudo modprobe iwlagn 11n_disable=1
sudo service network-manager restart

Wireless Switch
Since you mentioned that you see the error "wireless is disabled by hardware switch"...
On the Lenovo U330 laptop according to its manual:

An isotropic antenna system is built into the display for optimal
reception, enabling wireless communication wherever you are. To enable
wireless communications, do the following;
1 Slide the Wireless device switch latch to the right.
2 Press Fn + F5.


How to install Rhythmbox Spotify plugin?

If you are referring to this Rhythmbox Spotify plugin, then I'm afraid the answer is no, there isn't a way to install it other than building the whole of Rhythmbox with it.

Also notice that the code for that plugin hasn't been touched for 3 years, so it's likely that no longer works with the current Rhythmbox code.

All in all, my suggestion would be to stay away from that plugin and use the native Spotify client instead.


I had also faced the same problem. Whenever I tried to disconnect from the VPN (in my case it was PPTP) server, KDE Network Manager takes 100% CPU. I used to kill KDE4 from "System Monitor". But even getting there takes a lot of time because the whole system behaves slow to any activity.

Found quite a few bugs reported for this issue. The one I mention here will give us more details about the issue : https://bugs.kde.org/show_bug.cgi?id=268038

To solve the issue, about a few days back I had to check on the "pre-release updates" from software souces-->origin under Kpackagekit. Several updates were installed and the issue got fixed.

From the above ticket it seems the updates are already there in Kubuntu updates and you probably don't need to install those pre-release updates. Just check whether there is any update available for you or not.

In case there is no available update from the regular channel, then you might want to try the above process as tried by me. But before proceeding please note that as per my knowledge, pre-release updates might bring in other issues. So please be sure before installing the pre-release updates.


Convert whole Website in book or pdf format

One way of doing it is going on Fullscreen mode (from the browser menu) and then use Printscreen (next to Delete button) to capture each page. Then organise them as you wish (make chapters linked to the categories/sub-categories) and export it as images or make a pdf.


How to install STM32CubeProgrammer in Linux

The instructions in section 1.2.1 of the STM32CubeProgrammer software description worked for me.

I installed openjdk-8

sudo apt install openjdk-8-jre-headless

I set selected java-8 as my default run time engine

sudo update-alternatives --config java

and installed the following packages

sudo apt purge openjfx
sudo apt install openjfx=8u161-b12-1ubuntu2 libopenjfx-jni=8u161-b12-1ubuntu2 libopenjfx-java=8u161-b12-1ubuntu2
sudo apt-mark hold openjfx libopenjfx-jni libopenjfx-java

Then I installed the STM32CubeProgrammer as I had done earlier

sudo ./SetupSTM32CubeProgrammer-2.2.1.linux

The last page of the installation procedure mentioned the path to the program files. The following path now leads to the program files on my system

/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/

The program can be launched using

sudo /usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/./STM32CubeProgrammer


Via Gparted format the disk, then create a new partition table.


How to blanket change scaling of ui elements?

For Unity Only

I don't know how to do this in KDE but just happened to stumble upon this earlier today.

STEP-ONE

Go to system settings and adjust "scale for menu and title-bars". Initially, this will also affect your font size but we'll get to that in the next step.

STEP-TWO

Open unity-tweak-tool (if it's not installed it's available through apt-get). Choose "font" and adjust the "text scaling factor". As you can see in this example, the text gets smaller but the menusize, icons, panel, etc. stay the same. Actually, you are able to enlarge or reduce the size of the text without changing the size of the font.


Like I said in my comment, not much can be done about this. This is a known bug in the compiz package:

Wine breaks window decorations for all applications (gtk-window-decorator crashes)
gtk-window-decorator crashes with BadWindow (invalid Window parameter), from XGetWindowProperty() from get_frame_type()

You have to wait for a fix.

Until then, you can create a script that starts whatever program you want and restarts gtk-window-decorator when it exits.

Per example:

#!/bin/bash

wine /path/to/program.exe
gtk-window-decorator --replace &

Then chmod +x your_script.sh and use it to launch whatever the program you want to run is.


You can use vlc (sudo apt-get install vlc -y).

Open vlc, then press Ctrl+R
choose [capture device] and select your webcam
Press [Convert/Save]
Choose where to save the file and hit [start].
When you are done press ■


How fast can Ubuntu 13.10 drive an Intel dual-band 7260?

I think this thread answers my question.  Quote:

  It was bugging me that I couldn't remember where I had read the 7260ac
  would only get ac speeds on 3.13+ kernels... so dug around (again).
  Here's the link to the discussion I came across:

  http://www.linux.org/threads/wireless-speed-capped.4324/

  Post #14 had the reply from Intel that stated ac speeds would only be
  available on 3.13+ kernels (you'll need to expand the post to see
  Intel's reply).

As I understand it, Ubuntu 14.04 will ship with the 3.13 kernel.

Edit: I did a fresh install of Ubuntu 14.04 on the same machine.  The wireless speed is still significantly below where it ought to be.  Whatever the problem is, Ubuntu 14.04 does not fix it.


How to boot to text only mode? Problem with laptop with Nvidia GPU

The problem solved by disabling "hybrid" graphics in BIOS. Precisely, I found a switch in BIOS with options: MSHybrid (default) and DISCRETE. Selecting DISCRETE allowed be to login to Ubuntu. It looks like the problem is in Intel and Nvidia GPU cooperation, not in the Nvidia GPU itself.


I do have alsamixer installed, all my outputs are using it, nothing is muted, and sound works fine in Windows. Rather strangely, the problem seems to occur when I click the restart button, either on Windows or Ubuntu, and the solution to it is to restart manually (by clicking the shut-down button). I have no why this happens, but at least there isn't much of a problem now.


Cursor moves when I tap the touchpad to click (xorg.conf problem)

Add new setting file to the /etc/X11/xorg.conf.d/ folder.
There, you can have any file named NN-filename.conf with NN is a number of priority. Try to substitute with 99 for priority and touchpad to make it clearly describe the purpose (e.g. 99-touchpad.conf).

In that file, you may add your settings. Something like this will work :

Section "InputClass"
  Identifier "touchpad catchall"
  Driver "synaptics"
  MatchIsTouchpad "on"
  MatchDevicePath "/dev/input/event*"

  # Change as necessary
  Option "FingerHigh" "25"
  Option "FingerLow" "30"
End Section


Ubuntu display messed up after update to 16.04

If you can open terminal so send result of this command:

sudo apt-get update
sudo apt-get upgrade

If you can not open terminal press Ctrl + Alt + F1 to open it.If it does not work you must open terminal from Advanced options in grub2 menu(when you restart you computer).
don't forget you must be connected to Internet.


How can I disable "Pointer can be controlled using the keypad" function on Laptop?

This might help you!

Open System Settings by going to Session Indicator in Unity panel.

In system settings open Universal Access.

Under Pointing and Clicking tab turnoff the Control the pointer using the keypad.


I guess to read this link can help you solve your problem:

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


You can, but it's complicated and you lose drag and drop between monitors.

The setup would be something like setting up 3 different X sessions, one on each monitor.

Turning off your system setting based screensaver.

Adding a screensaver daemon for each x session with the settings file you want in the tweaked xinitrc for each xsession.  Here's some info on custom xinitrc.


How do I execute FTP commands on one line?

I found this thread when I was searching for a way to have a single ftp command execute a file transfer from this machine to the ftp server.  Here is how:

Create a file with the ftp commands in it: (call it 'ftpcommands.txt')

 open YourFtpServer.com
 user YourUserName YourPassword
 put localfilename remotefilename
 bye

Then run the ftp command and feed the file into it:

 ftp -n < ftpcommands.txt

The -n option keeps ftp from trying to log in automatically when it receives you 'open' command.

Hope THAT helps someone.  I couldn't find anything online that was this solution, so I had to figure it out myself.


It is possible that there is some other action bound with this combination. I hope you have verified the shortcuts from Settings.


whats the difference between tasksel and normal methods

I guess you must have used the command:

sudo tasksel install lamp-server

You could have also used:

sudo apt-get install lamp-server^

Remember that lamp-server is not a package but a task. Tasksel is generally used to install tasks on your system. Please read its documentation.


How to install windows 8.1 boot loader which is damaged by ubuntu?

These are instructions on how to reinstall the boot loaders only, they may not solve the general problem and they are given on your explicitly request deriving from your other question on this.

Step 1 : Reinstall the Windows boot loader

Boot from the Windows installation media. On Install now screen select Repair your computer -
Choose Command prompt and execute:

bootrec.exe /fixmbr
bootrec.exe /fixboot
bootrec.exe /rebuildbcd

Step 2 : Reinstall the GRUB boot loader

Boot from the Ubuntu installation media. Select Try Ubuntu without installing, on the desktop -
Open a terminal and execute:

sudo mount /dev/sda8 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sda

Note : sda = disk | sda8 = ubuntu system partition


Ignore "Bad: new and old password are too similar"

For me I was able to avoid this message:

Bad: new password is just a wrapped version of the old one (and a few other similar messages)

by running $sudo passwd <my_username> instead of just $ passwd

Just obviously be aware of the security implications but at least it allows it now.


Firstly, 13.10 is infinitely dead.  It is well past end of life and not supported.  UNDER NO CIRCUMSTANCES ATTEMPT TO DOWNGRADE TO IT.

VLC 100% most definitely is supported in later Ubuntu releases, and I know that I use it as my primary media player on my Ubuntu laptop.

Further evidence that VLC exists and works in the repositories is evidenced by the fact that VLC exists in every version since 12.04, as shown by this rmadison output:

 vlc | 2.0.1-4                | precise/universe          | source, amd64, armel, armhf, i386, powerpc
 vlc | 2.0.8-0ubuntu0.12.04.1 | precise-security/universe | source, amd64, armel, armhf, i386, powerpc
 vlc | 2.0.8-0ubuntu0.12.04.1 | precise-updates/universe  | source, amd64, armel, armhf, i386, powerpc
 vlc | 2.1.2-2build2          | trusty/universe           | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 vlc | 2.1.6-0ubuntu14.04.4   | trusty-security/universe  | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 vlc | 2.1.6-0ubuntu14.04.4   | trusty-updates/universe   | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 vlc | 2.2.0-1                | vivid/universe            | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 vlc | 2.2.2-5                | xenial/universe           | source, amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
 vlc | 2.2.2-5ubuntu0.16.04.4 | xenial-security/universe  | source, amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
 vlc | 2.2.2-5ubuntu0.16.04.4 | xenial-updates/universe   | source, amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
 vlc | 2.2.4-14ubuntu2        | zesty/universe            | source, amd64, arm64, armhf, i386, ppc64el, s390x
 vlc | 2.2.4-14ubuntu2.2      | zesty-security/universe   | source, amd64, arm64, armhf, i386, ppc64el, s390x
 vlc | 2.2.4-14ubuntu2.2      | zesty-updates/universe    | source, amd64, arm64, armhf, i386, ppc64el, s390x
 vlc | 2.2.6-4build1          | artful/universe           | source, amd64, arm64, armhf, i386, ppc64el, s390x

So feel free to just install vlc from the repositories and use it.  There won't be any issues with compatibility.

I've emailed the VideoLAN group about the inaccuracy of their site in the interim.


How do I redirect PlayOnLinux to a different partition?

Speak of the devil. I deleted Guild Wars 2 inside POL and ran the installation procedure of Guild Wars 2 again until it reached about 300 MB for good measure. I then deleted the ArenaNet folder POL had created, and made the symbolic link described in my question.

sudo ln -s "/home/ruben/Windows/Program Files (x86)/ArenaNet" "/home/ruben/.PlayOnLinux/wineprefix/GuildWars2/drive_c/Program Files (x86)"

And it worked! So soon after posting my question. I hope this helps anyone else, then.


As Chai T. Rex mention in his comment, I think this is a network connectivity issue (maybe you're behind a proxy, if that's the case the solution is below), because I executed right now this command:

sudo add-apt-repository ppa:clipgrab-team/ppa

And it's working perfectly, see the output below.

galoget@hackem:~$ sudo add-apt-repository ppa:clipgrab-team/ppa
 This PPA contains the latest stable version of ClipGrab for LTS releases. For other versions see <http://www.getdeb.net/app/ClipGrab>

Requires ffmpeg. As Ubuntu 14.04 dropped ffmpeg, a symlink from /usr/bin/avconv to /usr/bin/ffmpeg will be created as a workaround.

Installation instructions for the terminal:

sudo add-apt-repository ppa:clipgrab-team/ppa
sudo apt-get update
sudo apt-get install clipgrab

Alternatively you can add ppa:clipgrab-team/ppa to your system's Software Sources in the Ubuntu Software-Center. If you want to upgrade your system, please remove clipgrab and clipgrab-team/ppa first.
 More info: https://launchpad.net/~clipgrab-team/+archive/ubuntu/ppa
Press [ENTER] to continue or Ctrl-c to cancel adding it.

gpg: keybox '/tmp/tmplgjtx7zm/pubring.gpg' created
gpg: /tmp/tmplgjtx7zm/trustdb.gpg: trustdb created
gpg: key D8AD4DE78EEBB0CA: public key "Launchpad ClipGrab PPA" imported
gpg: Total number processed: 1
gpg:               imported: 1
OK

In case you're behind a proxy server, please use the following commands:

Export HTTP and HTTPS proxy variables:

export http_proxy=http://<proxy>:<port>

export https_proxy=http://<proxy>:<port>
Tell sudo to preserve the environment with the -E flag.

sudo -E add-apt-repository ppa:linaro-maintainers/toolchain

In case you need to authenticate with username and password please follow this structure for environment variables:

export https_proxy=https://<username>:<password>@<proxy>:<port>

Hope it helps.


Lets see details, use ppa version with your live installer (2nd option) or any working install,  not older Boot-Repair ISO:
Please copy & paste the pastebin link to the Boot-info summary report ( do not post report), do not run the auto fix till reviewed.
https://help.ubuntu.com/community/Boot-Repair
Your "Windows" boot entry was modified to boot using grub, see line 86 (should never be done, but was in past). Does UEFI boot entry 0006 "UEFI" boot Windows? You need to use your Windows repair disk to create correct UEFI boot entry.
Your "Windows Boot Manager" boot entry was modified to boot using grub, see line 86 in your report (should never be done, but was in past). Does entry 0006 "UEFI" boot Windows? From UEFI one time boot key often f12 but same key you use to boot live installer should be an entry saying UEFI, does that boot Windows?
You need to use your Windows repair disk to create correct UEFI boot entry. Or See IV for example efibootmgr entries & restore Windows entry:
Dual boot Win 8 / Ubuntu loads only Win
Some links to Windows repairs:
Windows hard disk read-only now Windows is removed
https://support.microsoft.com/en-us/help/4026852/windows-create-a-recovery-drive
https://support.microsoft.com/en-us/help/12415/windows-10-recovery-options


Hibernate doesn't work(and does funky stuff)

Try this way.

sudo apt-get install hibernate

After that just type in terminal

sudo hibernate

This way work for me.


Wifi not detected in my HP pavilion 15-N011TU running Ubuntu 12.04

There is currently no driver for your device. Please see here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1220146 I suggest you buy a USB wireless until a driver is developed. You may wish to register with Launchpad and add to the bug report I linked.


System account passwords can be found in /etc/shadow. You need root privileges to read the file. The passwords are hashed with SHA. Additional information can be found on the corresponding manpages.

Network or wifi passwords can be found in /etc/NetworkManager/system-connections. There is a file for each connection with its configuration, also you need root privileges to read them but the password isn't encrypted.

Passwords handled by Gnome's password store, the Gnome Keyring, are stored in ~/.gnome2/keyrings. The files are not human readable and should be accessed with Gnome's default password manager Seahorse. On older systems (before precise/12.04) wifi passwords were stored in Gnome Keyring and PINs for Mobile Broadband are still stored there.


Another issue is that wash uses the directory /etc/reaver which is not created automatically. If wash shows an empty output check if the directory exists, if not mkdir /etc/reaver.


This depends on what each theme provides.

Check which of them you are using.
Then look for its index file in /usr/share/icons

Example: /usr/share/icons/elementary-xfce/index.theme

[Icon Theme]
Name=elementary Xfce
Comment=Smooth modern theme for Xfce
Inherits=adwaita,gnome,hicolor

Example=directory-x-normal

#Directory list
Directories=actions/16,actions/22,actions/24,actions/32,actions/48,actions/64,actions/96,actions/128,actions/symbolic,animations/16,anim
ations/22,animations/24,animations/32,animations/48,animations/64,animations/128,apps/16,apps/22,apps/24,apps/32,apps/48,apps/64,apps/96
,apps/128,apps/symbolic,categories/16,categories/24,categories/32,categories/48,categories/64,categories/96,categories/128,categories/sy
mbolic,places/16,places/22,places/24,places/32,places/48,places/64,places/96,places/128,places/symbolic,mimes/16,mimes/24,mimes/32,mimes
/48,mimes/64,mimes/96,mimes/128,mimes/symbolic,devices/16,devices/22,devices/24,devices/32,devices/48,devices/64,devices/96,devices/128,
devices/symbolic,emblems/10,emblems/16,emblems/22,emblems/24,emblems/32,emblems/48,emblems/64,emblems/128,emblems/symbolic,emotes/16,sta
tus/16,status/22,status/24,status/32,status/48,status/64,status/128,status/symbolic,notifications/16,notifications/22,notifications/24,n
otifications/32,notifications/48,panel/16,panel/22,panel/24,panel/48,stock/16,stock/22,stock/24,stock/32,stock/48,tools/22,

[actions/16]
Size=16
Context=Actions
Type=Fixed

[actions/22]
Size=22
Context=Actions
Type=Fixed

[actions/24]
Size=24
Context=Actions
Type=Fixed

[actions/32]
Size=32
Context=Actions
Type=Fixed

[actions/48]
Size=48
Context=Actions
Type=Scalable

[actions/64]
Size=64
Context=Actions
Type=Scalable

[actions/96]
Size=96
Context=Actions
Type=Scalable

[actions/128]
Size=128
Context=Actions
Type=Scalable

[actions/symbolic]
Size=16
Context=Actions
MinSize=8
MaxSize=512
Type=Scalable

...

Keep in mind, that it Inherits=adwaita,gnome,hicolor, so parent themes may have additional sizes. Non-standard sizes could be covered by Type=Scalable icons.


Need to get Flash running on Firefox 49.0 using 14.04

The official Flash Player for Firefox is a rather old version, but there is Flash Player 23 Beta which sooner or later will be official.

If you want to install the beta now, I made a modified version of adobe-flashplugin available in a PPA.


can't run ubuntu 20.04 server on synology diskstation as docker container

I'm not sure, if this is the right place to ask for support, because you are using Synology Diskstation.
Imho your problem is, that the docker container don't have internet access and can't fetch packages. This could be a network related problem in docker or e.w. a firewall problem in your diskstation.


Questions on creating a MultiBoot CD/DVD

Try putting syslinux in the same directory as the shell script and running my slightly modified version:

http://parodicaltech.tk/multicd.sh

Apologies for having to use my webserver.
If it fails, then make sure that it is that the working directory contains both multicd.sh and syslinux-4.05.tar.gz
I have not tested this script, unfortunately, although it should work.


The menu items are in the top right corner. I'm attaching a pic of that.


Meaning of different icons for USB flash drives

Ubuntu differentiates between filesystem builds (ISO formats) and displays the relevant icon.

The standard USB icon is for generic removable media devices. The one with the purple usb stick is for UDF filesystems (Info here). The larger icon is for mass storage devices.

You may come across any of these depending on the hardware specifications of the device.


Have Openstack Autopilot installed but unable to launch instances

Well it turns out to be easier than it seemed. Apparently Landscape created two accounts to access openstack dashboard, admin one which was the one I logged in with & the other one that presumably addressed to as demo user. Using the latter it went smoothly & instance launched.


Unable to install MariaDB on circleCI ? Problems with dpkg.

I have solved it, but know I have different problem.

Firstly in order to solve it, you have to delete all of default mysql from your server using this How do I uninstall MySQL completely?

Then, from the links from MariaDB site just one works and it's Bulgarish. https://downloads.mariadb.org/mariadb/repositories/#mirror=hostag&distro=Ubuntu&distro_release=trusty--ubuntu_trusty

I have come up to other problem. I don't know how to put this prompt window about setting root password away. Anyhow that's other problem then this.


Like this?
sudo -p "Custom prompt:" ls
Custom prompt:

Edit: As steeldriver commented:

"For completeness, you might want to mention the SUDO_PROMPT
environment variable (which allows a user to set the prompt
persistently) and the sudoers configuration file parameter passprompt
that allows administrators to customize it system-wide."

so, to do that;
export SUDO_PROMPT="Custom Prompt"
sudo su
Custom Prompt

Edit3:
To -revert- the action; use the unset command:
unset <env variable>

for example, unset $SUDO_PROMPT:
unset SUDO_PROMPT


SD card seems in read only mode and I cannot format it.

if your SD card is unable to format, it means the file allocation table is corrupt or missing. And it will always shown as RAW, unknown or unsupported. In this case, you can try the below method.

Try other device or system
The unable to format issue may rooted with the card itself or the device interacting with it. So，just try to insert the SD cards to other device or other system to see if this solves the issue.
Rename the card
You card may works well on mobile devices but PC. Then, the instant way is to rename the card. Here's how to rename your SD card.
Use CHKDSK Command
If the above two method fails, your SD card might logically damaged due to file system corruption. Then, CHKDSK should be your first choice to recover formatted data. You can follow the steps here to do it.


sudo apt-get install ubuntu-device-flash does not work while installing Ubuntu Touch, package cannot be located

https://ubports.com/ubuntu-touch/get-ut

Ubuntu phone is supported by ubports nowdays, checkout above link.


Adding the following to ~/.Xmodmap fixed this:

keysym Super_L = Caps_Lock


3.15.5 stable kernel not building, "gzip: stdout: no space left on device", /boot is NOT full

It appears that you are running out of space somewhere:

Based on your df -h /tmp is a likely location.

Open a second terminal and monitor memory while you are compiling. You can accomplish this with watch cat /proc/meminfo You may have insufficient RAM and/or SWAP to accomplish your task.

You may also have insufficient space on /tmp. Monitor disk usage of the necessary filesystems during compile. You can use the watch command for this as well watch df -h
this should allow you to see if something is filling up that you don't expect.

For more details on the watch command (which defaults to a 2 second interval) see man watch

If you have insufficient space on /boot.

Error during kernel upgrade: gzip: stdout: No space left on device

There are times when you will be surprised that package managers do not automatically remove older archives of the software installed. This happened to me for the first time, when one of the systems I was managing suddenly returned an exit status 1.

Removing the offensive application to free up much needed space is sure to fail! especially if the application mentioned here is a kernel.

Consider this line:

Setting up libcups2 (1.4.6-5ubuntu1.3) ...
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-2.6.38-10-generic; however:
Package linux-image-2.6.38-10-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up linux-headers-2.6.38-10 (2.6.38-10.46) ...
Setting up linux-headers-2.6.38-10-generic (2.6.38-10.46) ...
Setting up linux-headers-generic (2.6.38.10.25) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.38-8-generic
     gzip: stdout: No space left on device
     E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-2.6.38-8-generic
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
     linux-image-2.6.38-10-generic
     linux-image-generic
     linux-generic
     initramfs-tools

E: Sub-process /usr/bin/dpkg returned an error code (1)

If you are guessing that /boot is in deep trouble. You are correct. Now, the tricky part is this. Issue a purge; autoremove won't do the trick because the drive no longer has enough space. What do you do next?

If it is a kernel (old one) that needs to be removed, look closely at your grub.conf or grub.cfg configuration and Identify the kernels you no longer need. Check the currently loaded kernel by issuing uname -r.
Take note of the files that needs to be moved, in our example its a debian based system so you will have to move these files: abi, config, initrd.img, System.map, vmcoreinfo, vmlinuz. Just remove/move those that you don't need.
Once done issue the command updatedb to update the slocate database of the filesystem
Now you can issue the upgrade command back and this will install the new kernel correctly.

Source:http://myopensourcestints.blogspot.com/2011/07/error-during-upgrade-gzip-stdout-no.html


Netflix DRM error (Ubuntu 12.10, VirtualBox, Win7)

I have seen this error myself.  I plan to try the fix in this link:

http://eikon.morogen.com/2011/07/how-to-fix-netflix-drm-error-n8156-6003.html


Unable to access the Internet at Starbucks - used to work with Ubuntu 16.04

This tends to happen because places like Starbucks will use a captive portal, and not allow connections out (save some rare exceptions) until you authenticate with the network. In Starbucks' case, this means agreeing to a terms of service.

In your web browser, you may usually be able to navigate to any non-HTTPS domain (for example, http://captive.apple.com/ or http://www.msftncsi.com/ncsi.txt, both of which are "captive portal" detection systems used by Apple and Windows, respectively).

In some cases, the captive portals will also block DNS requests going out. In this case, you can just directly connect to any IP address on the public net that isn't protected by HTTPS. I tend to use 91.189.91.23, which is the IP address of Canonical's APT mirrors.

While you could change your DNS, there are some cases where this is undesirable and a privacy concern - for example, Starbucks tracking what sites you visit through DNS.


Why is synaptic downloading packages for both amd64 and i386?

oneiric now has support for multi-architecture packages. So, even though you are using a 64-bit system, you can now install 32-bit packages on it. Earlier, this was not possible. Currently, this support is also available in Debian Wheezy, which will be released sometime in 2012-2013.

I do not remember the exact name this multi-architecture support over the top of my head, but when I do, I'll update this post.

Also, I don't remember seeing any mention of how to disable this feature.


Migrate Ubuntu Studio 12.0.4 To New Machine Also Using Ubuntu 12.0.4

Two Issues in OP situation

Ubuntu Studio Kernel

Ubuntu Studio 12.04 default to low-latency kernel. I am not sure how that will fair in a VM.

On the other hand, if plain Ubuntu 12.04 will be used in the VM, it is not sure if those audio/video related package will give same(or satisfactory) performance compare to Ubuntu Studio. This may also affect driver/device performance if Ubuntu is interfacing with USB pass through devices.
Moving User account

This is actually the easy part.

On old machine, tar the home directory of username, as root

cd /home
tar cjf username.tar.bz username

On new machine, as root, copy username.tar.bz into /home

adduser username
cd /home
rm -rf username
tar xf username.tar.bz
chown -R username:username username

Login as username, all old setting will be there.

Same username should be used on the new machine. Some packages save absolute path or the username in settings. Using same user name avoid any headache.

However, this only cover user level settings. System level settings (eg. /etc/) is not cover here.


Try this link below:
http://ubuntuforums.org/showthread.php?t=2222204

Hope it will help, thanks


How do I convert a MBR drive (encrypted LVM or unencrypted LVM) to GPT in Ubuntu?

All you have to do is remove the old table (which doesn't break filesystems, but does break bootloader), then make a new one, with the same start sectors for all partitions with data (lvm, filesystems, etc.).

You could probably do this in the running system, but you'll get warnings and errors (on redhat distros, gparted is patched/configured to be idiot proof and stop you, but sgdisk and probably gdisk works). You should do it in a LIVE or rescue boot.

the new partitions must start exactly on the same sector as the old ones
the new partitions must end exactly on the same sector or after the old ones
forget about extended partitions... the relevant sector numbers are the primary and logical ones; the rest of the space used by the extended partition will be free
ideally you want them in the same order, and with anything boot related to be created with numbers in order starting on 1 and before 2TiB (avoid some problems maybe caused by hardware, firmware, bootloaders)
you either need to boot in legacy mode and create a >= 1MiB bios_grub partition with the bios_grub flag on (parted /dev/sdX set 1 bios_grub on), or boot in UEFI mode and create an ESP partition (formatted with mkfs.vfat -F 32 ... and esp flag on: parted /dev/sdX set 1 esp on). Or you can create both and boot either at any time. (I would put bios_grub before ESP, and haven't tested the other way around). This is NOT your /boot partition... it's in addition.
due to previous item, prerequisite is that there is enough space left before the partitions you had alrady to add this one. On windows, just shrink the recovery volume, or on linux, shrink and move boot or swap. If that fails, you can clone it to another place, resizing as you clone or when you clone it back.
you will need to reinstall the bootloader with grub-install ... (if the distro doesn't figure out the rest automatically, here it is fully grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu --recheck --no-floppy /dev/sdX), or use other EFI things, not grub.
I recommend generating a new initramfs... it'll figure out which modules you need, which may have changed... I don't know.
and then for special setups, just repeat whatever is necessary to make it work, such as encryption... which may not be the same way as your installer did it. This is just about the bootloader, not the tools and rootfs.


What is the shortcut to move between two Terminator tabs?

go to next tab: ctrl+pgdown
go to previous tab: ctrl+pgup

Key commands in Terminator

Toggle fullscreen: F11
Split terminals horizontally: Ctrl + Shift + O
Split terminals vertically: Ctrl + Shift + E
Close current Panel: Ctrl + Shift + W
Open new tab: Ctrl + Shift + T
Move to the terminal above the current one: Alt + ↑
Move to the terminal below the current one: Alt + ↓
Move to the terminal left of the current one: Alt + ←
Move to the terminal right of the current one: Alt + →

This maybe useful.


My bad I forgot to remove dummy virtual hosts from httpd-vhosts.config, which was throwing the error because DocumentRoot is not a directory in dummy virtual hosts.

I noticed the error in manager-linux-x64.run's console tab.

It's restarting and my virtual hosts running fine.


Why am I not asked for password at startup?

In the file /etc/lightdm/lightdm.conf, comment out the line starting with autologin-user=.

For the record, in 'Applications Menu > System > Users and Groups' you can toggle the option 'Don't ask for password on login'. However, lightdm.conf apparently overrides this on startup. As far as I can tell, there is no way to change this through a GUI.


"After using Ubuntu One and Dropbox for a while I conclude that Dropbox is a stable and reliable product that can largely be ignored once setup. For me this is really important. I choose to use Linux because it is a great operating system: simple to install and simple to use. Any service I use (whether it’s free or not) must perform as expected and improve my productivity. In a nutshell, Dropbox does this for me and Ubuntu One does not. Ubuntu One is unreliable and frustrating to use. This could be forgiven had Canonical decided not to market it as a fully functioning and complete service. With this in mind cost really doesn’t come into the equation. Yes, Dropbox can cost you more but then as the old adage goes you usually get what you pay for. Accordingly, I recommend Dropbox". ~Martin Webster

I agree and add if you want to keep dropbox you need to remove .dropbox and .dropbox-dist from your /home folder. Remove --purge and reinstall dropbox application.


Long black screen during boot on Ubuntu 18

I may have found an answer, someone else asked a similar question with my experience of upgrading to 18 AND doing a fresh install.

I did this and it completely solved my blank screen problem that took minutes. Hopefully it solves it for you?

Boot hangs for 30 seconds at "Begin: Running /scripts/local-premount"


My server stops responding for a few minutes, then starts again. How can I track down why this is happening?

Turns out that the machine was trying to renew a DHCP address, even though it is setup as static!  Strange.  Probably there is something else involved.


Presumably this is an error from a configure script?

The error is referring to pkg-config package files.  These do not correspond one-to-one with Ubuntu/Debian package names (since they are not Debian or Ubuntu specific).

In this particular case, the dbus-1.pc file is found in the libdbus-1-dev Ubuntu package, and dbus-glib-1.pc is found in the libdbus-glib-1-dev Ubuntu package.  Installing those two should satisfy the dependencies of that configure script check.


Problems in dual-boot of ubuntu 14.04 and windows 8.1

To boot from other devices than the main drive you need to go into your BIOS settings or call a menu at the computer start up and choose what device to boot from. If you know this and did this, then there must be something wrong with your DVD and USB stick.
You may want to search for and check how to install Windows after Ubuntu. This will save you some time and work. You can resize the current partitions and make new ones from a live Ubuntu session.


Ubuntu 18.04/GNOME software folder groups don't get respected in Show All Applications

This is simply because the "app folder" named Utilities is not associated to the "Utilities" category. By default the Utilities app folder is associated to only the "X-GNOME-Utilities" category.

So in order to move Terminal into the Utilities app-folder, you may add X-GNOME-Utilities category to the Categories= line of the .desktop file associated to the Terminal application.

An arguably simpler and user-friendly way would be using a GNOME shell extension called  "Appfolders Management extension". This extension provides

  An easy way to manage "appfolders" (folders in the applications view) directly from the applications view.

Right click on an app icon and you'll get the options to add or remove the app from certain app-folder(s) and create new app-folders.

You can also right click on an app-folder and associate categories to the app-folder.


How do I install BCM43142 wireless drivers for Dell Vostro 3460/3560?

12.04
Drivers for this are only officially available with the Vostro 3460 as provided by Dell.
However, based on the instructions and the Dell deb from the Vostro 3560 provided in this forum thread, I have created a modified DEB file that compiles and installs the driver on 12.04 (see thread for 11.10 link).
First, install the prerequisites by opening a terminal and pasting, one line at a time:
sudo apt-get install linux-headers$(uname -r | grep -Po "\-[a-z].*")
sudo apt-get install build-essential dkms

Please download the appropriate DEB file from Dropbox here:

32-bit/i386
64-bit/amd64

Open a terminal, and install it with sudo dpkg -i.
Hopefully it works!
Edit: 12.04 now has an updated bcmwl-kernel-source package that reportedly supports BCM43142. bug#923809, comment 15


Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'xxx' doesn't support architecture 'i386'

I tracked down offending repo (any for Google chrome in this dir)

cd /etc/apt/sources.list.d
grep chrome * | grep -v amd64

or more generally

grep -r google  /etc/apt | grep -v amd64

Now do same as below for each repo file which matches above

cat /etc/apt/sources.list.d/google-chrome-unstable.list

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/chrome/deb/ stable main

SOLUTION : limit to just 64 bit by introducing the [arch=amd64]

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

ROOT CAUSE : Google dropped support for 32-bit Chrome on Linux triggering an error when updating apt in 64-bit systems (with multi arch enabled) ...  details here : http://www.omgubuntu.co.uk/2016/03/fix-failed-to-fetch-google-chrome-apt-error-ubuntu

To confirm you are using 64 bit ubuntu with multiarch enabled issue

dpkg --print-foreign-architectures

if it says

i386

then you have added 32 bit support, this will list your native arch ... issue

dpkg --print-architecture

if you are native 64 you will see this output so do SOLUTION shown above

amd64

Here is the command to remove multi architecture ( only if you have no 32 bit applications )

sudo dpkg --remove-architecture i386


The culprit is xfwm4, it makes the menu bar of some wine apps inaccessible.

Replace xfwm4 with, for example, openbox and the problem is gone.


program to view multiple images as a multi page document

Why simulate? Why not put them all into one pdf file?
convert *.jpg my_new.pdf

to readjust images there see this post


Ubuntu 14.04 failing apt update - connection failed security/archive.ubuntu.com

Start by pinging the server:

ping -c 4 archive.ubuntu.com

if you can reach it, which looks like this:

$ ping -c 4 archive.ubuntu.com
PING archive.ubuntu.com (91.189.88.161) 56(84) bytes of data.
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=1 ttl=53 time=47.4 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=2 ttl=53 time=47.9 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=3 ttl=53 time=48.5 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=4 ttl=53 time=46.4 ms

--- archive.ubuntu.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 46.490/4

7.605/48.529/0.743 ms

you can try disabling IPv6 addressing in GUI:

In the top right find the networking indicator icon
Select edit connections
Edit you current connection (double-click)
Under IPv6 settings/method, choose Ignore
Save and exit
Try it!
Update us

Or CLI:

$ sudo sh -c 'echo 1 > /proc/sys/net/ipv6/conf/eth0/disable_ipv6'

Of course, you should replace 'eth0' with any other interface if it's not the one you're using, or 'all' to do it on all interfaces. This will only work until you reboot though.


Lenovo x1 carbon 3rd generation touchpad issues

The same problem forced me to switch to Synaptics driver. It's deprecated but this fact has never affected my experience.

To make your touchpad stop shaking and become more precise you may use my solution:

In /usr/share/X11/xorg.conf.d directory I have 40-libinput.conf with the following content:

# Match on all types of devices but joysticks
Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

And 70-synaptics.conf with:

# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
#   Option "OptionName" "value"
#
Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
        Option "TapButton1" "1"
        Option "TapButton2" "3"
        Option "TapButton3" "2"
        Option "PalmDetect" "1"
        Option "PalmMinWidth" "8"
        Option "PalmMinZ" "100"
        Option "VertScrollDelta" "-125"
        Option "HorizTwoFingerScroll" "on"
        Option "HorizScrollDelta" "-125"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
      MatchDevicePath "/dev/input/event*"
EndSection

Section "InputClass"
        Identifier "touchpad ignore duplicates"
        MatchIsTouchpad "on"
        MatchOS "Linux"
        MatchDevicePath "/dev/input/mouse*"
        Option "Ignore" "on"
EndSection

# This option enables the bottom right corner to be a right button on clickpads
# and the right and middle top areas to be right / middle buttons on clickpads
# with a top button area.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Default clickpad buttons"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
        Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
EndSection

# This option disables software buttons on Apple touchpads.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Disable clickpad buttons on Apple touchpads"
        MatchProduct "Apple|bcm5974"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
EndSection

If this file does not exist, you should create it. Notice that the number before synaptics must be greater than the number before libinput.

You should not delete 40-libinput.conf because in this case touchpad won't work at all.

P.S. A good article in which you can find out how to configure Synaptics file - https://wiki.archlinux.org/index.php/Touchpad_Synaptics


I recommend using Boot-Repair tool. You can burn it on CD/DVD, or make USB bootable flash drive. It will fix it for you. You can find more information and download at the official help page.

I used it last week to fix completely broken Debian boot loader, and it fixed it without problems. It did not recognize Windows OS, but I resolved this after booting to linux and simply running sudo update-grub.

Other than that you can use Ubuntu Live CD, but it will require some effort with mounting correct directories, chrooting and then fixing the boot.


Uninstall Mate desktop environment from Ubuntu 18.04

To remove MATE DE completely you can use the following commands:

Parse dpkg --list output to get all mentions of MATE and then remove packages with MATE in its description:

sudo apt-get purge $(dpkg --list | grep MATE | awk '{print $2}')

Remove some leftover packages (including Plymouth boot screen) manually with commands below:

sudo apt-get purge libmate-sensors-applet-plugin0
sudo apt-get purge libmateweather-common libmateweather1:amd64
sudo apt-get purge mate-accessibility-profiles
sudo apt-get purge mate-notification-daemon
sudo apt-get purge mate-notification-daemon-common
sudo apt-get purge plymouth-theme-ubuntu-mate-logo
sudo apt-get purge plymouth-theme-ubuntu-mate-text

(they are presented by single lines to to be more fail-proof - to avoid the situation if one of them are not installed)
Install system components back if there were removed with previous commands:

sudo apt-get install ubuntu-release-upgrader-gtk update-manager update-notifier

And then finally reconfigure your login screen with

sudo dpkg-configure lightdm # for LightDM
sudo dpkg-configure gdm3 # for GDM3

Note: the MATE itself is more flexible than GNOME. Also you may want to try Xfce or KDE.


Use fdisk.  Put it into sector mode with the u command, then p to print the table, d to delete the partition, and then n to recreate it.  When you recreate it, use the same starting sector, but an ending sector that actually fits within the disk.  When you are done and have double checked ( p again ), save and quit with w.


First make sure that Calendar synchronization is activated in System Settings -> Online Accounts.

Then open the Calendar application -> Calendar Settings and check what shall be synchronized.

The screenshots are showing Online Accounts and the Calendar application in Ubuntu 16.04 LTS.


Assuming that it could not install due to a missing dependency? You could always extract the contents of the deb using ar and copy the files across. Once you run it you will likely be able to tell what is missing. There are other ways to find dependencies that would be more definitive, but they are more involved.


dist-upgrade has some advanced package dependency resolution that is used (possibly needed) when a package changes it's major version.

Updates, for example, will always keep your version of OpenOffice 1.x up to date, but as soon as the distribution switches to OpenOffice 2.x, a dist-upgrade will be needed to resolve some more complicated issues.

So: You didn't do anything wrong. If you want, you can always do sudo apt-get dist-upgrade. It happens automatically if needed (via Update Manager), but you may invoke it manually to your hearts content.

Safe for errors in the repository apt is pretty much bullet proof these days. :)


VLC sound is too low in 12.04 compared to 11.10

Questions about VLC might be better put to the VLC team.  VLC package it for Ubuntu, but are responsible for problems on it.


I hear clicks whenever the volume of some audio stream is adjusted

You may be hitting latency limits of your hardware when pulse is "busy".

configuration: driver=snd_hda_intel latency=0

There is really no such thing as zero latency. I presume that means sub-millisecond.

Per this https://arunraghavan.net/2013/08/pulseaudio-4-0-and-skype/
Setting the env variable PULSE_LATENCY_MSEC=10 before starting an app. This gives the software 10ms of buffer time if it has more work to do mixing streams.

10ms is still low enough latency unless you are playing live music digital instruments or very fast games.


I saw same problem after update on other computer.
After some checks i noticed that both computers got video driver update via oibaf driver.

Removing this ppa restored color of icons.

sudo ppa-purge ppa:oibaf/graphics-drivers && sudo reboot


lightdm-gtk-greeter-ubuntu "crashes" after installing KDE4.10

the greeter session that worked in my case is:

  greeter-session=unity-greeter

Maybe you want to try that.


Building a GNOME 3 based distribution from scratch?

This is a very similar question as this AU question and answer.

You should note, adding Gnome3 onto Ubuntu 11.04 is not as "clean" as the new Fedora 15 - since this has been built with Gnome3 from the beginning.  Building ontop of Ubuntu means upgrading most of the Gnome-2 libraries.


Do I need to install a wireless patch for ASUS X205TA after upgrading the kernel?

No patch needed for 4* kernels. We need these two files in the right place for WiFi to work on this device.

/lib/firmware/brcm/brcmfmac43340-sdio.bin
/lib/firmware/brcm/brcmfmac43340-sdio.txt

The first one was present & correctly located when I installed 16.04. Previously we used a file from Android and this is still mentioned in old guides, but if you don't have it, you can now get it from the Linux firmware repository:

sudo apt-get install git
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

This creates a new directory - copy the correct file from it to the right place:

sudo cp linux-firmware/brcm/brcmfmac43340-sdio.bin lib/firmware/brcm/brcmfmac43340-sdio.bin

you might want to delete the cloned directory after that, as it is quite big.

The other file is already in the system but in the wrong place. It needs to be copied to the same directory as the .bin file and renamed like this:

sudo cp /sys/firmware/efi/efivars/nvram-74b00bd9-805a-4d61-b51f-43268123d113 /lib/firmware/brcm/brcmfmac43340-sdio.txt

Wi-Fi works after reboot :)


Help hunting down a program that is auto starting

Did you check Startup Applications in Tweaks or Startup Applications Preferences?

Screenshot below for reference:


How to install PCL for 16.04, PPA not working

After looking at the first link in your error message, getting into the dists directory, it seems that this PPA does not support Xenial, as there is indeed no such directory.

This link however, provides a link to a pre-built DEB file you can download and install using dpkg (not recommended as it is just a Dropbox link and the file could contain malicious code) and also explains how to build it from source (recommended as it only installs trusted packages and downloads the code from the official GitHub repository, which can be considered a trusted source).

I have not tested it but as it looks like a standard compile procedure and as mentioned above, downloads the source code from an offical repository, you should be fine following the steps there, given you do not want to install the DEB file which would be perfectly fine, as I would not want to do it, too.


WiFi temporary username settings with PEAP/MSCHAPv2 on 14.04

This is a change made from v12.04 and not an actual "bug," and should probably go to the "developer suggestion box" than in a support forum. Thanks anyway, people.


How to access USB in VirtualBox running Windows XP as guest OS

If you've installed the VirtualBox version from the repositories, then this is the "OSE" or "Open Source Edition" and it doesn't support either USB connections or built-in RDP support on guest OS's.

You need to install VirtualBox from the Oracle site directly in order to have access to USB connections.

Browse to http://www.virtualbox.org/wiki/Linux_Downloads in order to download the appropriate .deb file.  Double click on it to install it via Software Centre.

For USB support, you'll also need the "VirtualBox 4.0 Oracle VM VirtualBox Extension Pack".  Download it to your hard disk.  Once you've installed VirtualBox 4.0, open it, then choose File/Preferences and click on "Extensions".  Hit the Add, button, then open the file you downloaded.

Alternatively, you can keep up to date with the latest VirutalBox by adding their repository to your system by doing the following :

Open synaptic, choose menu Settings/Repositories, click on other, then "add" and paste in the line :

deb http://download.virtualbox.org/virtualbox/debian maverick contrib

Then download the Oracle respository key, and add it with the line :

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

Finally, purge the existing OSE edition, then update your respository list and install the new version :

sudo apt-get purge virtualbox-ose
sudo apt-get update

(at this point, you'll likely get errors about a malformed release - simply pop into Synaptic, following step 1, then untick the "Source Code" entry for Virtualbox).

sudo apt-get install virtualbox-4.0

(you'll be prompted to download libhal1 and dkms - accept this to proceed)


How do I set Windows Boot Manager back to its default path?

bcdedit /deletevalue {bootmgr} path

Will do it.


Network disconnected. You are offline now

I had a similar problem when my (five year old) router was failing.  If you can connect another computer to the same router, you can see if the same problem occurs; if it does, it's most likely a failing router.  Given the cost of new routers (under $20 for generic with 4 wire ports plus uplink and b/g/n wifi) it's easy enough to replace it if you suspect that's the problem.


How to make shortcut to terminal application?

Create a FileName.desktop with these contents:

[Desktop Entry]
Version=x.y
Name=ProgramName
Comment=This is my comment
Exec=/path-to-you-app/application_name
Terminal=true


Run the following command in a terminal:

gsettings set org.mate.mate-menu plugins-list "['places', 'system_management', 'newpane', 'applications']"

That should restore the list of plugins that display in Mate Menu to the default.


Many of my signatures/public keys for my repos disappeared!

Launchpad-Getkeys (a small script packed in a .deb for easy installation) automatically imports all missing GPG keys.

To install and use it, open a terminal and copy/paste the following commands:

cd ~/Downloads
wget https://launchpad.net/~nilarimogard/+archive/webupd8/+files/launchpad-getkeys_0.3.1-1%7Ewebupd8%7Emaverick3_all.deb
sudo dpkg -i launchpad-getkeys*.deb
sudo launchpad-getkeys

The first command above changes the directory to your Downloads folder, the second downloads the .deb, third command installs the .deb and the last command runs "launchpad-getkeys" script which automatically imports all missing GPG keys.

If you're using a proxy, there are some things you need to change though so let me know if you need info on that too.

By the way, I see you have some other errors too, not just GPG keys. It looks like you have some broken PPA .list files (for instance I see you get a 404 not found error for the WebUpd8 PPA which can't be since the PPA exists all the way from Jaunty to Natty - maybe your Internet connection was down?).


You dont give enough info, but still.
Try to remove the ppa of xorg-edgers. Uninstall the intel driver. (Easiest way for me is to install synaptic and search for the intel driver package).
Restart - hopefully Ubuntu will fall back to default driver.
In synaptic , install the drivers again - since you have removed the xorg-edgers ppa, ubuntu should install the default drives that came with the system.
Please, make backup with clonezilla live CD before doing this(or anytime you fiddle your system) - this could save you lot of time and trouble, check it out.
CLONEZILLA


I have been using Ubuntu on laptops for about 10 years, and my laptop has the same kind of battery life (duration when running on battery, or lifespan of the battery) than my colleagues with the same exact hardware running on Windows.

Of course you may need proper hardware drivers, and while my laptop is from a manufacturer that cares about Linux, if the manufacturer doesn't, finding the proper drivers can be difficult.

TLDR; it's not a problem of Linux/Ubuntu, but a problem of manufacturer...


sudo chmod -R 755 * accidentaly run in /, what are the options?

You've just found the great powers of being root and how easy it is to screw up your whole system!

I would recommend reinstalling the complete system, because, I can't agree more to what Gilles said in a similar question:

  Can it be fixed? Sure. Faster than reinstalling? Probably not.

So, as this is not easy to fix yourself by hands within reasonable time and effort. And if you try, you'll notice a lot of stuff will break: sudo, setuid/setgid binaries, etc.

General steps for a reinstallation:

Back up your data, e.g. /home/username.
Back up configuration files: /etc
Get a list of manually installed packages, which allows you to reinstall them quickly in the new installation.
Restore the configuration files selectively. Don't bluntly restore complete /etc as that will break stuff. Only restore files you actually touched yourself.
Restore your data.

Done.

I'm looking forward to the time that we have Btrfs as the default file system and we can restore our complete system by simply reverting to a snapshot.


Is it possible to enable paste in the pin entry in thunderbird?

No, it is not possible, as the whole point of pinentry is that the password doesn't leak anywhere in plain text and using copy and paste defeats that.

However, there is a workaround. If your password manager supports Autotype (as e.g. KeepassX and Keepass do), you can modify the autotype sequence. In Keepassx you would enter the following text to the Comment box of the entry:

Auto-Type: {PASSWORD}{ENTER}

and right-click on perform auto-type. Note however, that your password manager needs to be unlocked and visible on the screen before pinentry appears, as it will also block your alt-tab.

Sources:

https://unix.stackexchange.com/questions/160548/usage-of-pinentry-with-keepass2-for-gpg-mail-encryption
https://bugs.launchpad.net/ubuntu/+source/pinentry/+bug/326132
Trial and error


How do I get Gespeaker to launch, I keep getting an error that says something about dbus.?

I found an answer to fix a similar issue from here.

I installed dbus via:

sudo apt-get install python-dbus


You may not be willing to install a full desktop environment, but in order to get window decorations (including window controls) and the ability to switch between windows, you will still need a window manager.  A good WM should help give you a nice cursor, too.

There are all sorts of lightweight window managers out there: fluxbox, openbox, and similar are very light indeed, but you may also want to look at Enlightenment, which is not quite as light but extremely full-featured.

I am not entirely sure about your sound problem, but the place to start looking would be ALSA packages.  At a guess, you'll need at least alsa-base and alsa-utils.  You may also need some pulseaudio stuff and/or alsa-oss; I forget which framework the Flash player uses.


You don't put the user who's executing the job in a cron job line. You can see the correct format by running man 5 crontab in a terminal.

Each user has their own separate crontab (cron job table). To edit agile's crontab, open a terminal and run:

su agile
crontab -e

This will open agile's crontab in a text editor. Insert the cron job line you have above without the username:

0 3 * * * /path/to/script/OOMERROR.sh

Now save the file and exit.


If you are using games from Steam try to use MESA drivers.
If you are using Nvidia card 1060 or better i suggest you use vulkan in all you can.
The same for AMD graphic card.
Some games like "Doom 2016 (doom)" that you can play with proton it is better using Vulkan.
Don't forget check your stats on steam in  "help>sistem info" and check the vulkan is running on this.


Trying to upgrade from 14 to 16 (or 18) but get "Please install all available updates for your release before upgrading."

The upgrade is prevented because the output of your apt-get upgrade shows:

  The following packages have been kept back:
      (some list of packages)

You should first resolve that.
If you intend to install the 'kept back' packages, see this answer:

  "The following packages have been kept back:" Why and how do I solve it?


Expand LVM Logical Volume on Virtual Machine

An example LVM diagram:

The idea of LVM is it abstracts the logical volume away from the physical volume, such that multiple physical volumes will appear to the user a single continuous logical volume.

The root file system is in /dev/file-server-vg/root and the swap is in /dev/file-server-vg/swap. The idea is we can actually have multiple real hard disks in the PV layer, and they can be all added into a Volume Group, which will allow them to all appear as a single continuous file system to the system at /dev/file-server-vg/root.

In this problem I have been using /dev/file-server-vg/root as a file server and it is running out of space. Luckily this system is on a virtual machine, and I was able to expand the physical volume /dev/sda using the virtual machine manager. However, the increase in size doesn’t get automatically passed to the /dev/file-server-vg/root file system. We need to do a few simple command to get this to work.

Before we start, use pvdisplay to see which physical volumes are present. This will list all the physical volumes and the volume group that it belongs to. In this case we only have one physical volume that is /dev/sda3.

  --- Physical volume ---
  PV Name               /dev/sda3
  VG Name               file-server-vg
  PV Size               155.26 GiB / not usable 0
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              65346
  Free PE               0
  Allocated PE          65346
  PV UUID               0EXhc4-EoHZ-b79R-ncSe-SWXI-ztPe-Fsc7zk

The current partition table can be listed by using sudo parted and then print.

Number  Start   End    Size   File system  Name  Flags
 1      1049kB  538MB  537MB  fat32              boot
 2      538MB   794MB  256MB  ext2
 3      794MB   167GB  166GB                     lvm

In this example we want to expand the capacity from 155.56GiB to 255.56GiB. Using the virtual machine manager we can usually extend the disk space, and in this case we will expand it by 100GiB.

After expansion is successful, the resulting partition table (use print free) will look like the following. Please note the “Free space” shows 108GB (~100GiB).

Number  Start   End    Size   File system  Name  Flags
 1      1049kB  538MB  537MB  fat32              boot
 2      538MB   794MB  256MB  ext2
 3      794MB   275GB  166GB                     lvm
      167GB   275GB  108GB  Free Space

There are two way to expand the logical volume:
Create a new partition and add this to the Volume Group, or
Increase the same partition.

In my opinion, where possible, the second method is neater. Of course if /dev/sda3 is a physical hard disk, and you bought another hard disk to expand the space, then it will be logical to use the first method.

In parted type resize 3 794MB 275GB will resize partition 3 to take up all the free space, well almost:

Number  Start   End     Size    File system  Name  Flags
        17.4kB  1049kB  1031kB  Free Space
 1      1049kB  538MB   537MB   fat32              boot
 2      538MB   794MB   256MB   ext2
 3      794MB   275GB   274GB                      lvm
        275GB   275GB   1032kB  Free Space

This is good enough, just 1MB not being used.

Next we will reboot the machine. This is needed to refresh the partition table.

What you will see now is that the physical volume has increased in size with pvdisplay

--- Physical volume ---
  PV Name               /dev/sda3
  VG Name               file-server-vg
  PV Size               255.26 GiB / not usable 0
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              65346
  Free PE               0
  Allocated PE          65346
  PV UUID               0EXhc4-EoHZ-b79R-ncSe-SWXI-ztPe-Fsc7zk

This increase in size will be automatically passed to the volume group, using vgdisplay you get the following. Please note vgextend doesn’t actually do what you might think it does. It doesn’t take up the free space, instead it is used for adding new physical volumes to a particular volume group.

--- Volume group ---
  VG Name               file-server-vg
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  5
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               255.26 GiB
  PE Size               4.00 MiB
  Total PE              65346
  Alloc PE / Size       65346 / 255.26 GiB
  Free  PE / Size       0 / 0
  VG UUID               NwwIgT-W0SH-aeTe-d078-hcxx-XZ6W-QfnSA0

The logical volume doesn’t increase in size automatically. This is actually makes sense because the computer has no idea which logical volume you want to increase in size, or perhaps you want to create a new logical volume with the extra space in the volume group. So with lvdisplay you will see the following table, showing the /dev/file-server-vg/root only has 153.26GiB, but don’t worry we are very close.

--- Logical volume ---
  LV Path                /dev/file-server-vg/root
  LV Name                root
  VG Name                file-server-vg
  LV UUID                l6qvYZ-AmYw-tdgi-2jUu-XNB2-gecQ-6fDPt8
  LV Write Access        read/write
  LV Creation host, time file-server, 2014-07-10 14:54:58 +1000
  LV Status              available
  # open                 1
  LV Size                153.26 GiB
  Current LE             64834
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0

  --- Logical volume ---
  LV Path                /dev/file-server-vg/swap_1
  LV Name                swap_1
  VG Name                file-server-vg
  LV UUID                OohMkN-rGLa-fM4M-6he2-MbM9-BBc3-Ck2Hs5
  LV Write Access        read/write
  LV Creation host, time file-server, 2014-07-10 14:54:58 +1000
  LV Status              available
  # open                 2
  LV Size                2.00 GiB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:1

The way to increase the logical volume is to use lvextend -L +100GB /dev/file-server-vg/root

After that expand the file system with resize2fs /dev/file-server-vg/root

And you are done. You can do lvdisplay to check that the /dev/file-server-vg/root volume has extended to 253.26GiB

  --- Logical volume ---
  LV Path                /dev/file-server-vg/root
  LV Name                root
  VG Name                file-server-vg
  LV UUID                l6qvYZ-AmYw-tdgi-2jUu-XNB2-gecQ-6fDPt8
  LV Write Access        read/write
  LV Creation host, time file-server, 2014-07-10 14:54:58 +1000
  LV Status              available
  # open                 1
  LV Size                253.26 GiB
  Current LE             64834
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0

  --- Logical volume ---
  LV Path                /dev/file-server-vg/swap_1
  LV Name                swap_1
  VG Name                file-server-vg
  LV UUID                OohMkN-rGLa-fM4M-6he2-MbM9-BBc3-Ck2Hs5
  LV Write Access        read/write
  LV Creation host, time file-server, 2014-07-10 14:54:58 +1000
  LV Status              available
  # open                 2
  LV Size                2.00 GiB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:1


"Asking for cache data failed" and "Assuming drive cache: write through" messages after that Ubuntu boot failed

At last, I managed to solve the problem:

First, I run a Lubuntu live cd and I chose the first option to run
Lubuntu without installing it.
Then, I entered in the laptop Lubuntu partition where all folders and
files are stored. I just saw that there were no more free
space: the partition was completely full.
I tried to delete some useless files to clean the storage, but I
discovered that when using a live cd you do not have root
permissions to do that. However, I identified some files I could
have deleted.
So I restart the system again and, when the error messages appeared,
I reached the Terminal by pressing Ctrl+Alt+F1.
There, after having entered both username and password of my Lubuntu
installation, with the two basic command lines

cd

and

dir

I reached the files I wanted to delete;
and I purged them by using

rm -f filename.extension

command line.
In the end, I restarted the laptop once again and now the operating
system works fine.

So the problem was "simply" that there was not sufficient free space in Lubuntu partition.

One question still remains: how is it possible that I run out of space? I am pretty sure that there was some GB of free space. I really do not understand: I didn't download anything nor I created any new files or documents before the laptop froze. Please write below if you have any suggestions.

I really hope other people with the same problem will find this answer helpful.


Add account picture to Ubuntu login/greeting screen

To add your account picture, type User Accounts in the dashboard. Click on the application and when it opens, select the account for which you want to change picture.
On the right hand side your user account details appear where you can change your picture by selecting one from your computer or by taking a picture with your camera.

The default unity-greeter on Ubuntu doesn't seem to be able to show your avatar on the login screen but it does show on the lock screen.

Install lightdm-gtk-greeter by typing on the terminal:

sudo apt-get install lightdm-gtk-greeter

Then edit /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf as root.
To do that type on the terminal

sudo gedit /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf

Replace

[SeatDefaults]
greeter-session=unity-greeter

by

[SeatDefaults]
greeter-session=lightdm-gtk-greeter

and save the file.

Now select an image of your choice, and rename it as .face (without any extension) and place it in your home directory. Now reboot to see the changes.


How to delete a partition that is locked

If it's THE extended partition, you can't delete it without removing all the logical partitions in it.

You need to unmount all partitions in the extended partition that may be mounted.

In your case, you need to unmount swap partition. Right-click on it and choose unmount. Then proceed.


I found something here:

  First, if you aren’t sure your computer was built with an Elantech touchpad, open a terminal, and type the following:

cat /proc/bus/input/devices

  You should find a block containing a line looking like this one, which confirms you are on an Elantech touchpad:

N: Name="ETPS/2 Elantech Touchpad"

  Download this archive (from Ubuntu’s bug reporting page).

  Open a terminal, and follow these steps (after [line] 4, you will have no mouse at all):

cd ~/Downloads
sudo dkms ldtarball psmouse-elantech-x551c.tar.gz
sudo dkms install -m psmouse -v elantech-x551c
sudo rmmod psmouse
sudo modprobe psmouse

  Enjoy multitouch!

  Source: Elantech clickpad/touchpad lacks multitouch features

I have verified the links, they are from launchpad. Also, the biiiig number of comments suggests the page is genuine, although there is no WOT rating yet; if someone wants to rate the page on WOT, please do. If it is a negative rating, also inform me in the comments, and I will delete this answer until I find another source.


For ubuntu (i used ubuntu 12.04), the default phpmyadmin apache configuration can be found at /etc/phpmyadmin/apache.conf

You can open it by type sudo nano /etc/phpmyadmin/apache.conf and change the third

Alias /yournewalias /usr/share/phpmyadmin

Do not forget to restart apache service,

sudo service apache2 restart


For this purposes you system should be able to send emails. So you could install and configure postfix:

sudo apt install postfix

For General type of mail configuration choose Internet Site, if you want to do more detailed configuration use the command:

sudo dpkg-reconfigure postfix

At this stage Cron will start to send emails. Everything that usually will be outputted to the STDOUT (if you are execute a command in the command line), including all error messages, will be sent to the local mailbox of the user that runs the Cronjob.

The default location of local user's mail boxes is /var/mail/. You can install the command-line email client mutt to read your user's email box via the command line in a convenient way:

sudo apt install mutt

Note mutt installation process will involve installation and configuration of postfix if it isn't done before.

You can change the default destination mailbox by changing the value of the envvar MAILTO within crontab, before the definition of the Cronjob.

Please note: unless you haven't enabled SSL/TLS certificate within you send mail configuration, most of the public mail servers will ignore your emails in some way. For example mail.google.com will put them into the spam. If this is a server instance and you already have SSL/TLS certificate for your primary domain follow this nice manual to attach it to Postfix.

Once your system is able to send emails you must make your Cronjob more verbose (for e.g. add -v to the rm command) and must set proper value of MAILTO. So your crontab should look as this:

MAILTO="example.email@gmail.com"
* * * * * find /nfs/rpiggott/complete -mtime +45 -exec rm -v {} \;

Another approach is to create a script (which will be executed via crontab) that includes your command and uses mail, mutt, ssmtp or sendmail to send emails. See the bottom of the references for mor details.

References and further reading:

Issues getting crontab to work
How To Install and Configure Postfix on Ubuntu 16.04
Postfix TLS Support
How to send mail from the command line?
5 Ways to Send Email From Linux Command Line


Google Chrome (not chromium) is crashing XFCE on startup. Where can I find some detailed logs of the issue?

It had something to do with the video drivers. Updated video drivers and all was well. I updated to NVIDIA's latest beta driver (310.19) using a manual .run install


Change is key-mapping is not remembered in Ubuntu 10.04

Just add

keycode 117=Return

to the file .Xmodmap in your user directory. (You might need to create it)


14.04 on DELL L502X freeze at startup after installing nvidia drivers

For those who change desktop manager from lightdm to gdm will no longer be able to install nvidia drivers.

"..
It's also important to note that you need to use LightDM (so this won't work for Ubuntu GNOME users by default because it uses GDM - you'll need to switch to LightDM) and the proprietary Nvidia drivers!
.."

I found the solution here :)


How do I install the Sun Java Development Kit (JDK 7)?

If you like the easy way you can use webupd8 java ppa, then there is no of installing it by the tar file:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

http://www.webupd8.org/2013/06/oracle-releases-java-7-update-25-7u25.html

Alter Install you can change the default java-version by

sudo update-alternatives --config java


To install the kernel driver for Virtualbox, run the following command:

sudo apt install dkms

Also try this command as they moved the vboxdrv file:

sudo /sbin/rcvboxdrv setup

Hope this helps!


Yes, you will be able to install it. But with 1GiB of memory, it's not gonna be fast. I would look at some alternative variants, such as Xubuntu or Lubuntu, as they have desktop environments with lower requirements.

Note that you can switch between them after installation, by installing the meta package lubuntu-desktop and xubuntu-desktop, using sudo apt-get install <packagename>.

I'd also suggest getting more memory. A gigabyte or two extra will improve things significantly, and can likely be had for free or cheaply locally, as it's an old computer.


I have to say that you are doing things the wrong way:

thunderbird&:

Those warnings are not random. What you are doing here is executing Thunderbird as root... you shouldn't! If you need to start a program when your system boots up, specially if they use GUI's, you should add them to the startup application list instead. Runing any application connected to the internet is extremally dangerous and Thunderbird could have vulnerabilities that would left an attacker several vectors of attack. Remove that line!
sudo mount /dev/sda2 /media/nitish:

Why not to use the /etc/fstab file? You only need to add a line in the fstab file and it will get mounted at boot, without complications.
rfkill block bluetooth:

I believe that adding the bluetooth modules to the modules blacklist is more preferable, and you can add it again easily.

sudo sh -c "echo 'blacklist bluetooth' >> /etc/modprobe.d/blacklist-bluetooth.conf"

Of course, the module name can be anything. Check lsmod to be sure.


ok so I've been buggin Floby (Termkit developer) about the issue.
And looks like node v0.5.3-pre is not stable yet

So I went back to node v0.4.10 and it worked just fine.
If anyone wanna try

use:

git clone https://github.com/joyent/node.git
cd node
git reset --hard 1b8dd65d6e3b82b6863e

Continue with http://www.techdrivein.com/2011/06/termkit-is-terminal-reimagined-install.html these instructions that worked for me :)


Increase/extend (resize) OS X partition with GParted

If the diagnosis that there's a problem with the partition table is accurate, I recommend you install the gdisk package in Ubuntu (or download and install the Mac version from Sourceforge), launch it on your disk, and use the v option to check for errors. If you find any, check the gdisk documentation on repairing the disk or report back here with details. (Edit your original question and post the gdisk output there.)

It's also possible that you're running into problems related to a hybrid MBR. If so, it's possible that converting the hybrid MBR into a conventional protective MBR will fix the problem; however, this might render Linux (and Windows, if it's also installed) unbootable. There are ways to correct this -- you can either regenerate a hybrid MBR after you resize your partitions or convert Linux to boot in EFI mode.

EDIT: I have a new thought on this issue, which is that you may not have sufficient space between your partitions. OS X's Disk Utility likes to see at least 128MiB of space between existing partitions. If that space isn't present, it will often refuse to work on the disk, although I don't recall the error message it gives. Since you haven't posted your partition table details, it's hard to know if this is a plausible explanation for your problem -- you presumably have ~100GiB of free space somewhere, but it might not be in the right location to please Disk Utility. If this explanation is correct, you may need to resize one or more Linux partitions to ensure that there's free space after every OS X partition. Posting the output of sudo parted /dev/sda unit s print (typed in an Ubuntu Terminal window) will show us how your disk is laid out, which should be helpful in determining if this hypothesis has any merit.


There is a patched version of Unity where the dash has the contents of the old menus. See How do I add classical categories in Unity's Dash?


Missing Thumbnails for .swf files in Nautilus?

The thumbnails were made with libswfdec (i.e. /usr/bin/swfdec-thumbnailer from the package swfdec-gnome), which was removed in Ubuntu 10.10 ("maverick").  The libswfdec author stopped development because there are already 2 other open source projects working on implementing an SWF player: gnash (which is included in Ubuntu) & lightspark (which is new and not included yet).  I am not sure if there exists a thumbnailer that uses gnash...


How do I sort the Gnome 3.38 Show Applications Menu into Alphabetical order?

The fastest option would be to put this into the terminal:
gsettings reset org.gnome.shell app-picker-layout

Logout and Login to see the changes or, if you're in a hurry, restart the window manager by pressing Alt+F2, then enter r into the command input (and press Enter)
Alternatively, you can use dconf-editor to control a number of aspects of Gnome. If you don’t already have it installed, you can:
sudo apt install dconf-editor

Hope this gives you what you’re looking for


Cron job scheduling for last Saturday of every month at 09:00 AM

One possibility might be to schedule the job to run every Saturday, but make execution of the actual command conditional on the month one week hence, ex.
0 9 * * 6    [ "$(date +\%b -d 'next week')" = "$(date +\%b)" ] || somecommand

Note that the % character is special in crontabs, and needs to be escaped.


The solution turned out to be simple - using wine64 instead of wine, like so:

WINEPREFIX=/path/to/wineprefix wine64 msiexec /i /path/to/msxml6_x64.msi


I fixed it by running TinyProxy on the public connection, allowing me to connect to the services running via the VPN connection via localhost.

If a better solution is available, I'm all ears. But for now, this works.


My suspicion is that your installation of vuze on Xenial Xerus 16.04 is problematic. (Possibly you have used the snap packaging system which I confess to cordially disliking!)

Reverse whatever steps you have taken and remove your installed copy of vuze using the Ubuntu Software application, then follow the following steps in sequence:

1. Install some prerequisites:

Install the following by copying the entire code box and pasting into a Terminal window:

sudo apt-get install ca-certificates-java fonts-dejavu-extra java-common \
java-wrappers libbonobo2-0 libbonobo2-common libbonoboui2-0 \
libbonoboui2-common libcommons-cli-java libgif7 libglade2-0 libgnome-2-0 \
libgnome2-0 libgnome2-bin libgnome2-common libgnomecanvas2-0 \
libgnomecanvas2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0 \
libgnomevfs2-common libjavascriptcoregtk-1.0-0 liblog4j1.2-java liborbit-2-0 \
libswt-cairo-gtk-3-jni libswt-gnome-gtk-3-jni libswt-gtk-3-java \
libswt-gtk-3-jni libswt-webkit-gtk-3-jni libwebkitgtk-1.0-0 \
libwebkitgtk-1.0-common openjdk-8-jre openjdk-8-jre-headless

2. Download and install vuze:

Use the bare Debian files rather than PPA magic, issuing the following 3 commands one at a time:

wget http://archive.getdeb.net/getdeb/ubuntu/pool/apps/a/azureus/azureus_5.7.5.0-1~getdeb1_all.deb
wget http://archive.getdeb.net/getdeb/ubuntu/pool/apps/a/azureus/vuze_5.7.5.0-1~getdeb1_all.deb
sudo dpkg -i *.deb

On my system this leaves vuze in a location that is easy to find:

andrew@corinth:~$ sudo find /usr -iname vuze
[sudo] password for andrew:
/usr/bin/vuze              <-----------
/usr/share/doc/vuze
andrew@corinth:~$

The arrow of course is my own addition :)

3. Set magnet links to vuze:

Click on a magnet / torrent link in Firefox and if vuze is not an immediate option (competitor would be transmission) you can easily navigate to vuze and select this as the new default. See the screenshot below for this seen on my own system:

This worked easily on my Xenial system and hopefully will on yours as well :)


How do I auto-blank text console on laptop?

The setting is in Settings → Power → Power Saving → Blank Screen then set time before screen blanks.


This have been reported as bug in Ubuntu 13.10 :

https://bugs.launchpad.net/ubuntu/+source/libgtop2/+bug/1210280

It affected only 2 people, therefore the fix never maked it into production version. I am suspicious that it was never fixed afterwards, so it is still in 14.04.2.

I think, you can dowload the fix for yourself and compile your own version of libgtop2 if you mind.


APT_AUTOGEN setting just affecting the package being installed or all?

Having the APT_AUTOGEN option enabled means that when you install or remove software using APT that the changes made are added to the rkhunter file properties database (a bit like a whitelist) to make false positives less likely. It does not however update the file properties database with all new changes to the system, so if you did install a rootkit (not through APT), and then you installed some other software through APT (not a rootkit), then if you did a scan (with rkhunter) and the rootkit was a known rootkit it would be picked up, as only the software which you installed through APT would have been added to the file properties database, and not any other changes in your system.


How can I adjust the default passphrase caching duration for GPG/PGP/SSH keys?

Lauch dconf-editor.
Navigate to desktop - gnome - crypto - cache.
change gpg-cache-method to idle or timeout.
change gpg-cache-ttl to the number of seconds you want the passphrase to be cached.
Restart the gnome-keyring daemon $ gnome-keyring-daemon -r

idle means that the timer is reset each time you use the key before timeout is reached. timeout means that simply the time elapsed since entering the passphrase is considered.

This only works for GPG-keys. Passphrases for SSH-keys are still cached until the end of the session. IMHO this is a bug.


How do I install the KDE desktop environment on Ubuntu?

To install the KDE Desktop, go to the terminal and type in this command:

sudo apt-get install kubuntu-desktop

This will install the KDE desktop environment on Ubuntu. Reboot, then select the KDE desktop at the login screen (it will look like something similar to this):

Enjoy!


What is a (reasonably) secure and automated way to backup my mysql database using (any) free cloud/online services?

I would combine parts 1 and 2.  MySql allows you to take encrypted backups as detailed here:

mysqlbackup --backup-image=/backups/image.enc --encrypt
--key-file=/meb/key  --backup-dir=/var/tmp/backup  backup-to-image

The next bit would be to push the image up to a cloud service.  This comes down to personal preference. If you like Dropbox, it has a headless daemon; For a commandline Google Drive client, have a look at InSync or Grive.


How to play first n seconds of each file from a playlist

This is straight forward. You have tagged this as VLC, so I'll use that as an example.

First you need a playlist, of course. Here is VLC's wiki to explain how to make a playlist. Make sure you save it to a file.

Then, from commandline, start VLC like this

vlc --playlist-autostart <path/to/playlist.xspf> --run-time=10

This will make vlc immediately play your list, each title for 10 seconds, then stop with VLC left open.

If you start your VLC not from the GUI of the host where the music is played, i.e. via SSH, you need to export the DISPLAY variable, like this

export DISPLAY=:0; vlc --playlist-autostart <path/to/playlist.xspf> --run-time=10

If you want to VLC immediately close after finished playing, just add vlc://quit to the end, like this

export DISPLAY=:0; vlc --playlist-autostart <path/to/playlist.xspf> --run-time=10 vlc://quit

I don't know exactly what your use-case is, but If you want this to be completely stealthy, with no VLC shown on the Desktop you could use the commandline frontend. Just substitute vlc with cvlc at the beginning, like this

export DISPLAY=:0; cvlc --playlist-autostart <path/to/playlist.xspf> --run-time=10 vlc://quit

There are of course some more options for playlist behaviour, like -L for looping or -Z for shuffle/random, and so on - you best look them up on the official VLC commandline documentation.


Why is my system showing Less Memory (RAM) than is actually installed?

Check in the BIOS if it recognizes those 4GB, if not, then you have to check if they are right in the memory slot, and check if those memories are indeed 4GB in total (could be just one or two memory cards).

If BIOS recognize 4 GB then.. are you using a 32 or 64 bit version of Ubuntu, if you want to use a large amount of memory in your computer use a 64 bit operating system.


This is a long standing bug, see here.

There are several workarounds, see here, but, that wiki page applies to 14.04 only.

For earlier versions of Ubuntu, there is an old wiki page here.

And on that page is a program you can install, guest-session-prefs-lightdm-0.12.tar.gz

To install you would run:

tar -xf guest-session-prefs-lightdm-0.12.tar.gz
cd guest-session-prefs-lightdm-0.12
sudo ./install.sh

It then runs when you log into the guest session.

  If you launch a guest session right after having installed guest-session-prefs, you are prompted to choose between English and Swedish.

They also state:

  For those of you who want to be able to select language, the language related code ought to be useful. If one language (e.g. French) is enough, but the launching regular session might be run in some other language, the code in /etc/guest-session/prepare.sh can be exchanged for:

echo "fr_FR" > /tmp/guest-session-lang

Change "fr_FR" to you language.

If all that fails, from the bug report,

  The tutorial I mentioned shows how the guest session language can be set irrespective of the system default. The key lines of code (in prefs.sh) are:

echo "Language=$long.utf8" >> /var/cache/gdm/$USER/dmrc
echo "export LANGUAGE=$short" >> $HOME/.profile

If all of the above fails, I suggest you post on the bug report.


How to download more than one video with youtube-dl in Ubuntu 14.04?

you can download the whole youtube playlist with youtube-dl as

youtube-dl -cif <quality number> <url>

where,

  c = continue the video download if it was paused
  i = ignore errors
  f = the quality of the video

this will download the whole playlist and if you closed and later started downloading it will download from where it was interrupted

and you can always do

man youtube-dl


How to remove Ubuntu partition and boot menu?

First hit from Google:
http://www.makeuseof.com/tag/how-to-safely-uninstall-ubuntu-in-windows-dual-boot-environment/

Please look for answers before posting a question, many have already been answered.


If you need to change the number in your ubuntu Telegram aaccount. Just add the new number in the settings screen and then log out of your old number. You will still get all of your contacts via your new number.


Weird colored stripes around windows - Ubuntu 16.04

The culprit is indeed the new version of the NVidia driver. Reverting to 375 doesn't work because IMHO it has also been updated (minor version) and/or its dependencies are a mix of several versions. Anyway:

Remove the PPA. On my computer I deleted the file /etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-xenial.list pointing to the repository deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main
Remove all the installed NVidia packages, i.e. nvidia-*. On my computer I deleted several packages with apt remove nvidia-361 nvidia-375 nvidia-378
Update the packages list with apt update
Install the last official version (i.e. 367) with apt install nvidia-367

As a side note, I'm always amazed how updates regularly break Ubuntu...


How can I configure the embedded wireless card in a Toshiba Satellite Pro 4600 to work?

Have you tried setting it like this:
--snip--

iface wlan0 inet dhcp
        wpa-ap-scan   2

--/snip--
They're talking about a different driver, but it may be a way to slip that in through an interface config file.  On the other hand, it kind of takes NetworkManager out of the picture and uses wpa_supplicant directly...so maybe not what you want.


There may be a problem of the network (e.g. the wifi router). Have you tried on a different wireless network? Do other users connect normally to this wireless network?
Let's make sure that your wireless card did not break. Download Ubuntu on a USB stick and boot Ubuntu without installing (on memory). Does the wireless work there?
If you don't mind loosing all network settings and passwords that Ubuntu Network Manager remembers from previous connections, you could try to reset your network Manager:

Hit CtrlAltT and
type sudo apt-get --purge remove network-manager on the terminal.
You will be asked to confirm that you want to do it.
When finished, then type sudo apt-get install network-manager

It may be that a new kernel version was downloaded during some system update; and this kernel version does not properly support your wireless adapter hardware. If this is the case, when you turn on your computer, there should be a black screen with a list of Ubuntu kernel versions to choose. If this is the case, try by starting your computer with an older version, than the one selected by default.
Hit CtrlAltT and type lspci | grep Network. This should list your network controllers, and it should be obvious by the name that one of them is the wireless. Please post the model here, or search around to see whether other users of this device have the same problem with the same version of Ubuntu


I upgraded and the old wallpapers gone, how can I get them back?

The wallpapers, or backgrounds, for maverick are listed here:

http://bazaar.launchpad.net/~ubuntu-art-pkg/ubuntu-wallpapers/ubuntu/files/56

You can download the jpg's one at a time.  If you want to download them all at once you can go to this page and download the ubuntu-wallpapers-*-tar.gz file

http://packages.ubuntu.com/source/maverick/ubuntu-wallpapers

Unzip the file (gzip -d ubuntu-wall*gz), and untar it (tar xf ubuntu-wall*gz).  The images will all be in a directory.

Get the image you want by either method.

Then right-click on your desktop, choose "Change Desktop Background", then click "Add" and choose the image you want as your background.  It should now be your new background.


Is there any mechanism that blocks connections by IP address in a default 11.04 installation?

There's nothing by default that does this.

However, you may have fail2ban or something installed that is monitoring attempt logs and banning temporarily.  Other than that, or sshd having built in protection, there's no reason for this.


How to fetch the website code in my local machine?

Could you simply use clone?

 git clone <remote-repo> <local-dir-that-is-empty>

After doing this, you can do branching and stuff.

Running these commands in succession should do it:

cd ~
mkdir new_repo
cd new_repo
git clone <path-to-repo> .


VPN server on Ubuntu 16.04 and Windows clients, using W10 builtin VPN

Out the VPNs that Windows 10 can connect to out of the box, your best bet is probably going to be L2TP.

Here's a guide for setting an L2TP server on Ubuntu.


You should try running Google Chrome from the terminal with debugging enabled. You can do that using this command google-chrome --enable-logging=stderr. Use Chrome until you have a crash and then look over the terminal to see what sort of errors you see on crash.

In my case, I had the same exact issue with Chrome crashing when a new tab was opened. It was being caused by Google Chrome exceeding the limit of files that my user was allowed to have open at one time. Here is a link to a askubuntu post where you will learn how to change ulimit in the /etc/security/limits.conf.

After you make changes, make sure you log out and then log back in for them to take effect.