How to allow remote connections to Flask?

First of all - make sure that your HTTP server is listening on  192.168.50.101:5000 or  everywhere (0.0.0.0:5000) by checking the output of:

netstat -tupln | grep ':5000'

If it isn't, consult Flask's documentation to bind to an address other than localhost.

If it is, allow the traffic using iptables:

iptables -I INPUT -p tcp --dport 5000 -j ACCEPT

From Flask's documentation:

  Externally Visible Server If you run the server you will notice that
  the server is only accessible from your own computer, not from any
  other in the network. This is the default because in debugging mode a
  user of the application can execute arbitrary Python code on your
  computer.

  If you have debug disabled or trust the users on your network, you can
  make the server publicly available simply by changing the call of the
  run() method to look like this:

app.run(host='0.0.0.0')


"error: cannot execute binary file" when trying to install Eclipse IDE on 13.10

Eclipse is provided by Main Ubuntu Repository. Best method to install is in that way.

It can be installed by :

sudo apt-get install eclipse eclipse-jdt eclipse-pde openjdk-7-jre eclipse-platform junit junit4  libhamcrest-java libasm3-java openjdk-7-jre-headless


Background Job (launched with '&') Stops On Logout

Even if you start with &, the process is a child of your shell, e.g., bash. When you log out, bash terminates, together with its children. If you want to have it running after logout, a different process has to start it. For example, for processes started at runtime, try writing an rc script and put its call into /etc/rc.local


I solved the problem of slow booting. When I saw the boot messages it showed me that a startup process is running my dev mapper. I checked the /etc/fstab and there was a swapfile indicating /swapfile but I checked using free -m that I didn't have a swap set up. So I set up a swap but still the problem remained unchanged. The actual problem was that there was an unexisting drive listed on the /etc/crypttab which was causing the issue. I commented out the line and now it boots fine.

So if you have starup job slow boot issue, please do check:

Do you have a swap? Check it using sudo swapon -s
Check whether the swap is listed in fstab properly. Also check whether there are any other unexisted device listed. If there is, comment it out by putting # and a space at the starting of the line.
If step 1 and 2 fails or not relevant then check whether any unexisted device listed on /etc/crypttab. If there is, comment it out.


flashgot icon not appears on firefox bar?

Now i use Download helper for selecting flashgot. DH has a menu which leads to flashgot. It much better than before.


Its possible to make UCARP work with Netplan:
At first you should edit /usr/share/ucarp/vip-up and vip-down:
  ----- up -----
  #!/bin/sh
  exec 2>/dev/null

  /sbin/ip address add "$2"/32 dev "$1"

  ------- down -------
  #!/bin/sh
  exec 2>/dev/null

  /sbin/ip address del "$2"/32 dev "$1"

Next step is to configure ucarp:
/usr/sbin/ucarp --interface=ens160 --pass=YourPassw00rd --srcip=10.0.215.26 --vhid=1 --addr=10.0.215.46 --shutdown --preempt --advskew=0 --upscript=/usr/share/ucarp/vip-up --downscript=/usr/share/ucarp/vip-down

You can change --pass to use file with --passfile. Srcip - ip of your machine, addr - virtual ip of your cluster.
I just tried this and everything was ok. I disabled ethernet on master node and  and switchover occurred after 2ms.
But there is one problem - UCARP is not a service, so you should create a unit for it.
nano /etc/systemd/system/ucarp.service

And fill it
[Unit]
#Unit description. You can see this message when use "service ucarp status"
Description=Start UCARP as service
# Start after this:
After=syslog.target
After=network.target

[Service]
# Set type of service. Only oneshot works with exec lines with so much values. Look for Man page for instructions.
Type=oneshot
# Execute on start.
ExecStart=/usr/sbin/ucarp --interface=ens160 --pass=SuperPa$$w0rd --srcip=10.0.215.26 --vhid=1 --addr=10.0.215.46 --shutdown --preempt --advskew=0 --upscript=/usr/share/ucarp/vip-up --downscript=/usr/share/ucarp/vip-down -B
# Execute on stop.
KillMode=control-group
# Execute on reboot.
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

And added to autostart
sudo systemctl enable ucarp


How can I use cron-apt to download and install updates between midnight and 5am?

Actually the documentation of cron-apt is pretty thorough. You can find the documentation and examples in /usr/share/doc/cron-apt. If you don't intent to read it, you can easily just set up a root cronjob yourself (without using cron-apt).

You can open the crontab of the root-user with sudo crontab -e. Now just add something like this:

# m h  dom mon dow   command
0   1  *   *   *     /usr/bin/apt-get update && /usr/bin/apt-get -y dist-upgrade

Make sure there is an empty line at the end of the file and save it. The dist-upgrade makes sure, that upgrade go through, even packages need to be removed to install upgrades to other packages. If you don't want to risk that, leave it at upgrade. If you add the -d option to the upgrade command, packages will only be downloaded and not installed. Check out man apt-get for more options.


Boot from Ubuntu live disk and then click on try Ubuntu option on starup.
Open gparted partition editor from dash.
After it opened, make sure that all the partitions are unmounted(including swap).So that only you can be able to resize corresponding partition.If the swap partition is already mounted then select Swap off option on right-clicking swap partition to get unmounted.
Shrink your /home(/dev/sda6) partition to get 1 GB of free space and add it to your /dev/sda5 swap partition.


Ubuntu 14.04 remove app indicator from upside panel

You can remove it by:

  sudo apt-get remove sni-qt sni-qt:i386

Note that removing sni-qt will affect other apps that depend on it (such as dropbox) to show their icons. If you do not want this to happen, there is a detailed work-around posted in How can I remove the Skype panel icon?


OpenCV is installed via checkinstall, have a look at the installer script.

Therefore you can check the installed files via

dpkg -L opencv-<version>

Eg:

dpkg -L opencv-2.4.8

If you have installed OpenCV via another script as you commented, open the script, find the line

make install

and replace with

sudo checkinstall

After that install checkinstall via

sudo apt-get install checkinstall

Now start the installer script again and check the installed files with

dpkg -L opencv

The installer script does exactly the same as before, but now it creates and installs a deb package.


How to set up a Cintiq 27QHD Touch on Ubuntu16.04?

It looks like you haven't installed the kernel driver. the version would says something more than v2.00 and would be in the "extra" directory.

Detailed instructions for installing the Wacom kernel driver are available at:

http://linuxwacom.sourceforge.net/wiki/index.php/Input-wacom


Mac OS X theme for Lubuntu does not change the look of Window Borders

Apparently this theme is not compatible with LXDE, so I installed Xfce, configured things well and everything was working properly.


You can easily upgrade to the next version when it is released, you absolutely do not have to reformat your partition.

Note: If it is not an LTS then, you cannot skip a version while upgrading, e.g.,

14.10: non-lts

15.04: non-lts

15.10: non-lts

The correct procedure to upgrade is (assuming you have 14.10):

14.10 > 15.04 > 15.10

Remember, you cannot upgrade from 14.10 directly to 15.10.

But, in case of LTS, e.g.,

14.04: lts

14.10: non-lts

15.04: non-lts

15.10: non-lts

16.04: lts (not released yet)

You can upgrade from 14.04 directly to 16.04.


Need to install ethernet firmware for Dell PowerEdge 2650 integrated BCM5703 NIC

I think the bge driver and loader.conf is actually for FreeBSD. With Linux and the Broadcom 5703 chipset I think you'll need the tg3 driver, or possibly bnx2 but most likely tg3. Try doing:

sudo modprobe tg3
ifconfig -a

modprobe should give no output and ifconfig should show the NIC. You should be able to use the NIC just fine once the driver is correctly loaded. If you do want to update the firmware anyway, you'll need to have the driver loaded first. You may be able to do any firmware updates following the Ubuntu instructions, but if there is difficulty you may need to boot to the Dell OpenManage Live CD and do the updates from that environment.

Let us know how it goes!


get an error trying to install google chrome

add this line in /etc/apt/sources.list

sudo echo "deb http://dl.google.com/linux/deb/ stable main" >> /etc/apt/sources.list

download and install key

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A040830F7FAC5991

update the repo

sudo apt-get update


How to make keyboard work like OSX System Wide?

If you install the xautomation package, you can add a command in System/Preferences/Keyboard Shortcuts/Custom like:

xte "keyup Meta_L" "keyup c" "keydown Control_L" "key c" "keyup Control_L"

and map that to Meta-C.

Alternative Solution:

Install AutoKey (apt-get install autokey-gtk) and set a phrase to:

Phrase Text: <ctrl>+C (actually type out the <ctrl>+ here)
Paste Using: Keyboard
Abbreviation: None
Hotkey: <super>+v
Window Filter: None


A simple example to open Nautilus:

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Exec=bash -c 'nautilus;'
Name=openNautilus


Trim and SSD with usb 3.0 enclosure does not work - UASP not supported?

This is a software issue, Linux does not seem to currently support TRIM through USB.
The problem is that USB storage devices employ the SCSI command set, whereas the SSD drive implements the ATA command set. The USB enclosure has to provide a translator between these command sets.
The operation called TRIM in ATA is called UNMAP in SCSI and DISCARD in the Linux kernel. When Linux receives the command to trim a device, it looks up the correct command to be sent to the device. As USB storage devices look like SCSI disks, Linux tries to use UNMAP or a couple of other possible SCSI commands. In principle, the translator in the USB enclosure could often translate UNMAP requests to the corresponding ATA TRIM, although there are probably tricky cases. In practice, the enclosures don't do this, and they indicate instead that the device does not support UNMAP.
However, many enclosures implement a SCSI command to issue ATA commands directly to the device. It is called ATA passthrough. There is a standard command to do this, but some enclosures have a proprietary command instead. In fact, hdparm -I uses ATA passthrough to get information from the device. The same passthrough could be used to issue TRIMs directly to the device, but the Linux driver does not currently do that. It would have to detect that a SCSI disk is actually a SCSI-to-ATA translator that supports ATA passthrough and use the passthrough for DISCARDs instead of the native SCSI commands.


The charm cache holds the charm so that it doesn't need to go and download the charm every time. Every new instance that is spun up needs to have the charm and all dependencies installed, each instance is a fresh machine.

If this set up takes a very long time, as you said, you can write your charm to use or create containers.

Remember, charms are a collection of scripts they can do whatever you want.


I think that may work for you.

First you could create Linux Live USB stick in persistent mode. Persistent means your changes are stored on the pendrive too, so you can modify the system as you need. Easiest way to do it is to simply install distro on pendrive. You should probably think about something like DSL (Damm Small Linux) if you care about time.

Then you should modify the system to run your script right after booting. It can be achieved many ways e.g.

calling your script from /etc/rc.local
using cron
using something like update-rc.d, depending on distro

Note that you don't event need to run X server on startup, you will save some time disabling it.

Your script should reboot the machine once finishes since you want to boot original system.

