how to install eclipse with only c\c++ and not for others from terminal?

I am not 100% sure on this but I believe to use IDE specific builds, you have to compile yourself. For the C\C++ builds I believe you need the eclipse-cpp-neon-3 source

https://eclipse.org/downloads/packages/eclipse-ide-cc-developers/neon3


How to get link of file to download with wget

Here is the wget command:

wget https://extensions.gnome.org/extension-data/user-themegnome-shell-extensions.gcampax.github.com.v38.shell-extension.zip

How to get the download link for Firefox:

Click Save on the download window and select a download location. You can either save the file or cancel the download.
Click the Downloads button on the Firefox toolbar and select Show All Downloads.
Right-click on your downloaded (or cancelled) file and select Copy Download Link.

How to get the download link for Chrome:

Click Save on the download window and select a download location. You can either save the file or cancel the download.
Click Show all on the downloads toolbar at the bottom of the browser.
Right-click on your downloaded (or cancelled) file and select Copy link address.


Problem was that I couldn't connect to hotspot with Android device, but this tutorial is great, and it works!
Wifi HotSpot Access point mode


Check if you have /run/systemd/journal/dev-log; it should be a socket:

$ ls -l /run/systemd/journal/dev-log
srw-rw-rw- 1 root root 0 Dec 16 09:17 /run/systemd/journal/dev-log

If this checks out, then you can simply make a symbolic link from /dev/log to /run/systemd/journal/dev-log:

sudo ln -s /run/systemd/journal/dev-log /dev/log


Deleting Ubuntu 14.04 root partition has caused Ubuntu 16.04 to boot slower

Solved in the comments by @Soren A:

  @SorenA: In /etc/fstab it shows two swap partitions. One with a UUID that exists in my gparted, and the other with a UUID which doesn't exist in my gparted. Could that be causing the problem? Is it safe to comment out that non-existent swap-partition line in /etc/fstab? Thanks a lot! – VP97 1 hour ago

  I hope SorenA does mind me answering... ;-) If that line for the non-existent swap-partition does NOT start with a # then yes, remove it. The system will then no longer try to find that non-existing partition. Just for safety... check in gparted that the existing swap has 'swapon'. – Willem K 16 mins ago


Google Earth Pro on 18.01.1 not opening GPX files

I have found a solution.  In general, you call the script /opt/google/earth/pro/googleearth, which sets up library paths.  By calling just the ELF, googleearth-bin, opens the GPX without issue.

I'm not sure if it's solved, but it's solved to my satisfaction.


Go to nVidia download site and follow these steps.

Once you have downloaded the driver, change to the directory containing the driver, if this is downloads run

cd ~/downloads

In order for the installer to work, you need to make it executable.

chmod +x _file_name_

_file_name_ is the file name, eg. NVIDIA-Linux-x86_64-340.96.run

Install the driver by running

sudo sh ./NVIDIA-Linux-x86_64-340.96.run

Or in abstract terms sudo sh ./_file_name_

One of the last installation steps will offer to update your X configuration file. Either accept that offer, edit your X configuration file manually so that the NVIDIA X driver will be used, or run in terminal

nvidia-xconfig

You can also check in Synaptic packet manager.

sudo apt-get install synaptic

On my laptop Synaptic has a choice of nVidia drivers. The one that nVidia website chooses for your card is 340, ie. the file NVIDIA-Linux-x86_64-340.96.run for 64-bit architecture. It's present in Synaptic, the package is nvidia-340 but the one on the site is 3 days younger, so you may prefer to install that one.


Ubuntu 17.10 two monitors different resolution on Dell XPS 13 from 2015

Using arandr (Graphical interface for xrandr) you can do it easily.

1) You need to install it:

sudo apt install arandr

2) Configure your schema:

3) Save your schema (it will saved into ~/.screenlayout folder).

4) If arandr couldn't set 1920x1080 for you, open the file you saved (use gedit, nano or other text-based editor to change values. Do it and save;

#!/bin/sh
xrandr --output VGA-1 --mode 1280x1024 --pos 1920x0 --rotate left --output DVI-D-1-1 --off --output VGA-1-1 --off --output DVI-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-0 --off

5) Add this script to ~/.config/autostart/arandr.desktop file:

[Desktop Entry]
Name=arandr.desktop
GenericName="Monitor Schema"
Comment="Script to automatic set resolution"
Exec=/home/<user>/.screenlayout/<file>.sh
Terminal=false
Type=Application
X-Gnome-Autostart=true

6) chmod +x ~/.config/autostart/arandr.desktop to enable it to be executed.

  [1]: https://i.stack.imgur.com/Un9sM.png


So the answer is no, there is a Hardware limitation to only support two monitors simultaneously.

http://en.community.dell.com/support-forums/laptop/f/3518/t/19510194.aspx


Running java code gives Java Hotspot Server VM warning

Solved the issue by removing the following line -XX:MaxPermSize=512m.

It is found in files :

PATH_TO_INTELLIJ\bin\idea.vmoptions
PATH_TO_INTELLIJ\bin\idea64.vmoptions

Found the answer in this discussion.


How do I set an environment variable at boot time (via a script)?

Put that in ~/.bash_profile or ~/.bashrc

gedit ~/.bashrc

Use .bash_profile if you need to use those variable with non-interactive shells (scripts) and ~/.bashrc if you are setting your variables in a shell.

If that does not work, we need more details, in particular what variables are you setting and for what purpose ?


You can do the following:

sudo apt-get install python-software-properties software-properties-common
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update

Optionally purge PHP 5:

sudo apt-get remove php5-common -y

Or directly purge it including configuration files:

sudo apt-get purge php5-common -y

And finally install PHP 7:

sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y

Optionally clean up unneeded packages afterwards:

sudo apt-get --purge autoremove -y

Alternatively, you can install PHP 7.0 from sources using this script script or following instruction on this blog.

EDIT:

PHP5 has now been replaced with PHP7 as the default PHP in Ubuntu 16.4 so,  to install PHP7 on Ubuntu 16.04:

sudo apt-get install php7.0

Or

sudo apt-get install php


Unmount the USB flash drive, unplug it, and do

lsusb && dmesg | tail

Plug it back in and press F3 then Enter

compare the results and identify where your flashdrive automounts to; let's say it automounts to /dev/sdc1

Then, perform this command (and change /dev/sdc1 to reflect where that USB drive automounts to)

sudo mkdir /media/usb && sudo mount /dev/sdc1 /media/usb

Then you should be able to grep the contents of /media/usb


all linux installation stops at error ""intramfs unable to..." version 14

Can you please try not using universal usb installer.

The ubuntu installer iso can made bootable on usb simply by using dd eg:

dd if=/home/user/Download/ubuntu-1404.iso of=/dev/sdb # where /dev/sdb is the device file of you USB stick

Of course you need a system to do this on that has dd, Linux,OSX other unix's generally have dd by default, however you can use cygwin on windows and this comes with dd.


How to shutdown automatically from command line in 13.04

There was a great answer from Majal Mirasol about this. He suggested to use

/usr/bin/dbus-send --system --print-reply \
--dest="org.freedesktop.ConsoleKit" \
/org/freedesktop/ConsoleKit/Manager \
org.freedesktop.ConsoleKit.Manager.Stop

This will work perfectly for me.

If you like this solution please send kudos to Majal's answer and not this one.


how to migrate the hidden files using rsync

The problem is not rsync, but the shell.

Normally in Ubuntu, dotglob is disabled, meaning that files starting with . are excluded from * expansion.

You can turn this on running.

shopt -s dotglob

Then your command should work (I think you're just missing -e ssh)

It's sensible to unset dotglob after use with:

shopt -u dotglob

Alternatively, you can simply tell rsync to copy the folder contents to target_dir, which includes hidden files:

rsync --ab -e ssh myuser@sourcehost:/source_dir/ target_dir


Apt-get update Failed to Fetch while setting proxy

Based on errors you have provided it seems that your sever can not establish TCP connection to the proxy server.

Can you telnet (establish TCP connection) to port 8080 at 198.23.143.4?

telnet 198.23.143.4 8080


Remove aptitude's "Press Enter To Continue" after installations

Having a look at the source code this isn't an option.

If you comment/remove lines 1218-1221 of src/ui.cc you can make it so, but if you think about it, I don't think you really want this behavior.  If it jumps straight back to the UI you have no chance to view the output and make sure there wasn't a problem installing/removing the package etc.

Edit: just re-read your question and noticed you added the caveat to only do this if nothing went wrong.  In this case you should probably submit the idea to the aptitude mailing list and ask if they'd consider adding it as an option.


How do you prevent CPUs from being throttled when battery is taken out of Laptop (aka only on AC power)?

CPU scaling is controlled by your BIOS and not by the software running on the computer.

Reboot and go into the BIOS configuration.

Look for an item called "CPU scaling" and toggle it.

If it's not there, you can't prevent that from happening.


How to get QML syntax highlighting in gedit?

I know this doesn't directly answer your question, but there are several other editors that do support QML syntax.

The best option in my opinion is to use Qt Creator's (the Ubuntu SDK application) editor component. In addition to QML syntax highlighting, it also as context-sensitive completion.

On the other hand, if all you want is a simple text editor that offers QML syntax highlighting, KDE's Kate is a good solution that I use. While it doesn't integrate perfectly with Unity, it still is a nice editor.


"Error: Could not open input file" for java related files when I try any APT command

You have an issue with /var/lib/dpkg/info/jdk1.8.0-111.postinst script (post installation or configuration script of jdk1.8.0-111 package)

The quickest workaround:

Open /var/lib/dpkg/info/jdk1.8.0-111.postinst for editing and remove set -e from it
Run sudo apt-get -f install to fix/complete installation.

Similar to my question here. There are many questions about different packages but with same solution. However, I'm not aware of any one that have nice answer to be canonical one and so we could flag other questions as duplicate. Even this solution, is a workaround and correct path is to raise bug report against each package to fix the script itself and make it more robust.


How can I compile a C program file which I created using the Libre Office editor?

Yes, you should use a text editor, for example gedit which is installed in Ubuntu by default. LibreOffice Writer is a text processor and it saves its files with some additional markup which C compiler does not understand.

To run gedit, press the Super (Win logo) key and type "gedit".

Apart from saving the program in plain text format, you will also need to install the C compiler and stuff, which you can do with

sudo apt-get install build-essential

(although I think you already managed to install it)

Btw, I can confirm that the program compiles nicely and even runs after that :)


Got a bumblebee error: HP-Notebook bumblebeed[3064]: [XORG] (EE) Invalid isolated device specification

Even if this a little bit late but I have fallen into the same issue.
If your nvidia card has an hexadecimal PCI-Bus number (maybe 0a:00:0) here might be solution (at least for me).

https://github.com/Bumblebee-Project/Bumblebee/issues/573

Find out where your bumblebeed binary is and then:

sudo cp /usr/sbin/bumblebeed{,.orig}
sudo sed -i 's/PCI:%02x:%02x:%o/PCI:%02d:%02d:%d/' /usr/sbin/bumblebeed


It is either a bug or incompatibility in Unetbootin. Rather than try and fix it, it would be easier to buy or borrow a USB flash or CD drive and use that to install. Or, if you really want an install in Windows, use VirtualBox.


What is the reasoning behind hiding characters when entering the sudo password?

It makes the password length harder to know.
If your screen is being monitored, for example, using • placeholders would allow an attacker to dramatically reduce the number of passwords they'd need to try in order to crack your password.
Good passwords are made up of a bank of about 40 characters. So compare the difference between If you have a 10 char password, the difference between checking every password up to yours and just checking those with 10 chars is...

I probably don't need to spell it out but ~268 trillion attempts is a significant time saving. This gets even more significant as the password gets longer.
At the other end of the spectrum —really crappy passwords— if you know a target's family members and pets (thanks Facebook) and you know their password length, you might be in the situation where you only need one or two guesses. Enough to get past something like fail2ban.

Of course if they can see or hear you entering the password, they'll have a better chance of being able to guess it again, but there you go. That's the theory anyway.


Blank page when I try to comment, chat, or "like" something on Facebook

Visit https://www.facebook.com/ajax/ufi/modify.php instead. That URL requires use of encryption for security.

from user Micro


I believe this indicates the IP frame was truncated (i.e. it's length is less than the length embedded in the frame). Maybe just a standalone IP fragment.


My two favorite tools are for finding and visualizing filesystem bloat are gdmap and fslint. Summarized from apt-cache:

apt-cache show gdmap
apt-cache show fslint

gdmap:  "GdMap is a tool which allows to visualize disk space.  Ever wondered why your hard disk is full or what directory and files take up most of the space?  With
 GdMap these questions can be answered quickly. To display directory
 structures cushion treemaps are used which visualize a complete folder or even
 the whole hard drive with one picture."

fslint : "has an interface for uninstalling packages, and it can find things like:
 .

- Duplicate files
- Problematic filenames
- Temporary files
- Bad symlinks
- Empty directories
- Nonstripped binaries"

OK, and here's an ncurses based one, which will print hash marks to show relative size if you want it:

ncdu
Description: ncurses disk usage viewer
    Ncdu is a ncurses-based du viewer. It provides a fast and easy-to-use interface through famous du utility. It allows to browse through the directories and show
    percentages of disk usage with ncurses library.

And two more text-based applications from my system repos, which are more involved:

gt5
durep


Black screen while installing Ubuntu 14.0.04 LTS on Hp pavilion 13 laptop with pre-installed windows 8.1 (UEFI ) and GPT partition hard-drive

HP Pavilion 13-b221no is Surkee presentation.
At first I suspected that the W10 engine update is firmwarenut confused, because impossible to install the windows 7.
Nor does upgrade the bios version down ?? Strange.

Ubuntu is able to be installed, legacy mode, while the Home screen, press the F6 and F6 lalitsee noapic choice.
However, the battery indicator is missing from the top bar. etc ... small
The investigation is continuing


Change Kubuntu desktop icon font to bold

Thanks to DK Bose, the file he regarded in the comments ~/.config/kdeglobals leads me to answer the question with some limitations.

The solution
Open the file ~/.config/kdeglobals using kate and search for the following block of code:
[General]
BrowserApplication[$e]=firefox.desktop
ColorScheme=Card
Name=Card
XftAntialias=true
dbfile=/home/saidbakr/.mozilla/firefox/3tzvfegj.default/places.sqlite
fixed=Hack,9,-1,5,50,0,0,0,0,0,Regular
font=Noto Sans,10,-1,5,50,0,0,0,0,0,Regular
menuFont=Noto Sans,10,-1,5,50,0,0,0,0,0,Regular
shadeSortColumn=true
smallestReadableFont=Noto Sans,8,-1,5,50,0,0,0,0,0,Regular
toolBarFont=Noto Sans,10,-1,5,50,0,0,0,0,0,Regular
widgetStyle=Breeze

Replace the Regular in the line font=Noto Sans,10,-1,5,50,0,0,0,0,0,Regular by Bold.
By this way the desktop icons font will be in bold.
The Limitation
Not only desktop icons fonts will be affected, almost all folders views in Dolphin will have bold icons font.


Region deployment from Openstack Autopilot Test Drive fails at "Deploying 'mysql' service"

Can you please file a bug and attach the full tarball of logs that the Autopilot surfaces in the UI?


All widgets look bad on Ubuntu 16, what is wrong?

You have added the repository of gnome3 and have installed  gnome3-staging and gnome3.
Run these commands to purge the repository.
sudo apt-get install ppa-purge
sudo ppa-purge ppa:gnome3-team/gnome3-staging
sudo ppa-purge ppa:gnome3-team/gnome3


How can I change my login screen resolution when connected to my monitor (12.04)

There's a really cool little program that helps with this it called "lxrandr"

Install from the Ubuntu Software Center.


You should try to run boot repair, that's for the booting part. As far as for the login concerns, you should try to login as root if you know the root password. Else, if you cannot login at all, you should remove your hard drive and use it in another computer as an external hard drive (there're tools to do that). As for the future, I recommend you use docker or vagrant holding a stable version of mysql, php or whatever you use.


What does enabling sources in ubuntu's software & updates utility do?

Enabling sources allows downloading source code of the application. With apt-get source pkg you can get source code of that package

As Mitch explains in his answer:

  The command sudo apt-get build-dep packagename means to install all
  dependencies for 'packagename' so that I can build it". So build-dep
  is an apt-get command just like install, remove, update, etc.

So essentially, build-dep will grab source code of your package, and try to install dependencies for it first , before actually building package. This is different from install where the package may already be in .deb package, with everything pre-made.


Can I disable the F10 key for all apps without CCSM?

CCSM is mostly a GUI front-end which writes its values to the gconf database.

You can use gconf-editor to edit the compiz unity plugin options:

As you can see in the image - the F10 key is associated with the panel option located in the gconf path /apps/compiz-1/plugins/unityshell/screen0/options/panel_first_menu

Thus you can change this to another key value - or write the value Disabled to disable the F10 key altogether.

If you want to reassign the key, you can use the modifiers in combination to perform multikey shortcuts:

<super> for the WIN key
<alt> for the ALT key
<shift> for the SHIFT key

For some options you need to logout and login for the changes to take effect.

If you want to reassign/disable from the command line you can use the syntax:

gconftool-2 --set '/apps/compiz-1/plugins/unityshell/screen0/options/panel_first_menu' --type string 'Disabled'


Ubuntu 20.4 LTS upgrade graphical glitches

Have you tried installing the correct drivers to the videocard? Or, alternatively if You already have the correct drivers; have you tried to go to software-updates (I think it's in the terminal called gtk-software-properties) and Checked there if you can choose (at the Drivers tab) some other Drivers?
related:

https://unix.stackexchange.com/questions/612018/ubuntu-20-04-problems-with-interface-after-installation

Edit:

I don't know if this will work; but if you're ok with re-installing
gnome (As I said above: I am Not sure if this will work, so if unsure I would
not try this, mainly because you can still access the desktop,
somehow.)

however If you want to re-install gnome:
sudo apt-get install ubuntu-gnome-desktop

Ubuntu boots to black screen with cursor after upgrade (from 18.04 to 20.04)
The answer from:
Fuzzy graphics after upgrading to Ubuntu 20.04
sudo apt purge xserver-xorg-video-intel

"Reboot and everything is back being normal."

Edit2:
Related:
Why is my monitor glitching out?


Yes the 64-bit version will work on an Intel processor, if possible download the torrent version of the .iso file and force a recheck when it's complete to make sure it's ok, then burn the .iso to dvd at slow speed to both last longer and reduce errors...


Why does my condition always evaluate as true?

Whitespaces make a lot of difference in whell script, you need to take care of them. There is no space between the variable name and the = sign and its value.

Rewrite your shell script as follows:

#!/bin/bash
ageLimit=34
echo "What is your name?"
read userName
echo "How old are you?"
read userAge
if [[ "$userAge" -le "$ageLimit" ]]; then
    echo "Hey, $userName.  At $userAge years old, you are young."
else
   echo "Gosh, $userName.  At $userAge years old, you're pretty old."
fi

Refer to a good tutorial on shell scripting while you make your hands dirty. One good tutorial googling returns is this:

Linux Shell Scripting Tutorial v1.05r3
A Beginner's handbook by Vivek G. Gite

You may also want to know this:

Difference between single and double square brackets in bash


Building Opengl 3+ in ubuntu under virtualbox/vmware

You could try installing the proprietary Nvidia drivers.  The Nvidia 560Ti you have should support OpenGL 3.0.  This page should help:

https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia


KDE notification popup appears only when I attach a second screen

I fixed it by attaching a second screen than drag notification popup by mouse and move it to the main screen.

When detaching the second screen, the popup will always appear in the main screen.


How to unmount MTP USB device from command line

MTP devices are mounted via gvfs (gnome virtual filesystem).
You'll need to use the propper tools for managing gvfs, like gvfs-mount or fusermount.

First use lsusb to get your mtp device number and bus number. I think you already have this.

Simple example using lsusb+grep for a Nexus 4:

$ lsusb | grep Google
Bus 002 Device 025: ID 18d1:4ee2 Google Inc.

Then use gvfs-mount:

gvfs-mount -u /run/user/1000/gvfs/mtp:host=%5Busb%3A{busnumber}%2C{deviceNumber}%5D

Replace busNumber and deviceNumber, also remove the brackets.

You should end with something like:

gvfs-mount -u /run/user/1000/gvfs/mtp:host=%5Busb%3A002%2C025%5D

If gvfs-mount doesn't work, try with fusermount:

fusermount -u /run/user/1000/gvfs/mtp:host=%5Busb%3A002%2C025%5D

Hope it helps.

UPDATE: Sorry,gvfs-mount and fusermount seems to be designed to work without sudo as they are intended to manage fuse-based mounts by non admin users.

UPDATE 2: I observed the correct path is : /run/user/1000/gvfs/, while testing by myself on Ubuntu 16.04/16.10 , using 1000 instead of yourUsername.


Is there now any way to convert mp3 files to m4a or aac 192kbit?

I think I found the solution right here:

http://www.ubuntugeek.com/format-junkie-convert-your-media-files-to-all-the-popular-formats.html

It's called format junkie and it converts to 192kbit m4a (aac) without problems.
Check it out - it's a bit flashy but a really simple and yet powerful media converter for images, audios, videos and even iso-files!

Sorry for answering my own question, but for me I consider it solved. :-)

thx for reading,
piedro


Anyway to get full bash working on Windows?

Cygwin is the easiest way to use bash and other open source software on windows

https://www.cygwin.com/

I have run and X server, ssh, and KDE on windows with cygwin.


Updating 10.10 to the latest version through a firewall

Create the file /etc/apt/apt.conf and write this in it:

Acquire::http::Proxy "http://<username>:<password>@<proxy-ip-address>:<port>/";

Then follow How to install software or upgrade from an old unsupported release? to learn what to to next.


https://serverfault.com/questions/513237/nslookup-fails-but-ping-succeeds-for-nonexistent-domains#515661
this is for FreeBSD but it should work with Debian.
/etc/resolv.conf (and variations thereof) is used to resolve domain names in pretty much every unix-like operating system.

It's possible that someone is rerouting your traffic to their site. Namely xedus.sytes.net. It's called DNS hijacking and domain name registrars and isps often do it.
You could block the ip address it directs you to with
iptables. That way you wont get any packets from them and the ping should fail.

 iptables -A INPUT -s 37.220.180.119 -j DROP

Don't do that if you ever actually use the server that's redirecting you. (you said "local server" so I'm not sure) It's a primitive solution, instead people use things like dd-wrt to prevent DNS hijacking. http://www.dd-wrt.com/site/index


Use blkid from the util-linux package instead:

sudo apt-get update
sudo apt-get install util-linux

blkid


The properly working NVIDIA drivers for GEFORCE GTX 860M as of now are drivers 352 or 361. The drivers 352 are available in the Ubuntu repositories, the drivers 361 are available from the Proprietary GPU drivers PPA. To achieve the best possible installation results, install the latest stable drivers 361 from the NVIDIA long-lived branch by following these instructions. But first remove all NVIDIA software you currently have tried to install ... open a terminal and execute :

sudo apt-get purge nvidia*
sudo reboot

Now install NVIDIA drivers 361 and Optimus support.
Select the Ubuntu menu entry and  press the E key.
Add nouveau.modeset=0 at the end of the linux line.
Press the F10 key to boot into the Ubuntu system.

When the login screen appears press Ctrl+Alt+F1.
Enter your user name and password and then execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-361 nvidia-prime
sudo reboot

Important : Set a Space between the last character in the linux line and nouveau.modeset=0.

To check whether the NVIDIA drivers installation was successful ... open a terminal and execute :

lspci -k | grep -EA2 'VGA|3D'

The output shall show that you are using the NVIDIA adapter : Kernel driver in use: nvidia.

00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: i915

01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: nvidia


I uninstalled wine thinking the Windows apps would go with it but they didn't and now they are stuck on my PC!

The only way I can think of is to delete the ~/.wine folder from your system. You can do that with:

rm -rf ~/.wine

but be sure to make a back up, as the rm command can be dangerous.


How to delay KDE desktop session restore

Though a way to delay session restore hasn't been found, the issue with Plasma Global Application Menu is fixed in Plasma 5.15 so that it initializes before the session restore happens.


may be you just missed the leading "/"?

try

mono "/home/shopy/smath_studio/smath/smath.exe"


system.profile.find() command returns no results

Worked it out, the syntax was wrong in the command line.
Used the following which returned the report:

> db.system.profile.find()


When will GNOME Shell be the default interface?

I've changed this answer based on the new information that was released at the Ubuntu Developer Summit for 11.04.

For the foreseeable future, GNOME Shell is not be the default interface for Ubuntu Desktop. The developers are instead developing an expanded version of the Unity shell.

There are now a significant number of questions regarding Unity, GNOME 3 (of which GNOME Shell is a component), and planned developments of Ubuntu.

Why is Ubuntu 11.04 switching to Unity?
Will Ubuntu 11.04 use GNOME 3?
Will there be a difference between Unity “Desktop” and Unity “Netbook” interface?

Previous answer

As far as I'm aware, the answer to this question is "to be determined".

It is my understanding that final decisions about the details of each release aren't made until the previous release has been completed. The release of Gnome 3 was delayed until early 2011 and Gnome Shell is not planned for 10.10 therefore a definitive answer must wait at least until after 10.10 is released in October. I would guess it will be a topic of discussion at the Ubuntu Developer Summit scheduled for late October.


It could be that you're going through a proxy which alters the user agent header.

Check with Wireshark (or Firebug + its network tab) if the correct agent header is being sent.


Unable to install ubuntu-13.10-desktop-amd64.iso in Virtualbox

When you created your virtual machine I think you put less than 4gb of ram and that the computer created is an 32bits so you will have to download the same version for ubuntu.


Will Natty run without a PC BIOS (i.e. with UEFI)

you can run any gnu/linux distro without bios(uefi that is) since 2001-2002.

grub-efi


How do I back up the list of applications I have installed?

Check out AptOnCD (aptoncd  ).

sudo apt-get install aptoncd


Ubuntu 20.04 does not recognize second monitor on Lenovo X1 Extreme Gen2

After reading the full thread in Ubuntu 20.04 does not recognize second monitor, and the bug description in
[Lenovo ThinkPad P1 Gen 2] HDMI port can't be found, forcing the BIOS of the laptop to 'discrete' (not hybrid) for the graphics card settings, and disabling secure boot - worked.
The second monitor via either DP or HDMI is detected. What's more, the latest patches for Ubuntu 20.04 seem to have fixed the worst of the fractional scaling issues. Posting here for anyone else that discovers this problem.


Since you built the deb packages yourself, the proper command is:

sudo apt-get remove --purge fglrx*

You missed the "remove" and "--" parts in the previous command you tried. More information can be found here:
http://wiki.cchtml.com/index.php/Ubuntu_Raring_Installation_Guide#Removing_Catalyst.2Ffglrx

If you plan on using the open source drivers after run:

sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sudo rm -rf /etc/ati


Creating symbolic links to all config files

Yes.

This is exactly the reasoning behind symbolic links (as opposed to hard links).   This way you can leave the original where the software expects and symbolically refer to it by another location for your convenience.

There is an added benefit if you symbolically link files (as opposed to folders).  If you delete the symbolic link by mistake, then you won't accidentally delete the original, since it's just a link.

However, it won't protect you from accidental changes and you will have to respect the permissions of the target files - meaning you will still have to sudo most of the time.

In your case, I would create a folder, for example, called ~/config and then link each individual file you refer to commonly in there.  Things become more complex/dangerous if you symbolically link folders.  For example:

rm /symbolic/link/to/file will just delete the link and not the file, whereas
rm /symbolic/link/to/folder/file will still delete the target file if /symoblic/link/to/folder is a symbolic link to the folder containing file.

Always keep backups!


Why doesn't my dock have the icons of my icon theme?

I figured out that it was quite simple to have the Numix Circle icon theme in Cairo Dock actually ! I will show how to do it below.

Right click on any icon in the dock. Select Cairo-Dock > Configure as shown below:

Now in the Cairo-Dock configuration window select the Appearance tab as shown below:

Now in the Appearance tab after the option Choose a theme of icons select your icon theme(Its Numix Circle in my case) as shown below:

and voila! You have got your icon theme in Cairo Dock!


How to install with wubi without internet connection

No, Windows Installer won't help. Instead, mount the ISO with the Virtual CD-ROM Control Panel, a free add-on direct from Microsoft. http://www.neowin.net/news/microsoft-releases-tool-to-mount-isos-for-windows-xp-vista-and-7 has more details.


Downgrade Mariadb to 10.1 on Ubuntu 19.10

So my question is can I downgrade back to 10.1 on Ubuntu 19.10

Yes, but it is not a downgrade. It is a re-install.

Dump your current databases to a backup
service mysql stop
Purge mariadb and remove any PPA you installed with it
Install the mariadb PPA that holds 10.1. You can add the 10.1 PPA with:

apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.hosteurope.de/mirror/mariadb.org/repo/10.1/ubuntu xenial main'
sudo apt update
service mysql stop

And you can then install 10.1.

The complete removal and installation command would be (the - at the end of a package means to delete it)

sudo apt install --purge mariadb-client-10.2- mariadb-client-core-10.2-
  mariadb-server-10.2- mariadb-server-core-10.2- mariadb-client-10.1
  mariadb-client-core-10.1 mariadb-server-10.1 mariadb-server-core-10.1
  libmariadbclient18 libjemalloc1 libmysqlclient18

After installation you need to upload your backup database.


Following the suggestion of Faheem's comment and this post, running apt-get update first solved the problem. Specifically apt-get update installed a bunch of updates, then Update Manager ran and also installed a bunch of updates.


dpkg --configure causing endless sourcing of /etc/default/grub

DPKG is trying to source the GRUB but because of presence of
sudo update-grub && sudo reboot

update-grub

from line number 32 to 36, GRUB file is getting sourced recursively. If it were some other command, your system would have been rebooted before actually sourcing the GRUB completely because of sudo reboot. But because of sudo update-grub you ended up in infinite recursion. In a nutshell, the command looks like:
update-grub(){
    update-grub
}

You need to edit the GRUB file and remove line number 32 to 36, i.e., which has update-grub. To edit run
sudoedit /etc/default/grub

Remove the lines and save. Once done, try running
sudo dpkg --configure -a

or
sudo update-grub


Ok lets run this down:

[19:44:16]          /dev/.udev/rules.d/root.rules: ASCII text

a file holding ASCII text is suspicious? Why?
there was a bug in it in 2010 so the file seems normal to me.
google says false positive.

[19:44:16] Warning: Hidden directory found: /etc/.java: directory
[19:44:16] Warning: Hidden directory found: /dev/.udev: directory
[19:44:16] Warning: Hidden file found: /dev/.initramfs: symbolic link to `/run/initramfs'

hidden files are a problem? Why? Hidden file to me seem a -feature- of linux.
bug report and fix.
The "fix" also shows a serious flaw in rkhunter: putting files into a configuration file so it skips them is just plain stupid. It really is. Think about what this means: so if I add -all- files on my disk to the configuration file so it skips them I can never get a rootkit? No, it actually means a rootkit has extra places to hide itself. Seems counterproductive to me.

[19:44:16] Warning: Group 'winbindd_priv' has been added to the group file.

bug report and fix. Fix is part of correctly setting up winbindd.

By the way: you are the one choosing to use rkunter so you will also need to do these searches yourself on any warning you get.
Either don't use rkhunter or install a -second- separate (so not Lynis as it is a rkhunter clone) (chrootkit.org seems down; software is still available in the repositories). Run both and discard anything only 1 of them reports as a problem as a false positive. Package information on debian for rkhunter also mentions this.


Why does Wubi installer not find my CD and then abort?

Did you check the MD5 sum of the ISO file of Ubuntu? Check it once.

If it's the same as the file you downloaded, then try to make a bootable ISO using UNetbootin. Then, boot from USB. Click the "Try Ubuntu" option during booting.

If everything works, then you can try with Wubi. Wubi works on NTFS, so check the partition. If you want GRUB as boot loader you can install it from the "Try Ubuntu" window only.

I would recommend not to install in "Try Ubuntu" if you are not familiar with Ubuntu though. There may be dependencies of the Windows boot loader for a few systems. So, as I already said, if the "Try Ubuntu" method through the ISO works, then you can test with Wubi.


Ubuntu 20.10 stuck at initramfs after update from 20.04

In my case, the way I solved this was:

Reboot and hold down the shift key to show the grub menu.
Choose the latest kernel in recovery mode
Enter the disk decryption key (if the disk is encrypted).
It failed to boot, complaining about UNEXPECTED INCONSISTENCY in /dev/mapper/vgubuntu-root so I ran fsck /dev/mapper/vgubuntu-root.
It scanned that partition and offered to repair and delete hundreds of items. After pressing y to accept a few dozen times I pressed a to accept all.
Many pages of repaired elements were shown. Scary, but after that it did boot succesfully.

I suspect those errors were already there from a recent power loss on the computer, but only became apparent when updating the OS.


Gnome-Terminal : Hide tab bar in fullscreen mode

So it looks like there is a toggle in options but someone has commented out the option to have tabs "never" show.

https://github.com/GNOME/gnome-terminal/blob/mainline/src/org.gnome.Terminal.gschema.xml#L46

If this option was uncommented you could edit the options with dconf-editor.

I think this option would hide the tabs.

So first you need to find out how to get this change pushed through the gnome-terminal change process.

And there is this thread: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1725620


How to use a command without being in the same directory

What you are looking for is

ls /bin

More generally, the slash character "/"  without any leading characters references the root directory. i.e.

cd /

changes directories to the root directory.


This has been fixed today with the latest kernel update 3.13.0-61


How to understand Commands used in Ubuntu

Each and every Linux distribution has a compiled manual for each command itself. You can simply open a terminal by hitting ALT+CTRL+T and then type man command-name to open the manual to learn more about a specific command and what is does. (e.g.: If you need to know about ls.. then type man ls and hit, magic happens!).

You may also refer Ubuntu Documentation to learn more


Create Launcher for Terminal Application
Right click on the desktop and select Create Launcher from the menu:

Choose Application in Terminal and give the desired name and command to run (in this case vim).
Then simply drag and drop this icon on the Unity Launcher:


DNS resolving problem after upgrading to 17.10

I just had the same problem with an upgraded Ubuntu 16.04 to Ubuntu 18.04 server.
My solution was to check my firewall settings and exclude the loopback device lo from masquerading the source IPs (D'oh!).

Be sure to check your routes and your firewall routing magic like POSTROUTING { MASQUERADE; }. It was working before since the old DNS resolver wasn't as picky with source IPs it seems.


You can possibly find the answer at these two places:

https://help.ubuntu.com/community/HybridGraphics
http://www.linuxquestions.org/questions/slackware-14/how-to-switch-between-graphics-processors-using-vga-switcheroo-4175437338/


Windows 8.1 won't boot after Ubuntu install

I solved that problem with reruninng boot-repair and after that running sudo update-grub


Yes, that server is down. To change servers, in the Dash type software properties and launch the app that shows up.

In the dropdown menu beside "Download from" you can pick another server.


How to set xrandr screen brightness to run on startup?

you should create a file named rc.local in /etc folder
and give it executable permissions...

sudo nano /etc/rc.local

file needs to be look like this

#!/bin/bash
xrandr --output HDMI-A-0 --brightness 0.90

use Ctrl+x to save and exit click Y Enter to confirm ...

Note:

xrandr --output HDMI-A-0 --brightness 0.90 --gamma 1.05:1.00:0.95

also works to adjust color using R:G:B channels and a little bit sharpness when you combine with --gamma I think ...

for better contrast I use this :

xrandr --output DVI-D-0 --brightness 1.1 --gamma 0.9:0.9:0.9

for more cold colors :

xrandr --output HDMI-A-0 --brightness 1.1 --gamma 0.85:0.85:0.9


Don't worry, it is a common and positive behavior.

Because the output of any software can be logged to a permanent storage (like the hard disk) in a format readable by humans, the Linux libraries used by most terminal softwares (in your case the login utility with the PAM system) have a security feature that hides the passwords from the screen: the password is memorized and - if the software is well made - encrypted in memory when you press RETURN but even while typing the output does not arrive to the standard output.

This both prevents passive screen logging and people near you from catching the password. Have a nice day and remember to type quickly, because anyone can still see your physical keyboard! :-)

Important: when you see a password field, insert the root password only if the application is trusted; never publish or save your root password, even if the password field seems secure and does not show any letter.


Error when I open the terminal: `bash: /opt/ros/hydro/setup.bash: No such file or directory`

Open ~/bashrc file (using gedit ~/bashrc command) and search for this string: /opt/ros/hydro/setup.bash. If you find if, remove the code which is using it. If no, search in the other shell initialization files. It should be somewhere.

The files that contain initialization commands when a shell is invoked are: /etc/profile, /etc/bashrc, ~/.bash_login, ~/.profile, ~/.bashrc, ~/.bash_aliases and maybe others. See Shell initialization files.

To quickly check if one of these files have something wrong inside, you can use source command. For example:

source ~/.bashrc

See also: "♦: command not found" in tty after login


Got the same error since yesterday on evince 3.28.4 (exactly as described), no memory faults, devs, check what were the mods since yesterday both on evince and 4.15.0-43-generic 64-bits.
Checked  /var/log/apt/history.log

and between the days evince was working and then not working I have:
the content of this file
, no reference to evince:amd64 (3.28.4-0ubuntu1) or any of the installed libraries:
libevdocument3-4:amd64 (3.28.4-0ubuntu1), libgxps2:amd64 (0.3.0-2), libspectre1:amd64 (0.2.8-1), libevview3-3:amd64 (3.28.4-0ubuntu1)

No evidence of any changed dependencies as provided by the output of ldd command:

It thus seems that 3.28.4 is corrupted.

finally solved the problem with:

sudo snap install evince  # version 3.30.2

and had everything working, with some gtk warnings if I call evince from the command-line. There is a drawback, evince installed through cannot access /tmp and opening a pdf through Thunderbird or Firefox will fail. You will have to save it first.


How to have the console echo (confirm) some commands?

For ln, cp, mv and rmdir commands, you should use -v or --verbose option. From man cp and man mv:

  -v, --verbose
          explain what is being done

From man ln:

   -v, --verbose
          print name of each linked file

From man rmdir:

  -v, --verbose
          output a diagnostic for every directory processed

Note that you don't have any option to be prompted for confirmation when using rmdir, since rmdir remove empty directories. You can use rm -d instead with -i option (see below).

For rm command, you should use -i option. From man rm:

   -i    prompt before every removal

Now, if you want that these commands to be executed with these options all the time in terminal, you can use aliases. So, add the following lines at the end of ~/.bashrc file or in ~/.bash_aliases file:

alias cp='cp -v'
alias mv='mv -v'
alias ln='ln -v'
alias rmdir='rmdir -v' #or, better for what you asked: alias rmdir='rm -id'
alias rm='rm -i'


Referring to info coreutils 'ls invocation':

-C' --format=vertical'
List files in columns, sorted vertically.  This is the default for
ls if standard output is a terminal.  It is always the default for the dir program.  GNU ls uses variable width columns to display as many files as possible in the fewest lines.

TL;DR: no, no difference - that's default.


How do install glassfish on ubuntu server 12.x?

According to: http://packages.ubuntu.com/search?suite=quantal&keywords=glassfish it will be

sudo apt-get install glassfish-appserv

(all the other packages might be of interest too)

This will not be the latest version. If you want that you need to use the install script found here: http://glassfish.java.net/downloads/3.1.2.2-final.html


Will resizing ext4 partitions with Windows destroy the installed Ubuntu?

There are really two issues here:

Resizing the partition
Resizing the filesystem

People mostly refer to "resizing the partition" because that implies also resizing the filesystem, but in the case of your question, understanding the answer requires understanding the distinction between the two.

Partitions are very simple data structures that define the start and end points of chunks of the disk. Filesystems, by contrast, are complex data structures that are defined relative to the start of the data structures that contain them. Note that a filesystem is conventionally contained by a partition, but it could be contained in a file, on a whole disk, in an LVM's logical volume, etc.

Because filesystems are laid out relative to their starting point, it's possible to safely move the end point of a partition upward even if the tools used to do this don't understand the filesystem. It's also completely pointless to do this, since the filesystem's own data structures will not magically expand to fill the available space. Moving the end point of the partition down is likely to be disastrous, since important files might be stored at the end of the filesystem -- and even if they aren't, the filesystem data structures will still indicate that the filesystem is the same size it originally was, so the OS might try to store files beyond the (new) end of the partition, which will be disastrous. Moving the start point of a partition without adjusting the filesystem will be even more disastrous, since then the OS won't be able to detect the filesystem at all. (Note that I've used the word "disastrous" three times in this paragraph, not counting in this parenthetical statement.)

Similarly, it's possible to shrink a filesystem without doing any damage to it (assuming the shrinking operation works correctly, which is not guaranteed), but it will then be smaller than its containing partition. Growing it (if it's already properly sized for its containing partition) is impossible -- or at least, any competently-written tool will refuse to do so.

I haven't checked the source code, but chances are GParted relies on underlying tools to resize the partition and filesystem separately, but in the correct order to keep things accessible and proper. For instance, to grow a partition from the end, it would increase the partition size and then increase the filesystem size to match.

Getting back to your question, there are certainly Windows tools that can resize partitions. In theory, an ext4fs resizing tool could be written for Windows. In fact, it's conceivable that resize2fs (the tool that does the job in Linux) has already been ported to Windows. If so, you could do the job from Windows -- but AFAIK, there's no easy-to-use GUI front-end for the job. Thus, I don't recommend even trying. It actually is possible to resize an ext4fs partition while it's in use, but only if the start point is not moved. This also requires using text-mode commands. In most cases it's easier (and safer, especially for relative novices) to use a live medium to run GParted.

Also, the slowness of a DVD-based Ubuntu is a trivial thing compared to the risks and, depending on what you're doing, the time involved in resizing a partition. In particular, if you move the start point of a partition, that will take a lot of time, since such an operation involves moving a lot of data.

As an alternative, you might consider creating a new partition from the space you use in shrinking the one(s) you want to shrink. Once you know the size, you can move some existing data there and mount the new partition in your Ubuntu directory tree. See, for instance:

How can I move my /home directory to another partition if it's already part of the / partition?

Depending on the sizes, /home might not be the best thing to move; you might end up moving /var, /home/yourname/Videos, or something else, but the principle's the same.


Wired Connection keeps disconnecting when plugged in

You can not use two network connections at the same time without setting up routing rules.

That is why your wireless network disconnects as soon as you connect to a wired network.

Default route changes to wired network.


Mouse been going crazy since 14.04 . Is there a fix?

In this topic a probable solution is proposed: install gpointing-device-settings, then uncheck the two boxes under System>Mouse for touchpad and run the app.


14.04 to 16.04 - Upgrade Button has no effect

Try running

sudo do-release-upgrade

If it fails, update your question to include the output.


Ubuntu 18.10 Cosmic Cuttlefish not connecting to my Android phone. Showing ERROR: Unable to access & couldn't find matching udev device. What to do?

How to connect Android device using MTP Ubuntu- Youtube Tutorial

Connect an Android device using MTP in Ubuntu.

You need to follow following steps because ubuntu doesn't show your mtp devices (security reasons).
Open a terminal and type commands

$ sudo apt-get install libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9

$ sudo apt-get dist-upgrade

Remove # from in front of last line

$ sudo nano /etc/fuse.conf

connect your phone to your pc (unlocked)

$ lsusb

open new terminal and type the following command

$ sudo nano /lib/udev/rules.d/69-mtp.rules

copy and paste below lines and replace Device with your phone name and the addresses as shown in image below.

replace the addresses as in the image

# Device
ATTR{idVendor}=="XXXX", ATTR{idProduct}=="YYYY", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"

type the following command

$ sudo nano /etc/udev/rules.d/51-android.rules

Replace the addresses as shown in the image

ATTR{idVendor}=="XXXX", ATTR{idProduct}=="YYYY", MODE=”0666"

$ sudo service udev restart

$ sudo reboot


Ubuntu 15.10 / 16.04 theme doesn't change

In a terminal, type:

sudo apt-get remove unity-tweak-tool && sudo apt-get install gnome-tweak-tool

Then go to etc/gtk-2.0 and etc/gtk-3.0 and delete settings file. Reboot and change themes using use gnome-tweak-tool.

It works fine for me in Ubuntu 16.04.


no boot; /sbin/init: error while loading shared libraries: libcryptsetup.so.12: invalid ELF header

I gave up and have attempted a reinstall while trying to keep data, following directions here:

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

and here:

Why do I get "No root file system is defined" when I try install in one partition?

the key was being sure to set the existing partitions correctly. I had one partition set to /home, keeping it, and the other partition set to "/" and had to reformat that one during install. I needed only a few program installs in the end.


Switch language does not work on ubuntu 14

Did you see the related docs?

One thing you may want to try is installing the ibus-m17n package and relogin. Doing so adds the option Hebrew (kbd (m17n)) to the list of available input sources, and seems to work fine on my 14.04.

Edit:

Thanks for editing the question and clarifying the nature of the problem. I can't tell why Ctrl+Space does not work for you; it works for me. What if you try something else, e.g. the default Super+Space?


Can't Click or Use Keyboard in my User Account

Here is a workaround.

Open a terminal by pressing Ctrl + Alt + F1.

On the command line type:

ps -elf | grep nautilus

You get two rows, ignore the row with grep,

From the other row, note the fourth column, it is the pid of nautilus.

Kill nautilus with:

sudo kill -9 pid

Where pid is the number just noted.

Your graphic login should display. Log in and have fun until it freezes again.


There is a command-line tool pdfgrep which can perform your task.You can install it by
 sudo apt-get install pdfgrep
To search for a regular expression:

find /path -iname '*.pdf' -exec pdfgrep -H 'pattern' {} \;

where path is location for your pdf files.

There is also a GUI tool called recoll which can search documents by indexing them.

Reference


When I try to update or Install a program Ubuntu 19.04, an error is displayed

There is no PPA for the disco version.

In terminal...

cd /etc/apt # change directory

grep -i tista sources.list # search in sources.list

grep -i tista sources.list.d/*.list # search in individual .list files

Once "tista" is found ,edit that file, and change disco to cosmic.

sudo -H gedit /path_to_found_filename/found_filename # edit the found file


Build an upstart job, it can probably solve your problem. It worked for me. You can achieve that as follows :

Create      /etc/init/myjob.conf

Add the following entries to the file

description "my Job"
start on startup
task
exec /path/to/my/script.sh

This is just an example. You can give whatever name you want, and the path leading to your script.


Ensures that a FS is mounted on the given mount point

If your device is always called /dev/sdd1 (but it probably isn't), all you need to do is add a line to /etc/fstab:

/dev/sdd1   /media/mpdr1 ntfs   defaults,users  0   0

Since the device name is actually likely to change, a better way would be to use the UUID of the drive. So, first use blkid to get the correct UUID and then, add this line to /etc/fstab instead:

UUID=123-ABC  /media/mpdr1 ntfs defaults,users  0   0

The modern approach is to do all this via udev rules but that might be overkill if all you want to do is specify a mountpoint for one specific device.


How to install relink wireless driver for LG X130 nebook

Another possible option, while probably not as good as what the person above is suggesting, would be to use ndiswrapper to install the Windows driver. Only use this if the above suggestions don't work. You can download the XP driver from LG's official site at

http://www.lg.com/ae/support/product/support-product-profile.jsp?customerModelCode=X130-G.ASB7E1&initialTab=drivers&targetPage=support-product-profile

and uncompress it to whatever location you prefer. You can install ndiswrapper from the Software Centre. Once installed, you will see a "Windows Wireless Drivers" button under System - Administration. From there, just click install new driver and select the .INF file which you previously got from extraction. If everything went well, your wireless should be up and ready to go.


Isolation of linux distro (ubuntu 18.04 and 20.04) in wsl

You can change the SSH port as much as you like on either (or both) of your systems. It will have no impact; your systems will run normally with the changed port settings.
SSH is for your interaction with the system. No internal process uses it. A stock install of Ubuntu Desktop doesn't even have an SSH server at all.


How do I bind buttons to zoom and workspace switcher in Unity?

Your question is a bit unclear for me because you seem to mix up Compiz and CCSM ("Compiz-config"). I'm assuming that you still want to use Compiz, but just don't want to use CCSM.

Approach 1: alternative front-end to Compiz

CCSM is a front-end for the settings in Compiz. There are a few others available (OMG!Ubuntu covered a few of them in the past year or so, see e.g. http://www.omgubuntu.co.uk/2013/02/introducing-unity-tweak-tool) that ought to be safer. Try this first.

Approach 2: Directly alter settings through GConf

Alternatively, you can take the difficult path and "go commando". You won't need a front-end for Compiz if you access the GConf settings, where the Compiz settings are stored. You could do this with the command line but are probably better off using some GUI for GConf. Try using gconf-editor, that allows you to change the Compiz settings. Simply go to /apps/compiz-1/plugins/wall/screen0/options if you want to change the Desktop Wall settings, for example. If you then change the value of the key /apps/compiz-1/plugins/wall/screen0/options/down_key you can change the value of the key to switch to your workspace below. All otherCompiz plugins are available in a similar directory.

Although you didn't ask: To be honest, I'd just use CCSM if I were you. Yes, if something goes wrong you can destroy your settings, but that's nothing you can fix without resetting your Compiz/Unity profile (search around a bit for this, e.g. look at How do I reset my Unity configuration?). You'll lose your Compiz settings in that case, but not your data. If you're careful not to mess around too much you should be okay. Also, the second approach is probably much more dangerous than CCSM.


How can I see net traffic in the apps bar?

What kind of network manager do you have? I suggest you to install WICD network manager (take a look here). Once you installed it, just right click on the tray icon and select 'connection info'.


Is there still a free version of Landscape and what are the limitations and alternatives?

LDS is still free and that PPA is still available.

I just confirmed by running the following on an up-to-date trusty machine:

sudo add-apt-repository ppa:landscape/15.01


You can Manually edit the Grub configuration easily by following these Steps,

However, if you have another partition in the same disk or another disk, you can try by @Reparing@ GRUB from the LTS media. Which sholud technically detect the other OS.
If this doesnt help, only then head to edit the Config.


Ubuntu won't login after installing nvidia drivers

the safest way is to use the additional drivers that are provided by Ubuntu

in the dash write " additional drivers"

in my laptop i used the proprietary, tested and this is working fine

you may refer also to this topic for more info

How can drivers for Nvidia graphics cards be installed on Ubuntu 13.04 without messing up the OS?


You need to install flash player.
Open a terminal by pressing CTRL+ALT+T and type the following:

sudo apt-get install flashplugin-installer

You can also install google-chrome which comes with flash integration.


How can I reset to Ubuntu Studio default desktop and settings?

If the changes is in desktop only you may reinstall the desktop like this:
sudo apt reinstall ubuntustudio-desktop-core ubuntustudio-desktop

note: this won't change all configrations if you changed something not related to desktop itself

or you better go back throw your customizations and reverse it


The file /etc/vim/vimrc already contains necessary feature. Just need to uncomment it:
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif

(Infact, you can refer to /usr/share/vim/vim73/vimrc_example.vim also)


Running a cron job on the first weekday of the month

From man test:

   STRING1 = STRING2
          the strings are equal

Note that it is =, not ==. However, this is not the only problem...

firas@itsuki ~ % sh
$ [ "$(date '+\%a')" == "Thu" ] && echo "Its Thursday!"
sh: 1: [: \Thu: unexpected operator
$ [ "$(date '+\%a')" = "Thu" ] && echo "Its Thursday!"
$

The other problem is that since your date string +\%a is between single quotes, it will be interpreted literally, and so

$ date '+\%a'
\Thu

which is not what you want. Instead you should remove the unnecessary backslash, and then

$ [ "$(date '+%a')" = "Thu" ] && echo "Its Thursday!"
Its Thursday!


What does functional_qml_application_uses_QtWebKit mean?

Note that the QtWebKit test is a warning, not an error. Application developers are free to use QtWebKit, however there are major caveats:

qtwebkit won't get security support (not from Ubuntu/Canonical nor Upstream) and
once Ubuntu moves to oxide, won't be getting as much testing and its utility will likely decrease (indeed, future Qt versions will drop it entirely). Then you will be able to 'import Oxide' if you should need more functionality than from UbuntuWebView.

UbuntuWebView will always work, get the testing and get the security updates since it will be using Oxide. Oxide, once integrated with UbuntuWebview will also bring performance improvements and added functionality over QtWebKit. This should not block app approval, but may slow down the review process and it is highly recommended that app developers use UbuntuWebview whenever possible.

If you are currently suffering from shortcomings in UbuntuWebView, please file bugs on the webbrowser-app project in Launchpad.


19.10 - Wifi - Linksys AE2500-RM not recognized by system

There is no known native Linux driver for your 13b1:003a device.

Drivers are typically developed either directly by or in conjuntion with the device chipset manufacturer, in this case, Broadcom. They have provided no driver for this device nor any of the very few other Broadcom USB devices.

The alternative used to be to use Windows XP driver files and the ndiswrapper mechanism. However, ndiswrapper is poorly supported and hasn't worked properly on any recent Ubuntu version for many years.

The direct answer to your question, "In five years, has there been a better solution than XP drivers to make this work?" is that there is no solution at all, including ndiswrapper, to make this work.

I suggest that you purchase another fully supported USB wireless device.


Dependency Problem With Mongo When Installing Unifi

I am having the same issue, which is the mongodb-server has to be LESS than 3.6.0 and Ubuntu 18.04 only has the 3.6.3 version to install.

I believe these instructions should work for you, which adds sources to install an "older" version of mongodb-server and the unifi controller:

https://help.ubnt.com/hc/en-us/articles/220066768-UniFi-How-to-Install-Update-via-APT-on-Debian-or-Ubuntu

At least it worked for me.


Setting the Python path for the trunk version of Django

From bash (or other shell) you can manipulate the $PYTHONPATH to point to the parent directory, e.g.,
echo $PYTHONPATH
export PYTHONPATH="/newhome/django_x.x/trunk"

This will prepend the paths given to the existing python path list.

python.org :

  For example, if PYTHONPATH is set to
  /www/python:/opt/py, the search path
  will begin with

['/www/python','/opt/py']

  (Note that directories
  must exist in order to be added to
  sys.path; the site module removes
  paths that don’t exist.)

From within python, you can also change sys.path (import sys if you haven't) to point to your testing branch.

Example from python.org :

$ python
Python 2.2 (#11, Oct  3 2002, 13:31:27)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-112)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/local/lib/python2.3', '/usr/local/lib/python2.3/plat-linux2',
 '/usr/local/lib/python2.3/lib-tk', '/usr/local/lib/python2.3/lib-dynload',
 '/usr/local/lib/python2.3/site-packages']
>>>

To add a path, use something like :

sys.path.append('/workingdir/python/')

A Django-centric example from djangotricks (blog) :

import os, sys

SVN_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
DJANGO_PATH = os.path.join(SVN_PATH, "django_src", "trunk")
PROJECT_PATH = os.path.join(SVN_PATH, "myproject", "trunk")

sys.path += [DJANGO_PATH, PROJECT_PATH]

Additionally, unless you've suppressed the behavior, python loads site.py on execution, so you can also edit the site.py file, e.g. /usr/lib/python2.7/site.py :

The comments of the site.py file are also instructive.

$ more /usr/lib/python2.7/site.py

"""Append module search paths for third-party packages to sys.path.

****************************************************************
* This module is automatically imported during initialization. *
****************************************************************

In earlier versions of Python (up to 1.5a3), scripts or modules that
needed to use site-specific modules would place ``import site''
somewhere near the top of their code.  Because of the automatic
import, this is no longer necessary (but code that does it still
works).

This will append site-specific paths to the module search path.  On
Unix (including Mac OSX), it starts with sys.prefix and
sys.exec_prefix (if different) and appends
lib/python<version>/site-packages as well as lib/site-python.
On other platforms (such as Windows), it tries each of the
prefixes directly, as well as with lib/site-packages appended.  The
resulting directories, if they exist, are appended to sys.path, and
also inspected for path configuration files.

For Debian and derivatives, this sys.path is augmented with directories
for packages distributed within the distribution. Local addons go
into /usr/local/lib/python<version>/dist-packages,
Debian addons
install into /usr/{lib,share}/python<version>/dist-packages.
/usr/lib/python<version>/site-packages
is not used.

A path configuration file is a file whose name has the form
<package>.pth; its contents are additional directories (one per line)
to be added to sys.path.  Non-existing directories (or
non-directories) are never added to sys.path; no directory is added to
sys.path more than once.  Blank lines and lines beginning with
'#' are skipped. Lines starting with 'import' are executed.

For example, suppose sys.prefix and sys.exec_prefix are set to
/usr/local and there is a directory
/usr/local/lib/python2.5/site-packages
with three subdirectories, foo, bar and spam, and two path
configuration files, foo.pth and bar.pth.  Assume foo.pth contains the
following:

  # foo package configuration
  foo
  bar
  bletch

and bar.pth contains:

  # bar package configuration
  bar

Then the following directories are added to sys.path, in this order:

  /usr/local/lib/python2.5/site-packages/bar
  /usr/local/lib/python2.5/site-packages/foo

Note that bletch is omitted because it doesn't exist; bar precedes
foo
because bar.pth comes alphabetically before foo.pth; and
spam is
omitted because it is not mentioned in either path configuration
file.

After these path manipulations, an attempt is made to import a module
named sitecustomize, which can perform arbitrary additional
site-specific customizations.  If this import fails with an
ImportError exception, it is silently ignored.

References:
python.org docs, v2.7 search path
python.org docs, v3 search path
Djangotricks blog, a note on python paths
Martin Jansen : Django settings files for development and production


First of all, don't parse ls. Now, the reason your script fails is because you are passing "$PWD/*". Because that's qupted, it will be expanded before it's passed to your function to /path/to/dir/* and since there is no file named * in your PWD, it fails.

However, even if it worked, that would have gotten you into an infinite loop.

What you are looking for is:

#!/bin/bash

function loop() {
    ## Do nothing if * doesn't match anything.
    ## This is needed for empty directories, otherwise
    ## "foo/*" expands to the literal string "foo/*"/
    shopt -s nullglob

    for file in $1
    do
    ## If $file is a directory
    if [ -d "$file" ]
    then
            echo "looping for $file"
        loop "$file/*"
    else
            echo "$file"
    fi
    done
}
loop "$PWD/*"

That, however, will fail if your PWD contains any whitespace characters. A safer way is:

#!/bin/bash

function loop() {
    ## Do nothing if * doesn't match anything.
    ## This is needed for empty directories, otherwise
    ## "foo/*" expands to the literal string "foo/*"/
    shopt -s nullglob

    ## Make ** recurse into subdirectories
    shopt -s globstar

    for file in "$@"/**
    do
    ## If $file is a file
    if [ -f "$file" ]
    then
        echo "$file"
    fi
    done
}
loop "$PWD"


Noob tried to install Ubuntu, needs help

You should manually restart your system (using the hardware button or power cycle).

The first message, that TSC_DEADLINE is disabled, is a problem but not a fatal one.  It is not interfering with boot, reboot, or shutdown.  TSC is a "nice to have," not a "must have".  See the good discussion of this error on the unix StackExchange.

Note that the instructions you followed assume some things about your computer (in particular, that it is a newish machine with a UEFI BIOS).  That's probably totally right for you, but if not you may have some trouble booting.  Good luck!


ATI Radeon 5800 series dual monitor unity not 3D accelerated

Don't enable Xinerama in the ATI/AMD Catalyst control center.


Whats the best way to install Ubuntu on a Samsung Chromebook?

Speaking from experience, you won't be running a very stable system with Crouton, which is essentially what you are describing with your last sentence. You can either run a nicely configured ChromeOS installation, or a nice ChromeOS configuration with Crouton to preview what a Linux distribution would look like on a Chromebook.

If you want to run a stable Ubuntu distribution on your Chromebook, you will probably have to replace ChromeOS with Ubuntu.

You can see whether your Samsung Chromebook is supported by John Lewis' custom BIOS here.

If you think you would like to potentially risk bricking your device, you can proceed with the instructions here.

I used the steps here for a dozen Dell Chromebooks but your instructions may differ because you are using Samsung.


Here you have to use cron where cron is a scheulder for Linux.

Easily run this command to enter a new entry

sudo crontab -e

This wil open a the default editor to edit crontab. If you save and exit the editor, all your cronjobs are saved into crontab. Cronjobs are written in the following format:

* * * * * /some-script.sh

As you can see there are 5 stars. The stars are in the following order:

minute (from 0 to 59)
hour (from 0 to 23)
day of month (from 1 to 31)
month (from 1 to 12)
day of week (from 0 to 6) (0=Sunday)

So in your case

0 2 * * 0 /usr/bin/deja-dup --backup

This means it will run the backup in SunDays of every month at 2:00 AM

you can edit time as you wish

If you like GUI way you can check this Crontab GUI for Ubuntu 12.04


Any way to open windows from the windows bar using a shortcut

With a little script and a small surgery on your system, it can be arranged exactly as you describe.

Ingredients

wmctrl; it possibly needs to be installed.
The script below
xprop, to get the window properties. This is already installed on your system.
Settings changes in xfce panel settings
Additional keyboard shortcuts

How to set up

Install wmctrl:

sudo apt-get install wmctrl

Create a directory ~/bin (/home/<yourname>/bin). Copy the script below into an empty file, save it as panel_navigate (no extension) in ~/bin and make it executable.
Change panel settings:
Go to Settings Manager > "Panel" > "Items" (tab) > "Window Buttons" >

"Sorting order" > Choose: Timestamp
"Window Grouping" > Choose: "Never"
Make sure "Show windows from all workspaces or viewports" is unticked

Add Keyboard shortcuts:
go to Settings Manager > "Keyboard" > "Application Shortcuts", choose "Add". Add the command:

panel_navigate 1

Set it to the key combination Ctrl+1

Now you can choose:

to repeat this procedure to add panel_navigate 2 under Ctrl+2 and so on (until 9)

(save option) or (if you are not afraid to edit config files manually):

you can edit the file:

~/.config/xfce4/xfconf/xfce-perchanel-xml/xfce4-keyboard-shortcuts.xml

in which the keyboard shortcuts (in xfce) are stored. Open the file with mousepad and look for a line like:

<property name="&lt;Primary&gt;1" type="string" value="panel_navigate 1"/>

Copy the line, paste it on the next line (insert) and change both occurrences of 1 into 2, so you'll get:

<property name="&lt;Primary&gt;1" type="string" value="panel_navigate 1"/>
<property name="&lt;Primary&gt;2" type="string" value="panel_navigate 2"/>

and so on..

Make sure the indent is exactly the same. Repeat the procedure until 9.

Log out and back in and it should work:

Ctrl+1

Ctrl+3

And so on...

The script

#!/usr/bin/env python3

import subprocess
import sys

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

def run_command(command):
    subprocess.Popen(["/bin/bash", "-c", command])

current_workspace = [l for l in get_value("wmctrl -d").splitlines() if l.split(" ")[2] == "*"][0][0]
wlist_ids = [item.split()[0:4] for item in get_value("wmctrl -l").splitlines()]
relevant = [item for item in wlist_ids if item[1] == current_workspace]
panel = []
for item in relevant:
    data = get_value("xprop -id "+item[0])
    if ("_TYPE_NORMAL" in data, "TYPE_DIALOG" in data).count(True) == 1:
        panel.append(item)
try:
    window = panel[int(sys.argv[1])-1][0]
    run_command("wmctrl -ia "+window)
except IndexError:
    pass

Explanation

The solution is an opportunistic one. It occurred to me that the windowlist, called by the command wmcrl -l, is  ordered by the age of the windows. By making the xfce panel do the same (settings), both orders are corresponding perfectly. What the script does is creating a window list, filtering out the "real", visible windows (with xprop) and switch to a chosen window by the command panel_navigate, with the number of the window (from the left to the right) as an agrument.

Issues

I noticed one exception: the IDLE (python interpreter) windows have pid 0 and their properties can not be "researched" by xprop. The windows do not appear in the windowlist and are skipped by the script.

Note

Although the Key combination Ctrl+<number> didn't raise any errors while testing, it might conflict with some applications. It might be safer to choose (e.g.)
Ctrl+Alt+1


Boot into a live CD and try this Ubuntu option instead of the easyBCD one in windows.

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

I've had similar issues.


I had the similar problem. I think the cause was libsnmp30 (whatever this is).
So, to solve first kill libsnmp30 by running:
sudo apt purge libsnmp30
sudo apt autoremove

Next you upgrade the OS with a command do-release-upgrade. If you don't have it, run sudo apt install ubuntu-release-upgrader-core.

Then run
sudo do-release-upgrade -c

to check the upgrade is what you are desiring.
Finally run
sudo do-release-upgrade
and wait for the upgrade to finish (you may get prompts, answer yes/no accordingly).
Good luck!


I'm a little confused about how you're launching the game. Why did you mention that you're using Proton but trying to run the native game? FYI Civ VI doesn't seem to work with wine, period. Including patches and custom distros of it, like Proton. So either you run the native version through steam or you don't run it at all, as far as my experience tells me.


Try this command:

ip route show to default | grep -Eo "dev\s*[[:alnum:]]+" | sed 's/dev\s//g'

Information:

grep -Eo "dev\s*[[:alnum:]]+": Get the device name after the ord "dev".
sed 's/dev\s//g': Remove the leading space from the previous output.


I have the same problem is a bug in the intel graphic driver,
first make sure to update everything so

sudo apt dist-upgrade

update the linux-headers-generic and reboot, then open a terminal with CNTRL + ALT + T keys.

the type

sudo nano /etc/default/grub

and look for a line that says betweeen quotes "quiet splash"

just in the same spot add

acpi_backlight=video

so now looks like

"quiet splash acpi_backlight=video"

with that done just save and exit and then write

sudo update-grub

with all of this done just reboot and you will be able to use the brightness keys


Would Mdadm be faster than fake raid adapter?

To test if the performance goes up moving to mdadm using a proper host-bus adapter (AHCI) capable card, you should just try that out. I don't have this hardware available, but I can give you some general advice against using 'fakeraid' in favour of Software RAID:

Software RAID is totally independent on the controller you're using. In case the controller dies, you can just re-plug the disk in another one and access your data.

(Okay, you may be screwed as your disks/data may die too after a controller failure, but that's another story.)
Software RAID has been tested more thoroughly. It's not just running on that particular device - the code is totally independent to it!
Easier recoverability. In case you totally screw up, more people will be able to help you out, as again, the format of the metadata on the array is independent of the controller.
Software RAID is more flexible. It allows you to change the RAID type (e.g. upgrade from RAID1 to RAID10, RAID5 to RAID6), resize the array, etc. Some of these features might come with the fakeraid card too, but it's not likely that all of them are included.
The driver for your fakeraid card may not be developed for anymore some later time. It could prevent you from upgrading the system/kernel. Software RAID is of course not affected by this.
In case you're troubleshooting performance issues, you're a lot more likely to get help using regular Software RAID, as it's more generally available.
With some fakeraid cards it's not possible to access the health status of your hard drives anymore (S.M.A.R.T.). Software RAID does not restrict you to do this.

Downsides too:

Dual boot with Windows will not be possible with software RAID with both OSs on the same array.
Accessing data from Windows or other OSs not possible. You'll simply need a Linux kernel to access your data.
maybe more, I can't think of more now


Showing a "cowsay" fortune in every new terminal session

Open the file ~/.bashrc (or /etc/bash.bashrc if it should work globally for all users).
Add the following at the bottom of the file:

if [ -x /usr/games/cowsay -a -x /usr/games/fortune ]; then
    fortune | cowsay
fi


Does the LibreOffice 5.2 snap use my existing profile?

Not currently. As snap packages will be containerized in the end, it is unlikely to do in the future -- at least not in this simple a way. We will need a solution for profile migrations and not reinstalling extensions for each update. After all snap will enable up- and downgrading and parallel installations of different version of a software.


zsh aliases doesn't work from .zshrc file

You have to restart your current Z shell or to source .zshrc file in the current Z shell session in order to make it work:

source ~/.zshrc

Also, sshfs must to be installed. If you don't have it installed, you can use the following command to install it:

sudo apt-get install sshfs


ssh: connect to host port 22: No route to host

you have a connectivity problem that is why you get the message "Destination Host Unreachable". Also the message "no route to host" points to the same problem, you internet connectivity. ping google.com or 8.8.8.8 to make sure your connectivity is Ok, if it works then you can check your friend's IP address is Ok or whether ssh connectivity is allowed on port 22 of his device. That is the little I know, hope it helps in finding a solution


How to replace Bodhi Linux with Xubuntu on my dual-boot system?

Yes, exactly - you can format the Bodhi Linux partition and install Xubuntu on this partition. Boot from the Xubuntu installation media, choose the option Something else and select the partition where Bodhi Linux was installed as the target partition for the Xubuntu operating system. Here is a  comprehensive installation guide : A Step By Step Guide To Installing Xubuntu Linux. There is nothing special to take care of - most important is to choose the Something else option, right at the beginning ... to avoid accidental damage of the Windows operating system you want to keep.


Found the answer in another question. Just needed to use Seahorse on the second user to create a local keyring and then set it as the default one.


How to use Virtual-Box / Unsuported USB Hardware / US144 in Ubuntu?

Yes.

You will need to install the closed source extension pack and add your user to the vboxusers group.

I do it quite often to run programs protected by hardware keys that connect to usb machines. Linux doesn't support either the key or the machine (although the machine is probably using a simple usb-serial port emulation). It works nicely with a Windows XP host.


For Ubuntu 18.04 Your CPU doesn't meet minimum recommended CPU frequency 2 GHz. From 17.10 onwards the desktop uses GNOME Shell. In order to run these environments the system needs a more capable graphics adapter with 4096 MiB RAM and 3D Acceleration Capable Videocard with at least 256 MB.


Disable Lethe read-only freezed drive on 18.04

I solved in this way.

If I press [Esc] too soon, I got the GRUB minimal BASH,
but if I don't press anything, the system start in the right way (but with Lethe and so with the Read-Only Drive)

So I should modify the grub:

sudo cp /etc/default/grub /etc/default/grub.bak

sudo nano /etc/default/grub

and have something like this, with STYLE COUNTDOWN and TIMEOUT greater than 0:

  GRUB_DEFAULT=0

  GRUB_TIMEOUT_STYLE=countdown

  GRUB_TIMEOUT=10

  GRUB_DISTRIBUTOR=lsb_release -i -s 2> /dev/null || echo Debian

  # GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

  GRUB_CMDLINE_LINUX_DEFAULT="text"

  GRUB_CMDLINE_LINUX=""

and after launch the classic

sudo update-grub

but I have to enter just a second or with a Live USB or in not Read-Only mode.

So with GRUB minimal BASH, just digit

normal

and immediatly start to press repeatedly [ESC] to reach the GRUB 2 menu.

Here simply by selecting Advanced options for Ubuntu you can launch the normal mode for modify and update the grub mode, to have more than 0 second to choose this line.


Re-placing a table in LibreOffice writer causes unwanted page break (huge gap)

The issue you see with the spacing is likely temporary, and likely related to a Libreoffice issue in automatic text flow. Likely the gap will be gone if you close and reopen the document, or if you do some action that require Libreoffice to recalcalculate the text flow. I also had this experience.

User AlexP mentioned two formatting options that actually may cause a table to be moved to another page.

The table which gets moved to a new page may be set to disallow page breaks; check this by going to "Table › Format › Text Flow".
The paragraphs in the cells of the table that gets moved to a new page may be set to "Keep with next paragraph"; to check, select the entire table, go to "Format › Paragraph › Text Flow" and verify that the checkbox "Keep with next paragraph" is cleared.

To merge the two tables you pasted, place the cursor between the two tables and press the Delete key to remove the space. Then place the cursor in the lower table, and select "Table > Merge Table" to actually merge the two tables into one.


Screen is black, but connected according to xrandr

Use xrandr -qto see all modes and rates.

Then use xrandr --output *name of display* --mode *resolution* --rate *frame rate*to set both frame-rate and mode. The problem was the rate for me.


An ISO image is a file that contains a complete copy of a CD or DVD. You can either use this file to create a DVD or mount the file on a local drive.

On Linux, you will need to use the mount command. First make a mount point, which is just a folder. For example:

mkdir /media/mathworks

Then mount the downloaded ISO to that directory. For this example, the ISO is in the home folder under the downloads folder and the ISO is called matlab.iso(if you have downloaded on to the same system):

mount -t iso9660 -o loop ~/downloads/matlab.iso /media/mathworks

Now you can navigate there and run the installer as if it were a copy of the DVD, for example:

cd /media/mathworks

./install

On Windows, this would require third-party software to create a virtual CD or DVD drive from an ISO image.


PulseAudio stops when it has not been used for a certain time. You can make the time shorter with the exit-idle-time setting in /etc/pulse/daemon.conf.
Alternatively, use PulseAudio for recording.


How to measure exactly the size of filesystem

To measure the disk usage of a filesystem, there's df (with -k for output in kB):

$ df --output=used -k /
    Used
15761016

  Also, when we do apt install pkgname, a deb file will be downloaded in /var/cache/apt/archives/...

Not with apt. See Where are packages stored installed with APT in Ubuntu 16.04? apt-get and others will still save the deb file, but for that you have apt-get clean:

clean
   clean clears out the local repository of retrieved package files.
   It removes everything but the lock file from
   /var/cache/apt/archives/ and /var/cache/apt/archives/partial/.


As I understand smbclient shell does not support grep and io redirection. But you can just mount your samba share to local file system and use all features of bash shell.

You need to install cifs-utils.

$ sudo apt-get install cifs-utils

Now you should be able to mount samba share. Here is example

$ mount.cifs //192.168.1.1/share_point /path_to_your/local/folder -o user,uid=1000,rw,workgroup=DEV,credentials=/path_to_credentials/.cifs

You have to create /path_to_your/local/folder

$ mkdir /mnt/my_share

and credentials file. I suggest to create folder crd in your $HOME, change permission to 700.

$ mkdir ~/crd
$ chmod 700 ~/crd

Now in $HOME/crd create .cifs file with this content:

username=value
password=value
domain=value

Change permission to this file to 600.

$ chmod 600 ~/crd/.cifs

Now you only need to substitute IP address:

$ mount.cifs //192.168.1.1/share_point /mnt/my_share -o user,uid=1000,rw,workgroup=DEV,credentials=$HOME/.cifs

You may also want this mount to be mounted on boot automatically. Add this to your /etc/fstab, at the end

//192.168.1.1/share /mnt/my_share cifs uid=1000,credentials=$HOME/.cifs,iocharset=utf8,sec=ntlm,noauto,user 0 0

Don't forget to substitute $HOME with your home folder, and IP address with appropriate IP.

Sources

mount.cifs man
About smbmount
About fstab and smb mount


Make touchscreen working with Ubuntu 13.10 on Dell XPS13

I have just installed 13.10 on my XPS13 (9333) and enabled the touchscreen by installing the additional drivers available directly from Dell. The steps I followed were:

Visit the Dell Support site and entered the service tag for my XPS13
Selected Get Drivers > View All Drivers
Changed the selected OS to Ubuntu 12.04
Downloaded 'Ubuntu Driver Support Pack for Dell XPS 13 Haswell'
Extracted the contents of that file and installed 'config-usbhid-synaptics-touchscreen_1_all.deb'
Rebooted.

After that the touchscreen worked. I haven't installed any of the other drivers from the pack as everything else seems to be working ok.


Is there a way to change the path that my files must be saved other than /var/www/html?

Yes, of course:
check ServerRoot in your apache config.
Here are few examples:
# Ensure that Apache listens on port 80
Listen 80
<VirtualHost *:80>
    DocumentRoot "/www/example1"
    ServerName www.example.com

    # Other directives here
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "/www/example2"
    ServerName www.example.org

    # Other directives here
</VirtualHost>


How to update Intel (Broadwell) HD graphics on Ubuntu 16.04

OpenGL is not the same thing as OpenGL ES. The latest version of OpenGL ES is 3.2.

To get the version of OpenGL, run:

glxinfo | fgrep 'OpenGL core profile version string'


Auto Connect to WPA Personal WiFi on startup | Ubuntu Server 18.04

The error messages show that the key you're passing to wpasupplicant is rejected by the AP.   You should double check that you have the correct key.

Once you have this working, you should be able to implement the configuration in netplan. I find netplan easier to configure than wpasupplicant.


You need to shift /dev/sda5 to the right, so the unallocated space will be next to /dev/sda9. Then you can resize /dev/sda9.

EDIT: CARE! This will take time, and you can't abort it. For such a small space however it should be ok.

EDIT2: In case it's not obvious enough, you shift it by grabbing the box and pulling it to the right.


I have a Windows 7 OP on the PC as well, so with that I could erase the Linux partition, then I restarted the ubuntu installation, and it worked. Windows was needed since virtual Ubuntu could not see the hard disks using 'fdisk'. So I recommend to start your PC with a live OP, then erase the linux partition.


eGalax touchscreen detects no input in upper part of the screen

After testing the display on windows with the same results, I came to notice a hardware defect. The FPC from the sensor to the controller is torn on the lanes that are responsible for the upper part of the screen.


Laggy preview for image sequence in all video editing programs in Xubuntu (Kdenlive, Openshot, Sony Vegas via Wine)

I figured out the problem, and thought I might as well leave this question up if anyone ran into this.

The cause was both Compiz and Nvidia's proprietary current driver 304. I had antialiasing and anisotropic filtering set to "override application settings", turning it off and set it to "use application settings", untick "Enable FXAA" and "Texture sharpening" fixed the problem. I also found that using Compiz also brought back that original problem back, so I switched it off. The quality of the playback of the image sequence isn't the best, but it's bearable compare to what it was like before which was playing one frame every 30 second.


You simply need to install the adobe-flashplugin package from the Partner repository.

Note that the version shown in chrome://plugins will still be 11.2.999.999 and not 23. This is also true if you download the file from the page linked to in your question and place the libpepflashplayer.so file in the system folder.

However, if you visit https://www.adobe.com/software/flash/about/ it should show that you have version 23.


KDE Desktop icons glitched after suspend (Kubuntu 16.10)

Nvidia cards exhibit this weird display corruption when resuming from sleep. Simplest work around is toggle the compositor: alt+shft+f12


Wired LAN works for 5 min and then stop working

Try wicd  from Synaptic or Software Center, or install it with:

sudo aptitude update && sudo aptitude install wicd

(Or use apt-get if you don't have aptitude.)

After you install wicd, you have to uninstall network-manager.

This may improve things substantially--try it and see!


How can I manage Empathy (Online) accounts in Lubuntu 12.10?

Online accounts can be accessed by command line (package gnome-online-accounts must be installed):

gnome-control-center online-accounts


When trying to install Wine on 12.10, 'Sudo' command will not let me type in a password

To answer the question you asked in the title of your topic:

When you type a password in a Linux shell, it doesn't show anything, on purpose.  Just go ahead and type your password and press Enter.

Take a look at the following screenshot from my computer.  I typed my password successfully at the su prompt (su is similar to sudo) but saw nothing.  My password was still entered correctly and I obtained root.


How to create LVM based nodes in MAAS 1.8

It looks like the preseed option is still there.  The default is:

d-i     partman/early_command string debconf-set partman-auto/disk `list-devices disk | head -n1`
d-i     partman-iscsi/mainmenu string finish
d-i     partman-auto/method string regular
d-i     partman-lvm/device_remove_lvm boolean true
d-i     partman-lvm/confirm boolean true
d-i     partman-md/device_remove_md boolean true
d-i     partman/confirm_write_new_label boolean true
d-i     partman/choose_partition        select Finish partitioning and write changes to disk
d-i     partman/confirm boolean true
d-i     partman/confirm_nooverwrite boolean true
d-i     partman/default_filesystem string ext4

You should be able to tweak this as needed.


Most of the things you find below /dev are either "block special" or "character special" things, and you rather to not change them manually. Your example shows a disk drive partition provided by Xen (what on a "normal, nonvirtual machine" would be /dev/sda1).

For more details on this special device, please see What is the “/dev/ xvda1 ” device?

For more details on what devices, and especially block devices are, you may consult Device file - Wikipedia, the free encyclopedia.


How do I calibrate colors without extra hardware, like dccw.exe on Windows?

You can use gnome-color-manager to do the same in Ubuntu. For Xubuntu have a look here


Answering my own question,

I solved it by doing the following in /usr/lib

$ sudo ln -s /opt/VulkanSDK/1.0.17.0/x86_64/lib/libvulkan.so.1.0.17 libvulkan.so.1.0.17
$ sudo ln -s /opt/VulkanSDK/1.0.17.0/x86_64/lib/libvulkan.so.1 libvulkan.so.1
$ sudo ln -s /opt/VulkanSDK/1.0.17.0/x86_64/lib/libvulkan.so libvulkan.so

Maybe not the best solution but it works for now.


Help getting wireless working on MacBookPro8,1

This is a case of you way overthinking.

First fix your packages

sudo apt-get -f install

Let it do it's thing.

Next in Ubuntu 12.10 the wireless "just works" but you likely have to install the proprietary driver.

Go sit next to your router and plug in the old fashion way. Then run sudo apt-get update.

When that is finished run 'jockey-kde' you may need to install it.  Then just activate your wireless driver from the list.

That should be all there is to it. jockey will take care of the rest. It should have popped up when you fist started the computer, but I don't see any easy way to run it if you missed the alert. Just run it from terminal instead.

Side note, you may want to plug in and run apt-get update before apt-get -f install, but that's up to you. If your running 12.10 you should not need any kind of backported driver the wireless nic in the 8.2s has worked well from 11.something forward.


Cannot install banshee due to unmet dependencies

Have you tried sudo apt-get -f install banshee? The -f argument should install all dependencies required, along with the actual program (that's important). It's weird that the dependencies in a .deb didn't install.

If that does not work, you should probably check and see what repositories you have (open up software center, go to edit, then go to software sources). You should have a few in there, and make sure the correct fields are checked.

It is important that Canonical is selected.


No, there is no evidence that the attacker gained access to your system.

Let's go through the relevant log entries:

new group: name=guest-slrfad, GID=999
new user: name=guest-slrfad, UID=999, GID=999, home=/tmp/guest-slrfad, shell=/bin/bash
Successful su for guest-slrfad by root
+ ???  root:guest-slrfad
session opened for user guest-slrfad by (uid=0)
New session c3 of user guest-slrfad.
[more "session opened/closed" messages]

The attacker is not creating this account; the system is. The attacker is only logging into a guest session, and you can't do anything to the system in a guest session (you don't even have a home directory on the hard drive; you only have a temporary one in RAM which is removed when you log out of it).

session opened for user root by (uid=1001)
Executing command [USER=root] [TTY=unknown] [CWD=/home/sachithra] [COMMAND=/usr/lib/update-notifier/package-system-locked]

Again, this is normal and is being done by the system, not by the attacker.

CRON[13099]: pam_unix(cron:session): session opened for user root by (uid=0)
CRON[13099]: pam_unix(cron:session): session closed for user root
CRON[13203]: pam_unix(cron:session): session opened for user root by (uid=0)
CRON[13203]: pam_unix(cron:session): session closed for user root

This is also normal; the system is just doing routine tasks. This has nothing to do with the guest session.

And everything else is after 4:35 PM. So no, there is no evidence that the attacker did anything to your system.


Alt+Tab for switching applications looks like GNOME 2, not like the screenshots I've seen

If it looks like the image below, you're probably running Unity 2D, which does not yet have the nicer alt+tab that Unity has. If you haven't actively chosen to use Unity 2D, that might mean your video card or graphics driver doesn't support it.


Check that filesystem and partition table are in a good state?

If you have a MBR partition table, you can use fdisk:

sudo fdisk -l

This command will print out the partition table and will also automatically perform some consistency checks. If instead you have a GPT partition table, you can use gdisk (thanks Rod Smith for pointing that out):

sudo gdisk /dev/something

where /dev/something is the path to your disk device file (e.g. /dev/sda). From the gdisk interface you will be able to press v to run consistency checks.

About the filesystem, there are many ways to perform the check, the one I prefer is this:

sudo touch /forcefsck

This way, once you reboot the computer, the filesystem is checked for errors. This is a nice way of doing it because you don't need to worry about the dangers of running fsck.

It's worth noting that the file /forcefsck will be automatically deleted as soon as the check has completed.


According to https://launchpad.net/ubuntu/vivid/+source/bluez Ubuntu 15.04 will feature bluez version 4.101 (or one slightly above that, if the devs make another pull from upstream).


In awk associative arrays are traversed in a non-determined order. Replace your

for (i in a)

by

n = i
for(i=1;i<=n;i++)

To enclose your awk in a bash script you can use something like

#!/bin/bash
for file
do  awk -v file="$file" '....' "$file"
done

Make sure you run chmod a+rx on the script file.
Also replace the line

fn="file" c;

in your awk script by

fn = c "_" file;

This line is how your new filename is built: the awk variable file is initially given as value the name of the
file being processed (the syntax is: awk -v variable=value). The awk variable fn is your
new filename, and is the variable c which holds the number, concatenated with the character _ and the
filename variable.

You can run this bash command with several files as arguments. They are processed by the awk
one by one.

Final result:

#!/bin/bash
for file
do awk -v file="$file" 'function print_vals() {
   fn = c "_" file;
   print hdr > fn;
   print "REGION  chr", sn, en >> fn;
   n = i
   for(i=1;i<=n;i++)
      print a[i] >> fn;
 } NR == 1 {
   hdr=$0;
   c=0;
   next
 } NF==2 && $1 >= 1000000*c {
   if (c)
      print_vals();
   delete a;
   i=0;
   c++;
   sn=$1;
 } NF==2 {
   a[++i]=$0;
   en=$1;
 } END {
   print print_vals();
 }'  "$file"
done


Why can't I connect to my launchpad ppa with quickly?

This is a bug in Quickly. You should report this bug on Launchpad using the command:

ubuntu-bug quickly

and attach the output from the command.