Some software locks files when they are being edited so that they cannot be simultaneously edited by another program or another user.
If you do not close the file or otherwise shut down the software properly, the file can remain locked.  Make sure that you properly exit your software and/or close the files you are working with before exiting LibreOffice.


sudo apt-get install amarok --no-install-recommends will download what's only necessary for Amarok to run (only 69MB <-these are the dependencies) and it will use 199MB when installed (which I guess is what you mean).

Amarok will probably never be written in GTK as it's part of KDE.

there is however Listen a GTK based player similar to Amarok.

  Listen is an audio player written in Python. Thanks to it, you can    easily organize your music collections.

It supports many features such as Podcasts management, browse
Shoutcast directory.
It provides a direct access to lyrics, lastfm and wikipedia
informations.
It intuitively creates playlists for you by retrieving informations
from lastfm and what you most frequently listen to

And let's not forget Exaile which is also similar to Amarok but to a lesser degree, it's available in the repositories.

sudo apt-get install exaile


will there be an integration of Nemo or Marlin as Ubuntu standard filemanager?

From OMGUbuntu.co.uk:

Discussion on Ubuntu 13.04′s choice of default file manager was one of the headline sessions in the second day of the latest UDS.
Integration, design and accessibility issues were all raised during the 50 minute discussion, which centered around what Ubuntu needs to patch or re-add to the ‘new’ Nautilus for it to remain useful to Ubuntu users.
...
Overall the mood throughout the discussion was upbeat and constructive. The attendees recognise that Nautilus is still the best all-round file manager available for Ubuntu and as such it makes sense to use it.
The coming months will see definitie decisions taken on the issues raised.
But for now we can feel assured that the loss of shortcuts, functionality, accessibility, and Ubuntu integration are being taken seriously.

So no, Nautilus is there to stay for a while. Of course it is up for review every UDS ;)


VLC media player window is overlaying other windows in Ubuntu 14.04 - compiz Window manager

I had the same problem and I did this:
Go to Tools → Preferences → Video → Accelerated Video Output (Overlay)
and uncheck this button and uncheck 'Always on top'.

With both the buttons unchecked the problem should not arise.


How to restart WiFi interface without rebooting (it drops connection)?

I had the same problem with ubuntu 15.10 after running on a wired network and having my laptop suspended and resuming when not on a wired network anymore.

I found this blogpost very helpful: http://blog.ostermiller.org/resetting-wireless-networking-on-ubuntu-without-rebooting/

You need to find your driver:

sudo lshw -C network

Look for the wireless controller and in configuration look for driver. In my case:

*-network
   description: Network controller
   product: Wireless 8260
   configuration: driver=iwlwifi latency=0

All I had to do to fix is run

sudo modprobe -r iwlwifi && sudo modprobe iwlwifi


Yes you can do that.Do as I say

Open your software sources and then select install from CD-ROM option as I show in the image ( I am using 13.10 so dont get confuse)

There select the cdrom option too.
Then open your terminal and type as
sudo apt-get update

Disconnect your internet and then type the command as
sudo apt-get install libreoffice

that will do the Job.
hope that helps.


For Intel processors (i7) AMD64 and i386 are suitable.

AMD64 stands for 64 bits architectures and i386 for 32 bits ones.

Please double check it but I pretty sure you have to download AMD64 Ubuntu image (64 bits)

Hope it helps


One handy tool that every Linux user needs is a boot-repair tool on a bootable USB thumb drive. This will save you hours of trouble. I made mine using instructions here
It will help you out of all manner of troubles, like what you have described.

Best of luck to you, and feel free to ask questions about this if you need to.


Can't make bootable USB for release 12.04.1

If you are using windows to create the usb stick, try marking the partition as active.
Here is how you do it.
1.press windows key and type diskpart and press enter.A command prompt opens.
2.Type list disk and press enter.
3.select the disk by using the command select disk "diskno"( without the quotes )where diskno is the appropriate disk number as seen in list disk.
4.select the appropriate partition by using list partition and select partition commands.
5.After selecting the partition type active to mark the partition active.
Then try making the usb stick.
If this doesn't help chek the MD5 sums of the iso you downloaded.


Problem with apt-get update and dpkg/status

Open Update Manager and click on the "Settings" button to open Software Sources. Click on the Ubuntu tab and un-check the "Cdrom with Ubuntu 13.04 Raring Ringtail" source.

Öffnen Sie Update-Manager und klicken Sie an die „Einstellungen“ knöpfen, um Software-Quellen zu öffnen an. Klicken Sie an den Ubuntu Tabulator und die UNOkontrolle der „CD-ROM mit Ubuntu 13,04 Quelle Raring Ringtail“.


In terminal, type cat ~/.config/touchpad-indicator/touchpad-indicator.conf and the output should look something like:

