That's is strange, I see that all the mdadm with sudo. Mayb first you need to stop the array... last time I have to repair a raid I used a live cd... let's try this:

Firt be root (sudo -i), then stop your array

  fist do cat /proc/mdstat and save it to a file to see the diferences
  ok?

mdadm --stop /dev/md0

then re-create the array (sorry)

mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/sdb /dev/sdc /dev/sdd

sav the conf.

mdadm --detail --scan >> /etc/mdadm.conf

look your conf.  cat /proc/mdstat

look at mine for example;

cat /proc/mdstat
Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md4 : active raid5 sdd4[0] sdg4[4] sdf4[2] sde4[1]
      5762701824 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]

md3 : active raid1 sdh1[0] sdi1[1]
      1953512400 blocks super 1.2 [2/2] [UU]

md2 : active raid5 sdj1[0] sdc1[4] sdb1[2] sda1[1]
      5860535808 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]

md0 : active raid1 sdd2[0] sde2[3] sdf2[2] sdg2[1]
      409152 blocks [4/4] [UUUU]

md1 : active raid5 sdd3[0] sde3[3] sdf3[2] sdg3[1]
      93449856 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]

unused devices: <none>

anyway if this doesnt work show us more info. (mdadm --detail /dev/md0, mdadm --examine /dev/sd[abcde...])
good luck!


My /home partition became full after moving files from encrypted user folder to unencrypted user folder. What can I do?

Apparently some deeply buried files were left behind by mv (they were not deleted after being copied).

I found and deleted them with this script:

#!/bin/bash

TARGET=/home/zoopp.unencrypted/
SOURCE=/home/zoopp/

find $TARGET -type f | while read file; do
    RELATIVE_PATH=$(echo $file | sed -e 's/^\/home\/zoopp.unencrypted\///')
    if [ -e "$SOURCE$RELATIVE_PATH" ]; then
        TARGET_FILE="$TARGET$RELATIVE_PATH"
        SOURCE_FILE="$SOURCE$RELATIVE_PATH"

        echo "Found $TARGET_FILE -> $SOURCE_FILE"

        MD5_TARGET=$(md5sum "$TARGET_FILE" | cut -d' ' -f 1)
        MD5_SOURCE=$(md5sum "$SOURCE_FILE" | cut -d' ' -f 1)

        echo -e "\tMD5: $MD5_TARGET -> $TARGET_FILE"
        echo -e "\tMD5: $MD5_SOURCE -> $SOURCE_FILE"

        if [ "$MD5_TARGET" != "$MD5_SOURCE" ]; then
            echo -e "\tMissmatch."
            echo -e "\tDeleting $TARGET_FILE."
            rm -f "$TARGET_FILE"

            echo -e "\tMoving $SOURCE_FILE -> $TARGET_FILE"
            mv "$SOURCE_FILE" "$TARGET_FILE"
        else
            echo -e "\tMatch. Deleting $SOURCE_FILE"
            rm -f "$SOURCE_FILE"
        fi

        echo
    fi
done

As a side note: it would have been faster to just check for a difference in file size instead comparing the MD5 hash of every possible duplicate.


After playing around with the display setting I found the issue was that the HP native resolution is 1920x1200(16:10) and the Viewsonic is 1920x1080(16:9).
Forcing the HP to display in 1920x1080 fixed the problem.


Installing Ubuntu fails - HP Pavilion T3000

I don't know why I got all the error messages.

But the workaround that worked was to install Ubuntu instead of opting "Test Ubuntu without installing".

Once installed Ubuntu 09.10. has been running stable so far. Just to be sure I checked the hdd for bad blocks but there were non. My next step will be to upgrade to 12.04. (current LTS version) via the update manager.

Thank you for the suggestions how to solve this issue.


Audacious can't play some m4a files, but vlc can play it

This issue has been mentioned in a bug report on the Audacious bug tracker:

Certain .m4a files do not play

To play these files in Audacious you will need to have use ffaudio: make sure your copy of Audacious is using the 'FFmpeg Plugin'.

See the image below which demonstrates the FFmpeg Plugin selected in the Audacious Settings:

And then all should be well...


In newest versions of Ubuntu (mine Linux Mint 18), try this:

sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install cpu-g


Apt-offline install; trying to avoid all internet queries

It seems I can run apt-get update and apt-get install with the --no-download option and avoid internet queries!


Facebook.com redirecting to SearchMagnified.com

Sounds like you have some "malware/spamish" plugin installed in chrome.
check for plugins that look suspicious and disable/uninstall them.


Make sure this directory exist : /home/admin1/pritesh
you are using ubuntu 16.04 with systemd so create a systemd unit file in /etc/systemd/service/myunit.service

[Unit]
Description=my shutdown script
DefaultDependencies=no
Before=shutdown.target reboot.target halt.target

[Service]
Type=oneshot
ExecStart=/path/to/rabbitstop

[Install]
WantedBy=halt.target reboot.target shutdown.target

then run

systemctl daemon-reload
systemctl enable myunit

shutdown , halt or reboot to see the result .


Ubuntu 14.04 keeps asking for passphrase when ssh

You may be affected by this bug.

If this is the case, you have the wrong ssh-agent set as active. You can check this with the command

$ echo $SSH_AUTH_SOCK

If the agent value begins /tmp/ssh, you have the commandline ssh-agent acting as your agent.

As a workaround, you can use the old style shell command

$ ssh-add

to add you key to the keyring. This does not work well with all graphical programs, however.


Rather than try and change the icon for all of the files, change the icon associated with that file type (apparently rtf).

Here's a set of instructions to do just that:

(found here: How do I change the icon for a particular file type? )

Here is a set of instructions that should get you a custom icon for hwp files.

Open a terminal :

Check the MIME type exists : grep 'hwp' /etc/mime.types

if you get an output resembling application/x-hwp hwp skip the next step.
Create the MIME type sudo -H gedit /etc/mime.types and add the line application/x-hwp hwp
Add the icon (which must be called application-x-hwp.svg):

sudo cp PathToIcon/application-x-hwp.svg /usr/share/icons/gnome/scalable/mimetypes

(don't forget to replace PathToIcon)

Got the information from here

Note you need to use svg files for the icon in question, you may need to convert your image depending on its type.


If you're new to ubuntu I don't recommend upgrading till the next 16.04 LTS. I had many problems with 14.10, 15.04 is better, but the most stable release is 14.04. The graphics drives aren't that important. With 15.04 you get newer software and better look, so if you wanna upgrade, upgrade to 15.04, as it will get drivers in a couple of months if not earlier.


Clock disappears after trying to add Weekday / Date

Ok, install dconf:

sudo apt-get install dconf-editor

open dconf under com>canonical>indicator>datetime:

and uncheck and check " show-clock ".

logout and login.


There was an error talking to Libvirt: Call to virDomainCreateWithFlags failed: Unable to get index for interface eth0: No such device

If you don't have an eth0 in your interfaces, then as a workaround you can edit your wireless interface to be eth0 as it is hardcoded somewhere in the module to look for that name. You need to create /etc/udev/rules.d/70-rename-wireless.rules and insert the following into it:

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="ff:ff:ff:ff:ff:ff", NAME="eth0

Where ATTR is the HWaddr field from ifconfig -a.


xrandr only applies gamma correction.

To change brightness in gnome, use the gdbus command or write it in a script.
Eg: To set the brightness to 20,

gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.freedesktop.DBus.Properties.Set org.gnome.SettingsDaemon.Power.Screen Brightness "<int32 20>"


Use command substitution:

$ myvar=$(pwd)
$ echo $myvar
/etc
$ echo $(pwd)
/etc


How to convert DVDs to video files for Playstation3 - and not get "Corrupted data" error

The follow worked for me:

First used MakeMKV to extra DVD files. How to install MakeMKV beta on Ubuntu.
In HandBrake Edit > Preferences unticked "Use iPod/iTunes friendly (.m4v) file extension for MP4":
In HandBrake selected Playstation720p30
Saved outputted files to "Video" folder on USB drive.


Ubuntu apt-get upgrade error on ubuntu 12.04

I had the same problem.
Got it working by running the following:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/apache2-bin_2.4.16-3+deb.sury.org~precise+1_amd64.deb
sudo dpkg -i --force-overwrite /var/cache/apt/archives/apache2-data_2.4.16-3+deb.sury.org~precise+1_all.deb
sudo dpkg -i --force-overwrite /var/cache/apt/archives/apache2_2.4.16-3+deb.sury.org~precise+1_amd64.deb

After that sudo "apt-get -f install" worked fine!


uGET uses curl and aria2 plugins to maximize speed with multiple connections. As far as I can tell, it provides the highest speeds, never reached by other downloaders, except the non-free Flareget. (Without it I would have not been able to see the top download speed of my internet connection.)

Integration with Firefox is done automatically if FlashGot in Firefox is installed.

The needed settings are:

Right click a category (or better All category), 'Default new download' set number of Max connections ...up to 16.

Edit-Settings-Pluggings, plugins matching order: curl+aria2

Xtreme Download Manager - was updated and looks very impressive. It can use up to 32 segments per download! - but for some reason, comparing alternatively on the same test-iso download, the 32-connection speed was significantly under that of uGet (with only 12-connections).

It uses Java and looks a bit different than IDM and uGet. It uses some memory but not too much (see the java line in the conky to the right):

It is set to start by default with the system but that cannot be disabled from within the program; so you need to disable that at system level if you want.

Axel is a CLI program, my favorite at some point (now, it oddly seems unable to capture youtube videos, maybe due to a change in the way Youtube operates and to Axel not keepeing the pace with that). It will download each file from multiple servers (if available), thus increasing significantly the download speed.

sudo apt-get install axel

Install FlashGot addon in Firefox

Set Axel in Flashgot options as the main downloader or just for capturing media.

Flareget deserves to be mentioned, although the number of connections per file vary between 4 and 16 depending on the version and license. Even the minimum number of connections will significantly increase speed, but the latest versions will limit (after a trial period) to just two connections any download above 25 MB. It seems to have a smaller memory footprint.

FlashGot addon for Firefox is a very good way of redirecting the browser downloads towards external downloaders like those mentioned.


Simple file doesn't run (command not found!)

Since testdisk_static is not in your $PATH, you need to specify the path for it to run.

You can use a relative path if you are in the same directory: sudo ./testdisk_static

or you can specify the absolute path from any working directory:  sudo /media/Foxtrot\ Bravo/testdisk-6.12/testdisk_static [Note: the backslash after Foxtrot is important to escape the space that follows.]


cant boot after opening 2nd partition on hard drive

Boot from the CD, run GParted and select the 'boot' flag for the Linux partition.


The 'ls -lS' command shows weird folders sizes

In Linux filesystems the directories are inodes like regular files, but they contain references to other files (file names, in particular). So their disk size is roughly proportional to the number of entries they point to (child files/directories). However when you erase child files and directories the space is not always reclaimed, so your output above is just showing you how big your Downloads directory inode had to grow once to contain the data for a few hundred files.


Can't find or install package "libiberty"

If configure is just looking for the libiberty development files and static library then install binutils-dev and gcc-dev:

sudo apt-get install binutils-dev gcc-dev

Note: to install the libiberty headers on a 13.10 system, the only way is to download the deb file (amd64 or i386) and call dpkg -i.

First choose the right package to install:
libiberty-dev_20131116-1_amd64.deb or libiberty-dev_20131116-1_i386.deb

http://packages.ubuntu.com/trusty/amd64/libiberty-dev/download
http://packages.ubuntu.com/trusty/i386/libiberty-dev/download

Select a mirror to download the .deb file

In a terminal go to the folder where you saved the deb file and type (for amd64):

sudo dpkg -i ./libiberty-dev_20131116-1_amd64.deb

Thanks to steeldriver for his comment about binutils-dev


fresh install of Ubuntu 13.04 trying to use dosbox but can't get past the first step

You'll need to use this command:

mkdir -p ~/dos/c

The -p option will automatically make any parent folders if they don't exist.

The reason the command is failing for you is that you're trying to create "c" inside of the "dos" folder, but the dos folder doesn't exist. You could also work around this by running each command separately:

mkdir ~/dos
mkdir ~/dos/c


In a case like this, I'd plug in an external USB-based keyboard and see if the sluggishness is on that one, too.  If the problem follows that external keyboard then it could be that your computer is sluggish because it's busy.

I'd then try to figure out what it is that's making my computer busy.

How do you find out which program is using too much memory?  So maybe you could consider running something like gnome-system-monitor, for example, which might give you some insight into what's running.  If this is related to a processor-hog stealing all its time then this could help.

If it's a bad driver then I'm not sure I'm the right guy to help.


Prevent question "Restart services during package upgrades without asking?"

I had the same issue. Found an answer in https://unix.stackexchange.com/a/543706

In short:

Set no-asking for all packages (solved it for me):

echo '* libraries/restart-without-asking boolean true' | sudo debconf-set-selections


Thunderbird profiles in Ubuntu are stored in the (hidden) .thunderbird folder in your home directory. You might have to enable showing hidden files in your Files manager to see it.

So you would copy your Windows Thunderbird profile (the folder is usually named ????????.default) just into that directory.

Then you'll also have to copy the profiles.ini file to the same location too, and edit it to fix the changed path settings and make sure they fit the new Ubuntu location.


Find and replace text within a file using commands

sed -i 's/original/new/g' file.txt

Explanation:

sed = Stream EDitor
-i = in-place (i.e. save back to the original file)
The command string:

s = the substitute command
original = a regular expression describing the word to replace (or just the word itself)
new = the text to replace it with
g = global (i.e. replace all and not just the first occurrence)

file.txt = the file name


Nvidia X server - cannot switch to GPU from my Intel, because of python import error

I had the same error. I fixed it by running sudo nvidia-settings instead of nvidia-settings. This adds the necessary privileges to launch the application.


Changing node for compute. Openstack kilo release ubuntu 14.0.4

The answer is here:

Keystone connection fail | Stack Overflow

The problem is that developers changed repositories for some components and you need to add them to every node.....


Installed Nvidia driver got blank screen

What does lspci | grep VGA output? It might be the same issues a bunch of people are having with broken 3D on a certain series of nv30 hardware.

Does ubuntu-2d work?

https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/964275

Sadly because nvidia driver is closed source there isn't much we (people that don't work for Nvidia) can do to fix it. However the nouveau driver works well for 2d. (and the 3d rewrite in mesa is coming along)


