Is it possible to recover data stored on hard drive with windows with ubuntu live?

Yes.

Windows uses NTFS as the default filesystem. Ubuntu uses ext4, but has native support for a wide variety of other filesystems, including NTFS (with the ntfs-3g driver).

When you run Ubuntu from a Live media you'll be able to access Windows' drives from the file manager, using the left "devices" bar.

But considering the specs of your boss's computer, you'd have way better performance at recovering the files by using a less resource consuming Ubuntu flavor, such as Lubuntu or Xubuntu. Since it's a simple recovering job, I'd recommend Lubuntu for its smaller size.


How to invert screen colors in Unity without using CCSM

Install xcalib package, e.g. in terminal (Ctrl+Alt+T):

sudo apt-get install xcalib

Switch to inverted colors in terminal using:

xcalib -i -a

And switch back using the same command.

Add the command (xcalib -i -a) as a new keyboard shortcut (nice choice is Ctrl+Alt+I) or to start up applications. (Edit: You may need to restart to be able to use the short cut.)

I'm using this regularly on Ubuntu 12.04 (with Unity) but also 10.04 worked as well as 13.10 works now. An alternative is magnifier -z 1 -fi from package gnome-mag, but this is no longer available in Ubuntu 16.04.


MAAS PXE_BOOT: How can i limit what images are downloaded from the command 'import-boot-images'

In MAAS 1.5 and later (included in Ubuntu 14.04 Trusty) the architecture has changed, so now the recommended way to import boot images is through the Web UI of MAAS at the "Clusters" page, clicking the "Import boot images" button. Alternatively, using the MAAS CLI commands, run:

$ maas my-maas-session node-groups import-boot-images

The configuration file that defines what images to download is in /etc/maas/bootresources.yaml. It looks like this:

boot:
  sources:
  - keyring: /usr/share/keyrings/ubuntu-cloudimage-keyring.gpg
    path: http://maas.ubuntu.com/images/ephemeral-v2/releases/
    selections:
    - arches:
      - i386
      - amd64
      labels:
      - release
      - rc
      release: trusty
      subarches:
      - generic
    - arches:
      - i386
      - amd64
      labels:
      - release
      release: precise
      subarches:
      - generic
  storage: /var/lib/maas/boot-resources/

To limit what gets downloaded, remove one or more entries from the list of arches, labels or subarches. For example, to only download images for series trusty-release-amd64-generic, leave only this in the file:

boot:
  sources:
  - keyring: /usr/share/keyrings/ubuntu-cloudimage-keyring.gpg
    path: http://maas.ubuntu.com/images/ephemeral-v2/releases/
    selections:
    - arches:
      - amd64
      labels:
      - release
      release: trusty
      subarches:
      - generic
  storage: /var/lib/maas/boot-resources/

Hope this helps! MAAS documentation about that needs to be updated to include this, so thanks for reporting it - I've filed a bug for it.


I suggest you to use iat (”Iso9660 Analyzer Tool“):
First install the package
sudo apt install iat

You can convert the image using the command
iat file.img file.iso

In my case, the tool ran for about half a minute (~3GiB image file). The output looked like this:
Iso9660 Analyzer Tool v0.1.3 by Salvatore Santagati
Licensed under GPL v2 or later

Detect Signature ISO9660 START at 32768
Detect Signature ISO9660 END at 36864

 Image offset start at 0
 Sector header 0 bit
 Sector ECC 0 bit
 Block 2048
Done

According to the man page, the supported formats are (at least) BIN, MDF, PDI, CDI, NRG, B5I, and, of course, ISO-9660.
additional info
Iso9660 Analyzer Tool is not maintained anymore. It had been published to BerliOS, which is not online anymore. However, here are some working links:

archived web page
archived project page
inofficial mirror
latest release, officially backuped by BerliOS+SourceForge

a list of ”reference sites“:

iat at Repology
iat at Open Hub

some links which might be interesting for you if iat is not what you need:

Wikipedia: Comparison of disc image software
LinuxQuestions.org wiki: CD Image Conversion


Show us your mounts.

cat /etc/fstab
mount

There's very little to go on here, but I will hazard a guess that you're trying to change permissions on a file system like vfat that simply doesn't have anything like *nix ownership and permissions.

For such filesystems, you should focus on the "uid=NNNN,gid=NNNN" options in the fstab that define what the mount will "pretend" are the owner and group for the contents.


Middleclick leads to page back in Firefox

Hm, it seems that you changed a setting.

According to the default setup a middleclick in some area should not go backwards in history.

Sometimes I accidentally paste an url with a middle click somewhere in a page... Could that explain the behaviour you see?


Half of screen is missing after fresh installation

Since it has an Nvidia GFX card, you should try the Nvidia propriety drivers. You can find them through System Settings > Additional Drivers.

Unless you already are using those .. Then you should have a look at the Nvidia X Server Settings tool.


gnome-passwordsafe is available on Ubuntu 21.04 Hirsute Hippo in the Proposed repositories.


Touch-pad's two finger scrolling not working after sleep sometimes in Lenovo ThinkPad X1 carbon

I'm having the same issue. I could manage this using a temporary workaround by removing the touchpad module from the kernel and adding it again.
To remove:

sudo modprobe -r psmouse

To add again:

sudo modprobe psmouse

After that scrolling works for me.


How can I reset recent documents on every login?

You might like BleachBit, with a version for Ubuntu 8.04 - 11.10.

  BleachBit quickly frees disk space and tirelessly guards your privacy. Free cache, delete cookies, clear Internet history, shred temporary files, delete logs, and discard junk you didn't know was there. Designed for Linux and Windows systems, it wipes clean 90 applications including Firefox, Internet Explorer, Adobe Flash, Google Chrome, Opera, Safari,and more. Beyond simply deleting files, BleachBit includes advanced features such as shredding files to prevent recovery, wiping free disk space to hide traces of files deleted by other applications, and vacuuming Firefox to make it faster. Better than free, BleachBit is open source.


Is it possible to create two Gmail web-apps for two Gmail accounts?

No, it's not possible to have 2 sepparate Web Apps for 2 accounts. They are just shortcuts that provide unity integration.

However, you can be logged in to 2 or more e-mail accounts on one gmail account. You just need to click on your profile image in Gmail and select "add account" (or something like that). That's a quite simple solution. Though, I'm not sure it will privide the same Web App integration as I'm not using this feature at the moment.


Ubuntu Install wont recognize partitions

Make sure you backed up your disk before messing with it.  I use "Redo" to get an image of the disk before I tweak things.  https://sourceforge.net/projects/redobackup/

It wasn't clear from your post whether Ubuntu is seeing the disk onto which you wish to install Ubuntu.  Is it seeing that disk at all, or just not seeing the partition?

If it is not seeing that disk at all, try rebooting from the Ubuntu USB disk and then running GParted to look at and/or edit the partitions you created.  Make the partition where you want it to install Linux an "ext4" partition.  Make sure it also has a partition with "linux-swap" as the file system.  Usually, these are made for you by the installation process, but if it isn't seeing the disk, it might be necessary for you to create them and then install to them.  But be sure you are backed up before you do this.

I'm sure there are gurus here who know better than I do, so I defer to them.


What is the "Banner Designer" application thats pre-installed? and available for notifications on Ubuntu 17.10

Banner Designer is part of GNOME Software.  The package is "gnome-software"

From a terminal you can run gnome-software-editor

It was introduced as part of this commit.

Banner Designer is used to create the application specific info panes (Click on an application) you see in GNOME Software.

As the commit says, an appdeveloper can open their applications appstream file; they can format, add colours etc using CSS before saving it out in appstream format again.

GNOME Software reads an applications appstream file and displays that to the end-user.


systemd-networkd daemon does not start the DHCP client

Just in case people aren't aware - systemd-networkd now contains its own in-built DHCP client implementation so no external DHCP clients would be started unless they're configured elsewhere.