{"disable_on_exit": false, "show_notifications": true, "is_working": true, "on_m
ouse_plugged": false, "disable_on_typing": true, "VertEdgeScroll": true, "start_
hidden": false, "enable_on_exit": true, "HorizEdgeScroll": true, "natural_scroll
ing": false, "shortcut_enabled": false, "first-time": false, "TapButton2": 3, "s
econds": 5.0, "VertTwoFingerScroll": true, "TapButton1": 1, "HorizTwoFingerScrol
l": true, "disable_touchpad_on_start_indicator": false, "shortcut": "c", "touchpad_enabled": true, "CircularScrolling": false, "version": "1.1.0-0
extras15.04.3-src", "autostart": true, "theme": "dark", "TapButton3": 0}

If it doesn't exist, or it's empty, create an empty json file by typing:

echo '{}' > ~/.config/touchpad-indicator/touchpad-indicator.conf

And see if that allows touchpad-indicator to start.


The radio from Android 4.4 KITKAT don't work with Ubuntu touch. Easily, I flashed radio with file from Android 4.3 and solved.

fastboot flash radio file.img

(file.img is the radio file from android 4.3)


"Legacy Bios Implementation" - Should I update this or not?

S,
the package seabios in Ubuntu is really only used for system emulation in qemu and bochs. If you are interested to dig deeper, here a list of things depending on it.
Installing/Upgrading this will not flash anything onto your real hardware.


Printing with Lacie Lightscribe requires root privileges

You could use the SimpleLabeler application (see further below) and not the Lacie 4L lightscribe application as the former does not require root access and it works well straight away with most drives. I regularly use it and have never used gksudo or sudo.

If you want to use the Lacie 4L application, download the Lacie Labeller and the Host Software from the official site. Unfortunately, there are no .deb files available and no source code available, so you'll have to use alien to convert the rpms to debs. So run

sudo apt-get install alien

You may find it helps to rename the rpms to something like 'Lacie_Labeller' and 'Lacie_Host', as the original file names are very long; they will be renamed by alien with the version number of the software anyway. So cd to the download folder and run for each rpm:

sudo alien name_of_your_file.rpm

Then install them individually with

sudo dpkg -i name_of_file.deb

The LaCie LightScribe Labeler for Linux package should install fine. Don't worry if you get an error such as: A later version is already installed when installing the Lightscribe system software, as you may already have some Lightscribe files installed if you have installed other Lightscribe software before.

Now, launch the Lacie application with

gksudo 4L-gui

It is fine to do this, and the requirement for gksudo cannot be easily removed from the program without recompiling it.

The gui of lacie 4L is straightforward-you choose your template from anywhere on your drive then resize it with the program's tools. You can place text on the template beforehand with your image program. The template below is from lightscribe.com.

Here is my sample burn of a template from lightscribe.com using Lacie 4L.

Alternative

Here's how I set it up the SimpleLabeler application on Ubuntu 12.04.

The download site for the debs (also mentioned in the comments by user104140) is at lightscribe.com. First download the system software and then the Labeler application.

You must install the system software before the labeler application 'to maintain the necessary dependencies', although the version numbers of the two packages do not need to match.

You should use gdebi or software-center to install the debs and then you will find the labeler application in /opt/lightscribeApplications/SimpleLabeler.

Now cd to the folder mentioned above and launch it with ./SimpleLabeler or create a symbolic link so that you will be able to call it with just SimpleLabeler:

sudo ln -s /opt/lightscribeApplications/SimpleLabeler/SimpleLabeler /usr/local/bin

Now launch the labelling program as your normal user and select your options:

Here is the sample result:


Automatically update linked images in presentation mode in Impress?

Edit: The method outlined in this answer will still require user input to update the images before entering presentation mode. It is not capable of automatically updating images while in presentation mode.

Original answer:

Linking an image in LibreOffice Impress

You can do this by linking the images instead of inserting them.

Go to Insert → Picture → From file.... Select your file and check Link in the file selection dialog that comes up:

Confirm your choice with OK. A new dialog should spawn that will ask you to confirm linking the image instead of inserting it. Click on OK again.

From now on any changes to the image will automatically show up when reloading the document. You can also update your links through the Link Editor (Edit → Links...):

For more information on linking/inserting images check out the link Korkel posted.

As an aside: If you are interested in linking images by default you should give this Q&A a look. Note: The CTRL + SHIFT workaround posted there doesn't appear to be working in LO Impress.


Touch pad not detected correctly - Asus X540SA

This touchpad is not supported yet by any Linux kernel.

There is a driver for this touchpad in this git repo


What to do when we can't login to the superuser

Restart the system , immediately hold and press shift key  you will enter into GRUB.There you can find recovery mode .After clicking recovery mode , you may find root option [Drop to root shell prompt] . click that and try to change the permissions and resume normal boot .Hope It may help you


Euro Truck Simulator 2 not installing in Ubuntu 14.04

sudo mkdir -p /usr/share/terminfo/l
cd /usr/share/terminfo/l
sudo ln -s /lib/terminfo/l/linux linux
export TERM="linux"

and try again start game


The file's permissions show that any user should be able to read, write or execute the file.  The directory in which this file is located, however, restricts this access.

drw-rw-r--  2 root     adm      4096 Mar 26 16:08 .
# ^ /var/log/nginx 'bad'
drwxrwxr-x 14 root     syslog   4096 Mar 26 06:25 ..
# ^ /var/log 'good'

In order for a user to be able to list the files in a directory, you need read and execute privileges.  There is a good explanation of why you need the execute bit that you can read about here.  You need to be able to access the inodes, which is where the requirement originates.  I always thought you could read the file but not list the directory, but it seems you need the execute bit to read files in most situations.

And this directory-based restriction goes all the way up to /.  This is why a 777 file in your /home/$USER directory can't be accessed by another user, because your home directory has no read nor execute privileges for 'other'.


Simple way to count disk usage after a certain date

A combination of find, and du piped into awk should work - something like the following

 find -mtime -10 -type f -exec du '{}' \; | awk '{s+=$1} END {print s}'

where you can adjust the mtime parameter (or use mmin) to suit your needs. In this example files modified up to 10 days ago are included.


Ubuntu LTS 18.04 stuck at splash screen after routine update

According to comments on the bug report associated with the bad kernel update, if you are in the 'this update caused my computer to boot really slow but not totally crash it' club, you can fix that by installing the havegedpackage.


How to uninstall netbeans if uninstall.sh missing

From the commandline run:

$ sudo apt remove netbeans

Alternatively (using the GUI):

Run Ubuntu Software.  Type in Netbeans in the search fiend.  Click Remove.


Can you lock the Unity screen after 15 minutes, not shown in "Brightness & Lock" dropdown?

Please install dconf-editor (sudo apt-get install dconf-editor) and go to

org gnome settings-daemon plugins power

Click number besides idle-brightness and it will allow you to change it.

Speculation on my part: the lack of options in the GUI is to not make it too crowded and "experienced" users that need more refinement will probably know about dconf.


Basically avantfax is not built (nor fixed) for php7 (which is default php for Ubuntu 16.04), thus you will need to compile or install php5 first before proceeding. Refer to this post for the answer (which is for nginx): https://www.howtoforge.com/community/threads/ubuntu-16-04-hylafax-avantfax.76168/#post-359073.


How to connect to PPTP VPN in Kubuntu 18.04 LTS?

Well, in my case it turned out to be ufw blocking everything.

in this link there where simple ideas. In ufw you can do

"sudo ufw allow proto gre from " to allow connections from

Can't connect to PPTP VPN with ufw enabled on Ubuntu 14.04 with kernel 3.18

Not sure if your error showed up in my case, but it's worth a try


16.04 kernel Update breaks power saving - how to fix?

Finally found the culprit.

A kernel update seems to have disrupted the NVIDIA proprietary driver setup.

Original driver was 384.130.
Switching to X.Org, rebooting and then switching back to 384.130 seemed enough to put the driver back into working order.

In the meantime I updated to version 390 using

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

and then choosing the 390 driver in the additional drivers tab.
(It says open source, but the repository is for proprietary drivers only, as far as I see - so this must be a mistake.)

Then used nvidia-xconfig to use only onboard Intel and rebooted.

my notebook now is back to normal energy consumption:


fan noise and high battery consumption with AMD hybrid graphics

If the power consumption is only due to excessive fan speed, you can also adjust that using i8kfan/i8kmon (from i8kutils package).

By default i8kmon is just a window with one button for changing fan speed, but it can also be run as a daemon with customizable temperature thresholds.

To me it's still a mystery that Ubuntu runs the fan at the very noisy max speed by default if you don't do the above...


Nvidia ASUS Strix gtx960 Kubuntu 14.04: screen tear and ghosting

Screen tearing was eventually resolved with nvidia meta mode setting in terminal.

Arch wiki article for Nvidia tear fix, scroll down to "Avoid tearing with GeForce 500/600/700/900 series cards".

After the tunnel compost failed to sustain through an entire session I received help in Reddit. After adding the triple buffer feature tearing is either gone or unnoticeable. Also with recent updates framerates have significantly approved, as well as clarity that was reduced through only tunnel composite.

NOTE: in the Nvidia xorg server settings, vsync option is activated and also activated in game options. Also performed system restart and checked BIOS to ensure proper RAM speed.

FIX: Add any of the following not present in your xorg.conf file at /etc/X11/

Section "Screen"

Identifier     "Screen0"
Device         "Device0"
Monitor        "Monitor0"
DefaultDepth    24
Option         "Stereo" "0"
Option         "nvidiaXineramaInfoOrder" "DFP-0"
Option         "metamodes" "nvidia-auto-select +0+0 {ForceFullComposition = On}"
Option         "TripleBuffer" "1"
Option         "SLI" "Off"
Option         "MultiGPU" "Off"
Option         "BaseMosaic" "off"
SubSection     "Display"
    Depth       24
EndSubSection

NOTE: Ghosting has been temporarily labeled as a monitor issue and not that of the card.


Delete all files from within a directory that contain a specific word

find . -name "*sofa_*" -type f | xargs rm

Or as correctly noted in the comments:

find . -name "*sofa_*" -type f -delete


Is there a software tool / wizard to dual install ubuntu onto a pc with windows 8?

No there are no such tool.

Need a worry free dual boot setup?

Create restoration disk if your laptop guide said so, or you must have the windows 8 install media. Take backup of any important data that you have left in this laptop.
Use Advanced Token Manager to take a backup of windows 8 activation data, just in case.
Open BIOS, Disable secure boot and change boot type from uefi to legacy. [Can't really help here as different manufacturer put them in different menu.]
Reinstall windows 8 (do the necessary stuff activation, driver installation etc), and then install ubuntu with ease.

If not ready for the above, and want new features of UEFI (I don't know what they provide)
Follow -

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI

Also look at - https://help.ubuntu.com/community/UEFI

Remember to use 64bit images. 32bit images won't detect UEFI.


How to install Perrix gaming mouse on Ubuntu?

There's no reason a mouse shouldn't work at all without drivers - the drivers are primarily to enable extra keys, or to send commands to the mouse. While I'd test this on a windows system to be sure (and to rule out the possibility that it simply dosen't work in windows), chances are the mouse is faulty (and i've had faulty mice work perfectly as a mouse, I just had problems changing settings on it) and that you ought to get it replaced.

There's a few things I'd check in troubleshooting the mouse in question in ubuntu

check if the mouse is even detected with sudo lsusb
/dev/input/by-path has a series of files referring to input devices. using cat on one of those files will result in a series of ... odd looking characters when you use the device. `xev' is a x specific command that does similarly, but with more specific detail.

If your device is not in /dev/input/by-path , or lsusb, something is off. I'd borrow a windows box (as I suggested earlier), plug it in, and see if it works there (and if it does, I'd be baffled) and if it still dosen't, RMA that darned thing cause its broken.


Unable to install packages using apt-get (Strange error)

Try removing the package and starting the process over again.

First purge the package:

$ sudo apt-get purge android-studio


How do I make a app in Quickly and play a sound when a button is clicked in the app?

You would need to connect the 'activate' signal of the button  to a handler function that then calls a library to play a sound.  For the sound playing part you can use any of the modules listed here

In glade select the button then choose signals and enter a name for the function handler:

Then in your python code for the window, create the function (on_iconbutton_activate in my example). Here's an example that just makes a system call to ring a bell:

import os
....otherstuff...

def on_iconbutton_activate(self,widget,data=None):
    os.system("/usr/bin/canberra-gtk-play --id='bell'")

EDIT: To make the sound redefinable, you'll need to pull the choice from somewhere. Just use a variable to store the choice (a filename for some module or id for canberra-gtk-play), you can store the variable in something like self.sound and reference it in the function (since you passed self to it), or update the variable from some widget when the button is clicked.


Display Current branch name in ubuntu terminal

git branch will report only if the current working directory is the repository you want to track.

For instance:

$> pwd
/home/xieerqi
$> git branch
fatal: Not a git repository (or any of the parent directories): .git
$> cd sergrep
$> git branch
* master

You want to add a cd call to that function that will navigate to that directory. Better yet, put the brackets around that command, so that the command is executed in subshell, so your current working directory is not affected. For me, the function can be written as so:

parse_git_branch(){
  # navigate in sub shell to my git repository
  # and execute git branch
  ( cd /home/xieerqi/sergrep; git branch 2> /dev/null | \
   sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' )
}

And here's how that works in action:

DIR:/xieerqi|14:24|skolodya@ubuntu:
$ source ~/.mkshrc
DIR:/xieerqi|14:24|skolodya@ubuntu:
$ PS1="$(parse_git_branch)$PS1"
(master)DIR:/xieerqi|14:24|skolodya@ubuntu:
$ echo HELLO ASKUBUNTU
HELLO ASKUBUNTU
(master)DIR:/xieerqi|14:24|skolodya@ubuntu:
$
(master)DIR:/xieerqi|14:24|skolodya@ubuntu:
$ typeset -f parse_git_branch
parse_git_branch() {
    ( cd /home/xieerqi/sergrep
      git branch 2>/dev/null | sed -e "/^[^*]/d" -e "s/* \\(.*\\)/(\\1)/" )
}


To prevent gnome settings daemon from overriding other settings use dconf-editor, select /org/gnome/settings-daemon/plugins/keyboard/ and uncheck the active checkbox.


OpenCV Build Error: "Cannot open options file specified with @"

have you accentuated characters in your working directory name ? (see https://bugreports.qt-project.org/browse/QTBUG-35480 )


You can easily change the hotkey for the HUD by going to System Settings --> Keyboard --> Short-cuts as in the following picture :

Note that: Clicking ALT fast , shows the HUD. But When you click and hold you can use it easily for another function. I use ALT without any problems.


Sometimes when you install programs, they rely on other programs to work. These other programs are called dependencies.

For example, if I write a messenging application, and I want my messages to be encrypted, instead of creating a way to encrypt the messages myself, I'll use a package that someone else has written, which will do the encryption for me. Now when you want to install my program, you need my program, but you also need the package I used to encrypt the messages. My program depends on the other program.

When Ubuntu installs new programs, it installs them from a big warehouse of programs called a repository or a repo. It's quite clever too, if it notices that a program depends on another program, it will install both at the same time so you don't have to worry about it.

However, problems come up when a program depends on another program, but Ubuntu can't find it in the repositories.

This happens more often when there is a new version of Ubuntu, becase a new version of Ubuntu means a whole new repository, and sometimes not all programs are updated for the new version of Ubuntu and therefore aren't in the repository. Over time, as programs get updated and added to the new repository, this problem should happen less and less.

I hope that helps.


Please check the permission of the newly created module. Please give proper permission to the module or give 777 rights. Than restart server and try to Update Module list.

If you want to find the addons location of currently running odoo. Please execute below command in your terminal.

ps ax| grep odoo
#Here you can see the config file location like,
#-c /usr/lib/python2.7/dist-packages/odoo/conf/odoo_server.conf
#Open above .conf file, in that you can see the addons path of the Odoo.
vi /usr/lib/python2.7/dist-packages/odoo/conf/odoo_server.conf


How to recover lost Google Chrome icons after deletion of the configuration?

I solved it by copying the folder "~/.config/google-chrome" from another laptop and deleting singleton-lock and singleton-socket file.


I'm having difficulty installing drivers for a Kodak Verite 55W Eco

If you use USB connection, please ensure that printer is recognized and shown in output if lsusb.

According to OpenPrinting site this device is not listed in support list.

Official Kodak's site lists two types of files:

Linux 32/64 Bit group has PostScript PPDs archive (Postscript-v1.0.7.2-Files.tar.Z), it has Readme-Install.txt with instruction.
Linux 64Bit group have three deb-archives Scanner Driver for Linux 64 Bit, Postscript Printer Description for Linux 64 Bit, Printer Driver for Linux 64 Bit. I think you should install all them.

Also you may try to find your printer in the network and install it with system-config-printer utility (named Printers, contained in system-config-printer-gnome) and PPDs from first archive.


I might be wrong but I think even with 3D acceleration VirtualBox uses its own graphicscard in the VM. I think it's not possible to put your GeForce through!


How to create NGINX debian package from souce?

You're probably looking for checkinstall https://help.ubuntu.com/community/CheckInstall

What you do is you follow the instructions for compiling the application you want (in this case NGINX).

Then when you get to the step that tells you to issue the make install command, you replace it with checkinstall.

This compiles the code into deb packages you can install with dpkg -i packagenamehere.deb

Don't distribute these packages to others though, as they are built specifically for your machine, with the dependencies based on packages already installed on your PC.

That said, you can uninstall them, just like you would any other deb package :)

Also, you can give them version numbers to upgrade an existing version you had compiled earlier.

Good luck!


Need a simple program to poll and display language in X

Normally the current language is displayed in the system tray by the input method editor.  For example, ibus or fcitx.  And if you have a system tray application, it will be in there.

If you wanted to get the layout without using the input method, you could shell out to setxkbmap such as from here.

Whatever commands you want to run you could either do it from FvwmScript or just update a button in FvwmButtons.

For just the language one, add this to your fvwm config:

DestroyModuleConfig FvwmButtonLanguage: *
*FvwmButtonLanguage: (Id button0, Title "ZZ")

Then you can either schedule a periodic task for it (also in your fvwm config):

Schedule 1000 PipeRead "echo SendToModule FvwmButtonLanguage ChangeButton button0 Title $(setxkbmap -query | grep layout | cut -f2 -d: )"

Or run a script (assuming you have Module FvwmCommandS loaded in your start function) to update the button that contains the following:

 while true ; do FvwmCommand "SendToModule FvwmButtonLanguage ChangeButton button0 Title $(setxkbmap -query | grep layout | cut -f2 -d: )" ; sleep 1 ; done

If you update your question to provide another example, I'll update this answer with a thorough example.


Install second network interface on virtualized Ubuntu Server

I've solved the problem adding

# The secondary network interface
auto enp0s8
iface enp0s8 inet dhcp

to /etc/network/interfaces

(Get the new interface name using ifconfig -a)

and restarting the network using sudo service networking restart.

Now, here is the result of

$ ifconfig enp0s3    Link encap:Ethernet  HWaddr 08:00:27:47:52:7b
          inet addr:192.168.56.101  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe47:527b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6334 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7656 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2741526 (2.7 MB)  TX bytes:10824219 (10.8 MB)

enp0s8    Link encap:Ethernet  HWaddr 08:00:27:3e:1e:bf
          inet addr:10.0.3.15  Bcast:10.0.3.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe3e:1ebf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1730 (1.7 KB)  TX bytes:1882 (1.8 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2143 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2143 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:443165 (443.1 KB)  TX bytes:443165 (443.1 KB)


Keep your system up to date by updating it each time the update manager lanches.


Meld is a very good graphical diff tool (and more):

meld dir1 dir2 &


Ubuntu 19.04 installer hangs on keyboard layout selection

I kinda figured it out.

I had a PCIe to SATA expansion card. This was causing the issue. I removed it and now every thing works fine(except for the fact that I lost 6 SATA ports)

but oh well.


Try plugging in a different keyboard:

You should try plugging in a corded USB or PS/2 keyboard, usually bluetooth keyboards don't work on lower level prompts. If you're not using a bluetooth keyboard you should still try plugging in a different keyboard.


battlEye launcher not launching fortnite

As far as I'm aware of, I don't think BattleEye accepts Linux yet. I haven't heard any news about the progress on this since the pandemic sadly.


The .bashrc file changed back after reload it

You must logout to make changes work after editing .bashrc or .profile file


Ubuntu 12.04 LTS, Gnome: sound mutes and unmutes 10 times a second

Check to see if your microphone is turned on. Run alsamixer from terminal or check these sites.

https://wiki.ubuntu.com/DebuggingSoundProblems

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


Lost password after installing and configuring AFS in the system

No, when you lose these passwords you are at the point of no return. Putting a backdoor in would be a huge security flaw and so that's why there isn't one. Boot from a livecd and copy all your data to somewhere safe, then reinstall Ubuntu and copy it back. That's the best you can do.


Can't use cat to copy from file to another file using execlp in C

> file2 in cat file1 > file2 are not arguments sent to cat. They're interpreted by the shell (bash, in this case), to redirect the output of cat to file2. You can't do this directly via execlp. What you're doing is the equivalent of cat file1 \> file2 in a terminal, where the >, being escaped, is not interpreted by the shell.

You need to use system(), which uses a shell to execute a command string, or redirect the output using C functions like open() and dup2(). How to do that is a programming question, which belongs on Stack Overflow.


Vostro 3400 touchpad multiple gesture and two finger scrolling not working

My Toshiba U400 has the same problem.  Even install gpointing-device-settings didn't work, although at least the option to enable it wasn't greyed out there.

In the end, I found this forum post, which highlighted this little shell script :

#!/bin/bash
#
# list of synaptics device properties http://www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html#sect4
# list  current synaptics device properties: xinput list-props '"AlpsPS/2 ALPS GlidePoint"'
#
sleep 5 #added delay...
xinput --set-prop --type=int --format=32 "AlpsPS/2 ALPS GlidePoint" "Synaptics Two-Finger Pressure" 125
xinput --set-prop --type=int --format=32 "AlpsPS/2 ALPS GlidePoint" "Synaptics Two-Finger Width" 0         # Below width 1 finger touch, above width simulate 2 finger touch. - value=pad-pixels
xinput --set-prop --type=int --format=8  "AlpsPS/2 ALPS GlidePoint" "Synaptics Two-Finger Scrolling" 1 0   # vertical scrolling, horizontal scrolling - values: 0=disable 1=enable
exit

It works for some models, not for others, however.  Good luck.


What is "security context" in the file properties dialog?

Note: Due to a huge oversight on my part, I forgot that Ubuntu uses AppArmor instead of SELinux. That said, AppArmor is "SELinux-like", and the same principles exist for both. For more information about AppArmor, see here.

The Security Context field refers to the SELinux context set on that particular file.

They are used primarily for SELinux enforcement -- namely, to decide whether a particular user has access to that particular file/resource. Think of them as the SELinux equivalent of an Access Control List.

SELinux itself is an advanced concept, and will usually not need to be used by the average end user. In the vast majority of cases, most things can be run through standard UNIX permissions, or alternatively filesystem ACLs (see man acl).


The Linux kernel in Ubuntu provides a packet filtering system called netfilter, and the traditional interface for manipulating netfilter are the iptables suite of commands. iptables provide a complete firewall solution that is both highly configurable and highly flexible.

Basic Usage

Getting started with ufw is easy. For example, to enable firewall, allow ssh access, enable logging, and check the status of the firewall, perform:

$ sudo ufw allow ssh/tcp
$ sudo ufw logging on
$ sudo ufw enable
$ sudo ufw status
Firewall loaded

To                         Action  From
--                         ------  ----
22:tcp                     ALLOW   Anywhere

This sets up a default deny (DROP) firewall for incoming connections, with all outbound connections allowed with state tracking.

source: https://wiki.ubuntu.com/UncomplicatedFirewall


I solved my problem by this:

Go to advance options for ubuntu in grub.
Go to ubuntu recovery mode which is written in brackets and do not chose the recovery which is present at top.Believe me if you have exact problem as me following other answers by going to recovery at 2 or 3 place in list does not help.Instead go to a recovery relatively bottom of list and chose it and that's it no more commands to deal with.The system itself deletes the corrupted updates.
Enter your username and password.

If some one else is facing same problem please do comment I will be happy to help Thank you.


Do I need to setup a "zone" for every domain name that is visible to the outside world?

A little while after I posted this message I found the answer posted in the Ubuntu forum. :) For every top level domain a "zone" does in fact need to be created. Here is the URL for anyone interested:

http://webcache.googleusercontent.com/search?q=cache:ZVsbIZMfxPoJ:ubuntuforums.org/showthread.php?t=699931%20configure%20multiple%20domains%20in%20bind9&cd=4&hl=en&ct=clnk&gl=us&source=www.google.com


You need to create the config file yourself, it's not created by installation of the program.

Just save from your editor to  ~/.config/youtube-dl.conf (note no dash in .config).

The system-wide default configuration file, /etc/youtube-dl.conf, could be created by installing, but is not. That's not a problem, as the file format is not complicated, so an example file is not important.

Not sure what exactly you are doing, but if it's about repeating the download command with a different url, try using the shell history, pressing Up to recall the command, and edit the file name.

(To show your Ubuntu version, use lsb_release -a)


Thank you for your help. I managed to solve my problem. My bad. Slapped my wrist.

nmcli dev list iface eth0 returns correct DNS information. My office's DNS is giving correct DNS and IP. What happened was the DNS server returned domain A (local office). However I was trying to connect to another site (domain B). Hence nslookup and ssh without the domain B supplied will return error.

Eg:

ssh hostname (Does not work)
ssh hostname.domainB.com (works)

This is because even though I am connected successfully to the network. I am with domain A. I figured out that I need to append my dns suffix in /etc/resolvconf/tail to overcome this otherwise I need to specify domainB each time.

To add one more important observation. It took me a while to troubleshoot as nslookup and /etc/resolv.conf always points to 127.0.1.1. It confuses me as to why it goes to local DNS than my DNS server. I found it is the way Ubuntu Desktop uses resolvconf and local DNS and it is specified in /etc/NetworkManager/NetworkManager.conf (entry dns=dnsmasq).


To do that you need to type in your terminal:

export PATH="$HOME/bin:$PATH"

This change is only temporary (it works only in the current session of the shell). To make it permanent, add the line to your .bashrc file located in your home directory.


Software Center error: package indexes are changed

Probably you have some other package management application active, like Synaptic, Update Manager, or apt-get in the terminal. Close all such applications and try again.


Why can't I install Ubuntu from Live USB?

I've been just as frustrated as you before, and as it turns out, I had failed to check BIOS.

You didn't mention you've checked BIOS, so maybe checked that?

Booting order/sequence on BIOS is important, USB must be on top.
Also make sure that Allow booting from usb is checked.
Also unplugged any other usb device that may be interfering.

I hope this was useful :-)


Macbook Pro 8,1 - wireless interface not showing up

I first got it to work by doing the decently complex b43 firmware extraction then using a backported 3.2 kernel. Anyhow, the method in the Oneiric MBP 8,2 page works much more easily, and functions just fine on my Macbook Pro 8,1 (https://help.ubuntu.com/community/MacBookPro8-2/Oneiric)

Add the mactel repository and install relevant packages:

sudo apt-add-repository ppa:mpodroid/mactel
sudo apt-get update
sudo apt-get install b43-fwcutter firmware-b43-installer
sudo apt-get install linux-backports-modules-cw-3.2-oneiric-generic

Now edit the file '/etc/modprobe.d/blacklist.conf'

gksu gedit /etc/modprobe.d/blacklist.conf

and add the line blacklist ndiswrapper

Now edit (Create if it doesn't exist) the file '/etc/pm/config.d/modules',

gksu gedit /etc/pm/config.d/modules

and add the line SUSPEND_MODULES="b43 bcma"

Reboot the computer, and you should be good to go. Much easier than doing the b43 firmware and compat-wireless stuff manually, and much more stable than ndiswrapper!


Is there a latest version of Ubuntu less than 700MB?

Consider using Minimal CD. You can find it here https://help.ubuntu.com/community/Installation/MinimalCD

It doesn't contain all the packages but downloads them during install time. Of course you will have to be online during installing time and preferably have decent Internet speed.


I found this link should help :

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


SFTP establishes a connection over SSH protocol. If you have openssh-server installed you can connect with any system user and password as long as this function was not disabled in /etc/ssh/sshd_config. It is not related to vsftp.

Add new users:

sudo adduser username

Then connect to the system:

ssh username@host
sftp localhost

You will be prompted for a password for all commands above.

Update: How to jail users to their home with sftp can be found here.


The problem in the first case is quoting: If you want to use : as the separator, you cannot use it unquoted in character spaces. Also, . has a special meaning in a regular expression - it matches any character. To match the literal dot, use \.. Moreover, [:space:] must be used inside a character class, so you should use [[:space:]]. Finally, character classes have no meaning in the replacement part of the expression.

This should work:

sed 's/;[[:space:]]f\./, (frequent)./g'


Hyper-V Ubuntu 12.04: Mouse scroll wheel doesnt work

As it turns out, this is a bug with Windows Server 2008 r2 Hyper-V per RedHat:

https://bugzilla.redhat.com/show_bug.cgi?id=872519

Their research shows the problem is fixed in server 2012.


Prevent automatic upgrade of manually built package

It's always best to try and use software that's in the official repositories. You'll have some assurance that it won't cause major problems with your existing software. Apt-get is telling you that leafpad already existed for you to install via Synaptic or the Software Center, and that there's an update available (and that you didn't need to build it from source code).

If you're really sure that you don't want newer versions of leafpad to install when doing software updates, then:

Open Synaptic (make sure that Settings/Prefs/General/Appearance has Show package properties in main window checkmarked).
search for leafpad
click on the versions tab
select the version that you installed
select Lock Version in the Packages menu


Kate switches to RTL input and I can't get back to LTR

I think you are getting bitten by this bug.

Some observations from the comments:

It seems to be not triggered by a shortcut.
It might not be a bug in Kate, but a bug in some Qt component.
It seems to not switch from LTR to RTL, instead it messes up the cursor position.
A workaround seems to be saving, then reloading the document (keyboard shortcut: F5).


Where do I put a dyndns script for IPv6?

Answer taken from OPs comment:

  For now, I added a check if anything changed and am calling a cronjob
  once a minute.


Difficulty in partitioning after installation

How did you install Ubuntu? Also, is it Ubuntu 12.04 or 12.10? It probably isn't a big deal, but it could be.

Assuming you booted from your hard drive, you're in luck - you have already made a partition, perhaps without knowing it. If instead you meant that you wanted to make multiple partitions here's how:

Live boot into your system, the same way as when you first installed (disk or flash drive)
Open a terminal
Type ´ sudo gparted´
Look for your hard drive in 'devices' on the right. It's likely to be /dev/sdb but maybe not, so watch out.
Make sure the device's pprtitions are unmounted (right click them and if it says unmount, do it)
Your hard drive us likely set up with one large partition and one swap partition. For the purposes of this, wipe out the swap partition (look for the delete/remove button)
Right click your main partion and click 'move/resize'
Resize your partition to how big you want it to be. Warning: shirt from the RIGHT not the LEFT as doing this could ruin your bootloader
Select the area now known as 'unallocated slave's right click, and click to create a new partition. Make this partition however large you want it to be.
Repeat above u til you're satisfied
Click the green check mark


There is an option in Ubuntu installation to Erase the whole disk and full install Ubuntu. Then all the files and partitions will be erased.


Check out: My Ubuntu is running fsck on every bootup

Seems that there is a graphics related issue.  If your PC has a built-in graphics, I think the 915 has a VGA port on it, then try to boot with that first.

There's some additional flags you can enable, but try that quick test and see what you get.  If you can boot then you can start to look at the FX5200 as a possible source of the issues on boot.


Two Linux OSes on same machine - can edit files on the other OS safely?

It depends on which files will be changed. If you edit let's say a Libre Office spreadsheet file you were working on, then nothing wrong will happen. However if you change system files (for example files in /etc /bin or similar locations) it might corrupt your system. Such situation will occur regardless of the system you are working on at the moment. However in general every OS defends its important files and requires for example root password to edit them. So there might exist a possibility to change seamlessly even the important files belonging to one system while working on the other one.


How do I reduce delay before locking after pressing lock button?

I searched a lot to find anything (configuration) that may be related to this lag but to luck. It seems that there was a known bug [old]. anyway we still can use other tools to achieve what we want unless that bug is effecting you which you can use the above link instruction to get rid of it..

First use these commands to lock your screen, see which one of them is work better for you and which one you prefer to use.

$ dm-tool lock
$ gnome-screensaver-command -a  # starts screen saver

Now open system settings go to keyboard section and shortcuts tabs.

Now you can select custom shortcuts and asign something Ctrl+Alt+l to a command like dm-tool lock; Cause by default we can't use Super+l.

However if you insist to use Super+l to run your preferred command, set it as your key-binding and follow along to make it work.

To disable unity's Super+l key-binding, run:

dconf write /org/compiz/profiles/unity/plugins/unityshell/lock-screen "''"

To restore default behavior:

dconf reset /org/compiz/profiles/unity/plugins/unityshell/lock-screen

or install compiz setting manager:

$ sudo apt install compizconfig-settings-manager

then run it:

$ ccsm

Go to ubuntu unity plugin section. on line two, Key to lock the screen, click on the button <Super>l, uncheck the Enabled check-box click on ok.


Why is the login section of "passwords and keys" empty

The keyring files are no longer stored in the ~/.gnome2/keyrings folder. They are now stored under $XDG_DATA_HOME in a combination of the keyrings and keystore directories.

However, WiFi network passphrases are a special case. As NetworkManager now has support for global vs. per-user network settings, your WiFi passphrase is likely stored in /etc/NetworkManager/system-connections/ in a file named the same as the WiFi network.

If the only password you've entered into the system is the WiFi passphrase, when you were logged in, and don't have any SSH passphrases or other passwords stored in the keyring, then the keyring will most likely be empty. Deleting the files won't change that.


Is there a way to upgrade Ubuntu 16.04 to 16.10 in parts?

I don't think what you're asking is possible. However, rather than trying to upgrade online, you might be better off downloading the .iso for 16.10, burning it to disc or writing to USB, and then upgrading from local media instead. If you're pulling the torrent or using a download manager that is capable of resuming dropped connections, it might take a while, but the update process itself will not be affected by your Internet connection. Just be sure to verify the checksum when your download is complete.


I would highly recommend that you install packages that were meant for 12.04 and not ones from 10.04.

As it is, all of the packages that Edubuntu uses are in the official Ubuntu repos. You can install these packages with one of the following commands:

sudo apt-get install ubuntu-edu-preschool
sudo apt-get install ubuntu-edu-primary (Ages 6-12)
sudo apt-get install ubuntu-edu-secondary (Ages 13-18)
sudo apt-get install ubuntu-edu-tertiary (University level)
sudo apt-get install edubuntu-desktop (for all applications)

See here for more info.


Open GUI apps on a Ubuntu 16.04 machine via SSH from an Ubuntu 14.04 machine

I had the same problem. I ran strace with meld and gedit and it indicated that for some reason there was problem finding libGLX_indirect.so.0 library. I attempted a fix by placing relevant symbolic link inside /usr/lib/x86_64-linux-gnu folder:

sudo ln -s /usr/lib/nvidia-361/libGLX_indirect.so.0

and it works now. Would like to know what is the preferred way of fixing it.


How to get the sc-controller to function on 20.04

Sourced from Best way to access dev uinput on snapcraft.io forum. Thanks to jdstrand and mcphail sc-controller's developer. sc-controller is currently being updated to python3 but until that effort is complete using the snap is a reasonable method to package the 0.4.7 version for 20.04.

Sc-controller needs pretty deep access to devices to function in strict confinement. The following changes to your system posses some risk of allowing a rouge snap to inject keystrokes and mouse events proceed at your own risk.

Add the line /dev/uinput rw, to snap.sc-controller.sc-controller. I added it at line 30, placement and two space indentation seems to matter.

sudo nano /var/lib/snapd/apparmor/profiles/snap.sc-controller.sc-controller

Load the updated apparmor rules into the kernel:

sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.sc-controller.sc-controller

If you don’t have /etc/udev/rules.d/70-snap.sc-controller.rules on your system, you can test your snap now. If you do, add to it:

# test
KERNEL=="uinput", TAG+="snap_sc-controller"

To apply the rules

Run:

sudo udevadm trigger --subsystem-match=misc # make the rules apply
#snap run --shell yoursnap.cmd  # launch a shell under yoursnap.cmd

In a terminal separate from the snap shell run udevadm and check the TAGS line. it should now include snap_sc-controller

udevadm info /dev/uinput
...
E: TAGS=:snap_sc-controller:uaccess:seat:

Rebooting may be necessary to fully implement the changes, and allow the sc-controller snap to function correctly.


You're confused. The .sh extension is only a hint to humans, and has absolutely NO effect on how the system handles the file. Unix/Linux did not make the Windows' Secrets.pdf.exe blunder.

Here is what happens when you type foo:

Redirection for STDIN, STDOUT and STDERR are set up.
The shell checks its internal hash table to see if it already knows a $PATH entry for foo. If none exists, the shell searches the directories in $PATH, looking for a file called foo that has the Execute bit set in it's file permissions. First foo wins.
If the first two bytes of the file foo are #!, the next string is the name of an interpreter to run. Thus #!/bin/bash introduces a Bash script, #!/usr/bin/perl introduces a Perl script, etc.
If the file starts with \177ELF, it's a binary executable, and ld.so starts it.

Read man execve and man ld.so for a more detailed explanation.


Wifi won't enter working net after hard reboot

Some troubleshooting steps :

Open a terminal and run tail -f /var/log/kern.log, then try connecting to your terminal.  On a successful authentication, you should see something like this :

Feb 12 21:45:37 GroovyTosh kernel: [19329.560236] cfg80211: All devices are disconnected, going to restore regulatory settings
Feb 12 21:45:37 GroovyTosh kernel: [19329.560242] cfg80211: Restoring regulatory settings
Feb 12 21:45:37 GroovyTosh kernel: [19329.560245] cfg80211: Calling CRDA to update world regulatory domain
Feb 12 21:45:37 GroovyTosh kernel: [19329.583441] cfg80211: World regulatory domain updated:
Feb 12 21:45:37 GroovyTosh kernel: [19329.583446]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Feb 12 21:45:37 GroovyTosh kernel: [19329.583449]     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Feb 12 21:45:37 GroovyTosh kernel: [19329.583452]     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Feb 12 21:45:37 GroovyTosh kernel: [19329.583454]     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Feb 12 21:45:37 GroovyTosh kernel: [19329.583457]     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Feb 12 21:45:37 GroovyTosh kernel: [19329.583459]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Feb 12 21:45:38 GroovyTosh kernel: [19330.677366] wlan0: authenticate with <removed MAC> (try 1)
Feb 12 21:45:38 GroovyTosh kernel: [19330.678697] wlan0: authenticated
Feb 12 21:45:38 GroovyTosh kernel: [19330.678727] wlan0: associate with <removed MAC> (try 1)
Feb 12 21:45:38 GroovyTosh kernel: [19330.680336] wlan0: RX AssocResp from <removed MAC> (capab=0x431 status=0 aid=1)
Feb 12 21:45:38 GroovyTosh kernel: [19330.680339] wlan0: associated

So at least you'll see if you're failing to authenticate (check your WEP/WPA key), or associate (a problem with the router, perhaps).

It might also be worth monitoring the syslog directly, in case this is DHCP related, for example.  Just use tail -f /var/log/syslog, perhaps in a second terminal (although much of what is written in kern.log is written to syslog to be honest).


disco upgrade sound mutes after login, vlc doesn't close properly

Well, I can see a few debugging options here. At first, can you run vlc from the command line (from a terminal in graphical mode)? It will allow you to see the output and you might find what the problem is directly from there.

At second, can you run alsamixer and check if something is not right there? E.g., if the sound is getting muted, you should be able to see it in alsamixer.

Based on your findings, we can try planning further troubleshooting steps.


How can I disable Wi-Fi on router from terminal?

This will take some work.

General steps to accomplish this:

Turn on tcpdump on your computer. Have it listen for the traffic between the computer and the router on port 80.
In your browser, turn on the Wi-Fi on the router, or turn it off.
Carefully study the traffic as dumped by tcpdump. You want to look for URLs retrieved by GET and POST commands, as well as cookies, etc.
Recreate the traffic using curl commands. You can do practically anything with curl.

Put the curl commands in a script. You may need to store the output of one curl command in a file, then do some sed, awk and grep magic to construct the next curl command.


With the help of this solution, I realized it is just a matter of some basic math and xrandr commands which I will outline as simply as I can here:

Run xrandr to determine the names of your display outputs. In my case, I have:

eDP-1 (Internal)
DP-2-2 (External, Dell 1920x1080)
DP-2-1 (External, Eizo 1280x1024, rotated to the right)

Calculate the full size of your framebuffer --fb, in my case, I want to use only my external displays:

First clear/rest xrandr settings

xrandr -s 0

Then turn off the laptop display

xrandr --output eDP-1 --off

Then position the primary display to 0x0, set as --primary and set panning to its own resolution:

xrandr --output DP-2-1 --auto --scale 1x1 --pos 0x0 --primary --panning 1920x1080

Then position the second screen to the right at 1920x0, set the framebuffer and rotate it accordingly:

xrandr --output DP-2-2 --auto --scale 1x1 --pos 1920x0 --fb 2944x1280 --right-of DP-2-1 --rotate left

Popping these lines into a script I run after docking helps set everything up, and it resets back to the internal LCD when I remove it.


Is it possible to log into a remote LAN user using the ssh client without using his password?

Yes, you can log in to a workstation using root over ssh if this is not deactivated (via /etc/ssh/sshd_config). To allow root login you must add PermitRootLogin yes to the file. If it is set to PermitRootLogin no then a remote login as root is not possible.

I would also suggest to use PubkeyAuthentication yes for remote maintenance.


I was able to go past this by:

create a VM without any USB HW.
select install OS later.
add path to .iso in CD/DVD section. (this will start install soon after launch).

this will load the .iso image, you will be able 'start' the installation manually.

enjoy !!!


Missing swap that is referenced in /etc/fstab will slow your boot down.
Either remove the line for the swap in /etc/fstab, or create swap and update the swap line in /etc/fstab.

take a look at:

How do I add a swap partition after system installation?


Please run the following to fix that issue:

sudo apt update
sudo apt install -f
sudo apt upgrade


Uninstalled Compiz and OpenGL - Ubuntu won't load

Try running the updatedb command as root first the perform the locate on the wpa_passphrase again

:~$ sudo updatedb

:~$ locate wpa_passphrase

if you still have the wpa_passphrase, try running the iwconfig command and see if your connected to a network.

:~$ iwconfig

the output should be something like this:

wlan0     IEEE 802.11bgn  ESSID:"Your-Routers-name"
      Mode:Managed  Frequency:2.462 GHz  Access Point: 84:24:8D:4E:75:00
      Bit Rate=57.8 Mb/s   Tx-Power=16 dBm
      Retry  long limit:7   RTS thr:off   Fragment thr:off
      Power Management:off
      Link Quality=53/70  Signal level=-57 dBm
      Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
      Tx excessive retries:9  Invalid misc:15   Missed beacon:0

if your ESSID declares your routers name and you have a legitimate bit rate then run the following commands:

:~$ sudo apt-get update && sudo apt-get -f install -y && sudo apt-get upgrade -y &&  sudo apt-get -f install -y

and post the last 5 or 10 lines from the execution of the commands before control is returned back to prompt, like run the commands and what does it say at the bottom of the output. If it says

dpkg error sub-process [1]

than you have broken packages and I tell you how to track them, and remove them.


How can I request that a font be added to the official repositories?

You'll almost certainly want to get this font into Debian first.  By doing so, you'll save resources on the packaging maintenance, since it nearly always will flow into Ubuntu automatically through Debian.


Cannot play youtube videos on Ubuntu 14.04.1

Although similar, the pepper flash that comes with chrome is different than the one that is installed from the repos (adobe-flashplugin, or sth like that).

I know there is a way to tell firefox to use chrome's but I've never looked into that so not sure if that is your case.

Sadly when it comes to flash I think other than checking you are in the latest version there isn't much you can do. In this situation it sounds like the problem is only present for flash items on the browser.

With more info then more people can jump in.


English version of Ubuntu with Italian keyboard

While installing
In case you had selected "install Ubuntu" from the menu when booting, or after choosing to install Ubuntu from a live session you will have a choice to select your keyboard layout from below menu:

On a live session
A live session loads an English keyboard layout by default. This can be changed by clicking on the En icon in the top panel to select Text Entry setting.... On the next window click on the small + icon on the bottom left. Then the following box will open:

Choose your keyboard layout to add it to the list. To remove a layout press the - icon after selecting.
We can then choose from all layouts we had installed:


I know this is not the GUI method but openvpn couldn't be any more simple or elementary as far as the commandline goes and really does not need a GUI. The command to start an openvpn session is as follows:

sudo openvpn --config

and then drag and drop the ".ovpn" file into the terminal to complete the command so it should look something like this example:

sudo openvpn --config '/home/jglerner/Desktop/vpnbook-us1-tcp443.ovpn'

press enter, enter your password for sudo, enter your vpn username, then your vpn password and you're good to go.

Users can minimize the open terminal if they don't want to look at it while it's running. Plus, it might give your "non linux pals" a bit of commandline confidence when they see how easy something like this can be.

Example .ovpn file used in this example can be downloaded from here http://www.vpnbook.com/ if you want to check it out and see how it works. Just download the certificate bundle and extract the zip file. There are two TCP and two UDP servers to choose from. The username is "freevpnme" and the password is listed on the download page, however, the password changes day to day to prevent abuse and spam but the cert. files stay the same.


You can use other PPA - Ubuntu Cinnamon Remix PPA and install Xed from it
sudo add-apt-repository ppa:ubuntucinnamonremix/all
sudo apt-get update
sudo apt-get install xed


I'm not sure what you mean by "wouldn't register the disc" but to boot an older iBook / PowerBook from the optical drive, just hold down the C button as soon as you power on.

Another option is to boot into OpenFirmware.  This can be done by holding down Cmd-Option-O-F as you power on.  Once OpenFirmware has started (a white screen with a short message and a simpole prompt) enter the command: boot cd

I hope this helps.  I'm going from memory.

Edit for Addition:

Also, just a warning: Years ago when I used Linux on a MacBook there was no Linux driver available for the Broadcom wifi chipset that Apple used in their laptops. At the time, the only option was to use a usb attached wifi device. This may no longer be an issue.


how can I erase a folder or a file from the u1 cloud

The Ubuntu One files app on the phone is not a synchronization client. It simply allows you to download some files that you have in Ubuntu One.

You can delete the files from your Ubuntu computer, or on the Ubuntu One web site, and the changes will be synchronized to all the computers you have connected to Ubuntu One. Note that on the computers where you did not perform the delete from, the files will simply be moved to trash. And you will have to manually delete any files you downloaded to your phone which were in Ubuntu One that you don't wish to keep around.


Moved a VM and unable to get network enabled *-network DISABLED

Sorry disregard, I figured it out. I had to edit the vim /etc/network/interfaces

Had to change the adapter from the old ens160 to ens35 and reboot the machine. back online!


Installing newest PPA driver for Nvidia (410) leads to black screen

Here is the most reliable procedure I found to install NVidia drivers on Ubuntu 18.04.

Download the latest here: https://www.nvidia.com/object/unix.html
Set the driver file to be executable.
Switch to terminal: ctrl+alt+F3
kill GDM:  sudo service gdm3 stop OR sudo service gdm stop
run the installer: sudo ./Nvidia….bin
ignore the fail in the pre-check.
ignore the updated libsvm (spelling error) library
If you are running the 64 bit OS, ignore 32 bit library fail
update GDM configuration automatically.

Restart your computer and enjoy. Unfortunately, it seems that this procedures has to be periodically repeated with Ubuntu updates.


To reference an environment variable, you'd need to preface it with $ : $AVARIABLE


Error loading player. No player source found. Ubuntu 18.04 with Firefox

The RT site does not need Adobe Flash Player, the use JW Player on pure JavaScript.

On my 18.04 LTS the Adobe Flash Player test page reports that I do not have Flash installed, but video is played.

Consider to try from Firefox with safe mode:

firefox -safe-mode

and if video is played normally, then your Firefox extensions/addons may be the problem.
And you will need to disable some of them (for example ad blocker or something javascript-related).

If issue persists, then you can try other browser such as Chromium (install it with sudo apt-get install chromium-browser) and try from it.


Your 10.10 CD is a coaster now. Don't try to install from it. I mean it. Frame it or throw it into the sea and don't look back. Cool people don't look back.

Firstly, try a torrent. Even on a weak internet connection you can usually get something downloaded and verified. This is because a torrent is chunked up into tiny bits and each bit needs to be verified before it's happy.

Then, if you're still desperate, get ready to pay for a CD. There are dozens of companies selling CD and USB versions of Linux. These are all under open licenses so you can copy them in most cases. Which one for you? Who knows. Google buy linux cd and see what looks good.

If you've got more patience, talk to your Sri Lankan Team Loco. They're there to help Sri Lankan Ubuntu users out. I'd be shocked if somebody there couldn't send you a CD for the price of the media and postage (or less).

Failing that, you're in the position where you need to beg people. Or train pigeons to steal other people's CDs and fly them back to you... But I think the other options are fundamentally better.


Ethernet conection not working Atheros AR8152 OS 12.04

I had exactly this problem, no networks detected at all with my Asus eee pc. After a very frustrating day trying everything I did the below and my netbook immediately found my wireless network:

sudo apt-get update
sudo apt-get install build-essential
cd ~/Downloads # [or wherever you download it to]
tar-xjvf compat-wireless-2012-04-26.tar.bz2
cd compat-wireless*
scripts/driver-select ath9k
make
sudo make install

the atl1c did not work for me, ath9k did.

Many thanks


How do I backup all files? (.dbus and dconf backup problems)

You can make two sets of backup.

Frequent backup of files

Frequent backup of files, which is not complete (you can make it even less complete, if you wish).

This is the backup that you run now, maybe you will modify it.

Some files are used by the operating system, and will be modified during the backup, which will make the backup inconsistent - The backup will not match itself and not the system right after the backup. (There are methods to avoid this, for example to use other file systems than Ubuntu's standard ext4.)

But the important files, your personal files and system tweaks can be backed up in this frequent backup.

Complete backup of the whole drive

A complete backup of the whole drive, which is less frequent, maybe 4 times per year or before and after major modifications of the operating system.

This backup should be run when booted from another drive, for example a USB pendrive or CD disk with Clonezilla live.

You can make a Clonezilla image, which is a directory with several files, where the big files are compressed. The image is 'complete', it can be restored to a new drive with at least the same size as the original drive, and the image can be stored in an external drive or in another computer via the network (ssh).


My fan is not working, no active cooling system

Try installing the latest microcode for your processor. According to some linux gurus  you may be able to improve the functioning of the central processor (CPU) in your computer by applying the latest Intel or AMD microcode. This will improve the functioning of your CPU, because it corrects bugs in the default microcode that it receives from the motherboard.

Visit this page to learn how to install the microcode package for your CPU. Basically, you have to open Synaptic, and search for intel-microcode and microcode.ctl packages. I hope I am not wrong, and your CPU is from Intel. Amd CPUs can also benefit from this microcode package but it has a different name, amd64-microcode.

Maybe after you install intel microcode, and restart you computer your fan will come to live again.


where can I find binaries of xscreensavers for ubuntu 12.04 LTS

It is avaialble ubuntu software center.
You can click → xscreensaver
to get the app
or in command prompt sudo apt-get install xscreensaver


The reason is iPod touch doesn't support USB mass-storage, you can find some answers here:

Ipod Touch not mounted


Cannot install Ubuntu on an HP Pavilion ze1202 with 256MB RAM

I would recommend using the alternate installer. You can download the alternate install cd from here:

http://releases.ubuntu.com/

The installer will be text based and should run fine on a computer with those resources. Since you have such little ram, I would also recommend using a flavor such as lubuntu or xubuntu instead of ubuntu itself. Using a lighter weight distro will work better for your limited hardware.

Reference this wiki page for even more options:

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


I found a temporary solution for this problem, after searching on the net, it's mentioned that PulseAudio Volume Control can boost the audio volume (it's different from Volume Control built-in apps in Ubuntu), install it and you can boost your audio volume above 100%. But what I'd like to know is there a solution for SMPlayer, it seems only audio in SMPlayer is low, other audio seems fine.

Thanks


How do I covert videos for a Nokia mobile using Arista transcoder?

In the software center run a search for "arista" which will result in an item like the one shown in the next screenshot:

Simply click in the button that reads "Install" (in my case is already installed, that's why my button reads "Remove").

Good luck!


Can i get my Ubuntu updated from 18.04 to latest version? If so, How can I do that?

There are two "types" of Ubuntu releases: "Normal" releases are supported for six months after release. Those are released every six months. So basically, the support for one version ends when the next is released.

Then there are the "long term support" releases. That's what the "LTS" in "Ubuntu 18.04 LTS" means. LTS versions are supported for five years (and you can buy even longer support). Every two years, there's a LTS release instead of a "normal" one. The current LTS is 18.04, released in April 2018. The LTS before that was 16.04, released in April 2016, and so on. The next LTS version will be 20.04 and will be released in April 2020.

You can update from a "normal" release to an LTS release and vice versa. So you could, for example, update from Ubuntu 17.10 ("normal" release from October 2017) to 18.04 LTS, and from that to 18.10 ("normal" release from October 2018). But if you don't want to upgrade every six months, it can be a good idea to go from a LTS version to the next, skipping the "normal" versions inbetween.

The current "normal" version is 19.04 from April 2019. 19.10 will be released some time later this month. The current LTS version is, as mentioned above, 18.04, and the next will be 20.04.

You can decide whether Ubuntu should offer you to update to any new release, including "normal" releases, or whether it should offer you LTS versions only. You can change that setting in the software center.


Evolution has microsoft exchange support you just need to know the OWA address to configure evolution. to install evolution open a terminal ctrl alt t then sudo apt-get install evolution.


Trackpoint and touchpad Lenovo L460 Thinkpad (15.10)

Modifying the file /etc/default/grub and inserting i8042.reset in the quote on the line starting with GRUB_CMDLINE_LINUX_DEFAULT. Then save your modification and start sudo update-grub. It should work.


Changing my apt sources to https instead of http solved the problem.

My best guess is that the proxy is configured to act differently over https than over http and it did not attempt to inject a redirect into the https response.

Note that to use https over apt you must have the apt-transport-https package installed.


Which dual-head video card(s) are guaranteed to work in twin view on 10.04 or 11.04 with minimal tinkering?

@Tass, buy a new computer. Or find another employer. ;-)


How can I update GNOME Shell extensions from the command line?

The comments on this omgubuntu.co.uk article list two possible ways:

The GNOME Shell Extension Installer · Github, a bash script to install and search extensions from extensions.gnome.org.
Install it with

wget -O gnome-shell-extension-installer "https://github.com/brunelli/gnome-shell-extension-installer/raw/master/gnome-shell-extension-installer"
chmod +x gnome-shell-extension-installer
sudo mv gnome-shell-extension-installer /usr/bin/

Update the extensions 23 and 42 for GNOME Shell 3.18.4 with

ids=( 23 42 )
gnome=3.18.4
gnome-shell-extension-installer ${ids[@]} $gnome --yes --update --restart-shell

Update all extensions with

gnome-shell-extension-installer --yes --update --restart-shell

I couldn’t test it, but I’m pretty sure it’s scriptable.
If you installed your extensions by cloning their git repos to /path/ you can just git pull the repos one after one:

for i in /path/*; do
  git -C"$i" pull
done

After that you need to reload GNOME Shell with either Alt+F2 and r or the command gnome-shell -r.


Their is no need to take backup in another disk.

I your case you have allocated a partition home. If you only erase and install existing Ubuntu (root partition) home will be untouched. so if you copy the files in home it will be safe.

Just select erase and install Ubuntu over existing Ubuntu.

After re installation, you can mount existing home partition as in the below article.

https://help.ubuntu.com/community/Partitioning/Home/Moving

For this you have should have same username.


Ubuntu Postgresql-9.3 Replication Database how to re-sync data in master

Sorry I cannot comment yet - we run replication on 9.3 on several instances without any problems. And if there are some interruptions replica resynchronizes itself - presuming "archive_mod" on master is ON - https://wiki.postgresql.org/wiki/Binary_Replication_Tutorial#Setting_Up_Archiving_On_The_Master

What "crashes" you have? Can you post error messages?


"So, what should I do to raise all the windows?"

Presumably you mean all the conky windows?

Since wmctrl is not doing what you want by specifying the window name, you should use the more exact method of speciying the window id.

To get the list of window ids one does

wmctrl -l

So assuming your windows have superconky in the title, to extract just the window ids from that list

windowid_list="`wmctrl -l | sed -ne 's|^\([^ ]*\).*superconky.*|\1|p'`"

Then process the list

if [ -n "${windowid_list}" ]
then
     for windowid in ${windowid_list}
     do
         wmctrl -i -a "${windowid}"
     done
fi

Take note that the "-i" flag to denote a numeric windowid must be specified before the action flag ("-a", "-R", or whatever) or nothing happens.

Also take note that "-a" raises and focuses the window and that only one window can be focused at a time.

Also, if the second superconky window is directly underneath the first one, when the second one is raised, it will obscure the first.


apt says there are no new upgrades to firefox 27

There are two posibilities:

Brazil mirror is way behind

I can assure is not:

➜  ~  apt-cache policy firefox
firefox:
  Installed: (none)
  Candidate: 31.0+build1-0ubuntu0.12.04.1
  Version table:
     31.0+build1-0ubuntu0.12.04.1 0
        500 http://br.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages

There's a proxy that isn't working properly.

In the second case, you may have to ask the network administrator to fix it, bypass the proxy (using https or disabling it totally), or changing to other mirror removing the br part of your mirror list.


source command not working in Bash on Ubuntu 17.10

I found the solution

#!/bin/bash

APP=personalBlog

USER=root

. /opt/venv/personal/bin/activate

cd /opt/venv/personal/bin

uwsgi --ini /opt/src/personalblog/conf/uwsgi.ini


How can I run code whenever a USB device is (un)plugged, without requiring root permissions?

The "How can I listen for 'usb device inserted' events in Linux, in Python?" question has a very short sample Python script using pyudev. That script can easily detect when a device is connected or disconnected, by monitoring the device-event from the usb subsystem.

What's more, pyudev is pure-python implementation and is available on both Python 2 and Python 3.

Based on that sample code, I've written auto_exec_xinput_xset_upon_usb_device_change.py (see also the most recent version). Works on both Python 2 and Python 3.

#!/usr/bin/env python

import functools
import os.path
import pyudev
import subprocess

def main():
    BASE_PATH = os.path.abspath(os.path.dirname(__file__))
    path = functools.partial(os.path.join, BASE_PATH)
    call = lambda x, *args: subprocess.call([path(x)] + list(args))

    context = pyudev.Context()
    monitor = pyudev.Monitor.from_netlink(context)
    monitor.filter_by(subsystem='usb')  # Remove this line to listen for all devices.
    monitor.start()

    for device in iter(monitor.poll, None):
        # I can add more logic here, to run only certain kinds of devices are plugged.
        call('foobar.sh')

if __name__ == '__main__':
    main()


Any way to make notifications dark theme?

Yes, there is, but not using the default dark theme, Yaru-dark.
The problem is that Yaru does not have a dark theme for the shell (see this thread).

You can do the following:

Install the User Themes extension.
Install Tweaks: sudo apt install gnome-tweak-tool.
Install a theme that has a dark shell theme. One option is Arc, from the repositories: sudo apt install arc-theme, though it doesn't quite fit Yaru.
Open Tweaks, move to Extensions and activate User Themes. Then go to Appearance, and under Shell pick Arc-Dark.

Your shell is now themed dark. I would love better suggestions than Arc-Dark.


Can I remove 'dash home' from the Unity launcher?

I don't think that this is currently possible. See this answer by Mark Shuttleworth:

  In the desktop interface, the Dash icon and the Trash icon use the top and bottom slots of the launcher, always.


It's because there is no separate Swiss German translation in Ubuntu, so I'm afraid there is not much I can do to help.


18.04 can't boot using Xorg, only Wayland

You can try to inspect /var/log/Xorg.0.log.

I also had this issue. In my case, the reason was a corrupt file /etc/X11/xorg.conf.d/50-synaptics.conf which had the following line:

Example # xorg.conf.d que snippet assigns the touchpad driver

which was supposed to be:

 # Example xorg.conf...


You need to extract the downloaded file with the command:

  tar zxvf ndiswrapper-1.59.tar.gz

This will create ndiswrapper-1.59 directory. Change to that
directory and run

  make uninstall
  make
  sudo make install

There are more instructions in the INSTALL file inside the ndiswrapper-1.59 directory. You must read them to understand how to use this tool.

Also, I guess there is ndiswrapper package in Ubuntu repo which you can install using:

  sudo apt-get install ndiswrapper-common


How to play RealMedia videos embedded within Firefox?

Install Xine and Xine plugin. This plug-in can play real videos.


I had the same problem after upgrading. I went to System Settings\Screen Display and found that the upgrade process had dug up some old dual monitor config from ages ago and enabled a monitor that was no longer connected. Once I disabled that the apps appeared on my actual monitor.


Q: Zyn-fusion doesn't launch, complaining about "/usr/lib/zynaddsubfx/./qml/MainWindow.qml" being missing

I had the same problem, I 'solved' it by starting anew with this build :

https://github.com/zynaddsubfx/zyn-fusion-build/wiki/Building-on-Linux

Then in order to get ardour to know about it (because it did not) I noticed it was checking /opt/ardour/lib/LV2 for the plugins. As the folder did not even exist I created a symbolic link :

/opt/ardour/lib/LV2 -> /usr/lib/lv2

And it works just fine.

regards,
MartinMMK


In Ubuntu 20.04, I cannot get the displayed time on top bar to show day, date and time including seconds

The solutions you have tried are applicable for the standard GNOME 3 session, whereas from the outputs of the echo $XDG_CURRENT_DESKTOP and echo $XDG_SESSION_DESKTOP it is clear that you're in a GNOME Flashback session. So solutions are not applicable.
To switch back to a standard GNOME 3, reboot your computer. Then at the GDM login screen, you should find a cogwheel (⚙) at the bottom right corner. If you click on the cogwheel you should find an 'Ubuntu' (and 'Ubuntu on Wayland') option. select it and then log in.


Adding this repository with

sudo add-apt-repository ppa:whatsapp-purple

Then updating the list with

sudo apt-get update

reveals that there is no whatsapp-purple in that repository. Only available repository was pidgin-whatsapp. You can Install it with

sudo apt-get install pidgin-whatsapp


You'll most likely need to use the proprietary Nvidia driver for SuperTuxKart to run properly. You may get it to start with the nouveau driver, but it will most certainly not function well.


how to use sed to replace from last 3 characters from string

you can use:

's/.db$//'

alternatively you can use:

's/...$//'

to remove the last 3 characters and

's/\.[^\.]*$//'

to remove the everything after the last dot


You should have used testdisk to restore your old partition, but since it looks like it's already been reformatted, that idea goes out the window.

This probably has to do with the fact that Windows is being installed on an extended partition. By default it'd be in a primary partition. What you could try doing is deleting the partition called /dev/sdb7 and resize "extended" to just fit just the Linux partitions. That should leave you with

/dev/sda1 = ntfs
Freespace
/dev/sda2 = extended
/dev/sda5 = linux-swap
/dev/sda6 = ext4

Then try installing Windows again using the free space as its partition.

If that doesn't work, do this:

Delete all partitions (either from Windows partitioner or Gparted from LiveCD).
Install Windows 7 like usual, but leave some space for Ubuntu.
Install Ubuntu from a LiveCD or LiveUSB.

This is kind of a last-resort type answer, but I think it'll save you a lot of headache if you do so.

Since it seems like your computer is pretty fresh (not a lot of backups needed, if any) I'd do this. If you do have anything you'd like to backup, be sure you do so before doing this.


Well, I have observed this issue far too many times.  I thought it was my old keyboard, but with the new one: the same problem.

I work this around by pressing the numlock key so that the numeric pad doesn't type numbers (the light should be off, because it is reversed, as you said), then I just unplug and plug my keyboard: it is back in sync.

I am still not sure on when does this happens, but I believe it occurs when system is idle for a long time period.


Problem mounting external USB drive in Ubuntu 12.04

Try to add "user" to the mount options

/dev/sdb1 /media/FREECOM\040HDD vfat rw,user,nosuid,nodev,uhelper=udisks,utf8=1,flush 0 0


What are steps to set up Oracle Java EE 6 SDK in Ubuntu?

Before installing make sure that you have Java 6 or newer installed, and accessible.

Download Java EE 6 SDK from Oracle.  Make sure to accept the license agreement.  Then, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo -i
echo "export JAVA_HOME=/usr/lib/jvm/jdk1.7.0/bin/java" >> /etc/bash.bashrc
echo "export PATH=$PATH:/usr/lib/jvm/jdk1.7.0/bin" >> /etc/bash.bashrc

Then execute the script:

sh java_ee_sdk-6u4-unix.sh


How to start a Zookeeper daemon after booting under specific user in Ubuntu server 16.04

Create a .service file in /etc/systemd/system/zoo.service and add the following lines:

[Unit]
Description=Zookeeper Daemon
Wants=syslog.target

[Service]
Type=forking
WorkingDirectory=/path/to/dir/of/interest
User=zookeeper
ExecStart=/home/zookeeper_home/bin/zkServer.sh
TimeoutSec=30
Restart=on-failure

[Install]
WantedBy=multi-user.target

Now setup the service:

sudo systemctl start zoo
sudo systemctl enable zoo

Check status:

sudo systemctl status zoo

Please read for further details creating daemons:

https://www.freedesktop.org/software/systemd/man/systemd.unit.html


I've cleaned up your eclipse.ini. It is tested it with Eclipse 4.2 Juno. Please report if it works with your scala plugin:

--startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130807-1835
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.appendVmargs
-vmargs
-XX:PermSize=64m
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xss1M
-server
-XX:+DoEscapeAnalysis
-XX:+UseConcMarkSweepGC
-XX:+UseCompressedOops
-Dosgi.requiredJavaVersion=1.6

For future reference: Be careful adding options to you eclipse.ini. Take special care about what goes before -vmargs and what after it.

Also, no option should be set twice.


Ubuntu - any good method to know which package contains the specified app?

sudo apt-get install apt-file
sudo apt-file search <filename>

What version of ubuntu are you using? If the kernel supports ext4, mount should!

Make sure you're using the correct syntax

mount -t ext4 /dev/sdax /dir

if its a currently installed package (which mount is), you can also do

dpkg -S /bin/mount


Turns out this is indeed a Bitcoin Mining Trojan.
Everytime I delete the command it comes back after a few minutes.
I did some googling for this and found a partial solution.
Basically there is a cron job in the couchdb user profile
First stop couchdb

sudo service couchdb stop

Run the following commands to find that crontab and remove the line there.
    sudo -i
    su couchdb
    crontab -e

Remove the files in /var/tmp and also in /tmp as there are some files in there that are also owned by couchdb.

After that I need to upgrade my couchdb installation.


With my basic understanding of German and Google translate, I come to the following conclusion: yes, this keyboard will function basically if not completely with LMMS.

On the site, you can see that the keyboard contains its own USB-MIDI interface, and assuming you're using ALSA, you'll be able to plug-and-play out of the box forwarding notes to and from the keyboard.

Bonus functions like the tap tempo buttons may not function at first, but assuming it's a standard, it shouldn't take much Googling to make it work like it should under Ubuntu or other Linux Distro.

The software provided of course likely will not work, but should be emulate-able using WINE.

Yes, this keyboard will work with LMMS.


Remove facebook webapp integration in Quantal

You can remove all web app icons from the Dash by disabling the Firefox addons: "Unity Websites integration" (accessed from Firefox->tools-addons). You may need to restart Firefox and  log out and log back in to Ubuntu for the changes to take effect.


mouse and keyboard stopped working after installing xserver-xorg-video-intel

In order to recover from this situation, I followed these steps : ( in case someone is stuck in the same situation )

1- reboot and hit escape during boot time , in order to get the grub menu.

2- choose the ( recovery ) option in order to boot in safe  mode.

3- while booting , the recovery menu show up. Choose the option "failsafeX".

4- a new window will show up asking what do you want to do: use the mouse to select the option "Exit to console login" then resume the boot till the login prompt appears.

5- uninstall the following package : xserver-xorg-video-intel

    sudo apt-get remove xserver-xorg-video-intel

6- install back the following packages : ubuntu-desktop, xserver-xorg

    sudo apt-get install ubuntu-desktop xserver-xorg

7- for some reason, on my home directory, ~/.Xauthority changed the ownership to root:root which was not expected. Due to this permission change, I was not able to login after rebooting, but the mouse and the keyboard were back. To fix this issue, make sure that ~/.Xauthority is owned by you.

    sudo chown : ~/.Xauthority

8- reboot

Hope that helps !


You should first verify your boot bios settings to be sure you can boot from your CD Drive.

If the problem persists, try to launch from another CD in your drive to check your hardware integrity.

Otherwise, you can also install Ubuntu with Flash USB drive. You can find a tutorial at this link: Create Bootable USB for Ubuntu from Windows


Installed xubuntu-desktop on Lubuntu - cannot login to xubuntu/xfce session

This seems to work for me..

sudo chown username:username .Xauthority
sudo chmod a+wt /tmp


lspci shows soundcard, but nothing else does

I found that trying to run aplay -l (as suggested in other places) returns the following message: aplay: device_list:268: no soundcards found...

A Google search for that text found this answer which solved my problem.

sudo modprobe snd-hda-intel


Cut-Paste or Copy-Paste not working on Ubuntu 20.04 on using right-click context menu

There are fundamental bugs in ubuntu 20.04 that have not been fixed.  This is such a basic problem I can't believe it is being treated as a 'medium' severity error.
In https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1852183 they claimed to have fixed it, but they haven't - it has just changed a bit. See https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1879968
In 20.10 with all updates it's been fixed for some weeks now.


Dual Boot - Boot Black Screen From an 'update' from Kubuntu 14.04 to Kubuntu 16.04

Do you have your home folder encrypted?

I used to have an issue with black screen, but that was because I couldn't see letters asking me the password to decrypt my harddisk... Because the screen was blacked out.

I got past this by just entering my password and pressing return.

Afterwards, you can fix this by setting nouveau.modeset=0 in grub and installing the proper, proprietary Nvidia driver.


What command can I use to minimize the current terminal window?

About xdotool

  xdotool lets you programatically (or manually) simulate keyboard input
         and mouse activity, move and resize windows, etc. It does this using
         X11's XTEST extension and other Xlib functions.

How to minimize active terminal window using xdotool

You can minimize the current active terminal window like that

xdotool windowminimize $(xdotool getactivewindow)

Be aware: This is not specific to gnome-terminal


How to run gnome-terminal -e "source activate" without permission denied error?

That's because the . (source) is a shell-builtin i.e. shell-specific command, not an external one. You need to run it inside shell; Without the shell, gnome-terminal is trying to execute a literal . command with /path/to/virtualenv/bin/activate as its argument, leading to permission denier error.

You need to spawn an interactive shell to do the sourcing and spawn another interactive shell afterwards:

gnome-terminal -e 'bash -ic ". /path/to/virtualenv/bin/activate && bash"'

As you trying to initiate a virtual environment, you might want to set the --rcfile option instead, cleaner approach but the obvious caveat is that the common session startup files /etc/bash.bashrc and ~/.bashrc are not read:

gnome-terminal -e 'bash --rcfile /path/to/virtualenv/bin/activate'


14.04 provides libtiff5 but not libtiff4 (up to saucy 13.10).

To install the 13.10 version, go to the amd64 download page on launchpad and select libtiff4_3.9.7-2ubuntu1_amd64.deb.

Now open a Terminal with Ctrl+Alt+t and type in the folder where you downloaded the deb file:

sudo dpkg -i ./libtiff4_3.9.7-2ubuntu1_amd64.deb

Reinstalling the old lib should solve your problem.


Boot Repair could not finish it's work. You will need to email the link to the developers who can advise how to make it finish. Your Boot Repair link shows:

1198  An error occurred during the repair.

Here is the contact information for Boot Repair. You will need to email them your boot repair links.


How to get Openbox as kde's window manager

Testing

Installing the openbox.

Making a new user.

Log in as the new user.

The KDE Menu is empty.

Trying to fix

Running the kbuildsycoca4 to rebuild the system configuration cache.

:~$ kbuildsycoca4 --help
Usage: kbuildsycoca4 [Qt-options] [KDE-options] [options]

Rebuilds the system configuration cache.

Generic options:
  --help                    Show help about options
  --help-qt                 Show Qt specific options
  --help-kde                Show KDE specific options
  --help-all                Show all options
  --author                  Show author information
  -v, --version             Show version information
  --license                 Show license information
  --                        End of options

Options:
  --nosignal                Do not signal applications to update
  --noincremental           Disable incremental update, re-read everything
  --checkstamps             Check file timestamps
  --nocheckfiles            Disable checking files (dangerous)
  --global                  Create global database
  --menutest                Perform menu generation test run only
  --track <menu-id>         Track menu id for debug purposes

There is an error - missing files.

Starting the Dolphin file manager with the root rights (kdesudo dolphin).

Browsing to the /etc/xdg/menus/. There is the kde4-applications.menu but not the applications.menu.

Making a softlink / symlink from the applications.menu to the kde4-applications.menu (KDE drag&drop menu "link here").

Running the command:

kbuildsycoca4 --noincremental

again...

The KDE menu is now populated with the available applications.


I myself had attemped this. And all you have to do is use the sudo chown <user>:<group> -R /your/mountpoint.If you would to mount to FAT32 filesystem, then you would need to change your /etc/fstab file.


I finally found the answer in a Kbuntu forum in the following thread:

"Konqueror and Dolphin are creating Zombies!"

Dolphin was leaving zombie processes behind as I moved from folder to folder. (It took me a while to realize that they were called "zombie processes").

I followed what stychokiller posted on May 25th 2014 and fixed the problem by deleting .kde/share/config/dolphinrc

https://www.kubuntuforums.net/showthread.php?65569-Konqueror-and-Dolphin-are-creating-Zombies!&p=351866&viewfull=1#post351866

UPDATE: Unfortunately the above solution only seems to work if I don't reconfigure Dolphin. With the default dolphinrc file I did not get any zombies. I then reconfigured Dolphin the way I wanted it and and it's leaving zombie processes in it's wake again.


Oracle 12C In Ubuntu 14.04 : HOW Resolve [INS-32012] Unable to create directory: /u01/app/oracle

i think i found the answer.
check the user account permissions
the new oracle user create i guess will be
drwx------. 1 oracle oinstall 142 Mar 10 03:16 oracle

which means only the owner has read, write, and execute permissions.

changing that will solve the issue
not recommended though but this should fix the issue

chown 766 oracle


Ubuntu 19.04: Some .desktop shortcuts don't work anymore

From the comments...

The "Desktop" in 19.04 works differently than in the past... and really... only folders of stuff work there now... individual items probably won't work until they finish their programming for that.

MOVE the .desktop file into the ~/.local/share/applications folder. Hit the SUPER key and type Photoshop.


Newer package from repository of other Ubuntu version

Pinning won't preference a newer version; Apt does that by default. Pinning is only for sticking on older versions.

If you've added a newer repo that contains a newer version of a package, and apt update; apt dist-upgrade doesn't upgrade it, chances are the repo isn't providing updates for your release of Ubuntu (eg 14.04). Visit the PPA's Launchpad page and check the releases it supports.

There isn't a universal solution for this. For some [small] things, you can edit the sources configuration (in /etc/apt/sources.list.d/...) and change trusty to whatever release it is that's supported but that often isn't safe.

You may be in the position of needing to build it yourself.


Problem with graphic when booting from liveCD

Try choose language and "Try use Ubuntu without install"(or similar). Boot Ubuntu in Live mode and install Ubuntu from this mode.


Is there a way to export all KWin Window Rules in KDE at once?

As suggested by @DK Bose, ~/.config/kwinrulesrc is where these settings reside.


Remove 'printer added' notifications from GNOME 3

The problem that you're identifying appears identical to my case, which is, that upon OS restart, the system goes through an auto-discovery/auto-install process, and then politely notifies the user via a notification window (the OSD, or on-screen display). Yet then--periodically--this process seems to repeat itself for some as yet unknown reason.

Seems to me that somewhere in the new 17.04 driverless printer driver discovery logic, something is broken. The best I can tell is that the colord daemon is failing on a missing ICC file for the printer in question, which causes CUPS to want to "reinstall" the printer driver, and hence the repeating "printer installed" OSD message. Perhaps as a clue, when installing a "non-driverless" printer driver, the corresponding ICC is installed correctly.

In my own case, I've solved the problem by preventing CUPS from initiating this auto-everything process entirely. In this way, I install my printer(s) once, and never see a "printer added" OSD messages again.

The solution:

Edit /etc/cups/cups-browsed.conf, changing the BrowseRemoteProtocols CUPS
dnssd line to BrowseRemoteProtocols none
Restart CUPS from Terminal
service cups restart

Note that this assumes your printer(s) are on a LAN and not directly connected to your machine. If your printer is local (physically attached), you may want to edit BrowseProtocols instead (untested).

A restart of the CUPS service or machine reboot should resolve the "printer added" issue. Note that you'll need to manually add your printer(s), as the auto-discovery feature has now been disabled.

CUPS Reference: https://www.systutorials.com/docs/linux/man/5-cups-browsed.conf/

Rich


Wireless neteork works fine but problem with Wired connection Ubuntu 14.04

Both your adapters, wired and wireless work.

But you can't use them at the same time for internet without special routing setup.

Disconnect or disable your wireless adapter in Network Manager and you will be able to use your wired adapter.


oss-compat package does not create /dev/dsp

According to the comments on a bug filed on launchpad, it seems the oss-compat package works under the assumption that the ALSA OSS compatibility modules (snd-pcm-oss, snd-seq-oss and snd-mixer-oss) are already in your current installation. Unfortunately, it seems the Ubuntu kernel no longer includes these modules by default and it is necessary to recompile your kernel with a custom config to include them.

A simpler option (which is only available on newer Ubuntu versions) seems to be the osspd package that creates a daemon proxy for emulating OSS.


500 error on phpmyadmin export on /phpmyadmin/export.php

Go to /usr/share/phpmyadmin/export.php

On line 864 : change break 2; by break;

Source : github

Worked for me ;)


How to connect two differents virtual machines (VirtualBox) using IPv6 and gateway

If you can't ping ipv6.google.com then your computer's internet connection probably doesn't support IPv6.  If you go to http://ipv6test.google.com/, that web page will tell you if you have IPv6.

If you just want your virtual machines to be able to access web sites and such with IPv6, then that should be automatic if your computer has IPv6 connectivity.  If you want the virtual machines to be able to talk to each other and the host OS using IPv6, then you will want to create a virtual "host-only" network and connect your virtual machines to it.  To do that I seem to remember that you first create a virtual host-only network in VirtualBox.  Then you add a second virtual network interface card to each virtual machine, and configure the new virtual NIC to connect to the virtual host-only network.  I would recommend getting IPv4 connectivity working first, and then IPv6.  VirtualBox automatically provides a virtual DNS server on a virtual host-only network, so IPv4 connectivity should be automatic.  I'm not sure how it would work on IPv6; you might need to give each virtual machine a static IPv6 address.

Good luck and have fun!