Both brightness bar and button is not responding. (Ubuntu 19.04)

Try this:

sudo -s
mount -o rw,remount,suid -t sysfs sysfs /sys
ln -s /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/brightness /sys/class/brightness

That should fix it.

Actually, you don't even need to do that. All those steps are not required if you want to control brightness. You already have the brightness control, all this command is doing is creating a small link to that.

Do this:

#For finding out current brightness:
cat /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/brightness

#To set brightness to a level
echo 100 > /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/brightness

Change the number to whatever you like. There is an upper limit. This is not usually a percentage. So you should be able to set brightness to 281, for example.

Your last error was using cat command incorrectly. cat command show the content of a file.


If the Windows Recovery Environment partition (WinRE) is deleted, there is no good safe way to recover it immediately. However, it will be automatically recreated with a major windows update. I recommend you wait a bit until the Windows 10 October update (20H2) that will be coming out this month comes out and update then. Your partition will be recreated then.


The iso is not a zip file. Windows (mis) identifies it as a zip if you do not have any CD burning software installed.

You take the iso and either burn it to a DVD or more modern use a flash / usb drive.

See:

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

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

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


The name of TTY actually comes from the old days of computers: then computers even had  teletypewriters as terminal, so you could see the output of programs printed (tty = TeleTYpe/TeleTYpewrite).

TTY usually refers for "physical" terminals, like more attached terminals (even like a teletypewriter) to a single computer, or in our days: more separated text consoles, you can switch between them Ctrl+Alt+F1-F7 (or more, if you have configured more).

In case of Ubuntu, tty7 is usually used by Xorg, do provide your graphical environment (to be more exact, it provides a "windowing system" only, and things like the gnome - as a desktop environment solution - runs "top of it").

By contrast, "pts" is (one half of) a notion of "pseudo terminal" which implements terminal functionality without the context of a "real" physical terminal, for example if you open gnome-terminal, for the shell (which is usually the bash on ubuntu systems) to be able to run, it needs terminal capabilities.

This is also the case if you use "ssh" to log in a remote machine, so in nutshell: whenever something needs terminal/tty like functionality without having a 'real' tty.


Assuming you have old versions of the packages foo and bar, you can use apt-get install foo bar, which will install the latest versions of selected packages foo and bar, resulting in an upgrade.


Because cron doesn't offer full bash-like parsing. It's easier to:

0,30 * * * * /home/me/bin/mycron

where /home/me/bin/mycron is:

#!/bin/bash
echo "$(date +"%T") $(sensors | grep -Eo "[0-9]+\.[0-9]+" | head -1)" >> /home/me/temp_log.txt

And, since cron has its own idea of PATH, you might need to use a full path for the sensors command.


Is there a way to store touch screen calibration per resolution setting?

The following script fixes the touchscreen for me when using a 4:3 resolution.

#!/bin/sh

# When you select a 4:3 resolution, the touchscreen and pen input aren't
# scaled correctly.  Run this script to fix it.  Each time you set the
# resolution, the matrix is reset to the identity, so we don't need a
# script that undoes this.  Adjust the device names as needed.

touchid=`xinput list | grep 'Finger touch' | sed 's/.*id=//' | sed 's/\t.*//'`
penid=`xinput list | grep 'Pen stylus' | sed 's/.*id=//' | sed 's/\t.*//'`
eraserid=`xinput list | grep 'Pen eraser' | sed 's/.*id=//' | sed 's/\t.*//'`

for d in $touchid $penid $eraserid; do
  xinput set-prop --type=float $d "Coordinate Transformation Matrix" 1.333 0 -0.1667 0 1 0 0 0 1
done


How to intall ubuntu and remove windows on lenovo G500s

set your BIOS to boot from the CD drive.
"boot cd" ( Ultimate Boot CD ), ( hiren's bootcd ) and others.
you can find on web. you have a cd drive? or usb 2.0 drive can work,read about it.
you can also save any partitions, clone drive on spare drive.
"format drive", Here it wipes off your old files.
and you can create partitions if you want.
install operating system, with CD.
remove CD, enjoy.


Please get a temporary wired ethernet connection, open a terminal and do:

sudo apt-get remove --purge bcmwl-kernel-source

If it isn't installed, that's fine, just continue:

sudo apt-get install linux-firmware-nonfree

After a reboot, your wireless should be working.


Disks

To check for bad sectors check the SMART data, probably the best accessible by launching the Disks utility (Palimpsest). Even if you don't see any bad blocks there, launch a self-test to be sure.

The program is bundled in the gnome-disk-utility package. Run gksudo gnome-disks

Or in Ubuntu 16.04 version (3.18):

Badblocks

You can also use badblocks

sudo badblocks -sv /dev/sda

to just check, or to check and fix first write the result to a temporary file:

sudo badblocks -sv /dev/sda  > bad-blocks-result
sudo fsck -t ext4 -l bad-blocks-result /dev/sda1

will check the whole disk and print out all bad blocks encountered on /dev/sda.

From badblocks manual:

  Important note: If the output of badblocks is going to be fed to the e2fsck or mke2fs programs, it is important that the block size is properly specified, since the block numbers which are generated are very dependent on the block size in use by  the  filesystem.  For this reason, it is strongly recommended that users not run badblocks directly, but rather use the -c option of the e2fsck and mke2fs programs.

fsck

fsck itself will not help you find bad sectors, worse still, if there are a lot of bad sectors it can damage your data even more. Use it only when the disk is healthy.


How to run script outside of terminal with admin priviliges?

The large majority of user applications should never be run as root. If root permissions are required, it would be very bad practice to allow user to run applications with root permissions just by clicking a launcher without any form of authentication.

Fortunately, it is not easy to run scripts outside of the terminal with admin privileges. The GUI menu system does not allow to easily create launchers that launch programs with root permissions without any security measures.

In rare cases, there is a need to have graphical user interfaces perform administrative actions. Previously, the gksudo command allowed a user with root privileges to launch just any graphical application with root privileges. This poor security model has been depreciated in favor of more secure systems that either 1) do not require that a graphical user interface is run as root at all, but still allow for access to system files and folders, or 2) still run the entire graphical application as root, but have a stronger security in place.

1) is covered by the "admin://" URI. Applications such as gedit and nautilus can be started with such an URI, e.g. as in

gedit admin:///etc/fstab

With this approach, gedit itself just runs as the normal user. The system provides it with a temporary copy of the system file, in this example /etc/fstab. Once the user saves the temporary copy, the system updates the original /etc/fstab. Also "Disks" is designed this way. The application, i.e., the graphical user interface, runs as normal user anytime, but requests the administrator password at a point where an administrative task is about to be performed.

2) is handled through pkexec. Here, after authentication, the entire application is started with root permissions. This is also how gksudo used to work. The big difference, however, is that, additionally, a system policy file about the application must be in place. Thus, only previously authorized applications can be started as root by the privileged user.


In nautilus (files) menu, open Edit > Preferences > Behaviour tab > and restore the setting for "executable text file" to "Ask each time".

Good luck!


Application name different CLI vs. Graphic Folder name // HandBrake

The most simple way is to create a symlink.

sudo ln -s /usr/bin/ghb /usr/local/bin/handbrake

Other options include making a script to run it (either globally or in ~/bin/), adding a bash alias or just learning that HandBrake's command is ghb :P


after ubuntu 16.04 upgrade, certain key doesn't have "keypress" event

oh, I check out my startup application list and after some tests, I find out it's diodon. I uninstall it and v works again.


Permission denied for transmission daemon event

I have solved this problem (kind of) by installing a docker image of transmission. This does not run under user debian-transmission but with the uid of my normal user account (1000). Considering the docker image only has access to the incomplete and done folders I think it is safe enough.


What partition sizes are recommended for Ubuntu 16.04 on a 1TB hard-disk?

Your main partition should be of type EXT4 and a minimum of 25GB according to the Ubuntu minimum requirements.

The swap partition should match the size of your RAM, though you can increase in size to your preference.

Given you have a 1TB drive, set the swap space to match your RAM size, and then use the remaining space for the main parititon in EXT4.


how to remove dependencies of webmin post apt-get --purge remove

Use apt-get autoremove --purge.

It removes any unnecessary leftover packages and with the --purge option, the configuration files are also removed.


Witcher 2 missing library libgtk-x11-2.0.so.0

I know that it's a little bit late but, if it can be useful for someone else, I had the same issue, and in my case it was due to my ubuntu x64 version. I've just to install the package for i386 architecture and it was done.

So just install all packages missing with ":i386" at the end of each apt-get install command (example : sudo apt-get install libgtk2.0-0:i386).


where is more documentation about vino-server?

Vino is the VNC server for the GNOME desktop environment.

  A VNC server is a program that shares a desktop with other computers
  over the Internet. You will need a VNC server if you want other people
  to see your desktop. Every VNC server has different strengths and
  weaknesses and is appropriate for different uses. This page will
  discuss each of the VNC servers available in Ubuntu, and ways to
  configure them for most common uses of VNC.

If you want to share a desktop with other computers over the Internet. You will need a VNC server

Vino Server Mini Guide

Vino Server Man Page

Source:Ubuntu Help


Disks alias gnome-disks

Yes, this is what you are supposed to do.

The source:

When cloning a drive, the source drive in the cloning process should have no mounted partition.
When cloning a partition, it should not be mounted.

The target:

When cloning to a target drive or partition, the same rules apply to the target (as decribed for the source).
When creating an image (or compressed image), you write it as a file to a file system in a mounted partition.

And you should boot from a 'third' drive, for example an Ubuntu live USB pendrive, and write the image to a second drive, for example a HDD or SSD connected via USB.

Clonezilla

An alternative is to use Clonezilla. I would recommend it, because it can recognize which blocks are used in the file systems (of the partitions), and skip copying the free blocks. This reduces the work and makes the process faster.

Download a Clonezilla iso file, create a boot drive (CD disk, USB pendrive or memory card) and boot from it. Then you can use Clonezilla's wizard-style menu system to clone the whole drive or 'only' some partition(s) to another drive or in your case create an image.

The Clonezilla image is a directory with a number of files, and you can use Clonezilla to restore from that image to another drive/partition of at least the same size as the original drive/partition.

Link

'Disks' as well as the command line tool dd are cloning tools, so the following link is relevant,

AskUbuntu: use dd to back up transfer hard driver image


I got it figured out. I disabled IPv4 and got it connected to the device, then found out the IP, subnet, gateway, and DNS in terminal using ifconfig and route -n then put them in manually and now everything works fine. Can't believe it took me several days to find out something so simple! Anyway, I look forward to using and learning about Ubuntu for years to come. So glad I don't have to deal with all the hassle that comes with Windows anymore. Hope everyone has a wonderful day!


