How can I get Ubuntu working on my G4 Powerbook 1ghz 17"

well i had the same problem did may research and her it gos
link for Ubuntu that works with G4 Powerbook 1ghz 17
http://cdimage.ubuntu.com/releases/12.04.4/release/
download the Ubuntu 12.04 PowerPC


How I can share my Virtual Machine with other people

Virtualbox vm's work on any computer unless you have changed advanced settings, like enabling more than one CPU core for use with the vm for example. You have to make sure that the new computer can handle those changes and that it has the memory required to run the vm successfully.
I am constantly using vm's on more than one computers, just by copying the directory that has the name of the vm to the new computer's designated Virtualbox vm directory and adding the vm to that computer's virtualbox.
Just check if everything, like network or audio adapters have been detected correctly in the vm settings, after you add it to the new computer's Virtualbox that is, and if something doesn't look right, change it before running the vm.


How to partition a disk for installing Ubuntu?

Ubuntu can manage the partitioning itself, it recognizes the windows and should prompt you with the   install ubuntu alongside windows.
selecting this option, ubuntu will create a new partition for you automatically without harming windows nor your data.

after you select that option, you will see a SLIDER. where you can move it, in order to increase the amount of drive you want ubuntu or windows to have. and you are done.

please note:

you can access your windows files from ubuntu. but you can't access ubuntu files from windows. possible but not easy.
make sure you delete all the unwanted files on windows, so you can have more space for ubuntu.
you can do the partitioning manually also. to customize your /home partition or /boot or the swap partition. but if this is the first time you use ubuntu i reccomend the automatic one.
you can still enlarge or make partitions smaller after the install with the live cd and gparted. so don't worry.

good luck.


step by step Ubuntu 12.04 install of Realtek RTL8188CE driver

The driver you're looking for is no longer maintained by RealTek, so I've put it up on GitHub where I maintain it from version to version so that it compiles and works.  So far, I as well as several others have had good experience using this driver.  You can find the driver here on Github:  https://github.com/FreedomBen/rtl8188ce-linux-driver

There are full instructions located on the project page (that link will take you there) and also in the README.md file that comes with the checkout.

The commands you see in the instructions should be entered into a terminal prompt, and enter should be pressed at the end of each line.

Please let me know of any issues you encounter and I'll try to help.


do-release-upgrade fails on 12.04LTS to 14.04LTS server error: An unresolvable problem occurred while calculating the upgrade

Try this:

First: You need to remove all ppa

Second: You need to upgrade your system.

Reboot your system to finish installing updates, and to upgrade to new available version:

Open a terminal,Press Ctrl+Alt+T

Run it:

sudo -i
update-manager -d

Software Updater will show up and search for the new release, after a few seconds, you will see a screen like below that saying:

However, Ubuntu 14.04 is available now.

Press the button Upgrade to start upgrading to Ubuntu 14.04.

The Software Updater will ask you to confirm still you want to upgrade, press Start Upgrade to begin installing Ubuntu 14.04.

Now, the Software Updater will prepare to start setting up new software channels, and after a few minutes, the software updater will notify you the details the number of packages are going to be removed, and number of packages are going to be installed, press Start upgrade to continue.

Ended the dist-upgrade, reboot your system and:

Open a terminal,Press Ctrl+Alt+T

Run it:

sudo -i
dpkg --configure -a
apt-get -f install
apt-get update
apt-get dist-upgrade
apt-get autoremove
apt-get clean


Clone an initial Ubuntu 11.10 installation for different users

With the Alternative disk you can do an OEM/Prepare for End User Configuration installation. After installation you can log in as oem and customise away. After running sudo oem-config-prepare, the oem user is nuked and on the next boot the user is asked to set up their user account.

Now you have two options for spreading this to more than one computer:

You could go through the (frankly) tedious process of remastering the disk so you create a custom installation disk for the users. I'm not even sure how to remaster the Alternative disk but I'm sure it's possible...
Or you could install in OEM mode and get to the point where you've got the system prepped and have run oem-config-prepare, then take an image of the disk with Clonezilla (or other) and zap that image into the rest of your machines. On boot they'll each be asked to set up a user and that's what you're after. It'll probably take up more space but if you have a fast wired network, it shouldn't take too long and it's almost zero-effort for each machine.

If you want to have specific things in the home directory of the new user, you should copy them into /etc/skel during the oem preparation (ie before you run oem-config-prepare). These files will be copied out when the first real user is generated.

This allows you to store settings, special directory setup and things like that. You don't have to copy over the entire contents of /home/oem/ - you can pick and choose.


Strange recursive folder created on npm installation

Set the prefix to /usr/local using this:

npm set prefix /usr/local
npm install -g phon

Source:

Installing Phonegap with NPM 1 3 11 creates a password directory path on Mac OS

It worked for me


How do I install monodevelop on ubuntu 19.10?

You need to add MonoDevelop's repository for 18.04 LTS to the 19.10 system:

sudo apt install apt-transport-https dirmngr
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu vs-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-vs.list
sudo apt update
sudo apt install monodevelop

and you will get latest MonoDevelop.


How do I make my native Windows 8 Lenovo laptop boot grub?

I have a Lenovo S415 with the AMD A6 processor. I was able to boot into a live USB install of Ubuntu (and Mint as well). Here's what I did...

In BIOS Boot window,

Boot Mode: Legacy Support
Boot Priority: Legacy First
USB Boot: Enabled

After setting the above in the BIOS Boot window, I powered off the laptop, plugged in the USB containing Ubuntu, and then pressed the Novo button (on the side of the S415 laptop near the regular power button).
Laptop powers on, shows me a "Novo Button Menu" with 4 options, one of which is "Boot Menu". I choose that and press Enter.
A new "Boot Manager" screen opens up and I see

SATA HDD
Generic USB Flash Disk
Network Boot: Realtek PXE
Windows Boot Manager
EFI USB Device (Generic USB Flash Disk)

I choose the last one (EFI USB device) and press Enter. I see a brief message "Secure Boot not enabled" and in less than a second, I see the GRUB menu for Ubuntu with options "Try Ubuntu without installing", "Install Ubuntu" etc.

Hope this helps! Good luck.


Can the base Ubuntu OS be used for free commercially?

Yes, it can be used for free. As explained on unbuntu.com, an organization may use it freely for internal use:

  Ubuntu is freely available to all users for personal, or in the case
  of organisations, internal use. It is provided for this use without
  warranty. All implied warranties are disclaimed to the fullest extent
  permitted at law.

If your organization were to use Ubuntu for external use, meaning redistribution to others outside the organization, it would have to abide by both (a) the GPL and (b) Ubuntu's copyrights on logos and other such intellectual property.  Your uses all appear to be internal and, therefore, are not subject to these restrictions.


video not playing in Libre office impress

I have not found a solution for mp4 video. But as described in this article LibreOffice support Ogg Vorbis video format. After the conversion of mp4 video to ogg format and subsequent insertion the converted video files seem to be working.
To convert mp4 to ogg I used FFmpeg:
ffmpeg -i input.mp4 \
       -c:v libtheora -qscale:v 6 -c:a libvorbis -qscale:a 5 \
       output.ogv


notify-osd replaced with dunst after switching back to unity from i3wm

I realize I'm two years late to the party, but if anyone else encounters this problem, here's a solution that will use notify-osd when logged into Unity, and dunst when running i3.

If you just want to keep dunst installed, but not auto-invoke it via DBus skip to the Quick Hack section.

Dunst in i3, notify-osd in Unity

Step 1

We want to override the behaviors of /usr/share/dbus-1/services/org.freedesktop.Notifications.service and more importantly /usr/share/dbus-1/services/org.knopwob.dunst.service.

Since Dbus looks at $XDG_DATA_HOME when searching for service files, and Ubuntu for some reason doesn't set that environment variable, we need to do it ourselves:

echo 'export XDG_DATA_HOME=${XDG_DATA_HOME:="$HOME/.local/share"}' >> ~/.profile

Step 2

We need to create our service file:

mkdir -p $HOME/.local/share/dbus-1/services
nano $HOME/.local/share/dbus-1/services/usernotify.service

Make the file look like this:

[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/bin/my_notifier

Step 3

Create the script referred to in your D-BUS file that invokes dunst if i3 is running, otherwise notify-osd:

sudo nano /usr/bin/my_notifier

Make it look like this:

#!/bin/bash
set -euo pipefail
if pgrep -x i3 >/dev/null; then
    /usr/bin/dunst
else
    /usr/lib/x86_64-linux-gnu/notify-osd
fi

Make it executable:

sudo chmod a+x /usr/bin/my_notifier

Step 4

That should be it. Log out and then log in again. Test it in both Unity and i3 by running

notify-send foo bar

Quick Hack

If you exclusively want to use notify-osd it's enough to edit /usr/share/dbus-1/services/org.knopwob.dunst.service accordingly:

[D-BUS Service]
Name=org.freedesktop.Notifications
#Exec=/usr/bin/dunst
Exec=/usr/lib/x86_64-linux-gnu/notify-osd


Unshare the Public folder;
Open the smb.conf file (press Ctrl+Alt+T to open a terminal, then run sudo gedit /etc/samba/smb.conf) and insert these lines at the end of the file:

[Public]
    path = /home/<username>/Public
    public = yes
    writable = yes   # Only add this line if you want to give them write (create, delete, modify) permissions.

Then save and close the editor;
Still in terminal run sudo service samba restart, or just reboot the computer.


Unity has disappeared from lightdm after updating gnome-shell

You just need to turn the Unity plugin back on. The problem is this is a pain in the bottom because you've now got no graphical method to do this. So:

Install the jibby you'll need to configure the settings by running this:

sudo apt-get install compizconfig-settings-manager

2.Then run it by doing this:

export DISPLAY=:0
ccsm

There will be CompizConfig Settings Manager screen (or open it from menu).

Find the Unity plugin. Enable it.

Everything should spring into life but if it doesn't, you might have to restart.

Source:Unity doesn't load, no Launcher, no Dash appears


Issue with www-data user and /home/user/www permissions

Try to add sudo before your commands, because if you don't  have  write access on your files, you can't change their attributes.


chsh always asking a password , and get `PAM: Authentication failure`

Thanks to this question on Server Fault, I worked around this by:

Changing /etc/pam.d/chsh: from:

auth       required   pam_shells.so

to

auth       sufficient   pam_shells.so

Then it doesn't ask for a password anymore.
But I think it better to restore chsh settings after switching the shell.


Trying to compile from source newest apache with newest openssl - undefined reference to symbol 'dlclose@@GLIBC_2.2.5'

Fixed it, though I'm not sure exactly what the problem was.  I changed two things:

First, I installed to a lonely directory (--prefix=/opt/httpd/) next to openssl.  I don't think this made a difference, but don't have time to confirm that.

Second, I compiled it with apr and apr-util source code (before I was letting it use copies I got from aptitude--the dev versions). I added apr and apr-util source code to the source tree, and used the --with-included-apr option when I ran apache's ./configure.

Steps to add source code to source tree:

$ tar zxvf httpd-2.4.10.tar.gz
$ cd httpd-2.4.10/srclib/
$ tar zxvf ../../apr-1.5.1.tar.gz
$ ln -s apr-1.5.1/ apr
$ tar zxvf ../../apr-util-1.5.3.tar.gz
$ ln -s apr-util-1.5.3/ apr-util

Command used to configure apache (with other enabled modules omitted for brevity):

$ ./configure \
    --prefix=/opt/httpd \
    --with-included-apr \
    --enable-ssl \
    --with-ssl=/opt/openssl-1.0.1i \
    --enable-ssl-staticlib-deps \
    --enable-mods-static=ssl


Why is my HFS+ filesystem not read-write, despite my fstab?

What I needed to check was dmesg where I would have learned that

hfsplus: Filesystem was not cleanly unmounted, running fsck.hfsplus is recommended.  mounting read-only.

Probably a result of a recent power outage.
Unmounting the drive, running sudo fsck.hfsplus /dev/sdc2 to reset a flag, and afterward sudo mount /movies re-mounted the drive read-write, per the configuration in /etc/fstab.


From the instructions of post #10 of this ubuntu forum thread:

download the driver from canon-asia.com
unpack the archive with archive manager
use the following commands to install:

sudo dpkg -i --force-architecture cnijfilter-common_3.20-1_i386.deb
sudo dpkg -i --force-architecture cnijfilter-mp560series_3.20-1_i386.deb

These are pretty much the same instructions as the one over here.

These are the 32bit drivers. You need to use the --force optionn to install on a 64 bit system. The rest of the aforementioned forum, covers the scanner driver.


Why does mouse cursor disappear randomly over background image and desktop icons and sometimes foreground windows?

I am having similiar issues right now. I noticed after I did a ATI update my cursor went and still having graphic hang ups and cursor vanishes and window borders do. I removed the ATI pack and minor things are fixed but no cursor on the desktop on system windows. only in app windows.


Two web servers on a LAN with dynamic IP with ubuntu server 12.04

You can use ddclient with free services such as No-IP.


compiz huge memory leak- ubuntu 11.04-unity

+1 for this being caused by the multiload indicator.  My system was virtually unusable due to memory (or lack thereof) while it was installed. Left running long enough, the indicator will consume massive amounts of memory.  When it was uninstalled, it was like a new computer.


How do I install the ray-tracing application POV-Ray on 12.04?

licensing

From the povray distribution license is not a GPL2+ or 3+ license that normally is the requirement for incorporation into the main ubuntu repositories.

Indeed - debian classify this as non-free - although why this package was not made available into multiverse, I'm not sure.

compiling

It's actually very simple to compile this command line application from source:

First install some prerequisites:

sudo apt-get install build-essential

Now download the source-code:

wget http://www.povray.org/redirect/www.povray.org/ftp/pub/povray/Official/Unix/povray-3.6.tar.gz

tar -zxvf povray-3.6.tar.gz
cd povray-3.6.1

Now configure it:

./configure COMPILED_BY="yourname <youremail@somewhere.com>"

N.B. use your email address.

Next - compile and install:

make
sudo make install

for the uninitiated...

This is an example output

save the contents from here as povpawn.pov

Now run povray

povray +Ipovpawn.pov

This will create a file in your folder called povpawn.png

More information from the povray website:

http://www.povray.org/documentation/


Not able to destroy service as agent-state is down

When you have an agent-state: down that means the bootstrap node can't communicate with the juju-agent. As a result it can't destroy as it can't communicate the next set of events.

This happens sometimes when the machine is destroyed outside of juju, so juju thinks it's still there though the machine has been physically removed. Can you confirm that opnw02.master is indeed still running? If so, try to ssh to it either using juju ssh 20 or ssh ubuntu@opnw02.master. If you can gain access to the machine try restarting the juju-agents, which are jujud-machine-# and jujud-unit-<service>-#. So in your case the following commands will restart those services

sudo stop jujud-machine-20
sudo stop jujud-unit-quantum-gateway-0

sudo start jujud-machine-20
sudo start jujud-unit-quantum-gateway-0

At this point juju status should report the unit-agent as started again. You may need to run juju resolved quantum-gateway/0 a few times as it appears to have stopped during mid-hook execution. Eventually, the service should go par to the course and be removed.

If you are unable to log in to the machine (either it was destroyed outside of juju, or for other reasons) then it'll remain in the juju status for now. There's work to allow "cleanup" of services but it hasn't landed yet (as of 1.13.3). If you want to deploy quantum-gateway again, and the status still has this agent-state down business, then you can deploy it with a different alias like so:

juju deploy quantum-gateway qgateway

Going forward you can make relations to it by issuing juju add-relation nova-compute qgateway


How to tweak the volume increment steps in Ubuntu 18.04 (Gnome)

Hold down the Shift key while pressing the keyboard shortcut to change the volume.


My Ubuntu Server 12.04 box cannot ping my ADSL modem

Maybe your Ubuntu firewall is causing the issue. Try switching it off, and see if that fixes the problem. The only other thing I can think of is to restart the modem, wait 5 minutes, restart the ubuntu machine, and see if that resolves the issue.


ubuntu 14.04 installation problem on win 7

Do you want to remove all and install 14.04, Then make a bootable DVD or USB drive and boot from it, This will be easiest way to install...


Here you can find the news that the project, do to lack of support has gone to sleep for a while: https://wiki.ubuntu.com/RealTime

At least as it looks it is going to come back on 11.04


From man grep:

--binary-files=TYPE
      If  a  file's  data or metadata indicate that the file contains binary data, assume
      that the file is of type TYPE.  Non-text bytes  indicate  binary  data;  these  are
      either  output  bytes  that  are improperly encoded for the current locale, or null
      input bytes when the -z option is not given.

So the log file may be corrupted, or some application might have written non-text bytes to the file.

Also see:

How does -a command line option in grep work?


problems after upgrading ubuntu 16.04 LTS to 18.04 LTS

First and foremost this is gnome not unity, things are different bare with us.
Now:

  How come the desktops don't work the same?

That's cause they use different libraries and hence different protocols.

  How do I get rid of a few desktops?

What few desktops are we talking about here?

  How do I make the key binding work?

Take a few minutes to alter your scripts, remember this is gnome and a lot is different.

  How to make the same software work on desktops,
  for example Tor browser?

Tor for unity isn't the same as Tor for gnome. Please save your self some drama and just reinstall.


Dell Chromebook (Candy 2015) - No Sound and Touchpad

https://plus.google.com/+JamesFuBEEFCAKE/posts/Tf4Pc5Z8reH

This worked for me for the sound. It's still not working with the internal speakers, but it works out of the jack 1/8 and HDMI.

My touchpad worked out of the box, but it stopped working a couple of days ago. I'm still looking for a fix.


Installed 64-bit ubuntu on 32-bit windows vista

urm i dont think so, i have done it on an old compaq laptop that came with windows vista 32 bit preinstalled, i managed to dual boot with ubuntu 12.04 64bit, then replace vista with windows 7 64bit (non genuine) and it worked perfectly..

i say WORKED and not works because i dropped the laptop and well if you drop a laptop older than 3 years they are like a puzzle of wires with plastic shards stuck in them haha

all i would have suggested is to check that your Processor supports the 64 bit architecture  but seeing as you have got the 64bit OS working then im guessing it does, well done for the dual boot by the way, i have one myself:)

Good luck on your future experiences into UBUNTU:D you will learn how much windows holds you back like a window:)


do-release-upgrade is failing silently. First steps to troubleshoot?

Ok, I have a somewhat unusual answer:

Since do-release-upgrade is written in Python and in your profile you mention that you know about Python, I've used a Python debugger and for me the program runs correctly.

sudo apt-get install python3-pudb

Start the debugger with:

pudb3 $(which do-release-upgrade)

and localize the problem.

Then I looked at the strace output. That's the interesting part:

stat("/usr/lib/python3/dist-packages/apt_pkg.cpython-34m-x86_64-linux-gnu.so", {st_mode=S_IFREG|0644, st_size=351400, ...}) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x184e6} ---

I make a forecast:

sudo apt-get install --reinstall python3-apt


Got it working.
Noticed that the following boot files were missing from the efi partition (sda1) between the working case and non-working case.

/EFI/Boot/bootx64.efi
/EFI/Microsoft/Boot/bootmgfw.efi
/EFI/Microsoft/Boot/bootx64.efi

Running boot repair again and selecting the following options fixed the issue:

Backup and Rename EFI files (solves the [hard-coded-EFI] error)
Use standard EFI File


Merge unallocated disk space into ubuntu partition

If your 58.35 GB partition (ext4) is the system root partition, or your /home, or your /boot partition, you can't modify it when the system is running. That's because you have to unmount the patition you want to resize.
If that's your case, you can use a live CD or live USB linux distribution and run a partition manager program. I think the best choise is GParted Live. It is a linux distro based on Debian. When you boot it, it automatically runs a partition manager called GParted.

This is the GParted official Website:

http://gparted.sourceforge.net/

NOTE:
You can use an Ubuntu Live CD (or another live distro) too. You just have to install, for example, GParted on it and you will have the same partition manager program.

But if your ext4 patition doesn't have system files, you can unmount it and use Gparted (by installing it from the Ubuntu Software Center) to resize it.

Sorry for my extremly poor english.

Regards!

Ariel


You can set this kind of options in /etc/sytemd/logind.conf file.

If you want to hibernate the laptop on lid close, uncomment the

#HandleLidSwitch=

line to look this way:

HandleLidSwitch=hibernate

You can also use hybrid-sleep instead of hibernate to use both options. The laptop will wake up fast, but if battery is drained, it won't lose data.

Also you can set the power button behavior using

#HandlePowerKey=poweroff

line.

You will need to reboot to apply the settings.


Android Studio - empty project after importing from Github

I had the same issue, That the Android Project view is empty.

What i did was clicked on the Gradle menu option on the right side in Android Studio and clicked the Refresh button there, after the Android view looks correct.


how to add graphics.h to code blocks in ubuntu ?

WinBGIm graphics library is only for windows.

Possible options:

use original Pascal graphics library (with Pascal language obviously)
use different graphics library with C++
use winbgim with C++, but cross-compile the code of the program to get a windows binary and run it in wine

edit

There are newer implementations of BGI graph library: SDL_bgi and libXbgi.

Site: http://libxbgi.sourceforge.net/#download

Get the package sdl-bgi_2.0.2-1_i386.deb and install it:

sudo dpkg -i sdl-bgi_2.0.2-1_i386.deb

Or alternatively, if you want to have a 64 bit version, then get the sources - it is the SDL_bgi-2.0.2.tar.gz archive. And compile + install them:

cd src
make
sudo checkinstall

To compile your program from command line using SDL_bgi, make sure that it includes the 'SDL_bgi.h' header file. Then:

gcc -o program program.c -lSDL_bgi -lSDL2

But you are using Code::Blocks, so you'll have to add SDL_bgi and SDL2 to something like 'Link Libraries' in the project parameters.

If you have some non-crossplatform includes, then surround them with ifndef __linux__ directives:

#ifndef __linux__
#include <conio.h>
#include <dos.h>
#endif /* __linux__ */


The user solved this question on their own. I am just posting this to show that the question has been answered until this is removed or self-answered.

I have solved the one remaning problem.

I have installed: Gstreamer complements for ffmpeg. Gstreamer Extra
complements. Gstreamer complements for mms, muse pack, etc. Gstreamer
complements for aac, xvid, etc.

And I have installed: Ubuntu restricted Extras.

Well, it seems that flickering has go out.

But Unity Dash is in the same mod. I can't see it in a good way. It
shows an interference pattern(?).

.............................................

I have solved the Unity Dash problem:

First you have to install the Unity Tweak Tool, and then in the Search tab
you have to put Background blur at the "off" position.

.............................................

Then I have solved my own problems.


Ubuntu 19.04 on Dell Precision T3400 stops booting at "starting GNOME Display Manager"