Summing up, your walkthrough with this solution will look like:

Insert pendrive to the port
Start machine
Choose to boot from USB
Wait until script finishes and reboots the machine
Remove pendrive and watch original system booting

I assumed here that default order of booting on all machines is hard drive before USB. Otherwise you will have to remove pendrive before booting original OS and forget about point 3.


How to switch back and forth between pulseaudio+alsa and alsa only?

The easiest way is to use "pasuspender", which tells system to temprarily suspend PulseAudio. Starting your program with it will stop PulseAudio for the period you applications runs, then it will resume PulseAudio operation.

pasuspender -- skype

Many times it has been said that removing PulseAudio is a bad idea and an unnecessary one. The above should work much better.

General usage of pasuspender:

pasuspender [options] -- PROGRAM [ARGUMENTS ...]


How to display IP address of eth0 interface using a shell script?

For the sake of providing another option, you could use the ip addr command this way to get the IP address:

ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1

ip addr show eth0 shows information about eth0
grep "inet\b" only shows the line that has the IPv4 address (if you wanted the IPv6 address, change it to "inet6\b")
awk '{print $2}' prints on the second field, which has the ipaddress/mask, example 172.20.20.15/25
cut -d/ -f1 only takes the IP address portion.

In a script:

#!/bin/bash
theIPaddress=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)


Mount your Box account or sync a folder with it

I solved typing dav/ as folder address and not only /


What libraries do I need to install if I want to compile Emacs?

I used to do it this way:

sudo apt-get install build-essential texinfo libx11-dev libxpm-dev libjpeg-dev libpng-dev libgif-dev libtiff-dev libgtk-3-dev libncurses-dev libgnutls28-dev
# for gtk2 build replace libgtk-3-dev with libgtk2.0-dev

git clone --depth=1 git://git.savannah.gnu.org/emacs.git
cd emacs
./autogen.sh # not needed when installing from tarball
./configure
make bootstrap
sudo make install

To build docs:

make docs
# or build just the format you want:
make info
make dvi
make html
make pdf

But now I just use the package

sudo add-apt-repository -y ppa:ubuntu-elisp
sudo apt-get update
sudo apt-get install emacs-snapshot


I've managed to install root 5.32 from source using thses instructions and being careful to include all the necessary pre-requisites.

Using Ubuntu 11.10 32 bit is easier, 64 bit root looks for libraries in the wrong places as Ubuntu changed its structure in 11.04, a fix was to manually copy them.

I think it was only copying or linking from here /usr/local/lib/X11/libX11* to /usr/lib32/

Bit more detail on How do I install root-cern?


looking for an application launcher that doesn't launch the same app twice?

The default behavior of most launchers is to have the launched application handle things. Launchers will just "launch" the application, even if it might already be open. In many cases, that results in a new instance of the application. In other cases, the application is programmed to check for existing instances, and instead do something with an existing window if one exists. As an example, Gimp will "sense" if it is already running, and switch to the existing instance rather than launching a new instance.
This is fitting in a concept of separating "launching" from "switching to", which some people might prefer. Whenever you want to go to an existing instance, you switch to it. When you look to start up a new instance, you launch. You always know the launcher will give you a new instance. Some people may prefer that, but others, like you, might prefer differently.
There is in fact a launcher that is a notable exception: it is the launcher of the default Ubuntu Desktop, which uses "Gnome Shell". This launcher does use the "Launch or Switch to" model you are after.
So I can answer your question already in a simple way: the launcher that doesn't launch the same app twice is the default launcher of your Ubuntu desktop.
You prefer to use Albert (probably that is what you mean rather than Alfred, which is the OS X counterpart Albert was inspired upon) because it is lightweight, fast and elegant. Having a "Launch or Switch to" feature is on the roadmap of Albert. Currently, it does not do that. Still, this is Linux, and one can hack to have the behaviour you want with Albert or any other launcher. There is some inspiration in this 10 year old question, but there is a more simple way not mentioned there.
The most simple approach is to launch your command with a one-liner like:
wmctrl -a Calculator || gnome-calculator

This checks, using the utility wmctrl whether there is a window "Calculator". If that fails, the second command is executed, the command to launch the application. If wmctrl would not be installed on your system, then you can install it with the command sudo apt install wmctrl.
In practice, you would edit the .desktop launcher, a little text file that is used by your launcher to start an application. These files live (among others) in /usr/share/applications. For example, /usr/share/applications/org.gnome.Calculator.desktop contains, among others, following line.
[Desktop Entry]
Name=Calculator
Comment=Perform arithmetic, scientific or financial calculations
Exec=gnome-calculator
Icon=org.gnome.Calculator
Type=Application
Categories=GNOME;GTK;Utility;Calculator;

The Exec= line defines how the application is launched. So if you replace
Exec=gnome-calculator

by
Exec=sh -c "wmctrl -a Calculator || gnome-calculator"

you will change the .desktop file to behave as "Launch or Switch to". You need the sh -c "..." construct here because .desktop launchers do not support multiple commands on the Exec= line.
To safely change the .desktop launchers without the need of being administrator, copy the .desktop launchers you want to change to ~/.local/share/applications. Then you can edit them with your text editor. The changed .desktop files under your user home folder replace the ones installed systemwide (for all users) under /usr/share/applications.
Personally, I am using jumpapp, a bash script that is based on the same principle. It is however more advanced, and will, on subsequent invocations, switch between different windows that may be open.
If that is too complicated for you, try if you can live with the default "full screen" launcher of Ubuntu desktop. I learned to, and use jumpapp for keyboard shortcuts (Super+W launches or switches to the browser, Super+F launches or switches to the file manager, etc).


How to edit , read kannada documents created on microsoft word with Nudi Ekabhashe fonts on ubuntu? And vice versa?

The best method to ensure inter-operability between both systems is as follows
1.For reading ,editing kannada(or any other) documents created on Microsoft Word with Nudion Libreoffice Writer
It is possible to read documents created with Nudi in MS Word on LibreOffice Writer by installing(copying) the Nudi fonts(available with Nudi5 installer zip) in /usr/share/fonts(with root permission and read acess to users) and do

fc-cache

LibreOffice application will have Nudi fonts in it.
However it is not possible to edit Nudi fonts on LibreOffice installed on Ubuntu
only Lohit kedage fonts will appear

Therfore to both read and edit under one hood the best solution is to install latest  Wine program and on that install LibreOffice.exe Windows executable also install Nudi 5.exe program on Wine  use scroll lock to write Nudi text in LibreOffice.This way all fonts work for both read and edit
2. To read, edit Kannada documents created on Libreoffice with Unicode fonts (kedage lohit etc) on Microsoft word in Windows.Install all unicode fonts on Windows.


Graphic card driver issue : can't log in

You are using a driver that is not compatible with your card. You will need to install one of the other pro drivers that are available (or revert to nouveau).

1. Drop to a command shell:

Press ctrl+alt+f2 and log in.

2. Purge out NVIDIA

sudo apt-get purge nvidia*

Now you can reboot and you will be running on Nouveau and we can make sure you have the right NVIDIA drivers.

3. Make sure you have Correct Nvidia

sudo add-apt-repository ppa:graphics-drivers
sudo apt update
sudo apt install nvidia-driver-390
sudo nvidia-xconfig

Then reboot and you should be good to go. If you need functionality from the 400 series drivers, try installing the 400 (not 415 or autoinstall) and see if it works. Otherwise stick with 390 as I personally find it less buggy.

4. If you want to test other drivers or see what's available:

As outlined in this post, you can do the following:

sudo ubuntu-drivers list

  Will show all the driver packages which apply to your current system.
  You can then

sudo ubuntu-drivers autoinstall

  to install all the packages you need, or you can do:

sudo ubuntu-drivers devices

  to show you which devices need drivers, and their corresponding
  package names.

5. Rename old xorg.conf file and regenerate it

If you have bad configuration in your xorg.conf file you may need a new one. So rename the old one:

sudo mv /etc/X11/xorg.conf /etc/x11/xorg.conf.bak

And run nvidia-xconfig again:

sudo nvidia-xconfig


Try with installing :

sudo apt-get install alsa-firmware-loaders


Simply prepending an apt command with DEBIAN_FRONTEND=something does not persist after the single command to which it is applied.

The DEBIAN_FRONTEND options are documented in the Section 7 manual pages of debconf (you may need to install the debconf-doc package in order to make these available on your system). From man 7 debconf:

Frontends
   One of debconf's unique features is that the interface it  presents  to
   you is only one of many, that can be swapped in at will. There are many
   debconf frontends available:

   dialog The default frontend, this uses  the  whiptail(1)  or  dialog(1)
          programs to display questions to you. It works in text mode.

   readline
          The  most  traditional frontend, this looks quite similar to how
          Debian configuration always has been:  a  series  of  questions,
          printed  out  at  the console using plain text, and prompts done
          using the readline library. It even supports tab completion. The
          libterm-readline-gnu-perl package is strongly recommended if you
          chose to use this frontend; the default readline module does not
          support  prompting  with default values.  At the minimum, you'll
          need the perl-modules package installed to use this frontend.

          This frontend has some special hotkeys. Pageup (or ctrl-u)  will
          go  back  to  the previous question (if that is supported by the
          package that is using debconf), and pagedown  (or  ctrl-v)  will
          skip forward to the next question.

          This is the best frontend for remote admin work over a slow con‐
          nection, or for those who are comfortable with unix.

   noninteractive
          This is the anti-frontend. It never interacts with you  at  all,
          and  makes  the  default  answers  be used for all questions. It
          might mail error messages to root, but that's it;  otherwise  it
          is  completely  silent  and  unobtrusive, a perfect frontend for
          automatic installs. If you are using this front-end, and require
          non-default  answers  to questions, you will need to preseed the
          debconf database; see the section below  on  Unattended  Package
          Installation for more details.

It also notes that:

   You can change the default frontend debconf uses by reconfiguring  deb‐
   conf.  On the other hand, if you just want to change the frontend for a
   minute, you can set the DEBIAN_FRONTEND  environment  variable  to  the
   name of the frontend to use. For example:

     DEBIAN_FRONTEND=readline apt-get install slrn

   The  dpkg-reconfigure(8) and dpkg-preconfigure(8) commands also let you
   pass --frontend= to them, followed by the frontend  you  want  them  to
   use.

   Note  that not all frontends will work in all circumstances. If a fron‐
   tend fails to start up for some reason, debconf will print out  a  mes‐
   sage explaining why, and fall back to the next-most similar frontend.


Is there any way to open more than one folders(Home folder, videps etc..) by clicking the 'files' icon on the unity bar?

Use the middle mouse button to open a second instance of an application.

Or hold the shift-key while clicking with the left mouse button.


Unable to install package libnetcdf6 in Ubuntu 14.04

Are there packages that need updating? If so do the following first and then try again..

