I had accidentally hit "Show Time in Menu Bar" when clicking on the battery on the menu bar in Gnome. This apparently hid the battery quite well. Here's what I needed:

Run dconf-editor. (Press Alt+F2, and type in dconf-editor, and hit "Run".) Browse to com > canonical > indicator > power and check the "show-time" setting. Your battery icon should re-appear immediately. "show-time" was the one I needed to change, but note that if "icon-policy" is "never", you will need to select one of the other options for the icon to appear.

(Note: This thing is buggy as hell. There's System Settings > Power, which has "Show battery status in the menu bar", and this settings is blank for me, so you would think selecting "when battery is present" would correct the problem. Unfortunately, it not only does it not "Show the battery status in the menu bar when the battery is present", but it also doesn't stick: leaving the dialog and coming back returns me to a blank as my selected option.)


Ubuntu does have Minimal CDs that are 35MB - 40MB in size that install the base system and allow you to do command line installation. They also let you choose only the packages that you want to install.

https://help.ubuntu.com/community/Installation/MinimalCD


Grub Rescue error Ubuntu 13.04 Dual Boot

Now, when your power problem is solved, you can simply reinstall Ubuntu and it will find Windows. Another solution is to restore Windows MBR.


How to shutdown oneiric ocelot in two clicks?

If you press your power button, you avoid the message and get this one:

  Shut down this system now?

And you can shut down your computer with one click.


I had the same issue with a Lenovo 510 14AST with an AMD chipset. After a lot of testing I found out that the AMD Radeon graphics model R5 is too new to be supported by the mesa open source VGA driver.

So I did a fresh install of Xubuntu (which behaved most stable due to a simpler GUI) and then immediately installed the AMDGPU-PRO driver as described here http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Install.aspx


Ubuntu can read SD cards. If you're having problems consider:

Can Ubuntu see your SD card reader? lsusb aught to tell you if it has connected. If that hangs or doesn't show it though, that suggests that there's a problem. The practical solution is to try another.

SD card readers are almost famously cheap. I've had some that are so poor they hang BIOS if they're plugged in at boot, or cause USB bus failures if left in too long. I've never experienced such a wide range of suck in any other hardware.
Can Ubuntu read the filesystem? Does sudo fdisk -l show the partition on the SD card? Is it supported by the Kernel? Run less /proc/filesystems to see what are supported. Practical solution: pick a better format that your devices and your computer can read!
Is is just not mounting? If you can see the reader and see a mountable partition, try mounting it manually (sudo mount /dev/sdX1 /mnt — replace the sdX1 with the right designation from fdisk). There's a fairly complicated udisks/udev chain for mounting these things so perhaps there's a bug in the combination of your reader and format. This is a known issue you you step around with:

echo 1 > sudo tee /sys/bus/pci/rescan


Try boot-repair, by booting into Ubuntu from Live-USB or Live-DVD.

Install  'boot repair' with Terminal (Ctrl+Alt+T) by typing the following commands:

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

Run/Open 'boot-repair':

sudo boot-repair

Click on 'Recommended repair' and write on a piece of paper the new URL that will appear.

Finally, reboot your PC!


Backup Trouble same drive mounted to / and /backups with RSYNC

ncdu

should have shown you where the problem was.

Have you tried booting from a live usb like sysrescuecd or grml, so the system is offline, then mounting the root partition and checking with ncdu.


Apache permission problem in ubuntu 12.04

It complains about the permissions set on the folder. With your command you gave everyone full write(!) and read permissions to every file in this folder and its sub-folders.

Run the following commands to set the permissions back:

sudo chmod a-x -R /etc/php5/apache2/
sudo chmod a-w -R /etc/php5/apache2/
sudo chmod 755 /etc/php5/apache2/
sudo chmod 644 /etc/php5/apache2/php.ini
sudo chmod 644 /etc/php5/apache2/conf.d/*

A small note:
Never use chmod -R until you exactly know what you are doing. chmod -R sets permissions recursively to every file and folder under the given path. You can destroy your entire system.


Installing ubuntu on secondary hard drive to be built into another device

This maybe should be a comment rather than an answer, but I don't have enough rep to comment.

Have you considered a netboot install?

https://help.ubuntu.com/community/Installation/Netboot

Read the docs naturally, but I'm pretty sure this wouldn't overwrite GRUB during the install.


Trying to remove program flmsg and am getting message "unable to locate package"

ls is a command that lists the contents of the directory. From your outputs it seems that the flmsg-4.0.8 is merely a file that exists in ~/Ham radio programs/FLDIGI/ folder not an APT package that is installed. So, deleting those files might help. You can delete that files using some file manager like Nautilus or by running rm -r flmsg* in terminal.


There are actually several questions here.

found binaries for architecture 'all': bin/curl lint_control_architecture_valid_contents

This means that you have included compiled binaries in the package (in this case bin/curl) but said that the package is architecture-independent in the package manifest (not specifying an architectures key in meta/package.yaml means it defaults to architectures: ["all"], resulting in Architecture: all in DEBIAN/control).  You should update meta/package.yaml to include architectures: ["amd64"].

unknown entries in package.yaml: 'description,summary' lint_snappy_unknown

You have included properties in your meta/package.yaml that are not recognised, namely description and summary. You should remove those.

See the guide on package metadata for more details on what properties are allowed.

(MANUAL REVIEW) type 'framework' not allowed lint_snappy_type_redflag

and

security policy not found framework_policies

The link after the failure message tells you what you need to know here:

  Frameworks must always specify framework policy, otherwise the store will reject it
  Framework snaps will always trigger a manual review to ensure the framework policy has not changed. Alternatively, the first upload could require manual review, but subsequent uploads could be automatically approved if the security policy does not change


I don't know why this worked or if it will for others but I was able to fix my issue by using the purge grub and reinstall option in the boot repair program.


What graphic cards support OpenGL ES 2.0?

the OpenGL ES 2.0 specification are written considering the OpenGL 2.0 specification with some variations. If your purpose is to detect which version of OpenGL you have available in your video card you can use the mesa utils:

sudo apt-get install mesa-utils

when the installation is complete run

glxinfo | grep -i opengl

the output of this command gives you information about the OpenGL profile available in your video card, since, as i just say, the OpenGL ES 2.0 are basically OpenGL 2.0 with minor modifications if you have a profile number greater then 2 you probably can experience the new interface without problems; the real problems is that some feature of the ES 2.0 are designed differently from the original 2.0, so if this developer does not gives more information we are not able to give a precise answer.

Generally speaking the same profile is usually used in all modern web-browser except Safari, so if you can play some GL demo in your web broser you are probably fine with ES 2.0 in every scenario.

The answer is also tricky because with some OpenGL version you can create a layer of abstraction and assign all the calculus to the CPU (meaning that you can play even without a dedicated GPU, or the required GPU for the hardware acceleration version), like in some older games where you can choose between "hardware acceleration" or "software emulation" in the graphics settings; if the dev team can't provide much more data is almost impossible to give a correct answer, it's only possible to give to you an idea of what OpenGL ES 2.0 are and how they are used and what are their general requirements.


How user manager in ubuntu adds users from gui

The answer to the question is reading source code.

Let's consider users-admin executable which is used in Ubuntu MATE.

It is a part of gnome-system-tools package.

Its source code is located on GitHub.

So you have to read source code in the users folder to find what you want to find.
Also we can consider gnome-control-center's user-accounts applet for GNOME sHell.

It is a part of gnome-control-center package.

Here is its source code or better here. You can read it too.


Use onboard graphics instead of external graphic card in Ubuntu 14.04

As you have mentioned Cuda in your question, you obviously must use a NVIDIA graphics card.
To achieve what you want, you will have to install the proprietary NVIDIA drivers and Optimus.
After that you can switch between the graphics from NVIDIA X Server Settings PRIME Profiles.

For GEFORCE 400 - 700 I recommend to install the NVIDIA drivers version 352 and nvidia-prime.
For GEFORCE 800 - 900 I recommend to install the NVIDIA drivers version 358 and nvidia-prime.
To identify the exact graphics adapter model of the external card open a terminal and execute :

lspci -k | grep -EA2 'VGA|3D'

Installation instructions - the latest stable NVIDIA drivers version 352

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1 - enter your user name and your password - execute :

sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo reboot

Installation instructions - the latest official NVIDIA drivers version 358

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1 - enter your user name and your password - execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358 nvidia-prime
sudo reboot

Note :

Generally you should use the drivers from the official Ubuntu repositories. Sometimes there are problems with these drivers - you can install the more current drivers from the GPU Drivers PPA. This often leads to properly working graphics, especially on very new NVIDIA GEFORCE adapters.


Making site live on linode ubuntu server

You will need to add DNS entry to:

@.host.com IP
sub.host.com IP

Visiting browser will resolve your IP from hostname via DNS, and then send request via HTTP connection to your apache. Apache will check HOST header, like myhost.com or sub.host.com and will use associated virtual host loaded.

But it is completely irrelevant how you name your virtual host file. You only set ServerName and number of ServerAlias directives in it:

<VirtualHost *:80>
    ServerName host.com
    ServerAlias sub.host.com
    ServerAlias mirror.host.com

If apache receives an unknown HOST header (no ServerName associated from it among loaded virtual hosts), it will just use the first virtual host loaded, so if you have only one site, you can remove ServerName and ServerAlias, but disable "default" apache hosts (with hello-world pages):

sudo a2dissite 000-default default-ssl

For questions regarding apache2, use ServerFault stackexchange.


Monitor stays in sleep when daisy chained via DisplayPort

tl;dr

Run the followind command on startup, and the problem will be virtually hacked solved:

xset dpms force off

Cause of the problem

After some search I found this forum post and it turned out that everything works properly except that the monitor is stuck in sleep mode. If you wait for the system to sleep (or force it) when it wakes,  everything will go back to normal.

According to the user replies, it seems like that this problem is common when you use Dell monitors with an nVidia graphics card.

Solution

As fabbari pointed out, you can force the monitors to sleep with the command xset dpms force off, so you just need to move the mouse and everything is back to normal. This is still more of a workaround, but if you search for "startup" in the dash and add a new startup application, you can paste the command so it will automatically run on startup. This happens so seamlessly, that you doesn't even notice it, so I consider it a perfect solution.


How to enable NPAPI option in google chrome in Ubuntu?

http://blog.chromium.org/2013/09/saying-goodbye-to-our-old-friend-npapi.html

April 2014: NPAPI support was removed from Chrome for Linux in release 35.


I got an answer elsewhere. Here is the solution:

apt-get --no-install-recommends --no-remove -y --simulate -q=0 install <PACKAGE>


As suggested by @Masu WINENOPULSE=1 parameters fix the issue.

There should be a way to make this setting as default in wine but I cannot find it right now.

For the moment I'm using a manual approach:

env WINENOPULSE=1 wine YOUR_PROGRAM.exe

Or you can add it to the launcher:

Taking care that Wine launchers are stored in:  ~/.local/share/applications/wine/Programs/
You just have to edit the program launcher and add WINENOPULSE=1 to the exec line.

So for Rosetta Stone the launcer will be changes as the following one:

[Desktop Entry]
Name=Rosetta Stone TOTALe
Exec=env WINENOPULSE=1 WINEPREFIX="/home/fra/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/fra/.wine/dosdevices/c:/users/fra/Start\\ Menu/Programs/Rosetta\\ Stone/Rosetta\\ Stone\\ TOTALe/Rosetta\\ Stone\\ TOTALe.lnk
Type=Application
StartupNotify=true
Icon=C722_RosettaStoneTOTALe.0


How to install Flash on opera browser on Ubuntu 16.10

Enable the Canonical Partner repository.
Install the adobe-flashplugin package.
Create a symlink using this command:

sudo ln -s /usr/lib/adobe-flashplugin/libpepflashplayer.so /usr/lib/opera/plugins/libpepflashplayer.so

Restart Opera.

Edit:

The symlink is possibly not needed with the latest Opera version.


Plex Media Manager sees external NTFS drive but doesn't see directories

Press ctrl+alt+t to open a terminal

Add Plex user to the plugdev group by entering "sudo gpasswd -a plex plugdev'"

right-click your external drive in the directory browser and go to properties to get its location

in the terminal enter "sudo chmod 777 "external drive location; ie media/computername"

right-click your Plex media folder on your external drive and copy the location

In the terminal enter "sudo chmod -R 777 "Plex media folder location; ie media/computername/ntfsdrivevolumename"

Call your ISP and have them help you turn on port forwarding to 32400 in your router. It's not that hard

If you can see your NTFS drive in your launcher it's already mounted. Ignore all the "tech help" telling you how to mount your NTFS drive.


need total instructions for installing railink rt3290 in 13.10

The driver for the Ralink 3290 device is included in Ubuntu 13.10 by default. If it is not working for you as expected, there is something else wrong. Let's troubleshoot. Is the switch or key combination set to enable wireless? Check from the terminal:

rfkill list all

Is the module rt2800pci loading on boot?

lsmod | grep rt2

Is a wireless interface, ideally wlan0 created?

iwconfig

Does it scan and see networks?

sudo iwlist wlan0 scan

Are there any informative clues in the message logs?

dmesg | grep -e rt2 -e wlan

When you click the Network Manager icon, do you see networks? What happens when you click yours and try to connect?

Please show us the logs here:

cat /var/log/syslog | grep -e rt2 -e etwork | tail -n20

Post it here and give us the link in your reply: http://paste.ubuntu.com/


Issues with Dz77BH-55K Motherboard and i7 processor on 12.04

If you get an error message during boot about turning on irqpoll, it's the firewire port.

You should disable firewire in the BIOS and it will run like a champ.


A google search of "specifications for vendor: 13-42 model: OA04041 battery" took me straight to the HP support page for your laptop

Two clicks later:
"Troubleshooting the notebook battery"
http://support.hp.com/us-en/product/HP-G42-Notebook-PC-series/4346229/model/5085769/document/c00259897/

There's been a recall of some of those batteries, you should take a look.


Please have a look at this post (http://c-nergy.be/blog/?p=4160) which explains in details how to install the xrdp sofware and have it working


Laptop won't restart after update without removing battery!

Sorry. Nothing to see here. Laptop was trying to boot from an old USB stick. Removing the battery simply coincided with disconnecting the USB hub.


According to the bash man page, the default shortcut for the undo function is either Ctrl+_ (note that this is Ctrl+Shift+- on most keyboards) or Ctrl+x followed by Ctrl+u. If your tab completion added a trailing slash to the directory name, you may have to undo twice, once to remove the slash and once more to remove the text that the completion added.

If instead what you want is to remove the last complete directory component from a path you are entering in bash, the closest way to achieve this is with the backward-kill-word function. By default this is bound to the Alt+Backspace key combination. This will erase the last "word" from your command line, where a word consists entirely of alphanumeric characters.

This seems to work with your given example directory names. Note that if the last directory name contains spaces or punctuation characters like - or _, these are treated as word delimiters, so you may have to repeat this key combination more than once to erase back to the last / character.


Ralink RT 3290 Bluetooth Problem on Ubuntu 14.04

I got the bluetooth to work!

First download the Source code from here and extract it to Home.
After that, open the rtbth_core_bluez.c file, and then go to line 86 and change it from:

int rtbt_hci_dev_send(struct sk_buff *skb)
{
    struct hci_dev *hdev = (struct hci_dev *)skb->dev;

to:

int rtbt_hci_dev_send(struct hci_dev *hdev, struct sk_buff *skb)
{
    //struct hci_dev *hdev = (struct hci_dev *)skb->dev;

Go to line 216 and change it from:

    status = hci_recv_frame(skb);

to:

    status = hci_recv_frame(hdev,skb);

Then go to line 406 and change it from:

hdev->ioctl = rtbt_hci_dev_ioctl;

to:

//hdev->ioctl = rtbt_hci_dev_ioctl;

Save, then open rtbth_hlpr_linux.c and go to line 575. Change it from:

//daemonize((PSTRING)&pOSTask->taskName[0]);

to

(PSTRING)&pOSTask->taskName[0];

Now you are ready to Compile. Compile it in Terminal by:

cd rtbth-3.9.3
make
sudo make install

Reboot.
Additionally, you can follow the PDF file contained inside this ZIP in case bluetooth still does not work.


Why is my MAC address being reset when connecting to a wireless network after spoofing it?

Try ifconfig but not all drivers let you change your MAC

sudo ifconfig wlo1 down
sudo ifconfig wlo1 hw ether 00:01:02:03:04:05
sudo ifconfig wlo1 up`


Enable login as root not working in ubuntu 20.4

You will also need to provide a method for authenticating the root user - either by enabling the root password (not recommended - for security reasons) or by creating a public-private key pair for root.
If you do the latter, you may as well change PermitRootLogin yes to PermitRootLogin prohibit-password - which iirc is the default anyhow.


Ubuntu 16.04 kodi jarvis 16 video problems

Make sure your system is fully updated. Regular updates include the open source drivers for Intel Graphics.

sudo apt update
sudo apt full-upgrade


How to customize the index page of Apache?

This gives you a brief description of the Apache alternates, and how to customize Apache directory listing.

Let me start by saying that:

The Apache HTTP Server is the most popular web server on the Internet running on almost 60% of all web servers and also the one we now compare all others to. Apache’s security, stability and flexibility is why most web server administrators choose it and Apache has proven itself over the long run.Apache

Other alternatives that are available out there are:

Lighttpd (pronounced “Lighty”) was born out of a desire to create a fast, secure and reliable web server with a small memory footprint. From a functional standpoint it works much the same as Apache, the most widely used web server, but with less memory used on busy servers and also greater throughput when pushed to its limit. It currently powers several extremely high traffic websites such as Wikipedia and YouTube.Lighttpd

Nginx is bit of a different beast. While it does work as normal it is mainly utilized across higher trafficked websites as a web proxy; in other words when a user visits the nginx server with their browser it will send the request to other servers on its own private network depending on the type of content requested.

Documentation is not clear for beginners, but once you get to know the ins and outs of nginx you will see how powerful it is especially when running larger sites.Nginx

Information is available on the internet,  and you may need to do some Googling to find specific instructions for your situation.

For customization, take a look at Better Default Directory Views with HTAccess
Quoted form the site:

  Beautify your default directory listings! Displaying index-less file
  views is a great way to share files, but the drab, bare-bones
  interface is difficult to integrate into existing designs. While there
  are many scripts available to customize the appearance and
  functionality of default directory navigation, most of these methods
  are either too complicated, too invasive, or otherwise insufficient
  for expedient directory styling. In this comprehensive tutorial, you
  will learn how to use the built-in functionality of Apache’s
  mod_autoindex module to style and enhance your default directory
  views with a smorgasbord of stylistic and functional improvements.

Also take a look at Official Manual


Where can I get xfwm4-themes on Xubuntu 19.10

According to packages.ubuntu.com, the xfwm4-themes package is no longer available in the standard 19.04 and 19.10 repositories. And that makes sense because it's been dropped from Debian in December 2018 for being unmaintained.
Alternative 1
I would suggest looking at the themes available in the 19.10 repositories. Many of them provide their own xfwm4 theme and it's likely that these themes will be appropriate for your system.
Alternative 2
You can visit xfce-look.org and click on XFCE/XFWM4 Themes to get a listing of themes. I suggest you choose from recently updated themes to ensure compatibility.

I downloaded the Neon_Knights_Blue .tar.xz archive, extracted it, and placed it in ~/.themes.
Then, I opened Settings > Window Manager and could choose it from there.

Alternative 3
You can still find the xfwm4-themes in archived form online. For example, there's git.xfce.org/archive/xfwm4-themes/ from which you can download xfwm4-themes-4.10.0.tar.gz from eight years ago.

extract the contents
open the redmond folder
create a folder called xfwm4 in the redmond folder
move all the .xpm files and the themerc file into the xfwm4 folder
move the redmond folder into ~/.themes, which you'll need to create if it doesn't exist.
open Settings > Window Manager and choose redmond
applications that use GNOME's client-side decorations will obviously not use any  xfwm4 theme.

Using the redmond xfwm4 theme


No DNS domain configured for  whilst joining AD domain

Add the search domain in the /etc/network/interfaces file

dns_search <myDomain>


Ubuntu entry in Windows Vista still there, even after uninstall

In windows:
My computer -> properties -> Advanced -> Startup and Recovery settings.

Other option is to edit C:\boot.ini with a text editor and remove the line referencing Ubuntu.


Ubuntu Screen goes black after boot using Dedicated GPU

I've had this problem as well and can possibly be related to the kernel. You can either try booting up on older kernel with GRUB and seeing if another older kernel boots correctly. If it does, you might need to report a bug report on http://launchpad.net/


How to switch on sub-pixel anti-aliasing for fonts?

Install gnome-tweak-tool  from the Software Center. Or the Terminal sudo apt-get install gnome-tweak-tool if you feel adventurous ;).

Open it.

Then select Font.

Anti aliasing.

It's in Spanish but you get the idea.


How can I use HAL in recent versions of Ubuntu?

HAL is deprecated for a laundry list of reasons; UDev is replacing it. Fortunately nothing should break because it was all routed through DBus anyway. There is no need to revive the dead.

To detect CD removal and insertion, listen for DeviceAdded and DeviceRemoved on the org.freedesktop.UDisks.Device bus. The example code in this question should be helpful.


How to set default environment variables for other users?

The sudoers(5) man page has a "Command Environment" section that reads, in part:

  On Linux and AIX systems the contents of /etc/environment are also
         included.


In alpine's setup (Main - Settings -> Config).

You may need to pick a "Threading Display Style".  I'm not sure what the default is, I have 'mutt-like'.

Then, when viewing a folder, hit $ (Sort) and H (tHread).

I remember some issues with gmail and threading, I think that the threaded view in gmail is not dependent upon the "In-Reply-To" header that alpine (and other clients read and write).  gmail's threaded index is more complex, using primarily subject (that is all from memory, it could be out of date).


Poor battery life and performance due to incorrect CPU frequency scaling

Update: Try linux-cpupower
I found this Q&A that may be of help: Is it possible to set a constant lowest CPU frequency under the modern PSTATE driver?
Summary of the answer:
sudo apt-get install linux-cpupower

Then:
sudo cpupower frequency-set -g powersave
sudo cpupower frequency-set -d 400MHz
sudo cpupower frequency-set -u 3100MHz

As mentioned elsewhere I don't have an AMD processor and cannot test this for you...

I've been thinking of purchasing a Ryzen based system based upon leading-edge developments but I am still Intel platform based.
cpufrequtils comes up often on this site and it is designed for your AMD platform. From this Debian Article (Debian is the father of Ubuntu) install the AMD CPU utilities using:
sudo apt install cpufrequtils

Pay close attention to removing or overriding other governor utilities such as laptop-mode-tools.
If you have any questions post a comment below and I'll try my best to assist with my limited knowledge of AMD platform.
Additionally, here is a detailed report from another user in Ask Ubuntu: CPU frequency scaling stuck 2.80 Ghz and it's not going down


Workspace Grid extension : how can I rename or remove the workspaces names?

Use dconf (dconf-editor) to edit the /org/gnome/desktop/wm/preferences/workspace-names...


Can't switch to performance mode on Nvidia X Server on 16.04 after CUDA install

I've had this same problem when trying to install Nvidia Docker, it turned out I had version 384 and Nvidia Docker installed version 387, which meant that I now had to different nvidia drivers installed in my system.

To solve this just purge both drivers:

Uninstall the nvidia driver

And reinstalled it fromt the tutorial:

NVIDIA CUDA Installation Guide for Linux


Windows 7 is already installed on my system and then i tried to install ubuntu

Since you want to reinstall everything, I would suggest simply formatting the drive and installing ubuntu again. If something went wrong with the installation, this is probably the easiest way.

Burn the ubuntu installation ISO to a CD or DVD and boot from it. If it detects another OS, make sure to select the option to erase it and install ubuntu on the entire disk.


Stuck with upgrade tool - upgrader window out of screen

Hold Alt and drag the window (from any point of its corresponding area) just as if you're dragging its header. In your case upwards, so you can see the buttons.

Another solution is to resize its height from the top, then drag it by its header.


Can't format USB, can't delete USB partition, through GUI, through terminal

You MUST run gparted as root. From the command line, /usr/bin/gparted-pkexec will prompt you for your password, then start gparted as root, so it can write the raw device.


Lubuntu pulse audio volume control for short time applications

I found a solution. It's not the best solution because I have to change the default source in command line instead of change the source for Telegram only with GUI. Therefor I hope that someone has better information but for now I can use Telegram with my usb headset.

I started Pulse Audio command line:

> pacmd

Then I searched for the index of my audio source

>>> list-sources

1 is the index of my headset, so I set the default device with

>>> set-default-source 1

Last, I had to restart Telegram messenger.


Make Ubuntu compatible with Arabic language

اذهب إلى (Go to)

افتح (Open)

اضغط على علامة الزائد لإضافة لغة (Click on plus sign to add a language)

سوف تظهر لك اللغات (List of languages will show up)

إذا أضفت اللغة العربية سوف تجدها في القائمة الرئيسية الفوقية (If you added Arabic, you find it on the upper list)

إن لم تجد اللغة العربية في المرحلة الرابعة (If you couldn't find it in step 4)

ثم (Done)

ثم عد إلى المرحلة رقم 2 (Then go back to step 2)


After Upgrade from 11.10 to 14.04, Laptop Keyboard Keys Not Working

I think you have a bad keyboard or connector.
Try booting from a live distro Ubuntu Mint..  if it is the same its the keyboard or cabeling thats malfunktioning.


I realize this is a year old, but didn't see it "solved" or a solution in it. Also, this regression seems to keep happening with system upgrades, its been around for over a decade now.
You can install (or re-install) the XML::SAX module by running

sudo cpanp -i XML::SAX

When it completes you should be able to reinstall perl-xml-libxml without errors with

sudo apt-get install - reinstall perl-xml-libxml

.


How do I make an html file with text in it in a separate directory from the one I'm in, all in one command?

You can use redirection, which creates a file if the given target does not exist (or overwrites the file if it does, so do be careful). Instead of the output of a command being written to the terminal, it gets written to the target file.
echo "something" > target
So, replace target with the path to the file you want to create, and "something" with what you want to put into the file...
echo "zanna s" > /home/zanna/playground/new-file

The directory has to exist already, and you must have permission to write there. If you do not, sudo will not help you, because redirection is done by the shell itself, and the shell is not being run as root. There are ways around that, though. One of them is tee, which is another option for you (although perhaps this makes it two commands). The tee command writes to both standard output (the terminal) and the specified file, so it is a little more informative than using redirection:
echo "various things" | tee /path/to/file

This | thing is a "pipe". It turns the output of the command to the left of it into the input of the command to the right of it. So the output of echo (various things) becomes the input of tee.
One can make echo give multiline output using the -e option, although it is pretty awkward:
zanna@peach:~$ echo -e "things\non\nseveral\nlines\n" | tee playground/new-file
things
on
several
lines

In the above command I used a relative path to the file (a path that depends on the current location). playground is a subdirectory of the current directory, so this works fine. If you use the absolute path (for example /home/zanna/playground/file or ~/playground/file or $HOME/playground/file) the same command will work no matter what the current working directory is.
I don't know what you mean by a html file. Perhaps it should just have an extension:
echo "$USER" | tee ~/subdirectory/file.html


Ubuntu 18.04 - GNOME Shell more than one window behaviour problem

Open Terminal and run the following command on your second installation

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'previews'

This would provide the little preview windows you're looking for.


I solve all the issues with a kernel update (5.3). So if you get this laptop I would recommend having a external network card during the installation process.


There is a bug filed for this issue:

https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1527884


Why am I getting [mount error(22): Invalid argument] while trying to mount SMB network drive?

0 down vote

I have found a solution. Add the option sec=ntlm - this works both in a manual mount and from fstab

The fstab entry is now -
Network USB Drive - ie the USB Flash Drive connected to the Modem

//192.168.0.1/USB /home/user/USB cifs sec=ntlm,uid=1000,gid=1000,guest,_netdev 0 0

Based with Thanks from http://ubuntuforums.org/showthread.php?t=2139090


Wine is no longer able to initialize OpenGL

Alright, this pretty much forces me to answer my own question, but it turned out that the OpenGL errors are relatively harmless; Upgrading ia32-libs[1] made steam work pretty much flawless (that is, it now works as it did before these errors occured).

So, if anyone else encounters these errors, upgrade your GPU drivers, and upgrade ia32-libs.

[1]: I've stumbled upon a ia32-libs PPA, that has a more recent package of ia32-libs, that might also fix some issues with other software depending on 32bit compatibility: http://radicalbreeze.com/forum/viewtopic.php?f=11&t=525

To add this PPA, just execute this in your terminal:

sudo add-apt-repository ppa:micove/experimental

(experimental because the other one does not include packages for oneiric and newer, especially pangolin).


How to include a xubuntu 13.04 in desktop environment, in wubi

Xubuntu hasn't been available with Wubi since release 12.10. The lead Xubuntu developer, Pasi Lallinaho, requested that it be removed (reference):

  There has been discussion about this on the mailing list and on
  #xubuntu-devel before, but the short answer is that there wasn't enough testers and it was only more workload for the team to support
  that.

It's still available on the 12.04 Wubi

There is a way to trick Wubi into installing Xubuntu, if you don't mind a bit of work. This is not recommended, but I did it and wrote up the Howto here: http://ubuntu-with-wubi.blogspot.ca/2012/10/tricking-wubi-installing-xubuntu.html


WIFI of Toshiba Satellite C55-A is slow to unusable

Your wireless interface is softblocked

Try sudo rfkill unblock wlan0


How To Delete Ubuntu and Change to Windows Permanently?

First of all, rethink this. Make sure you backup the files you want. If you are sure about the decision follow the steps:

1- Buy a Windows 10 License

2- Download Windows 10 ISO file from https://www.microsoft.com/en-us/software-download/windows10ISO

3- Burn the ISO file into a flash drive (there are several tools for that. Look it up)

4- Put the flash drive

5- Restart the device

6- Go to the BIOS (See your device's catalog or google it to find the key combination that opens BIOS).

7- From the BIOS Make the flash drive the Boot device (There is usually a list of boot devices. You'll find your computer's HDD and the flash drive. Make the flash drive the first on the list).

8- Restart

9- Now The Windows 10 installation screen should appear. Follow the steps. They include putting your license number. Also you need to perform a clean install to delete everything. This video and several others could help : https://www.youtube.com/watch?v=xzr16pxybnI

10- Wait until it finishes installing.

11- Congrats !!


sudo nautilus command is not working properly in ubuntu 13.04

Quick Answer
Use gksudo nautilus or sudo -H nautilus or sudo -i nautilus instead.
Explanation
You shouldn't use plain sudo to run graphical applications, because it makes root and your non-root user account try to use the same configuration files, which often causes root to own files that the non-root user needs to (but cannot) access.
Recent versions of Nautilus will actually recognize this problem and refuse to run, in order to prevent their per-user configuration from being broken on your non-root user account.
The solution to this problem is, when running graphical programs as root (especially Nautilus), use a method that avoids this problem. The methods that avoid this problem are the methods that make the program you're running look for and create configuration files in root's home directory (/root), rather than your own home directory (/home/ussername).
The Solutions, and Why They Work
The HOME environment variable is usually consulted to determine the home directory to be used. You want this to be set to /root. You don't do this directly; instead, run graphical applications in a way that does this for you automatically.
Traditionally, all Ubuntu systems had gksudo or (for Kubuntu) kdesudo installed, and you would use them instead of sudo when running graphical applications. That might work; I recommend you try replacing sudo with gksudo before you try anything else. Unfortunately, gksudo is not always installed on the newest versions of Ubuntu. You can, of course, install it (in the Software Center or with sudo apt-get update && sudo apt-get install gksu).
Also, please note that traditionally, on Ubuntu, gksu and gksudo did the same thing. But a recent bug sometimes makes gksu behave in a way that doesn't work right for an Ubuntu system. This is why I recommend gksudo, even though I have usually recommended gksu (which does "the right thing" on many different Unix-like systems, when properly configured).
But there are alternatives to gksudo. You can tell sudo to run a program as root and use root's home directory instead of yours:
sudo -H nautilus
If you don't have gksudo, I recommend sudo -H. However, you can also use:
sudo -i nautilus
sudo -i simulates a full root login (even if actual root logins are disabled), which sets many environment variables, including HOME, to their root-user values.
(After the command is run, and in other programs or other commands that are not started from the program you're running as root, the environment remains unchanged. You never have to "change it back.")


How to quickly extract all kinds of archived files from command-line?

The dtrx command is your friend on that matter.

It uncompresses any archive file by guessing its type.
It will also make sure the files you uncompress will be put in a new directory ; avoiding messing up the current working dir with tons of files.

Install

sudo aptitude install dtrx

Usage

dtrx stuff.zip


Where/when is the update for Firefox to version 37..?

If you run in a terminal

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

this may install the newest version 37 of FireFox if the upgrade was hold back/could not have been installed because it has different dependencies in comparison to version 36.


Yes.

Wubi uses the Windows boot manager (there is only one). And that's what you are using to boot into your different XP installs.


Download executable script from GitHub preserving +x permissions

I would suggest you use gists instead of a git repository. Repository by nature is supposed to be a collection of files. Gists on the other hand are single files. Something like this

wget https://gist.githubusercontent.com/SergKolo/d77dd46e9d936b5871e1829a2afd79c3/raw/726f39be5e0a939e06ed89239d2c350451b81316/get_unity_viewports.sh \
&& chmod +x ./get_unity_viewports.sh

But if you insist on using a repository , instead of 1 command , combine 2 into 1. Rememeber that we can specify interpreter for the code.

curl https://raw.githubusercontent.com/au-answers/dupe-check/master/dupe-check  > dupe-check && python3 dupe-check

And that's how it runs

$ curl https://raw.githubusercontent.com/au-answers/dupe-check/master/dupe-check\
>   > dupe-check && python3 dupe-check
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7580  100  7580    0     0   6484      0  0:00:01  0:00:01 --:--:--  6489
Checked 1 files in total, 0 of them are duplicates by content.

Same with wget

$ wget https://raw.githubusercontent.com/au-answers/dupe-check/master/dupe-check && python3 dupe-check
--2016-04-24 21:17:35--  https://raw.githubusercontent.com/au-answers/dupe-check/master/dupe-check
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 23.235.44.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|23.235.44.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7580 (7.4K) [text/plain]
Saving to: ‘dupe-check.1’

100%[==================================================================================>] 7,580       --.-K/s   in 0s

2016-04-24 21:17:36 (470 MB/s) - ‘dupe-check.1’ saved [7580/7580]

Checked 2 files in total, 2 of them are duplicates by content.
Here's a list of all duplicate files:

'dupe-check' (./dupe-check)
'dupe-check.1' (./dupe-check.1)

Variation on the theme

Get the URL of raw file by right clicking  on the  raw button in github

wget https://github.com/au-answers/dupe-check/raw/master/dupe-check


Why I can't search from the Dash on Amazon anymore on 13.04?

You should know that this feature has not been disabled, it didn't stop to work, it is still installed and ready to use by default on Raring Ringtail.

So you should have a problem with your internet connection or with the specific package.


No matter what I did my compaq evo510s would not accept USB as a bootable drive it kept saying it was invalid media. I eventually did get Ubuntu installed on it by using another computer to do it.

I connected the Compaq's hard drive to another machine (one already running Ubuntu installed from USB), booted the USB and installed to the Compaq's drive. I replaced the HDD and now the Compaq is running Ubuntu!


I guess there are issues with missing .so files. Can you check by starting skype from the terminal (try this: $ skype), and post the output?


can't install Tor. Now I can't use apt-get

The key line is:

trying to overwrite '/usr/bin/tor', which is also in package tor-browser 3.5.4

The error message indicates that a package called tor-browser is preventing you from installing the standard tor package.

Since tor-browser isn't in the standard Ubuntu repositories, I suggest you remove it from your system, then try sudo apt-get -f install again.


Postfix working with home network but not with USB 3G dongle

You can verify what the problem is by checking /var/log/mail.log immediately after trying to send an email.

My quess is that the 3g network you're using might be blacklisted, which would be understandable. This would result with emails being rejected by the destination email server and an appropriate message in the log file.


I don't think the files are vanished, but just have become inaccessible to you due to a possibly erroneous chmod mode. Here's why:

Setting 4 (octal representation) as a permission on either a user, group or other marks it as r-- (3-bit representation, but the same thing) and not r-x as required for directories to be able to list their contents.

So, you probably wanted to set mode 755 on that directory to make it like this:

drwxr-xr-x

If your file manager reports it has not contents, you're probably not the owner of that directory (presuming your file manager is running as your own user account). So, try to fix this as root (for example using sudo to raise your privileges), like this:

sudo chmod 755 /var/www/wordpress

And you'll be able to access your file again, probably.


You can install the ia32-libs package from the Ubuntu Software Center.


Start the printers dialog from dash and choose "add printer". All the next steps should be fairly easy to follow (and HP has a good track record).

And it seems ther is an installer:

and here is how you install the driver on Ubuntu =if= 'add printer' does not work.


monodevelop asp.net xsp4 change default address/port?

From the root of the web application you can run xsp4 --port YOURPORT. Or fromo monodevelop, as you asked, you can set the web application as your startup project and go to "Project > yourprojectname Options > XSP Web Server" and set the port number.


Set gtk-icon-theme-name to lubuntu in ~/.gtkrc-2.0 (for GTK 2 applications) and in ~/.config/gtk-3.0/settings.ini (for GTK 3 applications). Here is the content of my GTK config files:

$ cat ~/.gtkrc-2.0
include "/usr/share/themes/Lubuntu-default/gtk-2.0/gtkrc"
gtk-font-name = "DejaVu Sans 10"
gtk-icon-theme-name = "lubuntu"

$ cat ~/.config/gtk-3.0/settings.ini
[Settings]
gtk-theme-name = Lubuntu-default
gtk-icon-theme-name = lubuntu

In /usr/share/themes/Lubuntu-default/gtk-2.0/gtkrc the property gtk-icon-theme-name is set to Lubuntu (capitalized) which must be a bug because there is no such icon theme installed on my system.


Actually, there is another minimal official ISO, which is not as well-known as the „normal“ one.
You can download it right here

The major difference between this ISO and the other is that this one offers a command line installation, which should  solve your problem.
During the installation make sure that you install the Ubuntu Desktop.

I hope this helps.


Install older kernel in a server and made it the default boot option in grub

is it possible?
Switching between recent closely related kernels is possible - that is kernel versions 2-3 different.  Any larger than this and you can run into graphical issues because todays graphics cards and drivers often need a similar kernel to work with.
I know this because my laptop is an intel based laptop.  I'm running 12.04 and running the hardware-enablement stack.
Currently I'm using the 13.10 saucy stack but with the raring kernel (kernel 3.8 vs 3.11 in saucy).  This works ok.  When I switch to my 3.2 kernel, my laptop boots to a black screen.
Given that you are using a server, I imagine you are not running any graphics stuff anyway - or maybe just framebuffer type graphics. Thus, the graphics issues should not (in theory) apply to you.
kernel 3.2
Kernel 3.2 is the long-term supported kernel (LTS) - so it will receive the support the longest (i.e. a total 5 years from 12.04 release).
As long as you are not running any kernel device dependent software, there will be no impact in running an older kernel.
The other aspect you should consider is security updates.  By pinning and holding your kernel you'll need to manually manage your kernel updates.
pinning
As to your queries - the procedure you have outlined is correct.
You may wish to consider not "pinning and holding".  Instead of booting using the first kernel found in the "Previous Kernels" GRUB, you could instead boot to a named kernel
i.e.
change GRUB_DEFAULT="2>0" to GRUB_DEFAULT="2>Ubuntu, with Linux 3.2.0-24-generic"
You can obtain the grub label via the command fgrep menuentry /boot/grub/grub.cfg


Xubuntu 1080p HD video play and CPU usage

This is not unusual, youtube-1080p is a very heavy load, even for recent hardware.
Here is some information to compare to your own experience:

I have recently bought a pair of pretty cheap an modest netbooks and have compared how ubuntu, xubuntu and lubuntu handled video. All of them were assisted by hardware video acceleration (mplayer-vaapi  on AMD/HD4000) and is played perfectly althoug I noticed differences in processor core temperature which made me curious. I used the same player and movie for each install and monitored with htop.

Approximate CPU load according to htop:
Lubuntu: 20 - 30 %
Xubuntu: 40 - 60 %
Ubuntu:  70 - 95 % (Ubuntu 2d without compositing)

So it seems to me that your hardware (probably without hardware video decoding) is doing quite well. Lubuntu could speed it up a bit more, and since you only have 4GB flash I second Greyscaleimag3s' advice. Go for Lubuntu.


Ubuntu 12.10 64bit not picking up my Ethernet

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

ifconfig

You should get something like this:

eth0      Link encap:Ethernet  HWaddr 00:19:5b:5e:0a:5e
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::219:5bff:fe5e:a5e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1884961 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1232492 errors:0 dropped:0 overruns:4 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2569144356 (2.5 GB)  TX bytes:114877090 (114.8 MB)
          Interrupt:19 Base address:0xc800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4022 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4022 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:147433 (147.4 KB)  TX bytes:147433 (147.4 KB)

Notice how I have an inet addr defined. If you do not have an IP address then something is wrong, most likely it is a DHCP problem.

Can you ping 192.168.1.1 or ping 10.0.0.1? (Most likely your router's LAN ip is one of those)

If you can ping one of those, then you can see your router and you are not getting a IP from the router. This could be either your router DHCP not configured/setup or your system not requesting an IP from the router.

That is if you have a router.

In the Terminal type:

sudo gedit /etc/network/interfaces

and add this two lines in the bottom:

auto eth0
iface eth0 inet dhcp

Save the file and now, to restart your network, on a new Terminal type:

sudo /etc/init.d/networking restart

Finally, use the below commands enable/disable eth0:

sudo ifdown eth0

sudo ifup eth0


Cannot save files in Kdenlive snap, why not?

I get the same problem.
kdenlive (snap version) does not save file in .kdenlive format; but the project is saved in a other way.
If you go to the kdenlive folder and show the hidden data, you can see file like this .xdp_321.MAXUN0, 321 is the file name you have saved before.
Open this file with kdenlive, then you will get your saved project back.


Mistakenly Installed gnome shell extension and tweak tools on Ubuntu 16.04(GUI Unity)

These aren't necessary components, if you don't need them or they aren't working for you, you can uninstall them.


Not sure if this is what you want.
Since Flatpak packages are installed to /var/lib/flatpak/app or ~/.local/share/flatpak/app, you can view content of them in those folders.


The configuration parameter you are looking for is pwdMaxAge as described here. However, you need to observe that this parameter is given in seconds. Hence you need to calculate number_of_days * 86400 if you want to specify a particular number of days.


Why don't you try to edit the file using a external monitor?

Because if you can't edit the file and update Grub with the actual installation, you have to bind the installed OS using a LiveCD or LiveUSB (http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd) and then edit the /etc/default/grub and update Grub.


I was wrong. /dev/shm is a seperate mount point.

Does this persist after a reboot?

A first point to start is to search for regular files within /dev by

find /dev -xdev -type f


Slow shutdown due to modemmanager and .. nm-dispatcher.action?

Here is the bug report on, no sign of a fix.

https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/869635

The report does mention an edit one can make to /etc/init/network-manager.conf, ie. add as shown

stop on runlevel [06]

I believe adding the line was effective here though myself use Wicd & have removed network-manager. YMMV, if trying & it causes issues then remove the added line


No matter what i try, Samba shares keep promptig for login when trying to connect via windows

The default smb.conf supplied by Ubuntu contains a parameter missing from your smb.conf. Without the override samba defaults to map to guest = Never which pretty much does what it sounds like it would do - Never allow guest access.

Restore the missing override by adding the following to the [global] section of smb.conf:

map to guest = Bad User

Then restart smbd:

sudo service smbd restart


I just noticed this issue, too.  It appears to be related to this change from January 9

https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1800722

It looks like a bug has been submitted to fix the issue caused by the original bug fix

https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1815002


Why is Kubuntu using much more CPU than Windows in YouTube and other web browsing use?

The main reason you're seeing higher CPU consumption is the lack of hardware acceleration of video-related functions: mostly video decoding and possibly rendering. Intel's open source GPU drivers are of great quality and support these features, however browsers have some troubles implementing support.

The following information is to my best knowledge as of March 11 2020:

GPU acceleration

Both Firefox and Chrome/Chromium support GPU acceleration for rendering, but it is not enabled by default.

Firefox

You need to enable two things: Off-Main-Thread Compositing (OMTC) and WebRender.

I personally have the next settings in about:config:

layers.acceleration.force-enabled = true
gfx.webrender.all = true
gfx.webrender.compositor = true
gfx.webrender.enabled = true
dom.webgpu.enabled = true

That results in everything in about:support's Decision Log is enabled. But you might need to experiment with the settings to get a combination that works for you, because some hardware/driver combinations might experience problems.

Chrome/Chromium

GPU acceleration needs to be enabled by setting browser feature flags. chromium-flags.conf might not work depending on your browser version, but the same flags are available through chrome://flags.

My personal configuration has these flags:

--ignore-gpu-blacklist
--enable-gpu-rasterization
--enable-oop-rasterization
--enable-native-gpu-memory-buffers
--enable-zero-copy
--enable-accelerated-mjpeg-decode
--enable-accelerated-video

That results in all features in chrome://gpu being green, enabled and hardware accelerated, except for Vulkan. Once again that may vary depending on you hardware, drivers and even browser version, so experiment and find the settings that work for you.

Video decoding

No browsers implement hardware video decoding by default. Good news is that is about to change.

Firefox

Next Firefox version (75) will ship GPU video decoding feature under Wayland. You'll probably have to enable it manually.

Chromium

There is a patch for Chromium that enables GPU video decoding, but it is not merged into the main branch. That means you have to install a special version from a PPA.


Installation is still possible, but you have to download packages manually from previous Ubuntu releases with commands below:

mkdir -p ~/Downloads/gourmet
cd ~/Downloads/gourmet

wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gourmet/gourmet_0.17.4-7_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-6_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/python-reportlab/python-reportlab_3.5.23-1ubuntu0.1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/e/elib.intl/python-elib.intl_0.0.3~git20110809-5_all.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/python-reportlab/python-reportlab-accel_3.5.23-1ubuntu0.1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtkspellcheck/python-gtkspellcheck_4.0.5-1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pyenchant/python-enchant_2.0.0-1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/python-mechanize/python-mechanize_0.2.5-3_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/b/beautifulsoup/python-beautifulsoup_3.2.1-1_all.deb

sudo apt-get install ./*.deb


How to eliminate screen tearing in Ubuntu 16.04.02?

Install compiz and open it (you can install it from software center),
- in your menu go to System/Preferences/CompizConfig Settings Manager
- enable Composite, Open GL and Work Arounds
(additionally you might also enable Animations to get some nice desktop effects)
- go to Composite and make sure "Detect Refresh Rate" and "Undirect Fullscreen Windows is checked" this should already fix most full screen tearing issues.

to remove all tearing go to Workarounds (you can search for it by typing it in the text field on the top left)
enable the options "Force complete redraw on initial damage" AND "Force full screen redraws (buffer swap) on repaint"

web browsers: You can disable "smooth scrolling" in chrome/chromium/firefox browsers (you can search on google) it will help to have better scrolling.

Video playback: Try different video players.


User logs in without asking for password , and can't log out of user and also can't lock screen?

Go back to user accounts

Then select your user and double click.

click Unlock in the upper right hand corner. (should work now that you set password from terminal) enter new password.

On same screen make sure  "Automatic Login" is turned off for your account.


zram is built into the Linux kernel.  I've been experimenting with zram and have a brief script to set it up for swapping, like this:

modprobe zram num_devices=2
echo "268435456" > /sys/block/zram0/disksize
echo "268435456" > /sys/block/zram1/disksize
mkswap /dev/zram0
mkswap /dev/zram1
swapon -p 1000 /dev/zram0
swapon -p 1000 /dev/zram1

The machine I was testing on had 1GB of RAM, so I decided to use 256MB*2 for zram swapping.  You can also use a similar technique to set up zram as an ext3 filesystem.

You can check zram usage by cat'ing /sys/block/zram0/orig_data_size and mem_used_total


Laptop locks up when unplugging ac, plus weirdness

OP solved their own problem (edited out of the question):

  I added to the kernel boot parameters acpi_osi=! acpi_osi='Windows
  2009' and the issue magically went away

This is done by editing the configuration file for GRUB:

sudo nano /etc/default/grub

find the line that starts

GRUB_CMDLINE_LINUX_DEFAULT

and add the parameters you need to those already between the quotes, so you have, for example

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=! acpi_osi='Windows 2009'"

Then run

sudo update-grub


Compiling error while installing Realtek RTL8111E in 64 bit 13.10. "CONFIG_X86_X32 enabled but no binutils support"

I finally found the cause thanks to this link.

It seems that one shouldn't have spaces in the folder names (containing the driver of course) when building the driver. Replacing the spaces with underscores fixed the issue. I could build just like that. Strange... but it worked!


Bad blocks are remapped when trying to perform disk writes (only). When a bad block is remapped, data from that block is placed into another spare good block. Depending on the number of bad blocks, file corruption can still occur.
The proper way to bad block your disk is:
Note: do NOT abort a bad block scan!
Note: do NOT bad block a SSD
Note: backup your important files FIRST!
Note: this will take many hours
Note: you may have a pending HDD failure
Boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode.
In terminal...
sudo fdisk -l # identify all "Linux Filesystem" partitions
sudo e2fsck -fcky /dev/sdXX # read-only test
or
sudo e2fsck -fccky /dev/sdXX # non-destructive read/write test (recommended)
The -k is important, because it saves the previous bad block table, and adds any new bad blocks to that table. Without -k, you loose all of the prior bad block information.
The -fccky parameter...
   -f    Force checking even if the file system seems clean.

   -c    This option causes e2fsck to use badblocks(8) program to do
         a read-only scan of the device in order to find any bad blocks.
         If any bad blocks are found, they are added to the bad block
         inode to prevent them from being allocated to a file or direc‐
         tory.  If this option is specified twice, then the bad block scan
         will be done using a non-destructive read-write test.

   -k    When combined with the -c option, any existing bad blocks in the
         bad blocks list are preserved, and any new bad blocks found by
         running badblocks(8) will be added to the existing bad blocks
         list.

   -y    Assume an answer of `yes' to all questions; allows e2fsck to be
         used non-interactively. This option may not be specified at the
         same time as the -n or -p options.


Banshee package dependencies cannot be resolved

It seems that you are trying to install both the 64-bit version of gstreamer-ugly as well as the 32-bit version at the same time. This is not possible, due to their conflicting dependencies. Try to install only one of the two packages, gstreamer1.0-plugins-ugly if you have a 64-bit OS, and gstreamer1.0-plugins-ugly (i386) if you have a 32-bit OS


Lock screen after period of inactivity, but not on closing the lid

The background script below will do pretty much exactly as you describe

switch off the screen after x seconds
lock the screen after y seconds

The script

#!/usr/bin/env python3
import subprocess
import time

# set screen off after x seconds
off = 300
# lock screen after x seconds
lock = 360

# check idle every x seconds
res = 3

def get(cmd):
    return subprocess.check_output(cmd).decode("utf-8").strip()

def test(t, threshold):
    return int(t)/1000 < threshold

testoff1 = True
testlock1 = True

t1 = 0

while True:
    time.sleep(res)
    t2 = get("xprintidle")
    testoff2 = test(t2, off); testlock2 = test(t2, lock)
    if (testoff2, testoff1) == (False, True):
        subprocess.Popen(["xset", "dpms", "force", "off"])
    if (testlock2, testlock1) == (False, True):
        subprocess.Popen(["gnome-screensaver-command", "-l"])
    testoff1 = testoff2; testlock1 = testlock2

How to use

Like you mention, you need to switch off existing lid actions:

gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action 'nothing'

and:

gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action 'nothing'

and furtermore:

gsettings set org.gnome.desktop.screensaver lock-enabled false

and

gsettings set org.gnome.desktop.session idle-delay 0

since we now take care of our own procedures.

then:

The script uses xprintidle, to check the idle time

sudo apt-get install xprintidle

Copy the script into an empty file, save it as set_times.py
In the head section of the script, set the idle time to switch off the screen (in seconds):

# set screen off after x seconds
off = 300

and the time to lock the screen:

# lock screen after x seconds
lock = 360

These times are set independently to each other, you may set both in any order you like (either lock first, then switch off, or the other way around)

You can set the time "resolution", the frequency the idle time is checked, (and thus the set time is rounded by):

# check idle every x seconds
res = 3

but you might as well
Test- run it:

python3 /path/to/set_times.py

If all works fine, add it to Startup Applications: Dash > Startup Applications > Add. Add the command:

python3 /path/to/set_times.py

Explanation on the concept

The command xprintidle returns the current idle time (no input from mouse or keyboard)
The script then tests if the set time is smaller then a defined threshold, and compares the state with a few seconds ago.
If there is a change in state (True --> False) any action can be taken. This is done for both switch off screen, running:

xset dpms force off

and lock screen, running:

gnome-screensaver-command -l

Notes

Off course we can also make the time(s) to switch off and lock the screen arguments to run the script with:

#!/usr/bin/env python3
import subprocess
import time
import sys

off = int(sys.argv[1]) if len(sys.argv) > 1 else 300
lock = int(sys.argv[2]) if len(sys.argv) > 2 else off + 60
# check idle every x seconds
res = int(sys.argv[3]) if len(sys.argv) > 3 else 5

def get(cmd):
    return subprocess.check_output(cmd).decode("utf-8").strip()

def test(t, threshold):
    return int(t)/1000 < threshold

testoff1 = True
testlock1 = True

t1 = 0

while True:
    time.sleep(res)
    t2 = get("xprintidle")
    testoff2 = test(t2, off); testlock2 = test(t2, lock)
    if (testoff2, testoff1) == (False, True):
        subprocess.Popen(["xset", "dpms", "force", "off"])
    if (testlock2, testlock1) == (False, True):
        subprocess.Popen(["gnome-screensaver-command", "-l"])
    testoff1 = testoff2; testlock1 = testlock2

Then running:

python3 /path/to/set_times.py 300 360

will switch off the screen after five minutes, lock the screen after six.
The additional burden of the script is zero.


Switched to Debian 6, but still have home encrypted

I think you should start by installing this package

  ecryptfs-utils

and run ecryptfs-setup-private

It will ask for your passphrase and you'll be able to mount your Private directory with mount.ecryptfs_private


I need help running a script constantly for a vpn connection. how to go around the ping

I would probably look at something as simple as:

#!/bin/bash
pgrep vpnc
STATUS=${?}

if [ ${STATUS} -ne 0 ]; then
    /usr/sbin/vpnc configname
fi

That will then launch vpnc if it isn't already running.


Is it possible to install Ubuntu on a Chromebook?

Well, if you search for Crouton you fill find tutorials to install Ubuntu on a Chromebook. In this page, you will find one for the Chromebook Pixel:

  Create a Boot USB with the Ubuntu version to install with the tool you want (USB Boot Creator from Ubuntu, Linux Live USB Creator for
  Windows...)
  Reboot the ChromeBook by pressing and holding ESC+Refresh and briefly    press the power button. It will ask you to reboot into
  Developer    Mode.
  When it reboots press “Ctrl+D” Or wait 30 Seconds. Youll see a scary    screen about not having a verified OS. Its fine. Just hit
  “Ctrl+D”.
  Once rebooted press “Ctrl+Alt-T” to pull up terminal
  Enter this into terminalchromeos-firmwareupdate --mode=todev    crossystem dev_boot_usb=1
  Now your in Developer mode and we can boot from a USB, so Plug your    USB drive we made in the last tutorial in, and your USB mouse and
  reboot.
  This time when you see the scary screen hit “Ctrl+L” this will pull    you into SeaBIOS. When it comes up hit Esc when prompted and select
  your USB drive to boot from. It should be 1.
  When Ubuntu boots, make sure your USB mouse is hooked up, and it will    ask you if you want try or install it.

From nemesisrobotics.com/installing-linux-on-the-chromebook-pixel/

The minimum system requirements depends of the OS, then, the minimum ones for Ubuntu are these:

  Ubuntu Desktop Edition

  700 MHz processor (about Intel Celeron or better)
  512 MiB RAM (system memory)
  5 GB of hard-drive space (or USB stick, memory card or external drive    but see LiveCD for an alternative approach)
  VGA capable of 1024x768 screen resolution
  Either a CD/DVD drive or a USB port for the installer media
  Internet access is helpful

From https://help.ubuntu.com/community/Installation/SystemRequirements

And the performance of the OS depends on the hardware support, which you need to check depending of the Chromebook that you have.


There was an attempt to develop an ad hoc clustering solution for Ubuntu from within the Community called easy-ubuntu-clustering. But it seems it did not pass the dicussion phase.

More than software, Clustering is above all a matter of methodology. Setting up a Beowulf cluster in particular is mostly about setting up the mechanisms by which nodes communicate and share resources. There are protocols for both tasks; MPI in particular is used in most Linux based solutions.

Various guides can be found on the web presenting different methods; a quick collection:

A bio-informatics graduate from the Netherlands produced a detailed guide based on MPICH for communication and NFS for asset sharing.
Advanced Linux provides an alternative (and shorter) guide, also based on MPICH and NFS.
At Linux.com there is a quick and simple guide for Ubuntu 8.04 convering solely communication (with an earlier version of MPICH) that may be worth checking out.
Digital Ocean present a VPN based method for their private network product that also uses MPI.


How do I change the default domain when browsing Windows shares?

Here is the answer I discovered with a bit of searching. Some answers on AskUbuntu mention the same steps, but in the context of more serious problems with samba connectivity.

Back up the old Samba config file:

$ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.orig
Edit the config file:

$ sudo vim /etc/samba/smb.conf

(or $ sudo nano /etc/samba/smb.conf, if vim isn't your thing)

in the editor, look for a line which says workgroup = WORKGROUP (it was line 38 for me, with Ubuntu 12.04)
change WORKGROUP to your network's Windows Domain name

Save the file and exit the editor
Now, to make the change effective immediately, restart the NetBIOS name server:

$ sudo service nmbd restart


Zooming should be controlled by the Super + mouse wheel scroll combination by default. If you can scroll on your webbook by e.g. sliding your finger along the right side of the trackpad, you can try zooming back out this way.

If this doesn't work, you might have to open CompizConfig Settings Manager or gconf-editor and tweak some of the settings yourself.


Thunderbird suddenly became my default email client

you can change the default email client on Ubuntu using the System Settings, just click on the Details

and click on the Default Applications tab (red arrow).

there will be a selectbox (blue arrow) which allows you to change the default E-Mail application your system.

Now I don't really know what you mean with Google E-Mail client, but i guess you mean Gmails web interface, in this case just select Chrome/Chromium Browser and it should work.


Ubuntu 17.04 - Changed hostname, now my bitcoin core won't work

I found the solution:

I'm on a 64 bit installation of Ubuntu 16.04.

I went to /usr/local/lib and found all my QtCore/QtGui/QtNetwork files there.  I moved them all to /usr/.

Now I can run Bitcoin-qt again fine.

I have no idea why it breaks or why it cannot seem to run after the initial boot up or why this fixes it but it seems to work.

Note:  There are many libQtCore/Gui/Network files for many different programs but it seems Bitcoin-qt uses the ones in /usr/local/lib and it breaks for some reason whenever you restart the computer.  Moving them fixed it for me but only moving the ones in /usr/local/lib and all of them.


conflicts between usr/lib, usr/local/lib and BLAKE2

Set the LD_LIBRARY_PATH environment variable. This is similar to $PATH, but for locating shared libraries.
Commonly, this is set in ~/.bashrc :
export LD_LIBRARY_PATH="/usr/local/lib:/usr/lib"

There is also the ldd command that lets you check what shared libs a binary uses (and from what paths):
ldd myprogram

e.g.
[sh @ balrog] ~ 7 % ldd /bin/ls
    linux-vdso.so.1 (0x00007ffcdd75b000)
    libgtk3-nocsd.so.0 => /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0 (0x00007fa9ab768000)
    libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007fa9ab540000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa9ab14f000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa9aaf4b000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa9aad2c000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fa9aaaba000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fa9abb91000)

Finally, there is ldconfig that recreates the linker cache for shared libraries; that is useful when you just built a new shared lib, and it might not be in the cache yet:
sudo ldconfig


How dangerous is `sudo apt-get autoremove package*`?

Not dangerous at all. From man apt-get:

autoremove (and the auto-remove alias since 1.1)
    autoremove is used to remove packages that were automatically
    installed to satisfy dependencies for other packages and are now no
    longer needed.


How can I increase my disk space when Ubuntu is installed inside Windows?

The official Wubi page lists 2 options:

Using LVPM (but the site states that it wouldn't work with 10.04, so I guess it won't work with 10.10)
Moving your /home to a new virtual disk using the wubi-add-virtual-disk script. You can install if from the Wubi page.

I would suggest using the second option. Note that it will move your /home to another virtual disk, if you were short on space in another folder you might have to move that folder instead of /home.


menubar visible pipelight on secondray screen

Apparently, this behaviour comes from a modification in Compiz (my desktoip environment being Unity), wich now disallows applications on the secondary screen to go full screen.

To enable "true" fullscreen support on a secondary display, one can use the compiz configuration manager :

    sudo apt-get install compizconfig-settings-manager

and enable the option in Utility -> Workaround -> Legacy Fullscreen Support


Failed to install ubuntu 13.10 and it also corrupted my windows 7

After the installation process is complete, you should reboot / restart the computer without the live usb installation media removed, and Ubuntu will boot from hard drive.

If you selected the option to erase all data and install, and the installation process was successful, then your partitions were most likely delete.


(X)Ubuntu doesn't boot, repeatedly prints "^[[18~" and more

The F7 key is probably stuck with dirt or something.


Unable to connect to Windows Ad-Hoc from 11.10

Create ad-hoc network in ubuntu using network manager and than check in ubuntu it self. whether its running fine. and then go to windows.

you can take help of

Why can't other machines connect to my ad-hoc wireless network?


I found a working solution for me. If this also work for other people, I'd like to know!

I went and got the maps from Open Street Map :

Backup the file gmapprom.img from your GPS device to your computer (just in case something goes wrong) using Nautilus.
Select the maps you want from OpenStreetMap
Download the osm_generic_gmapsupp.zip ("Compressed file that contains a single image that can be placed directly onto the SD-card of the GPS.") file
Extract the file gmapsupp.img, and rename it to gmapprom.img
With Nautilus, copy the extracted file on your device, replacing the old (backuped) gmapprom.img file.
Restart your GPS

The new maps even have extra points, like all the parks and playgrounds where I live.


Downloaded OSBuddy from website which opened Ubuntu Software Center and proceeded to download. It now won't launch.

So, I couldn't figure out .deb, but I got the .jar file to work instead with java -jar OSBuddy.jar after restarting the chromebook. Thanks


How to set up domain name and attach it to my server IP address (Apache2)

That process links your internal IP to a domain name, so that localhost resolves to www.domain.com locally, but you will need to purchase a domain name from a hosting provider, in order to link a public IP with your domain name for access on the internet.


Ubuntu freezes after login. After trying almost everything

I had that problem for almost 4 days and I resolved it.

The problem is your gtx1050 driver (it can only work with the 390 or higher stable driver. Now the 390 is the highest).

step 1 : on your login page use Ctrl+Alt+F2" to access a terminal. (before typing a password use it the time you still not freeze).

step 2 : in terminal use sudo add-apt-repository ppa:graphics-drivers

step 3 : update the ppa you add sudo apt-get update

step 4 : install the latest nvidia driver sudo apt-get install nvidia-390

step 5 : let the installation complete and then restart your pc and enjoy.

If that doesn't work do this:

step 1 : on your bootloader (when you want to click on ubuntu) use "E" key on your keyboard to access gnu grub

step 2 : one line before end you see ...quiet spalsh "$vt_handoff" change it to "... quiet splash nomodeset" and press f10 (I guess) to boot (read the bottom of the grub page)

step 3 : after that you can access to ubuntu and login with no freeze

step 4  : install the geforce driver from the terminal like I said before and restart again


I don't have the time to retype everything I had written to this question on Stack Overflow, but some pointers you may want:

First, @reboot specifier in the crontab(5) makes it easy to run a program as a user on boot.

Second, writing an upstart job specification to run a program as service is pretty straightforward. The documentation is poor, but there are many examples in /etc/init.d/. start-stop-daemon(8) is fantastic -- be sure to read its manpage before you try to re-invent the wheel.


Ubuntu 18.04 LTS stuck in Logon Loop after switching GPU from NVIDIA to Intel

I managed to get the command line via recovery and ran

sudo prime-select nvidia

Prior to running the above command

prime-select query

returned intel. Now it returns nvidia.


Does a new user's settings affect the main user's settings?

no each user is separate. themes are local to the user, so it will only affect the account you apply it to. if there is a script, don't use sudo


No control over USB mic input/output level, or other external devices while mic plugged in

I was also having issues with my Blue Yeti Pro USB microphone.  I figured out how to get it working again.  Try using QasHctl to manipulate your device.  I have it working now using JACK, pulseaudio, and Bitwig studio.  Your mileage may vary.  Here's the relevant threads/questions:

Can't select Blue Yeti Pro USB Microphone in sound settings menu

http://ubuntuforums.org/showthread.php?t=2153270


Citrix Go Daddy SSL Cert Ubuntu 14.04 Trusty

That error 61 might have more reasons. I have solved the problem I had.

I have followed the same instructions, specifically point 1. leading to

https://mark911.wordpress.com/2014/06/27/how-to-install-citrix-receiver-icaclient-in-ubuntu-14-04-lts-64-bit-tested-and-working-using-mozilla-firefox/

This installs version 13.0 of the icaclient, which seem to be too old. The actual issue was that our server uses type SHA-2 HASH in SSL certificate which is not supported by icaclient 13.0, but it is by 13.3, so after upgrading with deb file with 64bit icaclient 13.3 from citrix pages, it started to work.

See my answer to

Citrix Error "You have not trusted certificate"

This might be duplicate of question above.


You don't need a script for an easy command like that.

Option 1: With GUI

You can add a new entry with the GUI xfce4-session-settings, in Settings > Session & Startup > Application autostart :

  Name = Conky

  Comment = Autostart conky at login

  Command = sh -c "sleep 10; conky;"

Option 2 : Manually (commandlines)

You can add a new file.desktop (autostart files) in $HOME/.config/autostart :

mousepad ~/.config/autostart/conky.desktop

Paste this in the Mousepad window :

[Desktop Entry]
Type=Application
Exec=sh -c "sleep 10; conky;"
Name=Conky
Comment=Autostart conky at login

Save.

Option 3 : with only one commandline (TADAAAM!)

echo -e '[Desktop Entry]\nType=Application\nExec=sh -c "sleep 10; conky;"\nName=Conky\nComment=Autostart conky at login' | tee > ~/.config/autostart/conky.desktop


What is the difference between installing Ubuntu on a USB device and a laptop hardisk?

Just so you know, primus, your PC must be able to boot from USB - I have three laptops (Dell one-kilo machines with 1.7GHz Pentium-M and 1GB RAM) deployed which do not, even though this is the 21st Century.

Secundus, it will be slower. The USB interface is not even as fast as PATA, much less a 5400 rpm SATA drive.

Tertius, the USB drive is more fragile, both physically and electronically. Flash memory will fail, and experience shows it fails quicker than the hypothetical specification.

Quartius, as with SSD drives, heavy use leads to failure earlier.  If you have adequate RAM in the PC, that's preferred for external Flash use.

All that being said, it should work well, until it fails, if it works at all. And, to be on point, here are explicit answers to the four questions you raised in your original post:

1: YES

2: YES

3: SEE ABOVE

4: ALL FEATURES WILL WORK IF YOU CREATE THE FLASH DRIVE WITH PERSISTANCE (which reserves R/W space so you can save files to it). As to how long it lasts until it fails, I don't have a good guess, but I have a booting USB flash drive which has been in twice-weekly use for 5 years, and it wasn't spendy, just a plastic-case 4GB run-of-the-mill flash drive.

And, a 16GB flash drive is more than adequate.


python subprocess.call() not working as expected

By default subprocess.call doesn't use a shell to run our commands you so can't shell commands like cd.

To use a shell to run your commands use shell=True as parameter. In that case it is recommended to pass your commands as a single string rather than as a list. And as it's run by a shell you can use ~/ in your path, too:

subprocess.call("(cd ~/catkin_ws/src && catkin_make)", shell=True)


we found fix from strongswan page:

https://www.strongswan.org/testing/testresults/ikev2/net2net-same-nets/


dpkg shows a curious syntax error while installing a package

It turned out that dpkg does not recognize str, and removing this typehint fixed the error.


How can I keep my backlight from turning off on my Lenovo G50-30 laptop?

If you're using Ubuntu 14.XX:

Open system settings
Type in Brightness in the top right search box and choose "Brightness and Lock"
From here you can choose the settings for adjusting how long until the screen turns off and when it automatically locks.

If you're using Kubuntu 14.XX
 - Open system settings
 - Navigate to "Display and Monitor"
 - On the left panel, you'll see three icons, click on "Screen Locker"
 - Adjust these settings to what you desire
 - You might also need to go to "Power Management" (also in system settings towards the bottom) and edit those settings as well. I believe these settings are responsible for the dimming and going out after a short period of time.


Are there regular Gujarati fonts for Ubuntu?

Try This.  Download and open as usual, click "Install font"


Run

sudo nano /etc/modprobe.d/alsa-base.conf

and add this line:

options snd-hda-intel index=0 model=laptop-dmic


nagios- nrpe installation error(configure: error: Cannot find ssl libraries)

this worked for me:

./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu

I found the dir through:

apt-file search libssl | grep libssl-dev


If it's always the same place, you probably have a corrupt DVD/CD & it's failing to copy something due to that. You can burn a new one, but I would check the 'checksum' (.md5) files for the .ISO you have first, to ensure your download was good. The website you got it from should explain that.

A missing 40GB is probably related to partitioning, but you need to tell us more about that bit - perhaps get the install done first, it may well not be a problem.


How do I programmatically disable the KDE screen locker?

It transpires that the screen locker can be controlled via the D-Bus RPC mechanism.  You can send queries and commands via D-Bus using the qdbus command.  The addressable methods are grouped into objects, which belong to services.  Running

qdbus

prints out a list of services, and you can eyeball this list to find the screen locker service, which is org.freedesktop.ScreenSaver.  Then

qdbus org.freedesktop.ScreenSaver

prints out a list of addressable objects in the screen saver service, which includes /MainApplication.  (It also includes /ScreenSaver, and while this had a number of useful methods, it didn't have what I wanted.)  Then

qdbus org.freedesktop.ScreenSaver /MainApplication

prints out a list of callable methods and their argument and return types.  The one you want here is

method void org.kde.KApplication.reparseConfiguration()

The configuration file itself is in $HOME/.kde/share/config/kscreensaverrc and is in a straightforward format.  You can edit this file (programmatically, if desired) and then invoke

qdbus org.freedesktop.ScreenSaver /MainApplication  reparseConfiguration

to reconfigure the screen locker with the new configuration.

The complete shell script is:

timeout=${1:-3600}
perl -i -lpe 's/^Enabled=.*/Enabled=False/' $HOME/.kde/share/config/kscreensaverrc
qdbus org.freedesktop.ScreenSaver /MainApplication reparseConfiguration
sleep $timeout
perl -i -lpe 's/^Enabled=.*/Enabled=True/' $HOME/.kde/share/config/kscreensaverrc
qdbus org.freedesktop.ScreenSaver /MainApplication reparseConfiguration

