Is Ubuntu still installing I'm not sure using VirtualBox

You can check what is going on while installing Ubuntu, as shown below

notice in the picture above there is a terminal view. to show it you have just to click on the loading bar or over the writing above(in the picture Almost finished copying files)

Once you open it you can easily know what is going on your install.

Now why this happens to you, I suppose that there is some downloads such as language pack and some other packages that'll be downloaded during installation if you are connected, or you choose dowload updates while installting, this download may take some time


Which package to choose for a bug report about annoying beeps during BIOS update?

Against the package containing the tool you used. Which one ?

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


It is not recommended to upgrade from the update manager, many things could go wrong, you should have downloaded the ISO file from the website, then backup everything, then upgrade, then restore. Check this.

Lets try to fix this, lets reinstall unity

sudo apt-get install --reinstall unity

sudo apt-get install --reinstall ubuntu-desktop


Where are my uploads from U1 saved when using Thunderbird Filelink with U1?

Have you checked on the U1 web site files interface? I think Filelink creates a special folder for them on the server which isn't synchronized locally by default (unless you enabled that option), and uploads the files there via the REST API, and publishes them so that the recipient can open them.

I didn't work on this code, and don't use Thunderbird, so a bit of a guess, but this seems like what it does.


Why does my workspace intermittantly hold at partial dimness?

Compiz dimms windows that are frozen or don't answer to window management events. The dimming is normal and just a way to inform you that this app is not listening to inputs.


Here's another way to install it.

Download it from here

if your computer is 32bit (has 2GB RAM or less) click here

if it's 64bit click here

open the file when you download it


HP Laserjet p1005 stopped working after upgrade

did you try to install hp software (as i know there is an hp driver and tool for linux) but before you install it try to remove the printers already define by ubuntu
check here
http://hplipopensource.com/hplip-web/index.html
and try maybe it will work
if it does not work and you mention that another printer also didn't work then it looks like a cups problem try to reinstall from the synaptic


Something like this?

Trying to reinstall gnome and unity. Report back when done.


How to "un-automount" external harddrive?

the file /etc/fstab contains all the drives/partitions that will be automatically mounted at boot time, so its just matter of removing the corresponding entry (there should be 1 line entries).

to do that, open the file with

sudo gedit /etc/fstab

and remove the corresponding line of your external drive, if unsure, paste the content of your file /etc/fstab so we call assist you in which line to delete.


ear phone port not working in dell inspiron 3520 ubuntu 12.04

just need to install the required drivers.After this dist-upgrade .Its working fine now.

sudo add-apt-repository ppa:ubuntu-audio-dev/ppa

sudo apt-get update

sudo apt-get dist-upgrade


You can do the two operations in one go of find :

find . -depth \( -regex '.*\.\(txt\|tex\|csv\)' -exec mv -- {} . \; \
                 -o -not -name . -delete \)

-regex '.*\.\(txt\|tex\|csv\)' -exec mv -- {} . \; will find the files with .txt or .tex or csv extensions and will move those to the current directory
-not -name . -delete will then remove everything else

Example :

total$ tree
.
├── test1
│   ├── some.py
│   └── test1.txt
├── test2
│   ├── somedir
│   └── test2.tex
└── test3
    └── test3.csv

total$ find . -depth \( -regex '.*\.\(txt\|tex\|csv\)' -exec mv -- {} . \; -o -not -name . -delete \)

total$ tree
.
├── test1.txt
├── test2.tex
└── test3.csv


Ubuntu 19.10 Stellarium telescope control

You're NOT in the dialout group, (phil adm cdrom sudo dip plugdev lpadmin lxd sambashare), so you have "other" access to

crw-rw---- 1 root dialout 188, 0 Jan 13 13:31 /dev/ttyUSB0

that is, ---, or NO access.

To put yourself in the dialout group, you must do two steps:

First, update your group membership with:

sudo adduser $USER dialout

Then, start a new process with one of newgrp dialout, logout/login, reboot.


How do I make a custom right click command for nautilus?

Just save this file as 'Mark as executable', make itself executable and drop it to ~/.gnome2/nautilus-scripts
It will be shown at your right-click menu, under the submenu Scripts

You may want to remove the gksudo from there if you are planning to mark as executable only files that you own (under your home directory), otherwise, every time that you run the script through the right click menu, it will ask you for password...

BUT the script you have up there is not going to work for files which contain spaces to their filename. In order to make it work for them, you have to alter the script to the following:

#!/bin/bash

IFS_BAK=$IFS
IFS="
"

for line in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do
   if [[ "$line" = "" || "$line" = " " ]]; then
      exit
   else
      chmod +x "$line"
   fi
done

IFS=$IFS_BAK
IFS_BAK=

ALSO, you  can have your very own entry for your "Mark as executable" thingy. But, in order to enable this you will need to install the python-nautilus package:

sudo apt-get install python-nautilus

Then save this file as mark_as_executable.py under ~/.local/share/nautilus-python/extensions/ :

#!/usr/bin/env python
# -*- coding: utf8 -*-

from gi.repository import Nautilus, GObject, Gio
from os import system
import urllib

class BackgroundImageExtension(GObject.GObject, Nautilus.MenuProvider):
    def __init__(self):
        print 'Mark as executable extensions is being initialized'

    def menu_activate_cb(self, menu, file):
        if file.is_gone():
            return
        system("chmod +x '"+urllib.unquote(file.get_uri()[7:])+"' &")

    def get_file_items(self, window, files):
        if len(files) != 1:
            return
        file = files[0]

        if file.get_uri_scheme() != 'file':
            return
        item = Nautilus.MenuItem(name='Nautilus::set_executable_bit', label='Mark as executable', tip='Add the executable bit to the selected file')
        item.connect('activate', self.menu_activate_cb, file)
        return item,

The above will only work for single files as well, if you want to add support for multiple files, you have to paste this inside the python script, though:

#!/usr/bin/env python
# -*- coding: utf8 -*-

from gi.repository import Nautilus, GObject, Gio
from os import system
import urllib

class BackgroundImageExtension(GObject.GObject, Nautilus.MenuProvider):
    def __init__(self):
        print 'Mark as executable extensions is being initialized'

    def menu_activate_cb(self, menu, file):
        if file.is_gone():
            return
        system("chmod +x '"+urllib.unquote(file.get_uri()[7:])+"' &")

    def get_file_items(self, window, files):

        item = Nautilus.MenuItem(name='Nautilus::set_executable_bit', label='Mark as executable', tip='Add the executable bit to the selected file')
        for yourfile in files:
            if yourfile.get_uri_scheme() != 'file':
                return
            item.connect('activate', self.menu_activate_cb, yourfile)

        return item,

In order to be able to use the functionality, you will need to restart nautilus too:

nautilus -q

and then open a nautilus window.


This looks like a problem I've had before....

Anyway,
You might be missing a Separator...

Right click your panel and select panel preferences
Click on the "Items" Tab
If you don't see a separator between "Window buttons" and "Workspace switcher,"(or whatever they're called...) Click on the Plus sign. Otherwise, skip to the bottom.
Look for the separator.
Add it.

Now, to put it between the Window Buttons and the Workspace Switcher items, use the up and down arrows at the right side of the window. Next, click on the gear (you must have your new Separator selected). In the small window, change the style to "Transparent," and then click expand.
You're done!


Is this a 32 bits or a 64 bits binary ? ( you can check with file ./Mtg ).

If this is a 32 bits binary, then you need the 32 bits version of libSDL, as you seems to be running x86_64.


Okay, I have to justify the trust given. First of all, you should update your BIOS. Ubuntu is very dependent on this. I can show you the way how to overcome impossibility of booting from CD, but you may experience some problems after installation if you don't update your BIOS.

Now,

How to boot from CD even if BIOS doesn't allow this

Download and install VirtualBox
Create virtual disk from physical drive

Run as Administrator (probably you are already Admin):

VBoxManage internalcommands createrawvmdk -filename C:\path\to\file.vmdk -rawdisk \\.\PhysicalDrive0

Refer for instruction to link given above if you are running Ubuntu.
Create Virtual Machine

run Oracle VM VirtualBox as Administrator
Select Machine → New or press Ctrl + N

Attach vmdk file:

Attach Ubuntu ISO file or use physical device

Set boot order as shown below

Click OK to save settings

Start Raw and press F12. Choose CD

At this point, follow this guide from the step 6. Don't touch existing partition, just install Ubuntu. After Installation you may simply reboot computer and boot into Ubuntu.
To remove Windows partition, use either Gparted or Disks utility.

Feel free to ask if something goes wrong!


Ubuntu 12.10 wireless trouble macbook pro

Please get a temporary wired ethernet connection. Open a terminal and do:

sudo apt-get install linux-firmware-nonfree
sudo modprobe -r b43 && sudo modprobe b43

It should now be working.


Symbolic link one directory of files to another

$ ln -s ./test_source_sym ./test_sym/dir
$ ls -al ./test_sym/dir
lrwxrwxrwx 1 user1 users 17 jun 28 18:25 ./test_sym/dir -> ./test_source_sym

this is a link to the wrong directory; it should be the parent directory

$ rm ./test_sym/dir
$ ln -s ../test_source_sym ./test_sym/dir
$ ls -al ./test_sym/dir
lrwxrwxrwx 1 user1 users 18 jun 28 18:25 ./test_sym/dir -> ../test_source_sym
$ cat ./test_sym/dir/file.txt
hello world!

easier to understand when you first descend to the test_sym directory:

$ rm ./test_sym/dir
$ cd test_sym
$ ln -s ../test_source_sym dir
$ ls -al
total 16
drwxr-xr-x 145 user1 users 12288 jun 28 18:23 ..
lrwxrwxrwx   1 user1 users    18 jun 28 18:31 dir -> ../test_source_sym
drwxr-xr-x   2 user1 users  4096 jun 28 18:31 .
$ cat dir/file.txt
hello world!


start: caddy process exited with error: exit status 1

This error means that caddy service is already running. After installation from apt it's started automatically.
You should stop it
caddy stop

and try again :)


Install Ubuntu 12.04 64bits on dell XPS 14 ultrabook

why don't you try this? I remember coming across a problem similar to yours.

Run this command as root:

dmraid -E -r /dev/sdX

Where 'X' is the letter that identifies your actual device.

Source: http://www.pendrivelinux.com/ubuntu-installer-cant-find-my-sata-drive/


It should work. Just open your network configuration manager and connect to your wi-fi hotspot.

In my case it is in Main menu -> Preferences -> Settings -> Wi-Fi:

If your adapter does not work, you could try:

sudo apt install dkms -y
sudo ubuntu-drivers autoinstall
then

  Plug your USB-wifi-adapter into your PC If wifi can be detected,
  congratulations. If not, maybe you need to switch your device usb mode
  by the following steps in terminal:

  find your usb-wifi-adapter device ID, like 0bda:1a2b, by type: lsusb
  switch the mode by type: (the device ID must be yours.) Need install
  usb_modeswitch

  sudo usb_modeswitch -KW -v 0bda -p 1a2b It should work.

or, if previous did not help:

sudo apt install build-essential -y
mkdir -p ~/build
cd ~/build
sudo apt install git
git clone https://github.com/brektrou/rtl8821CU.git
cd rtl8821CU
make
sudo make install


What's the difference between "Service" and "/etc/init.d/"?

/etc/init.d scripts are the old way of doing things. They come from the System V standard. However, those scripts are fired only in a particular sequence, so no real dependencies can be established.

Therefore, upstart has been developed with the intent to substitute all the /etc/init.d scripts with upstart scripts (in /etc/init).

service allows the smooth transition from /etc/init.d scripts to upstart scripts. In the future, when more and more scripts are transferred to upstart, service will still work because it finds both possibilities.

How to enable or disable services?


How do i open jar files created by netbeans in ubuntu?

Maybe you must create launcher on desktop, with

  /path /to /bin /file.jar

Also, you can debug your file with idea studio


Missing Wine Program Folder in Xubuntu 14.04-LTS

This is apparently due to a larger bug in the applications menu. In order for a folder to show, it must have at least one launcher in it. Since the Wine "Programs" folder may install with only sub-folders, it isn't displayed (even if there are launchers in the sub-folders). See this bug report, and the workaround in the reply:

https://bugzilla.xfce.org/show_bug.cgi?id=10967

I had this problem on one machine, and not on one other. The one that showed the menu had installed Wine with a launcher for MS Access in the Programs folder. In the problem machine, there was no launcher. I added a launcher for a Windows program to the Programs folder, and now it is visible.


Seems that the (external) driver is buggy and is causing your system to crash; you're not alone.(1)