sudo apt-get update        # Fetches the list of available updates
sudo apt-get upgrade       # Strictly upgrades the current packages
sudo apt-get dist-upgrade  # Installs updates (new ones)


How to enable bluetooth for Dell Inspiron Laptop?

Open an terminal and type

rfkill list all

If the bluetooth is shown in the list,run

rfkill unbound bluetooth

This should activate the bluetooth.

But if the bluetooth is disabled by hardware switch,this command won't work. If so , read the laptop manual to know the hardware switch for bluetooth and then activate it.


If you have have installed Gnome Global Application Menu(HUD for Gnome) extension mentioned in this answer to the other question you've linked, you'll need to reset a couple of gsettings keys after disabling/uninstalling the extension to restore normalcy.

Open Terminal and run the following commands

gsettings reset org.gnome.settings-daemon.plugins.xsettings overrides
gsettings reset org.gnome.settings-daemon.plugins.xsettings enabled-gtk-modules

Then reboot.

(See "Uninstallation instructions" here)


Lubuntu can't delete Windows viruses on usb stick

The standard recommendation is to create a new file system, to 'format' the drive instead of trying to delete files, that you know or think are infected with virus.

You can do that with several tools, as illustrated in the link, which suggested as a 'possible duplicate'. (But there are many [other] reasons to create a new file system.)

Usually it is enough to create a new file system in order to get rid of virus. This is the case if the virus has infected files.
But if the virus has infected the bootloader or partition table, you should also wipe that part of the drive.
And if the virus has infected the internal processor of the USB drive, I don't think there are any tools available to normal users (like you and me), that can remove the virus.

So if you need a very high level of security, you should destroy the USB stick physically.

Otherwise you can use mkusb to restore the drive to a standard storage device. This will overwrite the first megabyte of the drive (the bootloader and partition table), and then create a new MSDOS partition table and a new FAT32 file system. This should be enough for most cases.

See this link: help.ubuntu.com/community/mkusb

If you want to increase the security level one more step you could wipe the whole device (overwrite with zeros) before you restore it to a standard storage device. It costs wear of the drive, but there is the additional benefit, that the speed can be restored to almost the original speed. See also this link.


upstart fail to run service and not able to debug

my guess is that one of the commands in your pre-start script is failing (mkdir probably).  Try appending with  "|| true"

pre-start script
  mkdir -p /var/run/myservice || true
  chown -R root:root /var/run/myservice || true
end script

You should see a pid appear after the initctl start myservice command


ppa:ikarosdev/unity-revamped stopped working after an update from update manager

Open CCSM and set it to dodge windows behavior.


I completely removed libsqlite3-0 and everything essential was removed. How do I restore ubuntu?

Ok, what happened was I marked libsqlite3-0 for complete removal in synaptic.  Big mistake!  This will remove a lot of essential programs (python, nautilus, unity, etc.).  I was panicking as icons were suddenly disappearing from my menu bar.

Upon reboot I got the message

could not write bytes: Broken pipe

and no user interface.

What I did to fix this

After booting in and no user interface, I hit ctrl+alt+f1 to give me a command shell.  After logging in with my user name and password I tried to use apt-get to repair the broken sqlite packages but my networking was not functional.  So I plugged in my Ethernet cord and had to go to my network interfaces configuration to get my Ethernet to work.

I ran the command

sudo nano /etc/network/interfaces

and added the lines

auto eth0
iface eth0 inet dhcp

then ran

sudo /etc/init.d/networking restart

as described here http://blog.poorakkashyap.com/2012/solved-error-unknown-interface-eth0eth0-on-ubuntu/

now my networking was working and I had internet access

so I then ran

sudo apt-get install sqlite3 --fix-missing

I let this run and reinstall everything.  I then tried to start my desktop by running

startx

My desktop didn't start.  I don't remember the specific error that I got.

I then ran

sudo apt-get install ubuntu-desktop

that reinstalled everything back.

Everything seems to be back to normal and I didn't have to completely reinstall ubuntu.  I guess the big take away from this is that if you happen to remove an essential package from ubuntu know that you can go to a command line by pressing ctrl+alt+f1 (or any of the function keys), ensure you have internet access, and use apt-get to repair the broken packages.


How to turn off proprietary ATI drivers using Recovery Mode?

I'm not sure this is the correct answer, but I'll have a go. Try this page. Extracted instructions:

sudo sh /usr/share/ati/fglrx-uninstall.sh
sudo apt-get remove --purge fglrx*

followed by the following for the sake of making sure all is clean:

sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sudo rm -f /etc/ati

That should remove all previous FGLRX drivers you had. Now you're back to the fresh Ubuntu graphics setup. This question provides an answer on how to get FGLRX working with Kaveri, but you had already seen that question.


xdg-open only opens a new tab in a new Chromium window despite passing it a URL

The issue is indeed that xdg-open does not pass the requested URL to Chromium, so instead of running chromium-browser url-here, it is executing chromium-browser which just opens a new window.

After searching on the Internet, I found out that xdg-open uses some "config" files located in /usr/share/applications.

/usr/share/applications/chromium-browser.desktop seemed to be correct, as it is configured to pass the URL to Chromium correctly:

$ grep Exec /usr/share/applications/chromium-browser.desktop
Exec=chromium-browser %U
...

So what was wrong? It turns out that there's another location which xdg-open uses and that has priority over /usr/share/applications.

$ grep Exec ~/.local/share/applications/chromium-browser.desktop
Exec=/usr/lib/chromium-browser/chromium-browser --use-system-title-bar --ppapi-flash-path=/usr/lib/pepflashplugin-installer/libpepflashplayer.so --ppapi-flash-version=14.0.0.125

I have no idea as to why there's another chromium-browser.desktop, but note that this Exec line does not pass the URL; it is missing the %U. So I simply appended %U to this line. This instantly fixed all issues with xdg-open and Chromium.


Native Ubuntu (libnotify) notifications from Google+ (plus) What's happening?

There are new »Webapps« in Ubuntu 12.10. Maybe you installed one of them? They can now send notifications and stuff directly to your desktop: http://www.omgubuntu.co.uk/2012/07/ubuntu-unveil-new-web-apps-feature-for-12-10

Or it's just a native notification (HTML 5 allows notifications, and I have a chrome extensions that makes them native).


RabbitVCS suddenly stopped working in Nautilus

The question has been posted to the development team on Google Code:

http://code.google.com/p/rabbitvcs/issues/detail?id=633


saned: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied

Ok, I got it solved by adding:

RUN_AS_USER=saned

to /etc/systemd/system/saned.socket
and by adding the sane-user to the lp group:

sudo usermod -a -G lp saned


dnsmasq cannot start after Ubuntu update

A port conflict with dnsmasq is usually caused by systemd-resolved running.  With 18.04, systemd-resolved became enabled by default.  systemd-resolved basically provides a local DNS caching server.
There are other pages about options for fixing this. e.g. https://unix.stackexchange.com/questions/304050/how-to-avoid-conflicts-between-dnsmasq-and-systemd-resolved
Based on what you found about the port being used by named, then you may have a different conflict with bind.  The same concept applies. You can disable bind, or you can configure the services to listen on non-conflicting addresses and ports.


Have you tried playing with xset?

xset -q will show you your settings. There are many settings here that can be played with. Take a look at DPMS.

Try:

xset s off turns the screensaver off

xset -dpms turns off DPMS


Search and replace one domain with another in many files

Without the -i or --in-place option, your sed command is going to stream the edited output to the terminal. Placing the command in the background won't change that.
Next, let's check your sed expression s/domain1\it/domain2\com/g.
The letter i is not special in sed regular expressions - so \i is the same as i and matches character i literally. You probably meant to escape the period, ., to make it literal. The RHS of a s/pattern/replacement/ is just a string and doesn't need special escaping at all. So it likely should be:
s/domain1\.it/domain2.com/g

You can possibly speed your command up by passing multiple files at once to sed by replacing {} \; with {} +. Note that {} doesn't need to be quoted in bash or most of the other common shells.
Putting it all together:
find '/abc/abc/' -type f -exec sed -i.bak 's/domain1\.it/domain2.com/g' {} +

you may omit the .bak if you are sure you don't need to save backups of the files

you may run the whole command in the background by appending & as usual

you may run the command with sudo if file ownership / permissions require it


Execute a shell script only for LiveCD session

Booting from a live CD is booting nothing else but what is on the CD. We won't be able to control this from our existing installation on our hard drive because our computer will not access it during boot.

We may however create a customized live session to include all we need there:

How to customize the Ubuntu Live CD?

On a live session desktop icons will be .desktop files in /home/ubuntu/Desktop/.


How can I use SSO to login to my Ubuntu machine instead of Local User Management

The topic was mooted at the Ubuntu Developer Summit in late 2011. OMG! Ubuntu! covered the topic.

The Ubuntu One team liked the idea, but there are many technical challenges before logging in with SSO credentials will be possible. Don't expect to see it anytime soon.


How to share Keyboard and Mouse Via Bluetooth? (Like in windows Control)

Clone this Github repository: https://github.com/kcolford/hidclient

git clone https://github.com/kcolford/hidclient

Edit the hidclient.c and comment out #include <stropts.h> (line number 105)

Build it

gcc -o hidclient -O2 -lbluetooth -Wall hidclient.c

List all input devices:

sudo ./hidclient -l

The output would look similar to this:

[severus@tux hidclient]$ sudo ./hidclient -l
List of available input devices:
num Vendor/Product, Name, -x compatible (x/-)
 0  [0000:0005.0000] 'Lid Switch' (-)
 1  [0000:0001.0000] 'Power Button' (+)
 2  [0000:0001.0000] 'Power Button' (+)
 3  [0001:0001.ab41] 'AT Translated Set 2 keyboard' (+)
 4  [0000:0000.0000] 'HP Wireless hotkeys' (+)
 5  [001f:0001.0100] 'PC Speaker' (-)
 6  [0000:0000.0000] 'HDA Intel PCH Mic' (-)
 7  [0000:0000.0000] 'HDA Intel PCH Headphone' (-)
 8  [0000:0006.0000] 'Video Bus' (+)
 9  [0000:0006.0000] 'Video Bus' (+)
10  [0000:0000.0000] 'HP WMI hotkeys' (+)
11  [0000:0000.0000] 'HDA Intel HDMI HDMI/DP,pcm=3' (-)
12  [0000:0000.0000] 'HDA Intel HDMI HDMI/DP,pcm=7' (-)
13  [0000:0000.0000] 'HDA Intel HDMI HDMI/DP,pcm=8' (-)
14  [0000:0000.0000] 'HDA Intel HDMI HDMI/DP,pcm=9' (-)
15  [0000:0000.0000] 'HDA Intel HDMI HDMI/DP,pcm=10' (-)
[severus@tux hidclient]$

If you want to expose keyboard (say) bluetooth,