Why does the Ubuntu SDK tell me, "do not use comma expression", and what should I use instead?

Use this instead:

onCurrentlyExpandedChanged: {
    flickable.DragOverBounds
    flickable.contentHeight += itemHeight
    console.log(itemHeight)
}


Is there a way to create a virtual machine that runs android OS?

Yes Here is how:

http://www.howtogeek.com/164570/how-to-install-android-in-virtualbox/

and To install Virtualbox On Ubuntu Enter This In Terminal:

sudo apt-get install virtualbox

Enjoy and if this answered your question Click Answered And give me a small vote :P


VLC Security Flaw with Potential for RCE! Should Ubuntu Users Worry?

There was an Ubuntu Security Notice issued addressing the matter and indicating that a patch was available concerning the flaw in the library that had the vulnerability.  Versions impacted were 16.04 and 18.04.  The updated package was posted by the security team to the package archive the day after this question was originally posted.

In short, you should simply let Update Manager run as normal rather than uninstall VLC.

A general FAQ concerning the Ubuntu Security Team is available for review.


How to enable hibernation on ubuntu 18.04

I was getting the same error on my X1 Carbon 7th Gen.
I did the following to enable the hibernation:

Turn off Secure Boot in BIOS.
Turn off "Modern Standby" in BIOS.
Create a swap file bigger than my RAM.
Update the grub using the instructions here.


Why do 10Ge intefaces show up a p55p1 and p55p2

These are based on the consistent device naming scheme established to avoid devices names to be reassigned to devices when some are added or removed.


You might be interested in the relatively new Linux Driver Templates. As the name suggests, it provides templates and demonstrates frequently used Linux facilities to get started quickly.


How can I build the kernel without compiling everything if I did that previously?

So it is not exactly what I was looking for, but as I am mainly looking to save some time and can spare the diskspace I adopted ccache based on this guide.

I use the method described here to compile the kernel, with the exception that I pull in the sources from GregKH's stable tree.

I added this to .bashrc:

export CCACHE_DIR="/scrap/ccache"
export CC="ccache gcc"
export CXX="ccache g++"
export PATH="/usr/lib/ccache:$PATH"

But it seems I have to add the parameter when invoking the build:

CC="ccache gcc" fakeroot debian/rules binary-headers binary-generic

Results after 2 identical builds look good (starting with empty cache then doing a build with everything in cache equals 50% hit rate in total):

  cache hit (direct)                 20354
  cache hit (preprocessed)              81
  cache miss                         20411
  cache hit rate                     50.03 %
  called for link                       94
  called for preprocessing             148
  unsupported code directive            12
  no input file                       1329
  cleanups performed                     0
  files in cache                     61169
  cache size                           7.3 GB
  max cache size                      16.0 GB

Regular Kernel builds took slightly over an hour. The first ccache run (filling the cache) took 95 minutes. The second build 30 minutes. I'm keeping it like this for now.


The Ubuntu 20.04 nightlight feature is a component of the Gnome Shell desktop, and works only there. To implement night light in another desktop environment, you can use the excellent utility redshift. If you want a graphical interface, also install redshift-gtk.


php5-xmlrpc is bundled into PHP as of 4.1.0: http://php.net/manual/en/xmlrpc.installation.php

php5-intl is too as of PHP 5.3.0: http://www.php.net/manual/en/intl.installation.php

For curl, you'll need to install a few more libraries to get it to work:

 sudo apt-get install curl libcurl3 libcurl3-dev php5-curl


Not able to login into newly created user account

It seems like that account is disabled. Open the system settings, select the account, unlock changes. Look next to "password," and if it says "account disabled," click that and select an option. If that doesn't work, it is an issue I do not know how to fix. I was on 15.10, and all my logins broke. In that case, backup your computer, get a Live CD or USB from another computer, and reinstall Ubuntu. I had to do it. I hope it's the first.


You should be able to restore the default by running

sudo update-alternatives --config x-terminal-emulator

and following the on-screen instructions to select gnome-terminal-emulator (or gnome-terminal.wrapper).


Install as user (not root) with aptitude to bin and lib in $HOME

All of these commands must be run as root or with superuser privileges


I'm having an issue with when I'm trying to use umount command to unmount my usb flash drive

The file system on your USB flash drive is likely /dev/sdb1, but the mount point has a name, too.
run the following command
    mount | grep sdb1

and you will see the name of the mount point.  The mount command should show you the file system /dev/sdb1 and just to the right of it "on " and then the name of the mount point.
Retry your umount command replacing /dev/sdb1 with the name of the mount point instead.
Regards,
mondotofu


Is there a way to store the current desktop layout?

Note

The script was patched/fixed on January 16 2017, fixing for a few applications of which the process name differs from the command to run the application. Possibly, this occurs occasionally on applications. If someone finds one, please leave a comment.

Script to remember and restore the window arrangement and their corresponding applications.

The script below can be run with two options. Let's say you have the window arrangement as below:

To read (remember) the current window arrangement and their applications, run the script with the option:

<script> -read

Then close all windows:

Then to set up the last remembered window arrangement, run it with the option:

<script> -run

and the last remembered window arrangement will be restored:

This will also work after a restart.

Putting the two commands under two different shortcut keys, you can "record" your window arrangement, shutdown your computer and recall the same window arrangement after (e.g.) a restart.

What the script does, and what it does not

Run with the option -read

The script uses wmctrl to list all windows, across all workspaces, their positions, their sizes, the applications they belong to
The script then "converts" the window positions from relative (to the current workspace, as in the output of wmctrl) to absolute positions, on your spanning workspaces. Therefore it does not matter if the windows you want to remember are on only one workspace or spread over different workspaces.
The script then "remembers" the current window arrangement, writing it into an invisible file in your home directory.

Run with the option -run

the script reads the last remembered window arrangement; it starts the corresponding applications, moves the windows to the remembered positions, also with the help of wmctrl

The script does not remember the files that possibly might be opened in the windows, nor (e.g.) the websites that were opened in a browser window.

Issues

The combination of wmctrl and Unity has some bugs, a few examples:

the window coordinates, as read by wmctrl differs slightly form the command to position the windows, as mentioned here. Therefore the recalled window positions might slightly differ from the original position.
The wmctrl commands works a bit unpredictable if the edge of the window is very near either the Unity Launcher or the panel.
The "remembered" windows need to be completely inside a workspace borders for the wmctrl placement command to work well.

Some applications open new windows by default in the same window in a new tab (like gedit). I fixed it for gedit, but please mention it if you find more exceptions.

The script

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

wfile = os.environ["HOME"]+"/.windowlist"
arg = sys.argv[1]

def get(command):
    return subprocess.check_output(["/bin/bash", "-c", command]).decode("utf-8")

def check_window(w_id):
    w_type = get("xprop -id "+w_id)
    if " _NET_WM_WINDOW_TYPE_NORMAL" in w_type:
        return True
    else:
        return False

def get_res():
    # get resolution and the workspace correction (vector)
    xr = subprocess.check_output(["xrandr"]).decode("utf-8").split()
    pos = xr.index("current")
    res = [int(xr[pos+1]), int(xr[pos+3].replace(",", "") )]
    vp_data = subprocess.check_output(["wmctrl", "-d"]).decode("utf-8").split()
    curr_vpdata = [int(n) for n in vp_data[5].split(",")]
    return [res, curr_vpdata]

app = lambda pid: subprocess.check_output(["ps", "-p",  pid, "-o", "comm="]).decode("utf-8").strip()

def read_windows():
    res = get_res()
    w_list =  [l.split() for l in get("wmctrl -lpG").splitlines()]
    relevant = [[w[2],[int(n) for n in w[3:7]]] for w in w_list if check_window(w[0]) == True]
    for i, r in enumerate(relevant):
        relevant[i] = app(r[0])+" "+str((" ").join([str(n) for n in r[1]]))
    with open(wfile, "wt") as out:
        for l in relevant:
            out.write(l+"\n")

def open_appwindow(app, x, y, w, h):
    ws1 = get("wmctrl -lp"); t = 0
    # fix command for certain apps that open in new tab by default
    if app == "gedit":
        option = " --new-window"
    else:
        option = ""
    # fix command if process name and command to run are different
    if "gnome-terminal" in app:
        app = "gnome-terminal"
    elif "chrome" in app:
        app = "/usr/bin/google-chrome-stable"

    subprocess.Popen(["/bin/bash", "-c", app+option])
    # fix exception for Chrome (command = google-chrome-stable, but processname = chrome)
    app = "chrome" if "chrome" in app else app
    while t < 30:
        ws2 = [w.split()[0:3] for w in get("wmctrl -lp").splitlines() if not w in ws1]
        procs = [[(p, w[0]) for p in get("ps -e ww").splitlines() \
                  if app in p and w[2] in p] for w in ws2]
        if len(procs) > 0:
            time.sleep(0.5)
            w_id = procs[0][0][1]
            cmd1 = "wmctrl -ir "+w_id+" -b remove,maximized_horz"
            cmd2 = "wmctrl -ir "+w_id+" -b remove,maximized_vert"
            cmd3 = "wmctrl -ir "+procs[0][0][1]+" -e 0,"+x+","+y+","+w+","+h
            for cmd in [cmd1, cmd2, cmd3]:
                subprocess.call(["/bin/bash", "-c", cmd])
            break
        time.sleep(0.5)
        t = t+1

def run_remembered():
    res = get_res()[1]
    try:
        lines = [l.split() for l in open(wfile).read().splitlines()]
        for l in lines:
            l[1] = str(int(l[1]) - res[0]); l[2] = str(int(l[2]) - res[1] - 24)
            open_appwindow(l[0], l[1], l[2], l[3], l[4])
    except FileNotFoundError:
        pass

if arg == "-run":
    run_remembered()
elif arg == "-read":
    read_windows()

How to set up

Before you start, make sure wmctrl is installed:

sudo apt-get install wmctrl

Then:

Copy the script into an empty file, save it as recall_windows in ~/bin. Create the directory if necessary. If the directory didn't exist yet, run either source ~/.profile or log out/in after you created the directory. It will now be in $PATH
Make the script executable (!).
Now open a few windows, gedit, firefox or whatever, and test-run the script in a terminal by running the command (no path prefix needed):

recall_windows -read

close the windows. Now run in a terminal:

recall_windows -run

Your window setup should now be restored

If all works fine, add two commands to shortcut keys: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the commands:

recall_windows -read

and

recall_windows -run

to two different shortcut keys


Try sudo apt-get install --reinstall gnome-shell


Bluetooth loses connection with mouse in 13.04