I had this problem. It looked like it was at the point where the video card would take over. I had originally done an install involving download of 3rd party software. So I tried again without this and found my machine would boot successfully. I think the 3rd party drivers are not so necessary for own machine these days anyway so I will see how I go without them. Your situation may be different, though.


Assuming you have successfully installed Flash and that it works for Firefox, you can simply prevent Chromium from using Flash. To do so, type about:plugins in the Chromium browser's address bar and hit Enter.

Then look at the list of plug-ins enabled, and just disable anything related to Flash.

Such a step will only affect Chromium and not Firefox.

Note that Firefox has a click-to-play option for plug-ins as well. If you wish to enable that feature, type about:config in the Firefox address bar and press Enter. Answer okay in the resulting screen and then, in the next screen, type click and look for a line with plugins.click_to_play. Go to that line and pressing Enter will toggle the click-to-play feature on or off.

I don't use 64-bit myself and have heard that getting Flash to work may be problematic, but, in any case, make sure you have allowed ubuntu-restricted-extras and run:

sudo apt-get update
sudo apt-get install flashplugin-installer


Start 3 Terminator Windows on 3 different Monitors with 3 different layouts

To open Terminator in a pre-defined layout you first need to define the layout. The configuration window can help you with that. You can also configure and name multiple different layouts there. I won't cover how to do that and focus on how to start Terminator with existing layouts upon log-in instead.

Start with a single Terminator layout and instance

Let's start simple with a single instance. I'll assume that you have a pre-defined Terminator layout named "simple-layout". You can start a new Terminator instance with this layout with the following command-line options:

terminator -l simple-layout

If you want a maximised, fullscreen or borderless window you can use suitable additional options as described in the Terminator manual (run man terminator to view it).

Run a single command at log-in

The general process is explained extensively in How do I start applications automatically on login? and I'm not going to repeat it here.

However there are some specifics in relation to Terminator: I found that Terminator only remembers its previous size position when it's launched once the window manager is fully running. That's why I delay the start by a few seconds (10 in this example). Instead of the above command I choose to auto-start the command:

sh -c "sleep 10 && exec terminator -l simple-layout"

sh -c invokes a (Bourne shell) command-interpreter that can execute multiple commands in sequence as explained below.
sleep 10 waits 10 seconds before running the next command.
exec replaces the current command-interpreter process with the subsequent program (instead of spawning an new process and wasting resources for no reason).
terminator ... – see above.

Now for multiple instances and layouts

At this point it should be trivial to repeat the process for additional Terminator instances and layouts. I'm not sure if Terminator will remember the position of each window of multiple instances. If not you should search around or ask a follow-up question and include your window manager in the question since that influences the answer.


Is Ubuntu One be able to store RAW and AVI files?

You can upload any kind of file to ubuntu one it shouldn't make a difference as long as you have enough free space.


Yes, is a normal thing. Android Studio open workspace.xml file on startup.


I would suggest the following:

Clean or get the laptop cleaned (you would be surprised how much goes wrong with laptops and how frequently it is due to overheating).
As per the comments, try one RAM stick then the other, reseating them carefully, maybe watch a video on how to do that.
Create a Live-USB and see if you can boot an operating system off that to isolate if you have a hard drive problem or not and whether it can boot. 'Dohs or 'Nix


After most recent kernel update (4.15.0-44-generic) my tablet freezes whenever plugged into docking station

Same story here, using a XPS 15 99560 and a TB16 dock.

The only solution found for now is to revert to 4.15.0-43, using the Advanced boot options in GRUB.

Link to the kernel changelog. Link to the launchpad discussion where you can follow the evolution.

EDIT : fixed in 4.15.0-45

* External monitors does not work anymore 4.15.0-44 (LP: #1813663)
    - SAUCE: Revert "drm/i915/dp: Send DPCD ON for MST before phy_up"


You can regenerate your /etc/apt/sources.list content from this link and then enter:

sudo apt-get update


This helped me.

sudo apt-get install libtxc-dxtn-s2tc0


How can I run "grub-customizer" on Ubuntu 12:04

OK, To install Grub-Customizer, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo add-apt-repository ppa:adabbas/1stppa
sudo apt-get update
sudo apt-get install grub-customizer

Once installed, search for it in Dash, and then click on the icon, and it will open.  See images below.

To run it from terminal type:

sudo grub-customizer


Mounting UDF hard drive partition at boot

I've found the base problem and a workaround. The problem is that the udf kernel module will not load during the initramfs phase of boot (it's supposed to even by default but doesn't even if explicitly specified); the workaround is to specify option _netdev on the udf filesystem line in fstab.


The key is generated in your current working directory i.e. the directory you were in while running the command.

The prompt

Enter file in which to save the key (/home/z/.ssh/id_rsa):

will default to the file ~/.ssh/id_rsa if you don't provide anything.

If you give an input, that will be treated as:

Full (absolute) path to the end filename if starts with /
Relative to the $PWD if the path is relative (does not start with /)

So check your current working directory, not ~/.ssh/.


Dual boot with Windows 7 & Ubuntu 16.04 LTS

You need to install Ubuntu in UEFI mode (basically creating an EFI parition during installation.)/

Legacy vs UEFI

Legacy (x86 bit) - if you install Ubuntu with

Root
Swap

then the Ubuntu OS will be installed in Legacy Mode (meaning it won't support UEFI like Windows (x64bit).

UEFI - If you install Ubuntu with following paritions

Root
Swap
EFI

on your PC/Laptop then the Os is installed in UEFI Mode. Usually devices that came into market post 2010 are UEFI Supported meaning x64bit.

Once you've installed Ubuntu in UEFI mode then during boot you will see Grub which also lists Windows bootloader.

Please visit - https://help.ubuntu.com/community/UEFI to learn and install Ubuntu in UEFI mode.


How can I import my printer(s) into Google Cloud Print?

First install Google Cloud Print:

Then you need to run it in a terminal, hit Ctrl-Alt-T and type in the following command:

cloudprint

It will then import your existing printers into Google Cloud Print. If you want to print to a Google Cloud Printer, see this question:

How can I easily set up a Google Cloud Print printer?


There are several options for installing without a CD drive.

Wubi

If you have Windows installed already, you can use Wubi. Wubi installs Ubuntu as an application inside Windows.

USB Flash Drive

Alternatively, you can also install Ubuntu from a USB disc. You'll need a USB flash drive, and Ubuntu live CD ISO, and a program to transfer it to the flash drive.

Making a USB startup drive

If you have Ubuntu installed, you can use the Ubuntu USB Creator, which is in the System > Administration menu.

If you only have Windows installed, you can use Unetbootin to do the same job.

Booting the drive

Once you have a bootable USB drive, you simply have to plug it in and during bootup specify it as the boot device. There are instructions on the Ubuntu wiki On how to boot from a USB drive. Once it's booted, it acts just like a live CD.


Why does nautilus keep asking for username / password when connecting to a SMB share? I can't connect

Your share requires a username and password to access.

So let's take the user "rob" as an example. Unlike Windows there are 2 passwords for "rob" in Linux / Samba. The local login password for that user and the samba password for that user.

You assign a samba password to that user with this command:

sudo smbpasswd -a rob

It can be identical to the local login password if you want but "rob" needs to added the samba password database with the above command.


You just have to install the gstreamer-plugins-good package of your gstreamer version.


How can I add libsvn-java 1.11 to Ubuntu 18.04

Try forcing 64 bit architecture to the repository.

sudo sed -ie 's/^deb http/deb [arch=amd64] http/' /etc/apt/sources.list.d/subversion111.list
sudo apt-get update

You could also drop the 32-bit architecture altogether, but not ideal if you have 32 bit program on your system.

sudo dpkg --remove-architecture i386
sudo apt-get update


How do I install the nvidia driver for a GeForce 9300M?

Installing drivers the official way
The supported way to install hardware drivers is by running System->Administration->Additional Drivers from the classic session.
When you install drivers from Additional Drivers, choose the recommended driver and enable it. Once you have done this, the window should look something like this:

I have a similar card (GeForce 9300M GS) and this driver works well.
You should only install drivers from .run files if:

You don't have an internet connection on your Ubuntu computer.
There is no other way to install the drivers.

Installing graphics drivers from .run files
I have, in the past, been without an internet connection due to a Windows XP only modem. These are the steps I took to install my (NVidia) graphics drivers (original forum post):

Save the .run file in your home folder. This should have the path /home/YOURUSERNAME. You can get to this from Places->Home Folder.

Press Ctrl+Alt+F1. This should bring up a text mode command line interface.

Log in by first entering your user name then your password. Note that when you enter your password you will not see the letters of your password appear on the screen while you type. This is normal and is done for security reasons.

Once logged in, enter the following commands by typing them in, then pressing enter:
cd ~
sudo /etc/init.d/gdm stop
sudo chmod +x driver.run
sudo ./driver.run

Wait for the installer to finish then enter this command: sudo /etc/init.d/gdm start. This should bring back the graphical interface.

I'm not entirely sure if this step is required and, to be honest, I don't know what it does but when I installed the driver I opened a terminal Applications->Accessories->Terminal and entered this command: sudo nvidia-xconfig --add-argb-glx-visuals. This enabled me to enable visual effects.


According to the Chromium projects site it's where the users data directory is. So beyond the configuration it will contain the History, bookmarks, cookies, extensions etc.

To minimise the disk usage, you can uninstall extensions you no longer use and get Chrome to clear it's cache/history.


Need help figuring out this script to write to a floppy disk in Ubuntu 14.04

You have garbled the shell script. It should be:

#! /bin/sh
#
# File copyright Wade Bowmer, but you're free to use it as you like.
#
# Be sure to have a look at http://yceran.org/eps/
#

# Parameter checking
CMD=read
if [ "`basename $0`" == "epswrite" ] ; then CMD=write ; fi
if [ "$1" == "read" ] ; then CMD=read ; fi
if [ "$1" == "write" ] ; then CMD=write ; fi

# Do the actual work
CYL=0
while [ $CYL -lt 80 ] ; do

    fdrawcmd $CMD 0 $CYL 0 0 2 10 0x1b 0xff length=5120 rate=2 track=$CYL

    # Second side
    fdrawcmd $CMD 4 $CYL 1 0 2 10 0x1b 0xff length=5120 rate=2 track=$CYL

    CYL=$(( $CYL + 1 ))

done

Here's how it works:

First, it sets the CMD local variable to "read".
Then, if the script's basename is "epswrite" it sets CMD to "write".
If the 1st parameter to the script is "read", CMD is set to "read".
If the 1st parameter to the script is "write", CMD is set to "write".

The local variable CYL is set to 0.

The CMD and CYL variables will be used in generating the actual command to run.

A loop begins! As long as the condition $CYL -lt 80 (The value of CYL is less than 80) is true, the shell code between the do and the matching done will be repeated.

There are 3 commands in the loop. In the first two, interpolation of the values for CMD and CYL create the acutal commands used to execute the fdrawcmd (See man fdrawcmd). The first time through the loop, the commands will be:

fdrawcmd read 0 0 0 0 2 10 0x1b 0xff length=5120 rate=2 track=0
fdrawcmd read 4 0 1 0 2 10 0x1b 0xff length=5120 rate=2 track=0
#....CMD.^^^^   ^ CYL                                         ^ CYL

The third command in the loop,

CYL=$(( $CYL + 1 ))

increments CYL by 1. After a while, $CYL -lt 80 will not be true, and the loop will end. Execution of the shell script will resume after the

done

line.

To find out what all those parameters to the fdrawcmd command are, read man fdrawcmd or the online copy


Console login on ubuntu-core-16.04-core-armhf.tar.gz

I had the same boot issue with UBuntu core 16.04 on ARM. When I created a symlink to /lib/systemd/system/getty@.service under /etc/systemd/system/getty.target.wants I could get the console working

ln -s /lib/systemd/system/getty@.service getty@ttyAMA0.service

Since ttyAMA0 is a serial device I initially tried creating a symlink to /lib/systemd/system/serial-getty@.service (I suppose this should be the right thing to do based on some systemd blogs) but this didn't seem to have any effect. Maybe someone can throw more light on this.


"Windows" key not opening "start menu" on Ubuntu Studio 18.04

Go to Settings > Keyboard > Application Shortcuts. You should see an entry called "xfce4-popup-whiskermenu".

Change its shortcut to Super key.


The intel-linux-graphics-installer is not a ppa although it is similar. The intel-linux-graphics-installer installs through https and automatically updates and upgrades your graphics processor to the newest graphics stack available through the intel open source project which is not published by intel but is endorsed by intel.

The intel-linux-graphics-installer does add a repository and checks your system and then installs the needed packages which may be a mix of packages available through the ubuntu repos and other packages available through the 01.org repo. You should only have to run it one time.

All I know is that I use it and here is what my version shows:

OpenGL version string: 3.0 Mesa 11.0.2

Here's how to install it:

mkdir intel; cd intel
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | \
sudo apt-key add -
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-2 -O - | \
sudo apt-key add -
sudo apt-get update
sudo apt-get install gdebi
wget https://download.01.org/gfx/ubuntu/15.10/main/pool/main/i/intel-linux-graphics-installer/intel-linux-graphics-installer_1.2.1-0intel2_amd64.deb
sudo gdebi intel-linux-graphics-installer_1.2.1-0intel2_amd64.deb

Here's how to run it:

sudo intel-linux-graphics-installer

reboot

please post any errors


Ubuntu 12.04 and Windows 7 dual boot on ssd + hdd raid1

Probably the easiest thing to do is to completely forgo RAID and to do this:

1) Use Windows Disk Defragment to clean up the drive

2) Use GParted to shrink the Windows partition to 200GB

(From now on, follow only #a, or only #b instructions, but not both)

3a) In the Ubuntu installer select 'Install alongside Windows 7' if it's available

3b) If it's not available, select 'Something Else'

4a) Let the installer do it's work and continue with life as normal

4b) Create a 16GB partition to use as swap

5b) Create apartition using the rest of the space on the SSD to serve as the main Ubuntu partition

6b) Select to use the partitions as swap (for the 16GB) and / (for the main partition) and to format them.

7b) Let it install

8b) Boot Ubuntu with your BIOS boot manager (usually press F8 or ESC or something during bootup, it will tell you)

9b) Run this in Terminal:

sudo grub-install /dev/sda

10b) You should see a list of various kernels, including Windows 7.

11b) Reboot and enjoy

FINAL STEP: Format the 1TB drive as NTFS inside Windows 7, and it will be shared between the two OS's.

*No matter what, don't format your Windows partition, or you will lose it.  It is always wise to backup data before any project, to prevent data loss.


Error mounting: mount exited with exit code 13

In this case it's worth checking your NTFS drive first:

Install ntfsfix
Then from terminal run the following,
sudo ntfsfix /dev/sda2


Error installing Ubuntu Server 16.04 on VMWare

Your Virtual Machine is trying to boot from PXE (this is a network boot protocol). Unless you have a network boot server on your local LAN, it will not work.

You need to configure VMWare to boot from removable media, and "insert" the Ubuntu image (.iso) in a virtual drive.

Go to the VM Settings > Hardware and, if not present, add a CD/DVD drive. Then connect the Ubuntu ISO to it and boot your Virtual Machine again.

Link to VMWare WS 11 documentation for adding CD drives.


Is GCC-4.8 available for 12.04 Precise now?

Update: As of 6/05/2013, there is currently a release of gcc 4.8.1 for 12.04(precise) available at https://launchpad.net/~ubuntu-toolchain-r/+archive/test.

The short answer is: gcc-4.8 is currently available for 12.04(Precise) via the toolchain PPA or by compiling the source(see below for details).

Release Announcement

The announcement for the release of gcc-4.8 was made on March 22nd, so you probably won't be seeing this in an official repository just yet.

However, it appears that Launchpad does have a PPA available for the toolchain test builds that does include gcc-4.8, here: https://launchpad.net/~ubuntu-toolchain-r/+archive/test

According to the changelog and package list, there are debs for i386, amd64, arm, and powerpc and were built against raring 13.04.

The latest available version of gcc, for 12.04, is 4.8.1 and is available in the toolchain PPA.

Adding the toolchain/test PPA:

To add the PPA to your system, open a terminal(Ctrl+Alt+t) and run the following commands:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50

You will also be prompted to install a number of suggested packages.
These packages are recommended, but optional, for the installation of gcc-4.8.

What are PPAs and how do I use them?
Are PPA's safe to add to my system and what are some "red flags" to watch out for?

What C++ features are available in gcc-4.8 that are not available in gcc-4.7.2?

According to GNU.ORG, gcc-4.7, supports a number of C++11 features.
As of the gcc-4.8 release, gcc-4.7 does not support 8 out of 64 features  (See C++0x/C++11 Support in GCC)
These features are:

Language Features
- Rvalue references for *this
- Generalized attributes
- Alignment support
- Inheriting constructors
Concurreny
- Bidirectional Fences
- Memory model
- Abandoning a process and at_quick_exit
- Thread-local storage

For a full list of changes in gcc-4.8, see the Changelist

I need these gcc features on 12.04 Precise, now. How can I get them?

Building GCC-4.8 from source:

If you need gcc-4.8 on 12.04 now, your only option is to build it from source.

Please read the GCC installation FAQ prior to installation.

You can download gcc-4.8 from one of gnu.org's mirror sites or directly from their SVN server.

Here is an example of steps to compile from source (see here for additional details.) Note that these may vary depending on your system and preferences.

Download the source code

Make a build directory ( mkdir gcc-build && cd gcc-build)
Download the source file: wget http://www.netgull.com/gcc/releases/gcc-4.8.0/gcc-4.8.0.tar.bz2 (adjust this command to use an appropriate mirror site.
Unzip the file (tar -xvjf <file name>)

Install some additional libraries (sudo apt-get install libgmp-dev libmpfr-dev libmpc-dev libc6-dev)
Compile the source: ./gcc-4.8.0/configure --prefix=/app/gcc/4.8.0
Run make (This will take some time to complete. Go make some coffee, or bake some cookies. ;-))
Install the code: sudo make install

Once this process has completed, run the command gcc --version to verify that the installation has completed successfully. You should see something similar to the following output:

maggotbrain@foucault:~$ gcc --version
gcc (Linaro 4.8.0) 4.8.0
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The bottom line: Thank all those folks who provide easy to install Ubuntu backports for you. Give them some of the cookies that you baked while running make. ;-)


I recognized it as some sort of memory overflow, so I removed one of the sticks of ram (making it 2 GB instead of 4 GB). Once I did that it booted up fine!


What is Ubuntu Touch (Ubuntu for Phones)

Ubuntu Touch / Ubuntu for Phones as the name implies, is the Ubuntu version for Mobiles (Smartphones & Tablets). This is still in DEVELOPMENT and any mobile phone right now would be a DEVELOPMENT PREVIEW, which means an unfinished, for test only product.

(Check at the bottom of this answer for updates)

Right now is too early to tell how Ubuntu Touch will work, will be sold, how the software will be integrated, how to get the software and work on it/with it or even be compatible with an Ubuntu Desktop.

The link you provided about Ubuntu for Phone is just a presentation of a new product, same as Ubuntu for Android and Ubuntu TV, they are being worked on for a future version but at least they have being announced so end users and developers know where Ubuntu is going.

We can see right now for example:

Looks, Design, Features and Requirements

Ubuntu Touch Status Page (For all Supported Devices)
How it will look and feel
Ubuntu for Phones Hardware Requirements
Ubuntu Table Hardware Requirements

Information for Developers

How friendly it will be to develop in it
How to develop in it
Ubuntu Tablet Information
Ubuntu Table Development
Ubuntu User Interface Toolkit (SDK)
PPA To Download the SDK/QT5 (Supports 12.04+)
Where to Submit your Apps
Email Contact for Developers: gomobile@ubuntu.com

News About Ubuntu for Phones

Testing Ubuntu Touch Images
Mark Shuttleworth on Ubuntu on Phones and Android
Video in Phoronix about Mark Shuttleworth talking about Ubuntu on Smartphones
Direct Youtube (Larger) video of Ubuntu for Phones
"Prediction" by CNN that Ubuntu will "Fail" - I added this part to make a personal statement about it, first as one of the comments found there shows:

Funny thing that there are several windows 8 phone videos on YouTube with 50k - 500k views and they are some 2 - 11 months old. Ubuntu-phone video has almost 1M views after two (2) days...

If you look at most Windows 8 videos and then look at that one (1) video of the Ubuntu for Phone ad you will see that it is true. It is important to know that Ubuntu for Phone is not just a normal smartphone and there is no 10 users that will end up buying one. It will have several smart ways of connecting it to a PC or TV. It can actually be used as a PC and it will have many features that will work out of the box with any Ubuntu computer (And also with Windows) integrating itself with Unity, the HUD and other Ubuntu features. This are just to name a few since there are many surprises to be seen from here until we see 13.04, 13.10 and 14.04.

The planned design style, I for one finding it awesome, it is very well made taking ideas from Unity itself while thinking on how to be more friendly to the user on phones. The hardware that is optimized is very good and I know that I will not be the only one saving up for one of this when it comes out. All of this is just my personal thoughts about it but wanted to leave some information noted from day one. If you have seen the video, you will have noticed all the information Mark Shuttleworth mentions and how well thought out the Ubuntu idea for phone is.

In WebUpd8 we can see a quoted message about Ubuntu phones not ready for purchase but they are starting to work with partners to start selling them before the end of 2013. So at least until the end of 2013 when Ubuntu Smartphones start to sell, there will be little information about this.

Also remember that Ubuntu for Phones, TVs and Tablets is a milestone set between 13.10 and 14.10 when Unity's integration on all types of hardware will be complete or near completion (Less bugs, better hardware support, better ARM support, etc..).

Will my Android Phone work with Ubuntu for Phone? Will it be an alternative?

Ubuntu for Phone will be another OS alternative to Phones, specially Smart Phones, that works with any phones that carry Android and have the minimum hardware requirements posted above. Phones like Samsung, HTC, Sony, LG and others that offer Android will be able to install Ubuntu for Phone on them. Of course, this will not be an App for Android, instead it will replace Android on that phone. So not only will new phones come with Ubuntu pre-installed, but it will also work on already existing Android phones

UPDATE 6 Feb 2013 - In Slashdot we can see an article about Ubuntu Smartphones shipping in October which points to a wsj article about Ubuntu Smartphones, including a link to Ubuntu Smartphone Designs. Pretty neat and open way of providing users with the ideas behind the design. This will truly turn into something big once users know they can be part of it's design. Another link is the OMGUbuntu post about Ubuntu Phones

UPDATE 18 Feb 2013 - In The H, we can see an article about Developer Preview for Ubuntu Phones which mentions an article in the Canonical Website that mentions the releases of the Developer Preview for Ubuntu Phones on the 21 Feb 2013.

UPDATE 19 Feb 2013 - Ubuntu has released the first Ubuntu Tour for Tablets. You can see the website at http://www.ubuntu.com/devices/tablet

You can also see the video here: http://www.youtube.com/watch?v=h384z7Ph0gU

UPDATE 21 Feb 2013 - The Ubuntu Phone, Tablet Developer Preview has been released

UPDATE 22 Feb 2013 - The Ubuntu Phone Porting Guide was unveiled

You can also visit the official Touch site


How do I upgrade from 14.04 to 14.10 instead of 15.10?

Go here:  http://old-releases.ubuntu.com/releases/14.10/

Select the version you want (ubuntu-14.10-desktop-amd64.iso or ubuntu-14.10-desktop-i386.iso etc) and download it.  Either burn it to disk or make bootable USB.

You can use unetbootin to create a bootable USB.  If not installed, do sudo apt-get install unetbootin in terminal to install it.

Boot from the CD or USB and select the option "Upgrade Ubuntu 14.04 to 14.10" during the installation.

And just a tip before upgrading, run sudo apt-get --purge autoremove to clean things up before upgrading.  Just makes things smoother and the process a bit faster.


How to install gcc 4.1.2 on Ubuntu 16.04 ?

Assume a 64bits Ubuntu 16.04 .

Available is {gcc-3.4.6, g++-3.4.6} ... This version is very close to gcc-4.1.2 .

gcc34 https://drive.google.com/file/d/0B7S255p3kFXNRTkzQnRSNXZ6UVU/view?usp=sharing

g++34 https://drive.google.com/file/d/0B7S255p3kFXNV3J3bnVoWGNWdG8/view?usp=sharing

Clik the packages, compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb and compat-gcc-34-c++_3.4.6-20_amd64.deb : They will then be installed.

Using, examples : 1) $ export CC=gcc34 CXX=g++34 && [other command] ... like 2) $ export CC=gcc34 CXX=g++34 && ./configure .... and 3) $ gcc34 file.c

? Which application is it that requires gcc-4.1.2 ?


You can define a function in your ~/.bashrc as follows

showred(){
    export RED='\033[1;49;91m'
    export NC='\033[0;0;0m'
    echo -e $RED"$@"$NC
}

Source ~/.bashrc as . ~/.bashrc or open a new terminal and try.

Also you can write in colours while writing something on terminal using echo or printf as following,


Parallel and VMWare tools for Ubuntu 12.04

i did:

sudo mount -o exec /dev/cdrom /media/cdrom

and this mounted parallel tools in /media/cdrom (provided that parallel tools .iso was being mounted in the vm settings).

then sudo /media/cdrom/install works


Force the installation of libprotobuf-lite9v5

sudo apt-get install libprotobuf-lite9v5

Repair the system with

sudo apt-get install -f

Mark the package as being installed automatically

sudo apt-mark auto libprotobuf-lite9v5

Install the needed packages

sudo apt-get install gimp
sudo apt-get install inkscape


Devanagari fonts displayed improperly in Chromium

It's a known but unfixed bug in Chromium (and Chrome). The bug causes complex scripts including Devanagari and Thai to position combining marks incorrectly.

http://code.google.com/p/chromium/issues/detail?id=43951


Free text editor with comment/uncomment shortcuts

you can use a ide called geany, for installing it type

sudo apt-get install geany

and after go to the edit menu and then go to keybindings menu and from there set
keyword for commenting and uncommenting the code, and then press code combination in the code it will work,


You want to restore the master boot record, which will mean you lose the grub boot manager which is what you are seeing.

http://www.sevenforums.com/tutorials/20864-mbr-restore-windows-7-master-boot-record.html


Why the file has 0755, but 'Permission denied'?

the "vagrant" user will not have permissions to do anything in /root because it will have 0700 perms. Therefore anything in /root or in any subdirectory under /root etc will not be accessible by any use other than root. Prefix it with sudo and it should work.

This is the correct setup and I strongly recommend that you leave /root's perms as 0700. Don't chmod 0755 to make that command work or anything.


Has a disk drive repair removed Ubuntu from my computer?

Is there anyway to get Ubuntu back or do I have to get a new USB drive and essentially start everything again?

Boot from a live USB and check the partitions it shows in Nautilus. If you can see the Ubuntu partitions run boot repair. Windows has likely overwritten your boot sector and removed Grub. Grub is needed to boot multiple operating systems that are not Microsoft related. If that works you recreated dual boot.

It the partitions are not shown you likely did a restore from the internal Windows recovery partition. That will remove Ubuntu and set it back to "factory settings". In that was activated though you would have gotten a warning that the system is going to do that. The 1st scenario is more likely.

Always make backups and keep those backups outside of that machine.


Turn off WiFi when connected to Thunderbolt dock

I use the following script to handle whether wifi should be active based on an ethernet connection. You could likely make minor edits for your use case and connection names (e.g. "eth0"). You will need to chmod +x and permission as necessary ...

With NetworkManager, it sits in /etc/NetworkManager/dispatcher.d/

wlan_auto_toggle.sh

#!/usr/bin/env bash

if [ "$1" = "eth0" ] || [ "$1" = "eno1" ]; then
    case "$2" in
        up)
            logger "[Script] Ethernet connect detected. Turning Wifi radio OFF";
            nmcli radio wifi off
            ;;
        down)
            logger "[Script] Ethernet disconnect detected. Turning Wifi radio ON";
            nmcli radio wifi on
            ;;
    esac
fi

Here is a reference to NetworkManager events ($2) that may be helpful: https://developer.gnome.org/NetworkManager/stable/NetworkManager.html


What does grep ch->spl[4] * do? It will search for the pattern ch- in all files (and directories) in your current directory and save the result in the file spl[4]. To avoid this, you should always quote your grep patterns:

grep "ch->spl[4]" *

Still, the behavior you describe is very strange, there is no reason why this would have changed you your grep works. What is probably happening is that you keep searching through the spl[4]  file (because you are grepping *) and that file contains the output you see. Chances are that if you delete it, things will go back to normal.


How do I uninstall Putty (Windows application installed via Wine)?

It is already answered multiple times. Because of too less reputation I am not allowed to write it a s a comment.

[alt]+[F2] -> wine unsinstaller -> Follow the Add/Remove dialog.

Uninstall a program installed with Wine


In short, no symbolic links does not break after time. Hard to answer the question with the details specified. But from what I can gather, /opt and /home2 is different mount points? And you have hard-link as a tag.

Hard symbolic links does not work between different mount points, and hard links cannot link directories. See info coreutils ln for more information.

But back to your problem, just configure ir_attachment.location to point to /home2/filestore via Settings > Technical > Parameters > System Parameters. Read more in this stackoverflow answer: How to store attachments to local filesystem on 7.0? | Stack Overflow


The hostname can be retrieved via netplan ip leases .  It appears that it outputs the contents of a file residing in /run/systemd/netif/leases/<#>.

There is a field, HOSTNAME, that can be consumed.  It appears systemd / netplan are indicating this may change in the future, but once the hostname is retrieved, it can be set in the normal means.

hostname -b $(grep "HOSTNAME=" $(find /run/systemd/netif/leases -type f) | head -1 | cut -d '=' -f 2)


What do the updates provide in the Nexus 7 Desktop Installer?

The newer version of the installer includes support for the 32gb model, as well as an updated info screen warning the user that this is a developer release.  It also has some fixes for incorrectly cached downloads.

Now vs updating and then re-installing, you can get essentially the same results by upgrading.  However, a simple upgrade won't do, you'll need to run (on the device):
sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get install linux-image-nexus7

The reason for the additional package install is that there was a change in the kernel meta-package structure.  Doing this will essentially create a system that's the same as doing a fresh install with the new image.

It is a matter of preference at this point, as a fresh install is often preferred by some people to ensure a consistent experience, but an updated system should be comparable.


How can I install pdo_oci extension on Ubuntu 14.10?

After a complete purge of php installation I reinstalled php. Later following the steps described in here first answer I could install pdo and pdo_oci as expected.


How do I get the actual used memory including RAM disks?

you can install htop via the terminal

sudo apt-get install htop

then run htop in the terminal

disclaimer I guess this does not work on Lucid correctly


Removing all unnecessary fonts from system

These are the fonts I purge from a new installation. Clearly, the list is not suitable for all users:

sudo apt purge \
fonts-beng-extra \
fonts-beng \
fonts-deva-extra \
fonts-deva \
fonts-gargi \
fonts-gubbi \
fonts-gujr-extra \
fonts-gujr \
fonts-guru-extra \
fonts-guru \
fonts-indic \
fonts-kacst-one \
fonts-kacst \
fonts-kalapi \
fonts-khmeros-core \
fonts-knda \
fonts-lao \
fonts-lklug-sinhala \
fonts-lohit-beng-assamese \
fonts-lohit-beng-bengali \
fonts-lohit-deva \
fonts-lohit-gujr \
fonts-lohit-guru \
fonts-lohit-knda \
fonts-lohit-mlym \
fonts-lohit-orya \
fonts-lohit-taml-classical \
fonts-lohit-taml \
fonts-lohit-telu \
fonts-mlym \
fonts-nakula \
fonts-navilu \
fonts-noto-cjk \
fonts-orya-extra \
fonts-orya \
fonts-pagul \
fonts-sahadeva \
fonts-samyak-deva \
fonts-samyak-gujr \
fonts-samyak-mlym \
fonts-samyak-taml \
fonts-sarai \
fonts-sil-abyssinica \
fonts-sil-padauk \
fonts-smc-anjalioldlipi \
fonts-smc-chilanka \
fonts-smc-dyuthi \
fonts-smc-karumbi \
fonts-smc-keraleeyam \
fonts-smc-manjari \
fonts-smc-meera \
fonts-smc-rachana \
fonts-smc-raghumalayalamsans \
fonts-smc-suruma \
fonts-smc-uroob \
fonts-smc \
fonts-taml \
fonts-telu-extra \
fonts-telu \
fonts-thai-tlwg \
fonts-tibetan-machine \
fonts-tlwg-garuda-ttf \
fonts-tlwg-garuda \
fonts-tlwg-kinnari-ttf \
fonts-tlwg-kinnari \
fonts-tlwg-laksaman-ttf \
fonts-tlwg-laksaman \
fonts-tlwg-loma-ttf \
fonts-tlwg-loma \
fonts-tlwg-mono-ttf \
fonts-tlwg-mono \
fonts-tlwg-norasi-ttf \
fonts-tlwg-norasi \
fonts-tlwg-purisa-ttf \
fonts-tlwg-purisa \
fonts-tlwg-sawasdee-ttf \
fonts-tlwg-sawasdee \
fonts-tlwg-typewriter-ttf \
fonts-tlwg-typewriter \
fonts-tlwg-typist-ttf \
fonts-tlwg-typist \
fonts-tlwg-typo-ttf \
fonts-tlwg-typo \
fonts-tlwg-umpush-ttf \
fonts-tlwg-umpush \
fonts-tlwg-waree-ttf \
fonts-tlwg-waree \
fonts-yrsa-rasa

Note that the list includes fonts-noto-cjk.


You can try blacklisting the Arduino for modemmanager via udev rules:

As root, create a new file e.g. arduino-boards.rules in /etc/udev/rules.d
Still as root, add the following line to the new file:

ATTRS{idVendor}=="2341", ENV{ID_MM_DEVICE_IGNORE}="1"

Save the file, and then run:

sudo udevadm control --reload-rules

sudo udevadm trigger

Important: The "idVendor" number is valid only for Arduino boards. You can do the same for any other boards. The device usually advertises its vendor ID on connection in the syslog which you can check e.g. via dmesg.


Sounds like you have some items in an old gnome trash folder instead of the newer xdg trash folder. Do you need to recover the files and could you specify what you're looking for?

Even if you find out what's wrong, this still should be reported as a bug:

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


How can I run a C program from Code Blocks?

First of all, Any C program is saved with .c Extension. And C++ program is saved with .cpp extension.

Now coming to compilation,

If you want to compile it using Terminal, Open the terminal (Press CTRL + ALT + T).
Go to the directory where the file is saved. (You can use cd command to change directory).
After reaching the directory , type gcc file1.c.
If there are no errors, then you can run the output by typing ./a.out.


How to resume from suspend or hibernate only by the power button?

This seems to be even better (as integrates with systemd) :

For a USB mouse or keyboard, you can use a udev rule to make the
setting permanent. First, look up the PCI vendor ID of your
mouse/keyboard using lsusb. For my mouse, it's 046d:
Bus 001 Device 006: ID 046d:c52b Logitech, Inc. Unifying Receiver
Then create a "rules" file like my /etc/udev/rules.d/logitech.rules,
only replace "046d" with the vendor ID of your own device:
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046d", ATTR{power/wakeup}="disabled"

Source: https://unix.stackexchange.com/a/532839/439288
Tested. Works fine with Ubuntu 20.04 and MS Sculpt keyboard


Building AppRTCDemo failed in LINK md5sum_bin_host

I got this error in branch 51. I found the problem is md5sum must link to libatomic when use gcc 5.x version. So, i modify the file <dir of webrtc>/src/chromium/src/tools/android/md5sum/md5sum.gyp as follows:

diff --git a/tools/android/md5sum/md5sum.gyp b/tools/android/md5sum/md5sum.gyp
index 9099ba9..177883d 100644
--- a/tools/android/md5sum/md5sum.gyp
+++ b/tools/android/md5sum/md5sum.gyp
@@ -76,6 +76,18 @@
       'sources': [
         'md5sum.cc',
       ],
+      'conditions': [
+        [
+            "OS=='android'",
+            {
+            "link_settings": {
+                "libraries": [
+                    "-latomic"
+                    ]
+                }
+            }
+        ],
+      ],
     },
   ],
 }

then cd to <dir of webrtc>/src and run:

python webrtc/build/gyp_webrtc.py
ninja -C out/Debug AppRTCDemo


So far the best way I've found is to install the edge snap, which has a few advantages over the .deb session.

It runs on 16.04, I don't need to upgrade my base OS.
It's all self contained, so I'm not stomping on my existing system, so when I remove it my system remains clean.
It gets updated independently of what's in 16.04

All I did was:

sudo snap install unity8-session --edge --devmode

Then I have an option to login to Unity 8 on the login screen. I was able to get a working desktop (albeit unfinished) on my laptop. To remove the session:

sudo snap remove unity8-session


The package friends-app is only avail able for Ubuntu 13.04 onwards. You can search packages.ubuntu.com for it.

There is some ppa to install it on Ubuntu 12.10 See this page

And if you are using Ubuntu 12.04 you can not have this. See this answer


There are 2 options:

Download from python.org and compile it yourself. In your homefolder for example to not mess with system files.
Add the following PPA. I have no idea how it handles already installed versions though. https://launchpad.net/~fkrull/+archive/deadsnakes?field.series_filter=precise

And, I must ask: why 2.4? That version is ancient!

Edit: To install modules/packages for that version, you can't just use the ones from the Ubuntu repository. You'll need to get them from their website and do the regular python setup.py install and make sure you use the Python 2.4 interpreter.
A bit easier probably is to use pip, but again, use it with the correct Python interpreter.


installed netatalk but still cant connect by afp

I found the solution to this at:

https://bugs.launchpad.net/ubuntu/+source/netatalk/+bug/810732

There is a bug in netatalk.

You need to edit /etc/netatalk/afpd.conf and replace uams_dhx2.so with uams_dhx2_passwd.so. All is working now!!! woot!!!!


After much digging, I realized that the source of my confusion is the fact that Ubuntu was installed with WUBI. Also, the multi-boot via UEFI did something weird where it seems only one partition was used. Somehow, Ubuntu and windows boots from a single partition under a single SSD marked as an MBR.

Furthermore, I did not have enough space to do a clone of the root disk before a resize - I needed to resize in place.

These were the instructions I followed, which allowed me to do everything within 5 mintues on my SSD: Ubuntu Help Wiki - resize wubi disk

You have to boot from a live CD/USB. This won't work while running Wubi.
Backup the root.disk (not required, but a good idea)
Mount the NTFS partition that your root.disk is on (this example assumes it's /dev/sda1 and the mountpoint is /media/win - adjust accordingly in the following instructions):

sudo mkdir -p /media/win
sudo mount /dev/sda1 /media/win

Check the size of the root.disk (not required)

du -h --apparent-size /media/win/ubuntu/disks/root.disk

Run fsck on the root.disk

fsck -f /media/win/ubuntu/disks/root.disk

Resize - specify the desired final size (this example resizes to 10 GB)

resize2fs /media/win/ubuntu/disks/root.disk 10G

Reboot back into Wubi Ubuntu

I hope this helps others in my same, somewhat unusual situation, in the future. Please feel free to explain why the setup may have been done using a single partition as I set this up a long time ago, and simply chose the path of least resistance to get my laptop up and running. Everything was configured on a new SSD where I had to boot from USB to install.


Could be a problem with module uas.

Create file /etc/modprobe.d/usb-storage.conf

with following content.

options usb_storage quirks=1058:1042:u

easy way is to reboot, after that.


How to Tab-complete directories when in symlinked directory?

This is a bug in bash-completion (a third-party project, not affiliated with bash itself). /etc/bash_completion is sourced in ~/.bashrc by default in Ubuntu, and amongst the thousands of lines of code (most of which you likely never need), is a completion function for the cd builtin that doesn't handle symlinked directories properly. If you disable its completion for the cd builtin, your tab-completion for cd should work more like you expect.

complete -r cd


Auto upload MP4 files from phone to Ububtu One

Nexus 5 is an Android phone, so you must be using Ubuntu One Files (Android) application to sync files between your phone and Ubuntu One Web. Assuming that you do, I am enlisting some  features of the Android app -

Ubuntu One Files (Android) application provides follwing features -

Sync files from Ubuntu One Web to desktop and vice-versa
Auto-upload images from Android to Ubuntu One Web when enabled.
Selectively sync files / folders from desktop to Ubuntu One Web
Download / Upload files or folders to and from Ubuntu One Files app on Android

However, it does not yet provide feature to -

Auto-upload music files (*.mp4, *.mp3 etc.) or any other file types apart from pictures to Ubuntu One Web.
Automatically sync updated file versions from Ubuntu One Files app to U1 Web or vice-versa.

In a nutshell, Ubuntu One Files app is still in a nascent stage as compared to Dropbox or Google+.

Be patient, and they will build it for you!


Does Ubuntu still brick certain devices?

You're getting a bit mislead here.

The problem was with certain systems that use UEFI. It has since been solved. Other systems were (and remain) unaffected. So, if your system isn't from Samsung and doesn't come with Windows 8, you're likely in the clear.


Try (in terminal a Ctrl+Alt+T):

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

Open Shutter by simply typing Shutter in the terminal.


How can I see a history of the terminal output, not just commands entered?

You can append all logs to a text file by redirecting output. But this requires each command is executed like this (this will catch both stdout & stderr)

command >>file.txt 2>&1

OR

You can record screencasts of terminal, since it stores screencast in text file, you can use that. Its called shelr

Files are stored in ~/.local/share/shelr/

Source: http://www.omgubuntu.co.uk/2012/04/how-to-record-and-share-terminal-screencasts-quickly/

Note: I have no idea of android development.This answer is based on shell scripting.


How to know if I completely exit nautilus as root

You should look back in your terminal. If the last line is your prompt then for sure your last command linline, sudo nautilus in your case, has finished.


Videos have a horizontal cut when played on VLC on 16.04 or 18.04

That looks like screen tearing, which is typically caused by a mismatch between the framerate of the software you are using and the refresh rate of the monitor.

You should be able to fix this by enabling vertical sync in your video adapter settings.


After upgrading to 15.10: Login loop after purple screen, locked out from network on tty1

Very likely you had the proprietary AMD driver installed. It was broken for a couple of weeks. Fixed now. A fresh install would have used the open-source radeon driver.


Read man dmraid. It says, in part:

   {-R| --rebuild} RAID-set [device-path]
          Rebuild  raid  array after a drive has failed and a new drive is added.  For Intel chipset based systems, there are two methods in which a new drive is added to
          the system.

          1. Using OROM to identify a new drive
              During system reboot, enter OROM and mark the new drive as the rebuild drive.
              After booting to the OS, use the dmraid command to rebuild.

              Example: dmraid -R raid_set

          2. Using dmraid to identify a new drive
              Boot to the OS and use the dmraid command with the new drive as the second parameter.

              Example: dmraid -R raid_set /dev/sdc

          3. Using hot spare drive
              Mark a drive as hot spare using the "dmraid -f isw -S" command. Then use the dmraid command to start the rebuild.

              Example: dmraid -R raid_set


Windows 10 is not booting after I installed Ubuntu

Your Windows bootloader may have been corrupted. You can solve the issue with the steps below.

Insert a bootable USB/DVD of Windows
Boot using that bootable USB/DVD
Select the "Repair my computer" option that you will get after clicking the install button.
If that does not work (error message "Windows failed to repair", then open a command prompt using 'advanced options' and run the following 3 commands

bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildBCD
Restart your computer and check whether it works or not.


What is the proper way to install mysql in Ubuntu 18.04?

Roughly the three points which are spoken about in the other thread is correct

Install mysql-server

Better upgrade the system first:

sudo apt-get update && sudo apt-get upgrade

After the system upgrade install mysql-server

sudo apt-get install mysql-server

Create a mysql root user. Normally the system should ask you for a root user password, which will be the admin password for your DB.
If this is not the case, or you'd like to change it, the following command should be helpful.

sudo mysql_secure_installation


Ubuntu 14.04 windows 7 dual boot problem

This is a nightmare, I have a lenovo y510p. This UEFI boot is very problematic. Each time that that I have to update the ubuntu boot loader I have manually fix the boot. Another problem is the recovery partition. This partition also have a bootloader. In my case is the only one that ubuntu finds. Finally, there is something hardcode on the lenovo boot system to make the recover button works. In the end, I bought a second HD and I use the bios boot manager to choose which HD I want to boot. In my case is the key F12 on the beginning of the boot.

this link show how to install


How can I access hosted RDP on Ubuntu 15.10

Maybe this Using windows exported ".rdp" file from Ubuntu is an answer for you. Remmina should import rdp file.

The other option, I can think of, is to write a program that would parse a rdp file that you download and create options for remmina which would work. As I recall rdp files are text files.

I would first investigate rdp file and try to make a connection with the settings from rdp file. To see if it works.


How to have terminal repeat with different IP?

nslookup itself doesn't have support for CIDR notation, ranges or wildcards, so your best option is likely a simple bash loop.

for ip in 192.168.1.{2..20}; do nslookup $ip; done


If a partition table does not exist and is not created, then using Partition -> New will format the entire device with the selected file system.

See GParted Manual - Creating a Partition Table to learn about the two most popular partition tables (msdos and gpt).


Trying to install Ubuntu on Dell XPS 15 (9570)

I've summarized all of this into a blog post https://medium.com/@pwaterz/how-to-dual-boot-windows-10-and-ubuntu-18-04-on-the-15-inch-dell-xps-9570-with-nvidia-1050ti-gpu-4b9a2901493d

I struggled with this as well. What ended up working for me is as follows, note I installed Ubuntu 18.04:

Follow the first part of this doc - https://github.com/rcasero/doc/wiki/Ubuntu-linux-on-Dell-XPS-15-(9560) in regards to bios settings and changing the windows partition from raid to ahci. This will allow you to boot the live CD. Note, I did end up having to enter my windows key to unlock the drive after I did this to get back into windows.
Install Ubuntu normally.
JackJack96 did a fabulous job scripting all setup and package installation steps here https://github.com/JackHack96/dell-xps-9570-ubuntu-respin. The primary purpose of those scripts is to generate an image with the packages already installed, but he does provide a script to set things up on a existing installation. After you boot for the first time, open terminal and run the following:

sudo apt install curl
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/JackHack96/dell-xps-9570-ubuntu-respin/master/xps-tweaks.sh)"
sudo prime-select intel

This forces the use of the intel integrated graphics, no need to waste battery. I have not tested running the nvidia card. If you want to, run:

sudo prime-select nvidia

The last issue I ran into was the screen would start flickering. I solved this by changing the resolution to 2048 x 1152 and setting the refresh rate to 59.91. At first I did have it set at 3840 x 1152, with the lowest refresh rate, but it was still a little unstable, so I dropped the resolution. It's basically the same as running 4k and scaling up to 250% - which is the default. Side note, I owned an XPS 10 years ago, and ran into this same issue...why is it still happening?

I've been running this setup for a couple days and it mostly works. The screen does occasionally freak out when I plug in the power, still need to work that out.

Lastly, one tweak that was icing on the cake was installing https://github.com/bulletmark/libinput-gestures.

Last but not least, back up your image so if you break something you can restore it:

sudo dd if=/dev/nvme0n1p2 conv=sync,noerror bs=64K status=progress |  gzip -c  > backup.img.gz

Make sure to replace nvme0n1p2 with the proper partition. You can check it by running:

df -h

My advice is to do this on a fresh install. You end up installing and configuring so many different things when trying to get things working, and that will ensure you don't have any issues.

Update 1:

Screen flickering/crashing continues. Did some digging and it appears to be a bug with linux kernel. I updated my kernel to 4.17.12-041712-generic by doing the following:

git clone git@github.com:mtompkins/linux-kernel-utilities.git
cd linux-kernel-utilities
sudo ./update_ubuntu_kernel.sh --latest

Note, when you run this, you might install a newer kernel version than I did. For the moment things seem a little better, only been a couple hours though. Will update later if it stays stable.

Update 2:

Used the computer all day and no flickers. Kernel update seems to have done the trick.

Update 3
No flickering still after kernel update. I did notice an issue when suspending the laptop where it was getting very hot and not fully shutting down. I traced it to what looks to be a bug in nouveau driver:

Aug 08 19:20:26 hermes kernel: Hardware name: Dell Inc. XPS 15
9570/02MJVY, BIOS 1.3.0 07/12/2018
Aug 08 19:20:26 hermes kernel: Workqueue: events_unbound async_run_entry_fn
Aug 08 19:20:26 hermes kernel: RIP: 0010:gf100_vmm_flush_+0x15c/0x1a0 [nouveau]
Aug 08 19:20:26 hermes kernel: RSP: 0018:ffffa9fc0782f5c8 EFLAGS: 00010282
Aug 08 19:20:26 hermes kernel: RAX: 0000000000000000 RBX: ffff969a575e0050 RCX: ffffffffaf061dc8
Aug 08 19:20:26 hermes kernel: RDX: 0000000000000000 RSI: 0000000000000096 RDI: 0000000000000246
Aug 08 19:20:26 hermes kernel: RBP: ffffa9fc0782f600 R08: 0000086da855788c R09: 000000000000001d
Aug 08 19:20:26 hermes kernel: R10: 0000000000000766 R11: 00000000000158a8 R12: ffff969a49d08c00
Aug 08 19:20:26 hermes kernel: R13: ffff969a2b5d0f00 R14: 000003cbc7bc6800 R15: ffff969a494a5000
Aug 08 19:20:26 hermes kernel: FS:  0000000000000000(0000) GS:ffff969a5bcc0000(0000) knlGS:0000000000000000
Aug 08 19:20:26 hermes kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Aug 08 19:20:26 hermes kernel: CR2: 00007f15f4007036 CR3: 00000001b960a004 CR4: 00000000003606e0
Aug 08 19:20:26 hermes kernel: Call Trace:
Aug 08 19:20:26 hermes kernel:  gp100_vmm_flush+0x17/0x20 [nouveau]
Aug 08 19:20:26 hermes kernel:  nvkm_vmm_iter.constprop.14+0x323/0x810 [nouveau]
Aug 08 19:20:26 hermes kernel:  ? gp100_vmm_pd0_pde+0x1a0/0x1a0 [nouveau]
Aug 08 19:20:26 hermes kernel:  ? __switch_to_asm+0x40/0x70
Aug 08 19:20:26 hermes kernel:  ? __switch_to_asm+0x40/0x70
Aug 08 19:20:26 hermes kernel:  ? native_sched_clock+0x37/0x90
Aug 08 19:20:26 hermes kernel:  nvkm_vmm_map+0x148/0x400 [nouveau]
Aug 08 19:20:26 hermes kernel:  ? gp100_vmm_pd0_pde+0x1a0/0x1a0 [nouveau]
Aug 08 19:20:26 hermes kernel:  ? __switch_to_asm+0x40/0x70
Aug 08 19:20:26 hermes kernel:  ? __switch_to_asm+0x34/0x70
Aug 08 19:20:26 hermes kernel:  nvkm_vram_map+0x57/0x80 [nouveau]
Aug 08 19:20:26 hermes kernel:  nvkm_uvmm_mthd+0x5ff/0x8d0 [nouveau]
Aug 08 19:20:26 hermes kernel:  nvkm_object_mthd+0x1a/0x30 [nouveau]
Aug 08 19:20:26 hermes kernel:  nvkm_ioctl_mthd+0x65/0x70 [nouveau]
Aug 08 19:20:26 hermes kernel:  nvkm_ioctl+0xe2/0x180 [nouveau]
Aug 08 19:20:26 hermes kernel:  nvkm_client_ioctl+0x12/0x20 [nouveau]
Aug 08 19:20:26 hermes kernel:  nvif_object_ioctl+0x47/0x50 [nouveau]
Aug 08 19:20:26 hermes kernel:  nvif_object_mthd+0x129/0x150 [nouveau]
Aug 08 19:20:26 hermes kernel:  ? _cond_resched+0x19/0x30
Aug 08 19:20:26 hermes kernel:  ? __kmalloc+0x19b/0x230
Aug 08 19:20:26 hermes kernel:  ? nvif_vmm_map+0x3f/0xb0 [nouveau]
Aug 08 19:20:26 hermes kernel:  nvif_vmm_map+0x88/0xb0 [nouveau]
Aug 08 19:20:26 hermes kernel:  nouveau_mem_map+0x82/0xf0 [nouveau]
Aug 08 19:20:26 hermes kernel:  nouveau_vma_map+0x48/0x70 [nouveau]
Aug 08 19:20:26 hermes kernel:  nouveau_bo_move_ntfy+0x77/0xe0 [nouveau]
Aug 08 19:20:26 hermes kernel:  ttm_bo_handle_move_mem+0x2d2/0x520 [ttm]
Aug 08 19:20:26 hermes kernel:  ttm_bo_evict+0x142/0x1c0 [ttm]
Aug 08 19:20:26 hermes kernel:  ? drm_edid_to_sad+0x194/0x1d0 [drm]
Aug 08 19:20:26 hermes kernel:  ttm_mem_evict_first+0x19a/0x220 [ttm]
Aug 08 19:20:26 hermes kernel:  ttm_bo_force_list_clean+0xa1/0x170 [ttm]
Aug 08 19:20:26 hermes kernel:  ttm_bo_evict_mm+0x2e/0x30 [ttm]
Aug 08 19:20:26 hermes kernel:  nouveau_do_suspend+0x85/0x2d0 [nouveau]
Aug 08 19:20:26 hermes kernel:  nouveau_pmops_suspend+0x39/0x80 [nouveau]
Aug 08 19:20:26 hermes kernel:  pci_pm_suspend+0x76/0x130
Aug 08 19:20:26 hermes kernel:  ? pci_pm_freeze+0xf0/0xf0
Aug 08 19:20:26 hermes kernel:  dpm_run_callback+0x5b/0x130
Aug 08 19:20:26 hermes kernel:  __device_suspend+0x109/0x450
Aug 08 19:20:26 hermes kernel:  async_suspend+0x1f/0x90
Aug 08 19:20:26 hermes kernel:  async_run_entry_fn+0x3c/0x150
Aug 08 19:20:26 hermes kernel:  process_one_work+0x1f5/0x3c0
Aug 08 19:20:26 hermes kernel:  worker_thread+0x32/0x400
Aug 08 19:20:26 hermes kernel:  kthread+0x120/0x140
Aug 08 19:20:26 hermes kernel:  ? pwq_unbound_release_workfn+0xd0/0xd0
Aug 08 19:20:26 hermes kernel:  ? kthread_bind+0x40/0x40
Aug 08 19:20:26 hermes kernel:  ret_from_fork+0x35/0x40
Aug 08 19:20:26 hermes kernel: Code: 41 5e 41 5f 5d c3 49 8b 7c 24 10 48 8b 5f 50 48 85 db 74 4d e8 56 4a 3c ed 48 89 da 48 c7 c7 9c a8 f9 c0 48 89 c6 e8 b6 79 de ec <0f> 0b eb bf 49 8b 7c 24 10 48 8b 5f 50 48 85 db 74 1e e8 2d 4a
Aug 08 19:20:26 hermes kernel: ---[ end trace ff7d3fd86666433f ]---

To fix it I switched to the nvidia card full time.

sudo prime-select nvidia

It seems to suspend and wake up much smoother now!

Update 4:
I fixed the issue with not being able to sleep while using the intel gpu. All I had to do was add nouveau.modeset=0 to my grub and everything works now! I am going to try and write all this up in a medium post soon!


Share USB external drive between multiple users on same PC

I have turned sharing on using the drive properties, and have samba
installed.

Although Samba is used to share folders across the network not between local users on the same system I suppose you could make this work - although it would be somewhat convoluted:
Have each of your users connect to your share by entering in the locatoion bar of your file manager:
smb://localhost/audio

A more traditional approach is just to change your mount point from /media/myname/audio to /media/audio. This prevents /media/myname acting as a gate that allows only "myname" to traverse that folder to get to what is beyond it.


HP 450 G3: Sound issue (15.10 worked fine / upgrade on 16.04 no sound)

thanks for your reply.

Your suggestion is correct regarding bios settings. I had a bad bios Version 01.10 (which was offered temporarily by HP and removed) and upgraded it to 01.11.

Afterwards audio worked fine again and "cat /proc/asound/cards" deliveres a correct output again.

Thank you very much.
Robin


Do:

sudo apt-get purge bcmwl-kernel-source

Then:

sudo apt-get install linux-firmware-nonfree

Reboot and let us have your report.


Dualboot Windows 10 Ubuntu 17.04 on an Acer Aspire E17

Turned out that the Acer UEFI will just not display a boot entry for Ubuntu automatically, regardless of whether there is Windows installed or not.

Found the answer on this page: https://wiki.ubuntuusers.de/EFI_Problembehebung/#Acer-Rechner (it's in German)

Installing the bootloader to the HDD worked fine and I installed 17.10, worked perfectly fine!


converting opj files to a readable file format in ubuntu

The best and simplest is to download SciDAVis, which is both gratis & libre (GPLv2). You can read and manipulate .opj files just like in Origin. Download from here, or build from source.

Another option is to build liborigin, also gratis & libre (GPLv2). When you run the script like opj2dat ./foo.opj it exports all the data tables to separate plain text files.

Finally you also could use QtiPlot, but you need the paid "Pro" version to actually deal with .opj files...


How can I expand all folders while in the list view?

There is an upstream bug about this, but unfortunately it's open since 2003 and probably won't receive a fix in the near future.

Don't know if there's a Nautilus script that allows you to expand/collapse all folders.

What does work, is to expand directories "level-by-level" by using the asterisk (*) multiple times (first time it expands all subdirectories, second time all subdirectories of subdirectories, etc.) - it's close to what you want, but admittedly not optimal.


How do I set up a wireless connection after install Ubuntu Server 15.10? (systemd)

DISABLED often means that the wireless switch or button is set to turn the wireless radio off. You can check this from the terminal:

rfkill list all

Hard blocked:yes indicates that the wireless is blocked by the hardware switch or button. Find it and change it.

To set up the wireless in a server, I suggest you set up /etc/network/interfaces something like:

auto lo
iface lo inet loopback

auto wlp3s0
iface wlp3s0 inet static
address 192.168.1.150
netmask 255.255.255.0
gateway 192.168.1.1
wpa-ssid <your_router>
wpa-psk <your_wpa_key>
dns-nameservers 8.8.8.8 192.168.1.1

Be sure to select a static address outside the range used by the DHCP server in the router, switch or other access point. Of course, substitute your details here. Confirm that your wireless interface is wlp3s0 with the terminal command:

iwconfig

Get the system to read and use the changes:

sudo ifdown wlp3s0 && sudo ifup -v wlp3s0

Did you connect?

ping -c3 192.168.1.1
ping -c3 www.ubuntu.com


ubuntu 20.04 calendar does not sync Microsoft Exchange Calendar

I had the same issue, installing evolution-aws solved my problem.
sudo apt install evolution-ews
I got my answer: from Add Microsoft Exchange account to calendar


If you use XFCE, you should use Xubuntu instead of Ubuntu. It has XFCE preinstalled, so the integration with XFCE is seemless. You can install Unity in Xubuntu too so you can still access Unity sometimes.


Can't install Ubuntu 12.10 alongside Windows 7 using a usb pen drive

You should have probably let the install finish. The error could be totally normal. As is ERROR can't do thing one so doing thing 2.

There is not a cancel button because it is not safe to cancel at the point you describe.


why does tar . see hidden files but ls . does not?

Quick answer: use ls -a to see the "hidden" files.

Long story: there's no such thing as a "hidden" file in UNIX/Linux, in the sense that the Linux kernel does not mark "hidden" files in any special way (as opposed, e.g.,  to what Windows does).

There is however a convention that file names starting with a dot character . are not displayed by ls unless the user explicitly asks for it (hence, the -a option).  Since this was the convention adopted by the ls program (one of the first commands that existed in UNIX), it was followed by other file-display utilities, like Nautilus and the graphical file selection dialog.

On the other hand, since it's only a convention on displaying files, it does not affect other file-manipulating commands like tar.


You can (mis)use export (for exported variables) or printf (for others):

foo () {
    printf -v "variable_$1" "%s" "$SECONDS"
}

Then:

$ foo bar
$ echo $variable_bar
237

With export:

foo () {
    export "variable_$1=$SECONDS"
}


I found that both my ~/.cache/mozilla and ~/.mozilla directory trees were owned by root:root and should have owned by username:group. This was coming off a fresh install of 12.04 LTS therefore I suspect a bug in a setup script.

Make sure you are in your home directory and your own userid:

cd
sudo chown -R YourUsername:YourGroupname ./.mozilla
sudo chown -R YourUsername:YourGroupname ./.cache/mozilla

Replace YourUsername with your own username, and YourGroupname with your preferred group which by default is the same name as your username.

The .mozilla directory was easy to find, however the .cache directory was not obvious to me. I was able find firefox was looking at the .cache directory by starting firefox and leaving that error message dialog up, and while firefox was still running in a terminal entering: lsof | grep firefox


Egg-and-chicken problem: need the VLAN package to install the VLAN package

The answer on Thomas' comment actually Works (and I quote):

  You should be able to add a VLAN interface manually, then install the
  vlan package.

  Try with

  ip link add link eth0 name eth0.39 type vlan id 39

  then

  ip link set eth0.39 up

  and configure your IP on the device.

BUT...

If you are using Microsoft's Hyper-V, you can simply configure it on Hyper-V and let your Ubuntu be oblivious about the whole VLAN business. You can do it on the Hyper-V Manager software or using the new (web-based) Windows Admin Center.

For Hyper-V Manager

Open Hyper-V Manager.
In the results pane, under Virtual Machines,
select the appropriate virtual machine and then right-click
Settings.
Under Hardware, select an virtual switch that's set up
    with a VLAN.
In the right pane, select Enable virtual LAN identification, and then type the same VLAN ID as the one you specified for the virtual switch.

For Windows Admin Center

Open Windows Admin Center with your browser
Click on the machine that hosts your VM
Click on Virtual Machines > Inventory
Click on the desired VM
Click on More > Configuration
Click on Network
In the VLAN Identifierfield, inform the apropriate VLAN ID.
Click Save

Your Ubuntu VM on Hyper-V is now networking on the correct VLAN without even noticing.


Drag and drop not working inside Nautilus on Ubuntu 17.10

As Matteo pointed out himself this happens if the Nautilus Flowbox View is enabled. To disable it open a terminal and execute the following:

gsettings set org.gnome.nautilus.preferences use-experimental-views false

Of course you can use the dconf-Editor as well and follow the path above to toggle the setting.


Ubuntu 14.04 LTS server Permission question

Assuming you are using samba, I would add following lines into smb.conf

force user = your_user_name
force group = your_group_name


How can I take Ubuntu Certification Exams online?

The best thing would be to contact Canonical via this form link

They would be knowing better than any of the community members.


How can I access data on a computer without knowing the login password?

If the partitions and folders aren't encrypted, you might try to

boot to a bootable USB stick
chown the files in question to nobody:root or the USB's user - or even root:root - anything that makes it possible for you to move them
Pull up gksu nautilus, copy the files to another backup drive.

Other than that - if you know the current version installed on that PC, you might even try to install a more recent version and chose the upgrade option (should be available, haven't checked with the recent versions).


Running upstart jobs as root but works like unprivileged users

sudo works both ways, root can also act as a regular user
sudo -u userName -g groupName
I haven't used it but it looks like gksudo has the same functionality for desktop top applications


How to install Ubuntu again as my previous Ubuntu 16.04 is corrupted

Try installing not in uefi mode. The installation asks if you want and press go back.


Default name suggestion for files in "save as" dialog

If you use "Save As" in web browser, this is typically the name of the file stored on remote server. When you use that option and file dialog appears, the name can be changed to whatever you like manually.

Certain applications allow such as screenshot utilities may allow for using certain default schema like timestamp, but overall file dialog (or at least Gtk based ones I have seen so far) allow for manual editing only.


You're opening  a compressed file. Vim in vi-mode doesn't support reading from compressed files, since this functionality is provided by plugins and plugins aren't enabled when in vi-mode (when compatible is set). Instead, try:

vim /usr/share/doc/xdemorse/examples/xdemorserc.example.gz

It might be the case that you have only vim-tiny installed. Install a more feature-complete version and then try again:

sudo apt-get install vim


Something like

YUMI? (requires windows) http://www.pendrivelinux.com/yumi-multiboot-usb-creator/
SARDU? (requires windows) http://www.pendrivelinux.com/sardu-multiboot-usb-creator-windows/
MultiSystem? http://www.pendrivelinux.com/multiboot-create-a-multiboot-usb-from-linux/


I have similar dependency issues on RHEL systems when the kernel and linux-firmware packages are out of date. Have you recently updated/upgraded your Ubuntu install? A

apt update && apt upgrade

should suffice to get your system up to date; once that has run through, restart your system and try the install again.


Boot ubuntu livecd,connect to the internet and run the below command in terminal

sudo apt-get install gparted

After gparted installation completed,open gparted application,find the partition (in which you try to install ubuntu) and format it to ext4 filesystem.Then you run the ubuntu installation disk to install ubuntu on that partition.


Graphic card not recognized by Ubuntu 18.04 LTS

So thank you all for your aid, however none of those solved my problem.
The issue was that i couldnt find a proper driver for my Graphic Card supporting linux.

However when some focal fossa (20.04 LTS) reviews started to get published one of the first things I heard is that it features more support in Graphic Cards in both Nvidia and AMD. And indeed once I upgraded my distro the system started recognizing my radeon once again.

So not exactly a proper fix for the problem, but it works.

p.s.
If after the upgrade I had no success, I thought about calling the company that sold me the company or even straight to dell, and ask for an adequate driver. It's a long shot, but I figured if the OS recognized it once that means someone made the introduction between them at some point, so the driver is somewhere out there...


I realized that there is a jumper on my motherboard for activating the "Wake up on Ps2/USB" option  which would power the USB till the system is powered on so I just moved the jumper to the appropriate place and the Problem solved!


From lexmark here that particular printer is supported.

Deb file can be downloaded from here

Are you having any issues installing this printer - or is the above information the bit you were missing?


I am not able to connect to any wifi network, It keeps asking me password

I had a similar issue which I posted about:

Ubuntu 20.04 LTS Intel 7260 Wireless - won't connect to Wifi network

Does the solution there help solve your problem?

It's not a full fix, because disabling 802.11n has some consequences in terms of speed, but it will allow you to at least connect to wifi.


This, in a terminal:

cat /vmlinuz | padsp tee /dev/dsp > /dev/null

Ubuntu uses PulseAudio as its sound server (before I think ALSA's dmix was used, I believe. I don't remember.)

padsp is a PulseAudio tool that wraps /dev/dsp to PulseAudio.

The oss-compat package, as suggested by MrShunz, enables ALSA's OSS compatibility layer, so it has to go through ALSA to get to PulseAudio which finally uses ALSA to access the sound device. So:

oss-compat: OSS->ALSA->PulseAudio->ALSA
padsp: OSS->PulseAudio->ALSA

padsp is also already installed by default, I think. If it isn't though, bash will tell you which package contains it :)


How to replicate one ubuntu system to other ubuntu system as it is

It seems what you're looking for is a Cloning solution, and I can recommend Clonezilla for this.

You can create a Clonezilla Live USB, save your system partition(s) and then restore onto another computer, where the target partition(s) should be no smaller than the source partition(s).

As a result, you will have an exact replicate of your system. The only exception will be any references / symlinks to other partitions, including the swap partition in fstab, which you can easily edit and replace with the UUIDs of such partitions on the second disk.


What does KP mean in keyboard shortcuts?

KP stands for KeyPad.  In this case it's the keypad's right pointer.