sudo ./hidclient -e3 -x

-x to disable it on host.

Note: If you get error related to SDP server, you might want to enable compat to support some of the depreciated functions. For that, refer: https://askubuntu.com/a/814969/497359


How do I remove full name from owner column within file manager?

As has been alluded to, this is behavior that is coded into the Nautilus application.

However, you can get around the functionality by changing your "Real Name" to be the same as your username ... Nautilus only displays a second "name" in the owner column if the real name is different from the username.

You should be able to change your "real name" in System-Administration-Users and Groups.

I had trouble getting the changes to stick for me, so I manually changed it by editing /etc/passwd.

You will have to restart all nautilus instances for the change to take effect.


Not enough memory to load specified image

Two possibilities -

1) Puppy is not running 64bit

2) Puppy has smaller memory footprint

I see that this problem has been around for years, the only convincing solution so far is to disable "Memory hole" the BIOS setting. The rest of us who do not have this option seems pretty much stuck.


Why does lastlog show every user as never having logged in?

Login via gdm is not logged in lastlog. In this respect ck-history --last might give you more information.

To test this, go to a console (Ctrl+Alt+F1), log in, then come back to Gnome (Alt+F7) and check the output of lastlog.


Enable Wireless on Ubuntu on a mac pro 1.1

I have spent a couple of weeks benchmarking some linux distros like:

Mint with Cinnamon desktop environnment
Ubuntu
The new Debian 7.4
Fedora
CentOS
EliveCD

And I have EliveCD installed because of the full support of the mac hardware (i.e. the WiFi chipset) and Elive works pretty fluently.


I  use stderred and have found it a good solution. As its readme notes:

Stderred hooks on write() and a family of stream functions (fwrite, fprintf, error...) from libc in order to colorize all stderr output that goes to terminal thus making it distinguishable from stdout. Basically it wraps text that goes to file with descriptor "2" with proper ANSI escape codes making text red.
It's implemented as a shared library and doesn't require recompilation of existing binaries thanks to preload/insert feature of dynamic linkers.
It's supported on Linux (with LD_PRELOAD), FreeBSD (also LD_PRELOAD) and OSX (with DYLD_INSERT_LIBRARIES).

It is straightforward to compile, but you do need to build it from source by following the instructions from its Github site:
sudo apt-get install build-essential git cmake

Then
git clone git://github.com/sickill/stderred.git
cd stderred

Then
make

The most important part of it is to add the appropriate line to your .bashrc; you must link to the libstderred.so file in the build directory; you must use the absolute path where the build directory is (/home/mike/src/stderred/build). I add the following to my .bashrc:
export LD_PRELOAD="/home/mike/src/stderred/build/libstderred.so${LD_PRELOAD:+:$LD_PRELOAD}"