To undo the thing you should remove the driver you compiled (it should be called mt7601Usta.ko, and live somewhere under /lib/modules/3.13.0-24-generic/kernel/drivers/net (adapt for your kernel version). After that, depmod -a and a reboot should let you as before (I mean, no wifi but no kernel panics).

(1) which is not surprising; the driver has a date of September 2013, and the linux kernel evolves really fast. This is a problem of out-of-tree drivers; they must be really developed and cared of day-by-day to be useful. Bug the manufacturer so that they add the driver to the official kernel tree...


Your permissions here don't matter, the reason you are getting that error is that it can't find the configure file.

In this case curl includes a buildconf file to prepare this for you. I successfully compiled it by doing the following steps.

First I make sure I have everything I need to build curl:

sudo apt-get build-dep curl

And then I run the following commands to build it:

buildconf
./configure
make
sudo make install

This will put the library in /usr/local/


Where are all the major log files located?

All log files are located in /var/log directory. In that directory, there are specific files for each type of logs. For example, system logs, such as kernel activities are logged in syslog file.
Some of the most common log files in that directory is :

In directory apt there is a file history.log which saves all the package installation and removal information even the initial system build as Live CD. You can open this file to see this very interesting file.

In directory dist-upgrade there is a file apt.log which logs the information during distribution upgrades

In directory installer the log files which are created during installation can be found.

There is an apport.log file which saves information about crashes in your system and reporting them.

The file auth.log includes information about the authentication activities such as when you authenticate as root user via sudo.

The file dpkg.log saves the low level details of package installation and removal related with dpkg. You might be aware that the apt system depends on dpkg for package installation and removal.

boot.log includes information of each booting.

kern.log saves kernel information such as warnings, errors etc.

alternatives.log includes the history of all the alternatives set by various packages and their removal via update-alternatives command.

Another important log file is Xorg.log which include information about the graphics driver, its failures, warnings etc.

Some other types of Log files may be there depending on your installed packages. For example, My system also includes a log files epoptes.log which will only be there if you install epoptes package.
Changes after systemd
With the advent of systemd, logging is mostly handled by journalctl utility and store the logs in binary format in /var/lib/systemd/catalog/database file. This file enumerates all logs including kernel, boot and application logs and provides required logs via journalctl utility.
Here is a good article on journalctl on how you can use it to fetch required log info.
https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs#setting-the-system-time


This tutorial explain very nice how to do what you want:

Creating Custom Symlinks to Devices

According to it, there are two approaches to creating symlinks. The first one is to use the model name and the serial number:

SUBSYSTEM=="block", ENV{ID_MODEL}=="...", ENV{ID_SERIAL}=="...", ENV{GENERATED}="1", SYMLINK+="dvd"

This way, the symlink will stay correct even if you move the drive to different positions on the IDE bus, but the /dev/dvd symlink won't be created if you replace the drive.

The second one is based on the location of the device on the bus:

SUBSYSTEM=="block", ENV{ID_TYPE}=="...", ENV{ID_PATH}=="pci-...", ENV{GENERATED}="1", SYMLINK+="dvd"

This way, the symlink will stay correct even if you replace drives with different models, but place them to the same positions on the IDE bus. The ENV{ID_TYPE} key makes sure that the symlink disappears if you put something other than a DVD in that position on the bus.

You can find the values for ID_MODEL, ID_SERIAL, ID_TYPE and ID_PATH using the following command (the udevtest command as in tutorial doesn't work - anymore ? - in Ubuntu):

udevadm info --query=all --name=sr0

The SUBSYSTEM=="block" key is needed in order to avoid matching SCSI generic devices. Without it, in the case with SCSI DVD, the symlink will sometimes point to the correct /dev/sr0 devices, and sometimes to /dev/sg0, which is wrong.

The ENV{GENERATED}="1" key is needed to prevent the udev 75-cd-aliases-generator.rules file from overriding your custom rules.


APT "Could not resolve 'in.archive.ubuntu.com'"

If you can ping IP addresses but not domain names, you have a problem with your DNS. Adding the google DNS (8.8.8.8 and 8.8.4.4) to /etc/network/interfaces and restarting should solve your problem:

auto eth0
iface eth0 inet static
    . . .
    dns-nameservers 8.8.8.8 8.8.4.4

Reference: See Answer #2 Here


Problem installing apache 2 in ubuntu 14.04: dpkg:- error processing package javascript-common (--configure):

Remove javascript common and reinstall again :

sudo apt-get purge javascript-common

sudo apt-get install javascript-common

And then install packages.

Source : http://ubuntuforums.org/showthread.php?t=2232128


How to replace missing icons with another icon-pack?

Try adding the icon to ~/.icons using the same name used in /usr/share/icons/hicolor/.... The point is that applications look first on ~/.icons for the icons they need.

For example, the icon for Nautilus is /usr/share/icons/hicolor/scalable/nautilus.svg. If you want to override it, add the icon you want to /home/username/.icons with the name nautilus.svg (must be a .svg image in this case).

If ~/.icons does not exists you need to create it

cd && mkdir .icons

Notice that, in general, you should use the same folder structure used in /usr/share/icons/hicolor. That is the way you add a new icon theme for example.


rtcwake only using tomorrow if time is passed

The following crontab entry should do what you want:

@reboot /usr/sbin/rtcwake -m no -u -t $(date +\%s -d "$(date +\%D -d '3 hours ago') +1 day +3 hours")

First, we subtract 3 hours from the current datetime and only keep the date:

$(date +\%D -d '3 hours ago')

...which will result in either today (if it's already past 3:00) or yesterday at 00:00:00.

Adding 1 day and 3 hours:

$(date +\%s -d "[...] +1 day +3 hours")

...will therefore result in either tomorrow 3:00 (if it's already past 3:00) or today 3:00.


Error connecting Qt Creator to Raspberry Pi using ssh

This is not a bug in Buildroot. On your server, you need to edit /etc/ssh/sshd_config and add this line :

Ciphers +aes128-cbc

Then restart the ssh daemon or reboot your RPi. See man sshd_config. This works if you are using OpenSSH. If you're using Dropbear, I don't know.


Can't login (through GUI) after upgrade from 11.10 to 12.04

I was glad to see the post and the UPDATE2. But I am completely at loss on how to fix it. From - https://launchpad.net/~sarvatt/+archive/sru1/+build/3118994

I installed the .deb package. After that, trying to install .udeb package, throws an error saying it couldn't replace a lib file already in .deb. Am I trying to do it right? Kindly help ! Below is the error when I ran dpkg install on the .udeb package:

dpkg: error processing xserver-xorg-input-evdev-udeb_2.6.99.901-1ubuntu3~lp921236_amd64.udeb (--install):
 trying to overwrite '/usr/lib/xorg/modules/input/evdev_drv.so', which is also in package xserver-xorg-input-evdev 1:2.6.99.901-1ubuntu3~lp921236
Errors were encountered while processing:
 xserver-xorg-input-evdev-udeb_2.6.99.901-1ubuntu3~lp921236_amd64.udeb


Ubuntu 12.04 won't detect my external monitor and nvidia-xconfig doesn't work

Thinkpad models with optimus have some of their external displays connected directly to the nvidia card, and the thinkpad display is connected to the integrated intel card. (See this blog post).

Easiest workaround (at least on the W520) is to go into the bios and change the display mode from "nvidia optimus" to "discrete". This will cause the laptop to ONLY use the nvidia card on all displays, which makes it possible to use multiple displays, but significantly decreases battery life. There are also more complicated workarounds that can allow for better battery life.


Why cant I download OpenSUSE With Ubuntu

If you have problems with a download that is hanging or being interrupted, you can download the OpenSUSE iso file (or any other file) from the terminal using the built-in wget program. Select a mirror that is both close to you and also seems unlikely to be too slow or interrupted.

Here is how to ensure that you will have a successfully completed download. Open the terminal. Change directories using the cd command to a directory where you can easily find the OpenSUSE iso file after you have downloaded it. For example to change directories to your desktop use the command: cd ~/Desktop/. Next run the following command:

wget -c 'download-link-of-OpenSUSE-iso-file'

where you replace download-link-of-OpenSUSE-iso-file with the link of the OpenSUSE iso file that you want to download. The -c flag in wget -c will enable the download to continue from the same place it was stopped if it is paused or interrupted. Unless you stop the download manually, it will resume the download automatically from the same place in the file where the download was interrupted. You can even pause the download and continue the download from a different mirror from the same place it was stopped, in case the first mirror that you selected is downloading the file too slowly. For example, if you intend to download the openSUSE-13.2-DVD-x86_64.iso file here is that file's worldwide Mirror List, and you can be sure that some of the mirrors on the list are much faster than others.


Wifi connection keeps switching between different access points

What you're describing is behaviour by design!

I suppose TELENETHOMESPOT is a network of hot spots set up by an ISP using residential routers so that when you're not at home, but near another customer of that same ISP, you can pick up their network.

Well now, that is the same thing large companies do with multiple antennas all broadcasting the same SSID, but on different channels depending on where in the building you are...

However, in a large company, they're all on the same network, and that's where your issue comes in: if the ISP didn't make this one big roaming network (which wouldn't surprise me as it's a HOMESPOT and not a HOTSPOT) you're actually switching between vastly different networks with each their own DHCP server instead of one vast network with only one DHCP server which is really annoying!

Therefore the only solution for such a residential HOMESPOT network is to go and sit as close to one of the routers as possible!  Alternatively, call the ISP and ask them if they have a real HOTSPOT network available and having experience with quite a few ISPs all over EMEA, that'll be an extra payable service...


crontab doesn't run my Python script with Anaconda environment

Jobs run through cron, or at, or batch, aren't run in the same runtime environment that you have on your desktop. None of your PATH changes, or other environment  variable settings are automatically propagated to  your cron job. For example, there's no $DISPLAY, so GUI programs need special treatment (read man xhost).
One can set environment variables for all one's cron jobs in the crontab file
Read man 5 crontab.
Look at the results of  echo "=== set ===";set;echo "=== env ===";env | sort;echo "=== alias ===";alias in each of your environments.
Since the command part of the crontab line is, by default,  interpreted by /bin/sh, which has a simpler syntax than /bin/bash, I recommend having command be a call to a bash script  (executable, mounted, starts with #!/bin/bash) which sets up the environment,  then calls the desired program..


I can't install Ubuntu 13.04 on a new computer

Have you tried with an older Ubuntu, ex. 12.10 or 12.04?
Also maybe you should try disabling the discrete video card from your Bios.


How can access another folder on another machine using file manager

Open the file explorer Nautilus by opening your home folder.
Click "File", "Connect to server".
In the "Server" field, enter the IP address of the computer you want to access. In the "Type" field, choose "Windows share". Click "Connect".

The folder should open, and it will be listed in the sidebar under "Network":

Alternatively, you can also use the "Browse Network" entry as bitsnbites suggested.


Why Ubuntu 14.04 LTS is working slow in my system while Windows 10 is performing much faster than this?

As biozalp mentioned you should make sure you have the 64-bit version
check with

System Settings->Details->OS Type

You should install the 64-bit version, if it shows you have the 32-bit one

it's very probable that you have nvidia optimus!
check with the below terminal command, its shows all your graphics cards on the system:

lspci | grep VGA|3D

If it shows 2 graphics cards, then you have nvidia optimus.

if you have Nvidia Optimus: then you should follow the below instructions to install the drivers properly in the answer here!:
Nvidia Driver and Heating Problem


This is primarily a VMWare question?  They do have procedures to facilitate this, although you may find that you would need to do some reconfiguration.  This link is from a slightly older version of VMWare Workstation, and describes how the ability to either dual boot into an OS, or run the OS as a virtual machine might be done.


Black screen with blinking cursor unresponsive keyboard

Have you tried to use fixmbr tools, to rewrite a standard MBR? The problem is that if the original MBR was not a standard one it might ruin all disk data...

The first sector "zero" have the MBR and also the disk partition table, which defines where the filesystem starts and ends, if that is lost are in need of tool that searches sector by sector for the 55AA signature at the 512 byte sector...

Downloading Ubuntu ISO and installing it to an USB pen will give you a bootable disk, just choose in the BIOS setup to boot from the PEN first.


The application specifies on its home page "Available for Mac OS 10.13+ and newer" and there's no mention of support for any Linux, so you must install VirtualBox or other virtualization software, then install MacOS X 10.13 or newer in the virtualization software before installing the application.

This requires you verify that your hardware is capable of running virtualization; some PCs are not.

Once you have
- verified your CPU and motherboard support virtualization
- you have installed VirtualBox or other virtualization software
- virtually installed MacOS X 10.13 or newer, then
- you can install that application.


Macbook Pro Retina with ubuntu 13.10 having trouble waking up from suspend

Installing kernel 3.13 RC 6 have fixed the problem with the black screen from suspend.

Follow the instructions here:
http://linuxg.net/kernel-3-13-rc-6-has-been-released-how-to-install-kernel-3-13-rc-6-on-ubuntu-linux-mint-pear-os-and-elementary-os/


The Command-Line Way (rather than What-You-See-Is-All-You-Get):

echo "something, or cat, or, ..." | sudo tee /etc/init/confuse-a-cat

tee will let you append to the target file, as well, see man tee.


Setting the mailname to a fixed value is easy, by adding this to your preseed file:

postfix postfix/mailname string your-preferred-mailname

However, that isn't quite what you asked: you asked for it just to use your FQDN (which is the default value for the question).  That's a bit trickier.  Whether a debconf question is asked is controlled by a combination of the question's priority and the "seen" flag.  However, just setting the "seen" flag will suppress the normal behaviour of picking up the default value from your FQDN, which isn't what you want.

I think you therefore have two reasonable answers.  Firstly, you could set the debconf priority to critical during installation, by using the 'priority=critical' boot parameter.  That ensures that you will only get asked questions whose answers the installer can't do without.  For most people, this is a good option when preseeding.

However, if for some reason you can't do this, you could use a computed preseed entry.  This is trickier; you have to make sure to fetch the FQDN after network configuration happens.  A safe, if hacky, way to do this is to abuse a hook provided at the start of partitioning:

d-i partman/early_command string \
  echo "postfix postfix/mailname string $(hostname --fqdn)" >/tmp/computed-preseed.cfg; \
  debconf-set-selections /tmp/computed-preseed.cfg

(I think this should work, but I haven't tested it.  Please confirm!)


The files in a correctly mounted drive are not visible, only a few empty folders are visible

Section assuming that you have a backup of your user data
(Continue to next section if you do not have a backup)
There is a chance that damage caused by a power outage at the wrong moment is quite severe. The most secure approach is to fully reinstall your system, reformatting the drives that were open during the power outage. That is the only secure way to ensures no corruption is lingering behind.
As a softer approach, you may first check the file systems and see whether there is damage. Drop to a root shell prompt in recovery mode and have all of your drives checked. The check will tell if there is damage or not. If the damage is small, you may be able to successfully repair the file system adding the -y option. If there is a lot of output from fsck, damage may be large and then, you will likely need to reformat.
If you were able to check the file systems, then you can test how it all appears. If the system does not behave well and/or a significant number of files are missing, you will still need to reformat the disk and then put your data back.
If you do not have a backup of your user data
Then you may need to attempt data recovery first. The golden rule here is: do not touch the damaged disk. Anything you do puts you at risk to overwrite more data.
Preferably, you have that attempted by a specialized firm. Otherwise you could attempt data recovery yourself using testdisk and photorec. testdisk can restore deleted or corrupt partitions, whereas photorec can carve the binary data and recover data where it recognizes a possible file. Do not hold your breath though. At best you recover a high number of files with random names, which you then will need to sift through to order them again.
The only real safeguard against disaster is a good and up-to-date backup. A backup of all your personal files is all it really takes to be safe. Operating systems and software configuration data are easily restored without you needing to have a backup for that.


Windows and Ubuntu/Linux permissions for folders on a common disk

For the future: it's better to ask one question so you can receive one answer, because the more questions you ask, the less likely you'll find someone that can answer all as they need to be an expert in multiple fields, which will become more and more unlikely the more questions you ask.

From the problems you're having I can infer that you're using NTFS as your file system for both the Ubuntu /home and the Windows 7 X:\users directory. (Where X is the Windows drive letter you use) This is not wrong as such, but it takes an expert at both Windows and Ubuntu file permissions to make it work properly.

So, I always also  advise to have an OS partition for Windows under NTFS, an EXT4 for Linux and then:

a. For the beginning user (not you), I advise to use FAT32 for a common data partition.

b. For the average user, NTFS as a common data partition, but:

To have X:\users separate from X:\home
To create X:\home under Windows and set file permissions under Windows to System and Everyone
Mount the entire NTFS partition under Ubuntu, allowing a /users with default Windows permissions and a /home with default Ubuntu permissions.
Never move files to/from /users to /home but always copy and delete the original. (and vice versa too)

c. For the expert: meh, whatever! Just don't mess it up!
Probably because the ACLs under Windows were messed up.
Hah!  You want me to tell you why you did something?  I'm sorry, but my right telepathy antenna is broken off and you're too far away from me to link directly to your computer right now. ;-)

I got rid of Windows a long time ago: with wine I don't need Windows any more and my data has been safely migrated to ext4 a long time ago and if I now need to transfer anything, I just copy it to a FAT32 USB stick!  (Mmmh, which actually makes me a beginning user according to my own definition!)

;-)


How to transfer data from Genymotion to host machine?

Try this:

Go to your VirtualBox VM settings Shared folder tab (open VirtualBox > select the Android/Genymotion virtual machine > Settings > Shared folders)
Add a shared folder with the folder you want to share, and check the auto mount and permanent options
Start your VM as usual from the Genymotion software
Your shared folder is available in the /mnt/shared directory (multiple shared folders are supported)

Source: Accessing files from Genymotion SD card | Stack Overflow


If you are classifying your system as a high-value asset, I would say the defaults are not sufficient. I would recommend downloading and reading the CIS benchmarks for Debian and Apache and implementing the hardening recommendations. More specifically out of the box 'root' logins are permitted with SSH server which is truly stupid. Attached is a link to the site where you can download them.

http://benchmarks.cisecurity.org/en-us/?route=downloads.benchmarks


How to fix corrupted permissions inside encfs encrypted folder

I've seen those kinds of errors before, while testing out EncFS & eCryptFS actually, but I didn't remember exactly where I'd seen it until now. It was from not having permission to read or list files in the directory (directories need x execute permission to list files), and I think it could've happened with a decrypt error too.

I had some issues with permissions in mounted/decrypted files before. They seemed to reflect only the permissions of the encrypted file (EncFS man page calls it the "rootdir"), and changing the mounted/decrypted files didn't seem to work. Maybe the owner & permissions for the "rootdir" / encrypted files aren't correct? Try changing the "rootdir"/encrypted permissions so your user can access them (rwx?).

I thought root should be able to read anything no matter what... but encfs doesn't need sudo to run, and I tried a test with a single encrypted folder secret and it's decrypted mountpoint open and the same thing happened:

$ ls -go
total 0
drwxr-xr-x 2 80 Nov 11 00:14 open
drwxr-xr-x 2 80 Nov 11 00:14 secret

$ sudo ls -go
ls: cannot access open: Permission denied
total 0
d????????? ?  ?            ? open
drwxr-xr-x 2 80 Nov 11 00:14 secret

Or maybe it's not decrypting the files correctly. If you have a good backup of the data that would be great.

I'm thinking the upgrade from 14.10 to 15.10 might be responsible. Sometimes using a newer version with old data doesn't always work well.

The encfs package versions I can find on http://packages.ubuntu.com/ are currently:
in wily (15.10) is version 1.8.1-3
in vivid (15.04) is version 1.7.4-5
in 14.10 it's not on the webpage anymore, was probably 1.7.4...
in trusty (14.04LTS) is version 1.7.4-2.4ubuntu2

Or, the .encfs6.xml "config file" may have been corrupted somehow. Trying to use a backup copy of it could work. man encfs has some details, but looks like it still has references to version 5.

I'd try, in order of preference:

Change the permissions of the encrypted folder/files so your user can read them all (& execute the folders, to list files)
Try a backup copy of the config file (.encfs6.xml) with a command similar to:

ENCFS6_CONFIG=/home/me/.encfs6.xml encfs /encryptedDir /decryptedDir

Recover the data from a good backup, and start with a new encfs folder/setup with the latest encfs.
Try using an older version of encfs to mount the folder, maybe with a live 14.04LTS

If there are no HD errors (see syslog & maybe even the SMART data) then I wouldn't suspect the HD immediately.


Looking at the kernel that comes with it, it is using Ubuntu-Core kernel 4.4.0-1030 https://launchpad.net/ubuntu/+source/linux-raspi2/4.4.0-1030.37 which is showing that it's architecture is armhf in which it looks to be 32 bit.

From this answer https://unix.stackexchange.com/a/125314/111521 :

  ARM processors have a completely different instruction set. You cannot
  install an x86 or x86-64 package on an ARM system. You need a package
  for ARM, for the correct instruction set, and more generally for the
  correct ABI. There are no major 64-bit distributions for 64-bit ARM
  processors yet, because the ARMv8 architecture revision which
  introduces a 64-bit instruction set is still very new and not commonly
  available. There are however multiple 32-bit ABIs, which assume the
  existence of different processor features and use different versions
  of the argument-passing convention. The main ARM ABIs used on Linux
  are:

  armel, based on the ARM EABI version 2 (known as “ARM EABI” or “EABI”
  for short), in its little-endian incarnation;
  armhf, which is a
  variant of armel that takes advantage of some features of newer ARM
  CPUs, in particular hardware floating-point support.

Also look here for more information:  https://wiki.debian.org/ArmHardFloatPort

This shows 32 bit as well:  https://wiki.debian.org/ArmPorts

Hope this helps!


Really you can use the ubuntu software center. With one click an app will be installed, it is very easy, no terminal required at all. But I recommend learning the terminal too. Actually at the beginning I hated it. But once you get familiar with it, it will be your friend. Get the book LinuxFund from here http://linux-training.be/downloads/


The easiest way is to upgrade the kernel to 4.4. It supports this adapter without adding backports.

Otherwise you will have to re-install backports after each kernel upgrade.

You can do it by running in terminal:

sudo apt-get install linux-generic-lts-xenial

Your Wi-Fi should work after a reboot.


What should be in the "misc-depends:" in a control file?

"misc-depends" is not a field in the debian/control file, but infact a variable that dh_gencontrol will substitute during the build of the binary package. As the New Maintainer's Guide says:

  Some debhelper commands may cause the generated package to depend on
  some additional packages. All such commands generate a list of
  required packages for each binary package. This list is used for
  substituting ${misc:Depends}.

In practice, it looks like:

Depends: libfoobar, ${shlibs:Depends}, ${misc:Depends}


How do I get Ubuntu to boot on an Intel X79 (Sandy Bridge-E) system?

After many failed attempts I successfully got Ubuntu to boot on my computer by disabling the external SATA controller on my motherboard. I booted successfully with:

Intel Stepping on
UEFI on
ASMedia ASM 1061 OFF

However, after this successful boot I began by turning the ASMedia controller back on AHCI mode and unplugging the four devices from the motherboard that use these ports, which successfully booted as well. Through trial and error I discovered the problems occurred when my CD/DVD drives were plugged in. I have two LG GH24NS95 drives that appear to be the cause of my problems from the beginning.


check support of Universal TUN/TAP Device on ubuntu 12.04

The tun/tap driver is standard in the generic 12.04 kernel: to check, enter

grep tun /var/log/kern.log

which will return

kernel: [2.317151] tun: Universal TUN/TAP device driver, 1.6
kernel: [2.317153] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>

I have recently tried a VPN and set it up by installing openvpn and specifying the settings, etc, and the tun/tap IP tunnelling driver is used automatically. By default the network-manager log will go to /var/log/syslog, so that will contain information about when your network connection is up or when it changes, say when you connect to a VPN. That log will have IP and DNS information about the new connection and whether it is using the tun/tap driver.


AMD Ryzen 5 2500U / Radeon Vega 8 Graphics drivers for Ubuntu 18.04

If anyone is still struggling with display resolution (tiny font) on Linux, here is what i did on my Linux Mint 19 (i switched to Mint).

Open control center, click on Appearance, go to Fonts tab, make sure Subpixel smoothing (LCDs) is selected and click on the Details button.

Under Resolution, turn off Automatic Detection, then change the Dots per inch (DPI) value to 120 (works pretty well in my case, fine tune the value according to your need).

Screenshots:

Firefox:

Make the following changes if you use Firefox.

Open Firefox, then type about:config in the address bar and hit enter, click on I accept the risk, on the next page, search for layout.css.devPixelsPerPx and modify the value to 1.3.


Cannot install any package in R at Ubuntu 18.04

Are you behind a firewall ? I had to add the proxy to my Renviron.site before proceeding on various servers:
sudo nano /usr/lib/R/etc/Renviron.site
#add following, edit to your proxy
http_proxy=http://myproxy.com:8080
https_proxy=http://myproxy.com:8080
ftp_proxy=http://myproxy.com:8080


Can my laptop run Unity, and if so, how?

Your laptop doesn't seem to be strong enough to run the 3D version of Unity. You can always use Unity 2D though, which is usability-wise same with the 3D version (and pretty close in appearance as well)

Installing it is rather easy , simply install it from the software center

(fun fact : some of the reviews in the software center show that many prefer the 2D version over the 3D one)


gem install error: "cannot load such file -- zlib"

In case of anyone's interested, i removed RVMand compiled Ruby from source code, as the official page recommends, then installed rails gem by:

sudo gem install rails

Using sudo is essential.


Is it possible to pay the ubuntu one storage with PayPal?

It is now possible to use PayPal to buy Ubuntu One services:

first launch your ubuntu-one control panel...

click the link shown ... and login to your website account...

click the add storage button...

select how much storage addons and billing...

select paypal when requested and login to your paypal to buy


Question about IP Address on VirtualBox for a home server

* VBox means VirtualBox, when used in this answer

10.0.2.15 is an address that falls in the 10.0.0.0 - 10.255.255.255 range, which is a "private network address" range, per RFC 1918 (page 4, section 3 states "private access space" for LANs and Intranets and such). Like network addresses starting with 192.168.*.*, those typically are internal network addresses for the given local network, in this case the 'network' used by VirtualBox on the system. VirtualBox tends to use local addressing within your system for it's virtual machines, so on the host machine you'd have to forward incoming traffic to the internal 10.0.2.15 address.

I'm going to guess that your system/server has one IP address from the router on your home network. You can use that IP address as the destination for the website, however, you cannot get an address more "public" than the 10.0.0.0 - 10.255.255.255 range, as it is a "private network" within your system (because VirtualBox is weird that way).

If you have a home system that is the host of the VBox VM behind a router that has an IP address of 192.168.1.194 (for example), and you have your VM on your system with an IP address of 10.0.2.15, the way to get data from the internet to the VM is two stepped, really:

(1) The router will need to route port 80 to 192.168.1.194 (or whatever the actual IP for your host system is, that is to say, the system running the VirtualBox VM.)

(2) Your system will need a specific iptables (or similar firewall) rule to forward port 80 or related ports from the host system to 10.0.2.15 (the VBox VM).


How to output web page html source code into a file

Why can't you use curl?

curl web-address > file-source.

will output the source code in the file

Like this

curl http://askubuntu.com/questions/822139/how-to-output-web-page-html-source-code-into-a-file > source-html


Iis the 'radeon' open-source driver (not fglrx) able to produce sound through HDMI in 11.10 (x64)?

The driver should work fine - make sure you have changed the hardware output to the HDMI output in your sound settings.

If the internal one is still highlighted then you will get no sound through HDMI.


How do I run FASM 1.71.17 in Xubuntu 13.04

If you read the documentation on the website you linked to, you will find that it is a command line program.

  All the versions are designed to be used from the system command line

So you need to open a terminal, find the program, and run it:

./program_name

If there is any problem preventing it from running it should tell you.

Also, you should go through the documentation to learn how to run the program.

  To execute flat assembler from the command line you need to provide two parameters - first should be name of source file, second should be name of destination file. If no second parameter is given, the name for output file will be guessed automatically.


White and red lines across the top of the screen with 13.04 on an Intel machine

I think it is not an ubuntu issue! It's sounds like your display h/w is damaged!
PLZ try to boot with a rescue boot cd ( like hiren-boot-cd ) and see when you booting live-windows, do you have same problem??

( I told you a live windows because if it be a kernel fault ( that may be ) then if you use another lin. distro it have no diff. but you could first try another lin. live-cd and if the problems does not go just notice me to tell you how you could make sure it is/is not a hardware failure )

goodluck!


Installing PiccSIM network control system simulation software on Ubuntu

Any Linux version supported by ns-2 and a recent java (openjdk-6-jre) package should work. PiccSIM is
  tested Ubuntu 8.04 and later. The following packages should be installed (e.g. sudo apt-get install):
  build-essential, automake, autoconf, diff, gcc, tcl, tar, grep, libpcap0.8,
  libpcap0.8-dev, libx11-dev, xlibs-dev.

You are missing =at least= "build-essential"


Try this

sudo modprobe -rv rtl8723be

sudo modprobe -v rtl8723be ant_sel=2

And to make these settings permanent do this also

sudo tee /etc/modprobe.d/rtl8723be.conf <<< "options rtl8723be ant_sel=2"


ubuntu desktop or server as dedicated server

I personally use desktop at home. it allows me to have a remote logon pc, home theater pc, and a webserver all in one.

in a business environment, server is better. having worked with both, you have to evaluate how you will use it. It is important for me to have that remote desktop and the webserver. your circumstances are likely different.


Yes, you can still install Ubuntu 12.04 LTS/ Ubuntu 13.10 on to your Windows 8.1 laptop.As long as your BIOS is set to the proper settings.

If secure boot is disabled, use a utility like UNetbootin or Win32diskimager to burn the Ubuntu .ISO to a USB drive.

If secure boot is still enabled, open up your BIOS settings during boot and look for things like Quick Boot, Launch COM, Secure Boot, anything close to that. And disable this. It will enable you to boot from Non-EFI devices. (e.g. USB drives, Legacy Operating Systems, etc.)


I had a similar problem. A short-cut to get it working again is to just use Wicd - http://www.wicd.net/ - which is an alternative to network manager.

The other way is to restore network manager from the repository again. Run sudo make uninstall and delete any network manager libraries, apt-get --purge remove network-manager (and any other packages), and re-install all the packages, and gnome-networkmanager.

Also, running nm-applet from within the terminal might generate some more useful debugging information - primarily identifying whether the applet could create a d-bus connection to the network manager.


Does Ubuntu Touch multitask like a desktop Ubuntu would?

Switching to windowed mode is possible with Unity8 15.04 version.


Managing systemd timers triggering conflicting oneshot services

I'm not entirely sure if this is the 100% correct answer. I've run through a lot of permutations and based on this, I've come up with this.

Observationally, it seems that if I have 2 timers (A and B) which are setup as Conflicts= and also have a collision on expiration with another timer (eg. both setup to trigger every minute), then the one that triggers (let's say it's A) first stops the other and then triggers it's service. However this stop causes the would be trigger on timer B's service to be lost. I'm guessing that the trigger is pulled off some queue and ends up getting tossed in the process of the stop.


Workaround to Achieve the Overview Action with Right Super..

install the package xcape

sudo apt install xcape

Create a startup application preferences with below command.

xcape -e 'Super_R=Super_L'


When automount ntfs partition, all file were marked "Allow executing file as program"

Add noexec to the options for that partition in your fstab.


In order to make it work i had to add the port number the ngrok provide me so, i try:

ssh -p 14592 -v esneyder@0.tcp.ngrok.io

Then it ask for the password and can login successfully.


List of packages filtered by last update period

AFAIK, Debian repository does not include the release date, package creation date or any other date in the default package listing. You may check it yourself, for example:

http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages.gz

So no way for APT to know.
However, there is a possibility for a workaround using a custom script that build minimal package list with their file attributes including creation & last modification dates from an FTP repository, example:

ftp://archive.ubuntu.com/ubuntu/pool/main


The option to disable tooltips is not exposed in the user interface. You need to edit a config file.

To disable tooltips, edit the setting.ini file of your theme. System wide themes are installed in /usr/share/themes. Themes can also be installed on a per-user basis in a hidden .themes folder in the home folder of the user.

The default theme of Ubuntu 18.04 is Ambiance. In the "Ambiance" folder in the above mentionned themes folder, you will find two gtk3 folders, gtk-3.0 and gtk-3.20. In each of these folders, you will find a settings.ini folder. Edit or add a line that reads:

gtk-enable-tooltips = false

to disable tooltips in GTK3 applications, including Gnome Shell, aka the Ubuntu Desktop.

To disable tooltips in GTK2 applications, edit the file .gtkrc-2.0 file and edit or add a similar line:

gtk-enable-tooltips = 0


ecryptfs on too-small harddrive - how to add links into the encryption?

You can accomplish this using mount.ecryptfs_private's alias feature.  From the manpage:

   mount.ecryptfs_private  is a mount helper utility for non-root users to
   cryptographically mount a private directory, ~/Private by default.

   This program  optionally  takes  one  argument,  ALIAS.   If  ALIAS  is
   omitted, the program will default to using "Private" using:
    - $HOME/.Private as the SOURCE
    - $HOME/Private as the DESTINATION
    - $HOME/.ecryptfs/Private.sig for the key signatures.

   If ALIAS is specified, then the program will look for an fstab(5) style
   configuration in:
    - $HOME/.ecryptfs/ALIAS.conf and for key signature(s) in:
    - $HOME/.ecryptfs/ALIAS.sig


caja (Mate file manager) plugin for meld?

I would recommend to contact Giuspen directly about you need.

Below are two alternatives:

Other possibility is to use shell alternative, I can share it with you:

sudo apt-get install meld

mkdir -p ~/.config/caja/scripts
cd ~/.config/caja/scripts
wget https://gist.githubusercontent.com/N0rbert/b0b11340e588b33fab542b0c72837e41/raw/6ec7f6ccea71ac3d473038c4ae66041494a24688/meld
chmod +x meld

it will be available in Caja when you have selected 2-3 files or 2-3 folders: File → Scripts → meld . See screenshots:

single pane operation
dual pane operation (F3, View → Extra Pane)

As temporary substitution you can try to configure custom action using Caja Actions Configuration Tool from caja-actions package.


Issue with setting up multiple IP addresses on Ubuntu Server

An alias interface should not have a gateway.

https://wiki.debian.org/NetworkConfiguration#Multiple_IP_addresses_on_One_Interface


How to redirect dd progress in terminal to a log.txt file but still display it on the terminal during the process?

The progress is output to STDERR rather than STDOUT. You could get something like what you want by doing tail -f on the file being written to like this:

mate-terminal --geometry=50x10 -x sh -c 'tail -f log.txt'
sudo dd if=/dev/sda of=/dev/sdb status=progress 2> log.txt"

tail -f log.txt will print everything being written to log.txt to the new smaller terminal and run as a background process so you can issue more commands while it runs.
2> sends STDERR stream to log.txt. If there is any output on STDOUT it will display in the terminal from which the command or script is run.


Disk setup with a small SSD and a large HDD

The first question I'd be asking is Can the SSD be trusted as a primary drive? This was built to be a a cache drive and cache data is usually a copy of something stored elsewhere. There's no need for that data to have any integrity. Invalid data? Just rebuild off the main storage. To use it as primary storage might not be a great idea because corruption there is permanent.

Next, Does it perform well? Cache SSDs are cheap patches to plug the hole that is the incredibly slow magnetic disk that laptops get. If it's unbranded (and there are no specs on the internet), give it a quick spin with the Disk Utility in a Live CD/USB

If the answer to these two is anything but "it's fine, it's a solid disk", I'd look at replacing it with a better mSATA (I assume that's the connection but check first!) SSD. Even ~60GB ones aren't that expensive and you can be a little more assured that they're not going to die on their first outing as a primary disk.

Where you plop your partitions is largely going to depend on how you use your system. I don't know how much user content you have versus installed applications.

For what it's worth, with a 120GB SSD, I have / and /home  on SSD with things symlinked and bind-mounted over to RAID5 and RAID1 and NFS. Steam allows you to store things on other media so that handles itself quite nicely. And I occasionally manually copy things to SSD for speed and symlink them.

... But I have the space to make that possible. 24GB is really restrictive. I don't think that approach is going to work well for you.

You're not mentioning another option: Throw the crappy 5400RPM laptop drive into the ocean and buy a better SSD to replace it and use network storage for all the data you hold dear.

Laptops are awful permanent storage because they get stolen, lost and dropped. It might make sense to have a centralised NFS NAS where you keep all the important stuff.


The file you're looking for is /etc/grub.d/10_linux. Look for the line

linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}

and remove ro from it. You should then let grub update its /boot/grub/grub.cfg by running

sudo update-grub

You shouldn't edit the file /boot/grub/grub.cfg manually as it will be restored to default each time you upgrade the grub package.

Edit

That said, it's probably not a good idea to remove the ro parameter. This parameter is there for a reason: it's so that filesystem consistency check (fsck) utilities can work safely on the root device at boot time. Your /etc/fstab then ensures that it will get remounted rw. See man bootparam


How to extract uncommon case insensitive text from two files?

Since you're already using awk, use tolower to lowercase the lines:

awk 'FNR==NR {a[tolower($0)]++; next} !a[tolower($0)]' foo bar

However, this only prints lines in bar which were not in foo.

Compare with:

$ sort -f bar foo | uniq -iu
http://example.com
http://example1.com
http://seperate.com

With awk, you also need to print every line which was seen only once:

$ awk '{a[tolower($0)]++} END {for (i in a) if (a[i] == 1) print i}' foo bar
http://seperate.com
http://example.com
http://example1.com


Scheduled shutdown with Gnome-scheduler - how to enter root psw

I think that the best way to do this is a two-step process:

1) adding the command you want execute as root in sudoers so that your normal user can execute it without password. To do this, create a file in /etc/sudoers.d/; you can call it whatever you want, for example my-settings(1)(2):

sudo gedit /etc/sudoers.d/my-settings

with contents:

romano ALL=NOPASSWD: /usr/sbin/pm-suspend
romano ALL=NOPASSWD: /sbin/poweroff

(obviously, change romano with your normal user; if you do not need to suspend too, you can omit the first line). Now you have to make the file readable by root only:

sudo chmod 440 /etc/sudoers.d/my-settings

...and you are set. Now you should be able to run sudo /sbin/poweroff to shut off the machine and you will not be prompted for a password.

2) Add the command sudo /sbin/poweroff to your gnome scheduler or use it in your scripts.

