Steam? Ubuntu 12.04? Windows? Wine? Play onLinux?

In my experience if you install Steam on playonlinux and purchase/install a game you should be able to run the game through Steam without much of a problem. That is the game should be able to be launched through the Steam interface without any extra steps.

Now whether or not the game works perfectly (or even runs at all) may or may not be the case. That depends on the game requirements among other things.

Keep in mind that there is also a native Linux version of Steam available (although you will only be able to play games that are supported with Linux - there are many available and more coming all the time).

Here is a link to the Steam site that tells you how to install Steam on Linux as well as how to install Steam on playforlinux:

https://developer.valvesoftware.com/wiki/Steam_under_Linux


How to trigger a color inversion effect for one window?

As far as I know... to achieve that, you will need help of a Window Compositor.
You can try to install a lightweight standalone compositor like Compton.

Compton

  Compton is a lightweight compositor for X, and a fork of
  xcompmgr-dana.

According to the Man Pages Compton has an option to invert colors in a window.

e.g:

compton --invert-color-include <CONDITION>

The condition could be the WM_CLASS of a window, to find the "WM_CLASS" in a window you can run the command xprop

xprop | grep WM_CLASS

Then the cursor will be a "Cross" and you can click in the window you want, to find the WM_CLASS.

Now you should have something like this:

  WM_CLASS(STRING) = "leafpad", "Leafpad"

The second string should be the WM_CLASS "Leafpad".
So, to invert the colors of the Leafpad editor you should run:

compton --invert-color-include 'class_g="Leafpad"'

In some cases, you might want to invert only some windows of a program (e.g. invert the editor window, but not the "save file" dialog).
For that you can use the first of the two WM_CLASS strings (also called the "instance"):

compton --invert-color-include '(class_g="Leafpad" && class_i="leafpad")'

You do not need to run compton all the time, you can run it when you need to invert the colors of a window.

NOTE: In this example I'm running Lubuntu 13.04 with openbox as window manager but without compositor by default.

To install Compton

This compositor has it own PPA

1) To install compton open a Terminal and type:

sudo add-apt-repository ppa:richardgv/compton
sudo apt-get update && sudo apt-get install compton

In this example I will create a basic Bash script (I am not an expert in scripts) to detect the active window and invert its colors.

2) Create the script.

sudo apt-get install xdotool
mkdir ~/Scripts
nano ~/Scripts/invert.sh

The content of the script:

#! /bin/bash

if [ "$(pidof compton)" ];
    then
            pkill compton
    else

        ID=$(xdotool getactivewindow)
        CLASS=$(xprop -id "$ID"  | grep "WM_CLASS" | awk '{print $4}')
        COND="class_g=${CLASS}"
        compton --invert-color-include "$COND" &
fi
exit

  Basically  the script will check if compton is running, if it not
  running xdotool will find the window id of the active window, with the id xprop will find
  the WM_CLASS, then with the WM_CLASS it will create the condition and
  finally will run compton with the condition as argument.

Make the script executable.

chmod +x ~/Scripts/invert.sh

In my case I will create a soft link to the /usr/bin/ directory with the name "invert-color"

sudo ln -s ~/Scripts/invert.sh /usr/bin/invert-color

3) create a Keyboard Shortcut e.g:  Ctrl+Alt+U (In Lubuntu you should edit the lubuntu-rc.xml file)

leafpad ~/.config/openbox/lubuntu-rc.xml

Add the following Lines:

<!-- Launch invert-color activewindow on Ctrl + Alt + U-->
<keybind key="C-A-U">
  <action name="Execute">
    <command>invert-color</command>
  </action>
</keybind>

Finally you can Logout and Login to see the changes in the keyboard shortcut.

My intention is when I need to invert the colors in the active window I can do it with the Shortcut  Ctrl+Alt+U.If I want to go back to the normal colors I will press again the shortcut and the script will detect the compton is running therefore the pkill command will kill the process compton.
So in this way I will only run the compositor when I need it.

Here you have a few screenshots:

Hope it helps.


Neither of the two existing answers solved my problem.

I needed to go to the Disks app and hit Ctrl-F to get a prompt to actually format the USB drive.

Thanks to this answer.


Ubuntu 14.04 LTS - Wifi Doesn't work until I press Suspend and Resume

After extensive research into the issue, I finally managed to find a solution to this problem, it's a known Ubuntu bug and here is the workaround.

Thanks for everyones help

~  Sean


Only a part of my screen is used as the display. Rest is just black

Your display is set to a "square" (4:3 ratio) resolution.
Open monitor settings and change it to "widescreen' (16:9 ratio) resolution.

When the VGA is plugged in, go into monitor settings and set it to extend desktop instead of mirroring.


What should I do to stop the 'gray' screen when using xrdp?

This might be an old question but some people might still be interested in having a solution for that.
Based on your description, the setup seems correct.

you have installed standard xrdp package sudo apt-get install xrdp
you have installed an alternate desktop (xfce)
you have created the .xsession file with the correct information

Generally speaking, grey screen is because something is wrong with the .xsession file or the user that login

My guess is that you have done the configuration while logged in with userA but when trying to login via xrdp you are using userB.

The .xsession file is per user based.  If you have multiple users, you have to create for each user the .xsession file with the proper information or you can automate this (for automating check info here
)

So, you have two options :

Option 1 - login locally on ubuntu (no xrdp) with the userB and issue the command

- echo xfce4-session >~/.xsession