Existing linux installation, one disk, how to proceed with manual dual-boot Ubuntu installation?

Boot Ubuntu Live USB, select "Install Ubuntu", then select "something else".

After that select /dev/sda1 as efi, /dev/sda5 as /.

You need to make sure that you boot from the Live USB in UEFI mode. That's probably the reason the installer doesn't see the existing system, becuase you booted in non-UEFI mode.


Broadcom STA Wireless Driver Fails to install

I actually have 2 Broadcom wireless cards in my laptop. What I do to get in working is:

dpkg -l | grep b43 to find any b43 related packages to remove.

Then,

sudo apt-get install bcmwl-kernel-source dkms

It has worked for me on every Ubuntu release I've used, including Ubuntu 11.04.


help understanding iptables router script and error

For future reference or for anyone looking at this page here is the finished script:

#!/bin/sh

PATH=/usr/sbin:/sbin:/bin:/usr/bin

#
# delete all existing rules.
#
iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -X

# Always accept loopback traffic
iptables -A INPUT -i lo -j ACCEPT

# Allow established connections, and those not coming from the outside
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m state --state NEW ! -i wlan0 -j ACCEPT
iptables -A FORWARD -i wlan0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT

# Allow outgoing connections from the LAN side.
iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT

# Masquerade.
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

# Don't forward from the outside to the inside.
iptables -A FORWARD -i wlan0 -o wlan0 -j REJECT

#Port Forward Unifed remote
iptables -A INPUT -p tcp --dport 9512 -j ACCEPT -i wlan0
iptables -t nat -A PREROUTING -p tcp --dport 9512 -j DNAT --to-destination 10.1.1.12:9512
iptables -t nat -A POSTROUTING -d 10.1.1.12 -p tcp --dport 9512 -j SNAT --to-source 10.1.1.1

# Drop outside traffic except ssh
iptables -A INPUT -p tcp --dport ssh -j ACCEPT -i wlan0
iptables -A INPUT -j DROP -p tcp -i wlan0

# Enable routing.
echo 1 > /proc/sys/net/ipv4/ip_forward


Cannot compile GDB7.8 with Python support

I spent quite a bit of time working on getting gdb (7.9) to work with Python (2.7). In the end everything worked rather well. However, there are a bunch of things that you have to get right. The key point is that the gdb configure script tries to compile a small C program that looks like this.
#include "Python.h"
int
main ()
{
Py_Initialize ();
  ;
  return 0;
}

If this program won't compile, then Python support won't be built. For this program to compile, the Python.h include file must be found in /usr/include/python2.7. This file will only exist if the python-devel package is installed. On my system (redhat), the command for installing this package is sudo yum install python-devel.
However, that's not enough to get Python installed. Before the configure script tries to compile the C program, it gets various options from python-config.py. If these options aren't correct, then the C program won't compile. On my system, python-config.py returned the options below.
-lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic

These options didn't cause any problems in my environment. Other folks have had problems with the options returned from python-config.py and have made changes to python-config.py to resolve these problems. On my system the complete compile command was
gcc -o conftest -g -O2   -I/usr/include/python2.7 -I/usr/include/python2.7 \
    conftest.c -ldl -lncurses -lz -lm -ldl    -lpthread -ldl -lutil -lm \
    -lpython2.7 -Xlinker -export-dynamic

This compile command completed without any errors as soon as I installed python-devel. Note you don't have to manually enter the gcc command. I did run the gcc command several times to make sure everything was correct. Normally, the configure script will run the
compiler for you. Also note that to get the overall gdb install process to complete, makeinfo also had to be installed. The command for installing makeinfo was sudo yum install texinfo.
Overall, the correct set of steps seems to be

Install python-devel

Install texinfo

Download the gdb source and gunzip it and untar it.

cd to the gdb-7.9 directory with the configure file.

./configure --prefix=/usr --with-python
make
sudo make install

It should be possible to get gdb to work with Python 3. The various gdb scripts and install programs mention Python 3 in many, many places. However, the correct procedure for installing gdb with Python 3 is unknown to me at this point.


Prevent a certain package from autoupdating

You can disable it via terminal with apt-mark

sudo apt-mark hold onboard

to allow updating again use "unhold"

sudo apt-mark unhold onboard

Extra information:

apt-mark manpage
man apt-mark
A more detailed answer is here


An easy way to check your script syntax is with the following command:

init-checkconf -d /etc/init/service_name.conf

I've found that even with a valid Upstart file if the file didn't exist when the server was booted last I have to reboot the server for Upstart to see the file.


I've found a solution. What I actually ended up doing was creating a Live-USB on my external HDD then installed from that to my smaller memory stick. Now everything works perfectly fine.


Random volume changes after starting games

Answering my own question, hopefully it will be useful for someone else.

My HP notebook comes with an accelerometer, apparently to shut down the hard drives in case it falls from somewhere. This accelerometer is registered in /dev, and all this games are reading from this device as if it were a joystick. This is why it only happened when two conditions were met:

I was playing a game (happened in XBMC too)
The laptop was open (I discovered this problem didn't happen if I plugged an external monitor and closed the laptop - I'm guessing the accelerometer shuts down when the laptop is closed)

Plugging a real joystick and telling each game to use the correct file in /dev has solved the issue.

I know this is only a partial answer, because it does not explain why I'm getting volume changes instead of random movement, but that's the best I have. It also happens in Debian distros, btw.


Live USB: How do i save files on hard drive

When prompted to save something, you will usually (depending on the program) see a dialog box prompting you to click on folders to navigate to the directory in which you want to save a file. On the left hand side of this dialog box, you should see two hard disk volume logos: one for "File System" and one for your internal hard disk. From there, click on the one for your hard disk and navigate to the directory in which you want to save your files.

EDIT:

I now understand your question better. As you may know, the live session typically uses your RAM and then saves any changes you make to the persistence file. Even small changes can take up a lot of space. One thing you can do is create a persistence file on your hard disk and direct the live session to use that persistence file. It is not clear whether you will still run out of room, or if Ubuntu will be smart and write Steam's changes to the persistent file on the hard disk.


VirtualBox dynamic disk not expanding to Virtual Size

I fixed my VirtualBox machine by setting the path on Windows 7 host machine to include the VirtualBox install directory (Steps):

click start button
Right click computer
Click Properties
Click Advanced System Settings
On [Advanced] tab click [Environment Variables] button
Under System Variables, scroll down to path and click [Edit]
Add everything in quotes to end of line ";C:\Program Files\Oracle\VirtualBox\"
Click [Ok]