Obviously, when you don't want to use it anymore, remove the above line from your .bashrc and restart the terminal.
The results, tested on non-existent files (it obviously will not work when sudo is used, as the user's .bashrc will not be read when the different environment is set):
(By the way it doesn't turn my duke@nukem prompt red as that was red already)


On terminal

nautilus smb://computeraddress/share

Or

Gui in nautilus Other Locations either click on the computer name or enter smb://computeraddress/share in the space below.


Unable to uninstall or find any details about iTunes but still i am able see logo in Applications

I don't think you would have installed iTunes using apt, since it is not open source and would not be in the Ubuntu repositories.
Almost all instructions I can find for how to install iTunes in Linux say to use wine and the Windows installer.
Have you tried running wine uninstaller from the terminal?


Onscreen keyboard (Onboard) doesn't work on login screen and makes desktop unusable after login

onboard works for me in 20.04 LTS, at least when logged in. I have version 1.4.1-2ubuntu7, reported by
apt-cache policy onboard

You can modify the settings of onboard to make it float (instead of having it locked at the bottom of the screen) as shown in the following screenshot,

You have probably another language (than in the screenshot), but I think you can identify the options

Click on the '123' button
Click of the 'tools' button
Select 'Window'
Uncheck 'Dock to the screen edge'


17.10 Software installed in software center, but not accessible

It seems the softwares you have mentioned are installed via snap packages. You can check the list of installed snaps by running

snap list

You can individually launch an installed snap-software by running

snap run <package-name>

(replace <package-name> by a name found in the output of snap list).

To be able to find the software in "Activities" or "Show Applications" you'll have to create a custom .desktop file. See this Q&A for reference: okular snap package doesn't appear in applications and command 'okular' is not recognized


I'm going to spoonfeed you here and give you the answer. Promise that you'll study it for understanding and not just cut and paste.

You don't need to read the file character by character. That will make is much slower, and harder to determine what line you're on. If you need to do this in just the shell: read the file line by line, and when you're on the right line, there's a parameter expansion that returns the length of the value.

#!/bin/bash
file=$1
lineno=$2

# ... validation here ...

nr=0
while IFS= read -r line; do
    if (( ++nr == lineno )); then
        printf "Line %d from file %s has %d characters" \
            "$lineno" "$file" "${#line}"
        break
    fi
done <"$file"

Further reading:

3.2.4.2 Conditional Constructs
3.5.3 Shell Parameter Expansion
How can I read a file (data stream, variable) line-by-line (and/or field-by-field)?

But a pipeline of common tools is simper:

sed -n "$lineno {p;q}" "$file" | wc -c      # this will count the newline
# or
awk -v n="$lineno" 'FNR == n {print length($0)}' "$file"


Still cannot start the Mongodb on Ubuntu 14.04?

I find that I cannot install mongodb 4.02 on Ubuntu 14.04. It became all ok once I removed the mongodb 4.02 and installed the 3.00.


Your error report shows Windows directories in the error log, so i'm assuming you are running Minecraft under WINE.

If this is the case, you should try running Minecraft natively. To do this, you will need some form of java installed, and you will need to download the Linux/Other version of Minecraft from here. (Link found here)

To download Oracle Java 8, run the following commands in a terminal:

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

OR To install OpenJRE 8, run the following commands in a terminal:

sudo apt update
sudo apt install openjdk-8-jre

Once java is installed, open a terminal, navigate to your downloaded Minecraft.jar, and run java -jar Minecraft.jar; this will start the Minecraft launcher.

If this is a crash happening under Windows, not WINE on Ubuntu, then this may be able to help you. (And this question wouldn't beloong on AskUbuntu.)


Installation of Lubuntu 20.04 failed: “non-zero exit status 32”

Turns out my USB stick was formatted to exFAT. When I used NTFS, everything worked out and I am now writing this from my own computer on Linux. Hooray! :-)
[Sorry for the late reply, I was sick and for some days didn't get to anyone's computer... at least at the end of the time I suddenly got the idea about NTFS.
Oh, and askubuntu seems to have added "32-bit" - I had just meant to tag "zero exit status 32", which apparently went completely wrong...]
Nonetheless thanks a lot for your comments!!


How do I end standard input without a newline character?

Ctrl-D does not work only on a fresh line as you say. Take rev for example, which reverses each input line.

Normally, you press Enter after input, and it reverses that line:

$ rev
asdf
fdsa

If you do not want to append a newline to your input, just press Ctrl-D twice after you input asdf, it will be reversed in the same line:

$ rev
asdffdsa

Different programs handle this differently; for example bc does not behave like above.


Mouse dead zone that makes it impossible to click?

This is a known bug in Compiz, unfortunately it's not fixed yet but when it is it will be rolled out in an update.


How to open output in gnome terminal insteed of console in eclipse CDT

You just have to insert the gnome-terminal application location (/usr/bin/gnome-terminal), specify the working directory of the project "slash" the folder where the executable will be (In my case, Debug). The use of variables makes it work for other projects.

Finally, you have to tell the terminal to execute the file in the arguments.


Where are decrypted files stored during runtime?

Decrypted files are stored in RAM. The decryption (or encryption, when writing) happens on the fly, block by block and not for a whole file at once. When an application reads a block from the file, the file is decrypted by a layer between the disk driver and the filesystem driver.

Decrypted files are not written to disk, but an application could write data to a non-encrypted filesystem. In particular, if you have encrypted filesystems, you should encrypt your swap space, since the data in application memory can end up in the swap space. You should also encrypt directories that applications use for temporary storage, such as /tmp (which can be made tmpfs and so be stored in the swap space), /var/tmp, /var/spool/postfix (emails), /var/spool/cups (documents being printed), etc.

Whether the encryption affects performance depends a lot on the ratio between processor speed and disk speed. With slow disks and a fast processor, you won't notice anything. With a slow processor and very fast disks, you'll feel the pain. Recent Intel and AMD processors have hardware accelerators for AES (AES-NI) which recent Linux kernels take advantage of.


Crontab doesn't respect specified timezone (CRON_TZ or TZ)

What about setting both CRON_TZ and TZ?

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=me

CRON_TZ='Europe/Prague'

TZ='Europe/Prague'

53 12 * * * touch /home/futilestudio/feedproject/cronsupervisor/scripts/touch0.txt


Install Ubuntu Touch Emulator in Ubuntu 12.04

Add the PPA and install the emulator using the following commands:

sudo add-apt-repository ppa:phablet-team/tools
sudo apt-get update
sudo apt-get install ubuntu-emulator

Note that:

When you create a new instance  you may get the following error:

Error while converting ~/.local/share/ubuntu-emulator/UbuntuTouch/system.img: Unknown option 'compat' qemu-img: Invalid options for file format 'qcow2'.`

Just ignore it everything will work.


How to sell software that is uploaded via snap

Thanks for your interest in selling apps in the snap store.

We're in the final stages of enabling purchasing within the snap store. Once that's ready we'll announce it publicly, but for now, while we perform our final validation and ensure there are no issues with the process, it's disabled.


I solved problem!
When you run install from terminal, DON'T FORGET to type "sudo ./install "
 instead of "./install".
That was reason installation couldn't create new folder in usr/local/ ,
which is default. Now I can easily run matlab by typing 'matlab' command in terminal.


Copy a file from one ext4 partition to other

To answer the quesion ...

  I just want to know that is there any way to copy a file from one Ext4 partition to other without using terminal?

You can use Nautilus if you copy the file over with the user name that owns the destination you want to copy the file to. That user needs to own that location or needs to be part of a group owning that location.

If you want any user to be able to do that: no, not without changing. It would be a security problem if you could. This will at least require you to one time change the ownership of the destination and doing that with a terminal would be the easiest. And the only user that can do this needs to be an admin of your system (someone that can use "sudo").

Some links to help you out (but they will rely on the terminal):

Change owner of internal hard drive partition from root to user
https://askubuntu.com/a/493831/15811

In case you have questions regarding terminal commands: feel free to drop into AskUbuntu Chat (20 reputation required). There will always be someone there willing to help.


After upgrading to 14.04 arrow down doesn't work / action seems to be wrongly assigned on Xserver

Somehow the down arrow key was set to "show Desktop".

Having figured this out I was able to unset it.

For those who struggle on a similar problem you may find this page helpful: https://wiki.ubuntu.com/Keybindings. At least it solved my problem.

how to change keyboard shortcuts?


I finally found a solution:

Open the xfce4-settings-editor via terminal
Click xfwm4 / general / mousewheel_rollup and uncheck the enable box

Thats it :)


Accents stop working all of a sudden in Libreoffice

I had exactly the same issue. I also notice that this problem is KDE and IBUS related. Solution above didn't work at all. It seems that other similar issues may be related to this package combination (KDE, ibus, libreoffice-kde). I solved it in my system by removing libreoffice-kde and keeping libreoffice-gnome.

Links that may help:

Same problem, in Fedora 16, and the solution in comment n. 5 : https://bugzilla.redhat.com/show_bug.cgi?id=825067
Same, in openSUSE: http://forums.opensuse.org/showthread.php/473607-Ibus-don-t-work-in-Libreoffice-%28Opensuse-12-1%29


Try something like the following:

sudo systemctl disable home-arianhf-google\x2ddrive.mount

For more info check the man page of systemctl.

Also check etc/fstab for any relevant lines, and if found, remove them.


Please check if the Apache configuration file /etc/apache2/sites-available/nagios3.conf,

/etc/apache2/conf.d/nagios3.conf or similar has "ScriptAlias" entries like the one

below (please make sure that you have the correct file system paths):

  ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
  ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3


Okay. I fixed it. I'll explain for anyone that might ever come across this. On the GParted screenshot you see /dev/sdb/ extended has a key/lock infront of it. When I clicked info it said the following: Status: Busy (At least one logical partition is mounted)

Alright. It was because I was booted into my Ubuntu. I burned GParted on a Live CD and booted that. It allowed me to shrink the extended partition and resize the windows/ntfs one.


how to use axel download manager with proxy?

I'm using axel behind a proxy and I usually set all these environment variables

export http_proxy='http://<ip>:<port>'
export all_proxy=$http_proxy
export https_proxy=$http_proxy
export ftp_proxy=$http_proxy
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy
export FTP_PROXY=$http_proxy

I just checked and it seems at least the lowercase version is supported:

user@hostname:/tmp$ axel http://www.google.com
Initializing download: http://www.google.com
Unable to connect to server www.google.com:80

user@hostname:/tmp$ export http_proxy='http://127.0.0.1:5865'
user@hostname:/tmp$ axel http://www.google.com
Initializing download: http://www.google.com
Opening output file default.1
Server unsupported, starting from scratch with one connection.
Starting download

[  0%]  .......... .
Connection 0 finished

Downloaded 11.3 Kilobyte in 0 seconds. (37.63 KB/s)

I think there should be no problem using basic http authentication in this form, but I cannot check it

export http_proxy='http://admin:admin2@100.100.100.100:8080'


Create a screencast in a low end PC, but fast (maybe by sacrificing compression ?)

I've found a satisfatory way:

It seems that mkv(**) allows for many levels of compression. By using a low compression for video, I am able to record in real time and with quality on my lowly eeepc.

To achieve that, I had to use ffmpeg. It is available in Ubuntu, but I used a version from a ppa(*):

To install:

sudo add-apt-repository ppa:jon-severinsson/ffmpeg
sudo apt-get update
sudo apt-get install ffmpeg

To record:

ffmpeg -f x11grab -r 25 -s 800x450 -i :0.0+0,60 -f alsa  -i plughw:1,0 -vcodec libx264 -crf 0 -preset ultrafast -acodec pcm_s16le file.mkv

The important part is this "preset ultrafast" that tells the encoder not to compress the video too much.

(*) apparently, Ubuntu is using a fork of ffmpeg that is not the most common in use. I tried that line with Ubuntu's ffmpeg and it did not work. However, one should note that I am still using 11.10

(**) probably mkv is a container, and this libx264 is the codec that allows different compressions ...


PlayOnLinux won't open; cannot find curl from cURL

Open a commandline by pressing Ctrl + Alt + T and type:

sudo apt-get install curl

Press enter and type your password. There will be no characters shown.

When prompted, hit yes.

Then close/reopen PoL.


Get the latest release from https://github.com/bazukas/obs-linuxbrowser and leave it in your Download-Folder. This install instructions works here:

Start a terminal and copy this into it mkdir -p $HOME/.config/obs-studio/plugins
Untar: tar -zxvf /home/yourUsername/Downloads/linuxbrowser0.5.2-obs21.1.2-64bit.tgz -C $HOME/.config/obs-studio/plugins/  (this is one command/line. Put in your Username to "yourUsername")
Install Dependency: sudo apt-get install libgconf2-4

Then start OBS-Studio and create a new source which is called "Linux Browser". In this (new) source put in your Widget-Url from Streamlabs and the alerts will be shown.


Can't install rock-dkms on Ubuntu 20.04.1 LTS

You can try reverting to an older kernel .


You can delete the line with:

sed '/^STUFF_456$/d'

This deletes every line being STUFF_456, ^ marks the beginning of the line and $ marks the end.

With your example:

$ sed '/^STUFF_456$/d' /file/path/here.txt
STUFF_123
STUFF_789


Switching from netbook edition to desktop-edition

Follow these steps:

Open system settings

In system settings click on "Workspace Behavior"

In Workspace Settings click on "Workspace" in sidebar. Select your Workspace type from drop down menu and click save to apply changes.

Now just wait for the magic to happen!


You can try disabling Ultra DMAUMDA from the BIOS menu.
On the EBM LX800 you can find this under the internal peripherals sub-menu.

Disabling this option allowed me to boot from the liveCD into Unity with full device support. I'm unsure how this will translate to speeds afterwards, however it does allow you to boot.


How to pass two date variables as a concatenated string for destName to copyByName(srcName, destName, index) in LibreOfficeCalc(4.2.8.2)

The problem is that the resulting sheet name contains prohibited characters. In OpenOffice.Calc,

  you can only use letters, numbers, spaces, and the underline character in the sheet name.

(OO Calc FAQ)

The sheet name you've built contains slashes /, yielding an invalid sheet name.


What is the boot up configuration file for the desktop?

In 11.10, the interface moved away from look and feel of Gnome 2. To revert to an interface that is more like the old Gnome 2, install the gnome-session-fallback package. One way to do that is to run these commands in a terminal command line:

sudo apt-get update
sudo apt-get install gnome-session-fallback

Then logout. There is an icon in the right corner of the login request for your username. Click on that and choose "Gnome Classic". And then log in the usual way.
You can also download a program called Avanced Settings from the Software Center. There you will find a window theme called Simple. If you use that you will be fine.


Dpkg-reconfigure -a: `ia32-libs-multiarch' is not installed

I'm getting the same problem.  Unfortunately, the update manager today told me that it had a bunch of upgrades for me. Stupidly, I said yes, and it deleted a bunch of important things, the most important being acroread! I have work to do! Documents to send out, but I can't verify that they're correct without viewing them!


After going through this, https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1766137 I was able to resolve my problem. Thanks to @Steve and the community people for helping me out.


Is there an intelligent way to look for packages in the repository?

Ahhhhh.... Good (?) old days....

The program you are searching for is called Synaptic Package Manager.

It was the default application for downloading packages for Ubuntu till 10.04 if my memory is right.

You can install it through the Ubuntu Software Center or from the terminal by running this command:

sudo apt-get install synaptic


Authenticating an app installation in Ubuntu 16.04

If you haven't changed anything manually, the password should be the same one you use to log on to your account.  You must have root rights otherwise you cannot install anything on a Linux system.  Disabling that password is definitely not recommended.


Ubuntu also has good old locate from command line.

  locate  reads one or more databases prepared by updatedb(8) and writes file names matching at least one of the PATTERNs  to  standard  output, one per line.

updatedb

  updatedb creates or updates a database used by locate(1).  If the database already exists, its data is reused to avoid rereading directories that have not changed. updatedb  is  usually  run daily by cron(8) to update the default database.

Example...

locate *.txt

results in

/boot/grub/gfxblacklist.txt
/discworld/.Trash-1000/files/Breaking Bad S04E10 Nl subs DutchReleaseTeam/DutchReleaseTeam NFO.txt
/discworld/.Trash-1000/files/Breaking Bad S04E10 Nl subs DutchReleaseTeam/Torrent downloaded from Demonoid.me.txt
/discworld/.Trash-1000/files/True Blood S04E12 HDTV.XviD (NL subs) DutchReleaseTeam/Dutch Release Team NFO Read Before Playing.txt
/discworld/.Trash-1000/files/True Blood S04E12 HDTV.XviD (NL subs) DutchReleaseTeam/Torrent_downloaded_from_Demonoid.me.txt
/etc/X11/rgb.txt

What it shows is shown instantly and you can search with a regex.


Using "Oblivion" color scheme from gedit in Kate

From the link posted by Allan:

Put the following in the file ~/.kde/share/config/kateschemarc:

[Oblivion]
Color Background=46,52,54
Color Highlighted Bracket=255,255,153
Color Highlighted Line=68,76,77
Color Icon Bar=234,233,232
Color Line Number=0,0,0
Color MarkType1=255,255,0
Color MarkType2=255,0,0
Color MarkType3=255,255,0
Color MarkType4=255,0,255
Color MarkType5=160,160,164
Color MarkType6=0,255,0
Color MarkType7=255,0,0
Color Selection=136,138,132
Color Spelling Mistake Line=255,0,0
Color Tab Marker=133,133,133
Color Template Background=204,204,204
Color Template Editable Placeholder=204,255,204
Color Template Focused Editable Placeholder=102,255,102
Color Template Not Editable Placeholder=255,204,204
Color Word Wrap Marker=118,122,124
Font=DejaVu Sans Mono,8,-1,2,50,0,0,0,0,0

Note, that due to different syntax highlighting, this might not be an 1:1 adoption of Gedit's theme.


Problem turned out to be something different. I have 4 X 1TB drives in Raid 10. One of them remained unplugged after putting my box back together after diagnosis. I found the problem by comparing blkid vs. fstab outputs. My UID for a disk on fstab to mount was not on the blkid. And there were only 3 of the 4 disks on blkid.
I poked around the cables until I found the loose one. Now I’m good. Working again.
Strange symptom for an even stranger problem.
Maybe someone can use this lesson.


Why does my panel become grainy and distorted after I unsuspend?

This seems to be happening less now. Perhaps there was an update to fix the issue.

In any case, the only way I was able to fix it without logging off was to toggle the transparency settings for the panel in CCSM.


MacbookPro 10.9.1 Installing linux wirless drivers

You need to plugin Ethernet LAN cable to computer to have network first. Then open Software & Updates, open Additional Drivers tab. If nothing is wrong, the driver you need will be there, just put a check on the Broadcom wl driver


XFCE Keyboard shortcut to place active window at the back (or minimize)

Minimize the active window

Assuming you have xdotool installed (run sudo apt-get install xdotool if not), the command to minimize the active window is:

xdotool getactivewindow windowminimize

Simply add that to a shortcut key and it should work. On XFCE: open Settings > Keyboard > Application Shortcuts, add the command:

xdotool getactivewindow windowminimize

Send a window to back?

To send a window to the last position from cli is a lot trickyer: currently, there is no (cli) tool to find out the z-order of the windows. Theoretically, you could raise all windows, except the active one, but this will most likely mess up the order of the windows.

unless
...you use this one, but if minimizing will do, I'd stick with the solution above.


password doesn't work for wireless in ubuntu 12.10

Let's try this:

click on wifi icon, go to "Edit connections", go to "wireless" tab. Delete all the entries, click on "close". click wifi icon again, select your network and try connecting again.

ok then try this: press Ctrl-Alt-t; A terminal will pop up; type

rfkill unblock all

press enter

now restart network manager; type:

sudo service network-manager restart

press enter. It'll ask for your password, as you type it in there will be no feedback.  That's normal. Report back.


What do VIRT, RES and SHR mean in the top command?

It can be seen from man top in terminal as

  DESCRIPTIONS of Fields
         Listed  below  are  top's  available  fields.   They  are   always
         associated  with  the letter shown, regardless of the position you
         may  have  established  for  them  with  the  'o'  (Order  fields)
         interactive command.

    Any field is selectable as the sort field, and you control whether
   they  are  sorted  high-to-low  or  low-to-high.   For  additional
   information on sort provisions see topic 3c. TASK Area Commands.

   a: PID  --  Process Id
      The  task's unique process ID, which periodically wraps, though
      never restarting at zero.

   b: PPID  --  Parent Process Pid
      The process ID of a task's parent.

   c: RUSER  --  Real User Name
      The real user name of the task's owner.

   d: UID  --  User Id
      The effective user ID of the task's owner.

   e: USER  --  User Name
      The effective user name of the task's owner.

   f: GROUP  --  Group Name
      The effective group name of the task's owner.

   g: TTY  --  Controlling Tty
      The name of the controlling  terminal.   This  is  usually  the
      device  (serial  port,  pty,  etc.)  from which the process was
      started, and which it uses for input  or  output.   However,  a
      task  need  not  be  associated  with a terminal, in which case
      you'll see '?' displayed.

   h: PR  --  Priority
      The priority of the task.

   i: NI  --  Nice value
      The nice value of the task.  A negative nice value means higher
      priority,  whereas  a positive nice value means lower priority.
      Zero in this field simply means priority will not  be  adjusted
      in determining a task's dispatchability.

   j: P  --  Last used CPU (SMP)
      A  number  representing the last used processor.  In a true SMP
      environment this will likely change frequently since the kernel
      intentionally  uses  weak  affinity.   Also,  the  very  act of
      running top  may  break  this  weak  affinity  and  cause  more
      processes  to  change  CPUs  more  often  (because of the extra
      demand for cpu time).

   k: %CPU  --  CPU usage
      The task's share of the elapsed CPU time since the last  screen
      update, expressed as a percentage of total CPU time.  In a true
      SMP environment, if 'Irix mode' is Off,  top  will  operate  in
      'Solaris  mode' where a task's cpu usage will be divided by the
      total number of CPUs.  You toggle 'Irix/Solaris' modes with the
      'I' interactive command.

   l: TIME  --  CPU Time
      Total  CPU  time  the  task  has  used  since it started.  When
      'Cumulative mode' is On, each process is listed  with  the  cpu
      time  that  it  and  its  dead  children  has used.  You toggle
      'Cumulative mode' with 'S', which is a command-line option  and
      an  interactive  command.   See the 'S' interactive command for
      additional information regarding this mode.

   m: TIME+  --  CPU Time, hundredths
      The same as 'TIME', but  reflecting  more  granularity  through
      hundredths of a second.

   n: %MEM  --  Memory usage (RES)
      A task's currently used share of available physical memory.

   o: VIRT  --  Virtual Image (kb)
      The  total  amount  of  virtual  memory  used  by the task.  It
      includes all code, data and shared libraries  plus  pages  that
      have  been  swapped out and pages that have been mapped but not
      used.

   p: SWAP  --  Swapped size (kb)
      Memory that is not resident but is present in a task.  This  is
      memory  that  has been swapped out but could include additional
      non-resident memory.  This column is calculated by  subtracting
      physical memory from virtual memory.

   q: RES  --  Resident size (kb)
      The non-swapped physical memory a task has used.

   r: CODE  --  Code size (kb)
      The  amount  of virtual memory devoted to executable code, also
      known as the 'text resident set' size or TRS.

   s: DATA  --  Data+Stack size (kb)
      The amount of virtual memory devoted to other  than  executable
      code, also known as the 'data resident set' size or DRS.

   t: SHR  --  Shared Mem size (kb)
      The amount of shared memory used by a task.  It simply reflects
      memory that could be potentially shared with other processes.

   u: nFLT  --  Page Fault count
      The number of major page faults that have occurred for a  task.
      A  page  fault  occurs  when a process attempts to read from or
      write to a virtual page that is not currently  present  in  its
      address  space.   A  major  page  fault is when backing storage
      access (such as  a  disk)  is  involved  in  making  that  page
      available.

   v: nDRT  --  Dirty Pages count
      The  number  of  pages  that have been modified since they were
      last written to disk.  Dirty pages  must  be  written  to  disk
      before  the  corresponding physical memory location can be used
      for some other virtual page.

   w: S  --  Process Status
      The status of the task which can be one of:
         'D' = uninterruptible sleep
         'R' = running
         'S' = sleeping
         'T' = traced or stopped
         'Z' = zombie

      Tasks shown as running should be more properly  thought  of  as
      'ready  to run'  --  their task_struct is simply represented on
      the Linux run-queue.  Even without a true SMP machine, you  may
      see  numerous  tasks  in  this  state  depending on top's delay
      interval and nice value.

For CPU

2c. CPU States
       The CPU states are shown in the  Summary  Area.  They  are  always
       shown  as  a  percentage  and are for the time between now and the
       last refresh.

    us  --  User CPU time
      The time the CPU has spent running users'  processes  that  are
      not niced.

    sy  --  System CPU time
      The  time  the  CPU  has  spent  running  the  kernel  and  its
      processes.

    ni  --  Nice CPU time
      The time the CPU has spent running users'  proccess  that  have
      been niced.

    wa  --  iowait
      Amount of time the CPU has been waiting for I/O to complete.

    hi  --  Hardware IRQ
      The  amount  of  time  the  CPU  has  been  servicing  hardware
      interrupts.

    si  --  Software Interrupts
      The  amount  of  time  the  CPU  has  been  servicing  software
      interrupts.

    st  --  Steal Time
      The  amount  of  CPU  'stolen' from this virtual machine by the
      hypervisor for other tasks (such  as  running  another  virtual
      machine)


SIGBUS error with JRE when using eclipse

It's not exactly resolving the problem but I've reinstalled eclipse and am using the latest version so now it's working again.

Follow installation instructions on: http://ubuntuhandbook.org/index.php/2014/06/install-latest-eclipse-ubuntu-14-04/


Why is Ubuntu running slowly on this computer?

Prakhar, this is really the hardest kind of question. There are so many things that could make an OS run badly, that it would be impossible to give you a direct answer.

For starters, you could try: cold boot, and as soon as you log in, open GEdit (or any text editor you might use), open /var/log/syslog and copy it on http://paste.ubuntu.com and paste the link for us here. So guys around can try to spot weird things.

It's not fair to compare it to Windows 7. Any OS could do bad when the conditions are innapropriate. I can assure you there are guys around who can't use their computer with any Windows version, but run Linux flawlesly. BTW, I have an older computer (but I'm lucky to have 1GB RAM on it) running both Win7 & Ubuntu 10.10 with no problems. Slowly, but not as slowly as you described for yours.

I'm still guessing it could be some part of your hardware slowing you down (in this case, Win7 probably supports it with no problems). But it's just a wild guess.

Waiting for any logs you could provide us with.


I can confirm I'm having the same problem with an Dell Inspiron 5378.

Okay, so in the end, having had this problem for quite a while, I'm blaming the GDM lock screen. I've now changed to the LightDM lock screen, by downloading from Synaptic:

lightdm
lightdm-gtk-greeter [simple display manager (GTK+ greeter)]
lightdm-gtk-greeter-settings

So far, so good. I've repeatedly tried to suspend, in various ways, from pressing suspend from the top-right menu, to closing the laptop-lid, and I haven't had any problems since. If I do, I'll come in here at update this answer.


Where is the timestamp in this script that sets the prompt?

It's the \t in this line that composes the whole prompt, incorporating the variables (including fill which gives the dashes) that have been assigned:

PS1="$status_style"'$fill \t\n'"$prompt_style"'${debian_chroot:+($debian_chroot)}\u@\h:\w\$'"$command_style "

In PS1, \t is a Bash escape sequence that prints the current time.

Test:

zanna@toaster:~$ PS1="\t"
21:33:06


CudaMiner - Fail to compile due to nvcc and second error. :D

Just enter this command in Terminal. You will see:

$ nvcc
The program 'nvcc' is currently not installed. You can install it by typing:
sudo apt-get install nvidia-cuda-toolkit
You will have to enable the component called 'multiverse'

That means you have to install nvidia-cuda-toolkit.

Another way is to search in apt-cache:

$ sudo apt-cache search nvcc
[sudo] password for karimov-danil:
nvidia-cuda-toolkit - NVIDIA CUDA toolkit

The first column in output is the name of the package and the second is description.


Is it possible to make Unity Indicators with Java?

The Java language is meant to be cross-platform. It should not contain any features that cannot be implemented in all operating systems. However, there is a way to get around the system.

Java provides a built-in way to invoke functions that are written in a different language. This is the JNI (Java Native Interface). JNI allows you to call C code dynamically from your Java, and get the results of that code. You could implement the Unity Indicators in C, and dynamically call the code required to generate them from Java. Here is a good tutorial on using JNI: JNI Intro There are also libraries that abstract the use of JNI to really simple terms. JNA is one of them.


phpMyAdmin on Linux takes too long to load

If you have an older flash drive with much slower writes than reads (which many had once upon a time), I could see this behavior happening.


Is it safe to upgrade to Ubuntu 14.04 with unrecognised graphics card?

My best answer is fire up a Live version and test it out, live is a bit slower anyway if you don't see too much of an issue then do the upgrade.

That warning though is pretty pointed, and not many people come here with that type of warning, usually we see the more, coded warnings.  so this is a personal decision on your part.


Touchpad not seen, on an Asus ZenBook UX305c

Apparently this will be fixed in the 4.4 kernel which will be available on January on its stable version or you can try the 4.4-rc5 right now.


When will Natty Narwhal 11.04 be stable to use?

You can use stable release in April-2011


no tty present and no askpass program specified with `ssh -A`

SSH authentication and sudo authentication are two different sets of credentials. The -A option to the ssh command applies to SSH only. It provides the ability to forward your credentials so you can ssh from server to another system using your local SSH key.

Unless you have sudo rules allowing you to run commands with no password, it will always need to prompt for your password, either from your shell's terminal or using an askpass program, if so configured. An askpass program is a (typically graphical) helper program that simply prompts for a password securely. To authenticate with sudo remotely, you will have to do one of the two things it is requesting:

Ensure you have a tty so sudo can securely prompt for your password on the server. This is as easy as logging in with ssh -t.
Tell sudo to prompt for your password using an askpass program with the -A option on sudo (not to be confused with the -A option for ssh!). This can be done in your script, for example, with something like:

export SUDO_ASKPASS=/usr/lib/openssh/gnome-ssh-askpass
sudo -A ...

Note that since you are piping your shell script to the standard input stream of the SSH connection, sudo will be unable to securely prompt for a password. If sending the script over the SSH standard input like this is a requirement (instead of just copying the script to the server), then the first option will not work. You will have to either use an askpass helper program or configure the required sudo rules to use NOPASSWD, if that is an option.


What PPAs support the ARM architecture (armel)?

The answer is, unforunately, NONE.

This is because Launchpad currently only supports the i386/amd64 architectures for PPA packages.
armel packages can be built after setting a special flag to use a non-virtualized build environment, but because of security reasons this access is restricted to the core Ubuntu teams.

That's not to say there may not be third-party repositories offering armel versions, but there are no PPAs, per se.


Downloading Steam Error lacking curl, python-apt, and zenity

Install the missing packages

 sudo apt-get update
 sudo apt-get install curl python-apt zenity

Then try installing Steam again

sudo dpkg -i steam.deb


i got the solution its order of the command instead of using

g++ -o hello -lboost_unit_test_framework hello.cpp (which used to work in earlier version)

change it to

g++ -o hello hello.cpp -lboost_unit_test_framework

This works fine.

I referred to https://stackoverflow.com/questions/7755668/linking-against-boost-thread-fails-under-ubuntu-11-10


Which driver (and PPD version) is my printer using?

There's version info in the PPD file itself (it's only text).

You can see this for yourself with the command cat /etc/cups/ppd/YourPPD.ppd | grep Version where YourPPD.ppd is the name of your PPD file.

Here's an example from my system for illustration purposes.

~$ cat /etc/cups/ppd/DCP7065DN.ppd | grep Version
*FormatVersion: "4.3"
*FileVersion: "1.00"
*LanguageVersion: English
*cupsVersion:   1.1
*PSVersion: "(3010.106) 3"

According to what I see here, my ppd file is Format 4.3 and it shows that I'm using the postscript 3 driver version 3010.106

For more about postscript versions and the differences between them see this.

For more about the creation of PPD files look here


php not working under directory of mod_userdir (~/user)

Please look in /etc/apache2/mods-enabled/php5.conf, it has this comment:

# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.

After you changed the file, restart Apache with service apache2 restart.


Did the (truncated) line "Found option without preced" originally read something like

Found option without preceding group in config file: /etc/mysql/my.cnf at line: 123

If that's the case, there's probably a option in your my.cnf file that's not assigned to a group. The my.cnf file is divided into several groups, one with options for the MySQL server, one with options for (command line) client, one with options for mysqldump and so on. If an option is outside of any such group, MySQL doesn't know what to apply it to.

If there's no "unattributed" option in your config, but MySQL still complains about one, you might want to look at the file's encoding.


How to set default nice value for a particular program?

There is no way to launch a program with a non-default priority. You can set a non-default priority on programs running under a specific user, or even group, but that is probably not what you want.

One trick would be to use an alias:

alias myprioprogram='nice -10 myprogram'

Now, if you launch myprioprogram it will actually run myprogram with a lower priority.


I want to know how to get "Gnome" Started

You probably want to start Unity. Issue the following command:

sudo apt-get install ubuntu-desktop

then reboot. If you really need Gnome:

sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell


I want to install Gnome on kubuntu 14.04 is it safe?

As a new Ubuntu user, it's probably better to make a new partition where you can install Ubuntu Gnome, assuming you have the space. Otherwise, you are likely to face a system that, while not technically broken, still frustrates you in several ways.

You may also want to make an additional partition where you can test out the combination. You can always delete it and reclaim the space later if you work out any resulting problems from combining the two desktops.

Most noticeable will the fact that the alternatives system will change the default boot splash screens and login greeter to the Gnome versions. These can easily be changed back, however. You can find several answers about this point on the site.

You will also end up with additional programs installed to handle common functions, such as video playback or media burning. This is not a problem beyond disk space or cluttered menus, but I've seen a lot of questions where people complain about this.

More problematic, however, will be the possibility of subtle conflicts among various desktop and UI elements that affect behavior or the look and feel. Some of these, such as the look of gtk programs under kde are often easily fixed by installing certain packages and changing some settings. Others, however, are harder to pin down and remain the subject of various unanswered questions.

I don't want to veer off into opinion, but it seems safe to say that as the different desktop environments advance, the incompatibilities are growing.

Installing Gnome should not literally remove anything that you already have installed. This would only happen if there were packages to be installed that are in conflict with existing packages. I'm not aware of any conflicts at this level. Plus, if that were to happen, the package manager would warn you and give you the chance to abort the installation.


scp protected file from remote machine to local machine through terminal

From what I tested, the -t option is working, but is masked because of the pipe
| in the command. The terminal is waiting for you to put the password but you cannot see it.

You can put your password when the terminal seems to "wait", but the risk is that the password-asking-prompt will also go through the pipe and change the input of xclip


How can I find duplicate in the first column, then remove concerning whole lines ?

To remove duplicates based on a single column, you can use awk:

awk '!seen[$1]++' input-file > output-file

You can see an explanation for this in this Unix & Linux post.

Removing the older lines is more complicated. Given that duplicates always come together, you can do:

awk 'prev && ($1 != prev) {print seen[prev]} {seen[$1] = $0; prev = $1} END {print seen[$1]}' input-file > output-file

Here, in the middle block, {seen[$1] = $0} saves the current line ($0) to the seen array with the first field ($1) as index, then saves the first field in the prev variable. This prev is used in the first block when processing the next line.

In the first block, then, we check if prev is set (only true for the second line onwards) and not equal to the current first field (here prev was set while processing the previous line). If it isn't, we have moved past duplicates and can print the previous line. At the END, we do that again for the last line.


log in bounce back due to missing system file

Start at boot into GRUB menu (Esc)
Select the Recovery Mode for your kernel
Activate the network
Open the root shell
Install the uninstalled components


Your simplest option is to use a switch/router with NAT capability to present one IP address to the outside world, while allowing you to use as many machines as you like.

Such devices are very low cost.

Useful entry level Wikipedia article on NAT here


How to force Unity reload ~/.local/share/applications/

A little late, but i stumbled upon this thread before finding a solution, atleast to my problem, googling something related, nearly giving up.

As per this guide help.ubuntu.com, don't just edit or create your .desktop files in /usr/local/share/applications or ~/.local/share/applications. Instead, create the file somewhere else and use

desktop-file-install <your_file.desktop>

to add the file.

E.g. you create ~/myapp.desktop and do

desktop-file-install --dir=$HOME/.local/share/applications ~/myapp.desktop

Existing files of the same name will be overwritten and unity updated, you can use --delete-original if the source is not needed anymore, or

sudo desktop-file-install ~/myapp.desktop

to install it for all users.


When you ask multiple questions, you need to find one expert versed in multiple areas which becomes more unlikely the more questions you put into... well, one question!  ;-) However, someone asked me to help you out, so I'll go for it:

Use NTFS: none of the fuss, all of the advantages (for a certain definition of fuss )
Just use CloneZilla, but read its manual before you start! (Hint: use the disk to image option and take default options)
Good! Back up your / partition without the /home as you already have a déjà-dup backup of that (you do have a data back-up, don't you???)
Yes, but it will erase the Win7 install.
Meh... The Win10 upgrade might erase your boot record again (which the Win7 install will do also: one response: Boot Repair )

Happy backing up!  ;-)


Do the following as root for each CD.

Mount your CD/DVD on /media and add the following line to your /etc/apt/sources.list:

deb "file:/media/Ubuntu-Server 12.04.5 LTS amd64" precise main restricted

After that update packages db and install:

apt-get update
apt-get install vim

Done!


I had an extension that was broken called Workspace Grid and after I removed it the bug was gone. Thank you SurvivalMachine for the dmesg command it helped a lot.


Ubuntu 12.10 taking a very long time to install from Live DVD on a very fast desktop

hp notebooks always have problem in reading Disc [i have hp dv6 ] yet it doesn't even read a simple CD disc always go with USB-stick because it is faster than DVD


How do I completely turn off screensaver and power-management?

For 11.10

Disable the GNOME Settings Deamon's power plugin from the command line:

gsettings set org.gnome.settings-daemon.plugins.power active false

Alternatively, using dconf-editor from the dconf-tools package:

For the screensaver:

gsettings set org.gnome.desktop.screensaver idle-activation-enabled false

Or again via dconf-editor:


How do I change LAN settings in Ubuntu 15.04?

You have to search "Network" and open it then click the "Network Proxy" to set the system wide proxy.

Kindly check the image


Ubuntu starts only when I boot from my flash drive

The problem

Grub, Ubuntu's bootloader, was installed on the flash drive, and not on your internal hard drive, as it should have been.

Solution

Boot with the flash drive plugged in. Remove it once Ubuntu is booted up.

Run the following commands from a Terminal:

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

Click on the "Recommended repair" button, and reboot.

Explanation

Boot-Repair installed Grub to your internal hard drive. This allows your computer to boot without depending on the bootloader that was installed on the flash drive.

Glossary

  Bootloader: a piece of code that runs before any operating system is running. A bootloader is used to boot other operating
  systems. Each operating system usually has its own bootloader.

  GRUB (Grand Unified Bootloader): a bootloader package developed to support multiple operating systems and allow the user to select among them during boot-up. It is Ubuntu's default bootloader.

  Command, command line: the traditional Unix environment , where you type commands to tell the computer what to do.

  Terminal: an application that allows you to access the command line. Open it by hitting its keyboard shortcut, Ctrl Alt T


This is no error, use sudo ufw status to check it, it simply tells you that a rule for that already exists.

Best is to get a bit familiar with ufw on command line by reading the manual

As for the second problem you added, make sure you enable the package sources in System Settings --> Software & Updates then run an:

sudo apt-get update
sudo apt-get -f install
sudo apt-get dist-upgrade

Running the first and third command mostly keeps you out of trouble when trying to install something new. As well you only need to use php-mbstring thats the virtual package for the installation. So this will suffice:

sudo apt-get install php-mbstring


Failed to download repository information (Software Updater)

The solution is very simple.

First, you have two problems.

The errors:

W:Target Packages (Packages) is configured multiple times in
/etc/apt/sources.list:53 and /etc/apt/sources.list:54

W:Target Translations (en) is configured multiple times in
/etc/apt/sources.list:53 and /etc/apt/sources.list:54,

are because you have some duplicated information in the file /etc/apt/sources.list. In terminal, type cd /etc/apt, then gksudo gedit /etc/apt/sources.list. Review lines 53 and 54, and remove the duplication and save the file.

The error:

W:The repository http://ppa.launchpad.net/landronimirc/clamtk/ubuntu xenial

is because you've got the wrong Ubuntu version for this particular PPA. Change xenial to saucy. The incorrect entry will either be in the file /etc/apt/sources.list, or /etc/apt/sources.list.d/landronimirc-clamtk-quantal.list (quantal may be something else).

Ask if you need more help. Cheers, Al


UML is only supported on x86/x86_64:

http://sourceforge.net/p/user-mode-linux/mailman/message/32782012/

Try KVM/ARM instead?


Linux calendar that synchronizes with outlook

For exactly the same scenario I'm currently using mailbox.org which offers the total package starting from 2.5€/month: E-mails with easy PGP integration, calendars, contacts, tasks, word processing, and file sharing. It's actually a very nice alternative for something like Dropbox or Google Docs.

Windows Phone sync of emails, calendars, contacts and tasks works. I'm using their ActiveSync endpoint for that, but they provide (and actually prefer) the open standards as well. The company speaks openly about its values and as far as I can tell it actually lives them. Privacy is central, it exceeds the high german standards.

The solution @KhurshidAlam proposed in his comment (which he could perfectly turn into an answer) is also excellent because it proposes using a very Open Source-friendly web service called fruux.

  We are behind sabre/dav, which is the most popular open source implementation of the WebDAV, CardDAV and CalDAV standards. Besides us, developers and companies around the globe use our sabre/dav technology to deliver sync functionality to millions of users.

It is also located in Germany, so it has high privacy standards to comply to. I'm going to try it out as well.

Both companies also understood the challenge that Open Source software is facing right now and that's offering good user experiences comparable to those of the popular corporates.


How can I type in Malayalam on Ubuntu 16.04?

First you need to install Malayalam language packs. To do that, go to System settings --> Language support --> Install / Remove Languages ...

Search for Malayalam and check the related box ☑

Then click on Apply. (NOTE : You need to have a working Internet connection for downloading related packages.)

After installing the language, go to System Settings-->"Text Entry" and click on + and search for related input methods.

And click on Add.
After adding , press Super (Win) + Space to switch between installed input methods. You can type in Malayalam when input method is set to Malayalam ( Ml on right top of your screen )


crude but effective and then some - caveat this also kills pending notifications
this can only shorten display times just change the 1.5 in sleep 1.5; below:

ref:
details in Close button on notify-osd?

x-ref:
Expiry time in notify-send notifications

dbus-monitor "interface='org.freedesktop.Notifications'"            \
| grep --line-buffered  "member=Notify"                             \
| sed -u -e 's/.*/sleep 1.5; killall notify-osd/'                   \
| bash

Bookmarks:
self - Expiry time in notify-send notifications
How do I change how long notifications are displayed?


It is not really electrum, but I faced the same issue and solved it by following a bit different approach:

https://www.linuxbabe.com/ubuntu/install-bitcoin-core-wallet-ubuntu-16-04-16-10


Have Movie Player always stay on-top of other windows

Yes. in order to keep any window on top, right click on window titlebar, and choose always on top.


How to fix sudo after “chmod -R 777 /etc/”?

With this 2 commands:

pkexec chmod 555 /etc/sudoers
pkexec chmod 555 /etc/sudoers.d/README

Y need to recheck my Terminal history to confirm, because I have same problem past week.

OK, checked I do also:

pkexec chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo


Music store - Is it safe to edit tags of music purchased on Ubuntu One?

It is generally safe to edit the tags, but doing so will result in files being resynchronized to everywhere you are syncing them.


Ubuntu 16.04 does not start after installation next to Windows 7

Your problem is probably that, during installation, it / you picked the wrong option in "device for bootloader installation". (See here for a screenshot)

Your laptop presents the hard drive as /dev/sda, and the internal SSD as /dev/sdb (From the screenshot). Thus, the installer installed the bootloader onto /dev/sda by default (Assuming you didn't tell it to do otherwise).

The problem is that the laptop isn't looking on the HDD for the bootloader - it's looking on the SSD, and thus only sees the Windows 7 bootloader (Which is on the SSD, and not the Ubuntu one (grub), which is on the HDD.

See How can I repair grub? (How to get Ubuntu back after installing Windows?) for details on how to fix this, making sure you intall to /dev/sdb, or you can use Boot-Repair for this.

Another, possibly easier, option is to set the boot order in the BIOS set-up, so that it is set to boot from the hard drive.

Let me know if it helps.


Wine: How to use SAPI 5 voices for TTS application “Balabolka”?

I did not find any way (currently) to make the program work with SAPI 4/5 voices, but you can work with some of Microsoft Speech Platform voices.

Create 32-bit Wine Prefix:

WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine wineboot

Install Balabolka:

cd "$HOME/prefix32/drive_c/Program Files/"
wget http://balabolka.site/balabolka_portable.zip
unzip balabolka_portable.zip

Test if program works:

WINEPREFIX="$HOME/prefix32" wine "$HOME/prefix32/drive_c/Program Files/Balabolka/balabolka.exe"

Install Microsoft Speech Platform voice files (specifically x86 Package and Runtime Languages), I will choose ZiraPro, however you can install other voice files:

wget https://download.microsoft.com/download/A/6/4/A64012D6-D56F-4E58-85E3-531E56ABC0E6/x86_SpeechPlatformRuntime/SpeechPlatformRuntime.msi
WINEPREFIX="$HOME/prefix32" wine msiexec /i SpeechPlatformRuntime.msi

wget https://download.microsoft.com/download/4/0/D/40D6347A-AFA5-417D-A9BB-173D937BEED4/MSSpeech_TTS_en-US_ZiraPro.msi
WINEPREFIX="$HOME/prefix32" wine msiexec /i MSSpeech_TTS_en-US_ZiraPro.msi

Install winetricks:

sudo apt install winetricks

Install msxml6:

WINEPREFIX="$HOME/prefix32" winetricks msxml6

Check if this program works. (Repeat step 3 and choose Microsoft Speech Platform Tab in the program)

Hope this helps...

P.S. To install other voice files, go to https://www.microsoft.com/en-us/download/details.aspx?id=27224, download and then install with:

WINEPREFIX="$HOME/prefix32" wine msiexec /i <filename of the downloaded package>

Source:

How do I create a 32-bit WINE prefix?

https://appdb.winehq.org/objectManager.php?sClass=version&iId=34389


What Rules Need To Be Setup To Allow NAT on Softether VPN?

First Off, ensure that you are using Softether's Local Bridge function, and utilizing the tap interface. This will be faster than the standard bridge, and will allow you to setup DHCP in a way that doesn't break things for your other clients. :-)

I have named my TAP interface 'soft' for ease of use, but remember to adjust your netplan rules as listed below:
In the rules below I have used enp0s7 as the WAN, and enp3s0f0 as the LAN interface.

# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    ethernets:
        enp0s7:
            dhcp4: true
            optional: false
        enp3s0f0:
            addresses: [192.168.254.1/24]
            nameservers:
                addresses: [9.9.9.9,192.168.1.254]
                search: [vinceworks.com]
            dhcp4: false
            optional: true
        tap_soft:
            addresses: [192.168.253.1/24]
            dhcp4: false
            optional: true

    version: 2

You will also need to adjust your DHCP rules in the /etc/dhcp/dhcpd.conf file:

subnet 192.168.254.0 netmask 255.255.255.0 {
  range 192.168.254.100 192.168.254.150;
# broadcast-address needs to be .255 to cover all the address range
  option broadcast-address 192.168.254.255;
  option routers 192.168.254.1;
}

subnet 192.168.253.0 netmask 255.255.255.0 {
  range 192.168.253.30 192.168.253.42;
# broadcast-address needs to be .255 to cover all the address ranges
  option broadcast-address 192.168.253.255;
  option routers 192.168.253.1;
}

Here are the iptables rules you should setup on boot:

# Default policy to drop all incoming packets.
iptables -P INPUT DROP
iptables -P FORWARD DROP
# Allow forwarding at the highest levels!
sudo sysctl -w net.ipv4.ip_forward=1

# Accept incoming packets from localhost and the LAN interface.
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i enp3s0f0 -j ACCEPT
# Accept incoming packets from tap_soft
iptables -A INPUT -i tap_soft -j ACCEPT

# Accept incoming packets from the WAN if the router initiated the
#connection
iptables -A INPUT -i enp0s7 -m conntrack \
--ctstate ESTABLISHED,RELATED -j ACCEPT

# Forward LAN packets to the WAN.
iptables -A FORWARD -i enp3s0f0 -o enp0s7 -j ACCEPT
# Forward packets Between the LAN and WAN to VPN
iptables -A FORWARD -i tap_soft -o enp0s7 -j ACCEPT
iptables -A FORWARD -i tap_soft -o enp3s0f0 -j ACCEPT

# Forward WAN packets to the LAN if the LAN initiated the connection.
iptables -A FORWARD -i enp0s7 -o enp3s0f0 -m conntrack \
--ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i enp0s7 -o tap_soft -m conntrack \
--ctstate ESTABLISHED,RELATED -j ACCEPT

# NAT traffic going out the WAN interface.
iptables -t nat -A POSTROUTING -o enp0s7 -j MASQUERADE

#Sleep for a little bit to allow the VPN interface to come up
sleep 30
#Restart the DHCP server to begin serving for the new interface
systemctl restart isc-dhcp-server


ffmpeg/avconv - the -psp option no longer works on Sony Walkman

From Encoding H.264/AAC in MP4 for the PSP:

  ffmpeg:

-profile:v main -level 3 -x264opts ref=3:b-pyramid=none:weightp=1

Note that you are no longer using ffmpeg from FFmpeg, but avconv from a fork called libav. The example command is specifically for ffmpeg (the real one).


How to update kernel version without upgrading kernel?

16.04 was originally released with kernel 4.4. What you've installed must have been 16.04.4, which has UES, or in other words, the kernel and graphical components from 17.10, while all the rest is the same.

What you may want to do is to install the original 16.04. This way, you'll only have kernel 4.4, and won't have to bother with "updating without upgrading".


Open up System Settings by searching for it in the Activities view, then go to "System Info" (in the bottom row).

Here you can select Default Applications and pick your favourites.