I had the same problem with my MS Bluetooth Mouse 5000 that directly connects to my laptops internal Bluetooth Adapter 4.0. After a seemingly random time the mouse stop working despite being shown as connected in Bluetooth settings. I found that this seems to be related to the powersavings configuration. I use tlp (see first answer: info about tlp), and in powertop I saw that all USB devices' powersaving options are enabled. The problem seems to be, that after the powersave option kicks in, the mouse won't reconnect anymore, so the core of the problem must be there.
However, this work-around worked for me now:

1.) I used lsusb to determine the ID of my bluetooth device (I wonder why bluetooth counts as usb-device?):

username@laptop:~$ lsusb
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 003 Device 002: ID 041e:3042 Creative Technology, Ltd
Bus 003 Device 003: ID 8087:07da Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

This website helped me to identify which ID is bluetooth: identify USB IDs
In my case that was Bus 003 Device 003: ID 8087:07da Intel Corp.

2.) Then I used the ID: 8087:07da to blacklist the power saving option in tlp:

Open the tlp configuration file using the terminal: gksu gedit /etc/default/tlp
and search the line containing: USB_BLACKLIST=
Then edit this line and enter the ID of the bluetooth device, e.g. in my case:
USB_BLACKLIST="8087:07da"

After restart, the Bluetooth my did not disconnect anymore and in powertop, Tunables I see that powersave options for this ID are disabled.


Wifi not working after installing Ubuntu 15.10 on Toshiba Satellite S50-B-15N

First try to find a hardware switch, then try to press Fn+F8 buttons to enable wifi.

Reset bios to default settings, then power off the laptop and remove the battery for some time.

If nothing of that works, try this solution:

On Toshiba Satellite laptop, start from powered off state.

Laptop battery can remain in the laptop (it is not removeable anyway easily in case of this model). AC adapter can remain plugged.

Push the power button and keep it pressed. The laptop will not power up until power button is held pushed.

After about 10 seconds the white LED showing that the AC adapter is connected properly is goes off and blinks once.