Next move to the directory of the VirtualBox Disk (under username\VirtualBox VMs)
taken from (https://forums.virtualbox.org/viewtopic.php?f=7&t=52351)

open cmd and move to the VirtualBox drive
enter this command: VBoxManage showhdinfo
Take note of the UUID of the disk.
enter this command: VBoxManage modifyhd UUID_of_the_VDI_disk --resize 80000 (this makes the disk 80 gigs, adjust to the size you want)

IMPORTANT STEPS START HERE:
Next boot the Virtual machine on LiveCD (Install disk)
(taken from Extending Ubuntu Partition size with the unallocated space (swap is between these two))

I can't stress this enough:

It is highly recommended to backup any important files before doing resize/move/extend operations.

The way to do it, is by deleting the swap partition, extend the partition that you want, and then re-create the swap partition.

Swap partition can only be deleted after swap is turned off:

SWAP off: sudo /sbin/swapoff -a SWAP on: sudo /sbin/swapon -a

The steps:

Boot from the Ubuntu LiveCD
Open terminal, and turn swap off
Install GParted
Extend the partiton that you want, but leave space for swap
commit the changes
create swap partition
turn swap on

Note: If your swap is not your primary hard drive, then see SwapFaq on how to activate the swap partition

It is highly recommended to backup any important files before doing resize/move/extend operations.


Ubuntu 12.10 wireless internet not connecting to internet intel pentium dual x86

Can you list the specifications of your computer, and did you at one point have wireless and it stopped or did it simply stop after setting up the wireless?

Either way check your additional drivers and see if there are any drivers listed for wireless internet.


OK I found a solution that worked for me...

cd /var/lib/dpkg/info
rm *.postinst
apt-get --force-yes install openjdk-7-jre-headless

I only assume that as openjdk was already installed that this was just a kick it need not have been openjdk.

I then proceded to purge apache and php

apt-get purge apache2
apt-get purge php
apt-get autoremove
apt-get autoclean
rm -R /etc/apache2 /etc/php

I could then cleanly install apache2 and php once more and everything was happy
    apt-get install apache2
    apt-get install php

What a headache. dpkg --configure -a did nothing and kept saying the initial dependecy error as did every other solution i could find.


error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory

libmysqlclient.so.15 is no longer available in any supported version of Ubuntu. Ask your program's developers if a more recent version, linked against a more recent version of libmysqlclient, exists. If not, you might be out of luck.


The second GeForce card cannot be used to run a second monitor using the newer NVidia drivers (this has nothing to do with Ubuntu but with NVidia itself.)

There are ways around that, but they're all ugly (and complicated).

You can still use the secondary card using CUDA for video rendering, FPU computation, ...

Sorry to be the harbinger of bad news...


nginx fails while the website somehow still works

The static files still don't load but nginx has been fixed with the following commands.

deleting accidentally created myproject file from /etc/nginx/sites-enabled/myproject what file name is in the official guide but the_actual_myproject has different name RUN:

cd /etc/nginx/sites-enabled
sudo rm myproject

RUN:

namei -l /run/gunicorn.sock
sudo systemctl restart gunicorn
sudo systemctl daemon-reload
sudo systemctl restart gunicorn.socket gunicorn.service
sudo nginx -t && sudo systemctl restart nginx

RESULT:

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

RUN: systemctl status nginx.service
RESULT:

● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-03-26 16:32:09 UTC; 7min ago
     Docs: man:nginx(8)
  Process: 11111 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, sta
  Process: 11111 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=ex
 Main PID: 11111 (nginx)
    Tasks: 2 (limit: 1152)
   CGroup: /system.slice/nginx.service


Install windows or newer ubuntu from old Live CD

Sorry but you will probably need to burn a new disk. Also it would be VERY hard to do all those upgrades as upgrading from old releases is a long process as the location of the new files is updated on the ubuntu server side. You will need a new dvd or usb if you want to have anything near a stable system.


Floppy drive doesn't turn on or make noise when dding an image to it?

Because the .img file was only 1.44MB, it was written entirely into the RAM cache without any of it being actually written to the floppy.

After running the dd command, you'll want to run this command to ensure that the FS cache has been written to disk:

sync

After running the above command, the floppy drive came alive and wrote the cached data to the floppy.


I upgraded Ubuntu 14.04 with 15.04 Desktop. Sound no longer works

Open the terminal and edit speech-dispatcher file by using the following command:

sudo gedit /etc/default/speech-dispatcher

In here, change RUN=yes to RUN=no

Reboot and test


This kernel requires CMOV not present on cpu error message

CMOV stands for "conditional move" and speeds up code by avoiding "if-thens" and therefore the necissity of branch-prediction.

It's available on .686 architecture and above which equals Pentium2 or so(guessing). So your computer is simply too old, maybe P1 or VIA or something.


Which Java package should I use: OpenJDK or Oracle JDK?

OpenJDK is the default version of Java that Ubuntu uses and is the easiest to install while Oracle Java 7 is Oracle's own version of Java 7.

You can read Ubuntu Java Documentation.

OpenJDK: "Oracle makes the OpenJDK source code available under an open-source licensing model. It's both gratis, and free (as in freedom) software."

Further as I found in Oracle Java FAQ Section

For Oracle JDK

"The Java Development Kit (JDK) is free to download and use for commercial programming, but not to re-distribute."


How can I check if my CPU is AMD64 compatible?

To find information about your CPU including architecture, execute lscpu in terminal.

Example:

lscpu

yields ...

Architecture:          i686
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 42
Stepping:              7
CPU MHz:               2301.000
BogoMIPS:              4589.37
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              3072K

For Intel systems, the Vendor ID is - GenuineIntel and for AMD - AuthenticAMD.

But they are compatible. It is a bit of an historical artifact in that AMD was the creator of the 64 bit 'long' mode, and later Intel matched that creation.
But naming often refers to any 64 bit binary as an AMD/64bit format, usually with the label 'AMD64'.


Can do an "apt-get update" but for only for one package?

I'm sorry, but as far as I have ever known, you have to do the whole apt-get update.

If other repositories haven't changed, they shouldn't be downloaded again. There's a check to see if the files on the archive server have a more recent date and time than what is already on your computer. If they have changed, they will get downloaded sooner or later anyway.

Except for those individuals running development releases, the repositories that change a lot are pretty small (updates containing Stable Release Updates, and security fixes are the two repos that come to mind).

Development releases are special because the main repository, containing each main package, is being changed several times a day. The main repositories are frozen just before release.

You needn't upgrade everything, however--you can select just to upgrade just the packages you want.


Ubuntu 18.04 LTS linux-image-generic dependency problems

So what happened was that there was conflicting packages. Nothing to do with Firefox and not a duplicate of other posts thank you though :) I went into synaptic and completely removed the broken package and manually downloaded the latest version of the package that was specificed by the Ubuntu website that was trying to download. The auto commands did not take care of the issue. Had to be manual.


Can't boot Windows 8 after installing Ubuntu

You've got a BIOS/CSM/legacy-mode Ubuntu installation alongside an EFI/UEFI-mode Windows installation. As you've discovered, this combination is not good. You probably got to this point because you followed misguided installation instructions that suggested you enable the CSM (aka "legacy boot support") in your firmware. This causes more problems than it solves, as described in greater detail on this page of mine. To fix the problem, I recommend:

Download the USB flash drive or CD-R version of my rEFInd boot manager.
Prepare a boot medium from the rEFInd image.
Enter your firmware setup utility. You typically do this by hitting Del, Enter, or a function key soon after powering on the computer (about when you'd press F12 to get the firmware's built-in boot manager that you're using as a workaround).
Disable the CSM. This will produce a boot straight to Windows, once you reboot.
If it's currently enabled, disable Secure Boot. You can re-enable it later, if you like.
Insert the rEFInd medium and reboot into it. (You may need to use your F12 key.)
rEFInd should show options to boot both Windows and Ubuntu. Test Windows first, then Ubuntu.
If you can boot both Windows and Ubuntu from rEFInd, then you can install an EFI-mode boot loader from Ubuntu. There are many options, but the two easiest are likely to be:

rEFInd -- You can install the rEFInd PPA or Debian package to use it, bypassing GRUB. You know it works at this point, so it's a pretty safe choice; but if you want to use it with Secure Boot enabled, there will be more hoops to jump through later, as described here.
GRUB -- You can install the grub-efi package, which should replace the grub-pc package. You'll then have to re-install GRUB by typing sudo grub-install. You may also need to type sudo update-grub to get the configuration file right. This is a bit of a leap of faith, but if it doesn't work, you can use the rEFInd medium to boot up and try again. Alternatively, Boot Repair can usually get things working by re-installing GRUB automatically. One advantage of this approach is that you should be able to re-enable Secure Boot after you're done with no additional trouble.

There are numerous variants on this procedure. Most notably, if you're sure you want to stick with GRUB, you can skip using rEFInd and boot your Ubuntu installation medium in EFI mode and run Boot Repair from it, rather than use rEFInd to boot into your existing installation and repair it.


How to install more than one package with only one command via Terminal?

You can use:

sudo apt-get install package1 package2 package3 ...


Radeon HD 8490 Video Driver Problem in Ubuntu 14.04

It turns out that my computer has two Radeon HD 8490 video cards. Ubuntu only recognizes one of the video cards. So in using the first video card, there are two ports DisplayPort and HDMI. I connected both monitors to the same video card and now they both function.

Continuing Problem: The proprietary drivers only recognize 1 of the 2 available video cards. I've found a similar topic here on Ubuntu Forums.


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

it can solve the problem ,which maybe due to lack of storage.


If you can boot into Ubuntu, try sudo update-grub  this will show you what OS's you have installed that grub can find.  If it does not find Windows please ask again.  Does the NTFS partition show up OK in gparted?


How to set "PasswordAuthentication" as yes through automation

The following commands works:

Save the following as script file, something like example.sh

#!/bin/bash
# sudo sed -i "/^[^#]*PasswordAuthentication[[:space:]]no/c\PasswordAuthentication yes" /etc/ssh/sshd_config
# sudo service sshd restart

Run the script after the above commands are saved in script.

# sudo ./example.sh


LightDM: How can I trigger a bash command everytime someone fail to login?

Explanation

One way is to make use of the Authorization Log.

  Authorization Log

  The Authorization Log tracks usage of authorization systems, the
  mechanisms for authorizing users which prompt for user passwords, such
  as the Pluggable Authentication Module (PAM) system, the sudo command,
  remote logins to sshd and so on. The Authorization Log file may be
  accessed at /var/log/auth.log. This log is useful for learning about
  user logins and usage of the sudo command.

  More here on LinuxLogFiles

On a failed login attempt, a record will be appended to the /var/log/auth.log file and the last line will contain something like:

pam_unix(gdm-password:auth): authentication failure;

If you constantly monitor the file for modification and check if the last line contains the keyword failure with for example grep failure then you know a failed login attempt has just occurred and you can run whatever command you want based on this action.

Solution

You can monitor the last line of the /var/log/auth.log file with a script like this:

#!/bin/bash

while true
do
       sleep 1

        if (( $(tail -1 /var/log/auth.log | grep failure | wc -l) == 1))

        then

                echo "failed login"

                # Your command here

        fi

done

Or even better, you can install inotify-tools and use inotifywait to monitor the file instead of the sleep 1 and the script will be like this:

#!/bin/bash

while inotifywait -q -e modify /var/log/auth.log >/dev/null

do

        if (( $(tail -1 /var/log/auth.log | grep failure | wc -l) == 1))

        then

                echo "failed login"

                # Your command here

        fi

done

inotify-tools can be installed with the following command:

sudo apt install inotify-tools

Implementation

To run this solution as a system service, please follow these steps:

Copy and paste the script code above ( without echo "failed login" as I added this line for debugging purposes only ) into a file in your home directory and name it TakePicture.sh and save the file.
Make the shell script file executable by running the following command in the terminal:

chmod +x ~/TakePicture.sh

Create and edit a custom systemd service to run the shell script at boot by running the following command in the terminal:

sudo nano /etc/systemd/system/TakePicture.service

Copy and paste the following code into the editor, replace USERNAME with your username and save it by pressing Ctrl + X then press Y then press Enter :

[Unit]
Description=Take Picture

[Service]
Type=oneshot
ExecStart=/home/USERNAME/TakePicture.sh

[Install]
WantedBy=multi-user.target

Start the service by running the following command in the terminal:

sudo systemctl start TakePicture

Enable the service by running the following command in the terminal:

sudo systemctl enable TakePicture

Notice:

The authorization Log will contain all sorts of failed logins or authentications ( ie. GDM, SSH, terminal user authentication, sudo, ... etc. ).

If your aim is just to activate the script when an actual physical login happens ( ie. someone is sitting infront of your computer, using your keyboard and looking at your screen ), then you need to change the above if statement to be like this:

if (( $(tail -1 /var/log/auth.log | grep gdm | grep failure | wc -l) == 1))

if GDM is your login manager. This way the script will only be triggered if an actual failed physical login happens.

Best of luck


How to install python3-dateutil in Ubuntu 12.04 (Precise)?

What does the following command say?

apt-cache search python3-dateutil

If it shows python3-dateutil - powerful extensions to the standard datetime module in Python 3, run the following:

sudo apt-get install python3-dateutil

Alternative is to install with pip:

pip install python-dateutil


Ubuntu 14.0 VM (VirtualBox) on Windows 7 host not connecting to internet

Can you check this:

  On the WIN7 machine's own "Local Area Connection",
  "Properties">>"Sharing", and check "Allow other network users ...".
  And "OK"

and restart your vm machine.
The problem is that your windows is not natting.


"Failed to download repository information"

Open the Software Center and open the "Edit -> Software Sources..." menu:

Deselect all the lines containing steampowered.com and your next update should run just fine.

Note: their servers may be busy or down. you could try to re-enable them later.


Installing dpkg error "requested operation requires superuser privilege"

You still need to use sudo to elevate the dpkg installation, do:

sudo dpkg -i vzaccess-7.5_2766f-1ubuntu1110.deb

then enter your user password.


Volume set to 22% by itself all the time - how to find the cause?

This ubuntu.com community Sound Troubleshooting Procedure provides lots of informations and places to look into.

Some background software or default setting will likely be causing this. As this is not exactly a solution but a pointer to some procedures I would prefer not to post it as an answer...

Try to provide some more details, I'd say.

Logs w/ and w/o GUI to look into... There is an audio section.


The librarian is simply a file store. From it's documentation in its source code:

  The librarian is a file storage service for launchpad. Conceptually
  similar to other file storage API's like S3, it is used to store
  binary or large content - bug attachments, package builds, images and
  so on.

Decoupling file storage from the rest of Launchpad presumably makes it easier to scale out. As far as I know, the urls are permanent, but it is not designed to be browsed by humans.

While there was talk of using the librarian for PPAs, I don't know if that has happened. You can see that the actual archives that contain the PPA packages can be found at:

http://ppa.launchpad.net/$(launchpad_user)/$(ppa_name)/ubuntu/

For instance, ppa:andrewsomething/typecatcher is at:

http://ppa.launchpad.net/andrewsomething/typecatcher/ubuntu/


How can I find out how my VPS was penetrated?

SSH authentication attempts are typically stored in the /var/log/auth.log file. So there might be something useful in there if the attacker got access via SSH.

Most likely though, it's a vulnerability in one of your web applications which allowed the attacker access. Now you don't mention what web server stack you use, or what kinds of applications you run, so it's hard to be specific. But in general you should comb through the web server logs and look for suspicious entries.

And if you run things like WordPress, you should make sure it's up-to-date and update all plugins. In the case of WordPress it's often a badly written plugin which allows the attacker to take control over your server.


Plugging in 1440p monitor from 1080p, first startup 1440p desktop locked at 1080p size until relog

pkill -HUP xfdesktop seems to restart the desktop. Note that after testing, the desktop even if plugged in last session, still defaults to 1080p on startup, but after relog or pkill will reset.

For a permanent fix, add pkill -HUP xfdesktop to: Session and Startup > Application Autostart > +Add


Sorry for the late answer, going over old unanswered migrated questions: Let's go a bit deeper on package dependencies and file locations:

A package is a inventory of collections of files (like a Table of Contents (TOC) in a book) whereas file locations are pointers to where a file resides on disk.

However, you can have the TOC, without the book(Packages without files), and you can have files without Package dependencies (E.g. a standalone script)

So if you'd only be interested in knowing the file location for the packages that are installed on the system, you'd have to do a:

List all packages
Get a list of files in those packages
and then use locate --existing to run that list through locate (fastest, find will take much longer) and you have what you need!
knowing that you might still have files without a package and packages without files (meta-packages)


Have a look at /usr/share/doc/base-passwd/users-and-groups.txt.gz


Why does "Purge" not remove everything related to an app?

The package management never touches any files in a user's home folder so the files there will stay even if you purge a package.


How do I remove ia32-libs from the Depends line as generated by shlibs:Depends?

Removal of the ia32-libs dependency is explicitly covered in the Debian Multiarch Implementation guide:

http://wiki.debian.org/Multiarch/Implementation

Which basically means if there are certain dpkg tools that are emitting too many packages when specifying multiarch then it is a tool bug and now is a good time to file a report.


Dynamic Right sizing for TCP implementation in linux

I think DRS is implemented. Looking at tot Linux tree:
https://github.com/torvalds/linux/blob/master/net/ipv4/tcp_input.c#L482


As @Rinzwind said in the comments, the 32-bit one is not Unity. It is either KDE or XFCE.

Ubuntu uses Unity.
Kubuntu uses KDE.
Xubuntu uses XFCE.

For your convience, here's the 32-bit version of 16.04.1LTS with Unity: http://releases.ubuntu.com/16.04/ubuntu-16.04.1-desktop-i386.iso


Here is a download link:

http://www.zerobit.in/ooo34/en-US/DEBS/ooobasis3.4-core01_3.4.0-1_i386.deb

Have a good day!


locale-gen generates not selected locales

The many English locales are probably there because you installed the English language packs. You should see them by running:
cat /var/lib/locales/supported.d/en

So a way to make the list shorter is to remove the English language packs:
sudo apt purge language-pack-en language-pack-en-base language-pack-gnome-en language-pack-gnome-en-base


How to uninstall WUbi installed in E drive?

In Windows Device Management identify the partition where linux or ubuntu is installed including swap partition,delete the partitions.Then boot from windows CD/DVD, choose repair, in System Recovery Option,click command prompt run the following command one by one
bootrec /fixmbr
bootrec /fixboot
Remove the CD from CD/DVDdrive and restart. Before doing the above it will be better to backup windows.


PulseAudio is included and configured for you already in Ubuntu by default, you don't have to run it manually. So, if you have some problems with sound, I don't think that is because of PulseAudio. It could be a bug or maybe a hardware problem.

You can check it if is working ok with pulseaudio --check in a terminal - produces no output on the console except for errors to stderr.

See man pulseaudio for more informations.

Also, for more help, you can follow this question: Sound problems after upgading to 13.04 and this Sound Troubleshooting Procedure.


How to debug a build failure which cannot be reproduced outside of a Launchpad build environment?

In looking through the log there are some warnings, that you probably should look at, particularly if you don't get them on the local machine, but I think the big hint about what is going on is the name of the failed test: glib-events.

events are almost always related to I/O, so to try to force the error on the local machine unset XAUTHORITY and DISPLAY, close standard input or redirect it to /dev/null and redirect standard out and error to a file. nohup will do the redirection for you, but wont touch the environment, or you could use at or batch instead of nohup which also offer the advantage of changing the session leader.


Can I move all dotfiles from ~ to ~/.config?

Short answer: no.

You can't move your dotfiles to ~/.config and expect programs to somehow infer that no dotfiles under ~ means they could be elsewhere.

Therefore, you ought to explicitly tell every program to look at ~/.config. (I guess in most cases this is done by setting some environment variable.)

Even then, many programs don't even envision such a possibility; so you'd still have some dotfile under ~.


How can I create a bookmark to the listing of a computer's network shares?

You can click on Browse Network and the double click on the server as it should be listed. Then simply click bookmarks and add from the menu bar

If you cannot access the menu bar press: Ctrl + D to create a bookmaker.


State of PPA's after a distribution upgrade

First, recall that PPAs are NOT official, supported sources for Ubuntu software. Some projects (mis)use PPAs to distribute unofficial packages - your support for those packages comes from that project, not us. Ubuntu conducts no quality assurance or checking of any kind on most PPA packages. We have no idea if they are laden with malware or not. Use entirely at your own risk.

Second, recall that lots of terrible or ancient instructions on the internet tell folks to install PPAs quite needlessly. In many cases, the software is in the Ubuntu repositories already, or in Ubuntu's Snap Store.

Since PPAs are published by random folks across the internet, Ubuntu cannot compel them to adhere to the release schedule. Packages for a new release may appear on time, or many months later, or never. This is one reason that PPAs are automatically disabled during a release-upgrade.

You must update PPAs manually after a release upgrade.

Best practice for a trouble-free release-upgrade with PPAs:

1) Prepare: Uninstall all PPA packages and disable all PPA sources. Return your system to as close to stock condition as possible. The ppa-purge tool makes this step very easy.