The configuration is controlled by a number of configuration files as described in the systemd-networkd man page. With Ubuntu18.04 network configuration (/{lib,etc,run}/netplan/*.yaml) is now controlled by netplan which will generate configuration files for systemd-networkd (/{lib,etc,run}/systemd/network/).

Specifically the DHCP client operation is controlled in the systemd.network config file - it can be enabled in the [NETWORK] section of the config file using the DHCP directive (it defaults to "no") and configured the [DHCP] section.


Your CD/DVD drive is always recognized. However,you will not find a icon for it unless you have mounted any CD/DVD. Once you mount a CD/DVD,you can find it in /media/DISC_NAME.


There is a really useful website for that.

  http://repogen.simplylinux.ch/


Using 2 factor authentication syncing gmail contacts with evolution

There is an easy fix.

open seahorse which is for some reason listed as "passwords and
keys" in the  Ubuntu applications menu
open the Passwords tab
find the google:// entries for your google contacts
open that entry or entries and expand the password dropdown at the bottom
reset or enter your new password
rejoice in contacts sync


Can anybody explain me clearly that how to get ubuntu TV working..?

I understood everything very clearly NOW from this site..

http://en.the-ghost.com/2012/01/how-to-install-ubuntu-tv-on-any-tv.html

iT is not so good..I mean I will need to use 2 devices to run 1 device/..


14.04 Live USB stick can't install nodejs

This should work:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
sudo apt-get update
sudo apt-get install nodejs


PackageKit doesn't seem to be working on kubuntu

To fix the problem you have to install gnome-packagekit package.


Can't install Ubuntu, black screen after install

Have you been able to boot into (and use) the OS from the live disc? Can you access the recovery command line without problems?


kindly note that nymgo isn't compatible with ubuntu thus it might crashes under virtual software like wine. However you can use any sip client that is compatible with your OS and configure it with our service. use ata.nymgo.com as the sip server.


You can disble apache2 using command:

sudo systemctl disable apache2.service

Or you can mask it

sudo systemctl mask apache2.service


How to boot system with systemd as init system (PID 1)

As far as remember WSL doesn’t have systemctl but redis; initd has been deprecated in favor of systemd, there is a nice story about Linus thoughts and the unnecessary change.
Try with
sudo /etc/init.d/redis start


Why does Software Centre ask for root password when the default is for root to be disabled with no password set?

I have never seen Ubuntu Software Center ask for a root password. It's not supposed to, and it won't happen unless you do something special to your system. What is supposed to happen, is that it uses Policy Kit, which will ask you to select a user and enter a password for that user.

PolicyKit is much more suitable for this than gksudo, since sudo will allow access to commands, whereas PolicyKit allows access to actions such as org.debian.apt.install-or-remove-packages. If instead you provided access to run apt-get, then you could do anything apt-get can do, which is way too much power. You might, for instance, grant permission for all users to install security upgrades from official Ubuntu archives, but not allow the user to install new software. That wouldn't be possible to do with sudo.

I would check to see if you've removed the package policykit-1-gnome.


This from the Grub Customizer Launchpad.net page
"Grub Customizer is a graphical interface to configure the grub2/burg settings with focus on the individual list order - without losing the dynamical behavior of grub."

You can do almost all kinds of customization with it including, but not limited to:

Reordering, renaming and disabling entries
Changing background
Changing timeout
Visibility and lot more.

It can be installed with the help of PPA. To install it use the following commands:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

After installation it can be found at Applications -> System Tools -> Grub Customizer


I don't know if this would meet your needs, but in Xfce you have the Places plugin that can show a list of recent files.

After adding it to a panel, simply right-click on the plug-in, access Properties, then enable Show recent documents. You may even configure the number of recent documents to include in that list. Then you can access that by left-click on the panel plug-in, then Recent Documents.


Is there a plugin for Rhythmbox to exit on close?

Close-on-Hide External Plugin
Well, I took up the challenge and wrote an external plugin that does just this - clicking the close button (window "x" button) really does mean quit.
In the default way of working, Ubuntu has a specific patch to ensure that when music is playing, clicking the close button minimizes the application.
The reason for this is that some people like music to be playing, but they don't actually want to see the application visibly on the desktop.  Control of rhythmbox then passes to the Sound Indicator.
However, for those that do not like this behaviour, you cannot by default quit the application via the close button when something is playing.
how to install for RB3.0 and later
sudo apt-get install git
cd ~/.local/share/rhythmbox/plugins
git clone https://github.com/fossfreedom/close-on-hide

Start rhythmbox and enable the "close-on-hide" plugin in the plugins menu (Tools - Plugins menu)
If you are using RB2.99 and earlier - edit the .plugin file in the close-on-hide folder and change the line Loader=python3 to read Loader=python


Kindly restart your system. Because your administration directory is locked by other process. So a restart would do the miracle. Hope it helps!


Performance with Intel skylake 6500U with integrated graphics HD 520

I'd like to share my experience with a similar issue.

I recently bought a laptop with the same processor and I was experiencing problems with graphics.
I necessarily have to work with Ubuntu 14.04 but it was not recognizing my laptop's hardware (skylake not supported). I had to install manually kernel 4.4.6 so everything worked properly, however I noticed compiz was taking more than 60% cpu. glxgears showed errors like:
"i965_dri.so does not support the 0x1916 PCI ID"
"libGL error: pci id for fd 4: 8086:1916, driver (null)", etc..
and framerates above 300.

The reason was the GPU drivers were not properly updated so the CPU has to do the job in its place. To solve it I ran the following commands:

sudo apt-get install --install-recommends linux-generic-lts-wily xserver-xorg-core-lts-wily xserver-xorg-lts-wily xserver-xorg-video-all-lts-wily xserver-xorg-input-all-lts-wily libwayland-egl1-mesa-lts-wily

which are installed along with kernel 4.2.

After reboot with my working kernel 4.4.6 glxgears shows proper framerates (around 60 FPS) and compiz CPU consumption is normal now.

I'm a newbie here but I'm happy to have managed to solve this problem, I hope this is also useful for others.


You should use ./ (current dir) prefix when you execute a script:

cd /home/myname/Music/iTunesToRhythm-master/
./iTunesToRhythm.py -w -a /media/MEDIA\ 1/SOUNDS/I\ Tunes/Library.xml ~/.local/share/rhythmbox/rhythmdb.xml

or

./iTunesToRhythm.py -w -a "/media/MEDIA 1/SOUNDS/I Tunes/Library.xml" ~/.local/share/rhythmbox/rhythmdb.xml

The reason is that current dir is not included to $PATH variable, because it may cause security risks. Somebody can override system commands this way.

There is question on SuperUser which explains why.

Also you should escape space bars inside filenames with backslash \ symbol. Simply place it before spaces. Or use double-quotes " around the path.


is ubuntu phone (or tablet) use X for display server?

I watched Jono Bacon talk answer a question about this on a ubuntuonair webcast, just a couple of weeks ago. As far as i can remember he said that it used the same server as Android. They are not going to use x (and neither would it be wayland). bit of a shock that:) To see what he had to say exactly you would have to watch the webcast. Ubuntu On Air has a channel on youtube
Cheers


I could not install educational desktop on ubuntu 16.04 LTS and cannot find it in software centre

In Ubuntu 16.04, open the terminal and type:

sudo apt install playonlinux gnome-mplayer edubuntu-desktop edubuntu-artwork edubuntu-docs edubuntu-fonts edubuntu-menueditor


Shell script to remove all files inside a folder except one

use find with the delete option

yiheng@DESKTOP-LIJQMSN:/mnt/c/Users/ihen$ ls folder/
a  b  c  d  e
yiheng@DESKTOP-LIJQMSN:/mnt/c/Users/ihen$ find folder/ -mindepth 1 -not -path folder/d
folder/a
folder/b
folder/c
folder/e
yiheng@DESKTOP-LIJQMSN:/mnt/c/Users/ihen$ find folder/ -mindepth 1 -not -path folder/d -delete
yiheng@DESKTOP-LIJQMSN:/mnt/c/Users/ihen$ ls folder/
d
yiheng@DESKTOP-LIJQMSN:/mnt/c/Users/ihen$


Bluetooth not working for HP dv 7 6b32 us

check if your have a hardware switch to turn signal on/off (Air plane mode). Or a FN key to turn it on/off

Run this command     rfkill list all
to check if BT is turned off via a kill switch

Also check this to see if Ubuntu recognized your BT.
How can I tell if my laptop has Bluetooth?

Does BT work in Windows 7 boot?


apt-get install --reinstall --install-recommends not installing a recommended package

From apt-get manpage:

install
  ...
  This is also the target to use if you want to upgrade one or more
  already-installed packages without upgrading every package you have
  on your system. Unlike the "upgrade" target, which installs the
  newest version of all currently installed packages, "install" will
  install the newest version of only the package(s) specified. Simply
  provide the name of the package(s) you wish to upgrade, and if a
  newer version is available, it (and its dependencies, as described
  above) will be downloaded and installed.
  ...

--reinstall
  Re-Install packages that are already installed and at the newest version.

If you provide (to install) the name of a package that is already installed, it will be upgraded as well as its dependencies (if necessary). Note that a recommended package is not a dependency.

Also, --reinstall re-installs only the packages that are already installed.

--install-recommends has no effect in this case because no package is going to be installed (only upgrades). I think this is the expected behavior. If you choose to not install (or to remove) a recommended package, you will not want that package installed whenever you do an upgrade.

Maybe the recommended package wasn't installed at the first time due to download failure (or maybe something else).


Is there a way to install emoji and use them in Firefox?

Cold face and hot face emoji are too new...

https://emojipedia.org/freezing-face/

  noto-emoji committed on 11 Aug 2018: Update NotoColorEmoji font with
  new U11 images.

UPDATE:
Font package has new Emojis
https://bugs.launchpad.net/ubuntu/+source/fonts-noto-color-emoji/+bug/1788256

Problem with GTK Emoji picker.
https://launchpad.net/ubuntu/+source/gtk+3.0/


Here we go again...

This is currently a bug with NVIDIA's drivers, and is pending a fix on their end. In the meantime, a bug against Compiz was opened to solve the same issue. While we wait for someone to fix this, there are still workarounds:

Downgrade Drivers
This bug was introduced after driver 367.57. Therefore, just downgrading to that version (or lower) will resolve this issue. Some users have reported success downgrading to 370.28 as well.
Switch to Intel graphics
If you're running NVIDIA Prime/Optimus, switching your system to use the integrated Intel card will resolve this issue. Note, however, that this will result in a pretty sharp performance loss.
Use An Experimental Patch
Kai-Heng Feng from the aforementioned Compiz bug report has released a modified version of unity on his PPA which resolves this problem pending a more formal fix from either Unity/Compiz or NVIDIA. To install this patch, run the below commands, and then reboot:

sudo add-apt-repository ppa:kaihengfeng/lp1292830
sudo apt update
sudo apt full-upgrade

In the meantime, a temporary workaround to this same problem would be to run the unity command from a terminal or the Alt-F2 menu every time this issue is encountered.


Where do programs installed with apt-get come from?

Software obtained / downloaded  using the apt-get command in terminal is software stored in known/verified repositories or software channels from ubuntu. There are variants to the APT command that allow you to add software from other sources. Repositories are software channels.

You can check to see what repositories you are set up to use by checking what "software sources" are available to your system by checking the repository list.....

open Synaptic Package Manager
go to settings
click on repositories

here you can look at and configure all the software sources - or only use trusted.. etc...

if you check the tab that says "other software" you will see a more complete list of the servers your computer is set to receive from...      some of the ways to update this list etc  are in the link you provided


Screen resolution not proper in Samsung N100S

Install Intel binary Xorg driver for GMA3600 (Cedarview) GPUs!

a). still not full performance but works with 2d acceleration and I could play 720p videos with out problem.

b). Adjust brightness with Fn Keys Work!

How to do?

First install generic kernel, reboot and and make sure you're using this kernel:

sudo apt-get install linux-headers-generic linux-image-generic

Remove pae kernel with their respective headers & reboot at the end of this:

sudo dpkg -l | grep linux-image (This will show kernels on your system)
Remove all package related with pae kernel: sudo apt-get --remove purge "name of package"
sudo dpkg -l | grep linux-headers (This will show headers on your system)
Remove all package related with pae headers: sudo apt-get --remove purge "name of package"

Install the cedarview drivers:

sudo apt-get install cedarview-drm libva-cedarview-vaapi-driver cedarview-graphics-drivers

Update the Grub Bootloader

sudo update-grub2

Reboot the System and joy!

NOTE: can activate 3D acceleration test, to see if it works.
      For this,change Option "AIGLX" to "On" (default settion):

sudo gedit /usr/share/intel-cdv/X11/xorg.conf.d/61-cdv-pvr.conf


Desktop is black, not visible (Lubuntu 20)

If you can get a terminal type
lxqt-config

Then select the desktop and see how you go. Then if you reboot it should come back.
As for the lxqt-session, if you get your desktop back, close this question and ask a new question with just those details. Viel Glück


Increase root size, shrink /home size, on console

Your partition layout is something like this (correct me if I'm wrong):

| root | usr | var | tmp | home |
       |        extended        |

To do what you want, you will have to:

Shrink /home in 10GB (and maybe move it 10GB to the right);
Move to the right 10GB /var, /tmp and /usr;
Grow /usr in 5GB;
Shrink the logical partition in 5GB;
Grow / in 5GB

I would not say it is impossible, but I see many ways this could go wrong.

I faced a somehow similar situation and decided to backup everything to external disks and recreate everything. If you have the resources to do this I advise you to do so, as you reduce a lot the risk of data loss and you should save a lot of time (move/shrinking partitions can take some time).

If you don't have the possibility to do as me, as you are running in a terminal system I think the best tool to do that is parted. It lets you resize and move partitions.

Note: if you choose to recreate everything, I strongly advise you to use LVM. In a situation like this it would make unnecessary to move partitions and growing/shrinking much more easy and safe.

Edit

As bodhi said, if you have the possibility to use a live CD/USB with gparted (which is included in Ubuntu) it will make your task much easier. GParted lets you resize and move partitions by just dragging.


Can I input Chinese character in Unity's dash?

Unity doesn't support Chinese, but you can use Kupfer, which can launch programs with Chinese names.

你首先要安装kupfer (First you need to install kupfer)

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

sudo apt-get update

sudo apt-get install kupfer
然后你需要打开kupfer. 你可以在Unity Dash里面找到 (Then, you need to open kupfer. You can find it in the Unity dash)
按照下面的图片来做 (Do the following steps)：

按Windows key + Space (Hold down the windows key and press space)


There is an application called wmctrl, which can help you. You can install wmctrl by command:

# apt-get install wmctrl

You can get list of currently existing windows by wmctrl -l and see titles and names of currently existing windows. Using titles, you can raise a window by:

$ wmctrl -a <string>

To automatize this procedure, you can start specific gnome-terminal with --title parameter to set its window title. Assuming you've run:

$ gnome-terminal --title=testing

You can run:

$ wmctrl -a "testing"

to raise that window, beware of that the string you used to select window should be specific to that window, shouldn't match with any other window's title.


Is there a software to control my wireless router?

Many wireless routers can be controlled from your browser. When you are connected to your router, try each of the following IP's. They are all local IPs, and it depends on how your network is setup that determines which one will work.

http://10.0.0.1/
http://192.168.1.1/
http://192.168.0.1/

If these do not work, find your local IP address using the following command:

ifconfig | grep "inet addr" | grep -v 127.0.0.1

My output is like this:

inet addr:10.0.0.9  Bcast:10.0.0.255  Mask:255.255.255.0

Change the last set of four digits after the inet addr: to a 1, and put that in your browser.

My local IP is 10.0.0.9, so my router would be at 10.0.0.1 (most likely).

If none of these work, your router may not support configuration over a web browser.


Check your network configuration files are same or not. These files are default configuration of Ubuntu.

Open Terminal and type these commands:

sudo nano /etc/network/interfaces

Now edit the file:

auto lo eth0
iface lo inet loopback
inface eth0 inet dhcp

Now save that file.

After this step you have to open another file via terminal.

sudo nano /etc/NetworkManager/NetworkManager.conf

[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=false

After doing this editing job. Run this final command :

sudo service network-manager restart

And then restart your Ubuntu.


Why does gwibber-service-facebook/twitter updates when I have uninstalled Gwibber?

If you uninstalled Gwibber using the command line (eg. sudo apt-get remove gwibber), or uninstalled Gwibber via the Software Centre, then only the gwibber package may have been removed.  This package contains only the user interface for the Gwibber client. The plugins (eg. gwibber-service-twitter etc) do not depend on it, and so may not have been removed

You also need to remove the gwibber-service package.  This package is responsible for the backend of Gwibber - account details, checking for new messages etc.  The plug-in packages (and the gwibber package) all depend on this.  Removing this package (eg. sudo apt-get remove gwibber-service) should prompt you that any plugin packages installed will also be removed.  Using the software centre, search for gwibber and click Show x technical items at the bottom of the search window.  gwibber-service will be listed here and may be uninstalled by clincking the Uninstall button.


looks like a variant of this problem:

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


Server: Upgrade to Quantal - Wrong Linux Kernel?

Typically the kernel selection is done via grub for most installations. If you enter:

sudo update-grub2

you should see what kernels it sees as viable for selection. Unless you've customized it, the first listed kernel should be the one selected at boot time.

If you look at /boot/grub/grub.cfg you should see the full rendered grub config for the probed kernels, if you need to troubleshoot further. It's a bit dense of a configuration file, however. To see what settings go into it, you'll want to look at /etc/default/grub and the files inside /etc/grub.d.


I can't send libre office document as attachments

Open LibreOffice, navigate to Tools -> Options -> Internet -> Email and set (eg. Thunderbird or Evolution as) default email client (usually located in /usr/bin/thunderbird & /usr/bin/evolution).


Why is zeitgeist daemon still in exitstance? How to remove the database

To disable it (run as normal user not root):

See if it's running with:

ps -ef |grep zeit
linuxaria  2085     1  0 16:31 ?        00:00:00 /usr/bin/zeitgeist-daemon
linuxaria  2093     1  0 16:31 ?        00:00:00 /usr/lib/zeitgeist/zeitgeist-fts
root      8372  8300  0 18:48 pts/0    00:00:00 grep --color=auto zeit

Disable the ability to read and write to the database file:

chmod -rw ~/.local/share/zeitgeist/activity.sqlite

Try to restart the daemon to be sure it out of commission:

~/.local/share/zeitgeist$ zeitgeist-daemon --replace

You should see this output if it's disabled:

[16:53:46.292663 WARNING] Could not access the database file.
Please check the permissions of file /home/linuxaria/.local/share/zeitgeist/activity.sqlite.

Need to reactivate it use these commands:

chmod +rw ~/.local/share/zeitgeist/activity.sqlite
 ~/.local/share/zeitgeist$ zeitgeist-daemon --replace

To tally remove it completely:

Check which zeist pacakges are installed:

dpkg -l |grep zeit

Result:

ii  gir1.2-zeitgeist-2.0        0.9.16-0ubuntu4  amd64  library    to       access     Zeitgeist  -        GObject   introspection  data
ii  libzeitgeist-1.0-1:amd64    0.3.18-1ubuntu3  amd64  library    to       access     Zeitgeist  -        shared    library
ii  libzeitgeist-2.0-0:amd64    0.9.16-0ubuntu4  amd64  library    to       access     Zeitgeist  -        shared    library
ii  python-zeitgeist            0.9.16-0ubuntu4  all    event      logging  framework  -          Python   bindings
ii  rhythmbox-plugin-zeitgeist  3.3-1ubuntu7     all    zeitgeist  plugin   for        rhythmbox  music    player
ii  zeitgeist                   0.9.16-0ubuntu4  all    event      logging  framework
ii  zeitgeist-core              0.9.16-0ubuntu4  amd64  event      logging  framework  -          engine
ii  zeitgeist-datahub           0.9.16-0ubuntu4  amd64  event      logging  framework  -          passive  logging   daemon

Taking values from the second column remove the pacakages:

sudo apt-get purge gir1.2-zeitgeist-2.0  libzeitgeist-1.0-1:amd64 libzeitgeist-2.0-0:amd64 python-zeitgeist  rhythmbox-plugin-zeitgeist zeitgeist zeitgeist-core zeitgeist-datahub

Further reading:

https://linuxaria.com/howto/how-to-remove-zeitgeist-in-ubuntu-and-why


OpenForis Calc / embedded Tomcat won't start

I assume this is because Calc isn't able to access the PostgreSQL database. Double-check if PostgreSQL is running:

sudo service postgresql status

should return something like

9.3/main (port 5432): online

If PostgreSQL is running, check the credentials. By default, there's no admin password set for PostgreSQL. Calc assumes postgres as admin password, by default. So, if you didn't set a password yet, follow the instructions to do so:

Start the postgresql command line client as user postgres:

sudo -u postgres psql postgres

Inside the client:

\password postgres

Now, you can enter the admin password - you should choose a secure one!

If you want to change the password Calc is using (maybe because you've choosen a more secure one): open the following file with your favorite text editor:

/opt/OpenForisCalc/calc-server/tomcat/conf/Catalina/localhost/calc.xml

and look for a line looking like:

<Parameter name="calc.jdbc.adminpassword" value="postgres" />

EDIT:

If you still encounter problems, you should check the logs directly. You'll find them in

/opt/OpenForisCalc/calc-server/tomcat/logs

There should be a log file calc.log - check its contents for errors.


How to remove a locale (i.e. to drop it from `$LANGUAGE` variable)?

sudoedit /etc/default/locale

Edit the LANGUAGE variable to remove en_CA. Then reboot.

After that you can run localepurge to remove old locale files.


The package geda-gschem in Ubuntu 13.10 depends on libgeda42, not libgeda43. Try running these commands from the terminal:

sudo apt-get -f install libgeda42
sudo apt-get install geda-gschem

The -f flag in the first command will force Ubuntu to also install the libgeda-common1:1.8.1-3 package which is available in the Ubuntu Software Center in Ubuntu 13.10.


Is it possible to use windows drivers in Ubuntu?

Ndiswrapper is an 'app' for installing wifi drivers, but for your dongle i don't think there is something similar.

You could try installing another kernel from Ubuntu's kernel archive if you find relevant info that it works with your device, but i can't recommend doing it..


Debian packages (.deb, used also by Ubuntu) are packages consisting of compiled binaries (unless you want the source code package). This means that during installation, there is no need for a compiler - the necessary files are already compiled, they are just unpacked.

It should be safe to purge the offending gcc and install the version from the main repository, but there is no guarantee it will work without problems.

To help you get rid of the PPA from which you installed gcc4.7, take a look at PPA-Purge, which helps you with cleaning custom PPAs - it will automatically downgrade all packages to official version and remove the PPA from the system.


Trigger Activities overview at key press instead of release

It might not be a good idea to trigger Activities overview with Super at key press instead of release. If you could do it without breaking the function of Super as a modifier key, then also pressing it with another key would switch to the overview each time.
Instead, you may consider using the default keybinding Super+s to switch to the overview. The existence of that shortcut also will allow you to just keep the Super key pressed, and move workspaces within the overview with the number keys. Hit s again (or press Esc) to land on your workspace.
Some bonus tips

Discover Super+a that takes you to the application overview.
If you find that the Super alone sometimes triggers you to the overview by accident, then disable it with the command gsettings set org.gnome.mutter overlay-key ''.


Low disk space (free space was > 500 GB yesterday)

It's entirely possible that some file is bloating and eating up your space. I am remembering an old X-org bug where text files would use all your available disk space for logging errors or whatever until you disabled it.

Try running this command in the terminal:

find / -size +1G -type f -exec du -Sh {} + | sort -rh | head -n 5

You'll probably get a lot of "permission denied" errors, but that should be fine. If a file is ballooning out of control, I would suspect the file will be somewhere in space where you do have permission. That command will return the size and location of the 5 largest files on your system.

If that command does not work due to your lack of space (I think it will), you may have better success doing something like:

find / -size +1G | grep -v find | less

Which should find any file on your computer that is larger than 1 gigabyte in size, filter out any errors, and present the results for your review. You can then investigate any unfamiliar files.

If there is a file growing uncontrollably, you should then be able to delete it or conduct additional research on what it is - it may be a bug or a log you can disable.


How do I use bold font in terminal? (echo/cat)

Here's how:

echo -e "text \033[1mbold\033[0m text"

See "Colorizing" Scripts tutorial.

It's not possible to do for cat that way. cat will merely print the characters of the file onto standard out. The closest thing I can come up with is the following:

If you put text \033[1mbold\033[0m text you can do

echo -e `cat test.txt`


There are two places where language settings for a user are handled.

From account settings, where you (as administrator) can set the default language for any user (even after the user existed and worked for some time)

For every user individually via Language settings, where he can drag his preferred language to the top (Everything below English gets ignored)


Mounting a network folder on a local computer

You appear to be trying to connect to a Samba share (cifs)

This has been helpful to other users.

In answer to your comment, No. If your not sharing with Windows users you can simply use NFS which is typically faster.


Samsung 2955 laser prints error pages before and after printing document - Invalid page range: none printer-location= marker-level 52

I've started experiencing the same thing with my Samsung M2875FW printer. It's only just started, but that might be because of the change from Google cloudprint to direct printing. I can work around it by using "Print using system dialog" in chrome.


How can I run OpenVPN as root in the background, in a script?

TL;DR: Use sudo -b or, better, openvpn [...] --daemon.

Since you're running openvpn (and, less specifically, since you wish to run a program as root in the background), the most commonly dispensed information about how to run commands in the background does not address your situation. You said:

  I've tried to append a & to the cpenvpn command and to place nohop in
  front of it. Both does not work.

Your command is:

sudo openvpn ~/my_connection.ovpn

Under sudo's default configuration, if you haven't recently entered your password for sudo in the same terminal (or have logged out and back in on that terminal) then it will ask for your password. But if you run the command in the background by appending & then you won't be shown the [sudo] password for user: line or given the opportunity to  type it in.

So in this situation, running the command, entering your password, and sending it to the background afterwards is an reasonable way to do it, for interactive use.

But it's not the only way and, as you say, you will not want to do that in a script.

Way 1: Make sure sudo has a fresh timestamp.

You can ensure that sudo has a current timestamp when it is used to run your command, by first running:

sudo -v

Then, after that, you can run:

sudo openvpn ~/my_connection.ovpn &

However, it is usually better to avoid & (and nohup) altogether when you want to  run a command in the background with sudo. This is especially the case for scripting.

Way 2: Use sudo -b. In general, this is usually what you want.

Instead, you can run sudo itself in the foreground, but pass the -b flag so sudo causes the command to be run in the background.

sudo -b openvpn ~/my_connection.ovpn

This is usually a better way, especially if you are putting the command in a script. With sudo -b you don't get job control, but in a shell script job control is disabled by default and you shouldn't usually use it.

As man sudo explains:

     -b, --background
                 Run the given command in the background.  Note that it is not
                 possible to use shell job control to manipulate background
                 processes started by sudo.  Most interactive commands will
                 fail to work properly in background mode.

This works because nothing is running in the background until after sudo has recieved your password (if necessary) and determined that you are permitted to run the command.

Way 3: But for openvpn, you should probably just run it with --daemon.

openvpn will run in the background automatically if you run it with the --daemon option:

sudo openvpn ~/my_connection.ovpn --daemon

Pass --daemon after your .opvn filename rather than before; the argument following --daemon, if any, is interpreted as the name that the daemonized openvpn process should use. (Do not also append &.)

Whether or not this is appropriate depends on whether or not any interaction must occur after openvpn has been run but before it daemonizes. And that depends, in part, on what is set up in ~/my_connection.ovpn. But if openvpn couldn't immediately daemonize, then all the other ways of immediately running it in the background will break, too.

Therefore, in any situation where you know you want openvpn to start running in the background, and you know you won't want to bring it back into the foreground, you should strongly consider the method of invoking it with the --daemon option. This is specific to openvpn--most programs do not support a --daemon option, though many server programs do have some such option. (The name and syntax vary, however.)

To decide whether or not to use this option (and how you want to use it), I recommend you read the openvpn manual page, especially in the section on --daemon. It has a lot of useful information, and I am only quoting the first paragraph here:

       --daemon [progname]
              Become  a  daemon  after  all   initialization   functions   are
              completed.   This option will cause all message and error output
              to be sent to  the  syslog  file  (such  as  /var/log/messages),
              except  for  the  output of scripts and ifconfig commands, which
              will go to /dev/null unless otherwise  redirected.   The  syslog
              redirection  occurs  immediately  at  the point that --daemon is
              parsed on the command line even though the  daemonization  point
              occurs  later.   If one of the --log options is present, it will
              supercede syslog redirection.

              The optional progname parameter [...]

Way 4: Sometimes it's reasonable to run the whole script as root.

If you have a script that carries out multiple actions as root, it doesn't have any significant activity that would reasonably be run not as root, and there's never anything useful to come from running the script as a non-root user, then the user of the script should probably just run it as root.

If this is the case, then you should remove sudo from commands in the script. When the script runs as root, there's no need for sudo. (Though the root user can, by default, run any command as any user including itself with sudo and doesn't need a password to do so. So if you do leave instances of sudo in the script then it will probably still work.)

If you have any instances of sudo in the script that are actually used to run commands as some other user than root (with -u user), then you should still keep those instances.

If the whole script is being run as root, then most of the typical ways of making commands run in the background apply, including appending & and, where needed, the use of nohup (which you already know about). For this, though, you should still strongly consider using openvpn with the --daemon option.


I don't see that your SAMBA or NFS will interfere with each other in any way.
Different protocols , different ports. And I've used both on the same server without issues.

But if your machine is in a production environment and are worried about installing things. You should have a copy of your production environment, a test study environment where you can try things out. and then move the features you have tested in to your production environment.


Is it possible to swap between Ubuntu And Win8.1 if i install Ubuntu on a external HDD

If by "swap" you mean booting into the different operating system (OS), then yes, it is entirely possible. Just install Ubuntu on the external hard drive, then ask the bios to boot into the external hard drive by default. Upon installation, Ubuntu will install the Grub (bootloader) that will allow you to choose which operating system to start. If you unplug the external hard drive, it will boot straight into Windows.

To recap:

Install Ubuntu on your external hard drive. It will automatically detect the other drive with Windows on it and set the bootloader accordingly.
Go in your bios and set the boot priority to External hard drive -> Internal HDD

However, if by swap, you mean actively flipping from one OS to the the other, well, you can't do that. It's not just two different programs running at the same time that you can flip between. The operating system (OS) is responsible for the interactions between the hardware pieces of the computer. The OS needs to have full control of the hardware at all times.

If you REALLY want to flip between the two systems, you can use a virtual machine. Basically, you can set, say, Ubuntu, to be able to start Windows inside itself. You would obtain the layers:

Hardware-> Ubuntu -> "faked hardware" -> Windows


Where did these Monochrome Thunderbird icons come from?

It seems it is part of the default theme according to this thread

The solution offered is to download another theme from the gallery.


How to add columns displaying Audio and Photo (EXIF) metadata information into Nautilus list view

nautilus-columns from ppa:nilarimogard/webupd8 works great. You can install it with:

sudo apt-add-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install nautilus-columns

These are the columns that are added:


How do I get my Guake terminal to look as fancy as this screenshot?

What you see in the screenshot is couple apps, actually.  Tripple split is done by screen as suggested by the name in lower right corner in the screenshot and the process manager in top split is  htop.

I personally would recommend byobu instead of just screen, since that has fancier interface showing clock, ip address, and other stats. All the apps are installable via sudo apt-get install PACKAGE-NAME

Here's for instance what can be done witih Byobu. Similar layout:


How can I extract frames from GIF animation image on Gimp

You can easily do this by using a shell script that comes with Ubuntu tweak-tool

If you already have Ubuntu tweak installed then open it and goto

Admins tab>>Personal>>scripts

and drag drop the convert image to PNG to the left under enabled scripts.

Once thats done right click on a GIF image and goto scripts>>convert image to PNG

And in a few secs you will have all the frames extracted in the same folder.


Problem solved.  It appears I inadvertently overwrote the MBR in sda when installing the other OS ubuntu 11.10 alongside the existing ubuntu 10.10.  Warning if you are going to dual boot - when asked where to install bootloader put it in your ubuntu partition, NOT in the root of the hard disk otherwise you will overwrite the MBR.

Solution:  Using "Try Ubuntu" from live CD or USB follow the instructions in this link

https://help.ubuntu.com/community/Boot-Repair#A2nd_option_:_install_Boot-Repair_in_Ubuntu

install the Boot Repair utility. Check Fix MBR and in the MBR tab repair it.  Take a note of the instructions given in case the bootloader is trashed and restart.

When I did this grub produced a menu from which I could choose either Ubuntu 10.10 or Ubuntu 11.10

Hope this helps.


How do I Install Retrospect backup client on 14.04?

To create the package follow the steps below.

sudo apt-get install alien
sudo alien -g --scripts linux_client-7_7_100.rpm
cd retroclient-7.7.100
sudo vim debian/control
# change the Architecture from i386 to amd64 on line 7
# add libstdc++6:i386 to the Depends line separated by a comma on line 8
# see below if this is confusing
sudo debian/rules binary

That drops retroclient_7.7.100-2_amd64.deb in the same directory as you originally ran alien from. If I were you I'd rename that retroclient_Ubuntu144.deb since it is Ubuntu 14.04+ specific. It might work on 13.10. I forget when they changed the 32-bit stuff.

To install from your newly created .deb package run this procedure.

If you can remember the package name exactly and remember to install libstc++:i386 ahead of time, you can skip the second step and install the dependency first. I'm sure I usually won't remember so this expects my failure and integrates it.

#This will fail with the dependency issues if you haven't resolved them yet.
sudo dpkg -i retroclient_7.7.100-2_amd64.deb

#This will install the dependencies and automatically take you back to configuring RetroClient.
sudo apt-get -f install

#This will check the status to confirm it setup the startup scripts and started rcl.
sudo service rcl status

Look at you, you beautiful, smart person you. You defeated the system and installed the retrospect client on a system that the vendor doesn't support. Take pride in your accomplishments!

Here is the content of my debian/control file exactly in case the instructions above were unclear.

Source: retroclient
Section: alien
Priority: extra
Maintainer: me <me@ubuntu>

Package: retroclient
Architecture: amd64
Depends: ${shlibs:Depends}, libstdc++6:i386
Description: A Retrospect client application
 This is the client application to be used in
 conjuction with the Retrospect application for Windows.
 This application will enable backing up, restoring,
 duplicating, and scanning files or entire volumes.
 .
 (Converted from a rpm package by alien version 8.90.)


How do I install Ubuntu with full disk encryption on multiple drives?

The installer does not support this scenario, so you'll have to do it manually.
There are many approaches that you can go with, and because you want /var explicitly to be on a separate physical volume, here's what I would do:

First of all, install Ubuntu using the installer on the first physical volume (sda) with LUKS encryption and LVM, and later add the second volume. This will install /var on your drive, which you don't want to, but this is only temporary.

Then set up LUKS on your second physical volume (sdb). You can either use a passphrase:
cryptsetup luksFormat /dev/sdb1 # Assuming that sdb1 is the partition where
                                # you want to create the LUKS container.
                                # You can also use your entire drive (/dev/sdb)
                                # and have no partition table.

Open the LUKS container that you just created:
cryptsetup luksOpen /dev/sdb1 lvm-var

Now if you check dmsetup you should see two LUKS containers: one that was created during the Ubuntu installation (let's call it lvm-ubuntu for simplicity, though the name will be different), and one that we just created:
$ dmsetup ls --target=crypt
lvm-ubuntu ...
lvm-var    ...

Initialize the LUKS container for use with LVM:
pvcreate /dev/mapper/lvm-var

Now if you type pvs you should see two LVM physical volumes: the one where you installed Ubuntu and the new physical volume lvm-var:
$ pvs
  PV                     VG         Fmt  Attr PSize    PFree
  /dev/mapper/lvm-ubuntu ubuntu-vg  lvm2 ...  ...      ...
  /dev/mapper/lvm-var               lvm2 ...  ...      ...

Create a new LVM volume group inside our new LVM physical volume:
vgcreate var-vg /dev/mapper/lvm-var

Now vgs should list it alongside the volume group create during installation:
$ vgs
  VG         #PV #LV #SN Attr   VSize    VFree
  ubuntu-vg    1   1 ...
  var-vg       1   0 ...

Create a new LVM logical volume inside the group:
lvcreate -L<size> -n var var-vg # Choose a size for your volume group. You can
                                # specify 100%, but I always recommend using a
                                # fraction of the available space, because you
                                # can always grow logical volumes and
                                # filesystems online, but shrinking it is a
                                # pain.

And lvs should reflect our changes:
  LV   VG        Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root ubuntu-vg -wi-ao---- ...
  var  var-vg    -wi-a----- ...

Initialize an ext4 filesystem on that logical volume (or whatever filesystem type you prefer):
mkfs.ext4 /dev/var-vg/var

Confirm that the filesystem was created with lsblk.

Almost there! Now we need to tell Ubuntu to open mount the LUKS container and filesystem automatically on boot. In order to do that:

Add this line to /etc/crypttab:
var-vg UUID=<uuid of /dev/sdb1> none luks,discard,keyscript=decrypt_keyctl

You can get the UUID with lsblk -f. The keyscript=decrypt_keyctl is there so that you don't have to enter the same phassphrase twice on boot (in case your two LUKS containers are using the same phassprase).

Add this line to /etc/fstab:
/dev/var-vg/var /var ext4 defaults 0 1

You're done! Now you can copy all the files from the /var on the first drive to the new logical volume on the second drive.


When using conda, "source activate [env_name]" doesn't work but "conda activate [env_name]" works

The problem may be because the Anaconda directory is not part of your PATH. You can check this by entering the following command in your terminal. If you don't see the Anaconda directory(Looks something like this /home/user/anaconda3/bin), you found your issue!

echo $PATH

To fix this problem, you can simply enter the following command in the terminal where user is your username.

export PATH="/home/user/anaconda3/bin:$PATH"

If this helped, please mark this as an accepted answer so that your original question can be marked as solved!


Which Large File System Format to use for USB Flash drive compatible with Ubuntu/Mac/Windows?

I would go with Ext2 - since there are IFS drivers for Ext2 filesystems on Windows and also for Mac.


Why is apache2 .htaccess rewrite not working with /index/

I found my own solution finally. In case someone else comes here looking...

I had to edit the virtual host setting in the virtualhost.conf file.

Options Indexes FollowSymLinks MultiViews

remove last "MultiViews" and it worked.

Changed from:

 <Directory /var/www/html/elim/public/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
 </Directory>

To:

<Directory /var/www/html/elim/public/>
            Options Indexes FollowSymLinks
            AllowOverride All
            Order allow,deny
            allow from all
</Directory>


How do I configure a mouse thumb button?

By installing a couple packages you can configure this pretty easily without too much trouble at all.  No matter what version of Linux I'm using i am always sure to install two specific applications when it comes to mouse and keyboard emulation.

These being:

xautomation is a set of command line programs to control X and do "visual scraping" to find things on the screen.  There are six different programs to this application but the one we are gonna be concerning ourself with is xte.  This program allows us to send arbitrary mouse and keyboard events to the kernel by utilizing the "XTest" extension.

sudo apt-get install xautomation

xbindkeys is a program that enables us to bind commands to certain keys or key combinations on the keyboard and is window manager independent, so whether you are in Gnome, Unity, KDE, etc... it makes no difference.

sudo apt-get install xbindkeys

****By using these two programs together we can make the keyboard and mouse do just about anything we want them to.***

You say you want to use the thumb button in your case for instance, well first we need to find what "mouse button number" X Server is recognizing when you click it. We will use a useful tool called xev to run this program do the following:

1. Open up a terminal window and type the following command at the prompt

xev

It will open an event handler on your screen that looks like the following:

The xev application, showing keycodes

Xev creates a window and then asks the X server to send it events whenever anything happens to the window (such as it being moved, resized, typed in, clicked in, etc.). You can also attach it to an existing window. It is useful for seeing what causes events to occur and to display the information that they contain; it is essentially a debugging and development tool, and should not be needed in normal usage.

Hover your mouse over the event window that opened on your screen and click your thumb button.  You will see alot of things happening in your terminal window but the one thing that we are concerned with is the "button number" of the one you just clicked.  This can be found at the bottom of your terminal window and should look something similar to the following line:

state 0x10, button 1, same_screen YES

The button part is what were interested in.  Being yours is a thumb button its probably gonna say button 8 or button 9 but it could be any number.  Remember or write down that number for we will use it later.  You can now close xev we no longer need this program.

Now to get things working!!

Assuming you have installed the xautomation and xbindkeys applications as stated above, we will go ahead and do the following:

2. Open up your favorite text editor and create a new file inside your home directory called .xbindkeysrc this is the configuration file that xbindkeys is going to use to make your mouse or keyboard do the special things we'd like it to do.

3. Type the following inside the file:

"xte 'mouseclick 1' 'mouseclick 1'"
b:X + Release

Note:  **Be sure to replace X with whatever number you wrote down for your thumb button from when we ran xev earlier*.

Note:  **There should also be no spaces between the first line and the second line.  If you have a space you will get an error when you run xbindkeys.*

Whats were telling xbindkeys to do here is to take the action of clicking and releasing your thumb button and make it do the action of double clicking your left mouse button which is represented but 'mouseclick 1' 'mouseclick 1'

4. Save the file and we should be good to go.

Ok lets test it out!!

5. Open a terminal window and type the following so we can test the functionality:

xbindkeys -n -v

This will run the xbindkeys program in debug mode so that we can see whats happening when you click on your button.  It will tell you that its reading the .xbindkeysrc file that we created and using it for its configuration.  If all goes well then you should end up with a line saying Starting Loop

Now if you click on your thumb button on your mouse then you should see some things happening in your terminal, meaning that it's recognizing the button press.  You should now be getting the same functionality as you would by double-clicking with the left button of your mouse.

You should be able to test this out by using the thumb button and clicking on the menu bar of the terminal, which should maximize or minimize it, thus doing the same thing as a double click would do with the left mouse button.

Now <Ctrl +C> and exit the program.

Note: In order for this all to work all the time, we need to have xbindkeys running in the background at all times. If you just add a new command xbindkeys without the -n -v in your startup applications then it will start everytime you log in to your window manager.

I've tried to explain in the best detail on how to go about doing this, hopefully you have been able to understand and complete this action with success. :)


These are used to remove  applications:

sudo apt-get remove <application>
sudo apt-get remove <application>*

sudo apt-get remove --purge <application>
sudo apt-get remove --purge <application>*

sudo apt-get purge <application>
sudo apt-get purge <application>*

Then install reinstall the specific version you wanted.


Ubuntu Phone problems with text and USB/Bluetooth connection

I have the same phone and I checked a few things to answer your questions:

You can send a text message to several people. Just start typing the first name, select it from the dropdown list and then type the
second name. Also, you could use telegram.
When you write a text message, there is a small camera icon at the left of the text input field. You can use this to add pictures to the message.
If you connect your phone to your computer via USB (you have to enable the developer mode in the settings) you can use the 'phablet tools' to connect via ssh and transfer files using scp. This should also work via network. You can also take a look at an app called WiFi-transfer. This enables file transfer in the WiFi using ftp.


installation using wubi shows errors please help

Wrong version of wubi.exe. Doesn't match the ISO you have on G:. Get the latest wubi.exe where you downloaded the ISO.

If you want to install from a 32-bit ISO on a PC with 64-bit architecture (which it appears you are doing), then run with the --32bit command line option e.g. wubi.exe --32bit. Also, don't put the ISO in the root of the drive, because Wubi will copy the partition instead of just the ISO (weird one).

If you install from the diskimage (without the ISO) then just use the latest version of wubi.exe.

tldr;

To install with ISO:

Download latest verstion of Ubuntu ISO and wubi.exe from the same place, and store in same folder (not root of drive). Run with --32bit option if you want to install 32 bit version
Download latest version of wubi.exe and run standalone to install from diskimage (remove any existing ISOs you have from roots of drives or local directory).


Turn off shift right click to change workspaces

How do I disable the alt-right click keyboard binding? Has the answer. I had forgot that  had changed the settings once before. Thanks for viewing.


Would I get back all of HD memory if I remove partitioned-Ubuntu from my Windows system?

Well rather than uninstalling it, I'd delete the partition, to make it free space, and then expand the Windows partition into it, so yes, you could.

Unfortunately Ubuntu uses the ext4 file system, and windows uses the nfts file system. You could (theoretically) access between them, but I'm not sure how good Windows is with ext.


For others who may be struggling with the same thing, the answer is to ignore Network Manager. Turn off auto in the DNS section and leave the dns field blank in Network Manager. Then nano /etc/systemd/resolved.conf and set like this:
[Resolve]
DNS=your.dns.ip#server.name
#FallbackDNS=
#Domains=
DNSSEC=true
DNSOverTLS=true
#MulticastDNS=no
#LLMNR=no
#Cache=no-negative
#DNSStubListener=yes
#ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no

The trick is that you must set DNS= to ip PLUS '#' plus server name for DNSOverTLS=true to work. This is because the server's certificate must be validated in order to proceed. If you don't provide the server's name, your machine cannot validate it. "Opportunistic" will work here but will not validate and open several vulnerabilities so is not a good choice. Also, obviously, the DNS server you are connecting to must support DoT.
After this run:
sudo systemctl restart systemd-resolved.service

and you should be good to go.
Thanks to Thomas Ward for pointing out the potential problems with the "opportunistic" setting and a clue to figuring out how to do it right.


User id 119 can't be resolved to a name in your case. Did you remove it without stopping all processes owned by it?

Apparently you're running Tor on that server.

There's nothing much more to tell from the information you provided. Assuming you're the administrator you should remember installing Tor on it.


Creating Persistent p2p Groups in Ubuntu

In readme of the wpa_supplicant u can get something like

set persistent_reconnect <0/1>

Disable/enabled persistent reconnect for reinvocation of persistent
groups. If enabled, invitations to reinvoke a persistent group will be
accepted without separate authorization (e.g., user interaction).


change string/value in 3rd column based on value change in 6th column - awk


Sounds like you installed another driver for your graphics card without reason, and possibly an old version, like the nv driver.

Open jockey (system>administration>additional drivers), and disable the extra nvidia driver (ensure you have the recommended one enabled still). You only need 1 driver.


In the default configuration before 12.10 Quantal, PHP FPM is set to listen on TCP port 9000 on address 127.0.0.1. This can be changed in /etc/php5/fpm/pool.d/www.conf.

Look for the line:

listen = 127.0.0.1:9000

and change it to something like:

listen = /var/run/php5-fpm.sock

After doing so, restart PHP FPM:

sudo /etc/init.d/php5-fpm restart

(note: reload is broken on Oneiric as it sends a HUP signal to php5-fpm which is wrong. It's fixed in Precise by sending USR2, bugreport).

Note: as mentioned by @SpamapS (palingdrome :D), newer releases use Unix sockets by default, not the tcp socket. See this Launchpad comment, it got changed in 12.10 Quantal.


How do I modify the message notifier widget in the Unity global menu?

The indicator menu items are in

/usr/share/indicators/messages/applications

so if you want to get rid of something, you can delete it from there. For example, delete

/usr/share/indicators/messages/applications/evolution

to get rid of evolution. Note that this will affect all user accounts, and it will be difficult to get it back.

For a less permanent method, create the folder

mkdir ~/.config/indicators/messages/applications-blacklist/ -p

and copy the menu items you don't want into there

cp /usr/share/indicators/messages/applications/evolution ~/.config/indicators/messages/applications-blacklist/

This will only show up for your user. Of course, you can remove items from the blacklist folder to get them back.


How can I play simulteanously two different audio using headphones for one and internal speakers for the other?

The easiest way is to use a USB headphone (or a $5 USB audio device to plug your headphone) , and to select this USB sound device for deck2 in Mixxx sound preferences.

Another way  depends on your sound card:
There is a possibility to create a new audio device just by activating "independent HP" in Alsamixer.

First, run alsamixer in a maximized terminal  and search if you have a fader called independent (the name is under the fader, see screen capture at the end).
(Sometimes if you see only one fader you have to press F6 and select your main sound card if it is not the default.)
If no independent fader, no chance.
Else, follow the following steps after disconnecting you headphone jack and closing all audio software
(close also the previous alsamixer pressing Esc in its terminal):

Stop  pulseaudio copying and running successively these 3 commands in a terminal:

mkdir ~/.pulse
echo autospawn=no > ~/.pulse/client.conf
pulseaudio -k

Relaunch alsamixer in a terminal, use left/right arrows keys to move to the independent fader, change its state to enabled
using up arrow key.

Also verify speaker and headphones fader are not muted (MM under the fader means "muted", 00 is ok.)

Now, as in independent mode, a  new audio output is created for headphone only (called hw:0,2), in addition to the default device  (hw:0,0) which is for speaker.
Go to the Mixxx sound preferences and select soundcard_name (hw:0,0) for deck1, soundcard_name (hw:2,0) for deck2, "none" for main and headphones.
Later, you can revert to pulseaudio running

echo autospawn=yes > ~/.pulse/client.conf
pulseaudio -D

(source)


telegram-cli: How to download and show images?

You can see this line in help of telegram-cli.

view_photo <msg-id>     Downloads file to downloads dirs. Then tries to open it with system default action

That says, you should enter msg-id as an argument to view_photo.

For knowing msg-id of a message, you should use -N or --enable-msg-id arguments.

For example you should run telegram-cli with this command:

telegram-cli --enable-msg-id

And you can see a number before your message. That number is your message id. For example:

12 [22:14]  Lina  »»» [image 32.webp: type=image/webp size=336x512 size=28KiB]

Here your msg-id is 12, So for show that image you can use this command:

view_photo 12

But this is not really a photo, its Stickers of Telegram (Because of its .webp format).

For see this type of image you can use imagemagick with webp package.

sudo apt install imagemagick webp

So you can use view_photo <msg-id> command in telegram-cli, and then choose imagemagick from applications list. That image should be shown.


1) My best guess would be that it's an image file created with dd of some sort of media like a flash drive or memory card.

2 and 3) Whether it's necessary or not depends on your definition of necessary. The operating system should run just fine without it, however it may contain data that you'd rather keep.

You can test my theory easily by using the command parted image.dd

which will result in output similar to but probably not identical to this.

Using /home/me/Desktop/image.dd
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)

issuing the command print at the (parted) prompt will provide output similar to but definitely not identical to this

Model:  (file)

Disk /home/me/Desktop/image.dd: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End    Size    File system  Name                          Flags
 1      1049kB  420MB  419MB   ntfs         Basic data partition          hidden, diag
 2      420MB   693MB  273MB   fat32        EFI system partition          boot
 3      693MB   827MB  134MB                Microsoft reserved partition  msftres
 4      827MB   470GB  469GB   ntfs         Basic data partition          msftdata
 5      470GB   470GB  891MB   ntfs                                       hidden, diag
 6      470GB   471GB  472MB   ntfs                                       hidden, diag
 7      471GB   500GB  29.2GB  ntfs         Basic data partition          hidden, msftdata

(parted)

once you have your output enter quit at the (parted) prompt to exit parted.

In your specific case, the image does not appear to have a partition table as shown above, but as it's an image of a storage device it has Sector Size info.

If you wish to peruse the content to insure you aren't deleting something you want, there are several answers here on how to mount an image as a loop device.

This is a fairly simple procedure and since there's no partition table you don't need an offset.

mount -o loop image.dd mountpoint where mountpoint is the location on the tree where you wish to mount it. You may wish to create a mountpoint in advance.

For example:

mkdir /media/test
mount -o loop image.dd /media/test
ls /media/test

To make the directory

loop mount the image file

and list the content at the root of the image


e books, websites, magazines, applications etc to learn qml

Have you seen this, for instance? http://qt-project.org/doc/qt-5.1/qtdoc/qtquick-applicationdevelopers.html

in general, qt-project page should answer most of the doubts you don't find here in askubuntu, thought it answers more general questions about qml than this ubuntu questions site.
If you need ubuntu concrete implementations, you can take a look at launchpad already existing applications. For example, the core apps https://launchpad.net/ubuntu-phone-coreapps


It looks like it was unable to mount your [virtual] drive!

/dev/disk/by-uuid/35a61b3c-ab96......3cc

list the device area to see what is there: ls /dev/disk/by-uuid/* and look in the file table: cat /etc/fstab and see if the disk above is listed.  If they are different, you can edit the file /etc/fstab to change the disk label to the one that is listed with ls /dev/disk/by-uuid/  You can then try to mount the drive.


Your problem is caused by a Realtek Wireless adapter that isn't very well supported.

Unfortunately, the only solution I could find is to get rid of it. If your wireless network is working properly, you can safely ignore the errors. If it's not, you should Ask a question about it, or see if it has already been asked.

Your wireless adapter identifies itself as rt2x00usb, and it's probably using the rt73usb kernel module. You can check what kernel modules are loaded by doing

modprobe -l | grep rtl.*usb

or

modprobe -l | grep rtl

If you don't use the card at all, you can add the kernel module to /etc/modprobe.d/blacklist.conf (open the file by pressing Alt+F2 and typing sudo gedit /etc/modprobe.d/blacklist.conf), this will prevent it from being loaded.

Have a look around this site if you do have wireless problems, there are quite a few question about Realtek adapters.


Your home folder quicklist options are defined by your bookmarks in Nautilus. Add/remove them from the Bookmark menu in Nautilus and the changes will show up in the quicklist.


That's pretty close to a glob pattern. Try

if [[ "$path/$file" == *.{txt,doc,docx,xlsx,rtf} ]];

If you really want a regular expression

if [[ "$path/$file" =~ \.(txt|doc|docx|xlsx|rtf)$ ]];

Finding a regular expression tutorial online left as an exercise ...


Trying IPv6 through Miredo, IPv6-only hostnames not working as I would like

First of all: Teredo/Miredo are not recommended ways to get IPv6. They rely on 3rd party (often badly maintained) relays, just like 6to4, which has been deprecated. Don't expect it to work flawlessly.

About the commands that are failing. The ping command is only for IPv4 on most platforms. To ping over IPv6 you'll need to use ping6 like the example you started with.

That the dig command by default asks for A records (IPv4), so not getting an answer when asking for the IPv4 records of an IPv6-only hostname is expected. Your examples where you explicitly request AAAA records are the correct ones.

Why wget doesn't work I don't know. Might well be some Teredo/Miredo issue.


How to know the USB Device filesystem direction

If I understand it correctly try...

dmesg |grep -i 'SCSI device'

You can also find devices by id, path and uuid with ...

ls /dev/disk/by-id
ls /dev/disk/by-path
ls /dev/disk/by-by-uuid

(in case the 1st one was not the one you are looking for).


How to restore deleted files in /boot? (vmlinuz missing, system does not boot)

vmlinuz is the Linux kernel image itself (the z indicates that it is compressed).
Reinstalling the kernel package that is currently referenced by linux-image-generic (or your HWE kernel) and probably linux-singed-image-generic in UEFI secure boot environments should solve your issue.
Reinstalling a kernel from a chroot
Preferably boot live media of the same version and mount the partition of your installation (you can do that with Nautilus, it will be something like /media/ubuntu/… then) or your /boot partition (this will be a bit more complex). This will be ${my_installation} in the following instructions.
Look into /lib/modules/ of your installation (${my_installation}/lib/modules/) for the particular kernel versions that were installed and pick the latest version number you can find, this is referenced as ${kernel_ver} in the following instructions, in my test VM it was 3.16.0-46.
As I stated in a comment before, the procedure is very similar to reinstalling Grub in chroot, so let me quote this answer with some slight modifications:

Bind mount some other necessary stuff:
 for i in /sys /proc /run /dev; do sudo mount --bind "$i" "${my_installation}$i"; done

chroot into your Ubuntu install:
 sudo chroot ${my_installation}

At this point, you're in your install, not the live session, and running as root. …

Now reinstall your kernel (the signed package is for UEFI secure boot):
apt-get install --reinstall linux-image-${kernel_ver}-generic linux-signed-image-${kernel_ver}-generic

Check the /boot directory if the initrd for this kernel is still missing. To generate it manually run:
mkinitramfs -o /boot/initrd.img-${kernel_ver}-generic ${kernel_ver}-generic

My example:
mkinitramfs -o /boot/initrd.img-3.16.0-46-generic 3.16.0-46-generic

Then run update-grub like in the quoted answer so that you can be sure that the "new" kernel and initrd are included.
If you need to reinstall Grub too you can follow the the remaining steps. Remember that these instructions were written for MBR, if you have UEFI (where bootloaders from different OSes shouldn't overwrite each other) you need to check that grub-efi-amd64-bin is installed install before reinstalling Grub.


How to change keyboard layout for each user?

Each user can set their keyboard layout from Settings and it will be used for that user's subsequent logins.

h/t @Béné


How to make X.org listen tcp port to remote connections?

With Xorg 1.17 and later, -nolisten tcp is the default, and you need to explicitly state -listen tcp to enable tcp connections.


SSH has a server part and client part. Your Ubuntu server should be having SSH server installed already and configured for you to be able to connect remotely using Putty (SSH client here).
To install SSH server, if it is not already installed, you have to be at the physical location of the server to login and install the needed packages.
I don't wish to enlist other tougher ways to get into the machine without SSH as it will be out of scope of the question asked.


SSD I/O extremely slow installing/booting Ubuntu 12.04

There is an article on the Gentoo Wiki that describes an issue with a BIOS compatibility mode potentially slowing down SSD access.

  When MacBook uses BIOS compatibility mode, it switches the SATA controller to IDE mode, making hdd/ssd operations slower since kernel will use ata_piix module insetead of ahci. It seems there are couple of ways to change this, but this one I find to be the easiest, and actually it is the only that worked for me. I have tested this with MacBook Pro 6.2.

It doesn't sound like it's on the scale you're talking about, but still perhaps something to check.


You need to add your username to the group adm

sudo usermod -aG adm YourUserName

You can then access the logfiles as normal user without sudo.


What is the significance of permission of `/etc`?

Right, I tried this (on a VM :-)) and got the same behavior you describe. I  changed the permissions on /etc, and rebooted and since I had configured my system to log me in automatically, it attempted to log me in directly and failed.

I don't know enough about Unity's internals to be understand the details but my guess is that when you attempted to login, since the system didn't have access to /etc it couldn't read all sorts of essential files such as /etc/passwd or /etc/group or anything to let it map your username to the appropriate UID and GID. Therefore, upon the attempted login, file details were somehow screwed up.

My guess, and I stress that I'm guessing, is that changes were made to your gconf configuration settings which then screwed with Unity.

I fixed this on my VM by simply deleting all files from my $HOME, removing my user and recreating him. Obviously this is not a solution on the system that you actually use.

The only workaround I can think of is to move/rename all the configuration files and directories:

mkdir old_dotfiles
for file in .*; do mv "$file" old_dotfiles; done

This will move all of your configuration files and directories to ~/old_dotfiles. You can then log out and log in again or reboot and things should be back to normal though you will have lost your config settings. You can then try copying them back again. If this is just a file ownership issue, copying them back should reset the ownership and might fix your problem. If the change was made within one of the conf file, this will break your system all over again so proceed with caution.

Bear in mind that most configuration files will be created automatically so you only need to worry about cases where you have made changes to the defaults. Also, you should make sure that "system" folders of your GUI such as ~/Desktop are correctly set up.

My guess is that this should be enough to return you to a working system, with a newfound  love for virtual machines.


Looks like your scripts are failing. I would suggest adding 2>&1 > /home/josh/cronlog at the end of your commands, this way you will be able to later inspect what went wrong

Example:

# m h  dom mon dow   command
0 * * * * /bin/bash /home/josh/bin/rotate-wallpaper 2>&1 > /home/josh/cronlog
*/30 * * * * /bin/bash /home/josh/bin/download-programmes 2>&1 > /home/josh/cronlog


Dynamic Internet IP Ubuntu 12.04 Desktop Setup

Easiest way to setup pppoe connection on ubuntu is to use pppoeconfig.
Open terminal from the dash home or press Ctrl+Alt+T, execute this command

sudo pppoeconf

It starts looking for pppoe access concentrator on eth0…
Say yes on this configure on /etc/ppp/peers/dsl-provider
Say yes until you see this prompt, and enter the username.
Then enter the password
Say yes and OK on following pages and the network connection should
be OK

You can use following commands to make a manual connection:

start with:

pon dsl-provider

stop with:

poff dsl-provider


Does your keyboard work?
After reboot try:

Go to tty1: shift+alt+F1 and log in.
Run sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get dist-upgrade ( a little overdone but just to be sure )
After everything is completed just reboot your system sudo reboot now

It may be that some software needed was not installed and this may correct that. If this doesn't solve the problem go to tty1 again, log in, and type sudo apt-get install --fix-missing -> again, some dependencies might not be resolved.

Note 1.
Only after I wrote this I thought that you may not have an internet connection since you've never log in and connect to a network.
In order for this to work you will need to connect to a network with internet access. So I'll try to describe to you how to connect to an WiFi network but you can check it here for more info about both WEP and WPA/WPA2. I won't copy and past it here but I'll add a few notes with some output. I've done some research and I couldn't find a way to connect to a WPA/WPA2 network without installing wpa_supplicant so I can't really help with that. ( if someone knows how to fill free to edit this )

Connecting to a WEP Network
First of all, you will need to check the name of your wireless card using iwconfig. This will give an output similar to this:

$ iwconfig
    eth0      no wireless extensions.

    wlan0     IEEE 802.11bgn  ESSID:off/any
      Mode:Managed  Access Point: Not-Associated   Tx-Power=15 dBm
      Retry short limit:7   RTS thr:off   Fragment thr:off
      Power Management:off

    lo        no wireless extensions.

In this case, the card name is wlan0 but it can be different in your case so check your output for the one that don't say: no wireless extensions.  Also remember that, although not explicit in the link I shared, you will need to run almost all commands with root-level permission so don't forget to append sudo to the beginning of every command ( or just log in to root using sudo -i ).

Hope it helps somehow.

Don't forget to up vote if you found this useful.


How do I recursively set the Nautilus view mode for a directory tree?

Overview

To find the metadata for a folder you need to use the command gvfs-info foldername

for example gvfs-info /home/homefolder/Desktop

In the list that returns you will see the attribute metadata::nautilus-default-view which describes the default view.

You can change this attribute using the command gvfs-set_attribute foldername attribute newvalue

for example:

gvfs-set-attribute /home/homefolder/Desktop "metadata::nautilus-default-view" "OAFIID:Nautilus_File_Manager_Icon_View"

Script

Now I have to admit my bash scripting skills aren't the best, but here you go - my script below will allow you to reset all the views below the folder-name given.

Syntax:

folderreset [OPTION] full_base_directory_name

for example this will reset to compact view all folders below /home/homefolder/Desktop

folderreset -c /home/homefolder/Desktop

use folderreset -h for the syntax.

Feel free to tinker and amend.

#!/bin/bash

#Licensed under the standard MIT license:
#Copyright 2013 fossfreedom.
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

################################ USAGE #######################################

usage=$(
cat <<EOF
Usage:
$0 [OPTION] base_full_directory_name

 -h, --help     display this help
 -l, --list     set to list view
 -i, --icon     set to icon view
 -c, --compact  set to compact view

for example

$0 -i /home/myhome/Desktop

This will reset all directories BELOW /home/myhome/Desktop

EOF
)

########################### OPTIONS PARSING #################################

#parse options
TMP=`getopt --name=$0 -a --longoptions=list,icon,compact,help -o l,i,c,h -- $@`

if [[ $? == 1 ]]
then
    echo
    echo "$usage"
    exit
fi

eval set -- $TMP

#default values
META=OAFIID:Nautilus_File_Manager_List_View

until [[ $1 == -- ]]; do
    case $1 in
        -l|--list)
            META=OAFIID:Nautilus_File_Manager_List_View
            ;;
        -i|--icon)
            META=OAFIID:Nautilus_File_Manager_Icon_View
            ;;
        -c|--compact)
            META=OAFIID:Nautilus_File_Manager_Compact_View
            ;;
        -h|--help)
            echo "$usage"
            exit
            ;;
    esac
    shift # move the arg list to the next option or '--'