After this the white LED is on again. The power button was kept pushed until 30 seconds is elapsed (but I'm not sure if it is needed at all, the blink of the white LED seems to be a good feedback.)

When the power button is released the laptop keeps turned off. Pushing the power button again shortly starts the laptop and the following BIOS message appears:

**** RTC battery is low ****
Press Enter to set Date/Time.
[Enter]

After this BIOS Setup appears ("TOSHIBA Setup Utility") and System Time starts from 00:00:00, System Date starts from 01/01/2014. Set the time and date manually and then boot Ubuntu. The rfkill list shows now Hard blocked: no

root@ubuntu:~# rfkill list
1: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no

Source: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1528009/comments/2


Setup USB Printing Ubuntu 14.04 on Crouton Toshiba Chromebook 2

Try looking in System Settings -> Printers to configure a printer.

I originally configured my Printers using HPLIP, but it took a very long time.

I was absolutely annoyed with myself when I found this feature as it only took a few seconds maybe a minute to configure itself.


First, make sure that the image path is valid, and it is in the JPEG format. If it is, then first if you are using unity, log out of it, and use another desktop session (such as unity 2D). If compiz is the window manager for that session, temporarily use another one (such as xfwm4 or metacity). Then run the following commands in a terminal window:

rm -rf ~/.gconf/apps/compiz*
rm -rf ~/.cache/compizconfig-1/
rm -rf ~/.config/compiz-1/
rm -rf ~/.compiz*

And then log out and log back in. See if this helps!

Source: http://ubuntuforums.org/showpost.php?p=11436939&postcount=12


How to change ext4 Hard drive partion to NTFS for installing Windows xp?

Open Gparted
Select the Linux partition
Right click it and select Resize/Move
Change its size to make room for the Windows partition.
Right click anywhere and select New.
Fill up the free space with the new partition and format it as NFTS.
Profit!

After installing Windows XP, be sure to run boot-repair from a live CD to get GRUB back.


You need to remove any jaunty related repositories from your sources list or sources list.d/*.
The reason I jump straight for jaunty is that in your screenshot, the archives that are failing have jau as the start of the distribution name.

It may be finding deb-src http://pt.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse or there may be something else in your sources.list.d.

You can edit your /etc/sources.list.d with a text editor like this.  If you're going to edit it make a copy first.  Like that answer says, you need to be very careful editing system configuration files.


Is there a way to run Star Craft 2 on Ubuntu?

Generally, big Windows software, which requires various libraries and dependencies, are very tricky to run on Linux (with Wine or the like). I don't think it is possible to run starcraft2 decently without installing it on a virtual machine based on Virtualbox or VMware. The seamless mode makes the virtualbox very transparent.

Disclaimer: I haven't installed starcraft2 on a virtual machine myself. But I did try with many other Windows software.


Requires untrusted packages - adobe flash player

I have this same problem on my machine, but it happens when I try to install anything. The workaround I use is to install the application through the terminal instead. Open a terminal (ctrl + alt + T) and run the following command: sudo apt-get install flashplugin-installer. Enter your password when prompted, then answer 'y' to the next two prompts. After the program downloads and installs flash player  you can close the terminal. Hope that helps!


If you only want to get into Windows with the Windows bootmgr, do this:

Way 1

Put the installation disc in the CD drive and boot from it.
When it shows Install dialog, go to the lower left corner and click Computer repair options.
Then select Command Prompt and type bootsect /nt60 ALL /force, bootrec /fixboot and then bootrec /fixmbr.
Reboot.

Way 2

Put the installation disc in the CD drive and boot from it.
After it has loaded and you see the first dialog, press [Shift]+[F12].
Type bootsect /nt60 ALL /force, bootrec /fixboot and then bootrec /fixmbr.
Reboot.

If nothing works

Put the Ubuntu Live CD or a similar Linux disc in the CD drive and boot from it.
Use a partitioning program like GParted to format (delete) your Ubuntu partition. You can also format your entire drive to start it all over with a fresh system.


ClamAV only scans one directory. What should I do?

Use -r in the option field : i.e, clamscan -r directory-name

-r, --recursive
              Scan  directories  recursively.  All  the  subdirectories in the
              given directory will be scanned.


Cronjobs not working but same command works fine from command line

From Jens A. Koch's answer to CronJob not running (by ROB) on Stack Overflow:

  Here's a checklist guide to debug not running cronjobs:

  Is the Cron daemon running?

  Run ps ax | grep cron and look for cron.
  Debian: service cron start or service cron restart

  Is cron working?

  * * * * * /bin/echo "cron works" >> /tmp/file
  Syntax correct? See below.
  You obviously need to have write access to the file you are redirecting the output to. A unique file name in /tmp which does not
  currently exist should always be writable.

  Is the command working standalone?

  Check if the script has an error, by doing a dry run on the CLI
  when testing your command, test as the user whose crontab you are editing, which might not be your login or root

  Can cron run your job?

  Check /var/log/cron.log or /var/log/messages for errors.
  Ubuntu: grep CRON /var/log/syslog
  Redhat: /var/log/cron

  Check permissions

  set executable flag on the command: chmod +x /var/www/app/cron/do-stuff.php
  if you redirect the output of your command to a file, verify you have permission to write to that file/directory

  Check paths

  check she-bangs / hashbangs line
  do not rely on environment variables like PATH, as their value will likely not be the same under cron as under an interactive session

  Don't suppress output while debugging

  commonly used is this suppression: 30 1 * * * command > /dev/null 2>&1
  re-enable the standard output or standard error message output by removing >/dev/null 2>&1 altogether; or perhaps redirect to a file
  in a location where you have write access: >>cron.out 2>&1 will
  append standard output and standard error to cron.out in the
  invoking user's home directory.

  Still not working? Yikes!

  Raise the cron debug level

  Debian

  in /etc/default/cron
  set EXTRA_OPTS="-L 2"
  service cron restart
  tail -f /var/log/syslog to see the scripts executed

  Ubuntu

  in /etc/rsyslog.d/50-default.conf
  add or comment out line cron.crit /var/log/cron.log
  reload logger sudo /etc/init.d/rsyslog reload
  re-run cron
  open /var/log/cron.log and look for detailed error output

  Reminder: deactivate log level, when you are done with debugging

  Run cron and check log files again

  Cronjob Syntax

# Minute  Hour  Day of Month      Month         Day of Week    User Command
# (0-59) (0-23)   (1-31)    (1-12 or Jan-Dec) (0-6 or Sun-Sat)

    0       2       *             *                *          root /usr/bin/find

  This syntax is only correct for the root user. Regular user
  crontab syntax doesn't have the User field (regular users aren't
  allowed to run code as any other user);

# Minute  Hour  Day of Month      Month         Day of Week    Command
# (0-59) (0-23)   (1-31)    (1-12 or Jan-Dec) (0-6 or Sun-Sat)

    0       2       *             *                *          /usr/bin/find

  Crontab Commands

  crontab -l

  Lists all the user's cron tasks.

  crontab -e, for a specific user: crontab -e -u agentsmith

  Starts edit session of your crontab file.
  When you exit the editor, the modified crontab is installed automatically.

  crontab -r

  Removes your crontab entry from the cron spooler, but not from crontab file.


Disable Google Chrome warning about 32 bit on Ubuntu

What you are making sens for me, because I am using an old 32 bit Ubuntu without any possibilities of upgrade and chromium don't provide DRM access for my iptv broadcaster.

I agree that this message is really annoying .. it's ok I have understand ... no longer support... stop saying that at each run, i'm not stupid, i can remember that it's an old version....

the simplest solution is :

/usr/bin/google-chrome --disable-infobars


Trying to build/install patched gtk3-engines-oxygen to test bugfix, get shared changelog.Debian.gz is different from other instances of package

I would suggest just using dpkg -i filename.deb, but know that if you want to go back to the default version, you would have to do apt-get install --reinstall gtk3-engines-oxygen.

On an unrelated note, you might want to create a changelog entry in debian/changelog so that you know that this is your version.


sudo works with a mechanism that is called setuid (Set User ID, or also called suid). If that bit is set on an executable file (like sudo), then the application is executed under the permissions of the user, who is the owner of that file (in case of sudo, the owner is the root user).

That means, sudo is executed as root. So far so good. But, now nothing prevents you from inserting an USB-drive with a shell on it, that has the setuid bit set. You have full root access! That's why normally USB-drives are mounted with the mount option noexec, to prevent executing binary/scripts on such a device. Another mount option, if you still want to execute files, is the one that is mentioned in the error message in your question: nosuid.

See that excerpt of the mount manual page:

[...]
nosuid     Do not allow set-user-identifier or set-group-identifier bits to take effect.
[...]

With the mount command, you can determine, if your root filesystem is mounted with that option. Just type:

$ mount

You can now remount the filesystem on-the-fly and change mount options:

$ mount -n -o remount,suid /

That sets the suid option, which is the exact opposite of nosuid.


Problem with adding google calendars in Evolution - "Forbidden"

This is what you should do:

First remove or disable UOA integration.

And use caldav method instead of Google(Or right click on primary calendar & select properties).

In the url field it should be something like:
https://www.google.com/calendar/dav/YOURUSERNAME@gmail.com/events.

Use your full user name for both username & email. Then click on find calendars. Enter your password.

Select the desired calendar & click apply. It will appear in evolution.

Repeat above steps for other calendars.

DONE!

Another way to sync google calendar with caldav & UOA is to use syncevolution.


add multicast ip address into kernel route table

I'm afraid I don't understand multicast too well, but the problem that your command has is the '-interface'.  It should instead look like this:

sudo route -nv add -net 228.0.0.4 dev eth0

From the man route pages, an example:

route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
  This is an obscure one documented so people know how to  do  it.
  This  sets  all  of  the class D (multicast) IP routes to go via
  "eth0". This is the correct normal  configuration  line  with  a
  multicasting kernel.


Errors when trying to install Flask in Ubuntu 16.04

Flask packages for Python 2.x and Python 3.x can be quickly and easily installed from the default Ubuntu repositories in all currently supported versions of Ubuntu. Open the terminal and type:

sudo apt install python-flask # for Python 2.x

...and/or

sudo apt install python3-flask # for Python 3.x

Judging from the error messages that you got, the attempted installation of Flask using pip failed for two reasons listed in order of probability.

You got a Permission denied error because you ran pip install flask as a normal user instead of prefacing the same command with sudo like this: sudo pip install flask
You may also need to update pip to the latest version first.

sudo -H pip2 install --upgrade pip


15.10 Full Terminal and application borders are black

After some quick research, i found this. It may solve your problem


You will have to use full path for spark-submit.

Cron don't set up the environment as you have in terminal / bash. This means, among other things, that PATH (search path for executables) isn't set.

You can set the environment either in the first lines of crontab, like:

PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
OTHERVAR=/some/thing

or in your script. If you set them in the script you will have to export PATH and other variables you set, to get them passed down when you call other scripts or programs.


How to stream my logkeys.log to another server?

One very simple way would be to allow the destination (server B) to do a password-less SSH (or SFTP) connection to server A (where the file resides) and then create a cron job on server B that would copy the file at certain time intervals, by invoking scp (the syntax would be similar to: scp serverA:/path/to/logkeys.sys /path/to/destination

Password-less connection means, of course, using keys :-)


Can´t locate libgsl.so.23 even though installed

I installed gsl-2.5 from GNU FTP site on Ubuntu 14.04 and encountered the same error.  libgsl.so.23 is installed by default under the path of /usr/local/lib.  But the operating system could not be able to locate the file at runtime.

I solved the problem with sudo ldconfig command according to the suggestion in this post.

gsl documentation site mentions this error and provides another solution with the following commands.

$ LD_LIBRARY_PATH=/usr/local/lib
$ export LD_LIBRARY_PATH


Dualboot: Encrypted Ubuntu and android-x86

In order to run Android-X86 I believe it the code needs to go on a partition directly accessible on the disk - ie not via LVM or Crypt.   I imagine what you want to land up with is your Linux OS on an encrypted LUKS partition and Android on its own EXT4 partition which is not part of the LVM.

What needs to be done is - Shrink a filesystem on the LVM (or reduce size of swap or both), then shrink the LVM, then shrink the Luks volume, then shrink the partition, then add a EXT3 new partition, mount it in the appropriate place using FSTAB and install android to that partition.

NOTE THAT THIS IS HIGH RISK AND YOU SHOULD BACK UP FIRST.   It may be simpler to back up your data and repartition the drive as desired. Here is a link on how to shrink the LVM - Note that you will need to boot of a USB key or similar to shrink an EXT partition.

In the download for Android (eg http://www.android-x86.org/releases/releasenote-7-1-rc1 ) it tells you how to install android-x86 using a Debian/Ubuntu based system or Redhat/Fedora system.   The also gives you a indication as to what directory name you need to mount the partition on in fstab (in the case of this version its /android-7.1-rc1).   If you are lucky the setup script should add an Andoid-x86 boot option when you start the system (ie to the Grub bootloader).     [ I note that these instructions are different to the ones in your post, and are probably easier to follow ]

The line you would add to fstab would be something like

/dev/sda3 /android-7.1-rc1 ext3 defaults 1 1

(the /dev/sda3 would be replaced with your block ID of your new partition.  the directory /android-7.1-rc1 should be created BEFORE you do this, and before you install Android).   As I've not tried it, I can't be sure if booting will work - if not, its probably a matter of tweeking the GRUB bootloader to see the appropriate files in the new partition.  You might want to install "grub-customiser" to help with this editing process.


Removed WinXP association to U1, and can't get it to work anymore

Yes, there was a bug filled for this. What you have to do is look into your registry in the Windows machines. The the Current User Key ou will find a Canonical key that contains a encypted version of your Ubuntu One credentials (we use OAtuh for that).

What is happening is that the new installation is trying to reuse some keys that have been removed in the server side, so when it tries to do any work it goes bananas.

If you have problems with pop in #ubuntuone and look for mandel I'm the culprit of that code ;)

PS: I'm not usually here much, had you posted this on launchpad I would have answer it the same day, sorry...


Conky: Ubuntu 15.10 my RC's now open with a menu bar

The answer was in the

  own_window_type

14.04 would allow normal to display without window decorations however 15.10 required desktop


Ubuntu 16.04 extends past monitor edges: No resolution dropdown

Brand new hardware requires brand new drivers. The default open-source nouveau driver for Nvidia cards you're using isn't enough for a brand new GTX1060.

According to Nvidia this card is currently supported in the proprietary drivers versions 367 and 370.

Do not install the Nvidia binary. Install from the Graphics Drivers PPA (tested for Ubuntu).

In terminal:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update

After adding the PPA and updating the software sources, the driver will be available for your convenience in the Additional Drivers (search Dash for 'drivers').

Select and apply Nvidia 370.

Reboot.


Access Ubuntu terminal in Window 10 in dual booting system

Dual boot means, that you can boot one or the other system. Not both at a time.

So if you want to access an Ubuntu terminal from Windows, you need a second PC to run Ubuntu and then you can connect to it via an SSH client like Putty.(SSH must be set up/enabled on the Ubuntu machine.)


How can I make Rhythmbox display the correct time length of a concatenated .mp3 file?

The duration field is held locally in a file called rhythmdb.xml found in ~/.local/share/rhythmbox

It is not updated if you just play a track.

To force rhythmbox to re-read the track and update rhythmdb.xml you need to ensure rhythmbox is watching for new or changed files:

Restart rhythmbox and rhythmbox should after a while update the track information being displayed.

You can also force a update by changing the timestamp of the audio track

cd ~/Music/youralbum
touch *.mp3

If after the above it still doesnt recognise the duration change then this is actually a gstreamer bug/or a bug in mp3wrap.  Gstreamer is the library that actually reads/writes audio tracks - not rhythmbox itself.

Gstreamer is  dependent on reading the ID3 info - if its not in the expected location then it will only pick out the information it can find.


12.04 sshd_config file is empty, but my ssh_config is not empty

You can't have sshd running with a bad sshd_config.  I don't know what's in that 20 byte sshd_config of yours, but it's broken.  Probably best to just reinstall the default at this point.

I've recreated your problem here in a VM:

root@ubusrv:/etc/ssh# ps wwaux | grep ssh | grep -v grep
root    1277   0.0  1.1   49948   2812 ?       Ss  15:33  0:00 /usr/sbin/sshd -D
root@ubusrv:/etc/ssh# rm sshd_config ; /etc/init.d/ssh restart ; ps wwaux | grep ssh | grep -v grep
root@ubusrv:/etc/ssh#

As you can see, sshd did not restart when I removed sshd_config.  Now, here's something interesting:

root@ubusrv:/etc/ssh# echo > sshd_config ; /etc/init.d/ssh start ; ps wwaux | grep ssh | grep -v grep
root    1364   0.0  1.1   49948   2804 ?       Ss  15:37  0:00 /usr/sbin/sshd -D

So, a completely blank sshd_config is sufficient to get it started.  I DO NOT RECOMMEND THAT YOU DO THIS, HOWEVER.  Instead, let's purge openssh-server and reinstall it, to restore the ORIGINAL, default sshd_config:

root@ubusrv:/etc/ssh# apt-get purge openssh-server ; apt-get install openssh-server
root@ubusrv:/etc/ssh# ps wwaux | grep ssh | grep -v grep
root    1762   0.0  1.1   49948   2820 ?       Ss  15:39  0:00 /usr/sbin/sshd -D
root@ubusrv:/etc/ssh# wc -l sshd_config
87 sshd_config

As you can see, we now have sshd running again, and with our default (87 lines long) sshd_config file.

In the future, I would recommend making backups of any config files you're experimenting with - cp -a /etc/ssh/sshd_config /etc/ssh/sshd_config.bak or similar. :)


It is possible to install Openoffice.org on later versions of Ubuntu?

It is possible.

First, you would need to remove LibreOffice:

sudo apt-get remove --purge libreoffice-core libreoffice-common
sudo apt-get autoremove --purge

Then, you need to download Apache OpenOffice from their website: http://www.openoffice.org/download/other.html.

Download the Italian "full installation set" for Linux Intel DEB or Linux x86-64 DEB if you are running Ubuntu 64-bit.

Then, follow the installation instructions. In short:

Untar the tar.gz file:

tar xvf Apache_OpenOffice_incubating_[version]_install-deb_it.tar.gz
Change to the DEBS directory:

cd [Apache_OpenOffice_installation_directory]\DEBS

The name of the installation directory will likely be the language abbreviation for the install set, e.g. it-IT
Install the packages:

sudo dpkg -i *.deb
Install the desktop integration features:

cd desktop-integration
sudo dpkg -i [openoffice.org]-debian-menus_[version].deb
Run Apache OpenOffice to check everything is fine, and the you can delete the installation folder.

Now, why install OpenOffice when you can perfectly install LibreOffice 4.0, and doing it from the PPA would make your life easier (automatic upgrades instead of repeating the process above over and over).

More importantly, if you look around the internet, you'll find most people recommending LibreOffice over OpenOffice for several reasons.


So, as I discovered the solution was to install macfanctld:

sudo apt install macfanctld

After that, it all works smoothly.


IMO, the best solution is creating a cluster with your two servers. The problem is you can't setup two routes to the same target/network (default gateway or more generally any route).

Clustering is grouping some computers which are seen by other as a single huge one. This can be used to achieve 'high availability' which I think, is your goal. Maybe you could take a look into this introduction to clustering particularly the 'High Availability Software' section. It contains a link to Linux HA software, which probably can do exactly what you want. Other solutions exist, of course.

I can't tell you more, because I have no real experience of these configurations.

Hope this helps anyway... :-)


Destroyed my drivers after using my Ubuntu drive in Hyper-V (need to restore all device drivers)

Problem turned out to be a custom AZURE kernel that grub was defaulting to when booting.

Redirecting grub to use my usual generic kernel fixed everything!


Problem Dual Booting Ubuntu and Windows 7

Don't worry. This happened to me when I installed Ubuntu myself. the "menu" you're talking about is called a "bootloader". The "windows boot loader" does not detect anything but windows. That's why Ubuntu should install "grub" which detects Ubuntu and will detect windows.

Now to install grub you need the Ubuntu live usb again. Boot the computer from it

...then you have two options; one is getting a program from the internet that does the whole trick. It's called boot repair. It's the easy choice. You can follow the link commented by vivid_vibe Windows 7 and Ubuntu 13.04 dual boot, GRUB menu not showing

or if for example you have trouble connecting to the internet then there are a set of instructions that you can do manually from a terminal to fix the problem but it's not as easy as the program . Here's how to do it How can I repair grub? (How to get Ubuntu back after installing Windows?)

feed me back


server installation with intentionally incomplete raid1

Ok, research provides some more context and options.

https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes#Ubuntu_Server states (emphasis mine):

  N.B., If you require multipath, full-disk encryption, or the ability to re-using existing partitions, you will want to continue to use the alternate installer which can be downloaded from http://cdimage.ubuntu.com/releases/18.04/release/ As of 18.04.1, the Subiquity server installer now supports LVM, RAID, vlans, and bonds.

The linked related-question mentioned bug 1751656 is allegedly a duplicate of subiquity bug 1680245. That second bug page references using the alternate debian-installer to be able to use existing partitions (untested).
Another option to my first plan (to do a new install on the second drive) is of course to attempt an in-place upgrade using sudo do-release-upgrade. Had I not nuked the mirrored partitions during my troubleshooting/first-go, this would be a lot easier for me to attempt ... not a bad time to "practice" healing/rebuilding these two partitions.
The last option I'll note is what I commented above and likely what I will end up doing if the upgrade hiccups at all: un-partition the whole drive that contains the mirrors for / and /boot, create a minimal partition, reboot into the older 16.04, then shuffle creating new raid1 partitions to get 18.04 installed on the desired partition schema. (This could also be done with yet another drive that is otherwise unused/available.)

My previous complaint about "this feature was intentionally removed" was premature, of course: it has not been removed from the alternate installer, it just has not been implemented in the new installer, "subiquity". I still argue (and many on the bug pages do as well) that this is a significant problem in that one might infer that wiping data is the only way to go forward, but it is not as much a show-stopper as I originally believed.

Thanks for your time.


Is there a keyboard shortcut to toggle Tree view / Places View?

Method specific to Compiz / Ubuntu-3D:

If you are using Ubuntu-3D, then you can use bind keyboard keys to terminal commands using CompizConfig Settings Manager.

Warning: CCSM is in universe and not shipped by default for a reason, it can be flaky, so be careful in there, it can break things, if you find yourself with a broken window manager, see this question to reset your configuration.
Install the CompizConfig Settings Manager
(CCSM) by clicking on the link.

Click on "Commands".

The terminal commands to switch between "tree" and "places" are as follows:

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

Copy them to appropriate columns and assign keys to these commands to your wish. Here, I have chosen Ctrl + 5 and Ctrl + 6. Once you have done it properly, you can input your chosen keyboard shortcuts and see Nautilus change its view at your fingertips.

Alternate method (Not limiting to Compiz / Unity - 3D):

Search for "Keyboard" settings. Open "Shortcuts" tab. Move to "Custom Shortcuts" and click the + button. Give the shortcut appropriate name and assign keyboard shortcuts as you wish.

You should use the following commands for switching between "tree" and "places":

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


To make your new Java 7 installation the default one run this on shell -

> sudo update-alternatives --config java

To simply use Java 7 in your project without making it the system default go to Configure Built Path > Libraries > Add Library > JRE System Library > Installed JREs > Add > Standard VM > Directory and select the location where you installed the JVM.

Also change the Properties > Java Compiler > Compliance Level to 1.7

Edit:

To know the location of your JVM run -

> sudo find / -name rt.jar

The output on my system is -

/usr/lib/jvm/jdk1.6.0_37/jre/lib/rt.jar
/usr/lib/jvm/jdk1.7.0_09/jre/lib/rt.jar

This tells me that jdk is in /usr/lib/jvm/


Ctrl + Shift + m works in the folders, but not on the Desktop to create shortcuts

You cannot, unless you contribute to further development of the Desktop Icons Gnome Shell extension.

Since a few Ubuntu versions, the icons on the desktop are not anymore provided by the file manager, nautilus. A quite new Gnome Shell extension has been developed to provide icons on the desktop. However, this desktop extension still is limited in many aspects, and is not (yet?) capable of replicating all functionality/workflows/hotkeys of nautilus.

So you are limited as of now to use the right-click menu to create new folders directly on the desktop.

If this is critical to your workflow right now, you may consider substituting nautilus with nemo, or even choose to use a different desktop environment that fully supports icons on the desktop.


/var/www is owned by root. You will need to do the following:
sudo chown user:user /var/www
Where user is your username.


In Ubuntu 14.04

Click on the System Menu -> System Settings -> Universal Access -> Point and Clicking
Turn "Mouse Keys" off


Eclipse kepler hangs showing only the splash screen while starting first time

Hi i have similiar problem which resolved using oracle java 1.7 not openjdk and changing ubuntu theme to radiance. Eclipse got some problems with themes under ubuntu


Wubi took up all of my disk space on Win 7

When you write an ISO to a USB drive, the ISO "size" is the size of the USB partition. When you then install Wubi from that USB, it will copy the entire partition as if it were the ISO.

e.g. a USB key that is 4 GB, then the C:\ubuntu\install\installation.iso file will be 4 GB. If you happened to have a 32 GB USB, then it will attempt to copy 32 GB.

Note that this will fail anyway, because Wubi checks the ISO size later. But the fact is it was originally written expecting CDs or DVDs and it doesn't handle USBs in a logical way.

So, go find and delete the C:\ubuntu\install\installation.iso file (if you can't boot Windows) or uninstall Ubuntu from the Control panel and it will free up that space.


Run only parts of a script as sudo, entering password only once

Since you have sudo access, create a sudoers file for yourself, then delete it when the script is done:

# grant this user access to the sudo commands without passwords
# add all required cmds to the CMDS alias
sudo tee /etc/sudoers.d/$USER <<END
$USER $(hostname) = NOPASSWD: /usr/bin/apt-get, /usr/sbin/adduser, /bin/rm, ...
END

# your script goes here
sudo apt-get install ...
git clone ...
sudo adduser group2 $USER
sudo adduser group1 $USER
: ...

# then, remove the sudo access
sudo /bin/rm /etc/sudoers.d/$USER
sudo -k


Did you try this?

Boot into recovery mode and drop to a command prompt then run these commands:

  sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old

sudo dpkg-reconfigure -phigh xserver-xorg


in a console you just type:

cd

then you type:

pwd

after pwd command, appears your answer, that is your home.


I am new to linux too. I would go back to the download page of the distro you have selected and check the checksums I think it's called MD5. Most times before you burn the iso the burner shows you the checksums and you should check if they're the same number.

It could be a corrupt iso from a download. I had a problem similar but the difference was it would not even start the install.

Unless your installing a minimal distro of linux without a gui.

I prefer to use http://www.pendrivelinux.com/ as that seems to be the easiest way to get a distro onto an usb stick. Works for me everytime.

Hope that helped


It looks like you removed iwlwifi module.

You need to re-install the kernel. Run in terminal:

sudo apt-get install --reinstall linux-image-`uname-r` linux-image-extra-`uname -r`

and reboot.


Ubuntu 16.04 (I think?): I'm very new to Ubuntu and Unity has disappeared

If you can login and you got a empty desktop try right click on the wallpaper, open a terminal or hit ALT+F2. Then restart unity:

unity --replace

If the unity package is broken more information will be show in the terminal. If not then the desktop should load.

Ultimatley you can reinstall the whole unity desktop:

sudo apt purge ubuntu-desktop
sudo apt install ubuntu-desktop

Also you can install other desktop until you fix the unity:

sudo apt install gnome


I do not have Squid installed on my Ubuntu system but receive squid error?

It looks like last time you tried to uninstall squid, it wasn't removed completely, therefore first install squid again:

apt install squid

and then remove and purge it completely:

apt purge squid

Now squid and all of its dependencies are fully removed and the problem will have gone away.


Ubuntu 17.04 use always OpenGL 3.3 with radeon driver

mikewhatever is right. According to www.x.org/wiki/RadeonFeature the Radeon HD 6000 series (Northern Islands chip series with Barts core) is limited to OpenGL 3.3. AMD graphics cards only with "...CYPRESS, CAYMAN and ARUBA..." cores are supported by OpenGL 4.1, but not by OpenGL 4.5.


Pinta Repository - Ubuntu Precise

Pinta is available in a software repository, or PPA. In an Ubuntu-based Linux distribution it is very easy to add a new PPA to your software repository lists to install new software or provide system updates.

For more information on PPA's click here.

After installing a repository one of the easiest ways to install almost any application is to use the Ubuntu Software Center. If you already have this in your repository list continue to Installing Pinta via the Ubuntu Software Center.

Copy, one line at a time, to install the following PPA to get the latest stable release and paste them in a terminal and press Enter

sudo add-apt-repository ppa:pinta-maintainers/pinta-stable

Once you've installed the above PPA, then you must update you system with their package lists. Run the following command:

sudo apt-get update

Once you have a PPA setup with Pinta on it and have updated your package list, you are now ready to install Pinta.

Installing Pinta via the Terminal

Open terminal with Ctrl+Alt+Tkey-shortcut and after the PPA has been setup (see above), you can easily install Pinta from the terminal with this command:

sudo apt-get install pinta

Installing Pinta via the Ubuntu Software Center:

Once you have the PPA's setup and your system updated with their package list, now we can install Pinta via the Ubuntu Software Center:

Launch the Ubuntu Software Center
Search for pinta
Click the 'Install' button to install Pinta.
Once it is installed you can now use Pinta. Navigate to: Menu ▸ Graphics ▸ Pinta (This is the default location in most menu systems. Your results may vary.)


smart keyword usage: How to search IMDB, Wikipedia and more from the address bar

Based on the second screenshot, you want to add a search engine, not a keyword.


How to Fake Host and Multithread Download of One File?

Unfortunately, what you are asking is pretty much impossible. You can't force a server to allow multiple connections.

If they limit the number of connections based on IP then you would need to send a different IP for each connection. At that point, you would need a program that can merge multiple parts of the same file from different computers with parts created on-the-fly. This should be technically possible but certainly not practical because you'd have to find such a program and, to my knowledge, such a program does not exist.

There are only 2 choices I can think:

Download with the rate allowed.
Transload the file from that server to another server and then download from that server.

this is the fastest option but utilizes an existing server in a datacenter preferably.
this is not a practical option for most people.

With that said, I tested the download myself and it provides the absolute maximum speed that my internet plan can handle with only one connection.

I have a 60 Mbit connection so I can download files at between 5.5MBps - 7.5MBps (megabytes per second). This download from NYU offered 7.2MBps which is totally reasonable and more than my average top speed of 6.5MBps. This means that downloading at my speed would take about 10 hours.

I suspect that you have a 30Mbit connection resulting in twice as much time so it is my estimation that the bottleneck is on your end, not NYU.


Can't Mount Phone, "according to mtab, /dev/sdb1 is already mounted on /"

You may want to make a specific entry for your phone in order to have it mount where you want it to mount. First, check what the UUID of the devices hooked up to your machine:

craig@lister:~$ sudo blkid
[sudo] password for craig:
/dev/sdb1: UUID="[long-string-of-hex-here]" TYPE="ext4"
...

That'll show you what the various UUIDs are for the filesystems on your machine. Then, you can add the device explicitly:

UUID=[long-string-of-hex-here] /mnt/phone  (and the rest of the mount line)

This may make life a little easier for you if your phone isn't showing up where you think it is. It also may clarify why your machine is trying to re-mount /dev/sdb1 when you click on your phone.

Hope this helps!


Ubuntu 12.10 Microsoft Surface Pro Wifi wpa_supplicant.conf Problem

Use key_mgmt=NONE, and you can comment out or remove the psk="" line.


To get more language options to choose between, click the Manage Installed Languages button and install more languages.

The ... at the bottom was deliberately hidden in Ubuntu 18.04, since you currently can't successfully select other languages but the installed ones anyway. That may be changed in future releases.


The installation should work flawlessly if you follow these steps:

Download the .zip archive for your printer model from www.kyoceradocumentsolutions.com
Search the archive for the .ppd file for your model and extract it.
Move it to /usr/share/cups/model/Kyocera:

sudo mv /path/to/"Kyocera ECOSYS P2040dn.PPD" /usr/share/cups/model/Kyocera/

Restart cups:

sudo systemctl restart cups

Add the printer using your desktop environment's GUI, be careful to use the new .ppd file.


Exit from both root and user with one command

Just do

exec sudo -i

Now the root shell is replacing the default one, and when you exit, you exit "both" (incorrectly worded, since the first shell stop existing with the exec).

Look:

[romano:~] % ssh pern
Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.19.0-28-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

[romano@pern:~] % exec sudo -i
[sudo] password for romano:
root@pern:~# whoami
root
root@pern:~# pstree -a -s -l -p -u $$
init,1
  └─sshd,1140 -D
      └─sshd,17450
          └─sshd,17570,romano
              └─sudo,17571,root -i
                  └─bash,17665
                      └─pstree,17678 -a -s -l -p -u 17665
root@pern:~# exit
logout
Connection to pern.XXX.XXX.XXX closed.
[romano:~] %

I use it a lot to have a ssh-ed terminal: use exec ssh whatever and when you exit, the terminal closes.


Unable to change the Flash microphone settings

There is a bug not allowing to modify Flash settings through the normal settings.

There is a solution though. Go to the Global Storage Settings panel and make the changes you need (allowing the site) through there.

Then visit the www.midomi.com site again and it should work.


Is it possible to limit Software Center or apt-get install downloading to a specific time of day?

you can write a script for that. Currently I am in a mobile so I can not give you the exact but I can give you most of it.

So you do as first start the software center and then kill it after 7 hours.

So for killing exactly after 7 hours you may need of using at command.

For killing you can use kill or pkill command.

That's it.  You can start your software center at 12am and you can go to sleep. It will until 7 am and it will be killed.

Hope that helps


Software & Updates right setting in "other software" updates

There is nothing important on your list to select.

The important sources are on the "Ubuntu Software" tab. Most folks want the "Updates" and "Security" boxes. The others are optional.

"Source Code" is for folks who want to modify and recompile the software. If you don't know what that means, then you don't need to check any "Source Code" sources.


How to install packages on ubuntu touch?

The phone images are designed to be upgraded via pre-installed images, so they are read-only and apt-get is not supported on them. Instead, packages targeted for the phone images are shipped through the app store, which you can access by scrolling to the bottom of the Apps scope, and tapping on the Store icon.

I'm not sure what you're trying to get out of having sshfs installed on the phone, but it is not packaged for the phone.

If you really need to use apt-get to install packages on the device for some reason, the best way to do so is by creating a chroot underneath the /home/phablet directory somewhere, and installing any necessary packages you might need to run, inside that chroot.


Ubuntu dual boot: Gparted cannot increase partition size

To increase the size of a partition, you need to have the partition and an unallocated space that are neighbors, I don't know Windows partion scheme too much so I can't tell you if you can safely delete nvme0n1p5


66.77.88.99/domain.com

...points to your default vhost.

Just change document root in default vhost config to:

/xxx/xxx/public_html/

or disable the default vhost.


If I rename my computer, will it lead to problems with Ubuntu One?

No, the only problem will be that it will be still listed with the old name. If that inconsistency bothers you you can delete the token and re-sign in to the service.


Crashed VirtualBox in Ubuntu after updates

Open a terminal and type the command:

sudo /etc/init.d/vboxdrv setup

as you are asked in the error message.

You will need to do it each time you update your kernel.


Password protect hosts file without encrypting it?

Give your kids non-sudo accounts.  A non-sudo account cannot and will not be able to edit the /etc/hosts.  They will be able to see the content, but that's not really a problem is it?

Ubuntu does not use the "root account" in the strictest sense: you have a user that can get "sudo", basically temporary "root" rights.  In the lingo of the "User Account"  applet the account type is a "Administrator".  You want the account type "Standard".  Such an account cannot change system settings and it will work just fine for nearly any normal task.  (Coming from a Windows world, this is exactly the same by the way there.)

Basically, what you want is: create an account for each member of the family.  Set your account as "Administrator" and the rest as "Standard".  Password protect your account and... there you are.  You have what you want.

A small word on what you are actually trying to achieve.  You are blacklisting sites, which basically means "these sites are not allowed", which is thoroughly ineffective.  The only way to be sure is to "whitelist", which means "disallow everything, and allow only these sites".  Do note that this is not possible using the hosts file.
I'm just telling you, the way you plan to do this is going to fail.


Tapping the ALT key activates it for me.


I found this in other tread... it worked for me:

Had the same problem fixed it with:

pactl list cards short

to get the device id.
Then I did

pactl set-card-profile x a2dp

where X is your device id.

found it by reading
No A2DP streaming audio from 12.04 to Bluetooth headset


Fix MP4 files which were improperly stopped while recording due to lack of space?

There are online tools that can fix MP4 files. Alternatively, if you have access to a Windows PC, you can run a Command Line tool - Recover_MP4. It's free, but doesn't have a GUI. You need to use this tool along with ffmpeg. Here is how it works:

First, you need to download both recover_mp4 and ffmpeg.

(you need to scroll down the article to find the download link for the recover_mp4 tool)

Inside the ffmpeg folder, there is a bin directory. Open that directory and then extract all files from recover_MP4.zip into it.
Now, you need to copy your corrupted file to the into the \ffmpeg\bin folder.
Copy a sample MP4 file to the same folder. The sample file must be recorded with the same camera and settings as the corrupted one.
Launch the Command Prompt and switch to the \ffmpeg\bin folder.
Run the following command:

recover_mp4.exe good.mp4 --analyze

(good.mp4 - this must be a playable sample MP4 file, just replace with your sample file name)

Run the following command:

recover_mp4.exe bad.mp4 recovered.h264 recovered.aac

(bad.mp4 - this must be the name of the corrupted MP4 file)

Once done, run the following command:

ffmpeg.exe -r 30 -i recovered.h264 -i recovered.aac -bsf:a aac_adtstoasc -c:v copy -c:a copy recovered.mp4

This will build a final MP4 file based on the video and audio streams extracted from your corrupted file.

Note that the commands may very slightly, depending on your file names and paths.


How do i install Windows 7 on separate hdd and ubuntu on a separate drive?

So... I had two problems.

NEVER use any Kingston related (in this case HyperX) USB drives for boot loading..  That won't work.
I didn't use ? grub as it didn't detect windows. Instead i installed grub , which with an sudo update-grub2 were able to find Win7.

Besides that and the multiple driver i had to find and install, everything worked out.  Thanks for the help.


How to ignore /dev/sda in boot drive sense?

You could also try modifying the entry in /etc/fstab. The default for devices in there is rw,suid,dev,exec,auto,nouser,async which means that if your device /dev/sda has an entry in /etc/fstab to mount /dev/sda1 then you should override the default behavior by putting noauto and maybe ro (read only) for the mount options and 0 for dump and 0 for fsck (file system check).  Might look something like this:

/dev/sda1     /mnt/windows     noauto,ro     0     0

Hope that helps.


Setting up Ubuntu Server 16.04 as Gateway for OpenVPN Connection

Adding the following to /etc/rc.local above all of my iptables declarations (above) fixed the issue:

echo 1 > /proc/sys/net/ipv4/ip_forward


Where does the Document Viewer (Evince) store history?

By running strace -e open evince some.pdf I was able to find the path used and it is

~/.local/share/recently-used.xbel

I have verified that this is the case for both 14.04 and 16.04. This file contains recently used items from many applications, so you'd need to filter it by application name. The file is in XML format, so if you want any sort of automated processing it needs to involve an XML parser.


I'm not sure what the problem was here, but I disabled and removed Network-Manager and now the sysctl settings are applied correctly.


Note that the following steps are described in this page of the Ubuntu Packaging Guide.

You first need to send your PGP key to the Ubuntu keyserver. To do this, first run gpg --list-keys to find out your key ID. The key ID will be the part after 2048R/ or 4096R/. Next, run gpg --send-keys --keyserver hkp://keyserver.ubuntu.com keyid; replace keyid with your key ID.

For the second part, run gpg --fingerprint to get the fingerprint of your key. This part is in 8 blocks of 4 characters. Copy that, and paste that in the text box in the page in the Edit PGP Keys link.

After submitting, you should see that a key was added, and you should get an email saying that a PGP key was added.

Note that you also need to create an SSH key. You can run ssh-keygen -t rsa to create a 2048-bit SSH key. It is recommended that you have a passphrase for this key, as this key can not only be used for communication between your computer and Launchpad, but could also be used (by you) to access your computer remotely. Run cat ~/.ssh/id_rsa.pub, and copy the output. Then, paste this into the section on adding an SSH key.


Lag when dragging windows between monitors in KDE

As far as I can tell this is due to the visualization of windows tiling to half of the screen at screen edges.

Disable in Settings > Desktop behaviour > Screen edges, uncheck Tile windows by dragging them to the side of the screen.

Get the same functionality back again in Settings > Shortcuts > global keyboard shortcuts for kwin set a global shortcut such as 'Meta+Left/Right' for Quick Tile Windows to the Left/Right.


Did wine installation delete part of my GPU driver?

I encountered the same pop-up window yesterday, but fortunately I didn't proceed with the install. This is apparently a known issue, and an explanation is available at nvidia-libopencl1-331 has to be removed before installing WINE. That procedure goes a bit over my head, but I followed it anyway and I was able to install wine without messing up my Nvidia driver.


I can not move MySQL from Ubuntu 14.04 to new 16.04

See at:https://dev.mysql.com/doc/refman/5.7/en/upgrading-from-previous-series.html

Just ignore the MySQL 5.6.

If you plan to upgrade by reloading a dump file generated from your existing MySQL installation:

To generate the dump file, run mysqldump with the --add-drop-table option and without the --flush-privileges option

Stop the old (MySQL 5.6) server

Upgrade the MySQL binaries in place (replace the old binaries with the new ones)

Start the MySQL 5.7 server normally (no special options)

Reload the dump file (mysql < dump_file)

Run mysql_upgrade to upgrade the system tables

Restart the MySQL 5.7 server


qcow2 image much bigger then original vmdk file after conversion. how to avoid that?

It is possible that your vmdk was compressed or that you did not create a qcow2 file at all. If you convert normally with qemu-img convert some.vmdk some.qcow2, you would get a raw file.

To convert from a vmdk file to a compressed qcow2 file, try:

qemu-img convert -O qcow2 -c some.vmdk some.qcow2


Using wget to download websites when logged in to a password protected session

try this in terminal

export http_proxy='http://username:password@proxy:port' && wget --user=username --password=password url

or if your proxy does not require any password, then use this:

export http_proxy='http://proxy:port' && wget --user=username --password=password url


Assigning keyboard keys to mouse buttons (not vice-versa)

Ah - the problem wasn't with some sort of privilege level to get the window manager to access the keys.  The problem was that I was using modifiers, like "alt + Button1" to move windows.

And when I was doing "alt" + the key I had assigned to mouse button 1 (in the above example "KP_Insert") I was now doing a different key combination and xbindkeys wasn't recognizing the mapping.

So the solution is  (using KP_Insert which is keycode 90 on my keyboard):

1) Turn off key repeat for the specific key you want to turn into a mouse button:
    % xset -r 90

2) Add a binding for the mouse button to .xbindkeysrc:

"echo ButtonPress 1 | xmacroplay :0"
  KP_Insert

"echo ButtonRelease 1 | xmacroplay :0"
  release + KP_Insert

3) Add bindings for any modifiers + mouse button you might want to use, ex "Alt":

"echo KeyStrPress Alt_L | xmacroplay :0 ; echo ButtonPress 1 | xmacroplay :0"
  alt + KP_Insert

#"/home/dave/bin/xmacro kr Alt_L br 1"
"echo ButtonRelease 1 | xmacroplay :0 ; echo KeyStrRelease Alt_L | xmacroplay :0"
  release + alt + KP_Insert

4) Start or reload xbindkeys:

% xbindkeys
# or if xbindkeys is running:
% killall -HUP xbindkeys

Although I will say that this has some trouble with launching compiz plugin hotkeys that I haven't figured out yet, running the lines outside xbindkeys works fine, but inside xbindkeys does not work.  Haven't debugged that yet.


Do you need to setup a FTP/TFTP server before you can even use it

Yes.

When you want to copy from and to Ubuntu scp is more convenient (scp used ssh). Also requires installing of server software to make it possible though.


How to play a sound in the background every 15 minutes?

If you can't reduce somehow those 8 seconds you can generate a sound and play it periodically using user cron. There is no need of an external file.

Install sox, Sound eXchange, the Swiss Army knife of audio manipulation:
sudo apt install sox

Edit your user cron table, process scheduling daemon:
crontab -e

Add this to play a 10 second 20 Hz tone every 15'.
*/15 * * * *   XDG_RUNTIME_DIR=/run/user/1000 /usr/bin/play -n synth 10 sin 20

Where 1000 is your user ID, the output of id -u or $UID environment variable.


Automatic display detection not working correctly anymore on Ubuntu 14.04 LTS

Go to Ubuntu Software Center -> History tab (third icon from top-left) -> Updates.


You are missing the libgsl-dev package. This can be installed via the command line

sudo apt install libgsl-dev


Clonezilla uses dd behind the scenes.

About disks and partitions

A whole disk is a device like /dev/sda. This is the first disk, the second disk is /dev/sdb, the third /dev/sdc, etc. Older disks connected through an IDE cable are named like hda, hdb, ... A disk can have multiple partitions like /dev/sda1. The second partition on disk /dev/sda is /dev/sda2 and so on. An image (literal copy of bytes) can be made from both a partition and disk. Note that first 512 bytes of a disk contains the MBR (Master Boot Record).

A partition should not be mounted when creating or restoring images, otherwise data loss may occur when reading from it (creating an image) or unexpected bahavior and data corruption if you're writing to it (restoring from a image).

In the below examples, /dev/sda1 is the partition from which an image should be created.

Partitions and disk devices in /dev are only writable by the superuser (root) and users of the disk group. I dislike running everything as root, so for safety (in case you made a typo for example), I change the group temporary to myself, so I can read and write to it:

sudo chgrp my_user_name /dev/sda1

If you skip the above command, you've to prefix the below dd commands with sudo.

Basics

The basic command for creating an image from a partition is:

dd if=/dev/sda1 of=disk.img

if means "input file", of means "output file". Everything in Linux is a file, even devices.

To restore such an image, run:

dd if=disk.img of=/dev/sda1

The order does not matter, you could have written the above as dd of=/dev/sda1 if=disk.img too.

Compressed images

Since partitions are generally big, it's recommended to compress the data before writing it to the image:

dd if=/dev/sda1 | gzip > disk.img.gz

This works because if of is omitted, the output is written to "standard output" which is the pipe to the compress program gzip. The output of that is written to disk.img.

To restore such a compressed image, run:

gunzip -c disk.img.gz | dd of=/dev/sda1

Here, gunzip is the reverse command of gzip. -c causes the output be written to standard output which is the pipe to the dd command. Because if is omitted on dd, the input is read from "standard input" which is the output of gunzip.

Reading from an image without restoring it

Uncompressed images can be mounted so you can read from it. Should you've compressed your partition images, uncompress them first (disk.img.gz will be removed, disk.img will be created. Be sure to have enough space!):

gunzip disk.img.gz

Alternatively, uncompress an image without touching the image itself:

gunzip -c disk.img.gz > disk.img

Now create a directory on which the disk can be mounted and mount the image read-only (ro):

sudo mkdir /mnt/wind
sudo mount -o ro disk.img /mnt/wind

You can now view your files in /mnt/wind. When done, unmount it and remove the obsolete mount point:

sudo umount /mnt/wind
sudo rmdir /mnt/wind

Less size, more CPU usage, longer backup and restore duration

If time is not an issue and you don't have much storage space, you could use the bzip2 compression format. Simply replace gzip by bzip2 in the above. It's common to use the .bz2 extension for bzip2-compressed files, so do so.


Ubuntu desktop 16.04 won't recognize images from Iphone 5s

Because of inherent discrapencies between versions (iOS and Ubuntu) the solution I used in the end for transffering mass amounts of images was using the Google photos service.

Instead of sending small amounts of images to email each time, I just backed them up from my phone with Google phtoos and then downloaded them in Ubuntu.


Screen Savers not working after Maverick Upgrade

I noticed today after changing my screensaver to something else that the "skyrocket" screensaver process was still running, even though a different screensaver had been selected. After manually killing the process things seem to return to normal. I'm unsure at this point if there's a problem with the "SkyRocket" screensaver specifically, or something else.


Boot failed after building a new kernel. (kernel options hide)

The grub appear by modifying the /etc/default/grub as the following!

#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=10

Then I can choose which kernel I want to use to boot.


Have you tried the "Compiz Configuration Settings Manager"? My guess is that even though it's 2d it's still Unity. (The following comment says you can't so that guess is likely wrong) Other than that, I know gmome-tweak lets you scale up fonts...but that's not exactly zoom.  Oh!  If you type "Universal Access" into the dash you should be able to use that to set zoom functions out-of-the-box with out any additional software.


Ubuntu 13.04 ATI graphics card and OpenGL issues

I solved my problem however, the solution was that there was an unusual error in the openGL code I was running. It failed because it could not find the required fonts not because of graphical issues. Because of the way the c-based OGL and font calls were embedded into python code, this was difficult to track down.

In the process of discovering this I tried several things including upgrading to the proprietary graphics drivers. I would Not recommend this for anyone running an ATI HD graphics card which is not supported by the 13.04+ release of fglrx. You need to downgrade your Xserver and this makes unity run poorly. The proprietary drivers do not add much i could see to the system graphics, though many reported that they have advantages for laptops in terms of power consumption.

Finally, the GLSL_paralax test from globs failed for non driver-related reasons.

Overall, all graphics work on my system with the open source drivers.


"Encrypted Home Directory" feature in 14.04

You want to edit /etc/fstab using terminal, you can do it using vi editor and you cannot use gedit in cli mode.

Execute following command to edit the /etc/fstab file.

vi /etc/fstab

Then move the cursor to the point where you want to insert the data,i.e. between sw and 0, press Esc button from your keyboard and then press i to goto insert mode, write noauto

When you are done editing , press Esc button again and then press :wq to write changes.

See manpages for more info (Click here)


How to install Abaqus 2017 on Ubuntu 18.04

I had a similar problem in a different environment (cough, windows, cough). The problem was related to the decompression utility used to, well, decompress the installation files. By using 7zip, the installation went as smooth as possible.

So my suggestion is to use another unzipping utility.

Good luck,

Leandro


HDMI stops working after some time on bionic (Ubuntu 18.04 LTS)

I am not sure why this worked. By simply running in a terminal
lspci --nk | grep -iA3 vga
sprung the HDMI signal back to life and the external monitor could detect the HDMI signal again :-)


Based on the information you provided, it appears that that message is actually a non-issue. So, the best, and easiest thing to do, would probably be to just ignore it.


Try to use this command :

export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

Then run pwsh or pwsh-preview depends on what version th


How to fix MBR partition prior to Ubuntu Installation? A partition overlaps GPT backup sectors

I'm the author of gdisk, and I agree with what psusi has written, with the caveat that I can't know what's really on /dev/sda5, so I can't say if it's safe to remove it. If it's the stuff that you've burned to your recovery DVDs, it should be safe to delete it, though.

If there's sufficient free space on /dev/sda5 (about 17 KiB), you should be able to resize the partition using GParted or a Windows tool, IF that tool doesn't flake out because of the illegal partition table. You might be better off backing it up to another disk, deleting it, and then restoring it. You'll need to use a backup/restore method that enables restoring to a smaller partition, though. (Alternatively, you could shrink /dev/sda4 by just a bit to make room to create a new /dev/sda5 that's as big as it is now.)