2) Preparation: Update/upgrade your system to ensure your old release is up-to-date.

3) Do the release-upgrade

4) Check your list of PPAs and other Non-Ubuntu software to determine which are no longer needed. (e.g.: Don't use it anymore, the feature is now in Ubuntu, use the new Snap instead, etc.) Delete these PPAs from your list.

5) Check your list of PPAs to determine which don't have packages compatible with your new release of Ubuntu. Generally, it is a Very Bad Idea to try to install wrong-release packages. Doing so can break your system quite horribly. Revisit these PPAs in a few months to see if the new release is supported.

6) Edit and re-add the PPAs that you want to keep, and that have compatible packages for your new release. Re-add each PPA one at a time, including separate update/upgrades for each PPA. Watch your apt output carefully for errors and warnings.


I had this very trouble this morning. After little investigation I found that update installed new linux-image without installing linux-headers for it. To fix it takes several minutes.

When you logged in and stack at empty desktop press Ctrl+Alt+F2. This switches you to a tty console (simply put into command line login). When there enter you name and then password. when prompted. After you logged in, enter into console this command:

sudo apt-get install linux-headers-$(uname -r)

This will install missing header files. After this enter the following command:

sudo apt-get install --reinstall linux-image-$(uname -r)

This will reinstall the new linux image and will configure it properly.

Then enter

sudo shutdown -r now

On the next reboot your system should be fine.


How to do a sudo verification that lasts long enough for (unprivileged) make to finish?

Once you're gained root privileges, you can use sudo again to execute a command as the non-root user:

sudo bash -c "sudo -u $USER non-root-user-command ; root-command"

Note that you need to use double quotes, not single quotes. If you use single quotes, $USER will be replaced with root, which won't achieve the desired outcome. Hopefully, these commands will illustrate my point:

$ sudo bash -c "echo $USER"
david
$ sudo bash -c 'echo $USER'
root

So, let's take the example mentioned in the question:

 make && sudo make install

That would become:

 sudo bash -c "sudo -u $USER make && make install"


Files are locked on ubuntu when copied from my mac or pc

Open a new terminal and type:

sudo nautilus

Then search and select the files you want to open, right-click and properties, then change the permissions :P


I would think when you check your machine is booting EFI only in your firmware. That guide gets you to set it up as a MBR boot device. Without the supposed to be about 100-200MB in size FAT partition at the start marked as typeEFI System Partition it will never boot on an EFI or show in the menu on such a system. The files that are supposed to be installed in that partition are not done when in MBR mode type for the installer. It needs to boot in such a way too but since it booted for the install on EFI machine it must be doing that so it is the missing partition type causing it. I never read all of it, does he have you make the large fat for a swap area? Thus making certain you kill off the drive earlier with all the wear that causes. To fix it do an install where you make the tiny FAT at the start and select it in that page for use as system partition however it is worded. Then once done it will be an EFI install. When looking around in the BIOS/Firmware there may be setting for CSM mode or to use both you can try this option to see if it boots the Ubuntu and will still allow Windows to boot with it enabled too.


Can't access BIOS and installing a windows hard drive

This is a mess : ) ! And lack of information too (especially system configuration, notebook or not, one hard drive or more, live CD Ubuntu or installed one), but I'll try help.

This doesn't look like an Ubuntu problems, since it doesn't affect BIOS. Shouldn't at least.

Furthermore as far as I know currently Ubuntu 13 is a beta version and 12 is a released version. Beta version may be not a good choice while having additional problems.

The Hard Drive and opening BIOS options in UEFI

We are assuming that the hard drive isn't paralyzing the system, but it may be the case. Some system won't even enter BIOS with a broken drive, while (presumably) waiting for its' response. In that case

1) Can You enter BIOS without any hard drive?

2) If not, are You sure that Del key is working and You're fast enough with the pressing? It worked before using Ubuntu, right (sounds weird)?

3) If You're experienced and it won't cancel warranty, reset the BIOS settings manually (disconnect power source and computer's power battery, remove motherboard's battery for 30 sec and put it back in) which by the way commonly speeds the booting up and more. Risky for notebooks since those commonly have hidden batteries. Mean!

That pretty much is all I can think of having provided info and at this point You should have entered BIOS, know what is wrong or have other ideas.

Win7 GRUB detection

What I deducted is that You just took a hard drive with Win7 installed on it from one computer and put it into another. GRUB won't see Win7 until You tell it to, the easiest case is to run sudo update-grub at the terminal, but making sure that GRUB options are set correctly may be needed first. There is a plenty of GRUB help in this website and You're having the best info to find what You need. But even when Win7 will be detected it won't have installed drivers for it's new location - new computer, so it shouldn't work all nice, if at all. Because Windows is not meant to jump around different computers and not prepared to.


How do I record headset mic and headphones at the same time along with video of the computer's screen in Ubuntu 18.04 with LXDE?

cmak.fr's comment was helpful.
I then found the following link
leehblue.com/record-phone-calls-audacity-ubuntu/
Even though the explanation of the link above is kind of long, carrying out just the following 2 steps with the settings displayed in attachment worked for me.
1st. Running audacity and clicking on the red round button (Record button).
2nd. Running simplescreenrecorder.
Find in attachments the settings that worked for me.


Logitech T650 not working correctly with 15.04 upgrade

At present there isn't a solution, I too use a t650 and whilst it worked fine in 14.10 it doesn't in 15.04, which I'm now using again as I had to upgrade to solve an unrelated issue, I did ask a question on here a few days ago and this is the answer I got as to why the touchpad is no longer working as it was.

In kernel 3.19 (as included with Ubuntu 15.04 Vivid) the Logitech HID++ >driver got rewritten to improve support for certain Logitech devices. This >shifted processing of events from the hardware (the touchpad) to software >(the Linux input driver stack).
This results in the Logitech T650 touchpad not sending keyboard events such >as Back for three fingers. Since there is no multi-touch driver that >processes gestures, you do not get the event either.
Workarounds:

Install a kernel version before 3.19 (or just the hid-logitech-dj driver from previous versions).
Enable both reporting of gestures as well as raw events. Since the events reporting is very sluggish after this method, I won't explain it here.

A forward solution should recognize the multi-touch functionality of the >Logitech T650 touchpad and then generate appropriate events for gestures.

I am experiencing the same issues as you, I've also noticed that the right click button doesn't seem to do anything either,over all the touchpad is barely usable on my system, installing

gpointing-device-settings

seems to give more options for tweaking the touchpad, but doesn't restore the functions that no longer work, and in all honesty for me it didn't improve the performance of the touchpad.
Edit :
Since writing this I have been doing some experimenting, and I have found at least for me a way to get 3 fingered swiping, I basically use it for browser navigation, but with more tweaking it might be possible to get a lot more of the touchpads functions working.
After searching I came across this - multitouch gestures it's taken a bit of messing about with, but that's more my lack of knowledge than anything else, I did have some issues when running some of the commands (specifically the make commands) turns out this might be down to glibc, but I found that using this source solved the make issues clone from here if having make issues
I still have some issues with the touchpad, but this seems to be a step in the right direction, hope it helps.
Edit : I'm currently running ubuntu 16.04 and have up until recently not had much luck getting this touch pad to work in a useful way, but the other day I came across libinput-gestures - https://github.com/bulletmark/libinput-gestures
I found it easy to set up and works well, some putting it here as people may find it useful.


How Do I Fix SanDisk USB mounted in Read-Only Mode?

This seems to be an issue/Limitation in SANdisk where it is designed with Write Protect is on. Check the  speller's post in the link given below

https://unix.stackexchange.com/questions/121061/disk-on-key-is-read-only-on-every-computer

Hope this helps


Could it be, that you just downloaded the git repository instead of cloning it? And .git is not present in the repo directory?

then you should use:

git clone https://github.com/sunlightlabs/datacommons.git

instead

(also you should check if you have the right python version installed)


Did you install the latest version of Skype? Is your internet workibg? Skype on Linux is buggy for me. Use the web version of Skype instead. After you have logged in, click the Skype icon on the top right.


You are making your experience way to difficult!
Have a look at the system settings menu (->choose log out -> system settings at the bottom):

and click 'main menu'

You can also get there this way:

Click on the Dash (Ubuntu logo in
the top left of your screen).
Enter the words "Main Menu" in the
search box and hit enter.

and there is your good old menu:


Screen Resolution Problem with Ubuntu 14.04 and VirtualBox

After having first installed the Guest additions, which didn't work, I found a solution elsewhere: linuxbsdos.com.

Use Xdiagnose from the Dashboard. Search for and launch Xdiagnose, then enable all the options under the Debug section. Click the Apply button, then close the window and restart the system.

That's what finally did the trick! Now I get 1024 x 768 instead.


Automatic shutdown / hibernation after x minutes in suspend?

Suspend is an hardware managed state, such function if available would need to be implemented at the BIOS level, or at least would require BIOS support.

Unless your BIOS provides such programmable function, no, it is not possible.


After a careful inspection, I found two "mysql" in my system: One located at the Anaconda's bin directory and another in "/usr/bin/". The "mysql" installed in the System's bin directory creates a socket file at "/var/run/mysqld/". My systems points to the "mysql" at the Anaconda's bin directory by default, thus I solved the issue by creating a symbolic link as follows:

$ ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock


Why does removing gwibber-service get rid of indicator-me

The package indicator-me depends on the package libgwibber0 which depends on the package gwibber-service.  You can't remove gwibber-service without removing libgwibber0 and indicator-me.

You can, however, remove gwibber-service from your startup applications (System->Preferences->Startup Applications) so that it doesn't sit there using resources. You will find that the broadcast text box disappears when gwibber-service isn't running.


Can i create image of my current installed ubuntu so that i can install it on other machine?

I'd love to provide you with this answer, and particularly with details.  You see, there are two popular and equally correct answers, and I'm prepared to offer both to you, with the understanding that the one which sounds easier is much much more dangerous to your data, while the one which sounds slightly more complicated is immensely safer, while also being easier.  Given the choice I'm a big fan of both fast and easy.  Neither method is significantly slower than the other.

Also please see my bio and take my word for it that the program I use for cloning is in fact the slightly more complicated sounding solution.  So lets get started.