done
shift # remove the '--', now $1 positioned at first argument if any

if [ ! -d "$1" ]
then
        echo "Directory does not exist!"
        exit 4
fi

find "$1"/* -type d | while read "D"; do gvfs-set-attribute "$D" "metadata::nautilus-default-view" "$META" &>/dev/null; done

GUI wrapper

Here is a simple GUI wrapper script that could be used to set the view mode right from the Nautilus scripts context menu:

#!/bin/bash

# Licensed under the standard MIT license
# (c) 2013 Glutanimate (http://askubuntu.com/users/81372/)

FOLDERRESET="./folderreset.sh"
WMICON=nautilus
THUMBICON=nautilus
WMCLASS="folderviewsetter"
TITLE="Set folder view"

DIR="$1"

checkifdir(){
if [[ -d "$DIR" ]]
  then
      echo "$DIR is a directory"
  else
      yad --title="$TITLE" \
          --image=dialog-error \
          --window-icon=dialog-error \
          --class="$WMCLASS" \
          --text="Error: no directory selected." \
          --button="Ok":0
      exit
fi
}

setviewtype (){
VIEWTYPE=$(yad \
    --width 300 --entry --title "$TITLE" \
    --image=nautilus \
    --button="ok:2" --button="cancel" \
    --text "Select view mode:" \
    --entry-text \
    "list" "icon" "compact")

 if [ -z "$VIEWTYPE" ]
   then
       exit
 fi

}

checkifdir
setviewtype

"$FOLDERRESET" --"$VIEWTYPE" "$DIR"

The script depends on the zenity fork yad which can be installed from this PPA. Make sure to point FOLDERRESET= to the location of the folderreset script on your system.


IMAP isn't supported by Microsoft on outlook.com.

There has been some hints that they might support it the future. But who knows when and if it will actually happen.

If you really really want to keep your email address you could get a google email account. Let your google mail account pop the hotmail emails over pop. then you can just run imap against your google account to recieve all your emails to your client over IMAP.


Blank screen after resume - Dell M5510 Ubuntu 16.04

The solution was ultimately found posted on Sept 18th on the Dell Community Forums.
This is ultimately a bios problem: during suspend, an intel register is reset to all 0's. A kernel patch
workaround is already in the works, but may not be included until 4.9. However, the register can
be saved to a file during suspend and loaded during resume.

Save the following script as /lib/systemd/system-sleep/fixbacklight (and chmod 755)

#!/bin/sh
# From patchwork.freedesktop.org/.../
# and en.community.dell.com/.../19985320
# Suspend Resume fails to restore PWM_GRANUALITY
# Based on script by Tony.Jewell@Cregganna.Com

INTEL_REG=/usr/bin/intel_reg
ADDR="0x000c2000"
SAVE_FILE=/var/lib/systemd/save_intel_reg_pwm_granuality

[ -x "$INTEL_REG" ] || exit 0

case "$1" in
    pre)
        echo "$0: Saving Intel Register PWM_GRANUALITY"
        "$INTEL_REG" read "$ADDR" \
            | (read addr value && echo "$value") \
            >"$SAVE_FILE"
    sync
    ;;
    post)
        value=`cat "$SAVE_FILE" 2>/dev/null`
        if [ -n "$value" ]
        then
            echo "$0: Restoring Intel Register PWM_GRANUALITY $value"
            "$INTEL_REG" write "$ADDR" "$value"
            rm "$SAVE_FILE"
        fi
    ;;
esac

It was @nloewen that pointed me down the right path.


How to install lib1394 i386 (32bit) version on ubuntu 11.10 amd64

First of all, you're right, your system is using the 64 bits architecture.

As you said that a solution for your problem could be install i386 (32bits) version of the library, I have told you how to do it:

Open a terminal Ctrl+Alt+T
Enter this command: sudo apt-get install libraw1394-11:i386

Now you should have installed the 32-bits version of the libraw library.


Juju bootstrap gives me a "409 CONFLICT" error

CONFLICT from maas means that it doesn't have any nodes available for juju to acquire (juju bootstrap needs to boot a node).

It's not the best error unfortunately, juju needs fixing to show all the text. You need the server edition of 12.04


How do I tell the `date` command to only show the time?

date +%R

will show you the 24 hour time, and

date +%r

will show you the time in 12 hour format. date +%H:%I also works.

Check out the "Conversion Specifications" in the manpage for more variables to pick and choose.


Ubuntu 20.04: chromium core dumps after suspend

Looks like the keystore (which decrypts your password) does not work. Obviously you've set up chromium with a password. Try to open chromium with
chromium --password-store=basic
If it works you should add this line into your desktop file at /usr/share/applications/chromium.desktop
This only works if you DON'T install it via snap


How do I get an Enter USB TV Box TV tuner aka Gadmei UTV302 to work?

This contains instructions for compiling from source, and is for a different model. this could cause problems with future updates breaking the compatibility of these instructions

Unplug the card from your PC (if you have already plugged it )
To run V4L (Video4Linux) Driver in system, you need following packages, make sure you add them through your Synaptic Package Manager.

  mercurial

  gcc

  build-essential

  linux-source

AND

type following to download and install your linux headers which is compatible with your kernel

sudo apt-get install linux-headers-`uname -r`

You must get a copy of the V4L (Video4Linux) Driver to do so tap the following code in a terminal

  $ mkdir tvdrviver

  $ cd tvdriver

  $ hg clone http://mcentral.de/hg/~mrec/v4l-dvb-kernel

above commands will download a copy of V4l Driver into your tvdriver folder.

Now we have to build the V4L driver and install it into the kernel. to so take following lines in your terminal window.

  $ cd v4l-dvb-kernel

  $ make

  $ sudo make install`

if every thing goes good it will install the driver in few mins without any errors.

At this point your must REBOOT your box (b4 you do so remeber to book mark this page )

You have installed your driver, now it's time to load the Driver. Before we do that I have to tell you this is where my problem was, coz the Driver couldn't detect my device automatically

so until it can't detect the device it will not give you /dev/video0

so what we have to do is we have to do detecting part manually. how we do it..? this is how.

The em28xx accepts the parameter 'card=' when it's loading,  is where you have to mention your device number from the driver device list. so my device is listed on 37th location in the list
So I'll load my device in to the driver as follows

Reference
 Check out: http://ubuntuforums.org/showthread.php?t=646528 .
The instructions are for a different model (UTV 330)


Can't open Cisco Packet Tracer on Ubuntu 19.04

I had same problem but I found the solution.
Cisco released a new version PT 7.2.2. Install the new version and if the problem still persists, you have to install a newer version of libpng12 (1.2.54) https://packages.ubuntu.com/xenial/amd64/libpng12-0/download


Bower error : bower ESUDO Cannot be run with sudo?

You seem to be running bower as root or with sudo, which you should not do. It is meant to run only with restricted user privileges and contains a safety check to abort if it runs with root rights.

This is implemented for security reasons, because bower will download and execute untrusted code to do its job. That should definitely not be done as root for various reasons, especially not on a production server.

As the error message suggested, there is a --allow-root switch to override the safety check and run it even though you are root.

However, the optimal and secure way to go would be to create a separate user account with limited privileges and use that one instead of doing everything as root, which does not only include bower.


Fixing permission settings on html folder

According to what is already done, and according to our discussion, I think you need to do these steps.

First, it is not required www-data to be a member of the group webmasters. So I think you need to remove it from that group.

The right way to setup permissions to the files and directories separately and recursively is to use find:

# Dial with the permissions recursively
sudo find /var/www/ -type f -exec chmod 664 {} +  # set -rw-rw-r-- for all files
sudo find /var/www/ -type d -exec chmod 775 {} +  # set drwxrwxr-x for all directories
sudo find /var/www/ -type d -exec chmod g+s {} +  # set drwxrwsr-x for all directories

# Dial with the ownership
sudo chown -R root:webmasters /var/www/ # change user :group for the whole tree of /var/www

# Dial with the directory where `www-data` should have write permissions, e.g. for upload
sudo chown www-data /var/www/data

Thus:

The content of /var/www will be initially owned by the user root and group webmasters.
The members of the group webmasters will be able to write and modify the content of the directories in /var/www via the group permissons and setgid.
www-data will have read permission to the files and read-execute to the directories (note the execute permissions to the directories has different meaning than to the files), via the permissions of the other users. So Apache2 will able to display the content...
www-data will be able to write content in /var/www/data, because it is the owner.


Very unstable version after fresh install

Finally I reverted back to Windows 10 on this PC. Yous can forget this one. Sorry for inconvenience.

Laurent06000


Only desktop background is showing after minimal install with xfce

If you wants to install xfce, I suggest you do this:

sudo apt remove ubuntu-desktop
sudo apt-get install --no-install-recommends xubuntu-desktop

So you will have a xfce-based environment. If you prefer a fully-featured installation, just remove --no-install-recommends from this command.


Directories need executable permission to be able to enter them.
Use 775 instead of 665.

mkdir dir
$ stat -c %a dir
755
$ cd dir #this works
$ cd ..
$ chmod 655 dir
$ cd dir
bash: cd: dir: Permission denied


Encrypt USB stick and be able to mount it everywhere

I suggest the following:

Format the USB as you would normally do
Encrypt the valuable files with cross-platform encryption software
Put the encryption software on the usb stick together with the encrypted files. Now you can decrypt the files everywhere.

For a list of encryption software: http://arstechnica.com/civis/viewtopic.php?t=1245367