Also, on an unrelated matter, you seem to have a UEFI-based PC. On such systems, the advice to install Linux second isn't as important as it is on BIOS-based systems. (U)EFI still has a lot of flaws, but despite those problems, it's got much saner boot management than does BIOS, and Windows behaves itself better with respect to other OSes on EFI than it does on BIOS.

You might want to use gdisk to change your Linux partitions' type codes from 0700 to 8300 to keep them from showing up as unformatted disks in Windows. See here for more on this issue.


10.04 - lucid
I've been running Keepass2 on Lucid using the standard mono in the repositories (mono -V = mono JIT compiler version 2.4.4)
Note - from the keepass website this is an "unsupported" configuration... however, I'm happy with that since I've never had any issues running this configuration and it means I dont need that one extra PPA that could make my system "unstable" :)
to install
Download the portable KeePass package (v2.19 at the time of writing this).  This is a zip package which should open in Archive Manager.  Extract the contents into its own folder - for example ~/Downloads/keepass
Install the mono windows forms:
sudo apt-get install libmono-winforms2.0-cil mono-devel

Finally, lets create a keyboard shortcut Alt+K
Run System - Preferences - Keyboard Shortcuts
Add a new shortcuts with the command:
bash -c "cd ~/Downloads/keepass; mono KeePass.exe"

