How do I set and store the custom Keyboard Shortcuts? (Ubuntu 14.04)

To show all:

gsettings list-recursively  | grep --ignore-case "keys\|hotkey\|keybind"

To get:

gsettings get org.gnome.settings-daemon.plugins.media-keys calculator

To set:

gsettings set org.gnome.settings-daemon.plugins.media-keys calculator 'Hiragana'

For more info:

man gsettings

To easily get the values for "special" keys (multimedia, non-standard function keys):

xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'

All these are standard in any recent Ubuntu; no need to install any additional tools.


libjpeg.so.62: cannot open shared object file: No such file or directory

Are you running a 64bit version of Ubuntu? If so than you need to install the 32bit version of libjpeg via this command

sudo apt-get install libjpeg62:i386

It seems hacketyhack uses the 32bit version of libjpeg


Crackling Sound Error - How do I limit available RAM

You can control this with kernel parameters. If you follow the prompt to edit your Grub menu items when you first boot you can add parameters.

http://www.cyberciti.biz/howto/question/static/linux-kernel-parameters.php

The mem and max_addr parameters would seem to be the most relevant.


How to remove temp installation packages

I'm not sure why sudo apt-get clean isn't found for you, but one way to clear up some space is to run sudo apt-get autoremove, which can remove packages that aren't used by any other packages (such as a package installed with another package as a dependency but the package that depended on it is no longer installed, sorry if that didn't make much sense).

One other way to clear up space is to just restart your computer. That will (if I remember correctly) clear out your entire /tmp directory, which stores temporary files.

If the program that spits out the not found error is sudo and not apt, then you would have a much more serious issue on your hands, and the only way I can think of to restore Aptitude (more commonly known as apt or apt-get) is to reinstall Ubuntu.

Hope this helps.


It seems remastersys is not well supported in latest distribution. I suggest you use systemback. It also has some extra nice features. I have been able to successfully create an iso with it and written it to a 4G memory stick. However it failed to write to a 16G memory stick. I had to use unetbootin for that. My suggestion is to use systemback for creating an iso file and then unetbootin for writing to USB.


I believe I fixed the issue. The issue was with the latest version of Chrome. What led me to suspect was I would see print_req_error which I believe would only come from Chrome, as nothing else would use a printer.

I may be completely wrong on this. However, I switched to chromium and I have not had the ATA errors so far.


Why is Firefox not respecting my plugin choices for AMR files?

I tested the file.

With browser-plugin-vlc installed (sudo apt-get install browser-plugin-vlc) it plays without problem on my Lubuntu 13.10 but has a minor problem with Ubuntu 12.04. First you have to make sure that the plugin is allowed to execute by clicking on the "LEGO-brick" before the URL-bar. (For me it was allowed and I think it was for you too.) After this you will see the VLC-cone as the plugin loaded, but the controls are disabled on 12.04. You have to right-click on the VLC-cone and select Play. After this the plugin controls are no more disabled and the audio is played without problem.

The changes made in Firefox preferences for the preferred applications doesn't have any effect on embedded objects (that is the purpose of embedding) that is why it won't help in your case. From mozilla:

  Also, when a plugin is available to handle a content type and you choose a different action for that type, Firefox will only take your chosen action when you access the type directly. For example, you may choose to open these files with a media player application instead of using the plugin that is set to open it. In such cases, your chosen application will be used for file downloads but, when the content type is embedded inside a web page, Firefox will continue to use the plugin to handle the content type.

If you still can't make it work by right clicking on the VLC-plugin then something is broken in your plugin. Unfortunately I don't know any browser plugins which explicitly support amr on Ubuntu, but it can still be made playable. In this case you will have to install the Force-Content Type firefox addon and change the amr content-type to e.g. mp3 which will trick firefox to load the Totem plugin for the file, which will have no problem opening the amr file although it doesn't explicitly support it.


The error means that /dev/video0 is not a video capture device. Perhaps you need to set another device using:

gst-launch-1.0 v4l2src device="/dev/videoX" ! video/x-raw,width=640,height=480 !  x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000

Where 'X' is the number of your video capture device. It might also happen that your device can't capture in 640x480 so you might want to add a videoscale before the  caps and also it is safe to have a videoconvert before the encoder in case the input is in a format that the encoder can't handle.

So something like:

gst-launch-1.0 v4l2src device=<device> ! videoscale ! video/x-raw,width=640,height=480 ! videoconvert ! x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000


Landscape Dedicated Server 15.11: Virtual Machines registering as computers

This is expected behaviour. The free license that we give out was always intended to be 10 free full metal computers and enough containers for the Autopilot to deploy OpenStack on those computers. We tightened that up in 15.11.

If you want to use Landscape with more than 10 total VMs and computers you need to talk to us to buy more seats


How many times i may force Ubuntu to shutdown with no problems?

A system that boots after a forced poweroff may still have other problems - unwritten or corrupted data, orphaned inodes and other filesystem corruption, and other possibilities. Each time is a fresh roll of the dice, a fresh chance of crippling damage.
NEVER poweroff a running system with a working kernel and mounted filesystem if you can possibly avoid doing so.
If shutdown (equivalent to sudo shutdown --poweroff) does not work,
then use halt (sudo shutdown --halt) instead to unmount the filesystems and gracefully stop the system before manually powering off.

Run the command from a real tty (like CTRL+ALT+4), not a desktop-session terminal.
Do not poweroff before your terminal indicates that the system is fully halted.


How can I read a variables file into a bash script?

I saw this technique:

read VAR1 VAR2 < path/to/input/file.txt
echo $VAR1
echo $VAR2

Source:

https://stackoverflow.com/questions/29270289/bash-read-from-file-and-store-to-variables


upgrade from 18.10 to 19.04 - computer opens to terminal

This "initial startup business" is called GRUB and it's your bootloader, required to boot Ubuntu. If don't dual boot along with Windows, you can simply hide it or shorten the GRUB_TIMEOUT value.

Related questions:

Grub menu still displayed with 18.04
How to set GRUB timeout to 0 on Ubuntu 18.04

When there was any kind of interruption during upgrade process and you have any other issues make sure that dpkg process was done fully by runing this in terminal:

sudo dpkg --configure -a

Also make sure that your Ubuntu is up-to-date by runing:

sudo apt update
sudo apt full-upgrade

When it comes for waking up your PC from sleep mode, there might be a bug in new Ubuntu. Please take your time to report it:

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


What traces are left after booting by usb?

Many disks store a counter of power-on cycles, readable via SMART.  (For example, in Windows one could use CrystalDiskInfo -- in all these screenshots you can read the "Power On Count" on the right hand side of the window https://www.google.com/search?q=crystaldiskinfo&source=lnms&tbm=isch)

This counter will be sensitive to booting off a different disk, but it won't be specific (the counter would also increase for entry to the BIOS setup screen, or a case where power was turned off again before loading the OS).

Because this counter is controlled by the drive's electronics, there is nothing that the Ubuntu software on the USB stick can do to prevent it from updating.  It might be possible in some cases to clear or re-write the counter, but this would be specific to the disk model / firmware version and clearing the counter would still be detectable.

Some system BIOSes also keep a log of system events.  I haven't seen one that records booting from removable media, but it is certainly feasible.

Of course you may also leave physical traces on the USB port itself, such as disturbing an oxidation layer.


Install Gajim from "Software" as usual (package name gajim version 0.16.5-1)
Start Gajim and navigate to Edit | Plugins
The first time you start plugins, the "Plugin Installer" plugin will want to update itself. Do this, then close the plugins.
Open Edit | Plugins again.
Go the the "Available" tab and wait for it to load
Find "OMEMO" on the list and install it.
Close Gajim.
Visit https://packages.debian.org/stretch/all/python-axolotl/download
Download the latest version (python-axolotl_0.1.35-3_all.deb at time of writing) from your closest mirror
Install the .deb file
Start Gajim and enable the OMEMO plugin (you may need to restart Gajim again)
You can now use OMEMO with contacts that also have OMEMO-enabled clients.

Notes:

This will probably be simpler in Ubuntu 17.04 onwards. Just install the packages gajim and gajim-omemo

References:

https://dev.gajim.org/gajim/gajim-plugins/wikis/OmemoGajimPlugin


League of Legends crash while applying patches

I'm currently experiencing the identical problem.

The solution I've read is this:

League of Legends requires AdobeAir to be installed. In PlayOnLinux, click on League of Legends -> Configure -> Install Components -> Adobe Air
If Adobe Air cannot be installed, this may be due to the current Wine configuration. In PlayOnLinux, click on League of Legends -> Configure -> Wine -> COnfigure Wine -> Libraries -> *dnsapi -> Edit -> Click "Builtin". According to my research, this should allow for Adobe Air to be installed.

I'm currently working on applying this solution, and I'm not yet sure if it works for me.


There are some links that may help you:

1- To get real speed of R/W: https://help.ubuntu.com/stable/ubuntu-help/disk-benchmark.html

2- To tune HD: http://www.linux-magazine.com/Online/Features/Tune-Your-Hard-Disk-with-hdparm

3- And to speed up ubuntu (If problem is in OS): https://itsfoss.com/speed-up-ubuntu-1310/

Thanks


Check If Users are Logged In, Check Condition, Shutdown Automatically at Set Time

You can check for active connections with:

netstat -an | grep ESTABLISHED | grep ":[portname] " | wc -l

Port 22 is for ssh connections.
Port 445 is for samba connections.

So add this to a bash script and add the bash script to a cronjob.

Creating a cronjob:

sudo su
crontab -e

Insert something like this for a check at 24:00 and a forced shutdown at 01:00:

# Check for shutdown system at 24:00 every day
00 0 * * * /usr/bin/shutdown_script
# Shutdown at 01:00 every day
00 1 * * * /usr/bin/shutdown -h now

Create the script (still as root ;) ):

gedit /usr/bin/shutdown_script

and add in the commands you want to check for:

#!/bin/bash
users_ssh=`netstat -an | grep ESTABLISHED | grep ':[445] ' | wc -l`
users_ssh_alertvalue="0"
if [ "$users_ssh" -eq "$users_ssh_alertvalue" ]; then
     /sbin/shutdown -h now
fi

and ofcourse make it executable.

You can make this more refined by adding more options to the if all you need to do is find the correct command to find the value you want to check. I have not (yet) found a nice I/O check though (iostat and iotop look promising).

edit:
while looking for a I/O check command I found mpstat. It reports processors related statistics (see man mpstat). CPU idle time from mpstat:

mpstat | grep all | sed -s 's/.* all// ; s/ * / /g' | cut -d ' ' -f10

So you could add this in and shutdown when CPU idle time is higher than 98%.


How can I type special quote/speech marks such as those used in Icelandic?

In Ubuntu you can use Ctrl+Shift+U and then type 201E for „ and Ctrl+Shift+U and type 201C for “.


I can't create both Swap and Ext4 partition

When you make logical partitions, they require one of your primary partition slots to be used as the base for the extended volume.

In this case, /dev/sda3 is the base for extended volumes, but /dev/sda5 is the only logical partition in there, and is using up the whole of /dev/sda3's storage.

Hope that helps!

EDIT:

The first answer on this question should show you how to enable the partition for use as swap.


Fail to connect to bluetooth headset on ubuntu 16.04

So after some digging, I have found that there were problems with pulseaudio and bluez.. something to do with the protocols which were delegated to gstreamer but I can't seem to find the post where I read this. something must have broken with the latest update, because I had my bluetooth working fine the day before

Anyway.. what solved this for me was purging pulseaudio and reinstalling it. as per this post:

$ sudo apt-get purge pulseaudio
$ sudo apt-get clean && sudo apt-get autoremove
$ sudo apt-get install pulseaudio*
$ sudo alsa force-reload
$ pavucontrol

And reboot.

I had tried purging and reinstalling only pulseaudio bluetooth module. But that had not solved the issue for me. So in the step where I installed pulseaudio, note I installed pulseaudio*. This installs all pulseaudio modules, including bluetooth.
You don't actually need to run pavucontrol, as you may need to install it. All it does for us here, effectively, is restart pulseaudio. I decided to install it because it has more utilities and setting options for pulseaudio.

The post suggests some more tweaking. but pairing/connection problems were solved for me after the reboot, so I never got to that.

A previous issue I had with pulseaudio presented itself right after I reinstalled it, where a2dp would not be recognised. If it happens to you, check this post for a fix.

Everything is working as expected now.


The chances of Ubuntu damaging your computer hardware are negligible.
You can choose to “Try Ubuntu” before installing it. That way you can discover and research possible hardware driver issues.
What you should consider is the risk, that you accidentally delete your data while repartitioning¹ your drive(s) for an additional operating system. Stick to the installation instructions or other reliable² advice³, be careful, and back up your data!

The performance of virtual machines cannot be compared reasonably to that of natively running software. They're known to have poor (graphics) performance without proper configuration.

¹ Can be done with during installation. The installer will assist you. For details see the answers linked at ² and ³.

² for legacy BIOS

³ for UEFI BIOS


What are the best known methods for installing programs or scripts for current user only?

Currently, the expected behavior of pip install --user in Ubuntu is to install into ~/.local/bin, so if you don't want that, then you should not use the --user option.

According to https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562, new user accounts created after the patch has landed will have $HOME/.local/bin added to $PATH by default. You can verify this by reading what is inside /etc/skel/.profile. I also have uploaded a GitHub gist of /etc/skel/.profile and you can see that the last line reads PATH="$HOME/bin:$HOME/.local/bin:$PATH".

In short, for "new" user accounts, you don't have to do anything. For "old" user accounts, you can append $HOME/.local/bin to PATH in /etc/environment, which would also affect the "new" user accounts too but no harm is done.


How can I assign aliases and remove them in GNOME Do?

This is a description of how it should work; I don't regularly use the Alias action, and it seems to be broken for me at the moment. I'll update this answer after it's fixed...

To assign an alias you just need to select the object you want to alias, the ‘Assign Alias’ action, and then the alias you'd like to assign in the third pane.

For example, after hitting Enter in the image below...

I'll have a new item called “The Twitts” that aliases to the Friends item.


How to show unread IMAP mail count in Byobu

You need to configure your system mail client included in the mailutils package to receive mails from you online account (e.g. gmail). Last time I checked the mail notification feature in byobu was premature. See https://answers.launchpad.net/byobu/+question/143784


How do I install wireless drivers for Ralink RT5370 offline?

You are using RT5370 USB device.
Download the driver from here.

  Give you Name & E-mail address and press Accept.

I assume you download it in Downloads folder.

Now open a terminal by pressing Ctrl+alt+t and type...

cd ~/Downloads
unzip Realtek_RTS5229_Linux_Driver_v1.07.zip

it will unzip the arcive in same folder.

cd Realtek*

There is a tar.bz2 type file.. untar it by typing

tar jxvf rts*
cd rts*

Now the installation part.

UPDATE : I forgot to mention, you need some dependent package to install sudo apt-get install build-essential to solve this.

make
make install
sudo -s
depmod
reboot

Done. Hope it helps.


Urdu language is not listed or installed in Ubuntu 15.10

Please follow this guide to install a new language:

https://help.ubuntu.com/stable/ubuntu-help/prefs-language-install.html

To type Urdu you may want to install the ibus-m17n package. Then log out and log in again. To enable Urdu (phonetic (m17n)), follow this guide:

https://help.ubuntu.com/stable/ubuntu-help/keyboard-layouts.html


It is always better to keep your system up-to-date. If you didn't add any ppa's, all updates you have recived are necessary. You can do this in terminal:

sudo apt update && sudo apt upgrade && sudo apt dist-upgrade

It is absolutely normal, that you will get some updates 4-5 times in week.


Which bit don't you understand?

sudo mkdir /media/MMCSD created a directory for you to mount the SD card to. Mounts require a "mount point", this is yours.
sudo nano /etc/fstab this edits /etc/fstab as root.
/dev/hdb1 /media/MMCSD vfat auto,user,sync,exec,uid=1000,gid=1000,umask=007 0 0 is the mount command. When the system boots, it looks for the device /dev/hdb1 and mounts it at your new mount point. It sets the filesystem to vfat (a fairly typical filesystem for a SD as well as setting a number of fairly default options to allow you to use the drive from your user account.


How do I create a simple loop daemon bash script?

There you go, it's pretty simple

#!/bin/bash

while [ 1 ];
do
  VALUE=$(xprintidle)
  if [ $VALUE -ge 600000  ];
  then
      gnome-terminal --full-screen -e 'matrix'
  fi
  sleep 0.25
done

Take the script above, save it in your personal $HOME/bin folder, as gnome-terminal-screensaver.sh. Make sure it is executable with chmod +x $HOME/bin/gnome-terminal-screensaver.sh. If you don't have one, create one. It is suggested to open $HOME/.profile and make sure that 3 lines bellow are uncommented:

# set PATH so it includes user's private bin if it exists
#if [ -d "$HOME/bin" ] ; then
#    PATH="$HOME/bin:$PATH"
#fi

Next, create $HOME/.config/autostart/gnome-terminal-screensaver.desktop file with the following contents

[Desktop Entry]
Type=Application
Exec=/home/username/bin/gnome-terminal-screensaver.sh
Terminal=false

Remember to change /home/username to actual /home/username


It seems you are not in the desktop directory, try to move to the desktop and compile again.

cd ~/Desktop
mpicc mpi_hello.c -o hello


Collate all data from each .txt file into one results file

Using a shell loop with awk and paste:

for f in *.txt
do
    printf "%s\t" "$f"   # print filename
    awk '{print $3}' "$f" | paste -s  # take third column and transpose
done

With output like so:

file1.txt   6   5   17  47  37  42  22  13  81
file2.txt   12  11  77  107 97  102 82  73  141

The header line can be generated from any file:

printf "%s\t" "file_name"
awk '{print $1}' file1.txt | paste -s


The Oibaf PPA worked for me. It has the latest versions and regularly updates.
You can run these commands to add the PPA to your system:
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt-get update


How to install the latest gmp library in 12.04?

You can install gmp using the following command.

sudo apt-get install libgmp3-dev

Also, check out this post.


rsyslogd and system log output weird or normal?

From that syslog line I can tell you the host 10.158.0.1 (SRC=10.158.0.1) is broadcasting (DST=255.255.255.255) a UDP packet (PROTO=UDP) from port 67 (SPT=67) to port (DPT=68).

Port 67/UDP and 68/UDP are used by DHCP server client respectively.

This is the expected behavior if the ASA firewall is a DHCP server. That logged packet can be a DHCP Offer or a DHCP acknowledgement.

Reference: http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol


Here's one way.

Delete the problematic file:
sudo rm /etc/apt/sources.list.d/archive_uri-https_dl_winehq_org_wine-builds-ubuntu_focal-groovy.list

You don't own that file. Root owns it, that's why you need sudo.

The file you are deleting is simply a text file. It contains an URL to the source that contains an upstream version of Wine.

That upstream source is a deb-package repository. Ubuntu automatically ensures that the packages you choose to install are not interfered with during downloading. However, anybody can host a repository -- checking the trustworthiness and compatibility of a source is your job (you are the human).

Since you just changed your list of sources, update your database of available packages:
sudo apt update

It's a good habit: ALWAYS update your database after EVERY change of sources.

Install Wine:
sudo apt install wine

Apt will download and install from whatever source has the newest version of Wine. That's one big reason to limit the number of sources.

Since you just deleted the (upstream) winehq repository, apt will discover wine packages in the existing Ubuntu Repositories. Since that's now the newest available to apt, that's what will get installed.

Pro Tip: Most new users don't need many new sources -- the Ubuntu repositories have all the software most folks need for common use.


Ubuntu 18.04.1 Slow when press Super key or clicking Show Applications

You can make it slower by disabling animation in Gnome Tweaks.

Or if you have Dash to Dock installed you can go to:

Dash to Dock Settings > Launchers > Animate Show Applications > Disable.


I see an issue but it may just be a misprint ..

the line should be :

//freenas/mast/ /media/plexshare cifs guest,uid=1000,iocharset=utf8 0 0

you have a space after uid and iocharset and it should be a comma

As you mentioned you are getting an error about only being able to mount as root. I also suggested trying

//freenas/mast/ /media/plexshare cifs defaults 0 0

If that doesn't help I can tell you the way I was able to get a network share drive to automount.

first you need to create a file in your users home directory

open terminal ... it should be at the users home directory

touch .smbcredentials

then

sudo chmod 600 .smbcredentials

open the file and add the following information

username=<user name needed to access the share>
password=<password needed to access the share>

once you have that file in place you will need to change or add the line to your etc/fstab at the end after all other lines.

//freenas/mast/ /media/plexshare cifs credentials=/home/<username>/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

This should allow it to login and mount correctly to the share.


BASH: boolean statement unexpected behavior when checking for whether a directory exists

Found my problem. The result from the <command-that-gets-version-number> | tr "-" "." line was leaving a carriage return character at the end. I noticed this because when I executed: ~$ printf %s "$NUM" | od -t x1 the output showed the last character was 0d, which is carriage return.


Wireless Not Connecting/Dropping Connection

I had the same problem and fixed it using the command:

sudo iwconfig wlan0 rate 54M


As of August 2017, this is still an issue.

You can workaround it without interfering with the package manager like this:

cp /usr/share/applications/org.kde.okular.desktop ~/.local/share/applications/okular.desktop


In the live session there should be an option on the desktop to install. Utilize this option and it will give you the option later on to wipe your hard drive.


Actual use of Software (such as Conky) AFTER installation

Ubuntu isn't like Windows (idk about Mac) and has a nice desktop interface. Run it by hitting the super key (Or CMD or Windows) and simply search for it.
If you want to add a desktop shortcut:
Press the Super (or CMD or Windows) key
Start typing to search for the application
Right click
Create desktop shortcut or add to favorites for it to appear on your taskbar


How do I make Unity remember which applications are in the launcher?

I've found the answer: dconf-tools and libdconf0 were not installed, so unity couldn't remember settings.

Use Software Center or apt-get to install:

dconf-tools
libdconf0


Use gconf-editor  to change Metacity options in apps/metacity/general

You need to tick compositing_manager and possibly compositor_effects. That works for me. You can read more about compositing here: Compositing in Lubuntu


Workaround for clang-3.7 missing Asan bug

I'm also surprised by how long this bug has been around.   I think it's actually fixed at this point, but there doesn't seem to be any plan to update the older packages.  Luckily, it turns out that fixing the broken packages after installation is quite easy.   You just need to download the correct libraries, and put them in the correct directory.

First, go to http://llvm.org/releases/download.html and find the matching version. I'm running 64-bit Ubuntu 14.04, so to patch clang-3.8 I want "Clang for x86_64 Ubuntu 14.04".  Download directly, or copy the right-click and "Copy Link Address" and use wget:

wget http://llvm.org/releases/3.8.0/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz

Uncompress:

tar -xf clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz

Then copy the library files (using -n to avoid overwriting existing files):

sudo cp -n clang+llvm-3.8.0-x86_64-linux-gnu/lib/clang/3.8.0/lib/linux/*.a /usr/lib/llvm-3.8/lib/clang/3.8.0/lib/linux/

If desired, repeat for any older versions of clang you have installed, although note that if you are using a Linux kernel more recent than 4.1 with a clang version earlier than 3.8 you may encounter another bug with -fsanitize=memory: https://llvm.org/bugs/show_bug.cgi?id=24155


All you should need to do is install a 32-bit version of Ubuntu to the SSD using your other computer; after that, once the drive is transferred to the neighbor's laptop, chances are good it will detect and adjust to the new hardware without problems.

Connect the SSD to your computer via USB cable, then boot your computer into a 32-bit live Ubuntu DVD or USB stick (as if you were going to install Ubuntu on the computer). However, in the Ubuntu installer, you will be choosing to install Ubuntu to the SSD, not your computer's main hard drive. Also make sure that when the installer asks where to install the GRUB bootloader, you choose to install it to the SSD (not your main hard drive).

Once the Ubuntu installer is complete, you should be able to transfer the SSD into the ASUS laptop and it should boot into Ubuntu.


Connecting Ubuntu 13.10 box to a VIZIO E601i-A3 TV

1) You want to use a proprietary driver instead of the open-source gallium driver. See here.

2) If your system is still unable to obtain and set a proper modeline via EDID, you can easily do so using the 3 terminal commands shown here (cvt and xrandr) with the display connected DIRECTLY to the video card. Make sure you substitute VGA-0 with HDMI-0... Once your valid modeline has been set, you should be able to re-cable through your audio receiver.


Grub 2 install error: grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist.

Dont know if you solved your problem, thus this is 1y ago.

I ran into a same situation recently in Ubuntu 18.04, that chroot to another directory and run grub-install:

$ chroot /media/cdrom0 grub-install

Throws error:

grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.

Finally solved this error by installing grub-pc:

$ sudo apt-get install grub-pc

After this, items under /usr/lib/grub changed from:

grub-mkconfig_lib  x86_64-efi  x86_64-efi_signed

To:

grub-mkconfig_lib  i386-pc  x86_64-efi


KDE Plasma doesn't recognize keyboard shortcuts, until I switch away from and back to KWin

Figured it out.

I was using Maté before; and Compiz was my preferred window manager. So, I had it set up to run "compiz --replace" on startup. KDE doesn't need it, of course; and when it ran, it hijacked keyboard shortcuts.

Now that I've disabled it, everything's running smoothly.


How can I make Ubuntu check for updates less often?

For 11.04 and higher

Start System settings.
Either search for it in dash or click on the gear in the top right corner.

click on Software sources

Choose updates

now choose how often you want to check for updates.

For people in a hurry!

Press Alt+F2 and search as shown and click software-properties-gtk, then jump to step 3.

OR open a terminal Ctrl+Alt+T, and type software-properties-gtk, then jump to step 3.

Via the Ubuntu software center

If you are more comfortable with using the USC then you could open it, and click on edit and then at the bottom software sources. Now just go to step 3.


What is a good place to collect lists of applications?

I would say the Ubuntu wiki? This is exactly the sort of thing it's for.

To start a new page, head over to (for example), http://wiki.ubuntu.com/MyNewGreatPage

This (assuming the page still doesn't exist yet) will give you a create link, and you can begin editing. The rest is up to you really, if you can being creating a useful resource you'll probably find others will help you along in no time :)


Program doesn't have permission to read it's own config file?

I must have run it as sudo the first time because purging it and reinstalling and then running as my regular user for the first time after the reinstall fixed the problem.  Thanks to dobey for the help!


Other answers on how to empty trash via command line are not working

If they show up in the Trash section they must be somewhere, I suggest you to run:

$ sudo find / -iname "*name_of_one_of_those_big_files*"

And wait to see if it shows anything.


How can I install another version of Ubuntu on my computer and then uninstall it without messing up my bootup process?

If this is a pc I would highly recommend to install ubuntu 11.10 on a separate hdd and you'll be able to dual boot.

see this documentation

Hopefully this helps.


To uninstall it manually on Windows 7:

1) Delete credentials: go to the control panel, search for "credentials", then remove the one that says "Ubuntu One"

2) Kill ubuntu one processes: Using the task manager kill the ubuntuone-syncdaemon, ubuntuone-control-panel-qt and windows-ubuntu-sso-client processes

3) Remove the c:\program files\ubuntuone (or c:\program files(x86)\ubuntuone) folder

This will only leave a couple of harmless registry keys and the start menu entries that you can delete manually.


Delete Ubuntu 32 bit and Install 64 bit Ubuntu

The best way to do it move all data from Ubuntu drive to mounted drives. Like your documents, pictures, downloads, desktop content etc. Easier way would be to then wipe your 32 bit install and go ahead installing your 64 bit version.

Make sure that you check where applications like Thunderbird, Firefox etc store their backup and take them to a safe place as well.


Remote desktop or VNC into Kubuntu 14.10 from windows

Indeed, with KDE, you can use xrdp package which will allow you to remote connect to your ubuntu or kubuntu system.
You can find detailed instructions over here
The steps are guide straight forward
Install xrdp on your kubuntu system using

sudo apt-get install xrdp

Tell your system to use kde desktop using this command line

echo startkde >~/.xsession

Restart xrdp and give it a try
Note that by default, the xrdp login page will use the English US Keyboard layout
Till next time
See ya


How to set startup screen with options to open either windows or ubuntu?

Windows 10 and ubuntu both have different boot options as you installed windows after ubuntu(ubuntu uses GRUB boot loader),It alter the default boot options (i.e., GRUB for Ubuntu).

IF GRUB boot loader doesn't pop/show at booting.You can try this:-

Step 1: Boot windows 10

step 2: Open Command prompt (Run as Administrator).

step 3: Copy paste this code in command prompt(CMD) :-

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

You don’t need to enter a password or anything like that.The command should run just fine given that your account has admin rights.

Step 4: Restart your computer and you’ll see a familiar Grub screen.Now choose your desired OS you want to boot.


Can you please provide the error message that is shown?

The reasons could be that,

a) you might have formated the drive containing Windows 7 and that is preventing the boot loader form booting into your particular operating system.

b) a fault with the bootloader program

To go into details try installing  Grub Customiser by typing the following commands into the terminal of ubuntu ( usually got by pressing ctrl + alt + Tkey)

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

you can see the operating systems installed and make necessary edits.

But community can help you better if you can provide the error shown .

Regards


Why is my shared folder in openmediavault still referenced?

Keep in mind that the backup plugin also uses a reference and it is now possible to set it to none for that reason.
https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-backup/issues/17


realtek r8168 driver compile errors on kernel 5.8.0-50, (On 20.04.1 LTS)

Now that you have the r8168-8.048.03 driver installed from Realtek it unfortunately does not contain the DKMS info for the driver to be taken over into new kernel updates.
To resolve this, we are going to create a dkms.conf file for this driver.
Create a folder for the new driver:
sudo mkdir /usr/src/r8168-8.048.03

Then go to the folder with the r8168 driver (or download and extract the driver from here) that was extracted and copy all of its contents to the newly created folder:
sudo cp * /usr/src/r8168-8.048.03/

Then create a new dkms.conf file in the new source folder:
sudo nano /usr/src/r8168-8.048.03/dkms.conf

and add the following lines to the file:
PACKAGE_NAME="r8168"
PACKAGE_VERSION="8.048.03"
BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="YES"
REMAKE_INITRD="YES"

Then save and close the file.
Now we're going to add the dkms driver to the kernel:
sudo dkms add -m r8168 -v 8.048.03
sudo dkms build -m r8168 -v 8.048.03
sudo dkms install -m r8168 -v 8.048.03

Then check the driver with dkms status.  If you see something about the driver that is built being different than the currently installed driver, run the following line to correct it:
sudo dkms uninstall -m r8168 -v 8.048.03 -k 5.8.0-50-generic && sudo dkms install -m r8168 -v 8.048.03 -k 5.8.0-50-generic --force

From now on with new kernel updates and upgrades the driver should now install automatically into the new kernel.
Hope this helps!


Ubuntu studio is nothing but Ubuntu with some special music/video related softwares. The customisability of Ubuntu(or GNU/Linux in general) that you can install any linux software on any linux distro (doesn't mean it will work).

So you can do everything that you do on Ubuntu, on Ubuntu studo as well.You can develop, test do everything.


Install Ubuntu from usb-stick: Caught in endless-reboot loop

Am not sure what is "Install Ubuntu inside Windows 7" !

Check this two links:

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

How can I install Ubuntu without removing Windows?


My dual-boot Ubuntu/Windos boots right into Windows

You need to boot to a live CD/USB and install boot-repair

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

Then find boot-repair in the dash

Then click the "Recommended repair" button. then reboot and check if you recovered access to your OSs

Documentation is HERE


Skype 4.3 can only use pulseaudio sound daemon to output sound. As I understand you have no sound at all in skype so I guess you either don't have pulseaudio or you don't have it running.

I would recommend you to install pavucontrol and try to figure out if you have sound input/output working.

So the solution:

sudo apt-get install pavucontrol; pavucontrol


No grub after switching to "boot in secure mode" (Windows8) after Ubuntu being installed

I solved the problem by deleting one of two identical Boot options in Bios. I am not a pro, only a user. But the message gone away. Maybe this helps...


Ubunutu 14.10 not detecting wired or Wifi connection

Please try the following and post the following output,

run iwconfig in a terminal,

iwconfig

and

ifconfig

Post the output please of the following also,

dmesg | grep "eth\|wlan"

(mods sorry, I cant comment yet)


You didn't say if what you want is to entirely close Banshee, or bring it back after you closed it.

If you want it back, try clicking on the sound icon on the panel (top left, where the volume controls are). There's a menu item that says "Banshee". That will bring Banshee up.

The answer to this question explains why Banshee works this way (i.e. it continues playing music even after you've "closed" it.

If what you want is to entirely quit Banshee, the question I linked to before has the answer (To quit Banshee, you must first pause the music.).


ASUS Zenbook UX425 made in 2020 numpad on touchpad activation issue

There is no solution for this yet.
For more details see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1810183
Someone needs to make a Linux driver.


Here is a good community guide to setup your file sharing network ( Ubuntu to Ubuntu and even Ubuntu to Windows )

https://help.ubuntu.com/10.10/internet/C/networking-shares.html

Also if you want to setup a UPNP Media Server ( to play videos/music/pictures in streaming from the server ) you can look at:

MediaTomb: http://mediatomb.cc/
( with Installation and configuration guide
https://help.ubuntu.com/community/MediaTomb )

Or if you're interested in PS3 streaming ( and similar devices )

PS3 Media Server: http://code.google.com/p/ps3mediaserver/


What can I use workspaces for, and how can they be used?

Workspaces help by uncluttering your main desktop and allowing you to run programs on each workspace instead...  Imagine web browsing on your main workspace while workspace 2 has your music player and workspace 3 has an important spreadsheet on screen ready for you...


What's the easiest way to upgrade Ghostscript?

ghostscript is not found under Ubuntu Software Center

So, either install it from there or you can just update your current version to latest one:

sudo apt-get update
sudo apt-get install ghostscript

If that doesn't work download one of the following:

64 bit
32bit

Then:

sudo dpkg -i /path-to-downloadedpackage.deb


Ubuntu 15: after installing and configuring java, echo $JAVA_Home is working, Java -version is not working

You need to add $JAVA_HOME/bin to your PATH

You can verify this easily:

$ PATH=$PATH:$JAVA_HOME/bin
$ java -version

After you've verified it works, edit your ~/.bashrc file to include the line

export PATH=$PATH:$JAVA_HOME/bin


Wrong sources.list entry or malformed file with apt-get update

Change the mirror server from the "Software & Updates" under "Ubuntu Software"


You can try to edit the BIOS EFI boot menu. Every OS installs an EFI boot loader. Through the boot menu, you can select which one to boot.


Verify that file transfer transferred files correctly in the command line?

I actually found a way with a lot of research, didn't dig deep enough prior to posting this. I'd like to reference it in this post here (On Ubuntu Forums, not Ask Ubuntu). User papibe commented:

  Ho jonnyboysmithy.

  It looks like a job for 'rsync'.

  By default rsync will copy and update files based on modification time
  and size. However, you can specify only to check file size.

  For instance:

rsync -av --size-only  source/  destination/

  I hope that helps. Let us know how it goes. Regards.


Why can't I select the folder to send to the cloud for sync?

Ubuntu One FAQ makes it clear that you can select only those folders in your Home directory to synchronize.

  No, currently you can only select to synchronize folders inside your home directory on both Windows and Ubuntu.

You can probably try symlinking/creating a junction in Windows to try put content from outside folders into your Ubuntu One folder and try syncing it+.

+note that I haven't yet tried this.


How to convert Ubuntu Server to Ubuntu Desktop?

You can use tasksel to install/uninstall most server related packages like Apache, SSH Server, Bind, etc. This is the semi-GUI tool appeared when you was installing Ubuntu Server.

Install it by:

sudo apt-get install tasksel

Run it by:

sudo tasksel

Uncheck every service you don't want.


How does squid-deb-proxy handle older/newer versions of Ubuntu?

The proxy works by caching the files themselves, so if you have an older version of Ubuntu and a newer version, most likely they will not share the same files.

So if you have 12.04 and 12.10, the cache will keep the files for each distro and will not share the .debs (except in the rare cases where a .deb goes from one release to the next without being changed). Usually if you have more than one of each version at a location that doesn't really matter as having a cache will still be better than none at all, but if you have an office with say one 10.04, one 12.04, one Debian, and one 13.04, then it'll keep a set of packages for each of those.

Though having cache misses for those can seem bad, it is nice when you have to upgrade an older machine and your proxy already has the files for the next version ready to go.

Also of note, the architecture matters, so if you have 64 bit 12.04 and 32 bit 12.04 the only .debs cached that will be applicable to both will be packages with data and documentation which are not architecture specific will be cached.


git clone fails with "Connection reset by peer"

As explained here the remote server dropped your connection for some reason. This could be caused by a number of reasons as mentioned by valiano in referring to this. A quick review of the link you mentioned indicates that the submodule path that you aren't getting to can be accessed here as a workaround.

Sources linked in the answer:

https://stackoverflow.com/questions/1434451/what-does-connection-reset-by-peer-mean

https://stackoverflow.com/questions/17977206/fatal-read-error-connection-reset-by-peer

https://github.com/riscv/riscv-qemu/tree/ff36f2f77ec3e6a6211c63bfe1707ec057b12f7d


How to avoid manually reinstalling zfs after kernel update

You get a package of zfs thats maintained faster, i.e. each release of the kernel, the maintainer is on it, and updates his code base for the new kernel right away.

Using arch linux, you will see that demizer updates the zfs-linux-git pretty much within a few days of the kernel being updated, which at that is always bleeding edge so he has his work cut out for himself for e.g.

Using LTS packages, you will might see these problems compounded since LTS means to upgrade kernels sparingly, which is what leads to this issue in the first place.

The best thing to do aside from that is to each time you update your system, when it warns you about the zfs, just wait and DONT update that day, and keep trying your update daily until the maintainer finally has released the new version when it no longer issues the warning.  If you practice this, your kernel will stay as updated as your zfs allows it, being at the mercy of your zfs package maintainer, and you will not have to ever rebuild zfs yourself, which is kind of a pain.


Nvidia 343.22 added support for GeForce GTX 970 and GTX 980. It's not available in the official repositories.

This repository is meant to be used only for testing, not on daily basis, please make sure to read the following link to understand the risk.

https://launchpad.net/~xorg-edgers/+archive/ubuntu/ppa

and follow the instruction on the above link as this PPA clearly states that no installation instructions shall be given for this PPA outside of their website!

Source


Ubuntu Gnome 16.04 window title bars for default app appear broken

The issue was due to some icon incompatibility. I was using 'Fs-icons-ubuntu-megypt' which was not compatible with Ubuntu 16.04. From the tweak tool, I changed the icons to default and the issue was resolved.


Here's a quick example of how to display the contents of a folder using a FolderListModel:

import QtQuick 2.0
import Qt.labs.folderlistmodel 1.0
import Ubuntu.Components 0.1
import Ubuntu.Components.ListItems 0.1 as ListItem

MainView {
    id: root
    width: units.gu(50)
    height: units.gu(75)

    Page {
        id: home
        visible: true
        title: "Files"

        FolderListModel {
            id: folderModel
            folder: "/"
            nameFilters: [ "*" ]
        }

        ListView {
            anchors.fill: parent
            model: folderModel
            delegate: ListItem.Standard {
                text: model.fileName
            }
        }
    }
}

It looks like:

Now of course, you want to do something with this information. Unfortunately, you can't iterate over the model as simply as you'd like to as explained in this post on the Beru developer's blog. He helpfully shows how to use the Repeater component:

    Repeater {
        model: folderModel

        Component {
            Item {
                Component.onCompleted: {
                    // Do something interesting here...
                    console.log(fileName)
                }
            }
        }
    }


I downloaded Kubuntu 15.04 onto my computer

Kubuntu is an operating system not a windows executable file.  In order to run Kubuntu, you need to burn the ISO to a CD, DVD or flash drive and boot from that device.

Kubuntu ISO is a Live CD so you can boot your computer to it and not harm or affect your Windows system. It will allow you to use Kubuntu until you get used to it, or when you are comfortable, you can install it on your HDD, or a separate HDD right next to Windows XP.  Then you can choose to boot on XP or Kubuntu.

An alternative is to install a Virtual Machine (VM) program and run Kubuntu in the VM while running XP.  Virtual Box is a great tool for that.  However, it will run slower and use up a lot of your resources operating inside XP.

Either way, you can work with Kubuntu and get to know it before installing it or without removing or damaging XP.


How to sync Ubuntu/software/configurations between N computers with free software and/or without a cloud?

As far as I understand it your intentions are:

Sync the installed applications
Sync your work
Sync your dotfiles (configuration)

Whatever you do, you will need some sort of cloud service. It doesn't have to be Dropbox. I highly recommend Seafile. I run it on Raspberry Pi at home for my syncing needs. Their documentation is easy to follow.

1. Application Synchronization

Until 13.10 this was an out-of-the-box feature. Today I would use Ansible or other configuration management solutions (like puppet or chef). The Anible Playbook specifies what you want to have installed. You can use Seafile to keep that synced and use a cron job to run Ansible.

2. Sync your work

Here I would definitely use Seafile. It allows you to sync any folder of your chosing and doesn't confine you to a single Dropbox-like folder.

3. Dotfiles

You can of course sync these with Seafile. An even better option would be to put all your dotfiles under git version control. You can join the crowd and put your dotfiles on github or use your own server as an intermediary. Some basic knowledge of git is of course required.


How to append string before and after a line using sed

You can use this :

sed -n '/\[Z\]$/ s/^//;/\[Z\]$/ s/$/<\/font>/p' file.txt

As you will use it over STDOUT of another command, so use it as e.g. :

some command | sed -n '/\[Z\]$/ s/^//;/\[Z\]$/ s/$/<\/font>/p'

It basically has two parts :

/\[Z\]$/ s/^// will match the line that has [Z] at last, then will add  at the start of the line by s/^//
/\[Z\]$/ s/$/<\/font>/ will match [Z] at the end of the line and then will add  at the end of the line using /$/<\/font>/.

Example :

$ cat file.txt
service:clus1-svr          clus1-node2                      started    [Z]
service:clus1-svr          clus1-node2                      started

$ sed -n '/\[Z\]$/ s/^//;/\[Z\]$/ s/$/<\/font>/p' file.txt
service:clus1-svr          clus1-node2                      started    [Z]

As @glennjackman has pointed out you can also use a grouping construct to do all the replacements for a single match :

$ sed -n '/\[Z\]$/ { s/^//; s/$/<\/font>/p }' file.txt
service:clus1-svr          clus1-node2                      started    [Z]

How about a bash solution :

while IFS= read -r line; do [[ $line =~ \[Z\]$ ]] && echo "${line}"; done <file.txt

You can use it as :

some command | while IFS= read -r line; do [[ $line =~ \[Z\]$ ]] && echo "${line}"; done

This uses the same logic as the sed one. If the line ends with [Z] ([[ $line =~ \[Z\]$ ]]), then the line is printed in desired format.

Example :

$ while IFS= read -r line; do [[ $line =~ \[Z\]$ ]] && echo "${line}"; done <file.txt
service:clus1-svr          clus1-node2                      started    [Z]


Clicking Link in emacs no longer opens page in browser

Summary: Firefox version 36 has removed the -remote option (see here). The emacs-lisp function browse-url-firefox uses this option on non-Windows systems. Changing the function to never use remote option solves the problem.

What specifically you can do: browse-url-firefox is defined in the emacs-lisp associated with your version of emacs - for me: /usr/local/share/emacs/24.4/lisp/net/browse-url.el. You can either edit browse-url.el, or redefine the function browse-url-firefox elsewhere. The specific change in the function browse-url-firefox is to change:

(use-remote
      (not (memq system-type '(windows-nt ms-dos))))

to:

(use-remote nil)


How do I install 13.10 beside 13.04 without using removable media?

You can actually make a bootable flash drive, instead of the traditional bootable disk! Now your most says you have no removable media, does this mean you have no flash drives?

In any event that you get a hold of a flash drive, there is a GUI you can use to make a bootable flash drive. Sorry at work right now and I can't think of what the program is called.

Let me know what happens!


My PC gets laggy and monitor crashes on Ubuntu 20.04

Check if you are using the AMD proprietory graphics driver. Do not use the free driver software.


Use these commands in terminal:

sudo add-apt-repository ppa:myunity/ppa
sudo apt-get update
sudo apt-get install myunity

I guess they can help. As may be this site.

Then use your commands:

sudo apt-get install myunity


Steam not installing - unmet dependencies

I wanted to mention the AMDGPU driver installed nicely and took care of those unmet dependencies and no need to preload libraries.
Ubuntu and AMD both may abide yet.

Hardware Details:
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, >Inc. [AMD/ATI] Cape Verde PRO [Radeon HD 7750/8740 / R7 250E] >[1002:683f] Subsystem: PC Partner Limited / Sapphire Technology >Cape Verde PRO [Radeon HD 7750/8740 / R7 250E] [174b:e213]
Kernel driver in use: amdgpu
Kernel modules: radeon, amdgpu
yakkety "Linux OGREOGRE 4.8.0-37-generic #39-Ubuntu SMP"


Rofi theme configuration not working. Ubuntu Xenial+i3wm

I had this problem on xUbuntu 16.04LTS and resolved it by uninstalling the rofi that was installed with apt install rofi. The ubuntu repo has the old version which doesn't have its own settings config.

Next I installed the latest stable release from https://launchpad.net/ubuntu/+source/rofi after installing all the dependencies that were listed in the docs. You can just try to install rofi from the downloaded deb package and the terminal will output what dependencies are missing. On my system that included:

sudo apt install build-essential libxkbcommon-x11-0 libxcb-ewmh2 libxcb-icccm4 libxcb-xrm0 libxcb-randr0 libxcb-xinerama0 libxcb-xkb1

Note that some of the dependencies will need to be downloaded from source like libxcb-xrm0

sudo dpkg -i Downloads/libxcb-xrm0_1.0-2_amd64.deb
sudo dpkg -i Downloads/rofi_1.3.1-2_amd64.deb

After the installation was complete, rofi started using my ~/.config/rofi/config and I did not have to logout and back in


How to install GeForce drivers for new Maxwell based cards?

Which cards will this work for?

I have not tested this on any graphics card except for the GTX 750 TI, but it should work for any NVidia card that is based on the Maxwell architecture. I recommend starting this tutorial with the GPU not installed.

Which kernel versions will this work for?

I had installed the newest Linux kernel at the time (v3.17) and it did not work with this installation. I would strongly recommend using the generic Linux image provided by Canonical. Newer kernel versions might yet be supported by DKMS and will cause a crash during the driver installation phase. I have tested this with 3.13.0-39-generic in Ubuntu 14.04 Trusty Tahr and it worked great. Use newer kernel versions at your own risk.

If you are running Ubuntu 14.04 with the default kernel, you shouldn't have any problems.

Step 1: Download the GeForce 343.22 driver

You can find it here. You MUST install this version of the driver or a newer one if available even if it is not technically supported for your card.

Any driver from the GTX 700 Series might work, but your card will not run smoothly. I tried using the GeForce 700 Series 340.58 driver and it worked for my card, but it was not perfect.

Step 2: Graphical part of the install

This part of the install can be done in Unity without any problems. Before you start this, make sure the driver has finished downloading, just in case. Just a warning, if you restart your computer during this part of the tutorial, you might mess up your graphics environment and you will have to start in safe-graphics mode to fix it. I have based this part of the tutorial on this answer to a similar question.

Remove any NVidia drivers that might have been installed with apt-get

sudo apt-get remove nvidia* && sudo apt-get autoremove

Prevent nouveau from starting at boot

sudo gedit /etc/modprobe.d/blacklist-nouveau.conf

Append these lines to the end:

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

Disable kernel support for nouveau

echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
update-initramfs -u

Step 3: Non-graphical part of the install

You may want to print out this part of the tutorial or open it on a separate computer, because you will not be able to view this webpage once you enter TTY mode.

At this point, you must enter TTY mode. You can do this by pressing Ctrl+Alt+F1. You can also get to other terminals by using the F2-F6 keys. Press Ctrl+Alt+F7 if you need to get back into graphics mode.

Stop the lightdm service

sudo lightdm stop

or

sudo service lightdm stop

Install for the GeForce driver

sudo bash ./NVIDIA-Linux-x86_64-343.22.run

This will probably tell you that a supported graphics card is not installed. We don't care, install anyways.

Make sure to answer yes to all prompts, even when it asks you if you want to enable 32-bit compatibility.

If the driver install has successfully completed, it is safe shutdown your computer.

sudo shutdown -h now

Make sure that the graphics card is properly seated in the motherboard, and turn your computer back on. Everything should now be working properly. Please comment if you run into problems with this.


what is the format of a log file? ( ex. Xorg.0.log...)

There are essentially no standard formats for log files. They are a "dumping ground" of sorts filled with information the authors of the software deem interesting or useful.

Often there are mechanisms to control the verbosity of the logging in the configuration files for the software. This can be useful when troubleshooting as it gives usually much more information which may lead to a solution. Once things are working the way they should be, the log level can be adjusted to only show errors or extreme situation for example.

Virtually all software that performs logging does this in different ways in my experience.

I would guess that the first field in that example is the timestamp of the logged event represented as seconds since boot.


How can I be sure to install the latest AMD/ATI graphics driver

i recommend you to watch this page :

HOW TO ATI Drivers

or if you like a video tutorial more, then go here:

ati driver installation ubuntu 12.04


Run iTunes without virtualizing Windows?

iTunes on Wine is the closest thing to "native" you'll get but it's not supported very well and you won't get device syncing.

iTunes through VirtualBox is probably going to give you the highest quality experience.. You'll probably be able to use devices (read: iPods, iPhones, iRacks, etc) as you would with a real Windows install. It's just heavy.

I do wonder why you want to run iTunes. If it's just for purchasing, playing and syncing audio files, there are alternatives (Rhythmbox, Banshee, Amarok, MPD+Frontends, etc) that are arguably better and are truly native applications. They just take a little getting used to.


I want to reinstall Ubuntu but I do not know which partitions to delete

msftres is the "Microsoft Reserved" Partition. It's used by some Windows tools, so if you are not going to delete Windows, you shouldn't delete this partition.

msftres is needed only for conversion from a basic disk to dynamic disk in Windows; it has nothing to do with Linux.

Reference: Microsoft Support

See also this Launchpad bug report which has some explanation of msftres oriented towards using Linux partitioning tools.


Getting Ubuntu Minimal + LXDE to automount USB drives

If you can't get it working with the pretty gui tools, maybe looking at the automount documentation and tweaking your /etc/auto.master: http://tldp.org/HOWTO/Automount-4.html


Mismatch of packages to be updated between Update Manager (gui) and apt-get(cli)

From the CLI output you can see that some packages have been kept back, such as new kernel versions/headers. While update-manager installs them by default, apt-get requires the dist-upgrade parameter to include such packages in its upgrades.

Technically, apt-get upgrade will not install any new packages, e.g. linux-image-..., while dist-upgrade will. For more information on the differences between upgrade and dist-upgrade see here.


I added domain=localdomain to dnsmasq.conf file which sorts the problem out.


What simple FLOSS software can I use to produce nice data visualization?

Tulip.

Download (80 Mb).
Installation: sudo dpkg -i tulip-debuginfo_3.3.1-2_i386.deb

3D visualizations
3D modifications
Plug-in support for easy evolution
Building of clusters and navigation into it
Automatic drawing of graphs
Automatic clustering of graphs
Automatic selection of elements
Automatic Metric coloration of graphs


Unable to boot after install Ubuntu 14.04 LTS on Dell Inspiron 5558 (UEFI)

DELL Inspiron 5558 has hybrid ( Intel / NVIDIA ) graphics.
This might be the reason that it boots to a 'black screen'.

First of all find out whether your special model has NVIDIA graphics hardware.
Some of the lower priced DELL Inspiron models only have integrated graphics.

Open a terminal and execute:

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

The output should show information about your graphics hardware and look similar to this :

If the output shows NVIDIA info install the latest stable NVIDIA driver and Optimus support.

Open a terminal and execute :

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


I needed to manually add the LUN for ESXi to see it exposed.

$ sudo ietadm --op new --tid=3 --params Name=iqn.2014-11.home.lab.san:storage03
$ sudo ietadm --op new --tid=3 --lun=0 --params Path=/dev/sda1,Type=blockio


If you did not run any update or anything the only explanation I could think of is that you accidentally clicked on the star in the upper-right corner of those scopes and made them "disappear".

In order to re-enable just pull the menu from the bottom to Manage your scopes. You will find all scopes you currently use (Home) as well as all scopes installed (Also installed).
Scroll down to find the two scopes you are looking for and click on the star next to them.


Are you using twinview mode?
If not and you are in the "multiple x server mode" you cannot move windows between your "screens"
because the represent multiple separate X-servers, that happen to share the same keyboard and mouse.

This is a limitation of how X works and cannot be fixed.


Mounting /cow on root failed: Invalid argument overlay mount failed

Received this error in Ubuntu [Elementary OS] using Rufus 3.8 when selecting persistence. The solution was to create a live USB without persistence, per comment above.


If you don't want to treat the cloud version of these files as primary, one option would be to store them in an unsynchronised location and regularly copy them over to a synchronised location.  That way changes made from your phone would only affect the synchronised copy and not the original, and if something goes wrong with the originals you should have your last backup in the cloud.

You could either handle the copying manually, or perhaps set up a cron job to do the copying for you.


How to configure MAAS to be able to boot virtual machines

In maas 1.2 through 1.8 the virsh power type requires only the Address and Power ID.

MAAS 1.8 Screenshot

MAAS 1.2-1.4 Screenshot

The libvirt-bin package needs to be installed to get the virsh command

$ sudo apt-get -y install libvirt-bin

the Power ID is the name of the virtual machine shown by sudo virsh list --all

The address is a normal libvirt connect string:

qemu+ssh://ubuntu@10.0.0.2/system

or

qemu:///system

If you want to use ssh you'll need to generate a ssh key pair for the maas user. By default there is no home directory created for the maas user.

$ sudo mkdir -p ~maas
$ sudo chown maas:maas ~maas

Add a login shell for the maas user (we'll only need this for the ssh-copy-id command later; if you're putting ssh keys in place manually or using a different mechanism, this step isn't strictly needed):

$ sudo chsh -s /bin/bash maas

Generate a SSH keypair as the maas user (hit enter three times to accept the default path and empty password):

$ sudo -u maas ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/maas/.ssh/id_rsa):
Created directory '/home/maas/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/maas/.ssh/id_rsa.
Your public key has been saved in /home/maas/.ssh/id_rsa.pub.

Then add the public key to ~ubuntu/.ssh/authorized_keys on the vm server so virsh can use ssh without a password:

$ sudo -u maas -i ssh-copy-id ubuntu@10.0.0.2

As the maas user, test virsh commands against libvirt at 10.0.0.2:

$ sudo -u maas virsh -c qemu+ssh://ubuntu@10.0.0.2/system list --all


Have you tried reinstalling the driver?

sudo apt-get install linux-headers-generic
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install --reinstall bcmwl-kernel-source
sudo modprobe wl

More info about Broadcom WiFi drivers here: Installing Broadcom Wireless Drivers


Acer Aspire 5742 webcam zoomed in on websites, works fine with normal applications

Tinychat.com uses Flash to work with your camera

Check your camera with the this site, for example.

If the image problem is the same, then this is a Flash related issue.


If no icon is found, a generic icon should be shown. That now you see a "black" icon leads me to suspect that there could be an issue with the icon referred to in the .desktop launcher you are showing in the linked image.
Thus, locate the icon file and check it. It should have an extension .png or .ico or .svg.
To create your own icon, create a hidden folder .icons or .local/share/icons in your home folder, and put a valid .png or .svg icon graphic in the folder. Then that one will be used.


After some searching, I've concluded that the correct answer to this is: You shouldn't.
Keeping old systems alive with newer kernels is too huge an effort with such a time gap as there is between 16.04 and 20.04, and as a single developer or user you simply don't have the resources e.g. of the Ubuntu HWE project.


Gnome terminal transparent background shows desktop

Run this command:

gsettings set org.gnome.metacity compositing-manager true

And then adjust the transparency settings in the profile preferences.


Can't change desktop environment from login screen in 17.10

source: How to Switch from GNOME to Unity in Ubuntu 17.10


There's a list of fixes for this device here on GitHub

What fixed this for me was to set i915.enable_rc6=0 (instead of 1 as the page suggests).

Open /etc/default/grub with a text editor, for example use

sudoedit /etc/default/grub

Find the line beginning GRUB_CMDLINE_LINUX_DEFAULT= and add the parameter between the quotes, do you end up with something like

GRUB_CMDLINE_LINUX_DEFAULT="i915.enable_rc6=0 quiet splash"

Save and exit, run

sudo update-grub

And reboot.


Answering my question:

With the default font sizes if the context menu is big it moves some times behind the panel but you must have small screen like my screen with 1024x768 resolution. I think this is a bug. I can find bug reports from over a year but the problem is still there. The problem affects and other software with long context menus.


There are two ways to change your default icons theme.

The terminal way:

Add the official PPA using add apt repository command:

Ex. I like the shadow icon theme, so we will take an example of that but of course, we can perform the same task for different themes:

sudo add-apt-repository ppa:noobslab/icons

Use the apt-get update command to update your repositories:

sudo apt-get update
Now install the icon pack with the install command:

sudo apt-get install shadow-icon-theme

The GUI (easy) way:

Download your preferred icon theme
here.
Navigate to your home directory cd "home-directory-name" and look for .icons folder (as this is hidden folder you may need to use: Ctrl + H or run the command ls -a when you are in the home directory.)
Please note that it is possible to not have this folder, so make one and name it .icons.

Note that in both ways you will need to use Unity tweak tool to enable the icon theme under the appearance tab.

The process is more or less the same for changing themes, cursor, and dock.


I have got it.I just had to delete ubuntu partition and use that unallocated space either as a new volume or use it to expand other drives...Done.
The method works like a charm.


Problem changing settings in desktop and programs in Ubuntu 12.04 LTS

This is only a partial solution, but since I did not manage to find the specific files responsible for the problems, but I removed all config files from /home and the problem was gone. First, of course, I got copies of everything. I could test and see where the problem was, but that would take a lot of work.


Possible to migrate 16.04 LTS laptop to full disk (luks) encryption?

I have done such migration once or twice but you have to be able to use google to solve issues that arrise. This is not a full answer, just rough steps of what you need to do. These steps have to be done from Live CD and involve operations with LUKS and LVM, so you might as well get a Live CD containing latest version of KDE Partition Manager 3.0 and use it for LUKS and LVM operations.

If you have enough free space (more than 50%) you can just

Resize your current partition.
Create a new LVM2 Physical Volume (PV) encrypted with LUKS.
Create a new Volume Group containing LVM PV.
Create new LVM logical volume for your rootfs (and probably swap and all other partitions you might have...). I myself use btrfs with subvolumes, so I only had btrfs and swap.
Move your data to encrypted partitions
Delete unencrypted partitions
Deactivate LVM and deactivate your LUKS container
Move LUKS container to the beginning of the disk (space freed by deletion of unencrypted data)
Open your LUKS container again.
Grow your LUKS container so that it fills entire disk.
Grow LVM LV containing your root file system.

Then you will have to update entries in /etc/fstab, create /etc/crypttab, chroot into your encrypted rootfs, update your initramfs and grub configuration.

This still leaves /boot unencrypted. You can encrypt /boot too but this adds a few extra steps, so first make sure everything above works. In order to encrypt boot, you have to move contents of /boot partition info your rootfs/boot/. Then in /etc/default/grub you need to add GRUB_ENABLE_CRYPTODISK=y and remove old unencrypted /boot. Then again you will have to update entries in /etc/fstab, create /etc/crypttab, chroot into your encrypted rootfs, update your initramfs and grub configuration. After these steps grub will be asking for passphrase before booting, however it does not pass it to initramfs on boot, so cryptsetup will be asking it again. Therefore you will need to add a luks key file to your luks container and put it in your initramfs. E.g. my /etc/crypttab file contains

luks-MYUUID UUID=MYUUID /boot/crypto_keyfile.bin luks


Assign multiple keyboard shortcuts for one action

You can assign multiple keyboard shortcuts (keybindings) for the same command using gsettings command line.

One important thing to know is that Ubuntu 18.04 Settings GUI only shows the first keybinding for a command, so if you have multiple keybindings for a command, the others won't appear in Settings. You can use gsettings to all the keybindings.

Let's say I want to add another keybinding for "Switch to Workspace 1". The default for me was Super+Home, but I want to add a second keybinding Ctrl+1.

# list all keybindings
gsettings list-recursively | grep -e org.gnome.desktop.wm.keybindings -e org.gnome.settings-daemon.plugins.media-keys -e org.gnome.settings-daemon.plugins.power | sort

# confirm no other keybinding conflicts
gsettings list-recursively | grep '<Control>1'

# set multiple keybindings for "Switch to Workspace 1"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<Super>Home', '<Control>1']"

# confirm value is set correctly
gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-1

Now you can use either Super+Home or Control+1 to Switch to Workspace 1. Remember, you will only see the first one Super+Home in the Settings GUI, but it will work!


I came to this page via a high ranked Google search but these answers didn't help me. Instead I cleared out my local repository of retrieved package files with:

apt-get clean


What does the dell-laptop kernel module do?

The driver in question can be found here:

http://lxr.linux.no/linux+v2.6.38/drivers/platform/x86/dell-laptop.c

On a quick scan of the code, it looks like it handles the rfkill switch (airplane mode), and backlight control.


I kept getting errors about cache and cache write through on booting, then it  asked for root password.

Anyway, I have fixed the problem. Here's how I did it:
In the section "The GUI Way: Reinstalling Grub" in the URL https://help.ubuntu.com/community/LiveCdRecovery
I tried to follow the recommendations for reinstallation from the Ubuntu Bionic installation CD. However, after choosing "Something else" for the partitioning, and hitting continue, I kept getting a warning "No root filesystem defined". I set this to /dev/sda6, where the ext4 partition containing Ubuntu had been located. I chose not to reformat. The LiveCDRecovery article said I should expect errors saying it cannot install and choose the install grub option. That never happened and the installation completed. When I rebooted I found that most of my data files, including MySQL databases were still there though I needed to reinstall many apps.

So I had a scare, thinking I had days of recovery ahead of me but instead felt a huge relief.

What I'd like to know is why Boot-repair never gave me the grub options and skipped everything except the boot info.


Given

$ cat file
{name: "Jon", kids: [{i: 1, n: "tyrell"}, {i: 2, n: "angela"}, {i: 3, n: "elliot"}]

then

$ sed 's/i:[^,]*, //g' file
{name: "Jon", kids: [{n: "tyrell"}, {n: "angela"}, {n: "elliot"}]

Add -i or --in-place to overwrite the contents of the original file

However if your file contains structured data you should use the right tools for the job - yours looks almost like JSON aside from the unquoted keys and missing terminating brace:

$ jq -c --null-input '
    {name: "Jon", kids: [{i: 1, n: "tyrell"}, {i: 2, n: "angela"}, {i: 3, n: "elliot"}]} |
  del(.kids[].i)'
{"name":"Jon","kids":[{"n":"tyrell"},{"n":"angela"},{"n":"elliot"}]}


Are Qt Quick Controls available on Ubuntu 13.10?

Qt Quick Controls are available since Qt 5.1 and the Qt 5 version in Ubuntu repositories seems to be Qt 5.0.2. Consequently you cannot use Qt Quick Controls with the current version of Qt5 in Ubuntu repositories.

If you want to use them, you have got 3 options:

Using official Qt Project packages for Linux. You can download them here.
Waiting a version of Ubuntu whose Qt5 version would be at least Qt 5.1. Trusty Tahr will likely have Qt 5.1 or Qt 5.2 in its repositories.
If you are developing something for Ubuntu, you can use the components which are in the Ubuntu SDK. Ubuntu.Components (it is their name) are not the real Qt Quick Controls but they are very similar and if you know how Ubuntu.Components work, you will know how Qt Quick Controls work. For further informations, have a look at the corresponding page on Ubuntu Developer.


Ubuntu 18.04 XAMPP desktop icon "There was an error launching the application"

This worked for me on Ubuntu 18.04.

First you need to install the package "nautilus-admin":

sudo apt-get update
sudo apt-get install nautilus-admin

Create a new file in "/usr/share/polkit-1/actions/xampp.policy" with:

sudo nano /usr/share/polkit-1/actions/xampp.policy

Add this content:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>

  <action id="org.freedesktop.policykit.pkexec.run-xampp">
    <description>Run the Xampp Control Panel</description>
    <message>Authentication is required to run the Xampp Control Panel</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/opt/lampp/manager-linux-x64.run</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
  </action>
</policyconfig>

To end, create a new file or edit the desktop entry on /usr/share/applications/xampp-control-panel.desktop and replace Exec=gksudo /opt/lampp/manager-linux-x64.run with Exec=pkexec /opt/lampp/manager-linux-x64.run:

sudo nano /usr/share/applications/xampp-control-panel.desktop

[Desktop Entry]
Encoding=UTF-8
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Exec=pkexec /opt/lampp/manager-linux-x64.run
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application
Type=Application
Terminal=false

I hope it helps.


Connecting my laptop with my phone via bluetooth in ftp mode

On your phone, making sure that the phone and the computer are linked via Bluetooth properly (they each see the other), transfer the file to the computer.

I repeat (learned this the hard way myself, just now): transfer the files from the phone to the computer. Some phones will allow you to do multiple files at once, some won't. I'm using an LG440g, and I have successfully transferred my photos and videos. The folder they go to will be /home/USER/Public.

For whatever reason, FTP mode does not work for transferring files at the moment, though it does work in Windows using BlueFTP.

Hope that helps.


"The specified Server Location (Catalina Home) folder is not valid " apache netbeans 12 and Ubuntu 20.04

On Ubuntu 20.04 with Apache NetBeans 12.2 and Apache Tomcat 9.0.41, grant permissions to the folder where Catalina Home is installed:
sudo chmod -R 777 /folder/tomcatFolder


How do I do a complete DHCP Server Configuration

use command ifconfig  to check whether your machine has DHCP or STATIC IP

  auto eth0
  iface eth0 inet dhcp

In this type of reply your machine has dhcp IP convert it to static first

First assign static ip to your server

 sudo nano /etc/network/interfaces

it will open the file and insert ip's of your choice or provided by ISP

 auto eth0
 iface eth0 inet static
    address 192.168.1.5
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
    dns-nameserver 182.176.39.23 182.176.18.13

After closing the file Check it via command

cat /etc/network/interfaces

Now restart your interface

sudo ifdown eth0
sudo ifup eth0

Now install the dhcp server

sudo apt-get install isc-dhcp-server

now set the interface through which the dhcp server will listen the clients

sudo nano /etc/default/isc-dhcp-server

...In INTERFACE “eth0” <--<< type your NIC through which you will assign DHCP IP.

Now configure dhcp setting

sudo nano /etc/dhcp/dhcpd.conf

Add the following lines

# A slightly different configuration for an internal subnet.
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.50 192.168.1.60;
option routers 192.168.1.1;
option domain-name-servers 192.168.1.1, 182.176.39.23, 182.176.18.13;
default-lease-time 600;
max-lease-time 7200;

If you are running DNS server on your system then enter the domain name and name server in dhcpd.conf file for example As i explained in BIND9 DNS CONFIGURATION I have DNS server named nefitari.autun.hom and IP address is 192.168.1.5 like as under

 option domain-name “nefitari.autun.hom”;
 option domain-name-server  192.168.1.5;

Now start/restart dhcp server

sudo /etc/init.d/isc-dhcp-server start

If it gives you error like Ignoring unknown interfaces eth0=eth0 just do it again

 Sudo /etc/init.d/networking restart

 *reconfiguring network interfaces      [ok]

Now lease an ip address from dhcp server

 Sudo dhclient

The DHCP server writes all current IP address "leases" to the file /var/lib/dhcp/dhcpd.leases so you should also find the lease there:

Sudo nano /var/lib/dhcp/dhcpd.leases

To releases the current lease *once the lease has been released, the client exits.

sudo dhclient -r

Now obtain fresh IP:

sudo dhclient


How to check the speed/problems of network-manager?

I experience exactly the same issue, although my gap is 10 seconds long.

Sep 12 13:38:28 jumbo NetworkManager[1139]: <info> (wlan2): supplicant interface state: disconnected -> scanning
Sep 12 13:38:38 jumbo wpa_supplicant[1715]: wlan2: Trying to associate with 00:15:c7:29:86:81 (SSID='MILANO' freq=2412 MHz)

Unfortunately, I could not find any docs about the different interface states, so I can only guess what the "scanning" state means: Your computer listens for other Access Points with the same SSID and connects to the AP with the best signal quality.

Therefore, I believe this issue could be solved, if we would be able to set a static entry and hereby controll to which AP your computer should connect, this at least would be a solution for your workplace / home etc... As far as I know, nmcli does not offer this option right now, as you can only tell to which SSID you want to connect to. This could be scripted and used as a cronjob:

sudo nmcli device wifi connect "${SSID}" iface "${iface}"

Another solution might modify the duration of this annoying gap to a much lower value, but I doubt that this value is configurable right now.


Automated installation using preseeding from url failed (from within VirtualBox)

Modifying the desktop ISO with ISO Master works for me.

Run ISO Master in the bottom pane.
Open the isolinux directory.
Edit the txt.cfg file.

I added the following entry (changed the url though)

default live
label live
menu label ^Autoinstall
kernel /casper/vmlinuz
append  url=http://goo.gl/PBKbX/live.seed automatic-ubiquity boot=casper initrd=/casper/initrd.lz quiet splash noprompt auto=true --

Save the image and try it.

I assume setting the kernel options manually should work as well. Make sure you have set the VirtualBox network settings correctly (e.g useing NAT).


If the CD is not showing up in the graphical user interface, then try mounting it via the terminal

sudo mount /dev/sg1

If that doesn't work, then my suggestion would be to update your fstab file. It's relatively complicated, so let me know if mounting the CD manually doesn't work, and I'll post a tutorial on editing your fstab file.

But if the cd DOES show up, you want to rip the cd, you'll need software to do so. I suggest you search for "CD rip, or CD ripping" in the Ubuntu Software Centre.

Cheers!


Ubuntu SDK & QT Creator crash on start with error 'Failed to create OpenGL context'

I have the same problem, but I am using Qt Creator with ssh X11 forwarding . I hope that my solution will help those that try to run the program locally and those try remotely.

The solution:

launch Creator (in my case on Linux, with the exec being <qt_install_dir>/Tools/QtCreator/bin/qtcreator) with the following parameters:

-noload Welcome -noload QmlDesigner -noload QmlProfiler
it may give you an error about not finding <qt_install_dir>/qtcreator; Ignore it and press OK
go to Help->About Plugins...  and uncheck "Qt Creator->Welcome" (I also deactivated QmlDesigner and QmlProfiler)
exit Creator and start it normally without any command line arguments

This may work on Windows too. If anyone has tried it, please let us know.


Error code:

[  1462.940] (EE) Failed to load module "fglrx" (module does not exist, 0)

Ubuntu's page for fglrx: http://packages.ubuntu.com/search?keywords=fglrx

Try this:

sudo apt-get install fglrx && telinit 6

This command will install the missing module and reboot your computer.


What's to consider when hosting Ubuntu torrents on a Raspberry Pi

This is entirely feasible. Some suggestions to enhance the security of this setup:

The firewall in the router is your main defense against attacks from Internet. You would port-forward just one port (the torrents protocol can run on any port) towards your RPi and run a torrents client on that port.
SSH is enabled by default, but the router's firewall will prevent SSH access from internet.
You may also want to set iptables on the RPi to accept traffic on the one port from the router, ssh from inside the lan, and nothing else.
You need to search for known security problems with the torrent client itself (or perhaps the protocol as a whole), and upgrade as soon as a new version is available.
You may restrict bandwidth usage by your client, and verify that your provider allows torrents at all (trackers may be blocked).
Your router's firmware may occasionally turn up a vulnerability, so you need to look out for updates for that as well.


I found the unity-place-python sample code and used that to create a lens to search your filesystem. It's currently kinda unstable, but you can search for files and you usually get results.

Unity FileSearch Lens

You can access the lens in the Unity Launcher. You can see it here where I'm searching for "lecture".

The magnifying glass in the bottom left corner is the FileSearch Lens. (The icon changes based on your icon theme.) The lens shows files and folders in two separate sections.

You can add it to your main dash (Ubuntu button) by setting ShowGlobal=true in /usr/share/unity/places/filesearch.place. Unfortunately, Unity doesn't currently have a way to customize what lenses are in the Dash.

The files and folders sections are combined in the dash under the heading "File Search".

Config

When filesearch-lens first runs, it will create a config file ~/.filesearch.cfg. You can customize the directories to search, how deep to search, and what folders to ignore.

For example, here's my config:

[search]
#dirs = a comma separated list of folders to search
dirs = ~/data
#depth = how deep from / to search
depth = 5

[ignore]
#pattern = python-style regex for directories to ignore
pattern = ^\.|^bin$|^lib$|^apps$|^settings$|^eclipse$

I want it to search ~/data and two directories below it and to ignore all dotfiles and some other specific folders. (Note: No, it's not smart enough to not search the same folders if you give it nested folders like ~/,~/code, so don't do that.)

If you change the config file, you need to restart the daemon to reload it:

killall unity-filesearch-daemon

Install

I packaged it so you can download it from my ppa.

sudo add-apt-repository ppa:pydave/unity-lenses
sudo apt-get update
sudo apt-get install unity-place-filesearch

Then you need to reset unity before the lens will be noticed:

setsid unity

Experimental Features

If you give it a path, it usually shows the path as one of the results (so you can open folders like you could in gnome-do).

One of the features I'm still trying to get working properly is the ability to type a path, a space, and then a search word to search in the path. Most of the time it works, but sometimes it fails to find anything (probably because the search is taking forever).


Desktop shortcut doesn't work for script but script work fine

To get this working use the following:

[Desktop Entry]
Version=1.0
Type=Application
Name=Play
Comment=Play music
Exec=bash /home/awesome/Desktop/test/play.sh
Path=/home/awesome/Desktop/test/
Icon=
Terminal=true
GenericName=Player


Try going to game settings under the options menu and mark "Launch 32-bit client (Instead of 64-bit)". It seems the 64 bit one fails at the gate, at least for me.


I believe fonts are located in usr/share/fonts if i'm not mistaken


Wubi uses Grub4Dos (wubildr.mbr). Part of it's job is to find it's second stage (wubildr). It looks on all partitions and outputs a diagnostic if it can't find it.

Something like this would mean that the first partition is FAT32 and there is no /wubildr:

Try (hd0,0): FAT32: No wubildr

This isn't an error. You can copy the wubildr to the root of the first partition to stop it showing, or just ignore it (my recommendation).

There is another message that shows on all Wubi installs:

Error: 'prefix' not set

There's nothing you can do to get rid of this. (No known workarounds). It's registered as a bug. My advice, is to ignore it, or install a normal dual boot if it bothers you that much.


Why can't I remove language variants like English (NZ), etc.?

Languages with localized variants are provided in a package:
- English contains AU, US, UK, NZ, SA, etc. variants
- Chinese contains variants, etc.

You can't remove specific variants without removing the whole package (from the desktop).

If you are adventurous, you can try removing those locales via the command-line, e.g. en_NZ.UTF_8, etc.


Problem with updating due to obsolete package versions.

Open a terminal and type:

sudo apt-get update && sudo apt-get upgrade
sudo apt-get autoclean
sudo apt-get autoremove

Since autoclean removes packages that are no longer available from configured software sources, you may want to move the sudo apt-get autoclean step until right after the sudo apt-get update step.

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/. When
APT is used as a dselect method, clean is run automatically. Those
who do not use dselect will likely want to run apt-get clean from
time to time to free up disk space.
Autoclean: Like clean, autoclean clears out the local repository of
retrieved package files. The difference is that it only removes
package files that can no longer be downloaded, and are largely
useless. This allows a cache to be maintained over a long period
without it growing out of control. The configuration option
APT::Clean-Installed will prevent installed packages from being
erased if it is set to off.
Autoremove: is used to remove packages that were automatically
installed to satisfy dependencies for some package and that are no
longer needed.

See manpage


apt-get update which you ran, updates the lists of packages available. To then perform an update, run sudo apt-get upgrade. I use the sudo command so that I do not need to be logged in as root to perform the updates.

There are also some updates which will not upgrade with this command, and the command sudo apt-get dist-upgrade must be used on these.


Problem Booting from Ubuntu 13.04 Live USB

I just bought an MSI GS70, 2 ssd configuration. I managed to get Ubuntu 12.04.3 dual boot working, here are the steps I took.

Access BIOS, either by hitting DEL while the computer is starting, or through Windows.

Set Secure Boot Control -> Disabled
Set Boot Mode -> Legacy

Boot from the Ubuntu USB and proceed to install Ubuntu normally. Personally, I did the easiest thing I could and simply installed Ubuntu on a partition of the 1TB hard drive. This was to avoid dealing with Raid 0 hassles.
At this point, even though Ubuntu had correctly installed, I couldn't boot into Ubuntu. I completed the remaining steps with the USB Ubuntu trial.

This is still in Legacy mode:

Download Boot-Repair: https://help.ubuntu.com/community/Boot-Repair
Follow the steps and run Boot-Repair, I just hit forward / complied with all boot-repair commands until it finished.

Restart your computer, hit DEL repeatedly to access the BIOS and switch the boot mode back to UEFI.
Restart once again and hopefully you should see grub. Everything should be in working order.

Goodluck!


You may want to install rEFInd, which is a boot manager for EFI-based computers. Be sure to install it from Windows, not from Linux. Also, install the driver for the filesystem on which your Linux kernel resides (probably ext4fs), but not other filesystem drivers -- some users have reported that installing extra drivers causes some Mac models to hang at boot time.


Problem is you have included bin/ folder in your JAVA_HOME path.

Remove it, so that your JAVA_HOME should  look like usr/iib/java/jdk1.8.0_31

i.e

JAVA_HOME=/usr/iib/java/jdk1.8.0_31/


I suspect a program may be sending data to servers secretly. How can I check?

You can use netstat to see all of the programs that are listening on or using the network.

netstat -plntu will show you all programs that are currently listening on some interface and port.

netstat -an will show you which programs and processes are currently using the network.


You can dual-boot using 256GB or 512 GB.

It's not easy or convenient for a beginner to select where applications will be installed. Most of your "large files" will be data (not applications), and there are many, many tutorials showing how to put data onto a different drive or partition.

Advice: Judging by your intense desire to install Visual Studio and lots of other applications, a larger SSD might work better for you.

Advice: Whichever you choose, START by setting up your good backup regime. The wrong typo in the wrong place can irretrievably destroy all of your data.


Glade 3.20 seems to ignore `GLADE_CATALOG_PATH`

At least for my version of glade, the correct environment variables appear to be

GLADE_CATALOG_SEARCH_PATH
GLADE_MODULE_SEARCH_PATH

(note that additional _SEARCH_). See here for the reference. This works for me with glade 3.22.1.


Double Ubuntu, How to specify which one to boot

You need to hold the right Shift key when booting in order for the Grub menu to appear.

You can check Grub information at: https://help.ubuntu.com/community/Grub2


With such attempt, even if you're unable to delete / entirely, you could still get your system to crash! But for that you'll need root privileges.
The command,
sudo rm -rf /

or
sudo rm -rf /*

will delete every files from all the RW mounts. This will case the system to crash because of possible deletion of important system files.
So it's said that you should take extreme care while working as root.
"...with great power comes great responsibility."
Protection of the filesystem root: source
In modern contex, Sun Microsystems uses rm -rf / protection so that executing the command reports removal of / is not allowed. The same functionality was introduced into FreeBSD version of rm utility. GNU rm refuses to execute rm -rf / if the --preserve-root option is given, which now is the default behaviour for the command.


Can removing GUFW create dangers for my system?

The ubuntu firewall is actually part of the linux kernel, and is called iptables.

Gufw is just a tool to let you change the firewall settings, but those settings will still be there without it. The command-line tool 'ufw' is also just a way to change your firewall settings.

Removing the gufw package doesn't remove the linux firewall. So uninstalling gufw is not going to change the security of your system one way or the other. Your firewall is still going to be sitting there with whatever rules were last set up - either the defaults or whatever you changed them to be.


When I try to add a new node to MAAS, does the node need a physical internet connection?

1) Yes it needs Access to the Internet. It connectes to the ubuntu archives to download packages that are needed to perform a few tasks.

2) MAAS has a squid-deb-proxy server. This means that nodes will try to access the squid-deb-proxy to download whatever packages it needs. However, you might be experiencing an issue where it is not trying to do that, instead, is trying to access the internet directly. What version of MAAS are you using?

3) MAAS should probably be the default gateway and it should be configured to do NAT.


We can see that your system is recognizing the sound hardware. First thing to try is to go into Settings -> Sound and under the Output and Input tabs, make sure your usb device is selected. It might be called something different like "Analog Input/Output" you might need to use some trial and error.

Once the input device is selected, you should see the input level meter reacting to your guitar.

Once the output device is selected, you should be able to play sound through the card.

If you don't see this card in your setting for some reason, see if alsamixer recognizes it.

alsamixer

and press f6 to get a list of audio devices. Does it show there? If so make sure to show all the channels and ensure none of them are muted.

You should then be able to use Audacity to record:

sudo apt install audacity

Run Audacity and test your recording/playback. If your device supports duplex, you can go to Edit->Preferences->Recording and select both boxes in "playthrough" so you can listen while you play.

If you want to really be able to tweak your sound system, or if you are doing serious recording you will want to use the Jack Audio Connection Kit.

sudo apt install jack

If you want to get the most out of Linux audio production, I recommend having a look at this guide:

Ubuntu Studio Audio Handbook


I have seen this sort of thing with several attempts of different Linux distros, but with CD/DVD installs. LiveCD would show up fine, but the moment
of install attempt, just seemed to go to blank screen and hang.
  Take a look into 'boot options'. ACPI can be a problem and if the install
can't configure graphics beyond an initial requirement for LiveCD, just blank screen and hang. You will have to experiment to determine the best combination
for your situation.
  Unfortunately, it may be more challenging if you discover the need for a graphics driver for your card.
  This is not a solid or complete answer to your question, but it may send you
in a direction getting you further along. Hope it helps.


On your ubuntu run this command to install VNC server:

sudo apt-get install vnc4server

then run vncpasswd to give vnc server a password

run vnc4server command to start vncserver

connect from windows with ultravnc or ... and type: UBUNTU-IP-ADDRESS:1

any questions?

this link may help too: https://help.ubuntu.com/community/VNC/Servers


Took a look at about:plugins on Chromium and noticed IcedTea was still being used for eris knows what reason. One apt-get purge icedtea6-plugin and I finally get to try this intriguing 8-bit(-ish) graphic game.


How to create two partitions with exactly the same size?

Not sure but you think something like:

parted -s --align optimal /dev/sda -- mklabel gpt mkpart primary 4MiB 1 50% mkpart primary 4MiB 50% 100% set 1 boot


UPDATE:
The problem escalated to the low-graphic mode. Now, when I switch on my PC, after Lubuntu loading appears the message with warning: "The system is running in low-graphics mode".

Is there any possibility, how to reinstall the Lubuntu without any loss of my personal data and installed packages (programs)? Thanks.


Automatically connect Ubuntu to a specific WiFi at startup

You can edit the interface file /etc/network/interfaces and add the informations about the WiFi you want to connect to :

network={
ssid="testing"
psk="testingPassword"
}


Changing wireless network settings by editing files - is this possible?

I would use two different ESSIDs (eg. myNetworkWpa, myNetworkWep) with different passwords and let Ubuntu reconnect automatically when either of them disappears. No need to script anything.