Option 2 - have the system create the .xsession file automatically for each user (again full info can be found at here

Edit the startwm.sh file -> sudo gedit /etc/xrdp/startwm.sh
Append in this file (just after the word "fi") the following line
echo xfce4-session >~/.xsession

If this is still not fixing your issue, you can have a look in the log files.  check for the file ~/.xsession-errors (for the user having the grey screen)

Please provide feedback if this is working for you


unable to run Todo list app in rethinkdb on ubuntu..so can you provide the steps

You've missed a space between cd and the path, and it's /usr/ not /user/

cd /usr/share/nginx/html


apt-get upgrade does not consider manually built and installed packages

This more a temporary note for others having the same issue until someone wiser can help to resolve the issue.

In my build script I put

VERSION=$(grep -R "Version: " | grep .dsc | head -1 | awk '{print $2}')
NEW_NUMBER=$((${VERSION: -1} + 1))
NEW_VERSION=$(echo $VERSION | sed "s/ubuntu${VERSION: -1}/ubuntu$NEW_NUMBER/")
grep -rl $VERSION | xargs sed -i "s/$VERSION/$NEW_VERSION/g"

right after apt-get source <package-name>

This will change the last number of the package version to the next higher digit (e.g. ubuntu2 will become ubuntu3).

This workaround works here.

FAST WAY TO REPRODUCE:
Make sure the package you try this with is fully upgraded.
Now when you do:

cd /tmp
apt-get -b source <package>
sudo dpkg -i *.deb

and check you will see that apt-get shows an upgrade for your package.


How would I go about dual booting KALI with UBUNTU

While this is most likely not what you are looking to do, I suggest using Kali as a bootable flashdrive. Using Unetbootin, and a Kali image you can have easy access to Kali on most devices. Since Kali wasn't originally meant to leave files behind, this may provide a temporary solution


Your ethernet module appeared on the last line:

e1000e                156873  0

Modinfo:

modinfo e1000e|grep ^desc
description:    Intel(R) PRO/1000 Network Driver

If it was properly loaded, check with:

dmesg|grep e1000e


Help managing partitions for installing Ubuntu

First three partitions are primary partitions and fourth is a secondary partition and when you create a fifth one its a extended volume.

First you unmount the partitioning and then try the command you can use is lsblk.

sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL

to check which drives your system can see:

sudo fdisk -l


At its simplest you can run a command, say every 60 seconds, to parse the output of sensor with awk:

${execi 60 sensors | awk '/^in0/{print $2}'} Volts

If you want to combine the two, it would be more optimal to run the sensors command just once and extract the data in one awk:

${execi 5 sensors | awk '/^curr1/{A=$2} /^in0/{V=$2} END{printf "%s A %s V",A,V}'}

I would recommend using execi and a number of seconds, else the command will be repeated every second by default.

For the pch temp1 value, because there are 2 lines beginning temp1:, you can make awk exit after it has printed the first one, and use a %d format to convert the float value to integer:

${execi 5 sensors | awk '/^temp1/{t=$2;printf "%d C",t;exit}'}


On Ubuntu 14.04, the system switches off 2 minutes after started

I would suggest you to check your syslog.

You can find it going to

/var/log

This file will give you more information about the issue that cause the switch off, and if you'd post it here it will provide useful information to analyze the problem.
You should check the events right before the switching off.


APTonCD load button does not work even after installing hal

If you are using APTonCD to restore the backup of packages in ubuntu 13.04

Please follow these steps ( Load button won't work)

Mount the aptoncd*.iso with image mounter / open the file with archive manager.
Copy packages folder to $HOME
Type this command in the terminal

sudo dpkg -i $HOME/packages/*.deb

Wait until all packages installed.
You will get your backup restored.

(For this process you don't need to have installed APTonCD and HAL)


bash history: can't retrieve commands/commands not saved

The answer resides in the ownership of the bash_history which was root. I did:
sudo chown mary:mary /home/mary/.bash_history

and that solved the problem.


No examples are shown in Welcome screen of qtcreator

It's possible you have installed Qt Creator but not the Qt5 development libraries. Try installing the development libraries with:

sudo apt install qt5-default

Then try launching Qt Creator and see if the examples have appeared.


Ubuntu 14.04 grinding to a halt - found this command and it seems to help, what is it?

The sysctl command allows you to read and/or write to your kernel parameters at runtime.  The -w switch indicates that you wish to write one of those parameters.  The list of parameters you can write to are stored as files under the /proc/sys directory tree.

As per ftp://ftp.alaska.edu/pub/sois/man/drop_caches.html, valid values for drop_caches are:

0 # default
1 # free pagecache
2 # free dentries, inodes
3 # free pagecache, dentries, inodes

Kernel documentation on the vm file states that writing to it:

  Writing to this will cause the kernel to drop clean caches, as well as
  reclaimable slab objects like dentries and inodes.  Once dropped, their
  memory becomes free.

  This is a non-destructive operation and will not free any dirty
  objects. To increase the number of objects freed by this operation,
  the user may run `sync' prior to writing to /proc/sys/vm/drop_caches.
  This will minimize the number of dirty objects on the system and
  create more candidates to be dropped.

Furthermore, it provides a warning:

  Use of this file can cause performance problems.  Since it discards
  cached objects, it may cost a significant amount of I/O and CPU to
  recreate the dropped objects, especially if they were under heavy use.
  Because of this, use outside of a testing or debugging environment is
  not recommended.

Running this command appears to help because it frees-up your memory.  But this command won't solve your problem by itself.  The next time your system is grinding to a halt, open a terminal and try running the top command to see what is using your memory.


From leonexis' post in ubuntu forums:

  If you get a black screen for a moment when you run 'xrandr' from a console, then this might actually not be a Wine bug, but a problem with the video card driver. I have seen it on both Intel and ATI drivers. See Wine Bug #15214.

  There is a workaround to this issue:

  Start Wine's Registry Editor
  Navigate to "HKEY_CURRENT_USER\Software\Wine\X11 Driver". You may need to create X11 Driver.
  Create a new key called "UseXRandR" and set it to "N".

  That should prevent Wine from using XRandR and hopefully fix the annoying black flicker. More useful registry entries for Wine can be found on the Wine Wiki page UsefulRegistryKeys.


I believe these rules will help

# Drop everything
iptables -P INPUT DROP

# Allow certain ports
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 33332 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 35060 -j ACCEPT
iptables -A INPUT -p udp -m udp --dport 10000:20000 -j ACCEPT

# Disable ICMP
iptables  -I  INPUT  -i  eth0  -p   icmp  -s  0/0  -d  0/0   -j  DROP

And ofcourse need to save the rules.Iptables-persistent is nice tool for this:

sudo apt-get install iptables-persistent

After it's installed, you can save/reload iptables rules anytime:

sudo /etc/init.d/iptables-persistent save
sudo /etc/init.d/iptables-persistent reload

SSH blocking is done in /etc/fail2ban/jail.conf or /etc/fail2ban/jail.local

bantime  = 86400
findtime = 600
maxretry = 3

Good luck!


Open https://translations.launchpad.net/ubuntu/vivid/+translations
Click "View all languages"
Click "Status" to have the entries sorted by completion rate


Word doc created in previous ubuntu not usable after upgrading

Word files get corrupted, sometimes when they're copied. It's an incredibly complex format. Is it a .DOC, .DOCX, .DOCM or some other format?  However, there is a step-by-step procedure for .DOCX/.DOCM files because, deep down, the .DOCX/.DOCM files are really .ZIP files - and if you make a copy of the Word file and rename it with a .ZIP extension, you can then open it up and perform surgery on it.


The error message

/usr/sbin/grub-mkconfig: 1: /etc/default/grub: If: not found

is not telling you that the file /etc/default/grub is not found, it's saying that the command If is not found at line #1 of that file. That's because If should be part of the comment block i.e.

 If you change this file, run 'update-grub' afterwards to update

should be

# If you change this file, run 'update-grub' afterwards to update

You will need to edit the file (with sudoedit /etc/default/grub for example) and insert the missing #


How to enable a logging off sound in Ububtu 16.10

You can use the program music123 to play the sound

sudo apt install music123

Then create a init file to trigger a file to play

sudo nano /etc/init.d/K01sdsound.sh

In that file do something like

#!/bin/sh
/usr/bin/music123 /yourpath/yourfile.format

Make your file executable

sudo chmod +x /etc/init.d/K01sdsound.sh

Test your file

/etc/init.d/K01sdsound.sh

Now that your file plays a song or sound you need to tell it to run on logoff you can add it to your lightdm config, lets create a new config file

sudo nano /usr/share/lightdm/lightdm.conf.d/50-sdsound.conf

add to this new file

[SeatDefaults]
session-cleanup-script=/etc/init.d/K01sdsound.sh

You now have sound on logoff

Or if you want it on shutdown create a symbolic link from your file to /etc/rc0.d so your system runs it on shutdown either/also

sudo ln -s /etc/init.d/K01sdsound.sh /etc/rc0.d/K01sdsound.sh


So, the (unwrapped) commandline in question reads:

mksquashfs test test.package -regex -e '*.db'

The problem is, you're not using regex, you're using shell wildcard. As per mksquashfs's manpage, -regex option allows usage of POSIX regular expressions, and -wildcards allows "extended shell wildcards (globbing) to be used in exclude dirs/files". So, just replace -regex with -wildcards in that command line and it should work.


select Something Else option,it will take you to select which partition you are going to install Ubuntu.Select that partition and format it to ext4 filesystem and install ubuntu on it.

Then don't forget to create swap partition and its size must be double the RAM size.


I hope this will lead you further click here for detailed information

Mind you: I've never tested this solution, since I don't use Skype. But it should work according to the Wiki

Succes !


Can SANE daemon communicate with a remote network scanner?

Yes, that's possible. There's a detailed guide describing the process here: https://help.ubuntu.com/community/SaneDaemonTutorial.
You first have to make the scanner work locally any way.


Where is cuda library located with apt-get install?

You can list files installed by a package using dpkg --listfiles. For example:

dpkg --listfiles cuda

This should find all the files the package installed, from which you can find the include files.

How do I get a list of installed files from a package?


$ sudo apt install git libncurses5-dev libtinfo-dev libreadline-dev pkg-config libgtk2.0-dev libcanberra-gtk-module

Either downloading the zip from github (https://github.com/trizen/youtube-viewer) or using git clone

$ git clone https://github.com/trizen/youtube-viewer
$ cd youtube-viewer
$ sudo cpan install CPAN ExtUtils::PkgConfig Module::Build inc::latest PAR::Dist Term::ReadLine::Gnu::XS Unicode::GCString LWP::Protocol::https Data::Dump JSON Gtk2 File::ShareDir
$ perl Build.PL --gtk
$ sudo ./Build installdeps
$ sudo ./Build install

Then, done.

$ gtk-youtube-viewer


Copying different files from different folders

If all those 400 folders are in the same location, here is how you can do it:

cp **/*.root destination/


Is there a way to download linux applications from other computers?

You can use Cube, it is a portable package manager capable of downloading packages to any computer with internet connection (Linux or Windows) and installs it back to your computer offline.

Here is a complete tutorial on how to use it : http://community.linuxmint.com/tutorial/view/1583


How to: Share Mouse and Keyboard with 2 Computers?

Look at a software solution named Synergy. Its home page is at http://synergy-project.org/ or https://symless.com/synergy. It will allow you to use one keyboard/mouse across multiple computers.


I want to allocate the unused disk space to ubuntu. How to do it?

This is risky and you need a good and current backup, at least of your personal files, if possible also of the whole system, for example a compressed image file by Clonezilla. This file should be stored in another drive (an external drive), which is not connected during the partitioning work.
I think the best way would be to backup all your personal files and after that make a fresh installation of Ubuntu. After installation you can restore your personal files.
I think the second best way is to keep your home directory, and modify the fresh installation by selecting it via Something else at the partitioning windows of the installer. If you leave unallocated drive space next to the home partition, you can 'grow' it afterwards (increase its size).
Or you can try to keep the Ubuntu system as it is, and use the former Windows partitions as data partitions for Ubuntu. But since the root partition of Ubuntu is almost full, you would want to move its head end (the left end as illustrated by gparted). And it means that the bootloader will be confused, and you have to reinstall the bootloader, grub2. This can be done according to this link: help.ubuntu.com/community/Grub2/Installing. Now that you know how the bootloader must and can be re-installed, you can
Remove the ntfs partitions
Grow the extended partition (move it's left boundary) to use all the unallocated space
Move the root partition to the left end of the extended partition
Execute these changes (click the check symbol in gparted)
Reinstall the bootloader

If this works, fine. Next you can

Grow the root partition and the home partition from each side in order to use the unallocated space between them.
Execute these changes (click the check symbol in gparted)

If this works, fine. You did it :-)

-o-

If something went wrong, you need to restore your system or make a fresh installation and restore your personal data into it. You must be ready to use the backup.


How to install Windows 10 on ubuntu 20.04 using VirtualBox

Some Things to Help Windows Run Better on VirtualBox
Here are some things that work for me.

Create your machine using a fixed size disk

Allocate more memory

Install Guest Additions

Install Extension Packs

Enable copy paste

Increase display memory

Allocate more CPUs

Ensure Intel VT-x or AMD-V is enabled

Enable 2D / 3D acceleration

Suspend instead of shutting down

Use the Intel PRO/1000 network drivers if using a network


Why is "/bin/false" required to install the packages?

In this kind of situation, always start from the man page.

From man useradd:

  -s, --shell SHELL:
             The name of the user's login shell. The default is to leave this field blank, which causes the system to select the default login
  shell specified by the SHELL variable in /etc/default/useradd, or an
  empty string by default.

Setting the user's login shell as /bin/false (or /usr/sbin/nologin) is another way of saying the user can not login interactively.

Assuming ntp is not a physical user, this is fairly common for accounts only needed for services.

Also note that /bin/false is an executable (comes with coreutils package) that does nothing but exiting with exit status ($?) 1 if called.

Another point is, if the -d option (creating home directory) is not needed, you can take the safer option to create a system user account.

from man useradd:

-r, --system
           Create a system account.


Is there a app like Flux for the Ubuntu Touch?

I think this will work.

https://github.com/xflux-gui/xflux-gui

git clone https://github.com/xflux-gui/xflux-gui.git

cd xflux-gui

sudo python setup.py install

Then run from command-line

fluxgui


how to get vdpau hardware acceleration using ffmpeg on ubuntu?

According to the documentation here,

To enable this you typically need the libvdpau development package in your distribution, and a compatible graphic card.

Note that VDPAU cannot be used to decode frames in memory, the compressed frames are sent by libavcodec to the GPU device supported by VDPAU and then the decoded image can be accessed using the VDPAU API. This is not done automatically by FFmpeg, but must be done at the application level (check for example the ffmpeg_vdpau.c file used by ffmpeg.c). Also, note that with this API it is not possible to move the decoded frame back to RAM, for example in case you need to encode again the decoded frame (e.g. when doing transcoding on a server).

Several decoders are currently supported through VDPAU API in libavcodec, in particular H.264, MPEG-1/2/4, and VC-1.

The output of mediainfo videofile should shed some light on whether the codec in use is supported, however the FFMpeg IMplementations table in the aforementioned documentation indicates that VDPAU is deprecated for technical reasons and should not be used.

I have nothing further to add, but hope this information is useful all the same.


Try booting the Live USB again, then open a Terminal and type sudo grub-install /dev/sda, then reboot.
If you can get the Ubuntu server to boot, then immediately type sudo update-grub.

(AFAIK, the sudo is unnecessary, as the Live CD/USB's Terminal is Root, but it never hurts to be safe.)

If that doesn't work, you may end up having to do a reinstall. :(
(If it makes you feel any better, I reinstalled my Ubuntu 3 times in less than a week once...)


vi, getting multiple "Sorry, the command is not available in this version..." after reinstall

Try from within vim ...

:version

and if your get ...

Small version without GUI.

You are missing package vim-gui-common. It is probably also advisable to install vim-runtime. Commands to install:

sudo apt-get install vim-gui-common
sudo apt-get install vim-runtime

Another cause might be that alternatives is pointing to the wrong one:

update-alternatives --display vim

to show what is used and ...

update-alternatives --config vim

to change to another vim. It could be that /usr/bin/vim.gnome is used and you need /usr/bin/vim

edit: Michael Durrant fixed it with #1 in case anyone wonders.


To fix this I essentially did this:

sudo mv /usr/share/icons/elementary/devices/22/computer.svg /usr/share/icons/elementary/devices/22/computer_backup.svg

sudo cp /usr/share/icons/ubuntu-mono-dark/actions/22/system-shutdown-panel.svg /usr/share/icons/elementary/devices/22/computer.svg

It copies the ubuntu power icon and replaces the computer icon from elementary. Your directories might be different.


How can I run an executable from a CD when it doesn't have the executable bit set?

If the problem is that CDROM was mounted 'noexec' you can remount it executable.

sudo mount -o remount,exec /media/BDH\ DE/


How to get a SSL certificate to be verified in Python?

Use the Debian package ca-certificates which will incorporate (beside others) all CA certificates which Mozilla Firefox/Thunderbird/etc. uses.

You can use the certificate file (all certificates in one, PEM formatted) in Python as follows:

ssl_sock = ssl.wrap_socket(sock,
                           ca_certs="/etc/ssl/certs/ca-certificates.crt",
                           cert_reqs=ssl.CERT_REQUIRED
                          )


How do I diagnose a Mount error message during boot?

I don't know how to diagnose graphically. Hopefully someone else will add an answer addressing that.

Is the problem linux related?

Take careful note of where you see the error. If it happens before the bootloader (grub), then what you see is probably a BIOS error, not linux related. You may find the rest of the steps useful, but probably not. If it happens at grub or after, then linux is reporting the error. Continue with this guide.

Search the boot messages

I would grep through dmesg to see any disk related errors. There are far better tutorials to get you up and running with linux commands, I recommend them over the following:

dmesg prints the kernel ring buffer, which near as I've been able to figure out is all the important messages about what linux is doing. If there was a boot problem, it ought to show up here.
grep is a search utility.
Hard disks in linux these days are named "sd"+letter. Ie, my first sata disk is named sda, my second sata disk is named sdb..
The pipe character, | creates a flow of information by pouring the output of the preceding program into the following program. (Some programs like grep use the pipe symbol internally to mean OR).

Put this together and you get:

dmesg | grep "sd[a-z]"
dmesg | grep "mount"
dmesg | grep -E "error|fail|warn"

Is there a problem post-boot?

Use fdisk and df to get printouts of your current disk situation.

sudo fdisk -l prints a list of disks and partitions.
df -h prints a list of mounted partitions and how much space is used vs available.

Does anything look weird? Are disks or partitions missing? Mis-sized? Do these programs report any errors?


gtk-launch
With any recent Ubuntu that supports gtk-launch just simply go
gtk-launch <file>

Where <file> is the name of the .desktop file with or without the .desktop part. The name must not include the full path.
The .desktop file must be in /usr/share/applications, /usr/local/share/applications or ~/.local/share/applications.
So gtk-launch foo opens /usr/share/applications/foo.desktop (or foo.desktop located in one of the other permitted directories.)
From gtk-launch documentation:

gtk-launch launches an application using the given name. The application is started with proper startup notification on a default display, unless specified otherwise.
gtk-launch takes at least one argument, the name of the application to launch. The name should match application desktop file name, as residing in /usr/share/application, with or without the '.desktop' suffix.

Usable from terminal or Alt + F2 (Alt + F2 stores command in history so it's easily accessible).


Odd scrolling behaviour with shift key and mouse

It turned out that I still had an old wireless-mouse connector connected with a USB port to the back of my computer. Don't ask me how or why, but removing that one solved the problem. I hope this can help someone who comes across the same puzzling situation...


If you mean either of twentyeleven or twentyten in that file listing, the group there is root, and the user is www-data, who owns those directories.

You will need to change the group of the files to the www-data group as well if you wish to write to them as that user. You probably want to do sudo chgrp -R www-data . in the directory containing those files and directories you want to edit as your user.


You can do:

cp foo/file.ext ../bar/subdir/

followed by:

cd !$

But this won't work in one line, like cp foo/file.ext ../bar/subdir/; cd !$.


I have Ubuntu 13 and I want 12 back! 13 won't boot my ubuntu 12 dvd during resarting

I don't see why your computer boots up your Ubuntu 13.x DVD and not your 12.x DVD. It most certainly doesn't have anything to do with the currently installed OS.

Maybe your 12.x DVD is so badly scratched that it won't boot anymore? Try to burn a new DVD. Then boot from it.


Firstly, restoring an iPhone that is logged into iCloud will turn on iCloud Lock, which is impossible to bypass. If you already have a locked phone, I suggest you return it to where you bought/stole/found it.

Secondly, restoring is impossible from Ubuntu. Apple has not provided drivers for Linux, nor will iTunes work (yes, there's WINE, but that doesn't support USB communication). There's no way to restore an iPhone from Ubuntu.

Thirdly, if the phone isn't locked, just reset from Settings. It'll iCloud Lock it if iCloud is logged in.


You can set the EDITOR variable as follows in Terminal

export EDITOR="/usr/bin/atom"

If you want that as a permanent setting consider adding it to your ~/.bashrc and reload the updated  .bashrc via source ~/.bashrc.


What is the difference between apt-get update and upgrade?

You should first run update, then upgrade. Neither of them automatically runs the other.

apt-get update updates the list of available packages and their versions, but it does not install or upgrade any packages.
apt-get upgrade actually installs newer versions of the packages you have. After updating the lists, the package manager knows about available updates for the software you have installed. This is why you first want to update.

Additionally, you can use apt-get update && apt-get upgrade to do both steps after each other.


It seems Catalyst 12.2 can solve this problem:
http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx

You may also refer to http://ubuntuforums.org/showthread.php?t=1930450


Sound on spotify not heard when entering a call

Pulse Audio has a corking mode that mutes spotify and other music apps when engaged in telephony.  You can disable it by finding the load-module module-role-cork in a config file and commenting it out.
I found this line in /etc/pulse/default.pa
I commented it out, did a pulse audio -k and now I can spotify while on Teams!


The default permission is drwxr-xr-x

The default owner is root

To reach www directory in terminal :

cd /var/www

To change permission :

sudo chmod 755 /var/www     ( this is the default)

To change the owner :

sudo chown root:root /var/www (this is the default)

To create directory in /var/www :

sudo mkdir /var/www/nameyouwant

to change the owner of the new directory :

 sudo chown username:usernamegroup /var/www/nameyouwant -R

Note you can use -R option for recursive


Following the suggestions in @steeldriver's comment here's how it should be.

Your job.sh file (assuming logstash is located in the same location!):

echo 'Job Started Running'
./logstash -f /usr/share/logstash/bin/contact-index-logstash.conf
echo 'Job Ended'

Your root's crontab:

* * * * *  /home/username/job.sh > /home/username/log.log 2>&1

cron runs your script with sh by default, so I removed the unnecessary bash subshell – if you nevertheless need it just add it again.


chmod: cannot access ‘xampp-linux-x64-5.6.12-0-installer.run’: No such file or directory

You are probably trying to run your chmod in the wrong directory (a directory where your xampp-linux-x64-5.6.12-0-installer.run file is not available).

Navigate to the correct folder using cd (refer here for more information on the cd command):

cd /<folder-where-the-file-is/

Then run your command again.

I assume you are trying to XAMPP, so here is the full installation procedure if you still can't run your command :

wget https://www.apachefriends.org/xampp-files/5.5.28/xampp-linux-x64-5.5.28-0-installer.run
chmod +x xampp-linux-*-installer.run
sudo ./xampp-linux-*-installer.run


xterm creates window in active workspace always (How to put the window into background)

Ok I found it.

Solution is to add -iconic

Example:xterm -iconic -e someprogram ArgX


DVD Audio Playback Silent - how to find codec

Try install libdvdread4

  sudo apt-get install libdvdread4

  sudo /usr/share/doc/libdvdread4/install-css.sh

I believe that root cause of the issue is a region of DVD is not the same region of your DVD player. You can compare with another DVD which working on your ubuntu if it is a different region.

I used to change region ID of DVD player but it doesn't help. And I found that libdvdread4 help in the end.


Using Thunderbird to automatically backup my email account

Thunderbird uses the IMAP protocol to download messages. There are command-line IMAP utilities with which you can automate connecting and downloading messages from your account. Look at getmail (http://pyropus.ca/software/getmail/) as a possible option. You can very easily automate this with a cron job (How do I set up a Cron job?).

As an example you could create a ~/.getmail/getmailrc file with something like:

[retriever]
type = SimplePOP3Retriever
server = pop.example.net
username = your.username
password = mailpassword

[destination]
type = Maildir
path = ~your-username/Maildir/

Then in /etc/cron.d add a file "retrieve-email" with something like this:

15 10 * * * your-username getmail

his will cause getmail to download your email every day at 10:15 AM and put it in the Maildir directory.

PLEASE don't use these examples as they are; they are incomplete and illustrative only, I haven't tested them. Read the documentation I referred to so you can understand which getmail parameters you need.


Find out where the directory is in Linux?

You need to find the working directory of the process:

readlink /proc/1615/cwd

Beware that the process may have changed its working directory since it opened the file on the command line.

If the JRE doesn't close the JAR immediately after loading its content, you may find a symbolic link to it in /proc/1615/fd.


Upgrade ended Half-way between ubuntu 11.10 and 12.04, how to full upgrade?

You mention that your apt sources were updated during the partial upgrade.  The first thing you should do is verify this by checking the /etc/apt/sources.list to make sure the deb and deb-src lines reference precise instead of oneiric.  If they do not, edit the file to correct this using the following command:

sudo gedit /etc/apt/sources.list

Once the sources have been updated, one way to complete the upgrade would be to enter the following two commands through the terminal:

sudo apt-get update
sudo apt-get dist-upgrade

The error message you got from the update manager about needing a partial upgrade is that some of the updated packages want to pull in dependencies that are not currently installed, which is not particularly surprising when the new packages are from a new distribution version.

Once that completes, you should be on the new version.  To clean up packages that are no longer required by packages that you explicitly installed, run the following command:

sudo apt-get autoremove

Check that the list of packages it offers to remove looks sane before continuing.


Prevent external monitors from shutting off when laptop lid is closed?

All that needs to be done is to edit the following key and set it to "nothing":

gconftool-2 --type string --set /apps/gnome-power-manager/buttons/lid_ac "nothing"

Then, magically, nothing will happen :)


Bluetooth problem - continuous turn on/off every 2~3 seconds?

I solved the issue from similar question in
Bluetooth not working at all after I made some changes to pair with PS3 joystick

Just shutdown the system: sudo shutdown -h now
unplug every connected Cable like power, HDMI, CAT5.E, even Keyboard & Mouse USB
some seconds later, plug it again, and eventually it worked

I answer my question for whom experiences similar issue


Programs are grouped with the program that launched them. How can I change that?

If your apps are installed via snap, that could be the problem.

I had a similar issue and turned out to be caused by the way snaps work. They have their 'own environment' and sometimes they do not have access to other processes, that's why other apps launched from within the snap are under its name/process.

The simplest solution I could find was to install the programs some other way (.deb files or apt).

Edit:
Answering your question from the comments (I can't comment yet as I don't have enough reputation):

.desktop files can be found in /usr/share/applications (all users) and ~/.local/share/applications (current user)


Retrieving Bookmarks from Vivaldi web browser

Vivaldi stores the bookmarks in the profile folder, so look for that folder.

In Vivaldi web browser:

Go to Main Menu > Help > About
A new tab will open the internal page vivaldi://about
In the page, the last line will show similar to the following line:

Profile Path:   /home/USERNAME/.config/vivaldi/Default

where by USERNAME is user name in Ubuntu, or path may be different at all.
Then, open a file manager and go to the profile path
Finally, user can either copy the entire folder or just the Bookmarks file

The profile path shown at above is applicable to Ubuntu and official flavours. If user is running different systems, user may need to repeat above steps at least twice, one time for the Vivaldi profile folder in Ubuntu and one more time for another system.

Take note of the profile paths, in order to follow the next instruction.

Import bookmarks from Vivaldi to Vivaldi

The direct way to import bookmarks:

First, copy the Bookmarks file in old profile folder (Ubuntu) to overwrite Bookmarks file in new profile folder (another system)
Then, restart Vivaldi
Finally, the old bookmarks will be available in Vivaldi

Else, user may try File > Import Bookmarks... > From Vivaldi. Although, running the feature will only detect current profile folder itself and the import folder is not selectable for 'Vivaldi' option, which is somewhat odd.

For Vivaldi on working systems, user can retrieve bookmarks from File > Export Bookmarks... and save bookmarks in HTML file format. Later, user can select Import Bookmarks... > From Bookmarks HTML file - Choose a file... to restore the saved bookmarks instead of the former.

View bookmarks without import

The Vivaldi bookmarks file is actually a plain text in JSON format, albeit without any file extension. You can view the bookmarks in any text editor or Vivaldi web browser itself (screenshot: left).

Another way is to rename the file from Bookmarks to Bookmarks.json. Then, open in JSON viewer or a recent Firefox web browser to view JSON in pretty format (screenshot: right).

Remarks: This answer intends to be generic and comprehensive. Although this answer does not specifically explain how to import bookmarks for Ubuntu-Windows environment, the instructions are generic and relevant for single or dual-boot environment regardless.


Encrypted home folder still accessible after logout

Known bug

If I understand correctly, this is a known bug.

See this link: wiki.archlinux.org/index.php/ECryptfs

Scroll down to the pink paragraph

  Warning: Unfortunately the automatic unmounting is susceptible to break with systemd and bugs are filed against it ...

Work-around

As it is now, you had better shut down or reboot in order to remove the traces (It is not enough to log out).


If somebody is interested in the solution, here it is:

I don't know why but some parts of streamer seemed to be missing on my system. I am sure that neither Ubuntu nor Firefox were updated right before the crashes began, so I can't tell the actual reason why the bug occured.

However, solution was quite simple:

sudo apt-get install gstreamer1.0-*

Downloads and installs a bunch of gstreamer libraries, now everything works fine again.


You have a partially installed package. sudo apt install -f should fix it. If not have a look at the advice here: How to fix broken or missing packages


I suspect your MAAS node cannot reach out to the internet to install the necessary software. The charm-helpers PPA is being used by the node, not your local machine.


This is a complete reinstall:

sudo add-apt-repository ppa:ferramroberto/vlc
sudo apt-get update
sudo apt-get -y install w32codecs ubuntu-restricted-codecs
sudo apt-get -y vlc mozilla-plugin-vlc
sudo apt-get -y install libdvdcss2 libdvdnav4 libdvdread4
sudo sh /usr/share/doc/libdvdread4/install-css.sh
sudo apt-get -y install regionset
sudo regionset
rm -R ~/.dvdcss/

Please read Linux Set DVD Region Code. You may also have to reboot...

Please refer also to these other similar questions:

How can I play encrypted DVD movies?
Unable to play DVDs
Ubuntu won't play DVDs even after installing Codecs
How to install libdvdcss?
What plugin do i need to get DVD use?
Why does DVD playback still not work after installing libdvdcss2?
DVDs not playing
Why does my optical drive not play commercial dvds?
Problem with DVDs

For your information, as explained on Wikipedia article about libdvdcss, Ubuntu does not provide libdvdcss to respect Digital Millennium Copyright Act.


Not working Dual monitor on Radeon HD 5450

I got the same card to work this way:

Create new xorg.conf using aticonfig --initial (it is installed by packages fglrx/fglrx-updates), it complained about something but since I had no other option I ignored it
move xorg.conf as root to /etc/X11/xorg.conf if necessary
edit it so that the part Virtual   3200 3200 appears in every Subsection "Display"
Restart X (in my case sudo service lightdm restart)

My setup is like your second try but without an adaptor.


How to prevent oracle-xe from automatically launching at startup?

I had the exact same issue. The following seems to work on 16.04.

To stop the service right now (will not persist after system reboot):

sudo systemctl stop oracle-xe

To prevent it from launching on next startup (persist after system reboot):

sudo systemctl disable oracle-xe

To start it again right now (will not persist after system reboot):

sudo systemctl start oracle-xe

To make it automatically launch on startup (persist after system reboot):

sudo systemctl enable oracle-xe

More details about systemctl are here on Digital Ocean


To fix this I used the BIOS to set the boot order. When adding an identical disk, it shows up in the boot sequence as [SATA: WDC WD5000] two times, and there was no indication which was /dev/sda1. When I moved the second entry to the top of the list, it was the original /dev/sda1 and the machine booted fine.


How do I install a driver for an Nvidia Geforce 310m?

If you have a Sony Vaio VPCCW laptop, you may follow the below instructions. Note that the configuration details for the Nvidia GT 310M cards may be different across machines. For example, some manufacturers may implement some kind of hybrid graphics (like Optimus). For more details on that, see Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?

From this post on the Ubuntu Forums

Download >sonycw.txt< to your /home/username/ directory.

Note bodhi.zazen: You probably need to have an account on the forums to download that file, I could not find another option, sorry.

Note bodhi.zazen: - I left the sonycw.bin link as it may help some. If you do not have a sony, try the nvidia driver without the sonycw.bin. If it does not work, google search for your hardware and a more appropriate EDID.

Rename sonycw.txt to sonycw.bin
Open terminal and paste these commands.

sudo mv /home/your_user_name_here/sonycw.bin /etc/X11/
gksu gedit /etc/X11/xorg.conf

Paste this in xorg.conf and then save:

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "ConnectedMonitor" "DFP-0"
Option "CustomEDID" "DFP-0:/etc/X11/sonycw.bin"
EndSection

Install nvidia-glx-185

sudo apt-get install nvidia-glx-185

Restart the computer and your done

for additional information see

http://www.nvnews.net/vbulletin/showthread.php?t=140482&page=2


Putting Internal Hard Drive in another PC

It's a game of chance, and depends on how dissimilar the hardware is. Most of the time it will boot up and simply detect the new hardware as if they were system upgrades, but there are some circumstances where you might have problems.

Graphics Drivers: If you've installed any graphics drivers and the systems don't use the same driver you might get a blank screen. If you are just using the default Ubuntu drivers then you should be fine. I'm referring more to packages you install like fglrx-updates etc.

Networking: You'll have a different network interface, and so it may require you to reconfigure it by hand. [I've never done it but, this may help? http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html ]


On a default Ubuntu installation, the Apache configuration file, /etc/apache2/apache2.conf contains the following line to ensure that log files are written by default.

ErrorLog ${APACHE_LOG_DIR}/error.log

The APACHE_LOG_DIR environment variable is set when the Apache service startup script run the shell commands in /etc/apache2/envvars, which include this variable assignment:

export APACHE_LOG_DIR=/var/log/apache2$SUFFIX

Unless you’re running multiple instances of Apache, SUFFIX will be an empty string so the log file directory is, by default, configured to be/var/log/apache2.


A dock for ubuntu that has keyboard shortcuts for open programs

Cairo-Dock

sudo apt-get install cairo-dock-core

BY default press Super+Return (you can change this by configuration menu) to activate keyboard control. Then you can navigate by typing numbers.

If you want to change the shortcut for keyboard control: Right click on the dock - Configure - Configuration - Shortkeys.


How to open Unity's Alt+F2 dialog when hitting top-right corner?

Install xdotool.
Install compizconfig-settings-manager.
Open ccsm and click the Commands button (not the tick in front of it).

warning - please see this question and to why you should be careful if using CCSM

Go to the Commands tab and copy-paste this line into an empty box:

xdotool key alt+F2

Go to the Edge bindings tab and click the button labeled None next to the corresponding command number.


LightDM: user-session doesn't work, nor do multiple sessions at start

I am using Ubuntu 18.04 LTS and got the same problem.

Except regular lightdm config files I also found these files:

$HOME/.dmrc
/var/lib/AccountsService/users/<yourname>
/var/cache/lightdm/dmrc/<yourname>.dmrc

Changing /var/lib/AccountsService/users/<yourname> and replacing the default value ubuntu with your session name seems to be the solution.
However I am not sure is there a better way to modify this config rather than changing the file directly.

I also manually modified .dmrc and that cache file (needs root permission to go into the folder). However maybe a reboot will update them automatically as they look like just cache.


Delete the ~/.config/vlc folder. You will lose your VLC settings but it's likely to undo whatever you've done to lead to this result. You can remove it by running the following in the terminal:

rm -r ~/.config/vlc


go back from Gnome 3.8 to Gnome 3.6 in LUBUNTU 13.04

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

sudo ppa-purge ppa:gnome3-team/gnome

That will remove the Gnome ppa entirely if you need it to. If not, my suggestion (if you were lucky/smart enough to partition home separately from root) is to just install Ubuntu Gnome 13.04 if you're willing to go full bore into Gnome.
I've been using it and aside from an issue with the workspace switching, it has been buttery smooth. I'm actually impressed as last time I used it it was twitchy, would lock up on lock screen, and had a few crashes of the shell.

And after the fact, if you want you can always add the Gnome PPA again and go for 3.8.

Edit- Try this- http://www.omgubuntu.co.uk/2013/04/gnome-3-8-ppa-for-ubuntu-gnome

Basically, purge the Gnome PPA, update your repo list, remove the Gnome shell entirely (should leave you with just Lubuntu interface) and then go back and reinstall Gnome shell. Gnome will then be picked up from the official Ubuntu repositories and install 3.6 (and all other Gnome required libs, apps, etc.)


Chromium doesn't come bundled with any version of Flash (which I think you know), but instead uses the system version of Flash. This comes in the flashplugin-installer package. Technically, this just includes an installer that downloads the actual Flash binary.

You can try removing that package (sudo apt-get purge flashplugin-installer), but that might just remove the installer.


The first thing I would do is uninstall all the games that don't work anymore:

sudo apt-get remove gweled pyscrabble

then re-install them:

sudo apt-get install gweled pyscrabble

Ok so you can run them from terminal but not through launcher. Delete your launchers then Recreate them. sounds like the launcher doesn't have the correct location in launcher or has gotten currupted some how.


how to change file extensions in a directory

Start the one-liner in the folder where the files are saved or change the path for the find command. In the following examples find . the path is . (dot).

Test with:

find . -type f -print0 | xargs -I{} -0 rename -v -n  's/\([0-9]+\)$//' {}

Rename with:

find . -type f -print0 | xargs -I{} -0 rename -v  's/\([0-9]+\)$//' {}

The command finds all files recursively and removes all occurrences of (<any_number>) at the end of the file name.

Remove the $ in 's/\([0-9]+\)$//' to remove all occurrences somewhere in the file name, eg:

find . -type f -print0 | xargs -I{} -0 rename -v  's/\([0-9]+\)//' {}

Example:

% ls -oga
-rw-rw-r--  1 0 Jun 10 09:34 .foo(1)
-rw-rw-r--  1  0 Jun 10 09:34 .bar(2)
% find . -type f -print0 | xargs -I{} -0 rename -v  's/\([0-9]+\)$//' {}
% ls -aog
-rw-rw-r--  1    0 Jun 10 09:34 .foo
-rw-rw-r--  1    0 Jun 10 09:34 .bar


How can I find download link of linux softwares?

Please try aria2 it's command-line base but best tool for downloads.

$ sudo apt-get install aria2

usage (without quotes) :

$ aria2c "http file link"


Should I install Ubuntu on and old HP laptop (HP 250 G3)?

I have an old HP Pavillion - perhaps slightly more powerful as it at least has a Pentium chip, but it was as slow as an old arthritic dog with Windows 10 so I decided Linux was the way to go as opposed to selling it for next to nothing.
MX was my first choice but I just couldn't get on with it. Way too ugly (although I know you can improve it) and after using Ubuntu 18.04 for ages it just felt alien.
In the end I went for Lubuntu. It runs adequately quickly - so PC is fine for basic tasks. While I prefer it to MX, it does feel very dated compared to Ubuntu, but hey, anything's better than Windows!
Good luck.


Struggling to install broadcom 4311 on a HP 530 laptop running ubuntu 12.10

This should make it work:

sudo apt-get update
sudo apt-get install linux-sources
sudo apt-get install linux-headers-generic
sudo apt-get update
sudo apt-get install --reinstall bcmwl-kernel-source


Resolved the issue. PCI hotplug needs couple of drivers:

acpiphp
pci_hotplug

Both of these drives are needed in Guest OS(and not in host).

Now I am able to see the PCI device from Guest VM.


How to create a unicode combination of keys by pressing one key (Simplify unicode adding)

A program like xmacro may be of help:

 xmacrorec can be used to record mouse and keyboard events on any X11 display.
 .
 xmacroplay can be used to playback recorded events or send any other
 mouse/keyboard events you choose. It is very handy for scripting an
 X display - for example controlling a presentation in mgp or ultrapoint
 from a script, network connection...
 .
 xmacroplay-keys is a script to help use the above.

If I'm understanding this correctly, you'd first define a macro for ctrl+shift+u (note it's shift rather than control, your original post has a small mistake in this respect), then use use Ubuntu's keyboard shortcuts to execute xmacroplay to "play back" your macro.

I have to admit I haven't really tried this myself, as I think a much better solution would be to ask yourself why your users need to enter cryptic Unicode characters by hand, instead of having a keyboard layout that allows them to do so natively. You mention the specific case of Ñ, which can be very easily entered in spanish or latin american keyboard layouts.

Moreover, if you have a US keyboard, you can use the "English (International AltGr dead keys)" layout to enter special characters for many languages, mainly by using AltGr (e.g. AltGr+n = ñ, AltGr+vowel = accents (áéíóú) and so on) .

I suggest you configure this keyboard layout and then click on the small keyboard icon in the Keyboard Layouts control panel to see all the key mappings; chances are, most special characters you are likely to need can be entered with this layout and it will be easier to remember than Unicode codes and three-key combinations, since the mappings are generally quite intuitive (AltGr + ? = ¿, for instance).

I also disagree with the idea that entering ASCII characters in Windows is easier for newcomers. The key is just as arbitrary (Alt + NumPad?), the codes are just as arbitrary to memorize (and it breaks my heart to see the little ASCII code charts pasted on people's desks), and this "crutch" also stems from the same underlying problem, which is a misconfigured keyboard layout.

I do apologize for ranting, and I hope my answer proves useful; if you are unable for some reason to set a keyboard layout as I suggest, maybe you could update your question with more details in this regard so either I or someone else can provide a more useful solution.


It seems you don't have enough space left in your drive. You can verify this by checking free space left in your drive. In case the problem is with download manager, you can try some other downloader like FlareGet, DownThemAll or some other.


Answered by OP in comments

I added the line mailhub=10.0.0.68 to etc\ssmtp\ssmtp.conf and that seems to have solved my issue.


Booting Ubuntu from an SD card... Safe ?

There is nothing "unsafe" about using an SD as media for your OS. In fact that is the media most people used in the Raspberry PI v1 and 2. It will probably run significantly quicker than the standard mechanical HDD and isn't as sensitive to handling. The average expectancy for an SD under stand use is around 10 years, although there is a lot more read and write that goes when using it as an OS, so you can probably expect this to be significantly lower, around 5-7 years would probably be more accurate.


Which is the application that i can open torrent files?

There is Transmission, which is a GUI application or rtorrent for the command line.


Reverse-search in CLI: messed up output afterwards

Wrap the color sequences in readline escapes like so:

echo -e "\001\033[33m\002${branch}\001\033[00m\002" # yellow
echo -e "\001\033[90m\002 (no git)\001\033[00m\002" # red
echo -e "\001\033[32m\002${branch}\001\033[00m\002" # green

The readline escapes are \001 at the start of a non-printing sequence, and \002 at the end. These are equivalent to \[ and \], respectively, in the PS1 string.

Source: archemiro's answer on bash prompt and echoing colors inside a function - Stack Overflow

This is my answer from another question with the code changed.


"No bootable device found" after Ubuntu installation hangs

sorry to hear about your trouble.  There are lots of Ubuntu tools to fix a broken boot process, but I don't think we can help you if not even the BIOS can see the SSD.  It sounds to me as though you have a hardware or BIOS settings issue; maybe the SSD failed.

Your new laptop must be covered by the warranty.  I recommend that you contact Dell and ask them to help you troubleshoot the hardware problem and restore the computer to the way it was when you got it, with Windows installed.  Then you can try again to install Ubuntu, with our help.  (The Ubuntu installer will need to see a working OS installed, so that it can copy the way the existing OS boots.)

I don't understand what you meant when you said that RAID was on in the BIOS settings; that doesn't seem to make sense if you only have one SSD.  You don't have more than one drive in the computer, do you?  If you do have more than one SSD, then you could have "fake RAID" (RAID implemented by the BIOS, rather than a true RAID controller, or in software).  If you do have "fake RAID" and it was working correctly, the Ubuntu installer should have been able to handle it...

Good luck.


18.04 and Samsung: Scan to PC not available

Your best bet is to ask HP to release an application similar to Windows for Linux. This is a good place to start:

HP Developers - HP Linux printing and scanning

In this Ask Ubuntu question it is asked:

What should one install to make Ubuntu fully support the HP printer and/or scanner?

The answer there is to use:

sudo apt-get install hplip hplip-gui

However the full answer is more complicated than just the simple command

If you can't get help direct from HP you can try using wine to run the Windows application inside Linux:

How to Use a Printer Through Wine


How can I pipe the result of the wc command into an arithmetic expansion?

Assuming FILE is a file that is located in the current directory:

echo $((`wc -l < FILE`+2))

wc -l < FILE returns the number of lines in FILE and echo $((`wc -l < FILE` +2)) returns the number of lines in FILE + 2.

Translating a string into a numerical expression is relatively straightforward using arithmetic expansion  of the form $((EXPRESSION)) where EXPRESSION is an arithmetic expression.


Skip records containing no field separator in awk

If there's no field separator on a line, then the line consists of a single field.

If you want to skip lines with a single field, you can start your awk program with

NF == 1 {next}


It relates to the number of colors simultaneously shown
That "third dimension" is the bit-depth, or how many colors can be displayed simultaneously on the screen at that resolution.

x8 = 8 bits or 256 colors
x16 = 16 bits or 65536 colors (also called "65k" or "high color")
x24 = 24 bits or 16777216 colors (also called "16.7 million" or "true color")
x32 = 32 bits or 4294967296 colors, or sometimes the same as 24-bits with 8 bits used for opacity/transparency (called "alpha")

Which should I choose?
The highest available. On most modern systems, that will be 24- or 32-bits. See the example below for why:

Example

24-bit

8-bit


Landscape Adding Administrator in a Closed Network Environment

One way that I can think about it is to grab a unique link from the actual e-mail sent via postfix. You would have to set up always_bcc to a user/email that you already have on the box. Once this is done, send the invite and check via mutt or other CLI mail client for the BCC'ed email.
Another thing to think about it is - how do you want to manage updates? Landscape is checking at least every hour for security updates, and others. Not allowing Landscape to connect to outside will limit its capabilities. You will also miss on email alerts that packages are available etc.
But let's approach that one problem at a time :)


Almost ready to downgrade over frustration

You don't mention the hardware you are using at all, so a quick fix to problem #1 would be to disable hardware suspend and just use the screensaver lock instead...  Some hardware can disable or disconnect after shutting down for a while, bugs like this are usually fixed eventually...

As for problem #2, pop into Terminal and see if the command 'sudo shutdown -h now' actually shuts down the computer and 'sudo reboot' restarts it ok.


3 CUP Broken Dependencies Ubuntu 16.04 LTS

This is a bug in a recent CUPS update: cups : Depends: libcups2 (= 2.1.3-4) but 2.1.3-4ubuntu0.2 is to be installed

Solution given in comment 14 is:

sudo apt-get install libcups2=2.1.3-4 cups libcupscgi1=2.1.3-4 libcupsimage2=2.1.3-4 libcupsmime1=2.1.3-4 libcupsppdc1=2.1.3-4 cups-core-drivers cups-daemon ghostscript cups-client=2.1.3-4 cups-ppdc cups-filters printer-driver-gutenprint cups-filters


One of Nexus phones that is manufactured by Samsung is 'Galaxy Nexus'.
Newer Nexus phone are 'Nexus 4' (LG). Olders are 'Nexus One' (HTC) and 'Nexus S' (Samsung).
There is no Nexus S1/S2/S3. Probably you mean Samsung Galaxy S1/S2/S3 that they are not Nexus device (i.e Google doesn't support them directly).


Disappearing window borders after reboot

Sometimes this problem shows up to me too. I found out a workaround for this. If you have the Compiz Fusion Icon installed (package fusion-icon) you can click on it with the right button and then click on the 'Reload Window Manager' option. This always works for me.

Sure it's not the solution for the problem, but it might help you until it gets fixed. And I'm sure there is a command which reloads the window manager without having to install the fusion icon, but I don't know it. If anybody knows the command please post a comment.


What would be a good Ubuntu/Alternative OS for my laptop?

I find Lubuntu works well with less overhead dedicated to eye-candy. Your mileage may vary.


gcp is an advanced command line file copier that is inspired by the standard cp command but provides various advanced features like progress bar indicator, source lists, continuous copying even if there is a problematic file etc.

just install and use: sudo apt-get install gcp
Here is a complete list of options : gcp --help

Usage:
        gcp [options] FILE DEST
        gcp [options] FILE1 [FILE2 ...] DEST-DIR

        gcp --help for options list

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -r, --recursive       copy directories recursively
  -f, --force           force overwriting of existing files
  --preserve=PRESERVE   preserve  the  specified  attributes
  -L, --dereference     always follow symbolic links in sources
  -P, --no-dereference  never follow symbolic links in sources
  --no-fs-fix           don't fix filesystem name incompatibily
  --no-progress         deactivate progress bar
  -v, --verbose         Show what is currently done

  sources saving:
    --sources-save=SOURCES_SAVE
                        Save source arguments
    --sources-replace=SOURCES_REPLACE
                        Save source arguments and replace memory if it already
                        exists
    --sources-load=SOURCES_LOAD
                        Load source arguments
    --sources-del=SOURCES_DEL
                        delete saved sources
    --sources-list      List names of saved sources
    --sources-full-list
                        List names of saved sources and files in it

ref: http://mylinuxbook.com/gcp-advanced-command-line-file-copier-inspired-by-cp/


How do I access my home folder in a separate partition that has been mounted on a new version of Ubuntu

Best to use absolute paths so you don't change again things you need to stay how they are. So the below commands will make your old home directory readable for you.

# this makes only the home directory in the old drive owned by you
sudo chown -R mickey:mickey /media/f806aa57-553c-43bc-8338-37851dc128ad/home

So now that you have done this I assume you want to copy the content of your old user directory over to your new user directory, so lets make a folder for that first so we don't mess up settings now present in the main home directory.

# creating a directory for backing up your home folder in
mkdir ~/backup-old-home

Now copying the contents over to the backup directory

cp /media/f806aa57-553c-43bc-8338-37851dc128ad/home/mickey/* ~/backup-old-home

Now it is time for you to check if all got copied to your new user directories sub-folder. In case something went wrong the files are still present where they are now.


You have not given your hardware specs but Im assuming it will support Ubuntu as it is already running Windows 7.

Here is a link that will guide you to install Ubuntu on VMware

How to install Ubuntu on VMware

Hope that helps. Still if you get any error then give the details of it.


Looking for reference for this site https://pkgs.org/

I used the site when I was new to Ubuntu and didn't know about Ubuntu Packages. I liked the interface of Ubuntu Packages. But I can say pkgs.org is also a reliable source of getting packages. I have seen that the website only hosts the webpage that includes the link from official source's pool, i.e., they use official mirror of packages. Like if you want MySQL, packages will be retrieved from MySQL, for Virtualbox from Virtualbox Replository and for packages in main, universe, multiverse and restricted, Ubuntu archive is used.


Is there a Gnome-Shell Auto-Move-Windows equivalent in Unity/Compiz?

You can use devilspie for that. Here is a nice How-To.


Mounted a windows file in ubuntu, can't access it through terminal

Just drag the folder or file you want to access, to the terminal, and you will have the location to access it in the terminal.


WiFi is not working with Ubuntu 14.04 LTS on an Acer TravelMate 5520

The package linux-firmware-nonfree doesn't correctly install the required firmware. The correct method is:

sudo apt-get update
sudo apt-get purge bcmwl-kernel-source
sudo apt-get install firmware-b43-installer

Please see: Installing Broadcom Wireless Drivers


Actually since Ubuntu 16.04. it is very easy to install Lazarus. Just open the terminal (for example with keys: ctrl + alt + T) and type in:

sudo apt-get install lazarus

Type your root - password and the lazarus-package will be installed.

Important hint:

You can find every available Ubuntu-package under

https://packages.ubuntu.com/

A package with the name PACKEGENAME for example can be installed by typing in the terminal:

sudo apt-get install PACKEGENAME


Where does Pidgin display Jabber Away Messages?

After you set your status in the statusbox you can inmediatly starty typing your away message, you can also create and save custom status with custom nessages.


Will Ubuntu work,  if installed on Flash Drive?

Yes, you can do a full proper install of Ubuntu to a USB drive.
Everything will work just like the OS was installed on the actual HD.

Have a look at this question for instructions on installing Ubuntu to USB drives

Can I install Ubuntu to my 32 GB USB pen drive?


Poor Xorg Intel GM45 Performance after 12.04 Upgrade

Have you tried to change you desktop manager ?
Try gnome shell or xfce to see if it related with this incredibly feature rich and heavy consuming new desktop experience ?

Another idea would be to go with the 2D desktop to see if you got better performance.
Or disabled extra visual effects.


Does anyone have Titanfall up and running on Ubuntu yet?

It will most probably not work

Like many games, Titanfall was programed for Windows. While someone has tried and succeeded to install with Wine he wasn't able to start it. The situation might have improved since then... or not.

Setting up and configuring wine for a game isn't for the faint at heart. It's much easier using PlayOnLinux, but I think this won't matter much in this case.

Personal Note

I play games on Linux all the time, but I stick to the stuff Steam supporting under Linux. For the rest I keep a Windows 7 installation around.


Where are incomplete downloads stored in ubuntu 12.04

Incomplete downloads are stored in /tmp directory in Ubuntu. Unfinished or corrupt files are automatically deleted after each reboot.

reference:
Cleaning Ubuntu temporary files if they exist


How to choose monochrom/color option in CUPS printing

General advice: look in the PPD file for the printer.

grep -i grey /etc/cups/ppd/{printer}.ppd
grep -i gray /etc/cups/ppd/{printer}.ppd

(I would assume it will be gray ;) )

it will show you what the name of the option is.

Then this could work but it depends on the printer ...

lp -o ColorModel=Gray mydoc.pdf

As an alternative you can also change lpotions in the configuration file before printing but that also requires you to reset it back to color every time. lpoptions -l | grep Color will show how to set it for gray.


How to replace files in PPA after unsuccessful build?

To avoid confusion, Launchpad never allows different uploads under the (exact) same version number. You can upload previously uploaded packages, only if they are exactly the same, with the dput -f option. See this answer and this one on Launchpad.

If you delete a package from Launchpad, it is deleted according a procedure as described here. Launchpad still keeps a checksum however of the deleted files to prevent future (version-) conflicting uploads.

The bottom line is that you will have to upload under an increased version number. Not that it helps for now, but you can prevent errors by first try building locally.


Enabled http2 but still serving over http1.1

Figured this out, apparently it was just an issue with mpm_prefork module that doesn't support HTTP/2 starting from Apache 2.4.27. I followed this guide and it now works!


How can I install a NC375i network card on Ubuntu 12.04?

Check your Network-Card BIOS (ethtool -i eth0).
It must be 4.0.585.
If not please use the HP update site to update it.


In 14.04 Gnome Classic, how to add icons to panel?

To add icons or app launcher on panel key combination is windows button + Alt + Right Click. A drop down will appear with options to Add to Panel, Properties, Add panel etc.


Installing Netbeans 9.0:

Building from Source:

Download the source zip from here and extract. Or open terminal and clone the repositories from GitHub using

git clone https://github.com/apache/incubator-netbeans

Install either Oracle JDK or OpenJDK.

For Oracle JDK: Download JDK8 from here and run these commands:

sudo su
mkdir /opt/jdk
tar -zxf jdk-8u181-linux-x64.tar.gz -C /opt/jdk
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_181/bin/java 100
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_181/bin/java 100

For OpenJDK, run

sudo apt install openjdk-8-jdk
sudo apt install openjdk-8-jre

Install Apache ANT: For installing Apache Ant v1.10.3, run

sudo apt install ant

Once you’re all set just enter the incubator-netbeans directory and type ant to build the Apache NetBeans IDE.
Once built, the IDE bits are placed in the ./nbbuild/netbeans directory. You can run the IDE from within the incubator-netbeans directory by typing ./nbbuild/netbeans/bin/netbeans or use ant tryme to run the Apache NetBeans IDE.

Installing from Binaries: Download the binary zip from here. Unpack the zip and run netbeans in bin folder using ./netbeans. I'll suggest to make a desktop entry a.k.a. menu shortcut. For details about it read this and this.

For natively installing Netbeans v8.2, See Karel's answer.

Original Answer:

Java seems to be quite broken currently under 18.04. This can create problems with Netbeans as well as Eclipse. So, I'll suggest not to install Java from Ubuntu's repository.

If you want JDK as well as Netbeans first of all remove Java completely from your system. Then download NB+JDK from here.

I assume that downloaded files go to Downloads and downloaded file name is jdk-8u111-nb-8_2-linux-x64.sh. Use below commands to install Netbeans and JDK 1.8.

Navigate to the folder(Downloads) containing file using

cd ~/Downloads

Make file executable(if already not) using

chmod +x jdk-8u111-nb-8_2-linux-x64.sh

Finally run it using

./jdk-8u111-nb-8_2-linux-x64.sh

Follow on screen instructions to complete installation.


Can I manually reload the missing files?

If you use an Ubuntu CD, you can run it in live mode. Then you may be able to copy the files over manually using the cp command. If you can't do it that way, (since to be honest, I don't know where they would be on the CD) you can get the files off of another computer running ubuntu and copy them to a flash drive and copy them that way.


Ubuntu 13.04: Synchronizing an iPhone's contacts and calendar without Ubuntu One

I use Funambol on ubuntu to sync Thunderbird (ESR 17) and android since couple of years. Funambol sync-client for Lightning is available at https://maurus.net/resources/funambol/


Dropped laptop, now get "PXE-E61: Media test failure, check cable" error

The hard drive could have disconnected when it dropped to the floor or if the computer was running whilst it fell to the floor you could have damaged the hard disk. If you don´t know how to open the laptop and check if the SATA cable is connected take it to a shop, if it is the hard drive I recommend the new drive you buy is an SSD, you will never have that problem again as it doesnt have mechanical parts(and you will fly loading OS and apps), hope it solves your issue.


How to convert DVD to WMV (or another format acceptable by Windows Movie Maker)?

Found suitable ffmpeg string:

ffmpeg -i filename.vob -vcodec wmv2 -acodec wmav2 -sameq filename.wmv


Upgrade Ubuntu Mate 20.04 with losing customizations

I used this procedure to do the upgrade.

https://www.cyberciti.biz/faq/upgrade-ubuntu-18-04-to-20-04-lts-using-command-line/


For shear ease, you could simply format the partition, and mount it as a sub-directory of your home directory:

Format the partition to ext4 (for linux) - it will probably be /dev/sdb7
Create a directory in your home directory, to use as a mount point

cd /home/<myusername>
mkdir <nameThatMakesSense>

Mount the partition to the mount point that you have created

sudo mount /dev/sdb7 /home/<myusername>/<nameThatMakesSense>

Now the partition is a sub-directory of your home directory, and you can use it at will.  You may need to create appropriate permissions to access the directory the first time.

Additionally, I would place this in /etc/fstab so that the partition is mounted at boot time.  To do that:

sudo cp /etc/fstab /etc/fstab.bak
sudo nano /etc/fstab

scroll to the end of the file, and add a line that looks like

/dev/sdb7  /home/<myusername>/<nameThatMakesSense>  ext4  defaults 0 2

If you have used Nano to do the editing, press ctrl+o to save and ctrl+x to exit.

For some light reading and further information - please review man mount for syntax and examples of how to mount disks, and man fstab for further information about fstab entries.

Knowing little about your system, I chose to make the mount point for the partition a sub-directory of your home assuming that you want to use it to store data you have generated.  You could easily place this mount point elsewhere in the directory tree.

Possible dangers:  /etc/fstab is read at boot time and mounts the operating partitions of your disk.  If you mess up fstab badly enough, you will have trouble getting into your system.  In the worst case, you could boot from a live USB, and copy the backup fstab file created above, over the one that got messed up.


Ubuntu app stores and 32 and 64 bits apps

If you are submitting free open source applications to the Application Review Board they require a Launchpad PPA, if you are submitting to the commercial MyApps developer program a tar/zip file with both 32 and 64-bit versions is best.


Why does Ubuntu 18.04 Server setup forces /boot outside of LVM configuration?

This seems to be an oddity of the live disc. Just use the regular ubuntu server installation discs and you can do this.


The "noatime" is an extx filesystem attribute, which may have an equivalent for ntfs, but will probably be called something different.  The purpose of the SSD optimizations is to reduce the number of writes, and you certainly don't want to force a write to update the time you read a file, so you would want that particular optimization if it exists for ntfs.  Apply only the optimization which make sense, i.e. system related ones probably don't apply, unless you want some performance improvement instead of a longevity improvement.

The Windows bootloader -- can't say.

Grub on the SSD does not write much, and will certainly improve boot speed.  That said, If you want to put grub on the HDD, you can leave the SSD untouched (assuming you can boot either).  Some people see that as a benefit -- remove the HDD and have a pure Windows system.


Welcome to Ask Ubuntu.

I'd suggest exploring what you changed in installing Kali. Did you create the sda5 partition? or was it there before (primarily did you reformat it? it was accessed before in your file-system table causing Ubuntu to try & mount a now non-existing partition until it's reaches timeout as your description implies to me). We can't know what changes you made in the installation of Kali, but I'd look at 'sda5' changes if I was in your position.

If you re-formatted 'sda5' you'll have changed the UUID (or unique-ID of the partition; created during format), and your Ubuntu is likely looking and waiting for the UUID of the old-partition to appear, then eventually time-out.... ie. you need to change the UUID of your old partition, to that of the newly formatted partition. You've not amended it to reflect your new layout causing the timeouts... The first place I'd look is your file-system-table (/etc/fstab)..

Don't just replace or change UUIDs without checking that the UUID's match your partition UUID's. If you sudo blkid |grep UUID you'll get a list of UUID's found on your system, use these [results] to check the UUIDs mentioned in your fstab are correct. I don't see sda5 mentioned in comments (lines which have a # at the start are comments or documentation) but I'd still check them all. Installations (ie. kali) often re-format swap; so you may have found this has changed, and this may be your issue causing slow boots.

A rebuild of initramfs is your next step; I think it has UUID's built into it (update-initramfs). If boots are still slow, next i would probably rebuild grub (update-grub but this usually uses PARTUUID, but is quick and simple to re-create).

(this answer is just copied/pasted comments with minor editing)


how to change 'nautilus's default directory path to a specific folder

If you want to open Desktop

sudo nautilus Desktop

If you want to open root dir

sudo nautilus /

Specification is

sudo nautilus yout_dir


Force lease renew for leases in /var/lib/misc/dnsmasq.leases

I know this is a very old post, but I could not easily find a simple answer online for how to release/renew DHCP leases using dnsmasq so I figured I would share for anyone else who needed help on this. I am running on a Raspberry Pi debian_version 10, using it as a remote VPN tunnel, so using DHCP to manage a subnet.

There multiple services that can manage assigning IP addresses through DHCP. The link you references is for dhclient, which is a different DHCP service.

To force DHCP renewed leases, you have to remove old lease and have dnsmasq issue a new one.

To view current leases:

cat /var/lib/misc/dnsmasq.leases

To remove the old lease(s), manually delete the lines for each entry here:

sudo nano /var/lib/misc/dnsmasq.leases

Restarting dnsmasq did not issue new leases on my subnet, perhaps because the devices on the network still saw their lease had not expired. Restarting the Pi after editing the leases file worked for me - new leases were generated after reboot.


How append to a file with certain extension

A redirection must be unambiguous. You can use wildcards in your redirection provided it resolves to one specific file.

echo "Host name:" $HOSTNAME >> *.log

will add to an existing .log file provided it is the only .log file in the folder.

If there are multiple matching files, you will get an error message stating the redirect is ambiguous.
If there is no matching file, the redirection will create a file with the exact name as provided, i.e., including the wildcard symbols.

That you achieved this last outcome shows that there was no .log file present when you tried the command.

You may narrow the wildcard to be more specific, e.g. in your case, you may use 'tailor*.log' as the mask.


Ubuntu 15.04 systemctl: command not found

Are you  sure systemd is installed? It should provide systemctl:

$ dpkg-query -S /bin/systemctl
systemd: /bin/systemctl

You could also try the full path: sudo /bin/systemctl enable syncthing@myuser.service

I'm on 16.04 LTS, which definitely requires systemd, so upgrading might be an idea if you haven't already …


Will script continue if what it checks for changes?

The script will still allow for computer to suspend, because the for loop is not sending any signal to the GUI and is not generating GUI events.

What I do sometimes is find the file that I am downloading and monitor if its size is changing, while at the same time issuing Ctrl key press event with xdotool. In other words, this could be something like

old=$(du -sh ~/Downloads/myfile.iso)
while true; do
    new=$(du -sh ~/Downloads/myfile.iso)
    if [ $old -eq $new  ] ; then
        break
    fi
    old=$new
    xdotool getactivewindow key Ctrl
    sleep 5
done

As for the second loop in your script, it is alright.


Can I change the location of config files away from my home folder?

No, unfortunately, it's not possible yet. There is something called the XDG Base Directory Specification which makes certain types of directories configurable, including where apps store their data, where their configs are, etc. It says that configuration files should be placed in a directory specified by the variable $XDG_CONFIG_DIRS, which is $HOME/.config by default, but many applications doesn't use that yet. This is very annoying for many reasons. When they do, then it will be possible by simple changing that variable to something else, like $XDG_CONFIG_DIRS=/somewhereelse/.config. For now, it is not possible for things like compiz, but it is possible for many other things.


How can I extract my files from a corrupted vdi file?

Most of the time a crash while running a VM with VirtualBox will corrupt the profile, not the VDI.

Try making a fresh profile and add the existing VDI as the disk. You could also try a scandisk or equivalent on the host system if you haven't.

or

Do the following steps to rescue data:

1- create a new profile with your .vdi to rescue as a harddisk

2- download a linux live CD (like puppy, gparted, xubunu...) and add it as a live-cd image to the new profile

3- start the VM

4- mount the .vdi file (in my case it was sda2) and rescue your files as you like.

source


Try Vlc Player , open terminal  :

 sudo apt-get update

sudo apt-get install vlc


Filemanager that asks for sudo rights when it needs it

Nemo already has the functionality to open a folder in a new Window with root permissions. You just have to right-click on a folder icon and select "open as root" in its context menu.

Image source: http://2.bp.blogspot.com/-4PwLsyex1Bo/UEqi2kD9h7I/AAAAAAAAANU/iHXfQRKdMfw/s1600/nemo-file-manager-open-as-root.png

When you click on that option, you will get the gksu-popup asking for your admin account's password. After correctly entering this, a fresh second window of Nemo opens at the selected location.


How can I make vim ignore the global config?

I figured out one way is to add this to my .bashrc

alias vim='vim -U NONE -u ~/.vimrc'

but maybe someone will come out with a better solution :)


In all shells, using *.iso expands to a list of files before calling the command, so in

locate *.iso

the shell expands automatically the expression creating a filename list from files in the current directory. Suppose there where in the current directory two iso files file1.iso and file2.iso; the resulting command will actually be:

locate file1.iso file2.iso

then the shell will execute it. So, locate will try to find files containing these two strings, effectively searching for "*file1.iso*" or "*file2.iso*".

That's why locate iso find more files than locate *.iso; locate is actually searching for "*iso*" in the first case. The solution (and right way to use it, IMHO) is quoting the special chars of the shell when the command accepts expressions using them, like the following find command:

find /etc/ -type f -iname "*.conf"

If there where two or more conf files in the current directory and we don't use quotes, the find command will fail parsing the second filename generated, and our hair density will be severely reduced in desperation and googling ;D because the error message seems not related to the absence of quotes.


Where bind9 slave server stores transfered zone file?

Sorry for the delay of answer mate, strange that nobody have already answered to that question of yours. I guess you already figured it out but just in case...
So, you shouldn't decide where to put the file yourself. As said in ubuntu documentation, Apparmor doesn't allow to place the files where ever you want.
Just put on your slave named.conf.local something like: file "db.example.com";  in place of file "/etc/bind/zones/db.lab"; and you will see some files appearing in /var/cache/bind/.

[EDIT]
Reason for the existence of AppArmor -

  A short guide to get you started on AppArmor

  AppArmor is a linux security module that allows for path based mandatory >access control. It’s easy to learn and very effective at both preventing >and containing exploits. I suggest you make use of it.

available here


Try with:

sudo chown -R [USER NAME]:[USER NAME] /var/www

Replace [USER NAME] with appropriate.


Re-Installing MYSQL database on a webserver without losing the settings

Pl. clarify what do you mean by 'posting a database on website' !
I suggest you need to get some insight about three tiers of such project.
1) Database tier,
2) Business logic tier,
3) UI tier.

Since you say that you have setup MySQL, Apache web server and phpMyAdmin, you seem to know how to do it.
In a commercial business app, typically hosting is done on own server(s) of an organisation (with advanced approaches such as mirroring, load balancing, optimizing, etc.)
If it is a small organisation, hosting is done on leased server space / cloud hosting.

It would help us understand your question better (and answer it in a better way) if you can give more details.
HTH


NTFS Partition input/output after using Testdisk

Depending on the reasons we had to recover a partition it is expected that Testdisk will not recover all of it. We will not be able to revive those parts of the drive which have been overwritten or are damaged otherwise.

Therefore Testdisk is extremely helpful in recovering those data that are still complete but it may not be able to restore the drive to it's original state if anything was written to it. This is where restoring a backup is the only means we have.

What should  be done now is to backup all important data to an external drive, repartition and format the drive, and then restore the backup. Make sure the backup is complete before you wipe the drive holding your recovered data.

In case we are faced with repeated I/O errors on that drive this may indicate a failing disk. Read the output of S.M.A.R.T. data for that drive for more information regarding this. It is then even more important to immediately make a backup of your data, as this drive may fail completely any time and therefore needs to be replaced.


It seems that an X server is already running on :1. You should change it to :2 or a suitable different value.

ex: Xephyr -br -ac -noreset -screen 800x600 :2


Eclipse on Ubuntu 10 java-6-openjdk has missing jar's

I also had the exact same problem as Jerry. Missing my gnome-java-bridge.jar. However, you don't have to load the new jdk. Just reselect the jre and Eclipse will reload the library list from the jre and everything works as expected

Window->Preferences->Java->Installed JREs

You might have to edit your Runtime for your Server settings (I did).


apt-get update removes ROS melodic while installing ROS2 eloquent on Docker image

This is not a solution but a weird trick. Instead of installing melodic and then eloquent, I did the inverse and it worked...
Now I have a Docker image with both ROS1 and ROS2


Sounds like that you are using Wubi since you said that you didn't use any USB drives and CD's.

To access your C Drive in Wubi, click the Folder icon on the launcher, then click File
System on the sidebar.  Go to /host and you will see your C drive on Windows XP.

To uninstall Ubuntu, go to the Control Panel and uninstall "Ubuntu".

Your files will still be there as usual.  But not those files that you created in Ubuntu.


Looking at the tail of /var/log/cups/error_log:
X [14/Jul/2020:15:06:38 +0200] No valid Listen or Port lines were found in the configuration file.

Indeed, the config file was ruined by some other settings, but luckily a backup was kept:
ll /etc/cups/cupsd.conf*
-rw-r----- 1 root 4571 2020-07-01 19:53 /etc/cups/cupsd.conf.O
-rw-r----- 1 root   22 2020-07-01 19:54 /etc/cups/cupsd.conf

This worked for me (in Ubuntu 18.04), to restore cupsd.conf and restart cups:
sudo -i
cd /etc/cups
cp cupsd.conf.O cupsd.conf
systemctl restart cups

verify by:
systemctl status cups


Installation of Ubuntu 12.04 on NUC D54250WYK

Check out this article: http://arstechnica.com/gadgets/2014/02/linux-on-the-nuc-using-ubuntu-mint-fedora-and-the-steamos-beta/

They recommend renaming the EFI file to /mnt/EFI/BOOT/bootx64.efi.


Stop systemd service from running at boot

The problem seems to be in your /etc/systemd/system/b2backup.timer file.
Specifically, this line:
Requires=b2backup.service

From the systemd.timer documentation:

For each timer file, a matching unit file must exist, describing the unit to activate when the timer elapses. By default, a service by the same name as the timer (except for the suffix) is activated. Example: a timer file foo.timer activates a matching service foo.service. The unit to activate may be controlled by Unit= (see below).

foo.timer will always trigger foo.service. Systemd automatically matches the name ('foo')
To specify a different service file(s) use Unit=someOtherService (different from the [Unit] section)

Unfortunately, a Requires= line creates a dependency. Systemd must run the dependency before it can start the service or timer.

A Requires=foo line tells systemd to run that service before starting the timer.

Simply delete the Requires= line from your timer. You don't need it (systemd already knows which service the timer triggers), and it's causing the behavior that you don't want.


I recommend Codiad - dark theme, git, terminal, easy setup without big dependencies.


Application switcher disappears behind windows

I solved it by using CompizConfig Settings Manager. Go to Window Management and enable Application Switcher. By doing so I got a popup telling me that there were conflicting bindings with another plugin. Click Resolve conflicts, and set x anyway on the following dialogs.


Making two-finger scrolling work on my ThinkPad L480

Okay, 1st we'll see the touchpad model and it's associated driver requirement:

xinput-list will show your touchpad model as Virtual Core Pointer (in my case, it shows SynPS/2 Synaptics TouchPad)
So, I have to install it's associated driver: xserver-xorg-input-synaptics
Now issuing synclient -l command will show available touchpad options
In the output, check if "VertTwoFingerScroll     = 0"
 & "HorizTwoFingerScroll    = 0", if so, your Two finger scroll is not active.
Create an empty file at /usr/share/X11/xorg.conf.d and paste this:

Section "InputClass"
    Identifier "touchpad"
    Driver "synaptics"
    MatchIsTouchpad "on"
        Option "TapButton1" "1"
        Option "TapButton2" "3"
        Option "TapButton3" "2"
        Option "VertEdgeScroll" "on"
        Option "VertTwoFingerScroll" "on"
        Option "HorizEdgeScroll" "on"
        Option "HorizTwoFingerScroll" "on"
        Option "CircularScrolling" "on"
        Option "CircScrollTrigger" "2"
        Option "EmulateTwoFingerMinZ" "40"
        Option "EmulateTwoFingerMinW" "8"
        Option "CoastingSpeed" "0"
        Option "FingerLow" "30"
        Option "FingerHigh" "50"
        Option "MaxTapTime" "125"
        ...
EndSection

edit as needed and save the file.

Reboot.

Hope it helps :)


Impossible to Install Linux on Notebook G75VX with Win8

You seem to be finding and using instructions for BIOS/MBR or wubi type systems, but you have the new UEFI which replaces BIOS and has to have gpt partitioning not MBR(msdos).

Wubi does not work with gpt partitioned drives and UEFI has to have gpt, so wubi does not work with any of the new UEFI systems.
Grub4dos (which wubi uses) doesn't work with GPT disks (required by UEFI)

http://www.omgubuntu.co.uk/2013/04/wubi-advice

If you boot Ubuntu in UEFI mode, you will get a grub menu, not the accessibility icons (or person & keyboard). How you boot install media is how it installs, but Boot-Repair will convert a BIOS install to UEFI install.

Backup efi partition and Windows partition before Install of Ubuntu.
Shows install with screen shots.

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

Also shows Windows 8 screeens

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI

Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot. required for UEFI & grub bug fixes

https://help.ubuntu.com/community/Boot-Repair


Quick check to find if ogre is installed and then uninstall if required

I am not familiar with ogre but there is a simple test to see if any ogre packages are installed:

andrew@athens:~$ sudo dpkg -l *ogre*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version            Architecture       Description
+++-===========================-==================-==================-===========================================================
un  libogre-1.8.0               <none>             <none>             (no description available)
un  libogre-1.9.0               <none>             <none>             (no description available)
ii  libogre-1.9.0v5:amd64       1.9.0+dfsg1-7      amd64              3D Object-Oriented Graphics Rendering Engine (libraries)

This indicates the name of the ogre package and also gives the version number that you are after. You can see that I have installed: libogre-1.9.0v5, there is a nice explanation of these codes here... but suffice it to say that that it demonstrates versions 1.8.0 and 1.9.0 not installed while 1.9.0v5 is installed.

To remove this package is then a simple process of running:

sudo apt-get remove libogre-1.9.0v5

And this will safely remove your ogre package...


Ubuntu touch. adb devices is not recognizing nexus 4

Someone helped me with this on Google+  You need to enable Developer Mode by going to 'About this phone' in System Settings, then right at the bottom it says 'developer mode'  After that adb should recognise it fine.


Can i create a shared folder between ubuntu 13.10 and windows 8.1

The files on "ubuntu" are probably saved on an Ext4 partition, of which Windows does not support the reading or writing of.

Your first option is that you can use Ext2Read to read the Ext4 partition on windows, but there is no support.

Your Second option is that any file on NTFS (which is what windows uses) should be fine on linux, as it has great NTFS support, so you should be able to just write to a folder on that partition.

If for some reason that doesn't work, you should be able to create a third partition formatted as FAT32 (bad) or NTFS, and just use this third partition as the cross over.


Getting the PID of the process showing a particular window

Use xprop _NET_WM_PID and click the window you want to query.

For instance, if you run it on a gnome-terminal:

 $ xprop _NET_WM_PID
 _NET_WM_PID(CARDINAL) = 2386
 $ pidof gnome-terminal
 2386


how do you withdraw statistics from website using ping option in Terminal?

You can also tell ping the number of pings to send, or 'count.'

ping -c3 www.google.com

  PING www.google.com (74.125.228.49) 56(84) bytes of data. 64 bytes
  from iad23s06-in-f17.1e100.net (74.125.228.49): icmp_seq=1 ttl=50
  time=34.0 ms 64 bytes from iad23s06-in-f17.1e100.net (74.125.228.49):
  icmp_seq=2 ttl=50 time=38.8 ms 64 bytes from iad23s06-in-f17.1e100.net
  (74.125.228.49): icmp_seq=3 ttl=50 time=38.8 ms

  --- www.google.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev =
  34.053/37.272/38.897/2.287 ms


How do I permanently load a kernel module?

So to gather all the data to an answer, here it is:

After the first compile of the new module, I had the module file r8101.ko in /lib/modules/$(uname -r)/kernel/drivers/net.
I added r8101 to /etc/modules and blacklist r8169 to /etc/modprobe.d/blacklist.conf but I was still booting to the old module.
Then I run sudo update-initramfs -u and then after restart the new module was loaded as expected (thanks to @papukaija comment).


ubuntu server restarting instead of shutting down

Just had this problem with 14.04 on a Gigabyte GA-MA78GM-S2H based desktop. Tried all the BIOS settings I've seen suggested around the web with no luck.

Thought it might be a USB related wake. Used non USB mouse and keyboard and problem solved.

Also USB keyboard adapter will work, but not one for the mouse, which is a little odd.


How to use chmod to give a single user from my group permission to my directory?

You can use setfacl

setfacl -m u:username:rwx myfolder

This sets permissions for specific users, without changing the ownership of the directory.


I have installed ubuntu alongside windows vista but Ubuntu won't run

You can try Boot-repair. Boot-Repair, simple tool to recover access to your Operating Systems. To get Boot-repair you can download it from here

Once you download the ISO file, go ahead and burn it to a CD, then make sure that your system is set to boot from CD. Boot from the newly created Boot-repair CD, and follow the on-screen instructions.