Bind that to Alt+K
To install on 11.04 and above
It is available in the repositories, you can install it. It is the keepass2 package.
keepass2


Which file defines the virtual console color

Found it:
Located in /drivers/tty/vt/vt.c

http://kernel.ubuntu.com/git/ubuntu/ubuntu-trusty.git/tree/drivers/tty/vt/vt.c


Exfat USB-stick: reformat stick or install exfat-fuse and exfat-utils?

One can indeed install exfat support under Ubuntu. This is useful if at some time you need to open exfat formatted USB drives on your computer.

However, I do not recommend to install exfat to work with your own USB, which you bought formatted in exfat. The reason I recommend against is that there is no file system repair tools on linux for exfat drives. The tool exfatfsck that comes with exfat-utils checks an exFAT file system for errors. However, it cannot repair corrupted FS: it just reports found errors.

Working systematically with a file system that you cannot repair, is a no-go. Therefore, only keep the current drive in exfat file format if you also have access to a Windows computer for periodic check and repair. Otherwise, reformat the drive to fat32 if you need it to be widely useable on a variety of systems, or use the native linux file system ext4 if it is only to be used on a linux system.


probably you have burned with wrong type. Generally dvd burned with video DVD but now-a-days DVD players are able to play dvd burned with DATA DVD. If you can use your writer in Wine then you can create dvd using DVDshrink, DVDfab or nero through Wine.