I use it a lot to do a nightly backup with a command line of the style "my_backup_script; sudo /usr/sbin/pm-suspend` or after long commands (say, converting a video format and then poweroff).

There is a Ubuntu page about the sudoers file, but it is not really up-to-date (it was written before the sudo utility had the ability to parse the /etc/sudoers.d directory), although the info there is still valid.

Footnotes

(1) note that this work in recent version of sudo (I mean, the availability of /etc/sudoers.d directory). You can check if it will work by looking at the file `/etc/sudoers; if it has the line (near the end)

#includedir /etc/sudoers.d

it will work. Otherwise, you need to add the abovementioned lines directly to /etc/sudoers files; be careful and use visudofor that, because a broken /etc/sudoers file is one of the most difficult things to recover in Ubuntu systems.

If you edit the main files directly, be warned that it could get overwritten on updates.

(2) No dots allowed, so do not use an extension! See /etc/sudoers.d/README for more info.


Replace #include <sys/time.h> with #include <time.h>

and  fprintf(stdout, "time=%d.%d\n", tsp.tv_sec, tsp.tv_nsec); with

fprintf(stdout, "time=%d.%d\n", (int) tsp.tv_sec, (int) ttsp.tv_nsec);

Another good example: http://ubuntuforums.org/showthread.php?t=1244004&p=7812845#post7812845


How can I move application windows with shortcut keys to the four quadrants of the screen in Ubuntu Mate 20?

It seems that you have not read release notes of latest Ubuntu MATE 20.04 LTS release:

New Key-bindings
...

Title Window to upper right corner: Alt + Super + Right
Title Window to upper left corner: Alt + Super + Left
Title Window to lower right corner: Shift + Alt + Super + Right
Title Window to lower left Corner: Shift + Alt + Super + Left

Enjoy!


I had the same problem: desktop resolution was way bigger than my screen. After reading this ubuntu wiki page I fixed the problem just by changing the resolution with a command like this: xrandr --output VGA1 --mode 1024x768 (you'll have to change the output and resolution to your needs)


New 14.04 LTS Install Extremely Slow Overall

Yup your Ram is the problem consider adding AT LEAST another 512mb...here are some other tips to speed things up!  Since you have such little Ram I HIGHLY RECOMMEND USING XUBUNTU!

Change Swap
gksudo gedit /etc/sysctl.conf

ADD THIS ENTRY AT END AND SAVE

vm.swappiness=5

Remove bloatware
https://fixubuntu.com/

wget -q -O - https://fixubuntu.com/fixubuntu.sh | bash

Get the following Tweak Tools
Ubuntu Tweak ( sudo apt-get install ubuntu-tweak )

Tweak Tool ( sudo apt-get install gnome-tweak-tool )

Unity Tweak ( sudo apt-get install unity-tweak-tool )

Dconf Editor ( sudo apt-get install dconf-tools )

Compiz Config Editor ( sudo apt-get install compizconfig-settings-manager compiz-plugins-extra -y )

Review each section of each tool and modify as desired

Get Bleachbit
I suggest downloading the newest version as the one in the repository(Software Center) is old. You can download it here: http://bleachbit.sourceforge.net/download/linux

Review the following sites and modify your system as needed.
https://sites.google.com/site/easylinuxtipsproject/first#TOC-Decrease-the-swap-use-very-important-

https://sites.google.com/site/easylinuxtipsproject/speed

http://www.techsupportalert.com/content/best-free-software-linux.htm?page=0,0#Introduction

http://smashingweb.info/things-to-do-after-installing-ubuntu-14-04-lts-for-perfect-desktop/

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

http://www.techsupportalert.com/content/tips-and-tricks-ubuntu-after-installation-ubuntu-1404.htm

Check FPS

Open terminal

type glxgears

hit enter

HOPE THIS INFO HELPS A BIT!

One other awesome tool I use is CPU Indicator

Open Terminal

Install

sudo apt-get install indicator-cpufreq

Run

'indicator-cpufreq' in terminal to launch

Reboot!!! You will see the icon in the top bar of unity interface.
Right or left click icon and select the fastest cpu speed or desired speed! This tool is AWESOME and will help a TON!


There are over 1000+ printers supported natively in Ubuntu (or for that matter any other up-to-date distribution). The 1000 supported printers is a little bit short since Linux supports A LOT more.

The steps to get your printer working in 99% of the cases is (Follow the instructions precisely to the point. Step by step without jumping any steps):

Step 1 - Turn Printer ON (If not already done)

Step 2 - Connect Printer cable to Printer (If not already done)

Step 3 - Connect other end of Printer cable to Computer with Ubuntu

Step 4 - Enjoy! ;)

NOTE - In the case your printer is not automatically found and configured go to System Settings -> Printers and click on the Add button to look for it manually. This method supports USB and Network printers on the same LAN. It also supports looking for the correct drivers for the printer, downloading them and basic configuration in the moment of installation.

I can show you a small percent of supported printers here:

http://www.cups.org/ppd.php

but this list is out-of-date and needs some serious refresh since many of the ones I use are not listed there.

Another great source is http://www.openprinting.org/printers which lets you quickly look in a LONGGGGG list of printers. I recommend searching by the manufaturer and then the model because trying to look for list of the manufacturer (second option below) will take a long time and since I am saying there are a lot of printers already literally plug n' play for linux then the list will be huge. I tried HP and lost count.

If this is not enough HP offers a one click software for Ubuntu to support a little over 2000+ HP printers here: http://hplipopensource.com/hplip-web/index.html. Note that many of them are already supported but you will get enhance support like Ink Level notices and better control for the printer for specific stuff for it.

You can even find from companies like HP, Epson an Canon an option to actually install the needed drivers from their sites. When you try to install some of the printers from this guys, if the driver is not on your Ubuntu version, you will get an option to download and install it. A case is the Epson L555 which downloads from Epson and supports Wireless printing, Wireless scanning and finding the printer on the LAN.

UPDATE - Added site list to search for the 2000+ HP printers easier: http://hplipopensource.com/hplip-web/supported_devices/index.html

Copied from Luis Alvarado
Source : How do I install my printer with Ubuntu?


From cbk-next git did you tried this:

  Problem: Keyboard doesn't work in BIOS, doesn't work at boot Solution:
  Some BIOSes have trouble communicating with the keyboard. They may
  prevent the keyboard from working correctly in the operating system as
  well. First, try booting the OS without the keyboard attached, and
  plug the keyboard in after logging in. If the keyboard works after the
  computer is running but does not work at boot, you may need to use the
  keyboard's BIOS mode option. BIOS mode can be activated using the poll
  rate switch at the back of the keyboard. Slide it all the way to the
  position marked "BIOS". You should see the scroll lock light blinking
  to indicate that it is on. (Note: Unfortunately, this has its own
  problems - see Known Issues. You may need to activate BIOS mode when
  booting the computer and deactivate it after logging in).

source:https://github.com/mattanger/ckb-next#linux


i got it.

1: /etc/ppp/options

lcp-echo-failure 10 # (from /etc/ppp/options)
lcp-echo-interval 10    # (from /etc/ppp/options)
lock
crtscts
nodeflate
persist
asyncmap 0
noauth
hide-password
noipx

nohup make background python job.

  nohup python3 /root/linux/PPTP_Linux2/main.py &

  ps ax | grep py


How can I change the password of Deja-dup (Backup)?

You can't easily change the password unfortunately.  In order to do so, you must either create a fresh backup in a new location or delete the existing backup files and back up again.

However, it sounds like you may have hit a bug.  Please consider filing a bug at https://launchpad.net/deja-dup/+filebug


There is no default password for sudo.  The password that is being asked,   is the same password that you set when you installed Ubuntu - the one you use to login.


Installation stops with random text and blinking cursor

I had problems of random sort when booting from a CD that I burned, to finally discover that the CD itself was not so reliable. When you first boot, one of the options is to check the CD (I think). You can do this, to verify that indeed your CD is in good condition. With the too many problems related to CDs that are burned at home, I now use USB keys with the ISO files, that I just recycle as new versions/distributions are published on the net.

If your computer CANNOT boot from usb, there are some small distributions that you can put on a floppy or CD, boot from it, and then get access to boot from a CD.

Finally, the last resort would be to remove the hard disk from your laptop, and set it in a desktop with the cabling for it. Boot your desktop and install on THAT hard disk, taking precautions to install the bootloader on THAT hard disk, not /dev/sda by default (this is your own internal first hard disk). Although this is a riskier solution, I used this to install on an old laptop which had a defective cdrom reader, and could not boot from USB.


Just format HDD in ext4, cannot create any folder

It looks like the partition you're talking of is /dev/sda1, and it is mounted at /media/sassari74/eaae11b1-a939-4674-a5a7-6e0357, so do:

sudo chown $USER /media/sassari74/eaae11b1-a939-4674-a5a7-6e0357 -R

This should set the ownership to you and you should then be able to create and modify files in it.


Wired connection is up but internet does not work

Follow the notes in man resolvconf and you'll see that you probably need to add some info to /etc/network/interfaces. Something like:

dns-nameserver [gatewayip]
dns-nameserver 8.8.8.8
dns-nameserver 4.2.2.2

And to make it work right away, vi /etc/resolv.conf and add:

nameserver [gatewayip]
nameserver 8.8.8.8
nameserver 4.2.2.2


Switchable Graphics: Embeded graphics card problems

If you want to disable the AMD card, follow this link
Also you may want to uninstall the proprietary drivers :sudo apt-get remove fglrx*


It is located in /opt/extras.ubuntu.com/my-weather-indicator/bin/. You can execute it in a terminal.:

/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator

You could locate the binary for the my-weather-indicator package with:

dpkg -L my-weather-indicator | grep bin

Output:

/opt/extras.ubuntu.com/my-weather-indicator/bin
/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/dygraph-combined.js


You will have to choose one because I haven't got much experience with it but here is a list of capable players for .smil files: http://www.w3.org/AudioVideo/#SMIL

Apparently http://www.ambulantplayer.org/ can play all the formats of smil files so I would recommend you start with this one.

You can build the source code following the instructions here.

Hf and gl ;)


Go to System Settings
Select Screen Display
Set the desired resolution
Reduce the slider in Scale for menu and title bar
Hope this helps


system-config-lvm will be removed if i install Playonlinux?

i've looked into this problem myself for the past couple days, and it seems that this is a dependency issue having to do with the "gettext" package, anyway i have worked around the problem by first completely uninstalling system-config-lvm, installing playonlinux, and then reinstalling system-config-lvm


Using different RAM types, memory caching applications or other host techniques that affect access to physical RAM may affect RAM allocation of the guest in VirtualBox.

If we can't avoid such techniques in the host we may try to enable pre-allocation of RAM for a virtual machine with the following command:

VBoxManage setextradata <vmname> VBoxInternal/RamPreAlloc 1

Another cause for issue with RAM allocation may come from guests that had memory ballooning enabled.


Ubuntu Server Configuration -- Harddrive Partitioning

First, you really should not use NTFS for your linux (root) partition, use ext4.

Second you can install a server in as few as 5 gb + additional space for data. with modern large hard drives, I suggest 20 gb for root.

I am not sure why the installer is making such a large root partition, I syggest advanced partitioning.


My 'USB flash' does not have write permission. I can't copy files into it via Nautilus?

It is not necessary to format the flash drive or to nuke the partition.
You can go to mount and then change the ownership of your flashdrive.
On ubuntu :

cd /media
sudo chown -R username drivename

Of course replace username by your username and drivename by the name of your flash drive.

Then you will be able to use nautilus as usual to copy/move/delete your files.


Canonical Landscape - How to increase Cron script timeout?

First potential solution:
Change cron from half-past to let's say 11 or some other random time that works for you.

Second potential solution:
Also, you can implement random sleep in the script that will delay executing an actual script.

Third potential solution:
Update to latest version of Landscape, I believe that was already implemented (second solution) an resolved in the latest version.

Hope this will help.


How to change folder permissions to read, write and execute

For settings permissions you need the command chmod.

The following permissions are enough for files: sudo chmod 664 /opt/lampp/htdocs/myfirstfile.php inside a directory.
For directories sudo chmod 775 /opt/lampp/htdocs is enough.

You can add -R as an option to set it from where you are and everything below but please do not open permission more than needed (even though the creator of XAMPP does not care for security).

And please use the native LAMP stack. It is a bit harder to master but it does have a decent security out of the box.


start script after resume as logged in user (not root)

Your missing the DISPLAY definition. Also, making it depend on Network connection is better. For me on arch linux works:

/etc/NetworkManager/dispatcher.d/20-owncloud

 #!/bin/sh
 case "$2" in
       up)
               # is called as soon as connection is up
               env DISPLAY=:0 sudo -u yourusername owncloud
       ;;
       down)
               # yes, maybe that is better in system-sleep
               killall owncloud
       ;;
esac

The script has to be owned by root:

sudo chown root:root /etc/NetworkManager/dispatcher.d/20-owncloud

Don't forget to make that script executable:

sudo chmod 755 /etc/NetworkManager/dispatcher.d/20-owncloud

and start/enable the NetworkManager dispatcher:

sudo systemctl start NetworkManager-dispatcher.service
sudo systemctl enable NetworkManager-dispatcher.service

At least on arch it works that way, maybe slightly other names in ubuntu.


To start off, your product shouldn't use rc.local at all. rc.local is for the system administrator to fiddle with; they can do whatever they want with it (as long as it exits successfully). This makes editing it tricky at best.

Now which should you use? The answer is simple.

All of them.

A system uses a single init system at any given time. If you provide configuration for all of them, the one which is most compatible with the running one is used automatically.

A quick overview

System V init

Both Upstart and systemd support these, so you can write sysv init scripts and have them work everywhere.
This init system only does one thing: call your script with an appropriate parameter. Everything else - tracking the started processes, changing users, setting the environment, etc., has to be done in your script. This makes the init script method fragile if you're not good at scripting (scripts are typically shell scripts, but I suppose it can be something else). Some standard functions are provided for convenience, locations varying from distro to distro.
Ordering of init scripts is done based on filenames and presence in the various /etc/rc* directories, and on special comment headers.

Upstart (≤ 14.04)

Event-based. Makes it possible to have your job wait for particular event to happen (filesystems mounted, network up) before starting.
Unfortunately, Upstart's implementation makes it tricky to use more complex startup configuration. Also, it's difficult to insert your job in the dependency chain of some other job after the fact.

systemd (≥ 16.04)

Dependency-based. Units are started when needed. See Systemd for Upstart users for more info. Current default init in Debian, Ubuntu and RHEL-based systems.
Systemd's cgroups-based approach for tracking processes is the most reliable. This makes it difficult for processes to escape a given (security) context or resource limitation.
Administrators can easily override init configuration without stepping on the toes of the package maintainer.

Both Upstart and systemd have clear advantages over sysv init. Both of them are more declarative than imperative, with builtin support for various tasks involved in managing services. You should use the most modern init system available in whichever releases you support.


Deleting folders and files from a directory

This command will remove directory and sub-directories

  rm -r directory_name

This command will remove forcely

  rm -rf directory_name

This command will remove the empty directory

  rmdir directory_name


Manual pages are essentially glorified help files. Their goal is to explain what programs do, and how to alter what they do through command-line flags and arguments.

If you look at the SYNOPSIS and OPTIONS sections of manpages, you will typically be able to understand enough about what your program does.

Don't allow the "technical" wording of manpages to throw you off -- they were typically written by developers in a developer mindset. The more you read/use them, the better you'll get and the more you'll develop your own tricks to using man.

If you press the h key in man, you can get a lot of useful keyboard shortcuts (and general help) that will make your browsing (hopefully) faster. They're similar to the keystrokes for less, so it's essentially a 2-for-1.

And, you can always refer to the manpage for man (man man) to get a quick rundown of man. You can't break man too badly, so just feel free to experiment and try out things.


How can i report a bug about apport-gpu-error-intel.py crashing?

Actually, apport-gpu-error-intel.py belongs to the xserver-xorg-video-intel package:

Run dpkg -S apport-gpu-error-intel.py to check which package contains this file:

xserver-xorg-video-intel: /usr/share/apport/apport-gpu-error-intel.p

Find out the source package for the binary package xserver-xorg-video-intel using apt-cache showsrc xserver-xorg-video-intel | grep '^Package:'

Package: xserver-xorg-video-intel
Package: xserver-xorg-video-intel

In this case, the source package has the same name as the binary package (xserver-xorg-video-intel), but that may not always be the case (e.g. binary package apt-utils has source apt)

Bugs for that package can be reported on https://launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bugs


I have tested this using a OpenVPN server and setting up the redirect-gateway def1 option in the client and server config works fine.

When I access whatismyip.org, I see my OpenVPN server's IP.

Below is the client config I use:

client
dev tun
proto udp
# THE IP OF THE REMOTE OPENVPN SERVER:
remote ip_address port
resolv-retry infinite
nobind
persist-key
persist-tun
# THE CSR FILE:
pkcs12 certificate.p12
ns-cert-type server
cipher AES-256-CBC
comp-lzo
redirect-gateway def1
verb 3

I have tested also with appending redirect-gateway def1 option to the openvpn command and achieved same result.
The server config is:

port 1194
proto udp
dev tun

dh /etc/openvpn/easy-rsa/keys/dh1024.pem
ca /etc/openvpn/easy-rsa/keys/ca.crt
# ENSURE THE DOMAIN NAME/FILENAME IS CORRECT:
cert /etc/openvpn/easy-rsa/keys/cert.crt
key /etc/openvpn/easy-rsa/keys/cert.key

server 10.5.3.0  255.255.255.0
# YOUR LOCAL SERVER IP HERE:
client-config-dir ccd
route 10.5.3.0 255.255.255.0
ifconfig-pool-persist ipp.txt
cipher AES-256-CBC
comp-lzo
persist-key
persist-tun

status log/openvpn-status.log 5
status-version 2
log-append log/openvpn.log
verb 3  # verbose mode
management localhost port /etc/openvpn/management-password

# ROUTE THE CLIENT'S INTERNET ACCESS THROUGH THIS SERVER:
push "redirect-gateway def1"
push "remote-gateway vpn_server_ip"
push "dhcp-option DNS 8.8.8.8"
keepalive 10 60


Any way to disable plasmashell startup for Kubuntu?

I use bspwm alongside the plasma DE myself, I understand your problem, I could never find a way to stop plasmashell from opening at startup even with the setting (StartupandShutdown->DesktopSession->OnLogin->StartWithAnEmptySession)
I made a small script that runs for one minute and searches for the pid of plasmashell then runs a kill command, its not the best fix but it fixes the issue.
#!/bin/bash

run="1 minute"
end=$(date -ud "$run" +%s)

while [[ $(date -u +%s) -le $end ]]
do
        plasma=$(pgrep plasmashell)
        kill "$plasma"
        sleep 10
done

Just make a .sh file and add to autostart in the KDE settings manager,you can change the overall run time as needed for your login time.
Hope this helps!


Sound resets to 100% after reboot on Ubuntu 16.04

I created a new user and found that sound works correctly with the new user. That means that something was wrong in user configs. I found some configs and it looks like the problem is solved. The files were not in text format and I have no idea what that format is.

I removed all files from ~/.config/pulse/ and rebooted. Now it works OK.

I also removed all files from /root/.config/pulse/ to fix 100% volume on login screen.

I think they've changed format of some config files in the new version of pulseaudio. The config from 14.04 confused pulseaudio in some way.

I saw some bug reports about this issue. It may happen when you replace Ubuntu versions with the same /home.

Update: This looks like a distro upgrading bug. I upgraded 14.04 to 16.04 on another computer, and there was the same issue.

cookie file needs to be removed in ~/.config/pulse/ after an upgrade.


sudo -H gedit /home/myname/thinkpad1/thinkpad1.ovpn # edit this .ovpn file

Add the following to the END of the .ovpn file...

script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

Save the file and quit gedit.

Retry...

sudo openvpn --config /home/myname/thinkpad1/thinkpad1.ovpn # start VPN


gdm may be buggy.

As a workaround, I use lightdm.

sudo dpkg-reconfigure lightdm

Choose lightdm as the display manager. And X restart works.

sudo service lightdm restart


Errors were encountered while processing: linux-image / headers / generic

apt-get -f install

is generally used to fix broken dependencies


How can I install Ubuntu Landscape on my LAN?

To register a new client on the hosted landscape server follow the instructions linked in the grey box to the left of the screen when you have logged in to Landscape (right under where it tells you how many computers are registered in your account).  The link text reads "following these instructions.".

Installing Landscape on your own network is a more involved task.  For most use cases the hosted product is a good answer, but if you're in a situation where a local instance is  appropriate the first step would be to start talking to Canonical.  You can make contact here: http://www.ubuntu.com/business/services/contact

To learn more about Landscape Dedicated Server's architecture, see:

Release notes for latest Landscape Dedicated Server
Recommended deployment
Server install quickstart


How do I disable visual effects in Ubuntu 12.04.1?

First of all, you might want to try Unity 2D; just select it when logging in. You will have no 3D desktop, but you will keep the HUD and other Unity goodies.

Second solution is to install the Compiz Settings Manager, known as ccsm, and tune it to your heart's content. You will still be using Compiz, but you can switch off annoying eye-candies, if that is what you want.

There is no way of keeping Unity 3D without Compiz, because it is a Compiz plugin.


Use tmux set-clipboard in gnome-terminal (XTerm's disallowedWindowOps)

Sorry, gnome-terminal doesn't support this.

The actual emulation is handled by the vte widget. In its source code, src/caps.c contains the table where matching/parsing the incoming escape sequences begins. \e] is called OSC here, and OSC "52..." is not defined here.


If I understand your question correctly you have an external HDD, presumably with a USB connection, and you want to get a computer that happens to have Windows installed to boot the Ubuntu OS on the USB drive. You certainly don’t do that from Windows. You need to get into your BIOS/UEFI and change the boot order. If you make USB the first boot device it will boot that when it’s connected and boot Windows when it’s not. You will need to turn off secure boot if you have a modern system with that enabled.


what do I select for configuring grub-pc after an update?

if you don't think you changed /etc/default/grub yourself, overwrite. using this google search you can find many relevant documents


How can I set an HTML page as the desktop background?

You cannot do this with Nautilus or Compiz, no. I don't know what exactly the screenlets you are talking about are, but the general answer is no. File managers and the window manager, do not use a webkit view to draw the background and icons. This works in Windows, because the file manager and web browser, are the same thing. In Ubuntu, they aren't.


X Server Doesn't Start Until After Decryption Of HDD on Ubuntu 14.04

You can't. If the whole disk is encrypted, you can't use it until you decrypt it. You have to get the X server from disk to run it. You might be able to install an X server (and all that it needs) on a second, unencrypted disk, but then you might as well go with encrypted Home directories, instead.


how to open/change config file of tvmobili in terminal

Have a look at /etc/TVMOBiLi/instances/<instance>/conf/tvMobiliService.conf for the configuration command line file. Once you have edited this file you will need to restart the service.

localhost:30888/__index will also get you directly to configuration if you are on the system that has TV Mobili installed.

If you are on a different computer to the one you installed TV Mobili onto you can access your installation through the following page. You should see a list of computers on that page, click on the computer that you wish to configure.

Tv Mobili also has it own support forum so you might get better answers there.


So this does not answer the question exactly as written, but being the OP, I know that it's close enough. The trick I was was to use google hangouts instead of google video calls as follows:

Create a circle which includes those people you want to allow to call the machine. Start a hangout for this circle on the machine you wanted auto-answer on. Now everyone in the circle will be able to start video communication with this computer.


Firefox not using GTK theme on KDE Plasma

I found out why this was not working. I could not get Firefox themed properly even on a GTK-based desktop environment. Firefox apparently dropped support for GTK themes a while ago, so it won't be themed accordingly.


How do I set the at command shell to bash?

You can't change the default shell of at, it is hardcoded as /bin/sh in the source.

The source code of at clarifies this, from at.c:

    /* POSIX.2 allows the shell specified by the user's SHELL environment
       variable, the login shell from the user's password database entry,
       or /bin/sh to be the command interpreter that processes the at-job.
       It also alows a warning diagnostic to be printed.  Because of the
       possible variance, we always output the diagnostic. */

    fprintf(stderr, "warning: commands will be executed using /bin/sh\n");

Implementation, from atd.c:

if (execle("/bin/sh", "sh", (char *) NULL, nenvp) != 0)

The man page conforms accordingly:

  at and batch read commands from standard input or a specified file which are to be executed at a later time, using /bin/sh.

That leaves you to recompile your own copy as the only solution to meet your need.


Is it possible for users not to be in passwd?

/etc/passwd and /etc/shadow are not the only places where users can be defined.
These files define only the users which local users.

You can add remote sources of users and groups definition, like :

an LDAP server
a NIS/NIS+ server
a SAMBA or Windows Domain Controller server
...

To review all users & groups known by your server, from whatever sources they come, you would preferably use the getent command :

getent passwd

will list all users known by the system, the ones from /etc/passwd like the one from remote servers.

For more information about the configuration of users coming from remote servers, I suggest you read any resource about NSS (Name Service Switch) like man nsswitch.conf or this article on Wikipedia.


how to clear % from echo -n in shell script

Add an echo after esac and before exit 0.

That's because echo -n does not append a newline character, and as a result the cursor remains after the last output character.

Otherwise,

Change all the echo -n within the case...esac with plain echo.

Normally, one uses echo -n only when they explicitly want to suppress adding a newline at the end of output.


Unity keyboard shortcut to move mouse (and focus) from one screen to another screen

Toggle between screens and (optionally) set focus on the (full screen) window

The script below will toggle (and "focus") between the left and the right screen if both screens are more or less center- or top aligned, and more or less of the same vertical resolution.
I assume in practically all situations of a left/right screen setup it will work.

The script

#!/usr/bin/env python3
import subprocess
# just a helper function
get = lambda cmd: subprocess.check_output(cmd).decode("utf-8")
# get the current mouse position
current = [int(n) for n in [it.split(":")[1] for it in get(["xdotool", "getmouselocation"]).split()[:2]]]
# get the x/y size of the left screen
screendata = [(s.split("x")[0], s.split("x")[1].split("+")[0]) for s in get(["xrandr"]).split() if "+0+0" in s ][0]
xy = [int(n) for n in screendata]
# see if the mouse is on the left- or right screen
if current[0] < xy[0]:
    # if the mouse currently is on the left screen, move it to the right (from the middle of the left screen)
    command = ["xdotool", "mousemove", "--sync", str(current[0]+xy[0]), str(xy[1]/2)]
else:
    # if the mouse currently is on the left screen, move it to the right (from the middle of the left screen)
    command = ["xdotool", "mousemove", "--sync", str(current[0]-xy[0]), str(xy[1]/2)]

subprocess.Popen(command)
# optional: click after the mouse move: comment out if not needed / wanted
subprocess.Popen(["xdotool", "click", "1"])

How to use

The script need xdotool to be installed (!)

sudo apt-get install xdotool

Copy the script into an empty file, save it as toggle_screenloc.py
Test-run it by the command:

python3 /path/to/toggle_screenloc.py

If all works fine, add it to a shortcut key: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

python3 /path/to/toggle_screenloc.py

What it does exactly

If the script is run, it:

derives the (left) screen's size (x/y) from the output of the xrandr command.
it sees if the mouse is on the left- or right screen, by checking the (xdotool) command:

xdotool getmouselocation

If the mouse pointer is located on the left screen:

it is moved to the middle (vertically) of the left screen, and horizontally moved to a position, equal to the current position + the width of the left screen.

If the mouse pointer is on the right screen:

actions are the opposite.

Subsequently, the mouse clicks a single time to set focus on the (possible) full screen application (optional).


Problem installing gnome desktop - Ubuntu 14.04

I think you have to enable the universe and multiverse repositories in order to get a clean install of gnome-shell on 14.04 because of all the dependencies. If you would like to add these repositories, run the following commands:

First, make a backup:

sudo cp /etc/apt/sources.list /etc/apt/backupsources

Then, edit the file:

sudo sed -i 's/main/main universe multiverse /g' /etc/apt/sources.list

Next, update your package list:

sudo apt-get update

Now, you have two options. First, you could install using apt-get:

sudo apt-get install eog gnome-shell

Alternatively, it's much easier to install a default desktop on a system that does not yet have an xserver by using tasksel to automate the process somewhat.

First, install tasksel:

sudo apt-get update
sudo apt-get install tasksel

Next, run tasksel, follow the on screen instructions, use the arrow keys to navigate, the spacebar to select or un-select, and the enter as normal.

sudo tasksel


Install same packages from one server on another

Try this command line to generate your package list instead (you'll need to apt-get install aptitude if you haven't):

aptitude search -F '%100p' '~i!~M' > installedpackages

This should omit all those machine-specific preinstalled packages and only list things you deliberately selected (and their dependencies).

If even that has too much stuff in it, this should list more or less just the packages that you have explicitly installed (their dependencies will be pulled in automatically, of course):

deborphan -a --no-show-section > installedpackages


How do I configure a wireless samsung printer?

I found the answer myself with the help of this post, as the documentation for the printer is really bad. Fortunately it is possible to configure the printer within Linux. The key to setting Samsung printers up is the web server they include, a software called SyncThru Web Service. As previouly mentioned, all other software is platform specific and won't run on linux.

My printer is a SL-C410W one, but these instructions should work for most Samsung models. There are a few ways to connect to and use the printer, I mention a few of them and give the steps to configure the printer:

Typical USB connection

Of course you can plug the printer and configure it like any other. For this, just download the Unified Linux Driver from Samsung web site, untar and run

$> sudo ./install.sh

then your printer should be auto-detected when adding it from in ubuntu Printers panel.

Network connection

The tricky part is to connect to the printer and configure it. There are a few options:

Connect your PC to the printer directly via Ethernet
Connect your PC to the printer directly via WiFi
Connect the printer to a router via an Ethernet cable and make it available to your network (useful for configuration)
Connect the printer to a router via an WiFi and make it available to your network (useful for configuration)

In any of these ways, after the printer itself is properly configured, you have to configure your Ubuntu. Just open Printers panel and add a network printer, it should be auto-detected.

Of the options just mentioned the first two are not very useful for configuration. The problem is this: the printer is not yet configured, plugging it to your ethernet port won't connect correctly (at least easily, because it requires a manual connection config), and to connect via WiFi you need the password, which you don't have. Pressing the printer's cancel button for 2 seconds should print the network information, but as the printer isn't yet connected it will only print useless data.

The easiest way to solve all this is to plug the printer to your router. After this, the router will give it an IP address, which you can find opening your router's page in the browser. Then, you can open SyncThru in the browser to configure the printer: just write the printer's IP address in the address bar of your browser and voilà. Besides, after connecting the printer to the router, pressing its "cancel" button will work as expected, printing a lot of information including the WiFi password.

To be able to actually configure the printer you'll have to log in. Look at the top-right corner, where you'll find a "connect" link. The default user/pass combination is admin/sec00000.


How to make an installed python module usable for another user?

Answer:

Add -H or -i option to sudo:

sudo -i -u www-data ./bash_script_that_calls_runs_the_pythonscript.sh
sudo -H -u www-data ./bash_script_that_calls_runs_the_pythonscript.sh

Explain:

You can use python -m site to check importing paths. For example, in the outputs of sudo -u www-data python -m site, USER_SITE is not the expected directory bs4 installed.

sys.path = [
    '/',
    '/usr/local/lib/python3.6.2/lib/python36.zip',
    '/usr/local/lib/python3.6.2/lib/python3.6',
    '/usr/local/lib/python3.6.2/lib/python3.6/lib-dynload',
    '/usr/local/lib/python3.6.2/lib/python3.6/site-packages',
]
USER_BASE: '/root/.local' (doesn't exist)
USER_SITE: '/root/.local/lib/python3.6/site-packages' (doesn't exist)
ENABLE_USER_SITE: True

With sudo -i or sudo -H, you can switch home directory to user www-data and find the correct USER_SITE. The outputs of sudo -i -u www-data python -m site may be:

sys.path = [
    '/home/www-data',
    '/usr/local/lib/python3.6.2/lib/python36.zip',
    '/usr/local/lib/python3.6.2/lib/python3.6',
    '/usr/local/lib/python3.6.2/lib/python3.6/lib-dynload',
    '/home/www-data/.local/lib/python3.6/site-packages',
    '/usr/local/lib/python3.6.2/lib/python3.6/site-packages',
]
USER_BASE: '/home/www-data/.local' (exists)
USER_SITE: '/home/www-data/.local/lib/python3.6/site-packages' (exists)
ENABLE_USER_SITE: True


Obviously there is something wrong between dpkg-deb (a program, which is part of the debian package management used by apt-get) and tar (which is packing/unpacking files from/into single archives).

Now the dpkg-deb is calling tar with an unsopported option, so somehow there is a version mismatch between those programs.

You can run this, to try solve this issue:

`aptitude clean` or `apt-get clean`

if didn't solve, try this trick:

Rename /bin/tar to /bin/tar.original:

mv /bin/tar /bin/tar.original

Then wrote simple script into /bin/tar file:

#!/bin/bash
tar.original xf -

then make it executable using

chmod a+x /bin/tar

The last step is reinstallation of broken packages:

apt-get install --reinstall dpkg
apt-get install --reinstall tar