Frew Schmidt also pointed out that there is often a separate system configuration setting that assigns functions to certain mouse pointer positions, so that it is possible to temporarily disable the screen locker by putting the pointer into the upper right corner, or whatever.  In KDE this is controlled from System Settings → Workspace Behavior → Screen Edges.


KWin: Toggle grayscale KDE destop effect with script

This doesn't deserve an answer, but I don't have the reputation to comment.

I'm trying to automate grayscale toggling via a shortcut too, and sometimes the set:

kwriteconfig5 --file ~/.config/kwinrc --group Plugins --key kwin4_effect_grayscaleEnabled "false"
qdbus org.kde.KWin /KWin reconfigure

doesn't work (effect is not disabling, even if visibly unchecked in the settings).

So I just add an extra line:

qdbus org.kde.KWin /Compositor suspend && qdbus org.kde.KWin /Compositor resume

(it reloads the compositor, the same as doing "alt+shift+F12" twice)

And this allows to avoid the heavy kwin_x11 --replace solution, so I think it's better (but I'm absolutely no expert here).

(Note that I had to add a sleep 0.2 in between the two lines too, otherwise the grayscale disabling didn't work unless I triggered the whole thing a second time)


After Windows, Ubuntu installation with HD repartiton & reformat fail

SOLVED by use of the Boot-Repair LiveUSB/CD https://help.ubuntu.com/community/Boot-Repair to rewrite the MFT.


convert with -resample changes background to black

This can happen when converting a transparent image to jpg, a format that does not know an alpha channel. You can avoid the problem by adding the -flatten option to your command:

convert -resample 200 foo.pdf -flatten foo.jpg

It will compose the final image from the input taking transparency into account and defaulting to white background.


Any Crux-like window manger for Ubuntu 20.04 and XFCE?

For the scroll-bar behavior, I was able to find the clearlooks-phenix-theme package, but it still uses very thin window borders.


Enable ZFS ZED Email Notifications on 16.04

I just found your post when trying to set it up, what I did to make it work is:

Uncommented and configured /etc/zfs/zed.d/zed.rc
Set ZED_NOTIFY_VERBOSE=1 in the file  /etc/zfs/zed.d/zed.rc
enable the zed daemon:

  systemctl enable zed

Ran a scrub and it works!

Note that if the service is already running, you get the error:

  Failed to enable unit: Refusing to operate on linked unit file zed.service.

In that case, just restart it:

  systemctl restart zed


Stuck at installing Ubuntu on Samsung Notebook 3

Could you install It? if not then at the first purple screen with a man & keyboard at the bottom hit Enter.. then choose language.. In the next screen hit F6 and choose 'nomodeset'... press escape & then install...

It will work and you have to install proprietary drivers later to get right resolution & all, but that is after your installation is complete...


Choice of repositories and link with Software Updater warning message "Not all updates can be installed"?

So after some research, here is what I understood.

About the Utopic packages in my 14.04.3 Trusty Thar release

According to the Release Note for Trusty Tahr, if one instals Ubuntu directly from the 14.04.2 media (which I did) one automatically receives a newer hardware enablement stack by default. This is maybe why I have the packages: linux-generic-lts-utopic, linux-headers-generic-lts-utopic and linux-image-generic-lts-utopic.

Although I am not 100% sure since (i) the Trusty Tahr Release Note mostly refer to the vivd-based packages, and (ii) I had essentially just some documentation files referring to 'utopic' under /etc/share. So still a bit of a mystery...

About the "held back" packages

The explanation can be found here. These are upgrades of packages that have new dependencies that require the installation of new packages. To prevent the automatic installation of such new packages (not just upgrades) that could potentially put the system at risk, the upgrades are held back.

The command to force the installation of these held back upgrades along with their required dependencies is:

apt-get dist-upgrade

I used the command and everything went fine.


No. The battery is hardware, and connected to the motherboard. Software can't simply stop the flow of current from the battery to the mainboard.

Some Lenovo Thinkpads can limit battery charge level within a certain range. TLP can be used to adjust that range.
However, you have an Ideapad, which is a consumer device.

You would have to implement some kind of wireless switch to disconnect the battery.

Edit: Your battery will stop charging when it tops off. If you want to prevent overcharging simply unplug when it hits, say, 80%, and charge when it hits 20%. You can even just keep the battery out when using it at home if you're that paranoid about draining your battery.

If and when your battery does lose much of its charge, buy a replacement, open up the computer, and replace it. It'll teach you some hardware repair skills.


Few points to make:

Why are you using timestrings in /etc/cron.weekly/ scripts at all? You're only supposed to put executable scripts in there. You don't need to crontab them or anything else. That will just duplicate their work. Look at /etc/cron.daily/apt for an example of what I'm talking about. It's just a plain script.
Per geirha's comment, the file can't have an extension. Odd, I know, so rename it:

sudo mv /etc/cron.weekly/mysqlbackup{.sh,}

You need to run sudo chmod +x /etc/cron.weekly/mysqlbackup to make it executable. You can then test it by running it, using that path.
If you leave it in /etc/cron.weekly/, the script is going to run as root. None of your ~/ links are going to work. Use full paths. I'd suggest that after you do the mkdir you cd into it and that will reduce the huge paths in subsequent commands. If you need the generated files to be owned by your user, make your script chown them to your user when it's done backing up.

I don't see any reason for any of this to be root driven. You could plonk the script in your home directory and just use the standard crontab -e to add your rule and have it run. It still needs to be executable and I'd still recommend you use full paths, but it keeps the permissions slightly easier.


To do what you're asking you'll need to create a persistent USB drive. https://wiki.ubuntu.com/LiveUsbPendrivePersistent

Just keep in mind that if you were wanting to install Steam on it as well you'll probably want to have a 64GB or larger flash-drive, and you will also need to have it initially formatted in FAT32 format.


I booted into the live system, logged into a root shell, logged into root

$ sudo -i password

I mounted my filesystem:

# mount /dev/sda6

then I mounted sys, proc, dev, & dev/ptsL

# mount -o bind /dev /mnt/dev
# mount -o bind /proc /mnt/proc
# mount -o bind /sys /mnt/sys
# mount -o bind /dev/pts /mnt/dev/pts

then I chroot'd:

# chroot /mnt

after that I made sure that any modules I had moved over were removed, because I was finally able to copy my modules that were backed up on my external, and the modules from the live system into my filesystem, and they didn't completely work, all they did was fix the problem mounting my other filesystems and some USB acccess. So to do this I used:

# rm -r /lib/modules

then I made sure my internet connection was still good:

$ ping -c 5 google.com

then, after verifying that I could access the internet, I ran some updates because every few days updates come out, and my filesystem checked my kernel to see if I needed to update anything and I was able to re-install my modules this way. I ran:

# apt-get update
# apt-get dist-upgrade

After all this, I used ls to check and see if my modules were back and indeed they were, in /lib/modules. I rebooted the computer, and everything worked perfectly.

Thanks the wonderful person that helped me, over at ubuntuforums.org


How to lower Flash video resources usage for Chrome minimized?

Changing active tab to empty while playing Flash video in another tab lowers resources usage.

Same is done by reducing video quality.


Uninstall Ubuntu with no boot problem afterward

I have a laptop with preloaded Vista, and having a "recovery" partition just like yours. I have installed/uninstalled the last few versions of Ubuntu several times without any problem using "Wubi".

I have some 2 tips for u.

You can create the recovery DVDs by yourself, just find the "system repair disc" wizard in backup and restore dialog box. Those 3/4 dvds will prove to be a great time and money saver in case of emergency. Get it done ASAP!
Here is a link that might help you http://windows.microsoft.com/en-IN/windows7/Create-a-system-repair-disc
You can create logical partitions from Win7 itself then use Wubi to install Ubuntu on that partition. I think you already know this one.


Firefox doesn‘t start, because there‘s already a firefox process running

Most probably your Firefox profile is locked. If newly starting Firefox discovers profile is locked it assumes another copy is running and show this error. Lock file normally removed on Firefox shutdown, but, sometimes, in case of crash or power outage it may remain and cause problems.

Profile is located at ~/.mozilla/firefox/*somestring*.default/ and lock file is called  .parentlock

You need to remove this file and start Firefox.


Burning a CD keeping original timestamps for files

K3B will do this. Personally, I never use Brasero, and always use K3B, even when I'm using Gnome. It has many more features than Brasero. Anywho, to install, just search the Ubuntu Software Center for K3B, or:

sudo apt-get install k3b

To make sure it keeps the timestamps, after you create the CD/ISO and click Burn, then Click the Filesystem tab, then the Custom button.

Then check the "Preserve file permissions (backup)" checkbox.

That's it.


Multi-monitor setup, only terminal on one monitor

Open the terminal and move it on which monitor do you wish. Press F11 to put terminal in full-screen mode, and voilà: you have only the terminal on that monitor.

Otherwise, I think that you can do it using virtualization. But only for this purpose it seems without sense.


How do I make rsync delete files that have been deleted from the source folder?

To delete files in the target, add the --delete option to your command. For example:

rsync -avh source/ dest/ --delete


No such file or directory message from bash at terminal start

To find out where the /opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh script name was specified, use grep:

cd ~/ && grep -nr '/opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh'
cd /etc/ && grep -nr '/opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh'
cd /opt/ && grep -nr '/opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh'

There could be files such as ~/.bashrc, ~/.profile, /etc/bash.bashrc, /etc/profile, /etc/profile.d/*, /etc/environment, /etc/environment.d/*.

Try to comment out such strings in one of these files if you'll find them.

You could also try to create not existent directory structure and an empty file bash complains at:

sudo mkdir -p /opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/
sudo touch /opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh
sudo chmod +x /opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh

This is only a workaround to get rid of annoying bash message we don't know where it come from.


To check whether positional parameter $2 is empty, use the -z test operator and don't forget to quote the variable:

[ -z "$2" ]

See help test:

String operators:

  -z STRING      True if string is empty.

  -n STRING
     STRING      True if string is not empty.

Also don't forget to add an appropriate shebang #!/bin/bash at the top of your file (especially if you are using echo -e).


Can't add any PPA's after reinstalling Ubuntu 13.10

Long story but this bug was the result of trying to set up a dual boot with Windows 7 and Ubuntu 13.10.

After doing an install with a format of hard drive it works again.


Found this link in [this AskUbuntu][2] question;

Simply executed this piece of command and all went back to normal;

find ~/.steam/root/ -name "libgpg-error.so*" -print -delete

Thank you all for the help.


What OS Type setting to use for dual booting Ubuntu 18.04 with Windows 10?

In short: Use "Other OS" as the option. You are not really disabling it but rather telling it to let you boot OS like Linux distros that don't have their bootloaders signed
Secure Boot is more or less a feature, kind of directed at Windows distros which allows for a more secure boot process. Unfortunately, it operates with certain keys or signed bootloaders that are mostly provided or rather recognised by/from Windows systems. Since the linux community is not on a common ground about how to deal with the key requirements of Secure Boot, there is no consistent approach hence most tutorials just tell you to disable it. What secure boot does is, prevent OS which doesn't have their bootloaders signed from booting. Most linux distros don't have their bootloaders signed at Microsoft and therefore problems can arise when booting. The "Other OS" option allows secure boot to not enforce it's key requirements and boot other operating systems as well. Therefore, you are not really disabling Secure boot in a turning it off sense, but rather telling it to chill down and let other distros do their thing.
A more detailed description can be found here: https://www.howtogeek.com/116569/htg-explains-how-windows-8s-secure-boot-feature-works-what-it-means-for-linux/
and on many other websites


Open the program called 'Terminal' and type the commands in the grey boxes in the following order:

Diagnose connectivity to router:

ping <your_router_ip>

If you get a response, you are connected to the router -- good. Press 'Ctrl-C' to stop the program.

Diagnose DNS:

ping 8.8.8.8

If you get a response, your DNS servers are not properly set.
We can fix that, if that's the problem.

Try getting a new IP/DNS servers from your router

sudo dhclient wlan0

That command produces no output if successful.
It would also be great if you can get us the output of 'ifconfig'.