Edit:- You can find alternatives for any platform here


WARNING: If you format your hard drive, you will lose all data installed including:

Files
Programs
Ubuntu installation.

In order to get any data that you want to restore later:

Create a ubuntu live usb/cd.
Boot from it and open a terminal.
Run the following commands:

sudo su
mkdir /mnt/mnt1
mount /dev/xxx /mnt/mnt1
cd /mnt/mnt1/home/username

Then copy all the files you want to keep to a USB device or other storage media.

Then formatting the drive:

If you are going to reinstall ubuntu:

sudo su
mkfs.ext4 /dev/xxx

Then reinstall ubuntu.
If you are going to install windows:

sudo su
mkfs.nfts /dev/xxx

Then install windows.

Your hard drive will be formatted!


GRUB missing in dual boot on dell latitude 3590

The solution I have found is to use SHIMx64 in the boot selection setting, in the BIOS.
This is described in detail in this DELL article: XPS 13 9343: How to Install Ubuntu Developer Edition 14.04 on a Dell PC Configured for the Unified Extensible Firmware Interface (UEFI) BIOS
There is also another good explanation of why this works in this question: What is the difference between grubx64 and shimx64?
I hope this can help others.


How to add a Video and Music folder to XBMC

There are many ways .... you can either add a watch folder or navigate to it....

