I did a fresh install yesterday and got the same issue. I was able to reconfigure the mess via the Nvidia configurator but it only last for the current session (i.e. I have to redo it all over again each time I reboot).

Here a workaround :

First create a bash script, assuming your 3 monitors are in 1920x1080 mode (if not, you will have to adjust the "--pos" offset accordingly) and the primary is the middle one :

#!/bin/bash
xrandr --output [Your monitor "2" ID] --pos 0x0 --rotate left --mode 1920x1080
xrandr --output [Your monitor "1" ID] --primary --pos 1080x360 --mode 1920x1080
xrandr --output [Your monitor "3" ID] --pos 3000x360 --mode 1920x1080

(the 360 y-offset put your monitor 1 and 3 roughly at the middle of the left one, adjust it as you please)

Then make it executable and add it in your startup app list. At this point, when you boot, the script may kick in before the GUI is ready (so it does nothing). Open ~/.config/autostart/[your_script_entry_name].desktop in an editor and add the line

X-GNOME-Autostart-Delay=1

(For some reason, putting a "sleep" command in the bash script does not work, but the startup delay does...)
That did the trick for me, I hope it helps


Gnome terminal, `less` opens file at the cursor position, not at the top of terminal

As mentioned by egmont, less should be able to position the cursor, and there is indeed a way to do so.  According to less man page:

  Options are also taken from the environment variable "LESS".  For
  example, to avoid typing "less -options ..." each time less is
  invoked, you might tell csh:

  setenv LESS "-options"

  or if you use sh:

  LESS="-options"; export LESS

So, in order to let less redraw the screen with cursor positioned up on top, do

echo   'LESS="-c"; export LESS' >> ~/.bashrc

-c option, which stands for "clear screen", will be appended to every less automatically and will even work in TTY, clearing the screen and repositioning the cursor


Reduce process priority of built-in deja dup/duplicity process in Unity

Edit /etc/xdg/autostart/deja-dup-monitor.desktop and prepend settings to the Exec value, e.g.

before: Exec=/usr/lib/x86_64-linux-gnu/deja-dup/deja-dup-monitor
after:  Exec=/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/lib/x86_64-linux-gnu/deja-dup/deja-dup-monitor

The nice value is set to deja-dup-monitor and all the processes it spawns (deja-dup/duplicity/gpg).

Changing these values improved responsiveness of my system dramatically, even if the overall load is still between 30 and 90 % (all cores summed up) during a backup.

Note: this does not work when you hit the "Backup now" button in the Ubuntu system settings.


Inkscape doesn't remember previously opened files