The solution I wish to recommend to you is CLONEZILLA
Clonezilla is a program which comes to you as a downloadable ISO which you burn to a cd and boot your computer to in order to operate it.  After several text menus, it gives you the stupid easy choice to back up your drive (or just partitions) to an image file on external usb media (in most cases) or directly to another drive entirely.  I recommend the image transition, if only because I'm fond of backups.  Using an intermediary takes longer, but I think it is worth it.

The other solution uses a utility built into Ubuntu called dd.  I have heard that dd official stands for data description, although it is commonly referred to as "drive duplicator" but that it's ambiguities which causes people to copy blank drives over full drivers resulting in Data Destruction.


As suggested, with the command find / -iname '*prometheus*', the result included among other things:

/opt/prometheus/prometheus-0.20.0.linux-amd64
/opt/prometheus/prometheus-0.20.0.linux-amd64/prometheus.yml
/opt/prometheus/prometheus-0.20.0.linux-amd64/prometheus

Which shows the version is 0.20.0.
Thanks a lot for the help.

Also, you can use ./prometheus -version in the folder to find the detail of the version:

prometheus, version 0.20.0 (branch: master, revision: aeab25c)
  build user:       root@77050118f904
  build date:       20160616-08:38:14
  go version:       go1.6.2


Is the Lenovo Ideapad Z570 fully compatible with 12.04?

I have Lenovo Ideapad Z570 (59-326321). I've tried Ubuntu 12.04 (both LiveCD and installation).

Had to manually install Bumblebee for Nvidia GPU to work.

Everything else works fine right from the box.


Autologon Desktop on Ubuntu 18.04 after exchange of disk that is mounted on /home

It may be an ownership problem, try fixing it with the following commands.

Changing ownership of the home where username is your "lowlevel" account:

sudo chown username:username /newhome

Tell the system the home for the account has changed:

sudo usermod -m -d /newhome username

Also give the right permissions to the home:

sudo chmod 755 /newhome


How to view a running program on Ubuntu Server in a new SSH session

To preserve running some program or script in background after exit of current session you might need to use screen package that can be installed sudo apt-get install screen. Basic syntax is screen -S screen_name, a new 'window' will open. Here you can launch you script and to deattach from current screen session use key sequence Ctrl-A + d. To list all active screens just type screen -ls, to attach to an active screen screen -r screen_id. More detailed exmaples can be found here


Cannot download videos on Ubuntu 12.04 using youtube-dl

On the link you have provided there is the download button so you need not use any command.

To download from youtube, first install youtube-dl

$sudo apt-get install youtube-dl

To download video

$youtube-dl https://www.youtube.com/watch?v=6J1-eYBbspA

Note:  Latest version of youtube-dl can be found here

or update it using

$sudo youtube-dl -U


Ubuntu 12.10 installer doesn't recognise Windows 8 partition on Toshiba C850 Laptop

I shrinked one partition using the Windows Disk Management to have free and unallocated space. Booting up the installer via USB I selected "Something else" and created a 4GB swap partition where I had my freed space and the root partition for Ubuntu (in my case 13.04). However it will happen, that GRUB will not be able to boot Windows properly after the installation. This issue can be fixed by using Boot-Repair which will handle everything.

Here is even a video tutorial which is basically describing what I have done though it is done in a virtual machine without UEFI but the process of the setup should be same. Moreover Boot-Repair is a one-click tool which shouldn't need any specific description.

Keep in mind, that GRUB is probably going to overwrite your Windows boot files.

EDIT: Considering this post it seems possible to install GRUB on the partition where you install Ubuntu, such that it doesn't mess with Windows. Using UEFI you can then choose which OS to boot which sounds pretty nice and makes it easy to delete Ubuntu and GRUB if necessary.


How to delete duplicate files with fdupes?