Go to Music > Files
Select Add Source
Select Browse and browse to your music directoy, after adding the  should be replaced by your path to music directory
If you have more directories to add, select add and the browse, you should now have two entries to your music path
Give Name below Enter a Name for the media source, say Music Local
Select OK

Select OK

Now you'll get a Music Local in your Music> Files

Highlight it, Press 'C' and select Scan for new Content

to update library on startup [in case you are frequently adding songs, tough i dont recommend if you have a huge llibrary]

System > Music > Library

Select Update Library on Startup and enable it.

For Videos Steps are pretty Much same except

after step 4 you may encounter a pop up of SET CONTENT

4.1 Select wether that folder contains Movies/TV Shows/Music VIdeos,

4.2 Choose a Scrapper, IMDb for Movies, TVdb for tv shows are preffered

4.3 Enable Run automated scan

4.4 Edit the the movies in sperate folder as per your arrangement in folders [eg, say you have a movie folder called moviez, and you store all movies in that folder than disable that option, or else if you have a seperate folder for every movie inside the main Moviez folder leave it enabled]

4.5 Leave Scan Recursively Enabled

4.6 Exclude path from library update [select as per your needs].

Now press ok and resume as usual

Note: Videos may update immediately and you may not have to press c and scan for new content.

I made a video on youtube way back XBMC Eden Preview, the comments might help you a bit.


Install restricted drivers in command line

You can run jockey-text, which is the command line equivalent of the "Additional Drivers" GUI tool.

jockey-text -h will show you the options available.


Error boostraping juju maas juju-db already running

Are all of your nodes registered in MAAS  set to PXE boot (boot from the network)? I guess that you might be booting off of HDD and coming back to an already running Juju bootstrap machine.


'403 forbidden error' after xampp installation

The problem was quite simple to solve. The project dir above the xampp dir had permissions of 700. After changing it to 755 everything worked fine.


Why is apache2 failing to start the service?

The problem can be better understood by looking at the output of /var/log/apache2/error.log - however the output you posted shows that:

AH00526: Syntax error on line 3 of /etc/apache2/mods-enabled/dir.conf:
Invalid command 'index.xhtml', perhaps misspelled or defined by a modu

It's likely you left out part of a configuration, such as:

DirectoryIndex index.xhtml


The default document root is /var/www/html. Move tests to /var/www/html/tests.


PHP7 does not install on Ubuntu with PPA

The ppa:ondrej/php provides PHP packages only for only for supported releases and usually a current development release after some reasonable time.

At the time (May 2016) of writing this, the list includes:

Ubuntu 12.04 LTS (precise)
Ubuntu 14.04 LTS (trusty)
Ubuntu 15.10 (wily) (EOL July 2016)
Ubuntu 16.04 LTS (xenial)

When you open the PPA in the browser and click on View package details in the top right corner, it states at the top of the page:

  This PPA currently publishes packages for Xenial, Wily, Trusty and Precise.

Note: At the time of the question was asked, the support for Ubuntu 12.04 LTS was not there and was added only later, hence the package not found error.


Is there a way to get the windows like app launchers on xfce?

You can install DockbarX or docklike panel plugins.
https://github.com/M7S/xfce4-dockbarx-plugin/
https://github.com/nsz32/docklike-plugin/


Not able to ssh to aws ec2 instance using config and doing key less ssh

Host ec2
    HostName 54.69.86.125
    User ubuntu
    IdentityFile /home/vidur/Documents/SSH_PEM_FILES/tukacloud.pem

Host *
  AddKeysToAgent yes
  IgnoreUnknown UseKeychain
  UseKeychain yes


sudo aptitude install libboost-all-dev

Using aptitude instead of apt-get may offer you some automatic solutions for removing conflicting packages.


If you want to bring Oracle JDK to that menu then you have to create a .desktop file for Oracle JDK under /usr/share/applications if it is not already there. What about clicking Show other application button to see available application? If the Oracle JDK is not there then follow these steps:

sudo gedit to open gedit as super-user
write[Desktop Entry]
Name=Oracle JDK
Exec=path to Oracle's java here -jar
Terminal=false
Type=Application
Icon=openjdk-6
MimeType=application/x-java-archive;application/java-archive;application/x-jar;
NoDisplay=true then save the file as /usr/share/applications/OracleJDK.desktop
sudo chmod +x /usr/share/applications/OracleJDK.desktop to make the .desktop file executable
sudo gedit /usr/share/applications/bamf.index and add the line OracleJDK.desktop path to Oracle's java here -jar to the end and save.
open the file /usr/share/applications/mimeinfo.cache as super-user(sudo gedit) and add change the line application/java-archive=openjdk-xxx.desktop; to application/java-archive=openjdk-xxx.desktop;OracleJDK.desktop; i.e. just add your newly created desktop entry to mime-cache.
Now you should find Oracle JDK entry under the applications menu if you click view other applications


Repair Windows Boot Loader after installing Ubuntu on MacBook Pro

Your problem is that your Windows installation is in EFI mode, but your disk is configured with a hybrid MBR, which forces Windows to treat the disk as an MBR disk. The Mac boot loader might also be taking this as a signal to attempt a BIOS-mode boot of Windows, but there's no BIOS-mode boot loader on the disk. Since Windows will boot in EFI mode only from a GPT disk, this configuration results in a failed boot. There may be other problems, too, but this one is the first issue I see, and it will definitely cause a failure to boot, so you should fix this problem.

Fortunately, the solution is fairly straightforward, albeit non-intuitive:

Boot to Ubuntu. (You can also do this from OS X, but you'd need to install gdisk and use a different disk device filename.)
Open a Terminal window.
Type sudo gdisk /dev/sda. After you're prompted for your password, gdisk should launch and tell you, among other things, MBR: hybrid.
Type p to view the partition table. Assuming you know enough about your partitions, you should be able to verify that you're looking at the right disk. If not, type q to quit and try another disk device.
Type x to enter the experts' menu.
Type n to create a fresh protective MBR to replace your existing hybrid MBR.
Type p again to verify that your partitions are all still in place. This is just a precaution to ensure you didn't accidentally hit the wrong key.
Type w to save your partition table. You'll be asked to verify this action. Do so.

With any luck, this should fix your problem.