I found the reason: if I switch off "record file and application usage"
I get rid of the recent files in the dash panel (thats what I want) and I still have the recent files in LibreOffice, Scribus or Blender. In Inkscape and Gimp on the other hand the recent files remain only until the next start of the computer.
To have the recent files in Inkscape or Gimp also the next day, I have to turn on "record file and application usage" and to check at least "documents" and "pictures". That works, but I have them also in the Unity Dash Panel (what I don't want).
So that's the reason, but not the solution.


Prevent new Ubuntu upgrade to reinstall MySQL

if you want to avoid that apt-get upgrade update certain package, you can "hold" it in the following way:

Hold a package (do not upgrade):

sudo apt-mark hold <package-name>

disable hold (upgrade package the usual way):

sudo apt-mark unhold <package-name>

for MySQL:

sudo apt-mark hold mysql-server


Automated review failure from store - online_accounts

Taking the error messages one at a time:

No JSON object could be decoded. Value: "ERROR: accounts xml unparseable: (Document is empty, line 1, column 1) ". click-check-online-accounts

This means one of a couple of things:

That you have specified one of the online-accounts manifests (account-service, account-application) in the hooks section of your package manifest (manifest.json) but provided an empty value.
That you have specified one of the online-accounts manifests (account-service, account-application) in the hooks section of your package manifest (manifest.json) but provided a value pointing to a non-existent file.
That you have specified one of the online-accounts manifests (account-service, account-application) in the hooks section of your package manifest (manifest.json) but provided a value pointing to an empty file.
That you have specified one of the online-accounts manifests (account-service, account-application) in the hooks section of your package manifest (manifest.json) but provided a value pointing to a file which does not contain valid XML.

You need to ensure that:

You provide a valid value for the account-service and account-application hooks, that points to the appropriate file relative to the root of your package.
The files contain valid XML.

See the Online Accounts Developer Guide for information on what each file should contain.

- online_accounts_account-service_name_myapp
       Could not find '<name>' tag

The file you specified with the account-service hook contained valid XML, but did not contain a <name> element within the top-level <service> element.

- online_accounts_peer_hooks_required_account-service
       Missing required hooks for 'myapp': account-application
       https://wiki.ubuntu.com/SecurityTeam/Specifications/OnlineAccountsConfinement

You have specified an account-service hook, but not a corresponding account-application hook in your package manifest. As well as the link provided, the Online Accounts Developer Guide has more information.


Command not working in crontab, but work in terminal

Strange problem, but i fix it just restart my server. After reboot cron start working.


Error message when commissioning nodes with MAAS

See for more details:
https://maas.ubuntu.com/docs/nodes.html#virtual-machine-nodes

You need the libvirtd-bin package installed (guessing that can work with the group you've got).  See if you can run:

sudo virsh list --all

I'd guess the command is installed, your password on the VM server is incorrect.  Or the password maas uses to connect is incorrect.  SO you'd want to su to the maas user on the maas controller and run that virsh command.


Thank you waltinator for your help, this pushed me into the right direction.

I don't know what the problem previously was, but as soon as I added the output redirection > /home/me/tmp/autorename-avmedia-exif.log, it couldn't work, cause incron seems to not know about it and hands this part over to the script as arguments. There my script failed, as it expects only one argument and there was no logging for the else case.

Just to be clear: the script was called successfully, but it exited at the top, due to a wrong number of arguments.

I found this out with putting touch /home/me/incron#.test lines all over the script, while # was an incrementing number.


Open a terminal (Press Ctrl+Alt+T or just search the dash for Terminal) and go to the Downloads directory:

cd ~/Downloads

Download the latest Avira package:

wget http://dlpe.antivir.com/package/wks_avira/unix/en/pers/antivir_workstation-pers.tar.gz

Extract the package.

tar -xzf antivir_workstation-pers.tar.gz

Go to the extracted directory.

cd antivir-workstation-pers-3.1.3.5-0/

Run the install file.

sudo ./install

Answer the questions as they're asked.


is there a reason the Getdeb Repo is always down

Down For Everyone Or Just Me website reports that the http://getdeb.net/ website is down for everyone. There may be an archive that contains the a .deb file for the package that you want to install or if not you can search for the source code of the package in GitHub and compile it.


standard place to put development/code files in Ubuntu

Inside ~/ somewhere.  It's peculiar to IDE, although a work, dev, workspace, etc folder is common.

If you need replication most IDEs have git, svn, or mercurial integration.


I think plasma-desktop would best fit your needs

  Provides the environment for running and managing applications and integrating
  interaction of applications. It is designed as generic environment for all
  kinds of desktop applications, not only applications built on the KDE Platform.
  It integrates best with applications following the standards used by the KDE
  Platform.


It is due to the installation of Google Chrome. I also faced the same problem but recovered it.

Google chrome is not in the software package list of Ubuntu. It is downloaded from the untrusted source. Did you remember that during the installation of the file you got a warning? Simply uninstall Google Chrome by typing the following in terminal:

sudo apt-get remove google-chrome-stable

If it fails, type unstable in the place of stable (sudo apt-get remove google-chrome-unstable).

It was actually due to the installation of the virtual package of google-chrome-stable, which causes the pulseaudio daemon's startup to fail.


After searching for similar problems, I happened upon a solution. Apparently in more recent kernel versions, this video card is not properly supported by default. One needs to add the following boot parameter:

i915.lvds_use_ssc=0

Allows the system to boot correctly.

See: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/925350


How do I test an application in Ubuntu, without affecting the system?

Just fire up a container with its own copy of the OS, run your test, and blow it away when you are done.

Here are the instructions.

They run at bare metal speed, are insanely fast and simple to create and destroy, and do not permanently steal system resources that they aren't using.


Can you execute a custom shell command on power button or lid close?

You can edit this file /etc/acpi/events/powerbtn. action can be assigned to <your hibernate script>. Do let me know if this works out?


Unable to install telegram through Software (appstore) in xubuntu 19.04


Program sub menus dark gray on black, thus illegible

Below appears to be a minimal change which fixes these pop-up menus.

As a backup, make a copy of file /usr/share/themes/Ambiance/gtk-2.0/gtkrc :

cp /usr/share/themes/Ambiance/gtk-2.0/gtkrc ~/Documents/gtkrc

Using sudo, edit the file /usr/share/themes/Ambiance/gtk-2.0/gtkrc :

sudo vi /usr/share/themes/Ambiance/gtk-2.0/gtkrc

Go to (around) line 346 (346G) which should read:

style "menu" = "dark" {

Remove this: = "dark"
The line should now look like this:

style "menu" {

Save your changes (ZZ)
Open the Systems Settings app
Go to the Appearance section
Change the theme from Ambiance to something else, and then back again to Ambiance (this will refresh your theme)

Tested under Ubuntu 16.04. The exact line to change may vary depending on what patch level you have. A safer way of finding the line to change is to search for style "menu" = "dark" in the file. In vi this would be: /style "menu" = "dark"

Before the change:

After the change:


Ubuntu 14.04 Wireless Problem! Dell Inspiron 1564

Your wireless may not work on this type of issue too. Before installing a ubuntu OS on to your pc check the property of your processor. if the processor is 64-bit based then download 64-bit os. Don't download a 32-bit os. As the hardware inside your pc are 64-bit based. 32-bit os may struggle to open them. This is how i managed to make my wireless work.


It was a fast startup problem. As @oldfred suggested, removing the battery solved the problem


Unable to update 3.13.0-36-generic Kernel in Ubuntu 14.04.5

It is DigitalOcean that implemented some changes on how they handle kernels.
To manage the kernels internally I need to select DigitalOcean Grubloader v02 kernel from the kernel drop down in the DigitalOcean control panel.
I'm able to configure Grub to boot from the kernel I preferred after power off the server, because rebooting will not make change


Grub not recognizing Windows 7 after installing ubuntu

When I first installed Ubuntu in my desktop, I was also stuck in the same situation and so to have the Windows bootloader back, I booted my windows installation disk and launched the command prompt (Shift+F10) on the welcome screen after the keyboard language is chosen and typed this:

bootrec.exe /fixboot
bootrec.exe /fixmbr

This fixed the Windows bootloader back then and by using EasyBCD, I added the Linux entry (Grub2) back.

(It is mostly not required to mention the device to boot Ubuntu from because it is automatically probed. So Ubuntu being installed in /dev/sdb shouldn't be a problem)


What would cause files not to be included in a .deb?

It depends which packaging tool you use. The recommended one is dh_python2. If you use that one, *.pyc and *.pyo are automatically excluded. But a postinst-script is created which will compile your scripts on install time. See also the man page of dh_python2.


I had the same issue as you could not get it to build i got it working in the end by downloading each part from the mainline directory http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17-rc2/ but it then shows as not installed so leaving the 3 parts still installed i then used this tool http://www.teejeetech.in/p/ukuu-kernel-upgrade-utility.html and clicked on 4.17-rc2 on the list and hit install it then installed fine
hope this helps.


Help Installing AMD GPU driver in Ubuntu 18.04

Had this problem yesterday too.
This is how I solved it:

sudo apt autoremove amdgpu*
sudo apt install --reinstall $(uname -r)
reboot
Go to the folder with the amdgpu driver and run ./amdgpu-install -y
reboot
sudo apt update && sudo apt install amdgpu*
reboot
sudo apt --fix-broken install
sudo apt -f install
reboot

Problems solved


I suggest you to use DEB packages anyway. There are DEB files to download directly on official sites. You need to install FPC, FPC-SRC, and Lazarus packages. fpc.cfg is autogenerated in /etc.

There is also command from FPC to generate fpc.cfg: fpcmkcfg.


I've discovered glogg, which describes itself as:

  glogg is a multi-platform GUI application to browse and search through long or complex log files. It is designed with programmers and system administrators in mind. glogg can be seen as a graphical, interactive combination of grep and less.

It will also tail files if you enable the Follow File option.

Just search Ubuntu's Software Center!

Installation through command line:

sudo apt-get install glogg


How can I switch graphic card acceleration from sna to uxa?

It seems your configuration file (/etc/X11/xorg.conf.d/20-intel.conf) have too much quotes.

Without surrounding quotes:

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "intel"
    Option      "AccelMethod"  "uxa"
EndSection

The uxa acceleration method should be used.


Work Around

There is a simple work around, instead of ./script.sh, do

sh script.sh

Or

bash script.sh

You should check the first line of script.sh to confirm which shell to use.

Manual Mount

Mount with command line, you can use the exec option as follow

mount -o exec <device> <mount-point/path>

mount -o exec /dev/cdrom /mnt/cdrom

If the disc is automounted, you will have to un-mount(not eject) it with file manager first.

udisk

This is the complicated way and is answered in this post.


The Latvian keyboard layout is prepared for the characters you mention:

AltGr + S = š

AltGr + Shift + S = Š

AltGr + C = č

AltGr + Shift + C = Č


I downgraded Meld to 1.5.3 with the following actions:

sudo wget http://security.ubuntu.com/ubuntu/pool/universe/m/meld/meld_1.5.3-1ubuntu1_all.deb -O /var/cache/apt/archives/meld_1.5.3-1ubuntu1_all.deb
sudo dpkg -i /var/cache/apt/archives/meld_1.5.3-1ubuntu1_all.deb

cat <<EOF | sudo tee /etc/apt/preferences.d/pin-meld
Package: meld
Pin: version 1.5.3-1ubuntu1
Pin-Priority: 1337

EOF

It works better for me. It has for example very useful <Ctrl+Shift+R> shortcut and close with <Ctrl+Q>.


How can I remove items from start menu on Ubuntu 14.04 Flashback?

Simple answer is - you can not, it is hard-coded. To remove it you will need to modify gnome-panel source code.


I have the same problem with my WeTab. I can offer you only a partially solution.
At first you have to install the eGalax-driver for your touchscreen.
You can download it here
After that you have to open /etc/eGTouchL.ini with Gedit and change "report mode" from "1" to "2".
That allows you to click correctly at everything but disables holding of the "button", which is needed for selecting multiple files or scrolling down on pages.
If you don´t change the configuration of the driver you could still use the starter with creating a right click with holding the finger at the icons. The context menu still appears and works without problems.
While searching for this bug I came to this bugreport which seams very similar. Somewhere in the comments someone wrote about a patch for the x-server but I have no idea if it works or how to use it.
Edit: Are you using 13.04? In a test with a live stick with 12.10 everything works normal.


Ubuntu Server 20.04 LTS: autosuspend "cannot check the systems suspend ability"

I had this script running flawless since 6 years on my private server, but since I've upgrade to 20.04 I'm expierencing issues with my suspend mode. I assume it is a different issue, but you could run into that one, too :)
For your problem:

check chmod
check if /usr/bin/pm-is-supported is responding, it causes your problem.

I assume you are missing some packages.


How to Run Matlab installed on windows from Linux

You realize that there's likely a Linux version of Matlab on that same CD right? That's how it's usually distributed. It uses the same license. Running that under Wine is a bad idea, the thought of my workspace crashing while having a bunch of unsaved computations just isn't worth it to me. Good luck.


Ubuntu 20.04 shutdown stuck on blinking cursor

In my case it was cause by my Bluetooth 5 dongle. If that's the case, just unplug the dongle during restart.


How to get the size for all subdirs in Krusader

It does the same, not like hitting Space on every dir...
But I hope it helps.
Alt+Shift+S ?


How do I remove old wine system version?

PlayOnLinux has a gui to control your installed Wine versions.
If you open it, go to Tools > Manage Wine Versions you can then remove and add different ones.

So, to manage wine versions in Lutris, go to Lutris > Manage Runners.

Find Wine in the list and select Manage Versions.

Untick the Wine versions you do not want.


A Magewell USB Capture HDMI alternative, just for screenshots?

Unfortunately, there are very few video capture devices compatible with Ubuntu. It's mostly due to hardware manufacturers not wanting to open-source the device drivers. I too do tutorial video screen captures. The best solution I've found is to dual boot into Windows 7, and use a $150 Elgato HD60 USB 2.0 HDMI capture device.

I have found this device for $210 "IVC USB Driver Free HDMI Frame Grabber". There's also been reported success with the $200 Hauppauge HD PVR.

https://www.mythtv.org/wiki/Hauppauge_HD-PVR


How do I run a command with uxterm after running ~/.bashrc lines in Ubuntu 18.04?

You probably need to use the -ls option to make it a login shell, as ~/.profile and ~/.bash_profile are only read by login shells.


"Install Ubuntu alongside Windows 10" option not present

Sounds familar to me. Based on the output of your log, it seems you have two boot table entries.

1 MBR and 1 GPT.

Stated here

  GUID Partition Table detected, but does not seem to be used

and

  WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util
  fdisk doesn't support GPT. Use GNU Parted.

First of all, I would give your BIOS a look up and check if there are multiple bootable disks to choose. In my case, I had a gpt table on a stick and a MBR on the HD, solution was simple to select the MBR as the first bootable device instead of the gpt (or vice versa)

The second advice is to run the Microsoft Bootloader correction tool or (what I prefer) the liveDVD rescatux, which repairs almost everything automatically regarding GRUB, MBR etc.SuperGrub/Rescatux there is also a huge wiki about all common boot problems Wiki


Unable to install packages with pip (ubuntu 15.10)

Try sudo pip install numpy - you can see at the bottom of that output above a 'permission denied' which tells you that your login doesn't have authority to do it, so adopting sudo extra powers fixes it.


How do I make the SSD accessible to the Ubuntu installer on a Samsung Galaxy Book S (Intel Lakefield)?

even though I don't have a device wit eUFS-storage I was curious about this, so I did some research - and perhaps this can be a starting point.
In the following I am assuming, that windows is installed in a "classical" uefi style.
¡At first make sure you have disabled the fast-boot function in windows - this almost always causes trouble with dual-boot installations! There are plenty of howtos on the web - just ask your preferred web-search.

As your install-medium boots select the 'try ubuntu/live-session' option.

after it booted to the live-session open a terminal and load the ufshcd-* kernel modules via for mod in ufshcd-core ufshcd-dwc ufshcd-pci ufshcd-pltfrm; do sudo modprobe $mod; done

check if the storage device is recognized, e.g via sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL in the terminal. If the output shows anything other than your install-medium and loop devices, dance three times around the desk and let's get back to work ;)

start installing ubuntu via the "button" on the desktop. I guess that a normal "install besides windows" should work - let's see.

Assuming the install process was successfull do not reboot, as we have to tweak some things first. To do these tweaks we will chroot into the installed system. To chroot into the system we have to do some preparations:

open a terminal and run the aforementioned lsblk command

mount the root partition of the newly installed system to /mnt via sudo mount /dev/{name of root partition} /mnt - the root partition should be the biggest ext4 partition

if there is a second ext4 partition it's the boot partition and we have to mount it too, so do sudo mount /dev/{name of boot partition} /mnt/boot

now lets mount the efi partition - thats the fat partition: sudo mount /dev/{name of uefi partition} /mnt/boot/efi

make some system parts available to the chroot: for dir in /dev /dev/pts /proc /sys /run; do sudo mount --bind $dir /mnt$dir; done

Now that we have everything set up, let's jump into the chroot:

in the terminal run chroot /mnt

Inside the chroot we will have to add the kernel modules from the top to two files /etc/modules and /etc/initramfs-tools/modules. Just add them at the end of the files one module per line. You can edit files on the command line via sudo nano {path-to-file} - in nano you can save with ctrl+o and exit it with ctrl+x.

After we have edited these two files we have to recreate the initramfs: sudo update-initramfs and the grub files sudo update-grub. Now after this is done lets exit the chroot with exit and reboot.

¡While rebooting do a head stand and cross all your fingers and toes ....!
hope this is of any help
peace


Your running login session might not be updated with the new group yet. Try just calling groups and see if that lists davfs2.

$ sudo useradd foo -M
$ groups
myuser adm cdrom sudo dip plugdev lpadmin sambashare
$ sudo usermod -aG foo myuser
$ groups
myuser adm cdrom sudo dip plugdev lpadmin sambashare
$ su -l myuser
$ groups
myuser myuser adm cdrom sudo dip plugdev lpadmin sambashare foo


How can I process multi-line records with awk in a bash script?

With awk, you can change the record separator. By default it is a newline, so each line of the file is a record. If you set the RS variable to the empty string, awk will consider records to be separated by blank lines:

awk -v name="KFC" -v RS="" '$0 ~ "Restaurant: " name' example.txt


One tool I can recommend is tracker. If you install the software, it is started automatically when you log in. It updates its index as a background process. If you want to search some item, there are different possibilities:

Nautilus: Press Ctrl+f. A windows opens where you can enter your search term.
GNOME applet: The deskbar applet allows you to enter a search term and shows a listing of found things.
Catfish: is a application which can talk with different search programs.
Console: enter tracker search foobar and tracker will start its search. Type tracker for a full list of available commands.


What are some alternatives to Compton and Compiz in XFCE?

If your just looking for composting, try xcompmgr. It's not a window manager though.


Need to enter password 5 to 10 times at logon screen after intsalling lightdm

So, this bug is still not fixed...Please, read here
login
and use gdm3 instead of lightdm I hope this answer helps you.
Best regards


What does "${debian_chroot:+($debian_chroot)}" do in my terminal prompt?

The important part to answer this question is this snippet from /etc/bash.bashrc:

if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

It means if the variable $debian_chroot is empty and the file /etc/debian_chroot exists and is readable the variable is set to the content of the file.

Now what is this for? The file /etc/debian_chroot is when you have a chrooted debian system inside another debian system (ubuntu is based on debian). So this is for a better overview. To distinguish whether you are in the chroot or not.

When you have a chroot of another system for example in /srv/nfs4/netboot/ you can set a name for this chroot in /srv/nfs4/netboot/etc/debian_chroot (in my case it's a nfs4 pxe netboot drive):

user@host:~# echo "netboot" >/srv/nfs4/netboot/etc/debian_chroot

And then when you chroot inside:

chroot /srv/nfs4/netboot/

Your prompt looks like this:

(netboot)user@host:~#


Sound Input Device not detected in laptop

I installed the Pulse Audio Manager and then I selected the appropriate hardware from Pulse Audio. It finally started recording.


I figured out that the \4 replacement (show the IPv4 address on the default interface) is what causes the screen to refresh constantly. Removing it solved the problem.


How do I find a Specific Game in my Steam Folder?

There are two ways to do this.

You are correct in the path, you are just not deep enough the path would be

.local/share/steam/steamapps/common/{name of your game}

Another way to do it would be to right click on the game name in the list or detailed(not tiled) view of Steams Library page the click on  Properties  On the window that pops up click on the Local Files tab then click on Browse local files option.  This will open the game files directly rather than drilling down with the file manager.

From the game files folder you will need to figure out what files you need to delete yourself, it varies from game to game.

If you find that after deleting the files the game does not work properly, you can easily fix this by opening the Properties box again and on the local files tab just click on Verify the Integrity of Game Cache.  This will check the folder and redownload any missing  files.

You may have to delete the maps every time the game updates, Steam may reinstall them when updating.


USB soundcard with MPD - only outputs static

I am not entirely sure why this works, but after seeing several other people with USB sound cards mentioning a need to address the card with plughw:0,0 instead of hw:0,0 I changed my /etc/mpd.conf to:

audio_output {
        type            "alsa"
        name            "Audio2DJ"
        device          "plughw:0,0"
}

Apparently this adds an extra resampling layer between the card hardware and ALSA which allows MPD to feed it formats that are not natively supported by the hardware. I haven't tested very thoroughly but sound quality seems to be ok with this setting - certainly a lot better than the white noise I had previously at least.


Is there a way to move files between guest and host in virtualbox?

You can do either of the following:

Create a folder on your Ubuntu host let's say "Shared"
Right click the folder name "Shared" and click the Share menu. Choose the option to allow others to write the directory. The verbiage  is something like that at least you get the picture.
Boot up your guest and browse the network. You should now be able to view the host's "Shared" folder where you can write files and vice-versa.

Another option is by following this how to:
https://help.ubuntu.com/community/VirtualBox/SharedFolders


keeping terminals open (with previous path) and applications in Ubuntu unity

trapping EXIT status

Having learned a few tricks over the years, I've come up with another solution which might be a little more sane than the original idea that you can still find below. According to Signal Trap article on Gregg's Wiki, "In a bash or ksh (some implementations only) script, an EXIT trap is run on any exit, signalled or not." So detecting and handling exit via Ctrl+d , exit command, kill <shell_pid>  is possible via trap "command" EXIT method. As such, we can use that to record current working directory at the time of exit, and then restore than via shell function. The code below does exactly that. Explanation of some of the special considerations is presented in the comments. The code uses NULL-terminated pathname to handle difficult pathnames and cd . for checking unlinked directories (in fact there is more than one use for cd ., see related question Does cd . have use?), and verification if the recorded directory still exists to navigate to it.

# This part will be triggered when shell exits.
# cd . is necessary as check for unlinked or renamed directories
# we have to avoid printf "$(pwd)\0" because process substitution spawns subshell
# with cwd set to user's home, which makes saving current working directory pointless
# We could use `/bin/pwd`, but just in case system is non-POSIX compliant and doesn't have
# it we will just stick with shell built-in
trap "cd . && pwd > ~/.last_dir && printf '\0' >> ~/.last_dir" EXIT

# This part is for when shell starts
goback(){
    IFS= read -r lastdir < ~/.last_dir
    if [ -d "$lastdir"  ]; then
        cd "$lastdir"
    fi
}

# Check if we've read ~/.bashrc in this session already
# just in case user runs `source ~/.bashrc`
if [ -z "$bashrc_read"  ]; then
    bashrc_read=1
    export bashrc_read
    goback
fi

What this still doesn't handle is tabs closed in QTerminal or closed windows.

Original answer

TL;DR:  create a function that saves output of the pwd command to a file, and then use that file to launch gnome-terminal with whatever was in that file as argument to gnome-terminal --working-directory=.

Step 1: getting your last directory:

Bellow is a function savewd(for save working directory), which you should place at the end of your /home/username/.bashrc or whatever rc file for whatever shell you are using.

function savewd ()
{
    echo $(pwd) > ~/.lastdir
}

Next, place a call to this function inside your PS1 prompt, again - in your .bashrc file. For example, here is mine:

# Backslash is necessary. See
# https://askubuntu.com/questions/651871/why-is-my-function-not-re-evaluated-in-ps1
PS1=' \$(savewd) serg@ubuntu [\$(pwd)]
================================
$ '

Placing a function into your prompt executes the function every time you run something in the shell, even simply pressing enter. Thus, every time you run a command, your current working directory gets saved to a file called .lastdir in your home folder.

NOTES:

this will save the last working directory of your last open shell. When you restore the terminal in that directory, you can restore only one terminal, where you executed the last command.
.lastdir has leading dot, hence it's a hidden file, which you cannot see unless you do ls -a or enable viewing hidden files in your file manager

Step 2: create a restoring script

Open your favourite text editor and create the following script below:

#!/bin/sh
# set -x
LASTDIR="$(cat /home/username/.lastdir)"
gnome-terminal --working-directory=$LASTDIR &

Now you have a script that reads whatever was saved in the .lastdir file, and opens a terminal with contents of .lastdir as working directory.

NOTE: don't forget to make this script executable with chmod +x /path/to/script. Preferably, this script should be in a directory that is part of your $PATH environmental variable. Learn more about it.

Step 3: create a startup item

Now you can use that script to launch every time you log in. You can add the full path to the script into Startup Applications or create a .desktop entry in your /home/username/.config/autostart folder. For instance, I'd personally create a file /home/username/.config/autostart/gnome-term-restored.desktop with the following contents:

[Desktop Entry]
Type=Application
Exec=/path/to/my/script.sh
Hidden=false
NoDisplay=false
Name=gnome-terminal-restored

Now every time you log back in, you will have this .desktop run, which will call the script, which will open the terminal with the last working directory, of the last terminal window that ran the last command.

You can also add the full path to the script in step 2 as a shortcut, in Settings -> Keyboard -> Shortcuts -> Custom -> + button.

Step 4

Enjoy it :)

NOTES: This will work with logging in and out. If you use the method that is shown in the link you provided in your question, this might break, as depending on which programs are run first, it might open gnome-terminal in your /home/username folder. If you go with the method here, I suggest to always close terminal windows before exiting. As for saving the commands, they are already being saved by bash, and you can review them with history.

Another idea is to edit /usr/share/applications/gnome-terminal.desktop to execute gnome-terminal --working-directory=$(cat /home/yourusername/.lastdir) or the script I wrote , but I do not recommend it.

IMHO, the way that Fabby suggests(i.e., hibernating) is better.


How to get screen size through python curses

Apparently, the getmaxyx() method is what you need. It returns a (height, width) tuple.

Python reference

Some tutorial

Edit: tutorial link is dead, here's the archived version. And here's the example from that link:

  Now lets say we want to draw X's down the diagonal. We will need to
  know when to stop, so we will need to know the width and the height of
  the screen. This is done with the stdscr.getmaxyx() function. This
  function returns a tuple with the (height, width) values.

#!/usr/bin/python

import curses
import time
stdscr = curses.initscr()
curses.cbreak()
curses.noecho()
stdscr.keypad(1)

try:
# Run your code here
    height,width = stdscr.getmaxyx()
    num = min(height,width)
    for x in range(num):
        stdscr.addch(x,x,'X')
    stdscr.refresh()
    time.sleep(3)
finally:
    curses.nocbreak()
    stdscr.keypad(0)
    curses.echo()
    curses.endwin()


Well I will not count this as an aswer, as it does not solve your issue. Alas, I do not have enough reputation (which is understandable) to add comments. From my little knowledge on Lubuntu (well, Linux) I would suggest the following:

sudo apt-get remove chromium

Then follow up with an update:

sudo apt-get update

Finally, re-install the app with:

sudo apt-get install chromium

Failing that, would you be able to test the same processese whilst booting from a Live USB? That may help identify if it is an issue with your install, or hardware.

Adding to the above (this is an "updated"), if all works well running via the USB, then chances are it has something to do with the configuration of the OS. It should do the same on the LiveUSB (as it uses the same hardware).

It may just be the software, either Lubunutu or Chromium. Sorry I could be of no real assistance.


You can alter
/etc/apache2/ports.conf
and virtualhosts config to achieve this by changing Listen option and port within
<VirtualHost *:80>


Your best bet if you are getting new Nvidia GPUs, is probably to go with the Nvidia proprietary drivers, as they will probably have support built-in in advance, or at least quicker than Mesa can update Nouveau. IIRC, Nvidia does not help with the maintenance of Nouveau, but AMD does do a significant amount of the development for new open source drivers, generally making them an easy time with Linux, but Nvidia has been getting better, or so I hear.


How do I bring up that initial guided tour panel again?

run the below command

/usr/lib/gnome-initial-setup/gnome-initial-setup --existing-user


Doubt : Need suggestion to buy laptop in budget for using Ubuntu

The best way to get started is to go to a used computer store and purchase an older laptop--you don't need much to run Ubuntu. Then have the store help you with installing Lubuntu (a lightweight Ubuntu variant for laptops).

If you really wanted to go bare bones cheep just to learn to program, as an alternative to the laptop, why not go with a Raspberry Pi?

http://www.adafruit.com/raspberrypi

Just add a cheap monitor and keyboard and you're good to go.

You can use Linux--but, probably not Ubuntu.

P. Todd


In KDE plasma 5 the correct directory is ~/.local/share/icons

As the comment state below, you maybe need to edit the Name= line in ~/.local/share/icons/Name/index.theme


I've installed XAMPP but I cannot start MySQL

Please look for where your phpmyadmin config file is ( should be in the phpmyadmin folder) and open terminal and run:

sudo chmod 700 /path/to/config.inc.php

Now restart apache serverand mysql:

sudo apche2ctl restart
sudo systemctl restart mysql


is there any way so i can use whats app on ubuntu ,i dont have android have android smart phone,

I personally use Whatsie. You can download a .deb package from here for your architecture, and simply double click to install it


System is set to English, Nodejs package defaults to Polish

You could set all your locales to English in the next way:

sudo update-locale LC_ALL=en_GB.UTF-8

Then apply changes by the next command execution:

. /etc/default/locale

But you could also change them one by one using almost the same command:

sudo update-locale LANG=en_GB.UTF-8

In this case only LANG locale will be changed.

Don't forget to apply changes by . /etc/default/locale command execution. The dot . is important part of the command.


It might be a matter of taste, but I personally consider
those u > v && w && x > y || z one-liners unreadable
and especially un-debugable. If they work, they are fine,
but else they are a PITA to my mind.

In your case the mistake was the ip=$(cat ip.txt) part
because cronjobs may or may not have the current working
directory set to $HOME. The preceeding … > ~/ip.txt
writes a file to your $HOME but the following cat ip.txt
tries to access the file ip.txt from wherever directory
cat was started in. The simple fix woul be to replace
cat ip.txt with cat ~/ip.txt.

Having said that, I suggest the following:

#!/usr/bin/env bash

if ip=$(curl -s -f http://api.ipify.org); then
    echo "$ip" > ~/newIP.txt
else
    echo "WAN IP is blank: curl, latency  or internet issue"
fi

This relies on curl returning a bad exit value (!=0) if it
cannot access the give site. If that is not the case, change the
the code to:

ip=$(curl -s -f http://api.ipify.org);
if [ "$ip" ]; then
    …


How can I troubleshoot "VPN Connection Failed"?

Log is written to /var/log/syslog.
Open gnome-terminal and do sudo tail -f /var/log/syslog
This will follow the file (prints to terminal new log messages).
Now try to connect to the vpn, the messages then will start showing in the terminal.
When you are done following the log just click Ctrl+c to quit tail.

One can add markers to the log by opening another terminal and doing something like that:
logger "............... Starting VPN... "


Can I have the portability of a LiveUSB with the performance of a USB install?

4G is the persistence limit only when you use a casper-rw file (since that is the filesize max on a FAT32 filesystem).  Use a partition labeled casper-rw with an ext2-4 filesystem for more storage.  home-rw is a documented filename for your home directory, but I've never used it.
  Use the "toram" keyword on the kernel boot line and the live-media's compressed filesystem will be copied to ram for much better runtime performance (at the expense of some additional boot time for the copy).

The "toram" is not a flag but a word like "persistent" which goes on the kernel boot lines.  For legacy boots, "toram" goes on the "append" line after the "kernel" line in the /syslinux/txt.cfg file.  For UEFI boots, "toram" goes on the "linux" line in /boot/grub/grub.cfg.  You can switch from the casper-rw file to the partition anytime, but if you wait, be sure and remember to copy over what has been created in the file to the partition.  I tend to set up the partition before the install, then just have to delete the file before I boot for the first time.


How to delete a second swap partition safely?

I'm not sure why your system ended up with 2 swap partitions, but it's easy to fix.

I recommend using gparted instead of fdisk or Disk Utility. You can delete the "extra" swap partition and resize the others to claim the freed disk space. It will also tell you if either swap partitions are being actually used or not. Very helpful. gparted is not installed by default, but it is available for install in the repositories. It is also pre-installed in Live sessions from the Ubuntu install CD/USB.
About the extended partition: using a traditional partition table, you can only have 4 primary ("non-extended") partitions. Since you already have 3 NTFS/Windows, and you need 2 more for Ubuntu (OS and Swap), this only can be done using an extended partition. So your 4 primary partitions are the 3 NTFS ones + Extended (the extended partition itself takes up 1 "slot"), and the other partitions are within the extended.
Using gparted, check the status of your swap partitions. If they are locked, it's being currently used by the system. Take note of their status, and decide which one you want to keep and which to delete. Also, right-click them both, go to information, and take note of their UUID (sudo blkid also works).

The possible scenarios are:

1 - The one you want to delete is NOT being used by the system: nice, just delete the partition.

2 - Both swaps are being used by the system: right-click it the one you want to delete, select Swapoff. To make that permanent, remove its entries from /etc/fstab and /etc/initramfs-tools/conf.d/resume (deleting the lines that match its UUID). Now you can safely delete the partition.

3 - Just the one you want to delete is being used, the one you want to keep is not: right-click the one you want to delete, select Swapoff. Right-click the other, select Swapon. Edit /etc/fstab and /etc/initramfs-tools/conf.d/resume, and replace the UUID from one to the other. Delete the unwanted partition.

If any changes are made to /etc/initramfs-tools/conf.d/resume, use the following command to apply the changes:

sudo update-initramfs -u

If you have any question about the answer, feel free to ask!


BIOS
Asus Prime A320m-K
You have BIOS 4022 from 9/7/2018.
There's a newer BIOS available, version 5602, dated 7/27/2020, and it can be downloaded from here.
Note: Confirm that I have the correct web page for your motherboard.
Note: Have good backups before updating the BIOS.
Memory
AMD Ryzen 5 2600
Ryzen processors are notorious for memory compatibility issues.
We need to test your RAM, but we do it after the BIOS update.
Go to https://www.memtest86.com/ and download/run their free memtest to test your memory. Get at least one complete pass of all the 4/4 tests to confirm good memory. This may take many hours to complete.
CPU Support: https://www.asus.com/us/Motherboards/PRIME-A320M-K/HelpDesk_CPU/
Memory Support: https://www.asus.com/us/Motherboards/PRIME-A320M-K/HelpDesk_QVL/


Whats the difference between Ubuntu 11.04 and Pinguy 11.04

Not much, PinguyOS is based on Ubuntu, works with mostly Ubuntu packages and should almost be identical as Ubuntu under the hood. But it is not developed or supported by Ubuntu.

The main differences between PinguyOS and Ubuntu are

PinguyOS uses a heavy tweaked GNOME3 desktop
Installs by default codecs that are not included by Ubuntu due to their licenses
It contains by default a lot of software that is not installed in Ubuntu by default explaining the minimum 1.6Gb DVD download necessary to install it

In the end, other than licenses and personal packages choice, some visual tweaks and scripts, it is not different from Ubuntu.

But since Ask Ubuntu only deals with official Ubuntu or Ubuntu flavors PinguyOS is off topic for most questions here.


This started happening on my Ubuntu machine after I extended the Ubuntu partition size.

The solution is to boot from a Ubuntu live-session (boot your computer on a Ubuntu live-CD or live-USB then choose "Try Ubuntu", it may work on an installed Ubuntu too).

Then:

Make sure you are connected to the Internet
Open a new Terminal, and type the following commands (press Enter after each line):

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

This should repair your GRUB and help the OS shutdown correctly.


How to navigate to a network drive when using Ubuntu via the Windows Subsystem for Linux

I tried this and it worked for me

sudo mkdir /mnt/mydesktopC

followed by

mount -t drvfs '\\mydesktop\C$' /mnt/mydesktopC

I used my C drive as a shared drive but I suppose you could do it for any share...


HDMI display suddenly not recognized anymore

Same thing happened to me today, but I got the display back by booting with an older kernel. Obviously not a good fix, but works as a temporary workaround.

Not sure yet what's causing it. Haven't had any kernel update since yesterday, but I did install a java package that pulled in som X11 libraries. No idea yet if it's related, but I'll try to do some checking. Will update if I find something


While top is running, type LTM

If something disappears when you type that letter, type it again...

LQ reviewers: That's it!


wifi is not working in my hp laptop 15-bs580TX FOR Ubuntu

Probably the drivers are deactivated.
To fix this Go to

  Settings > Software sources(15.10) or Software & updates (later versions) > Go to Additional Drivers tab > Click on USE radio button of the respective wifi driver.

You can also refer this question for more details.


How can I find where certain bash function is defined?

Turn on debugging. From the Bash manual:

  extdebug

  If set at shell invocation, or in a shell startup file, arrange to
  execute the debugger profile before the shell starts, identical to the
  --debugger option. If set after invocation, behavior intended for
  use by debuggers is enabled:

  The -F option to the declare builtin (see Bash Builtins) displays the source file name and line number corresponding to each
  function name supplied as an argument.

Example:

$ bash --debugger
$ declare -Ff quote
quote 143 /usr/share/bash-completion/bash_completion

And indeed:

$ nl -ba /usr/share/bash-completion/bash_completion | sed -n 143,150p
   143  quote()
   144  {
   145      local quoted=${1//\'/\'\\\'\'}
   146      printf "'%s'" "$quoted"
   147  }
   148
   149  # @see _quote_readline_by_ref()
   150  quote_readline()


How can I find out what package or packages a particular repo is for in my sources when I forget?

You have several console options here:

For known package name you can use apt-cache policy package-name - see example below from my system:

$ apt-cache policy doublecmd-gtk
doublecmd-gtk:
  Installed: 0.9.7-0+svn9235~testing
  Candidate: 0.9.7-0+svn9235~testing
  Version table:
 *** 0.9.7-0+svn9235~testing 500
        500 http://download.opensuse.org/repositories/home:/Alexx2000/xUbuntu_16.04  Packages
        100 /var/lib/dpkg/status
     0.7.1-2 500
        500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

It means that I have doublecmd-gtk package installed from third-party repository on OpenSuSe BuildService. You can find its sources.list file with command like:

  $ grep -r "http://download.opensuse.org/repositories/home:/Alexx2000/xUbuntu_16.04" /etc/apt/ --include="*.list"
  /etc/apt/sources.list.d/home:Alexx2000.list:deb http://download.opensuse.org/repositories/home:/Alexx2000/xUbuntu_16.04/ /

If you know PPA name, then you can ask aptitude about package origin with command like aptitude search "?origin(LP-PPA-alexlarsson)" - it will show the same package names as in Synaptic output.

Also you can try one of GUI tools:

Install Synaptic Package Manager with sudo apt-get install synaptic apt-xapian-index and use Origin tab here - see example from my system:

From the screenshot above you can see that I have added Alex Larsson's FlatPak PPA and I have one package installed from it.
You can use special user-friendly application named Y PPA Manager. You can install it with

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

Then you have to click on Manage PPAs button and then select line of needed PPA and list its packages with List Packages button and you will get something like shown on the screenshot below:

You can combine methods above to get the best result. I use many of them depending on the circumstances.


As steeldriver suggested, device-tree-compiler (dtc) is below the minimum version that zephyr requires. I faced a similar issue with my build and fixed it as follows:-

Get the latest stable version of device-tree-compiler (check
that it says current-stable and not active development). Currently
it is 1.4.7-1.
Unzip the package:-

tar xvf device-tree-compiler_1.4.7.orig.tar.xz

Install required dependencies:-

sudo apt-get install flex bison swig python-dev

Navigate to the project directory and build the project:-

cd dtc-1.4.7 && make

Replace the existing dtc with the latest installed. You can do this
by updating your $PATH or moving the installed dtc to /usr/bin
Ensure that the default dtc is now the latest

cd ~/ && dtc --version

This should return Version: DTC 1.4.7. After that, rebuild your HelloWorld program and it should be good to go.

I hope this helps.


How to prevent seahorse from asking for a passphrase?

Launch Seahorse, find your "login" encryption key, then right click on "Passwords: Login" and choose "Change Password".

Enter the old password, then hit the "Okay" button, leaving the new and confirm boxes empty.  You will be prompted about "Unsafe Storage".  Confirm this, and your keyring will be automatically unlocked when you log into your machine.

Note that this really is "Unsafe" and should only be used if you encrypt your home drive, as otherwise losing your laptop will equate to opening up everything it has access to - that might include your Gmail password (if you use a Gmail checker) your WIFI passwords if you connect to WIFI, IM passwords and so on.  Looks like Chromium has started using it for storage too, as I seem to have a lot of site-specific stuff recorded in my keyring.

Personally I also uninstall Seahorse after setting everything up too, so that it's a little less trivial to see all my passwords in cleartext should I forget to lock my laptop!

Be careful with unsafe storage.


Installed edubuntu from software center, but can't find it!

Make sure that you have installed "Educational desktop for Ubuntu"

Logout from you user account first.

Click on this icon

Then change to edubuntu. Below edubuntu is not there. But in your computer it will show.

Then login.


It was a simple thing in the end, the system wasn't set up to forward IP traffic! To enable it:-

sysctl -w net.ipv4.ip_forward=1

and that was all that was needed.


redirect facebook visit to another webpage

You can edit your host file:

sudo gedit /etc/hosts

Attach the ip adress of google to facebook:

193.95.12.39 www.facebook.com
193.95.12.39 facebook.com

Save and reconnect


For Fortran alone, you can use

sudo apt-get install gfortran

But even if it takes more space, it is useful to have

sudo apt install build-essential

This installs several other capabilities, including gcc, g++ and make.

You may also want to install the manual pages about using GNU/Linux for development:

sudo apt-get install manpages-dev


Simply install the package eject via

sudo apt-get install eject

If the drive was not present, there would be a different error message:

% eject /dev/cdrom1
eject: unable to find or open device for: `/dev/cdrom1'


How do I connect to an SMB share requiring a user name and password?

In top menu of the file browser click Go>Location and enter smb://user@host/sharename.
You will then be prompted to enter a password.


X opens local firefox instead of distant one

To solve the firefox problem, use the -no-remote option.

For a complete remote solution, I suggest FreeNX.


User password doesn't work after installing (language) updates

Could it be that you were using different keyboard language settings when you key in your passwords? (i.e English <-> French)
Otherwise you could reset your password.
Here is how to do it:
How do I reset a lost administrative password?


from quickly.widgets import web_cam_box

Here's the contents of quickly.widgets:

Help on package quickly.widgets in quickly:

NAME
    quickly.widgets

FILE
    /usr/lib/python2.7/dist-packages/quickly/widgets/__init__.py

PACKAGE CONTENTS
    conventions
    dictionary_grid
    grid_column
    grid_filter
    media_player_box
    press_and_hold_button
    tests (package)
    text_editor
    url_fetch_progressbox
    web_cam_box

and the beginning of the web_cam_box help:

NAME
    quickly.widgets.web_cam_box

FILE
    /usr/lib/python2.7/dist-packages/quickly/widgets/web_cam_box.py

DESCRIPTION
    A VBox that tries to turn on and display the default webcam for the
    computer on which it is running. It is also capable of saving an image
    from the webcam to the user's Picture directory.

There's more info on functions and usage in the help.


Qualcomm QCA6174 unstable wifi and bluetooth

It needs a custom firmware, solved it by using https://github.com/thebitstick/surfacego-wifi


Why the feature to insert date/time not work in gedit?

Try this work around. Look in Edit > Preferences > Insert Time and Date > Preferences.

Select the Prompt for a format radio button. Close and Close again.

Now when you Edit > Insert Time and Date you should now be asked for a format from the drop down list. Select and enter.

Works for me on my ACER laptop.


juju bootstrap error no default environment found

Even with only one environment specified in environments.yaml, you still need to specify a default environment for juju to use.

You have 2 options to specify a default environment:

Using default: <name>, usually at the top of environments.yaml, without indentation (in your case, you'll need default: maas).
Using juju switch <name> on the command line (e.g. juju switch maas).

I hope this helps.


What is the correct way to do port redirect on same host?

I propose you to install nginx to forward HTTP requests from standard 80 port to the Jenkins page. Here is a small example of setting for nginx.conf file (it works fine for me).
On my Ubuntu machine I edited file /etc/nginx/sites-available/default (insert your ip address instead of mine):

location / {
    # First attempt to serve request as file, then
    # as directory, then fall back to displaying a 404.
    #try_files $uri $uri/ =404;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://192.168.56.103:8080;
    proxy_redirect http://192.168.56.103:8080/ $scheme://$host:8080/
}

Also I had to comment the line '#try_files $uri $uri/ =404;' 'cos otherwise I receiver 404 error.
Restart nginx sudo /etc/init.d/nginx restart.
Now if you point your browser to the http://ci.mymachine.com you should be redirected to the Jenkins page. Press Ctrl+F5 for 'hard' refresh of the page.
Hope that helps.
Here is the link to the discussion.


Your tomboy notes are saved in ~/.local/share/tomboy. They have a .note ending.

To open a note from command line you can use tomboy --open-note YOUR_NOTE. The only problem is that they are not saved by their name but by some sort of hash.

Either you find out what note it is or you write a small script which opens a note based on a specific creation date or some other aspect. You could also have the script read the first line of the note for a specific string.


I had this same problem. What happened was that my recent updates also gave me a new kernel and that bugged out with my graphics driver. I know it's my graphics driver because moving windows was so slow and blocky. I just used a previous kernel version when booting up and everything was fine.

Another possible solution is that you can purge your graphics driver and try to reinstall it while you're on the bugging kernel version. I have no idea if this will work because I'm just partly a beginner myself.


How do I keep users on my server from accessing the root user?

Give everybody their own LXD container, then lock them out of the host server.

Containers can look and feel like a complete system (except if you dig around the kernel), including SSH and apt. Each of your friends can have their own container, installing/removing/customizing whatever they like. It takes a fraction of the resources of a real VM.


The first hit on Google (searching for "AttributeError: 'Template' object has no attribute 'official'") yields the next Ubuntu Forums thread: Upgrading to 10.10: "AttributeError: 'Template' object has no attribute 'official'".

Try refreshing your package list and make sure that your system is up to date before upgrading to 10.10:

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


Not sure what you've got going - in 11.10 Mod4(super)+D does nothing, the show desktop binding is Ctrl+Alt+D

Open a terminal & try this

gsettings set  org.gnome.desktop.background show-desktop-icons true


I have found a way that has worked for me on Ubuntu 18.04;

sudo vim /etc/nsswitch.conf

Add wins to the line below;
Change from;

hosts:          files mdns4_minimal [NOTFOUND=return] dns myhostname

To:

hosts:          files wins dns mdns4_minimal [NOTFOUND=return] dns myhostname

Save & quit

sudo vim /etc/request-key.conf

Changed the -c (as it's deprecated anyway) option to -t on the cifs.spnego line:

create cifs.spnego * * /usr/sbin/cifs.upcall -c %k

to;

create cifs.spnego * * /usr/sbin/cifs.upcall -t %k

Save & quit

Also had to add -t option to cifs.upcall in /etc/request-key.d/

sudo vim /etc/request-key.d/cifs.spnego.conf

Change;

create cifs.spnego * * /usr/sbin/cifs.upcall -c %k

To;

create cifs.spnego * * /usr/sbin/cifs.upcall -t %k

Save & quit

sudo vim /etc/fstab

Append it as per;

<server address from above> <mount point locally> cifs _netdev,sec=krb5,noserverino,user,uid=<alias>,cruid=<alias>,gid=domain^users,rw  0 0

Save & quit
Mount it with;

sudo mount -a

You'll now have access, it should also be persistent on reboot


What can I do to make Unity more memory-efficient?

Check what processes are using the most memory.  I use htop.  I have seen that compiz leaks memory, and is the largest memory hog other than Firefox (which also leaks).

I get the best responsiveness (1.6GHz Pentium M with 2GB RAM) when I:

restart firefox to reclaim leaked memory
log out and log back in, to restart compiz and reclaim leaked memory
don't hibernate the machine;  waking up from hibernating is slow due to the need to copy data from disk back into RAM

Other things that could improve your experience would be to investigate configuration options for the programs that are using the most memory and select options that as a result use less memory.


How can I run Sublime Text from the launcher as root every time?

Sublime Text should have a .desktop file located in /usr/share/applications/ named sublime-text.desktop.

Open it and change the Exec= line to include gksu (or gksudo they are the same) at the beginning.

Now unpin and repin the sublime text icon to the launcher.

NOTE: Your path to the sublime executable will probably be different, that's because I installed the Sublime 3 beta, don't worry about it, just add gksu.


Printer Brother DCP-7065DCN worked but not the scanner in Ubuntu 16.04

I had this printer before, I only used the debs on the brother's page:

http://support.brother.com/g/b/downloadlist.aspx?c=us&lang=es&prod=dcp7065dn_all&os=128&flang=English

Look for Scanner Drivers you need 32 or 64bit.

Hope it can help you.


How to temporarily stop and start Networking by using Netplan?

From the Netplan page:

Netplan reads network configuration from /etc/netplan/*.yaml which are written by administrators, installers, cloud image instantiations, or other OS deployments. During early boot, Netplan generates backend specific configuration files in /run to hand off control of devices to a particular networking daemon.

Netplan provides the recipe; it doesn't the real work of configuring devices and making connections. Netplan is the wrong place to try to bring your network connections up/down. Netplan is the right place to change your network configuration while the network is down.
The supported networking daemons are NetworkManager and systemd-networkd (Ubuntu installs NetworkManager). Only one can be in use at a time. Bring your network up/down using the daemon.


Where to find the Evolution contacts files

There is no way to import former contact list from the operating system: the disk was formatted when installing new version of Ubuntu.

You can recover files in the whole disk at before the new ubuntu installation if you think it worths, by using this software: EaseUS Data Recovery www.easeus.com (for windows). Just install EaseUS Data Recovery on a windows machine, extract the hard disk with ubuntu, then plug the hard disk with ubuntu to the windows machine as external drive (or secondary hard disk).


increase screen refresh rate for external monitor?

You have to use Terminal. Open it by pressing Ctrl+Alt+T and then run xrandr.

You might get something like:

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 768
default connected 1024x768+0+0 0mm x 0mm

N°:0   1024x768   60.0     87.0*
N°:1   1024x576   60.0
N°:2   960x600    60.0
N°:3   960x540    60.0
N°:4   800x600    85.0     75.0     72.0     60.0     56.0

Then you can choose from the resolutions and refresh rates listed above. The following line of code changes to 1024x768 at 60Hz:

xrandr -s 0 -r 60

Where -s will change your resolution to the the one specified in the number zero and -r will change your refresh rate to 60Hz.


According to Couchbase's issue tracker at https://issues.couchbase.com/browse/MB-19272, it seems that Couchbase is still in the process of making Couchbase Server work on Ubuntu 16.04, so you are out of luck for the time being.


Ubuntu 14.04 not publishing printers on network

On the system with the printer, open http://localhost:631/admin and check ✔ "Share printers connected to this system" and "Allow printing from the internet". Think about checking the other two "Allow ..." boxes. Remember to click on "Change Settings"


Windows 10 Bash "Cannot connect to display!"

You need to install an "X server" to provide that graphical interface which is yet not there on a typical Ubuntu subsystem on windows 10.

If you install an X server application on your Windows desktop and change a setting in the Bash shell, applications will send their graphical output to the X server application and they’ll appear on your Windows desktop.

You can install Xming a good X server for Windows. Just accept the default settings. It will then automatically launch and run in your system tray, waiting for you to run graphical programs.

After installation you’ll need to set the DISPLAY environment variable to point at the X server already running on your system.

First run the following command in the Bash environment to set the DISPLAY variable:

export DISPLAY=:0

and then run your graphical application. In this case

suplane | suximage title="My first test" &

Some part is taken from howtogeek


Keyboard disabled at Ubuntu 19.04 Login screen

I had this problem, except only after Sleep and Hibernates.  I know you said its only after booting from a total shutdown, but maybe this fix will work for you as well.
I had too much lag because too many features were enabled on the login screen.
Open Screensaver settings.  (I have a GUI for this but you might need to look up the command line command for this).  I disabled the "Allow keyboard shortcuts" and this made my login screen have much less lag and I could see my input key strokes as I typed them.  If that doesn't help, disable more of the settings.  (Again if you don't have a GUI for the screensaver settings, then you might have to look up the rest of the settings and command line commands for them).  Good luck!


This has nothing to do with the Dialog, you would get the same problem no matter where in what context is used.

From the code I see you are using a circular Picker, which uses a PathView to visualise the model. PathView stretches the delegates based on the amount of the data in the model, thus the behaviour you see. Try to set circular to false, I'm sure the visual will be ok then.


File named 'phishingurlrc' in .config directory

It is a legitimate file created if you have used kmail on your system. If you don't use kmail, feel free to delete it. This link mentions phishingurlrc.
Here's someone's file uploaded to GitHub:
[General]
DataBaseState=Cg0IARAGGAEiAzAwMTABEPyaAxoCGATU4Ug9
RefreshDataBase=1813.311s

You may also have ~/.local/share/phishingurl/malware.db on your system. See https://forums.opensuse.org/showthread.php/530672-Which-program-creates-local-share-phishingurl-malware-db


How do I disable SSHD from starting automatically?

Rename /etc/init/ssh.conf to /etc/init/ssh.conf.disabled.

sudo mv /etc/init/ssh.conf /etc/init/ssh.conf.disabled


"exec() family of functions" ... are, well, functions. They are used in source code. They are not commands to be executed by users1. They are typically used by programs which need to execute another (for example, the shell itself, sudo, pkexec, etc.). A program which calls exec directly will find itself replaced by the exec'd program, so typical usage is usually fork and exec.

A contrived example would look like:

$ cat foo.c
#include <unistd.h>
int main()
{
    const char * path = "/bin/echo";
    char * args[] = {"echo", "Hello", "World!", NULL};
    execv(path, args);
}
$ gcc -o foo foo.c
$ ./foo
Hello World!

You can see real-life instances of exec usage using strace on various programs, including strace itself:

$ strace -e execve ./foo
execve("./foo", ["./foo"], [/* 52 vars */]) = 0
execve("/bin/echo", ["echo", "Hello", "World!"], [/* 52 vars */]) = 0
Hello World!
+++ exited with 0 +++

Note how strace itself uses exec to call the program, and then the program in turn calls exec.

1 ... except for the exec shell builtin, which is a shell feature.

exec the shell builtin is like the exec functions in that invoking exec with a program name causes the shell to be replaced by it. However, common usage of exec is usually for modifying or adding file descriptors.

Another contrived example:

$ exec 3</dev/urandom
$ read -u 3 -n 10
$ echo "$REPLY" | base64
oZN5Qsn3nAs+1GFUCg==

You might think that we could read in from /dev/urandom directly. Yes, we could. However, this is useful when:

we need to read from/write to multiple file descriptors
we need to replace one or more of the standard file descriptors (for example, send stdout to a file for the whole shell session).


Compatible kernel to build for Ubuntu 12.04.LTS

It is not recommended to install unsupported kernels. Some drivers may not build, or other issues may occur. There must be a really good reason to upgrade the kernel.

A better solution is to upgrade distribution to 14.04 LTS.

You can have a supported 3.13, 3.16 or 3.19 kernel in 14.04.

But you can install any kernel image from Ubuntu mainline kernel PPA at your own risk.

But if you are new to Ubuntu I highly NOT recommend doing it.


Updated information

It's possible to use XRDP IN conjunction with Unity Desktop in Ubuntu 16.04....Please read full instruction at http://c-nergy.be/blog/?p=9962
You will basically need to perform the following actions

install tigervnc
install xrdp
modify the.xsession file

and you are good to go....

If you are still using the vnc4server or x11vncserver, you can also use a quick and dirty workaround (explained here) .  Basically, you will install a vncserver on your Ubuntu machine and the xrdp package software.  When connecting to your ubuntu machine via the remote desktop,  you will select the connect to console option and you will see your Unity Desktop.  In this case, you basically using the xRDP as a proxy server that allows you to access your desktop through VNC protocol

Note : Some people mentioned that there might be a need to check firewall status.  If firewall software is running on the Ubuntu machine where xRDP is installed, you might need to open the appropriate ports (i.e. 3389)

Hope this help


Cannot get Asus laptop to correctly wake up from Suspend mode

I finally solved this by doing the following:

Opened Additional Drivers app, and Deactivated the driver in use
Rebooted (something was wrong with the cursor, as it was going way past the screen on the right
Ran all the commands from well my previous question regarding a problem with the same laptop.

Now, it wakes up from suspend successfully! :)


Whats the simplest way to make source and binary package when you are the original author?

Nobody wants pointless anything. And rest assured, the communities that have adopted the .deb packaging (Debian, Ubuntu, Mint, ...) have discussed beyond lengths about everything in there.

The basic idea about the packaging is that there is:

a tarball that is nothing distribution-specific to argue with, which is the program's distribution-independent source tree. If that already knows how to behave in particular distributions - nice - if not, not. That is the tarball that has to be named yourname_version.orig.tar.(xz,gz,bz2) to be found when creating the package.
a tarball that has everything that is specific to a particular release of Debian in a separate folder named - debian. One reason to have it separated, which the question already prepared for is that the individuals packaging are typically not the same as the ones that maintain the software itself. This helps when there is an update of the software so it cannot overwrite the packaging. And it rests assured that there are no hidden changes performed to the original source tree. And a RedHat developer would not want to see the debian-specific bits, so everyone is happy to have the debian folder separated from the rest.

So, there are the two tarballs. Not too much overhead, I tend to think. The main concern is the integrity of the upstream source tree.

Depending on where you live and about how social you are, there are different ways to start learning how to package. For many, just skimming through

the Debian Policy https://www.debian.org/doc/debian-policy/ (surprisingly readable) and
the Debian New Maintainer's Guide https://www.debian.org/doc/manuals/maint-guide/

is all they ever want. Others are happy with

the dh-make package that provides dh_make that basically auto-packages

and yet again others will have a look at

https://wiki.debian.org/Keysigning/Offers

to meet up with a mostly social Debian Developer to be guided over the first steepest moments. Once you have some routine it is truly just a few minutes from 0 to an installable package, basically it is mostly the compile time that you wait for, so it is not too much to ask IMHO. Most work then goes into the package descriptions or also bits that upstream has not cared enough about like missing man pages or optional bits like the automated notification of updates.

Good luck.


Yep, Ubuntu-tweak can help you with that.

sudo apt-add-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

Once installed it will be in Applications->System Tools. You'll be able to tweak many things of your Ubuntu including GDM.

A picture is worth a thousand words :


Ubuntu hanging due to some strange './b 22 300' commands

I found the problem. Posting this here for anybody who faces this issue.

This issue arose due to VestaCP. I installed it briefly and then uninstalled it, but somehow, the user 'admin' which was created by it was not removed, neither the 'admin' user directory, nor the cron jobs created by VestaCP.

Due to this, hackers/bots somehow started brute force attacks on the vestacp ip (along with ssh, which was saved by fail2ban). These connection requests spawned these ./b commands and brought down the server.

The solution to this is:

Remove the admin user created by the following commands: killall -u admin -m . & userdel admin.
After this, delete the home directory of the admin user (i.e. \home\admin) and also delete the cron file for the user: /var/spool/cron/crontabs/admin.


I'm not quite sure how Ubuntu would handle it, it might be able to auto-detect, BUT the amount of RAM doesn't live up the recommended amount:
https://help.ubuntu.com/community/Installation/SystemRequirements


How can I persistently remap keys in Ubuntu 16.04?

I've been using 16.04 for a little bit and it seems to use sddm as its desktop manager. It used to be LightDM and GDM before that. Both its predacessors are documented to load ~/.Xmodmap automatically but I can't find anything explicitly saying sddm does.

Therefore it may be advisable to just force it to load with a new script. You just need to run xmodmap ~/.Xmodmap and you can do that a number of ways:

Adding it via the graphical start up tools
Editing ~/.xinitrc to run it.
Adding a new .desktop config in ~/.config/autostart/

There are probably a few dozen other ways to manage this, essentially doing the same thing.


Firefox 35's PDF Viewer (pdf.js) works here (tested with Kubuntu 14.04 and Arch Linux). If it "does not work" (a download is offered instead) for you, check that you have actually enabled the PDF preview functionality:

Go to menu Edit -> Preferences.
Select the tab Applications.
Search for pdf.
Ensure that the Action is set to Preview in Firefox.

If you do not see the Preview in Firefox option, perhaps it got disabled somehow. Follow these instructions to re-enable PDF.js:

Type about:config in your location bar and press Enter.
Accept the This may void your warranty! joke/warning by pressing the I'll be careful, I promise! button.
Search for the pdfjs.disabled option.
If the value is set to true, double-click it.
Confirm that the value is set to false.
Repeat the previous steps (go to Edit -> Preferences, etc.)

If PDF still get offered as download, then it is possible that the website in question tries to force a download (this can be requested by websites using the Content-Disposition header). In this case, you need an additional add-on to force inline display:

Install the Open in Browser add-on.
When a PDF file is offered for download, the download dialog will have an additional Open in browser as option. Select PDF.
Press OK. The PDF file will now be shown in the browser.

These documents were used for testing (first Google results):

http://www.europapress.es/documentonoticia_20130430172124_2_465442.pdf (forced as download)
http://image.haier.com/manual/japan/wash_machine/201211/P020121130574743273239.pdf (opens normally, linked from PDF.js test suite)


Can I use the GNOME Activities view for managing windows in Unity?

you can configure it using Ubuntu tweak.in ubuntu tweak tool goto...tweaks-workspace and make the top left as SHOW DESKTOP   but you can't close windows when viewing all windows.


PATH problem: bash: /usr/local/bin/adb: No such file or directory

adb was hashed at /usr/local/bin/adb, meaning the shell remembered its location and wouldn't look again in the PATH to see that it had been deleted/moved. Normally hash -r would unhash everything including adb, but it didn't in this case - not sure why, but running hash -d adb would also do it. Restarting the shell also unhashes everything.

If you had run type adb before fixing the issue, you would have seen this:

adb is hashed (/usr/local/bin/adb)

This is one of the reasons why type is better than which.


Go to http://packages.ubuntu.com/ and search for linux-image and download the one you want and install it using dpkg -i linux-image-<version>.deb

Example: http://packages.ubuntu.com/search?keywords=linux-image&searchon=names&suite=all&section=all


Right click on the file you want to open, select Properties, go to tab Open with.

If the application you want to use to open a file is not listed on the program list select Other Applications and press the button Add.


Ubuntu installation, system failed to detect the iSCSI disk

I am running into a very similar issue. I have gotten a step further by doing the following:
Once you get to the disk section of the install do Go Back which gives you a list of options, drop to a shell and run the command 'iscsistart -b'. That should read your initiator and target info from bios and connect to the SAN. Type exit to get back to the installer and go to the detect disks step. That should now show the iscsi disks.
I was able to get everything installed just fine that way but now I am stuck after rebooting it seems that Ubuntu doesn't handle everything during the install and won't actually boot from the iscsi disk even though grub comes up fine. If anyone has any tips for that next part I would love to hear them!


How do I install MSSQL Server and/or Tools for Linux on 16.04?

This answer covers installing MSSQL Server and Tools for any 16.04 system.  It does not cover the Docker solution to getting MSSQL Server on a system.  A separate answer will be written for MSSQL Server via Docker installation option for SQL Server.

There are a couple different components here in packages from Microsoft repositories only.

mssql-server - Microsoft SQL Server for Linux Preview
mssql-tools - sqlcmd, etc. commands to interact with MSSQL Server.

There are some evil caveats here:

You must have 16.04 for all components; it does NOT work on older versions.
At the moment, there are only 64-bit versions of the packages available.  You will not be able to run mssql-server and possibly not the tools either unless you are on 64-bit systems.

  All commands below are from Microsoft's suggested steps.  I do not suggest using some of these commands outside of following these steps exactly, due to the nature of security risks that some of the procedures here introduce (such as logging into a superuser shell).

mssql-server installation steps (source)

These steps cover setting up MS SQL Server for Linux Public Preview.  This and the Docker method are the two methods for getting MSSQL Server for Linux set up.

  Caveats:

  You need to have a 64-bit system for MSSQL Server.
  You need at least 4GB of RAM on the system for MSSQL Server to install.
  You must have Ubuntu 16.04 for this, there are currently no other versions on their repository servers.

To install the mssql-server Package on Ubuntu, follow these steps:

Enter superuser mode.

sudo su

Import the public repository GPG keys:

curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -

Register the Microsoft SQL Server Ubuntu repository:

sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"

Exit superuser mode.

exit

Run the following commands to install SQL Server:

sudo apt-get update
sudo apt-get install -y mssql-server

After the package installation finishes, run the configuration script and follow the prompts.

sudo /opt/mssql/bin/mssql-conf setup

Once the configuration is done, verify that the service is running:

systemctl status mssql-server

See: Quickstart: Install SQL Server and create a database on Ubuntu.

mssql-tools Installation Steps (source)

This section covers setting up of mssql-tools which includes the sqlcmd command.  These steps are needed for any systems in which you wish to use the sqlcmd command or other Microsoft-originating utilities on Linux to interact with an MSSQL Server.

(This is not required for other Python libraries for interacting with MSSQL, or other utilities such as DataGrip which can interact with servers, etc., which do not need the mssql-tools pacakge to operate.)

  Caveats:

  I have not found a version of this for non-64bit systems.  You may need a 64bit system to make these tools work.
  You can only use tools on 16.04 currently.

Enter Superuser Mode

sudo su

Import the public repository GPG keys:

curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -

Register the Microsoft Ubuntu repository:

sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/prod.list)"

Exit superuser mode:

exit

Update the sources list and run the installation command:

sudo apt-get update
sudo apt-get install mssql-tools


How do I find packages to install via apt-get

I always use packages.ubuntu.com

Also you can use apt-cache search for command-line searching. Or you can use the GUI package manager (Ubuntu Software Center / Synaptic) for searching software.


When starting or log off/on, add'l panels show and some panel applets are duplicated

This apparently results from a 10.10 repository error where nvidia-current update was botched and as a work-around I installed driver from nvidia.  This resulted in a botched 10.10>11.04, then a botched 11.04>11.10, then a botched 11.10>12.04 release upgrade. It kind of incredible that the resulting 12.04 would boot at all.
Remarkably, the same thing on a 32bit system worked perfectly.
The solution apparently will be to fix the 11.04 so the following upgrades will work, if that is possible.
Fortunately I have backed up each step.

UPDATE:
Mismatch seen after upgrading without nvidia-propietary:

UPDATE This now seems to be associated with 12.04's inability to support a second monitor (at least in amd64 with nvidia graphic adapters).  These occur when adding/deleting 2nd monitor (screen1) using nvidia settings and logging on/off.  Bug reports have been filed, Bug #1002641 and Bug #1001712 and possibily related to Bug #1002602 and Bug #729979

This also occurs with Unity.

UPDATE Bug #1002641 is getting a little attention but nobody is assigned to work on it.  After today's update, I now have the Unity Dash Totem on my Gnome fallback/classic screen obscuring the Gnome top panel and pretty much making 12.04 useless.  Thank goodness I have a working 10.04 also running so I can get some work done.


PlayOnLinux using Anaconda python installation and can't find wxversion

This is because of missing wxpython in newly installed anaconda python. You can install missing module by running conda install wxpython. No root password is required unless your anaconda based python has root level permissions.

wxversion module is a part of wxpython package and it checks for which version of wxpython to select during import wxpython if you've multiple wxpython versions installed.


Is it possible to monitor dconf for changes?

If you want real-time monitoring, you could run the dconf watch command in a terminal, either to monitor a specific schema path

dconf watch /desktop/gnome/remote-access/

or the whole tree

dconf watch /

which will show a running output as you change values, e.g. toggling the 'Desktop Sharing' security preference checkbox produces

/desktop/gnome/remote-access/notify-on-connect
  false

/desktop/gnome/remote-access/notify-on-connect
  true

If you just want a list of changes, you could use dconf dump redirected to a file to create before and after snapshots that you can then compare with diff.


Rhythmbox not shown in gconf-editor (Ubuntu 12.04)?

This has been probably moved to dconf-editor (note that this app begins with "d").

I do not see key "library_locations" in there - check youself in: org.gnome.rhythmbox


What is the difference between deb file and ddeb file in linux?

There is an automatic process to create the debugging packages that you are after with 2 aims:

Spare developers the need to produce a separate package
Save space for mirrored repositories

This process creates the .ddeb files that you are looking at. To confuse the issue older debug packages will still be available for the foreseeable future with the .deb suffix...

References:

Ubuntu Wiki: Debug Symbols
Debian Wiki: Automatic Debug Packages


Can't send ongoing messages in any e-mail client on Ubuntu 16.04

Actually I've solved this problem for one of the accounts changing the properties of the outgoing server (connection security and authentication method).

Another account also is able to send mails but now it has problems with saving mails to the "sent" folder. Let see if I manage to fix that at the end :)


Recompile Nginx with nginx-push-stream-module?

There is a way to do it in Ubuntu!
You can rebuild Ubuntu's Nginx package - and include your module into it.
Then prevent automatic Nginx update with:

sudo aptitude hold nginx
sudo aptitude hold nginx-full

I have written an instruction for myself - My post about Nginx recompilation in Ubuntu with a new module

PS: I hope the link doesn't die very soon. Too lazy to copy-paste everything


Windows 10 randomly kicks out my GRUB, how do I reinstall it?

Boot from Ubuntu installation media.

Select 'Try Ubuntu without installing'.

On desktop open a terminal, execute:

sudo mount /dev/sda7 /mnt
sudo mount /dev/sda2 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sda
update-grub

Note:

sda = disk | sda2 = efi partition | sda7 = system partition

Boot into BIOS - select Ubuntu as default operating system.


OK so taking a quick break and finding a slightly different set of instructions allowed me to get this working! (FYI I did a clean install of 14.04 first)

Here's the link to the step-by-step instructions: http://c-nergy.be/blog/?p=5305

The two differences in these instructions were:

Before installing xfce4, running an update
The .xsession file was simply xfce4-session

I still can't get gnome-2d to work, but for the time being, I'm just happy I can create a remote session to my linux machine without actually taking control of it!


The command makepng is used to make a png image. There are two main stages. The first is generating an image that is stored in memory. In this case a simple fractal is generated. The image is held in a 1D float array of length width x height. The second stage is then to write the image to an actual file.

To make the command work you have to install the dependencies:

sudo apt-get install libpng3

sudo apt-get install libpng-dev

See this for more info

Note that this is an optional, so you are not obliged to do that


Did you check the repositorys?

  Type the following commands:

wget -q "http://deb.playonlinux.com/public.gpg" -O - | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_maverick.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

If you already did, running sudo apt-get update && sudo apt-get upgrade should install the latest version.

You can find the above code for your current version (for future reference) on the following link:
http://www.playonlinux.com/en/download.html


Network driver for ubuntu 12.04 installed on Dell inspiron 14 R 5420

I am assuming that you might need Broadcom 802.11 Linux STA wireless driver

You first need to connect your laptop to the router with Ethernet cable in order to get internet access for downloading the necessary drivers. Then follow the steps below.

Open System Settings from the Launch Bar.
Click on Software Sources
Click on Additional Drivers tab
Select Using Broadcom 802.11 Linux STA wireless driver source from bcmwl-kernel-source (proprietary)
Click on Apply Changes
Restart your laptop.
Set-up your wireless after logging in.


I found the answer.  Edit file

/etc/modprobe.d/blacklist.conf

and add the following to the end

# instruct modprobe to force inactive modules to always fail loading
install cramfs /bin/false
install freevxfs /bin/false
install hfs /bin/false
install hfsplus /bin/false
install jffs2 /bin/false
install udf /bin/false


The Linux command line for beginner | Creating folders and files

ls shows a list of all the files and directories (folders) in a directory.
You can use ls -d */ to only list the directories.
To create a new directory, mkdir new-folder (replace new-folder with the name you want to).
To create a new (empty file), touch filename.
Afterwards, you can edit the contents of the file, with nano filename (You can directly create a new file with nano as well).
To exit nano, press  ctrl  +  x , followed by  y (to confirm saving) and  Enter .


Apache configuration problems? Why Perl scripts can't be executed - browser download scripts

Problem solved!

I remove all Require all granted (it's only for Apacvhe 2.4+) and paste:

Order allow,deny
allow from all

Also i move AddHandler cgi-script .cgi .pl to DocumentRoot directory description


What is the command for opening a new terminal window and executing a series of commands?

Yes, it is deprecated, you should use -- instead of -e or -x.


Atheros AR9462 WiFI very unstable & package loss

Looks like a bug in network manager. Bug

Run this command in the terminal:

sudo gedit /etc/NetworkManager/system-connections/essid

Where it says essid in the command above type the name of your wireless network. A file should open then enter your user password change the line "system-ca-certs=true" to "system-ca-certs=false" save and close gedit or whatever text editor you are using, then reboot.

Then connect as you normally do using network manager.

Also some people say just removing "system-ca-certs=true" from the file worked for them but a few people reported that the file recreates itself on reboot that is why I suggest changing true to false instead of removing the line completely.

If you are not using gedit as your text editor in the command above type the name of the editor you are using in place of gedit.


is a jungle there....

all in the /usr is under the root user so i guess that a

chown root:root usr
chown root:root usr/*
chown root:root usr//
chown root:root usr///*

should do the trick....

the problem is that

root@ubuntu:/usr/include# ll sound/
total 144
drwxr-xr-x  2 root root  4096 Jul  6 01:27 ./
drwxr-xr-x 53 root root 20480 Jul  6 01:27 ../
-rw-r--r--  1 root root 22029 Jun 18 21:35 asequencer.h
-rw-r--r--  1 root root  4313 Jun 18 21:35 asound_fm.h
-rw-r--r--  1 root root 39635 Jun 18 21:35 asound.h
-rw-r--r--  1 root root 16843 Jun 18 21:35 emu10k1.h
-rw-r--r--  1 root root  3076 Jun 18 21:35 hdsp.h
-rw-r--r--  1 root root  5464 Jun 18 21:35 hdspm.h
-rw-r--r--  1 root root  4238 Jun 18 21:35 sb16_csp.h
-rw-r--r--  1 root root  7430 Jun 18 21:35 sfnt_info.h

the folder has the drwxr-xr-x permissions and the files -rw-r--r-- and that is translated in chmod 777 or 644 .. or other permission....

so if you have modified with the chmod command is a jungle to make every file back as they was...  http://en.wikipedia.org/wiki/Chmod


Audio recording application that uses ladspa plugins?

Ardour uses LADSPA plugins. It is a digital audio workstation, check http://ardour.org/


This feature isn't available in gnome-calendar but you can ask this feature on the gitlab page of the project: https://gitlab.gnome.org/GNOME/gnome-calendar/issues


Network Manager Ubuntu 16.04 - wifi connected no wifi networks listed

Have you tried to disable power management on your wireless card?? I have different wireless card, but I was having a similar issue with my rtle8723be card and forcing the power management feature to be disabled worked. power management on some WiFi cards are an experimental option.

For your WiFi kernel module I found this:

sudo nano -w /etc/modprobe.d/iwlwifi.conf

and adding this line to the bottom:

options iwlwifi power_save=0

to exit nano and save:

ctrl-x, Y, then press enter

to unload module:

sudo modprobe -r iwlwifi

now to reload the module:

sudo modprobe iwlwifi

if that doesn't you work you can try changing that line to:

options iwlwifi power_save=0 d0i3_disable=1 uapsd_disable=1

exit nano, save file.

then unload module:

sudo modprobe -r iwlwifi

reload the module:

sudo modprobe iwlwifi


What is 'None' that shows up in the filesystem in Ubuntu 14.04.1 LTS?

"none" means it is a temporarily mounted filesystem storage (created by the kernel). The storage does not happen on your hard disk drive but happens in memory (or in the swap space).


That may be the incorrect syntax for the wget command for your desired result: simply running wget http://static.die.net/earth/mercator/1600.jpg will save the image as 1600.jpg in the current directory. Also, it looks like the --user-agent option is not necessary for that website.
Resizing the image will distort it a little bit, because you're trying to essentially "compress" an amount of data into a larger data container - meaning data will have to be added based on assumptions made by the image editor. You can try it anyway, though, using ImageMagick. It is provided by the imagemagick package.
There are one of two methods you can use to convert it. The first one, which is probably more preferable because it will not distort the image as much, is to keep the image's aspect ratio and resize it to 1280 x 887, which may still work for a 1280 x 1024 desktop background if you have, for example, a green solid background color set behind it or something. To resize the image this way, use:
convert 1600.jpg -resize 1280 x 887 1600_2.jpeg

or
convert 1600.jpg -resize 1280 x 1024 1600_2.jpeg

This will shrink the image horizontally, but leave its vertical dimension the same.
The second method will involve shrinking the image horizontally and stretching it vertically. This will distort the image more, and the syntax for the command is:
convert 1600.jpeg -resize 1280 x 1024\> 1600_2.jpeg

(Source: ImageMagick website)


How to replace libapt-private.so.0.0.0 manually on Ubuntu for Windows?

So, my WSL got broken because of Windows Defender detecting my libapt-private.so.0.0.0 as a trojan. [insert ironic comment here]

(UPDATE: This SO answer reports some news from Microsoft on the issue)

Solution

First of all, the most annoying thing was that every attempt to delete or move the library gave "Permission Denied" error. In order to prevent this, make sure you are operating as Administrator: open your WSL shell from an elevated cmd/powershell and work there.

What follows is (almost) the implementation of Imaginecat22's answer.

Find your version of apt

$ dpkg -l apt

[. . .]
||/ Name                              Version               Architecture          Description
+++-=================================-=====================-=====================-=======================================================================
ii  apt                               1.6.11                amd64                 commandline package manager

write down the value of Architecture.
Download .deb package

Most packages can be found with the Ubuntu package search.

Not all versions are available there though, so you may need to download manually:

use a web browser to open:

https://launchpad.net/ubuntu/+source/apt/<VERSION>/

Replace <VERSION> with the value of Version returned in step 1, e.g.:

https://launchpad.net/ubuntu/+source/apt/1.6.11/
Find the Builds section and select the build that matches the Architecture value from step 1.

Copy the URL to download the file apt_<VERSION>_<ARCHITECTURE>.deb. From your WSL Linux shell download the package:

    $ wget https://launchpad.net/ubuntu/+source/apt/1.6.11/+build/16829590/+files/apt_1.6.11_amd64.deb

Install package using dpkg

$ dpkg -i apt_1.6.11_amd64.deb

Should overwrite your previous version and the broken library with it.


Fullscreen tearing in Firefox Flash video with AMD Catalyst drivers

I had the same issue when I updated the kernel to 3.13.0-27.
So I booted back into old 3.13.0-24 and removed the -27 in the update manager > view > Linux Kernels.
No tearing/freezing full screen flash videos with proprietary AMD drivers in Firefox again.
Hope it works for U too.


Unable to establish wifi internet connection on new ubuntu installation

You installed a wrong driver for your wireless device.

Connect to the internet by wire and run

sudo apt purge bcmwl-kernel-source
sudo apt install firmware-b43-installer
sudo modprobe -r wl
sudo modprobe b43

Your Wi-Fi should be working.


Can't launch Android Studio 3 and remove version 2 in ubuntu 16.04

Found the solution by following these steps.

Go to /home/[username]/
Delete old android studio folders Android,.android,AndroidStudio 2.2
open file explore with root permission gksudo nautilus /usr/share/applications
Delete old Android Studio launcher.
Launch new android studio. Now you got updated android studio


Can I take the firefox book marks folder and copy it?

I hope i understood u correctly,
Firefox saves Bookmarks, Downloads and Browsing History in the places.sqlite. So you can scp the places.sqlite into the other System with the command below.

scp ~/.mozilla/firefox/<source_profile_name>/places.sqlite whoever@example.com:~/.mozilla/firefox/<destination_profile_name>/

Or you can just Backup and restore them like described here

backup and restore bookmarks