You can do this if you want to run this silently (I've just used it to clear 150 GB of dupes running on rackspace block storage ..£kerching!!)

fdupes -rdN dir/

r - recursive
d - preserver first file, delete other dupes
N - run silently (no prompt)


Application Indicators not working on primary monitor

This seems to have resolved itself now. I haven't done any changes and been rebooting machine regularly, so must have been some update or just "magic". :)


How to make Ubuntu ISO bootable on a USB stick with OSX?

The problem you're having is that is file you downloaded is corrupted, hence, not useful.
To solve this, download Ubuntu again. Once done, try again. You can follow the Official Guide for OSX:
1: Download Ubuntu
2: Convert the ISO file
Convert the .iso file to .img using the convert option of hdiutil

hdiutil convert -format UDRW -o ~/path/to/target.img
~/path/to/ubuntu.iso

Note: OS X tends to put the .img ending on the output file automatically.
3: Determine the media to install
Run diskutil list to get the current devices. Insert your USB and the run again diskutil list. The new device its your USB.
4: Install into the USB
Unmount your device (not physically) with diskutil unmountDisk /dev/diskN where N is your USB number and execute
sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m

Notes:

Using /dev/rdisk instead of /dev/disk may be faster
If you see the error dd: Invalid number '1m', you are using GNU dd. Use the same command but replace bs=1m with bs=1M
If you see the error dd: /dev/diskN: Resource busy, make sure the disk is not in use.Start the 'Disk Utility.app' and unmount (don't eject) the drive

5: Eject
Run diskutil eject /dev/diskN and remove your flash media when the command completes.
6: Boot
Restart your Mac and press alt/option key while the Mac is restarting to choose the USB stick.


Why do i have to shift - right / left key to open and close folders in nautilus, eclipse, etc.?

I think it boils down to this root issue in GTK: "Please add common keybindings for the TreeView". The reply from a developer:

  The arrow keys are already being used in GtkTreeView to move the focus
  rectangle over the horizontal axis.

This issue was opened in 2003, the last substantial comments are also some years old, so I doubt it will be fixed soon...

Currently you can expand a folder using Shift+Left, Space and +.


Where are all the terminal commands stored and how to view them?

You could try using the apropos command to find a command knowing a basic idea of the command. For e.g, if you need to find a command for handling disk functions try: apropos disk. Advantage of using apropos is that it gives a short description of the command.

e.g:

$ apropos disk
arm_sync_file_range (2) - sync a file segment with disk
baobab (1)           - A graphical tool to analyze disk usage
cfdisk (8)           - display or manipulate disk partition table
cgdisk (8)           - Curses-based GUID partition table (GPT) manipulator
df (1)               - report file system disk space usage
dvd+rw-booktype (1)  - format DVD+-RW/-RAM disk with a logical format
dvd+rw-format (1)    - format DVD+-RW/-RAM disk
dvd+rw-mediainfo (1) - display information about dvd drive and disk
fdformat (8)         - low-level format a floppy disk
fdisk (8)            - manipulate disk partition table
gdisk (8)            - Interactive GUID partition table (GPT) manipulator
git-count-objects (1) - Count unpacked number of objects and their disk consumption
git-credential-store (1) - Helper to store credentials on disk
gnome-disk-image-mounter (1) - Attach and mount disk images
gnome-disks (1)      - the GNOME Disks application
grub-mkstandalone (1) - make a memdisk-based GRUB image
grub-render-label (1) - generate a .disk_label for Apple Macs.
hd (4)               - MFM/IDE hard disk devices
initrd (4)           - boot loader initialized RAM disk
mbadblocks (1)       - tests a floppy disk, and marks the bad blocks in the FAT
mcat (1)             - dump raw disk image
mcheck (1)           - verify all files on an MS-DOS formatted disk
memdiskfind (1)      - utility to search for a MEMDISK instance
mformat (1)          - add an MSDOS filesystem to a low-level formatted floppy disk
mkdiskimage (1)      - Create a blank MS-DOS formatted hard disk image
mmount (1)           - mount an MSDOS disk
mpartition (1)       - partition an MSDOS hard disk
mtools (1)           - utilities to access DOS disks in Unix.
mxtar (1)            - Wrapper for using GNU tar directly from a floppy disk
mzip (1)             - change protection mode and eject disk on Zip/Jaz drive
netscsid (1)         - write data to optical disk media
partx (8)            - tell the Linux kernel about the presence and numbering of on-disk partitions
quotactl (2)         - manipulate disk quotas
ram (4)              - ram disk device
sd (4)               - driver for SCSI disk drives
sfdisk (8)           - partition table manipulator for Linux
sgdisk (8)           - Command-line GUID partition table (GPT) manipulator for Linux and Unix
sync (2)             - commit buffer cache to disk
sync (8)             - synchronize data on disk with memory
sync_file_range (2)  - sync a file segment with disk
sync_file_range2 (2) - sync a file segment with disk
syncfs (2)           - commit buffer cache to disk
udisks (8)           - Disk Manager
udisksctl (1)        - The udisks command line tool
udisksd (8)          - The udisks system daemon
usb-creator-gtk (8)  - Ubuntu startup disk creation tool for Gtk+
wodim (1)            - write data to optical disk media

As for the location of the system commands, most command are stored in the following directories:

/bin/
/usr/bin
/usr/sbin
/sbin

You can use the ls command to list the specific commands stored in each of these directories.

For further information:

Manpage for apropos

Update:

You can use echo $PATH, to find all the paths presently specified for executable:

e.g:

$ echo $PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

Then you can use ls on each of the individual folders(each folder is separated by a : ) to find the executable commands present in that path.

  PATH is an environment variable on Unix-like operating systems, DOS,
  OS/2, and Microsoft Windows, specifying a set of directories where
  executable programs are located. In general, each executing process or
  user session has its own PATH setting.

Courtesy: http://en.wikipedia.org/wiki/PATH_%28variable%29

The number in the brackets of the apropos output refers to the man section number. The man pages have been categorized into various sections, namely:

Commands (Programs)

Those commands that can be executed by the user from within a shell.
System calls

Those functions which must be performed by the kernel.
Library calls

Most of the libc functions.
Special files (devices)

Files found in /dev.
File formats and conventions

The format for /etc/passwd and other human-readable files.
Games
Overview, conventions, and miscellaneous

Overviews  of  various  topics,  conventions  and  protocols, character set standards, and miscellaneous other things.
System management commands

Commands like mount(8), many of which only root can execute. System administration commands (usually only for root)
Kernel routines [Non standard]

Courtesy: http://manpages.ubuntu.com/manpages/trusty/man7/man-pages.7.html


Create a script to run update on startup

If you're doing it "at startup", you're already running as UID 0, so use of sudo is incorrect and shoule be removed.

Also, "at startup" is the wrong environment to run apt (documented as It is intended as an end user interface and enables some options better suited for interactive usage by default. Use apt-get instead. Thus:

apt-get -q=2 -y update && apt-get -q=2 -y upgrade

is closer to what you want. Read man apt-get or https://manpages.ubuntu.com/manpages/bionic/en/man8/apt-get.8.html


Unable to install flash plugin due to a proxy

Actually, the solution was provided by Farhat in a comment. Here is a step-by-step instruction.

sudo su
export http_proxy="http://address.to.my.proxy/"
apt-get remove flashplugin-installer
apt-get install flashplugin-installer


Ubuntu unallocated partition after windows 10 update

Gosh darn it... Microsoft hasn't fixed that horrible bug yet? It was also in the Microsoft Anniversary Update.

You can boot to a Ubuntu Live DVD/USB and install testdisk and see if you can recover your partition.

For help, please see http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step


I can't choose between two installed ubuntus

To point you in the right direction, you should install a bootmanager such as grub. Grub will then loaded at boot and lets you choose which OS you want to boot


How to mount a zip file as a file system?

Install the package avfs then execute:

mountavfs

Say you have a zip file in ~/Documents/file.zip, then

cd ~/.avfs/home/$USER/Documents
ls -l file.zip#/

You could also browse the content in Nautilus, but you need to add a trailing # character by hand to the path (Ctrl-L to access the address bar).


I used the link bellow and had complete success, including Grub options on every boot:

Guide To Install Ubuntu 14.04 In Dual Boot Mode With Windows 8 Or 8.1 UEFI

Hope it helps!


Question regarding removing source files after building

In most cases (source files are not consistent), you can remove the source files, tarball etc if you want. This however may make it difficult to remove the software depending on how you installed it, and the software itself.

If you used checkinstall, or don't think you want to remove the packages later, you can delete the source tarball(s) and free up space easily. If not, see below.

Tarball installers generally work by building anything they need to build, and then copying/moving the files to where they need to be. Some also are helpful by deleting temporary build files after compiling, and/or make a list of what was installed (which often is needed to uninstall, and is why you might not want to delete those files). Anyway some installers may have a uninstall option - e.g. to reverse sudo make install:

sudo make uninstall

This varies by installers, you can see if it supports by reading the documentation of the software (this should be included with the package), or by examining the uninstall file. So if you need to use the uninstall option, you may want to keep the source files. They should not be necessary to run most programs normally.

N.B. You probably can also remove some of the dependencies (the devel packages etc) as those may have only been needed for compiling the software, you don't need them to run it. To free up space generally you can also use the autoremove option with the apt-get command to remove unneeded dependcies.


Why is `service networking restart` not working in 14.04?

networking is simply not meant to be restarted or stopped on Ubuntu. The functionality simply isn't supported (and can't be supported as Jorge Castro notes). There are a lot of other services which depend on it.  The ifup/ifdown command didn't replace service networking restart, since it has always been available. Bryan Gonzalez does a good job of explaining it:

  Upstart is meant to be a complete replacement for Sysvinit. In the interest of backwards compatibility, the Upstart devs made some allowances so that people/packages still using sysvinit-style init scripts could continue to do so. The /etc/init.d/networking init script is written for sysvinit in such a way that calling it uses sysvinit methods and breaks dbus which is written for Upstart.

  The solution here is to have the maintainer of the networking init script fix/rewrite it so that it is Upstart compatible. This may mean that the networking init script will lose compatibility with sysvinit, but they need to get over it. Sysvinit is deprecated/obsolete and too much effort is being wasted into maintaining it when the future is Upstart.

And later on:

  The problem is that we have a method to perform this task that is tried and tested for many years.

And then:

  This was a left-over deprecated functionality that though 'everyone knows no to use it' will cause damage if used. As you eloquently put it, this functionality no longer has any practical use, therefore it needed to be pruned.

There was a major bug which simply caused most of the GUI stack to go down, which has since been fixed.

To summarize:

If you're on a GUI, then you simple have no business touching networking, since network-manager handles the interfaces once they have been brought up. (And even then you don't need to restart it.)
If you're on CLI, the ifup/ifdown commands already provided the functionality.


Bluetooth gamepad Pro controller and Ubuntu

I try to pass to Ubuntu 20.10 but it does not change...
So I add a bluetooth dongle... and it works fine.
But it's not the simple way....


How to add permissions to files installed by dpkg-buildpackage or debuild

You could create a post installation script:

gedit debian/packagename.postinst

This is just a normal script, so the following instructions will do:

#!/bin/sh
set -e
chmod 755 /path/to/pythonscript.py
exit 0

Alternatively, you could exclude the file from having its permissions altered by dh_fixperms. This can be done within debian/rules:

%:
    dh  $@ --with python2

override_dh_fixperms:
    dh_fixperms --exclude path/to/pythonscript.py

The first option is preferable because dh_fixperms does other useful things like changing the owner of a file, and excluding the file prevents dh_fixperms from doing anything useful. Also note that in the first option, there is a preceding slash /path/to/pythonscript.py as it is an absolute path, whereas the second option is relative to the debian subdirectory.

EDIT: @AlexisWilke has mentioned a better alternative for option 2, that is:

%:
    dh  $@ --with python2

override_dh_fixperms:
    dh_fixperms
    chmod 755 path/to/pythonscript.py

This allows dh_fixperms to work its magic followed by the minor necessary fix.


Docky on Xubuntu can't remove the anchor icon

I ended up doing a complete reinstall of Xubuntu and the problem was fixed. I am assuming that I messed with some files that I shouldn't have, but not sure.


Open the System Settings -> Appearance -> Behavior and check Enable workspaces.

If this method does not work open a terminal and execute the following commands :

gsettings set org.compiz.profiles.unity.plugins.core hsize 2
gsettings set org.compiz.profiles.unity.plugins.core vsize 2

Now workspaces should be enabled - if you want to disable them again execute :

gsettings set org.compiz.profiles.unity.plugins.core hsize 1
gsettings set org.compiz.profiles.unity.plugins.core vsize 1


Download webpage in Firefox immediately? (hotkey)

CtrlD will bookmark a page in Firefox

CtrlS will perform "Save Page As.."


Only upload the armhf build to the store for now, if your app requires native code. In the future, it will be possible to have armhf, i386, and any other supported architecture, included in the same package. Support for that has been deprioritized a bit though, as development is currently concentrated on the phone platform.

It's already possible to install apps from the store on a PC, when running the Ubuntu Desktop Next preview image.


Jerky Bluetooth, music is playing irregularly

It is unlikely that this problem can be fixed, because bluetooth share the same 2.4 GHz band with Wi-Fi. And Broadcom proprietary driver doesn't have an option to toggle wireless coexistence. But you can try.

The github repo is 3 years old. You can try to find more recent Windows drivers and get firmware from there.

See THIS ANSWER for instructions. Links to Windows drivers may be old too, but you can search for some more recent bundle, or extract the firmware from an installed Windows system.


Vagrant won't run when setting up Homestead

Ok, for those who might have the same problem, here's the solution and explanation for it:

Running the command whoami; ls -dlah ~/.vagrant.d/ showed me drwxr-xr-x 7 root root result indicating that the vagrant folder is owned by root, which was causing the problem of it being not accessible.

The command sudo chown -R yourusername:yourusername ~/.vagrant.d will fix the problem. :)


Canonical shop - Bootable USB stick - Ubuntu 16.04

I took the old fashioned approach of emailing the store via its contact form and the definitive answer is that the stick is 8GB. I quote the email below, with my own email address edited out:

Date: Mon, 20 Jun 2016 10:11:56 +0100
From: eStore Support <estoresupport@merchandisemania.co.uk>
To: 'AndrewStrong' <andrew.xxxxxx@xxx.com>
Subject: RE: [Canonical] Enquiry from Canonical Store
X-Mailer: Microsoft Outlook 14.0

Good Morning

The capacity of the stick is 8GB

Regards

Support

-----Original Message-----
From: AndrewStrong [mailto:andrew.xxxxx@xxxx.com]
Sent: 17 June 2016 21:37
To: Merchandise Mania
Subject: [Canonical] Enquiry from Canonical Store

A new enquiry has been made on the Canonical Store.

Name: AndrewStrong
E-mail: andrew.xxxxx@xxxx.com
Enquiry Type: Sizes

Message:
Hi,

Concerning:

The \'Bootable USB stick\' SKU code: UBN30056-M

Can you tell me what is the capacity of the stick?

Thanks,

Andrew Strong

Note by the way that the Canonical Store Support uses Microsoft Outlook 14.0 :)


Is it possible to decrease the font size in the Firefox bookmarks bar?

Firefox like other Mozilla based UIs (like Komodo) are all controlled by css and unfortunately there's no few button clicks to do this AfAICT.

However, if you're creative you can go nuts see the links here and here. Otherwise, other people have for you at usersytles.

If you want to go it on your own this and this should help.


Upgrade to 20.04, mouse and keyboard don't work - any idea how I fix this?

Have a similar issue using gdm. Try to temporarily boot GRUB with no X-Server/graphics running: press 'E' during boot choice and add 3 at the end of line linux /boot/vmlinux etc. after ro quiet splash
You should now be able to login using the console, if nothing shows up on screen press Ctrl+Alt+F1 and login.
Next, stop gdm: sudo systemctl stop gdm
You should get some output in the terminal. Next restart gdm: sudo systemctl start gdm
This should now bring up your desktop with mouse/keyboard working, worked for me.


Install compiz-plugins-extra
sudo apt-get install compiz-plugins-extra

http://www.ubuntuupdates.org/package/core/precise/universe/base/compiz-plugins-extra


I'm assuming you're using Ubuntu. If so, did you try Software Centre? does pretty much what you need. You select the software you want to install from a pretty graphical screen and it takes care of downloading and installing for you.

You mention that you'd like to install apps that are not available in Software Center. It'd be useful if you could provide examples. Most common-use applications are packaged and available in USC. Part of the reason is that apps distributed as source are considered of "intermediate" difficulty to install, you will need to use the command line for those, and even distros that compile everything, such as Gentoo, require someone to come up with a set of rules for how to compile each application.

That said, if you have specific applications that you'd like to see available in Software Center, and it's something that is likely to be of general use, you can request an Ubuntu package by following this procedure.


When i use gconf-editor to look for apps-->gnome-power-manager that key does not appear

Open System Settings and go to "Power"
and change when lid is closed to "do nothing"

see screenshot:

BTW, the power settings are now stored in dconf, that means you would have to use dconf-editor and go to org/gnome/settings/daemon/plugins/power to change the settings.  However, that wouldn't make any difference in your case.


The tutorial you've found is unfortunately very old. To generate a SSL cert run the following:

mkdir -p /etc/apache2/ssl
openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem -keyout /etc/apache2/ssl/apache.pem
ln -sf /etc/apache2/ssl/apache.pem /etc/apache2/ssl/`/usr/bin/openssl x509 -noout -hash < /etc/apache2/ssl/apache.pem`.0
chmod 600 /etc/apache2/ssl/apache.pem

This will create a SSL cert that expires in 365 days. To adjust the lifetime just change the -days 365 argument.
Make sure that /etc/apache2/ports.conf contains something like:

<IfModule mod_ssl.c>
    Listen 443
</IfModule>

Assuming you still enabled SSL (sudo a2enmod ssl) you need to create a new virtual host. For example create a file /etc/apache2/sites-available/svn, containing among others:

NameVirtualHost *:443
<virtualhost *:443>
        ...
        SSLEngine On
        SSLCertificateFile /etc/apache2/ssl/apache.pem
        ...
</virtualhost>

and enable this site with sudo a2ensite svn. So you have a site that listens for SSL connection. I hope this helps.


A resync should occur when the Ubuntu One client reconnects to the service.

You can force this by opening the Ubuntu One control panel, and clicking the Disconnect button in the top right, and then clicking the button again (it should now have the label Connect).


Need help regarding installation of Ubuntu 13.04 on Windows 7 PC

It sounds like you're not booting (starting the computer) from your USB drive. This can occasionally be because your computer isn't capable of booting from USB devices (especially on older computers), but it's actually more likely that your regular hard drive is higher up in priority than the USB drive. This is very easy to fix, but if these instructions don't help or if they're confusing, please come back to me with your computer's full make and model.

Usually, when you turn on your computer, there is what's known as a "splash screen". Some computers, instead of displaying a splash screen, show the computer's power-on self test. This is where the computer counts the amount of available memory, etc.

On this "splash screen" or self-test screen, there are usually a few notices similar to:

Press DEL to Enter Setup, or Press F2 for Setup

Press F12 for BBS Popup or Press F12 for Boot Selection or Press F12 for custom boot.

What you want to do is enter the boot selection menu and then boot the computer from your USB drive.

If you're using a computer that doesn't allow manual boot device selection, you'll have to go into the computer setup to prioritise USB boot over Hard Drive boot. This is also relatively simple, but it can be daunting at first. For precise instructions, please add a comment to my answer with the full make and model of your computer so I can help better.

Usually it's either DEL or F2 to enter setup. From there, you want to look for a "Boot" menu and move USB up in that list.

It might actually be easier for you to run the Windows Installer (wubi), which you can download here:
http://www.ubuntu.com/download/desktop/windows-installer

It lets you install Ubuntu directly from Windows which makes it very, very easy to do!

If you're new to Ubuntu, I definitely suggest using the 12.04 LTS version rather than 13.04. 12.04 LTS is very stable, reliable and easy to use, and once you're an expert with 12.04, you can upgrade easily from within Ubuntu.

Edit:

Okay, it looks like you need to disable UEFI and Secure boot, if they are enabled. Go into your computer's BIOS Setup (using DEL or F2) and in a section such as Security you should have an option entitled "UEFI Enabled", and possibly "Secure Boot". Ensure that these are disabled and you should have more luck.


How long does it take to get an application reviewed for Ubuntu?

It looks like you can get the status of the reviews here:

https://bugs.launchpad.net/ubuntu-app-review-board

Of particular interest is I noticed a comment on this one:

https://bugs.launchpad.net/ubuntu-app-review-board/+bug/763937

It looks like the review process is taking unusually long at the moment as there was some change in the internal tools. As such, I don't think your experience will be typical compared to past review times.


Open Source Ubuntu alternative to Quickbooks

There are lots of Open books alternatives

GNU Cash (Open Source)
Odoo (Not open source, but free)
Home bank (open source)
Zipbook (Free) etc

Take a look here http://alternativeto.net/software/quickbooks/?license=free

Suggested by NonLinearFruit in a comment

KMyMoney


#!/bin/bash & zsh emulate: The first line declare that this script is running in bash. So, why there is a emulate, which is from zsh?

The first line, the shebang, only indicates that if the script is executed directly, it would be run using bash. Nothing prevents you from running it using zsh:

zsh admin.sh

I don't know why the author thought to test for zsh, but they did. This section of code is for zsh, and won't run in bash:

emulate sh
NULLCMD=:
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage.  Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST

  alias -g '${1+"$@"}'='"$@"': I just input this on another bash and get the error: -g :invalid option, I'm confused about the difference of zsh & bash, and how they work together. Could you explain it to me, please?

That's a very broad question. I won't explain all the differences of zsh and bash - go read the documentation of both for that. For the specific point of alias -g, zsh has global aliases. In bash, aliases are only substituted at the start of the line. In zsh, alias -g defines global aliases which are substituted everywhere in the line.

So, in zsh, if I do:

alias -g foo=bar

And then run:

echo foo

The output will be:

bar


sddm blocks screen with on-screen keyboard in Ubuntu 20.04

I have had a similar problem and just discovered a solution.
First up don't try another display manager with Plasma. I was using another one until recently and my sytem (Ubuntu 20.04 server) was stalling on boot. I had to put it to sleep and then wake it to get a login screen. I switched to sddm and solved that problem immediately (also clearing an error with notifications in the Plasma GUI), only to be confronted with the annoying on screen keyboard.
Everything online said there should be a configuration file, sddm.conf, in /etc/. They said you should find the line which started "InputMethod=" and make sure there was nothing after the equals sign. On my system there was no such file. I saw somewhere that it might work if I added the file. At the command line I typed "sudo nano /etc/sddm.conf" and it opened a new file. I simply typed "InputMethod=" on the first line (nothing else) and saved the file. Problem solved, no more on screen keyboard at login. From what I've read I think I know what's happening but I'm really not sure (I'm an ignorant noob). I just know it worked for me


OK i experienced that you run the command below before you go into CTRL + ALT + F1. if you run if afterwards. it will just advise you to run a different command.

sudo /etc/init.d/gdm stop

I was running this command to install Nvidia drivers manually.


It is difficult from your description to know what went wrong. It is possible to replace the file casper-rw with a partition with the label casper-rw and an ext file system (ext2, ext3 or ext4). I have done it manually, so I know that it works.

Maybe the easiest solution for you is to install mkusb and let it start from the beginning. It creates a casper-rw partition for persistence automatically.

You can decide how much of the available drive space to use for persistence. The rest (of the available drive space) will be used for a usbdata partition, available also from Windows.

See these links

help.ubuntu.com/community/mkusb

mkusb/persistent


Messenger program that supports MSN protocol and supports unity bar?

Pidgin does have a icon that runs in the Notification Area but all but the default applets are disabled.  They can be enabled one at at time or you can enable all.

To do this you will need to add applications to the whitelist.

To whitelist all applications enter the following into a terminal...

gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

To enable only certain applications enter the following into a terminal

gsettings set com.canonical.Unity.Panel systray-whitelist "['YOUR_APPLICATION']"

so for pidgin only it would be

    gsettings set com.canonical.Unity.Panel systray-whitelist "['pidgin']"

once that is done you ca have the notification icon blink on new messages, just right click on the icon and then select blink on new message, the notification icon will then blink on a new message.

The following page is my source for the commands to whitelist applications in the Unity panel, it also includes a GUI way to edit this and other settings via
dconf Editor but use this tool carefully you can really bork your setting with it.

The source page is...    http://www.webupd8.org/2011/04/how-to-re-enable-notification-area.html

NOTE:  The above directions will cause the icon to blink on a new IM but not an email;  you didn't specify but as you didn't mention email I assumed that you meant IM's...  as far as I know there is no way to get it to blink with an email, you can only get the momentary wiggle of the Icon in the launcher for a email...


Reinstalling Ubuntu. Stucked at Grub and bootable USB is not booting

I needed to press esc before Grub shows up to change boot orders!


a drbd node on 8.4 can replicate to a node with drbd 9.0 , BUT NOT THE OPPOSITE

The process  is well documentated on the website of linbit ( creator of drbd ) .

https://www.linbit.com/drbd-user-guide/drbd-guide-9_0-en/#s-upgrading-drbd


CUDA error while installing, help to uninstall

There is a conflict between the driver CUDA wants to use (nvidia-390) and the one you have installed. I had the same problem: "which is also in package nvidia-340..." For me this was solved by first purging the old nvidia driver

sudo dpkg -P nvidia-340

Only then would

sudo apt --fix-broken install

work. You can purge everything via

sudo apt purge nvidia*

sudo apt purge cuda*

You can move on to get the newer nvidia drivers

sudo apt install nvidia-390 nvidia-390-dev

Installing the nvidia-384 drivers should also work, but I'm not sure about that.


"This computer currently has no detected operating systems" when installing

I had a similar problem where somehow I had two conflicting partition tables. I used the livecd and then used a utility called fixparts which sorted the problem out. Details here: http://www.rodsbooks.com/fixparts/.


/opt and /usr/local on the same partition but not under root

I wouldn't say that symlink is a problem. It's already very bad if a symlink lookup affects the performance too much :) Also you may expect that it's cached, in a way that it won't be read from the disk each time, if it's really a "commonly-accessed" directory. But I think, /opt and /usr/local is not so much used on a standard Ubuntu install, /usr/local is used more for your own stuffs you compile from source (this is not the correct definition but usually this is the case), while /opt is used for "optional" softwares. But not so much softwares are installed there normally on Ubuntu, maybe some Google softwares for example, if I want to find an example. Anyway, even if these directories are heavily used, I wouldn't say that a symlink would mean lots of differencies, I would not worry if I were you.

You have another choice as well. Let's say you have a separated filesystem for /opt and /usr/local, for example /dev/sda6. Mount it as /opt. Create a directory inside /opt, let's say it's usrlocal. Then you can use VFS bind to "mount a directory" (not so correct notion technically but never mind ...) this way:

mount --bind /opt/usrlocal /usr/local

Of course you can put this into your /etc/fstab too, so you don't need to do this manually with a line like this in your /etc/fstab:

/opt/usrlocal /usr/local none bind 0 0


How can I toggle between Tree View and Places in Nautilus?

Try this if instead of places you prefer a tree view of your folders placed on the left panel, use this command

gsettings set org.gnome.nautilus.window-state side-pane-view "tree"

To revert it back

gsettings set org.gnome.nautilus.window-state side-pane-view "places"

There is no shortcut that I know of but you can create a small scrip that does that for you and bind it to a kb shortcut, if you are interested drop a comment, I'll make one for you.


Haven't used it myself, but this is supposed to work with Outlook Web Access on Ubuntu:
DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway